]> git.donarmstrong.com Git - lilypond.git/blob - autogen.sh
Add '-dcrop' option to ps and svg backends
[lilypond.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate configure and initial GNUmakefiles
3
4 srcdir=`dirname $0`
5
6 case $1 in
7     --noconf*) NOCONFIGURE=true;;
8 esac
9
10 for i in $srcdir/configure.ac #`find $srcdir -name configure.ac -print`
11 do 
12   dir=`dirname $i`
13   echo processing $dir
14   (
15       cd $dir
16       echo "Running autoconf ..."
17       autoconf || exit 1
18   )
19   # Autoconf automatically checks its own minimum required
20   # version, and it aborts when the check fails.
21   test "$?" -eq 1 && exit 1
22 done
23
24 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
25 if test -n "$NOCONFIGURE"; then
26     echo Skipping configure process.
27     exit 0
28 fi
29
30 if test -z "$*"; then
31     cat <<EOF
32     Warning: about to run \`configure' without arguments.
33     arguments on the \`$0' command line
34     will be passed to \`configure'.
35
36     Invoke with --noconfigure to skip configure step.
37 EOF
38 fi
39
40 echo Running $srcdir/configure $conf_flags "$@" ...
41 $srcdir/configure $conf_flags "$@"