4.104.114.84.95
Last change
on this file since 863fb4f was
863fb4f,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:56:28
|
2003-11-26 Ralf Corsepius <corsepiu@…>
- aclocal/canonicalize-tools.m4, aclocal/check-itron.m4,
aclocal/check-multiprocessing.m4, aclocal/check-newlib.m4,
aclocal/check-posix.m4, aclocal/check-rtems-debug.m4,
aclocal/check-tool.m4, aclocal/enable-bare.m4,
aclocal/enable-inlines.m4, aclocal/enable-itron.m4,
aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4,
aclocal/enable-posix.m4, aclocal/enable-rtems-debug.m4,
aclocal/env-rtemscpu.m4, aclocal/gcc-isystem.m4,
aclocal/gcc-pipe.m4, aclocal/multi.m4,
aclocal/multilib.m4, aclocal/prog-cc.m4,
aclocal/rtems-top.m4, aclocal/sysv-ipc.m4:
Fix underquoting to silence automake-1.8.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[ed8ec1c] | 1 | dnl $Id$ |
---|
| 2 | |
---|
[ac3786b] | 3 | m4_define([RTEMS_API],[4.7]) |
---|
| 4 | |
---|
[ed8ec1c] | 5 | dnl |
---|
| 6 | dnl RTEMS_TOP($1) |
---|
| 7 | dnl |
---|
| 8 | dnl $1 .. relative path from this configure.in to the toplevel configure.in |
---|
| 9 | dnl |
---|
[863fb4f] | 10 | AC_DEFUN([RTEMS_TOP], |
---|
[ed8ec1c] | 11 | [dnl |
---|
| 12 | AC_REQUIRE([RTEMS_VERSIONING]) |
---|
[d2c26e4b] | 13 | AC_CONFIG_AUX_DIR([$1]) |
---|
[ed8ec1c] | 14 | AC_CHECK_PROGS(MAKE, gmake make) |
---|
| 15 | AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl |
---|
| 16 | |
---|
[ac3786b] | 17 | AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API]) |
---|
[ed8ec1c] | 18 | |
---|
| 19 | ## HACK to allow gnu-make conditionals in automake-Makefiles. |
---|
| 20 | ENDIF=endif |
---|
| 21 | AC_SUBST(ENDIF) |
---|
| 22 | |
---|
| 23 | RTEMS_TOPdir="$1"; |
---|
| 24 | AC_SUBST(RTEMS_TOPdir) |
---|
| 25 | |
---|
| 26 | ## with_target_subdirs is handled implicitly by autoconf |
---|
| 27 | test -n "$with_target_subdir" || with_target_subdir="." |
---|
| 28 | |
---|
| 29 | if test "$with_target_subdir" = "." ; then |
---|
| 30 | # Native |
---|
[4bfe135] | 31 | PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)" |
---|
[ed8ec1c] | 32 | else |
---|
| 33 | # Cross |
---|
| 34 | dots=`echo $with_target_subdir|\ |
---|
| 35 | sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` |
---|
[4bfe135] | 36 | PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)" |
---|
[ed8ec1c] | 37 | fi |
---|
| 38 | AC_SUBST(PROJECT_TOPdir) |
---|
| 39 | |
---|
[14620166] | 40 | PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)" |
---|
[ed8ec1c] | 41 | AC_SUBST(PROJECT_ROOT) |
---|
| 42 | |
---|
| 43 | AC_MSG_CHECKING([for RTEMS Version]) |
---|
[60f3702] | 44 | AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/cpukit/aclocal/version.m4"], |
---|
[ed8ec1c] | 45 | [], |
---|
[60f3702] | 46 | [AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/cpukit/aclocal/version.m4])]) |
---|
[ed8ec1c] | 47 | AC_MSG_RESULT([_RTEMS_VERSION]) |
---|
| 48 | ])dnl |
---|
Note: See
TracBrowser
for help on using the repository browser.