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

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