Ignore:
Timestamp:
05/18/12 17:43:48 (13 years ago)
Author:
tbretz
Message:
Added smartfact and a check for the nova-library.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/configure

    r13031 r13776  
    624624HAS_GUI_FALSE
    625625HAS_GUI_TRUE
     626HAS_NOVA_FALSE
     627HAS_NOVA_TRUE
    626628HAS_QWT_FALSE
    627629HAS_QWT_TRUE
     
    926928with_GLU_include
    927929with_GLU_libdir
     930with_nova
     931with_nova_include
     932with_nova_libdir
    928933with_cfitsio
    929934with_cfitsio_include
     
    16541659  --with-GLU-libdir=DIR        specify exact library dir for GLU library (e.g. libGLU)
    16551660  --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
    16561665  --with-cfitsio=DIR    root directory of cfitsio installation
    16571666  --with-cfitsio-include=DIR        specify exact include dir for cfitsio headers (e.g. fitsio.h)
     
    1993419943
    1993519944
     19945# Check for libnova
     19946
     19947
     19948
     19949# Check whether --with-nova was given.
     19950if test "${with_nova+set}" = set; then :
     19951  withval=$with_nova; with_nova=$withval
     19952if test "${with_nova}" != yes; then
     19953        nova_include="$withval/include"
     19954        nova_libdir="$withval/lib"
     19955fi
     19956
     19957fi
     19958
     19959
     19960
     19961# Check whether --with-nova-include was given.
     19962if test "${with_nova_include+set}" = set; then :
     19963  withval=$with_nova_include; nova_include="$withval"
     19964fi
     19965
     19966
     19967
     19968# Check whether --with-nova-libdir was given.
     19969if test "${with_nova_libdir+set}" = set; then :
     19970  withval=$with_nova_libdir; nova_libdir="$withval"
     19971fi
     19972
     19973
     19974if 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"
     19989if test "x$ac_cv_header_libnova_julian_day_h" = xyes; then :
     19990
     19991else
     19992  no_good=yes
     19993fi
     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; }
     19998if ${ac_cv_lib_nova_ln_get_julian_from_sys+:} false; then :
     19999  $as_echo_n "(cached) " >&6
     20000else
     20001  ac_check_lib_save_LIBS=$LIBS
     20002LIBS="-lnova  $LIBS"
     20003cat 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
     20010extern "C"
     20011#endif
     20012char ln_get_julian_from_sys ();
     20013int
     20014main ()
     20015{
     20016return ln_get_julian_from_sys ();
     20017  ;
     20018  return 0;
     20019}
     20020_ACEOF
     20021if ac_fn_c_try_link "$LINENO"; then :
     20022  ac_cv_lib_nova_ln_get_julian_from_sys=yes
     20023else
     20024  ac_cv_lib_nova_ln_get_julian_from_sys=no
     20025fi
     20026rm -f core conftest.err conftest.$ac_objext \
     20027    conftest$ac_exeext conftest.$ac_ext
     20028LIBS=$ac_check_lib_save_LIBS
     20029fi
     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; }
     20032if 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
     20039else
     20040  no_good=yes
     20041fi
     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
     20057fi
     20058
     20059
     20060
    1993620061# Taken from http://code.google.com/p/autoconf-gl-macros/
    1993720062#AX_CHECK_GL
     
    2350023625
    2350123626                cat > conftest.$ac_ext <<EOF
    23502 #line 23502 "configure"
     23627#line 23627 "configure"
    2350323628#include "confdefs.h"
    2350423629#include <qglobal.h>
     
    2450424629fi
    2450524630
     24631 if test "$HAVE_NOVA" = yes; then
     24632  HAS_NOVA_TRUE=
     24633  HAS_NOVA_FALSE='#'
     24634else
     24635  HAS_NOVA_TRUE='#'
     24636  HAS_NOVA_FALSE=
     24637fi
     24638
    2450624639
    2450724640 if test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ; then
     
    2454924682if test "$HAVE_ZLIB" = yes; then
    2455024683  $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
     24684
     24685fi
     24686if test "$HAVE_NOVA" = yes; then
     24687  $as_echo "#define HAVE_NOVA 1" >>confdefs.h
    2455124688
    2455224689fi
     
    2489325030if test -z "${HAS_QWT_TRUE}" && test -z "${HAS_QWT_FALSE}"; then
    2489425031  as_fn_error $? "conditional \"HAS_QWT\" was never defined.
     25032Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25033fi
     25034if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then
     25035  as_fn_error $? "conditional \"HAS_NOVA\" was never defined.
    2489525036Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2489625037fi
     
    2736927510{ $as_echo "$as_me:${as_lineno-$LINENO}:  zlib                   / 'zlib.h'           found: $HAVE_ZLIB" >&5
    2737027511$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;}
    2737127514#AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h              found: $HAVE_IZSTREAM_H])
    2737227515#AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                  found: $HAVE_FITS_H])
Note: See TracChangeset for help on using the changeset viewer.