From ec6968b1c425d01f52a9e9f4e2dd442e3172c594 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Jun 2000 17:15:18 +0000 Subject: Patch rtems-rc-20000614-2-cvs.diff from Ralf Corsepius to evaluate ACLOCAL_AMFLAGS in Makefile.ams before running aclocal. Remark: This patch is in preparation to switching to Cygnus/GNU canonicalization. I plan to introduce to an alternate aclocal macros directory which shall contain Cygnus/GNU conforming macros only, soon. --- bootstrap | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index b0af7ca9ec..0e02042d24 100755 --- a/bootstrap +++ b/bootstrap @@ -63,9 +63,9 @@ case $mode in generate) case $top_srcdir in - /* ) aclocal_dir=$top_srcdir/aclocal + /* ) aclocal_dir=$top_srcdir ;; - *) aclocal_dir=`pwd`/$top_srcdir/aclocal + *) aclocal_dir=`pwd`/$top_srcdir ;; esac @@ -74,7 +74,11 @@ generate) dir=`dirname $i`; ( test "$quiet" = "true" || echo "$dir"; cd $dir; - aclocal -I $aclocal_dir; + pat="s,\$(RTEMS_TOPdir),${aclocal_dir},g" + aclocal_args=`grep '^[ ]*ACLOCAL_AMFLAGS' Makefile.am | \ + sed -e 's%.*ACLOCAL_AMFLAGS.*\=[ ]*%%g' -e $pat ` ; + test "$verbose" = "-v" && echo "aclocal $aclocal_args" + aclocal $aclocal_args; autoconf; test -n "`grep CONFIG_HEADER configure.in`" && autoheader ; test -f Makefile.am && automake $verbose ; -- cgit v1.2.3