* stepmake/stepmake/metafont-rules.make: backport 1.7 fixes.
[lilypond.git] / configure.in
blobfeee8747cbbf5c1acd313991b1d8e2717dfeb095
1 dnl configure.in   -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script. 
4 # Bootstrap the init proces.  List a file identifies your package.
5 AC_INIT(make/lilypond.lsm.in)
6 AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
8 # Bootstrap StepMake configure
9 STEPMAKE_INIT
11 # For all packages except the StepMake package itself
12 AC_CONFIG_SUBDIRS(stepmake)
14 # Uncomment the configuration options your package needs.
16 # must come before any header checks
17 STEPMAKE_COMPILE
19 STEPMAKE_GCC(REQUIRED, 2.8)
20 STEPMAKE_CXX(REQUIRED)
21 STEPMAKE_GXX(REQUIRED, 2.95)
22 STEPMAKE_CHECK_VERSION_UNSUPPORTED(CXX, UNSUPPORTED, 3.3)
23 STEPMAKE_CXXTEMPLATE
24 STEPMAKE_LIB(REQUIRED)
25 STEPMAKE_BISON(REQUIRED, 1.25)
26 STEPMAKE_FLEX(REQUIRED)
27 STEPMAKE_FLEXLEXER(REQUIRED)
28 STEPMAKE_LOCALE
29 STEPMAKE_GETTEXT
30 STEPMAKE_MSGFMT(REQUIRED)
31 STEPMAKE_TEXMF
32 STEPMAKE_TEXMF_DIRS
33 STEPMAKE_GUILE_DEVEL(REQUIRED, 1.4)
34 STEPMAKE_KPATHSEA
35 STEPMAKE_MAKEINFO(REQUIRED)
36 STEPMAKE_PYTHON_DEVEL(REQUIRED)
39 AC_HAVE_HEADERS(assert.h sys/stat.h sstream)
40 AC_HEADER_STAT
42 AC_FUNC_MEMCMP
43 AC_FUNC_VPRINTF
44 AC_CHECK_FUNCS(memmem snprintf vsnprintf gettext isinf)
47 ## Optional tools for building documentation, website, extra fonts.
49 # guile executable for some scripts
50 STEPMAKE_GUILE(OPTIONAL)
51 # perl for help2man.
52 STEPMAKE_PERL(OPTIONAL)
53 # mftrace for generating pfa's, pfb's
54 STEPMAKE_PROGS(MFTRACE, pktrace mftrace, OPTIONAL, 1.0.3)
55 # new makeinfo for multi-page website docs
56 STEPMAKE_PROGS(MAKEINFO, makeinfo, OPTIONAL, 4.1)
59 if test "$optimise_b" = yes; then
60     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
61     AC_DEFINE(STRINGS_UTILS_INLINED)
65 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
66 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
68 # Gather requirements and generate output.
69 STEPMAKE_END
72 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
74 cat <<EOF
76 Type:
77     make$mc all       to build LilyPond
78     make$mc install   to install LilyPond
79     make$mc help      to see all possible targets
81 Do not worry if ./Documentation or ./mutopia should not build.
82 EOF