2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir
=.
9 (test -f $srcdir/configure.ac
) ||
{
10 echo "**Error**: Directory "\
`$srcdir\'" does not look like the top-level package directory"
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
16 echo "**Error**: You must have \`autoconf
' installed."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
22 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
24 echo "**Error**: You must have \`intltool' installed.
"
25 echo "You can get it from
:"
26 echo " ftp://ftp.gnome.org
/pub
/GNOME
/"
30 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
32 echo "**Error
**: You must have \
`glib' installed."
33 echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
37 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
38 (glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
40 echo "**Error**: You must have \`libtool
' installed."
41 echo "You can get it from:"
42 echo " http://www.gnu.org/software/libtool/"
47 (pkg-config --version) < /dev/null > /dev/null 2>&1 || {
49 echo "You must have pkg-config installed to compile $package."
50 echo "Download the appropriate package for your distribution."
55 (automake --version) < /dev/null > /dev/null 2>&1 || {
57 echo "**Error**: You must have \`automake' (1.7 or later
) installed.
"
58 echo "You can get it from
: ftp://ftp.gnu.org
/pub
/gnu
/"
64 # if no automake, don't bother testing for aclocal
65 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
67 echo "**Error
**: Missing \
`aclocal'. The version of \`automake
'"
68 echo "installed doesn't appear recent enough.
"
69 echo "You can get automake from
ftp://ftp.gnu.org
/pub
/gnu
/"
73 if test "$DIE" -eq 1; then
78 echo "**Warning
**: I am going to run \
`configure' with no arguments."
79 echo "If you wish to pass any to it, please specify them on the"
80 echo \`$0\'" command line."
84 echo "Processing configure.ac"
86 test -d build-aux || mkdir build-aux
87 echo "no" | glib-gettextize
--force --copy
88 intltoolize
--copy --force --automake
89 libtoolize
--copy --force || glibtoolize
--copy --force
92 automake
--add-missing --copy --gnu
95 if [ "$NOCONFIGURE" = 1 ]; then
96 echo "Done. configure skipped."
99 echo "Running $srcdir/configure $@ ..."
100 $srcdir/configure
"$@" && echo "Now type 'make' to compile." ||
exit 1