]> git.donarmstrong.com Git - lilypond.git/blob - autogen.sh
''
[lilypond.git] / autogen.sh
1 #!/bin/sh
2 # WARNING WARNING WARNING
3 # do not edit! this is autogen.sh, generated from stepmake/autogen.sh
4 #!/bin/sh
5 # Run this to generate configure and initial GNUmakefiles
6
7 srcdir=`dirname $0`
8
9 # Be paranoid: check for autoconf >= 2.50
10 # Some setups have both autoconf 2.13 and 2.50 available through
11 # a wrapper script: /usr/bin/autoconf.
12 # This wrapper may correctly autoselect autoconf 2.50, but it
13 # advertises itself as autoconf 2.13.
14 # If you have such a setup, invoke this script as:
15 #   autoconf=autoconf ./autogen.sh
16 for i in in autoconf autoconf2.50 false; do
17   version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
18   if test "0$version" -ge 250; then
19     autoconf=$i
20     break
21   fi
22 done
23
24 if test -z "$autoconf"; then
25     echo "ERROR: Please install autoconf 2.50 or newer"
26     exit 1
27 fi
28
29 if test -z "$*"; then
30   echo "WARNING: I am going to run \`configure' with no arguments."
31   echo "If you wish to pass any to it, please specify them on the"
32   echo \`$0\'" command line."
33   echo
34 fi
35
36 for coin in `find $srcdir -name configure.in -print`
37 do 
38   dr=`dirname $coin`
39   echo processing $dr
40   (
41       cd $dr
42       echo "Running autoconf ..."
43       $autoconf
44   )
45 done
46
47 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
48 if test -z "$NOCONFIGURE"; then
49   echo Running $srcdir/configure $conf_flags "$@" ...
50   $srcdir/configure $conf_flags "$@"
51 else
52   echo Skipping configure process.
53 fi