diff options
author | Khem Raj <raj.khem@gmail.com> | 2008-05-04 08:13:36 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2008-05-04 08:13:36 +0000 |
commit | b08e6dca0f71512bf1460b2581a2cc958b7d5552 (patch) | |
tree | 43c69b02dc6c8d4dcc88e9ae096a63f8df0de32f /packages/webkit/webkit-gtk/autogen.sh | |
parent | 8913870ad8c86c018c1606b99725dda6a617040c (diff) | |
parent | c3add3c362957b2b0aeb3c18daff5e393a3e5091 (diff) |
merge of 'a147eede058360494dc7116dfa7a3de17b92123b'
and 'd7e8ac4147edec9f5d58ed1abdde271e7d4c7b29'
Diffstat (limited to 'packages/webkit/webkit-gtk/autogen.sh')
-rw-r--r-- | packages/webkit/webkit-gtk/autogen.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/packages/webkit/webkit-gtk/autogen.sh b/packages/webkit/webkit-gtk/autogen.sh new file mode 100644 index 0000000000..a929538d20 --- /dev/null +++ b/packages/webkit/webkit-gtk/autogen.sh @@ -0,0 +1,57 @@ +#! /bin/sh + +# Allow invocation from a separate build directory; in that case, we change +# to the source directory to run the auto*, then change back before running configure +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +DIE=0 + +(autoconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" + DIE=1 +} + +(automake --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have automake installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" + DIE=1 +} + +LIBTOOLIZE=libtoolize +($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + LIBTOOLIZE=glibtoolize + ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have libtool installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/" + DIE=1 + } +} + +if test "$DIE" -eq 1; then + exit 1 +fi + +rm -rf $top_srcdir/autom4te.cache + +touch README INSTALL + +aclocal || exit $? +$LIBTOOLIZE --force || exit $? +autoheader || exit $? +automake --foreign --add-missing || exit $? +autoconf || exit $? + +cd $ORIGDIR || exit 1 + +$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? |