source: rtems/cpukit/aclocal/rtems-top.m4 @ ca0eeaa

4.104.114.84.95
Last change on this file since ca0eeaa was ca0eeaa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/11/04 at 09:38:10

2004-01-11 Ralf Corsepius <corsepiu@…>

  • aclocal/rtems-top.m4: Remove check for cpukit/aclocal/version.m4. Remove gnu-make endif HACK (Unused).
  • Property mode set to 100644
File size: 1.1 KB
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_REQUIRE([AM_SET_LEADING_DOT])
14AC_CONFIG_AUX_DIR([$1])
15AC_CHECK_PROGS(MAKE, gmake make)
16AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
17
18AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
19
20RTEMS_TOPdir="$1";
21AC_SUBST(RTEMS_TOPdir)
22
23## with_target_subdirs is handled implicitly by autoconf
24test -n "$with_target_subdir" || with_target_subdir="."
25
26if test "$with_target_subdir" = "." ; then
27# Native
28PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
29else
30# Cross
31dots=`echo $with_target_subdir|\
32sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
33PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
34fi
35AC_SUBST(PROJECT_TOPdir)
36
37PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
38AC_SUBST(PROJECT_ROOT)
39
40AC_MSG_CHECKING([for RTEMS Version])
41AC_MSG_RESULT([_RTEMS_VERSION])
42
43AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
44])dnl
Note: See TracBrowser for help on using the repository browser.