source: rtems/aclocal/rtems-top.m4 @ fd1c1c9

4.104.11
Last change on this file since fd1c1c9 was 9622f254, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 27, 2008 at 6:47:01 AM

Require AC_DISABLE_OPTION_CHECKING.
AC_PREREQ(2.62).

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