COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 2384:805c5a2a36dd

Last change on this file since 2384:805c5a2a36dd was 2315:bd09e00b64bb, checked in by Balazs Dezso, 17 years ago

Configuration files for soplex

File size: 3.6 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.59])
3AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon])
4AC_CONFIG_AUX_DIR([build-aux])
5AC_CONFIG_MACRO_DIR([m4])
6AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
7AC_CONFIG_SRCDIR([lemon/list_graph.h])
8AC_CONFIG_HEADERS([config.h lemon/config.h])
9
10lx_cmdline_cxxflags_set=${CXXFLAGS+set}
11
12dnl Checks for programs.
13AC_PROG_CXX
14AC_PROG_CXXCPP
15AC_PROG_INSTALL
16AC_DISABLE_SHARED
17AC_PROG_LIBTOOL
18
19if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
20  CXXFLAGS="$CXXFLAGS -Wall -W"
21fi
22
23AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
24
25dnl Checks for libraries.
26LX_CHECK_GLPK
27LX_CHECK_CPLEX
28LX_CHECK_SOPLEX
29
30dnl Enable/disable installing the documentation
31AC_ARG_ENABLE([doc],
32AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
33AS_HELP_STRING([--disable-doc], [do not build the documentation]),
34              [], [enable_doc=yes])
35
36AC_MSG_CHECKING([whether to build the documention])
37case "$enable_doc" in
38  yes)
39    DOXYGEN_INTERNAL_DOCS=NO
40    AC_MSG_RESULT([yes])
41    ;;
42  full)
43    DOXYGEN_INTERNAL_DOCS=YES
44    AC_MSG_RESULT([full])
45    ;;
46  no)
47    DOXYGEN_INTERNAL_DOCS=NO
48    AC_MSG_RESULT([no])
49    ;;
50  *)
51    AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
52    ;;
53esac
54AC_SUBST(DOXYGEN_INTERNAL_DOCS)
55AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
56
57dnl Disable/enable building the demo programs
58AC_ARG_ENABLE([demo],
59AS_HELP_STRING([--enable-demo], [build the demo programs])
60AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
61              [], [enable_demo=no])
62AC_MSG_CHECKING([whether to build the demo programs])
63if test x"$enable_demo" != x"no"; then
64  AC_MSG_RESULT([yes])
65else
66  AC_MSG_RESULT([no])
67fi
68AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
69
70dnl Disable/enable building the benchmarks
71AC_ARG_ENABLE([benchmark],
72AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
73AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
74              [], [enable_benchmark=no])
75AC_MSG_CHECKING([whether to build the benchmarks])
76if test x"$enable_benchmark" != x"no"; then
77  AC_MSG_RESULT([yes])
78else
79  AC_MSG_RESULT([no])
80fi
81AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
82
83dnl Checks for header files.
84AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
85
86dnl Checks for typedefs, structures, and compiler characteristics.
87AC_C_CONST
88AC_C_INLINE
89AC_TYPE_SIZE_T
90AC_HEADER_TIME
91AC_STRUCT_TM
92
93dnl Checks for library functions.
94AC_HEADER_STDC
95AC_CHECK_FUNCS(gettimeofday times ctime_r)
96
97AC_CONFIG_FILES([
98Makefile
99lemon.spec
100autopackage/default.apspec
101doc/Doxyfile
102lemon/lemon.pc
103])
104
105AC_OUTPUT
106
107echo
108echo '****************************** SUMMARY ******************************'
109echo
110echo Package version............... : $PACKAGE-$VERSION
111echo
112echo C++ compiler.................. : $CXX
113echo C++ compiles flags............ : $CXXFLAGS
114echo
115echo GLPK support.................. : $lx_glpk_found
116echo CPLEX support................. : $lx_cplex_found
117echo SOPLEX support................ : $lx_soplex_found
118echo
119echo build benchmarks.............. : $enable_benchmark
120echo build demo programs........... : $enable_demo
121echo
122echo The packace will be installed in
123echo -n '  '
124echo $prefix.
125echo
126echo The documentation will be installed in
127echo -n '  '
128eval echo ${datadir}/doc/$PACKAGE.
129echo
130echo '*********************************************************************'
131
132echo
133echo configure complete, now type \'make\' and then \'make install\'.
134echo
Note: See TracBrowser for help on using the repository browser.