COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 2063:9535436aaa9f

Last change on this file since 2063:9535436aaa9f was 2056:8acf212a5ed4, checked in by Akos Ladanyi, 18 years ago

downgrade to gettext 0.14.2

File size: 4.3 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
20dnl i18n
21AM_GNU_GETTEXT_VERSION([0.14.2])
22AM_GNU_GETTEXT([external])
23
24if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
25  CXXFLAGS="$CXXFLAGS -Wall -W"
26fi
27
28AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
29
30dnl Checks for libraries.
31LX_CHECK_GLPK
32LX_CHECK_CPLEX
33
34dnl Enable/disable installing the documentation
35AC_ARG_ENABLE([doc],
36AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
37AS_HELP_STRING([--disable-doc], [do not build the documentation]),
38              [], [enable_doc=yes])
39
40AC_MSG_CHECKING([whether to build the documention])
41case "$enable_doc" in
42  yes)
43    DOXYGEN_INTERNAL_DOCS=NO
44    AC_MSG_RESULT([yes])
45    ;;
46  full)
47    DOXYGEN_INTERNAL_DOCS=YES
48    AC_MSG_RESULT([full])
49    ;;
50  no)
51    DOXYGEN_INTERNAL_DOCS=NO
52    AC_MSG_RESULT([no])
53    ;;
54  *)
55    AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
56    ;;
57esac
58AC_SUBST(DOXYGEN_INTERNAL_DOCS)
59AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
60
61dnl Disable/enable building the GUI
62AC_ARG_ENABLE([gui],
63AS_HELP_STRING([--enable-gui], [build the GUI])
64AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
65              [], [enable_gui=no])
66AC_MSG_CHECKING([whether to build the GUI])
67if test x"$enable_gui" != x"no"; then
68  AC_MSG_RESULT([yes])
69else
70  AC_MSG_RESULT([no])
71fi
72if test x"$enable_gui" != x"no"; then
73  PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
74fi
75AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
76
77dnl Disable/enable building the demo programs
78AC_ARG_ENABLE([demo],
79AS_HELP_STRING([--enable-demo], [build the demo programs])
80AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
81              [], [enable_demo=no])
82AC_MSG_CHECKING([whether to build the demo programs])
83if test x"$enable_demo" != x"no"; then
84  AC_MSG_RESULT([yes])
85else
86  AC_MSG_RESULT([no])
87fi
88AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
89
90dnl Disable/enable building the benchmarks
91AC_ARG_ENABLE([benchmark],
92AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
93AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
94              [], [enable_benchmark=no])
95AC_MSG_CHECKING([whether to build the benchmarks])
96if test x"$enable_benchmark" != x"no"; then
97  AC_MSG_RESULT([yes])
98else
99  AC_MSG_RESULT([no])
100fi
101AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
102
103dnl Checks for header files.
104AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
105
106dnl Checks for typedefs, structures, and compiler characteristics.
107AC_C_CONST
108AC_C_INLINE
109AC_TYPE_SIZE_T
110AC_HEADER_TIME
111AC_STRUCT_TM
112
113dnl Checks for library functions.
114AC_HEADER_STDC
115AC_CHECK_FUNCS(gettimeofday times ctime_r)
116
117AC_CONFIG_FILES([
118Makefile
119lemon.spec
120autopackage/default.apspec
121doc/Makefile
122doc/Doxyfile
123lemon/Makefile
124lemon/lemon.pc
125benchmark/Makefile
126demo/Makefile
127test/Makefile
128gui/Makefile
129po/Makefile.in
130m4/Makefile
131])
132
133AC_OUTPUT
134
135echo
136echo '****************************** SUMMARY ******************************'
137echo
138echo Package version............... : $PACKAGE-$VERSION
139echo
140echo C++ compiler.................. : $CXX
141echo C++ compiles flags............ : $CXXFLAGS
142echo
143echo GLPK support.................. : $lx_glpk_found
144echo CPLEX support................. : $lx_cplex_found
145echo
146echo build benchmarks.............. : $enable_benchmark
147echo build demo programs........... : $enable_demo
148echo build GUI..................... : $enable_gui
149echo
150echo The packace will be installed in
151echo -n '  '
152echo $prefix.
153echo
154echo The documentation will be installed in
155echo -n '  '
156eval echo ${datadir}/doc/$PACKAGE.
157echo
158echo '*********************************************************************'
159
160echo
161echo configure complete, now type \'make\' and then \'make install\'.
162echo
Note: See TracBrowser for help on using the repository browser.