From eea93638c6885e45c8e103acf882f1c58b550a95 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 9 Jun 2017 15:56:50 +0100 Subject: [PATCH] Set AM_CFLAGS for ncurses libraries, reported by Peter Schow. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 77f20d85..83c104c3 100644 --- a/configure.ac +++ b/configure.ac @@ -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.