build: Adjust autogen.sh to 'libtoolize' name on Darwin.
authorLudovic Courtès <ludo@gnu.org>
Mon, 6 Oct 2014 13:22:44 +0000 (15:22 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Oct 2014 13:23:10 +0000 (15:23 +0200)
Reported by Daniel Llorens.

* autogen.sh: Use 'glibtoolize' on Darwin.

autogen.sh

index af1ade6..2e39fb5 100755 (executable)
@@ -15,7 +15,15 @@ autoconf --version
 echo ""
 automake --version
 echo ""
-libtoolize --version
+
+# Typical MacOS X installations rename 'libtoolize' to 'glibtoolize', so
+# adjust to that.
+if test "`uname -s`" = "Darwin"; then
+  glibtoolize --version
+else
+  libtoolize --version
+fi
+
 echo ""
 ${M4:-m4} --version
 echo ""