- Timestamp:
- 04/10/11 09:58:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure.ac
r10254 r10333 1 # autoreconf --force --install 1 ###################################################################### 2 # Autoconf initial setup 3 ###################################################################### 2 4 3 5 AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://hello.example.com/]) … … 14 16 #AC_PATH_XTRA 15 17 16 17 18 ###################################################################### 19 # Automake initial setup 20 ###################################################################### 18 21 19 22 AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules]) … … 28 31 DX_ENV_APPEND(EXTRACT_ALL, YES) 29 32 DX_ENV_APPEND(RECURSIVE, YES) 30 DX_ENV_APPEND(ALL_GRAPHS, NO) # change to ye tto switch on call(er) graphs33 DX_ENV_APPEND(ALL_GRAPHS, NO) # change to yes to switch on call(er) graphs 31 34 32 35 #DX_DOXYGEN_FEATURE(ON) … … 50 53 AC_LANG_PUSH(C) 51 54 52 55 # Needed to compile dim 53 56 ACX_PTHREAD 54 57 … … 57 60 58 61 62 # Needed to compile FACT++ 59 63 AC_CHECK_READLINE 60 64 … … 76 80 # 77 81 78 AC_CHECK_HEADERS(panel.h, [], 79 [ 80 echo "Error! Ncurses panel.h not properly installed in default include paths." 81 exit -1 82 ] 83 ) 84 AC_CHECK_LIB(panel, update_panels, [], 85 [ 86 echo "Error! Ncurses libpanel not properly installed in the default libarary paths." 87 exit -1 88 ] 89 ) 82 # Needed to compile FACT++ 83 AC_CHECK_HEADERS([panel.h],, 84 AC_MSG_ERROR([ncurses header not found])) 85 86 # Needed to compile FACT++ 87 AC_CHECK_LIB(panel, update_panels,, 88 AC_MSG_ERROR([ncurses panel library not found])) 89 90 # Needed to compile FACT++ 91 AC_CHECK_PACKAGE(cfitsio, ffpss, cfitsio, fitsio.h,, 92 AC_MSG_ERROR([cfitsio not properly installed/not found.])) 93 94 #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found])) 95 #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found])) 90 96 91 97 AC_LANG_POP 92 98 99 # Needed to compile FACT++ 100 AC_CHECK_PACKAGE(ccfits, main, CCfits, CCfits/CCfits,, 101 AC_MSG_ERROR([CCfits not properly installed/not found.])) 102 103 #AC_CHECK_HEADERS([CCfits/CCfits],, 104 # AC_MSG_ERROR(CCfits headers not found)) 105 #AC_CHECK_LIB(CCfits, main,, 106 # AC_MSG_ERROR(CCfits library not found)) 107 108 93 109 ###################################################################### 94 110 # Xm.h (lesstif/motif, needed by did) 95 111 ###################################################################### 96 112 113 # Needed to compile dim 97 114 AC_FIND_MOTIF 98 115 … … 111 128 ###################################################################### 112 129 130 # Needed to compile FACT++ 113 131 MYSQL_DEVEL 114 132 MYSQLPP_DEVEL … … 120 138 ###################################################################### 121 139 140 # Needed to compile FACT++ 122 141 AX_BOOST_BASE([1.40], [], 123 142 [ … … 134 153 AX_BOOST_SYSTEM 135 154 AX_BOOST_THREAD 136 # ax_boost_iostreams137 # ax_boost_python138 # ax_boost_serialization139 # ax_boost_signals140 # ax_boost_test_exec_monitor141 # ax_boost_unit_test_framework142 # ax_boost_wave143 # ax_boost_wserialization155 #AX_BOOST_IOSTREAMS 156 #AX_BOOST_PYTHON 157 #AX_BOOST_SERIALIZATION 158 #AX_BOOST_SIGNALS 159 #AX_BOOST_TEST_EXEC_MONITOR 160 #AX_BOOST_UNIT_TEST_FRAMEWORK 161 #AX_BOOST_WAVE 162 #AX_BOOST_WSERIALIZATION 144 163 145 164 LDFLAGS+=" -lboost_date_time" … … 198 217 ###################################################################### 199 218 200 AC_CHECK_PROG(COLORDIFF, colordiff, colordiff, cat) 201 202 ########################################################################### 203 204 #AC_C_CONST 205 #AC_TYPE_PID_T 206 #AC_HEADER_STDC 219 # Nice to have to support colored diff 220 AC_CHECK_PROG(COLORDIFF, colordiff, colordiff, cat) 221 AC_CHECK_PROG(GROFF, groff, yes, no) 222 AC_CHECK_PROG(PS2PDF, ps2pdf, yes, no) 223 AC_CHECK_PROG(HELP2MAN, help2man, yes, no) 207 224 208 225 ########################################################################## … … 226 243 #fi 227 244 # 228 ########################################################################### 229 #To get the changed compiler flags distributed among your final Makefiles you have to add the following line somewhere afterwards: 230 # 231 #AC_SUBST([AM_CXXFLAGS]) 232 233 245 246 ########################################################################## 247 # produce conditionals for Makefile.am and for summary 248 ########################################################################## 249 250 AM_CONDITIONAL(HAS_COLORDIFF, [test "$COLORDIFF" = colordiff]) 251 AM_CONDITIONAL(HAS_GROFF, [test "$GROFF" = yes]) 252 AM_CONDITIONAL(HAS_PS2PDF, [test "$PS2PDF" = yes]) 253 AM_CONDITIONAL(HAS_HELP2MAN, [test "$HELP2MAN" = yes]) 254 AM_CONDITIONAL(HAS_DOXYGEN, [test -n "$DX_DOXYGEN"]) 255 AM_CONDITIONAL(HAS_DOT, [test -n "$DX_DOT"]) 256 AM_CONDITIONAL(HAS_COLORGCC, [test "$GCC" = colorgcc]) 257 258 ########################################################################## 259 # print summary 260 ########################################################################## 234 261 235 262 AC_OUTPUT 263 264 AC_MSG_NOTICE() 265 AC_MSG_NOTICE(============================== summary =============================) 266 AC_MSG_NOTICE() 267 268 AM_COND_IF(HAS_COLORDIFF, 269 AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: yes]), 270 AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: no]) 271 ) 272 AM_COND_IF(HAS_HELP2MAN,[ 273 AC_MSG_NOTICE([ man-pages enabled / 'help2man' found: $HELP2MAN]) 274 AM_COND_IF(HAS_GROFF, 275 AC_MSG_NOTICE([ build of html enabled / 'groff' found: yes]) 276 AC_MSG_NOTICE([ build of pdf enabled / 'ps2pdf' found: $PS2PDF]), 277 AC_MSG_NOTICE([ build of html and pdf / 'groff' found: no]) 278 ) 279 ],[ 280 AC_MSG_NOTICE([ man, html, pdf enabled / 'help2man' found: no]) 281 ]) 282 283 AM_COND_IF(HAS_DOXYGEN, 284 AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: $DX_DOXYGEN]), 285 AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: no]) 286 ) 287 AM_COND_IF(HAS_DOT, 288 AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: $DX_DOT]), 289 AC_MSG_NOTICE([ doxagen graphs enabled / 'dot' (graphviz) found: no]) 290 ) 291 AC_MSG_NOTICE() 292 AC_MSG_NOTICE(--------------------------------------------------------------------) 293 AC_MSG_NOTICE() 294 AC_MSG_NOTICE([Suggestions and hits:]) 295 AC_MSG_NOTICE() 296 AC_MSG_NOTICE([ - Add 'V=1' to you make-call to switch on verbose output.]) 297 AC_MSG_NOTICE([ - Do not try to create man-pages with doxygen,]) 298 AC_MSG_NOTICE([ it does most probably not work.]) 299 AM_COND_IF(HAS_COLORGCC,, 300 AC_MSG_NOTICE([ - Install colorgcc to get colored compiler output.]) 301 ) 302 AC_MSG_NOTICE() 303 AC_MSG_NOTICE(--------------------------------------------------------------------) 304 AC_MSG_NOTICE() 305 AC_MSG_NOTICE([Some interesting build targets:]) 306 AC_MSG_NOTICE() 307 AC_MSG_NOTICE([ diff: colored 'svn diff' if colordiff is installed]) 308 AM_COND_IF(HAS_HELP2MAN,[ 309 AC_MSG_NOTICE([ program.man: build man-page from 'program --help']) 310 AC_MSG_NOTICE([ (display with 'man ./program.man')]) 311 AM_COND_IF(HAS_GROFF,[ 312 AC_MSG_NOTICE([ program.html: build html page from man-page]) 313 AM_COND_IF(HAS_PS2PDF, 314 AC_MSG_NOTICE([ program.pdf: build pdf documentation from man page]) 315 ) 316 ]) 317 ]) 318 AM_COND_IF(HAS_DOXYGEN, 319 AC_MSG_NOTICE([ doxygen-run: build html documentation with doxygen]) 320 AC_MSG_NOTICE([ doxygen-doc: build html and pdf documentation with doxygen]) 321 ) 322 AC_MSG_NOTICE([ man: build all buildable documentation]) 323 AC_MSG_NOTICE()
Note:
See TracChangeset
for help on using the changeset viewer.