Bug #13674: build/buildcheck.sh fails if automake version strings contains dashes

From: Date: Mon, 15 Oct 2001 19:40:07 +0000
Subject: Bug #13674: build/buildcheck.sh fails if automake version strings contains dashes
Groups: php.dev 
Request: Send a blank email to php-dev+get-67971@lists.php.net to get a copy of this message
From: marco@esiway.net Operating system: RedHat Linux 6.2 + updates PHP version: 4.0.6 PHP Bug Type: Compile Warning Bug description: build/buildcheck.sh fails if automake version strings contains dashes automake version here is 1.4-p1, and buildcheck fails to parse it. build/buildcheck.sh: test: integer expression expected before -lt the following patch fixes it (maybe also \. and caps should be added): --- php-4.0.6/build/buildcheck.sh.ver Sat May 12 11:03:58 2001 +++ php-4.0.6/build/buildcheck.sh Mon Oct 15 21:21:57 2001 @@ -22,7 +22,7 @@ echo "buildconf: checking installation..." # autoconf 2.13 or newer -ac_version=`autoconf --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +ac_version=`autoconf --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[-a-z][-0-9a-z]* *$//'` if test -z "$ac_version"; then echo "buildconf: autoconf not found." echo " You need autoconf version 2.13 or newer installed" @@ -40,7 +40,7 @@ fi # automake 1.4 or newer -am_version=`automake --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +am_version=`automake --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[-a-z][-0-9a-z]* *$//'` if test "$am_version" = ""; then echo "buildconf: automake not found." echo " You need automake version 1.4 or newer installed" -- Edit bug report at: http://bugs.php.net/?id=13674&edit=1

« previous php.dev (#67971) next »