2007-07-31 09:53:31 -07:00
|
|
|
#!/bin/sh
|
2008-05-11 09:44:57 -07:00
|
|
|
# Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
|
|
|
|
#
|
2007-07-31 09:53:31 -07:00
|
|
|
# Run this to generate all the initial makefiles, etc.
|
2008-05-11 09:44:57 -07:00
|
|
|
#
|
|
|
|
# Licensed under the GNU General Public License Version 2
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2007-07-31 09:53:31 -07:00
|
|
|
|
2007-07-31 10:54:48 -07:00
|
|
|
srcdir=`dirname $0`
|
2007-07-31 09:53:31 -07:00
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
2007-07-31 10:54:48 -07:00
|
|
|
(test -f $srcdir/configure.ac) || {
|
2007-11-18 10:12:45 -08:00
|
|
|
echo -n "**Error**: Directory \"\'$srcdir\'\" does not look like the"
|
2007-07-31 10:54:48 -07:00
|
|
|
echo " top-level package directory"
|
|
|
|
exit 1
|
|
|
|
}
|
2007-07-31 09:53:31 -07:00
|
|
|
|
2008-03-18 12:39:27 -07:00
|
|
|
if ([ -z "$*" ] && [ "x$NOCONFIGURE" = "x" ]) ; then
|
2007-11-18 10:12:45 -08:00
|
|
|
echo "**Warning**: I am going to run 'configure' with no arguments."
|
2007-07-31 10:54:48 -07:00
|
|
|
echo "If you wish to pass any to it, please specify them on the"
|
2007-11-18 10:12:45 -08:00
|
|
|
echo "'$0' command line."
|
2007-07-31 09:53:31 -07:00
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2007-12-11 17:51:29 -08:00
|
|
|
(cd $srcdir && gtkdocize) || exit 1
|
2007-07-31 10:54:48 -07:00
|
|
|
(cd $srcdir && autoreconf --force --install) || exit 1
|
2008-02-27 04:21:34 -08:00
|
|
|
(cd $srcdir && intltoolize) || exit 1
|
2007-07-31 09:53:31 -07:00
|
|
|
|
2007-07-31 10:54:48 -07:00
|
|
|
conf_flags="--enable-maintainer-mode --enable-gtk-doc"
|
2007-07-31 09:53:31 -07:00
|
|
|
|
2007-07-31 10:54:48 -07:00
|
|
|
if test x$NOCONFIGURE = x; then
|
|
|
|
echo Running $srcdir/configure $conf_flags "$@" ...
|
|
|
|
$srcdir/configure $conf_flags "$@" \
|
|
|
|
&& echo Now type \`make\' to compile. || exit 1
|
|
|
|
else
|
|
|
|
echo Skipping configure process.
|
|
|
|
fi
|