Release: update news.
[lilypond/patrick.git] / autogen.sh
blob34c022e0825ff602da60fd86aa9ac3f0ba951ce5
1 #!/bin/sh
2 # Run this to generate configure and initial GNUmakefiles
4 srcdir=`dirname $0`
6 case $1 in
7 --noconf*) NOCONFIGURE=true;;
8 esac
10 if [ ! -f aclocal.m4 -o stepmake/aclocal.m4 -nt aclocal.m4 ]; then
11 echo "stepmake/aclocal.m4 is newer. Copying file."
12 cp -f stepmake/aclocal.m4 aclocal.m4
15 if [ ! -f autogen.sh -o stepmake/autogen.sh -nt autogen.sh ]; then
16 echo "stepmake/autogen.sh is newer. Copying file."
17 cp -f stepmake/autogen.sh autogen.sh
18 exec ./autogen.sh "$@"
21 for i in $srcdir/configure.in #`find $srcdir -name configure.in -print`
22 do
23 dir=`dirname $i`
24 echo processing $dir
26 cd $dir
27 echo "Running autoconf ..."
28 autoconf || exit 1
30 # Autoconf automatically checks its own minimum required
31 # version, and it aborts when the check fails.
32 test "$?" -eq 1 && exit 1
33 done
35 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
36 if test -n "$NOCONFIGURE"; then
37 echo Skipping configure process.
38 exit 0
41 if test -z "$*"; then
42 cat <<EOF
43 Warning: about to run \`configure' without arguments.
44 arguments on the \`$0' command line
45 will be passed to \`configure'.
47 Invoke with --noconfigure to skip configure step.
48 EOF
51 echo Running $srcdir/configure $conf_flags "$@" ...
52 $srcdir/configure $conf_flags "$@"