diff options
author | Jason Greene <jason@php.net> | 2001-04-04 04:41:01 +0000 |
---|---|---|
committer | Jason Greene <jason@php.net> | 2001-04-04 04:41:01 +0000 |
commit | 6e2a6e07db1312e9730f4e6ace774b0f2619163b (patch) | |
tree | a349028da51a5507e58509e0ff71d1306b69c173 /build/buildcheck.sh | |
parent | 890430014ce27f86740ea4d33378cd2a1eb17c5d (diff) | |
download | php-git-6e2a6e07db1312e9730f4e6ace774b0f2619163b.tar.gz |
This is a temporary fix to the previous patch that breaks the build.
This keeps the functionality of searching for glibtool or libtool,
but have you checked the rest of the build process to see if this is
compatible? Regardless, 'which' returns a value on some os's when nothing is
found which breaks the previous patches test. Also the unary negation after
an if is not compatible with true bourne.
-Jason
Diffstat (limited to 'build/buildcheck.sh')
-rwxr-xr-x | build/buildcheck.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh index 0bfe5ddc34..b51d2c6f5b 100755 --- a/build/buildcheck.sh +++ b/build/buildcheck.sh @@ -16,7 +16,7 @@ # | Sascha Schumann <sascha@schumann.cx> | # +----------------------------------------------------------------------+ # -# $Id: buildcheck.sh,v 1.4 2001-04-03 19:07:32 wsanchez Exp $ +# $Id: buildcheck.sh,v 1.5 2001-04-04 04:41:01 jason Exp $ # echo "buildconf: checking installation..." @@ -58,7 +58,8 @@ echo "buildconf: automake version $am_version (ok)" fi # libtool 1.3.3 or newer -if ! libtool=`which glibtool`; then libtool=`which libtool`; fi +libtool=`which libtool` +if test ! -f "$libtool"; then libtool=`which glibtool`; fi lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'` if test "$lt_pversion" = ""; then echo "buildconf: libtool not found." @@ -79,7 +80,7 @@ exit 1 fi am_prefix=`which automake | sed -e 's#/[^/]*/[^/]*$##'` -lt_prefix=`which libtool | sed -e 's#/[^/]*/[^/]*$##'` +lt_prefix=`which $libtool | sed -e 's#/[^/]*/[^/]*$##'` if test "$am_prefix" != "$lt_prefix"; then echo "WARNING: automake and libtool are installed in different" echo " directories. This may cause aclocal to fail." |