Commit bd4c6133 authored by Karl Wette's avatar Karl Wette
Browse files

lalframe/lib/LALFrameU.c: use correct Autoconf-defined symbol

- Symbols defined by AC_CHECK_LIB() are always HAVE_LIB<library>
parent ba78224d
...@@ -31,7 +31,7 @@ enum { ...@@ -31,7 +31,7 @@ enum {
}; };
/* enable FrameL support if available */ /* enable FrameL support if available */
#if defined HAVE_FRAMEL_H && defined HAVE_FRAMEL #if defined HAVE_FRAMEL_H && defined HAVE_LIBFRAMEL
# include "LALFrameUFrameL.h" # include "LALFrameUFrameL.h"
# define CASE_FRAMEL(errval, function, ...) case LAL_FRAMEU_FRAME_LIBRARY_FRAMEL: return function ## _FrameL_ (__VA_ARGS__) # define CASE_FRAMEL(errval, function, ...) case LAL_FRAMEU_FRAME_LIBRARY_FRAMEL: return function ## _FrameL_ (__VA_ARGS__)
# ifndef LAL_FRAMEU_FRAME_LIBRARY_DEFAULT # ifndef LAL_FRAMEU_FRAME_LIBRARY_DEFAULT
...@@ -88,7 +88,7 @@ static int XLALFrameLibrary(void) ...@@ -88,7 +88,7 @@ static int XLALFrameLibrary(void)
const char *env = getenv("LAL_FRAME_LIBRARY"); const char *env = getenv("LAL_FRAME_LIBRARY");
if (env) { if (env) {
if (strcmp(env, "FrameL") == 0) { if (strcmp(env, "FrameL") == 0) {
#if defined HAVE_FRAMEL_H && defined HAVE_FRAMEL #if defined HAVE_FRAMEL_H && defined HAVE_LIBFRAMEL
lalFrameLibrary = LAL_FRAMEU_FRAME_LIBRARY_FRAMEL; lalFrameLibrary = LAL_FRAMEU_FRAME_LIBRARY_FRAMEL;
#else #else
XLAL_ERROR_VAL(LAL_FRAMEU_FRAME_LIBRARY_UNAVAILABLE, XLAL_ESYS, XLAL_ERROR_VAL(LAL_FRAMEU_FRAME_LIBRARY_UNAVAILABLE, XLAL_ESYS,
......
Supports Markdown
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