autogen.sh 721 Bytes
Newer Older
Dan Williams's avatar
Dan Williams committed
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

4 5
set -e

Dan Williams's avatar
Dan Williams committed
6
srcdir=`dirname $0`
7 8 9
if test -z "$srcdir"; then
    srcdir=.
fi
10 11 12

olddir=`pwd`

13
REQUIRED_AUTOMAKE_VERSION=1.9
14 15
PKG_NAME=NetworkManager

16
(test -f $srcdir/configure.ac \
17
  && test -f $srcdir/src/main.c) || {
18 19
    printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2
    echo " top-level $PKG_NAME directory" >&2
20
    exit 1
Dan Williams's avatar
Dan Williams committed
21 22
}

23 24
cd $srcdir

25
gtkdocize
26
autopoint --force
27
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
Dan Williams's avatar
Dan Williams committed
28

29
cd $olddir
30
if test -z "$NOCONFIGURE"; then
31
	exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error --enable-gtk-doc --enable-introspection --with-libnm-glib "$@"
32
fi