diff options
author | Javier <jjardon@gnome.org> | 2013-01-08 16:40:48 +0000 |
---|---|---|
committer | Javier <jjardon@gnome.org> | 2013-01-08 16:46:39 +0000 |
commit | 42a60d2006047114273fb09a5e3b6fe2b08fae6f (patch) | |
tree | 1ee8369407b78ac58f95a24c06fdd584eb26684d /autogen.sh | |
parent | 645d0943d61885d714e39652b2af65cee4741d17 (diff) | |
download | libsoup-42a60d2006047114273fb09a5e3b6fe2b08fae6f.tar.gz libsoup-42a60d2006047114273fb09a5e3b6fe2b08fae6f.tar.bz2 libsoup-42a60d2006047114273fb09a5e3b6fe2b08fae6f.zip |
autogen.sh: Use autoreconf instead gnome-autogen
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 42 |
1 files changed, 27 insertions, 15 deletions
@@ -1,21 +1,33 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. -PKG_NAME="libsoup" +olddir=`pwd` +cd $srcdir -(test -f $srcdir/configure.ac \ - && test -f $srcdir/libsoup.doap \ - && test -d $srcdir/libsoup) || { - echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level $PKG_NAME directory" - exit 1 -} +AUTORECONF=`which autoreconf` +if test -z $AUTORECONF; then + echo "*** No autoreconf found, please intall it ***" + exit 1 +fi -which gnome-autogen.sh || { - echo "You need to install gnome-common" - exit 1 -} -. gnome-autogen.sh +INTLTOOLIZE=`which intltoolize` +if test -z $INTLTOOLIZE; then + echo "*** No intltoolize found, please install the intltool package ***" + exit 1 +fi + +GTKDOCIZE=`which gtkdocize` +if test -z $GTKDOCIZE; then + echo "*** No GTK-Doc found, please install it ***" + exit 1 +fi + +gtkdocize || exit $? +autopoint --force +AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose + +cd $olddir +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" |