summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-01-23 11:58:19 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-03-20 15:49:13 +0100
commite4ca9eb2bf7371fa9c1ac8951d298c989cb5aa28 (patch)
treedcbae1ca406d7c84480127315999dd66e1b6dba5 /build
parent4d0d9ca396378813f8559f479ff9a64b0881a627 (diff)
downloadastra-e4ca9eb2bf7371fa9c1ac8951d298c989cb5aa28.tar.gz
astra-e4ca9eb2bf7371fa9c1ac8951d298c989cb5aa28.tar.bz2
astra-e4ca9eb2bf7371fa9c1ac8951d298c989cb5aa28.tar.xz
astra-e4ca9eb2bf7371fa9c1ac8951d298c989cb5aa28.zip
Let autogen.sh use either glibtoolize or libtoolize on macOS
This is necessary since conda's libtool installs libtoolize on macOS.
Diffstat (limited to 'build')
-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