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