core: add libgsystem as a git submodule
[NetworkManager.git] / 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 REQUIRED_AUTOMAKE_VERSION=1.9
7 PKG_NAME=NetworkManager
8
9 (test -f $srcdir/configure.ac \
10   && test -f $srcdir/src/main.c) || {
11     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12     echo " top-level $PKG_NAME directory"
13     exit 1
14 }
15
16 # Fetch submodules if needed
17 if test ! -f src/libgsystem/README;
18 then
19   echo "+ Setting up submodules"
20   git submodule init
21   git submodule update
22 fi
23
24 (cd $srcdir;
25     gtkdocize || exit 1
26     autopoint --force
27     AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
28 )
29
30 if test -z "$NOCONFIGURE"; then
31         $srcdir/configure --enable-maintainer-mode "$@"
32 fi