diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a5b9967a5e..8c687d731d 100644 --- a/configure.ac +++ b/configure.ac @@ -4992,6 +4992,72 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[void *x=resizeterm AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)] ) + +AC_MSG_CHECKING(for immedok) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef immedok +void *x=immedok +#endif +]])], + [AC_DEFINE(HAVE_CURSES_IMMEDOK, 1, Define if you have the 'immedok' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) + +AC_MSG_CHECKING(for syncok) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef syncok +void *x=syncok +#endif +]])], + [AC_DEFINE(HAVE_CURSES_SYNCOK, 1, Define if you have the 'syncok' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) + +AC_MSG_CHECKING(for filter) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef filter +void *x=filter +#endif +]])], + [AC_DEFINE(HAVE_CURSES_FILTER, 1, Define if you have the 'filter' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) + +AC_MSG_CHECKING(for has_key) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef has_key +void *x=has_key +#endif +]])], + [AC_DEFINE(HAVE_CURSES_HAS_KEY, 1, Define if you have the 'has_key' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) + +AC_MSG_CHECKING(for typeahead) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef typeahead +void *x=typeahead +#endif +]])], + [AC_DEFINE(HAVE_CURSES_TYPEAHEAD, 1, Define if you have the 'typeahead' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) + +AC_MSG_CHECKING(for use_env) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[ +#ifndef use_env +void *x=use_env +#endif +]])], + [AC_DEFINE(HAVE_CURSES_USE_ENV, 1, Define if you have the 'use_env' function.) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)] +) # last curses configure check CPPFLAGS=$ac_save_cppflags |