From 0c2ccde3060827528e2ad89159b9d737228df85d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 11 Sep 2015 13:39:06 -0300 Subject: [PATCH] Detect when libtoolize is called glibtoolize. It's the case on Darwin, and might be in other BSDs as well. As referred in #268. Supersedes PR #269. --- autogen.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 7a2624cd..17ad3dab 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,13 @@ #!/bin/sh +if glibtoolize --version &> /dev/null +then libtoolize=glibtoolize +else libtoolize=libtoolize +fi + aclocal -I m4 autoconf autoheader -libtoolize --copy --force +$libtoolize --copy --force automake --add-missing --copy -