Imported Upstream version 3.13.90
[platform/upstream/pygobject2.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 set -e
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 PKG_NAME="pygobject"
8
9 (test -f $srcdir/configure.ac \
10   && test -f $srcdir/$PKG_NAME.doap) || {
11     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12     echo " top-level $PKG_NAME directory"
13     exit 1
14 }
15
16 if type lcov >/dev/null 2>&1; then
17     EXTRA_ARGS="--enable-code-coverage"
18 else
19     echo "lcov not installed, not enabling code coverage"
20 fi
21
22
23 which gnome-autogen.sh || {
24     echo "You need to install gnome-common."
25     exit 1
26 }
27
28 . gnome-autogen.sh "$EXTRA_ARGS" "$@"
29