Skip to content

Commit

Permalink
checks for the existence of glibtool using hash rather than testing f…
Browse files Browse the repository at this point in the history
…or 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.
  • Loading branch information
mdavid committed Dec 1, 2012
1 parent 97e24f0 commit 7fa9e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autogen.sh
Expand Up @@ -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
Expand Down

0 comments on commit 7fa9e44

Please sign in to comment.