Commit 5bc8a42c authored by Miroslav Shaltev's avatar Miroslav Shaltev
Browse files

compile against LAL 6.17.0.1

parent 045c9041
AC_PREREQ([2.63])
AC_INIT([cwseaoptifol],[6.11.1.1],[miroslav.shaltev@aei.mpg.de])
AC_INIT([cwseaoptifol],[6.17.0.1],[miroslav.shaltev@aei.mpg.de])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_SRCDIR([src/lalapps/lalapps.c])
AC_CONFIG_AUX_DIR([misc])
......@@ -25,6 +25,14 @@ AH_BOTTOM([
#endif /* CONFIG_H */
])
# version requirements
MIN_LAL_VERSION="6.17.0"
MIN_LALPULSAR_VERSION="1.15.0"
AC_SUBST([MIN_LAL_VERSION])
AC_SUBST([MIN_LALPULSAR_VERSION])
LT_INIT()
AC_CANONICAL_HOST
LALSUITE_ARG_VAR
......@@ -40,11 +48,7 @@ LALAPPS_WITH_EXTRA_CFLAGS
LALAPPS_WITH_EXTRA_LDFLAGS
LALAPPS_WITH_EXTRA_LIBS
LALSUITE_ENABLE_DEBUG
LALSUITE_ENABLE_GCC_FLAGS
LALSUITE_ENABLE_NIGHTLY
LALAPPS_ENABLE_STATIC_BINARIES
LALAPPS_ENABLE_NOMAD
......@@ -53,10 +57,6 @@ LALAPPS_ENABLE_OPENMP
LALSUITE_ENABLE_LALPULSAR
#LALAPPS_ENABLE_OPTPP
#LALAPPS_ENABLE_NLOPT
# put version/configure info in config header
lalapps_version_major=`echo "$VERSION" | cut -d. -f1`
lalapps_version_minor=`echo "$VERSION" | cut -d. -f2`
......@@ -94,8 +94,12 @@ LALSUITE_MULTILIB_LIBTOOL_HACK
# use silent build rules
AM_SILENT_RULES([yes])
BOOST_REQUIRE
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
# check for C/C++ compilers
LALSUITE_PROG_CC_CXX
LALSUITE_PROG_COMPILERS
AC_PROG_CXX
# check for MPI compiler
......@@ -128,7 +132,7 @@ AC_CHECK_PROGS([LATEX],[pdflatex latex],[echo])
AC_CHECK_PROGS([MKIND],[makeindex],[echo])
AC_CHECK_PROGS([DVIPS],[dvips],[echo])
AC_CHECK_PROGS([BIBTEX],[bibtex],[echo])
AM_PATH_PYTHON([2.6],,[:])
AM_PATH_PYTHON([2.7],,[:])
AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != :])
# check for supported mac os x version
......@@ -160,6 +164,14 @@ LALSUITE_ENABLE_FAST_GSL
# check for gsl headers
AC_CHECK_HEADERS([gsl/gsl_errno.h],,[AC_MSG_ERROR([could not find the gsl/gsl_errno.h header])])
AC_LANG_PUSH([C++])
# check for lal libararies and headers
LALSUITE_CHECK_LIB([LAL],[${MIN_LAL_VERSION}],[XLALPerror],[lal/XLALError.h])
LALSUITE_CHECK_OPT_LIB([LALPulsar],[${MIN_LALPULSAR_VERSION}],[XLALComputeFstat],[lal/ComputeFstat.h])
CPPFLAGS="$CPPFLAGS $LAL_CFLAGS $LALPULSAR_CFLAGS"
# check for nomad
if test "${nomad}" = "true" ; then
PKG_CHECK_MODULES([NOMAD],[nomad],[true],[false])
......@@ -175,56 +187,6 @@ fi
LALSUITE_ENABLE_MODULE([NOMAD],[nomad])
# use c++ mode for boinc build
if test "${boinc}" = "true" ; then
AC_LANG_PUSH([C++])
fi
# check for lal libararies and headers
LALSUITE_CHECK_LIB([LAL],[6.9.0],[LALVersion],[lal/LALStdio.h])
#LALSUITE_CHECK_LIB([LALSupport],[6.9.0],[LALOpenDataFile],[lal/FileIO.h])
LALSUITE_CHECK_LIB([LALPulsar],[1.9.0],[XLALComputeFstat],[lal/ComputeFstat.h])
BOOST_REQUIRE
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
## check for optpp
#if test "${optpp}" = "true" ; then
# PKG_CHECK_MODULES([OPTPP],[optpp],[true],[false])
# do compilation checks with c++
# AC_LANG_PUSH([C++])
# lal_pre_optpp_LIBS="$LIBS"
# LIBS="$LIBS $OPTPP_LIBS"
# CPPFLAGS="$CPPFLAGS $OPTPP_CFLAGS"
# lal_pre_optpp_VERSION="$VERSION"
# AC_CHECK_HEADER([Opt.h],,[optpp="false"][CPPFLAGS="$lal_pre_optpp_CPPFLAGS" LIBS="$lal_pre_optpp_LIBS"],[#undef VERSION])
# AC_LANG_POP([C++])
#fi
#LALSUITE_ENABLE_MODULE([OPTPP],[optpp])
# check for nlopt
#if test "${nlopt}" = "true" ; then
# PKG_CHECK_MODULES([NLOPT],[nlopt],[true],[false])
# # do compilation checks with c++
# AC_LANG_PUSH([C++])
# lal_pre_nlopt_LIBS="$LIBS"
# LIBS="$LIBS $NLOPT_LIBS"
# CPPFLAGS="$CPPFLAGS $NLOPT_CFLAGS"
# lal_pre_nlopt_VERSION="$VERSION"
# AC_CHECK_HEADER([nlopt.hpp],,[nlopt="false"][CPPFLAGS="$lal_pre_nlopt_CPPFLAGS" LIBS="$lal_pre_nlopt_LIBS"],[#undef VERSION])
# AC_LANG_POP([C++])
#fi
#LALSUITE_ENABLE_MODULE([NLOPT],[nlopt])
# back to c mode
if test "${boinc}" = "true" ; then
AC_LANG_POP([C++])
fi
# check for qthread
LALAPPS_CHECK_QTHREAD
......@@ -243,6 +205,8 @@ AC_DEFINE_UNQUOTED([PREFIX],["$prefix"],[Install prefix])
# add gcc specific flags
LALSUITE_ADD_GCC_FLAGS
# link any executables against LALApps library
AC_SUBST([LDADD], ["\$(top_builddir)/src/lalapps/liblalapps.la"])
# add -all-static to AM_LDFLAGS for --enable-static-binaries
if test "${static_binaries}" = "true"; then
......@@ -257,7 +221,6 @@ if test "${allstatic}" = "true" ; then
fi
AC_OUTPUT
echo "=================================================================
......@@ -270,6 +233,7 @@ echo "=================================================================
and will be installed under the directory:
${CPPFLAGS}
${prefix}
Now run 'make' to build CWSeaOptiFol
......
......@@ -5,7 +5,7 @@
%define _pkgpyexecdir %{_libdir}/python2.6/site-packages/cwseaoptifol
Name: cwseaoptifol
Version: 6.11.1.1
Version: 6.17.0.1
Release: 1
Summary: LSC Algorithm Library Applications
License: GPL
......@@ -27,7 +27,7 @@ Algorithm Library.
%setup -q
%build
nightly_version=
nightly_version=@NIGHTLY_VERSION@
%configure --enable-nightly=${nightly_version:-no} --disable-gcc-flags --disable-debug
%{__make} V=1
......
# source this file to access 'cwseaoptifol'
if ( ! ${?LAL_DATA_PATH} ) setenv LAL_DATA_PATH
setenv LAL_DATA_PATH `echo ":${LAL_DATA_PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/cwseaoptifol:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv LAL_DATA_PATH "/home/shaltev/cwsof/share/cwseaoptifol:${LAL_DATA_PATH}"
if ( ! ${?PYTHONPATH} ) setenv PYTHONPATH
setenv PYTHONPATH `echo ":${PYTHONPATH}:" | /bin/sed 's|::*|:|g;s|^:||;s|:$||'`
setenv PYTHONPATH "${PYTHONPATH}"
if ( ! ${?MANPATH} ) setenv MANPATH
setenv MANPATH `echo ":${MANPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/man:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv MANPATH "/home/shaltev/cwsof/share/man:${MANPATH}"
if ( ! ${?PATH} ) setenv PATH
setenv PATH `echo ":${PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/bin:|:|;s|::*|:|g;s|^:||;s|:$||'`
setenv PATH "/home/shaltev/cwsof/bin:${PATH}"
# source this file to access 'cwseaoptifol'
LAL_DATA_PATH=`echo ":${LAL_DATA_PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/cwseaoptifol:|:|;s|::*|:|g;s|^:||;s|:$||'`
LAL_DATA_PATH="/home/shaltev/cwsof/share/cwseaoptifol:${LAL_DATA_PATH}"
export LAL_DATA_PATH
PYTHONPATH=`echo ":${PYTHONPATH}:" | /bin/sed 's|::*|:|g;s|^:||;s|:$||'`
PYTHONPATH="${PYTHONPATH}"
export PYTHONPATH
MANPATH=`echo ":${MANPATH}:" | /bin/sed 's|:/home/shaltev/cwsof/share/man:|:|;s|::*|:|g;s|^:||;s|:$||'`
MANPATH="/home/shaltev/cwsof/share/man:${MANPATH}"
export MANPATH
PATH=`echo ":${PATH}:" | /bin/sed 's|:/home/shaltev/cwsof/bin:|:|;s|::*|:|g;s|^:||;s|:$||'`
PATH="/home/shaltev/cwsof/bin:${PATH}"
export PATH
# generic user environment script
prepend PATH /home/shaltev/cwsof/bin
prepend MANPATH /home/shaltev/cwsof/share/man
prepend PYTHONPATH
prepend LAL_DATA_PATH /home/shaltev/cwsof/share/cwseaoptifol
#!/bin/sh
default_git_path=git
default_am_v_gen=
git_path=$default_git_path
am_v_gen=$default_am_v_gen
# print usage message and exit
usage() {
cat <<EOF
usage: $0 [options] package_name output_file source_file
options [defaults in brackets]:
-h, --help display this help and exit
--git-path=GIT path to git program [$default_git_path]
--am-v-gen=\$(AM_V_GEN) generation message [${default_am_v_gen:-"none"}]
EOF
exit $1
}
# parse options
prev=
for option; do
if test -n "$prev" ; then
eval $prev=\$option
prev=
shift
continue
fi
case $option in
*=?*) optarg=`expr "X$option" : '[^=]*=\(.*\)'` ;;
*=) optarg= ;;
*) optarg=yes ;;
esac
case $option in
-help | --help | --hel | --he | -h) usage 0;;
--git-path) prev=git_path;;
--git-path=*) git_path=$optarg;;
--am-v-gen) prev=am_v_gen;;
--am-v-gen=*) am_v_gen=$optarg;;
-*) echo "unrecognized option \`$option'" 1>&2; usage 1;;
*) break;; # a non-option: done with option parsing
esac
shift
done
if test -n "$prev"; then
option=--`echo $prev | sed 's/_/-/g'`
echo "missing argument to $option" 1>&2
exit 1
fi
# make sure there the right number of remaining arguments
if test $# != 3; then
echo "wrong number of arguments" 1>&2
usage 1
fi
# set argument variables
am_v_gen="`expr "X$am_v_gen" : 'X\([ ]*GEN[ ]*\)'`"
package="${1?"package_name not set"}"
output="${2?"output_file not set"}"
source="${3?"input_file not set"}"
srcdir="`dirname "$source"`"
# use git log to get the important fields
git_id="`cd "$srcdir" && $git_path log -1 --pretty=format:%H`"
git_date="`cd "$srcdir" && env LC_TIME=C TZ=GMT0 $git_path log -1 --date=local --pretty=format:%cd`"
git_author="`cd "$srcdir" && $git_path log -1 --pretty=format:"%an <%ae>"`"
git_committer="`cd "$srcdir" && $git_path log -1 --pretty=format:"%cn <%ce>"`"
# extract relevant fields of %c date format
git_date_mon=`echo "$git_date" | cut -d " " -f2`
git_date_day=`echo "$git_date" | cut -d " " -f3`
git_date_hms=`echo "$git_date" | cut -d " " -f4`
git_date_year=`echo "$git_date" | cut -d " " -f5`
# convert month name to number
case "$git_date_mon" in
Jan) git_date_mon=01;; Feb) git_date_mon=02;; Mar) git_date_mon=03;;
Apr) git_date_mon=04;; May) git_date_mon=05;; Jun) git_date_mon=06;;
Jul) git_date_mon=07;; Aug) git_date_mon=08;; Sep) git_date_mon=09;;
Oct) git_date_mon=10;; Nov) git_date_mon=11;; Dec) git_date_mon=12;;
esac
# ISO-8601 representation of date in UTC
git_date="$git_date_year-$git_date_mon-$git_date_day $git_date_hms +0000"
# determine git tag, if present
git_tag="`cd "$srcdir" && $git_path describe --exact-match --tags $git_id 2>/dev/null || echo "None"`"
# determine git branch
git_branch="`cd "$srcdir" && $git_path rev-parse --symbolic-full-name HEAD 2>/dev/null`"
case "$git_branch" in
HEAD) git_branch="None";;
*) git_branch="`basename "$git_branch"`";;
esac
# update index
(cd "$srcdir" && $git_path update-index -q --refresh)
# determine state of git repository
if ! eval "(cd \"$srcdir\" && $git_path diff-files --quiet)"; then
git_clean=UNCLEAN
git_status="$git_clean: Modified working tree"
elif ! eval "(cd \"$srcdir\" && $git_path diff-index --cached --quiet HEAD)"; then
git_clean=UNCLEAN
git_status="$git_clean: Modified index"
else
git_clean=CLEAN
git_status="$git_clean: All modifications committed"
fi
# determine builder
git_builder_name="`cd "$srcdir" && $git_path config user.name 2>/dev/null || echo "Unknown User"`"
git_builder_email="`cd "$srcdir" && $git_path config user.email 2>/dev/null`"
git_builder="$git_builder_name <$git_builder_email>"
# transliterate package name
LALPackage=$package
LALPACKAGE=`echo $package | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
lalpackage=`echo $package | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
package=`echo $package | sed 's/^LAL//'`
# determine appropriate header files
if test "$lalpackage" = "lalapps"; then
pkg_vcs_info_header="${LALPackage}VCSInfo.h"
pkg_config_header="config.h"
else
pkg_vcs_info_header="lal/${LALPackage}VCSInfo.h"
pkg_config_header="lal/${LALPackage}Config.h"
fi
# sed command to apply to source file
sedcmd=":t
s%@PACKAGE_NAME@%$LALPackage%;t t
s%@PACKAGE_NAME_UCASE@%$LALPACKAGE%;t t
s%@PACKAGE_NAME_LCASE@%$lalpackage%;t t
s%@PACKAGE_NAME_NOLAL@%$package%;t t
s%@PACKAGE_VCS_INFO_HEADER@%$pkg_vcs_info_header%;t t
s%@PACKAGE_CONFIG_HEADER@%$pkg_config_header%;t t
s%@ID@%$git_id%;t t
s%@DATE@%$git_date%;t t
s%@BRANCH@%$git_branch%;t t
s%@TAG@%$git_tag%;t t
s%@AUTHOR@%$git_author%;t t
s%@COMMITTER@%$git_committer%;t t
s%@CLEAN@%$git_clean%;t t
s%@STATUS@%$git_status%;t t
s%@BUILDER@%$git_builder%;t t
"
# use sed to perform substitutions; store in a temporary file
test -f "$output.tmp" && rm -f "$output.tmp"
sed "$sedcmd" "$source" > "$output.tmp"
# determine if output file needs to be modified
if test -r "$output" && cmp "$output" "$output.tmp" >/dev/null; then
rm -f "$output.tmp"
else
mv -f "$output.tmp" "$output"
test -n "$am_v_gen" && echo "$am_v_gen $output"
fi
exit 0
# lalapps.m4 - lalapps specific autoconf macros
#
# serial 9
AC_DEFUN([LALAPPS_WITH_EXTRA_CPPFLAGS],
[AC_ARG_WITH(
[extra_cppflags],
AC_HELP_STRING([--with-extra-cppflags=CPPFLAGS],[additional C preprocessor flags]),
[ if test -n "${with_extra_cppflags}"
then
CPPFLAGS="$CPPFLAGS ${with_extra_cppflags}";
fi
],)
])
AC_DEFUN([LALAPPS_WITH_LAL_PREFIX],
[AC_ARG_WITH(
[lal_prefix],
AC_HELP_STRING([--with-lal-prefix=LAL_PREFIX],[location where to find LAL installation]),
[ if test -n "${with_lal_prefix}"
then
LAL_PREFIX="${with_lal_prefix}"
fi
],)
])
AC_DEFUN([LALAPPS_WITH_EXTRA_CFLAGS],
[AC_ARG_WITH(
[extra_cflags],
AC_HELP_STRING([--with-extra-cflags=CFLAGS],[additional C compiler flags]),
[ if test -n "${with_extra_cflags}"
then
CFLAGS="$CFLAGS ${with_extra_cflags}";
fi
],)
])
AC_DEFUN([LALAPPS_WITH_EXTRA_LDFLAGS],
[AC_ARG_WITH(
[extra_ldflags],
AC_HELP_STRING([--with-extra-ldflags=LDFLAGS],[additional linker flags]),
[ if test -n "${with_extra_ldflags}"
then
LDFLAGS="$LDFLAGS ${with_extra_ldflags}";
fi
],)
])
AC_DEFUN([LALAPPS_WITH_EXTRA_LIBS],
[AC_ARG_WITH(
[extra_libs],
AC_HELP_STRING([--with-extra-libs=LIBS],[additional -l and -L linker flags]),
[ if test -n "${with_extra_libs}"
then
LIBS="$LIBS ${with_extra_libs}";
fi
],)
# serial 15
AC_DEFUN([LALAPPS_ENABLE_CONDOR], [
AC_ARG_ENABLE(
[condor],
AC_HELP_STRING([--enable-condor],[compile for use with condor @<:@default=no@:>@]),
AS_CASE(["${enableval}"],
[yes],[condor=true],
[no],[condor=false],
AC_MSG_ERROR([bad value ${enableval} for --enable-condor])
),
[condor=false]
)
AS_IF([test "x$condor" = "xtrue"],
AC_DEFINE([LALAPPS_CONDOR],[1],[LALApps is condor compiled])
)
AM_CONDITIONAL([CONDOR_ENABLED],[test "x$condor" = "xtrue"])
])
AC_DEFUN([LALAPPS_WITH_CC],
[AC_ARG_WITH(
[cc],
AC_HELP_STRING([--with-cc=CC],[use the CC C compiler]),
[ if test -n "${with_cc}"
then
CC="${with_cc}";
fi
],)
])
AC_DEFUN([LALAPPS_ENABLE_CONDOR],
[AC_ARG_ENABLE(
[condor],
AC_HELP_STRING([--enable-condor],[compile for use with condor [default=no]]),
[ case "${enableval}" in
yes) condor=true;;
no) condor=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-condor) ;;
esac
], [ condor=false ] )
])
AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES],
[AC_ARG_ENABLE(
[static_binaries],
AC_HELP_STRING([--enable-static-binaries],[build static binaries [default=no]]),
[ case "${enableval}" in
yes) static_binaries=true;;
no) static_binaries=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-static-binaries) ;;
esac
], [ static_binaries=false ] )
if test "$condor" = "true"; then
static_binaries=false
fi
if test "$boinc" = "true"; then
static_binaries=false
fi
AC_DEFUN([LALAPPS_ENABLE_STATIC_BINARIES], [
AC_REQUIRE([LALAPPS_ENABLE_CONDOR])
AC_REQUIRE([LALSUITE_ENABLE_BOINC])
AC_ARG_ENABLE(
[static_binaries],
AS_HELP_STRING([--enable-static-binaries],[build static binaries @<:@default=no, forced on for condor and boinc builds@:>@]),
AS_CASE(["${enableval}"],
[yes],[static_binaries=true],
[no],[static_binaries=false],
AC_MSG_ERROR([bad value ${enableval} for --enable-static-binaries])
),
[static_binaries=false]
)
# force on if condor or boinc build is enabled
AS_IF([test "x$static_binaries" != "xtrue" -a \( "x$condor" = "xtrue" -o "x$boinc" = "xtrue" \)], [
AC_MSG_WARN([building static binaries (forced by condor and/or boinc)])
static_binaries=true
])
# the consequences
AS_IF([test "x$static_binaries" = "xtrue"], [
AC_DISABLE_SHARED
AC_ENABLE_STATIC
])
])
AC_DEFUN([LALAPPS_ENABLE_MPI],
......@@ -110,19 +56,6 @@ AC_DEFUN([LALAPPS_ENABLE_MPI],
], [ mpi=false ] )
])
AC_DEFUN([LALAPPS_ENABLE_OPENMP],
[AC_ARG_ENABLE(
[openmp],
AC_HELP_STRING([--enable-openmp],[compile using OpenMP [default=no]]),
[ case "${enableval}" in
yes) openmp=true;;
no) openmp=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-openmp) ;;
esac
], [ openmp=false ] )
])
AC_DEFUN([LALAPPS_ENABLE_FFTW],
[AC_ARG_ENABLE(
[fftw],
......@@ -135,42 +68,53 @@ AC_DEFUN([LALAPPS_ENABLE_FFTW],
], [ fftw=true ] )
])
AC_DEFUN([LALAPPS_ENABLE_FRAME],
[AC_ARG_ENABLE(
[frame],
AC_HELP_STRING([--enable-frame],[compile code that requires Frame library [default=yes]]),
[ case "${enableval}" in
yes) frame=true;;
no) frame=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-frame) ;;
esac
], [ frame=true ] )
])
AC_DEFUN([LALAPPS_ENABLE_NOMAD],
AC_DEFUN([LALAPPS_ENABLE_METAIO],
[AC_ARG_ENABLE(
[nomad],
AC_HELP_STRING([--enable-nomad],[compile code that requires nomad library [default=no]]),
[metaio],
AC_HELP_STRING([--enable-metaio],[compile code that requires metaio library [default=yes]]),
[ case "${enableval}" in
yes) nomad=true;;
no) nomad=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-nomad) ;;
yes) metaio=true;;
no) metaio=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-metaio) ;;
esac
], [nomad=false])
], [ metaio=true ] )
])
#AC_DEFUN([LALAPPS_ENABLE_OPTPP],
#[AC_ARG_ENABLE(
#[optpp],
#AC_HELP_STRING([--enable-optpp],[compile code that requires optpp library [default=no]]),
#[ case "${enableval}" in
#yes) optpp=true;;
#no) optpp=false;;
#*) AC_MSG_ERROR(bad value ${enableval} for --enable-optpp) ;;
#esac
#], [optpp=false])
#])
AC_DEFUN([LALAPPS_ENABLE_PSS],
[AC_ARG_ENABLE(
[pss],
AC_HELP_STRING([--enable-pss],[compile code that requires pss library [default=no]]),
[ case "${enableval}" in
yes) pss=true;;
no) pss=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-pss) ;;
esac
], [pss=false])
])
#AC_DEFUN([LALAPPS_ENABLE_NLOPT],
#[AC_ARG_ENABLE(
#[nlopt],
#AC_HELP_STRING([--enable-nlopt],[compile code that requires nlopt library [default=no]]),
#[ case "${enableval}" in
#yes) nlopt=true;;
#no) nlopt=false;;
#*) AC_MSG_ERROR(bad value ${enableval} for --enable-nlopt) ;;
#esac
#], [nlopt=false])
#])
AC_DEFUN([LALAPPS_ENABLE_GDS],
[AC_ARG_ENABLE(
[gds],
AC_HELP_STRING([--enable-gds],[compile code that requires GSD library [default=no]]),
[ case "${enableval}" in
yes) gds=true;;
no) gds=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-gds) ;;
esac
], [gds=false])
])
AC_DEFUN([LALAPPS_CHECK_QTHREAD],
[AC_MSG_CHECKING([whether LAL has been compiled with Intel MKL and qthread])
......@@ -208,3 +152,51 @@ fi
,
AC_MSG_RESULT([no]),
AC_MSG_RESULT([unknown]) ) ] )
AC_DEFUN([LALAPPS_ENABLE_BAMBI],
[AC_ARG_ENABLE(
[bambi],
AC_HELP_STRING([--enable-bambi],[build LALInferenceBAMBI [default=no]]),
[ case "${enableval}" in
yes) bambi=true;;
no) bambi=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-bambi) ;;
esac
], [ bambi=false ] )
])
AC_DEFUN([LALAPPS_CHECK_BAMBI],[
PKG_CHECK_MODULES([BAMBI],[bambi],[
AC_LANG([C])
AX_CBLAS([
BAMBI_LIBS="$CBLAS_LIBS $BAMBI_LIBS"
AC_CHECK_HEADERS([cblas.h],[