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

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