From 18ae3c58d51547bc087e7a2b85b63dd87d395f25 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 25 Apr 2009 18:52:24 +0000 Subject: autogen: try to detect libtoolize Signed-off-by: Michael Krelin --- (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index ba27501..bf32a35 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,9 @@ #!/bin/sh -WANT_AUTOMAKE=1.8 -export WANT_AUTOMAKE -libtoolize -f \ +tool_libtoolize="$(type -P glibtoolize || type -P libtoolize)" +if test -z "$tool_libtoolize" ; then + echo "Failed to find libtoolize." ; exit 1; +fi + "$tool_libtoolize" -f \ && aclocal \ && autoheader \ && automake -a \ -- cgit v0.9.0.2