mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Safer libtoolize version check
This commit is contained in:
parent
4cf9d27072
commit
b1db6ed28d
@ -16,7 +16,7 @@
|
||||
# | Sascha Schumann <sascha@schumann.cx> |
|
||||
# +----------------------------------------------------------------------+
|
||||
#
|
||||
# $Id: buildcheck.sh,v 1.31 2004-12-20 20:23:57 sniper Exp $
|
||||
# $Id: buildcheck.sh,v 1.32 2004-12-30 15:53:57 rasmus Exp $
|
||||
#
|
||||
|
||||
echo "buildconf: checking installation..."
|
||||
@ -54,7 +54,7 @@ fi
|
||||
# libtoolize 1.4.3 or newer
|
||||
# Prefer glibtoolize over libtoolize for Mac OS X compatibility
|
||||
libtoolize=`./build/shtool path glibtoolize libtoolize 2> /dev/null`
|
||||
lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//'`
|
||||
lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|awk -F' ' '{print $NF}'`
|
||||
if test "$lt_pversion" = ""; then
|
||||
echo "buildconf: libtool not found."
|
||||
echo " You need libtool version 1.4.3 or newer installed"
|
||||
|
Loading…
Reference in New Issue
Block a user