-dnl -*-shell-script-*-
-dnl Process this file with autoconf to produce a configure script.
-
-AC_INIT(flower/choleski.cc)
-
-
-if test x$srcdir != x.; then
- echo Please look in the INSTALL instructions for
- echo directions for multi-architecture building
-
- AC_LILY_WARN(This package does not support --srcdir!)
-fi
-
-# if given here, these vars are initted at the checking point.
-if test x$host = xNONE; then
- OUTDIR_NAME=${OUTDIR_NAME-"out"}
-else
- OUTDIR_NAME=${OUTDIR_NAME-"out-$host"}
-fi
-
-printing_b=no
-checking_b=yes
-debug_b=yes
-optimise_b=no
-profile_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. (obsolete)],
- [MFDIR=$enableval],
- [MFDIR=auto])
-
-AC_ARG_ENABLE(out-dir,
- [ out-dir set the directory for machine generated files. Default out or out-HOST],
- [OUTDIR_NAME=$enableval]
- [])
-
-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
-
-# however, C++ support in mingw32 v 0.1.4 is still flaky
-if test x$MINGWPREFIX != xno; then
- ICFLAGS="-I$MINGWPREFIX/include"
- ILDFLAGS="-$MINGWPREFIX/lib"
-fi
-
-if test $optimise_b = yes; then
- DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
+dnl configure.in -*-shell-script-*-
+dnl Process this file with autoconf to produce a configure script.
+
+# Bootstrap the init proces.
+AC_INIT
+
+# Bootstrap StepMake configure
+# For user package:
+AC_CONFIG_AUX_DIR([stepmake/bin])
+# For stepmake package:
+# AC_CONFIG_AUX_DIR(bin)
+
+
+STEPMAKE_INIT
+
+
+
+# List a file that identifies your package.
+AC_CONFIG_SRCDIR([lily/main.cc])
+
+# Move to aclocal.m4?
+AC_CONFIG_HEADER([$CONFIGFILE.h:config.hh.in])
+
+# Uncomment the configuration options your package needs.
+
+
+gui_b=no
+AC_ARG_ENABLE(gui,
+ [ --enable-gui compile with experimental GNOME output module. Default: off],
+ [gui_b=$enableval])
+
+# must come before any header checks
+STEPMAKE_COMPILE
+
+STEPMAKE_PYTHON(REQUIRED,2.1)
+STEPMAKE_GCC(REQUIRED, 2.8)
+STEPMAKE_CXX(REQUIRED)
+STEPMAKE_GXX(REQUIRED, 3.0.5)
+STEPMAKE_CXXTEMPLATE
+STEPMAKE_LIB(REQUIRED)
+# Do not use bison 1.50 and 1.75.
+STEPMAKE_BISON(REQUIRED, 1.25)
+STEPMAKE_FLEX(REQUIRED)
+STEPMAKE_FLEXLEXER(REQUIRED)
+AC_LANG_C
+STEPMAKE_LOCALE
+STEPMAKE_GETTEXT
+STEPMAKE_MSGFMT(REQUIRED)
+STEPMAKE_TEXMF
+STEPMAKE_TEXMF_DIRS
+STEPMAKE_GUILE_DEVEL(REQUIRED, 1.6)
+STEPMAKE_KPATHSEA
+STEPMAKE_MAKEINFO(REQUIRED)
+STEPMAKE_PYTHON_DEVEL(REQUIRED)
+
+
+AC_CHECK_HEADERS([assert.h sys/stat.h])
+AC_LANG_PUSH(C++)
+AC_CHECK_HEADERS([sstream])
+AC_LANG_POP(C++)
+AC_HEADER_STAT
+AC_FUNC_MEMCMP
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([gettext isinf memmem snprintf vsnprintf gettext])
+
+
+# This is developer only anyway, help pkgconfig a bit
+export PKG_CONFIG_PATH
+PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
+PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig:$PKG_CONFIG_PATH
+PKG_CONFIG_PATH=$HOME/usr/pkg/gnome/lib/pkgconfig:$PKG_CONFIG_PATH
+PKG_CONFIG_PATH=$HOME/usr/pkg/pango/lib/pkgconfig:$PKG_CONFIG_PATH
+
+#STEPMAKE_FREETYPE2
+if test "$gui_b" = "yes"; then
+ STEPMAKE_GTK2
+ STEPMAKE_PANGO