Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx dnl***************************************************************************
     5         kx dnl Copyright 2018-2021,2022 Thomas E. Dickey                                *
     5         kx dnl Copyright 1998-2017,2018 Free Software Foundation, Inc.                  *
     5         kx dnl                                                                          *
     5         kx dnl Permission is hereby granted, free of charge, to any person obtaining a  *
     5         kx dnl copy of this software and associated documentation files (the            *
     5         kx dnl "Software"), to deal in the Software without restriction, including      *
     5         kx dnl without limitation the rights to use, copy, modify, merge, publish,      *
     5         kx dnl distribute, distribute with modifications, sublicense, and/or sell       *
     5         kx dnl copies of the Software, and to permit persons to whom the Software is    *
     5         kx dnl furnished to do so, subject to the following conditions:                 *
     5         kx dnl                                                                          *
     5         kx dnl The above copyright notice and this permission notice shall be included  *
     5         kx dnl in all copies or substantial portions of the Software.                   *
     5         kx dnl                                                                          *
     5         kx dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
     5         kx dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
     5         kx dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
     5         kx dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
     5         kx dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
     5         kx dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
     5         kx dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
     5         kx dnl                                                                          *
     5         kx dnl Except as contained in this notice, the name(s) of the above copyright   *
     5         kx dnl holders shall not be used in advertising or otherwise to promote the     *
     5         kx dnl sale, use or other dealings in this Software without prior written       *
     5         kx dnl authorization.                                                           *
     5         kx dnl***************************************************************************
     5         kx dnl
     5         kx dnl Author: Thomas E. Dickey 1995-on
     5         kx dnl
     5         kx dnl $Id: configure.in,v 1.752 2022/10/22 19:19:52 tom Exp $
     5         kx dnl Process this file with autoconf to produce a configure script.
     5         kx dnl
     5         kx dnl For additional information, see
     5         kx dnl     https://invisible-island.net/autoconf/
     5         kx dnl     https://invisible-island.net/autoconf/my-autoconf.html
     5         kx dnl
     5         kx dnl ---------------------------------------------------------------------------
     5         kx AC_PREREQ(2.52.20210101)
     5         kx AC_REVISION($Revision: 1.752 $)
     5         kx AC_INIT(ncurses/base/lib_initscr.c)
     5         kx AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
     5         kx 
     5         kx AC_DEFUN([AC_PATH_XTRA],[])dnl ignore dependencies on this
     5         kx 
     5         kx CF_TOP_BUILDDIR
     5         kx CF_SUBST_NCURSES_VERSION
     5         kx CF_VERSION_INFO(NCURSES,ncurses)
     5         kx 
     5         kx CF_WITH_REL_VERSION(NCURSES)
     5         kx CF_NCURSES_WITH_ABI_VERSION
     5         kx 
     5         kx CF_WITH_SYSTYPE
     5         kx 
     5         kx ###	Save the given $CFLAGS to allow user-override.
     5         kx cf_user_CFLAGS="$CFLAGS"
     5         kx 
     5         kx ###	Default install-location
     5         kx CF_CFG_DEFAULTS
     5         kx ### Defaults for ncurses ABI
     5         kx CF_ABI_DEFAULTS
     5         kx 
     5         kx ###	Checks for programs.
     5         kx AC_ARG_WITH(ada,
     5         kx 	[  --without-ada           suppress check for Ada compiler, don't build demo],
     5         kx 	[cf_with_ada=$withval],
     5         kx 	[cf_with_ada=yes])
     5         kx 
     5         kx if test "x$cf_with_ada" = xyes
     5         kx then
     5         kx 	cf_prog_cc="gnatgcc gcc cc"
     5         kx else
     5         kx 	cf_prog_cc="gcc cc"
     5         kx fi
     5         kx CF_PROG_CC($cf_prog_cc)
     5         kx 
     5         kx AC_PROG_CPP
     5         kx AC_PROG_GCC_TRADITIONAL
     5         kx CF_PROG_CC_C_O(CC,[$CFLAGS $CPPFLAGS])
     5         kx CF_PROG_LDCONFIG
     5         kx 
     5         kx dnl DEFECT in autoconf 2.12:	an attempt to set policy, this breaks the
     5         kx dnl				configure script by not letting us test if C++
     5         kx dnl				is present, making this option necessary.
     5         kx AC_MSG_CHECKING(if you want to ensure bool is consistent with C++)
     5         kx AC_ARG_WITH(cxx,
     5         kx 	[  --without-cxx           do not adjust ncurses bool to match C++],
     5         kx 	[cf_with_cxx=$withval],
     5         kx 	[cf_with_cxx=yes])
     5         kx AC_MSG_RESULT($cf_with_cxx)
     5         kx if test "X$cf_with_cxx" = Xno ; then
     5         kx 	CXX=""
     5         kx 	GXX=""
     5         kx else
     5         kx 	# with autoconf 2.13, we can change the error to a warning:
     5         kx 	pushdef([AC_MSG_ERROR],
     5         kx 		[AC_MSG_RESULT(no)
     5         kx 		 AC_MSG_WARN([You don't have any C++ compiler, too bad])
     5         kx 		cf_with_cxx=no; CXX=""; GXX="";])dnl
     5         kx 	AC_PROG_CXX
     5         kx 	popdef([AC_MSG_ERROR])dnl
     5         kx 
     5         kx 	AC_LANG_PUSH(C++)
     5         kx 	if test "x$cf_with_cxx" != xno
     5         kx 	then
     5         kx 		# Several of the C++ configurations do not work, particularly when
     5         kx 		# cross-compiling (20140913 -TD)
     5         kx 		AC_MSG_CHECKING(if $CXX works)
     5         kx 
     5         kx 		save_CPPFLAGS="$CPPFLAGS"
     5         kx 		CPPFLAGS="$CPPFLAGS"
     5         kx 		AC_TRY_COMPILE([
     5         kx #include <stdlib.h>
     5         kx #include <stdio.h>
     5         kx ],
     5         kx 		[
     5         kx 		printf("Hello world!\n")
     5         kx 		],
     5         kx 		[cf_cxx_works=yes],
     5         kx 		[cf_cxx_works=no])
     5         kx 		CPPFLAGS="$save_CPPFLAGS"
     5         kx 
     5         kx 		AC_MSG_RESULT($cf_cxx_works)
     5         kx 		if test "x$cf_cxx_works" = xno
     5         kx 		then
     5         kx 			AC_MSG_WARN([Ignore $CXX, since it cannot compile hello-world.])
     5         kx 			cf_with_cxx=no; CXX=""; GXX="";
     5         kx 		fi
     5         kx 	fi
     5         kx 	AC_LANG_POP
     5         kx 
     5         kx 	# autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
     5         kx 	if test "$CXX" = "g++" ; then
     5         kx 		AC_PATH_PROG(CXX,g++)
     5         kx 	fi
     5         kx 	case "x$CXX" in
     5         kx 	(x|xg++)
     5         kx 		AC_MSG_WARN([You don't have any C++ compiler, too bad])
     5         kx 		cf_with_cxx=no; CXX=""; GXX="";
     5         kx 		;;
     5         kx 	esac
     5         kx fi
     5         kx 
     5         kx CF_GXX_VERSION
     5         kx case "$GXX_VERSION" in
     5         kx ([[1-9]][[0-9]].*)
     5         kx 	;;
     5         kx (1.*|2.[[0-6]]*)
     5         kx 	AC_MSG_WARN(templates do not work)
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build C++ binding and demo)
     5         kx AC_ARG_WITH(cxx-binding,
     5         kx 	[  --without-cxx-binding   do not build C++ binding and demo],
     5         kx 	[cf_with_cxx_binding=$withval],
     5         kx 	[cf_with_cxx_binding=$cf_with_cxx])
     5         kx AC_MSG_RESULT($cf_with_cxx_binding)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build with Ada)
     5         kx AC_MSG_RESULT($cf_with_ada)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to install terminal database)
     5         kx AC_ARG_ENABLE(db-install,
     5         kx 	[  --disable-db-install    suppress install of terminal database],
     5         kx 	[cf_with_db_install=$enableval],
     5         kx 	[cf_with_db_install=yes])
     5         kx AC_MSG_RESULT($cf_with_db_install)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to install manpages)
     5         kx AC_ARG_WITH(manpages,
     5         kx 	[  --without-manpages      suppress install of manpages],
     5         kx 	[cf_with_manpages=$withval],
     5         kx 	[cf_with_manpages=yes])
     5         kx AC_MSG_RESULT($cf_with_manpages)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build programs such as tic)
     5         kx AC_ARG_WITH(progs,
     5         kx 	[  --without-progs         suppress build/install with programs (e.g., tic)],
     5         kx 	[cf_with_progs=$withval],
     5         kx 	[cf_with_progs=yes])
     5         kx AC_MSG_RESULT($cf_with_progs)
     5         kx 
     5         kx if test -f "$srcdir/tack/tack.h" ; then
     5         kx 	if test "x$cross_compiling" = xyes ; then
     5         kx 		CF_VERBOSE(ignoring tack because we are cross-compiling)
     5         kx 		cf_with_tack=no
     5         kx 	else
     5         kx 		AC_MSG_CHECKING(if you want to build the tack program)
     5         kx 		AC_ARG_WITH(tack,
     5         kx 			[  --without-tack          suppress build/install with tack program],
     5         kx 			[cf_with_tack=$withval],
     5         kx 			[cf_with_tack=$cf_with_progs])
     5         kx 		AC_MSG_RESULT($cf_with_tack)
     5         kx 	fi
     5         kx else
     5         kx 	cf_with_tack=no
     5         kx fi
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build test-programs)
     5         kx AC_ARG_WITH(tests,
     5         kx 	[  --without-tests         suppress build/install with test-programs],
     5         kx 	[cf_with_tests=$withval],
     5         kx 	[cf_with_tests=yes])
     5         kx AC_MSG_RESULT($cf_with_tests)
     5         kx 
     5         kx AC_MSG_CHECKING(if you wish to install curses.h)
     5         kx AC_ARG_WITH(curses-h,
     5         kx 	[  --without-curses-h      install curses.h as ncurses.h only],
     5         kx 	[with_curses_h=$withval],
     5         kx 	[with_curses_h=yes])
     5         kx AC_MSG_RESULT($with_curses_h)
     5         kx 
     5         kx modules_to_build="ncurses"
     5         kx test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
     5         kx test "X$cf_with_tack"  != Xno && modules_to_build="$modules_to_build tack"
     5         kx modules_to_build="$modules_to_build panel menu form"
     5         kx 
     5         kx AC_ARG_PROGRAM
     5         kx 
     5         kx CF_PROG_AWK
     5         kx CF_PROG_INSTALL
     5         kx CF_PROG_LINT
     5         kx CF_PROG_LN_S
     5         kx 
     5         kx AC_SYS_LONG_FILE_NAMES
     5         kx 
     5         kx # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
     5         kx # of package conflict.
     5         kx cf_config_suffix=
     5         kx AC_ARG_WITH(config-suffix,
     5         kx 	[  --with-config-suffix=X  suffixes ncursesXX-config file],
     5         kx 	[case "x$withval" in
     5         kx 	(xyes|xno)
     5         kx 		AC_MSG_WARN(expected a value for config-suffix option)
     5         kx 		;;
     5         kx 	(*)	cf_config_suffix="$withval"
     5         kx 		;;
     5         kx 	esac])
     5         kx AC_SUBST(cf_config_suffix)
     5         kx 
     5         kx # If we find pkg-config, check if we should install the ".pc" files.
     5         kx CF_PKG_CONFIG
     5         kx CF_WITH_PKG_CONFIG_LIBDIR
     5         kx CF_ENABLE_PC_FILES
     5         kx if test -z "$MAKE_PC_FILES"
     5         kx then
     5         kx 	AC_MSG_CHECKING(for suffix to add to pc-files)
     5         kx AC_ARG_WITH(pc-suffix,
     5         kx 	[  --with-pc-suffix        suffixes pc-files],
     5         kx 	[case "x$withval" in
     5         kx 	(xyes|xno)
     5         kx 		PC_MODULE_SUFFIX=
     5         kx 		;;
     5         kx 	(*)	PC_MODULE_SUFFIX="$withval"
     5         kx 		;;
     5         kx 	esac])
     5         kx 	test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
     5         kx 	AC_MSG_RESULT($PC_MODULE_SUFFIX)
     5         kx 	test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
     5         kx 	AC_SUBST(PC_MODULE_SUFFIX)
     5         kx fi
     5         kx 
     5         kx AC_MSG_CHECKING(if we should assume mixed-case filenames)
     5         kx AC_ARG_ENABLE(mixed-case,
     5         kx 	[  --enable-mixed-case     tic should assume mixed-case filenames],
     5         kx 	[enable_mixedcase=$enableval],
     5         kx 	[enable_mixedcase=auto])
     5         kx AC_MSG_RESULT($enable_mixedcase)
     5         kx if test "$enable_mixedcase" = "auto" ; then
     5         kx 	CF_MIXEDCASE_FILENAMES
     5         kx else
     5         kx 	cf_cv_mixedcase=$enable_mixedcase
     5         kx 	if test "x$enable_mixedcase" = "xyes" ; then
     5         kx 		AC_DEFINE(MIXEDCASE_FILENAMES,1,[Define to 1 if tic should assume mixed-case filenames])
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx # do this after mixed-case option (tags/TAGS is not as important as tic).
     5         kx AC_PROG_MAKE_SET
     5         kx CF_MAKE_PHONY
     5         kx CF_MAKE_TAGS
     5         kx CF_MAKEFLAGS
     5         kx 
     5         kx dnl These are standard among *NIX systems, but not when cross-compiling
     5         kx AC_CHECK_TOOL(RANLIB, ranlib, ':')
     5         kx AC_CHECK_TOOL(LD, ld, ld)
     5         kx AC_CHECK_TOOL(AR, ar, ar)
     5         kx AC_CHECK_TOOL(NM, nm, nm)
     5         kx CF_AR_FLAGS
     5         kx 
     5         kx dnl Special option for use by system-builders: the install-prefix is used to
     5         kx dnl adjust the location into which the actual install is done, so that an
     5         kx dnl archive can be built without modifying the host system's configuration.
     5         kx AC_MSG_CHECKING(if you have specified an install-prefix)
     5         kx AC_ARG_WITH(install-prefix,
     5         kx 	[  --with-install-prefix   prefixes actual install-location ($DESTDIR)],
     5         kx 	[case "x$withval" in
     5         kx 	(xyes|xno)
     5         kx 		;;
     5         kx 	(*)	DESTDIR="$withval"
     5         kx 		;;
     5         kx 	esac])
     5         kx AC_MSG_RESULT($DESTDIR)
     5         kx AC_SUBST(DESTDIR)
     5         kx 
     5         kx ###############################################################################
     5         kx CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
     5         kx # If we're cross-compiling, allow the user to override the tools and their
     5         kx # options.  The configure script is oriented toward identifying the host
     5         kx # compiler, etc., but we need a build compiler to generate parts of the source.
     5         kx 
     5         kx case "$cf_cv_system_name" in
     5         kx (*-msvc*)
     5         kx 	LDFLAGS="$LDFLAGS user32.lib"
     5         kx 	export LDFLAGS
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx CF_BUILD_CC
     5         kx 
     5         kx ###############################################################################
     5         kx CF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:)
     5         kx 
     5         kx ### Options to allow the user to specify the set of libraries which are used.
     5         kx ### Use "--without-normal --with-shared" to allow the default model to be
     5         kx ### shared, for example.
     5         kx cf_list_models=""
     5         kx AC_SUBST(cf_list_models)dnl	the complete list of models ("normal debug")
     5         kx 
     5         kx CF_WITH_LIBTOOL
     5         kx if test "$with_libtool" != "no" ; then
     5         kx 
     5         kx cf_list_models="$cf_list_models libtool"
     5         kx 
     5         kx else
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build shared libraries)
     5         kx AC_ARG_WITH(shared,
     5         kx 	[  --with-shared           generate shared-libraries],
     5         kx 	[with_shared=$withval],
     5         kx 	[with_shared=no])
     5         kx AC_MSG_RESULT($with_shared)
     5         kx test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build static libraries)
     5         kx AC_ARG_WITH(normal,
     5         kx 	[  --with-normal           generate normal-libraries (default)],
     5         kx 	[with_normal=$withval],
     5         kx 	[with_normal=yes])
     5         kx AC_MSG_RESULT($with_normal)
     5         kx test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build debug libraries)
     5         kx AC_ARG_WITH(debug,
     5         kx 	[  --with-debug            generate debug-libraries (default)],
     5         kx 	[with_debug=$withval],
     5         kx 	[with_debug=yes])
     5         kx AC_MSG_RESULT($with_debug)
     5         kx test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build profiling libraries)
     5         kx AC_ARG_WITH(profile,
     5         kx 	[  --with-profile          generate profile-libraries],
     5         kx 	[with_profile=$withval],
     5         kx 	[with_profile=no])
     5         kx AC_MSG_RESULT($with_profile)
     5         kx test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
     5         kx 
     5         kx fi
     5         kx 
     5         kx if test "X$cf_with_cxx_binding" != Xno; then
     5         kx if test "x$with_shared" = "xyes"; then
     5         kx AC_MSG_CHECKING(if you want to build C++ shared libraries)
     5         kx AC_ARG_WITH(cxx-shared,
     5         kx 	[  --with-cxx-shared       generate C++ shared-libraries],
     5         kx 	[with_shared_cxx=$withval],
     5         kx 	[with_shared_cxx=no])
     5         kx AC_MSG_RESULT($with_shared_cxx)
     5         kx fi
     5         kx fi
     5         kx 
     5         kx ###############################################################################
     5         kx 
     5         kx AC_MSG_CHECKING(for specified models)
     5         kx test -z "$cf_list_models" && cf_list_models=normal
     5         kx dnl If we use libtool to generate libraries, then it must be the only
     5         kx dnl specified model.
     5         kx test "$with_libtool" != "no" && cf_list_models=libtool
     5         kx AC_MSG_RESULT($cf_list_models)
     5         kx 
     5         kx ### Use the first model as the default, and save its suffix for use in building
     5         kx ### up test-applications.
     5         kx AC_MSG_CHECKING(for default model)
     5         kx DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
     5         kx AC_MSG_RESULT($DFT_LWR_MODEL)
     5         kx 
     5         kx CF_UPPER(DFT_UPR_MODEL,$DFT_LWR_MODEL)dnl
     5         kx 
     5         kx AC_SUBST(DFT_LWR_MODEL)dnl	the default model ("normal")
     5         kx AC_SUBST(DFT_UPR_MODEL)dnl	the default model ("NORMAL")
     5         kx 
     5         kx TICS_NAME=tic
     5         kx AC_SUBST(TICS_NAME)
     5         kx 
     5         kx TINFO_NAME=tinfo
     5         kx AC_SUBST(TINFO_NAME)
     5         kx 
     5         kx LIB_NAME=ncurses
     5         kx AC_SUBST(LIB_NAME)
     5         kx 
     5         kx LIB_DIR=../lib
     5         kx LIB_2ND=../../lib
     5         kx 
     5         kx CF_WITH_LIB_PREFIX(cf_prefix)
     5         kx 
     5         kx LIB_SUFFIX=
     5         kx AC_SUBST(LIB_SUFFIX)
     5         kx CF_PATHSEP
     5         kx 
     5         kx ###############################################################################
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build a separate terminfo library)
     5         kx AC_ARG_WITH(termlib,
     5         kx 	[  --with-termlib          generate separate terminfo library],
     5         kx 	[with_termlib=$withval],
     5         kx 	[with_termlib=no])
     5         kx AC_MSG_RESULT($with_termlib)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build a separate tic library)
     5         kx AC_ARG_WITH(ticlib,
     5         kx 	[  --with-ticlib           generate separate tic library],
     5         kx 	[with_ticlib=$withval],
     5         kx 	[with_ticlib=no])
     5         kx AC_MSG_RESULT($with_ticlib)
     5         kx 
     5         kx dnl Not all ports of gcc support the -g option
     5         kx 
     5         kx if test X"$CC_G_OPT" = X"" ; then
     5         kx 	CC_G_OPT='-g'
     5         kx 	test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
     5         kx fi
     5         kx AC_SUBST(CC_G_OPT)
     5         kx 
     5         kx if test X"$CXX_G_OPT" = X"" ; then
     5         kx 	CXX_G_OPT='-g'
     5         kx 	test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
     5         kx fi
     5         kx AC_SUBST(CXX_G_OPT)
     5         kx 
     5         kx AC_MSG_CHECKING(for default loader flags)
     5         kx case "$DFT_LWR_MODEL" in
     5         kx (libtool) LD_MODEL=''   ;;
     5         kx (normal)  LD_MODEL=''   ;;
     5         kx (debug)   LD_MODEL=$CC_G_OPT ;;
     5         kx (profile) LD_MODEL='-pg';;
     5         kx (shared)  LD_MODEL=''   ;;
     5         kx esac
     5         kx AC_SUBST(LD_MODEL)dnl		the type of link (e.g., -g or -pg)
     5         kx AC_MSG_RESULT($LD_MODEL)
     5         kx 
     5         kx case "$DFT_LWR_MODEL" in
     5         kx (shared)
     5         kx CF_ENABLE_RPATH
     5         kx AC_MSG_CHECKING(if shared libraries should be relinked during install)
     5         kx AC_ARG_ENABLE(relink,
     5         kx [  --disable-relink        relink shared libraries during install],
     5         kx [cf_cv_do_relink=$enableval],
     5         kx [cf_cv_do_relink=yes])
     5         kx AC_MSG_RESULT($cf_cv_do_relink)
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx # we will build libraries one-level down.
     5         kx rel_builddir=..
     5         kx CF_SHARED_OPTS
     5         kx for model in $cf_list_models ; do
     5         kx 	case "$model" in
     5         kx 	(libtool)
     5         kx 		CF_WITH_LIBTOOL_OPTS
     5         kx 		CF_WITH_EXPORT_SYMS
     5         kx 		;;
     5         kx 	(shared)
     5         kx 		if test "$CC_SHARED_OPTS" = "unknown"; then
     5         kx 			AC_ERROR(Shared libraries are not supported in this version)
     5         kx 		fi
     5         kx 		# workaround for inept transition to PIE vs PIC...
     5         kx 		AC_MSG_CHECKING(if current CFLAGS link properly)
     5         kx 		AC_TRY_LINK(
     5         kx 			[#include <stdio.h>],
     5         kx 			[printf("Hello work\\n");],
     5         kx 			[cf_cflags_work=yes],
     5         kx 			[cf_cflags_work=no])
     5         kx 		AC_MSG_RESULT($cf_cflags_work)
     5         kx 		if test "$cf_cflags_work" = no
     5         kx 		then
     5         kx 			CF_VERBOSE(try to work around by appending shared-options)
     5         kx 			CFLAGS="$CFLAGS $CC_SHARED_OPTS"
     5         kx 		fi
     5         kx 		CF_WITH_VERSIONED_SYMS
     5         kx 		;;
     5         kx 	esac
     5         kx done
     5         kx 
     5         kx ### Checks for special libraries, must be done up-front.
     5         kx SHLIB_LIST=""
     5         kx CF_WITH_GPM
     5         kx if test "$with_gpm" != no ; then
     5         kx 	AC_MSG_CHECKING(if you want to load GPM dynamically)
     5         kx 	AC_ARG_WITH(dlsym,
     5         kx 		[  --without-dlsym         do not use dlsym() to load GPM dynamically],
     5         kx 		[with_dlsym=$withval],
     5         kx 		[with_dlsym=yes])
     5         kx 	AC_MSG_RESULT($with_dlsym)
     5         kx 	if test "x$with_dlsym" = xyes ; then
     5         kx 		CF_FUNC_DLSYM
     5         kx 		if test "x$with_gpm" != xyes ; then
     5         kx 			CF_VERBOSE(assuming soname for gpm is $with_gpm)
     5         kx 			cf_cv_gpm_soname="$with_gpm"
     5         kx 		else
     5         kx 			CF_LIB_SONAME([#include <gpm.h>],[if (Gpm_Open(0,0)) Gpm_Close();],gpm)
     5         kx 		fi
     5         kx 		test "$cf_cv_gpm_soname" != "unknown" && AC_DEFINE_UNQUOTED(LIBGPM_SONAME,"$cf_cv_gpm_soname",[Define as needed to set the gpm share library soname])
     5         kx 		SHLIB_LIST="-ldl $SHLIB_LIST"
     5         kx 		CF_ADD_LIB(dl,PRIVATE_LIBS)
     5         kx 	else
     5         kx 		SHLIB_LIST="-lgpm $SHLIB_LIST"
     5         kx 		CF_ADD_LIB(gpm,TEST_LIBS)
     5         kx 		CF_ADD_LIB(gpm,PRIVATE_LIBS)
     5         kx 	fi
     5         kx 	AC_DEFINE(HAVE_LIBGPM,1,[Define to 1 if we have the gpm library])
     5         kx 	CF_CHECK_GPM_WGETCH
     5         kx fi
     5         kx 
     5         kx CF_WITH_PCRE2
     5         kx CF_WITH_SYSMOUSE
     5         kx 
     5         kx # pretend that ncurses==ncursesw==ncursest
     5         kx AC_MSG_CHECKING(if you want to disable library suffixes)
     5         kx CF_ARG_DISABLE(lib-suffixes,
     5         kx 	[  --disable-lib-suffixes  disable library suffixes],
     5         kx 	[disable_lib_suffixes=yes],
     5         kx 	[disable_lib_suffixes=no],
     5         kx 	no)
     5         kx AC_MSG_RESULT($disable_lib_suffixes)
     5         kx 
     5         kx ### If we're building with rpath, try to link non-standard libs that way too.
     5         kx if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
     5         kx 	CF_DISABLE_RPATH_HACK
     5         kx fi
     5         kx 
     5         kx ### Depending on the system, someone may use rpath to build ncurses but not
     5         kx # want users of the package to rely upon that feature.  Give those people an
     5         kx # option to suppress that detail from EXTRA_LDFLAGS.
     5         kx EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
     5         kx if test -n "$EXTRA_PKG_LDFLAGS"
     5         kx then
     5         kx 	AC_MSG_CHECKING(if you want to disable extra LDFLAGS for package-scripts)
     5         kx 	CF_ARG_DISABLE(pkg-ldflags,
     5         kx 		[  --disable-pkg-ldflags   disable extra LDFLAGS for package-scripts],
     5         kx 		[disable_pkg_ldflags=yes],
     5         kx 		[disable_pkg_ldflags=no],
     5         kx 		no)
     5         kx 	AC_MSG_RESULT($disable_pkg_ldflags)
     5         kx 	test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
     5         kx fi
     5         kx AC_SUBST(EXTRA_PKG_LDFLAGS)
     5         kx 
     5         kx ###############################################################################
     5         kx CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
     5         kx 
     5         kx ###	use option --with-extra-suffix to append suffix to headers and libraries
     5         kx AC_MSG_CHECKING(if you wish to append extra suffix to header/library paths)
     5         kx EXTRA_SUFFIX=
     5         kx AC_ARG_WITH(extra-suffix,
     5         kx 	[  --with-extra-suffix=X   append extra suffix to header/library paths],
     5         kx 	[case x$withval in
     5         kx 	(xno)
     5         kx 		;;
     5         kx 	(xyes|x)
     5         kx 		EXTRA_SUFFIX=$cf_cv_abi_version
     5         kx 		;;
     5         kx 	(*)
     5         kx 		EXTRA_SUFFIX=$withval
     5         kx 		;;
     5         kx 	esac
     5         kx 	])
     5         kx AC_MSG_RESULT($EXTRA_SUFFIX)
     5         kx AC_SUBST(EXTRA_SUFFIX)
     5         kx 
     5         kx ###	use option --disable-overwrite to leave out the link to -lcurses
     5         kx AC_MSG_CHECKING(if you wish to install ncurses overwriting curses)
     5         kx AC_ARG_ENABLE(overwrite,
     5         kx 	[  --disable-overwrite     put headers in subdir, omit link to -lcurses],
     5         kx 	[with_overwrite=$enableval],
     5         kx 	[if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi])
     5         kx AC_MSG_RESULT($with_overwrite)
     5         kx 
     5         kx AC_MSG_CHECKING(if external terminfo-database is used)
     5         kx AC_ARG_ENABLE(database,
     5         kx 	[  --disable-database      do not use terminfo, only fallbacks/termcap],
     5         kx 	[use_database=$enableval],
     5         kx 	[use_database=yes])
     5         kx AC_MSG_RESULT($use_database)
     5         kx 
     5         kx case "$host_os" in
     5         kx (os2*)
     5         kx 	TERMINFO_SRC='${top_srcdir}/misc/emx.src'
     5         kx 	;;
     5         kx (*)
     5         kx 	TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
     5         kx 	;;
     5         kx esac
     5         kx AC_SUBST(TERMINFO_SRC)
     5         kx 
     5         kx NCURSES_USE_DATABASE=0
     5         kx if test "$use_database" != no ; then
     5         kx 	NCURSES_USE_DATABASE=1
     5         kx 
     5         kx 	AC_MSG_CHECKING(which terminfo source-file will be installed)
     5         kx 	AC_ARG_WITH(database,
     5         kx 		[  --with-database=XXX     specify terminfo source to install],
     5         kx 		[TERMINFO_SRC=$withval])
     5         kx 	AC_MSG_RESULT($TERMINFO_SRC)
     5         kx 
     5         kx 	AC_MSG_CHECKING(whether to use hashed database instead of directory/tree)
     5         kx 	AC_ARG_WITH(hashed-db,
     5         kx 		[  --with-hashed-db        specify hashed-database library],,
     5         kx 		[with_hashed_db=no])
     5         kx 	AC_MSG_RESULT($with_hashed_db)
     5         kx else
     5         kx 	with_hashed_db=no
     5         kx fi
     5         kx AC_SUBST(NCURSES_USE_DATABASE)
     5         kx 
     5         kx AC_MSG_CHECKING(for list of fallback descriptions)
     5         kx AC_ARG_WITH(fallbacks,
     5         kx 	[  --with-fallbacks=XXX    specify list of fallback terminal descriptions],
     5         kx 	[with_fallback=$withval],
     5         kx 	[with_fallback=])
     5         kx AC_MSG_RESULT($with_fallback)
     5         kx 
     5         kx case ".$with_fallback" in
     5         kx (.|.no)
     5         kx 	FALLBACK_LIST=
     5         kx 	;;
     5         kx (.yes)
     5         kx 	AC_MSG_WARN(expected a list of terminal descriptions)
     5         kx 	;;
     5         kx (*)
     5         kx 	FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx # The fallback feature in ncurses relies upon tic/infocmp outside the build
     5         kx # tree for generating the terminal descriptions that will be compiled into the
     5         kx # library.  If your toolchain is old, it may not handle current terminal
     5         kx # databases.  Use configure-options to point to the tools which will be used,
     5         kx # rather than the first ones found on the $PATH.
     5         kx AC_CHECK_TOOL(TIC, tic)
     5         kx AC_CHECK_TOOL(INFOCMP, infocmp)
     5         kx if test -n "$FALLBACK_LIST"
     5         kx then
     5         kx 	CF_WITH_PATH_PROG(TIC,     tic,     [for fallbacks], $PATH:/usr/local/ncurses/bin)
     5         kx 	CF_WITH_PATH_PROG(INFOCMP, infocmp, [for fallbacks], $PATH:/usr/local/ncurses/bin)
     5         kx 	test -z "$TIC" && FALLBACK_LIST=
     5         kx 	test -z "$INFOCMP" && FALLBACK_LIST=
     5         kx 	if test -z "$FALLBACK_LIST"
     5         kx 	then
     5         kx 		AC_MSG_WARN(ignoring fallback option because tic/infocmp are not available)
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(TIC)
     5         kx AC_SUBST(INFOCMP)
     5         kx 
     5         kx USE_FALLBACKS=
     5         kx test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
     5         kx AC_SUBST(FALLBACK_LIST)
     5         kx AC_SUBST(USE_FALLBACKS)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want modern xterm or antique)
     5         kx AC_ARG_WITH(xterm-new,
     5         kx 	[  --without-xterm-new     specify if xterm terminfo should be old version],
     5         kx 	[with_xterm_new=$withval],
     5         kx 	[with_xterm_new=yes])
     5         kx case "$with_xterm_new" in
     5         kx (no) with_xterm_new=xterm-old;;
     5         kx (*)	 with_xterm_new=xterm-new;;
     5         kx esac
     5         kx AC_MSG_RESULT($with_xterm_new)
     5         kx WHICH_XTERM=$with_xterm_new
     5         kx AC_SUBST(WHICH_XTERM)
     5         kx 
     5         kx case $host_os in
     5         kx (*linux-gnu|*cygwin|*mingw32|*msys)
     5         kx 	want_xterm_kbs=DEL
     5         kx 	;;
     5         kx (*)
     5         kx 	want_xterm_kbs=BS
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_MSG_CHECKING(if xterm backspace sends BS or DEL)
     5         kx AC_ARG_WITH(xterm-kbs,
     5         kx 	[  --with-xterm-kbs=XXX    specify if xterm backspace sends BS or DEL],
     5         kx 	[with_xterm_kbs=$withval],
     5         kx 	[with_xterm_kbs=BS])
     5         kx case x$with_xterm_kbs in
     5         kx (xyes|xno|xBS|xbs|x8)
     5         kx 	with_xterm_kbs=BS
     5         kx 	;;
     5         kx (xDEL|xdel|x127)
     5         kx 	with_xterm_kbs=DEL
     5         kx 	;;
     5         kx (*)
     5         kx 	with_xterm_kbs=$withval
     5         kx 	;;
     5         kx esac
     5         kx AC_MSG_RESULT($with_xterm_kbs)
     5         kx XTERM_KBS=$with_xterm_kbs
     5         kx AC_SUBST(XTERM_KBS)
     5         kx 
     5         kx if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
     5         kx then
     5         kx 	AC_MSG_WARN(expected --with-xterm-kbs=$want_xterm_kbs for $host_os)
     5         kx fi
     5         kx 
     5         kx MAKE_TERMINFO=
     5         kx if test "$use_database" = no ; then
     5         kx 	TERMINFO="${datadir}/terminfo"
     5         kx 	MAKE_TERMINFO="#"
     5         kx else
     5         kx 
     5         kx AC_MSG_CHECKING(for list of terminfo directories)
     5         kx CF_WITH_PATHLIST(terminfo-dirs,
     5         kx 	[  --with-terminfo-dirs=XXX specify list of terminfo directories],
     5         kx 	TERMINFO_DIRS,
     5         kx 	DATADIR/terminfo,
     5         kx 	${datadir}/terminfo)
     5         kx AC_MSG_RESULT($TERMINFO_DIRS)
     5         kx test -n "$TERMINFO_DIRS" && AC_DEFINE_UNQUOTED(TERMINFO_DIRS,"$TERMINFO_DIRS",[Define as needed to predefine the TERMINFO_DIR searchlist])
     5         kx 
     5         kx case "x$TERMINFO" in
     5         kx x???:*)
     5         kx 	AC_MSG_WARN(ignoring non-directory/file TERMINFO value)
     5         kx 	unset TERMINFO
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_MSG_CHECKING(for default terminfo directory)
     5         kx CF_WITH_PATH(default-terminfo-dir,
     5         kx 	[  --with-default-terminfo-dir=DIR default terminfo directory],
     5         kx 	TERMINFO,
     5         kx 	DATADIR/terminfo,
     5         kx 	${datadir}/terminfo)
     5         kx AC_MSG_RESULT($TERMINFO)
     5         kx AC_DEFINE_UNQUOTED(TERMINFO,"$TERMINFO",[Define to set the default terminal database path])
     5         kx 
     5         kx fi
     5         kx 
     5         kx AC_SUBST(TERMINFO)
     5         kx AC_SUBST(MAKE_TERMINFO)
     5         kx 
     5         kx ###	use option --disable-big-core to make tic run on small machines
     5         kx ###	We need 4Mb, check if we can allocate 50% more than that.
     5         kx AC_MSG_CHECKING(if big-core option selected)
     5         kx AC_ARG_ENABLE(big-core,
     5         kx 	[  --disable-big-core      assume machine has little memory],
     5         kx 	[with_big_core=$enableval],
     5         kx 	[AC_TRY_RUN([
     5         kx #include <stdlib.h>
     5         kx #include <string.h>
     5         kx int main() {
     5         kx 	unsigned long n = 6000000L;
     5         kx 	char *s = malloc(n);
     5         kx 	if (s != 0)
     5         kx 		s[0] = s[n-1] = 0;
     5         kx 	${cf_cv_main_return:-return}(s == 0);
     5         kx }],
     5         kx 	[with_big_core=yes],
     5         kx 	[with_big_core=no],
     5         kx 	[with_big_core=no])])
     5         kx AC_MSG_RESULT($with_big_core)
     5         kx test "x$with_big_core" = "xyes" && AC_DEFINE(HAVE_BIG_CORE,1,[Define to 1 if machine has ample memory for tic])
     5         kx 
     5         kx ### ISO C only guarantees 512-char strings, we have tables which load faster
     5         kx ### when constructed using "big" strings.  More than the C compiler, the awk
     5         kx ### program is a limit on most vendor UNIX systems.  Check that we can build.
     5         kx AC_MSG_CHECKING(if big-strings option selected)
     5         kx AC_ARG_ENABLE(big-strings,
     5         kx 	[  --disable-big-strings   assume compiler has only standard-size strings],
     5         kx 	[with_big_strings=$enableval],
     5         kx 	[CF_AWK_BIG_PRINTF(12000,with_big_strings)])
     5         kx AC_MSG_RESULT($with_big_strings)
     5         kx 
     5         kx USE_BIG_STRINGS=0
     5         kx test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
     5         kx AC_SUBST(USE_BIG_STRINGS)
     5         kx 
     5         kx ###	use option --enable-termcap to compile in the termcap fallback support
     5         kx AC_MSG_CHECKING(if you want termcap-fallback support)
     5         kx AC_ARG_ENABLE(termcap,
     5         kx 	[  --enable-termcap        compile in termcap fallback support],
     5         kx 	[with_termcap=$enableval],
     5         kx 	[with_termcap=no])
     5         kx AC_MSG_RESULT($with_termcap)
     5         kx 
     5         kx NCURSES_USE_TERMCAP=0
     5         kx if test "x$with_termcap" != "xyes" ; then
     5         kx 	if test "$use_database" = no ; then
     5         kx 		if test -z "$with_fallback" ; then
     5         kx 			AC_ERROR(You have disabled the database w/o specifying fallbacks)
     5         kx 		fi
     5         kx 	fi
     5         kx 	AC_DEFINE(PURE_TERMINFO,1,[Define to 1 if we should support only terminfo])
     5         kx else
     5         kx 
     5         kx 	if test "$with_ticlib" != no ; then
     5         kx 		AC_ERROR(Options --with-ticlib and --enable-termcap cannot be combined)
     5         kx 	fi
     5         kx 
     5         kx 	NCURSES_USE_TERMCAP=1
     5         kx 	AC_MSG_CHECKING(for list of termcap files)
     5         kx 	CF_WITH_PATHLIST(termpath,
     5         kx 		[  --with-termpath=XXX     specify list of termcap files],
     5         kx 		TERMPATH,
     5         kx 		/etc/termcap:/usr/share/misc/termcap)
     5         kx 	AC_MSG_RESULT($TERMPATH)
     5         kx 	test -n "$TERMPATH" && AC_DEFINE_UNQUOTED(TERMPATH,"$TERMPATH",[Define to set the termcap searchlist])
     5         kx 
     5         kx 	###	use option --enable-getcap to use a hacked getcap for reading termcaps
     5         kx 	AC_MSG_CHECKING(if fast termcap-loader is needed)
     5         kx 	AC_ARG_ENABLE(getcap,
     5         kx 		[  --enable-getcap         fast termcap load, no xrefs to terminfo],
     5         kx 		[with_getcap=$enableval],
     5         kx 		[with_getcap=no])
     5         kx 	AC_MSG_RESULT($with_getcap)
     5         kx 	test "x$with_getcap" = "xyes" && AC_DEFINE(USE_GETCAP,1,[Define to 1 to use fast termcap-loader])
     5         kx 
     5         kx 	AC_MSG_CHECKING(if translated termcaps will be cached in ~/.terminfo)
     5         kx 	AC_ARG_ENABLE(getcap-cache,
     5         kx 		[  --enable-getcap-cache   cache translated termcaps in ~/.terminfo],
     5         kx 		[with_getcap_cache=$enableval],
     5         kx 		[with_getcap_cache=no])
     5         kx 	AC_MSG_RESULT($with_getcap_cache)
     5         kx 	test "x$with_getcap_cache" = "xyes" && AC_DEFINE(USE_GETCAP_CACHE,1,[Define to 1 if translated termcap should be stored in $HOME/.terminfo])
     5         kx 
     5         kx fi
     5         kx AC_SUBST(NCURSES_USE_TERMCAP)
     5         kx 
     5         kx ###   Use option --disable-home-terminfo to completely remove ~/.terminfo
     5         kx AC_MSG_CHECKING(if ~/.terminfo is wanted)
     5         kx AC_ARG_ENABLE(home-terminfo,
     5         kx 	[  --disable-home-terminfo drop ~/.terminfo from terminfo search-path],
     5         kx 	[with_home_terminfo=$enableval],
     5         kx 	[with_home_terminfo=yes])
     5         kx AC_MSG_RESULT($with_home_terminfo)
     5         kx test "x$with_home_terminfo" = "xyes" && AC_DEFINE(USE_HOME_TERMINFO,1,[Define to 1 if $HOME/.terminfo feature is wanted])
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to permit root to use ncurses environment variables)
     5         kx AC_ARG_ENABLE(root-environ,
     5         kx 	[  --disable-root-environ  restrict root use of ncurses environment variables],
     5         kx 	[with_root_environ=$enableval],
     5         kx 	[with_root_environ=yes])
     5         kx AC_MSG_RESULT($with_root_environ)
     5         kx test "x$with_root_environ" = xyes && AC_DEFINE(USE_ROOT_ENVIRON,1,[Define to 1 if root is allowed to use ncurses environment])
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to permit setuid programs to access all files)
     5         kx AC_ARG_ENABLE(root-environ,
     5         kx 	[  --disable-root-access   restrict file-access when running setuid],
     5         kx 	[with_root_access=$enableval],
     5         kx 	[with_root_access=yes])
     5         kx AC_MSG_RESULT($with_root_access)
     5         kx test "x$with_root_access" = xyes && AC_DEFINE(USE_ROOT_ACCESS,1,[Define to 1 if setuid is allowed all file-access])
     5         kx 
     5         kx ###   Use option --enable-symlinks to make tic use symlinks, not hard links
     5         kx ###   to reduce storage requirements for the terminfo database.
     5         kx CF_LINK_FUNCS
     5         kx 
     5         kx with_links=no
     5         kx with_symlinks=no
     5         kx 
     5         kx # soft links (symbolic links) are useful for some systems where hard links do
     5         kx # not work, or to make it simpler to copy terminfo trees around.
     5         kx if test "x$ac_cv_func_symlink" = xyes ; then
     5         kx 	AC_MSG_CHECKING(if tic should use symbolic links)
     5         kx 	AC_ARG_ENABLE(symlinks,
     5         kx 	[  --enable-symlinks       make tic use symbolic links not hard links],
     5         kx 	[with_symlinks=$enableval],
     5         kx 	[with_symlinks=no])
     5         kx 	AC_MSG_RESULT($with_symlinks)
     5         kx fi
     5         kx 
     5         kx # If we have hard links and did not choose to use soft links instead, there is
     5         kx # no reason to make this choice optional - use the hard links.
     5         kx if test "$with_symlinks" = no ; then
     5         kx 	AC_MSG_CHECKING(if tic should use hard links)
     5         kx 	if test "x$ac_cv_func_link" = xyes ; then
     5         kx 		with_links=yes
     5         kx 	else
     5         kx 		with_links=no
     5         kx 	fi
     5         kx 	AC_MSG_RESULT($with_links)
     5         kx fi
     5         kx 
     5         kx test "x$with_links" = xyes && AC_DEFINE(USE_LINKS,1,[Define to 1 if hardlinks should be used in terminfo database])
     5         kx test "x$with_symlinks" = xyes && AC_DEFINE(USE_SYMLINKS,1,[Define to 1 if symbolic links should be used in terminfo database])
     5         kx 
     5         kx ###   use option --enable-broken-linker to force on use of broken-linker support
     5         kx CF_ENABLE_BROKEN_LINKER
     5         kx 
     5         kx ###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
     5         kx AC_MSG_CHECKING(if tputs should process BSD-style prefix padding)
     5         kx AC_ARG_ENABLE(bsdpad,
     5         kx 	[  --enable-bsdpad         recognize BSD-style prefix padding],
     5         kx 	[with_bsdpad=$enableval],
     5         kx 	[with_bsdpad=no])
     5         kx AC_MSG_RESULT($with_bsdpad)
     5         kx test "x$with_bsdpad" = xyes && AC_DEFINE(BSD_TPUTS,1,[Define to 1 to recognize BSD-style prefix padding])
     5         kx 
     5         kx ###   use option --enable-widec to turn on use of wide-character support
     5         kx NCURSES_CH_T=chtype
     5         kx NCURSES_LIBUTF8=0
     5         kx 
     5         kx NEED_WCHAR_H=0
     5         kx NCURSES_MBSTATE_T=0
     5         kx NCURSES_WCHAR_T=0
     5         kx NCURSES_WINT_T=0
     5         kx 
     5         kx # Check to define _XOPEN_SOURCE "automatically"
     5         kx CPPFLAGS_before_XOPEN="$CPPFLAGS"
     5         kx CF_XOPEN_SOURCE(600)
     5         kx CPPFLAGS_after_XOPEN="$CPPFLAGS"
     5         kx 
     5         kx # Work around breakage on OS X
     5         kx CF_SIGWINCH
     5         kx 
     5         kx # Checks for CODESET support.
     5         kx AM_LANGINFO_CODESET
     5         kx 
     5         kx # use these variables to work around a defect in gcc's fixincludes.
     5         kx NCURSES_OK_WCHAR_T=
     5         kx NCURSES_OK_WINT_T=
     5         kx 
     5         kx AC_MSG_CHECKING(if you want wide-character code)
     5         kx AC_ARG_ENABLE(widec,
     5         kx 	[  --enable-widec          compile with wide-char/UTF-8 code],
     5         kx 	[with_widec=$enableval],
     5         kx 	[with_widec=no])
     5         kx AC_MSG_RESULT($with_widec)
     5         kx 
     5         kx NCURSES_WCWIDTH_GRAPHICS=1
     5         kx AC_SUBST(NCURSES_WCWIDTH_GRAPHICS)
     5         kx 
     5         kx if test "x$with_widec" = xyes ; then
     5         kx 	if test "x$disable_lib_suffixes" = xno ; then
     5         kx 		LIB_SUFFIX="w${LIB_SUFFIX}"
     5         kx 	fi
     5         kx 	AC_DEFINE(USE_WIDEC_SUPPORT,1,[Define to 1 to compile with wide-char/UTF-8 code])
     5         kx 	AC_DEFINE(NCURSES_WIDECHAR,1,[Define to 1 to compile with wide-char/UTF-8 code])
     5         kx 	case "$CPPFLAGS" in
     5         kx 	(*_XOPEN_SOURCE=*)
     5         kx 		;;
     5         kx 	(*)
     5         kx 		AC_MSG_WARN(_XOPEN_SOURCE feature test macro appears to be predefined)
     5         kx 		# CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
     5         kx 		CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
     5         kx 		;;
     5         kx 	esac
     5         kx 
     5         kx 	CF_CHECK_WCHAR_H
     5         kx 	CF_CHECK_WCWIDTH_GRAPHICS
     5         kx 	test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
     5         kx 
     5         kx 	# with_overwrite=no
     5         kx 	NCURSES_CH_T=cchar_t
     5         kx 	AC_CHECK_FUNCS(putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs)
     5         kx 	if test "x$ac_cv_func_putwc" != xyes ; then
     5         kx 		CF_UTF8_LIB
     5         kx 		if test "$cf_cv_utf8_lib" != no ; then
     5         kx 			NCURSES_LIBUTF8=1
     5         kx 		fi
     5         kx 	fi
     5         kx 	CF_WCHAR_TYPE(mbstate_t, NCURSES_MBSTATE_T)
     5         kx 	CF_WCHAR_TYPE(wchar_t,   NCURSES_WCHAR_T,   NCURSES_OK_WCHAR_T)
     5         kx 	CF_WCHAR_TYPE(wint_t,    NCURSES_WINT_T,    NCURSES_OK_WINT_T)
     5         kx 
     5         kx 	if test "$NCURSES_MBSTATE_T" != 0; then
     5         kx 		AC_DEFINE(NEED_MBSTATE_T_DEF,1,[Define to 1 if we must declare mbstate_t])
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(NCURSES_CH_T)
     5         kx AC_SUBST(NCURSES_LIBUTF8)
     5         kx 
     5         kx AC_SUBST(NEED_WCHAR_H)
     5         kx AC_SUBST(NCURSES_MBSTATE_T)
     5         kx AC_SUBST(NCURSES_WCHAR_T)
     5         kx AC_SUBST(NCURSES_WINT_T)
     5         kx 
     5         kx AC_SUBST(NCURSES_OK_WCHAR_T)
     5         kx AC_SUBST(NCURSES_OK_WINT_T)
     5         kx 
     5         kx ###   use option --disable-lp64 to allow long chtype
     5         kx AC_MSG_CHECKING(whether to enable _LP64 definition in curses.h)
     5         kx AC_ARG_ENABLE(lp64,
     5         kx 	[  --disable-lp64          allow chtype to be long (ignore _LP64)],
     5         kx 	[with_lp64=$enableval],
     5         kx 	[with_lp64=$cf_dft_with_lp64])
     5         kx AC_MSG_RESULT($with_lp64)
     5         kx 
     5         kx if test "x$with_lp64" = xyes ; then
     5         kx 	cf_cv_enable_lp64=1
     5         kx else
     5         kx 	cf_cv_enable_lp64=0
     5         kx fi
     5         kx AC_SUBST(cf_cv_enable_lp64)
     5         kx 
     5         kx CF_LARGEFILE
     5         kx 
     5         kx ###   use option --disable-tparm-varargs to make tparm() conform to X/Open
     5         kx AC_MSG_CHECKING(if you want tparm not to use X/Open fixed-parameter list)
     5         kx AC_ARG_ENABLE(tparm-varargs,
     5         kx 	[  --disable-tparm-varargs compile tparm() without varargs interface],
     5         kx 	[with_tparm_varargs=$enableval],
     5         kx 	[with_tparm_varargs=yes])
     5         kx AC_MSG_RESULT($with_tparm_varargs)
     5         kx NCURSES_TPARM_VARARGS=0
     5         kx test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
     5         kx AC_SUBST(NCURSES_TPARM_VARARGS)
     5         kx 
     5         kx ###   use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
     5         kx if test "$with_ticlib" != no ; then
     5         kx AC_MSG_CHECKING(if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library)
     5         kx AC_ARG_ENABLE(tic-depends,
     5         kx 	[  --disable-tic-depends   link tic library without explicit dependency on ncurses library],
     5         kx 	[with_tic_depends=$enableval],
     5         kx 	[with_tic_depends=yes])
     5         kx AC_MSG_RESULT($with_tic_depends)
     5         kx else
     5         kx 	with_tic_depends=no
     5         kx fi
     5         kx 
     5         kx ###   use option --enable-wattr-macros to enable wattr* macros in curses.h
     5         kx AC_MSG_CHECKING(if you want to enable wattr* macros)
     5         kx AC_ARG_ENABLE(wattr-macros,
     5         kx 	[  --enable-wattr-macros   enable wattr* macros],
     5         kx 	[with_wattr_macros=$enableval],
     5         kx 	[with_wattr_macros=no])
     5         kx if [[ "x$with_wattr_macros" != xyes ]]; then
     5         kx 	NCURSES_WATTR_MACROS=0
     5         kx 	AC_MSG_RESULT(no)
     5         kx else
     5         kx 	NCURSES_WATTR_MACROS=1
     5         kx 	AC_MSG_RESULT(yes)
     5         kx fi
     5         kx AC_SUBST(NCURSES_WATTR_MACROS)
     5         kx 
     5         kx CF_WITH_X11_RGB
     5         kx 
     5         kx ###   use option --with-bool to override bool's type
     5         kx AC_MSG_CHECKING(for type of bool)
     5         kx AC_ARG_WITH(bool,
     5         kx 	[  --with-bool=TYPE        override fallback type of bool variable],
     5         kx 	[NCURSES_BOOL="$withval"],
     5         kx 	[NCURSES_BOOL=auto])
     5         kx AC_MSG_RESULT($NCURSES_BOOL)
     5         kx AC_SUBST(NCURSES_BOOL)
     5         kx 
     5         kx AC_MSG_CHECKING(for alternate terminal capabilities file)
     5         kx AC_ARG_WITH(caps,
     5         kx 	[  --with-caps=alt         compile with alternate Caps file],
     5         kx 	[TERMINFO_CAPS=Caps.$withval],
     5         kx 	[TERMINFO_CAPS=Caps])
     5         kx if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
     5         kx then
     5         kx 	AC_MSG_WARN(file not found: "${srcdir}/include/${TERMINFO_CAPS}")
     5         kx 	TERMINFO_CAPS=Caps
     5         kx fi
     5         kx AC_MSG_RESULT($TERMINFO_CAPS)
     5         kx AC_SUBST(TERMINFO_CAPS)
     5         kx 
     5         kx ###   use option --with-chtype to override chtype's type
     5         kx AC_MSG_CHECKING(for type of chtype)
     5         kx AC_ARG_WITH(chtype,
     5         kx 	[  --with-chtype=TYPE      override type of chtype],
     5         kx 	[NCURSES_CHTYPE="$withval"],
     5         kx 	[NCURSES_CHTYPE=$cf_dft_chtype])
     5         kx AC_MSG_RESULT($NCURSES_CHTYPE)
     5         kx 
     5         kx ###   use option --with-ospeed to override ospeed's type
     5         kx AC_MSG_CHECKING(for type of ospeed)
     5         kx AC_ARG_WITH(ospeed,
     5         kx 	[  --with-ospeed=TYPE      override type of ospeed variable],
     5         kx 	[NCURSES_OSPEED="$withval"],
     5         kx 	[NCURSES_OSPEED=short])
     5         kx AC_MSG_RESULT($NCURSES_OSPEED)
     5         kx AC_SUBST(NCURSES_OSPEED)
     5         kx 
     5         kx ###   use option --with-mmask-t to override mmask_t's type
     5         kx AC_MSG_CHECKING(for type of mmask_t)
     5         kx AC_ARG_WITH(mmask-t,
     5         kx 	[  --with-mmask-t=TYPE     override type of mmask_t],
     5         kx 	[NCURSES_MMASK_T="$withval"],
     5         kx 	[NCURSES_MMASK_T=$cf_dft_mmask_t])
     5         kx AC_MSG_RESULT($NCURSES_MMASK_T)
     5         kx 
     5         kx ###   use option --with-ccharw-max to override CCHARW_MAX size
     5         kx AC_MSG_CHECKING(for size CCHARW_MAX)
     5         kx AC_ARG_WITH(ccharw-max,
     5         kx 	[  --with-ccharw-max=XXX   override size CCHARW_MAX],
     5         kx 	[NCURSES_CCHARW_MAX="$withval"],
     5         kx 	[NCURSES_CCHARW_MAX=$cf_dft_ccharw_max])
     5         kx AC_MSG_RESULT($NCURSES_CCHARW_MAX)
     5         kx AC_SUBST(NCURSES_CCHARW_MAX)
     5         kx 
     5         kx AC_CHECK_SIZEOF([signed char])
     5         kx if test "$ac_cv_sizeof_signed_char" = 1 ; then
     5         kx 	NCURSES_SBOOL="signed char"
     5         kx else
     5         kx 	NCURSES_SBOOL="char"
     5         kx fi
     5         kx AC_MSG_CHECKING(if you want to use signed Boolean array in term.h)
     5         kx AC_ARG_ENABLE(signed-char,
     5         kx 	[  --enable-signed-char    compile using signed Boolean's in term.h],
     5         kx 	[with_signed_char=$enableval],
     5         kx 	[with_signed_char=$cf_dft_signed_char])
     5         kx AC_MSG_RESULT($with_signed_char)
     5         kx test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
     5         kx AC_SUBST(NCURSES_SBOOL)
     5         kx 
     5         kx ###   use option --with-tparm-arg to override tparm's argument type
     5         kx AC_MSG_CHECKING(for type of tparm args)
     5         kx AC_ARG_WITH(tparm-arg,
     5         kx 	[  --with-tparm-arg=TYPE   override parameter type of tparm],
     5         kx 	[NCURSES_TPARM_ARG="$withval"],
     5         kx 	[NCURSES_TPARM_ARG=$cf_dft_tparm_arg])
     5         kx AC_MSG_RESULT($NCURSES_TPARM_ARG)
     5         kx AC_SUBST(NCURSES_TPARM_ARG)
     5         kx 
     5         kx ### Enable compiling-in rcs id's
     5         kx AC_MSG_CHECKING(if RCS identifiers should be compiled-in)
     5         kx AC_ARG_WITH(rcs-ids,
     5         kx 	[  --with-rcs-ids          compile-in RCS identifiers],
     5         kx 	[with_rcs_ids=$withval],
     5         kx 	[with_rcs_ids=no])
     5         kx AC_MSG_RESULT($with_rcs_ids)
     5         kx test "x$with_rcs_ids" = xyes && AC_DEFINE(USE_RCS_IDS,1,[Define to 1 to compile-in RCS identifiers])
     5         kx 
     5         kx ###############################################################################
     5         kx CF_MAN_PAGES([ captoinfo clear infocmp infotocap reset tabs tic toe tput tset ])
     5         kx 
     5         kx ###############################################################################
     5         kx CF_HELP_MESSAGE(Extensions:)
     5         kx 
     5         kx ### Note that some functions (such as const) are normally disabled anyway.
     5         kx AC_MSG_CHECKING(if you want to build with function extensions)
     5         kx AC_ARG_ENABLE(ext-funcs,
     5         kx 	[  --disable-ext-funcs     disable function-extensions],
     5         kx 	[with_ext_funcs=$enableval],
     5         kx 	[with_ext_funcs=yes])
     5         kx AC_MSG_RESULT($with_ext_funcs)
     5         kx if test "x$with_ext_funcs" = xyes ; then
     5         kx 	NCURSES_EXT_FUNCS=1
     5         kx 	AC_DEFINE(NCURSES_EXT_FUNCS,1,[Define to 1 to enable ncurses extended functions])
     5         kx 	AC_DEFINE(HAVE_ASSUME_DEFAULT_COLORS,1,[Define to 1 to enable assume_default_colors() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 to enable curses_version() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_HAS_KEY,1,[Define to 1 to enable has_key() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_RESIZETERM,1,[Define to 1 to enable resizeterm() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_USE_EXTENDED_NAMES,1,[Define to 1 to enable use_extended_names() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function in test-programs])
     5         kx 	AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function in test-programs])
     5         kx 	GENERATED_EXT_FUNCS=generated
     5         kx 	test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
     5         kx else
     5         kx 	NCURSES_EXT_FUNCS=0
     5         kx 	GENERATED_EXT_FUNCS=
     5         kx fi
     5         kx AC_SUBST(NCURSES_EXT_FUNCS)
     5         kx AC_SUBST(GENERATED_EXT_FUNCS)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build with SCREEN extensions)
     5         kx AC_ARG_ENABLE(sp-funcs,
     5         kx 	[  --enable-sp-funcs       enable SCREEN-extensions],
     5         kx 	[with_sp_funcs=$enableval],
     5         kx 	[with_sp_funcs=$cf_dft_ext_spfuncs])
     5         kx AC_MSG_RESULT($with_sp_funcs)
     5         kx if test "x$with_sp_funcs" = xyes ; then
     5         kx 	NCURSES_SP_FUNCS=1
     5         kx 	AC_DEFINE(NCURSES_SP_FUNCS,1,[Define to 1 to enable SCREEN-extensions])
     5         kx 	AC_DEFINE(HAVE_TPUTS_SP,1,[Define to 1 to enable tputs_sp() function in test-programs])
     5         kx 	GENERATED_SP_FUNCS=generated
     5         kx else
     5         kx 	NCURSES_SP_FUNCS=0
     5         kx 	GENERATED_SP_FUNCS=
     5         kx fi
     5         kx AC_SUBST(NCURSES_SP_FUNCS)
     5         kx AC_SUBST(GENERATED_SP_FUNCS)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want to build with terminal-driver)
     5         kx AC_ARG_ENABLE(term-driver,
     5         kx 	[  --enable-term-driver    enable terminal-driver],
     5         kx 	[with_term_driver=$enableval],
     5         kx 	[with_term_driver=no])
     5         kx AC_MSG_RESULT($with_term_driver)
     5         kx if test "x$with_term_driver" = xyes ; then
     5         kx 	AC_DEFINE(USE_TERM_DRIVER,1,[Define to 1 to enable terminal-driver])
     5         kx 	if test "x$with_termlib" != xno ; then
     5         kx 		AC_MSG_ERROR(The term-driver option conflicts with the termlib option)
     5         kx 	fi
     5         kx 	if test "x$with_sp_funcs" != xyes ; then
     5         kx 		AC_MSG_ERROR(The term-driver option relies upon sp-funcs)
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx ###   use option --enable-const to turn on use of const beyond that in XSI.
     5         kx AC_MSG_CHECKING(for extended use of const keyword)
     5         kx AC_ARG_ENABLE(const,
     5         kx 	[  --enable-const          compile with extra/non-standard const],
     5         kx 	[with_ext_const=$enableval],
     5         kx 	[with_ext_const=$cf_dft_ext_const])
     5         kx AC_MSG_RESULT($with_ext_const)
     5         kx NCURSES_CONST='/*nothing*/'
     5         kx if test "x$with_ext_const" = xyes ; then
     5         kx 	NCURSES_CONST=const
     5         kx fi
     5         kx AC_SUBST(NCURSES_CONST)
     5         kx 
     5         kx ###   use option --enable-ext-colors to turn on use of colors beyond 16.
     5         kx AC_MSG_CHECKING(if you want to use extended colors)
     5         kx AC_ARG_ENABLE(ext-colors,
     5         kx 	[  --enable-ext-colors     compile for 256-color support],
     5         kx 	[with_ext_colors=$enableval],
     5         kx 	[with_ext_colors=$cf_dft_ext_colors])
     5         kx AC_MSG_RESULT($with_ext_colors)
     5         kx NCURSES_EXT_COLORS=0
     5         kx if test "x$with_ext_colors" = xyes ; then
     5         kx 	if test "x$with_widec" != xyes ; then
     5         kx 		AC_MSG_WARN(This option applies only to wide-character library)
     5         kx 	else
     5         kx 		# cannot be ABI 5 since it changes sizeof(cchar_t)
     5         kx 		CF_NCURSES_ABI_6
     5         kx 		NCURSES_EXT_COLORS=1
     5         kx 		AC_DEFINE(NCURSES_EXT_COLORS,1,[Define to 1 to compile for 256-color support])
     5         kx 		AC_DEFINE(HAVE_ALLOC_PAIR,1,[Define to 1 to enable alloc_pair() function])
     5         kx 		AC_DEFINE(HAVE_INIT_EXTENDED_COLOR,1,[Define to 1 to enable init_extended_color() function in test-programs])
     5         kx 		AC_DEFINE(HAVE_RESET_COLOR_PAIRS,1,[Define to 1 to enable reset_color_pairs() function in test-programs])
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(NCURSES_EXT_COLORS)
     5         kx 
     5         kx ###   use option --enable-ext-mouse to modify coding to support 5-button mice
     5         kx AC_MSG_CHECKING(if you want to use extended mouse encoding)
     5         kx AC_ARG_ENABLE(ext-mouse,
     5         kx 	[  --enable-ext-mouse      compile for extended mouse-encoding],
     5         kx 	[with_ext_mouse=$enableval],
     5         kx 	[with_ext_mouse=$cf_dft_ext_mouse])
     5         kx AC_MSG_RESULT($with_ext_mouse)
     5         kx if test "x$with_ext_mouse" = xyes ; then
     5         kx 	CF_NCURSES_ABI_6
     5         kx fi
     5         kx 
     5         kx case $cf_cv_abi_version in
     5         kx (5)
     5         kx 	NCURSES_MOUSE_VERSION=1
     5         kx 	;;
     5         kx (6)
     5         kx 	NCURSES_MOUSE_VERSION=2
     5         kx 	;;
     5         kx ([[789]])
     5         kx 	NCURSES_MOUSE_VERSION=3
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_SUBST(NCURSES_MOUSE_VERSION)
     5         kx 
     5         kx ###   use option --enable-ext-putwin to turn on extended screendumps
     5         kx AC_MSG_CHECKING(if you want to use extended putwin/screendump)
     5         kx AC_ARG_ENABLE(ext-putwin,
     5         kx 	[  --enable-ext-putwin     compile with extended putwin/screendump],
     5         kx 	[with_ext_putwin=$enableval],
     5         kx 	[with_ext_putwin=$cf_dft_ext_putwin])
     5         kx AC_MSG_RESULT($with_ext_putwin)
     5         kx if test "x$with_ext_putwin" = xyes ; then
     5         kx 	AC_DEFINE(NCURSES_EXT_PUTWIN,1,[Define to 1 to compile with extended putwin/screendump])
     5         kx fi
     5         kx 
     5         kx AC_MSG_CHECKING(if you want \$NCURSES_NO_PADDING code)
     5         kx AC_ARG_ENABLE(no-padding,
     5         kx 	[  --enable-no-padding     compile with $NCURSES_NO_PADDING code],
     5         kx 	[with_no_padding=$enableval],
     5         kx 	[with_no_padding=$with_ext_funcs])
     5         kx AC_MSG_RESULT($with_no_padding)
     5         kx test "x$with_no_padding" = xyes && AC_DEFINE(NCURSES_NO_PADDING,1,[Define to 1 to compile with $NCURSES_NO_PADDING code])
     5         kx 
     5         kx ###   use option --enable-sigwinch to turn on use of SIGWINCH logic
     5         kx AC_MSG_CHECKING(if you want SIGWINCH handler)
     5         kx AC_ARG_ENABLE(sigwinch,
     5         kx 	[  --enable-sigwinch       compile with SIGWINCH handler],
     5         kx 	[with_sigwinch=$enableval],
     5         kx 	[with_sigwinch=$with_ext_funcs])
     5         kx AC_MSG_RESULT($with_sigwinch)
     5         kx test "x$with_sigwinch" = xyes && AC_DEFINE(USE_SIGWINCH,1,[Define to 1 to compile with SIGWINCH handler])
     5         kx 
     5         kx ###   use option --enable-tcap-names to allow user to define new capabilities
     5         kx AC_MSG_CHECKING(if you want user-definable terminal capabilities like termcap)
     5         kx AC_ARG_ENABLE(tcap-names,
     5         kx 	[  --enable-tcap-names     compile with user-definable terminal capabilities],
     5         kx 	[with_tcap_names=$enableval],
     5         kx 	[with_tcap_names=$with_ext_funcs])
     5         kx AC_MSG_RESULT($with_tcap_names)
     5         kx NCURSES_XNAMES=0
     5         kx test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
     5         kx AC_SUBST(NCURSES_XNAMES)
     5         kx 
     5         kx ##############################################################################
     5         kx CF_HELP_MESSAGE(Reentrant Code:)
     5         kx CF_WITH_PTHREAD
     5         kx 
     5         kx if test "x$with_pthread" != xno; then
     5         kx 	AC_CHECK_FUNC(pthread_kill,[
     5         kx 		AC_MSG_CHECKING(if you want to allow EINTR in wgetch with pthreads)
     5         kx 		AC_ARG_ENABLE(pthreads-eintr,
     5         kx 			[  --enable-pthreads-eintr enable EINTR in wgetch with pthreads],
     5         kx 			[use_pthreads_eintr=$enableval],
     5         kx 			[use_pthreads_eintr=no])
     5         kx 		AC_MSG_RESULT($use_pthreads_eintr)
     5         kx 		if test "x$use_pthreads_eintr" = xyes ; then
     5         kx 			AC_DEFINE(USE_PTHREADS_EINTR,1,[Define to 1 to enable EINTR in wgetch with pthreads])
     5         kx 		fi])
     5         kx 
     5         kx 	AC_MSG_CHECKING(if you want to use weak-symbols for pthreads)
     5         kx 	AC_ARG_ENABLE(weak-symbols,
     5         kx 		[  --enable-weak-symbols   enable weak-symbols for pthreads],
     5         kx 		[use_weak_symbols=$enableval],
     5         kx 		[use_weak_symbols=no])
     5         kx 	AC_MSG_RESULT($use_weak_symbols)
     5         kx 	if test "x$use_weak_symbols" = xyes ; then
     5         kx 		CF_WEAK_SYMBOLS
     5         kx 	else
     5         kx 		cf_cv_weak_symbols=no
     5         kx 	fi
     5         kx 
     5         kx 	if test "x$cf_cv_weak_symbols" = xyes ; then
     5         kx 		AC_DEFINE(USE_WEAK_SYMBOLS,1,[Define to 1 to enable weak-symbols for pthreads])
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx PTHREAD=
     5         kx if test "x$with_pthread" = "xyes" ; then
     5         kx 	AC_DEFINE(USE_PTHREADS,1,[Define to 1 to use pthreads feature])
     5         kx 	enable_reentrant=yes
     5         kx 	if test "x$cf_cv_weak_symbols" = xyes ; then
     5         kx 		PTHREAD=-lpthread
     5         kx 		CF_ADD_LIB(pthread,PRIVATE_LIBS)
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(PTHREAD)
     5         kx 
     5         kx # Reentrant code has to be opaque; there's little advantage to making ncurses
     5         kx # opaque outside of that, so there is no --enable-opaque option.  We can use
     5         kx # this option without --with-pthreads, but this will be always set for
     5         kx # pthreads.
     5         kx AC_MSG_CHECKING(if you want reentrant code)
     5         kx AC_ARG_ENABLE(reentrant,
     5         kx 	[  --enable-reentrant      compile with reentrant code],
     5         kx 	[with_reentrant=$enableval],
     5         kx 	[with_reentrant=no])
     5         kx AC_MSG_RESULT($with_reentrant)
     5         kx if test "x$with_reentrant" = xyes ; then
     5         kx 	cf_cv_enable_reentrant=1
     5         kx 	cf_cv_enable_opaque="NCURSES_INTERNALS"
     5         kx 	NCURSES_SIZE_T=int
     5         kx 	if test "x$cf_cv_weak_symbols" = xyes ; then
     5         kx 		CF_REMOVE_LIB(LIBS,$LIBS,pthread)
     5         kx 		CF_ADD_LIB(pthread,TEST_LIBS)
     5         kx 		CF_ADD_LIB(pthread,TEST_LIBS2)
     5         kx 		CF_ADD_LIB(pthread,PRIVATE_LIBS)
     5         kx 	else
     5         kx 		# when not using weak symbols but with_reentrant,
     5         kx 		# add 't' to the library suffix on all platforms
     5         kx 		# except cygwin, where we only do that if ALSO
     5         kx 		# compiling with full thread support.
     5         kx 		case "$host" in
     5         kx 		(*cygwin* | *msys*)
     5         kx 			if test "$with_pthread" = "yes" ; then
     5         kx 				if test "x$disable_lib_suffixes" = "xno" ; then
     5         kx 					LIB_SUFFIX="t${LIB_SUFFIX}"
     5         kx 				fi
     5         kx 			fi ;;
     5         kx 		(*)
     5         kx 			if test "x$disable_lib_suffixes" = "xno" ; then
     5         kx 				LIB_SUFFIX="t${LIB_SUFFIX}"
     5         kx 			fi
     5         kx 			;;
     5         kx 		esac
     5         kx 	fi
     5         kx 	AC_DEFINE(USE_REENTRANT,1,[Define to 1 to use reentrant feature])
     5         kx 	CF_NCURSES_ABI_6
     5         kx else
     5         kx 	cf_cv_enable_reentrant=0
     5         kx 	cf_cv_enable_opaque="NCURSES_OPAQUE"
     5         kx 	NCURSES_SIZE_T=$cf_dft_ordinate_type
     5         kx fi
     5         kx AC_SUBST(cf_cv_enable_reentrant)
     5         kx AC_SUBST(cf_cv_enable_opaque)
     5         kx 
     5         kx AC_SUBST(NCURSES_SIZE_T)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want opaque curses-library structures)
     5         kx CF_ARG_ENABLE(opaque-curses,
     5         kx 	[  --enable-opaque-curses  make curses WINDOW, etc., "opaque"],
     5         kx 	[enable_opaque_curses=yes],[
     5         kx 	 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
     5         kx 	 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
     5         kx 	])
     5         kx AC_MSG_RESULT($enable_opaque_curses)
     5         kx 
     5         kx test "$cf_cv_enable_reentrant" = 1 && \
     5         kx test "$enable_opaque_curses" = no && \
     5         kx AC_MSG_ERROR(reentrant configuration requires opaque library)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want opaque form-library structures)
     5         kx AC_ARG_ENABLE(opaque-form,
     5         kx 	[  --enable-opaque-form    make form-library structures "opaque"],
     5         kx 	[enable_opaque_form=yes],[enable_opaque_form=no])
     5         kx AC_MSG_RESULT($enable_opaque_form)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want opaque menu-library structures)
     5         kx AC_ARG_ENABLE(opaque-menu,
     5         kx 	[  --enable-opaque-menu    make menu-library structures "opaque"],
     5         kx 	[enable_opaque_menu=yes],[enable_opaque_menu=no])
     5         kx AC_MSG_RESULT($enable_opaque_menu)
     5         kx 
     5         kx AC_MSG_CHECKING(if you want opaque panel-library structures)
     5         kx AC_ARG_ENABLE(opaque-panel,
     5         kx 	[  --enable-opaque-panel   make panel-library structures "opaque"],
     5         kx 	[enable_opaque_panel=yes],[enable_opaque_panel=no])
     5         kx AC_MSG_RESULT($enable_opaque_panel)
     5         kx 
     5         kx NCURSES_OPAQUE=0;		test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
     5         kx NCURSES_OPAQUE_FORM=0;	test "$enable_opaque_form"   = yes && NCURSES_OPAQUE_FORM=1
     5         kx NCURSES_OPAQUE_MENU=0;	test "$enable_opaque_menu"   = yes && NCURSES_OPAQUE_MENU=1
     5         kx NCURSES_OPAQUE_PANEL=0;	test "$enable_opaque_panel"  = yes && NCURSES_OPAQUE_PANEL=1
     5         kx 
     5         kx AC_SUBST(NCURSES_OPAQUE)
     5         kx AC_SUBST(NCURSES_OPAQUE_FORM)
     5         kx AC_SUBST(NCURSES_OPAQUE_MENU)
     5         kx AC_SUBST(NCURSES_OPAQUE_PANEL)
     5         kx 
     5         kx ### Allow using a different wrap-prefix
     5         kx if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
     5         kx 	AC_MSG_CHECKING(for prefix used to wrap public variables)
     5         kx 	AC_ARG_WITH(wrap-prefix,
     5         kx 		[  --with-wrap-prefix=XXX  override prefix used for public variables],
     5         kx 		[NCURSES_WRAP_PREFIX=$withval],
     5         kx 		[NCURSES_WRAP_PREFIX=_nc_])
     5         kx 	AC_MSG_RESULT($NCURSES_WRAP_PREFIX)
     5         kx else
     5         kx 	NCURSES_WRAP_PREFIX=_nc_
     5         kx fi
     5         kx AC_SUBST(NCURSES_WRAP_PREFIX)
     5         kx AC_DEFINE_UNQUOTED(NCURSES_WRAP_PREFIX,"$NCURSES_WRAP_PREFIX",[Define to override _nc_ prefix])
     5         kx 
     5         kx ###############################################################################
     5         kx # These options are relatively safe to experiment with.
     5         kx CF_HELP_MESSAGE(Development Code:)
     5         kx AC_MSG_CHECKING(if you want all development code)
     5         kx AC_ARG_WITH(develop,
     5         kx 	[  --without-develop       disable development options],
     5         kx 	[with_develop=$withval],
     5         kx 	[with_develop=no])
     5         kx AC_MSG_RESULT($with_develop)
     5         kx 
     5         kx ###   use option --enable-hard-tabs to turn on use of hard-tabs optimize
     5         kx AC_MSG_CHECKING(if you want hard-tabs code)
     5         kx AC_ARG_ENABLE(hard-tabs,
     5         kx 	[  --enable-hard-tabs      compile with hard-tabs code],,
     5         kx 	[enable_hard_tabs=$with_develop])
     5         kx AC_MSG_RESULT($enable_hard_tabs)
     5         kx test "x$enable_hard_tabs" = xyes && AC_DEFINE(USE_HARD_TABS,1,[Define to 1 to compile with hard-tabs code])
     5         kx 
     5         kx ###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
     5         kx AC_MSG_CHECKING(if you want limited support for xmc)
     5         kx AC_ARG_ENABLE(xmc-glitch,
     5         kx 	[  --enable-xmc-glitch     compile with support for xmc (magic-cookie)],,
     5         kx 	[enable_xmc_glitch=$with_develop])
     5         kx AC_MSG_RESULT($enable_xmc_glitch)
     5         kx test "x$enable_xmc_glitch" = xyes && AC_DEFINE(USE_XMC_SUPPORT,1,[Define to 1 to compile with support for xmc (magic-cookie)])
     5         kx 
     5         kx ###############################################################################
     5         kx # These are just experimental, probably should not be in a package:
     5         kx CF_HELP_MESSAGE(Experimental Code:)
     5         kx 
     5         kx AC_MSG_CHECKING(if you do not want to assume colors are white-on-black)
     5         kx AC_ARG_ENABLE(assumed-color,
     5         kx 	[  --disable-assumed-color do not assume anything about default-colors],
     5         kx 	[with_assumed_color=$enableval],
     5         kx 	[with_assumed_color=yes])
     5         kx AC_MSG_RESULT($with_assumed_color)
     5         kx test "x$with_assumed_color" = xyes && AC_DEFINE(USE_ASSUMED_COLOR,1,[Define to 1 to assume things about default-colors])
     5         kx 
     5         kx ###   use option --enable-hashmap to turn on use of hashmap scrolling logic
     5         kx AC_MSG_CHECKING(if you want hashmap scrolling-optimization code)
     5         kx AC_ARG_ENABLE(hashmap,
     5         kx 	[  --disable-hashmap       compile without hashmap scrolling-optimization],
     5         kx 	[with_hashmap=$enableval],
     5         kx 	[with_hashmap=yes])
     5         kx AC_MSG_RESULT($with_hashmap)
     5         kx test "x$with_hashmap" = xyes && AC_DEFINE(USE_HASHMAP,1,[Define to 1 to compile with hashmap scrolling-optimization])
     5         kx 
     5         kx ###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
     5         kx AC_MSG_CHECKING(if you want colorfgbg code)
     5         kx AC_ARG_ENABLE(colorfgbg,
     5         kx 	[  --enable-colorfgbg      compile-in experimental $COLORFGBG code],
     5         kx 	[with_colorfgbg=$enableval],
     5         kx 	[with_colorfgbg=no])
     5         kx AC_MSG_RESULT($with_colorfgbg)
     5         kx test "x$with_colorfgbg" = xyes && AC_DEFINE(USE_COLORFGBG,1,[Define to 1 to compile-in experimental $COLORFGBG code])
     5         kx 
     5         kx ###   use option --enable-fvisibility to turn on use of gcc-specific feature
     5         kx AC_MSG_CHECKING(if you want to use gcc -fvisibility option)
     5         kx AC_ARG_ENABLE(fvisibility,
     5         kx 	[  --enable-fvisibility    compile with -fvisibility=hidden],
     5         kx 	[cf_with_fvisibility=$enableval],
     5         kx 	[cf_with_fvisibility=no])
     5         kx AC_MSG_RESULT($cf_with_fvisibility)
     5         kx 
     5         kx NCURSES_IMPEXP=
     5         kx NCURSES_CXX_IMPEXP=
     5         kx if test "x$cf_with_fvisibility" = xyes; then
     5         kx 	CF_CHECK_FVISIBILITY($CC,CFLAGS,cf_cv_fvisibility_hidden)
     5         kx 	if test "x$cf_cv_fvisibility_hidden" = xyes
     5         kx 	then
     5         kx 		CF_ADD_CFLAGS([-fvisibility=hidden])
     5         kx 		NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
     5         kx 	fi
     5         kx 	if test -n "$CXX"
     5         kx 	then
     5         kx 		AC_LANG_PUSH(C++)
     5         kx 		CF_CHECK_FVISIBILITY($CXX,CXXFLAGS,cf_cv_fvisibility_hidden2)
     5         kx 		if test "x$cf_cv_fvisibility_hidden2" = xyes
     5         kx 		then
     5         kx 			CF_ADD_CXXFLAGS([-fvisibility=hidden])
     5         kx 			NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
     5         kx 		fi
     5         kx 		AC_LANG_POP
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(NCURSES_IMPEXP)
     5         kx AC_SUBST(NCURSES_CXX_IMPEXP)
     5         kx 
     5         kx ###   use option --enable-interop to turn on use of bindings used for interop
     5         kx AC_MSG_CHECKING(if you want interop bindings)
     5         kx AC_ARG_ENABLE(interop,
     5         kx 	[  --enable-interop        compile-in interop bindings],
     5         kx 	[with_exp_interop=$enableval],
     5         kx 	[with_exp_interop=$cf_dft_interop])
     5         kx AC_MSG_RESULT($with_exp_interop)
     5         kx 
     5         kx NCURSES_INTEROP_FUNCS=0
     5         kx test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
     5         kx AC_SUBST(NCURSES_INTEROP_FUNCS)
     5         kx 
     5         kx 
     5         kx AC_MSG_CHECKING(if you want experimental safe-sprintf code)
     5         kx AC_ARG_ENABLE(safe-sprintf,
     5         kx 	[  --enable-safe-sprintf   compile with experimental safe-sprintf code],
     5         kx 	[with_safe_sprintf=$enableval],
     5         kx 	[with_safe_sprintf=no])
     5         kx AC_MSG_RESULT($with_safe_sprintf)
     5         kx 
     5         kx ###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
     5         kx # when hashmap is used scroll hints are useless
     5         kx if test "$with_hashmap" = no ; then
     5         kx AC_MSG_CHECKING(if you want to experiment without scrolling-hints code)
     5         kx AC_ARG_ENABLE(scroll-hints,
     5         kx 	[  --disable-scroll-hints  compile without scroll-hints code],
     5         kx 	[with_scroll_hints=$enableval],
     5         kx 	[with_scroll_hints=yes])
     5         kx AC_MSG_RESULT($with_scroll_hints)
     5         kx test "x$with_scroll_hints" = xyes && AC_DEFINE(USE_SCROLL_HINTS,1,[Define to 1 to compile without scroll-hints code])
     5         kx fi
     5         kx 
     5         kx AC_MSG_CHECKING(if you want wgetch-events code)
     5         kx AC_ARG_ENABLE(wgetch-events,
     5         kx 	[  --enable-wgetch-events  compile with wgetch-events code],
     5         kx 	[with_wgetch_events=$enableval],
     5         kx 	[with_wgetch_events=no])
     5         kx AC_MSG_RESULT($with_wgetch_events)
     5         kx if test "x$with_wgetch_events" = xyes ; then
     5         kx 	AC_DEFINE(NCURSES_WGETCH_EVENTS,1,[Define to 1 to compile with wgetch-events code])
     5         kx 	NCURSES_WGETCH_EVENTS=1
     5         kx else
     5         kx 	NCURSES_WGETCH_EVENTS=0
     5         kx fi
     5         kx AC_SUBST(NCURSES_WGETCH_EVENTS)
     5         kx 
     5         kx case "$cf_cv_system_name" in
     5         kx (*mingw32*|*mingw64*|*-msvc*)
     5         kx 	AC_MSG_CHECKING(if you want experimental-Windows driver)
     5         kx 	AC_ARG_ENABLE(exp-win32,
     5         kx 		[  --enable-exp-win32      compile with experimental-Windows driver],
     5         kx 		[with_exp_win32=$enableval],
     5         kx 		[with_exp_win32=no])
     5         kx 	AC_MSG_RESULT($with_exp_win32)
     5         kx 	if test "x$with_exp_win32" = xyes
     5         kx 	then
     5         kx 		AC_DEFINE(EXP_WIN32_DRIVER,1,[Define to 1 to compile with experimental win32 driver])
     5         kx 		EXP_WIN32_DRIVER=1
     5         kx 		INTERNALS_HDR='[$](INCDIR)/nc_win32.h'
     5         kx 	else
     5         kx 		INTERNALS_HDR='[$](INCDIR)/nc_mingw.h'
     5         kx 		EXP_WIN32_DRIVER=0
     5         kx 	fi
     5         kx 	;;
     5         kx (*)
     5         kx 	EXP_WIN32_DRIVER=0
     5         kx 	INTERNALS_HDR=
     5         kx 	;;
     5         kx esac
     5         kx AC_SUBST(EXP_WIN32_DRIVER)
     5         kx AC_SUBST(INTERNALS_HDR)
     5         kx 
     5         kx ###############################################################################
     5         kx CF_HELP_MESSAGE(Testing/development Options:)
     5         kx 
     5         kx ###	use option --disable-echo to suppress full display compiling commands
     5         kx CF_DISABLE_ECHO
     5         kx if test "x$enable_echo" = xyes; then
     5         kx 	ECHO_LINK=
     5         kx else
     5         kx 	ECHO_LINK='@ echo linking $@ ... ;'
     5         kx 	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
     5         kx 	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
     5         kx fi
     5         kx AC_SUBST(ECHO_LINK)
     5         kx 
     5         kx # --disable-stripping is used for debugging
     5         kx CF_INSTALL_OPTS
     5         kx 
     5         kx # If we're avoiding relinking of shared libraries during install, that is to
     5         kx # avoid modifying the build-tree.  For the same reason, avoid doing ranlib if
     5         kx # the install program has "-p" (for preserving timestamps).
     5         kx cf_cv_do_reranlib=yes
     5         kx if test "x$cf_cv_install_p" = xyes
     5         kx then
     5         kx 	if test "x$cf_cv_do_relink" != xyes
     5         kx 	then
     5         kx 		cf_cv_do_reranlib=no
     5         kx 		INSTALL_OPT_P="-p"
     5         kx 		INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(INSTALL_OPT_P)
     5         kx 
     5         kx ###	use option --enable-warnings to turn on all gcc warnings
     5         kx CF_ENABLE_WARNINGS(Wno-unknown-pragmas Wswitch-enum,yes)
     5         kx 
     5         kx if test "x$enable_warnings" = "xyes"; then
     5         kx  	CF_ADD_ADAFLAGS(-gnatwa -gnatyg)
     5         kx 	if test "x$cf_with_cxx" = xyes ; then
     5         kx 		CF_GXX_WARNINGS(Wno-unused)
     5         kx 	fi
     5         kx fi
     5         kx CF_ENABLE_STRING_HACKS
     5         kx 
     5         kx ###	use option --enable-assertions to turn on generation of assertion code
     5         kx AC_MSG_CHECKING(if you want to enable runtime assertions)
     5         kx AC_ARG_ENABLE(assertions,
     5         kx 	[  --enable-assertions     test: turn on generation of assertion code],
     5         kx 	[with_assertions=$enableval],
     5         kx 	[with_assertions=no])
     5         kx AC_MSG_RESULT($with_assertions)
     5         kx if test -n "$GCC"
     5         kx then
     5         kx 	if test "$with_assertions" = no
     5         kx 	then
     5         kx 		CPPFLAGS="$CPPFLAGS -DNDEBUG"
     5         kx 	else
     5         kx 		CF_ADD_ADAFLAGS(-gnata)
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx ###	use option --disable-leaks to suppress "permanent" leaks, for testing
     5         kx CF_DISABLE_LEAKS
     5         kx AC_DEFINE(HAVE_NC_ALLOC_H,1,[Define to 1 if we have nc_alloc.h header])
     5         kx 
     5         kx ###	use option --enable-expanded to generate certain macros as functions
     5         kx AC_ARG_ENABLE(expanded,
     5         kx 	[  --enable-expanded       test: generate functions for certain macros],
     5         kx 	[test "x$enableval" = xyes && AC_DEFINE(NCURSES_EXPANDED,1,[Define to 1 to generate functions for certain macros])])
     5         kx 
     5         kx ###	use option --disable-macros to suppress macros in favor of functions
     5         kx AC_ARG_ENABLE(macros,
     5         kx 	[  --disable-macros        test: use functions rather than macros],
     5         kx 	[test "$enableval" = no && AC_DEFINE(NCURSES_NOMACROS,1,[Define to 1 to use functions rather than macros])])
     5         kx 
     5         kx # Normally we only add trace() to the debug-library.  Allow this to be
     5         kx # extended to all models of the ncurses library:
     5         kx cf_all_traces=no
     5         kx case "$CFLAGS $CPPFLAGS" in
     5         kx (*-DTRACE*)
     5         kx 	cf_all_traces=yes
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_MSG_CHECKING(whether to add trace feature to all models)
     5         kx AC_ARG_WITH(trace,
     5         kx [  --with-trace            test: add trace() function to all models of ncurses],
     5         kx [cf_with_trace=$withval],
     5         kx [cf_with_trace=$cf_all_traces])
     5         kx AC_MSG_RESULT($cf_with_trace)
     5         kx 
     5         kx if test "x$cf_with_trace" = xyes ; then
     5         kx 	LIB_TRACING=all
     5         kx 	ADA_TRACE=TRUE
     5         kx 	CF_ADD_CFLAGS(-DTRACE)
     5         kx 	AC_DEFINE(HAVE__TRACEF,1,[Define to 1 if we have _tracef function])
     5         kx else
     5         kx 	LIB_TRACING=DEBUG
     5         kx 	ADA_TRACE=FALSE
     5         kx fi
     5         kx 
     5         kx AC_SUBST(ADA_TRACE)
     5         kx 
     5         kx CF_DISABLE_GNAT_PROJECTS
     5         kx 
     5         kx ###	Checks for libraries.
     5         kx case "$cf_cv_system_name" in
     5         kx (*mingw32*|*mingw64*)
     5         kx 	# Note: WINVER may be a problem with Windows 10
     5         kx 	if test "x$with_exp_win32" = xyes ; then
     5         kx 		CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
     5         kx 	else
     5         kx 		CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
     5         kx 	fi
     5         kx 	CF_CHECK_LIBSSP
     5         kx 	;;
     5         kx (*)
     5         kx AC_CHECK_FUNC(gettimeofday,
     5         kx 	AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define to 1 if we have gettimeofday function]),[
     5         kx 
     5         kx AC_CHECK_LIB(bsd, gettimeofday,
     5         kx 	AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define to 1 if we have gettimeofday function])
     5         kx 	CF_ADD_LIB(bsd))])dnl CLIX: bzero, select, gettimeofday
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx CF_MATH_LIB(MATH_LIB,pow(sin(x),x))
     5         kx AC_SUBST(MATH_LIB)
     5         kx 
     5         kx ###	Checks for header files.
     5         kx AC_STDC_HEADERS
     5         kx AC_HEADER_DIRENT
     5         kx AC_HEADER_TIME
     5         kx CF_REGEX
     5         kx 
     5         kx dnl These are some other potentially nonportable headers.
     5         kx AC_CHECK_HEADERS( \
     5         kx fcntl.h \
     5         kx getopt.h \
     5         kx limits.h \
     5         kx locale.h \
     5         kx math.h \
     5         kx poll.h \
     5         kx sys/ioctl.h \
     5         kx sys/param.h \
     5         kx sys/poll.h \
     5         kx sys/select.h \
     5         kx sys/time.h \
     5         kx sys/times.h \
     5         kx unistd.h \
     5         kx wctype.h \
     5         kx )
     5         kx 
     5         kx CF_GETOPT_HEADER
     5         kx 
     5         kx CF_CHECK_ENVIRON(environ)
     5         kx CF_CHECK_GETENV
     5         kx if test "x$cf_cv_consistent_getenv" = xno && \
     5         kx 	test "x$cf_with_trace" = xyes
     5         kx then
     5         kx 	AC_MSG_WARN(The NCURSES_TRACE environment variable is not supported with this configuration)
     5         kx fi
     5         kx 
     5         kx CF_SYS_TIME_SELECT
     5         kx 
     5         kx ###	checks for compiler characteristics
     5         kx AC_LANG_C
     5         kx AC_C_CONST
     5         kx CF_C_INLINE(NCURSES_INLINE,1200)
     5         kx CF_SIG_ATOMIC_T
     5         kx 
     5         kx if test "$NCURSES_CHTYPE" = auto ; then
     5         kx 	CF_TYPEOF_CHTYPE
     5         kx else
     5         kx 	cf_cv_typeof_chtype=$NCURSES_CHTYPE
     5         kx fi
     5         kx test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
     5         kx AC_SUBST(cf_cv_typeof_chtype)
     5         kx 
     5         kx CF_UNSIGNED_LITERALS
     5         kx cf_cv_1UL="1"
     5         kx test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
     5         kx test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"
     5         kx AC_SUBST(cf_cv_1UL)
     5         kx 
     5         kx if test "$NCURSES_MMASK_T" = auto ; then
     5         kx 	cf_cv_typeof_mmask_t=long
     5         kx else
     5         kx 	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
     5         kx fi
     5         kx test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
     5         kx AC_SUBST(cf_cv_typeof_mmask_t)
     5         kx 
     5         kx ###	Checks for external-data
     5         kx CF_ERRNO
     5         kx CF_LINK_DATAONLY
     5         kx 
     5         kx ###	Checks for library functions.
     5         kx AC_CHECK_FUNCS( \
     5         kx fpathconf \
     5         kx getcwd \
     5         kx getegid \
     5         kx geteuid \
     5         kx getopt \
     5         kx issetugid \
     5         kx localeconv \
     5         kx poll \
     5         kx putenv \
     5         kx remove \
     5         kx select \
     5         kx setbuf \
     5         kx setbuffer \
     5         kx setenv \
     5         kx setfsuid \
     5         kx setvbuf \
     5         kx sigaction \
     5         kx sigvec \
     5         kx snprintf \
     5         kx strdup \
     5         kx strstr \
     5         kx sysconf \
     5         kx tcgetpgrp \
     5         kx times \
     5         kx tsearch \
     5         kx vsnprintf \
     5         kx )
     5         kx 
     5         kx CF_FUNC_GETTTYNAM
     5         kx 
     5         kx if test "x$ac_cv_func_getopt" = xno && \
     5         kx    test "x$cf_with_progs$cf_with_tests" != xnono; then
     5         kx 	AC_MSG_ERROR(getopt is required for building programs)
     5         kx fi
     5         kx 
     5         kx if test "x$with_safe_sprintf" = xyes
     5         kx then
     5         kx 	if test "x$ac_cv_func_vsnprintf" = xyes
     5         kx 	then
     5         kx 		AC_MSG_WARN(will use vsnprintf instead of safe-sprintf option)
     5         kx 	else
     5         kx 		AC_DEFINE(USE_SAFE_SPRINTF,1,[Define to 1 to compile with experimental safe-sprintf code])
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx if test "x$with_getcap" = "xyes" ; then
     5         kx 	CF_CGETENT
     5         kx fi
     5         kx 
     5         kx CF_ISASCII
     5         kx CF_STRUCT_SIGACTION
     5         kx CF_FUNC_NANOSLEEP
     5         kx CF_FUNC_TERMIOS
     5         kx CF_FUNC_VSSCANF
     5         kx CF_MKSTEMP
     5         kx 
     5         kx # setup for prototype of fallback for vsscanf()
     5         kx CF_SUBST_IF(["$cf_cv_func_vsscanf" = vsscanf], HAVE_VSSCANF, 1, 0)
     5         kx 
     5         kx dnl FIXME (may need this) AC_SYS_RESTARTABLE_SYSCALLS
     5         kx if test "x$cross_compiling" = xyes ; then
     5         kx 	AC_MSG_WARN(cross compiling: assume setvbuf params not reversed)
     5         kx else
     5         kx 	AC_FUNC_SETVBUF_REVERSED
     5         kx fi
     5         kx AC_CHECK_TYPE(intptr_t, long)
     5         kx AC_CHECK_TYPE(ssize_t, int)
     5         kx CF_TYPE_SIGACTION
     5         kx CF_SIZECHANGE
     5         kx CF_FUNC_MEMMOVE
     5         kx CF_FUNC_POLL
     5         kx CF_VA_COPY
     5         kx AC_FUNC_VFORK
     5         kx CF_FOPEN_BIN_R
     5         kx 
     5         kx # special check for test/ditto.c
     5         kx CF_FUNC_OPENPTY
     5         kx if test "$cf_cv_func_openpty" != no ; then
     5         kx 	AC_DEFINE_UNQUOTED(USE_OPENPTY_HEADER,<$cf_cv_func_openpty>,[Define to actual header for openpty function])
     5         kx 	AC_DEFINE(USE_XTERM_PTY,1,[Define to 1 if we should assume xterm pseudoterminal interface])
     5         kx 	if test "x$cf_cv_lib_util" = xyes ; then
     5         kx 		CF_ADD_LIB(util,TEST_LIBS)
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(TEST_LIBS)
     5         kx AC_SUBST(TEST_LIBS2)
     5         kx 
     5         kx if test "$with_hashed_db" != no ; then
     5         kx 	AC_DEFINE(USE_HASHED_DB,1,[Define to 1 if we should build terminfo in hashed database])
     5         kx 	CF_HASHED_DB($with_hashed_db)
     5         kx fi
     5         kx 
     5         kx dnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS
     5         kx if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
     5         kx 	CF_STRIP_G_OPT(CFLAGS)
     5         kx 	CF_STRIP_G_OPT(CXXFLAGS)
     5         kx fi
     5         kx 
     5         kx # Just in case, check if the C compiler has a bool type.
     5         kx CF_BOOL_DECL(cf_cv_cc_bool_type)
     5         kx 
     5         kx # Check for C++ compiler characteristics (and ensure that it's there!)
     5         kx if test -n "$CXX" ; then
     5         kx 	AC_LANG_CPLUSPLUS
     5         kx 	CF_STDCPP_LIBRARY
     5         kx 	CF_PROG_CC_C_O(CXX,[$CXXFLAGS $CPPFLAGS])
     5         kx 
     5         kx 	case "$GXX_VERSION" in
     5         kx 	(1.*|2.[[0-6]]*|[[1-9]][[0-9]].*)
     5         kx 		cf_cxx_library=yes
     5         kx 		;;
     5         kx 	(*-2.7*|2.7*)
     5         kx 		CF_GPP_LIBRARY
     5         kx 		;;
     5         kx 	(*)
     5         kx 		cf_cxx_library=no
     5         kx 		;;
     5         kx 	esac
     5         kx 
     5         kx 	AC_CHECK_HEADERS(typeinfo)
     5         kx 	CF_CXX_IOSTREAM_NAMESPACE
     5         kx 	CF_BOOL_DECL
     5         kx 	CF_BOOL_SIZE
     5         kx 	CF_ETIP_DEFINES
     5         kx 	CF_CPP_OVERRIDE
     5         kx 	CF_CPP_PARAM_INIT
     5         kx 	CF_CPP_STATIC_CAST
     5         kx 	CF_CXX_AR_FLAGS
     5         kx else
     5         kx 	cf_cxx_library=no
     5         kx 	cf_cv_builtin_bool=1
     5         kx 
     5         kx 	# Just because we are not configuring against C++ right now does not
     5         kx 	# mean that a user will not want to use C++.  Some distributors disable
     5         kx 	# the C++ portion of this configuration as a shortcut (or just to avoid
     5         kx 	# compiling the demo in the c++ directory).  So we need a reasonable
     5         kx 	# default for the 'bool' type.
     5         kx 	#
     5         kx 	# Caveat: since the storage of the bool type is not standardized, it
     5         kx 	# may change.
     5         kx 
     5         kx 	if test "$NCURSES_BOOL" != auto ; then
     5         kx 		cf_cv_type_of_bool=$NCURSES_BOOL
     5         kx 		cf_cv_header_stdbool_h=0
     5         kx 	else
     5         kx 		if test "$cf_cv_header_stdbool_h" = 1 ; then
     5         kx 			CF_BOOL_SIZE
     5         kx 		else
     5         kx 			AC_MSG_CHECKING(for fallback type of bool)
     5         kx 			case "$host_cpu" in
     5         kx 			(i?86)	cf_cv_type_of_bool=char	;;
     5         kx 			(*)	cf_cv_type_of_bool=int	;;
     5         kx 			esac
     5         kx 			AC_MSG_RESULT($cf_cv_type_of_bool)
     5         kx 		fi
     5         kx 	fi
     5         kx fi
     5         kx AC_SUBST(CXXLIBS)
     5         kx 
     5         kx # If the C compiler did not declare bool, and we did not determine that the C++
     5         kx # compiler does not declare bool, turn on an ifdef in curses.h that makes the
     5         kx # ncurses library use the same type as C++ bool.  Note that this allows one to
     5         kx # specify the type of bool in a configure-script option and postpone
     5         kx # integration with the C++ compiler provided that the types are compatible.
     5         kx USE_CXX_BOOL=1
     5         kx if test "$cf_cv_cc_bool_type" = 1
     5         kx then
     5         kx 	# oops: C has a bool.  Unlikely, but C++ could differ.
     5         kx 	USE_CXX_BOOL=0
     5         kx elif test "$cf_cv_builtin_bool" = 0
     5         kx then
     5         kx 	# C++ has no bool
     5         kx 	USE_CXX_BOOL=0
     5         kx else
     5         kx 	# this is the normal case
     5         kx 	USE_CXX_BOOL='defined(__cplusplus)'
     5         kx fi
     5         kx AC_SUBST(USE_CXX_BOOL)
     5         kx 
     5         kx CF_HELP_MESSAGE(Ada Binding Options:)
     5         kx 
     5         kx dnl If the Ada95 source-tree is present, add that to the build unless it will
     5         kx dnl not work, or was not requested.
     5         kx if test -f "${srcdir}/Ada95/Makefile.in" ; then
     5         kx 
     5         kx dnl libtool does not know anything about GNAT, though a change made in 1998
     5         kx dnl provided for it "someday".  Disable the ada subtree if we are using
     5         kx dnl libtool -TD 20070714
     5         kx 	if test "$cf_with_ada" != "no" ; then
     5         kx 		if test "$with_libtool" != "no"; then
     5         kx 			AC_MSG_WARN(libtool does not support Ada - disabling feature)
     5         kx 			cf_with_ada=no
     5         kx 		fi
     5         kx 	fi
     5         kx 
     5         kx dnl Check for availability of GNU Ada Translator (GNAT).
     5         kx dnl At the moment we support no other Ada compiler.
     5         kx 	if test "$cf_with_ada" != "no" ; then
     5         kx 		CF_PROG_GNAT
     5         kx 		if test	"x$cf_cv_prog_gnat_correct" = xyes; then
     5         kx 			CF_ADD_ADAFLAGS(-gnatpn)
     5         kx 			CF_FIXUP_ADAFLAGS
     5         kx 
     5         kx 			CF_GNATPREP_OPT_T
     5         kx 
     5         kx 			CF_GNAT_GENERICS
     5         kx 			CF_GNAT_SIGINT
     5         kx 			CF_GNAT_PROJECTS
     5         kx 
     5         kx 			CF_WITH_ADA_COMPILER
     5         kx 
     5         kx 			cf_ada_package=terminal_interface
     5         kx 			AC_SUBST(cf_ada_package)
     5         kx 
     5         kx 			CF_WITH_ADA_INCLUDE
     5         kx 			CF_WITH_ADA_OBJECTS
     5         kx 			CF_WITH_ADA_SHAREDLIB
     5         kx 
     5         kx 			# allow the Ada binding to be renamed
     5         kx 			CF_WITH_ADA_LIBNAME(AdaCurses)
     5         kx 		fi
     5         kx 	fi
     5         kx else
     5         kx 	cf_with_ada=no
     5         kx fi
     5         kx 
     5         kx # do this "late" to avoid conflict with header-checks
     5         kx if test "x$with_widec" = xyes ; then
     5         kx 	AC_CHECK_SIZEOF(wchar_t)
     5         kx 	# cross-compiling to mingw can run into the problem that attempting to
     5         kx 	# link with the regex library fails, causing the test to not set this to
     5         kx 	# a number.  "recent" autoconf does not address this problem either -TD
     5         kx 	if test -z "$ac_cv_sizeof_wchar_t"
     5         kx 	then
     5         kx 		CF_VERBOSE(test failed (assume 2))
     5         kx 		sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
     5         kx 		mv confdefs.tmp confdefs.h
     5         kx 		echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx ### Construct the ncurses library-subsets, if any, from this set of keywords:
     5         kx ###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
     5         kx ###
     5         kx ### ticlib modules may be a separate library, otherwise contained in termlib.
     5         kx ### termlib modules may be a separate library, otherwise contained in ncurses.
     5         kx ###
     5         kx ### The of "+" or " " between the tokens controls the way the script
     5         kx ### chooses to split module lists into libraries.
     5         kx ###
     5         kx ### (see CF_LIB_RULES).
     5         kx AC_MSG_CHECKING(for library subsets)
     5         kx LIB_SUBSETS=
     5         kx 
     5         kx if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
     5         kx 	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
     5         kx 	if test "$with_ticlib" != no ; then
     5         kx 		LIB_SUBSETS="${LIB_SUBSETS} "
     5         kx 	else
     5         kx 		LIB_SUBSETS="${LIB_SUBSETS}+"
     5         kx 	fi
     5         kx fi
     5         kx 
     5         kx LIB_SUBSETS="${LIB_SUBSETS}termlib"
     5         kx test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
     5         kx 
     5         kx if test "$with_termlib" != no ; then
     5         kx 	LIB_SUBSETS="${LIB_SUBSETS} "
     5         kx else
     5         kx 	LIB_SUBSETS="${LIB_SUBSETS}+"
     5         kx fi
     5         kx 
     5         kx LIB_SUBSETS="${LIB_SUBSETS}base"
     5         kx 
     5         kx # Most term-driver calls are to tinfo, but some like init_pair are to the
     5         kx # base library (so it resides in base).
     5         kx if test "$with_term_driver" != no ; then
     5         kx 	LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
     5         kx 	case "$cf_cv_system_name" in
     5         kx 	(*mingw32*|*mingw64*)
     5         kx 		if test "x$with_exp_win32" = xyes ; then
     5         kx 			LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
     5         kx 		else
     5         kx 			LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
     5         kx 		fi
     5         kx 		CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
     5         kx 		;;
     5         kx 	(*)
     5         kx 		LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
     5         kx 		;;
     5         kx 	esac
     5         kx elif test "x$with_exp_win32" = xyes ; then
     5         kx 	case "$cf_cv_system_name" in
     5         kx 	(*mingw32*|*mingw64*)
     5         kx 		LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
     5         kx 		;;
     5         kx 	(*)
     5         kx 		;;
     5         kx 	esac
     5         kx fi
     5         kx 
     5         kx test "x$with_widec"     = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
     5         kx test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
     5         kx 
     5         kx AC_MSG_RESULT($LIB_SUBSETS)
     5         kx 
     5         kx ### Construct the list of include-directories to be generated
     5         kx CF_INCLUDE_DIRS
     5         kx CF_ADA_INCLUDE_DIRS
     5         kx 
     5         kx ### Build up pieces for makefile rules
     5         kx AC_MSG_CHECKING(default library suffix)
     5         kx CF_LIB_TYPE($DFT_LWR_MODEL,DFT_ARG_SUFFIX)dnl
     5         kx AC_SUBST(DFT_ARG_SUFFIX)dnl the string to append to "-lncurses" ("")
     5         kx AC_MSG_RESULT($DFT_ARG_SUFFIX)
     5         kx 
     5         kx AC_MSG_CHECKING(default library-dependency suffix)
     5         kx CF_LIB_SUFFIX($DFT_LWR_MODEL,DFT_LIB_SUFFIX,DFT_DEP_SUFFIX)dnl
     5         kx AC_SUBST(DFT_DEP_SUFFIX)dnl the corresponding library-suffix (".a")
     5         kx AC_MSG_RESULT($DFT_DEP_SUFFIX)
     5         kx 
     5         kx AC_MSG_CHECKING(default object directory)
     5         kx CF_OBJ_SUBDIR($DFT_LWR_MODEL,DFT_OBJ_SUBDIR)dnl
     5         kx AC_SUBST(DFT_OBJ_SUBDIR)dnl the default object-directory ("obj")
     5         kx AC_MSG_RESULT($DFT_OBJ_SUBDIR)
     5         kx 
     5         kx if test "x$cf_with_cxx" = xyes ; then
     5         kx AC_MSG_CHECKING(c++ library-dependency suffix)
     5         kx if test "$with_libtool" != "no"; then
     5         kx 	# libtool thinks it can make c++ shared libraries (perhaps only g++)
     5         kx 	CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
     5         kx elif test "$with_shared_cxx" != "no"; then
     5         kx 	# also for g++ users...
     5         kx 	CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
     5         kx else
     5         kx 	# we normally make a static library because C/C++ library rules differ
     5         kx 	CF_LIB_SUFFIX(normal,CXX_LIB_SUFFIX,CXX_DEP_SUFFIX)
     5         kx fi
     5         kx AC_MSG_RESULT($CXX_LIB_SUFFIX)
     5         kx AC_SUBST(CXX_LIB_SUFFIX)
     5         kx fi
     5         kx 
     5         kx # do not want -ldl in build except as needed for -lncurses dependency
     5         kx if test "x$with_dlsym" = xyes ; then
     5         kx if test "$DFT_LWR_MODEL" = shared || \
     5         kx    test "$DFT_LWR_MODEL" = libtool ; then
     5         kx 	CF_REMOVE_LIB(LIBS,$LIBS,dl)
     5         kx fi
     5         kx fi
     5         kx ### Set up low-level terminfo dependencies for makefiles.
     5         kx 
     5         kx # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
     5         kx # do not need libdl
     5         kx TICS_LIST=
     5         kx if test "x$with_dlsym" = xyes ; then
     5         kx 	CF_REMOVE_LIB(TINFO_LIST,$SHLIB_LIST,dl)
     5         kx fi
     5         kx 
     5         kx USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
     5         kx USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
     5         kx USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
     5         kx if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
     5         kx then
     5         kx 	USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
     5         kx fi
     5         kx AC_SUBST(USE_ARG_SUFFIX)
     5         kx AC_SUBST(USE_CFG_SUFFIX)
     5         kx AC_SUBST(USE_LIB_SUFFIX)
     5         kx 
     5         kx if test "$with_ticlib" != no ; then
     5         kx 
     5         kx 	if test "x$with_ticlib" != xyes ; then
     5         kx 		TICS_NAME=$with_ticlib
     5         kx 		TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
     5         kx 		TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
     5         kx 		TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
     5         kx 		TICS_LIB_SUFFIX="${with_ticlib}"
     5         kx 	else
     5         kx 		TICS_SUFFIX=${DFT_LIB_SUFFIX}
     5         kx 		TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
     5         kx 		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
     5         kx 		TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
     5         kx 	fi
     5         kx 	TICS_LDFLAGS="-L${LIB_DIR}"
     5         kx 	TICS_LIBS="-l${TICS_ARG_SUFFIX}"
     5         kx else
     5         kx 	TICS_SUFFIX=${DFT_LIB_SUFFIX}
     5         kx 	TICS_LDFLAGS="-L${LIB_DIR}"
     5         kx 	TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
     5         kx fi
     5         kx AC_SUBST(TICS_ARG_SUFFIX)
     5         kx AC_SUBST(TICS_DEP_SUFFIX)
     5         kx AC_SUBST(TICS_LIB_SUFFIX)
     5         kx AC_SUBST(TICS_LDFLAGS)
     5         kx AC_SUBST(TICS_LIBS)
     5         kx 
     5         kx if test "$with_termlib" != no ; then
     5         kx 
     5         kx 	if test "x$with_termlib" != xyes ; then
     5         kx 		TINFO_NAME=$with_termlib
     5         kx 		TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
     5         kx 		TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
     5         kx 		TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
     5         kx 		TINFO_LIB_SUFFIX="${with_termlib}"
     5         kx 	else
     5         kx 		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
     5         kx 		TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
     5         kx 		TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
     5         kx 		TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
     5         kx 	fi
     5         kx 
     5         kx 	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
     5         kx 	TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
     5         kx 	if test "$DFT_LWR_MODEL" = "libtool"; then
     5         kx 		TEST_ARGS="${TEST_DEPS}"
     5         kx 		TEST_ARG2="${TEST_DEP2}"
     5         kx 		TINFO_LDFLAGS="-L${LIB_DIR}"
     5         kx 		TINFO_LIBS="$TEST_ARGS"
     5         kx 		TICS_LIST="$SHLIB_LIST $TEST_ARGS"
     5         kx 		SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
     5         kx 	else
     5         kx 		TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
     5         kx 		TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
     5         kx 		if test "x$with_term_driver" != xno ; then
     5         kx 			TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
     5         kx 			TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
     5         kx 			TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
     5         kx 		else
     5         kx 			TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
     5         kx 			TINFO_LIBS="$TEST_ARGS"
     5         kx 		fi
     5         kx 		TINFO_LDFLAGS="-L${LIB_DIR}"
     5         kx 		SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
     5         kx 	fi
     5         kx else
     5         kx 	# the next lines are needed for linking libtic over libncurses
     5         kx 	TINFO_NAME=${LIB_NAME}
     5         kx 	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
     5         kx 	TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
     5         kx 	if test "x$with_tic_depends" = xyes ; then
     5         kx 		TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
     5         kx 	else
     5         kx 		TICS_LIST="$SHLIB_LIST"
     5         kx 	fi
     5         kx 
     5         kx 	TINFO_LDFLAGS="-L${LIB_DIR}"
     5         kx 	TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
     5         kx fi
     5         kx 
     5         kx if test "$DFT_LWR_MODEL" = shared ; then
     5         kx 	case "$cf_cv_system_name" in
     5         kx 	(cygwin*|msys*)
     5         kx 		# "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
     5         kx 		TINFO_SUFFIX=.dll
     5         kx 		;;
     5         kx 	esac
     5         kx fi
     5         kx 
     5         kx AC_SUBST(TINFO_ARG_SUFFIX)
     5         kx AC_SUBST(TINFO_DEP_SUFFIX)
     5         kx AC_SUBST(TINFO_LIB_SUFFIX)
     5         kx AC_SUBST(TINFO_LDFLAGS)
     5         kx AC_SUBST(TINFO_LIBS)
     5         kx 
     5         kx if test "x$with_dlsym" = xyes ; then
     5         kx 	CF_REMOVE_LIB(TICS_LIST,$TICS_LIST,dl)
     5         kx fi
     5         kx 
     5         kx if test "$DFT_LWR_MODEL" = "libtool"; then
     5         kx 	OBJEXT=lo
     5         kx fi
     5         kx 
     5         kx # needed for Ada95
     5         kx TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
     5         kx AC_SUBST(TINFO_LDFLAGS2)
     5         kx 
     5         kx case "$DFT_LWR_MODEL" in
     5         kx (normal|debug|profile)
     5         kx 	CF_LDFLAGS_STATIC
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx AC_MSG_CHECKING(where we will install curses.h)
     5         kx AC_SUBST(includesubdir)
     5         kx includesubdir=
     5         kx if test "$with_overwrite" = no && \
     5         kx  { test "x$includedir" = 'x${prefix}/include' || \
     5         kx    test "x$includedir" = "x${prefix}/include"; }
     5         kx then
     5         kx 	includesubdir="/ncurses${USE_LIB_SUFFIX}"
     5         kx fi
     5         kx AC_MSG_RESULT(${includedir}${includesubdir})
     5         kx 
     5         kx ### Resolve a conflict between normal and wide-curses by forcing applications
     5         kx ### that will need libutf8 to add it to their configure script.
     5         kx if test "$with_overwrite" != no ; then
     5         kx if test "$NCURSES_LIBUTF8" = 1 ; then
     5         kx 	NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
     5         kx 	AC_MSG_WARN(Wide-character applications must define HAVE_LIBUTF8_H to include curses.h)
     5         kx fi
     5         kx fi
     5         kx WITH_OVERWRITE=$with_overwrite
     5         kx 
     5         kx ### At least on MinGW a shared library build without libtool
     5         kx ### requires adding the additional libs to the link list.
     5         kx case "$cf_cv_system_name" in
     5         kx (*mingw32*|*mingw64*)
     5         kx 	if test "$DFT_LWR_MODEL" != "libtool"; then
     5         kx    	   SHLIB_LIST="$SHLIB_LIST ${LIBS}"
     5         kx 	fi
     5         kx 	;;
     5         kx *)	;;
     5         kx esac
     5         kx 
     5         kx AC_SUBST(WITH_OVERWRITE)
     5         kx AC_SUBST(TICS_LIST)
     5         kx AC_SUBST(TINFO_LIST)
     5         kx AC_SUBST(SHLIB_LIST)
     5         kx 
     5         kx # used to separate tack out of the tree
     5         kx NCURSES_TREE=
     5         kx AC_SUBST(NCURSES_TREE)
     5         kx 
     5         kx ### predefined stuff for the test programs
     5         kx AC_DEFINE(HAVE_SLK_COLOR,1,[Define to 1 if we have slk_color for test-programs])
     5         kx 
     5         kx # pkgsrc uses these
     5         kx CF_WITH_LIB_BASENAME(FORM_NAME,form)
     5         kx CF_WITH_LIB_BASENAME(MENU_NAME,menu)
     5         kx CF_WITH_LIB_BASENAME(PANEL_NAME,panel)
     5         kx CF_WITH_LIB_BASENAME(CXX_NAME,cxx,ncurses++)
     5         kx 
     5         kx ### Construct the list of subdirectories for which we'll customize makefiles
     5         kx ### with the appropriate compile-rules.
     5         kx 
     5         kx CF_SRC_MODULES($modules_to_build)
     5         kx 
     5         kx if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
     5         kx    SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
     5         kx    SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
     5         kx    SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
     5         kx fi
     5         kx 
     5         kx CF_DIRS_TO_MAKE
     5         kx 
     5         kx # symbols that differ when compiling Ada95 by itself.
     5         kx NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
     5         kx AC_SUBST(NCURSES_SHLIB2)
     5         kx 
     5         kx # values to use as strings
     5         kx AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATH_SEPARATOR',[Define to override ':' as library path-separator])
     5         kx 
     5         kx AC_DEFINE_UNQUOTED(NCURSES_VERSION_STRING, "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}",[Define to 1 if machine has ample memory for tic])
     5         kx 
     5         kx ### Define substitutions for header files to avoid name-pollution
     5         kx CF_SUBST_IF(["x$cf_cv_have_tcgetattr" = xyes], HAVE_TCGETATTR, 1, 0)
     5         kx CF_SUBST_IF(["x$ac_cv_header_stdint_h" = xyes], HAVE_STDINT_H, 1, 0)
     5         kx CF_SUBST_IF(["x$ac_cv_header_termio_h" = xyes], HAVE_TERMIO_H, 1, 0)
     5         kx CF_SUBST_IF(["x$ac_cv_header_termios_h" = xyes], HAVE_TERMIOS_H, 1, 0)
     5         kx 
     5         kx ################################################################################
     5         kx test "x$use_database" = xyes && \
     5         kx SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
     5         kx 
     5         kx SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
     5         kx SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
     5         kx 
     5         kx if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
     5         kx SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
     5         kx fi
     5         kx AC_SUBST(cross_compiling)
     5         kx 
     5         kx if test "x$cf_with_tests" != xno ; then
     5         kx 	MAKE_TESTS=
     5         kx else
     5         kx 	MAKE_TESTS="#"
     5         kx fi
     5         kx AC_SUBST(MAKE_TESTS)
     5         kx 
     5         kx ADAHTML_DIR=../../doc/html/ada
     5         kx AC_SUBST(ADAHTML_DIR)
     5         kx 
     5         kx # workaround for OS/2 (20151017)
     5         kx case "$cf_cv_system_name" in
     5         kx (os2*)
     5         kx 	LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
     5         kx 	;;
     5         kx (*)
     5         kx 	LIBTOOL_OPTS_CXX=
     5         kx 	;;
     5         kx esac
     5         kx AC_SUBST(LIBTOOL_OPTS_CXX)
     5         kx 
     5         kx # workaround for g++ versus Solaris (20131116)
     5         kx case "$cf_cv_system_name" in
     5         kx (solaris2*)
     5         kx 	case "x$CPPFLAGS" in
     5         kx 	(*-D_XOPEN_SOURCE_EXTENDED*)
     5         kx 		CF_VERBOSE(moving _XOPEN_SOURCE_EXTENDED to work around g++ problem)
     5         kx 		CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
     5         kx 		CPPFLAGS=`echo "x$CPPFLAGS" | sed -e  's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
     5         kx 		;;
     5         kx 	esac
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx # Help to automatically enable the extended curses features when using either
     5         kx # the *-config or the ".pc" files by adding defines.
     5         kx AC_MSG_CHECKING(for defines to add to ncurses${USE_CFG_SUFFIX}-config script)
     5         kx PKG_CFLAGS=
     5         kx for cf_loop1 in $CPPFLAGS_after_XOPEN
     5         kx do
     5         kx 	cf_found=no
     5         kx 	for cf_loop2 in $CPPFLAGS_before_XOPEN
     5         kx 	do
     5         kx 		if test "x$cf_loop1" = "x$cf_loop2"
     5         kx 		then
     5         kx 			cf_found=yes
     5         kx 			break
     5         kx 		fi
     5         kx 	done
     5         kx 	test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
     5         kx done
     5         kx AC_MSG_RESULT($PKG_CFLAGS)
     5         kx AC_SUBST(PKG_CFLAGS)
     5         kx 
     5         kx # AC_CHECK_SIZEOF demands a literal parameter, no variables.  So we do this.
     5         kx case "x$NCURSES_OSPEED" in
     5         kx (*short*)
     5         kx 	cf_compatible=1
     5         kx 	;;
     5         kx (*)
     5         kx 	cf_compatible=0
     5         kx 	;;
     5         kx esac
     5         kx AC_DEFINE_UNQUOTED(NCURSES_OSPEED_COMPAT,$cf_compatible,[Define to 1 if termcap variable ospeed is short])
     5         kx 
     5         kx case "x$cf_cv_typeof_chtype" in
     5         kx (xshort|xint|xlong)
     5         kx 	cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx case "x$cf_cv_typeof_mmask_t" in
     5         kx (xshort|xint|xlong)
     5         kx 	cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
     5         kx 	;;
     5         kx esac
     5         kx 
     5         kx # substitute into misc/Makefile to suppress
     5         kx # (un)install.data from the
     5         kx # (un)install rules.
     5         kx if test "x$cf_with_db_install" = "xno"; then
     5         kx 	MISC_INSTALL_DATA=
     5         kx 	MISC_UNINSTALL_DATA=
     5         kx else
     5         kx 	MISC_INSTALL_DATA=install.data
     5         kx 	MISC_UNINSTALL_DATA=uninstall.data
     5         kx fi
     5         kx AC_SUBST(MISC_INSTALL_DATA)
     5         kx AC_SUBST(MISC_UNINSTALL_DATA)
     5         kx 
     5         kx if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
     5         kx 	MAKE_DATABASE="#"
     5         kx else
     5         kx 	MAKE_DATABASE="$MAKE_TERMINFO"
     5         kx fi
     5         kx AC_SUBST(MAKE_DATABASE)
     5         kx 
     5         kx dnl Override the package used for exported symbols
     5         kx if test -n "$PACKAGE"
     5         kx then
     5         kx 	PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
     5         kx 	export PACKAGE
     5         kx 	echo "package: $PACKAGE"
     5         kx fi
     5         kx 
     5         kx UNALTERED_SYMS=
     5         kx cf_filter_syms=no
     5         kx 
     5         kx if test -n "$RESULTING_SYMS"
     5         kx then
     5         kx 	cf_filter_syms=$cf_dft_filter_syms
     5         kx 	CF_VERBOSE(will map symbols to ABI=$cf_cv_abi_version)
     5         kx fi
     5         kx 
     5         kx if test "x$WILDCARD_SYMS" = xno
     5         kx then
     5         kx 	cf_filter_syms=yes
     5         kx fi
     5         kx 
     5         kx test "x$cf_with_trace" = xyes && NCURSES_INLINE=
     5         kx 
     5         kx UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
     5         kx if test "$cf_filter_syms" = yes
     5         kx then
     5         kx 	RESULTING_SYMS=resulting.map
     5         kx fi
     5         kx AC_SUBST(UNALTERED_SYMS)
     5         kx 
     5         kx if test "x$cross_compiling" = xyes ; then
     5         kx 	ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
     5         kx 	CHECK_BUILD="#"
     5         kx else
     5         kx 	ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
     5         kx 	CHECK_BUILD=
     5         kx fi
     5         kx AC_SUBST(ADAGEN_LDFLAGS)
     5         kx AC_SUBST(CHECK_BUILD)
     5         kx AC_SUBST(PRIVATE_LIBS)
     5         kx 
     5         kx # This is used for the *-config script and *.pc data files.
     5         kx CF_LD_SEARCHPATH
     5         kx 
     5         kx AC_DEFINE(HAVE_CURSES_DATA_BOOLNAMES,1,[definition needed for in-tree build of tack])
     5         kx 
     5         kx AC_OUTPUT( \
     5         kx 	include/MKterm.h.awk \
     5         kx 	include/curses.head:include/curses.h.in \
     5         kx 	include/ncurses_dll.h \
     5         kx 	include/termcap.h \
     5         kx 	include/unctrl.h \
     5         kx 	man/man_db.renames \
     5         kx 	$SUB_MAKEFILES \
     5         kx 	Makefile,[
     5         kx if test "x$cf_with_tests" != xno ; then
     5         kx 	CF_PRG_RULES(["$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD"], test)
     5         kx fi
     5         kx CF_LIB_RULES($SRC_SUBDIRS)
     5         kx CF_OUTPUT_MANPAGE_RENAMES
     5         kx 
     5         kx if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
     5         kx if test -z "$USE_OLD_MAKERULES" ; then
     5         kx 	$AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
     5         kx fi
     5         kx fi
     5         kx ],[
     5         kx ### Special initialization commands, used to pass information from the
     5         kx ### configuration-run into config.status
     5         kx 
     5         kx ALTERNATE_SYMS="$ALTERNATE_SYMS"
     5         kx AWK="$AWK"
     5         kx CXX_NAME="$CXX_NAME"
     5         kx DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
     5         kx DFT_LWR_MODEL="$DFT_LWR_MODEL"
     5         kx ECHO_LD="$ECHO_LD"
     5         kx EGREP="${EGREP-grep -E}"
     5         kx EXTRA_SUFFIX="$EXTRA_SUFFIX"
     5         kx FGREP="${FGREP-grep -F}"
     5         kx FORM_NAME="$FORM_NAME"
     5         kx LDCONFIG="$LDCONFIG"
     5         kx LIBTOOL_VERSION="$LIBTOOL_VERSION"
     5         kx LIB_NAME="$LIB_NAME"
     5         kx LIB_PREFIX="$LIB_PREFIX"
     5         kx LIB_SUBSETS="$LIB_SUBSETS"
     5         kx LIB_SUFFIX="$LIB_SUFFIX"
     5         kx LIB_TRACING="$LIB_TRACING"
     5         kx LN_S="$LN_S"
     5         kx MAKE_TERMINFO="$MAKE_TERMINFO"
     5         kx MANPAGE_RENAMES="$MANPAGE_RENAMES"
     5         kx MENU_NAME="$MENU_NAME"
     5         kx NCURSES_MAJOR="$NCURSES_MAJOR"
     5         kx NCURSES_MINOR="$NCURSES_MINOR"
     5         kx NCURSES_OSPEED="$NCURSES_OSPEED"
     5         kx NCURSES_PATCH="$NCURSES_PATCH"
     5         kx PANEL_NAME="$PANEL_NAME"
     5         kx SRC_SUBDIRS="$SRC_SUBDIRS"
     5         kx TERMINFO="$TERMINFO"
     5         kx TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
     5         kx TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
     5         kx TICS_NAME="$TICS_NAME"
     5         kx TICS_SUFFIX="$TICS_SUFFIX"
     5         kx TIC_PATH="$TIC_PATH"
     5         kx TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
     5         kx TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
     5         kx TINFO_NAME="$TINFO_NAME"
     5         kx TINFO_SUFFIX="$TINFO_SUFFIX"
     5         kx UNALTERED_SYMS="$UNALTERED_SYMS"
     5         kx USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
     5         kx USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
     5         kx USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
     5         kx USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
     5         kx WILDCARD_SYMS="$WILDCARD_SYMS"
     5         kx WITH_CURSES_H="$with_curses_h"
     5         kx WITH_ECHO="${enable_echo:=yes}"
     5         kx WITH_OVERWRITE="$with_overwrite"
     5         kx cf_LIST_MODELS="$cf_list_models"
     5         kx cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
     5         kx cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
     5         kx cf_cv_abi_version="$cf_cv_abi_version"
     5         kx cf_cv_do_relink="$cf_cv_do_relink"
     5         kx cf_cv_do_reranlib="$cf_cv_do_reranlib"
     5         kx cf_cv_do_symlinks="$cf_cv_do_symlinks"
     5         kx cf_cv_enable_lp64="$cf_cv_enable_lp64"
     5         kx cf_cv_enable_opaque="$cf_cv_enable_opaque"
     5         kx cf_cv_make_PHONY="$cf_cv_make_PHONY"
     5         kx cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
     5         kx cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
     5         kx cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
     5         kx cf_cv_rel_version="$cf_cv_rel_version"
     5         kx cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
     5         kx cf_cv_shared_soname='$cf_cv_shared_soname'
     5         kx cf_cv_shlib_version="$cf_cv_shlib_version"
     5         kx cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
     5         kx cf_cv_system_name="$cf_cv_system_name"
     5         kx cf_cv_term_driver="$with_term_driver"
     5         kx cf_with_ada="$cf_with_ada"
     5         kx cf_with_cxx_binding="$cf_with_cxx_binding"
     5         kx cf_with_db_install="$cf_with_db_install"
     5         kx cf_with_manpages="$cf_with_manpages"
     5         kx cf_with_tests="$cf_with_tests"
     5         kx host="$host"
     5         kx target="$target"
     5         kx verbose="$verbose"
     5         kx with_shared_cxx="$with_shared_cxx"
     5         kx 
     5         kx ],cat)dnl
     5         kx ${MAKE:-make} preinstall