summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-09-11 13:39:06 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-09-11 13:39:06 -0300
commit0c2ccde3060827528e2ad89159b9d737228df85d (patch)
tree2a4dbc81d35e3f1b378b63fc9001d8727257c9d6 /autogen.sh
parenta859e9204cd348f0ef7633f427e47d0a45451b91 (diff)
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.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files 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
-

© 2014-2024 Faster IT GmbH | imprint | privacy policy