diff --git a/AUTHORS b/AUTHORS index 94cee900..9597edf6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,8 +9,6 @@ Andreas Suter Bastian M. Wojek msr2data; initial testing; full initial documentation; BMWlibs; - unified building process on Linux, MacOSX and Windows (Cygwin) - through autotools #--------------------------------------------------------------------- # this is the end ... diff --git a/CMakeLists.txt b/CMakeLists.txt index f6b17c1a..55df6f7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # - musrfit cmake_minimum_required(VERSION 3.6) -project(musrfit VERSION 1.4.1 LANGUAGES C CXX) +project(musrfit VERSION 1.4.2 LANGUAGES C CXX) #--- musrfit specific options ------------------------------------------------- option(nexus "build optional NeXus support. Needed for ISIS" OFF) diff --git a/ChangeLog b/ChangeLog index a9e9a442..aff89d1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,12 @@ or https://bitbucket.org/muonspin/musrfit/commits/all +Release of V1.4.2, 2019/03/08 +============================= + +The tool chain support for automake is removed. Only the cmake tool chain is +supported from now one. + Release of V1.2.0, 2017/10/26 ============================= diff --git a/INSTALL b/INSTALL index 2a96191f..dc1708c0 100644 --- a/INSTALL +++ b/INSTALL @@ -2,43 +2,9 @@ # INSTALL #--------------------------------------------------------------------- -There are currently 2 wasy to build musrfit: - -1) via the automake tool chain (this will phase out until 2019) -2) via the cmake tool chain (this will be the default starting from now) - In the following it is assumed that the system variable ROOTSYS is already defined and pointing to the place where CERN/ROOT is installed. -#---------------------------------- -# Install via automake tool chain -#---------------------------------- - -To get it build: - - sh autogen.sh - ./configure --prefix=$ROOTSYS (or where ever musrfit should be installed) - make - make install (as superuser -- maybe) - /sbin/ldconfig (as superuser) - -configure comes with a couple of options. For details either execute - - ./configure --help - -or check under http://lmu.web.psi.ch/musrfit/user/MUSR/MusrFitSetup.html -for a more detailed description. - -An example with NeXus support and BMWlibs needed would look like this - - sh autogen.sh - ./configure --enable-NeXus --enable-BMWlibs --prefix=$ROOTSYS - make - make install (as superuser -- maybe) - /sbin/ldconfig (as superuser) - -In the optimal case, everything is set up ;-) - #---------------------------------- # Install via cmake tool chain #---------------------------------- diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 77cbf95e..00000000 --- a/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -## Process this file with automake to create Makefile.in - -SUBDIRS = src - -EXTRA_DIST = autogen.sh acinclude.m4 - -# The following is to install the documentation -# It is a bit lengthy because one cannot simply install whole directories (except copying them recursively -- which also takes the .svn directories...) -DOCDIRS = examples \ - examples/data \ - examples/ASlibs \ - examples/ASlibs/data \ - examples/ASlibs/profiles \ - examples/BMWlibs \ - examples/BMWlibs/data \ - examples/BMWlibs/profiles \ - html/ \ - html/_downloads \ - html/_images \ - html/_sources \ - html/_static - #html/technical - -install-data-hook: - @$(NORMAL_INSTALL) - for DIR in $(DOCDIRS); do $(MKDIR_P) $(DOCDIR)/$$DIR; $(INSTALL_DATA) doc/$$DIR/*.* $(DOCDIR)/$$DIR; done - $(MKDIR_P) $(DOCDIR)/latex_images - $(INSTALL_DATA) src/musredit/latex_images/*.png $(DOCDIR)/latex_images - -uninstall-hook: - @$(NORMAL_UNINSTALL) - rm -rf $(DOCDIR) diff --git a/acinclude.m4 b/acinclude.m4 deleted file mode 100644 index 7d1ff84c..00000000 --- a/acinclude.m4 +++ /dev/null @@ -1,128 +0,0 @@ -dnl -*- mode: autoconf -*- -dnl -dnl $Id: root.m4,v 1.3 2005/03/21 21:42:21 rdm Exp $ -dnl $Author: rdm $ -dnl $Date: 2005/03/21 21:42:21 $ -dnl -dnl Autoconf macro to check for existence or ROOT on the system -dnl Synopsis: -dnl -dnl ROOT_PATH([MINIMUM-VERSION, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]]) -dnl -dnl Some examples: -dnl -dnl ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old)) -dnl ROOT_PATH(, AC_DEFINE([HAVE_ROOT])) -dnl -dnl The macro defines the following substitution variables -dnl -dnl ROOTCONF full path to root-config -dnl ROOTEXEC full path to root -dnl ROOTCLING full path to rootcling -dnl ROOTLIBDIR Where the ROOT libraries are -dnl ROOTINCDIR Where the ROOT headers are -dnl ROOTETCDIR Where the ROOT configuration is -dnl ROOTCFLAGS Extra compiler flags -dnl ROOTLIBS ROOT basic libraries -dnl ROOTGLIBS ROOT basic + GUI libraries -dnl ROOTAUXLIBS Auxilary libraries and linker flags for ROOT -dnl ROOTAUXCFLAGS Auxilary compiler flags -dnl ROOTRPATH Same as ROOTLIBDIR -dnl -dnl The macro will fail if root-config and rootcling isn't found. -dnl -dnl Christian Holm Christensen -dnl -AC_DEFUN([ROOT_PATH], -[ - AC_ARG_WITH([rootsys], - [AC_HELP_STRING([--with-rootsys], - [top of the ROOT installation directory])], - [user_rootsys=$withval], - [user_rootsys="none"]) - if test ! x"$user_rootsys" = xnone; then - rootbin="$user_rootsys/bin" - elif test ! x"$ROOTSYS" = x ; then - rootbin="$ROOTSYS/bin" - else - rootbin=$PATH - fi - AC_PATH_PROG(ROOTCONF, root-config , no, $rootbin) - AC_PATH_PROG(ROOTEXEC, root , no, $rootbin) - AC_PATH_PROG(ROOTCLING, rootcling , no, $rootbin) - - if test ! x"$ROOTCONF" = "xno" && \ - test ! x"$ROOTCLING" = "xno" ; then - - # define some variables - ROOTLIBDIR=`$ROOTCONF --libdir` - ROOTINCDIR=`$ROOTCONF --incdir` - ROOTETCDIR=`$ROOTCONF --etcdir` - ROOTCFLAGS=`$ROOTCONF --noauxcflags --cflags` - ROOTLIBS=`$ROOTCONF --noauxlibs --noldflags --libs` - ROOTGLIBS=`$ROOTCONF --noauxlibs --noldflags --glibs` - ROOTAUXCFLAGS=`$ROOTCONF --auxcflags` - ROOTAUXLIBS=`$ROOTCONF --auxlibs` - ROOTRPATH=$ROOTLIBDIR - ROOTVERSION=`$ROOTCONF --version` - ROOTSOVERSION=`dirname $ROOTVERSION` - - if test $1 ; then - AC_MSG_CHECKING(whether ROOT version >= [$1]) - vers=`$ROOTCONF --version | tr './' ' ' | awk 'BEGIN { FS = " "; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'` - requ=`echo $1 | tr './' ' ' | awk 'BEGIN { FS = " "; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + $''3;}'` - if test $vers -lt $requ ; then - AC_MSG_RESULT(no) - no_root="yes" - else - AC_MSG_RESULT(yes) - fi - fi - else - # otherwise, we say no_root - no_root="yes" - fi - - AC_SUBST(ROOTLIBDIR) - AC_SUBST(ROOTINCDIR) - AC_SUBST(ROOTETCDIR) - AC_SUBST(ROOTCFLAGS) - AC_SUBST(ROOTLIBS) - AC_SUBST(ROOTGLIBS) - AC_SUBST(ROOTAUXLIBS) - AC_SUBST(ROOTAUXCFLAGS) - AC_SUBST(ROOTRPATH) - AC_SUBST(ROOTVERSION) - AC_SUBST(ROOTSOVERSION) - - if test "x$no_root" = "x" ; then - ifelse([$2], , :, [$2]) - else - ifelse([$3], , :, [$3]) - fi -]) - -# -# Macro to check if ROOT has a specific feature: -# -# ROOT_FEATURE(FEATURE,[ACTION_IF_HAVE,[ACTION_IF_NOT]]) -# -# For example -# -# ROOT_FEATURE([ldap],[AC_DEFINE([HAVE_ROOT_LDAP])]) -# -AC_DEFUN([ROOT_FEATURE], -[ - AC_REQUIRE([ROOT_PATH]) - feat=$1 - res=`$ROOTCONF --has-$feat` - if test "x$res" = "xyes" ; then - ifelse([$2], , :, [$2]) - else - ifelse([$3], , :, [$3]) - fi -]) - -# -# EOF -# diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 74550064..00000000 --- a/autogen.sh +++ /dev/null @@ -1,101 +0,0 @@ -#! /bin/sh - -# autogen.sh -# -# Copyright (c) 2009 BMW -# Copyright (c) 2002 Daniel Elstner -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License VERSION 2 as -# published by the Free Software Foundation. You are not allowed to -# use any other version of the license; unless you got the explicit -# permission from the author to do so. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -PATHTOAUTOCONF=$(which autoconf) -PATHTOAUTOMAKE=$(which automake) -PATHTOLIBTOOL=$(which libtoolize) -PATHTOGLIBTOOL= -if [ "$PATHTOLIBTOOL" = "" ]; then - PATHTOGLIBTOOL=$(which glibtoolize) -fi - -if [ "$PATHTOAUTOCONF" = "" ]; then - echo - echo ">> GNU autoconf has not been found!" - echo ">> Please install it first and then re-run the script!" - echo - exit 1 -elif [ "$PATHTOAUTOMAKE" = "" ]; then - echo - echo ">> GNU automake has not been found!" - echo ">> Please install it first and then re-run the script!" - echo - exit 1 -elif [ "$PATHTOLIBTOOL" = "" ] && [ "$PATHTOGLIBTOOL" = "" ]; then - echo - echo ">> GNU libtool has not been found!" - echo ">> Please install it first and then re-run the script!" - echo - exit 1 -fi - -if [ "$PATHTOLIBTOOL" = "" ]; then - LIBTOOLIZE="glibtoolize" -else - LIBTOOLIZE="libtoolize" -fi - -dir=`echo "$0" | sed 's,[^/]*$,,'` -test "x${dir}" = "x" && dir='.' - -if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`" -then - echo "This script must be executed directly from the source directory!" - exit 1 -fi - -if !(test -d admin); then - mkdir admin -fi - -rm -f config.cache - -if test -e admin/depcomp && \ - test -e admin/install-sh && \ - test -e admin/ltmain.sh && \ - test -e admin/missing && \ - test -e aclocal.m4 -then - echo ">> autoreconf" && \ - autoreconf && exit 0 -else - echo "" && \ - echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" && \ - echo "+ This script prepares the building environment for the configuration of +" && \ - echo "+ musrfit. During this process some informative messages might appear which +" && \ - echo "+ can safely be ignored as long as they are not tagged as errors. +" && \ - echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" && \ - echo "" && \ - echo ">> libtoolize" && \ - $LIBTOOLIZE --force && \ - echo ">> aclocal" && \ - aclocal && \ - echo ">> autoconf" && \ - autoconf && \ - echo ">> autoheader" && \ - autoheader && \ - echo ">> automake" && \ - automake --add-missing --gnu && exit 0 -fi - -exit 1 - diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 9efd1188..00000000 --- a/configure.ac +++ /dev/null @@ -1,1475 +0,0 @@ -AC_REVISION([m4_esyscmd_s([git describe --always])]) - -AC_PREREQ(2.63) -AC_INIT([musrfit],[1.4.0],[andreas.suter@psi.ch]) -AC_CONFIG_AUX_DIR(admin) -AC_CANONICAL_HOST -#AC_MSG_RESULT([${host} ${host_cpu} ${host_vendor} ${host_os}]) - -dnl ----------------------------------------------- -dnl Check if pkg-config is installed -dnl ----------------------------------------------- - -#PKG_PROG_PKG_CONFIG([0.9]) -#The above macro does not work if pkg-config is not installed, therefore, for the moment we stay with the solution below: -m4_ifdef([PKG_CHECK_MODULES],[],AC_MSG_ERROR([Please install pkg-config before configuring musrfit!])) - -dnl ----------------------------------------------- -dnl Package names and version numbers -dnl ----------------------------------------------- - -MUSR_PROGRAM_NAME=musrfit -MUSR_LIBRARY_NAME=PMusr -USERFCN_LIBRARY_NAME=PUserFcnBase -MUSR_ROOT_LIBRARY_NAME=TMusrRunHeader -LEM_LIBRARY_NAME=TLemRunHeader -PSIBIN_LIBRARY_NAME=Class_MuSR_PSI -MUD_LIBRARY_NAME=mud -PNEXUS_LIBRARY_NAME=PNeXus -CUBA_LIBRARY_NAME=cuba - -dnl ----------------------------------------------- -dnl Optional plug-ins -dnl ----------------------------------------------- - - -#release versioning -MUSR_MAJOR_VERSION=1 -MUSR_MINOR_VERSION=4 -MUSR_MICRO_VERSION=0 - -#release versioning -MUSR_ROOT_MAJOR_VERSION=1 -MUSR_ROOT_MINOR_VERSION=0 -MUSR_ROOT_MICRO_VERSION=0 - -#release versioning -LEM_MAJOR_VERSION=1 -LEM_MINOR_VERSION=5 -LEM_MICRO_VERSION=0 - -#release versioning -PSIBIN_MAJOR_VERSION=0 -PSIBIN_MINOR_VERSION=1 -PSIBIN_MICRO_VERSION=0 - -#release versioning -MUD_MAJOR_VERSION=1 -MUD_MINOR_VERSION=0 -MUD_MICRO_VERSION=0 - -#release versioning -PNEXUS_MAJOR_VERSION=0 -PNEXUS_MINOR_VERSION=9 -PNEXUS_MICRO_VERSION=0 - -#release versioning -PLUGIN_MAJOR_VERSION=1 -PLUGIN_MINOR_VERSION=0 -PLUGIN_MICRO_VERSION=0 - -#release versioning -CUBA_MAJOR_VERSION=4 -CUBA_MINOR_VERSION=2 -CUBA_MICRO_VERSION=0 - -#API version -MUSR_API_VERSION=$MUSR_MAJOR_VERSION.$MUSR_MINOR_VERSION -AC_SUBST(MUSR_API_VERSION) - -MUSR_ROOT_API_VERSION=$MUSR_ROOT_MAJOR_VERSION.$MUSR_ROOT_MINOR_VERSION -AC_SUBST(MUSR_ROOT_API_VERSION) - -LEM_API_VERSION=$LEM_MAJOR_VERSION.$LEM_MINOR_VERSION -AC_SUBST(LEM_API_VERSION) - -PSIBIN_API_VERSION=$PSIBIN_MAJOR_VERSION.$PSIBIN_MINOR_VERSION -AC_SUBST(PSIBIN_API_VERSION) - -MUD_API_VERSION=$MUD_MAJOR_VERSION.$MUD_MINOR_VERSION -AC_SUBST(MUD_API_VERSION) - -PNEXUS_API_VERSION=$PNEXUS_MAJOR_VERSION.$PNEXUS_MINOR_VERSION -AC_SUBST(PNEXUS_API_VERSION) - -PLUGIN_API_VERSION=$PLUGIN_MAJOR_VERSION.$PLUGIN_MINOR_VERSION -AC_SUBST(PLUGIN_API_VERSION) - -CUBA_API_VERSION=$CUBA_MAJOR_VERSION.$CUBA_MINOR_VERSION -AC_SUBST(CUBA_API_VERSION) - -#shared library versioning -CUBA_LIBRARY_VERSION=$CUBA_MAJOR_VERSION:$CUBA_MINOR_VERSION:$CUBA_MICRO_VERSION -PLUGIN_LIBRARY_VERSION=$PLUGIN_MAJOR_VERSION:$PLUGIN_MINOR_VERSION:$PLUGIN_MICRO_VERSION -MUSR_ROOT_LIBRARY_VERSION=$MUSR_ROOT_MAJOR_VERSION:$MUSR_ROOT_MINOR_VERSION:$MUSR_ROOT_MICRO_VERSION -LEM_LIBRARY_VERSION=$LEM_MAJOR_VERSION:$LEM_MINOR_VERSION:$LEM_MICRO_VERSION -PSIBIN_LIBRARY_VERSION=$PSIBIN_MAJOR_VERSION:$PSIBIN_MINOR_VERSION:$PSIBIN_MICRO_VERSION -MUD_LIBRARY_VERSION=$MUD_MAJOR_VERSION:$MUD_MINOR_VERSION:$MUD_MICRO_VERSION -PNEXUS_LIBRARY_VERSION=$PNEXUS_MAJOR_VERSION:$PNEXUS_MINOR_VERSION:$PNEXUS_MICRO_VERSION -MUSR_LIBRARY_VERSION=$MUSR_MAJOR_VERSION:$MUSR_MINOR_VERSION:$MUSR_MICRO_VERSION - -# This is definitely handled wrongly at the moment and needs to be fixed... -#XXX_LIBRARY_VERSION=X:Y:Z -# | | | -# +------+ | +---+ -# | | | -# current:revision:age -# | | | -# | | +- increment if interfaces have been added -# | | set to zero if interfaces have been removed -# or changed -# | +- increment if source code has changed -# | set to zero if current is incremented -# +- increment if interfaces have been added, removed or changed - -AC_SUBST(MUSR_LIBRARY_VERSION) -AC_SUBST(MUSR_ROOT_LIBRARY_VERSION) -AC_SUBST(LEM_LIBRARY_VERSION) -AC_SUBST(PSIBIN_LIBRARY_VERSION) -AC_SUBST(MUD_LIBRARY_VERSION) -AC_SUBST(PNEXUS_LIBRARY_VERSION) -AC_SUBST(PLUGIN_LIBRARY_VERSION) -AC_SUBST(CUBA_LIBRARY_VERSION) - -PACKAGE=$MUSR_PROGRAM_NAME -AC_SUBST(MUSR_LIBRARY_NAME) -AC_SUBST(USERFCN_LIBRARY_NAME) -AC_SUBST(MUSR_ROOT_LIBRARY_NAME) -AC_SUBST(LEM_LIBRARY_NAME) -AC_SUBST(PSIBIN_LIBRARY_NAME) -AC_SUBST(MUD_LIBRARY_NAME) -AC_SUBST(PNEXUS_LIBRARY_NAME) -AC_SUBST(CUBA_LIBRARY_NAME) - -PSIBIN_VERSION=$PSIBIN_MAJOR_VERSION.$PSIBIN_MINOR_VERSION.$PSIBIN_MICRO_VERSION -PSIBIN_RELEASE=$PSIBIN_MAJOR_VERSION.$PSIBIN_MINOR_VERSION -AC_SUBST(PSIBIN_RELEASE) -AC_SUBST(PSIBIN_VERSION) - -MUD_VERSION=$MUD_MAJOR_VERSION.$MUD_MINOR_VERSION.$MUD_MICRO_VERSION -MUD_RELEASE=$MUD_MAJOR_VERSION.$MUD_MINOR_VERSION -AC_SUBST(MUD_RELEASE) -AC_SUBST(MUD_VERSION) - -PNEXUS_VERSION=$PNEXUS_MAJOR_VERSION.$PNEXUS_MINOR_VERSION.$PNEXUS_MICRO_VERSION -PNEXUS_RELEASE=$PNEXUS_MAJOR_VERSION.$PNEXUS_MINOR_VERSION -AC_SUBST(PNEXUS_RELEASE) -AC_SUBST(PNEXUS_VERSION) - -LEM_VERSION=$LEM_MAJOR_VERSION.$LEM_MINOR_VERSION.$LEM_MICRO_VERSION -LEM_RELEASE=$LEM_MAJOR_VERSION.$LEM_MINOR_VERSION -AC_SUBST(LEM_RELEASE) -AC_SUBST(LEM_VERSION) - -MUSR_ROOT_VERSION=$MUSR_ROOT_MAJOR_VERSION.$MUSR_ROOT_MINOR_VERSION.$MUSR_ROOT_MICRO_VERSION -MUSR_ROOT_RELEASE=$MUSR_ROOT_MAJOR_VERSION.$MUSR_ROOT_MINOR_VERSION -AC_SUBST(MUSR_ROOT_RELEASE) -AC_SUBST(MUSR_ROOT_VERSION) - -MUSR_VERSION=$MUSR_MAJOR_VERSION.$MUSR_MINOR_VERSION.$MUSR_MICRO_VERSION -MUSR_RELEASE=$MUSR_MAJOR_VERSION.$MUSR_MINOR_VERSION -AC_SUBST(MUSR_RELEASE) -AC_SUBST(MUSR_VERSION) - -PLUGIN_VERSION=$PLUGIN_MAJOR_VERSION.$PLUGIN_MINOR_VERSION.$PLUGIN_MICRO_VERSION -PLUGIN_RELEASE=$PLUGIN_MAJOR_VERSION.$PLUGIN_MINOR_VERSION -AC_SUBST(PLUGIN_RELEASE) -AC_SUBST(PLUGIN_VERSION) -AC_SUBST(PLUGIN_MAJOR_VERSION) -AC_SUBST(PLUGIN_MINOR_VERSION) - -CUBA_VERSION=$CUBA_MAJOR_VERSION.$CUBA_MINOR_VERSION.$CUBA_MICRO_VERSION -CUBA_RELEASE=$CUBA_MAJOR_VERSION.$CUBA_MINOR_VERSION -AC_SUBST(CUBA_RELEASE) -AC_SUBST(CUBA_VERSION) - -VERSION=$MUSR_VERSION - -# Wordaround for gcc-bugs causing problems building libCuba -# which should be change when a real solution appears -# Set CFLAGS to "" and pass any user-CFLAGS to the mud-building -# user-CFLAGS will not be passed to the libCuba building process -# mud and cuba are currently the only C-routines -USER_CFLAGS="$CFLAGS" -CFLAGS= -if test "$USER_CFLAGS" = ""; then - USER_CFLAGS="-g -O2" -fi - -dnl ----------------------------------------------- -dnl Automake initialization and program checks -dnl ----------------------------------------------- - -AM_INIT_AUTOMAKE -# m4_ifdef([AM_SILENT_RULES], -# [AM_SILENT_RULES([yes])]) -AC_CONFIG_HEADER([config.h]) -AC_LANG([C++]) -AC_PROG_LN_S -AC_PROG_INSTALL - -m4_ifdef([AC_PROG_MKDIR_P], - [AC_PROG_MKDIR_P], - [MKDIR_P="mkdir -p" - AC_SUBST(MKDIR_P)]) - -m4_ifdef([LT_INIT], - [LT_INIT([disable-static]) - LT_LANG([C++]) - LT_LANG([C])], - [m4_defun([_LT_AC_LANG_F77_CONFIG], [:]) - AC_DISABLE_STATIC([]) - LT_INIT - AC_PROG_CXX - AC_PROG_CC]) - -dnl ----------------------------------------------- -dnl Ask user for path to fftw3 -dnl ----------------------------------------------- - -FFTW3_FOUND=0 -AC_ARG_WITH([fftw3], - [AS_HELP_STRING([--with-fftw3],[prefix of FFTW3 installation, e.g. /usr/local or /usr])], - [FFTW3_PREFIX=$with_fftw3 - AC_MSG_CHECKING([whether FFTW3 can be found at the specified location]) - if !(test -r ${FFTW3_PREFIX}/include/fftw3.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([FFTW3 cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${FFTW3_PREFIX}])], - [PKG_CHECK_MODULES(FFTW3, fftw3 >= 3.1.0, [FFTW3_FOUND=1], - [AC_MSG_CHECKING([whether FFTW3 is installed in a standard location]) - if test -r /usr/local/include/fftw3.h; then - FFTW3_PREFIX="/usr/local" - AC_MSG_RESULT([${FFTW3_PREFIX}]) - elif test -r /usr/include/fftw3.h; then - FFTW3_PREFIX="/usr" - AC_MSG_RESULT([${FFTW3_PREFIX}]) - elif test -r /sw/include/fftw3.h; then - FFTW3_PREFIX="/sw" - AC_MSG_RESULT([${FFTW3_PREFIX}]) - elif test -r /opt/local/include/fftw3.h; then - FFTW3_PREFIX="/opt/local" - AC_MSG_RESULT([${FFTW3_PREFIX}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [FFTW3 not found. Please call configure with the --with-fftw3 option. - This tells configure where to find the FFTW3 C libraries and headers, - e.g. --with-fftw3=/usr/local or --with-fftw3=/usr] - ) - fi - ] - ) - ] -) -AC_SUBST(FFTW3_PREFIX) -if test "${FFTW3_FOUND}" != "1"; then - FFTW3_LIBS="-L${FFTW3_PREFIX}/lib -lfftw3 -lm" - FFTW3_CFLAGS="-I${FFTW3_PREFIX}/include" -fi - -dnl ----------------------------------------------- -dnl Ask user for path to gsl -dnl ----------------------------------------------- - -GSL_FOUND=0 -AC_ARG_WITH([gsl], - [AS_HELP_STRING([--with-gsl],[prefix of GSL installation. e.g. /usr/local or /usr])], - [GSL_PREFIX=$with_gsl - AC_MSG_CHECKING([whether GSL can be found at the specified location]) - if !(test -r ${GSL_PREFIX}/include/gsl/gsl_sf_hyperg.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([GSL cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${GSL_PREFIX}])], - [PKG_CHECK_MODULES(GSL, gsl >= 1.9, [GSL_FOUND=1], - [AC_MSG_CHECKING([whether GSL is installed in a standard location]) - if test -r /usr/local/include/gsl/gsl_sf_hyperg.h; then - GSL_PREFIX="/usr/local" - AC_MSG_RESULT([${GSL_PREFIX}]) - elif test -r /usr/include/gsl/gsl_sf_hyperg.h; then - GSL_PREFIX="/usr" - AC_MSG_RESULT([${GSL_PREFIX}]) - elif test -r /sw/include/gsl/gsl_sf_hyperg.h; then - GSL_PREFIX="/sw" - AC_MSG_RESULT([${GSL_PREFIX}]) - elif test -r /opt/local/include/gsl/gsl_sf_hyperg.h; then - GSL_PREFIX="/opt/local" - AC_MSG_RESULT([${GSL_PREFIX}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [GSL not found. Please call configure with the --with-gsl option. - This tells configure where to find the GSL C libraries and headers, - e.g. --with-gsl=/usr/local or --with-gsl=/usr] - ) - fi - ] - ) - ] -) -AC_SUBST(GSL_PREFIX) -if test "${GSL_FOUND}" != "1"; then - GSL_LIBS="-L${GSL_PREFIX}/lib -lgsl -lgslcblas -lm" - GSL_CFLAGS="-I${GSL_PREFIX}/include/gsl" -fi -AC_SUBST(GSL_LIBS) -AC_SUBST(GSL_CFLAGS) - -dnl ----------------------------------------------- -dnl Ask user for path to boost -dnl ----------------------------------------------- - -BOOST_FOUND=0 -AC_ARG_WITH([boostinc], - [AS_HELP_STRING([--with-boostinc],[path to the header files of the BOOST installation, e.g. /usr/local/include or /usr/include])], - [BOOST_INCLUDE=$with_boostinc - AC_MSG_CHECKING([whether BOOST can be found at the specified location]) - if !(test -r ${BOOST_INCLUDE}/boost/spirit.hpp) && !(test -r ${BOOST_INCLUDE}/boost/spirit/include/classic_spirit.hpp); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([BOOST cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${BOOST_INCLUDE}])], - [PKG_CHECK_MODULES(BOOST, boost >= 1.30, [BOOST_FOUND=1], - [AC_MSG_CHECKING([whether BOOST is installed in a standard location]) - if test -r /usr/local/include/boost/spirit.hpp || test -r /usr/local/include/boost/spirit/include/classic_spirit.hpp; then - BOOST_INCLUDE="/usr/local/include" - AC_MSG_RESULT([${BOOST_INCLUDE}]) - elif test -r /usr/include/boost/spirit.hpp || test -r /usr/include/boost/spirit/include/classic_spirit.hpp; then - BOOST_INCLUDE="/usr/include" - AC_MSG_RESULT([${BOOST_INCLUDE}]) - elif test -r /sw/include/boost/spirit.hpp || test -r /sw/include/boost/spirit/include/classic_spirit.hpp; then - BOOST_INCLUDE="/sw/include" - AC_MSG_RESULT([${BOOST_INCLUDE}]) - elif test -r /opt/local/include/boost/spirit.hpp || test -r /opt/local/include/boost/spirit/include/classic_spirit.hpp; then - BOOST_INCLUDE="/opt/local/include" - AC_MSG_RESULT([${BOOST_INCLUDE}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [BOOST not found. Please call configure with the --with-boostinc option. - This tells configure where to find the BOOST C++ headers, - e.g. --with-boostinc=/usr/local/include or --with-boostinc=/usr/include or --with-boostinc=/usr/include/boost-1_33_0] - ) - fi - ] - ) - ] -) -AC_SUBST(BOOST_INCLUDE) -if test "${BOOST_FOUND}" != "1"; then - BOOST_LIBS="" - BOOST_CFLAGS="-I${BOOST_INCLUDE}" -fi -AC_SUBST(BOOST_LIBS) -AC_SUBST(BOOST_CFLAGS) - - -dnl ----------------------------------------------- -dnl Ask user for path to libxml2 -dnl ----------------------------------------------- -LIBXML2_FOUND=0 -AC_ARG_WITH([libxml2], - [AS_HELP_STRING([--with-libxml2],[prefix of the libxml2 installation, e.g. /usr/local/include])], - [LIBXML2_PREFIX=$with_libxml2 - AC_MSG_CHECKING([whether libxml2 can be found at the specified location]) - if !(test -r ${LIBXML2_PREFIX}/libxml2/libxml/xmlreader.h) && !(test -r ${LIBXML2_PREFIX}/libxml2/libxml/parser.h) && !(test -r ${LIBXML2_PREFIX}/libxml2/libxml/xmlschemas.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([libxml2 cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${LIBXML2_PREFIX}])], - [PKG_CHECK_MODULES(LIBXML2, libxml2 >= 2.6.26, [LIBXML2_FOUND=1], - [AC_MSG_CHECKING([whether libxml2 is installed in a standard location]) - if test -r /usr/local/include/libxml2/libxml/xmlreader.h || test -r /usr/local/include/libxml2/libxml/parser.h || \ - test -r /usr/local/include/libxml2/libxml/xmlschemas.h; then - LIBXML2_PREFIX="/usr/local/include" - AC_MSG_RESULT([${LIBXML2_PREFIX}]) - elif test -r /usr/include/libxml2/libxml/xmlreader.h || test -r /usr/include/libxml2/libxml/parser.h || \ - test -r /usr/include/libxml2/libxml/xmlschemas.h; then - LIBXML2_PREFIX="/usr/include" - AC_MSG_RESULT([${LIBXML2_PREFIX}]) - elif test -r /sw/include/libxml2/libxml/xmlreader.h || test -r /sw/include/libxml2/libxml/parser.h || \ - test -r /sw/include/libxml2/libxml/xmlschemas.h; then - LIBXML2_PREFIX="/sw/include" - AC_MSG_RESULT([${LIBXML2_PREFIX}]) - elif test -r /opt/local/include/libxml2/libxml/xmlreader.h || test -r /opt/local/include/libxml2/libxml/parser.h || \ - test -r /opt/local/include/libxml2/libxml/xmlschemas.h; then - LIBXML2_PREFIX="/opt/local/include" - AC_MSG_RESULT([${LIBXML2_PREFIX}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [libxml2 not found. Please call configure with the --with-libxml2 option. - This tells configure where to find the libxml2 headers, - e.g. --with-libxml2=/usr/local/include or --with-libxml2=/usr/include/libxml2] - ) - fi - ] - ) - ] -) -AC_SUBST(LIBXML2_PREFIX) -if test "${LIBXML2_FOUND}" != "1"; then - LIBXML2_LIBS="-L${LIBXML2_PREFIX}/lib -lxml2" - LIBXML2_CFLAGS="-I${LIBXML2_PREFIX}/libxml2" -fi -AC_SUBST(LIBXML2_LIBS) -AC_SUBST(LIBXML2_CFLAGS) - -dnl ----------------------------------------------- -dnl Check for ROOT -dnl ----------------------------------------------- - -ROOT_PATH([6.06/00], [], AC_MSG_ERROR([Either ROOT is not installed correctly or the version is too old... please check!])) - -ROOT_LIBS="-L${ROOTLIBDIR} ${ROOTGLIBS} ${ROOTAUXLIBS} -lMinuit2 -lMathMore -lXMLParser" -ROOT_CFLAGS="-I${ROOTINCDIR} ${ROOTCFLAGS} ${ROOTAUXCFLAGS}" - -# Check if Minuit2 has been enabled during the ROOT configuration - -AC_MSG_CHECKING([for Minuit2 in ROOT]) -if test "x$(${ROOTCONF} --has-minuit2)" = "xyes"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([Minuit2 is not included in the ROOT installation... Please configure ROOT with the --enable-minuit2 option!]) -fi - -AC_MSG_CHECKING([for MathMore in ROOT]) -if test "x$(${ROOTCONF} --has-mathmore)" = "xyes"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([MathMore is not included in the ROOT installation... Please configure ROOT with the --enable-mathmore option and check that the feature is actually built!]) -fi - -AC_MSG_CHECKING([for XML support in ROOT]) -if test "x$(${ROOTCONF} --has-xml)" = "xyes"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([XML support is not included in the ROOT installation... Please configure ROOT with the --enable-xml option and check that the feature is actually built!]) -fi - -AC_MSG_CHECKING([for image processing support in ROOT]) -if test "x$(${ROOTCONF} --has-asimage)" = "xyes"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([image processing support is not included in the ROOT installation... Please configure ROOT with the --enable-asimage option and check that the feature is actually built!]) -fi - -AC_SUBST(ROOT_LIBS) -AC_SUBST(ROOT_CFLAGS) - -dnl ----------------------------------------------- -dnl Check for NeXus, HDF5, etc. -dnl ----------------------------------------------- -AC_ARG_ENABLE([NeXus], [AS_HELP_STRING([--enable-NeXus],[build optional NeXus support [default=no]])], - [ - # checking for hdf4 - AC_ARG_WITH([hdf4], - [AS_HELP_STRING([--with-hdf4],[prefix of the HDF4 installation (needed for NeXus), e.g. /usr/local/hdf4 or /opt/hdf4])], - [HDF4_PREFIX=$with_hdf4 - AC_MSG_CHECKING([whether HDF4 can be found at the specified location]) - if !(test -r ${HDF4_PREFIX}/include/hdf.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([HDF4 cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${HDF4_PREFIX}])], - [AC_MSG_CHECKING([whether HDF4 is installed in a standard location]) - if test -r /usr/local/include/hdf.h; then - HDF4_PREFIX="/usr/local" - AC_MSG_RESULT([${HDF4_PREFIX}]) - elif test -r /usr/local/hdf/include/hdf.h; then - HDF4_PREFIX="/usr/local/hdf" - AC_MSG_RESULT([${HDF4_PREFIX}]) - elif test -r /usr/include/hdf.h; then - HDF4_PREFIX="/usr" - AC_MSG_RESULT([${HDF4_PREFIX}]) - elif test -r /usr/include/hdf/hdf.h; then - HDF4_PREFIX="/usr/include/" - AC_MSG_RESULT([${HDF4_PREFIX}]) - elif test -r /sw/include/hdf.h; then - HDF4_PREFIX="/sw" - AC_MSG_RESULT([${HDF4_PREFIX}]) - elif test -r /opt/local/include/hdf.h; then - HDF4_PREFIX="/opt/local" - AC_MSG_RESULT([${HDF4_PREFIX}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [HDF4 not found (needed for NeXus). Please call configure with the --with-hdf4 option. - This tells configure where to find the HDF4 C++ headers, - e.g. --with-hdf4=/usr/local/hdf] - ) - fi - ] - ) - - # checking for hdf5 - AC_ARG_WITH([hdf5], - [AS_HELP_STRING([--with-hdf5],[prefix of the HDF5 installation (needed for NeXus), e.g. /usr/local/hdf5 or /opt/hdf5])], - [HDF5_PREFIX=$with_hdf5 - AC_MSG_CHECKING([whether HDF5 can be found at the specified location]) - if !(test -r ${HDF5_PREFIX}/include/hdf5.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([HDF5 cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${HDF5_PREFIX}])], - [AC_MSG_CHECKING([whether HDF5 is installed in a standard location]) - if test -r /usr/local/include/hdf5.h; then - HDF5_PREFIX="/usr/local" - AC_MSG_RESULT([${HDF5_PREFIX}]) - elif test -r /usr/local/hdf5/include/hdf5.h; then - HDF5_PREFIX="/usr/local/hdf5" - AC_MSG_RESULT([${HDF5_PREFIX}]) - elif test -r /usr/include/hdf5/serial/hdf5.h; then - HDF5_PREFIX="/usr/include/hdf5/serial" - AC_MSG_RESULT([${HDF5_PREFIX}]) - elif test -r /usr/include/hdf5.h; then - HDF5_PREFIX="/usr" - AC_MSG_RESULT([${HDF5_PREFIX}]) - elif test -r /sw/include/hdf5.h; then - HDF5_PREFIX="/sw" - AC_MSG_RESULT([${HDF5_PREFIX}]) - elif test -r /opt/local/include/hdf5.h; then - HDF5_PREFIX="/opt/local" - AC_MSG_RESULT([${HDF5_PREFIX}]) - else - AC_MSG_RESULT([no]) - AC_MSG_ERROR( - [HDF5 not found (needed for NeXus). Please call configure with the --with-hdf5 option. - This tells configure where to find the HDF5 C++ headers, - e.g. --with-hdf5=/usr/local/hdf5] - ) - fi - ] - ) - - # checking for NeXus - NEXUS_FOUND=0 - AC_ARG_WITH([nexus], - [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/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.4, [NEXUS_FOUND=1], - [AC_MSG_CHECKING([whether NeXus is installed in a standard location]) - if test -r /usr/local/include/nexus/napi.h; then - NEXUS_PREFIX="/usr/local" - AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /sw/include/nexus/napi.h; then - NEXUS_PREFIX="/sw" - AC_MSG_RESULT([${NEXUS_PREFIX}]) - elif test -r /opt/local/include/nexus/napi.h; then - NEXUS_PREFIX="/opt/local" - AC_MSG_RESULT([${NEXUS_PREFIX}]) - 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 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=/opt/nexus] - ) - fi - ] - )] - ) - AC_SUBST(NEXUS_PREFIX) - if test "${NEXUS_FOUND}" != "1"; then - dnl get suffix for the NeXus library depending on the OS - AC_REQUIRE([AC_CANONICAL_HOST]) - AS_CASE([$host_os], - [linux*], [NEXUS_SUFFIX="so"], - [darwin*], [NEXUS_SUFFIX="dylib"], - [*cygwin*], [NEXUS_SUFFIX="dll"], - [AC_MSG_ERROR([NeXus check: Your platform is not currently supported])] - ) - AC_MSG_NOTICE([NeXus Suffix Result: "${NEXUS_SUFFIX}"]) - if test -r ${NEXUS_PREFIX}/lib/libNeXus.${NEXUS_SUFFIX}; then - NEXUS_LIB_DIR="lib" - elif test -r ${NEXUS_PREFIX}/lib64/libNeXus.${NEXUS_SUFFIX}; then - NEXUS_LIB_DIR="lib64" - else - AC_MSG_ERROR( - [Couldn't find the NeXus library.] - ) - fi - - NEXUS_LIBS="-L${NEXUS_PREFIX}/${NEXUS_LIB_DIR} -lNeXus" - NEXUS_CFLAGS="-I${NEXUS_PREFIX}/include/nexus" - fi - AC_SUBST(NEXUS_LIBS) - AC_SUBST(NEXUS_CFLAGS) - - PNEXUS_ENABLED=1 - ], - [PNEXUS_ENABLED=0] -) - -dnl ----------------------------------------------- -dnl Ask user if BMWlibs should be built and where to find the CUBA installation -dnl ----------------------------------------------- - -AC_ARG_ENABLE([BMWlibs], [AS_HELP_STRING([--enable-BMWlibs],[build optional BMW plug-ins [default=no]])], - [CUBA_FOUND=0 - BUILD_CUBA=0 - AC_ARG_WITH([cuba], - [AS_HELP_STRING([--with-cuba],[prefix of CUBA installation, e.g. /usr/local or /usr])], - [CUBA_PREFIX=$with_cuba - AC_MSG_CHECKING([whether CUBA can be found at the specified location]) - if !(test -r ${CUBA_PREFIX}/include/cuba.h); then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([CUBA cannot be found at the specified path!]) - fi - AC_MSG_RESULT([${CUBA_PREFIX}])], - [PKG_CHECK_MODULES(CUBA, cuba >= 1.6, [CUBA_FOUND=1], - [AC_MSG_CHECKING([whether CUBA is installed in a standard location]) - if test -r /usr/local/include/cuba.h; then - CUBA_PREFIX="/usr/local" - AC_MSG_RESULT([${CUBA_PREFIX}]) - elif test -r /usr/include/cuba.h; then - CUBA_PREFIX="/usr" - AC_MSG_RESULT([${CUBA_PREFIX}]) - elif test -r /sw/include/cuba.h; then - CUBA_PREFIX="/sw" - AC_MSG_RESULT([${CUBA_PREFIX}]) - elif test -r /opt/local/include/cuba.h; then - CUBA_PREFIX="/opt/local" - AC_MSG_RESULT([${CUBA_PREFIX}]) - else - BUILD_CUBA=1 - AC_MSG_RESULT([builtin-cuba]) - fi - ] - ) - ] - ) - - if test "${BUILD_CUBA}" = "1"; then - AS_IF([test "x$GCC" = "xyes"], - [case "$($CC --version 2>&1 < /dev/null)" in - *gcc*4.2* | *gcc*4.4.3*) - opt=-O0 - ;; - *) - opt=-O3 - ;; - esac - CUBA_BUILD_CFLAGS="$opt -fomit-frame-pointer -ffast-math"], - [CUBA_BUILD_CFLAGS="-O"]) - - AC_LANG_PUSH([C]) - - AC_C_CONST - AC_C_INLINE - AC_DIAGNOSE([obsolete],[The macro `AC_C_LONG_DOUBLE' is obsolete. -You should use `AC_TYPE_LONG_DOUBLE' or `AC_TYPE_LONG_DOUBLE_WIDER' instead. -])dnl - - AC_TYPE_LONG_DOUBLE_WIDER - ac_cv_c_long_double=$ac_cv_type_long_double_wider - if test $ac_cv_c_long_double = yes; then - AC_DEFINE([HAVE_LONG_DOUBLE],[1],[Define to 1 if the type `long double' works and has more range or - precision than `double'.]) - fi - - - AC_CHECK_FUNCS([powl]) - AC_CHECK_FUNCS([erf]) -# AC_FUNC_FORK - AC_FUNC_ALLOCA - - AC_DEFUN([chk_shmget], [dnl - AC_REQUIRE([AC_CANONICAL_HOST]) - AS_CASE([$host_os], - [*cygwin*], [], - [AC_CHECK_FUNCS([shmget])]) - ]) - chk_shmget - AC_CHECK_FUNCS([getloadavg]) - - MAXDIM=${MAXDIM:-16} - AC_ARG_WITH(maxdim, - [AS_HELP_STRING([--with-maxdim=N], - [[Cuba option] the maximum dimension for integration, - if variable-size array are not supported])], - [MAXDIM=$withval]) - - MAXCOMP=${MAXCOMP:-4} - AC_ARG_WITH(maxcomp, - [AS_HELP_STRING([--with-maxcomp=N], - [[Cuba option] the maximum number of components of the integrand, - if variable-size array are not supported])], - [MAXCOMP=$withval]) - - AC_MSG_CHECKING([for variable-size arrays]) - AC_COMPILE_IFELSE([AC_LANG_SOURCE(,[[ - void test(int n) - { - char s[n]; - } - ]])], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no, using MAXDIM=$MAXDIM and MAXCOMP=$MAXCOMP]) - AC_DEFINE_UNQUOTED([NDIM], [$MAXDIM], [Maximum number of components]) - AC_DEFINE_UNQUOTED([NCOMP], [$MAXCOMP], [Maximum number of dimensions])] - ) - - AC_LANG_POP([C]) - - CUBA_SRCDIR="$(pwd)/src/external/libCuba/src" - CUBA_LIBS="${CUBA_SRCDIR}/libcuba.la" - CUBA_CFLAGS="-I${CUBA_SRCDIR}" - else - if test "${CUBA_FOUND}" != "1"; then - CUBA_LIBS="-L${CUBA_PREFIX}/lib -lcuba -lm" - CUBA_CFLAGS="-I${CUBA_PREFIX}/include" - fi - fi - - AC_SUBST(CUBA_PREFIX) - AC_SUBST(CUBA_LIBS) - AC_SUBST(CUBA_CFLAGS) - - BUILD_BMW_LIBS=1 - ], - [BUILD_BMW_LIBS=0] -) - -dnl ----------------------------------------------- -dnl Ask user if ASlibs should be built -dnl ----------------------------------------------- - -AC_ARG_ENABLE([ASlibs], [AS_HELP_STRING([--enable-ASlibs],[build optional AS plug-ins [default=no]])],[BUILD_AS_LIBS=1], [BUILD_AS_LIBS=0]) - -dnl ----------------------------------------------- -dnl Ask user if BNMRlibs should be built -dnl ----------------------------------------------- - -AC_ARG_ENABLE([BNMRlibs], [AS_HELP_STRING([--enable-BNMRlibs],[build optional BNMR plug-ins [default=no]])],[BUILD_BNMR_LIBS=1], [BUILD_BNMR_LIBS=0]) - -dnl ----------------------------------------------- -dnl Set some paths and flags for PMusr, MusrRoot, TLemRunHeader, Class_MuSR_PSI, mud, NeXus (if enabled), etc. -dnl ----------------------------------------------- - -SRCDIR="$(pwd)/src" - -PSIBIN_SRCDIR="${SRCDIR}/external/MuSR_software/Class_MuSR_PSI" -PSIBIN_LIBS="${PSIBIN_SRCDIR}/lib${PSIBIN_LIBRARY_NAME}.la" -PSIBIN_CFLAGS="-I${PSIBIN_SRCDIR}" -AC_SUBST(PSIBIN_LIBS) -AC_SUBST(PSIBIN_CFLAGS) - -MUD_SRCDIR="${SRCDIR}/external/mud/src" -MUD_LIBS="${MUD_SRCDIR}/lib${MUD_LIBRARY_NAME}.la" -MUD_CFLAGS="-I${MUD_SRCDIR}" -AC_SUBST(MUD_LIBS) -AC_SUBST(MUD_CFLAGS) - -LEM_SRCDIR="${SRCDIR}/external/TLemRunHeader" -LEM_LIBS="${LEM_SRCDIR}/lib${LEM_LIBRARY_NAME}.la" -LEM_CFLAGS="-I${LEM_SRCDIR}" -AC_SUBST(LEM_LIBS) -AC_SUBST(LEM_CFLAGS) - -MUSR_ROOT_SRCDIR="${SRCDIR}/external/MusrRoot" -MUSR_ROOT_LIBS="${MUSR_ROOT_SRCDIR}/lib${MUSR_ROOT_LIBRARY_NAME}.la" -MUSR_ROOT_CFLAGS="-I${MUSR_ROOT_SRCDIR}" -AC_SUBST(MUSR_ROOT_LIBS) -AC_SUBST(MUSR_ROOT_CFLAGS) - -PMUSR_LIBS="${SRCDIR}/classes/lib${MUSR_LIBRARY_NAME}.la" -PMUSR_CFLAGS="-I${SRCDIR}/include" -AC_SUBST(PMUSR_LIBS) -AC_SUBST(PMUSR_CFLAGS) - -USERFCN_LIBS="${SRCDIR}/classes/lib${USERFCN_LIBRARY_NAME}.la" -AC_SUBST(USERFCN_LIBS) - -if test "${PNEXUS_ENABLED}" = "1"; then - AC_DEFINE([PNEXUS_ENABLED], [1], [Define to 1 if NeXus is enabled]) - PNEXUS_SRCDIR="${SRCDIR}/external/nexus" - PNEXUS_LIBS="${PNEXUS_SRCDIR}/lib${PNEXUS_LIBRARY_NAME}.la" - PNEXUS_CXXFLAGS="-I${PNEXUS_SRCDIR}" - AC_SUBST(PNEXUS_LIBS) - AC_SUBST(PNEXUS_CXXFLAGS) -fi - -if test "${BUILD_BNMR_LIBS}" = "1"; then - BNMRLIBS_SRCDIR="${SRCDIR}/external/libBNMR" - BNMRLIBS_LIBS="${BNMRLIBS_SRCDIR}/libBNMR.la" - BNMRLIBS_CFLAGS="-I${BNMRLIBS_SRCDIR}" - AC_SUBST(BNMRLIBS_LIBS) - AC_SUBST(BNMRLIBS_CFLAGS) -fi - -if test "${BUILD_BMW_LIBS}" = "1"; then - BMWTOOLS_SRCDIR="${SRCDIR}/external/BMWtools" - BMWTOOLS_LIBS="${BMWTOOLS_SRCDIR}/libBMWtools.la" - BMWTOOLS_CFLAGS="-I${BMWTOOLS_SRCDIR}" - AC_SUBST(BMWTOOLS_LIBS) - AC_SUBST(BMWTOOLS_CFLAGS) - - FITPOFB_SRCDIR="${SRCDIR}/external/libFitPofB" - FITPOFB_LIBS="${FITPOFB_SRCDIR}/classes/libFitPofB.la" - FITPOFB_CFLAGS="-I${FITPOFB_SRCDIR}/include" - AC_SUBST(FITPOFB_LIBS) - AC_SUBST(FITPOFB_CFLAGS) - - # Check for fftw3_threads-library. If available musrfit is also linked against it (used in libFitPofB). - SAVED_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $FFTW3_CFLAGS" - SAVED_LIBSS="$LIBS" - LIBS="$LIBS $FFTW3_LIBS" - AC_SEARCH_LIBS([fftw_init_threads], [fftw3_threads], [FFTW3_LIBS="$FFTW3_LIBS -lfftw3_threads -lpthread" - AC_DEFINE([HAVE_LIBFFTW3_THREADS], [1], [Define to 1 if fftw3_threads are available])], [], [-lpthread]) - # Check for fftw3f library. If it is not available the BMWlibs will not be built! - AC_SEARCH_LIBS([fftwf_malloc], [fftw3f], [FFTW3_LIBS="$FFTW3_LIBS -lfftw3f"], [BUILD_BMW_LIBS=0 - AC_MSG_ERROR([The float version of FFTW3 is not available. When building FFTW3 from source it should be configured with the options - --enable-shared --enable-float. Without this library the BMWlibs cannot be built!])], []) - if test "${BUILD_BMW_LIBS}" = "1"; then - AC_SEARCH_LIBS([fftwf_init_threads], [fftw3f_threads], [FFTW3_LIBS="$FFTW3_LIBS -lfftw3f_threads -lpthread" - AC_DEFINE([HAVE_LIBFFTW3F_THREADS], [1], [Define to 1 if fftw3f_threads are available])], [], [-lpthread]) - fi - - CFLAGS="$SAVED_CFLAGS" - LIBS="$SAVED_LIBS" -fi - -AC_SUBST(FFTW3_LIBS) -AC_SUBST(FFTW3_CFLAGS) - -dnl ----------------------------------------------- -dnl Ask user if OpenMP support should be disabled (used for parallel chisq calculation and in libFitPofB) -dnl ----------------------------------------------- - -AC_ARG_ENABLE([omp], [AS_HELP_STRING([--enable-omp],[build musrfit with OpenMP support [default=yes]])]) - -if test "x$enable_omp" != "xno"; then - SAVED_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fopenmp" - SAVED_LIBSS="$LIBS" - LIBS="$LIBS -fopenmp -lgomp" - AC_SEARCH_LIBS([omp_get_num_procs], [gomp], [AC_DEFINE([HAVE_GOMP], [1], [Define to 1 if gomp is available])], - [CXXFLAGS="$SAVED_CXXFLAGS" LIBS="$SAVED_LIBS"], []) -fi - -dnl ----------------------------------------------- -dnl Ask user if the building of musredit/musrgui should be disabled -dnl ----------------------------------------------- - -AC_ARG_ENABLE([editor], [AS_HELP_STRING([--enable-editor],[check for Qt and build musredit or musrgui [default=yes]])]) - -if test "x$enable_editor" != "xno"; then - - echo "Additional checks for musredit/musrgui ..." - - QT5MINVER=5.4 - - case "$host" in - *-*-cygwin) - QT4MINVER=4.5 - ;; - *) - QT4MINVER=4.6 - ;; - esac - - QT3_FOUND=no - QT3MT_FOUND=no - QT4_FOUND=no - QT5_FOUND=no - QMAKEBIN="" - QTEDITOR=none - - AC_ARG_WITH([qt3], - [AS_HELP_STRING([--with-qt3],[prefix of the Qt3 installation, e.g. /usr/lib/qt-3.3])], - [QT3_PREFIX=$with_qt3 - AC_MSG_CHECKING([whether qmake for Qt3 can be found at the specified location]) - for QMAKE in qmake qmake-qt3 - do - if test -x "${QT3_PREFIX}/bin/${QMAKE}"; then - QMAKEVERSIONSTRING="$(${QT3_PREFIX}/bin/${QMAKE} -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "3."; then - QMAKEBIN="${QT3_PREFIX}/bin/${QMAKE}" - QTEDITOR=musrgui - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" != "x"; then - break - fi - fi - done - - if test "x${QMAKEBIN}" = "x"; then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([qmake for Qt3 cannot be found in ${QT3_PREFIX}/bin!]) - fi] - ) - - AC_ARG_WITH([qt4], - [AS_HELP_STRING([--with-qt4],[prefix of the Qt4 installation, e.g. /opt/qt-4.7])], - [QT4_PREFIX=$with_qt4 - AC_MSG_CHECKING([whether qmake for Qt4 can be found at the specified location]) - for QMAKE in qmake qmake-qt4 - do - if test -x "${QT4_PREFIX}/bin/${QMAKE}"; then - QMAKEVERSIONSTRING="$(${QT4_PREFIX}/bin/${QMAKE} -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "4."; then - QMAKEBIN="${QT4_PREFIX}/bin/${QMAKE}" - QTEDITOR=musredit - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" != "x"; then - break - fi - fi - done - - if test "x${QMAKEBIN}" = "x"; then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([qmake for Qt4 cannot be found in ${QT4_PREFIX}/bin!]) - fi - - if test "x${QT3PRESENT}" = "xyes"; then - AC_MSG_WARN([Qt3 and Qt4 directories have been given -- only the Qt4 information will be used and only musredit will be built!]) - fi], - [if test "x${QMAKEBIN}" = "x"; then - PKG_CHECK_MODULES(QT4, QtWebKit >= $QT4MINVER QtXml >= $QT4MINVER, [QT4_FOUND=yes], - [AC_MSG_NOTICE([Qt4 (including QtWebKit and QtXml) not found!]) - PKG_CHECK_MODULES(QT3, qt >= 3.3.0 qt < 4.0, [QT3_FOUND=yes], - [PKG_CHECK_MODULES(QT3MT, qt-mt >= 3.3.0 qt-mt < 4.0, [QT3MT_FOUND=yes], [QT3MT_FOUND=no])] - )] - ) - fi] - ) - - AC_ARG_WITH([qt5], - [AS_HELP_STRING([--with-qt5],[prefix of the Qt5 installation, e.g. /usr/lib64/qt5/])], - [QT5_PREFIX=$with_qt5 - AC_MSG_CHECKING([whether qmake for Qt5 can be found at the specified location]) - for QMAKE in qmake qmake-qt5 - do - if test -x "${QT5_PREFIX}/bin/${QMAKE}"; then - QMAKEVERSIONSTRING="$(${QT5_PREFIX}/bin/${QMAKE} -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "5."; then - QMAKEBIN="${QT5_PREFIX}/bin/${QMAKE}" - QTEDITOR=musredit_qt5 - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" != "x"; then - break - fi - fi - done - - if test "x${QMAKEBIN}" = "x"; then - AC_MSG_RESULT([no]) - AC_MSG_ERROR([qmake for Qt5 cannot be found in ${QT5_PREFIX}/bin!]) - fi - - if test "x${QT4PRESENT}" = "xyes"; then - AC_MSG_WARN([Qt4 and Qt5 directories have been given -- only the Qt5 information will be used and only musredit will be built!]) - fi], - [if test "x${QMAKEBIN}" = "x"; then - PKG_CHECK_MODULES(QT5, Qt5WebKit >= $QT5MINVER Qt5Xml >= $QT5MINVER, [QT5_FOUND=yes], - [AC_MSG_NOTICE([Qt5 (including Qt5WebKit and Qt5Xml) not found!]) - PKG_CHECK_MODULES(QT3, qt >= 3.3.0 qt < 4.0, [QT3_FOUND=yes], - [PKG_CHECK_MODULES(QT3MT, qt-mt >= 3.3.0 qt-mt < 4.0, [QT3MT_FOUND=yes], [QT3MT_FOUND=no])] - )] - ) - fi - if test "x${QT5_FOUND}" != "xyes"; then - PKG_CHECK_MODULES(QT5, Qt5WebEngine >= $QT5MINVER Qt5Xml >= $QT5MINVER, [QT5_FOUND=yes], - [AC_MSG_NOTICE([Qt5 (including Qt5WebEngine and Qt5Xml) not found!]) - PKG_CHECK_MODULES(QT3, qt >= 3.3.0 qt < 4.0, [QT3_FOUND=yes], - [PKG_CHECK_MODULES(QT3MT, qt-mt >= 3.3.0 qt-mt < 4.0, [QT3MT_FOUND=yes], [QT3MT_FOUND=no])] - )] - ) - fi] - ) - - if test "x${QMAKEBIN}" = "x"; then - if test "x${QT3_FOUND}" = "xno" && test "x${QT3MT_FOUND}" = "xno" && test "x${QT4_FOUND}" = "xno" && test "x${Qt5_FOUND}" = "xno"; then - AC_MSG_WARN([No suitable version of either Qt5, Qt4 or Qt3 has been found! musredit/musrgui will not be built in this stage!]) - else - # Check for qmake on the basis of the pkg-config information - QTPATH=none - - if test "x$QT5_FOUND" = "xyes"; then - QTPATH=$(pkg-config --variable=prefix Qt5WebKit) - QTEDITOR=musredit_qt5 - elif test "x$QT4_FOUND" = "xyes"; then - QTPATH=$(pkg-config --variable=prefix QtWebKit) - QTEDITOR=musredit - elif test "x$QT3_FOUND" = "xyes"; then - QTPATH=$(pkg-config --variable=prefix qt) - QTEDITOR=musrgui - elif test "x$QT3MT_FOUND" = "xyes"; then - QTPATH=$(pkg-config --variable=prefix qt-mt) - QTEDITOR=musrgui - fi - - dnl if Qt5 but Qt5WebEngine instead of Qt5WebKit - if test "x$QTPATH" = "x"; then - QTPATH=$(pkg-config --variable=prefix Qt5WebEngine) - QTEDITOR=musredit_qt5 - fi - - AC_MSG_CHECKING([for qmake]) - if test "x${QTPATH}" != "xnone"; then - if test "x$QTEDITOR" = "xmusredit_qt5"; then - for QMAKE in qmake-qt5 qmake-qt54 qmake-qt55 - do - if test -x "${QTPATH}/bin/${QMAKE}"; then - QMAKEBIN="${QTPATH}/bin/${QMAKE}" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" = "x"; then - if test -x "${QTPATH}/bin/qmake"; then - QMAKEVERSIONSTRING="$(${QTPATH}/bin/qmake -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "5."; then - QMAKEBIN="${QTPATH}/bin/qmake" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - fi - fi - elif test "x$QTEDITOR" = "xmusredit"; then - for QMAKE in qmake-qt4 qmake-qt46 qmake-qt47 qmake-qt48 - do - if test -x "${QTPATH}/bin/${QMAKE}"; then - QMAKEBIN="${QTPATH}/bin/${QMAKE}" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" = "x"; then - if test -x "${QTPATH}/bin/qmake"; then - QMAKEVERSIONSTRING="$(${QTPATH}/bin/qmake -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "4."; then - QMAKEBIN="${QTPATH}/bin/qmake" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - fi - fi - elif test "x$QTEDITOR" = "xmusrgui"; then - for QMAKE in qmake-qt3 qmake-qt33 - do - if test -x "${QTPATH}/bin/${QMAKE}"; then - QMAKEBIN="${QTPATH}/bin/${QMAKE}" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - if test "x${QMAKEBIN}" = "x"; then - if test -x "${QTPATH}/bin/qmake"; then - QMAKEVERSIONSTRING="$(${QTPATH}/bin/qmake -v 2>&1)" - for a in $QMAKEVERSIONSTRING - do - if test "$(expr "$a" : '\(..\)')" = "3."; then - QMAKEBIN="${QTPATH}/bin/qmake" - AC_MSG_RESULT([${QMAKEBIN}]) - break - fi - done - fi - fi - fi - if test "x${QMAKEBIN}" = "x"; then - AC_MSG_RESULT([no]) - AC_MSG_WARN([If Qt5, Qt4 or Qt3 are present but have not been detected, try using the --with-qt5, --with-qt4 or --with-qt3 options!]) - fi - fi - fi - fi -fi - -AM_CONDITIONAL([BUILD_MUSREDIT_QT5], [test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit_qt5"]) -AM_CONDITIONAL([BUILD_MUSREDIT], [test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit"]) -AM_CONDITIONAL([BUILD_MUSRGUI], [test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusrgui"]) - -dnl ----------------------------------------------- -dnl Set host specific compiler and linker flags -dnl ----------------------------------------------- - -case "${host_cpu}" in - x86_64) - CPUFLAGS="-m64 -fPIC -DPIC" - ;; - *) - CPUFLAGS= - ;; -esac - -CXXFLAGS="-std=c++11 ${CXXFLAGS}" -AC_SUBST(CXXFLAGS) - -LOCAL_BIN_CXXFLAGS="${CPUFLAGS} -Wall -Wno-trigraphs" -LOCAL_LIB_CXXFLAGS="${LOCAL_BIN_CXXFLAGS}" -LOCAL_PSIBIN_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS}" -LOCAL_MUD_LIB_CFLAGS="${LOCAL_LIB_CXXFLAGS} ${USER_CFLAGS}" -LOCAL_PNEXUS_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS}" -LOCAL_CUBA_LIB_CFLAGS="${LOCAL_LIB_CXXFLAGS} ${CUBA_BUILD_CFLAGS}" -LOCAL_BIN_LDFLAGS= -LOCAL_LIB_LDFLAGS= - -case "$host" in - *-*-cygwin) - ARCH=CYGWIN - AC_DEFINE([_WIN32GCC], [1], [Define to 1 if host system is Cygwin]) - LOCAL_BIN_CXXFLAGS="${LOCAL_BIN_CXXFLAGS}" - LOCAL_LIB_CXXFLAGS="${LOCAL_BIN_CXXFLAGS} -D_DLL" - LOCAL_PSIBIN_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS} -D_WIN32GCC" - LOCAL_MUD_LIB_CFLAGS="${LOCAL_LIB_CXXFLAGS} ${USER_CFLAGS}" - LOCAL_PNEXUS_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS}" - LOCAL_CUBA_LIB_CFLAGS="${LOCAL_LIB_CXXFLAGS} ${CUBA_BUILD_CFLAGS}" - LOCAL_BIN_LDFLAGS="${LOCAL_BIN_LDFLAGS} -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" - LOCAL_LIB_LDFLAGS="-no-undefined ${LOCAL_BIN_LDFLAGS} -Wl,--export-all-symbols" - ;; - *-*-darwin*) - ARCH=DARWIN - LOCAL_PSIBIN_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS} -D_Darwin_" - LOCAL_BIN_LDFLAGS="${LOCAL_BIN_LDFLAGS} -Wl,-rpath ${ROOTLIBDIR}" - ;; - *) - ARCH=OTHERUNIX - LOCAL_PSIBIN_LIB_CXXFLAGS="${LOCAL_LIB_CXXFLAGS} -D__linux__" - ;; -esac - - -AC_SUBST(LOCAL_BIN_CXXFLAGS) -AC_SUBST(LOCAL_LIB_CXXFLAGS) -AC_SUBST(LOCAL_PSIBIN_LIB_CXXFLAGS) -AC_SUBST(LOCAL_MUD_LIB_CFLAGS) -AC_SUBST(LOCAL_PNEXUS_LIB_CXXFLAGS) -AC_SUBST(LOCAL_CUBA_LIB_CFLAGS) -AC_SUBST(LOCAL_BIN_LDFLAGS) -AC_SUBST(LOCAL_LIB_LDFLAGS) - - -dnl ----------------------------------------------- -dnl Some standard checks for header files and libraries -dnl Since these checks are not further used at the moment, they are commented -dnl ----------------------------------------------- - -# Checks for header files. -#AC_HEADER_STDC -#AC_CHECK_HEADERS([stddef.h stdlib.h string.h sys/time.h unistd.h]) - -# Checks for typedefs, structures, and compiler characteristics. -#AC_HEADER_STDBOOL -#AC_C_CONST -#AC_C_INLINE -#AC_TYPE_SIZE_T -#AC_HEADER_TIME - -# Checks for library functions. -#AC_FUNC_MALLOC -#AC_FUNC_STAT -#AC_CHECK_FUNCS([floor gettimeofday memset pow sqrt strstr]) - -dnl ----------------------------------------------- -dnl Determine the installation directory for the documentation -dnl ----------------------------------------------- - -if test "x${prefix}" = "xNONE" -then - INSTALLDIR="/usr/local" -else - INSTALLDIR="${prefix}" -fi - -dnl only define DOCDIR if not already present. This allows -dnl to feed DOCDIR on the configure level which is useful when -dnl for instance building a rpm. DOCDIR2 is needed for rpmbuild only -if test "x${DOCDIR}" = "x" -then - if test -d "${INSTALLDIR}/doc" - then - DOCDIR="${INSTALLDIR}/doc/musrfit" - else - DOCDIR="${INSTALLDIR}/share/doc/musrfit" - fi -else - if test -d "${INSTALLDIR}/doc" - then - DOCDIR2="${INSTALLDIR}/doc/musrfit" - else - DOCDIR2="${INSTALLDIR}/share/doc/musrfit" - fi -fi - -AC_SUBST(DOCDIR) - -dnl ----------------------------------------------- -dnl Specify the files that are going to be created by configure -dnl ----------------------------------------------- - -AM_CONDITIONAL([IS_DARWIN], [test "${ARCH}" = "DARWIN"]) -AM_CONDITIONAL([IS_CYGWIN], [test "${ARCH}" = "CYGWIN"]) - -AM_CONDITIONAL([PNEXUS_ENABLED], [test "${PNEXUS_ENABLED}" = "1"]) -AM_CONDITIONAL([BUILD_CUBALIB], [test "${BUILD_CUBA}" = "1"]) -AM_CONDITIONAL([BUILD_BMWLIBS], [test "${BUILD_BMW_LIBS}" = "1"]) -AM_CONDITIONAL([BUILD_ASLIBS], [test "${BUILD_AS_LIBS}" = "1"]) -AM_CONDITIONAL([BUILD_BNMRLIBS], [test "${BUILD_BNMR_LIBS}" = "1"]) - -AC_CONFIG_FILES([Makefile \ - src/Makefile \ - src/classes/Makefile \ - src/classes/PMusr.pc \ - src/classes/PUserFcnBase.pc \ - src/external/Makefile \ - src/external/MusrRoot/Makefile \ - src/external/MusrRoot/TMusrRunHeader.pc \ - src/external/TLemRunHeader/Makefile \ - src/external/TLemRunHeader/TLemRunHeader.pc \ - src/external/MuSR_software/Makefile \ - src/external/MuSR_software/Class_MuSR_PSI/Makefile \ - src/external/MuSR_software/Class_MuSR_PSI/Class_MuSR_PSI.pc \ - src/external/mud/Makefile \ - src/external/mud/src/Makefile \ - src/external/mud/src/mud.pc \ - src/external/nexus/Makefile \ - src/external/nexus/PNeXus.pc \ - src/external/libCuba/Makefile \ - src/external/libCuba/src/Makefile \ - src/external/libCuba/src/cuba.pc \ - src/external/libCuba/src/cuhre/Makefile \ - src/external/libCuba/src/divonne/Makefile \ - src/external/libCuba/src/suave/Makefile \ - src/external/libCuba/src/vegas/Makefile \ - src/external/libCuba/src/common/Makefile \ - src/external/BMWtools/Makefile \ - src/external/libFitPofB/Makefile \ - src/external/libFitPofB/classes/Makefile \ - src/external/libLFRelaxation/Makefile \ - src/external/libZFRelaxation/Makefile \ - src/external/libGapIntegrals/Makefile \ - src/external/libCalcMeanFieldsLEM/Makefile \ - src/external/Nonlocal/Makefile \ - src/external/MagProximity/Makefile \ - src/external/libSpinValve/Makefile \ - src/external/libSpinValve/classes/Makefile \ - src/external/libPhotoMeissner/Makefile \ - src/external/libPhotoMeissner/classes/Makefile \ - src/external/libGbGLF/Makefile \ - src/external/libBNMR/Makefile \ - src/external/libBNMR/libLineProfile/Makefile \ - src/musredit_qt5/Makefile \ - src/musredit/Makefile \ - src/musrgui/Makefile \ - src/musrgui/musrgui_startup.xml]) - -AC_OUTPUT - -if test "x$enable_editor" != "xno" && test "x$QMAKEBIN" != "x"; then - - echo "Configuring ${QTEDITOR} ..." - - if test "x${QTEDITOR}" = "xmusredit_qt5"; then - QTEDITOR_PRO="musredit" - else - QTEDITOR_PRO=${QTEDITOR} - fi - - echo "Changing directory to src/${QTEDITOR} and calling" - echo "${QMAKEBIN} CC=${CC} CXX=${CXX} PREFIX=${INSTALLDIR} ${QTEDITOR_PRO}.pro" - cd src/${QTEDITOR} - ${QMAKEBIN} CC=${CC} CXX=${CXX} PREFIX=${INSTALLDIR} ${QTEDITOR_PRO}.pro - cd ../.. - -fi - -echo "" -echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" -echo "+ +" -echo "+ Summary +" -echo "+ +" -echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" -echo "" - -echo " System:" -echo " -------" -echo "" -echo " $host" -echo "" -echo "" -echo " Requirements:" -echo " -------------" -echo "" -if test "${FFTW3_FOUND}" = "1"; then - echo " FFTW3 found in $(pkg-config --variable=prefix fftw3)" -else - echo " FFTW3 found in ${FFTW3_PREFIX}" -fi -if test "${GSL_FOUND}" = "1"; then - echo " GSL found in $(pkg-config --variable=prefix gsl)" -else - echo " GSL found in ${GSL_PREFIX}" -fi -if test "${BOOST_FOUND}" = "1"; then - echo " BOOST header files found in $(pkg-config --variable=prefix boost)" -else - echo " BOOST header files found in ${BOOST_INCLUDE}" -fi -if test "${LIBXML2_FOUND}" = "1"; then - echo " LIBXML2 found in $(pkg-config --variable=prefix libxml2)" -else - echo " LIBXML2 found in ${LIBXML2_PREFIX}" -fi -echo " ROOT found in ${ROOTLIBDIR%/lib}" -echo "" -if test "${PNEXUS_ENABLED}" -eq 1; then - echo " HDF4 found in ${HDF4_PREFIX}" - echo " HDF5 found in ${HDF5_PREFIX}" - if test "${NEXUS_FOUND}" = "1"; then - echo " NeXus found in $(pkg-config --variable=prefix nexus)" - else - echo " NeXus found in ${NEXUS_PREFIX}" - fi -else - echo " HDF4 not needed (NeXus support disabled)" - echo " HDF5 not needed (NeXus support disabled)" - echo " NeXus not needed (NeXus support disabled)" -fi -echo "" -if test "${BUILD_CUBA}" = "1"; then - echo " CUBA will be built" -elif test "${BUILD_CUBA}" != "1" && test "${BUILD_BMW_LIBS}" -eq 1; then - if test "${CUBA_FOUND}" = "1"; then - echo " CUBA found in $(pkg-config --variable=prefix cuba)" - else - echo " CUBA found in ${CUBA_PREFIX}" - fi -else - echo " CUBA not needed (BMWlibs disabled)" -fi -echo "" -if test "${enable_editor}" != "xno"; then - if test "x${QMAKEBIN}" != "x"; then - echo " Qt qmake found at ${QMAKEBIN}" - else - echo " Qt qmake not found" - fi -else - echo " Qt not needed (Qt editors disabled)" -fi -echo "" -echo "" -echo " Features:" -echo " ---------" -echo "" -echo " musrfit (including musrfit, musrview, musrt0," -echo " msr2msr, msr2data, any2many, dump_header," -echo " musrRootValidation, write_musrRoot_runHeader): yes" -echo "" -echo " Supported muSR file formats:" -echo " MusrRoot: yes" -echo " ROOT (LEM): yes" -echo " MUD: yes" -echo " PSI-BIN: yes" -echo " PSI-MDU: yes" -echo " WKM: yes" -if test "${PNEXUS_ENABLED}" -eq 1; then - echo " NeXus: yes" -else - echo " NeXus: no" -fi -echo "" -echo " External user-function libraries:" -if test "${BUILD_AS_LIBS}" -eq 1; then - echo " ASlibs: yes" -else - echo " ASlibs: no" -fi -if test "${BUILD_BNMR_LIBS}" -eq 1; then - echo " BNMRlibs: yes" -else - echo " BNMRlibs: no" -fi -if test "${BUILD_BMW_LIBS}" -eq 1; then - echo " BMWlibs: yes" -else - echo " BMWlibs: no" -fi -echo "" -echo " Qt musrfit editors:" -if test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit_qt5"; then - echo " musredit (Qt5): yes" -else - echo " musredit (Qt5): no" -fi -if test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit"; then - echo " musredit (Qt4): yes" -else - echo " musredit (Qt4): no" -fi -if test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusrgui"; then - echo " musrgui (Qt3): yes" -else - echo " musrgui (Qt3): no" -fi -echo "" -echo "" -echo " Installation directories:" -echo " -------------------------" -echo "" -echo " Programs: ${INSTALLDIR}/bin" -echo " XML configuration files: ${HOME}/.musrfit" -echo " Documentation: ${DOCDIR}" -echo "" - -dnl -------------- -dnl create header file that musredit knows at runtime where to find the documentation -dnl the DOCDIR2 tag is used for rpmbuild only -dnl -------------- -if test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit_qt5"; then - echo \#define MUSRFIT_PREFIX \"${INSTALLDIR}\" > src/musredit_qt5/musrfit-info.h - if test "x$DOCDIR2" = "x"; then - echo \#define MUSRFIT_DOC_DIR \"${DOCDIR}\" >> src/musredit_qt5/musrfit-info.h - else - echo \#define MUSRFIT_DOC_DIR \"${DOCDIR2}\" >> src/musredit_qt5/musrfit-info.h - fi -fi -if test "x$enable_editor" != "xno" && test "x${QMAKEBIN}" != "x" && test "x${QTEDITOR}" = "xmusredit"; then - echo \#define MUSRFIT_PREFIX \"${INSTALLDIR}\" > src/musredit/musrfit-info.h - if test "x$DOCDIR2" = "x"; then - echo \#define MUSRFIT_DOC_DIR \"${DOCDIR}\" >> src/musredit/musrfit-info.h - else - echo \#define MUSRFIT_DOC_DIR \"${DOCDIR2}\" >> src/musredit/musrfit-info.h - fi -fi diff --git a/src/Makefile.am b/src/Makefile.am deleted file mode 100644 index d7d1e071..00000000 --- a/src/Makefile.am +++ /dev/null @@ -1,74 +0,0 @@ -## Process this file with automake to create Makefile.in - -BUILT_SOURCES = git-revision.h -git-revision.h : Makefile - sh git_revision.sh ./include git-revision.h - -if PNEXUS_ENABLED - PNEXUSDIRS = external/nexus -endif - -if BUILD_MUSRGUI - EDITORDIR = musrgui -endif - -if BUILD_MUSREDIT - EDITORDIR = musredit -endif - -if BUILD_MUSREDIT_QT5 - EDITORDIR = musredit_qt5 -endif - -SUBDIRS = external/MusrRoot \ - external/TLemRunHeader \ - external/MuSR_software \ - external/mud \ - $(PNEXUSDIRS) \ - classes \ - external \ - musredit_qt5 \ - musredit \ - musrgui - -if BUILD_MUSRGUI -#SUBDIRS += $(EDITORDIR) -EXTRA_DIST = $(EDITORDIR)/Makefile -endif - -if BUILD_MUSREDIT -#SUBDIRS += $(EDITORDIR) -EXTRA_DIST = $(EDITORDIR)/Makefile -endif - -if BUILD_MUSREDIT_QT5 -EXTRA_DIST = $(EDITORDIR)/Makefile -endif - -bin_PROGRAMS = musrfit musrview musrt0 musrFT msr2msr msr2data any2many -bin_PROGRAMS += write_musrRoot_runHeader musrRootValidation -bin_PROGRAMS += dump_header - -musrfit_SOURCES = musrfit.cpp -musrview_SOURCES = musrview.cpp -musrt0_SOURCES = musrt0.cpp -musrFT_SOURCES = musrFT.cpp -msr2msr_SOURCES = msr2msr.cpp -msr2data_SOURCES = msr2data.cpp -any2many_SOURCES = any2many.cpp -write_musrRoot_runHeader_SOURCES = write_musrRoot_runHeader.cpp -musrRootValidation_SOURCES = musrRootValidation.cpp -dump_header_SOURCES = dump_header.cpp - -LIBADD = $(PMUSR_LIBS) $(MUSR_ROOT_LIBS) $(LEM_LIBS) $(PSIBIN_LIBS) $(MUD_LIBS) $(PNEXUS_LIBS) - -AM_CXXFLAGS = $(LOCAL_BIN_CXXFLAGS) -AM_LDFLAGS = $(LOCAL_BIN_LDFLAGS) -AM_CPPFLAGS = $(MUSR_ROOT_CFLAGS) $(LEM_CFLAGS) $(MUD_CFLAGS) $(PSIBIN_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(GSL_CFLAGS) $(BOOST_CFLAGS) $(ROOT_CFLAGS) \ - $(LIBXML2_CFLAGS) -if PNEXUS_ENABLED -AM_CPPFLAGS += $(HDF5_CFLAGS) $(NEXUS_CFLAGS) $(PNEXUS_CXXFLAGS) -endif - -LIBS = $(PMUSR_LIBS) $(USERFCN_LIBS) $(MUSR_ROOT_LIBS) $(LEM_LIBS) $(PSIBIN_LIBS) $(MUD_LIBS) $(PNEXUS_LIBS) \ - $(FFTW3_LIBS) $(GSL_LIBS) $(ROOT_LIBS) $(LIBXML2_LIBS) diff --git a/src/Makefile.musrfit b/src/Makefile.musrfit deleted file mode 100644 index afddd398..00000000 --- a/src/Makefile.musrfit +++ /dev/null @@ -1,149 +0,0 @@ -#--------------------------------------------------- -# Makefile -# -# Author: Andreas Suter -# e-mail: andreas.suter@psi.ch -# -# $Id$ -#--------------------------------------------------- - -#--------------------------------------------------- -# get compilation and library flags from root-config - -ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags) -ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs) -ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) - -#--------------------------------------------------- -# depending on the architecture, choose the compiler, -# linker, and the flags to use -# - -ARCH = $(shell $(ROOTSYS)/bin/root-config --arch) - -ifeq ($(ARCH),linux) -OS = LINUX -endif -ifeq ($(ARCH),linuxx8664gcc) -OS = LINUX -endif -ifeq ($(ARCH),win32gcc) -OS = WIN32GCC -endif -ifeq ($(ARCH),macosx) -OS = DARWIN -endif - -# -- Linux -ifeq ($(OS),LINUX) -CXX = g++ -CXXFLAGS = -O3 -Wall -fPIC -PMUSRPATH = ./include -MNPATH = $(ROOTSYS)/include -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -LD = g++ -LDFLAGS = -O -INSTALLPATH = $(ROOTSYS)/bin -EXEC = musrfit musrview musrparam musrt0 msr2msr -SUFFIX = -endif - -# -- Windows/Cygwin -ifeq ($(OS),WIN32GCC) -CXX = g++ -CXXFLAGS = -O3 -Wall -PMUSRPATH = ./include -MNPATH = $(ROOTSYS)/include -BOOSTPATH = /usr/include -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -I$(BOOSTPATH) -LD = g++ -LDFLAGS = -O -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -INSTALLPATH = $(ROOTSYS)/bin -EXEC = musrfit.exe musrview.exe musrparam.exe musrt0.exe msr2msr.exe -SUFFIX = .exe -endif - -# -- MacOSX/Darwin -ifeq ($(OS),DARWIN) -CXX = g++ -CXXFLAGS = -O3 -Wall -fPIC -PMUSRPATH = ./include -MNPATH = $(ROOTSYS)/include -BOOSTPATH = /sw/include -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -I$(BOOSTPATH) -LD = g++ -LDFLAGS = -O -INSTALLPATH = $(ROOTSYS)/bin -EXEC = musrfit musrview musrparam musrt0 msr2msr -SUFFIX = -endif - -# the output from the root-config script: -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += - -# the ROOT libraries (G = graphic) -LIBS = $(ROOTLIBS) -lXMLParser -GLIBS = $(ROOTGLIBS) -lXMLParser - -# PSI libs -PSILIBS = -L$(ROOTSYS)/lib -lTLemRunHeader -lPMusr -# Minuit2 lib -MNLIB = -L$(ROOTSYS)/lib -lMinuit2 -# MathMore lib -MMLIB = -L$(ROOTSYS)/lib -lMathMore - -# some definitions: headers, sources, objects,... -OBJS = -OBJS += musrfit.o musrview.o musrparam.o musrt0.o msr2msr.o - -# make the executable: -# -all: $(EXEC) - -musrfit$(SUFFIX): musrfit.o - @echo "---> Building $@ ..." - /bin/rm -f $@ - $(LD) $< -o $@ $(LDFLAGS) $(GLIBS) $(PSILIBS) $(MNLIB) $(MMLIB) - @echo "done" - -musrview$(SUFFIX): musrview.o - @echo "---> Building $@ ..." - /bin/rm -f $@ - $(LD) $< -o $@ $(LDFLAGS) $(GLIBS) $(PSILIBS) $(MNLIB) $(MMLIB) - @echo "done" - -musrt0$(SUFFIX): musrt0.o - @echo "---> Building $@ ..." - /bin/rm -f $@ - $(LD) $< -o $@ $(LDFLAGS) $(GLIBS) $(PSILIBS) $(MNLIB) $(MMLIB) - @echo "done" - -musrparam$(SUFFIX): musrparam.o - @echo "---> Building $@ ..." - /bin/rm -f $@ - $(LD) $< -o $@ $(LDFLAGS) $(GLIBS) $(PSILIBS) $(MNLIB) $(MMLIB) - @echo "done" - -msr2msr$(SUFFIX): msr2msr.o - @echo "---> Building $@ ..." - /bin/rm -f $@ - $(LD) $< -o $@ $(LDFLAGS) $(GLIBS) $(PSILIBS) $(MNLIB) $(MMLIB) - @echo "done" - -# clean up: remove all object file (and core files) -# semicolon needed to tell make there is no source -# for this target! -# -clean:; @rm -f $(OBJS) - @echo "---> removing $(OBJS)" - -# -$(OBJS): %.o: %.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< - -install: all - cp -fvp $(EXEC) $(INSTALLPATH) - cp -fvp musrfit_startup.xml $(INSTALLPATH) - cp -fvp external/scripts/msr2data $(INSTALLPATH) - chmod 755 $(INSTALLPATH)/msr2data diff --git a/src/classes/Makefile.PMusr b/src/classes/Makefile.PMusr deleted file mode 100644 index 03c0a24b..00000000 --- a/src/classes/Makefile.PMusr +++ /dev/null @@ -1,261 +0,0 @@ -#--------------------------------------------------- -# Makefile.PMusr -# -# Author: Andreas Suter -# e-mail: andreas.suter@psi.ch -# -# $Id$ -# -# Comment: If it doesn't work, try -# make --warning-undefined-variables -f Makefile.PMusr -# it might be that OSTYPE is not set properly, i.e. -# OSTYPE being a variable (set), instead of a enviornment -# variable (printenv). If so, try -# export OSTYPE=linux-gnu -# are whatever makes sense on your system. -#--------------------------------------------------- - -#--------------------------------------------------- -# get compilation and library flags from root-config - -ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags) -ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs) -ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) - -#--------------------------------------------------- -# depending on the architecture, choose the compiler, -# linker, and the flags to use -# - -ARCH = $(shell $(ROOTSYS)/bin/root-config --arch) - -ifeq ($(ARCH),linux) -OS = LINUX -endif -ifeq ($(ARCH),linuxx8664gcc) -OS = LINUX -endif -ifeq ($(ARCH),win32gcc) -OS = WIN32GCC -endif -ifeq ($(ARCH),macosx) -OS = DARWIN -endif - -# -- Linux -ifeq ($(OS),LINUX) -CXX = g++ -CXXFLAGS = -O3 -Wall -Wno-trigraphs -fPIC -PMUSRPATH = ../include -MNPATH = $(ROOTSYS)/include -GSLPATH = /usr/include/gsl -BOOSTPATH = /usr/include -FFTW3PATH = /usr/include -LEMPATH = ../external/TLemRunHeader -PSIBINPATH = ../external/MuSR_software/Class_MuSR_PSI -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -I$(GSLPATH) -I$(BOOSTPATH) -I$(LEMPATH) -I$(PSIBINPATH) -I$(FFTW3PATH) -LD = g++ -LDFLAGS = -O -SOFLAGS = -shared -LEMLIB = libTLemRunHeader.so -SHLIB = libPMusr.so -endif - -# -- Windows/Cygwin -ifeq ($(OS),WIN32GCC) -CXX = g++ -CXXFLAGS = -O3 -Wall -Wno-trigraphs -D_DLL -PMUSRPATH = ../include -MNPATH = $(ROOTSYS)/include -GSLPATH = /usr/include/gsl -BOOSTPATH = /usr/include -FFTW3PATH = /usr/include -LEMPATH = ../external/TLemRunHeader -PSIBINPATH = ../external/MuSR_software/Class_MuSR_PSI -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -I$(GSLPATH) -I$(BOOSTPATH) -I$(LEMPATH) -I$(PSIBINPATH) -I$(FFTW3PATH) -LD = g++ -LDFLAGS = -O -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -SOFLAGS = -shared -Wl,--export-all-symbols -LEMLIB = libTLemRunHeader.dll -SHLIB = libPMusr.dll -endif - -# -- MacOSX/Darwin -ifeq ($(OS),DARWIN) -CXX = g++ -CXXFLAGS = -O3 -Wall -Wno-trigraphs -fPIC -PMUSRPATH = ../include -MNPATH = $(ROOTSYS)/include -FINKPATH = /sw/include -GSLPATH = $(FINKPATH)/gsl -BOOSTPATH = $(FINKPATH) -FFTW3PATH = $(FINKPATH) -LEMPATH = ../external/TLemRunHeader -PSIBINPATH = ../external/MuSR_software/Class_MuSR_PSI -INCLUDES = -I$(PMUSRPATH) -I$(MNPATH) -I$(GSLPATH) -I$(BOOSTPATH) -I$(LEMPATH) -I$(PSIBINPATH) -I$(FFTW3PATH) -LD = g++ -LDFLAGS = -O -Xlinker -bind_at_load -SOFLAGS = -dynamiclib -flat_namespace -undefined suppress -Wl,-x -LEMLIB = libTLemRunHeader.dylib -SHLIB = libPMusr.dylib -endif - -# the output from the root-config script: -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += - -# the ROOT libraries (G = graphic) -LIBS = $(ROOTLIBS) -lXMLParser -GLIBS = $(ROOTGLIBS) -lXMLParser - -# LEM run header -PSILIB = -L. -lTLemRunHeader -# Minuit2 lib -MNLIB = -L$(ROOTSYS)/lib -lMinuit2 -# GSL lib -GSLLIB = -lgslcblas -lgsl -# FFTW lib -FFTW3LIB = -lfftw3 - -ifeq ($(OS),WIN32GCC) -# Minuit2 lib -MNLIB = -L$(ROOTSYS)/lib -lMinuit2 -lMathMore -# GSL lib -GSLLIB = -L/usr/lib -lgslcblas -lgsl -# FFTW lib -FFTW3LIB = -L/usr/lib -lfftw3 -endif - -ifeq ($(OS),DARWIN) -# Minuit2 lib -MNLIB = -L$(ROOTSYS)/lib -lMinuit2 -lMathMore -# GSL lib -GSLLIB = -L/sw/lib -lgslcblas -lgsl -# FFTW lib -FFTW3LIB = -L/sw/lib -lfftw3 -endif - -# some definitions: headers (used to generate *Dict* stuff), sources, objects,... -OBJS = -OBJS += PStartupHandler.o PStartupHandlerDict.o -OBJS += PMsrHandler.o -OBJS += PRunDataHandler.o -OBJS += PFunctionHandler.o -OBJS += PFunction.o -OBJS += PRunBase.o -OBJS += PRunSingleHisto.o -OBJS += PRunAsymmetry.o -OBJS += PRunRRF.o -OBJS += PRunNonMusr.o -OBJS += PRunListCollection.o -OBJS += PTheory.o -OBJS += PFitterFcn.o -OBJS += PFitter.o -OBJS += PMusrCanvas.o PMusrCanvasDict.o -OBJS += PUserFcnBase.o PUserFcnBaseDict.o -OBJS += PFourier.o -OBJS += PMusrT0.o PMusrT0Dict.o - -LEMOBJS = -LEMOBJS += TLemStats.o TLemStatsDict.o -LEMOBJS += TLemRunHeader.o TLemRunHeaderDict.o - -EXTOBJS = -EXTOBJS += MuSR_td_PSI_bin.o - -# make the shared libs: - -all: lemlib musrlib - -lemlib: $(LEMLIB) - -musrlib: $(SHLIB) - -$(LEMLIB): $(LEMOBJS) - @echo "---> Building shared library $(LEMLIB) ..." - /bin/rm -f $(LEMLIB) - $(LD) $(SOFLAGS) $(LDFLAGS) $(LEMOBJS) -o $(LEMLIB) $(LIBS) - @echo "done" - -$(SHLIB): $(OBJS) $(EXTOBJS) - @echo "---> Building shared library $(SHLIB) ..." - /bin/rm -f $(SHLIB) - $(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) $(EXTOBJS) -o $(SHLIB) $(FFTW3LIB) $(GLIBS) $(PSILIB) $(MNLIB) $(GSLLIB) - @echo "done" - -# clean up: remove all object file (and core files) -# semicolon needed to tell make there is no source -# for this target! -# -clean:; @rm -f $(OBJS) $(EXTOBJS) $(LEMOBJS) *Dict* core* - @echo "---> removing $(OBJS) $(EXTOBJS) $(LEMOBJS)" - -# -$(OBJS): %.o: %.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< - -$(LEMOBJS): ../external/TLemRunHeader/TLemRunHeader.cxx TLemRunHeaderDict.cxx ../external/TLemRunHeader/TLemStats.cxx TLemStatsDict.cxx - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $^ - -$(EXTOBJS): ../external/MuSR_software/Class_MuSR_PSI/MuSR_td_PSI_bin.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $^ - -TLemRunHeaderDict.cxx: ../external/TLemRunHeader/TLemRunHeader.h ../external/TLemRunHeader/TLemRunHeaderLinkDef.h - @echo "Generating dictionary $@..." - rootcling -f $@ -c -p $^ - -TLemStatsDict.cxx: ../external/TLemRunHeader/TLemStats.h ../external/TLemRunHeader/TLemStatsLinkDef.h - @echo "Generating dictionary $@..." - rootcling -f $@ -c -p $^ - -PStartupHandlerDict.cpp: ../include/PStartupHandler.h ../include/PStartupHandlerLinkDef.h - @echo "Generating dictionary $@..." - rootcling -f $@ -c -p $^ - -PMusrCanvasDict.cpp: ../include/PMusrCanvas.h ../include/PMusrCanvasLinkDef.h - @echo "Generating dictionary $@..." - rootcling -v -f $@ -c -p $^ - -PMusrT0Dict.cpp: ../include/PMusrT0.h ../include/PMusrT0LinkDef.h - @echo "Generating dictionary $@..." - rootcling -v -f $@ -c -p $^ - -PUserFcnBaseDict.cpp: ../include/PUserFcnBase.h ../include/PUserFcnBaseLinkDef.h - @echo "Generating dictionary $@..." - rootcling -v -f $@ -c -p $^ - -install: leminstall musrinstall - -leminstall: lemlib - @echo "Installing shared lib: $(LEMLIB) ( you must be root ;-) )" -ifeq ($(OS),LINUX) - cp -pv $(LEMLIB) $(ROOTSYS)/lib - cp -pv $(LEMPATH)/*.h $(ROOTSYS)/include -endif -ifeq ($(OS),WIN32GCC) - cp -pv $(LEMLIB) $(ROOTSYS)/bin - ln -sf $(ROOTSYS)/bin/$(LEMLIB) $(ROOTSYS)/lib/$(LEMLIB) - cp -pv $(LEMPATH)/*.h $(ROOTSYS)/include -endif -ifeq ($(OS),DARWIN) - cp -pv $(LEMLIB) $(ROOTSYS)/lib - cp -pv $(LEMPATH)/*.h $(ROOTSYS)/include -endif - -musrinstall: musrlib - @echo "Installing shared lib: $(SHLIB) ( you must be root ;-) )" -ifeq ($(OS),LINUX) - cp -pv $(SHLIB) $(ROOTSYS)/lib - cp -pv $(PMUSRPATH)/*.h $(ROOTSYS)/include -endif -ifeq ($(OS),WIN32GCC) - cp -pv $(SHLIB) $(ROOTSYS)/bin - ln -sf $(ROOTSYS)/bin/$(SHLIB) $(ROOTSYS)/lib/$(SHLIB) - cp -pv $(PMUSRPATH)/*.h $(ROOTSYS)/include -endif -ifeq ($(OS),DARWIN) - cp -pv $(SHLIB) $(ROOTSYS)/lib - cp -pv $(PMUSRPATH)/*.h $(ROOTSYS)/include -endif - -cleaninstall: clean install diff --git a/src/classes/Makefile.PUserFcn b/src/classes/Makefile.PUserFcn deleted file mode 100644 index 6dd9b43d..00000000 --- a/src/classes/Makefile.PUserFcn +++ /dev/null @@ -1,99 +0,0 @@ -#--------------------------------------------------- -# Makefile.PUserFcn -# -# Author: Andreas Suter -# e-mail: andreas.suter@psi.ch -# -# $Id$ -# -#--------------------------------------------------- - -#--------------------------------------------------- -# get compilation and library flags from root-config - -ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags) -ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs) -ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) - -#--------------------------------------------------- -# depending on the architecture, choose the compiler, -# linker, and the flags to use -# - -OSTYPE = $(shell uname) - -ifeq ($(OSTYPE),Linux) -OS = LINUX -endif -ifeq ($(OSTYPE),Linux-gnu) -OS = LINUX -endif -ifeq ($(OSTYPE),darwin) -OS = DARWIN -endif - -# -- Linux -ifeq ($(OS),LINUX) -CXX = g++ -CXXFLAGS = -Wall -Wno-trigraphs -fPIC -INCLUDES = -I../include -LD = g++ -LDFLAGS = -g -SOFLAGS = -O -shared -endif - -# -- Darwin -ifeq ($(OS),DARWIN) -CXX = g++ -CXXFLAGS = -Wall -Wno-trigraphs -fPIC -INCLUDES = -I../include -LD = g++ -LDFLAGS = -g -SOFLAGS = -dynamic -endif - -# the output from the root-config script: -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += - -# the ROOT libraries (G = graphic) -LIBS = $(ROOTLIBS) -lXMLParser -GLIBS = $(ROOTGLIBS) -lXMLParser - -# some definitions: headers (used to generate *Dict* stuff), sources, objects,... -OBJS = -OBJS += PUserFcn.o PUserFcnDict.o - -SHLIB = libPUserFcn.so - -# make the shared lib: -# -all: $(SHLIB) - -$(SHLIB): $(OBJS) - @echo "---> Building shared library $(SHLIB) ..." - /bin/rm -f $(SHLIB) - $(LD) $(OBJS) $(SOFLAGS) -o $(SHLIB) $(LIBS) - @echo "done" - -# clean up: remove all object file (and core files) -# semicolon needed to tell make there is no source -# for this target! -# -clean:; @rm -f $(OBJS) *Dict* core* - @echo "---> removing $(OBJS)" - -# -$(OBJS): %.o: %.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< - -PUserFcnDict.cpp: ../include/PUserFcn.h ../include/PUserFcnLinkDef.h - @echo "Generating dictionary $@..." - rootcling -f $@ -c -p $^ - -install: all - @echo "Installing shared lib: libPUserFcn.so ( you must be root ;-) )" -ifeq ($(OS),LINUX) - cp -pv $(SHLIB) $(ROOTSYS)/lib - cp -pv ../include/PUserFcn.h $(ROOTSYS)/include -endif diff --git a/src/classes/Makefile.am b/src/classes/Makefile.am deleted file mode 100644 index 77cb1d8f..00000000 --- a/src/classes/Makefile.am +++ /dev/null @@ -1,120 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - ../include/PFitterFcn.h \ - ../include/PFitter.h \ - ../include/PFourier.h \ - ../include/PFourierCanvas.h \ - ../include/PFunctionGrammar.h \ - ../include/PFunction.h \ - ../include/PFunctionHandler.h \ - ../include/PMsr2Data.h \ - ../include/PMsrHandler.h \ - ../include/PMusrCanvas.h \ - ../include/PMusr.h \ - ../include/PMusrT0.h \ - ../include/PPrepFourier.h \ - ../include/PRunAsymmetry.h \ - ../include/PRunAsymmetryRRF.h \ - ../include/PRunBase.h \ - ../include/PRunDataHandler.h \ - ../include/PRunListCollection.h \ - ../include/PRunNonMusr.h \ - ../include/PRunMuMinus.h \ - ../include/PRunSingleHisto.h \ - ../include/PRunSingleHistoRRF.h \ - ../include/PStartupHandler.h \ - ../include/PTheory.h - -h_sources_userFcn = \ - ../include/PUserFcnBase.h - -h_linkdef = \ - ../include/PFourierCanvasLinkDef.h \ - ../include/PMusrCanvasLinkDef.h \ - ../include/PMusrT0LinkDef.h \ - ../include/PStartupHandlerLinkDef.h - -h_linkdef_userFcn = \ - ../include/PUserFcnBaseLinkDef.h - -dict_h_sources = \ - PFourierCanvasDict.h \ - PMusrCanvasDict.h \ - PMusrT0Dict.h \ - PStartupHandlerDict.h - -dict_h_sources_userFcn = \ - PUserFcnBaseDict.h - -cpp_sources = \ - PFitter.cpp \ - PFitterFcn.cpp \ - PFourier.cpp \ - PFourierCanvas.cpp \ - PFunction.cpp \ - PFunctionHandler.cpp \ - PMsr2Data.cpp \ - PMsrHandler.cpp \ - PMusrCanvas.cpp \ - PMusr.cpp \ - PMusrT0.cpp \ - PPrepFourier.cpp \ - PRunAsymmetry.cpp \ - PRunAsymmetryRRF.cpp \ - PRunBase.cpp \ - PRunDataHandler.cpp \ - PRunListCollection.cpp \ - PRunNonMusr.cpp \ - PRunMuMinus.cpp \ - PRunSingleHisto.cpp \ - PRunSingleHistoRRF.cpp \ - PStartupHandler.cpp \ - PTheory.cpp - -cpp_sources_userFcn = \ - PUserFcnBase.cpp - -dict_cpp_sources = \ - PFourierCanvasDict.cpp \ - PMusrCanvasDict.cpp \ - PMusrT0Dict.cpp \ - PStartupHandlerDict.cpp - -dict_cpp_sources_userFcn = \ - PUserFcnBaseDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - PFourierCanvasDict_rdict.pcm \ - PMusrCanvasDict_rdict.pcm \ - PMusrT0Dict_rdict.pcm \ - PStartupHandlerDict_rdict.pcm \ - PUserFcnBaseDict_rdict.pcm - -include_HEADERS = $(h_sources) $(h_sources_userFcn) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) $(h_linkdef_userFcn) $(dict_h_sources_userFcn) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(MUSR_ROOT_CFLAGS) $(PSIBIN_CFLAGS) $(MUD_CFLAGS) $(LEM_CFLAGS) $(FFTW3_CFLAGS) $(GSL_CFLAGS) $(BOOST_CFLAGS) -I$(ROOTINCDIR) $(PNEXUS_CXXFLAGS) $(NEXUS_CFLAGS) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) $(dict_cpp_sources_userFcn) $(dict_h_sources_userFcn) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libPUserFcnBase.la libPMusr.la - -libPUserFcnBase_la_SOURCES = $(h_sources_userFcn) $(cpp_sources_userFcn) $(dict_h_sources_userFcn) $(dict_cpp_sources_userFcn) -libPUserFcnBase_la_LIBADD = $(ROOT_LIBS) -libPUserFcnBase_la_LDFLAGS = -version-info $(MUSR_LIBRARY_VERSION) -release $(MUSR_RELEASE) $(AM_LDFLAGS) - -libPMusr_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libPMusr_la_LIBADD = libPUserFcnBase.la $(MUSR_ROOT_LIBS) $(LEM_LIBS) $(PSIBIN_LIBS) $(MUD_LIBS) $(PNEXUS_LIBS) $(FFTW3_LIBS) $(GSL_LIBS) $(ROOT_LIBS) -libPMusr_la_LDFLAGS = -version-info $(MUSR_LIBRARY_VERSION) -release $(MUSR_RELEASE) $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = PUserFcnBase.pc PMusr.pc - diff --git a/src/external/BMWtools/Makefile.am b/src/external/BMWtools/Makefile.am deleted file mode 100644 index 9fd75b8b..00000000 --- a/src/external/BMWtools/Makefile.am +++ /dev/null @@ -1,63 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - BMWStartupHandler.h \ - TTrimSPDataHandler.h \ - BMWIntegrator.h - -h_linkdef = \ - BMWStartupHandlerLinkDef.h - -dict_h_sources = \ - BMWStartupHandlerDict.h - -cpp_sources = \ - BMWStartupHandler.cpp \ - TTrimSPDataHandler.cpp \ - BMWIntegrator.cpp - -dict_cpp_sources = \ - BMWStartupHandlerDict.cpp - -pcmdir = $(libdir) -pcm_DATA = BMWStartupHandlerDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(CUBA_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^ - -lib_LTLIBRARIES = libBMWtools.la - -libBMWtools_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libBMWtools_la_LIBADD = $(CUBA_LIBS) $(ROOT_LIBS) -libBMWtools_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PTFitPofB.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libBMWtools.dylib $(libdir)/libBMWtools.so -uninstall-hook: - rm -f $(libdir)/libBMWtools.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygBMWtools-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libBMWtools.so -uninstall-hook: - rm -f $(libdir)/libBMWtools.so -endif diff --git a/src/external/CMakeLists.txt b/src/external/CMakeLists.txt index fc7dd53c..b49e90e2 100644 --- a/src/external/CMakeLists.txt +++ b/src/external/CMakeLists.txt @@ -3,6 +3,7 @@ if (ASlibs) add_subdirectory(MagProximity) add_subdirectory(libPhotoMeissner) add_subdirectory(libSpinValve) + add_subdirectory(libGbGLF) endif (ASlibs) if (BMWlibs) diff --git a/src/external/MagProximity/Makefile.am b/src/external/MagProximity/Makefile.am deleted file mode 100644 index 23197c95..00000000 --- a/src/external/MagProximity/Makefile.am +++ /dev/null @@ -1,69 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - PMagProximityFitter.h \ - PMPRgeHandler.h \ - PMPStartupHandler.h \ - PMagProximity.h - -h_linkdef = \ - PMagProximityFitterLinkDef.h \ - PMPStartupHandlerLinkDef.h - -dict_h_sources = \ - PMagProximityFitterDict.h \ - PMPStartupHandlerDict.h - -cpp_sources = \ - PMagProximityFitter.cpp \ - PMPRgeHandler.cpp \ - PMPStartupHandler.cpp - -dict_cpp_sources = \ - PMagProximityFitterDict.cpp \ - PMPStartupHandlerDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - PMagProximityFitterDict_rdict.pcm \ - PMPStartupHandlerDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I../include $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libPMagProximityFitter.la - -libPMagProximityFitter_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libPMagProximityFitter_la_LIBADD = $(USERFCN_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS) -libPMagProximityFitter_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PMagProximityFitter.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libPMagProximityFitter.dylib $(libdir)/libPMagProximityFitter.so -uninstall-hook: - rm -f $(libdir)/libPMagProximityFitter.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygPMagProximityFitter-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libPMagProximityFitter.so -uninstall-hook: - rm -f $(libdir)/libPMagProximityFitter.so -endif diff --git a/src/external/Makefile.am b/src/external/Makefile.am deleted file mode 100644 index c2d05957..00000000 --- a/src/external/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ - -if BUILD_ASLIBS - ASDIRS = Nonlocal \ - MagProximity \ - libSpinValve \ - libPhotoMeissner \ - libGbGLF -endif - -if BUILD_CUBALIB - CUBADIRS = libCuba -endif - -if BUILD_BMWLIBS - BMWDIRS = BMWtools \ - libFitPofB \ - libLFRelaxation \ - libZFRelaxation \ - libGapIntegrals \ - libCalcMeanFieldsLEM -endif - -if BUILD_BNMRLIBS - BNMRDIRS = libBNMR -endif - -SUBDIRS = $(ASDIRS) $(CUBADIRS) $(BMWDIRS) $(BNMRDIRS) diff --git a/src/external/MuSR_software/Class_MuSR_PSI/Makefile.am b/src/external/MuSR_software/Class_MuSR_PSI/Makefile.am deleted file mode 100644 index 1856a2be..00000000 --- a/src/external/MuSR_software/Class_MuSR_PSI/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = MuSR_td_PSI_bin.h -cpp_sources = MuSR_td_PSI_bin.cpp - -include_HEADERS = MuSR_td_PSI_bin.h - -AM_CPPFLAGS = -I. -AM_CXXFLAGS = $(LOCAL_PSIBIN_LIB_CXXFLAGS) - -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -CLEANFILES = *~ core - -lib_LTLIBRARIES = libClass_MuSR_PSI.la - -libClass_MuSR_PSI_la_SOURCES = $(h_sources) $(cpp_sources) -libClass_MuSR_PSI_la_LDFLAGS = $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = Class_MuSR_PSI.pc - diff --git a/src/external/MuSR_software/Makefile.am b/src/external/MuSR_software/Makefile.am deleted file mode 100644 index 9e7e4f47..00000000 --- a/src/external/MuSR_software/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -## $Id$ - -SUBDIRS = Class_MuSR_PSI diff --git a/src/external/MusrRoot/Makefile.am b/src/external/MusrRoot/Makefile.am deleted file mode 100644 index 0b5dcb05..00000000 --- a/src/external/MusrRoot/Makefile.am +++ /dev/null @@ -1,42 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - TMusrRunHeader.h - -h_linkdef = \ - TMusrRunHeaderLinkDef.h - -dict_h_sources = \ - TMusrRunHeaderDict.h - -cpp_sources = \ - TMusrRunHeader.cpp - -dict_cpp_sources = \ - TMusrRunHeaderDict.cpp - -pcmdir = $(libdir) -pcm_DATA = TMusrRunHeaderDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I. -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dist_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(INCLUDES) $^ - -lib_LTLIBRARIES = libTMusrRunHeader.la - -libTMusrRunHeader_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libTMusrRunHeader_la_LIBADD = $(ROOT_LIBS) -libTMusrRunHeader_la_LDFLAGS = -version-info $(MUSR_ROOT_LIBRARY_VERSION) -release $(MUSR_ROOT_RELEASE) $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = TMusrRunHeader.pc - diff --git a/src/external/Nonlocal/Makefile.am b/src/external/Nonlocal/Makefile.am deleted file mode 100644 index 815f4e48..00000000 --- a/src/external/Nonlocal/Makefile.am +++ /dev/null @@ -1,70 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - PNL_PippardFitter.h \ - PNL_RgeHandler.h \ - PNL_StartupHandler.h \ - PNonlocal.h - -h_linkdef = \ - PNL_PippardFitterLinkDef.h \ - PNL_StartupHandlerLinkDef.h - -dict_h_sources = \ - PNL_PippardFitterDict.h \ - PNL_StartupHandlerDict.h - -cpp_sources = \ - PNL_PippardFitter.cpp \ - PNL_RgeHandler.cpp \ - PNL_StartupHandler.cpp - -dict_cpp_sources = \ - PNL_PippardFitterDict.cpp \ - PNL_StartupHandlerDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - PNL_PippardFitterDict_rdict.pcm \ - PNL_StartupHandlerDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I../include $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libPNL_PippardFitter.la - -libPNL_PippardFitter_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libPNL_PippardFitter_la_LIBADD = $(USERFCN_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS) -libPNL_PippardFitter_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PNL_PippardFitter.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libPNL_PippardFitter.dylib $(libdir)/libPNL_PippardFitter.so -uninstall-hook: - rm -f $(libdir)/libPNL_PippardFitter.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygPNL_PippardFitter-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libPNL_PippardFitter.so -uninstall-hook: - rm -f $(libdir)/libPNL_PippardFitter.so -endif - diff --git a/src/external/TLemRunHeader/Makefile.am b/src/external/TLemRunHeader/Makefile.am deleted file mode 100644 index 782e1bea..00000000 --- a/src/external/TLemRunHeader/Makefile.am +++ /dev/null @@ -1,49 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - TLemStats.h \ - TLemRunHeader.h - -h_linkdef = \ - TLemStatsLinkDef.h \ - TLemRunHeaderLinkDef.h - -dict_h_sources = \ - TLemStatsDict.h \ - TLemRunHeaderDict.h - -cpp_sources = \ - TLemStats.cxx \ - TLemRunHeader.cxx - -dict_cpp_sources = \ - TLemStatsDict.cxx \ - TLemRunHeaderDict.cxx - -pcmdir = $(libdir) -pcm_DATA = \ - TLemStatsDict_rdict.pcm \ - TLemRunHeaderDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I. -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dist_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cxx *Dict.h *Dict* *~ core - -%Dict.cxx %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cxx -c -p $(INCLUDES) $^ - -lib_LTLIBRARIES = libTLemRunHeader.la - -libTLemRunHeader_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libTLemRunHeader_la_LIBADD = $(ROOT_LIBS) -libTLemRunHeader_la_LDFLAGS = -version-info $(LEM_LIBRARY_VERSION) -release $(LEM_RELEASE) $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = TLemRunHeader.pc - diff --git a/src/external/libBNMR/Makefile.am b/src/external/libBNMR/Makefile.am deleted file mode 100644 index 750017fe..00000000 --- a/src/external/libBNMR/Makefile.am +++ /dev/null @@ -1,53 +0,0 @@ -## Process this file with automake to create Makefile.in -SUBDIRS = libLineProfile - -h_sources = \ - TBNMR.h - -h_linkdef = \ - TBNMRLinkDef.h - -dict_h_sources = \ - TBNMRDict.h - -cpp_sources = \ - TBNMR.cpp - -dict_cpp_sources = \ - TBNMRDict.cpp - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(PMUSR_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libBNMR.la - -libBNMR_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libBNMR_la_LIBADD = $(ROOT_LIBS) -libBNMR_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libBNMR.dylib $(libdir)/libBNMR.so -uninstall-hook: - rm -f $(libdir)/libBNMR.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygBNMR-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libBNMR.so -uninstall-hook: - rm -f $(libdir)/libBNMR.so -endif diff --git a/src/external/libBNMR/Makefile.libBNMR b/src/external/libBNMR/Makefile.libBNMR deleted file mode 100644 index d0fecfc6..00000000 --- a/src/external/libBNMR/Makefile.libBNMR +++ /dev/null @@ -1,60 +0,0 @@ -#--------------------------------------------------- -# get compilation flags from root-config - -ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags) - -#--------------------------------------------------- - -OS = LINUX -CXX = g++ -CXXFLAGS = -O3 -Wall -Wno-trigraphs -fPIC -LOCALINCLUDE = . -ROOTINCLUDE = $(ROOTSYS)/include -INCLUDES = -I$(LOCALINCLUDE) -I$(ROOTINCLUDE) -LD = g++ -LDFLAGS = -SOFLAGS = -O -shared - -# the output from the root-config script: -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += - -# some definitions: headers (used to generate *Dict* stuff), sources, objects,... -OBJS = -OBJS += TBNMR.o TlibBNMRDict.o - -SHLIB = libBNMR.so - -# make the shared lib: -# -all: $(SHLIB) - -$(SHLIB): $(OBJS) - @echo "---> Building shared library $(SHLIB) ..." - /bin/rm -f $(SHLIB) - $(LD) $(OBJS) $(SOFLAGS) -o $(SHLIB) - @echo "done" - -# clean up: remove all object file (and core files) -# semicolon needed to tell make there is no source -# for this target! -# -clean:; @rm -f $(OBJS) *Dict* core* - @echo "---> removing $(OBJS)" - -# -$(OBJS): %.o: %.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< - -# Generate the ROOT CLING dictionary - -TlibBNMRDict.cpp: TBNMR.h TBNMRLinkDef.h - @echo "Generating dictionary $@..." - rootcling -f $@ -c -p -I$(ROOTINCLUDE) $^ - -install: all - @echo "Installing shared lib: libTApproximation.so" -ifeq ($(OS),LINUX) - cp -pv $(SHLIB) $(ROOTSYS)/lib - cp -pv $(LOCALINCLUDE)/*.h $(ROOTSYS)/include -endif diff --git a/src/external/libBNMR/libLineProfile/Makefile.am b/src/external/libBNMR/libLineProfile/Makefile.am deleted file mode 100644 index 03874921..00000000 --- a/src/external/libBNMR/libLineProfile/Makefile.am +++ /dev/null @@ -1,52 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - LineProfile.h - -h_linkdef = \ - LineProfile.h - -dict_h_sources = \ - LineProfileDict.h - -cpp_sources = \ - LineProfile.cpp - -dict_cpp_sources = \ - LineProfileDict.cpp - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(PMUSR_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libLineProfile.la - -libLineProfile_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libLineProfile_la_LIBADD = $(ROOT_LIBS) -libLineProfile_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libLineProfile.dylib $(libdir)/libLineProfile.so -uninstall-hook: - rm -f $(libdir)/libLineProfile.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygLineProfile-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libLineProfile.so -uninstall-hook: - rm -f $(libdir)/libLineProfile.so -endif diff --git a/src/external/libBNMR/libLineProfile/Makefile.libLineProfile b/src/external/libBNMR/libLineProfile/Makefile.libLineProfile deleted file mode 100644 index 00bcc296..00000000 --- a/src/external/libBNMR/libLineProfile/Makefile.libLineProfile +++ /dev/null @@ -1,66 +0,0 @@ -#--------------------------------------------------- -# get compilation flags from root-config - -ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags) - -#--------------------------------------------------- - -OS = LINUX -CXX = g++ -CXXFLAGS = -O3 -Wall -Wno-trigraphs -fPIC -LOCALINCLUDE = . -ROOTINCLUDE = $(ROOTSYS)/include -INCLUDES = -I$(LOCALINCLUDE) -I$(ROOTINCLUDE) -LD = g++ -LDFLAGS = -SOFLAGS = -O -shared - -# the output from the root-config script: -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += - -# some definitions: headers (used to generate *Dict* stuff), sources, objects,... -OBJS = -OBJS += LineProfile.o LineProfileDict.o - -SHLIB = libLineProfile.so - -# make the shared lib: -# -all: $(SHLIB) - -$(SHLIB): $(OBJS) - @echo "---> Building shared library $(SHLIB) ..." - /bin/rm -f $(SHLIB) - $(LD) $(OBJS) $(SOFLAGS) -o $(SHLIB) - @echo "done" - -# clean up: remove all object file (and core files) -# semicolon needed to tell make there is no source -# for this target! -# -clean:; @rm -f $(OBJS) *Dict* core* - @echo "---> removing $(OBJS)" - -# -$(OBJS): %.o: %.cpp - $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< - -# Generate the ROOT CINT dictionary - -LineProfileDict.cpp: LineProfile.h LineProfileLinkDef.h - @echo "Generating dictionary $@..." - rootcint -f $@ -c -p -I$(ROOTINCLUDE) $^ - -install: all - @echo "Installing shared lib: libLineProfile.so" -ifeq ($(OS),LINUX) - cp -pv $(SHLIB) $(ROOTSYS)/lib -endif - -uninstall:; -ifeq ($(OS),LINUX) - rm $(ROOTSYS)/lib/$(SHLIB) -endif - @echo "Installing shared lib: libLineProfile.so" - diff --git a/src/external/libCalcMeanFieldsLEM/Makefile.am b/src/external/libCalcMeanFieldsLEM/Makefile.am deleted file mode 100644 index 032aa1eb..00000000 --- a/src/external/libCalcMeanFieldsLEM/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - TCalcMeanFieldsLEM.h - -h_linkdef = \ - TCalcMeanFieldsLEMLinkDef.h - -dict_h_sources = \ - TCalcMeanFieldsLEMDict.h - -cpp_sources = \ - TCalcMeanFieldsLEM.cpp - -dict_cpp_sources = \ - TCalcMeanFieldsLEMDict.cpp - -pcmdir = $(libdir) -pcm_DATA = TCalcMeanFieldsLEMDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(BMWTOOLS_CFLAGS) $(FITPOFB_CFLAGS) $(PMUSR_CFLAGS) -I$(ROOTINCDIR) $(FFTW3_CFLAGS) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libCalcMeanFieldsLEM.la - -libCalcMeanFieldsLEM_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libCalcMeanFieldsLEM_la_LIBADD = $(BMWTOOLS_LIBS) $(FITPOFB_LIBS) $(USERFCN_LIBS) $(ROOT_LIBS) -libCalcMeanFieldsLEM_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = CalcMeanFieldsLEM.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libCalcMeanFieldsLEM.dylib $(libdir)/libCalcMeanFieldsLEM.so -uninstall-hook: - rm -f $(libdir)/libCalcMeanFieldsLEM.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygCalcMeanFieldsLEM-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libCalcMeanFieldsLEM.so -uninstall-hook: - rm -f $(libdir)/libCalcMeanFieldsLEM.so -endif diff --git a/src/external/libCuba/Makefile.am b/src/external/libCuba/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/src/external/libCuba/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/src/external/libCuba/src/Makefile.am b/src/external/libCuba/src/Makefile.am deleted file mode 100644 index 9771bde9..00000000 --- a/src/external/libCuba/src/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -## Process this file with automake to create Makefile.in - -SUBDIRS = cuhre divonne suave vegas common - -include_HEADERS = cuba.h - -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -CLEANFILES = common/*~ cuhre/*~ divonne/*~ suave/*~ vegas/*~ *~ core - -lib_LTLIBRARIES = libcuba.la - -libcuba_la_SOURCES = - -libcuba_la_LIBADD = common/libcommon.la cuhre/libcuhre.la divonne/libdivonne.la suave/libsuave.la vegas/libvegas.la -lm -libcuba_la_LDFLAGS = -version-info $(CUBA_LIBRARY_VERSION) -release $(CUBA_RELEASE) $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = cuba.pc - diff --git a/src/external/libCuba/src/common/Makefile.am b/src/external/libCuba/src/common/Makefile.am deleted file mode 100644 index d7f70508..00000000 --- a/src/external/libCuba/src/common/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -## Process this file with automake to create Makefile.in - -c_sources = \ - Global.c \ - Data.c - -AM_CPPFLAGS = -I. -I.. -I../common -DNOUNDERSCORE -AM_CFLAGS = $(LOCAL_CUBA_LIB_CFLAGS) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) - -noinst_LTLIBRARIES = libcommon.la - -libcommon_la_SOURCES = $(c_sources) -libcommon_la_LDFLAGS = $(AM_LDFLAGS) diff --git a/src/external/libCuba/src/cuhre/Makefile.am b/src/external/libCuba/src/cuhre/Makefile.am deleted file mode 100644 index 820b8f64..00000000 --- a/src/external/libCuba/src/cuhre/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## Process this file with automake to create Makefile.in - -c_sources = Cuhre.c - -AM_CPPFLAGS = -I. -I.. -I../common -DNOUNDERSCORE -AM_CFLAGS = $(LOCAL_CUBA_LIB_CFLAGS) "-Dcubafun_=libCuhrecubafun_" -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) - -noinst_LTLIBRARIES = libcuhre.la - -libcuhre_la_SOURCES = $(c_sources) -libcuhre_la_LDFLAGS = $(AM_LDFLAGS) diff --git a/src/external/libCuba/src/divonne/Makefile.am b/src/external/libCuba/src/divonne/Makefile.am deleted file mode 100644 index a86cd97c..00000000 --- a/src/external/libCuba/src/divonne/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## Process this file with automake to create Makefile.in - -c_sources = Divonne.c - -AM_CPPFLAGS = -I. -I.. -I../common -DNOUNDERSCORE -AM_CFLAGS = $(LOCAL_CUBA_LIB_CFLAGS) "-Dcubafun_=libDivonnecubafun_" -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) - -noinst_LTLIBRARIES = libdivonne.la - -libdivonne_la_SOURCES = $(c_sources) -libdivonne_la_LDFLAGS = $(AM_LDFLAGS) diff --git a/src/external/libCuba/src/suave/Makefile.am b/src/external/libCuba/src/suave/Makefile.am deleted file mode 100644 index 47b77135..00000000 --- a/src/external/libCuba/src/suave/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## Process this file with automake to create Makefile.in - -c_sources = Suave.c - -AM_CPPFLAGS = -I. -I.. -I../common -DNOUNDERSCORE -AM_CFLAGS = $(LOCAL_CUBA_LIB_CFLAGS) "-Dcubafun_=libSuavecubafun_" -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) - -noinst_LTLIBRARIES = libsuave.la - -libsuave_la_SOURCES = $(c_sources) -libsuave_la_LDFLAGS = $(AM_LDFLAGS) diff --git a/src/external/libCuba/src/vegas/Makefile.am b/src/external/libCuba/src/vegas/Makefile.am deleted file mode 100644 index e67499cd..00000000 --- a/src/external/libCuba/src/vegas/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## Process this file with automake to create Makefile.in - -c_sources = Vegas.c - -AM_CPPFLAGS = -I. -I.. -I../common -DNOUNDERSCORE -AM_CFLAGS = $(LOCAL_CUBA_LIB_CFLAGS) "-Dcubafun_=libVegascubafun_" -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) - -noinst_LTLIBRARIES = libvegas.la - -libvegas_la_SOURCES = $(c_sources) -libvegas_la_LDFLAGS = $(AM_LDFLAGS) diff --git a/src/external/libFitPofB/Makefile.am b/src/external/libFitPofB/Makefile.am deleted file mode 100644 index be500d10..00000000 --- a/src/external/libFitPofB/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = classes diff --git a/src/external/libFitPofB/classes/Makefile.am b/src/external/libFitPofB/classes/Makefile.am deleted file mode 100644 index 0726d0d0..00000000 --- a/src/external/libFitPofB/classes/Makefile.am +++ /dev/null @@ -1,80 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - ../include/TBofZCalc.h \ - ../include/TBulkTriVortexFieldCalc.h \ - ../include/TLondon1D.h \ - ../include/TPofBCalc.h \ - ../include/TPofTCalc.h \ - ../include/TSkewedGss.h \ - ../include/TVortex.h - -h_linkdef = \ - ../include/TLondon1DLinkDef.h \ - ../include/TVortexLinkDef.h \ - ../include/TSkewedGssLinkDef.h - -dict_h_sources = \ - TLondon1DDict.h \ - TSkewedGssDict.h \ - TVortexDict.h - -cpp_sources = \ - TBulkTriVortexFieldCalc.cpp \ - TBofZCalc.cpp \ - TLondon1D.cpp \ - TPofBCalc.cpp \ - TPofTCalc.cpp \ - TSkewedGss.cpp \ - TVortex.cpp - -dict_cpp_sources = \ - TLondon1DDict.cpp \ - TSkewedGssDict.cpp \ - TVortexDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - TLondon1DDict_rdict.pcm \ - TSkewedGssDict_rdict.pcm \ - TVortexDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I../include $(BMWTOOLS_CFLAGS) $(LEM_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ ../include/*~ core - -%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libFitPofB.la - -libFitPofB_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libFitPofB_la_LIBADD = $(BMWTOOLS_LIBS) $(LEM_LIBS) $(USERFCN_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS) -libFitPofB_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PTFitPofB.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libFitPofB.dylib $(libdir)/libFitPofB.so -uninstall-hook: - rm -f $(libdir)/libFitPofB.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygFitPofB-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libFitPofB.so -uninstall-hook: - rm -f $(libdir)/libFitPofB.so -endif diff --git a/src/external/libGapIntegrals/INSTALL b/src/external/libGapIntegrals/INSTALL index 427a963e..d00431a5 100644 --- a/src/external/libGapIntegrals/INSTALL +++ b/src/external/libGapIntegrals/INSTALL @@ -4,7 +4,7 @@ Installation of the musrfit-plugin "libGapIntegrals" -* Configure musrfit with the option --enable-BMWlibs and the plugin will be built. +* Configure musrfit with the option -DBMWlibs=1 and the plugin will be built. * The plugin classes can be accessed inside THEORY blocks of musrfit msr files via: diff --git a/src/external/libGapIntegrals/Makefile.am b/src/external/libGapIntegrals/Makefile.am deleted file mode 100644 index 7edbd1c3..00000000 --- a/src/external/libGapIntegrals/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - TGapIntegrals.h - -h_linkdef = \ - TGapIntegralsLinkDef.h - -dict_h_sources = \ - TGapIntegralsDict.h - -cpp_sources = \ - TGapIntegrals.cpp - -dict_cpp_sources = \ - TGapIntegralsDict.cpp - -pcmdir = $(libdir) -pcm_DATA = TGapIntegralsDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(BMWTOOLS_CFLAGS) $(PMUSR_CFLAGS) $(GSL_CFLAGS) -I$(ROOTINCDIR) $(CUBA_CFLAGS) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libGapIntegrals.la - -libGapIntegrals_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libGapIntegrals_la_LIBADD = $(BMWTOOLS_LIBS) $(USERFCN_LIBS) $(GSL_LIBS) $(ROOT_LIBS) $(CUBA_LIBS) -libGapIntegrals_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = GapIntegrals.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libGapIntegrals.dylib $(libdir)/libGapIntegrals.so -uninstall-hook: - rm -f $(libdir)/libGapIntegrals.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygGapIntegrals-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libGapIntegrals.so -uninstall-hook: - rm -f $(libdir)/libGapIntegrals.so -endif diff --git a/src/external/libGbGLF/CMakeLists.txt b/src/external/libGbGLF/CMakeLists.txt new file mode 100644 index 00000000..8b0b0eaf --- /dev/null +++ b/src/external/libGbGLF/CMakeLists.txt @@ -0,0 +1,64 @@ +# GbGLF library --------------------------------------------------------------- + +#--- generate necessary dictionaries ------------------------------------------ +set(MUSRFIT_INC ${CMAKE_SOURCE_DIR}/src/include) +set(GBGLF_INC ${CMAKE_SOURCE_DIR}/src/external/libGbGLF) +set(PREFIX_INC ${CMAKE_INSTALL_PREFIX}/include) + +root_generate_dictionary( + PGbGLFDict + -I${GBGLF_INC} + -I${CMAKE_CURRENT_SOURCE_DIR} + -I${PREFIX_INC} + PGbGLF.h + LINKDEF PGbGLFLinkDef.h + OPTIONS -inlineInputHeader + MODULE PGbGLF +) + +#--- create pkg-config info --------------------------------------------------- +set(PGBGLF_VERSION "1.0.0") +# nothing more for now + +#--- lib creation ------------------------------------------------------------- +add_library(PGbGLF SHARED + PGbGLF.cpp + PGbGLFDict.cxx +) +#--- make sure that the include directory is found ---------------------------- +target_include_directories( + PGbGLF BEFORE PRIVATE + $ + $ + $ +) + +#--- set target properties, e.g. version -------------------------------------- +set_target_properties(PGbGLF + PROPERTIES + VERSION ${PGBGLF_VERSION} +) + +#--- add library dependencies ------------------------------------------------- +target_link_libraries(PGbGLF ${FFTW3_LIBRARY} ${ROOT_LIBRARIES} PUserFcnBase) + +#--- install PGbGLF solib ----------------------------------------------------- +install(TARGETS PGbGLF DESTINATION lib) + +#--- install root pcm's and rootmaps ------------------------------------------ +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/libPGbGLF_rdict.pcm + ${CMAKE_CURRENT_BINARY_DIR}/libPGbGLF.rootmap + DESTINATION lib +) + +#--- install PGbGLF header ---------------------------------------------------- +install( + FILES + PGbGLF.h + DESTINATION + include +) + +#--- install pkg-config info -------------------------------------------------- +# nothing here for now diff --git a/src/external/libGbGLF/Makefile.am b/src/external/libGbGLF/Makefile.am deleted file mode 100644 index 61c9d2bc..00000000 --- a/src/external/libGbGLF/Makefile.am +++ /dev/null @@ -1,56 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - PGbGLF.h - -h_linkdef = \ - PGbGLFLinkDef.h - -dict_h_sources = \ - PGbGLFDict.h - -cpp_sources = \ - PGbGLF.cpp - -dict_cpp_sources = \ - PGbGLFDict.cpp - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libGbGLF.la - -libGbGLF_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libGbGLF_la_LIBADD = $(USERFCN_LIBS) -libGbGLF_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = LFRelaxation.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libGbGLF.dylib $(libdir)/libGbGLF.so -uninstall-hook: - rm -f $(libdir)/libGbGLF.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygGbGLF-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libGbGLF.so -uninstall-hook: - rm -f $(libdir)/libGbGLF.so -endif diff --git a/src/external/libGbGLF/doc/GbG-LF.pdf b/src/external/libGbGLF/doc/GbG-LF.pdf index f7493f5c..19fe32c8 100644 Binary files a/src/external/libGbGLF/doc/GbG-LF.pdf and b/src/external/libGbGLF/doc/GbG-LF.pdf differ diff --git a/src/external/libGbGLF/doc/GbG-LF.tex b/src/external/libGbGLF/doc/GbG-LF.tex index 96cf3370..0161a4be 100644 --- a/src/external/libGbGLF/doc/GbG-LF.tex +++ b/src/external/libGbGLF/doc/GbG-LF.tex @@ -89,7 +89,7 @@ The Gauss-Kubo-Toyabe LF polarization function is \noindent In Ref.\cite{yaouanc2011} a slightly different notation is used: $\sigma \to \Delta_{\rm G}$, $\sigma_0 \to \Delta_{0}$, and $\sigma_1 \to \Delta_{\rm GbG}$. -\noindent The GbG LF polarizatio function is given by +\noindent The GbG LF polarization function is given by \begin{equation} P_{Z,{\rm GbG}}^{\rm LF} = \int_0^\infty d\sigma \left\{ \varrho \cdot P_{Z,{\rm GKT}}^{\rm LF} \right\}. diff --git a/src/external/libLFRelaxation/Makefile.am b/src/external/libLFRelaxation/Makefile.am deleted file mode 100644 index 3b6ca9f3..00000000 --- a/src/external/libLFRelaxation/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - TLFRelaxation.h - -h_linkdef = \ - TLFRelaxationLinkDef.h - -dict_h_sources = \ - TLFRelaxationDict.h - -cpp_sources = \ - TLFRelaxation.cpp - -dict_cpp_sources = \ - TLFRelaxationDict.cpp - -pcmdir = $(libdir) -pcm_DATA = TLFRelaxationDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(BMWTOOLS_CFLAGS) $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) $(GSL_CFLAGS) -I$(ROOTINCDIR) $(CUBA_CFLAGS) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libLFRelaxation.la - -libLFRelaxation_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libLFRelaxation_la_LIBADD = $(BMWTOOLS_LIBS) $(USERFCN_LIBS) $(FFTW3_LIBS) $(GSL_LIBS) $(ROOT_LIBS) $(CUBA_LIBS) -libLFRelaxation_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = LFRelaxation.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libLFRelaxation.dylib $(libdir)/libLFRelaxation.so -uninstall-hook: - rm -f $(libdir)/libLFRelaxation.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygLFRelaxation-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libLFRelaxation.so -uninstall-hook: - rm -f $(libdir)/libLFRelaxation.so -endif diff --git a/src/external/libLFRelaxation/README b/src/external/libLFRelaxation/README index d8bddc0e..2a9f978a 100644 --- a/src/external/libLFRelaxation/README +++ b/src/external/libLFRelaxation/README @@ -8,7 +8,7 @@ Implementation of a userFcn-interface to Gaussian and Lorentzian static and dyna At the moment this is a simple alternative implementation to the functions provided by musrfit itself. Mostly, this effort should be regarded as a design study which is not really indended for production use. -If musrfit has been configured with --enable-BMWlibs the functions can be called as: +If musrfit has been configured with -DBMWlibs=1 the functions can be called as: userFcn libLFRelaxation TLFStatGssKT 1 2 (frequency rate) userFcn libLFRelaxation TLFStatExpKT 1 2 (frequency rate) diff --git a/src/external/libPhotoMeissner/Makefile.am b/src/external/libPhotoMeissner/Makefile.am deleted file mode 100644 index be500d10..00000000 --- a/src/external/libPhotoMeissner/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = classes diff --git a/src/external/libPhotoMeissner/classes/Makefile.am b/src/external/libPhotoMeissner/classes/Makefile.am deleted file mode 100644 index 162fa3cd..00000000 --- a/src/external/libPhotoMeissner/classes/Makefile.am +++ /dev/null @@ -1,67 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - ../include/PStartupHandler_PM.h \ - ../include/PPhotoMeissner.h - -h_linkdef = \ - ../include/PStartupHandler_PMLinkDef.h \ - ../include/PPhotoMeissnerLinkDef.h - -dict_h_sources = \ - ../include/PStartupHandler_PMDict.h \ - ../include/PPhotoMeissnerDict.h - -cpp_sources = \ - PStartupHandler_PM.cpp \ - PPhotoMeissner.cpp - -dict_cpp_sources = \ - PStartupHandler_PMDict.cpp \ - PPhotoMeissnerDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - PPhotoMeissnerDict_rdict.pcm \ - PStartupHandler_PMDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I../include $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) $(GSL_CFLAGS) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = ../classes/*Dict* ../include/*Dict.* *~ core - -%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libPPhotoMeissner.la - -libPPhotoMeissner_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libPPhotoMeissner_la_LIBADD = $(USERFCN_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS) $(GSL_LIBS) -libPPhotoMeissner_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PPhotoMeissner.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libPPhotoMeissner.dylib $(libdir)/libPPhotoMeissner.so -uninstall-hook: - rm -f $(libdir)/libPPhotoMeissner.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygPPhotoMeissner-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libPSpinValve.so -uninstall-hook: - rm -f $(libdir)/libPPhotoMeissner.so -endif - diff --git a/src/external/libSpinValve/Makefile.am b/src/external/libSpinValve/Makefile.am deleted file mode 100644 index be500d10..00000000 --- a/src/external/libSpinValve/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = classes diff --git a/src/external/libSpinValve/classes/Makefile.am b/src/external/libSpinValve/classes/Makefile.am deleted file mode 100644 index f88b337f..00000000 --- a/src/external/libSpinValve/classes/Makefile.am +++ /dev/null @@ -1,67 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - ../include/PStartupHandler_SV.h \ - ../include/PSkewedLorentzian.h - -h_linkdef = \ - ../include/PStartupHandler_SVLinkDef.h \ - ../include/PSkewedLorentzianLinkDef.h - -dict_h_sources = \ - ../include/PStartupHandler_SVDict.h \ - ../include/PSkewedLorentzianDict.h - -cpp_sources = \ - PStartupHandler_SV.cpp \ - PSkewedLorentzian.cpp - -dict_cpp_sources = \ - PStartupHandler_SVDict.cpp \ - PSkewedLorentzianDict.cpp - -pcmdir = $(libdir) -pcm_DATA = \ - PStartupHandler_SVDict_rdict.pcm \ - PSkewedLorentzianDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I../include $(PMUSR_CFLAGS) $(FFTW3_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = ../classes/*Dict.* ../include/*Dict.* *~ core - -%Dict.cpp %Dict.h: ../include/%.h ../include/%LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libPSpinValve.la - -libPSpinValve_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libPSpinValve_la_LIBADD = $(USERFCN_LIBS) $(FFTW3_LIBS) $(ROOT_LIBS) -libPSpinValve_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = PSpinValve.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libPSpinValve.dylib $(libdir)/libPSpinValve.so -uninstall-hook: - rm -f $(libdir)/libPSpinValve.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygPSpinValve-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libPSpinValve.so -uninstall-hook: - rm -f $(libdir)/libPSpinValve.so -endif - diff --git a/src/external/libZFRelaxation/Makefile.am b/src/external/libZFRelaxation/Makefile.am deleted file mode 100644 index 8389b0bf..00000000 --- a/src/external/libZFRelaxation/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - ZFRelaxation.h - -h_linkdef = \ - ZFRelaxationLinkDef.h - -dict_h_sources = \ - ZFRelaxationDict.h - -cpp_sources = \ - ZFRelaxation.cpp - -dict_cpp_sources = \ - ZFRelaxationDict.cpp - -pcmdir = $(libdir) -pcm_DATA = ZFRelaxationDict_rdict.pcm - -include_HEADERS = $(h_sources) -noinst_HEADERS = $(h_linkdef) $(dict_h_sources) - -AM_CPPFLAGS = -I$(top_srcdir)/src/include $(BMWTOOLS_CFLAGS) $(PMUSR_CFLAGS) -I$(ROOTINCDIR) -AM_CXXFLAGS = $(LOCAL_LIB_CXXFLAGS) - -BUILT_SOURCES = $(dict_cpp_sources) $(dict_h_sources) -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -L@ROOTLIBDIR@ -CLEANFILES = *Dict.cpp *Dict.h *Dict* *~ core - -%Dict.cpp %Dict.h: %.h %LinkDef.h - @ROOTCLING@ -v -f $*Dict.cpp -c -p $(AM_CPPFLAGS) $^ - -lib_LTLIBRARIES = libZFRelaxation.la - -libZFRelaxation_la_SOURCES = $(h_sources) $(cpp_sources) $(dict_h_sources) $(dict_cpp_sources) -libZFRelaxation_la_LIBADD = $(BMWTOOLS_LIBS) $(USERFCN_LIBS) $(GSL_LIBS) $(ROOT_LIBS) -libZFRelaxation_la_LDFLAGS = -version-info $(PLUGIN_LIBRARY_VERSION) -release $(PLUGIN_RELEASE) $(AM_LDFLAGS) - -## For the moment do not build pkgconfig files for musrfit plug-ins... -## pkgconfigdir = $(libdir)/pkgconfig -## pkgconfig_DATA = ZFRelaxation.pc - -## However, create some symbolic links to the shared library -## in order to unify the function call on different operating systems - -if IS_DARWIN -install-exec-hook: - $(LN_S) -f $(libdir)/libZFRelaxation.dylib $(libdir)/libZFRelaxation.so -uninstall-hook: - rm -f $(libdir)/libZFRelaxation.so -endif - -if IS_CYGWIN -install-exec-hook: - $(LN_S) -f $(bindir)/cygZFRelaxation-$(PLUGIN_MAJOR_VERSION)-$(PLUGIN_MINOR_VERSION)-$(PLUGIN_MAJOR_VERSION).dll $(libdir)/libZFRelaxation.so -uninstall-hook: - rm -f $(libdir)/libZFRelaxation.so -endif diff --git a/src/external/mud/Makefile.am b/src/external/mud/Makefile.am deleted file mode 100644 index 2cad62a2..00000000 --- a/src/external/mud/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ - -SUBDIRS = src diff --git a/src/external/mud/src/Makefile.am b/src/external/mud/src/Makefile.am deleted file mode 100644 index 4faa5b9e..00000000 --- a/src/external/mud/src/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = mud.h -cpp_sources = mud_all.c \ - mud.c \ - mud_encode.c \ - mud_friendly.c \ - mud_gen.c \ - mud_new.c \ - mud_tri_ti.c - -include_HEADERS = mud.h - -AM_CPPFLAGS = -I. -AM_CFLAGS = $(LOCAL_MUD_LIB_CFLAGS) - -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -CLEANFILES = *~ core - -lib_LTLIBRARIES = libmud.la - -libmud_la_SOURCES = $(h_sources) $(cpp_sources) -libmud_la_LDFLAGS = $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = mud.pc - diff --git a/src/external/nexus/Makefile.am b/src/external/nexus/Makefile.am deleted file mode 100644 index 31ea2254..00000000 --- a/src/external/nexus/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -## Process this file with automake to create Makefile.in - -h_sources = \ - PNeXus.h - -cpp_sources = \ - PNeXus.cpp - -include_HEADERS = $(h_sources) - -AM_CPPFLAGS = $(HDF5_CFLAGS) $(NEXUS_CFLAGS) -AM_CXXFLAGS = $(LOCAL_PNEXUS_LIB_CXXFLAGS) - -AM_LDFLAGS = $(LOCAL_LIB_LDFLAGS) -CLEANFILES = *~ core - -lib_LTLIBRARIES = libPNeXus.la - -libPNeXus_la_SOURCES = $(h_sources) $(cpp_sources) -libPNeXus_la_LIBADD = $(NEXUS_LIBS) -libPNeXus_la_LDFLAGS = -version-info $(PNEXUS_LIBRARY_VERSION) -release $(PNEXUS_RELEASE) $(AM_LDFLAGS) - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = PNeXus.pc - diff --git a/src/musredit/Makefile.am b/src/musredit/Makefile.am deleted file mode 100644 index b940078e..00000000 --- a/src/musredit/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -## Process this file with automake to create Makefile.in - -CLEANFILES = *~ core moc_* ui_* - - diff --git a/src/musredit_qt5/Makefile.am b/src/musredit_qt5/Makefile.am deleted file mode 100644 index 5b8f3d2e..00000000 --- a/src/musredit_qt5/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -## Process this file with automake to create Makefile.in - -CLEANFILES = *~ core moc_* ui_* - diff --git a/src/musrgui/Makefile.am b/src/musrgui/Makefile.am deleted file mode 100644 index 2f509505..00000000 --- a/src/musrgui/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -## Process this file with automake to create Makefile.in - -CLEANFILES = *~ core - -