[Xfce4-commits] <xfce4-dev-tools:master> Add support for LT_PREREQ (bug #6920).
Nick Schermer
noreply at xfce.org
Thu Nov 3 19:30:01 CET 2011
Updating branch refs/heads/master
to 56cde58238898e5659c39f5e713ee0362ba772d9 (commit)
from de35c92f942ca617e53c79e7d519a67a40d9cac3 (commit)
commit 56cde58238898e5659c39f5e713ee0362ba772d9
Author: Nick Schermer <nick at xfce.org>
Date: Thu Nov 3 19:27:32 2011 +0100
Add support for LT_PREREQ (bug #6920).
Support LT_PREREQ as the new alternative of AC_PROG_LIBTOOL. If
the latter is used, show a message with information how to switch
to LT_PREREQ.
scripts/xdt-autogen.in.in | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index a7dbd3f..0ba203f 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -415,7 +415,25 @@ if test -z "${XDT_PROG_LIBTOOLIZE}"; then
fi
fi
for configure_ac_file in $CONFIGURE_AC_FILES; do
+ runlibtoolize=0
if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then
+ cat >&2 <<EOF
+xdt-autogen: It is recommended to use LT_PREREQ([2.2.6]) and
+ LT_INIT([disable-static]) in your configure.ac
+ file and remove AC_PROG_LIBTOOL and AC_DISABLE_STATIC.
+
+ See http://bugzilla.xfce.org/show_bug.cgi?id=6920 for
+ more information.
+
+EOF
+ runlibtoolize=1
+ fi;
+
+ if grep -q "^LT_PREREQ" "${configure_ac_file}"; then
+ runlibtoolize=1
+ fi;
+
+ if test $runlibtoolize -eq 1; then
(${XDT_PROG_LIBTOOLIZE} --version) </dev/null >/dev/null 2>&0 || {
cat >&2 <<EOF
xdt-autogen: You must have "libtool" installed on your system.
@@ -608,7 +626,7 @@ XGETTEXT_ARGS = @XGETTEXT_ARGS@
fi
fi
- if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then
+ if grep -q -e "^AC_PROG_LIBTOOL" -e "^LT_PREREQ" "${configure_ac_file}"; then
(echo "Running ${XDT_PROG_LIBTOOLIZE} --force --copy..." &&
cd "${source_dir}" &&
${XDT_PROG_LIBTOOLIZE} --force --copy) || exit 1
More information about the Xfce4-commits
mailing list