From: Noah Watkins Date: Sun, 21 Jul 2013 01:41:38 +0000 (-0700) Subject: autogen.sh: use glibtoolize when available X-Git-Tag: v0.73~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F827%2Fhead;p=ceph.git autogen.sh: use glibtoolize when available libtoolize is called glibtoolize on osx. Signed-off-by: Noah Watkins --- diff --git a/autogen.sh b/autogen.sh index d233e0f85853..83c0104450d2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,10 +13,20 @@ check_for_pkg_config() { exit 1 } +if [ `which libtoolize` ]; then + LIBTOOLIZE=libtoolize +elif [ `which glibtoolize` ]; then + LIBTOOLIZE=glibtoolize +else + echo "Error: could not find libtoolize" + echo " Please install libtoolize or glibtoolize." + exit 1 +fi + rm -f config.cache aclocal -I m4 --install check_for_pkg_config -libtoolize --force --copy +$LIBTOOLIZE --force --copy autoconf autoheader automake -a --add-missing -Wall