2 dnl Process this file with autoconf to produce a configure script.-
11 [ enable-shared shared flower library],
12 [shared_b=$enableval])
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 "
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)
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)