source: rtems/testsuites/aclocal/rtems-top.m4 @ c17ed71

4.104.114.84.9
Last change on this file since c17ed71 was c17ed71, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 9:38:43 PM

2003-12-01 Ralf Corsepius <corsepiu@…>

  • automake/compile.am: Add $(ARCH)/$(dirstamp) rules.
  • aclocal/lead-dot.m4: New (from automake-1.7f).
  • aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. Add AC_SUBST(dirstamp).
  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[3c69a774]1dnl $Id$
2
[ac3786b]3m4_define([RTEMS_API],[4.7])
4
[3c69a774]5dnl
6dnl RTEMS_TOP($1)
7dnl
8dnl $1 .. relative path from this configure.in to the toplevel configure.in
9dnl
[0e8262cf]10AC_DEFUN([RTEMS_TOP],
[3c69a774]11[dnl
12AC_REQUIRE([RTEMS_VERSIONING])
[c17ed71]13AC_REQUIRE([AM_SET_LEADING_DOT])
[3c69a774]14AC_CONFIG_AUX_DIR([$1])
15AC_CHECK_PROGS(MAKE, gmake make)
16AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
17
[ac3786b]18AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
[3c69a774]19
20## HACK to allow gnu-make conditionals in automake-Makefiles.
21ENDIF=endif
22AC_SUBST(ENDIF)
23
24RTEMS_TOPdir="$1";
25AC_SUBST(RTEMS_TOPdir)
26
27## with_target_subdirs is handled implicitly by autoconf
28test -n "$with_target_subdir" || with_target_subdir="."
29
30if test "$with_target_subdir" = "." ; then
31# Native
[c3643e7]32PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
[3c69a774]33else
34# Cross
35dots=`echo $with_target_subdir|\
36sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
[c3643e7]37PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
[3c69a774]38fi
39AC_SUBST(PROJECT_TOPdir)
40
[c3643e7]41PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(top_builddir)"
[3c69a774]42AC_SUBST(PROJECT_ROOT)
[c17ed71]43
44AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
[3c69a774]45])dnl
Note: See TracBrowser for help on using the repository browser.