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

Last change on this file since 17689 was 16957, checked in by tbretz, 11 years ago
Removed the need for the Soprano library, we are using the Qt-classes instead now. Added gcn to the list of programs to be compiles. Removed the linking of QtWebKit, it is not needed.
File size: 21.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@phys.ethz.ch],[FACTpp],[https://www.fact-project.org/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# cfitsio
72
73######################################################################
74# Setup the libtool and the language
75######################################################################
76
77LT_INIT([disable-static])
78AC_LANG(C++)
79#AC_PATH_XTRA
80
81######################################################################
82# Automake initial setup
83######################################################################
84AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
85AM_SILENT_RULES([yes])
86
87AM_PROG_CC_C_O
88
89######################################################################
90# DOXYGEN SUPPORT
91######################################################################
92
93### FIXME: Need a configure commandline switch
94DX_ENV_APPEND(EXTRACT_ALL, YES)
95DX_ENV_APPEND(RECURSIVE, YES)
96DX_ENV_APPEND(ALL_GRAPHS, NO) # change to yes to switch on call(er) graphs
97
98#DX_DOXYGEN_FEATURE(ON)
99DX_DOT_FEATURE(ON) # sets HAVE_DOT
100#DX_HTML_FEATURE(ON) # sets GENERATE_HTML (default)
101#DX_CHM_FEATURE(ON|OFF) # sets GENERATE_HTMLHELP
102#DX_CHI_FEATURE(ON|OFF) # sets GENERATE_CHI
103#DX_MAN_FEATURE(ON) # sets GENERATE_MAN (segfaults)
104#DX_RTF_FEATURE(ON|OFF) # sets GENERATE_RTF
105#DX_XML_FEATURE(ON|OFF) # sets GENERATE_XML
106#DX_PDF_FEATURE(ON|OFF) # sets GENERATE_PDF (default)
107DX_PS_FEATURE(OFF) # sets GENERATE_PS (default)
108DX_INIT_DOXYGEN($PACKAGE_NAME)#, DOXYFILE-PATH, [OUTPUT-DIR])
109
110#USE_HTAGS = $(USE_HTAGS)
111
112######################################################################
113# pthread/Readline/NCurses (pthread needed by dim and boost)
114######################################################################
115
116AC_LANG_PUSH(C)
117
118# Check for math library (some linux need this to compile cfitsio)
119AC_CHECK_LIB([m],[cos])
120
121# Needed to compile dim
122ACX_PTHREAD
123
124CPPFLAGS+=" "$PTHREAD_CFLAGS
125LDFLAGS+=" "$PTHREAD_CFLAGS
126
127
128# Needed to compile FACT++
129AC_CHECK_READLINE
130AS_IF([test "x$have_readline" != "xyes"],
131 AC_MSG_ERROR([The readline library is not properly installed.]))
132
133CPPFLAGS+=" "$READLINE_INCLUDES
134LDFLAGS+=" "$READLINE_LIBS
135
136# Needed to compile FACT++
137AC_CHECK_HEADERS([panel.h],,
138 AC_MSG_ERROR([ncurses header not found]))
139
140# Needed to compile FACT++
141AC_CHECK_LIB(panel, update_panels,,
142 AC_MSG_ERROR([ncurses panel library not found]))
143
144# Xm.h (lesstif/motif, needed to compile did)
145AC_FIND_MOTIF
146
147CPPFLAGS+=" "$MOTIF_INCL
148LDFLAGS+=" "$MOTIF_LDFLAGS
149
150AM_COND_IF(HAS_LIBXP,,
151 AC_MSG_WARN([ Motif/lesstif not found!])
152)
153
154# Check for zlib and exit with error if not found (defines HAVE_LIBZ)
155AC_CHECK_PACKAGE(zlib, inflateEnd, z, zlib.h,
156 HAVE_ZLIB=yes, HAVE_ZLIB=no)
157
158# Check for GL and GLU needed for the raw event viewer
159AC_CHECK_PACKAGE(GL, glLoadIdentity, GL, GL/gl.h, HAVE_GL=yes, HAVE_GL=no)
160AC_CHECK_PACKAGE(GLU, gluNewTess, GLU, GL/glu.h, HAVE_GLU=yes, HAVE_GLU=no)
161
162# Check for libnova
163AC_CHECK_PACKAGE(nova, ln_get_julian_from_sys, nova, libnova/julian_day.h, HAVE_NOVA=yes, HAVE_NOVA=no)
164
165# Taken from http://code.google.com/p/autoconf-gl-macros/
166#AX_CHECK_GL
167#AX_CHECK_GLU
168#AX_CHECK_GLUT
169
170# Needed to compile FACT++
171AC_CHECK_PACKAGE(cfitsio, ffpss, cfitsio, fitsio.h,
172 HAVE_CFITSIO=yes, HAVE_CFITSIO=no)
173
174#AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found]))
175#AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found]))
176
177AC_LANG_POP(C)
178
179# Needed to compile FACT++
180AC_CHECK_PACKAGE(ccfits, main, CCfits, CCfits/CCfits,
181 HAVE_CCFITS=yes, HAVE_CCFITS=no)
182
183#AC_CHECK_HEADERS([CCfits/CCfits],,
184# AC_MSG_ERROR(CCfits headers not found))
185#AC_CHECK_LIB(CCfits, main,,
186# AC_MSG_ERROR(CCfits library not found))
187
188######################################################################
189# MySQL(++) SUPPORT
190######################################################################
191
192# Needed to compile FACT++
193MYSQL_DEVEL
194MYSQLPP_DEVEL
195
196LDFLAGS+=" -lmysqlpp"
197
198######################################################################
199# BOOST SUPPORT
200######################################################################
201
202# Needed to compile FACT++
203AX_BOOST_BASE([1.40], [],
204 AC_MSG_ERROR([The boost C++ libraries (>=1.40) are not properly installed.])
205)
206
207AC_MSG_CHECKING([for BOOST_CPPFLAGS])
208AC_MSG_RESULT([$BOOST_CPPFLAGS])
209
210AC_MSG_CHECKING([for BOOST_LDFLAGS])
211AC_MSG_RESULT([$BOOST_LDFLAGS])
212
213# Keep this order AX_BOOST_FILESYSTEM needs AX_BOOST_SYSTEM_LIB
214AX_BOOST_SYSTEM
215AS_IF([test "x$ax_cv_boost_system" != "xyes"],
216 AC_MSG_ERROR([Problems with the Boost::System libarary.]))
217
218AX_BOOST_ASIO
219AS_IF([test "x$ax_cv_boost_asio" != "xyes"],
220 AC_MSG_ERROR([Problems with the Boost::ASIO libarary.]))
221
222AX_BOOST_DATE_TIME
223AS_IF([test "x$ax_cv_boost_date_time" != "xyes"],
224 AC_MSG_ERROR([Problems with the Boost::Date_Time libarary.]))
225
226AX_BOOST_FILESYSTEM
227AS_IF([test "x$ax_cv_boost_filesystem" != "xyes"],
228 AC_MSG_ERROR([Problems with the Boost::Filesystem libarary.]))
229
230AX_BOOST_PROGRAM_OPTIONS
231AS_IF([test "x$ax_cv_boost_program_options" != "xyes"],
232 AC_MSG_ERROR([Problems with the Boost::Program_Options libarary.]))
233
234AX_BOOST_REGEX
235AS_IF([test "x$ax_cv_boost_regex" != "xyes"],
236 AC_MSG_ERROR([Problems with the Boost::Regex libarary.]))
237
238AX_BOOST_THREAD
239AS_IF([test "x$ax_cv_boost_thread" != "xyes"],
240 AC_MSG_ERROR([Problems with the Boost::Thread libarary.]))
241#AX_BOOST_IOSTREAMS
242#AX_BOOST_PYTHON
243#AX_BOOST_SERIALIZATION
244#AX_BOOST_SIGNALS
245#AX_BOOST_TEST_EXEC_MONITOR
246#AX_BOOST_UNIT_TEST_FRAMEWORK
247#AX_BOOST_WAVE
248#AX_BOOST_WSERIALIZATION
249
250LDFLAGS+=" "$BOOST_LDFLAGS
251LDFLAGS+=" "$BOOST_SYSTEM_LIB
252LDFLAGS+=" "$BOOST_ASIO_LIB
253LDFLAGS+=" "$BOOST_DATE_TIME_LIB
254LDFLAGS+=" "$BOOST_FILESYSTEM_LIB
255LDFLAGS+=" "$BOOST_PROGRAM_OPTIONS_LIB
256LDFLAGS+=" "$BOOST_REGEX_LIB
257LDFLAGS+=" "$BOOST_THREAD_LIB
258
259CPPFLAGS+=" "$BOOST_CPPFLAGS
260
261# Now we can safely add the compiler option for your prefered standard
262CXXFLAGS+=" -std=c++0x"
263
264#AC_CHECK_HEADERS(
265# [\
266# boost/bind.hpp \
267# boost/lexical_cast.hpp \
268# boost/filesystem.hpp \
269# boost/thread.hpp \
270# boost/function.hpp \
271# boost/regex.hpp \
272# boost/asio.hpp \
273# boost/enable_shared_from_this.hpp \
274# boost/asio/deadline_timer.hpp \
275# boost/date_time/posix_time/posix_time.hpp \
276# boost/date_time/local_time/local_time.hpp \
277# boost/date_time/gregorian/gregorian.hpp
278# ], [],
279# [
280# echo "Error! At least one needed header of the boost C++ libararies is missing."
281# exit -1
282# ]
283#)
284
285######################################################################
286# v8 / JavaScript
287######################################################################
288
289AC_CHECK_CLASS(v8, [v8::HandleScope handle_scope], v8, v8.h,
290 HAVE_V8=yes, HAVE_V8=no)
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)
306
307######################################################################
308# ROOT SUPPORT
309######################################################################
310
311AC_ARG_WITH([root],
312 [AS_HELP_STRING([--without-root], [Disable root, i.e. disable gui support.])],
313 [], [ROOT_PATH([5.12/00])]
314)
315
316if [test "$ROOTEXEC" != no -a -n "$ROOTVERSION"] ;
317then
318
319 ROOTCPPFLAGS=$ROOTCFLAGS" "$ROOTAUXCFLAGS
320 ROOTLDFLAGS="-L"$ROOTLIBDIR" -lGQt"
321
322 #AC_CHECK_PROG(HAVE_ROOT_QT, libGQt.so.$ROOTSOVERSION, yes, no, $ROOTLIBDIR)
323 #AC_CHECK_PROG(HAVE_GQT, libGQt.so.$ROOTSOVERSION, yes, no, $LD_LIBRARY_PATH)
324
325 # It seems it dooesn't work on older root versions
326 ROOT_FEATURE([qt], [HAVE_ROOT_QT=yes])
327
328 AC_SUBST(ROOTCPPFLAGS)
329 AC_SUBST(ROOTLDFLAGS)
330fi
331
332
333######################################################################
334# Check if we have colordiff to colorize 'svn diff'
335######################################################################
336
337# Nice to have to support colored diff
338AC_CHECK_PROG(COLORDIFF, colordiff, colordiff, cat)
339AC_CHECK_PROG(GROFF, groff, yes, no)
340AC_CHECK_PROG(PS2PDF, ps2pdf, yes, no)
341AC_CHECK_PROG(HELP2MAN, help2man, yes, no)
342AC_CHECK_PROG(JSDOC, jsdoc, yes, no)
343AC_CHECK_PROG(MAILX, mailx, 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_JSDOC, [test "$JSDOC" = yes])
375AM_CONDITIONAL(HAS_MAILX, [test "$MAILX" = yes])
376AM_CONDITIONAL(HAS_DOXYGEN, [test "$DX_DOXYGEN"])
377AM_CONDITIONAL(HAS_DOT, [test "$DX_DOT"])
378AM_CONDITIONAL(HAS_COLORGCC, [test "$COLORGCC"])
379AM_CONDITIONAL(HAS_QT4, [test "$QT4_VERSION"])
380AM_CONDITIONAL(HAS_SQL, [test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ])
381AM_CONDITIONAL(HAS_ROOT, [test "$ROOTEXEC" != no])
382AM_CONDITIONAL(HAS_ROOT_QT, [test "$HAVE_ROOT_QT" = yes])
383AM_CONDITIONAL(HAS_CFITSIO, [test "$HAVE_CFITSIO" = yes])
384AM_CONDITIONAL(HAS_CCFITS, [test "$HAVE_CCFITS" = yes])
385AM_CONDITIONAL(HAS_FITS, [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes])
386AM_CONDITIONAL(HAS_ZLIB, [test "$HAVE_ZLIB" = yes])
387AM_CONDITIONAL(HAS_GL, [test "$HAVE_GL" = yes])
388AM_CONDITIONAL(HAS_GLU, [test "$HAVE_GLU" = yes])
389AM_CONDITIONAL(HAS_QGL, [test "$HAVE_QGL" = yes])
390AM_CONDITIONAL(HAS_QWT, [test "$HAVE_QWT" = yes])
391AM_CONDITIONAL(HAS_NOVA, [test "$HAVE_NOVA" = yes])
392AM_CONDITIONAL(HAS_DBUS, [test "$HAVE_DBUS" = yes])
393AM_CONDITIONAL(HAS_V8, [test "$HAVE_V8" = yes])
394
395AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ])
396AM_CONDITIONAL(HAS_VIEWER, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_QWT" = yes])
397
398AM_CONDITIONAL(IS_FALSE, [test "x" = "y"])
399AM_CONDITIONAL(IS_TRUE, [test "x" = "x"])
400
401AM_COND_IF(HAS_FITS, [AC_DEFINE(HAVE_FITS)], )
402AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], )
403AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
404AM_COND_IF(HAS_NOVA, [AC_DEFINE(HAVE_NOVA)], )
405AM_COND_IF(HAS_DBUS, [AC_DEFINE(HAVE_DBUS)], )
406AM_COND_IF(HAS_SQL, [AC_DEFINE(HAVE_SQL)], )
407AM_COND_IF(HAS_V8, [AC_DEFINE(HAVE_V8)], )
408AM_COND_IF(HAS_MAILX, [AC_DEFINE(HAVE_MAILX)],)
409
410##########################################################################
411# print summary
412##########################################################################
413
414AC_OUTPUT
415
416AC_MSG_NOTICE()
417AC_MSG_NOTICE(============================== summary =============================)
418AC_MSG_NOTICE()
419AC_MSG_NOTICE([ CFLAGS = $CFLAGS])
420AC_MSG_NOTICE()
421AC_MSG_NOTICE([ CXXFLAGS = $CXXFLAGS])
422AC_MSG_NOTICE()
423AC_MSG_NOTICE([ CPPFLAGS = $CPPFLAGS])
424AC_MSG_NOTICE()
425AC_MSG_NOTICE([ LDFLAGS = $LDFLAGS])
426AC_MSG_NOTICE()
427AC_MSG_NOTICE(--------------------------------------------------------------------)
428AC_MSG_NOTICE()
429AC_MSG_NOTICE([ BOOST_CPPFLAGS = $BOOST_CPPFLAGS])
430AC_MSG_NOTICE([ BOOST_LDFLAGS = $BOOST_LDFLAGS])
431AC_MSG_NOTICE()
432AM_COND_IF(HAS_SQL, [
433 AC_MSG_NOTICE(--------------------------------------------------------------------)
434 AC_MSG_NOTICE()
435 AC_MSG_NOTICE([ MYSQLPP_INC_DIR = $MYSQLPP_INC_DIR])
436 AC_MSG_NOTICE([ MYSQLPP_LIB_DIR = $MYSQLPP_LIB_DIR])
437 AC_MSG_NOTICE()
438],[])
439AM_COND_IF(HAS_QT4, [
440 AC_MSG_NOTICE(--------------------------------------------------------------------)
441 AC_MSG_NOTICE()
442 AC_MSG_NOTICE([ QT4_VERSION = $QT4_VERSION])
443 AC_MSG_NOTICE()
444 AC_MSG_NOTICE([ QT4_LIB = $QT4_LIB])
445 AC_MSG_NOTICE([ QT4_LDFLAGS = $QT4_LDFLAGS])
446 AC_MSG_NOTICE([ QT4_INCLUDES = $QT4_INCLUDES])
447 AC_MSG_NOTICE()
448 AC_MSG_NOTICE([ MOC4 = $MOC4])
449 AC_MSG_NOTICE([ UIC4 = $UIC4])
450 AC_MSG_NOTICE([ RCC4 = $RCC4])
451 AC_MSG_NOTICE()
452],[])
453AM_COND_IF(HAS_ROOT, [
454 AC_MSG_NOTICE(--------------------------------------------------------------------)
455 AC_MSG_NOTICE()
456 AC_MSG_NOTICE([ ROOTVERSION = $ROOTVERSION])
457 AC_MSG_NOTICE()
458 AC_MSG_NOTICE([ ROOTEXEC = $ROOTEXEC])
459 AC_MSG_NOTICE([ ROOTCONF = $ROOTCONF])
460 AC_MSG_NOTICE([ ROOTCINT = $ROOTCINT])
461 AC_MSG_NOTICE([ ROOTCPPFLAGS = $ROOTCPPFLAGS])
462 AC_MSG_NOTICE([ ROOTLDFLAGS = $ROOTLDFLAGS])
463 AC_MSG_NOTICE()
464],[])
465AC_MSG_NOTICE(--------------------------------------------------------------------)
466AC_MSG_NOTICE()
467AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB])
468AC_MSG_NOTICE([ nova / libnova.so found: $HAVE_NOVA])
469AC_MSG_NOTICE([ v8 / 'v8.h' / libv8.so found: $HAVE_V8])
470AC_MSG_NOTICE([ GL / GL/gl.h found: $HAVE_GL])
471AC_MSG_NOTICE([ GLU / GL/glu.h found: $HAVE_GLU])
472AC_MSG_NOTICE([ QtOpenGL / QtOpenGL/QGLWidget found: $HAVE_QGL])
473AC_MSG_NOTICE([ Qwt / qwt_plot.h found: $HAVE_QWT])
474AC_MSG_NOTICE([ cfitsio / 'fitsio.h' found: $HAVE_CFITSIO])
475AC_MSG_NOTICE([ CCfits / 'CCfits/CCfits' found: $HAVE_CCFITS])
476AM_COND_IF(HAS_SQL,
477 AC_MSG_NOTICE([ MySQL/MySQL++ / 'mysql++.h' found: yes]),
478 AC_MSG_NOTICE([ MySQL/MySQL++ / 'mysql++.h' found: no])
479)
480AC_MSG_NOTICE([ DBus-1, DBus-glib-1 / pkg-config found: $HAVE_DBUS])
481AM_COND_IF(HAS_LIBXP,
482 AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
483 AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
484)
485
486AM_COND_IF(HAS_LIBXP,
487 AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
488 AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
489)
490AM_COND_IF(HAS_COLORDIFF,
491 AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: yes]),
492 AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: no])
493)
494AM_COND_IF(HAS_JSDOC,
495 AC_MSG_NOTICE([ JavaScript docu / 'jsdoc' found: yes]),
496 AC_MSG_NOTICE([ JavaScript docu / 'jsdoc' found: no])
497)
498AM_COND_IF(HAS_V8,[
499 AM_COND_IF(HAS_MAILX,
500 AC_MSG_NOTICE([ Mail support / 'mailx' found: yes]),
501 AC_MSG_NOTICE([ Mail support / 'mailx' found: no])
502 )
503])
504
505AM_COND_IF(HAS_HELP2MAN,[
506 AC_MSG_NOTICE([ man-pages enabled / 'help2man' found: $HELP2MAN])
507 AM_COND_IF(HAS_GROFF,
508 AC_MSG_NOTICE([ build of html enabled / 'groff' found: yes])
509 AC_MSG_NOTICE([ build of pdf enabled / 'ps2pdf' found: $PS2PDF]),
510 AC_MSG_NOTICE([ build of html and pdf / 'groff' found: no])
511 )
512],[
513 AC_MSG_NOTICE([ man, html, pdf enabled / 'help2man' found: no])
514])
515
516AM_COND_IF(HAS_DOXYGEN,
517 AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: $DX_DOXYGEN]),
518 AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: no])
519)
520AM_COND_IF(HAS_DOT,
521 AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: $DX_DOT]),
522 AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: no])
523)
524AM_COND_IF(HAS_QT4,
525 AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: yes]),
526 AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: no])
527)
528AC_MSG_NOTICE([ ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC])
529AM_COND_IF(HAS_ROOT_QT,
530 AC_MSG_NOTICE([ ROOT built with --with-qt found: yes]),
531 AC_MSG_NOTICE([ ROOT built with --with-qt found: no])
532)
533AC_MSG_NOTICE()
534AC_MSG_NOTICE(--------------------------------------------------------------------)
535AC_MSG_NOTICE()
536AC_MSG_NOTICE([Suggestions and hints:])
537AC_MSG_NOTICE()
538AC_MSG_NOTICE([ - Add 'V=1' to you make-call to switch on verbose output.])
539AC_MSG_NOTICE([ - Do not try to create man-pages with doxygen,])
540AC_MSG_NOTICE([ it does most probably not work.])
541AM_COND_IF(HAS_COLORGCC,,
542 AC_MSG_NOTICE([ - Install colorgcc to get colored compiler output.])
543)
544AC_MSG_NOTICE([ - If you send me a bug report about:])
545AC_MSG_NOTICE([ + configure: please attach the file config.log])
546AC_MSG_NOTICE([ + make: please send me the output of 'make V=1'])
547AC_MSG_NOTICE()
548AC_MSG_NOTICE(--------------------------------------------------------------------)
549AC_MSG_NOTICE()
550AC_MSG_NOTICE([Some interesting build targets:])
551AC_MSG_NOTICE()
552AC_MSG_NOTICE([ diff: colored 'svn diff' if colordiff is installed])
553AM_COND_IF(HAS_HELP2MAN,[
554 AC_MSG_NOTICE([ program.man: build man-page from 'program --help'])
555 AC_MSG_NOTICE([ (display with 'man ./program.man')])
556 AM_COND_IF(HAS_GROFF,[
557 AC_MSG_NOTICE([ program.html: build html page from man-page])
558 AM_COND_IF(HAS_PS2PDF,
559 AC_MSG_NOTICE([ program.pdf: build pdf documentation from man page])
560 )
561 ])
562])
563AM_COND_IF(HAS_DOXYGEN,
564 AC_MSG_NOTICE([ doxygen-run: build html documentation with doxygen])
565# AC_MSG_NOTICE([ doxygen-doc: build html and pdf documentation with doxygen])
566)
567AM_COND_IF(HAS_JSDOC,
568 AC_MSG_NOTICE([ jsdoc: build JavaScript documentation with jsdoc])
569)
570AC_MSG_NOTICE([ doc: build all buildable documentation])
571AC_MSG_NOTICE()
572AC_MSG_NOTICE(--------------------------------------------------------------------)
573AC_MSG_NOTICE()
574AM_COND_IF(HAS_ZLIB,,
575 AC_MSG_WARN([ zlib not found. Support for reading .fits.gz disabled.])
576)
577AM_COND_IF(HAS_LIBXP,,
578 AC_MSG_WARN([ Motif/lesstif not found. The dim gui did will not be built!])
579)
580AM_COND_IF(HAS_FITS,,
581 AC_MSG_WARN([ FITS support disabled. cfitsio/CCfits missing!])
582)
583AM_COND_IF(HAS_ROOT,
584 [AM_COND_IF(HAS_ROOT_QT,,
585 AC_MSG_WARN([ root found but it was built without the --with-qt option])
586 )]
587)
588AM_COND_IF(HAS_QT4,, AC_MSG_WARN([ QT4 missing - GUIs disabled!]))
589AM_COND_IF(HAS_GL,, AC_MSG_WARN([ GL not found - GUIs will be disabled.]))
590AM_COND_IF(HAS_GLU,, AC_MSG_WARN([ GLU not found - GUIs will be disabled.]))
591AM_COND_IF(HAS_QGL,, AC_MSG_WARN([ QtOpenGl not found - GUIs will be disabled.]))
592AM_COND_IF(HAS_QWT,, AC_MSG_WARN([ Qwt not found - viewer will be disabled.]))
593AM_COND_IF(HAS_GUI, [],
594 AC_MSG_WARN([ Either of the necessary packages not found - fact GUI disabled!])
595)
596AM_COND_IF(HAS_VIEWER, [],
597 AC_MSG_WARN([ Either of the necessary packages not found - viewer GUI disabled!])
598)
599AM_COND_IF(HAS_JSDOC,, AC_MSG_WARN([ JavaScript documentation disabled!]))
600AM_COND_IF(HAS_SQL,, AC_MSG_WARN([ database support globally disabled!]))
601AM_COND_IF(HAS_NOVA,, AC_MSG_WARN([ libnova missing - smartfact will be compiles without astronomy support!]))
602AM_COND_IF(HAS_V8,, AC_MSG_WARN([ libv8 missing - JavaScript support will be disabled!]))
603AM_COND_IF(HAS_DBUS,, AC_MSG_WARN([ DBus libraries missing - skypeclient will not be compiled!]))
604AC_MSG_NOTICE()
Note: See TracBrowser for help on using the repository browser.