4.104.114.84.95
Last change
on this file since 208aa86e was
208aa86e,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/17/04 at 02:40:23
|
2004-01-17 Ralf Corsepius <corsepiu@…>
- aclocal/rtems-top.m4: Remove check for version.m4.
- automake/compile.am: Remove LINK_OBJS, LINK_FILES (Unused).
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[867ab080] | 1 | dnl $Id$ |
---|
| 2 | |
---|
[ac3786b] | 3 | m4_define([RTEMS_API],[4.7]) |
---|
| 4 | |
---|
[867ab080] | 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 |
---|
[9550125e] | 10 | AC_DEFUN([RTEMS_TOP], |
---|
[867ab080] | 11 | [dnl |
---|
| 12 | AC_REQUIRE([RTEMS_VERSIONING]) |
---|
[82bdc057] | 13 | AC_REQUIRE([AM_SET_LEADING_DOT]) |
---|
[867ab080] | 14 | AC_CONFIG_AUX_DIR([$1]) |
---|
| 15 | AC_CHECK_PROGS(MAKE, gmake make) |
---|
| 16 | AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl |
---|
| 17 | |
---|
[ac3786b] | 18 | AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API]) |
---|
[867ab080] | 19 | |
---|
| 20 | ## HACK to allow gnu-make conditionals in automake-Makefiles. |
---|
| 21 | ENDIF=endif |
---|
| 22 | AC_SUBST(ENDIF) |
---|
| 23 | |
---|
| 24 | RTEMS_TOPdir="$1"; |
---|
| 25 | AC_SUBST(RTEMS_TOPdir) |
---|
| 26 | |
---|
| 27 | ## with_target_subdirs is handled implicitly by autoconf |
---|
| 28 | test -n "$with_target_subdir" || with_target_subdir="." |
---|
| 29 | |
---|
| 30 | if test "$with_target_subdir" = "." ; then |
---|
| 31 | # Native |
---|
| 32 | PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)' |
---|
| 33 | else |
---|
| 34 | # Cross |
---|
| 35 | dots=`echo $with_target_subdir|\ |
---|
| 36 | sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` |
---|
| 37 | PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' |
---|
| 38 | fi |
---|
| 39 | AC_SUBST(PROJECT_TOPdir) |
---|
| 40 | |
---|
| 41 | PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" |
---|
| 42 | AC_SUBST(PROJECT_ROOT) |
---|
| 43 | |
---|
| 44 | AC_MSG_CHECKING([for RTEMS Version]) |
---|
| 45 | AC_MSG_RESULT([_RTEMS_VERSION]) |
---|
[82bdc057] | 46 | |
---|
| 47 | AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp]) |
---|
[867ab080] | 48 | ])dnl |
---|
Note: See
TracBrowser
for help on using the repository browser.