Minor change in 'make rpm' behaviour.
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([LEMON], [svn-head], [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.
29 dnl Enable/disable installing the documentation
31 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
32 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
35 AC_MSG_CHECKING([whether to build the documention])
38 DOXYGEN_INTERNAL_DOCS=NO
42 DOXYGEN_INTERNAL_DOCS=YES
46 DOXYGEN_INTERNAL_DOCS=NO
50 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
53 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
54 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
56 dnl Disable/enable building the demo programs
58 AS_HELP_STRING([--enable-demo], [build the demo programs])
59 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
61 AC_MSG_CHECKING([whether to build the demo programs])
62 if test x"$enable_demo" != x"no"; then
67 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
69 dnl Disable/enable building the benchmarks
70 AC_ARG_ENABLE([benchmark],
71 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
72 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
73 [], [enable_benchmark=no])
74 AC_MSG_CHECKING([whether to build the benchmarks])
75 if test x"$enable_benchmark" != x"no"; then
80 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
82 dnl Checks for header files.
83 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
85 dnl Checks for typedefs, structures, and compiler characteristics.
92 dnl Checks for library functions.
94 AC_CHECK_FUNCS(gettimeofday times ctime_r)
99 autopackage/default.apspec
107 echo '****************************** SUMMARY ******************************'
109 echo Package version............... : $PACKAGE-$VERSION
111 echo C++ compiler.................. : $CXX
112 echo C++ compiles flags............ : $CXXFLAGS
114 echo GLPK support.................. : $lx_glpk_found
115 echo CPLEX support................. : $lx_cplex_found
117 echo build benchmarks.............. : $enable_benchmark
118 echo build demo programs........... : $enable_demo
120 echo The packace will be installed in
124 echo The documentation will be installed in
126 eval echo ${datadir}/doc/$PACKAGE.
128 echo '*********************************************************************'
131 echo configure complete, now type \'make\' and then \'make install\'.