source: ThirdParty/JobMarket/configure.ac@ e9f307

Candidate_v1.7.0 stable
Last change on this file since e9f307 was 5b8c49, checked in by Frederik Heber <frederik.heber@…>, 6 weeks ago

FIX: fixes QtPotentialList not getting notified about PotentialRegistry changes.

  • requires codepatterns 1.3.3 with virtual (un)registerInstance Registry functions.
  • the issue is that the RegistryDeserializer<T> class directly calls Registry<T> functions and due to missing "virtual" this bypassed the "OBSERVE" calls in the functions in the inheriting PotentialRegistry.
  • Property mode set to 100644
File size: 7.1 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(JobMarket, 1.1.6, [foo@mastercontrolprogramm.de], [jobmarket], [https://www.molecuilder.com/])
6AC_CONFIG_AUX_DIR([build-aux])
7AC_CONFIG_SRCDIR([src/JobMarket/JobId.hpp])
8AC_CONFIG_HEADER([config.h libJobMarket_config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11# parallel-tests: use parallel test druver
12# color-tests: us coloring to indicate success/failure when available
13# tar-pax: use newer tar implementation with longer filename (>99 chars)
14AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests tar-pax subdir-objects])
15
16# Checks for programs.
17AM_PATH_CPPUNIT(1.9.6,
18 [AM_CONDITIONAL([CPPUNIT], [true])],
19 [
20 PKG_CHECK_MODULES(CPPUNIT, [cppunit >= 1.9.6],
21 [AM_CONDITIONAL([CPPUNIT], [true])],
22 [AM_CONDITIONAL([CPPUNIT], [false])]
23 )
24 ]
25)
26AC_PROG_CXX
27AC_PROG_CC
28AC_PROG_MAKE_SET
29AC_PROG_INSTALL
30
31DX_HTML_FEATURE(ON)
32DX_PS_FEATURE(OFF)
33DX_PDF_FEATURE(OFF)
34DX_INIT_DOXYGEN(JobMarket, Doxyfile, ${docdir})
35
36LT_INIT([static])
37AC_SUBST([LIBTOOL_DEPS])
38
39# Define these substitions here to keep all version information in one place.
40# For information on how to properly maintain the library version information,
41# refer to the libtool manual, section "Updating library version information":
42# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
43AC_SUBST([JOBMARKET_SO_VERSION], [5:0:0])
44AC_SUBST([JOBMARKET_API_VERSION], [1.1.6])
45
46dnl this macro is used to get the arguments supplied
47dnl to the configure script (./configure --enable-debug)
48dnl Check if we have enable debug support.
49AC_MSG_CHECKING(whether to enable debugging)
50have_debug="no"
51AC_ARG_ENABLE(
52 [debug],
53 AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
54 enable_debug=$enableval,
55 enable_debug="no")
56AC_MSG_RESULT($enable_debug)
57AS_IF([test x"$enable_debug" = x"yes"],[
58 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
59 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
60 have_debug="yes"
61],[
62 AS_IF([test x"$enable_debug" = x"full"],[
63 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
64 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
65 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
66 AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
67 have_debug="full"
68 ],[
69 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
70 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
71 AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
72 have_debug="no"
73 ])
74])
75AC_SUBST(HAVE_DEBUG)
76
77dnl this macro is used to get the arguments supplied
78dnl to the configure script (./configure --enable-debug)
79dnl Check if we have enable debug support.
80AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
81AC_ARG_ENABLE(
82 [cache],
83 AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
84 enable_cache=$enableval,
85 enable_cache="yes")
86AC_MSG_RESULT($enable_cache)
87AS_IF([test x"$enable_cache" != x"no"],[
88 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
89],[
90 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
91 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
92])
93AC_SUBST(HAVE_CACHE)
94
95# CodePatterns library (requires new global NotificationChannel functions)
96AM_PATH_CODEPATTERNS([1.3.3], $have_debug,,[
97 # compile from ThirdParty
98 [CodePatterns_LDFLAGS='-L$(top_builddir)/../CodePatterns/src']
99 [CodePatterns_CFLAGS='-I$(top_srcdir)/../CodePatterns/src']
100 AS_IF([test x"$enable_debug" != x"no"], [
101 [CodePatterns_LIBS='-lcodepatterns-debug']
102 ],[
103 [CodePatterns_LIBS='-lcodepatterns']
104 ])
105 AC_SUBST(CodePatterns_LDFLAGS)
106 AC_SUBST(CodePatterns_CFLAGS)
107 AC_SUBST(CodePatterns_LIBS)
108 #AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])
109])
110
111# boost
112BOOST_REQUIRE([1.40])
113
114# boost headers
115BOOST_BIND
116BOOST_FOREACH
117BOOST_EXCEPTION
118
119# boost libraries
120BOOST_ASIO
121BOOST_FILESYSTEM
122BOOST_IOSTREAMS
123BOOST_PROGRAM_OPTIONS
124BOOST_SERIALIZATION
125
126# Checks for header files.
127AC_HEADER_STDC
128AC_CHECK_HEADERS([unistd.h])
129
130
131# Checks for function
132AC_CHECK_FUNCS([atexit])
133AC_CHECK_FUNCS([gethostname])
134AC_CHECK_FUNCS([socket])
135AC_FUNC_MALLOC
136AC_FUNC_REALLOC
137AC_FUNC_ERROR_AT_LINE
138
139# Checks for typedefs, structures, and compiler characteristics.
140AC_HEADER_STDBOOL
141AC_TYPE_SIZE_T
142
143# use CppUnit TestRunner or not
144AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
145AC_ARG_ENABLE(
146 [ecut],
147 AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
148 enable_ecut=$disableval,
149 enable_ecut="no")
150AC_MSG_RESULT($enable_ecut)
151AS_IF([test x"$enable_ecut" = x"yes"],[
152 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
153 AC_SUBST(HAVE_ECUT)
154])
155AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
156
157# with valgrinding testsuite or not
158AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
159AC_ARG_ENABLE(
160 [valgrind],
161 AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
162 enable_valgrind=$enableval,
163 enable_valgrind="no")
164AC_MSG_RESULT($enable_valgrind)
165AS_IF([test x"$enable_valgrind" = x"yes"], [
166 AC_CHECK_HEADER([valgrind/valgrind.h],
167 [
168 # check header
169 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
170 # check path
171 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
172 # set variables
173 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
174 AC_SUBST(VALGRIND)
175 ],
176 [
177 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
178 ]
179 )
180])
181
182# Check for "extern inline", using a modified version
183# of the test for AC_C_INLINE from acspecific.mt
184AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
185[ac_cv_c_extern_inline=no
186AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
187extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
188double foo (double x) { return x + 1.0; };],
189[ foo(1.0) ],
190[ac_cv_c_extern_inline="yes"])
191])
192
193if test "$ac_cv_c_inline" != no ; then
194 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
195 AC_SUBST(HAVE_INLINE)
196fi
197
198#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
199
200# test suite
201AC_CONFIG_FILES([tests/Makefile])
202
203AC_CONFIG_TESTDIR(tests/CodeChecks)
204AC_CONFIG_FILES([
205 tests/CodeChecks/atlocal
206 tests/CodeChecks/Makefile])
207
208AC_CONFIG_TESTDIR(tests/regression)
209AC_CONFIG_FILES([
210 tests/regression/atlocal
211 tests/regression/Makefile])
212
213AC_CONFIG_FILES([
214 JobMarket.pc:JobMarket.pc.in
215 JobMarket-debug.pc:JobMarket-debug.pc.in
216 JobMarketController.pc:JobMarketController.pc.in
217 JobMarketController-debug.pc:JobMarketController-debug.pc.in
218 JobMarketPoolWorker.pc:JobMarketPoolWorker.pc.in
219 JobMarketPoolWorker-debug.pc:JobMarketPoolWorker-debug.pc.in
220 JobMarketServer.pc:JobMarketServer.pc.in
221 JobMarketServer-debug.pc:JobMarketServer-debug.pc.in
222])
223
224AC_CONFIG_FILES([
225 Makefile
226 doc/Makefile
227 src/JobMarket/Makefile
228 src/unittests/Makefile
229])
230
231AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.