]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/autogen.sh
5048ce8b21290207478ee55f613320253a6cbaca
[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 > 2.50 is not very common yet,
8 # and disappointingly incompatible with the widely available 2.13
9 version=`autoconf --version 2>/dev/null | awk '{print $3}'`
10 if test "$version" != "2.13"; then
11   echo "ERROR: Please install autoconf 2.13"
12   exit 1
13 fi
14
15 if test -z "$*"; then
16   echo "WARNING: I am going to run \`configure' with no arguments."
17   echo "If you wish to pass any to it, please specify them on the"
18   echo \`$0\'" command line."
19   echo
20 fi
21
22 for coin in `find $srcdir -name configure.in -print`
23 do 
24   dr=`dirname $coin`
25   echo processing $dr
26   (
27       cd $dr
28       echo "Running autoconf ..."
29       autoconf
30   )
31 done
32
33 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
34 if test -z "$NOCONFIGURE"; then
35   echo Running $srcdir/configure $conf_flags "$@" ...
36   $srcdir/configure $conf_flags "$@"
37 else
38   echo Skipping configure process.
39 fi