From: Karel Zak Date: Thu, 1 Jul 2010 08:43:06 +0000 (+0200) Subject: build-sys: explicitly check for slang.h X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=965b4900b9d0a0d716273558e52e188820108709;p=util-linux build-sys: explicitly check for slang.h The slang/slcurses.h contains #includes but we don't use -I/usr/include/slang (and this is also missing in slang.pc), it means that we have manually include the slang.h file in our configure script. Note this is Fedora-12, maybe some others distros have more usable slang headers... Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 7aff9167..8c5f92f4 100644 --- a/configure.ac +++ b/configure.ac @@ -470,7 +470,15 @@ AM_CONDITIONAL(HAVE_TINFO, test "x$have_tinfo" = xyes) use_slang=no if test "x$with_slang" = xyes; then - AC_CHECK_HEADERS([slcurses.h slang/slcurses.h], [use_slang=yes]) + AC_CHECK_HEADERS([slang.h slang/slang.h]) + AC_CHECK_HEADERS([slcurses.h slang/slcurses.h], + [use_slang=yes], [], [ +#ifdef HAVE_SLANG_H +#include +#elif defined(HAVE_SLANG_SLANG_H) +#include +#endif +]) if test "x$use_slang" = xno; then AC_MSG_ERROR([slang selected but slcurses.h not found]) fi