aboutsummaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-14 11:27:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-14 11:27:30 +0000
commit7553341badc73d7e9cdf6a0dd1f03ae04f766b92 (patch)
treea092053355adfc6a6ff17f87e4a54e505c762f88 /buildconf
parentc6f11b053d46386a8493d4b3f7999f43fd076cc7 (diff)
improved the libtool check to disqualify "1.4c" when 1.4.2 is required
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf21
1 files changed, 15 insertions, 6 deletions
diff --git a/buildconf b/buildconf
index 76c400b14..33597abcf 100755
--- a/buildconf
+++ b/buildconf
@@ -90,17 +90,26 @@ if test -z "$lt_pversion"; then
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
exit 1
fi
-lt_version=`echo $lt_pversion` #|sed -e 's/\([a-z]*\)$/.\1/'`
+lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$//'`
IFS=.; set $lt_version; IFS=' '
lt_status="good"
-if test "$1" = "$LIBTOOL_WANTED_MAJOR"; then
- if test "$2" -lt "$LIBTOOL_WANTED_MINOR"; then
+
+major=$1
+minor=$2
+patch=$3
+
+if test "$major" = "$LIBTOOL_WANTED_MAJOR"; then
+ if test "$minor" -lt "$LIBTOOL_WANTED_MINOR"; then
lt_status="bad"
- elif test ! -z "$LIBTOOL_WANTED_PATCH"; then
- if test -n "$3"; then
- if test "$3" -lt "$LIBTOOL_WANTED_PATCH"; then
+ elif test -n "$LIBTOOL_WANTED_PATCH"; then
+ if test "$minor" -gt "$LIBTOOL_WANTED_MINOR"; then
+ lt_status="good"
+ elif test -n "$patch"; then
+ if test "$patch" -lt "$LIBTOOL_WANTED_PATCH"; then
lt_status="bad"
fi
+ else
+ lt_status="bad"
fi
fi
fi