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

4.104.114.84.95
Last change on this file since d04abc83 was d04abc83, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/25/04 at 10:36:41

2004-03-25 Ralf Corsepius <corsepiu@…>

  • aclocal/rtems-top.m4: Add rtems_rootdir.
  • aclocal/check-custom-bsp.m4: Check for $RTEMS_BSP.cfg in $rtems_rootdir.
  • Property mode set to 100644
File size: 1.2 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
[93a0f2b]24AC_SUBST([RTEMS_TOPdir],["$1"])
25
26rtems_updir=m4_if([$2],[],[],[$2/])
27
28AC_ARG_ENABLE([rtems-root],[
29AS_HELP_STRING(--enable-rtems-root,directory containing make/custom)],
30[case ${enable_rtems_root} in
31  [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
[d04abc83]32   rtems_rootdir=${enable_rtems_root}
33   RTEMS_RTEMS=${enable_rtems_root}
[93a0f2b]34   ;;
35  *) # relative directory
[d04abc83]36   rtems_rootdir=${enable_rtems_root}${rtems_updir}
[93a0f2b]37   RTEMS_ROOT=${enable_rtems_root}${rtems_updir}'$(top_builddir)'
38   ;;
[d04abc83]39esac],[
40rtems_rootdir=${rtems_updir}
41RTEMS_ROOT=${rtems_updir}'$(top_builddir)'
42])
[93a0f2b]43AC_SUBST([RTEMS_ROOT])
44
45AC_SUBST([PROJECT_TOPdir],[${with_project_top}${rtems_updir}'$(top_builddir)'])
46AC_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)'])
[c17ed71]47
48AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])
[3c69a774]49])dnl
Note: See TracBrowser for help on using the repository browser.