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