Send broken repository alert also to lemon-commits@lemon.cs.elte.hu.
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon])
4 AC_CONFIG_AUX_DIR([build-aux])
5 AC_CONFIG_MACRO_DIR([m4])
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
7 AC_CONFIG_SRCDIR([lemon/list_graph.h])
8 AC_CONFIG_HEADERS([config.h lemon/config.h])
10 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
12 dnl Checks for programs.
19 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
20 CXXFLAGS="$CXXFLAGS -Wall -W"
23 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
25 dnl Checks for libraries.
30 dnl Enable/disable installing the documentation
32 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
33 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
36 AC_MSG_CHECKING([whether to build the documention])
39 DOXYGEN_INTERNAL_DOCS=NO
43 DOXYGEN_INTERNAL_DOCS=YES
47 DOXYGEN_INTERNAL_DOCS=NO
51 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
54 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
55 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
57 dnl Disable/enable building the demo programs
59 AS_HELP_STRING([--enable-demo], [build the demo programs])
60 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
62 AC_MSG_CHECKING([whether to build the demo programs])
63 if test x"$enable_demo" != x"no"; then
68 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
70 dnl Disable/enable building the benchmarks
71 AC_ARG_ENABLE([benchmark],
72 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
73 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
74 [], [enable_benchmark=no])
75 AC_MSG_CHECKING([whether to build the benchmarks])
76 if test x"$enable_benchmark" != x"no"; then
81 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
83 dnl Checks for header files.
84 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
86 dnl Checks for typedefs, structures, and compiler characteristics.
93 dnl Checks for library functions.
95 AC_CHECK_FUNCS(gettimeofday times ctime_r)
100 autopackage/default.apspec
108 echo '****************************** SUMMARY ******************************'
110 echo Package version............... : $PACKAGE-$VERSION
112 echo C++ compiler.................. : $CXX
113 echo C++ compiles flags............ : $CXXFLAGS
115 echo GLPK support.................. : $lx_glpk_found
116 echo CPLEX support................. : $lx_cplex_found
117 echo SOPLEX support................ : $lx_soplex_found
119 echo build benchmarks.............. : $enable_benchmark
120 echo build demo programs........... : $enable_demo
122 echo The packace will be installed in
126 echo The documentation will be installed in
128 eval echo ${datadir}/doc/$PACKAGE.
130 echo '*********************************************************************'
133 echo configure complete, now type \'make\' and then \'make install\'.