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