There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit c2be67ff authored by Karl Wette's avatar Karl Wette

LALSUITE_CHECK_LIBRARY_FOR_SUPPORT(): fix to work with top-level build

- Refs #5380
Original: 9b2e48a3900dc6198287d80511ad65fb8664b124
parent efb19703
# -*- mode: autoconf; -*-
# lalsuite_build.m4 - top level build macros
#
# serial 135
# serial 136
# restrict which LALSUITE_... patterns can appearing in output (./configure);
# useful for debugging problems with unexpanded LALSUITE_... Autoconf macros
......@@ -691,10 +691,24 @@ AC_DEFUN([LALSUITE_CHECK_LIBRARY_FOR_SUPPORT],[
save_CPPFLAGS="${CPPFLAGS}"
LALSUITE_CLEAR_UVARS
CPPFLAGS="${save_CPPFLAGS}"
AS_IF([test "x${LALSUITE_BUILD}" = xtrue],[
for arg in ${lalsuite_libs}; do
AS_CASE([${arg}],
[lalsupport],[:],[
CPPFLAGS="-I${ac_pwd}/../${arg}/src ${CPPFLAGS}"
]
)
done
CPPFLAGS="-DLALSUITE_BUILD ${CPPFLAGS}"
])
AC_MSG_CHECKING([whether $1 has been compiled with $2 support])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([[
#ifdef LALSUITE_BUILD
#include "$1Config.h"
#else
#include <lal/$1Config.h>
#endif
#ifndef ]uppercase[_$2_ENABLED
#error ]uppercase[_$2_ENABLED is not defined
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment