Move DEPSOLVE.txt and REPO.txt into docbook.
A little messy, but it's a first step towards pulling all the docs into
a nice self-contained document.
2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
9 (test -f $srcdir/configure.ac) || {
10 echo -n "**Error**: Directory $srcdir does not look like the"
11 echo " top-level package directory"
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17 echo "**Error**: You must have autoconf installed."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
23 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
24 (libtool --version) < /dev/null > /dev/null 2>&1 || {
26 echo "**Error**: You must have libtool installed."
27 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
32 (automake --version) < /dev/null > /dev/null 2>&1 || {
34 echo "**Error**: You must have automake installed."
35 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
41 # if no automake, don't bother testing for aclocal
42 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
44 echo "**Error**: Missing aclocal. The version of automake"
45 echo "installed doesn't appear recent enough."
46 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
50 if test "$DIE" -eq 1; then
55 echo "**Warning**: I am going to run configure with no arguments."
56 echo "If you wish to pass any to it, please specify them on the"
57 echo $0 " command line."
63 am_opt=--include-deps;;
66 aclocalinclude="$ACLOCAL_FLAGS"
68 if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
69 if test -z "$NO_LIBTOOLIZE" ; then
70 echo "Running libtoolize..."
71 libtoolize --force --copy
74 echo "Running aclocal $aclocalinclude ..."
75 aclocal $aclocalinclude
76 if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
77 echo "Running autoheader..."
80 echo "Running automake --gnu -Wno-portability $am_opt ..."
81 automake --add-missing --gnu -Wno-portability $am_opt
82 echo "Running autoconf ..."
85 intltoolize --copy --force --automake || exit 1
87 gtkdocize --copy --flavour no-tmpl
89 conf_flags="--enable-maintainer-mode"
91 if test x$NOCONFIGURE = x; then
92 echo "Running $srcdir/configure $conf_flags $@ ..."
93 $srcdir/configure $conf_flags "$@" \
94 && echo "Now type make to compile." || exit 1
96 echo "Skipping configure process."