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