]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
libtoolize is called glibtoolize on OSX so check for it too.
authorMike McQuaid <mike@mikemcquaid.com>
Tue, 5 Oct 2010 19:52:54 +0000 (20:52 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Sat, 4 Dec 2010 22:57:15 +0000 (23:57 +0100)
autogen.sh

index 4e9fa3b60ff6edcaa025111f0d7448e827e413c3..a3a63685611f2db93282c57bcd92d769dd5c8dec 100755 (executable)
@@ -47,7 +47,12 @@ fi
        DIE=1
 }
 
-(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
+LIBTOOLIZE=`which libtoolize`
+if test -n $LIBTOOLIZE; then
+       LIBTOOLIZE=`which glibtoolize`
+fi
+
+($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
        echo
        echo "You must have libtoolize installed to compile $PROJECT."
        echo "Install the libtool package from ftp.gnu.org or a mirror."
@@ -68,7 +73,7 @@ if test -z "$*"; then
         echo "to pass any to it, please specify them on the $0 command line."
 fi
 
-libtoolize --copy --force
+$LIBTOOLIZE --copy --force
 
 $ACLOCAL $ACLOCAL_FLAGS