The slang/slcurses.h contains
#includes <slang.h>
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 <kzak@redhat.com>
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 <slang.h>
+#elif defined(HAVE_SLANG_SLANG_H)
+#include <slang/slang.h>
+#endif
+])
if test "x$use_slang" = xno; then
AC_MSG_ERROR([slang selected but slcurses.h not found])
fi