From 22e82f0cb66f6ba5ba012078faf454a7c4a142de Mon Sep 17 00:00:00 2001 From: moritz Date: Sat, 1 Aug 2009 15:26:28 +0000 Subject: [PATCH] Fix for non-libtool project. git-svn-id: https://svn.xiph.org/trunk/ezstream@16376 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- autogen.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 14f131d..16c4f59 100755 --- a/autogen.sh +++ b/autogen.sh @@ -10,6 +10,8 @@ if [ ! -f "./`basename $0`" ]; then exit 1 fi +USE_LIBTOOL="$(grep AC_PROG_LIBTOOL ./configure.* 2> /dev/null)" + EXTRA= if [ -d m4 ]; then EXTRA="-I m4" @@ -25,8 +27,10 @@ AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \ autoconf || exit 1 AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \ autoheader || exit 1 -AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \ - libtoolize --automake -c -f || exit 1 +if [ -n "${USE_LIBTOOL}" ]; then + AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \ + libtoolize --automake -c -f || exit 1 +fi AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \ automake -a -c || exit 1