Changeset 13776 for trunk/FACT++/configure
- Timestamp:
- 05/18/12 17:43:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure
r13031 r13776 624 624 HAS_GUI_FALSE 625 625 HAS_GUI_TRUE 626 HAS_NOVA_FALSE 627 HAS_NOVA_TRUE 626 628 HAS_QWT_FALSE 627 629 HAS_QWT_TRUE … … 926 928 with_GLU_include 927 929 with_GLU_libdir 930 with_nova 931 with_nova_include 932 with_nova_libdir 928 933 with_cfitsio 929 934 with_cfitsio_include … … 1654 1659 --with-GLU-libdir=DIR specify exact library dir for GLU library (e.g. libGLU) 1655 1660 --without-GLU disables GLU usage completely 1661 --with-nova=DIR root directory of nova installation 1662 --with-nova-include=DIR specify exact include dir for nova headers (e.g. libnova/julian_day.h) 1663 --with-nova-libdir=DIR specify exact library dir for nova library (e.g. libnova) 1664 --without-nova disables nova usage completely 1656 1665 --with-cfitsio=DIR root directory of cfitsio installation 1657 1666 --with-cfitsio-include=DIR specify exact include dir for cfitsio headers (e.g. fitsio.h) … … 19934 19943 19935 19944 19945 # Check for libnova 19946 19947 19948 19949 # Check whether --with-nova was given. 19950 if test "${with_nova+set}" = set; then : 19951 withval=$with_nova; with_nova=$withval 19952 if test "${with_nova}" != yes; then 19953 nova_include="$withval/include" 19954 nova_libdir="$withval/lib" 19955 fi 19956 19957 fi 19958 19959 19960 19961 # Check whether --with-nova-include was given. 19962 if test "${with_nova_include+set}" = set; then : 19963 withval=$with_nova_include; nova_include="$withval" 19964 fi 19965 19966 19967 19968 # Check whether --with-nova-libdir was given. 19969 if test "${with_nova_libdir+set}" = set; then : 19970 withval=$with_nova_libdir; nova_libdir="$withval" 19971 fi 19972 19973 19974 if test "${with_nova}" != no ; then 19975 OLD_LIBS=$LIBS 19976 OLD_LDFLAGS=$LDFLAGS 19977 OLD_CFLAGS=$CFLAGS 19978 OLD_CPPFLAGS=$CPPFLAGS 19979 19980 if test "${nova_libdir}" ; then 19981 LDFLAGS="$LDFLAGS -L${nova_libdir}" 19982 fi 19983 if test "${nova_include}" ; then 19984 CPPFLAGS="$CPPFLAGS -I${nova_include}" 19985 CFLAGS="$CFLAGS -I${nova_include}" 19986 fi 19987 19988 ac_fn_c_check_header_mongrel "$LINENO" "libnova/julian_day.h" "ac_cv_header_libnova_julian_day_h" "$ac_includes_default" 19989 if test "x$ac_cv_header_libnova_julian_day_h" = xyes; then : 19990 19991 else 19992 no_good=yes 19993 fi 19994 19995 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln_get_julian_from_sys in -lnova" >&5 19997 $as_echo_n "checking for ln_get_julian_from_sys in -lnova... " >&6; } 19998 if ${ac_cv_lib_nova_ln_get_julian_from_sys+:} false; then : 19999 $as_echo_n "(cached) " >&6 20000 else 20001 ac_check_lib_save_LIBS=$LIBS 20002 LIBS="-lnova $LIBS" 20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20004 /* end confdefs.h. */ 20005 20006 /* Override any GCC internal prototype to avoid an error. 20007 Use char because int might match the return type of a GCC 20008 builtin and then its argument prototype would still apply. */ 20009 #ifdef __cplusplus 20010 extern "C" 20011 #endif 20012 char ln_get_julian_from_sys (); 20013 int 20014 main () 20015 { 20016 return ln_get_julian_from_sys (); 20017 ; 20018 return 0; 20019 } 20020 _ACEOF 20021 if ac_fn_c_try_link "$LINENO"; then : 20022 ac_cv_lib_nova_ln_get_julian_from_sys=yes 20023 else 20024 ac_cv_lib_nova_ln_get_julian_from_sys=no 20025 fi 20026 rm -f core conftest.err conftest.$ac_objext \ 20027 conftest$ac_exeext conftest.$ac_ext 20028 LIBS=$ac_check_lib_save_LIBS 20029 fi 20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nova_ln_get_julian_from_sys" >&5 20031 $as_echo "$ac_cv_lib_nova_ln_get_julian_from_sys" >&6; } 20032 if test "x$ac_cv_lib_nova_ln_get_julian_from_sys" = xyes; then : 20033 cat >>confdefs.h <<_ACEOF 20034 #define HAVE_LIBNOVA 1 20035 _ACEOF 20036 20037 LIBS="-lnova $LIBS" 20038 20039 else 20040 no_good=yes 20041 fi 20042 20043 if test "$no_good" = yes; then 20044 HAVE_NOVA=no 20045 20046 LIBS=$OLD_LIBS 20047 LDFLAGS=$OLD_LDFLAGS 20048 CPPFLAGS=$OLD_CPPFLAGS 20049 CFLAGS=$OLD_CFLAGS 20050 else 20051 HAVE_NOVA=yes 20052 20053 $as_echo "#define HAVE_PKG_nova 1" >>confdefs.h 20054 20055 fi 20056 20057 fi 20058 20059 20060 19936 20061 # Taken from http://code.google.com/p/autoconf-gl-macros/ 19937 20062 #AX_CHECK_GL … … 23500 23625 23501 23626 cat > conftest.$ac_ext <<EOF 23502 #line 23 502"configure"23627 #line 23627 "configure" 23503 23628 #include "confdefs.h" 23504 23629 #include <qglobal.h> … … 24504 24629 fi 24505 24630 24631 if test "$HAVE_NOVA" = yes; then 24632 HAS_NOVA_TRUE= 24633 HAS_NOVA_FALSE='#' 24634 else 24635 HAS_NOVA_TRUE='#' 24636 HAS_NOVA_FALSE= 24637 fi 24638 24506 24639 24507 24640 if test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ; then … … 24549 24682 if test "$HAVE_ZLIB" = yes; then 24550 24683 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h 24684 24685 fi 24686 if test "$HAVE_NOVA" = yes; then 24687 $as_echo "#define HAVE_NOVA 1" >>confdefs.h 24551 24688 24552 24689 fi … … 24893 25030 if test -z "${HAS_QWT_TRUE}" && test -z "${HAS_QWT_FALSE}"; then 24894 25031 as_fn_error $? "conditional \"HAS_QWT\" was never defined. 25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5 25033 fi 25034 if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then 25035 as_fn_error $? "conditional \"HAS_NOVA\" was never defined. 24895 25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5 24896 25037 fi … … 27369 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib / 'zlib.h' found: $HAVE_ZLIB" >&5 27370 27511 $as_echo "$as_me: zlib / 'zlib.h' found: $HAVE_ZLIB" >&6;} 27512 { $as_echo "$as_me:${as_lineno-$LINENO}: nova / libnova.so found: $HAVE_NOVA" >&5 27513 $as_echo "$as_me: nova / libnova.so found: $HAVE_NOVA" >&6;} 27371 27514 #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h found: $HAVE_IZSTREAM_H]) 27372 27515 #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h found: $HAVE_FITS_H])
Note:
See TracChangeset
for help on using the changeset viewer.