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; -*- # -*- mode: autoconf; -*-
# lalsuite_build.m4 - top level build macros # lalsuite_build.m4 - top level build macros
# #
# serial 135 # serial 136
# restrict which LALSUITE_... patterns can appearing in output (./configure); # restrict which LALSUITE_... patterns can appearing in output (./configure);
# useful for debugging problems with unexpanded LALSUITE_... Autoconf macros # useful for debugging problems with unexpanded LALSUITE_... Autoconf macros
...@@ -691,10 +691,24 @@ AC_DEFUN([LALSUITE_CHECK_LIBRARY_FOR_SUPPORT],[ ...@@ -691,10 +691,24 @@ AC_DEFUN([LALSUITE_CHECK_LIBRARY_FOR_SUPPORT],[
save_CPPFLAGS="${CPPFLAGS}" save_CPPFLAGS="${CPPFLAGS}"
LALSUITE_CLEAR_UVARS LALSUITE_CLEAR_UVARS
CPPFLAGS="${save_CPPFLAGS}" 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_MSG_CHECKING([whether $1 has been compiled with $2 support])
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
AC_LANG_SOURCE([[ AC_LANG_SOURCE([[
#ifdef LALSUITE_BUILD
#include "$1Config.h"
#else
#include <lal/$1Config.h> #include <lal/$1Config.h>
#endif
#ifndef ]uppercase[_$2_ENABLED #ifndef ]uppercase[_$2_ENABLED
#error ]uppercase[_$2_ENABLED is not defined #error ]uppercase[_$2_ENABLED is not defined
#endif #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