source: rtems/aclocal/rtems-top.m4 @ 2e28876

4.104.114.84.95
Last change on this file since 2e28876 was 3456ce8a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/31/04 at 10:55:15

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • aclocal/rtems-top.m4: Remove ENDIF. Remove with_target_subdir defaulting to '.'.
  • acinclude.m4: Add --includedir to sub_configure_args.
  • Property mode set to 100644
File size: 726 bytes
Line 
1dnl $Id$
2
3m4_define([RTEMS_API],[4.7])
4
5dnl
6dnl RTEMS_TOP($1)
7dnl
8dnl $1 .. relative path from this configure.in to the toplevel configure.in
9dnl
10AC_DEFUN([RTEMS_TOP],
11[dnl
12AC_REQUIRE([RTEMS_VERSIONING])
13AC_CONFIG_AUX_DIR([$1])
14AC_CHECK_PROGS(MAKE, gmake make)
15AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
16
17AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
18
19RTEMS_TOPdir="$1";
20AC_SUBST(RTEMS_TOPdir)
21
22dots=`echo $with_target_subdir|\
23sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
24PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
25AC_SUBST(PROJECT_TOPdir)
26
27PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
28AC_SUBST(PROJECT_ROOT)
29
30AC_MSG_CHECKING([for RTEMS Version])
31AC_MSG_RESULT([_RTEMS_VERSION])
32])dnl
Note: See TracBrowser for help on using the repository browser.