dnl
dnl Author: Thomas E. Dickey 1995-on
dnl
-dnl $Id: configure.in,v 1.762 2023/04/22 22:16:28 tom Exp $
+dnl $Id: configure.in,v 1.764 2023/05/06 19:40:40 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl For additional information, see
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ(2.52.20210101)
-AC_REVISION($Revision: 1.762 $)
+AC_REVISION($Revision: 1.764 $)
AC_INIT(ncurses/base/lib_initscr.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function in test-programs])
AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function in test-programs])
AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function in test-programs])
- AC_DEFINE(HAVE_USE_EXTENDED_NAMES,1,[Define to 1 to enable use_extended_names() function in test-programs])
AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function in test-programs])
AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function in test-programs])
AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function in test-programs])
CF_NCURSES_ABI_6
fi
-case $cf_cv_abi_default in
-(5)
+if test $cf_cv_abi_default -le 5 ; then
NCURSES_MOUSE_VERSION=1
- ;;
-(6)
+elif test $cf_cv_abi_default -le 6 ; then
NCURSES_MOUSE_VERSION=2
- ;;
-([[789]])
+else
NCURSES_MOUSE_VERSION=3
- ;;
-esac
+fi
AC_SUBST(NCURSES_MOUSE_VERSION)
[with_tcap_names=$with_ext_funcs])
AC_MSG_RESULT($with_tcap_names)
NCURSES_XNAMES=0
-test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
+if test "x$with_tcap_names" = xyes; then
+ NCURSES_XNAMES=1
+ AC_DEFINE(NCURSES_XNAMES,1,[Define to 1 to compile with user-definable terminal capabilities])
+fi
AC_SUBST(NCURSES_XNAMES)
##############################################################################