source: rtems/aclocal/rtems-top.m4 @ 33a105fb

4.115
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48

Revert: Remove CVS Ids

See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.

  • Property mode set to 100644
File size: 879 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])
34pkgdatadir="${datadir}"/rtems[]_RTEMS_API;
35AC_SUBST([pkgdatadir])
36])dnl
Note: See TracBrowser for help on using the repository browser.