diff --git a/autogen.sh b/autogen.sh index 9d0ebe9..9cb502e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,11 @@ rm -rf autom4te.cache aclocal -I m4 autoheader -libtoolize --copy +if glibtoolize --version >/dev/null 2>/dev/null; then + LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize} +else + LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} +fi +$LIBTOOLIZE --copy automake --add-missing --copy autoconf