[2.30] branch gnome-applets
[jhbuild/xnox.git] / autogen.sh
blob1e6e02f4fc8010207b1b0300d7a5496fca9507bd
1 #! /bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 PKG_NAME=jhbuild
9 (test -f $srcdir/jhbuild/main.py) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level $PKG_NAME directory"
12 exit 1
15 which gnome-autogen.sh || {
16 echo "If you want to build documentation, you need to install gnome-common"
17 echo "If you don't, try:"
18 echo " make -f Makefile.plain install"
20 exit 1
23 touch $srcdir/ChangeLog # required for automake
25 export PKG_NAME
26 REQUIRED_AUTOCONF_VERSION=2.57 \
27 REQUIRED_AUTOMAKE_VERSION=1.8 \
28 REQUIRED_INTLTOOL_VERSION=0.35.0 \
29 REQUIRED_PKG_CONFIG_VERSION=0.16.0 \
30 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes gnome-autogen.sh $@
31 if test "$?" != "0"
32 then
33 cat << _EOF_
35 Note that autotools are only required to build documentation;
36 type make -f Makefile.plain to build or install JHBuild without
37 the documentation
38 _EOF_