source: trunk/FACT++/configure.ac@ 14003

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