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 (automake --version) < /dev/null > /dev/null 2>&1 || {
49 echo "**Error**: You must have \`automake' (1.7 or later
) installed.
"
50 echo "You can get it from
: ftp://ftp.gnu.org
/pub
/gnu
/"
56 # if no automake, don't bother testing for aclocal
57 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
59 echo "**Error
**: Missing \
`aclocal'. The version of \`automake
'"
60 echo "installed doesn't appear recent enough.
"
61 echo "You can get automake from
ftp://ftp.gnu.org
/pub
/gnu
/"
65 if test "$DIE" -eq 1; then
70 echo "**Warning
**: I am going to run \
`configure' with no arguments."
71 echo "If you wish to pass any to it, please specify them on the"
72 echo \`$0\'" command line."
76 echo "Processing configure.ac"
78 echo "no" | glib-gettextize
--force --copy
79 intltoolize
--copy --force --automake
80 libtoolize
--copy --force || glibtoolize
--copy --force
83 automake
--add-missing --copy --gnu
86 echo "Running $srcdir/configure $@ ..."
87 $srcdir/configure
"$@" && echo "Now type 'make' to compile." ||
exit 1