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
RevLine 
[33a105fb]1dnl $Id$
2
[9622f254]3# AC_DISABLE_OPTION_CHECKING is not available before 2.62
4AC_PREREQ(2.62)
5
[9b8baa1]6dnl
7dnl RTEMS_TOP($1)
8dnl
9dnl $1 .. relative path from this configure.in to the toplevel configure.in
10dnl
[3959276e]11AC_DEFUN([RTEMS_TOP],
[9ec96478]12[dnl
[76d527ec]13AC_REQUIRE([RTEMS_VERSIONING])
[9622f254]14AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
[89b51f4]15AC_CONFIG_AUX_DIR([$1])
[3207f0a]16AC_CHECK_PROGS(MAKE, gmake make)
[b62a92c]17AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
18
[b42cae7]19AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
[e712997]20
[9ec96478]21RTEMS_TOPdir="$1";
22AC_SUBST(RTEMS_TOPdir)
23
[2e0fd427]24dots=`echo $with_target_subdir|\
[6e2ef53f]25sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
[2e0fd427]26PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
27AC_SUBST(PROJECT_TOPdir)
28
[ba748523]29PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
[2e0fd427]30AC_SUBST(PROJECT_ROOT)
31
[9b8baa1]32AC_MSG_CHECKING([for RTEMS Version])
[76d527ec]33AC_MSG_RESULT([_RTEMS_VERSION])
[44dd5dc4]34pkgdatadir="${datadir}"/rtems[]_RTEMS_API;
35AC_SUBST([pkgdatadir])
[9ec96478]36])dnl
Note: See TracBrowser for help on using the repository browser.