Changeset 14035 for trunk


Ignore:
Timestamp:
06/02/12 14:01:24 (12 years ago)
Author:
tbretz
Message:
Added timecheck; added proper support for HAS_SQL in configure
Location:
trunk/FACT++
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.am

    r13971 r14035  
    4040        magicweather \
    4141        smartfact \
     42        timecheck \
    4243        fitsdump fitscheck
    4344
     
    9394        fitscheck.man \
    9495        smartfact.man
     96        timecheck.man
    9597endif
    9698
     
    271273        libConfiguration.la
    272274
     275timecheck_SOURCES = src/timecheck.cc src/LocalControl.h
     276timecheck_LDADD   = libDim++.la libDim.la libDimExtension.la \
     277        libStateMachine.la libTools.la libTime.la \
     278        libConfiguration.la
     279
    273280smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
    274281smartfact_LDADD   = libDim++.la libDim.la libDimExtension.la \
  • trunk/FACT++/Makefile.in

    r13972 r14035  
    4949        drivectrl$(EXEEXT) mcp$(EXEEXT) feedback$(EXEEXT) \
    5050        ratescan$(EXEEXT) ratecontrol$(EXEEXT) magicweather$(EXEEXT) \
    51         smartfact$(EXEEXT) fitsdump$(EXEEXT) fitscheck$(EXEEXT) \
    52         $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
    53         $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6)
     51        smartfact$(EXEEXT) timecheck$(EXEEXT) fitsdump$(EXEEXT) \
     52        fitscheck$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) \
     53        $(am__EXEEXT_3) $(am__EXEEXT_4) $(am__EXEEXT_5) \
     54        $(am__EXEEXT_6)
    5455@HAS_GUI_TRUE@am__append_1 = fact
    5556@HAS_SOPRANO_TRUE@am__append_2 = tngweather
     
    369370time_OBJECTS = $(am_time_OBJECTS)
    370371time_DEPENDENCIES = libTime.la
     372am_timecheck_OBJECTS = src/timecheck.$(OBJEXT)
     373timecheck_OBJECTS = $(am_timecheck_OBJECTS)
     374timecheck_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     375        libStateMachine.la libTools.la libTime.la libConfiguration.la
    371376am_tngweather_OBJECTS = src/tngweather.$(OBJEXT)
    372377tngweather_OBJECTS = $(am_tngweather_OBJECTS)
     
    461466        $(scheduler_SOURCES) $(skypeclient_SOURCES) \
    462467        $(smartfact_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    463         $(tngweather_SOURCES) $(triggerschedule_SOURCES) \
    464         $(viewer_SOURCES)
     468        $(timecheck_SOURCES) $(tngweather_SOURCES) \
     469        $(triggerschedule_SOURCES) $(viewer_SOURCES)
    465470DIST_SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \
    466471        $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \
     
    480485        sched.c $(scheduler_SOURCES) $(skypeclient_SOURCES) \
    481486        $(smartfact_SOURCES) $(test_SOURCES) $(time_SOURCES) \
    482         $(tngweather_SOURCES) $(triggerschedule_SOURCES) \
    483         $(am__viewer_SOURCES_DIST)
     487        $(timecheck_SOURCES) $(tngweather_SOURCES) \
     488        $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST)
    484489man1dir = $(mandir)/man1
    485490NROFF = nroff
     
    715720AM_CPPFLAGS = -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \
    716721   -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
    717    $(SVN_REVISION)
    718 
    719 #`pkg-config --cflags --libs dbus-1` `pkg-config --cflags --libs dbus-glib-1`
     722   $(SVN_REVISION)
     723
    720724AM_CXXFLAGS = $(AM_CPPFLAGS) \
    721725   -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow
     
    894898tngweather_SOURCES = src/tngweather.cc src/LocalControl.h
    895899tngweather_LDADD = libDim++.la libDim.la libDimExtension.la \
     900        libStateMachine.la libTools.la libTime.la \
     901        libConfiguration.la
     902
     903timecheck_SOURCES = src/timecheck.cc src/LocalControl.h
     904timecheck_LDADD = libDim++.la libDim.la libDimExtension.la \
    896905        libStateMachine.la libTools.la libTime.la \
    897906        libConfiguration.la
     
    15041513        @rm -f time$(EXEEXT)
    15051514        $(AM_V_CXXLD)$(CXXLINK) $(time_OBJECTS) $(time_LDADD) $(LIBS)
     1515src/timecheck.$(OBJEXT): src/$(am__dirstamp) \
     1516        src/$(DEPDIR)/$(am__dirstamp)
     1517timecheck$(EXEEXT): $(timecheck_OBJECTS) $(timecheck_DEPENDENCIES)
     1518        @rm -f timecheck$(EXEEXT)
     1519        $(AM_V_CXXLD)$(CXXLINK) $(timecheck_OBJECTS) $(timecheck_LDADD) $(LIBS)
    15061520src/tngweather.$(OBJEXT): src/$(am__dirstamp) \
    15071521        src/$(DEPDIR)/$(am__dirstamp)
     
    17071721        -rm -f src/test.$(OBJEXT)
    17081722        -rm -f src/time.$(OBJEXT)
     1723        -rm -f src/timecheck.$(OBJEXT)
    17091724        -rm -f src/tngweather.$(OBJEXT)
    17101725        -rm -f src/tools.$(OBJEXT)
     
    18341849@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/test.Po@am__quote@
    18351850@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/time.Po@am__quote@
     1851@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/timecheck.Po@am__quote@
    18361852@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/tngweather.Po@am__quote@
    18371853@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/tools.Plo@am__quote@
     
    25632579        uninstall-libLTLIBRARIES uninstall-man uninstall-man1
    25642580
     2581@HAS_HELP2MAN_TRUE@     timecheck.man
    25652582
    25662583.ui.h: $<
  • trunk/FACT++/configure

    r13970 r14035  
    650650HAS_ROOT_FALSE
    651651HAS_ROOT_TRUE
     652HAS_SQL_FALSE
     653HAS_SQL_TRUE
    652654HAS_QT4_FALSE
    653655HAS_QT4_TRUE
     
    2385723859
    2385823860                cat > conftest.$ac_ext <<EOF
    23859 #line 23859 "configure"
     23861#line 23861 "configure"
    2386023862#include "confdefs.h"
    2386123863#include <qglobal.h>
     
    2488024882fi
    2488124883
    24882  if test -n "$DX_DOXYGEN"; then
     24884 if test "$DX_DOXYGEN"; then
    2488324885  HAS_DOXYGEN_TRUE=
    2488424886  HAS_DOXYGEN_FALSE='#'
     
    2488824890fi
    2488924891
    24890  if test -n "$DX_DOT"; then
     24892 if test "$DX_DOT"; then
    2489124893  HAS_DOT_TRUE=
    2489224894  HAS_DOT_FALSE='#'
     
    2490424906fi
    2490524907
    24906  if test -n "$QT4_VERSION"; then
     24908 if test "$QT4_VERSION"; then
    2490724909  HAS_QT4_TRUE=
    2490824910  HAS_QT4_FALSE='#'
     
    2491024912  HAS_QT4_TRUE='#'
    2491124913  HAS_QT4_FALSE=
     24914fi
     24915
     24916 if test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ; then
     24917  HAS_SQL_TRUE=
     24918  HAS_SQL_FALSE='#'
     24919else
     24920  HAS_SQL_TRUE='#'
     24921  HAS_SQL_FALSE=
    2491224922fi
    2491324923
     
    2507125081if test "$HAVE_DBUS" = yes; then
    2507225082  $as_echo "#define HAVE_DBUS 1" >>confdefs.h
     25083
     25084fi
     25085if test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ; then
     25086  $as_echo "#define HAVE_SQL 1" >>confdefs.h
    2507325087
    2507425088fi
     
    2537525389if test -z "${HAS_QT4_TRUE}" && test -z "${HAS_QT4_FALSE}"; then
    2537625390  as_fn_error $? "conditional \"HAS_QT4\" was never defined.
     25391Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25392fi
     25393if test -z "${HAS_SQL_TRUE}" && test -z "${HAS_SQL_FALSE}"; then
     25394  as_fn_error $? "conditional \"HAS_SQL\" was never defined.
    2537725395Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2537825396fi
     
    2784527863{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
    2784627864$as_echo "$as_me: " >&6;}
    27847 if test -n "$QT4_VERSION"; then
     27865if test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ; then
     27866
     27867   { $as_echo "$as_me:${as_lineno-$LINENO}: --------------------------------------------------------------------" >&5
     27868$as_echo "$as_me: --------------------------------------------------------------------" >&6;}
     27869   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
     27870$as_echo "$as_me: " >&6;}
     27871   { $as_echo "$as_me:${as_lineno-$LINENO}:  MYSQLPP_INC_DIR = $MYSQLPP_INC_DIR" >&5
     27872$as_echo "$as_me:  MYSQLPP_INC_DIR = $MYSQLPP_INC_DIR" >&6;}
     27873   { $as_echo "$as_me:${as_lineno-$LINENO}:  MYSQLPP_LIB_DIR = $MYSQLPP_LIB_DIR" >&5
     27874$as_echo "$as_me:  MYSQLPP_LIB_DIR = $MYSQLPP_LIB_DIR" >&6;}
     27875   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
     27876$as_echo "$as_me: " >&6;}
     27877
     27878fi
     27879if test "$QT4_VERSION"; then
    2784827880
    2784927881   { $as_echo "$as_me:${as_lineno-$LINENO}: --------------------------------------------------------------------" >&5
     
    2792127953{ $as_echo "$as_me:${as_lineno-$LINENO}:  CCfits                 / 'CCfits/CCfits'    found: $HAVE_CCFITS" >&5
    2792227954$as_echo "$as_me:  CCfits                 / 'CCfits/CCfits'    found: $HAVE_CCFITS" >&6;}
     27955if test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ; then
     27956  { $as_echo "$as_me:${as_lineno-$LINENO}:  MySQL/MySQL++          / 'mysql++.h'        found: yes" >&5
     27957$as_echo "$as_me:  MySQL/MySQL++          / 'mysql++.h'        found: yes" >&6;}
     27958else
     27959  { $as_echo "$as_me:${as_lineno-$LINENO}:  MySQL/MySQL++          / 'mysql++.h'        found: no" >&5
     27960$as_echo "$as_me:  MySQL/MySQL++          / 'mysql++.h'        found: no" >&6;}
     27961
     27962fi
    2792327963{ $as_echo "$as_me:${as_lineno-$LINENO}:  DBus-1, DBus-glib-1    / pkg-config         found: $HAVE_DBUS" >&5
    2792427964$as_echo "$as_me:  DBus-1, DBus-glib-1    / pkg-config         found: $HAVE_DBUS" >&6;}
     
    2797028010fi
    2797128011
    27972 if test -n "$DX_DOXYGEN"; then
     28012if test "$DX_DOXYGEN"; then
    2797328013  { $as_echo "$as_me:${as_lineno-$LINENO}:  doxygen docu enabled   / 'doxygen'          found: $DX_DOXYGEN" >&5
    2797428014$as_echo "$as_me:  doxygen docu enabled   / 'doxygen'          found: $DX_DOXYGEN" >&6;}
     
    2797828018
    2797928019fi
    27980 if test -n "$DX_DOT"; then
     28020if test "$DX_DOT"; then
    2798128021  { $as_echo "$as_me:${as_lineno-$LINENO}:  doxygen graphs enabled / 'dot' (graphviz)   found: $DX_DOT" >&5
    2798228022$as_echo "$as_me:  doxygen graphs enabled / 'dot' (graphviz)   found: $DX_DOT" >&6;}
     
    2798628026
    2798728027fi
    27988 if test -n "$QT4_VERSION"; then
     28028if test "$QT4_VERSION"; then
    2798928029  { $as_echo "$as_me:${as_lineno-$LINENO}:  QT4 support enabled    /  QT4 toolkit       found: yes" >&5
    2799028030$as_echo "$as_me:  QT4 support enabled    /  QT4 toolkit       found: yes" >&6;}
     
    2806428104
    2806528105fi
    28066 if test -n "$DX_DOXYGEN"; then
     28106if test "$DX_DOXYGEN"; then
    2806728107  { $as_echo "$as_me:${as_lineno-$LINENO}:  doxygen-run:   build html documentation with doxygen" >&5
    2806828108$as_echo "$as_me:  doxygen-run:   build html documentation with doxygen" >&6;}
     
    2811028150
    2811128151fi
    28112 if test -n "$QT4_VERSION"; then
     28152if test "$QT4_VERSION"; then
    2811328153  :
    2811428154else
     
    2815428194
    2815528195fi
     28196if test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ; then
     28197  :
     28198else
     28199  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  database support globally disabled!" >&5
     28200$as_echo "$as_me: WARNING:  database support globally disabled!" >&2;}
     28201fi
    2815628202if test "$HAVE_NOVA" = yes; then
    2815728203  :
  • trunk/FACT++/configure.ac

    r13969 r14035  
    168168#AX_CHECK_GLU
    169169#AX_CHECK_GLUT
    170 
    171 # Check for the fits header and zstream support from MARS
    172 #AC_CHECK_FILE(gui/RawEventsViewer/izstream.h,
    173 #               HAVE_IZSTREAM_H=yes, HAVE_IZSTREAM_H=no)
    174 #AC_CHECK_FILE(gui/RawEventsViewer/fits.h,
    175 #               HAVE_FITS_H=yes, HAVE_FITS_H=no)
    176170
    177171# Needed to compile FACT++
     
    372366AM_CONDITIONAL(HAS_PS2PDF,    [test "$PS2PDF" = yes])
    373367AM_CONDITIONAL(HAS_HELP2MAN,  [test "$HELP2MAN" = yes])
    374 AM_CONDITIONAL(HAS_DOXYGEN,   [test -n "$DX_DOXYGEN"])
    375 AM_CONDITIONAL(HAS_DOT,       [test -n "$DX_DOT"])
     368AM_CONDITIONAL(HAS_DOXYGEN,   [test "$DX_DOXYGEN"])
     369AM_CONDITIONAL(HAS_DOT,       [test "$DX_DOT"])
    376370AM_CONDITIONAL(HAS_COLORGCC,  [test "$COLORGCC"])
    377 AM_CONDITIONAL(HAS_QT4,       [test -n "$QT4_VERSION"])
     371AM_CONDITIONAL(HAS_QT4,       [test "$QT4_VERSION"])
     372AM_CONDITIONAL(HAS_SQL,       [test "$MYSQLPP_LIB_DIR" -a "$MYSQLPP_INC_DIR" ])
    378373AM_CONDITIONAL(HAS_ROOT,      [test "$ROOTEXEC" != no])
    379374AM_CONDITIONAL(HAS_ROOT_QT,   [test "$HAVE_ROOT_QT" = yes])
     
    382377AM_CONDITIONAL(HAS_FITS,      [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes])
    383378AM_CONDITIONAL(HAS_ZLIB,      [test "$HAVE_ZLIB" = yes])
    384 #AM_CONDITIONAL(HAS_IZSTREAM_H,[test "$HAVE_IZSTREAM_H" = yes])
    385 #AM_CONDITIONAL(HAS_FITS_H,    [test "$HAVE_FITS_H" = yes])
    386379AM_CONDITIONAL(HAS_GL,        [test "$HAVE_GL" = yes])
    387380AM_CONDITIONAL(HAS_GLU,       [test "$HAVE_GLU" = yes])
     
    403396AM_COND_IF(HAS_NOVA, [AC_DEFINE(HAVE_NOVA)], )
    404397AM_COND_IF(HAS_DBUS, [AC_DEFINE(HAVE_DBUS)], )
    405 
    406 #AM_COND_IF(HAS_FITS_H, [
    407 #   AM_COND_IF(HAS_IZSTREAM_H, [
    408 #   ])
    409 #],)
    410 
     398AM_COND_IF(HAS_SQL,  [AC_DEFINE(HAVE_SQL)],  )
    411399
    412400##########################################################################
     
    432420AC_MSG_NOTICE([ BOOST_LDFLAGS  = $BOOST_LDFLAGS])
    433421AC_MSG_NOTICE()
     422AM_COND_IF(HAS_SQL, [
     423   AC_MSG_NOTICE(--------------------------------------------------------------------)
     424   AC_MSG_NOTICE()
     425   AC_MSG_NOTICE([ MYSQLPP_INC_DIR = $MYSQLPP_INC_DIR])
     426   AC_MSG_NOTICE([ MYSQLPP_LIB_DIR = $MYSQLPP_LIB_DIR])
     427   AC_MSG_NOTICE()
     428],[])
    434429AM_COND_IF(HAS_QT4, [
    435430   AC_MSG_NOTICE(--------------------------------------------------------------------)
     
    462457AC_MSG_NOTICE([ zlib                   / 'zlib.h'           found: $HAVE_ZLIB])
    463458AC_MSG_NOTICE([ nova                   / libnova.so         found: $HAVE_NOVA])
    464 #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h              found: $HAVE_IZSTREAM_H])
    465 #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                  found: $HAVE_FITS_H])
    466459AC_MSG_NOTICE([ GL                     / GL/gl.h            found: $HAVE_GL])
    467460AC_MSG_NOTICE([ GLU                    / GL/glu.h           found: $HAVE_GLU])
     
    471464AC_MSG_NOTICE([ cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO])
    472465AC_MSG_NOTICE([ CCfits                 / 'CCfits/CCfits'    found: $HAVE_CCFITS])
     466AM_COND_IF(HAS_SQL,
     467   AC_MSG_NOTICE([ MySQL/MySQL++          / 'mysql++.h'        found: yes]),
     468   AC_MSG_NOTICE([ MySQL/MySQL++          / 'mysql++.h'        found: no])
     469)
    473470AC_MSG_NOTICE([ DBus-1, DBus-glib-1    / pkg-config         found: $HAVE_DBUS])
    474471AM_COND_IF(HAS_LIBXP,
     
    576573      AC_MSG_WARN([ Either of the necessary packages not found - viewer GUI disabled!])
    577574)
     575AM_COND_IF(HAS_SQL,,     AC_MSG_WARN([ database support globally disabled!]))
    578576AM_COND_IF(HAS_NOVA,,    AC_MSG_WARN([ libnova missing - smartfact will be compiles without astronomy support!]))
    579577AM_COND_IF(HAS_DBUS,,    AC_MSG_WARN([ DBus libraries missing - skypeclient will not be compiled!]))
Note: See TracChangeset for help on using the changeset viewer.