2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
7 PKG_NAME="gobject-introspection"
8 REQUIRED_AUTOCONF_VERSION=2.53
9 REQUIRED_AUTOMAKE_VERSION=1.9
10 REQUIRED_GTK_DOC_VERSION=1.10
12 (test -f $srcdir/configure.ac \
13 && test -f $srcdir/autogen.sh) || {
14 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
15 echo " top-level $PKG_NAME directory"
21 # This is a bit complicated here since we can't use gnome-config yet.
22 # It'll be easier after switching to pkg-config since we can then
23 # use pkg-config to find the gnome-autogen.sh script.
28 ifs_save="$IFS"; IFS=":"
30 test -z "$dir" && dir=.
31 if test -f $dir/gnome-autogen.sh ; then
32 gnome_autogen="$dir/gnome-autogen.sh"
33 gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
39 if test -z "$gnome_autogen" ; then
40 echo "You need to install the gnome-common module and make"
41 echo "sure the gnome-autogen.sh script is in your \$PATH."
45 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . $gnome_autogen