1 | ######################################################################
|
---|
2 | # Autoconf initial setup
|
---|
3 | ######################################################################
|
---|
4 |
|
---|
5 | #[AC_]PACKAGE_NAME
|
---|
6 | #[AC_]PACKAGE_TARNAME
|
---|
7 | #[AC_]PACKAGE_VERSION
|
---|
8 | #[AC_]PACKAGE_STRING
|
---|
9 | #[AC_]PACKAGE_BUGREPORT
|
---|
10 | AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://fact.isdc.unige.ch/svn/trunk/FACT++/])
|
---|
11 | AC_PREREQ([2.65])
|
---|
12 | AC_CONFIG_FILES([Makefile]) # causes x/Makefile.in to be created if x/Makefile.am exists
|
---|
13 | #AC_CONFIG_HEADERS([config.h])
|
---|
14 | AC_CONFIG_MACRO_DIR([.macro_dir])
|
---|
15 | AC_CONFIG_AUX_DIR([.aux_dir])
|
---|
16 |
|
---|
17 | # Make sure none of the following will set -O2
|
---|
18 | AC_ARG_ENABLE([optimization],
|
---|
19 | AS_HELP_STRING([--disable-optimization], [Compile with -O0 instead of -O3])
|
---|
20 | )
|
---|
21 | AS_IF([test "x$enable_optimization" != "xno"], [MYFLAGS+=" -O3"], [MYFLAGS+=" -O0"])
|
---|
22 |
|
---|
23 | AC_ARG_ENABLE([debug],
|
---|
24 | AS_HELP_STRING([--enable-debug], [Compile with debugging symbols (-g)])
|
---|
25 | )
|
---|
26 | AS_IF([test "x$enable_debug" = "xyes"], [MYFLAGS+=" -g"])
|
---|
27 |
|
---|
28 | CFLAGS+=$MYFLAGS
|
---|
29 | CXXFLAGS+=$MYFLAGS
|
---|
30 |
|
---|
31 | AC_PROG_CC([gcc])
|
---|
32 | AC_PROG_CXX([g++])
|
---|
33 |
|
---|
34 | COLORGCC=`which colorgcc`
|
---|
35 | AS_IF([test -n "$COLORGCC"], [
|
---|
36 | AC_CONFIG_LINKS([g++:$COLORGCC gcc:$COLORGCC])
|
---|
37 | PATH=./:$PATH
|
---|
38 | ])
|
---|
39 |
|
---|
40 | #AC_PROG_CC_C99
|
---|
41 | AC_PROG_CC_STDC
|
---|
42 |
|
---|
43 | ######################################################################
|
---|
44 | # GNUC extension support (needed for the event builder)
|
---|
45 | ######################################################################
|
---|
46 |
|
---|
47 | AC_USE_SYSTEM_EXTENSIONS(_GNU_SOURCE)
|
---|
48 |
|
---|
49 | ######################################################################
|
---|
50 | # Check for right C++ standard
|
---|
51 | ######################################################################
|
---|
52 |
|
---|
53 | #AC_CXX_HEADER_STDCXX_0X
|
---|
54 | AC_CXX_COMPILE_STDCXX_0X
|
---|
55 | AS_IF([test "$ax_cv_cxx_compile_cxx0x_cxx" != yes],
|
---|
56 | AC_MSG_ERROR([C++0x standard (-std=c++0x) not supported by compiler.]))
|
---|
57 |
|
---|
58 | # Postponed after the BOOST library tests otherwise the check for boost::thread fails
|
---|
59 | #CXXFLAGS+=" -std=c++0x"
|
---|
60 |
|
---|
61 | ######################################################################
|
---|
62 | # Setup the libtool and the language
|
---|
63 | ######################################################################
|
---|
64 |
|
---|
65 | LT_INIT([disable-static])
|
---|
66 | AC_LANG(C++)
|
---|
67 | #AC_PATH_XTRA
|
---|
68 |
|
---|
69 | ######################################################################
|
---|
70 | # Automake initial setup
|
---|
71 | ######################################################################
|
---|
72 | AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
|
---|
73 | AM_SILENT_RULES([yes])
|
---|
74 |
|
---|
75 | AM_PROG_CC_C_O
|
---|
76 |
|
---|
77 | ######################################################################
|
---|
78 | # DOXYGEN SUPPORT
|
---|
79 | ######################################################################
|
---|
80 |
|
---|
81 | ### FIXME: Need a configure commandline switch
|
---|
82 | DX_ENV_APPEND(EXTRACT_ALL, YES)
|
---|
83 | DX_ENV_APPEND(RECURSIVE, YES)
|
---|
84 | DX_ENV_APPEND(ALL_GRAPHS, NO) # change to yes to switch on call(er) graphs
|
---|
85 |
|
---|
86 | #DX_DOXYGEN_FEATURE(ON)
|
---|
87 | DX_DOT_FEATURE(ON) # sets HAVE_DOT
|
---|
88 | #DX_HTML_FEATURE(ON) # sets GENERATE_HTML (default)
|
---|
89 | #DX_CHM_FEATURE(ON|OFF) # sets GENERATE_HTMLHELP
|
---|
90 | #DX_CHI_FEATURE(ON|OFF) # sets GENERATE_CHI
|
---|
91 | #DX_MAN_FEATURE(ON) # sets GENERATE_MAN (segfaults)
|
---|
92 | #DX_RTF_FEATURE(ON|OFF) # sets GENERATE_RTF
|
---|
93 | #DX_XML_FEATURE(ON|OFF) # sets GENERATE_XML
|
---|
94 | #DX_PDF_FEATURE(ON|OFF) # sets GENERATE_PDF (default)
|
---|
95 | DX_PS_FEATURE(OFF) # sets GENERATE_PS (default)
|
---|
96 | DX_INIT_DOXYGEN($PACKAGE_NAME)#, DOXYFILE-PATH, [OUTPUT-DIR])
|
---|
97 |
|
---|
98 | #USE_HTAGS = $(USE_HTAGS)
|
---|
99 |
|
---|
100 | ######################################################################
|
---|
101 | # pthread/Readline/NCurses (pthread needed by dim and boost)
|
---|
102 | ######################################################################
|
---|
103 |
|
---|
104 | AC_LANG_PUSH(C)
|
---|
105 |
|
---|
106 | # Check for math library (some linux need this to compile cfitsio)
|
---|
107 | AC_CHECK_LIB([m],[cos])
|
---|
108 |
|
---|
109 | # Needed to compile dim
|
---|
110 | ACX_PTHREAD
|
---|
111 |
|
---|
112 | CPPFLAGS+=" "$PTHREAD_CFLAGS
|
---|
113 | LDFLAGS+=" "$PTHREAD_CFLAGS
|
---|
114 |
|
---|
115 |
|
---|
116 | # Needed to compile FACT++
|
---|
117 | AC_CHECK_READLINE
|
---|
118 | AS_IF([test "x$have_readline" != "xyes"],
|
---|
119 | AC_MSG_ERROR([The readline library is not properly installed.]))
|
---|
120 |
|
---|
121 | CPPFLAGS+=" "$READLINE_INCLUDES
|
---|
122 | LDFLAGS+=" "$READLINE_LIBS
|
---|
123 |
|
---|
124 | # Needed to compile FACT++
|
---|
125 | AC_CHECK_HEADERS([panel.h],,
|
---|
126 | AC_MSG_ERROR([ncurses header not found]))
|
---|
127 |
|
---|
128 | # Needed to compile FACT++
|
---|
129 | AC_CHECK_LIB(panel, update_panels,,
|
---|
130 | AC_MSG_ERROR([ncurses panel library not found]))
|
---|
131 |
|
---|
132 | # Xm.h (lesstif/motif, needed to compile did)
|
---|
133 | AC_FIND_MOTIF
|
---|
134 |
|
---|
135 | CPPFLAGS+=" "$MOTIF_INCL
|
---|
136 | LDFLAGS+=" "$MOTIF_LDFLAGS
|
---|
137 |
|
---|
138 | AM_COND_IF(HAS_LIBXP,,
|
---|
139 | AC_MSG_WARN([ Motif/lesstif not found!])
|
---|
140 | )
|
---|
141 |
|
---|
142 | # Check for zlib and exit with error if not found (defines HAVE_LIBZ)
|
---|
143 | AC_CHECK_PACKAGE(zlib, inflateEnd, z, zlib.h,
|
---|
144 | HAVE_ZLIB=yes, HAVE_ZLIB=no)
|
---|
145 |
|
---|
146 | # Check for GL and GLU needed for the raw event viewer
|
---|
147 | AC_CHECK_PACKAGE(GL, glLoadIdentity, GL, GL/gl.h, HAVE_GL=yes, HAVE_GL=no)
|
---|
148 | AC_CHECK_PACKAGE(GLU, gluNewTess, GLU, GL/glu.h, HAVE_GLU=yes, HAVE_GLU=no)
|
---|
149 |
|
---|
150 | # Check for libnova
|
---|
151 | AC_CHECK_PACKAGE(nova, ln_get_julian_from_sys, nova, libnova/julian_day.h, HAVE_NOVA=yes, HAVE_NOVA=no)
|
---|
152 |
|
---|
153 | # Taken from http://code.google.com/p/autoconf-gl-macros/
|
---|
154 | #AX_CHECK_GL
|
---|
155 | #AX_CHECK_GLU
|
---|
156 | #AX_CHECK_GLUT
|
---|
157 |
|
---|
158 | # Check for the fits header and zstream support from MARS
|
---|
159 | #AC_CHECK_FILE(gui/RawEventsViewer/izstream.h,
|
---|
160 | # HAVE_IZSTREAM_H=yes, HAVE_IZSTREAM_H=no)
|
---|
161 | #AC_CHECK_FILE(gui/RawEventsViewer/fits.h,
|
---|
162 | # HAVE_FITS_H=yes, HAVE_FITS_H=no)
|
---|
163 |
|
---|
164 | # Needed to compile FACT++
|
---|
165 | AC_CHECK_PACKAGE(cfitsio, ffpss, cfitsio, fitsio.h,
|
---|
166 | HAVE_CFITSIO=yes, HAVE_CFITSIO=no)
|
---|
167 |
|
---|
168 | #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found]))
|
---|
169 | #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found]))
|
---|
170 |
|
---|
171 | AC_LANG_POP(C)
|
---|
172 |
|
---|
173 | # Needed to compile FACT++
|
---|
174 | AC_CHECK_PACKAGE(ccfits, main, CCfits, CCfits/CCfits,
|
---|
175 | HAVE_CCFITS=yes, HAVE_CCFITS=no)
|
---|
176 |
|
---|
177 | #AC_CHECK_HEADERS([CCfits/CCfits],,
|
---|
178 | # AC_MSG_ERROR(CCfits headers not found))
|
---|
179 | #AC_CHECK_LIB(CCfits, main,,
|
---|
180 | # AC_MSG_ERROR(CCfits library not found))
|
---|
181 |
|
---|
182 | ######################################################################
|
---|
183 | # MySQL(++) SUPPORT
|
---|
184 | ######################################################################
|
---|
185 |
|
---|
186 | # Needed to compile FACT++
|
---|
187 | MYSQL_DEVEL
|
---|
188 | MYSQLPP_DEVEL
|
---|
189 |
|
---|
190 | LDFLAGS+=" -lmysqlpp"
|
---|
191 |
|
---|
192 | ######################################################################
|
---|
193 | # BOOST SUPPORT
|
---|
194 | ######################################################################
|
---|
195 |
|
---|
196 | # Needed to compile FACT++
|
---|
197 | AX_BOOST_BASE([1.40], [],
|
---|
198 | AC_MSG_ERROR([The boost C++ libraries (>=1.40) are not properly installed.])
|
---|
199 | )
|
---|
200 |
|
---|
201 | AC_MSG_CHECKING([for BOOST_CPPFLAGS])
|
---|
202 | AC_MSG_RESULT([$BOOST_CPPFLAGS])
|
---|
203 |
|
---|
204 | AC_MSG_CHECKING([for BOOST_LDFLAGS])
|
---|
205 | AC_MSG_RESULT([$BOOST_LDFLAGS])
|
---|
206 |
|
---|
207 | # Keep this order AX_BOOST_FILESYSTEM needs AX_BOOST_SYSTEM_LIB
|
---|
208 | AX_BOOST_SYSTEM
|
---|
209 | AS_IF([test "x$ax_cv_boost_system" != "xyes"],
|
---|
210 | AC_MSG_ERROR([Problems with the Boost::System libarary.]))
|
---|
211 |
|
---|
212 | AX_BOOST_ASIO
|
---|
213 | AS_IF([test "x$ax_cv_boost_asio" != "xyes"],
|
---|
214 | AC_MSG_ERROR([Problems with the Boost::ASIO libarary.]))
|
---|
215 |
|
---|
216 | AX_BOOST_DATE_TIME
|
---|
217 | AS_IF([test "x$ax_cv_boost_date_time" != "xyes"],
|
---|
218 | AC_MSG_ERROR([Problems with the Boost::Date_Time libarary.]))
|
---|
219 |
|
---|
220 | AX_BOOST_FILESYSTEM
|
---|
221 | AS_IF([test "x$ax_cv_boost_filesystem" != "xyes"],
|
---|
222 | AC_MSG_ERROR([Problems with the Boost::Filesystem libarary.]))
|
---|
223 |
|
---|
224 | AX_BOOST_PROGRAM_OPTIONS
|
---|
225 | AS_IF([test "x$ax_cv_boost_program_options" != "xyes"],
|
---|
226 | AC_MSG_ERROR([Problems with the Boost::Program_Options libarary.]))
|
---|
227 |
|
---|
228 | AX_BOOST_REGEX
|
---|
229 | AS_IF([test "x$ax_cv_boost_regex" != "xyes"],
|
---|
230 | AC_MSG_ERROR([Problems with the Boost::Regex libarary.]))
|
---|
231 |
|
---|
232 | AX_BOOST_THREAD
|
---|
233 | AS_IF([test "x$ax_cv_boost_thread" != "xyes"],
|
---|
234 | AC_MSG_ERROR([Problems with the Boost::Thread libarary.]))
|
---|
235 | #AX_BOOST_IOSTREAMS
|
---|
236 | #AX_BOOST_PYTHON
|
---|
237 | #AX_BOOST_SERIALIZATION
|
---|
238 | #AX_BOOST_SIGNALS
|
---|
239 | #AX_BOOST_TEST_EXEC_MONITOR
|
---|
240 | #AX_BOOST_UNIT_TEST_FRAMEWORK
|
---|
241 | #AX_BOOST_WAVE
|
---|
242 | #AX_BOOST_WSERIALIZATION
|
---|
243 |
|
---|
244 | LDFLAGS+=" "$BOOST_LDFLAGS
|
---|
245 | LDFLAGS+=" "$BOOST_SYSTEM_LIB
|
---|
246 | LDFLAGS+=" "$BOOST_ASIO_LIB
|
---|
247 | LDFLAGS+=" "$BOOST_DATE_TIME_LIB
|
---|
248 | LDFLAGS+=" "$BOOST_FILESYSTEM_LIB
|
---|
249 | LDFLAGS+=" "$BOOST_PROGRAM_OPTIONS_LIB
|
---|
250 | LDFLAGS+=" "$BOOST_REGEX_LIB
|
---|
251 | LDFLAGS+=" "$BOOST_THREAD_LIB
|
---|
252 |
|
---|
253 | CPPFLAGS+=" "$BOOST_CPPFLAGS
|
---|
254 |
|
---|
255 | # Now we can safely add the compiler option for your prefered standard
|
---|
256 | CXXFLAGS+=" -std=c++0x"
|
---|
257 |
|
---|
258 | #AC_CHECK_HEADERS(
|
---|
259 | # [\
|
---|
260 | # boost/bind.hpp \
|
---|
261 | # boost/lexical_cast.hpp \
|
---|
262 | # boost/filesystem.hpp \
|
---|
263 | # boost/thread.hpp \
|
---|
264 | # boost/function.hpp \
|
---|
265 | # boost/regex.hpp \
|
---|
266 | # boost/asio.hpp \
|
---|
267 | # boost/enable_shared_from_this.hpp \
|
---|
268 | # boost/asio/deadline_timer.hpp \
|
---|
269 | # boost/date_time/posix_time/posix_time.hpp \
|
---|
270 | # boost/date_time/local_time/local_time.hpp \
|
---|
271 | # boost/date_time/gregorian/gregorian.hpp
|
---|
272 | # ], [],
|
---|
273 | # [
|
---|
274 | # echo "Error! At least one needed header of the boost C++ libararies is missing."
|
---|
275 | # exit -1
|
---|
276 | # ]
|
---|
277 | #)
|
---|
278 |
|
---|
279 | ######################################################################
|
---|
280 | # QT4/GUI SUPPORT
|
---|
281 | ######################################################################
|
---|
282 |
|
---|
283 | AC_ARG_WITH([qt4],
|
---|
284 | [AS_HELP_STRING([--without-qt4], [Disable qt4, i.e. disable gui support.])],
|
---|
285 | [], [QT4_DO_IT_ALL])
|
---|
286 |
|
---|
287 | # This allows to list the QT4 stuff independantly later
|
---|
288 | CPPFLAGS+=" "${QT4_INCLUDES}" "
|
---|
289 | AC_CHECK_CLASS(QGL, [QGLWidget qgl], QtOpenGL, QtOpenGL/QGLWidget,
|
---|
290 | HAVE_QGL=yes, HAVE_QGL=no)
|
---|
291 | AC_CHECK_CLASS(qwt, [QwtPlot qwt], qwt-qt4, qwt_plot.h,
|
---|
292 | HAVE_QWT=yes, HAVE_QWT=no)
|
---|
293 | AC_CHECK_CLASS(soprano, Soprano::PluginManager::instance, soprano, Soprano/Soprano,
|
---|
294 | HAVE_SOPRANO=yes, HAVE_SOPRANO=no)
|
---|
295 |
|
---|
296 | ######################################################################
|
---|
297 | # ROOT SUPPORT
|
---|
298 | ######################################################################
|
---|
299 |
|
---|
300 | AC_ARG_WITH([root],
|
---|
301 | [AS_HELP_STRING([--without-root], [Disable root, i.e. disable gui support.])],
|
---|
302 | [], [ROOT_PATH([5.12/00])]
|
---|
303 | )
|
---|
304 |
|
---|
305 | if [test "$ROOTEXEC" != no -a -n "$ROOTVERSION"] ;
|
---|
306 | then
|
---|
307 |
|
---|
308 | ROOTCPPFLAGS=$ROOTCFLAGS" "$ROOTAUXCFLAGS
|
---|
309 | ROOTLDFLAGS="-L"$ROOTLIBDIR" -lGQt"
|
---|
310 |
|
---|
311 | #AC_CHECK_PROG(HAVE_ROOT_QT, libGQt.so.$ROOTSOVERSION, yes, no, $ROOTLIBDIR)
|
---|
312 | #AC_CHECK_PROG(HAVE_GQT, libGQt.so.$ROOTSOVERSION, yes, no, $LD_LIBRARY_PATH)
|
---|
313 |
|
---|
314 | # It seems it dooesn't work on older root versions
|
---|
315 | ROOT_FEATURE([qt], [HAVE_ROOT_QT=yes])
|
---|
316 |
|
---|
317 | AC_SUBST(ROOTCPPFLAGS)
|
---|
318 | AC_SUBST(ROOTLDFLAGS)
|
---|
319 | fi
|
---|
320 |
|
---|
321 |
|
---|
322 | ######################################################################
|
---|
323 | # Check if we have colordiff to colorize 'svn diff'
|
---|
324 | ######################################################################
|
---|
325 |
|
---|
326 | # Nice to have to support colored diff
|
---|
327 | AC_CHECK_PROG(COLORDIFF, colordiff, colordiff, cat)
|
---|
328 | AC_CHECK_PROG(GROFF, groff, yes, no)
|
---|
329 | AC_CHECK_PROG(PS2PDF, ps2pdf, yes, no)
|
---|
330 | AC_CHECK_PROG(HELP2MAN, help2man, yes, no)
|
---|
331 |
|
---|
332 | ##########################################################################
|
---|
333 | # debug compilation support
|
---|
334 | ##########################################################################
|
---|
335 | #
|
---|
336 | #AC_MSG_CHECKING([whether to build with debug information])
|
---|
337 | #AC_ARG_ENABLE([debug],
|
---|
338 | # [AS_HELP_STRING([--enable-debug],
|
---|
339 | # [enable debug data generation (def=no)])],
|
---|
340 | # [debugit="$enableval"],
|
---|
341 | # [debugit=no])
|
---|
342 | #AC_MSG_RESULT([$debugit])
|
---|
343 | #
|
---|
344 | #if test x"$debugit" = x"yes"; then
|
---|
345 | # AC_DEFINE([DEBUG],[],[Debug Mode])
|
---|
346 | # AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Werror -Wno-uninitialized -O0"
|
---|
347 | #else
|
---|
348 | # AC_DEFINE([NDEBUG],[],[No-debug Mode])
|
---|
349 | # AM_CXXFLAGS="$AM_CXXFLAGS -O3"
|
---|
350 | #fi
|
---|
351 | #
|
---|
352 |
|
---|
353 | ##########################################################################
|
---|
354 | # produce conditionals for Makefile.am and for summary
|
---|
355 | ##########################################################################
|
---|
356 |
|
---|
357 | AM_CONDITIONAL(HAS_COLORDIFF, [test "$COLORDIFF" = colordiff])
|
---|
358 | AM_CONDITIONAL(HAS_GROFF, [test "$GROFF" = yes])
|
---|
359 | AM_CONDITIONAL(HAS_PS2PDF, [test "$PS2PDF" = yes])
|
---|
360 | AM_CONDITIONAL(HAS_HELP2MAN, [test "$HELP2MAN" = yes])
|
---|
361 | AM_CONDITIONAL(HAS_DOXYGEN, [test -n "$DX_DOXYGEN"])
|
---|
362 | AM_CONDITIONAL(HAS_DOT, [test -n "$DX_DOT"])
|
---|
363 | AM_CONDITIONAL(HAS_COLORGCC, [test "$COLORGCC"])
|
---|
364 | AM_CONDITIONAL(HAS_QT4, [test -n "$QT4_VERSION"])
|
---|
365 | AM_CONDITIONAL(HAS_ROOT, [test "$ROOTEXEC" != no])
|
---|
366 | AM_CONDITIONAL(HAS_ROOT_QT, [test "$HAVE_ROOT_QT" = yes])
|
---|
367 | AM_CONDITIONAL(HAS_CFITSIO, [test "$HAVE_CFITSIO" = yes])
|
---|
368 | AM_CONDITIONAL(HAS_CCFITS, [test "$HAVE_CCFITS" = yes])
|
---|
369 | AM_CONDITIONAL(HAS_FITS, [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes])
|
---|
370 | AM_CONDITIONAL(HAS_ZLIB, [test "$HAVE_ZLIB" = yes])
|
---|
371 | #AM_CONDITIONAL(HAS_IZSTREAM_H,[test "$HAVE_IZSTREAM_H" = yes])
|
---|
372 | #AM_CONDITIONAL(HAS_FITS_H, [test "$HAVE_FITS_H" = yes])
|
---|
373 | AM_CONDITIONAL(HAS_GL, [test "$HAVE_GL" = yes])
|
---|
374 | AM_CONDITIONAL(HAS_GLU, [test "$HAVE_GLU" = yes])
|
---|
375 | AM_CONDITIONAL(HAS_QGL, [test "$HAVE_QGL" = yes])
|
---|
376 | AM_CONDITIONAL(HAS_QWT, [test "$HAVE_QWT" = yes])
|
---|
377 | AM_CONDITIONAL(HAS_NOVA, [test "$HAVE_NOVA" = yes])
|
---|
378 | AM_CONDITIONAL(HAS_SOPRANO, [test "$HAVE_SOPRANO" = yes])
|
---|
379 |
|
---|
380 | AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ])
|
---|
381 | AM_CONDITIONAL(HAS_VIEWER, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_QWT" = yes])
|
---|
382 |
|
---|
383 | AM_CONDITIONAL(IS_FALSE, [test "x" = "y"])
|
---|
384 | AM_CONDITIONAL(IS_TRUE, [test "x" = "x"])
|
---|
385 |
|
---|
386 | AM_COND_IF(HAS_FITS, [AC_DEFINE(HAVE_FITS)], )
|
---|
387 | AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], )
|
---|
388 | AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
|
---|
389 | AM_COND_IF(HAS_NOVA, [AC_DEFINE(HAVE_NOVA)], )
|
---|
390 |
|
---|
391 | #AM_COND_IF(HAS_FITS_H, [
|
---|
392 | # AM_COND_IF(HAS_IZSTREAM_H, [
|
---|
393 | # ])
|
---|
394 | #],)
|
---|
395 |
|
---|
396 |
|
---|
397 | ##########################################################################
|
---|
398 | # print summary
|
---|
399 | ##########################################################################
|
---|
400 |
|
---|
401 | AC_OUTPUT
|
---|
402 |
|
---|
403 | AC_MSG_NOTICE()
|
---|
404 | AC_MSG_NOTICE(============================== summary =============================)
|
---|
405 | AC_MSG_NOTICE()
|
---|
406 | AC_MSG_NOTICE([ CFLAGS = $CFLAGS])
|
---|
407 | AC_MSG_NOTICE()
|
---|
408 | AC_MSG_NOTICE([ CXXFLAGS = $CXXFLAGS])
|
---|
409 | AC_MSG_NOTICE()
|
---|
410 | AC_MSG_NOTICE([ CPPFLAGS = $CPPFLAGS])
|
---|
411 | AC_MSG_NOTICE()
|
---|
412 | AC_MSG_NOTICE([ LDFLAGS = $LDFLAGS])
|
---|
413 | AC_MSG_NOTICE()
|
---|
414 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
415 | AC_MSG_NOTICE()
|
---|
416 | AC_MSG_NOTICE([ BOOST_CPPFLAGS = $BOOST_CPPFLAGS])
|
---|
417 | AC_MSG_NOTICE([ BOOST_LDFLAGS = $BOOST_LDFLAGS])
|
---|
418 | AC_MSG_NOTICE()
|
---|
419 | AM_COND_IF(HAS_QT4, [
|
---|
420 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
421 | AC_MSG_NOTICE()
|
---|
422 | AC_MSG_NOTICE([ QT4_VERSION = $QT4_VERSION])
|
---|
423 | AC_MSG_NOTICE()
|
---|
424 | AC_MSG_NOTICE([ QT4_LIB = $QT4_LIB])
|
---|
425 | AC_MSG_NOTICE([ QT4_LDFLAGS = $QT4_LDFLAGS])
|
---|
426 | AC_MSG_NOTICE([ QT4_INCLUDES = $QT4_INCLUDES])
|
---|
427 | AC_MSG_NOTICE()
|
---|
428 | AC_MSG_NOTICE([ MOC4 = $MOC4])
|
---|
429 | AC_MSG_NOTICE([ UIC4 = $UIC4])
|
---|
430 | AC_MSG_NOTICE([ RCC4 = $RCC4])
|
---|
431 | AC_MSG_NOTICE()
|
---|
432 | ],[])
|
---|
433 | AM_COND_IF(HAS_ROOT, [
|
---|
434 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
435 | AC_MSG_NOTICE()
|
---|
436 | AC_MSG_NOTICE([ ROOTVERSION = $ROOTVERSION])
|
---|
437 | AC_MSG_NOTICE()
|
---|
438 | AC_MSG_NOTICE([ ROOTEXEC = $ROOTEXEC])
|
---|
439 | AC_MSG_NOTICE([ ROOTCONF = $ROOTCONF])
|
---|
440 | AC_MSG_NOTICE([ ROOTCINT = $ROOTCINT])
|
---|
441 | AC_MSG_NOTICE([ ROOTCPPFLAGS = $ROOTCPPFLAGS])
|
---|
442 | AC_MSG_NOTICE([ ROOTLDFLAGS = $ROOTLDFLAGS])
|
---|
443 | AC_MSG_NOTICE()
|
---|
444 | ],[])
|
---|
445 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
446 | AC_MSG_NOTICE()
|
---|
447 | AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB])
|
---|
448 | AC_MSG_NOTICE([ nova / libnova.so found: $HAVE_NOVA])
|
---|
449 | #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h found: $HAVE_IZSTREAM_H])
|
---|
450 | #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h found: $HAVE_FITS_H])
|
---|
451 | AC_MSG_NOTICE([ GL / GL/gl.h found: $HAVE_GL])
|
---|
452 | AC_MSG_NOTICE([ GLU / GL/glu.h found: $HAVE_GLU])
|
---|
453 | AC_MSG_NOTICE([ QtOpenGL / QtOpenGL/QGLWidget found: $HAVE_QGL])
|
---|
454 | AC_MSG_NOTICE([ Qwt / qwt_plot.h found: $HAVE_QWT])
|
---|
455 | AC_MSG_NOTICE([ Soprano / Soprano/Soprano found: $HAVE_SOPRANO])
|
---|
456 | AC_MSG_NOTICE([ cfitsio / 'fitsio.h' found: $HAVE_CFITSIO])
|
---|
457 | AC_MSG_NOTICE([ CCfits / 'CCfits/CCfits' found: $HAVE_CCFITS])
|
---|
458 | AM_COND_IF(HAS_LIBXP,
|
---|
459 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
|
---|
460 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
|
---|
461 | )
|
---|
462 |
|
---|
463 | AM_COND_IF(HAS_LIBXP,
|
---|
464 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
|
---|
465 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
|
---|
466 | )
|
---|
467 | AM_COND_IF(HAS_COLORDIFF,
|
---|
468 | AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: yes]),
|
---|
469 | AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: no])
|
---|
470 | )
|
---|
471 | AM_COND_IF(HAS_HELP2MAN,[
|
---|
472 | AC_MSG_NOTICE([ man-pages enabled / 'help2man' found: $HELP2MAN])
|
---|
473 | AM_COND_IF(HAS_GROFF,
|
---|
474 | AC_MSG_NOTICE([ build of html enabled / 'groff' found: yes])
|
---|
475 | AC_MSG_NOTICE([ build of pdf enabled / 'ps2pdf' found: $PS2PDF]),
|
---|
476 | AC_MSG_NOTICE([ build of html and pdf / 'groff' found: no])
|
---|
477 | )
|
---|
478 | ],[
|
---|
479 | AC_MSG_NOTICE([ man, html, pdf enabled / 'help2man' found: no])
|
---|
480 | ])
|
---|
481 |
|
---|
482 | AM_COND_IF(HAS_DOXYGEN,
|
---|
483 | AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: $DX_DOXYGEN]),
|
---|
484 | AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: no])
|
---|
485 | )
|
---|
486 | AM_COND_IF(HAS_DOT,
|
---|
487 | AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: $DX_DOT]),
|
---|
488 | AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: no])
|
---|
489 | )
|
---|
490 | AM_COND_IF(HAS_QT4,
|
---|
491 | AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: yes]),
|
---|
492 | AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: no])
|
---|
493 | )
|
---|
494 | AC_MSG_NOTICE([ ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC])
|
---|
495 | AM_COND_IF(HAS_ROOT_QT,
|
---|
496 | AC_MSG_NOTICE([ ROOT built with --with-qt found: yes]),
|
---|
497 | AC_MSG_NOTICE([ ROOT built with --with-qt found: no])
|
---|
498 | )
|
---|
499 | AC_MSG_NOTICE()
|
---|
500 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
501 | AC_MSG_NOTICE()
|
---|
502 | AC_MSG_NOTICE([Suggestions and hints:])
|
---|
503 | AC_MSG_NOTICE()
|
---|
504 | AC_MSG_NOTICE([ - Add 'V=1' to you make-call to switch on verbose output.])
|
---|
505 | AC_MSG_NOTICE([ - Do not try to create man-pages with doxygen,])
|
---|
506 | AC_MSG_NOTICE([ it does most probably not work.])
|
---|
507 | AM_COND_IF(HAS_COLORGCC,,
|
---|
508 | AC_MSG_NOTICE([ - Install colorgcc to get colored compiler output.])
|
---|
509 | )
|
---|
510 | AC_MSG_NOTICE([ - If you send me a bug report about:])
|
---|
511 | AC_MSG_NOTICE([ + configure: please attach the file config.log])
|
---|
512 | AC_MSG_NOTICE([ + make: please send me the output of 'make V=1'])
|
---|
513 | AC_MSG_NOTICE()
|
---|
514 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
515 | AC_MSG_NOTICE()
|
---|
516 | AC_MSG_NOTICE([Some interesting build targets:])
|
---|
517 | AC_MSG_NOTICE()
|
---|
518 | AC_MSG_NOTICE([ diff: colored 'svn diff' if colordiff is installed])
|
---|
519 | AM_COND_IF(HAS_HELP2MAN,[
|
---|
520 | AC_MSG_NOTICE([ program.man: build man-page from 'program --help'])
|
---|
521 | AC_MSG_NOTICE([ (display with 'man ./program.man')])
|
---|
522 | AM_COND_IF(HAS_GROFF,[
|
---|
523 | AC_MSG_NOTICE([ program.html: build html page from man-page])
|
---|
524 | AM_COND_IF(HAS_PS2PDF,
|
---|
525 | AC_MSG_NOTICE([ program.pdf: build pdf documentation from man page])
|
---|
526 | )
|
---|
527 | ])
|
---|
528 | ])
|
---|
529 | AM_COND_IF(HAS_DOXYGEN,
|
---|
530 | AC_MSG_NOTICE([ doxygen-run: build html documentation with doxygen])
|
---|
531 | AC_MSG_NOTICE([ doxygen-doc: build html and pdf documentation with doxygen])
|
---|
532 | )
|
---|
533 | AC_MSG_NOTICE([ man: build all buildable documentation])
|
---|
534 | AC_MSG_NOTICE()
|
---|
535 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
536 | AC_MSG_NOTICE()
|
---|
537 | AM_COND_IF(HAS_ZLIB,,
|
---|
538 | AC_MSG_WARN([ zlib not found. Support for reading .fits.gz disabled.])
|
---|
539 | )
|
---|
540 | AM_COND_IF(HAS_LIBXP,,
|
---|
541 | AC_MSG_WARN([ Motif/lesstif not found. The dim gui did will not be built!])
|
---|
542 | )
|
---|
543 | AM_COND_IF(HAS_FITS,,
|
---|
544 | AC_MSG_WARN([ FITS support disabled. cfitsio/CCfits missing!])
|
---|
545 | )
|
---|
546 | AM_COND_IF(HAS_ROOT,
|
---|
547 | [AM_COND_IF(HAS_ROOT_QT,,
|
---|
548 | AC_MSG_WARN([ root found but it was built without the --with-qt option])
|
---|
549 | )]
|
---|
550 | )
|
---|
551 | AM_COND_IF(HAS_QT4,, AC_MSG_WARN([ QT4 missing - GUIs disabled!]))
|
---|
552 | AM_COND_IF(HAS_GL,, AC_MSG_WARN([ GL not found - GUIs will be disabled.]))
|
---|
553 | AM_COND_IF(HAS_GLU,, AC_MSG_WARN([ GLU not found - GUIs will be disabled.]))
|
---|
554 | AM_COND_IF(HAS_QGL,, AC_MSG_WARN([ QtOpenGl not found - GUIs will be disabled.]))
|
---|
555 | AM_COND_IF(HAS_QWT,, AC_MSG_WARN([ Qwt not found - viewer will be disabled.]))
|
---|
556 | AM_COND_IF(HAS_GUI, [],
|
---|
557 | AC_MSG_WARN([ Either of the necessary packages not found - fact GUI disabled!])
|
---|
558 | )
|
---|
559 | AM_COND_IF(HAS_VIEWER, [],
|
---|
560 | AC_MSG_WARN([ Either of the necessary packages not found - viewer GUI disabled!])
|
---|
561 | )
|
---|
562 | AC_MSG_NOTICE()
|
---|