* mf/feta-beugel.mf: set design to 10 (constant).
[lilypond.git] / autogen.sh
blobef2afec2d7bc561455fa1dbc2675aec486c3a472
1 #!/bin/sh
2 # Run this to generate configure and initial GNUmakefiles
4 srcdir=`dirname $0`
7 if [ ! -f aclocal.m4 -o stepmake/aclocal.m4 -nt aclocal.m4 ]; then
8 echo "stepmake/aclocal.m4 is newer. Copying file."
9 cp -f stepmake/aclocal.m4 aclocal.m4
12 if [ ! -f autogen.sh -o stepmake/autogen.sh -nt autogen.sh ]; then
13 echo "stepmake/autogen.sh is newer. Copying file."
14 cp -f stepmake/autogen.sh autogen.sh
15 exec ./autogen.sh "$@"
18 # Be paranoid: check for autoconf >= 2.50
19 # Some setups have both autoconf 2.13 and 2.5x available through
20 # a wrapper script: /usr/bin/autoconf.
21 # This wrapper may incorrectly autoselect autoconf 2.50, but it
22 # advertises itself as autoconf 2.13.
23 # If you have such a setup, invoke this script as:
24 # autoconf=autoconf2.50 ./autogen.sh
25 for i in autoconf2.50 autoconf-2.50 autoconf false; do
26 version=`$i --version 2>/dev/null | head -n 1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
27 if test "0$version" -ge 250; then
28 autoconf=$i
29 break
31 done
33 if test -z "$autoconf"; then
34 echo "ERROR: Please install autoconf 2.50 or newer"
35 exit 1
38 for i in $srcdir/configure.in #`find $srcdir -name configure.in -print`
39 do
40 dir=`dirname $i`
41 echo processing $dir
43 cd $dir
44 echo "Running autoconf ..."
45 $autoconf
47 done
49 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
50 if test -n "$NOCONFIGURE"; then
51 echo Skipping configure process.
52 exit 0
55 if test -z "$*"; then
56 echo "warning: about to run \`./configure' without arguments."
57 echo "arguments on the \`$0\'"
58 echo "command line will be passed to \`./configure'."
59 echo
62 echo Running $srcdir/configure $conf_flags "$@" ...
63 $srcdir/configure $conf_flags "$@"