Changeset 10445


Ignore:
Timestamp:
Apr 21, 2011, 5:35:53 PM (9 years ago)
Author:
tbretz
Message:
More output; added missing BOOST flags to LDFLAGS and CPPFLAGS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/configure.ac

    r10435 r10445  
    5858AC_LANG_PUSH(C)
    5959
     60# Check for math library (some linux need this to compile cfitsio)
     61AC_CHECK_LIB([m],[cos])
     62
    6063# Needed to compile dim
    6164ACX_PTHREAD
     
    164167#AX_BOOST_WSERIALIZATION
    165168
     169LDFLAGS+=" "$BOOST_LDFLAGS" "
    166170LDFLAGS+=" -lboost_date_time"
    167171LDFLAGS+=" -lboost_filesystem"
     
    170174LDFLAGS+=" -lboost_system"
    171175LDFLAGS+=" -lboost_thread "
     176
     177CPPFLAGS+=" "$BOOST_CPPFLAGS" "
    172178
    173179#AC_CHECK_HEADERS(
     
    209215)
    210216
    211 HAVE_ROOT_QT=no
    212 
    213217if test "$ROOTEXEC" != no ;
    214218then
     
    217221   ROOTLDFLAGS="-L"$ROOTLIBDIR" -lGQt "
    218222
     223   #AC_CHECK_PROG(HAVE_ROOT_QT, libGQt.so.$ROOTSOVERSION, yes, no, $ROOTLIBDIR)
     224   #AC_CHECK_PROG(HAVE_GQT,     libGQt.so.$ROOTSOVERSION, yes, no, $LD_LIBRARY_PATH)
     225
     226   # It seems it dooesn't work on older root versions
    219227   ROOT_FEATURE([qt], [HAVE_ROOT_QT=yes])
    220228
     
    223231
    224232fi
     233
    225234
    226235######################################################################
     
    280289AC_MSG_NOTICE(============================== summary =============================)
    281290AC_MSG_NOTICE()
     291AC_MSG_NOTICE([ CPPFLAGS = $CPPFLAGS])
     292AC_MSG_NOTICE()
     293AC_MSG_NOTICE([ LDFLAGS  = $LDFLAGS])
     294AC_MSG_NOTICE()
     295AC_MSG_NOTICE(--------------------------------------------------------------------)
     296AC_MSG_NOTICE()
     297AC_MSG_NOTICE([ BOOST_CPPFLAGS = $BOOST_CPPFLAGS])
     298AC_MSG_NOTICE([ BOOST_LDFLAGS  = $BOOST_LDFLAGS])
     299   AC_MSG_NOTICE()
     300AM_COND_IF(HAS_QT4, [
     301   AC_MSG_NOTICE(--------------------------------------------------------------------)
     302   AC_MSG_NOTICE()
     303   AC_MSG_NOTICE([ QT4_VERSION  = $QT4_VERSION])
     304   AC_MSG_NOTICE()
     305   AC_MSG_NOTICE([ QT4_LIB      = $QT4_LIB])
     306   AC_MSG_NOTICE([ QT4_LDFLAGS  = $QT4_LDFLAGS])
     307   AC_MSG_NOTICE([ QT4_INCLUDES = $QT4_INCLUDES])
     308   AC_MSG_NOTICE()
     309   AC_MSG_NOTICE([ MOC4 = $MOC4])
     310   AC_MSG_NOTICE([ UIC4 = $UIC4])
     311   AC_MSG_NOTICE([ RCC4 = $RCC4])
     312   AC_MSG_NOTICE()
     313],[])
     314AM_COND_IF(HAS_ROOT, [
     315   AC_MSG_NOTICE(--------------------------------------------------------------------)
     316   AC_MSG_NOTICE()
     317   AC_MSG_NOTICE([ ROOTVERSION   = $ROOTVERSION])
     318   AC_MSG_NOTICE()
     319   AC_MSG_NOTICE([ ROOTEXEC      = $ROOTEXEC])
     320   AC_MSG_NOTICE([ ROOTCONF      = $ROOTCONF])
     321   AC_MSG_NOTICE([ ROOTCINT      = $ROOTCINT])
     322   AC_MSG_NOTICE([ ROOTCPPFLAGS  = $ROOTCPPFLAGS])
     323   AC_MSG_NOTICE([ ROOTLDFLAGS   = $ROOTLDFLAGS])
     324AC_MSG_NOTICE()
     325],[])
     326AC_MSG_NOTICE(--------------------------------------------------------------------)
     327AC_MSG_NOTICE()
    282328
    283329AM_COND_IF(HAS_COLORDIFF,
     
    310356AC_MSG_NOTICE([ ROOT support enabled   /  root >= 5.12/00 found: $ROOTEXEC])
    311357AC_MSG_NOTICE([ ROOT built with --with-qt                 found: $HAVE_ROOT_QT])
    312 AM_COND_IF(HAS_QT4, [
    313    AC_MSG_NOTICE()
    314    AC_MSG_NOTICE(--------------------------------------------------------------------)
    315    AC_MSG_NOTICE()
    316    AC_MSG_NOTICE([ QT4_VERSION  = $QT4_VERSION])
    317    AC_MSG_NOTICE()
    318    AC_MSG_NOTICE([ QT4_LIB      = $QT4_LIB])
    319    AC_MSG_NOTICE([ QT4_LDFLAGS  = $QT4_LDFLAGS])
    320    AC_MSG_NOTICE([ QT4_INCLUDES = $QT4_INCLUDES])
    321    AC_MSG_NOTICE()
    322    AC_MSG_NOTICE([ MOC4 = $MOC4])
    323    AC_MSG_NOTICE([ UIC4 = $UIC4])
    324    AC_MSG_NOTICE([ RCC4 = $RCC4])
    325 ],[])
    326 AM_COND_IF(HAS_QT4, [
    327    AC_MSG_NOTICE()
    328    AC_MSG_NOTICE(--------------------------------------------------------------------)
    329    AC_MSG_NOTICE()
    330    AC_MSG_NOTICE([ ROOTVERSION   = $ROOTVERSION])
    331    AC_MSG_NOTICE()
    332    AC_MSG_NOTICE([ ROOTEXEC      = $ROOTEXEC])
    333    AC_MSG_NOTICE([ ROOTCONF      = $ROOTCONF])
    334    AC_MSG_NOTICE([ ROOTCINT      = $ROOTCINT])
    335    AC_MSG_NOTICE([ ROOTCPPFLAGS  = $ROOTCPPFLAGS])
    336    AC_MSG_NOTICE([ ROOTLDFLAGS   = $ROOTLDFLAGS])
    337 ],[])
    338358AC_MSG_NOTICE()
    339359AC_MSG_NOTICE(--------------------------------------------------------------------)
     
    347367   AC_MSG_NOTICE([  - Install colorgcc to get colored compiler output.])
    348368)
     369AC_MSG_NOTICE([  - If you send me a bug report about:])
     370AC_MSG_NOTICE([    + configure please attach the file config.log])
     371AC_MSG_NOTICE([    + make please send me the output of 'make V=1'])
    349372AC_MSG_NOTICE()
    350373AC_MSG_NOTICE(--------------------------------------------------------------------)
Note: See TracChangeset for help on using the changeset viewer.