From 8a774ac7ba946d83b7cb18db4432ac62cfc7a32c Mon Sep 17 00:00:00 2001 From: Eric Berquist <727571+berquist@users.noreply.github.com> Date: Wed, 8 May 2024 12:35:03 -0400 Subject: [PATCH] fix ncurses check to validate the discovered library location (#1072) --- config/sst_check_curses.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/sst_check_curses.m4 b/config/sst_check_curses.m4 index 81eb3f423..47699427b 100644 --- a/config/sst_check_curses.m4 +++ b/config/sst_check_curses.m4 @@ -44,9 +44,10 @@ AC_DEFUN([SST_CHECK_CURSES], CPPFLAGS="$CPPFLAGS $CURSES_CPPFLAGS" LDFLAGS="$LDFLAGS $CURSES_LIBS" - dnl Check for specific header + dnl Check that the specific header exists and that the config-provided lib locations are correct. AC_LANG_PUSH([C++]) AC_CHECK_HEADER([ncurses.h], [], [sst_check_curses_happy="no"]) + AC_SEARCH_LIBS([initscr], [$CURSES_LIBS], [], [sst_check_curses_happy="no"]) AC_LANG_POP([C++]) CPPFLAGS="$CPPFLAGS_saved"