]> git.donarmstrong.com Git - lilypond.git/blob - configure.in
c4f1a06d85d54c04a8ae40051dd7e0c238722aee
[lilypond.git] / configure.in
1 dnl configure.in   -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script. 
3
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)
7
8 # Bootstrap StepMake configure
9 STEPMAKE_INIT
10
11 # For all packages except the StepMake package itself
12 AC_CONFIG_SUBDIRS(stepmake)
13
14 # Uncomment the configuration options your package needs.
15
16 # must come before any header checks
17 STEPMAKE_COMPILE
18
19 STEPMAKE_GCC(REQUIRED, 2.8)
20 STEPMAKE_CXX(REQUIRED)
21 STEPMAKE_GXX(REQUIRED, 2.95)
22 STEPMAKE_CXXTEMPLATE
23 STEPMAKE_LIB(REQUIRED)
24 STEPMAKE_BISON(REQUIRED, 1.25)
25 STEPMAKE_FLEX(REQUIRED)
26 STEPMAKE_FLEXLEXER(REQUIRED)
27 STEPMAKE_LOCALE
28 STEPMAKE_GETTEXT
29 STEPMAKE_MSGFMT(REQUIRED)
30 STEPMAKE_TEXMF
31 STEPMAKE_TEXMF_DIRS
32 STEPMAKE_GUILE_DEVEL(REQUIRED, 1.6)
33 STEPMAKE_KPATHSEA
34 STEPMAKE_MAKEINFO(REQUIRED)
35 STEPMAKE_PYTHON_DEVEL(REQUIRED)
36
37
38 AC_HAVE_HEADERS(assert.h sys/stat.h sstream)
39 AC_HEADER_STAT
40
41 AC_FUNC_MEMCMP
42 AC_FUNC_VPRINTF
43 AC_CHECK_FUNCS(memmem snprintf vsnprintf gettext isinf)
44
45
46 ## Optional tools for building documentation, website, extra fonts.
47
48 # guile executable for some scripts
49 STEPMAKE_GUILE(OPTIONAL)
50 # perl for help2man.
51 STEPMAKE_PERL(OPTIONAL)
52 # mftrace for generating pfa's, pfb's
53 STEPMAKE_PROGS(MFTRACE, pktrace mftrace, OPTIONAL, 1.0.9)
54 # new makeinfo for multi-page website docs
55 STEPMAKE_PROGS(MAKEINFO, makeinfo, OPTIONAL, 4.1)
56
57
58 if test "$optimise_b" = yes; then
59     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
60     AC_DEFINE(STRINGS_UTILS_INLINED)
61 fi
62
63
64 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
65 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
66
67 # Gather requirements and generate output.
68 STEPMAKE_END
69
70
71 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
72
73 cat <<EOF
74
75 Type:
76     make$mc all       to build LilyPond
77     make$mc install   to install LilyPond
78     make$mc help      to see all possible targets
79
80 Do not worry if ./Documentation or ./mutopia should not build.
81 EOF