source: rtems/c/src/aclocal/rtems-top.m4 @ 8d6df023

4.115
Last change on this file since 8d6df023 was 8d6df023, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/07/11 at 03:54:49

2011-03-07 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/rtems-top.m4: Add pkgdatadir.
  • Property mode set to 100644
File size: 1019 bytes
Line 
1dnl $Id$
2
3# AC_DISABLE_OPTION_CHECKING is not available before 2.62
4AC_PREREQ(2.62)
5
6dnl
7dnl RTEMS_TOP($1)
8dnl
9dnl $1 .. relative path from this configure.in to the toplevel configure.in
10dnl
11AC_DEFUN([RTEMS_TOP],
12[dnl
13AC_REQUIRE([RTEMS_VERSIONING])
14AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
15AC_REQUIRE([AM_SET_LEADING_DOT])
16AC_CONFIG_AUX_DIR([$1])
17AC_CHECK_PROGS(MAKE, gmake make)
18AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
19
20AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
21
22AC_SUBST([RTEMS_TOPdir],["$1"])
23
24# HACK: The sed pattern in rtems_updir matches c/src/
25rtems_updir=m4_if([$2],[],[`echo "$1/" | sed 's,^\.\.\/\.\.\/,,'`],[$2/])
26
27AS_IF([test -n "${with_target_subdir}"],
28  [project_top="../${with_project_top}"],
29  [project_top="${with_project_top}"])
30AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
31
32AC_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)'])
33
34AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
35AC_SUBST([pkgdatadir],["\${datadir}"/rtems]_RTEMS_API)
36])dnl
Note: See TracBrowser for help on using the repository browser.