--- ./autogen.sh.orig	2004-10-01 14:23:18.000000000 +0900
+++ ./autogen.sh	2011-02-28 18:52:53.000000000 +0900
@@ -46,7 +46,7 @@
 }
 
 (grep "^AM_PROG_LIBTOOL" configure.in >/dev/null) && {
-  (libtool --version) < /dev/null > /dev/null 2>&1 || {
+  (glibtool --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "**Error**: You must have \`libtool' installed to compile KAKASI."
     echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.3.tar.gz"
@@ -69,8 +69,8 @@
 echo "Generating configure script and Makefiles for KAKASI."
 
 if grep "^AC_PROG_LIBTOOL" configure.in >/dev/null; then
-  echo "Running libtoolize..."
-  libtoolize --force --copy
+  echo "Running glibtoolize..."
+  glibtoolize --force --copy
 fi
 echo "Running aclocal ..."
 aclocal -I .
@@ -81,8 +81,3 @@
 echo "Running autoconf ..."
 autoconf
 
-echo "Configuring KAKASI."
-conf_flags="--enable-maintainer-mode"
-echo Running $./configure $conf_flags "$@" ...
-./configure $conf_flags "$@"
-echo "Now type 'make' to compile KAKASI."
