2011-06-01 18:59:52 +00:00
|
|
|
#!/bin/sh
|
2009-05-28 23:47:37 +00:00
|
|
|
# Run the autotools bootstrap sequence to create the configure script
|
2009-05-13 21:55:16 +00:00
|
|
|
|
2011-06-01 18:59:52 +00:00
|
|
|
# Abort execution on error
|
2009-12-04 08:50:55 +00:00
|
|
|
set -e
|
|
|
|
|
2011-06-01 18:59:52 +00:00
|
|
|
if which libtoolize > /dev/null; then
|
|
|
|
libtoolize="libtoolize"
|
|
|
|
elif which glibtoolize >/dev/null; then
|
|
|
|
libtoolize="glibtoolize"
|
2009-05-13 21:55:16 +00:00
|
|
|
else
|
2011-06-01 18:59:52 +00:00
|
|
|
echo "$0: Error: libtool is required" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "nosubmodule" ]; then
|
|
|
|
SKIP_SUBMODULE=1
|
|
|
|
elif [ -n "$1" ]; then
|
|
|
|
echo "$0: Illegal argument $1"
|
|
|
|
echo "USAGE: $0 [nosubmodule]"
|
|
|
|
exit 1
|
2009-05-13 21:55:16 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# bootstrap the autotools
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
aclocal
|
|
|
|
${libtoolize} --automake --copy
|
|
|
|
autoconf
|
|
|
|
autoheader
|
2009-06-30 21:44:48 +00:00
|
|
|
automake --gnu --add-missing --copy
|
2009-05-13 21:55:16 +00:00
|
|
|
)
|
2009-04-24 16:14:21 +00:00
|
|
|
|
2011-06-01 18:59:52 +00:00
|
|
|
if [ -n "$SKIP_SUBMODULE" ]; then
|
2011-05-31 08:52:50 +00:00
|
|
|
echo "Skipping submodule setup"
|
2011-06-01 18:59:52 +00:00
|
|
|
else
|
2010-12-22 13:29:34 +00:00
|
|
|
echo "Setting up submodules"
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
fi
|
|
|
|
|
2011-06-01 18:59:52 +00:00
|
|
|
echo "Bootstrap complete. Quick build instructions:"
|
2013-07-06 05:12:45 +00:00
|
|
|
echo "./configure ...."
|