aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authortuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2011-11-04 06:59:54 +0000
committertuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2011-11-04 06:59:54 +0000
commit8e332e7c3557e0f6eff2dd728415c4471910ace4 (patch)
treebc8adabb1a97fabf65df5d68bcd17b4df7555485 /bootstrap
parent9e44ebe5127e42fd9848e94adb331c8114ab3c34 (diff)
downloadusrsctp-8e332e7c3557e0f6eff2dd728415c4471910ace4.tar.gz
Make bootstrap work on different platforms. Get it compiling from
make dist generated tarball.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap19
1 files changed, 16 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index ee5236b1..ae4753eb 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,19 @@
#! /bin/sh
-set -x
-aclocal
-glibtoolize
+if [ -e /usr/bin/glibtoolize ] ; then
+ glibtoolize --force
+elif [ -e /usr/bin/libtoolize ] ; then
+ libtoolize --force
+elif [ -e /usr/local/bin/libtoolize ] ; then
+ libtoolize --force
+else
+ echo "ERROR: I cannot find libtoolize or glibtoolize!"
+ exit 1
+fi
+
+if [ -e /usr/local/share/aclocal ] ; then
+ aclocal -I /usr/local/share/aclocal
+else
+ aclocal -I /usr/share/aclocal
+fi
autoconf
automake --foreign --add-missing --copy