From 08848e68a8635650239fa4b8968133bd62ff23c7 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Wed, 10 Aug 2016 10:28:31 +0200 Subject: [PATCH] drop NeXus support for Version < 4.4 --- ChangeLog | 1 + configure.ac | 31 ++++++++++++++----------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2225cab9..e663f4c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ NEW 2016-04-28 msr2data gets a new option: paramList which allows to of msr-files. NEW 2016-04-22 Added the theory function muMinusExpTF for mu minus fits NEW 2016-02-23 It is now possible to export the averaged data/Fourier +CHANGED 2016-08-10 drop NeXus support for Version < 4.4 CHANGED 2016-04-26 start-/endTimeBin are now class members. This reduces the number of recalculations. FIXED 2016-08-02 run lists are now properly loaded if containing nS-nE elements. diff --git a/configure.ac b/configure.ac index 86f073d6..9fcdefdb 100644 --- a/configure.ac +++ b/configure.ac @@ -554,34 +554,31 @@ AC_ARG_ENABLE([NeXus], [AS_HELP_STRING([--enable-NeXus],[build optional NeXus su [AS_HELP_STRING([--with-nexus],[prefix of the NeXus installation, e.g. /usr/local])], [NEXUS_PREFIX=$with_nexus AC_MSG_CHECKING([whether NeXus can be found at the specified location]) - if !(test -r ${NEXUS_PREFIX}/include/napi.h); then + if !(test -r ${NEXUS_PREFIX}/include/nexus/napi.h); then AC_MSG_RESULT([no]) AC_MSG_ERROR([NeXus cannot be found at the specified path!]) fi AC_MSG_RESULT([${NEXUS_PREFIX}])], - [PKG_CHECK_MODULES(NEXUS, nexus >= 4.1, [NEXUS_FOUND=1], + [PKG_CHECK_MODULES(NEXUS, nexus >= 4.4, [NEXUS_FOUND=1], [AC_MSG_CHECKING([whether NeXus is installed in a standard location]) - if test -r /usr/local/include/napi.h; then - NEXUS_PREFIX="/usr/local" - AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /usr/local/nexus/include/napi.h; then - NEXUS_PREFIX="/usr/local/nexus" + if test -r /usr/local/include/nexus/napi.h; then + NEXUS_PREFIX="/usr/local" AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /usr/include/napi.h; then - NEXUS_PREFIX="/usr" - AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /sw/include/napi.h; then + elif test -r /sw/include/nexus/napi.h; then NEXUS_PREFIX="/sw" AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /opt/local/include/napi.h; then + elif test -r /opt/local/include/nexus/napi.h; then NEXUS_PREFIX="/opt/local" AC_MSG_RESULT([${NEXUS_PREFIX}]) - else + elif test -r /opt/nexus/include/nexus/napi.h; then + NEXUS_PREFIX="/opt/nexus" + AC_MSG_RESULT([${NEXUS_PREFIX}]) + else AC_MSG_RESULT([no]) AC_MSG_ERROR( - [NeXus not found. Please call configure with the --with-nexus option. + [NeXus Version >= 4.4 not found. Please call configure with the --with-nexus option. This tells configure where to find the NeXus headers, - e.g. --with-nexus=/usr/local/nexus] + e.g. --with-nexus=/opt/nexus] ) fi ] @@ -589,8 +586,8 @@ AC_ARG_ENABLE([NeXus], [AS_HELP_STRING([--enable-NeXus],[build optional NeXus su ) AC_SUBST(NEXUS_PREFIX) if test "${NEXUS_FOUND}" != "1"; then - NEXUS_LIBS="-L${NEXUS_PREFIX}/lib -lNeXus" - NEXUS_CFLAGS="-I${NEXUS_PREFIX}/include" + NEXUS_LIBS="-L${NEXUS_PREFIX}/lib64 -lNeXus" + NEXUS_CFLAGS="-I${NEXUS_PREFIX}/include/nexus" fi AC_SUBST(NEXUS_LIBS) AC_SUBST(NEXUS_CFLAGS)