[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] bootstrap: accommodate older libtool
From: |
Eric Blake |
Subject: |
[PATCH] bootstrap: accommodate older libtool |
Date: |
Thu, 19 Apr 2012 17:00:32 -0600 |
RHEL 5 still ships with libtool 1.5.22, where libtoolize lacks the
--install option but has that behavior by default. And gnulib's
DEPENDENCIES file states that we still support that old of libtool
as our minimum version.
* build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
Reported by Daniel P. Berrange.
Signed-off-by: Eric Blake <address@hidden>
---
I tested that this fixed the libvirt-on-RHEL5 issue (I hadn't seen
it earlier because I had been doing incremental builds, rather than
fresh clones, so the files were already installed in my tree).
ChangeLog | 6 ++++++
build-aux/bootstrap | 12 +++++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f706167..17d6fb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-19 Eric Blake <address@hidden>
+
+ bootstrap: accommodate older libtool
+ * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
+ Reported by Daniel P. Berrange.
+
2012-04-19 Jim Meyering <address@hidden>
announce-gen: avoid failure due to lack of Digest::SHA1
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 4afc6c4..5aa73cc 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
# Print a version string.
-scriptversion=2012-04-19.14; # UTC
+scriptversion=2012-04-19.22; # UTC
# Bootstrap this package from checked-out sources.
@@ -762,9 +762,15 @@ fi
# Autoreconf runs aclocal before libtoolize, which causes spurious
# warnings if the initial aclocal is confused by the libtoolized
# (or worse out-of-date) macro directory.
+# libtoolize 1.9b added the --install option; but we support back
+# to libtoolize 1.5.22, where the install action was default.
if test $use_libtool = 1; then
- echo "running: $LIBTOOLIZE --copy --install"
- $LIBTOOLIZE --copy --install
+ install=
+ case $($LIBTOOLIZE --help) in
+ *--install*) install=--install ;;
+ esac
+ echo "running: $LIBTOOLIZE $install --copy"
+ $LIBTOOLIZE $install --copy
fi
version_controlled_file() {
--
1.7.7.6