4.104.114.84.95
Last change
on this file since ef02bc1 was
ef02bc1,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/26/04 at 03:57:24
|
2004-03-26 Ralf Corsepius <ralf_corsepius@…>
- aclocal/rtems-top.m4: Add 2nd arg to RTEMS_TOP.
Rework with_project_root/PROJECT_ROOT and with_project_top/PROJECT_TOPdir.
|
-
Property mode set to
100644
|
File size:
815 bytes
|
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 | |
---|
[789694a1] | 20 | AC_SUBST([RTEMS_TOPdir],["$1"]) |
---|
[867ab080] | 21 | |
---|
[ef02bc1] | 22 | # HACK: The sed pattern in rtems_updir matches c/src/ |
---|
| 23 | rtems_updir=m4_if([$2],[],[`echo "$1/" | sed s,^\.\.\/\.\.\/,,`],[$2/]) |
---|
[789694a1] | 24 | |
---|
[ef02bc1] | 25 | AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)']) |
---|
[789694a1] | 26 | |
---|
[ef02bc1] | 27 | AC_SUBST([PROJECT_TOPdir],[${with_project_top}${rtems_updir}'$(top_builddir)']) |
---|
| 28 | AC_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)']) |
---|
[82bdc057] | 29 | |
---|
| 30 | AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp]) |
---|
[867ab080] | 31 | ])dnl |
---|
Note: See
TracBrowser
for help on using the repository browser.