diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-14 15:14:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-14 15:14:04 +0000 |
commit | 44a9dde5b25b3e08573b09298f3d15eff1215a19 (patch) | |
tree | 4b752dc3e3bfd51d94de8e1ab38c937ec367f065 /configure.ac | |
parent | a5c9701518e937ccc7968ad82595567e305ba11f (diff) | |
download | zsh-44a9dde5b25b3e08573b09298f3d15eff1215a19.tar.gz zsh-44a9dde5b25b3e08573b09298f3d15eff1215a19.tar.xz zsh-44a9dde5b25b3e08573b09298f3d15eff1215a19.zip |
24252: dont define _XOPEN_SOURCE_EXTENDED for curses on OpenBSD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c43d42a72..8a56a4c05 100644 --- a/configure.ac +++ b/configure.ac @@ -669,6 +669,22 @@ fi], termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;; esac])dnl +AH_TEMPLATE([ZSH_CURSES_NEEDS_XOPEN], +[Define if the curses libraries need _XOPEN_SOURCE_EXTENDED defined]) +AC_CACHE_CHECK(if the curses library needs _XOPEN_SOURCE_EXTENDED, +zsh_cv_curses_needs_xopen, +[case "$host_os" in + *openbsd*) + zsh_cv_curses_needs_xopen=no + ;; + *) + zsh_cv_curses_needs_xopen=yes + ;; +esac]) +if test x$zsh_cv_curses_needs_xopen = xyes; then + AC_DEFINE(ZSH_CURSES_NEEDS_XOPEN) +fi + AH_TEMPLATE([HAVE_BOOLCODES], [Define if you have the termcap boolcodes symbol.]) AH_TEMPLATE([HAVE_NUMCODES], |