Change the compilation flag at release make distcheck.
(This setting is probably indifferent, though.)
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([LEMON], [svn-head], [etik-ol@cs.elte.hu], [lemon])
3 AC_CONFIG_AUX_DIR([config])
4 AM_INIT_AUTOMAKE([1.7])
5 AC_CONFIG_SRCDIR([lemon/invalid.h])
6 AC_CONFIG_HEADERS([config.h lemon/config.h])
9 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
11 dnl Checks for programs.
18 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
19 CXXFLAGS="$CXXFLAGS -Wall -W"
22 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
24 dnl Checks for libraries.
28 dnl Enable/disable installing the documentation
30 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
31 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
34 AC_MSG_CHECKING([whether to build the documention])
37 DOXYGEN_INTERNAL_DOCS=NO
41 DOXYGEN_INTERNAL_DOCS=YES
45 DOXYGEN_INTERNAL_DOCS=NO
49 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
52 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
53 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
55 dnl Disable/enable building the GUI
57 AS_HELP_STRING([--enable-gui], [build the GUI])
58 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
60 AC_MSG_CHECKING([whether to build the GUI])
61 if test x"$enable_gui" != x"no"; then
66 if test x"$enable_gui" != x"no"; then
67 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
69 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
71 dnl Disable/enable building the demo programs
73 AS_HELP_STRING([--enable-demo], [build the demo programs])
74 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
76 AC_MSG_CHECKING([whether to build the demo programs])
77 if test x"$enable_demo" != x"no"; then
82 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
84 dnl Disable/enable building the benchmarks
85 AC_ARG_ENABLE([benchmark],
86 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
87 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
88 [], [enable_benchmark=no])
89 AC_MSG_CHECKING([whether to build the benchmarks])
90 if test x"$enable_benchmark" != x"no"; then
95 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
97 dnl Checks for header files.
98 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
100 dnl Checks for header files.
101 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
103 dnl Checks for typedefs, structures, and compiler characteristics.
110 dnl Checks for library functions.
112 AC_CHECK_FUNCS(gettimeofday times ctime_r)
117 autopackage/default.apspec
131 echo '****************************** SUMMARY ******************************'
133 echo Package version............... : $PACKAGE-$VERSION
135 echo C++ compiler.................. : $CXX
136 echo C++ compiles flags............ : $CXXFLAGS
138 echo GLPK support.................. : $lx_glpk_found
139 echo CPLEX support................. : $lx_cplex_found
141 echo build benchmarks.............. : $enable_benchmark
142 echo build demo programs........... : $enable_demo
143 echo build GUI..................... : $enable_gui
145 echo The packace will be installed in
149 echo The documentation will be installed in
151 eval echo ${datadir}/doc/$PACKAGE.
153 echo '*********************************************************************'
156 echo configure complete, now type \'make\' and then \'make install\'.