summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-09-25 19:47:25 +0200
committerGravatar Martin Szulecki2010-09-25 19:47:25 +0200
commit8dff982f54ea9fc2a3a4366b1958120d89f862b5 (patch)
treee33a8f4deeaa3de480142147f8ce8a32fc3abbc9
parent87cba8cf076d7441123a25ed7079690e399dcc61 (diff)
downloadlibimobiledevice-8dff982f54ea9fc2a3a4366b1958120d89f862b5.tar.gz
libimobiledevice-8dff982f54ea9fc2a3a4366b1958120d89f862b5.tar.bz2
Try to use glibtoolize if possible in autogen.sh to fix OSX build
-rwxr-xr-xautogen.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index cb3887a..3292973 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,11 @@
#!/bin/sh
+gprefix=`which glibtoolize 2>&1 >/dev/null`
+if [ $? -eq 0 ]; then
+ glibtoolize --force
+else
+ libtoolize --force
+fi
aclocal -I m4
-libtoolize
autoheader
automake --add-missing
autoconf