Validate args before creating the DBus proxy, just for complete safety.
[mmediamanager.git] / autogen.sh
blobcf86e17ebb71a729b4e273d4066e592948b273be
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 PKG_NAME="mmediamanager"
9 (test -f $srcdir/src/mm-manager.c) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level $PKG_NAME directory"
12 exit 1
15 which gnome-autogen.sh || {
16 echo "You need to install gnome-common from GNOME SVN and make"
17 echo "sure the gnome-autogen.sh script is in your \$PATH."
18 exit 1
21 REQUIRED_AUTOMAKE_VERSION=1.9 USE_GNOME2_MACROS=1 . gnome-autogen.sh