fix curses autoconf when configured via pkg-config

parent e479ee0d
......@@ -2,7 +2,8 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include
-I$(top_builddir)/include \
@CURSES_CFLAGS@
bin_PROGRAMS = varnishhist
......
......@@ -2,7 +2,8 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include
-I$(top_builddir)/include \
@CURSES_CFLAGS@
bin_PROGRAMS = varnishstat varnishstat_help_gen
......
......@@ -2,7 +2,8 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include
-I$(top_builddir)/include \
@CURSES_CFLAGS@
bin_PROGRAMS = varnishtop
......
......@@ -218,9 +218,13 @@ CURSES_LIBS="$CURSES_LIB"
])
])
])
AC_SUBST([CURSES_CFLAGS])
AC_SUBST([CURSES_LIBS])
save_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} ${CURSES_CFLAGS}"
AC_CHECK_HEADERS([ncursesw/curses.h ncursesw.h ncurses/curses.h ncurses.h curses.h])
CFLAGS="${save_CFLAGS}"
# Checks for header files.
AC_HEADER_STDC
......
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