source: rtems/c/src/aclocal/rtems-top.m4 @ 0598fb8

4.104.114.84.95
Last change on this file since 0598fb8 was 0598fb8, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 8, 2005 at 2:50:06 AM

2005-02-08 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/rtems-top.m4 (rtems_updir): Quote sed args.
  • Property mode set to 100644
File size: 877 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_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
20AC_SUBST([RTEMS_TOPdir],["$1"])
21
22# HACK: The sed pattern in rtems_updir matches c/src/
23rtems_updir=m4_if([$2],[],[`echo "$1/" | sed 's,^\.\.\/\.\.\/,,'`],[$2/])
24
25AS_IF([test -n "${with_target_subdir}"],
26  [project_top="../${with_project_top}"],
27  [project_top="${with_project_top}"])
28AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
29
30AC_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)'])
31
32AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
33])dnl
Note: See TracBrowser for help on using the repository browser.