From 8736e490253e08ed36ddeed8d572a39a450a88b4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Oct 2008 16:03:24 +0200 Subject: include ncursesw/ncurses.h if available When compiling with libncursesw, include instead of (if available). --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4aa392e50..51faeee3e 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,11 @@ AC_CHECK_LIB([$ncurses], [LIBS="$LIBS -l$ncurses"], [AC_MSG_ERROR($ncurses library is required)]) +if test "x$ncurses" = "xncursesw"; then + AC_CHECK_HEADER([ncursesw/ncurses.h], + AC_DEFINE([HAVE_NCURSESW_NCURSES_H], [1], [ncursesw/ncurses.h]), + ,) +fi dnl Check for glib-2.4 -- cgit v1.2.3