blob: befd429487fc5ac9bb3494800f4eeaef1e607663 [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
berto@igalia.com806d83d2013-09-11 09:54:19 +00005srcdir=`dirname "$0"`
alp@webkit.org278f1252007-12-27 06:05:21 +00006test -z "$srcdir" && srcdir=.
7
alp@webkit.orga37ed5b2008-01-05 10:23:01 +00008ORIGDIR=`pwd`
berto@igalia.com806d83d2013-09-11 09:54:19 +00009cd "$srcdir" || exit 1
alp@webkit.org278f1252007-12-27 06:05:21 +000010
alp@webkit.org278f1252007-12-27 06:05:21 +000011touch README INSTALL
12
xan@webkit.org3d6bfc32011-01-03 23:43:40 +000013if test -z `which autoreconf`; then
14 echo "Error: autoreconf not found, please install it."
15 exit 1
16fi
xan@webkit.orge8f45632011-01-03 23:52:04 +000017autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $?
berto@igalia.com8be54f72013-09-11 11:15:54 +000018rm -rf autom4te.cache
alp@webkit.org278f1252007-12-27 06:05:21 +000019
berto@igalia.com806d83d2013-09-11 09:54:19 +000020cd "$ORIGDIR" || exit 1
alp@webkit.orga37ed5b2008-01-05 10:23:01 +000021
xan@webkit.org65112d72012-03-28 14:19:14 +000022if test -z "$NOCONFIGURE"; then
berto@igalia.com806d83d2013-09-11 09:54:19 +000023 "$srcdir"/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
xan@webkit.org65112d72012-03-28 14:19:14 +000024fi
25