lilypond-0.0.60
[lilypond.git] / flower / configure.in
blobe58f93f485336f7552a29e939e76d4df7acc382f
1 dnl -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script.-
3 AC_INIT(choleski.cc)
4 AC_LANG_CPLUSPLUS
6 optimise_b=yes
7 shared_b=no
8 LIB_SUFFIX=.a
10 AC_ARG_ENABLE(shared,
11     [  enable-shared       shared flower library],
12     [shared_b=$enableval])
13     
14 AC_ARG_ENABLE(optimise,
15     [  disable-optimise    optimisations off],
16     [optimise_b=$enableval])
18 if test $shared_b = yes; then
19         MODULE_CXXFLAGS="$MODULE_CXXFLAGS -fPIC"
20         MODULE_LDFLAGS="-shared -Wl,-soname,libflower.so "
21         LIB_SUFFIX=.so
24 if test $optimise_b = yes; then
25     MODULE_CXXFLAGS="$MODULE_CXXFLAGS -O2 -DSTRING_UTILS_INLINED"
28 AC_SUBST(MODULE_CXXFLAGS)
29 AC_SUBST(MODULE_LDFLAGS)
30 AC_SUBST(LIB_SUFFIX)
32 AC_PROG_CXX
33 AC_FUNC_MEMCMP
34 AC_FUNC_VPRINTF
35 AC_CHECK_FUNCS(memmem snprintf )
36 AC_CONFIG_HEADER(out/config.hh:config.hh.in)
38 CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
40 AC_OUTPUT(out/Flower-flags.make:Flower-flags.make.in)