COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 2040:c7bd55c0d820

Last change on this file since 2040:c7bd55c0d820 was 2012:224cd6aacfc1, checked in by Akos Ladanyi, 18 years ago
  • added gettext infrastructure to the gui
  • the gui has a separate configure script now
  • other minor changes
File size: 4.2 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.59])
3AC_INIT([LEMON], [svn-head], [etik-ol@cs.elte.hu], [lemon])
4AC_CONFIG_AUX_DIR([build-aux])
5AC_CONFIG_MACRO_DIR([m4])
6dnl AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7AM_INIT_AUTOMAKE([-Wall foreign])
8AC_CONFIG_SRCDIR([lemon/list_graph.h])
9AC_CONFIG_HEADERS([config.h lemon/config.h])
10
11lx_cmdline_cxxflags_set=${CXXFLAGS+set}
12
13dnl Checks for programs.
14AC_PROG_CXX
15AC_PROG_CXXCPP
16AC_PROG_INSTALL
17AC_DISABLE_SHARED
18AC_PROG_LIBTOOL
19
20if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
21  CXXFLAGS="$CXXFLAGS -Wall -W"
22fi
23
24AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
25
26dnl Checks for libraries.
27LX_CHECK_GLPK
28LX_CHECK_CPLEX
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 GUI
58AC_ARG_ENABLE([gui],
59AS_HELP_STRING([--enable-gui], [build the GUI])
60AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
61              [], [enable_gui=no])
62AC_MSG_CHECKING([whether to build the GUI])
63if test x"$enable_gui" != x"no"; then
64  AC_MSG_RESULT([yes])
65else
66  AC_MSG_RESULT([no])
67fi
68if test x"$enable_gui" != x"no"; then
69  AC_CONFIG_SUBDIRS([gui])
70fi
71AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
72
73dnl Disable/enable building the demo programs
74AC_ARG_ENABLE([demo],
75AS_HELP_STRING([--enable-demo], [build the demo programs])
76AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
77              [], [enable_demo=no])
78AC_MSG_CHECKING([whether to build the demo programs])
79if test x"$enable_demo" != x"no"; then
80  AC_MSG_RESULT([yes])
81else
82  AC_MSG_RESULT([no])
83fi
84AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
85
86dnl Disable/enable building the benchmarks
87AC_ARG_ENABLE([benchmark],
88AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
89AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
90              [], [enable_benchmark=no])
91AC_MSG_CHECKING([whether to build the benchmarks])
92if test x"$enable_benchmark" != x"no"; then
93  AC_MSG_RESULT([yes])
94else
95  AC_MSG_RESULT([no])
96fi
97AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
98
99dnl Checks for header files.
100AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
101
102dnl Checks for header files.
103AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
104
105dnl Checks for typedefs, structures, and compiler characteristics.
106AC_C_CONST
107AC_C_INLINE
108AC_TYPE_SIZE_T
109AC_HEADER_TIME
110AC_STRUCT_TM
111
112dnl Checks for library functions.
113AC_HEADER_STDC
114AC_CHECK_FUNCS(gettimeofday times ctime_r)
115
116AC_CONFIG_FILES([
117Makefile
118lemon.spec
119autopackage/default.apspec
120doc/Makefile
121doc/Doxyfile
122lemon/Makefile
123lemon/lemon.pc
124benchmark/Makefile
125demo/Makefile
126test/Makefile
127])
128
129AC_OUTPUT
130
131echo
132echo '****************************** SUMMARY ******************************'
133echo
134echo Package version............... : $PACKAGE-$VERSION
135echo
136echo C++ compiler.................. : $CXX
137echo C++ compiles flags............ : $CXXFLAGS
138echo
139echo GLPK support.................. : $lx_glpk_found
140echo CPLEX support................. : $lx_cplex_found
141echo
142echo build benchmarks.............. : $enable_benchmark
143echo build demo programs........... : $enable_demo
144echo build GUI..................... : $enable_gui
145echo
146echo The packace will be installed in
147echo -n '  '
148echo $prefix.
149echo
150echo The documentation will be installed in
151echo -n '  '
152eval echo ${datadir}/doc/$PACKAGE.
153echo
154echo '*********************************************************************'
155
156echo
157echo configure complete, now type \'make\' and then \'make install\'.
158echo
Note: See TracBrowser for help on using the repository browser.