Ignore:
Timestamp:
05/24/12 14:20:57 (13 years ago)
Author:
tbretz
Message:
Added libsoprano and tngweather
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/configure

    r13801 r13868  
    624624HAS_GUI_FALSE
    625625HAS_GUI_TRUE
     626HAS_SOPRANO_FALSE
     627HAS_SOPRANO_TRUE
    626628HAS_NOVA_FALSE
    627629HAS_NOVA_TRUE
     
    960962with_qwt_include
    961963with_qwt_libdir
     964with_soprano
     965with_soprano_include
     966with_soprano_libdir
    962967with_root
    963968with_rootsys
     
    17261731  --with-qwt-libdir=DIR        specify exact library dir for qwt library (e.g. libqwt-qt4)
    17271732  --without-qwt        disables qwt usage completely
     1733  --with-soprano=DIR    root directory of soprano installation
     1734  --with-soprano-include=DIR        specify exact include dir for soprano headers (e.g. Soprano/Soprano)
     1735  --with-soprano-libdir=DIR        specify exact library dir for soprano library (e.g. libsoprano)
     1736  --without-soprano        disables soprano usage completely
    17281737  --without-root          Disable root, i.e. disable gui support.
    17291738  --with-rootsys          path to the ROOT executables or top ROOT
     
    2363723646
    2363823647                cat > conftest.$ac_ext <<EOF
    23639 #line 23639 "configure"
     23648#line 23648 "configure"
    2364023649#include "confdefs.h"
    2364123650#include <qglobal.h>
     
    2406924078
    2407024079
     24080
     24081
     24082# Check whether --with-soprano was given.
     24083if test "${with_soprano+set}" = set; then :
     24084  withval=$with_soprano; with_soprano=$withval
     24085if test "${with_soprano}" != yes; then
     24086        soprano_include="$withval/include"
     24087        soprano_libdir="$withval/lib"
     24088fi
     24089
     24090fi
     24091
     24092
     24093
     24094# Check whether --with-soprano-include was given.
     24095if test "${with_soprano_include+set}" = set; then :
     24096  withval=$with_soprano_include; soprano_include="$withval"
     24097fi
     24098
     24099
     24100
     24101# Check whether --with-soprano-libdir was given.
     24102if test "${with_soprano_libdir+set}" = set; then :
     24103  withval=$with_soprano_libdir; soprano_libdir="$withval"
     24104fi
     24105
     24106
     24107if test "${with_soprano}" != no ; then
     24108        OLD_LIBS=$LIBS
     24109        OLD_LDFLAGS=$LDFLAGS
     24110        OLD_CFLAGS=$CFLAGS
     24111        OLD_CPPFLAGS=$CPPFLAGS
     24112
     24113        if test "${soprano_libdir}" ; then
     24114                LDFLAGS="$LDFLAGS -L${soprano_libdir}"
     24115        fi
     24116        if test "${soprano_include}" ; then
     24117                CPPFLAGS="$CPPFLAGS -I${soprano_include}"
     24118                CFLAGS="$CFLAGS -I${soprano_include}"
     24119        fi
     24120
     24121        ac_fn_cxx_check_header_mongrel "$LINENO" "Soprano/Soprano" "ac_cv_header_Soprano_Soprano" "$ac_includes_default"
     24122if test "x$ac_cv_header_Soprano_Soprano" = xyes; then :
     24123
     24124else
     24125  no_good=yes
     24126fi
     24127
     24128
     24129
     24130        ac_ext=cpp
     24131ac_cpp='$CXXCPP $CPPFLAGS'
     24132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     24135
     24136
     24137
     24138
     24139
     24140
     24141
     24142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Soprano::PluginManager::instance in -lsoprano" >&5
     24143$as_echo_n "checking for Soprano::PluginManager::instance in -lsoprano... " >&6; }
     24144if ${ac_cv_lib_soprano_Soprano__PluginManager__instance+:} false; then :
     24145  $as_echo_n "(cached) " >&6
     24146else
     24147
     24148        ac_check_lib_save_LIBS=$LIBS
     24149        LIBS="-lsoprano  $LIBS"
     24150        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24151/* end confdefs.h.  */
     24152#include <Soprano/Soprano>
     24153int
     24154main ()
     24155{
     24156Soprano::PluginManager::instance
     24157  ;
     24158  return 0;
     24159}
     24160_ACEOF
     24161if ac_fn_cxx_try_link "$LINENO"; then :
     24162  ac_cv_lib_soprano_Soprano__PluginManager__instance=yes
     24163else
     24164  ac_cv_lib_soprano_Soprano__PluginManager__instance=no
     24165fi
     24166rm -f core conftest.err conftest.$ac_objext \
     24167    conftest$ac_exeext conftest.$ac_ext
     24168        LIBS=$ac_check_lib_save_LIBS
     24169fi
     24170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soprano_Soprano__PluginManager__instance" >&5
     24171$as_echo "$ac_cv_lib_soprano_Soprano__PluginManager__instance" >&6; }
     24172        if test $ac_cv_lib_soprano_Soprano__PluginManager__instance = yes; then :
     24173
     24174
     24175                        cat >>confdefs.h <<_ACEOF
     24176#define HAVE_LIBSOPRANO 1
     24177_ACEOF
     24178
     24179                        LIBS="-lsoprano $LIBS"
     24180
     24181
     24182else
     24183  no_good=yes
     24184fi
     24185
     24186
     24187
     24188        ac_ext=cpp
     24189ac_cpp='$CXXCPP $CPPFLAGS'
     24190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     24193
     24194
     24195        if test "$no_good" = yes; then
     24196                HAVE_SOPRANO=no
     24197
     24198                LIBS=$OLD_LIBS
     24199                LDFLAGS=$OLD_LDFLAGS
     24200                CPPFLAGS=$OLD_CPPFLAGS
     24201                CFLAGS=$OLD_CFLAGS
     24202        else
     24203                HAVE_SOPRANO=yes
     24204
     24205                $as_echo "#define HAVE_PKG_soprano 1" >>confdefs.h
     24206
     24207        fi
     24208
     24209fi
     24210
     24211
     24212
    2407124213######################################################################
    2407224214# ROOT SUPPORT
     
    2464724789  HAS_NOVA_TRUE='#'
    2464824790  HAS_NOVA_FALSE=
     24791fi
     24792
     24793 if test "$HAVE_SOPRANO" = yes; then
     24794  HAS_SOPRANO_TRUE=
     24795  HAS_SOPRANO_FALSE='#'
     24796else
     24797  HAS_SOPRANO_TRUE='#'
     24798  HAS_SOPRANO_FALSE=
    2464924799fi
    2465024800
     
    2504625196if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then
    2504725197  as_fn_error $? "conditional \"HAS_NOVA\" was never defined.
     25198Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25199fi
     25200if test -z "${HAS_SOPRANO_TRUE}" && test -z "${HAS_SOPRANO_FALSE}"; then
     25201  as_fn_error $? "conditional \"HAS_SOPRANO\" was never defined.
    2504825202Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2504925203fi
     
    2753427688{ $as_echo "$as_me:${as_lineno-$LINENO}:  Qwt                    / qwt_plot.h         found: $HAVE_QWT" >&5
    2753527689$as_echo "$as_me:  Qwt                    / qwt_plot.h         found: $HAVE_QWT" >&6;}
     27690{ $as_echo "$as_me:${as_lineno-$LINENO}:  Soprano                / Soprano/Soprano    found: $HAVE_SOPRANO" >&5
     27691$as_echo "$as_me:  Soprano                / Soprano/Soprano    found: $HAVE_SOPRANO" >&6;}
    2753627692{ $as_echo "$as_me:${as_lineno-$LINENO}:  cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO" >&5
    2753727693$as_echo "$as_me:  cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO" >&6;}
Note: See TracChangeset for help on using the changeset viewer.