From: Malcolm Tredinnick Date: Sat, 3 May 2003 11:02:31 +0000 (+0000) Subject: Allow users to specify the binary to run instead of libtoolize by checking X-Git-Tag: GNOME_COMMON_2_4_0~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd7e150fbf9603c20502dfb41234b03266ea376c;p=platform%2Fupstream%2Fgnome-common.git Allow users to specify the binary to run instead of libtoolize by checking * autogen.sh: Allow users to specify the binary to run instead of libtoolize by checking the value of $LIBTOOLIZE. This is apparently an issue sometimes on MacOS X and fixes bug #111917. svn path=/trunk/; revision=2834 --- diff --git a/macros/ChangeLog b/macros/ChangeLog index be94cbb..72c1287 100644 --- a/macros/ChangeLog +++ b/macros/ChangeLog @@ -1,3 +1,9 @@ +2003-05-03 Malcolm Tredinnick + + * autogen.sh: Allow users to specify the binary to run instead of + libtoolize by checking the value of $LIBTOOLIZE. This is apparently an + issue sometimes on MacOS X and fixes bug #111917. + 2003-03-20 Frederic Crozat * autogen.sh: use GNOME2_DIR, not GNOME2_PATH which can be diff --git a/macros/autogen.sh b/macros/autogen.sh index 6c45455..199521f 100644 --- a/macros/autogen.sh +++ b/macros/autogen.sh @@ -37,8 +37,11 @@ fi } } +# Set this variable is libttoolize is called something else (like glibtoolize +# on some MacOS X systems). Leave it unset otherwise. +: ${LIBTOOLIZE=libtoolize} (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { - (libtool --version) < /dev/null > /dev/null 2>&1 || { + ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME." echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz" @@ -169,7 +172,7 @@ do if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." - libtoolize --force --copy + $LIBTOOLIZE --force --copy fi fi echo "Running aclocal-1.4 $aclocalinclude ..."