]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Only invoke the automake workaround if needed
authorhno <>
Mon, 21 Oct 2002 05:08:44 +0000 (05:08 +0000)
committerhno <>
Mon, 21 Oct 2002 05:08:44 +0000 (05:08 +0000)
bootstrap.sh

index 4a3c6cf4c8ec14b7ac2a63aaaafbc3158aaded0d..f326b5891267a6bb3d708495d309a9b77622e3f3 100755 (executable)
@@ -60,7 +60,10 @@ acver=`find_version autoconf ${acversions}`
 
 # Bootstrap the autotool subsystems
 bootstrap aclocal$amver
-perl -i -p -e 's/m4_patsubst/m4_bpatsubst/g; s/m4_regexp/m4_bregex/g;' aclocal.m4
+#workaround for Automake 1.5
+if grep m4_regex aclocal.m4 >/dev/null; then
+    perl -ibak -p -e 's/m4_patsubst/m4_bpatsubst/g; s/m4_regexp/m4_bregexp/g;' aclocal.m4
+fi
 bootstrap autoheader$acver
 bootstrap automake$amver --foreign --add-missing
 bootstrap autoconf$acver