Commit c63c6f726587d24bf6b9ac6ac1e1ae62142512a7

suzuki toshiya 2011-06-19T22:54:40

[autogen.sh] Reflect environment variable LIBTOOLIZE.

diff --git a/ChangeLog b/ChangeLog
index 917e08b..0be7b61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	[autogen.sh] Reflect environment variable LIBTOOLIZE.
+
 2011-06-18  Werner Lemberg <wl@gnu.org>
 
 	Update license documentation.
diff --git a/autogen.sh b/autogen.sh
index c28a51c..9f2fb6a 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -118,9 +118,12 @@ fi
 
 # On MacOS X, the GNU libtool is named `glibtool'.
 HOSTOS=`uname`
-LIBTOOLIZE=libtoolize
-if test "$HOSTOS"x = Darwinx; then
+if test "$LIBTOOLIZE"x != x; then
+  :
+elif test "$HOSTOS"x = Darwinx; then
   LIBTOOLIZE=glibtoolize
+else
+  LIBTOOLIZE=libtoolize
 fi
 
 if test "$ACLOCAL"x = x; then