Skip to content

Commit

Permalink
Default to glibtoolize instead of libtoolize if it exists,
Browse files Browse the repository at this point in the history
and also make it customizable through the environment variable
$LIBTOOLIZE.

Fixes autogen.sh issues on OS X, which ships its own
(incompatible) libtoolize.

R=jeff
  • Loading branch information
sesse committed Mar 10, 2016
1 parent 0800b1e commit 2b9152d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autogen.sh
Expand Up @@ -2,6 +2,11 @@
rm -rf autom4te.cache
aclocal -I m4
autoheader
libtoolize --copy
if glibtoolize --version >/dev/null 2>/dev/null; then
LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
else
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
fi
$LIBTOOLIZE --copy
automake --add-missing --copy
autoconf

0 comments on commit 2b9152d

Please sign in to comment.