]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/autogen.sh
db1218f170c26810184e2391821cd344f35346f4
[lilypond.git] / stepmake / autogen.sh
1 #!/bin/sh
2 # Run this to generate configure and initial GNUmakefiles
3
4 srcdir=`dirname $0`
5 DIE=0
6
7 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
8   echo
9   echo "ERROR: You must have \`autoconf' installed to."
10   echo "Download the appropriate package for your distribution,"
11   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
12   DIE=1
13 }
14
15 if test "$DIE" -eq 1; then
16   exit 1
17 fi
18
19
20 if test -z "$*"; then
21   echo "WARNING: I am going to run \`configure' with no arguments."
22   echo "If you wish to pass any to it, please specify them on the"
23   echo \`$0\'" command line."
24   echo
25 fi
26
27 for coin in `find $srcdir -name configure.in -print`
28 do 
29   dr=`dirname $coin`
30   echo processing $dr
31   (
32       cd $dr
33       echo "Running autoconf ..."
34       autoconf
35   )
36 done
37
38 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
39 if test -z "$NOCONFIGURE"; then
40   echo Running $srcdir/configure $conf_flags "$@" ...
41   $srcdir/configure $conf_flags "$@"
42 else
43   echo Skipping configure process.
44 fi