Use AM_V_GEN more a more quiet build
[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 REQUIRED_GTK_DOC_VERSION=1.10
11
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"
16     exit 1
17 }
18
19 DIE=0
20
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.
24
25 gnome_autogen=
26 gnome_datadir=
27
28 ifs_save="$IFS"; IFS=":"
29 for dir in $PATH ; do
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,'`
34     break
35   fi
36 done
37 IFS="$ifs_save"
38
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."
42   exit 1
43 fi
44
45 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . $gnome_autogen