blob: 12c6a4c7e97b4a1c48b92bdad4afeff1a9349ccd [file] [log] [blame]
alp@webkit.org278f1252007-12-27 06:05:21 +00001#! /bin/sh
2
alp@webkit.orga37ed5b2008-01-05 10:23:01 +00003# Allow invocation from a separate build directory; in that case, we change
4# to the source directory to run the auto*, then change back before running configure
alp@webkit.org278f1252007-12-27 06:05:21 +00005srcdir=`dirname $0`
6test -z "$srcdir" && srcdir=.
7
alp@webkit.orga37ed5b2008-01-05 10:23:01 +00008ORIGDIR=`pwd`
alp@webkit.org278f1252007-12-27 06:05:21 +00009cd $srcdir
10
xan@webkit.org3d6bfc32011-01-03 23:43:40 +000011rm -f $top_srcdir/autom4te.cache
alp@webkit.org278f1252007-12-27 06:05:21 +000012
13touch README INSTALL
14
xan@webkit.org3d6bfc32011-01-03 23:43:40 +000015if test -z `which autoreconf`; then
16 echo "Error: autoreconf not found, please install it."
17 exit 1
18fi
xan@webkit.orge8f45632011-01-03 23:52:04 +000019autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $?
alp@webkit.org278f1252007-12-27 06:05:21 +000020
alp@webkit.orga37ed5b2008-01-05 10:23:01 +000021cd $ORIGDIR || exit 1
22
xan@webkit.org65112d72012-03-28 14:19:14 +000023if test -z "$NOCONFIGURE"; then
24 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
25fi
26