]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
strip trailing stuff off the automake/autoconf versions detected in bootstrap.sh
authorMichael Jerris <mike@jerris.com>
Sun, 8 Apr 2007 19:13:07 +0000 (19:13 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 8 Apr 2007 19:13:07 +0000 (19:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4896 d0543943-73ff-0310-b7d9-9358b9ac24b2

bootstrap.sh

index 6df56b587c88bbc7fa33247fa04bb549dca96658..556b245e5f92c50c949602f2dc360a64bc224f54 100755 (executable)
@@ -15,7 +15,7 @@ touch README
 touch ChangeLog
 
 # autoconf 2.59 or newer
-ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;s/[- ].*//g;q'`
 if test -z "$ac_version"; then
 echo "bootstrap: autoconf not found."
 echo "           You need autoconf version 2.59 or newer installed"
@@ -33,7 +33,7 @@ echo "bootstrap: autoconf version $ac_version (ok)"
 fi
 
 # automake 1.7 or newer
-am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;s/[- ].*//g;q'`
 if test -z "$am_version"; then
 echo "bootstrap: automake not found."
 echo "           You need automake version 1.7 or newer installed"