summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-07-23 15:08:54 +0000
committerStig Bakken <ssb@php.net>1999-07-23 15:08:54 +0000
commit6c856de82df68d969fb63b702b51386b7e351305 (patch)
tree5e84ff4a18324d4789c20bfe6cf9c02324d66001 /buildconf
parent6cdea551cc4f6373147d0833c942790c21d7fe8b (diff)
downloadphp-git-6c856de82df68d969fb63b702b51386b7e351305.tar.gz
require libtool to be installed as well
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf19
1 files changed, 19 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index ada319ce09..80fe27c577 100755
--- a/buildconf
+++ b/buildconf
@@ -42,6 +42,25 @@ else
echo "buildconf: automake version $am_version (ok)"
fi
+ # libtool 1.2f or newer
+ lt_version=`libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/\([a-z]\).*/.\1/'`
+ if test "$lt_version" = ""; then
+ echo "buildconf: libtool not found."
+ echo " You need libtool version 1.3 or newer installed"
+ echo " to build PHP from CVS."
+ exit 1
+ fi
+ IFS=.; set $lt_version; IFS=' '
+ if test "$1" -gt "1" || test "$2" -ge "3" || test "$2" = "2" -a "$3" = "f"
+ then
+ echo "buildconf: libtool version $lt_version (ok)"
+ else
+ echo "buildconf: libtool version $lt_version found."
+ echo " You need libtool version 1.2f or newer installed"
+ echo " to build PHP from CVS."
+ exit 1
+ fi
+
# The stuff from libtool we need is in CVS right now, so it is
# not required to run buildconf.
fi