summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-05 18:07:47 +0000
committerYang Tse <yangsita@gmail.com>2009-06-05 18:07:47 +0000
commite3d65389d7f3d564d318428eb0f72a8466e476f0 (patch)
treeb921601325d9b84a14a8d9638471fad2e9dd843d /buildconf
parent027cb376f3f3c5ce995566525f7ca3617ee72b43 (diff)
downloadcurl-e3d65389d7f3d564d318428eb0f72a8466e476f0.tar.gz
Depending on the libtool and automake versions being used config.guess gets
installed in the subdirectory at different stages. With some versions it is installed when libtoolize finishes, but with others it is not installed until automake has finished. So we can not attempt to use config.guess until the very last buildconf stage.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf109
1 files changed, 57 insertions, 52 deletions
diff --git a/buildconf b/buildconf
index 77176453b..d19717863 100755
--- a/buildconf
+++ b/buildconf
@@ -302,58 +302,6 @@ done
echo "buildconf: running libtoolize"
$libtoolize --copy --automake --force || die "The libtoolize command failed"
-if test "1" = "0"; then
-
-if test ! -f ./config.guess; then
- echo "buildconf: config.guess not found"
- exit 1
-fi
-
-buildhost=`./config.guess 2>/dev/null|head -n 1`
-case $buildhost in
- *-*-hpux*)
- need_lt_major=1
- need_lt_minor=5
- need_lt_patch=24
- need_lt_check="yes"
- ;;
-esac
-
-if test ! -z "$need_lt_check"; then
- lt_major="$major"
- lt_minor="$minor"
- lt_patch="$patch"
- if test -z "$lt_major"; then
- lt_status="bad"
- elif test "$lt_major" -gt "$need_lt_major"; then
- lt_status="good"
- elif test "$lt_major" -lt "$need_lt_major"; then
- lt_status="bad"
- elif test -z "$lt_minor"; then
- lt_status="bad"
- elif test "$lt_minor" -gt "$need_lt_minor"; then
- lt_status="good"
- elif test "$lt_minor" -lt "$need_lt_minor"; then
- lt_status="bad"
- elif test -z "$lt_patch"; then
- lt_status="bad"
- elif test "$lt_patch" -gt "$need_lt_patch"; then
- lt_status="good"
- elif test "$lt_patch" -lt "$need_lt_patch"; then
- lt_status="bad"
- else
- lt_status="good"
- fi
- if test "$lt_status" != "good"; then
- need_lt_version="$need_lt_major.$need_lt_minor.$need_lt_patch"
- echo "buildconf: libtool version $lt_pversion found."
- echo " $buildhost requires libtool $need_lt_version or newer."
- exit 1
- fi
-fi
-
-fi
-
if test ! -f m4/curl-functions.m4; then
echo "buildconf: cURL m4 macros not found"
exit 1
@@ -389,5 +337,62 @@ fi
echo "buildconf: running automake"
${AUTOMAKE:-automake} -a -c || die "The automake command failed"
+#--------------------------------------------------------------------------
+# Depending on the libtool and automake versions being used, config.guess
+# might not be installed in the subdirectory until automake has finished.
+# So we can not attempt to use it until this very last buildconf stage.
+#
+
+if test ! -f ./config.guess; then
+ echo "buildconf: config.guess not found"
+else
+ buildhost=`./config.guess 2>/dev/null|head -n 1`
+ case $buildhost in
+ *-*-hpux*)
+ need_lt_major=1
+ need_lt_minor=5
+ need_lt_patch=24
+ need_lt_check="yes"
+ ;;
+ esac
+ if test ! -z "$need_lt_check"; then
+ lt_major="$major"
+ lt_minor="$minor"
+ lt_patch="$patch"
+ if test -z "$lt_major"; then
+ lt_status="bad"
+ elif test "$lt_major" -gt "$need_lt_major"; then
+ lt_status="good"
+ elif test "$lt_major" -lt "$need_lt_major"; then
+ lt_status="bad"
+ elif test -z "$lt_minor"; then
+ lt_status="bad"
+ elif test "$lt_minor" -gt "$need_lt_minor"; then
+ lt_status="good"
+ elif test "$lt_minor" -lt "$need_lt_minor"; then
+ lt_status="bad"
+ elif test -z "$lt_patch"; then
+ lt_status="bad"
+ elif test "$lt_patch" -gt "$need_lt_patch"; then
+ lt_status="good"
+ elif test "$lt_patch" -lt "$need_lt_patch"; then
+ lt_status="bad"
+ else
+ lt_status="good"
+ fi
+ if test "$lt_status" != "good"; then
+ need_lt_version="$need_lt_major.$need_lt_minor.$need_lt_patch"
+ echo "buildconf: libtool version $lt_pversion found."
+ echo " $buildhost requires libtool $need_lt_version or newer."
+ rm -f configure
+ exit 1
+ fi
+ fi
+fi
+
+#--------------------------------------------------------------------------
+# Finished succesfully.
+#
+
echo "buildconf: OK"
exit 0