diff options
author | Max Kellermann <max@duempel.org> | 2008-10-06 16:03:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-06 16:03:24 +0200 |
commit | 8736e490253e08ed36ddeed8d572a39a450a88b4 (patch) | |
tree | 590c6e09dddde2fe4f15104fcdf98a70b5be5550 /configure.ac | |
parent | 003f90586c1eab5f17cdc85bf0fc43e5f2a170ec (diff) | |
download | mpd-8736e490253e08ed36ddeed8d572a39a450a88b4.tar.gz mpd-8736e490253e08ed36ddeed8d572a39a450a88b4.tar.xz mpd-8736e490253e08ed36ddeed8d572a39a450a88b4.zip |
include ncursesw/ncurses.h if available
When compiling with libncursesw, include <ncursesw/ncurses.h> instead
of <ncurses.h> (if available).
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
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 |