2014-11-16 12:07:14 +01:00
|
|
|
#!/bin/sh
|
2010-08-30 22:19:58 -07:00
|
|
|
[ -z "$ACLOCAL" ] && ACLOCAL=aclocal
|
|
|
|
[ -z "$AUTOCONF" ] && AUTOCONF=autoconf
|
|
|
|
[ -z "$AUTOHEADER" ] && AUTOHEADER=autoheader
|
|
|
|
[ -z "$AUTOMAKE" ] && AUTOMAKE=automake
|
2012-08-04 00:38:53 -07:00
|
|
|
[ -z "$LIBTOOLIZE" ] && LIBTOOLIZE=libtoolize
|
2010-08-30 22:19:58 -07:00
|
|
|
|
|
|
|
workingdir=`pwd`
|
2010-12-26 20:18:16 -08:00
|
|
|
rel_srcdir=`dirname "$0"`
|
|
|
|
srcdir=`cd "$rel_srcdir" && pwd`
|
2010-08-30 22:19:58 -07:00
|
|
|
|
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
run_cmd() {
|
|
|
|
echo "$@"
|
|
|
|
"$@" || exit $!
|
|
|
|
}
|
|
|
|
|
2012-08-04 00:38:53 -07:00
|
|
|
run_cmd $LIBTOOLIZE --copy --force
|
2010-08-30 22:19:58 -07:00
|
|
|
|
|
|
|
run_cmd $ACLOCAL --force -I m4 $ACLOCAL_FLAGS
|
|
|
|
run_cmd $AUTOCONF --force
|
|
|
|
run_cmd $AUTOHEADER --force
|
|
|
|
run_cmd $AUTOMAKE --add-missing --copy --force-missing
|
2010-12-26 20:18:16 -08:00
|
|
|
|
2011-04-16 12:31:54 -07:00
|
|
|
cd $workingdir
|
|
|
|
|
|
|
|
run_configure=true
|
2011-09-28 23:02:23 -07:00
|
|
|
configure_args="--enable-dev-mode"
|
2010-12-26 20:18:16 -08:00
|
|
|
if [ "$1" ]; then
|
2011-04-16 12:31:54 -07:00
|
|
|
:
|
2010-12-26 20:18:16 -08:00
|
|
|
else
|
2011-04-16 12:31:54 -07:00
|
|
|
echo "Done. Run '$rel_srcdir/configure --enable-dev-mode' to configure and then 'make' to build"
|
|
|
|
run_configure=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $run_configure; then
|
|
|
|
run_cmd $rel_srcdir/configure $configure_args "$@"
|
2010-12-26 20:18:16 -08:00
|
|
|
fi
|