Set AM_CFLAGS for ncurses libraries, reported by Peter Schow.

pull/981/head
Nicholas Marriott 2017-06-09 15:56:50 +01:00
parent 143ccd27b4
commit eea93638c6
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ if test "x$found_ncurses" = xno; then
)
fi
if test "x$found_ncurses" = xyes; then
CPPFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $CPPFLAGS"
AM_CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $AM_CFLAGS"
CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $CFLAGS"
LIBS="$LIBNCURSES_LIBS $LIBTINFO_LIBS $LIBS"
else
# pkg-config didn't work, try ncurses.