summaryrefslogtreecommitdiffstats
path: root/build/linux/autogen.sh
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-03-20 15:52:37 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-03-20 15:52:37 +0100
commit53eea5892cd1d51f802533adb9ea94e04b4ce86b (patch)
treeb6875f0aab543e1551c58bfe12d630717894284c /build/linux/autogen.sh
parent4d0d9ca396378813f8559f479ff9a64b0881a627 (diff)
parentcd32957185094680b84014e1ea8411ce6b142f74 (diff)
downloadastra-53eea5892cd1d51f802533adb9ea94e04b4ce86b.tar.gz
astra-53eea5892cd1d51f802533adb9ea94e04b4ce86b.tar.bz2
astra-53eea5892cd1d51f802533adb9ea94e04b4ce86b.tar.xz
astra-53eea5892cd1d51f802533adb9ea94e04b4ce86b.zip
Merge branch 'macOS'
Diffstat (limited to 'build/linux/autogen.sh')
-rwxr-xr-xbuild/linux/autogen.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/linux/autogen.sh b/build/linux/autogen.sh
index 544fdeb..bb3b5cc 100755
--- a/build/linux/autogen.sh
+++ b/build/linux/autogen.sh
@@ -12,8 +12,11 @@ if test $? -ne 0; then
exit 1
fi
-case `uname` in Darwin*) LIBTOOLIZEBIN=glibtoolize ;;
- *) LIBTOOLIZEBIN=libtoolize ;; esac
+case `uname` in
+ Darwin*)
+ test -x "`which glibtoolize 2>/dev/null`" && LIBTOOLIZEBIN=glibtoolize || LIBTOOLIZEBIN=libtoolize ;;
+ *)
+ LIBTOOLIZEBIN=libtoolize ;; esac
$LIBTOOLIZEBIN --install --force > /dev/null 2>&1
if test $? -ne 0; then