2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir
=.
8 REQUIRED_AUTOCONF_VERSION
=2.53
9 REQUIRED_AUTOMAKE_VERSION
=${REQUIRED_AUTOMAKE_VERSION:-1.9}
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"
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.
27 ifs_save="$IFS"; IFS=":"
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,'`
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."
44 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen