diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-15 21:56:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-15 21:56:52 +0000 |
commit | 1033e273a4d587023466d17a74652ed7fe8d7ebb (patch) | |
tree | b463663945c03c289ac6a504164bbdd21fae9057 /aclocal/rtems-top.m4 | |
parent | 2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-1033e273a4d587023466d17a74652ed7fe8d7ebb.tar.bz2 |
2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonical-host.m4: Abandon changequotes (autoconf-2.49b).
* aclocal/check-newlib.m4: Let check message refer to RTEMS newlib.
* aclocal/rtems-debug.m4: Fix formating and contents of the check's
help string.
* aclocal/rtems-top.m4: Remove AC_ARG_WITH(target-subdir).
Diffstat (limited to '')
-rw-r--r-- | aclocal/rtems-top.m4 | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/aclocal/rtems-top.m4 b/aclocal/rtems-top.m4 index fa79019df7..b0e246c733 100644 --- a/aclocal/rtems-top.m4 +++ b/aclocal/rtems-top.m4 @@ -15,24 +15,19 @@ AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl ENDIF=endif AC_SUBST(ENDIF) -# with_target_subdir -AC_ARG_WITH(target-subdir, -[ --with-target-subdir=DIR], -with_target_subdir="$withval", -with_target_subdir=".") - RTEMS_TOPdir="$1"; AC_SUBST(RTEMS_TOPdir) +## with_target_subdirs is handled implicitly by autoconf +test -n "$with_target_subdir" || with_target_subdir="." + if test "$with_target_subdir" = "." ; then # Native PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)' else # Cross -changequote(, )dnl dots=`echo $with_target_subdir|\ -sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` -changequote([, ])dnl +sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' fi AC_SUBST(PROJECT_TOPdir) @@ -50,10 +45,8 @@ dnl Determine RTEMS Version string from the VERSION file dnl Hopefully, Joel never changes its format ;- AC_MSG_CHECKING([for RTEMS Version]) if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then -changequote(,)dnl RTEMS_VERSION=`grep 'RTEMS Version' ${srcdir}/${RTEMS_TOPdir}/VERSION | \ -sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` -changequote([,])dnl +sed -e 's%RTEMS[[ ]]*Version[[ ]]*\(.*\)[[ ]]*%\1%g'` else AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION) fi |