-# if given here, these vars are initted at the checking point.
-if test x$host = xNONE; then
- buildprefix=.
-else
- buildprefix="$host-build-dir"
- mkdir $buildprefix;
- for a in `find -type d -and -not -name '*-build-dir'`; do
- mkdir $buildprefix/$a;
- done
-fi
-printing_b=no
-checking_b=yes
-debug_b=yes
-optimise_b=no
-profile_b=no
-warn_b=no
-AC_LANG_CPLUSPLUS
-
-AC_ARG_ENABLE(printing,
- [ enable-printing turn on debug printing],
- [printing_b=$enableval])
-
-
-AC_ARG_ENABLE(checking,
- [ enable-checking set runtime checks (assert calls). Default: on],
- [checking_b=$enableval] )
-
-AC_ARG_ENABLE(debugging,
- [ enable-debugging set debug info. Default: on],
- [debug_b=$enableval])
-
-AC_ARG_ENABLE(optimise,
- [ enable-optimise use maximal speed optimisations. Default: off],
- [optimise_b=$enableval])
-
-AC_ARG_ENABLE(profiling,
- [ enable-profiling compile with gprof support. Default: off],
- [profile_b=$enableval])
-
-AC_ARG_ENABLE(mingw-prefix,
- [ mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)],
- [MINGWPREFIX=$enableval],
- [MINGWPREFIX=no])
-
-AC_ARG_ENABLE(tex-prefix,
- [ tex-prefix=DIR set the tex-directory to find TeX subdirectories. (default: PREFIX)],
- [TEXPREFIX=$enableval],
- [TEXPREFIX=auto] )
-
-AC_ARG_ENABLE(tex-dir,
- [ tex-dir=DIR set the directory to put LilyPond TeX files in. ],
- [TEXDIR=$enableval],
- [TEXDIR=auto] )
-
-AC_ARG_ENABLE(mf-dir,
- [ mf-dir=DIR set the directory to put LilyPond MetaFont files in.],
- [MFDIR=$enableval],
- [MFDIR=auto] )
-
-if test $profile_b = yes; then
- EXTRA_LIBES="-pg"
- DEFINES="$DEFINES -pg"
-fi
-
-if test $printing_b = no; then
- DEFINES="$DEFINES -DNPRINT=1"
-fi
-
-if test $debug_b = yes; then
- DEFINES="$DEFINES -g"
-fi
-if test $checking_b = no; then
- DEFINES="$DEFINES -DNDEBUG=1"
-fi