small MacOS X fix for autogen.sh
diff --git a/ChangeLog b/ChangeLog
index 8780951..6ec7b9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-11 David Turner <david@freetype.org>
+
+ * autogen.sh: small fix to get it working on Mac OS X properly,
+ the issue is that GNU libtool is called "glibtool" on this platform,
+ and we must call "glibtoolize", since "libtoolize" doesn't exist
+
2007-01-10 David Turner <david@freetype.org>
* all-sources: tagging all sources with VER-2-3-0-RC1 and
diff --git a/autogen.sh b/autogen.sh
index 2cc9471..3e09c1f 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -40,8 +40,16 @@ echo "generating \`configure.ac'"
sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
< configure.raw > configure.ac
+# on MacOS X, the GNU libtool is named "glibtool"
+HOSTOS=$(uname)
+LIBTOOLIZE=libtoolize
+if [ "$HOSTOS"x == Darwinx ] ; then
+ LIBTOOLIZE=glibtoolize
+fi
+
+
run aclocal -I . --force
-run libtoolize --force --copy
+run $LIBTOOLIZE --force --copy
run autoconf --force
chmod +x mkinstalldirs