Post-release version bump
[gnome.gobject-introspection] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 PKG_NAME="gobject-introspection"
8 REQUIRED_AUTOCONF_VERSION=2.53
9 REQUIRED_AUTOMAKE_VERSION=1.9
10
11 (test -f $srcdir/configure.ac \
12   && test -f $srcdir/autogen.sh) || {
13     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
14     echo " top-level $PKG_NAME directory"
15     exit 1
16 }
17
18 DIE=0
19
20 # This is a bit complicated here since we can't use gnome-config yet.
21 # It'll be easier after switching to pkg-config since we can then
22 # use pkg-config to find the gnome-autogen.sh script.
23
24 gnome_autogen=
25 gnome_datadir=
26
27 ifs_save="$IFS"; IFS=":"
28 for dir in $PATH ; do
29   test -z "$dir" && dir=.
30   if test -f $dir/gnome-autogen.sh ; then
31     gnome_autogen="$dir/gnome-autogen.sh"
32     gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
33     break
34   fi
35 done
36 IFS="$ifs_save"
37
38 if test -z "$gnome_autogen" ; then
39   echo "You need to install the gnome-common module and make"
40   echo "sure the gnome-autogen.sh script is in your \$PATH."
41   exit 1
42 fi
43
44 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen