X-Git-Url: http://cgit.sxemacs.org/?p=sxemacs;a=blobdiff_plain;f=autogen.sh;h=1b64347f2bfb9e9649d29ef3a24777c0e3e218fe;hp=cdfbbf1eab50daf671e89bb730921ff9f0182616;hb=d6cb8fad24fdb64c5c6b7f1b0cfa09853b93c973;hpb=3bbdbd725c0eedabcb84be9f9738f6c3610614e0 diff --git a/autogen.sh b/autogen.sh index cdfbbf1..1b64347 100755 --- a/autogen.sh +++ b/autogen.sh @@ -116,6 +116,14 @@ test -z "$ACLOCAL" && type aclocal >/dev/null 2>&1 && ACLOCAL=aclocal export ACLOCAL test -z "$LIBTOOL" && type libtool >/dev/null 2>&1 && LIBTOOL=libtool export LIBTOOL +if test -z "$LIBTOOLIZE"; then + if type glibtoolize >/dev/null 2>&1; then + LIBTOOLIZE=glibtoolize + elif type libtoolize >/dev/null 2>&1; then + LIBTOOLIZE=libtoolize + fi +fi +export LIBTOOLIZE autoconf_ver=$($AUTOCONF --version 2>/dev/null | head -n1) if test -z "$autoconf_ver"; then @@ -143,9 +151,11 @@ if test -z "$aclocal_ver"; then exit 1 fi libtool_ver=$($LIBTOOL --version 2>/dev/null | head -n1) +if test -z "$libtool_ver" -a -n "$LIBTOOLIZE"; then + libtool_ver=$($LIBTOOLIZE --version 2>/dev/null | head -n1) +fi if test -z "$libtool_ver"; then - echo Could not determine libtool - exit 1 + echo WARNING: Could not determine libtool fi # When things go wrong... get a bigger hammer! @@ -180,11 +190,6 @@ m4_define([4UTOMAKE_VERSION], [$automake_ver]) m4_define([4IBTOOL_VERSION], [$libtool_ver]) EOF -if type glibtoolize 2>/dev/null; then - LIBTOOLIZE=glibtoolize -else - LIBTOOLIZE=libtoolize -fi # using libtoolize as we did before doesn't work anymore, so just mkdir --Horst test -d libtld/m4 || mkdir -p libltdl/m4