2
# Run this to generate all the initial makefiles, etc.
6
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
8
echo "**Error**: You must have \`autoconf' installed to compile Gnome."
9
echo "Download the appropriate package for your distribution,"
10
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
14
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
15
(libtool --version) < /dev/null > /dev/null 2>&1 || {
17
echo "**Error**: You must have \`libtool' installed to compile Gnome."
18
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
19
echo "(or a newer version if it is available)"
24
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
25
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
26
(gettext --version) < /dev/null > /dev/null 2>&1 || {
28
echo "**Error**: You must have \`gettext' installed to compile Gnome."
29
echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
30
echo "(or a newer version if it is available)"
35
grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
36
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
37
(gettext --version) < /dev/null > /dev/null 2>&1 || {
39
echo "**Error**: You must have \`gettext' installed to compile Gnome."
40
echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
41
echo "(or a newer version if it is available)"
46
(automake --version) < /dev/null > /dev/null 2>&1 || {
48
echo "**Error**: You must have \`automake' installed to compile Gnome."
49
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
50
echo "(or a newer version if it is available)"
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 "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
62
echo "(or a newer version if it is available)"
66
if test "$DIE" -eq 1; then
71
echo "**Warning**: I am going to run \`configure' with no arguments."
72
echo "If you wish to pass any to it, please specify them on the"
73
echo \`$0\'" command line."
79
am_opt=--include-deps;;
82
for coin in `find $srcdir -name configure.in -print`
85
if test -f $dr/NO-AUTO-GEN; then
86
echo skipping $dr -- flagged as no auto-gen
89
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
91
aclocalinclude="$ACLOCAL_FLAGS"
92
for k in $macrodirs; do
94
aclocalinclude="$aclocalinclude -I $k"
96
## echo "**Warning**: No such directory \`$k'. Ignored."
99
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
100
if grep "sed.*POTFILES" configure.in >/dev/null; then
101
: do nothing -- we still have an old unmodified configure.in
103
echo "Creating $dr/aclocal.m4 ..."
104
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
105
echo "Running gettextize... Ignore non-fatal messages."
106
echo "no" | gettextize --force --copy
107
echo "Making $dr/aclocal.m4 writable ..."
108
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
111
if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
112
echo "Creating $dr/aclocal.m4 ..."
113
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
114
echo "Running gettextize... Ignore non-fatal messages."
115
echo "no" | gettextize --force --copy
116
echo "Making $dr/aclocal.m4 writable ..."
117
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
119
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
120
echo "Running libtoolize..."
121
libtoolize --force --copy
123
echo "Running aclocal $aclocalinclude ..."
124
aclocal $aclocalinclude
125
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
126
echo "Running autoheader..."
129
echo "Running automake --gnu $am_opt ..."
130
automake --add-missing --gnu $am_opt
131
echo "Running autoconf ..."
137
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
139
if test x$NOCONFIGURE = x; then
140
echo Running $srcdir/configure $conf_flags "$@" ...
141
$srcdir/configure $conf_flags "$@" \
142
&& echo Now type \`make\' to compile $PKG_NAME
144
echo Skipping configure process.