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

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