source:
rtems/aclocal/rtems-top.m4
@
33a105fb
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48 | |
---|---|
|
|
File size: 879 bytes |
Rev | Line | |
---|---|---|
[33a105fb] | 1 | dnl $Id$ |
2 | ||
[9622f254] | 3 | # AC_DISABLE_OPTION_CHECKING is not available before 2.62 |
4 | AC_PREREQ(2.62) | |
5 | ||
[9b8baa1] | 6 | dnl |
7 | dnl RTEMS_TOP($1) | |
8 | dnl | |
9 | dnl $1 .. relative path from this configure.in to the toplevel configure.in | |
10 | dnl | |
[3959276e] | 11 | AC_DEFUN([RTEMS_TOP], |
[9ec96478] | 12 | [dnl |
[76d527ec] | 13 | AC_REQUIRE([RTEMS_VERSIONING]) |
[9622f254] | 14 | AC_REQUIRE([AC_DISABLE_OPTION_CHECKING]) |
[89b51f4] | 15 | AC_CONFIG_AUX_DIR([$1]) |
[3207f0a] | 16 | AC_CHECK_PROGS(MAKE, gmake make) |
[b62a92c] | 17 | AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl |
18 | ||
[b42cae7] | 19 | AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API]) |
[e712997] | 20 | |
[9ec96478] | 21 | RTEMS_TOPdir="$1"; |
22 | AC_SUBST(RTEMS_TOPdir) | |
23 | ||
[2e0fd427] | 24 | dots=`echo $with_target_subdir|\ |
[6e2ef53f] | 25 | sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` |
[2e0fd427] | 26 | PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' |
27 | AC_SUBST(PROJECT_TOPdir) | |
28 | ||
[ba748523] | 29 | PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" |
[2e0fd427] | 30 | AC_SUBST(PROJECT_ROOT) |
31 | ||
[9b8baa1] | 32 | AC_MSG_CHECKING([for RTEMS Version]) |
[76d527ec] | 33 | AC_MSG_RESULT([_RTEMS_VERSION]) |
[44dd5dc4] | 34 | pkgdatadir="${datadir}"/rtems[]_RTEMS_API; |
35 | AC_SUBST([pkgdatadir]) | |
[9ec96478] | 36 | ])dnl |
Note: See TracBrowser
for help on using the repository browser.