From: Bruno Haible Date: Sat, 23 Jun 2001 20:55:14 +0000 (+0000) Subject: aclocal may be missing. X-Git-Tag: v0.11~652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=622fd88e6c461a4419b232d2f625ced2640e722f;p=thirdparty%2Fgettext.git aclocal may be missing. --- diff --git a/ChangeLog b/ChangeLog index 49889d231..6329392a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-06-23 Bruno Haible + + * aclocal.sh: Don't fail if aclocal isn't available. + 2001-06-15 Bruno Haible * configure.in: Remove post-processing of tests/Makefile. diff --git a/aclocal.sh b/aclocal.sh index f1cbc627d..4d9ed9485 100755 --- a/aclocal.sh +++ b/aclocal.sh @@ -32,15 +32,28 @@ if test $# = 0; then exit 1 fi +# The command line is of the form +# /somepath/aclocal ... +# or +# /somepath/missing aclocal ... +# Extract the first part. ACLOCAL="$1" shift +ACLOCAL2= +case "$ACLOCAL" in + *missing) + ACLOCAL2="$1" + shift + esac + ;; +esac # Prepare temporary directory. mkdir aclocal.tmp trap "rm -rf aclocal.tmp; exit 1" 1 2 15 # First, copy the standard m4 files. -for f in `"$ACLOCAL" --print-ac-dir`/*.m4; do +for f in `"$ACLOCAL" $ACLOCAL2 --print-ac-dir`/*.m4; do cp $f aclocal.tmp done @@ -64,7 +77,7 @@ do done # Now call `aclocal' for real. -"$ACLOCAL" --acdir=aclocal.tmp $options +"$ACLOCAL" $ACLOCAL2 --acdir=aclocal.tmp $options # Clean up temporary directory. rm -rf aclocal.tmp