Changeset 10464
- Timestamp:
- 04/26/11 18:44:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r10459 r10464 1022 1022 enable_doxygen_pdf 1023 1023 with_readline 1024 with_x 1025 with_motif_includes 1026 with_motif_libraries 1024 1027 with_cfitsio 1025 1028 with_cfitsio_include … … 1028 1031 with_ccfits_include 1029 1032 with_ccfits_libdir 1030 with_x1031 with_motif_includes1032 with_motif_libraries1033 1033 with_mysql_include 1034 1034 with_mysqlpp … … 1726 1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1727 1727 --with-readline[=dir] Compile with readline/locate base dir 1728 --with-x use the X Window System 1729 --with-motif-includes=DIR Motif include files are in DIR 1730 --with-motif-libraries=DIR Motif libraries are in DIR 1728 1731 --with-cfitsio=DIR root directory of cfitsio installation 1729 1732 --with-cfitsio-include=DIR specify exact include dir for cfitsio headers … … 1734 1737 --with-ccfits-libdir=DIR specify exact library dir for ccfits library 1735 1738 --without-ccfits disables ccfits usage completely 1736 --with-x use the X Window System1737 --with-motif-includes=DIR Motif include files are in DIR1738 --with-motif-libraries=DIR Motif libraries are in DIR1739 1739 --with-mysql-include=<path> directory path of MySQL header installation 1740 1740 --with-mysqlpp=<path> path containing MySQL++ header and library subdirs … … 17092 17092 17093 17093 17094 # Needed to compile FACT++ 17095 17096 17097 17098 # Check whether --with-cfitsio was given. 17099 if test "${with_cfitsio+set}" = set; then : 17100 withval=$with_cfitsio; with_cfitsio=$withval 17101 if test "${with_cfitsio}" != yes; then 17102 cfitsio_include="$withval/include" 17103 cfitsio_libdir="$withval/lib" 17104 fi 17105 17106 fi 17107 17108 17109 17110 # Check whether --with-cfitsio-include was given. 17111 if test "${with_cfitsio_include+set}" = set; then : 17112 withval=$with_cfitsio_include; cfitsio_include="$withval" 17113 fi 17114 17115 17116 17117 # Check whether --with-cfitsio-libdir was given. 17118 if test "${with_cfitsio_libdir+set}" = set; then : 17119 withval=$with_cfitsio_libdir; cfitsio_libdir="$withval" 17120 fi 17121 17122 17123 if test "${with_cfitsio}" != no ; then 17124 OLD_LIBS=$LIBS 17125 OLD_LDFLAGS=$LDFLAGS 17126 OLD_CFLAGS=$CFLAGS 17127 OLD_CPPFLAGS=$CPPFLAGS 17128 17129 if test "${cfitsio_libdir}" ; then 17130 LDFLAGS="$LDFLAGS -L${cfitsio_libdir}" 17131 fi 17132 if test "${cfitsio_include}" ; then 17133 CPPFLAGS="$CPPFLAGS -I${cfitsio_include}" 17134 CFLAGS="$CFLAGS -I${cfitsio_include}" 17135 fi 17136 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5 17138 $as_echo_n "checking for ffpss in -lcfitsio... " >&6; } 17139 if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then : 17140 $as_echo_n "(cached) " >&6 17141 else 17142 ac_check_lib_save_LIBS=$LIBS 17143 LIBS="-lcfitsio $LIBS" 17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145 /* end confdefs.h. */ 17146 17147 /* Override any GCC internal prototype to avoid an error. 17148 Use char because int might match the return type of a GCC 17149 builtin and then its argument prototype would still apply. */ 17150 #ifdef __cplusplus 17151 extern "C" 17152 #endif 17153 char ffpss (); 17154 int 17155 main () 17156 { 17157 return ffpss (); 17158 ; 17159 return 0; 17160 } 17161 _ACEOF 17162 if ac_fn_c_try_link "$LINENO"; then : 17163 ac_cv_lib_cfitsio_ffpss=yes 17164 else 17165 ac_cv_lib_cfitsio_ffpss=no 17166 fi 17167 rm -f core conftest.err conftest.$ac_objext \ 17168 conftest$ac_exeext conftest.$ac_ext 17169 LIBS=$ac_check_lib_save_LIBS 17170 fi 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5 17172 $as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; } 17173 if test "x$ac_cv_lib_cfitsio_ffpss" = x""yes; then : 17174 cat >>confdefs.h <<_ACEOF 17175 #define HAVE_LIBCFITSIO 1 17176 _ACEOF 17177 17178 LIBS="-lcfitsio $LIBS" 17179 17180 else 17181 no_good=yes 17182 fi 17183 17184 ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default" 17185 if test "x$ac_cv_header_fitsio_h" = x""yes; then : 17186 17187 else 17188 no_good=yes 17189 fi 17190 17191 17192 if test "$no_good" = yes; then 17193 as_fn_error $? "cfitsio not properly installed/not found." "$LINENO" 5 17194 17195 LIBS=$OLD_LIBS 17196 LDFLAGS=$OLD_LDFLAGS 17197 CPPFLAGS=$OLD_CPPFLAGS 17198 CFLAGS=$OLD_CFLAGS 17199 else 17200 17201 17202 $as_echo "#define HAVE_PKG_cfitsio 1" >>confdefs.h 17203 17204 fi 17205 17206 fi 17207 17208 17209 17210 #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found])) 17211 #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found])) 17212 17213 ac_ext=cpp 17214 ac_cpp='$CXXCPP $CPPFLAGS' 17215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17218 17219 17220 # Needed to compile FACT++ 17221 17222 17223 17224 17225 # Check whether --with-ccfits was given. 17226 if test "${with_ccfits+set}" = set; then : 17227 withval=$with_ccfits; with_ccfits=$withval 17228 if test "${with_ccfits}" != yes; then 17229 ccfits_include="$withval/include" 17230 ccfits_libdir="$withval/lib" 17231 fi 17232 17233 fi 17234 17235 17236 17237 # Check whether --with-ccfits-include was given. 17238 if test "${with_ccfits_include+set}" = set; then : 17239 withval=$with_ccfits_include; ccfits_include="$withval" 17240 fi 17241 17242 17243 17244 # Check whether --with-ccfits-libdir was given. 17245 if test "${with_ccfits_libdir+set}" = set; then : 17246 withval=$with_ccfits_libdir; ccfits_libdir="$withval" 17247 fi 17248 17249 17250 if test "${with_ccfits}" != no ; then 17251 OLD_LIBS=$LIBS 17252 OLD_LDFLAGS=$LDFLAGS 17253 OLD_CFLAGS=$CFLAGS 17254 OLD_CPPFLAGS=$CPPFLAGS 17255 17256 if test "${ccfits_libdir}" ; then 17257 LDFLAGS="$LDFLAGS -L${ccfits_libdir}" 17258 fi 17259 if test "${ccfits_include}" ; then 17260 CPPFLAGS="$CPPFLAGS -I${ccfits_include}" 17261 CFLAGS="$CFLAGS -I${ccfits_include}" 17262 fi 17263 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5 17265 $as_echo_n "checking for main in -lCCfits... " >&6; } 17266 if test "${ac_cv_lib_CCfits_main+set}" = set; then : 17267 $as_echo_n "(cached) " >&6 17268 else 17269 ac_check_lib_save_LIBS=$LIBS 17270 LIBS="-lCCfits $LIBS" 17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17272 /* end confdefs.h. */ 17273 17274 17275 int 17276 main () 17277 { 17278 return main (); 17279 ; 17280 return 0; 17281 } 17282 _ACEOF 17283 if ac_fn_cxx_try_link "$LINENO"; then : 17284 ac_cv_lib_CCfits_main=yes 17285 else 17286 ac_cv_lib_CCfits_main=no 17287 fi 17288 rm -f core conftest.err conftest.$ac_objext \ 17289 conftest$ac_exeext conftest.$ac_ext 17290 LIBS=$ac_check_lib_save_LIBS 17291 fi 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5 17293 $as_echo "$ac_cv_lib_CCfits_main" >&6; } 17294 if test "x$ac_cv_lib_CCfits_main" = x""yes; then : 17295 cat >>confdefs.h <<_ACEOF 17296 #define HAVE_LIBCCFITS 1 17297 _ACEOF 17298 17299 LIBS="-lCCfits $LIBS" 17300 17301 else 17302 no_good=yes 17303 fi 17304 17305 ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default" 17306 if test "x$ac_cv_header_CCfits_CCfits" = x""yes; then : 17307 17308 else 17309 no_good=yes 17310 fi 17311 17312 17313 if test "$no_good" = yes; then 17314 as_fn_error $? "CCfits not properly installed/not found." "$LINENO" 5 17315 17316 LIBS=$OLD_LIBS 17317 LDFLAGS=$OLD_LDFLAGS 17318 CPPFLAGS=$OLD_CPPFLAGS 17319 CFLAGS=$OLD_CFLAGS 17320 else 17321 17322 17323 $as_echo "#define HAVE_PKG_ccfits 1" >>confdefs.h 17324 17325 fi 17326 17327 fi 17328 17329 17330 17331 #AC_CHECK_HEADERS([CCfits/CCfits],, 17332 # AC_MSG_ERROR(CCfits headers not found)) 17333 #AC_CHECK_LIB(CCfits, main,, 17334 # AC_MSG_ERROR(CCfits library not found)) 17335 17336 17337 ###################################################################### 17338 # Xm.h (lesstif/motif, needed by did) 17339 ###################################################################### 17340 17341 # Needed to compile dim 17094 # Xm.h (lesstif/motif, needed to compile did) 17342 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17343 17096 $as_echo_n "checking for X... " >&6; } … … 17448 17201 #include <X11/Xlib.h> 17449 17202 _ACEOF 17450 if ac_fn_c xx_try_cpp "$LINENO"; then :17203 if ac_fn_c_try_cpp "$LINENO"; then : 17451 17204 # We can compile using X headers with no special include directory. 17452 17205 ac_x_includes= … … 17479 17232 } 17480 17233 _ACEOF 17481 if ac_fn_c xx_try_link "$LINENO"; then :17234 if ac_fn_c_try_link "$LINENO"; then : 17482 17235 LIBS=$ac_save_LIBS 17483 17236 # We can link X programs with no special library path. … … 17552 17305 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 17553 17306 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17554 ac_xsave_c xx_werror_flag=$ac_cxx_werror_flag17555 ac_c xx_werror_flag=yes17307 ac_xsave_c_werror_flag=$ac_c_werror_flag 17308 ac_c_werror_flag=yes 17556 17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17557 17310 /* end confdefs.h. */ … … 17565 17318 } 17566 17319 _ACEOF 17567 if ac_fn_c xx_try_link "$LINENO"; then :17320 if ac_fn_c_try_link "$LINENO"; then : 17568 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17569 17322 $as_echo "no" >&6; } … … 17582 17335 } 17583 17336 _ACEOF 17584 if ac_fn_c xx_try_link "$LINENO"; then :17337 if ac_fn_c_try_link "$LINENO"; then : 17585 17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17586 17339 $as_echo "yes" >&6; } … … 17595 17348 rm -f core conftest.err conftest.$ac_objext \ 17596 17349 conftest$ac_exeext conftest.$ac_ext 17597 ac_c xx_werror_flag=$ac_xsave_cxx_werror_flag17350 ac_c_werror_flag=$ac_xsave_c_werror_flag 17598 17351 LIBS=$ac_xsave_LIBS 17599 17352 fi … … 17628 17381 } 17629 17382 _ACEOF 17630 if ac_fn_c xx_try_link "$LINENO"; then :17383 if ac_fn_c_try_link "$LINENO"; then : 17631 17384 17632 17385 else … … 17656 17409 } 17657 17410 _ACEOF 17658 if ac_fn_c xx_try_link "$LINENO"; then :17411 if ac_fn_c_try_link "$LINENO"; then : 17659 17412 ac_cv_lib_dnet_dnet_ntoa=yes 17660 17413 else … … 17697 17450 } 17698 17451 _ACEOF 17699 if ac_fn_c xx_try_link "$LINENO"; then :17452 if ac_fn_c_try_link "$LINENO"; then : 17700 17453 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17701 17454 else … … 17726 17479 # The functions gethostbyname, getservbyname, and inet_addr are 17727 17480 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17728 ac_fn_c xx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"17481 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17729 17482 if test "x$ac_cv_func_gethostbyname" = x""yes; then : 17730 17483 … … 17757 17510 } 17758 17511 _ACEOF 17759 if ac_fn_c xx_try_link "$LINENO"; then :17512 if ac_fn_c_try_link "$LINENO"; then : 17760 17513 ac_cv_lib_nsl_gethostbyname=yes 17761 17514 else … … 17798 17551 } 17799 17552 _ACEOF 17800 if ac_fn_c xx_try_link "$LINENO"; then :17553 if ac_fn_c_try_link "$LINENO"; then : 17801 17554 ac_cv_lib_bsd_gethostbyname=yes 17802 17555 else … … 17823 17576 # must be given before -lnsl if both are needed. We assume that 17824 17577 # if connect needs -lnsl, so does gethostbyname. 17825 ac_fn_c xx_check_func "$LINENO" "connect" "ac_cv_func_connect"17578 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 17826 17579 if test "x$ac_cv_func_connect" = x""yes; then : 17827 17580 … … 17854 17607 } 17855 17608 _ACEOF 17856 if ac_fn_c xx_try_link "$LINENO"; then :17609 if ac_fn_c_try_link "$LINENO"; then : 17857 17610 ac_cv_lib_socket_connect=yes 17858 17611 else … … 17872 17625 17873 17626 # Guillermo Gomez says -lposix is necessary on A/UX. 17874 ac_fn_c xx_check_func "$LINENO" "remove" "ac_cv_func_remove"17627 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 17875 17628 if test "x$ac_cv_func_remove" = x""yes; then : 17876 17629 … … 17903 17656 } 17904 17657 _ACEOF 17905 if ac_fn_c xx_try_link "$LINENO"; then :17658 if ac_fn_c_try_link "$LINENO"; then : 17906 17659 ac_cv_lib_posix_remove=yes 17907 17660 else … … 17921 17674 17922 17675 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17923 ac_fn_c xx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"17676 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17924 17677 if test "x$ac_cv_func_shmat" = x""yes; then : 17925 17678 … … 17952 17705 } 17953 17706 _ACEOF 17954 if ac_fn_c xx_try_link "$LINENO"; then :17707 if ac_fn_c_try_link "$LINENO"; then : 17955 17708 ac_cv_lib_ipc_shmat=yes 17956 17709 else … … 18004 17757 } 18005 17758 _ACEOF 18006 if ac_fn_c xx_try_link "$LINENO"; then :17759 if ac_fn_c_try_link "$LINENO"; then : 18007 17760 ac_cv_lib_ICE_IceConnectionNumber=yes 18008 17761 else … … 18057 17810 } 18058 17811 _ACEOF 18059 if ac_fn_c xx_try_link "$LINENO"; then :17812 if ac_fn_c_try_link "$LINENO"; then : 18060 17813 lt_cv_libxp=yes 18061 17814 else … … 18145 17898 } 18146 17899 _ACEOF 18147 if ac_fn_c xx_try_compile "$LINENO"; then :17900 if ac_fn_c_try_compile "$LINENO"; then : 18148 17901 18149 17902 # Xm/Xm.h is in the standard search path. … … 18219 17972 } 18220 17973 _ACEOF 18221 if ac_fn_c xx_try_link "$LINENO"; then :17974 if ac_fn_c_try_link "$LINENO"; then : 18222 17975 18223 17976 # libXm.a is in the standard search path. … … 18309 18062 } 18310 18063 _ACEOF 18311 if ac_fn_c xx_try_link "$LINENO"; then :18064 if ac_fn_c_try_link "$LINENO"; then : 18312 18065 lt_cv_libxp=yes 18313 18066 else … … 18393 18146 18394 18147 fi 18148 18149 # Needed to compile FACT++ 18150 18151 18152 18153 # Check whether --with-cfitsio was given. 18154 if test "${with_cfitsio+set}" = set; then : 18155 withval=$with_cfitsio; with_cfitsio=$withval 18156 if test "${with_cfitsio}" != yes; then 18157 cfitsio_include="$withval/include" 18158 cfitsio_libdir="$withval/lib" 18159 fi 18160 18161 fi 18162 18163 18164 18165 # Check whether --with-cfitsio-include was given. 18166 if test "${with_cfitsio_include+set}" = set; then : 18167 withval=$with_cfitsio_include; cfitsio_include="$withval" 18168 fi 18169 18170 18171 18172 # Check whether --with-cfitsio-libdir was given. 18173 if test "${with_cfitsio_libdir+set}" = set; then : 18174 withval=$with_cfitsio_libdir; cfitsio_libdir="$withval" 18175 fi 18176 18177 18178 if test "${with_cfitsio}" != no ; then 18179 OLD_LIBS=$LIBS 18180 OLD_LDFLAGS=$LDFLAGS 18181 OLD_CFLAGS=$CFLAGS 18182 OLD_CPPFLAGS=$CPPFLAGS 18183 18184 if test "${cfitsio_libdir}" ; then 18185 LDFLAGS="$LDFLAGS -L${cfitsio_libdir}" 18186 fi 18187 if test "${cfitsio_include}" ; then 18188 CPPFLAGS="$CPPFLAGS -I${cfitsio_include}" 18189 CFLAGS="$CFLAGS -I${cfitsio_include}" 18190 fi 18191 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5 18193 $as_echo_n "checking for ffpss in -lcfitsio... " >&6; } 18194 if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then : 18195 $as_echo_n "(cached) " >&6 18196 else 18197 ac_check_lib_save_LIBS=$LIBS 18198 LIBS="-lcfitsio $LIBS" 18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18200 /* end confdefs.h. */ 18201 18202 /* Override any GCC internal prototype to avoid an error. 18203 Use char because int might match the return type of a GCC 18204 builtin and then its argument prototype would still apply. */ 18205 #ifdef __cplusplus 18206 extern "C" 18207 #endif 18208 char ffpss (); 18209 int 18210 main () 18211 { 18212 return ffpss (); 18213 ; 18214 return 0; 18215 } 18216 _ACEOF 18217 if ac_fn_c_try_link "$LINENO"; then : 18218 ac_cv_lib_cfitsio_ffpss=yes 18219 else 18220 ac_cv_lib_cfitsio_ffpss=no 18221 fi 18222 rm -f core conftest.err conftest.$ac_objext \ 18223 conftest$ac_exeext conftest.$ac_ext 18224 LIBS=$ac_check_lib_save_LIBS 18225 fi 18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5 18227 $as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; } 18228 if test "x$ac_cv_lib_cfitsio_ffpss" = x""yes; then : 18229 cat >>confdefs.h <<_ACEOF 18230 #define HAVE_LIBCFITSIO 1 18231 _ACEOF 18232 18233 LIBS="-lcfitsio $LIBS" 18234 18235 else 18236 no_good=yes 18237 fi 18238 18239 ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default" 18240 if test "x$ac_cv_header_fitsio_h" = x""yes; then : 18241 18242 else 18243 no_good=yes 18244 fi 18245 18246 18247 if test "$no_good" = yes; then 18248 as_fn_error $? "cfitsio not properly installed/not found." "$LINENO" 5 18249 18250 LIBS=$OLD_LIBS 18251 LDFLAGS=$OLD_LDFLAGS 18252 CPPFLAGS=$OLD_CPPFLAGS 18253 CFLAGS=$OLD_CFLAGS 18254 else 18255 18256 18257 $as_echo "#define HAVE_PKG_cfitsio 1" >>confdefs.h 18258 18259 fi 18260 18261 fi 18262 18263 18264 18265 #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found])) 18266 #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found])) 18267 18268 ac_ext=cpp 18269 ac_cpp='$CXXCPP $CPPFLAGS' 18270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18273 18274 18275 # Needed to compile FACT++ 18276 18277 18278 18279 18280 # Check whether --with-ccfits was given. 18281 if test "${with_ccfits+set}" = set; then : 18282 withval=$with_ccfits; with_ccfits=$withval 18283 if test "${with_ccfits}" != yes; then 18284 ccfits_include="$withval/include" 18285 ccfits_libdir="$withval/lib" 18286 fi 18287 18288 fi 18289 18290 18291 18292 # Check whether --with-ccfits-include was given. 18293 if test "${with_ccfits_include+set}" = set; then : 18294 withval=$with_ccfits_include; ccfits_include="$withval" 18295 fi 18296 18297 18298 18299 # Check whether --with-ccfits-libdir was given. 18300 if test "${with_ccfits_libdir+set}" = set; then : 18301 withval=$with_ccfits_libdir; ccfits_libdir="$withval" 18302 fi 18303 18304 18305 if test "${with_ccfits}" != no ; then 18306 OLD_LIBS=$LIBS 18307 OLD_LDFLAGS=$LDFLAGS 18308 OLD_CFLAGS=$CFLAGS 18309 OLD_CPPFLAGS=$CPPFLAGS 18310 18311 if test "${ccfits_libdir}" ; then 18312 LDFLAGS="$LDFLAGS -L${ccfits_libdir}" 18313 fi 18314 if test "${ccfits_include}" ; then 18315 CPPFLAGS="$CPPFLAGS -I${ccfits_include}" 18316 CFLAGS="$CFLAGS -I${ccfits_include}" 18317 fi 18318 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5 18320 $as_echo_n "checking for main in -lCCfits... " >&6; } 18321 if test "${ac_cv_lib_CCfits_main+set}" = set; then : 18322 $as_echo_n "(cached) " >&6 18323 else 18324 ac_check_lib_save_LIBS=$LIBS 18325 LIBS="-lCCfits $LIBS" 18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327 /* end confdefs.h. */ 18328 18329 18330 int 18331 main () 18332 { 18333 return main (); 18334 ; 18335 return 0; 18336 } 18337 _ACEOF 18338 if ac_fn_cxx_try_link "$LINENO"; then : 18339 ac_cv_lib_CCfits_main=yes 18340 else 18341 ac_cv_lib_CCfits_main=no 18342 fi 18343 rm -f core conftest.err conftest.$ac_objext \ 18344 conftest$ac_exeext conftest.$ac_ext 18345 LIBS=$ac_check_lib_save_LIBS 18346 fi 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5 18348 $as_echo "$ac_cv_lib_CCfits_main" >&6; } 18349 if test "x$ac_cv_lib_CCfits_main" = x""yes; then : 18350 cat >>confdefs.h <<_ACEOF 18351 #define HAVE_LIBCCFITS 1 18352 _ACEOF 18353 18354 LIBS="-lCCfits $LIBS" 18355 18356 else 18357 no_good=yes 18358 fi 18359 18360 ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default" 18361 if test "x$ac_cv_header_CCfits_CCfits" = x""yes; then : 18362 18363 else 18364 no_good=yes 18365 fi 18366 18367 18368 if test "$no_good" = yes; then 18369 as_fn_error $? "CCfits not properly installed/not found." "$LINENO" 5 18370 18371 LIBS=$OLD_LIBS 18372 LDFLAGS=$OLD_LDFLAGS 18373 CPPFLAGS=$OLD_CPPFLAGS 18374 CFLAGS=$OLD_CFLAGS 18375 else 18376 18377 18378 $as_echo "#define HAVE_PKG_ccfits 1" >>confdefs.h 18379 18380 fi 18381 18382 fi 18383 18384 18385 18386 #AC_CHECK_HEADERS([CCfits/CCfits],, 18387 # AC_MSG_ERROR(CCfits headers not found)) 18388 #AC_CHECK_LIB(CCfits, main,, 18389 # AC_MSG_ERROR(CCfits library not found)) 18395 18390 18396 18391 ###################################################################### … … 21612 21607 21613 21608 cat > conftest.$ac_ext <<EOF 21614 #line 216 14"configure"21609 #line 21609 "configure" 21615 21610 #include "confdefs.h" 21616 21611 #include <qglobal.h> … … 25056 25051 25057 25052 fi 25058 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC" >&525059 $as_echo "$as_me: ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC" >&6;}25060 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOT built with --with-qt found: $HAVE_ROOT_QT" >&525061 $as_echo "$as_me: ROOT built with --with-qt found: $HAVE_ROOT_QT" >&6;}25053 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC" >&5 25054 $as_echo "$as_me: ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC" >&6;} 25055 { $as_echo "$as_me:${as_lineno-$LINENO}: ROOT built with --with-qt found: $HAVE_ROOT_QT" >&5 25056 $as_echo "$as_me: ROOT built with --with-qt found: $HAVE_ROOT_QT" >&6;} 25062 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 25063 25058 $as_echo "$as_me: " >&6;}
Note:
See TracChangeset
for help on using the changeset viewer.