Changeset 13776 for trunk/FACT++
- Timestamp:
- 05/18/12 17:43:48 (12 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/Makefile.am
r13480 r13776 40 40 mcp feedback ratescan ratecontrol \ 41 41 magicweather \ 42 fitsdump fitscheck 42 smartfact \ 43 fitsdump fitscheck 43 44 44 45 if HAS_GUI … … 82 83 datalogger.man \ 83 84 fitsdump.man \ 84 fitscheck.man 85 fitscheck.man \ 86 smartfact.man 85 87 endif 86 88 … … 256 258 libConfiguration.la 257 259 260 smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc 261 smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \ 262 libStateMachine.la libTools.la libTime.la \ 263 libConfiguration.la 264 258 265 fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \ 259 266 src/EventBuilder.c src/EventBuilder.h \ -
trunk/FACT++/Makefile.in
r13481 r13776 50 50 drivectrl$(EXEEXT) mcp$(EXEEXT) feedback$(EXEEXT) \ 51 51 ratescan$(EXEEXT) ratecontrol$(EXEEXT) magicweather$(EXEEXT) \ 52 fitsdump$(EXEEXT) fitscheck$(EXEEXT) $(am__EXEEXT_1) \ 53 $(am__EXEEXT_2) $(am__EXEEXT_3) $(am__EXEEXT_4) 52 smartfact$(EXEEXT) fitsdump$(EXEEXT) fitscheck$(EXEEXT) \ 53 $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ 54 $(am__EXEEXT_4) 54 55 @HAS_GUI_TRUE@am__append_1 = fact 55 56 @HAS_VIEWER_TRUE@am__append_2 = viewer … … 348 349 scheduler_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 349 350 libDim++.la libDim.la libDimExtension.la libConfiguration.la 351 am_smartfact_OBJECTS = src/smartfact.$(OBJEXT) src/PixelMap.$(OBJEXT) 352 smartfact_OBJECTS = $(am_smartfact_OBJECTS) 353 smartfact_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 354 libStateMachine.la libTools.la libTime.la libConfiguration.la 350 355 am_test_OBJECTS = src/test.$(OBJEXT) 351 356 test_OBJECTS = $(am_test_OBJECTS) … … 441 446 $(magicweather_SOURCES) $(mcp_SOURCES) $(ratecontrol_SOURCES) \ 442 447 $(ratescan_SOURCES) $(readfits_SOURCES) sched.c \ 443 $(scheduler_SOURCES) $( test_SOURCES) $(time_SOURCES) \444 $(t riggerschedule_SOURCES) $(viewer_SOURCES)448 $(scheduler_SOURCES) $(smartfact_SOURCES) $(test_SOURCES) \ 449 $(time_SOURCES) $(triggerschedule_SOURCES) $(viewer_SOURCES) 445 450 DIST_SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \ 446 451 $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \ … … 458 463 $(logtime_SOURCES) $(magicweather_SOURCES) $(mcp_SOURCES) \ 459 464 $(ratecontrol_SOURCES) $(ratescan_SOURCES) $(readfits_SOURCES) \ 460 sched.c $(scheduler_SOURCES) $(test_SOURCES) $(time_SOURCES) \ 461 $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST) 465 sched.c $(scheduler_SOURCES) $(smartfact_SOURCES) \ 466 $(test_SOURCES) $(time_SOURCES) $(triggerschedule_SOURCES) \ 467 $(am__viewer_SOURCES_DIST) 462 468 man1dir = $(mandir)/man1 463 469 NROFF = nroff … … 716 722 @HAS_HELP2MAN_TRUE@ datalogger.man \ 717 723 @HAS_HELP2MAN_TRUE@ fitsdump.man \ 718 @HAS_HELP2MAN_TRUE@ fitscheck.man 724 @HAS_HELP2MAN_TRUE@ fitscheck.man \ 725 @HAS_HELP2MAN_TRUE@ smartfact.man 719 726 720 727 … … 863 870 magicweather_SOURCES = src/magicweather.cc src/LocalControl.h 864 871 magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \ 872 libStateMachine.la libTools.la libTime.la \ 873 libConfiguration.la 874 875 smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc 876 smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \ 865 877 libStateMachine.la libTools.la libTime.la \ 866 878 libConfiguration.la … … 1446 1458 @rm -f scheduler$(EXEEXT) 1447 1459 $(AM_V_CXXLD)$(CXXLINK) $(scheduler_OBJECTS) $(scheduler_LDADD) $(LIBS) 1460 src/smartfact.$(OBJEXT): src/$(am__dirstamp) \ 1461 src/$(DEPDIR)/$(am__dirstamp) 1462 smartfact$(EXEEXT): $(smartfact_OBJECTS) $(smartfact_DEPENDENCIES) 1463 @rm -f smartfact$(EXEEXT) 1464 $(AM_V_CXXLD)$(CXXLINK) $(smartfact_OBJECTS) $(smartfact_LDADD) $(LIBS) 1448 1465 src/test.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) 1449 1466 test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) … … 1648 1665 -rm -f src/readfits.$(OBJEXT) 1649 1666 -rm -f src/scheduler.$(OBJEXT) 1667 -rm -f src/smartfact.$(OBJEXT) 1650 1668 -rm -f src/test.$(OBJEXT) 1651 1669 -rm -f src/time.$(OBJEXT) … … 1772 1790 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/readfits.Po@am__quote@ 1773 1791 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/scheduler.Po@am__quote@ 1792 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/smartfact.Po@am__quote@ 1774 1793 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/test.Po@am__quote@ 1775 1794 @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/time.Po@am__quote@ -
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]) -
trunk/FACT++/configure.ac
r13031 r13776 147 147 AC_CHECK_PACKAGE(GL, glLoadIdentity, GL, GL/gl.h, HAVE_GL=yes, HAVE_GL=no) 148 148 AC_CHECK_PACKAGE(GLU, gluNewTess, GLU, GL/glu.h, HAVE_GLU=yes, HAVE_GLU=no) 149 150 # Check for libnova 151 AC_CHECK_PACKAGE(nova, ln_get_julian_from_sys, nova, libnova/julian_day.h, HAVE_NOVA=yes, HAVE_NOVA=no) 149 152 150 153 # Taken from http://code.google.com/p/autoconf-gl-macros/ … … 370 373 AM_CONDITIONAL(HAS_QGL, [test "$HAVE_QGL" = yes]) 371 374 AM_CONDITIONAL(HAS_QWT, [test "$HAVE_QWT" = yes]) 375 AM_CONDITIONAL(HAS_NOVA, [test "$HAVE_NOVA" = yes]) 372 376 373 377 AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ]) … … 380 384 AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], ) 381 385 AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], ) 386 AM_COND_IF(HAS_NOVA, [AC_DEFINE(HAVE_NOVA)], ) 382 387 383 388 #AM_COND_IF(HAS_FITS_H, [ … … 438 443 AC_MSG_NOTICE() 439 444 AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB]) 445 AC_MSG_NOTICE([ nova / libnova.so found: $HAVE_NOVA]) 440 446 #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h found: $HAVE_IZSTREAM_H]) 441 447 #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h found: $HAVE_FITS_H])
Note:
See TracChangeset
for help on using the changeset viewer.