source: rtems/aclocal/rtems-top.m4 @ 6e2ef53f

4.104.114.84.9
Last change on this file since 6e2ef53f was 6e2ef53f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 20, 2004 at 1:44:19 AM

2004-02-20 Ralf Corsepius <corsepiu@…>

  • aclocal/rtems-top.m4: Sync with c/src/aclocal/rtems-top.m4
  • Makefile.am: Cosmetics.
  • Property mode set to 100644
File size: 931 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
19## HACK to allow gnu-make conditionals in automake-Makefiles.
20ENDIF=endif
21AC_SUBST(ENDIF)
22
23RTEMS_TOPdir="$1";
24AC_SUBST(RTEMS_TOPdir)
25
26## with_target_subdirs is handled implicitly by autoconf
27test -n "$with_target_subdir" || with_target_subdir="."
28
29dots=`echo $with_target_subdir|\
30sed -e 's,^\.$,,' -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
31PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
32AC_SUBST(PROJECT_TOPdir)
33
34PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
35AC_SUBST(PROJECT_ROOT)
36
37AC_MSG_CHECKING([for RTEMS Version])
38AC_MSG_RESULT([_RTEMS_VERSION])
39])dnl
Note: See TracBrowser for help on using the repository browser.