]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: check ncursesw headers first
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Sun, 22 Jul 2012 19:21:10 +0000 (14:21 -0500)
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Sun, 22 Jul 2012 19:21:10 +0000 (14:21 -0500)
If both ncurses and ncursesw are installed, the headers ncurses/curses.h
and ncursesw/curses.h differ, and since libncursesw will be found first,
so should ncursesw/curses.h.

Based on kernel commit 84354256bff5e95ed3dd8d42b4d7322044c979d7.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Message-Id: <e86967e4b396876d4a96.1342985552@YAAKOV04>

configure.ac

index 0ccd842ebde7f8f6b7bf462335f0644d08c4eee4..a276f49e438da98e31cd6ab1df2e844b5749a0a3 100644 (file)
@@ -271,7 +271,7 @@ AS_IF(
      LIBS_old="$LIBS"
      LIBS=
      AC_CHECK_HEADERS(
-        [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
+        [ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h],
         [CURSES_LOC=$ac_header; break])
      AS_IF(
         [test -z "$CURSES_LOC"],