summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-11-30 19:31:50 +0100
committerYang Tse <yangsita@gmail.com>2011-11-30 19:33:38 +0100
commit7e02f7fdee299c04b6a4fb46a562b34a6b183446 (patch)
treea6590240dfd7f2d67917412b748cce6d8be883f9 /buildconf
parentbd94807003964ed1a3531d22f8e6712ea9fdc887 (diff)
downloadcurl-7e02f7fdee299c04b6a4fb46a562b34a6b183446.tar.gz
buildconf: fix libtool 1.5.x warnings triggered with autoconf 2.6x or later
Using libtool 1.5.x (x < 26) with autoconf 2.6x or later generates warnings due to some libtool variables not following naming convention for variables that will be cached. This is addressed renaming a couple of variables to make these follow expected naming convention.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf15
1 files changed, 15 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index bdd171216..bc448f936 100755
--- a/buildconf
+++ b/buildconf
@@ -276,6 +276,10 @@ fi
# perl check
#
PERL=`findtool ${PERL:-perl}`
+if test -z "$PERL"; then
+ echo "buildconf: perl not found"
+ exit 1
+fi
#--------------------------------------------------------------------------
# Remove files generated on previous buildconf/configure run.
@@ -311,6 +315,7 @@ for fname in .deps \
libcurl.pc \
libtool \
libtool.m4 \
+ libtool.m4.bak \
ltmain.sh \
ltoptions.m4 \
ltsugar.m4 \
@@ -329,6 +334,16 @@ done
echo "buildconf: running libtoolize"
$libtoolize --copy --automake --force || die "The libtoolize command failed"
+if test "$lt_major" = "1" && test "$lt_minor" = "5"; then
+ if test -z "$lt_patch" || test "$lt_patch" -lt "26"; then
+ echo "buildconf: running libtoolize hack to rename some variables"
+ $PERL -i.bak -pe \
+ 's/lt_prog_compiler_pic_works/lt_cv_prog_compiler_pic_works/g; \
+ s/lt_prog_compiler_static_works/lt_cv_prog_compiler_static_works/g;' \
+ m4/libtool.m4
+ fi
+fi
+
if test ! -f m4/curl-functions.m4; then
echo "buildconf: cURL m4 macros not found"
exit 1