Skip to content
Browse files

Merge pull request #44 from cherokee/fix-for-missing-libtool-error-on…

…-macos-x

Fix for Issue #43: checks for the existence of glibtool using hash rather than testing for the hardcoded path /usr/bin/glibtool. This ensures that glibtool and glibtoolize that are not located in /usr/bin (e.g. /usr/local/bin) can be found as long as their root folder is contained in the $PATH environment variable.

Thanks mdavid!
  • Loading branch information...
2 parents 97e24f0 + 7fa9e44 commit e43de1b004f4954380f4b4ea272ea26ef2e81468 @skinkie skinkie committed Dec 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 autogen.sh
View
3 autogen.sh
@@ -29,7 +29,8 @@ test -z "$AUTOMAKE" && AUTOMAKE=automake
test -z "$ACLOCAL" && ACLOCAL=aclocal
test -z "$AUTOCONF" && AUTOCONF=autoconf
test -z "$AUTOHEADER" && AUTOHEADER=autoheader
-if [ -x /usr/bin/glibtool ]; then
+
+if hash glibtool 2>&-; then
test -z "$LIBTOOL" && LIBTOOL=glibtool
test -z "$LIBTOOLIZE" && LIBTOOLIZE=glibtoolize
else

0 comments on commit e43de1b

Please sign in to comment.
Something went wrong with that request. Please try again.