150276Speterdnl*************************************************************************** 2262685Sdelphijdnl Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * 350276Speterdnl * 450276Speterdnl Permission is hereby granted, free of charge, to any person obtaining a * 550276Speterdnl copy of this software and associated documentation files (the * 650276Speterdnl "Software"), to deal in the Software without restriction, including * 750276Speterdnl without limitation the rights to use, copy, modify, merge, publish, * 850276Speterdnl distribute, distribute with modifications, sublicense, and/or sell * 950276Speterdnl copies of the Software, and to permit persons to whom the Software is * 1050276Speterdnl furnished to do so, subject to the following conditions: * 1150276Speterdnl * 1250276Speterdnl The above copyright notice and this permission notice shall be included * 1350276Speterdnl in all copies or substantial portions of the Software. * 1450276Speterdnl * 1550276Speterdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 1650276Speterdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 1750276Speterdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 1850276Speterdnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 1950276Speterdnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 2050276Speterdnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 2150276Speterdnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 2250276Speterdnl * 2350276Speterdnl Except as contained in this notice, the name(s) of the above copyright * 2450276Speterdnl holders shall not be used in advertising or otherwise to promote the * 2550276Speterdnl sale, use or other dealings in this Software without prior written * 2650276Speterdnl authorization. * 2750276Speterdnl*************************************************************************** 2850276Speterdnl 2998503Speterdnl Author: Thomas E. Dickey 1995-on 3050276Speterdnl 31262685Sdelphijdnl $Id: configure.in,v 1.577 2013/12/15 00:03:02 tom Exp $ 3250276Speterdnl Process this file with autoconf to produce a configure script. 3366963Speterdnl 34166124Srafandnl See http://invisible-island.net/autoconf/ for additional information. 3566963Speterdnl 3666963Speterdnl --------------------------------------------------------------------------- 37262685SdelphijAC_PREREQ(2.52.20030208) 38262685SdelphijAC_REVISION($Revision: 1.577 $) 3950276SpeterAC_INIT(ncurses/base/lib_initscr.c) 4050276SpeterAC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin) 4150276Speter 42166124SrafanCF_TOP_BUILDDIR 4350276SpeterCF_SUBST_NCURSES_VERSION 44166124Srafan 45166124SrafanCF_WITH_REL_VERSION(NCURSES) 46166124SrafanCF_WITH_ABI_VERSION 47166124Srafan 48262685SdelphijCF_WITH_SYSTYPE 4950276Speter 5050276Speter### Save the given $CFLAGS to allow user-override. 5150276Spetercf_user_CFLAGS="$CFLAGS" 5250276Speter 5350276Speter### Default install-location 5450276SpeterCF_CFG_DEFAULTS 5550276Speter 5650276Speter### Checks for programs. 57262685SdelphijAC_ARG_WITH(ada, 58262685Sdelphij [ --without-ada suppress check for Ada95, don't build demo], 59262685Sdelphij [cf_with_ada=$withval], 60262685Sdelphij [cf_with_ada=yes]) 61262685Sdelphijif test "x$cf_with_ada" = xyes 62262685Sdelphijthen 63262685Sdelphij cf_PROG_CC="gnatgcc gcc cc" 64262685Sdelphijelse 65262685Sdelphij cf_PROG_CC="gcc cc" 66262685Sdelphijfi 6797049Speter 68262685SdelphijCF_PROG_CC($cf_PROG_CC) 69262685Sdelphij 7050276SpeterAC_PROG_CPP 7150276SpeterAC_PROG_GCC_TRADITIONAL 72166124SrafanCF_PROG_CC_C_O(CC) 73166124SrafanCF_PROG_LDCONFIG 7450276Speter 7550276Speterdnl DEFECT in autoconf 2.12: an attempt to set policy, this breaks the 7650276Speterdnl configure script by not letting us test if C++ 7750276Speterdnl is present, making this option necessary. 7856639SpeterAC_MSG_CHECKING(if you want to ensure bool is consistent with C++) 7950276SpeterAC_ARG_WITH(cxx, 8056639Speter [ --without-cxx do not adjust ncurses bool to match C++], 8150276Speter [cf_with_cxx=$withval], 8250276Speter [cf_with_cxx=yes]) 8350276SpeterAC_MSG_RESULT($cf_with_cxx) 8456639Speterif test "X$cf_with_cxx" = Xno ; then 8556639Speter CXX="" 8656639Speter GXX="" 8756639Speterelse 88166124Srafan # with autoconf 2.13, we can change the error to a warning: 8962449Speter pushdef([AC_MSG_ERROR], 90166124Srafan [AC_MSG_RESULT(no) 91166124Srafan AC_MSG_WARN([You don't have any C++ compiler, too bad]) 9262449Speter cf_with_cxx=no; CXX=""; GXX="";])dnl 9356639Speter AC_PROG_CXX 9462449Speter popdef([AC_MSG_ERROR])dnl 95262685Sdelphij # autoconf 2.5x removed the error (hardcoding it to g++, or just blank) 96166124Srafan if test "$CXX" = "g++" ; then 97166124Srafan AC_PATH_PROG(CXX,g++) 98166124Srafan fi 99262685Sdelphij case "x$CXX" in #(vi 100262685Sdelphij x|xg++) 101262685Sdelphij AC_MSG_WARN([You don't have any C++ compiler, too bad]) 102166124Srafan cf_with_cxx=no; CXX=""; GXX=""; 103262685Sdelphij ;; 104262685Sdelphij esac 10550276Speterfi 10666963Speter 107166124SrafanCF_GXX_VERSION 108166124Srafancase $GXX_VERSION in 109166124Srafan1*|2.[[0-6]]*) 110166124Srafan # GXX=""; CXX=""; ac_cv_prog_gxx=no 111166124Srafan # cf_cxx_library=no 112166124Srafan AC_MSG_WARN(templates do not work) 113166124Srafan ;; 114166124Srafanesac 11550276Speter 11656639SpeterAC_MSG_CHECKING(if you want to build C++ binding and demo) 11756639SpeterAC_ARG_WITH(cxx-binding, 11856639Speter [ --without-cxx-binding do not build C++ binding and demo], 11956639Speter [cf_with_cxx_binding=$withval], 12056639Speter [cf_with_cxx_binding=$cf_with_cxx]) 12156639SpeterAC_MSG_RESULT($cf_with_cxx_binding) 12256639Speter 12350276SpeterAC_MSG_CHECKING(if you want to build with Ada95) 12450276SpeterAC_MSG_RESULT($cf_with_ada) 12550276Speter 126262685SdelphijAC_MSG_CHECKING(if you want to install terminal database) 127262685SdelphijAC_ARG_ENABLE(db-install, 128262685Sdelphij [ --disable-db-install suppress install of terminal database], 129262685Sdelphij [cf_with_db_install=$enableval], 130262685Sdelphij [cf_with_db_install=yes]) 131262685SdelphijAC_MSG_RESULT($cf_with_db_install) 132262685Sdelphij 133262629SdelphijAC_MSG_CHECKING(if you want to install manpages) 134262629SdelphijAC_ARG_WITH(manpages, 135262629Sdelphij [ --without-manpages suppress install of manpages], 136262629Sdelphij [cf_with_manpages=$withval], 137262629Sdelphij [cf_with_manpages=yes]) 138262629SdelphijAC_MSG_RESULT($cf_with_manpages) 139262629Sdelphij 14050276SpeterAC_MSG_CHECKING(if you want to build programs such as tic) 14150276SpeterAC_ARG_WITH(progs, 142262685Sdelphij [ --without-progs suppress build/install with programs (e.g., tic)], 14350276Speter [cf_with_progs=$withval], 14450276Speter [cf_with_progs=yes]) 14550276SpeterAC_MSG_RESULT($cf_with_progs) 14650276Speter 147262629SdelphijAC_MSG_CHECKING(if you want to build test-programs) 148262629SdelphijAC_ARG_WITH(tests, 149262685Sdelphij [ --without-tests suppress build/install with test-programs], 150262629Sdelphij [cf_with_tests=$withval], 151262629Sdelphij [cf_with_tests=yes]) 152262629SdelphijAC_MSG_RESULT($cf_with_tests) 153262629Sdelphij 15476726SpeterAC_MSG_CHECKING(if you wish to install curses.h) 15576726SpeterAC_ARG_WITH(curses-h, 15676726Speter [ --without-curses-h install curses.h as ncurses.h only], 15776726Speter [with_curses_h=$withval], 15876726Speter [with_curses_h=yes]) 15976726SpeterAC_MSG_RESULT($with_curses_h) 16076726Speter 16150276Spetermodules_to_build="ncurses" 16250276Speterif test "X$cf_with_progs" != Xno ; then 16350276Spetermodules_to_build="$modules_to_build progs tack" 16450276Speterfi 16550276Spetermodules_to_build="$modules_to_build panel menu form" 16650276Speter 16766963SpeterAC_ARG_PROGRAM 168166124Srafan 169166124SrafanCF_PROG_AWK 170166124SrafanCF_PROG_EGREP 17150276SpeterCF_PROG_INSTALL 172166124SrafanCF_PROG_LINT 173262629SdelphijCF_PROG_LN_S 174166124Srafan 175174993SrafanAC_SYS_LONG_FILE_NAMES 176174993Srafan 177262629Sdelphij# if we find pkg-config, check if we should install the ".pc" files. 178262629SdelphijCF_PKG_CONFIG 179262685SdelphijCF_WITH_PKG_CONFIG_LIBDIR 180262685SdelphijCF_ENABLE_PC_FILES 181262629Sdelphij 182174993SrafanAC_MSG_CHECKING(if we should assume mixed-case filenames) 183174993SrafanAC_ARG_ENABLE(mixed-case, 184174993Srafan [ --enable-mixed-case tic should assume mixed-case filenames], 185174993Srafan [enable_mixedcase=$enableval], 186174993Srafan [enable_mixedcase=auto]) 187174993SrafanAC_MSG_RESULT($enable_mixedcase) 188174993Srafanif test "$enable_mixedcase" = "auto" ; then 189174993Srafan CF_MIXEDCASE_FILENAMES 190174993Srafanelse 191174993Srafan cf_cv_mixedcase=$enable_mixedcase 192262685Sdelphij if test "x$enable_mixedcase" = "xyes" ; then 193262685Sdelphij AC_DEFINE(MIXEDCASE_FILENAMES,1,[Define to 1 if tic should assume mixed-case filenames]) 194174993Srafan fi 195174993Srafanfi 196174993Srafan 197174993Srafan# do this after mixed-case option (tags/TAGS is not as important as tic). 198166124SrafanAC_PROG_MAKE_SET 19966963SpeterCF_MAKE_TAGS 200166124SrafanCF_MAKEFLAGS 20150276Speter 20250276Speterdnl These are standard among *NIX systems, but not when cross-compiling 203166124SrafanAC_CHECK_TOOL(RANLIB, ranlib, ':') 204166124SrafanAC_CHECK_TOOL(LD, ld, ld) 205166124SrafanAC_CHECK_TOOL(AR, ar, ar) 206262685SdelphijAC_CHECK_TOOL(NM, nm, nm) 207262629SdelphijCF_AR_FLAGS 20850276Speter 20950276Speterdnl Special option for use by system-builders: the install-prefix is used to 21050276Speterdnl adjust the location into which the actual install is done, so that an 21150276Speterdnl archive can be built without modifying the host system's configuration. 21250276SpeterAC_MSG_CHECKING(if you have specified an install-prefix) 21350276SpeterAC_ARG_WITH(install-prefix, 214166124Srafan [ --with-install-prefix prefixes actual install-location ($DESTDIR)], 215262685Sdelphij [case "x$withval" in #(vi 216262685Sdelphij xyes|xno) #(vi 21750276Speter ;; 21866963Speter *) DESTDIR="$withval" 21950276Speter ;; 22050276Speter esac]) 22166963SpeterAC_MSG_RESULT($DESTDIR) 22266963SpeterAC_SUBST(DESTDIR) 22350276Speter 22450276Speter############################################################################### 225166124SrafanCF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:) 226166124Srafan# If we're cross-compiling, allow the user to override the tools and their 227166124Srafan# options. The configure script is oriented toward identifying the host 228166124Srafan# compiler, etc., but we need a build compiler to generate parts of the source. 229166124SrafanCF_BUILD_CC 230166124Srafan 231166124Srafan############################################################################### 23250276SpeterCF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:) 23350276Speter 23450276Speter### Options to allow the user to specify the set of libraries which are used. 23550276Speter### Use "--without-normal --with-shared" to allow the default model to be 23650276Speter### shared, for example. 23750276Spetercf_list_models="" 23862449SpeterAC_SUBST(cf_list_models)dnl the complete list of models ("normal debug") 23950276Speter 240166124SrafanCF_WITH_LIBTOOL 241166124Srafanif test "$with_libtool" != "no" ; then 242166124Srafan 243166124Srafancf_list_models="$cf_list_models libtool" 244166124Srafan 24576726Speterelse 24676726Speter 24750276SpeterAC_MSG_CHECKING(if you want to build shared libraries) 24850276SpeterAC_ARG_WITH(shared, 24950276Speter [ --with-shared generate shared-libraries], 25050276Speter [with_shared=$withval], 25150276Speter [with_shared=no]) 25250276SpeterAC_MSG_RESULT($with_shared) 253262685Sdelphijtest "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared" 25450276Speter 25550276SpeterAC_MSG_CHECKING(if you want to build static libraries) 25650276SpeterAC_ARG_WITH(normal, 25750276Speter [ --with-normal generate normal-libraries (default)], 25850276Speter [with_normal=$withval], 25950276Speter [with_normal=yes]) 26050276SpeterAC_MSG_RESULT($with_normal) 261262685Sdelphijtest "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal" 26250276Speter 26350276SpeterAC_MSG_CHECKING(if you want to build debug libraries) 26450276SpeterAC_ARG_WITH(debug, 26550276Speter [ --with-debug generate debug-libraries (default)], 26650276Speter [with_debug=$withval], 26750276Speter [with_debug=yes]) 26850276SpeterAC_MSG_RESULT($with_debug) 269262685Sdelphijtest "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug" 27050276Speter 27150276SpeterAC_MSG_CHECKING(if you want to build profiling libraries) 27250276SpeterAC_ARG_WITH(profile, 27350276Speter [ --with-profile generate profile-libraries], 27450276Speter [with_profile=$withval], 27550276Speter [with_profile=no]) 27650276SpeterAC_MSG_RESULT($with_profile) 277262685Sdelphijtest "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile" 27850276Speter 279166124Srafanfi 280166124Srafan 281262685Sdelphijif test "X$cf_with_cxx_binding" != Xno; then 282262685Sdelphijif test "x$with_shared" = "xyes"; then 283262685SdelphijAC_MSG_CHECKING(if you want to build C++ shared libraries) 284262685SdelphijAC_ARG_WITH(cxx-shared, 285262685Sdelphij [ --with-cxx-shared generate C++ shared-libraries], 286262685Sdelphij [with_shared_cxx=$withval], 287262685Sdelphij [with_shared_cxx=no]) 288262685SdelphijAC_MSG_RESULT($with_shared_cxx) 289262685Sdelphijfi 290262685Sdelphijfi 291262685Sdelphij 29262449Speter############################################################################### 29362449Speter 29462449SpeterAC_MSG_CHECKING(for specified models) 29562449Spetertest -z "$cf_list_models" && cf_list_models=normal 29676726Speterdnl If we use libtool to generate libraries, then it must be the only 29776726Speterdnl specified model. 298166124Srafantest "$with_libtool" != "no" && cf_list_models=libtool 29962449SpeterAC_MSG_RESULT($cf_list_models) 30062449Speter 30162449Speter### Use the first model as the default, and save its suffix for use in building 30262449Speter### up test-applications. 30362449SpeterAC_MSG_CHECKING(for default model) 304166124SrafanDFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'` 30562449SpeterAC_MSG_RESULT($DFT_LWR_MODEL) 30662449Speter 30762449SpeterCF_UPPER(DFT_UPR_MODEL,$DFT_LWR_MODEL)dnl 30862449Speter 30962449SpeterAC_SUBST(DFT_LWR_MODEL)dnl the default model ("normal") 31062449SpeterAC_SUBST(DFT_UPR_MODEL)dnl the default model ("NORMAL") 31162449Speter 312174993SrafanTICS_NAME=tic 313174993SrafanAC_SUBST(TICS_NAME) 314174993Srafan 31562449SpeterTINFO_NAME=tinfo 31662449SpeterAC_SUBST(TINFO_NAME) 31762449Speter 31862449SpeterLIB_NAME=ncurses 31962449SpeterAC_SUBST(LIB_NAME) 32062449Speter 32162449SpeterLIB_DIR=../lib 322166124SrafanLIB_2ND=../../lib 323166124Srafan 324262685SdelphijCF_WITH_LIB_PREFIX(cf_prefix) 32562449Speter 32662449SpeterLIB_SUFFIX= 32762449SpeterAC_SUBST(LIB_SUFFIX) 328262685SdelphijCF_PATHSEP 32962449Speter 33062449Speter############################################################################### 33162449Speter 33250276SpeterAC_MSG_CHECKING(if you want to build a separate terminfo library) 33350276SpeterAC_ARG_WITH(termlib, 33450276Speter [ --with-termlib generate separate terminfo library], 33550276Speter [with_termlib=$withval], 33650276Speter [with_termlib=no]) 33750276SpeterAC_MSG_RESULT($with_termlib) 33850276Speter 339174993SrafanAC_MSG_CHECKING(if you want to build a separate tic library) 340174993SrafanAC_ARG_WITH(ticlib, 341174993Srafan [ --with-ticlib generate separate tic library], 342174993Srafan [with_ticlib=$withval], 343174993Srafan [with_ticlib=no]) 344174993SrafanAC_MSG_RESULT($with_ticlib) 345174993Srafan 34650276Speter### Checks for special libraries, must be done up-front. 34750276SpeterSHLIB_LIST="" 348166124SrafanCF_WITH_GPM 349166124Srafanif test "$with_gpm" != no ; then 350166124Srafan AC_MSG_CHECKING(if you want to load GPM dynamically) 351166124Srafan AC_ARG_WITH(dlsym, 352166124Srafan [ --without-dlsym do not use dlsym() to load GPM dynamically], 353166124Srafan [with_dlsym=$withval], 354166124Srafan [with_dlsym=yes]) 355166124Srafan AC_MSG_RESULT($with_dlsym) 356262685Sdelphij if test "x$with_dlsym" = xyes ; then 357166124Srafan CF_FUNC_DLSYM 358262685Sdelphij if test "x$with_gpm" != xyes ; then 359166124Srafan CF_VERBOSE(assuming soname for gpm is $with_gpm) 360166124Srafan cf_cv_gpm_soname="$with_gpm" 361166124Srafan else 362166124Srafan CF_LIB_SONAME([#include <gpm.h>],[if (Gpm_Open(0,0)) Gpm_Close();],gpm) 363166124Srafan fi 364262685Sdelphij 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]) 365166124Srafan SHLIB_LIST="-ldl $SHLIB_LIST" 366166124Srafan else 36750276Speter SHLIB_LIST="-lgpm $SHLIB_LIST" 368262629Sdelphij CF_ADD_LIB(gpm,TEST_LIBS) 369166124Srafan fi 370262685Sdelphij AC_DEFINE(HAVE_LIBGPM,1,[Define to 1 if we have the gpm library]) 371174993Srafan CF_CHECK_GPM_WGETCH 37250276Speterfi 37350276Speter 374166124SrafanCF_WITH_SYSMOUSE 375166124Srafan 37650276Speterdnl Not all ports of gcc support the -g option 37750276Speter 37850276Speterif test X"$CC_G_OPT" = X"" ; then 37950276Speter CC_G_OPT='-g' 380262685Sdelphij test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT='' 38150276Speterfi 38250276SpeterAC_SUBST(CC_G_OPT) 38350276Speter 38450276Speterif test X"$CXX_G_OPT" = X"" ; then 38550276Speter CXX_G_OPT='-g' 386262685Sdelphij test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT='' 38750276Speterfi 38850276SpeterAC_SUBST(CXX_G_OPT) 38950276Speter 39062449SpeterAC_MSG_CHECKING(for default loader flags) 39150276Spetercase $DFT_LWR_MODEL in 39276726Speterlibtool) LD_MODEL='' ;; 39350276Speternormal) LD_MODEL='' ;; 39450276Speterdebug) LD_MODEL=$CC_G_OPT ;; 39550276Speterprofile) LD_MODEL='-pg';; 39650276Spetershared) LD_MODEL='' ;; 39750276Speteresac 39850276SpeterAC_SUBST(LD_MODEL)dnl the type of link (e.g., -g or -pg) 39962449SpeterAC_MSG_RESULT($LD_MODEL) 40050276Speter 401174993Srafancase $DFT_LWR_MODEL in 402174993Srafanshared) 403184989SrafanCF_ENABLE_RPATH 404174993SrafanAC_MSG_CHECKING(if shared libraries should be relinked during install) 405174993SrafanAC_ARG_ENABLE(relink, 406174993Srafan[ --disable-relink relink shared libraries during install], 407174993Srafan[cf_cv_do_relink=$enableval], 408174993Srafan[cf_cv_do_relink=yes]) 409174993SrafanAC_MSG_RESULT($cf_cv_do_relink) 410174993Srafan ;; 411174993Srafanesac 41250276Speter 413262685Sdelphij# we will build libraries one-level down. 414262685Sdelphijrel_builddir=.. 41550276SpeterCF_SHARED_OPTS 41650276Speterif test "$CC_SHARED_OPTS" = "unknown"; then 41750276Speter for model in $cf_list_models; do 41850276Speter if test "$model" = "shared"; then 41950276Speter AC_ERROR(Shared libraries are not supported in this version) 42050276Speter fi 42150276Speter done 42250276Speterfi 42350276Speter 424262629Sdelphij### If we're building with rpath, try to link non-standard libs that way too. 425262629Sdelphijif test "$DFT_LWR_MODEL" = "shared"; then 426262629Sdelphij CF_DISABLE_RPATH_HACK 427262629Sdelphijfi 428262629Sdelphij 42950276Speter############################################################################### 43050276SpeterCF_HELP_MESSAGE(Fine-Tuning Your Configuration:) 43150276Speter 43250276Speter### use option --disable-overwrite to leave out the link to -lcurses 43350276SpeterAC_MSG_CHECKING(if you wish to install ncurses overwriting curses) 43450276SpeterAC_ARG_ENABLE(overwrite, 43550276Speter [ --disable-overwrite leave out the link to -lcurses], 43662449Speter [with_overwrite=$enableval], 437166124Srafan [if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi]) 43850276SpeterAC_MSG_RESULT($with_overwrite) 43950276Speter 44050276SpeterAC_MSG_CHECKING(if external terminfo-database is used) 44150276SpeterAC_ARG_ENABLE(database, 44297049Speter [ --disable-database do not use terminfo, only fallbacks/termcap], 44366963Speter [use_database=$enableval], 44466963Speter [use_database=yes]) 44566963SpeterAC_MSG_RESULT($use_database) 44650276Speter 44766963Spetercase $host_os in #(vi 44866963Speteros2*) #(vi 44966963Speter TERMINFO_SRC='${top_srcdir}/misc/emx.src' 45066963Speter ;; 45166963Speter*) #(vi 45266963Speter TERMINFO_SRC='${top_srcdir}/misc/terminfo.src' 45366963Speter ;; 45466963Speteresac 45566963SpeterAC_SUBST(TERMINFO_SRC) 45666963Speter 457262685SdelphijNCURSES_USE_DATABASE=0 45866963Speterif test "$use_database" != no ; then 459262685Sdelphij NCURSES_USE_DATABASE=1 460166124Srafan 46166963Speter AC_MSG_CHECKING(which terminfo source-file will be installed) 462262629Sdelphij AC_ARG_WITH(database, 46366963Speter [ --with-database=XXX specify terminfo source to install], 46466963Speter [TERMINFO_SRC=$withval]) 46566963Speter AC_MSG_RESULT($TERMINFO_SRC) 466166124Srafan 467166124Srafan AC_MSG_CHECKING(whether to use hashed database instead of directory/tree) 468166124Srafan AC_ARG_WITH(hashed-db, 469166124Srafan [ --with-hashed-db specify hashed-database library],, 470166124Srafan [with_hashed_db=no]) 471166124Srafan AC_MSG_RESULT($with_hashed_db) 472184989Srafanelse 473184989Srafan with_hashed_db=no 47466963Speterfi 475262685SdelphijAC_SUBST(NCURSES_USE_DATABASE) 47666963Speter 47750276SpeterAC_MSG_CHECKING(for list of fallback descriptions) 47850276SpeterAC_ARG_WITH(fallbacks, 47950276Speter [ --with-fallbacks=XXX specify list of fallback terminal descriptions], 48050276Speter [with_fallback=$withval], 48150276Speter [with_fallback=]) 48250276SpeterAC_MSG_RESULT($with_fallback) 483166124SrafanFALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'` 48450276SpeterAC_SUBST(FALLBACK_LIST) 48550276Speter 486166124SrafanAC_MSG_CHECKING(if you want modern xterm or antique) 487166124SrafanAC_ARG_WITH(xterm-new, 488166124Srafan [ --without-xterm-new specify if xterm terminfo should be old version], 489166124Srafan [with_xterm_new=$withval], 490166124Srafan [with_xterm_new=yes]) 491166124Srafancase $with_xterm_new in 492166124Srafanno) with_xterm_new=xterm-old;; 493166124Srafan*) with_xterm_new=xterm-new;; 494166124Srafanesac 495166124SrafanAC_MSG_RESULT($with_xterm_new) 496166124SrafanWHICH_XTERM=$with_xterm_new 497166124SrafanAC_SUBST(WHICH_XTERM) 498166124Srafan 499262685SdelphijAC_MSG_CHECKING(if xterm backspace sends BS or DEL) 500262685SdelphijAC_ARG_WITH(xterm-kbs, 501262685Sdelphij [ --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL], 502262685Sdelphij [with_xterm_kbs=$withval], 503262685Sdelphij [with_xterm_kbs=BS]) 504262685Sdelphijcase x$with_xterm_kbs in 505262685Sdelphijxyes|xno|xBS|xbs|x8) 506262685Sdelphij with_xterm_kbs=BS 507262685Sdelphij ;; 508262685SdelphijxDEL|xdel|x127) 509262685Sdelphij with_xterm_kbs=DEL 510262685Sdelphij ;; 511262685Sdelphij*) 512262685Sdelphij with_xterm_kbs=$withval 513262685Sdelphij ;; 514262685Sdelphijesac 515262685SdelphijAC_MSG_RESULT($with_xterm_kbs) 516262685SdelphijXTERM_KBS=$with_xterm_kbs 517262685SdelphijAC_SUBST(XTERM_KBS) 518262685Sdelphij 51997049SpeterMAKE_TERMINFO= 52066963Speterif test "$use_database" = no ; then 52166963Speter TERMINFO="${datadir}/terminfo" 52297049Speter MAKE_TERMINFO="#" 52366963Speterelse 52466963Speter 52550276SpeterAC_MSG_CHECKING(for list of terminfo directories) 52650276SpeterCF_WITH_PATHLIST(terminfo-dirs, 52750276Speter [ --with-terminfo-dirs=XXX specify list of terminfo directories], 52850276Speter TERMINFO_DIRS, 52950276Speter DATADIR/terminfo, 53050276Speter ${datadir}/terminfo) 53150276SpeterAC_MSG_RESULT($TERMINFO_DIRS) 532262685Sdelphijtest -n "$TERMINFO_DIRS" && AC_DEFINE_UNQUOTED(TERMINFO_DIRS,"$TERMINFO_DIRS",[Define as needed to predefine the TERMINFO_DIR searchlist]) 53350276Speter 53466963SpeterAC_MSG_CHECKING(for default terminfo directory) 53566963SpeterCF_WITH_PATH(default-terminfo-dir, 53666963Speter [ --with-default-terminfo-dir=DIR default terminfo directory], 53766963Speter TERMINFO, 53866963Speter DATADIR/terminfo, 53966963Speter ${datadir}/terminfo) 54066963SpeterAC_MSG_RESULT($TERMINFO) 541262685SdelphijAC_DEFINE_UNQUOTED(TERMINFO,"$TERMINFO",[Define to set the default terminal database path]) 54266963Speter 54350276Speterfi 54450276Speter 54566963SpeterAC_SUBST(TERMINFO) 54697049SpeterAC_SUBST(MAKE_TERMINFO) 54766963Speter 54850276Speter### use option --disable-big-core to make tic run on small machines 54950276Speter### We need 4Mb, check if we can allocate 50% more than that. 55050276SpeterAC_MSG_CHECKING(if big-core option selected) 55150276SpeterAC_ARG_ENABLE(big-core, 55250276Speter [ --disable-big-core assume machine has little memory], 55350276Speter [with_big_core=$enableval], 55450276Speter [AC_TRY_RUN([ 55550276Speter#include <stdlib.h> 55650276Speter#include <string.h> 55766963Speterint main() { 55866963Speter unsigned long n = 6000000L; 55966963Speter char *s = malloc(n); 56066963Speter if (s != 0) 56166963Speter s[0] = s[n-1] = 0; 562166124Srafan ${cf_cv_main_return:-return}(s == 0); 56366963Speter}], 56450276Speter [with_big_core=yes], 56550276Speter [with_big_core=no], 56650276Speter [with_big_core=no])]) 56750276SpeterAC_MSG_RESULT($with_big_core) 568262685Sdelphijtest "x$with_big_core" = "xyes" && AC_DEFINE(HAVE_BIG_CORE,1,[Define to 1 if machine has ample memory for tic]) 56950276Speter 570174993Srafan### ISO C only guarantees 512-char strings, we have tables which load faster 571184989Srafan### when constructed using "big" strings. More than the C compiler, the awk 572184989Srafan### program is a limit on most vendor UNIX systems. Check that we can build. 573174993SrafanAC_MSG_CHECKING(if big-strings option selected) 574174993SrafanAC_ARG_ENABLE(big-strings, 575174993Srafan [ --disable-big-strings assume compiler has only standard-size strings], 576184989Srafan [with_big_strings=$enableval], 577184989Srafan [CF_AWK_BIG_PRINTF(12000,with_big_strings)]) 578174993SrafanAC_MSG_RESULT($with_big_strings) 579174993Srafan 580174993SrafanUSE_BIG_STRINGS=0 581262685Sdelphijtest "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1 582174993SrafanAC_SUBST(USE_BIG_STRINGS) 583174993Srafan 58450276Speter### use option --enable-termcap to compile in the termcap fallback support 58550276SpeterAC_MSG_CHECKING(if you want termcap-fallback support) 58650276SpeterAC_ARG_ENABLE(termcap, 58750276Speter [ --enable-termcap compile in termcap fallback support], 58850276Speter [with_termcap=$enableval], 58950276Speter [with_termcap=no]) 59050276SpeterAC_MSG_RESULT($with_termcap) 59150276Speter 592262685SdelphijNCURSES_USE_TERMCAP=0 593262685Sdelphijif test "x$with_termcap" != "xyes" ; then 59497049Speter if test "$use_database" = no ; then 595166124Srafan if test -z "$with_fallback" ; then 59697049Speter AC_ERROR(You have disabled the database w/o specifying fallbacks) 59797049Speter fi 59897049Speter fi 599262685Sdelphij AC_DEFINE(PURE_TERMINFO,1,[Define to 1 if we should support only terminfo]) 60050276Speterelse 60150276Speter 602262685Sdelphij if test "$with_ticlib" != no ; then 603262685Sdelphij AC_ERROR(Options --with-ticlib and --enable-termcap cannot be combined) 604262685Sdelphij fi 605174993Srafan 606262685Sdelphij NCURSES_USE_TERMCAP=1 607262685Sdelphij AC_MSG_CHECKING(for list of termcap files) 608262685Sdelphij CF_WITH_PATHLIST(termpath, 609262685Sdelphij [ --with-termpath=XXX specify list of termcap files], 610262685Sdelphij TERMPATH, 611262685Sdelphij /etc/termcap:/usr/share/misc/termcap) 612262685Sdelphij AC_MSG_RESULT($TERMPATH) 613262685Sdelphij test -n "$TERMPATH" && AC_DEFINE_UNQUOTED(TERMPATH,"$TERMPATH",[Define to set the termcap searchlist]) 61497049Speter 615262685Sdelphij ### use option --enable-getcap to use a hacked getcap for reading termcaps 616262685Sdelphij AC_MSG_CHECKING(if fast termcap-loader is needed) 617262685Sdelphij AC_ARG_ENABLE(getcap, 618262685Sdelphij [ --enable-getcap fast termcap load, no xrefs to terminfo], 619262685Sdelphij [with_getcap=$enableval], 620262685Sdelphij [with_getcap=no]) 621262685Sdelphij AC_MSG_RESULT($with_getcap) 622262685Sdelphij test "x$with_getcap" = "xyes" && AC_DEFINE(USE_GETCAP,1,[Define to 1 to use fast termcap-loader]) 62350276Speter 624262685Sdelphij AC_MSG_CHECKING(if translated termcaps will be cached in ~/.terminfo) 625262685Sdelphij AC_ARG_ENABLE(getcap-cache, 626262685Sdelphij [ --enable-getcap-cache cache translated termcaps in ~/.terminfo], 627262685Sdelphij [with_getcap_cache=$enableval], 628262685Sdelphij [with_getcap_cache=no]) 629262685Sdelphij AC_MSG_RESULT($with_getcap_cache) 630262685Sdelphij test "x$with_getcap_cache" = "xyes" && AC_DEFINE(USE_GETCAP_CACHE,1,[Define to 1 if translated termcap should be stored in $HOME/.terminfo]) 63150276Speter 63250276Speterfi 633262685SdelphijAC_SUBST(NCURSES_USE_TERMCAP) 63450276Speter 635166124Srafan### Use option --disable-home-terminfo to completely remove ~/.terminfo 636166124SrafanAC_MSG_CHECKING(if ~/.terminfo is wanted) 637166124SrafanAC_ARG_ENABLE(home-terminfo, 638166124Srafan [ --disable-home-terminfo drop ~/.terminfo from terminfo search-path], 639166124Srafan [with_home_terminfo=$enableval], 640166124Srafan [with_home_terminfo=yes]) 641166124SrafanAC_MSG_RESULT($with_home_terminfo) 642262685Sdelphijtest "x$with_home_terminfo" = "xyes" && AC_DEFINE(USE_HOME_TERMINFO,1,[Define to 1 if $HOME/.terminfo feature is wanted]) 643166124Srafan 644166124SrafanAC_MSG_CHECKING(if you want to use restricted environment when running as root) 645166124SrafanAC_ARG_ENABLE(root-environ, 646166124Srafan [ --disable-root-environ restrict environment when running as root], 647166124Srafan [with_root_environ=$enableval], 648166124Srafan [with_root_environ=yes]) 649166124SrafanAC_MSG_RESULT($with_root_environ) 650262685Sdelphijtest "x$with_root_environ" = xyes && AC_DEFINE(USE_ROOT_ENVIRON,1,[Define to 1 if environment should be restricted for root user]) 651166124Srafan 65250276Speter### Use option --enable-symlinks to make tic use symlinks, not hard links 65350276Speter### to reduce storage requirements for the terminfo database. 65450276SpeterCF_LINK_FUNCS 65550276Speter 65650276Speterwith_links=no 65750276Speterwith_symlinks=no 65850276Speter 659166124Srafan# soft links (symbolic links) are useful for some systems where hard links do 660166124Srafan# not work, or to make it simpler to copy terminfo trees around. 661262685Sdelphijif test "x$ac_cv_func_symlink" = xyes ; then 66250276Speter AC_MSG_CHECKING(if tic should use symbolic links) 663166124Srafan AC_ARG_ENABLE(symlinks, 664166124Srafan [ --enable-symlinks make tic use symbolic links not hard links], 665166124Srafan [with_symlinks=$enableval], 666166124Srafan [with_symlinks=no]) 66750276Speter AC_MSG_RESULT($with_symlinks) 668166124Srafanfi 669166124Srafan 670166124Srafan# If we have hard links and did not choose to use soft links instead, there is 671166124Srafan# no reason to make this choice optional - use the hard links. 672166124Srafanif test "$with_symlinks" = no ; then 67350276Speter AC_MSG_CHECKING(if tic should use hard links) 674262685Sdelphij if test "x$ac_cv_func_link" = xyes ; then 675166124Srafan with_links=yes 67650276Speter else 677166124Srafan with_links=no 67850276Speter fi 67950276Speter AC_MSG_RESULT($with_links) 68050276Speterfi 68150276Speter 682262685Sdelphijtest "x$with_links" = xyes && AC_DEFINE(USE_LINKS,1,[Define to 1 if hardlinks should be used in terminfo database]) 683262685Sdelphijtest "x$with_symlinks" = xyes && AC_DEFINE(USE_SYMLINKS,1,[Define to 1 if symbolic links should be used in terminfo database]) 68450276Speter 68562449Speter### use option --enable-broken-linker to force on use of broken-linker support 68662449SpeterAC_MSG_CHECKING(if you want broken-linker support code) 68762449SpeterAC_ARG_ENABLE(broken_linker, 68862449Speter [ --enable-broken_linker compile with broken-linker support code], 68962449Speter [with_broken_linker=$enableval], 690262629Sdelphij [with_broken_linker=${BROKEN_LINKER:-no}]) 69162449SpeterAC_MSG_RESULT($with_broken_linker) 69262449Speter 69397049SpeterBROKEN_LINKER=0 694262685Sdelphijif test "x$with_broken_linker" = xyes ; then 695262685Sdelphij AC_DEFINE(BROKEN_LINKER,1,[Define to 1 to work around linkers which cannot link data-only modules]) 69697049Speter BROKEN_LINKER=1 697166124Srafanelif test "$DFT_LWR_MODEL" = shared ; then 69897049Speter case $cf_cv_system_name in #(vi 69997049Speter cygwin*) 700262685Sdelphij AC_DEFINE(BROKEN_LINKER,1,[Define to 1 to work around linkers which cannot link data-only modules]) 70197049Speter BROKEN_LINKER=1 70297049Speter CF_VERBOSE(cygwin linker is broken anyway) 70397049Speter ;; 70497049Speter esac 70597049Speterfi 70697049SpeterAC_SUBST(BROKEN_LINKER) 70797049Speter 708166124Srafan### use option --enable-bsdpad to have tputs process BSD-style prefix padding 709166124SrafanAC_MSG_CHECKING(if tputs should process BSD-style prefix padding) 710166124SrafanAC_ARG_ENABLE(bsdpad, 711166124Srafan [ --enable-bsdpad recognize BSD-style prefix padding], 712166124Srafan [with_bsdpad=$enableval], 713166124Srafan [with_bsdpad=no]) 714166124SrafanAC_MSG_RESULT($with_bsdpad) 715262685Sdelphijtest "x$with_bsdpad" = xyes && AC_DEFINE(BSD_TPUTS,1,[Define to 1 to recognize BSD-style prefix padding]) 716166124Srafan 717166124Srafan### use option --enable-widec to turn on use of wide-character support 718166124SrafanNCURSES_CH_T=chtype 719166124SrafanNCURSES_LIBUTF8=0 720166124Srafan 721166124SrafanNEED_WCHAR_H=0 722166124SrafanNCURSES_MBSTATE_T=0 723166124SrafanNCURSES_WCHAR_T=0 724166124SrafanNCURSES_WINT_T=0 725166124Srafan 726166124Srafan# Check to define _XOPEN_SOURCE "automatically" 727262629SdelphijCF_XOPEN_SOURCE(500) 728166124Srafan 729166124Srafan# Work around breakage on OS X 730166124SrafanCF_SIGWINCH 731166124Srafan 732166124Srafan# Checks for CODESET support. 733166124SrafanAM_LANGINFO_CODESET 734166124Srafan 735166124Srafan# use these variables to work around a defect in gcc's fixincludes. 736166124SrafanNCURSES_OK_WCHAR_T= 737166124SrafanNCURSES_OK_WINT_T= 738166124Srafan 739166124SrafanAC_MSG_CHECKING(if you want wide-character code) 740166124SrafanAC_ARG_ENABLE(widec, 741166124Srafan [ --enable-widec compile with wide-char/UTF-8 code], 742166124Srafan [with_widec=$enableval], 743166124Srafan [with_widec=no]) 744166124SrafanAC_MSG_RESULT($with_widec) 745262685Sdelphijif test "x$with_widec" = xyes ; then 746166124Srafan LIB_SUFFIX="w${LIB_SUFFIX}" 747262685Sdelphij AC_DEFINE(USE_WIDEC_SUPPORT,1,[Define to 1 to compile with wide-char/UTF-8 code]) 748262685Sdelphij AC_DEFINE(NCURSES_WIDECHAR,1,[Define to 1 to compile with wide-char/UTF-8 code]) 749262629Sdelphij 750262685Sdelphij CF_CHECK_WCHAR_H 751262629Sdelphij 752166124Srafan # with_overwrite=no 753166124Srafan NCURSES_CH_T=cchar_t 754184989Srafan AC_CHECK_FUNCS(putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs) 755262685Sdelphij if test "x$ac_cv_func_putwc" != xyes ; then 756184989Srafan CF_UTF8_LIB 757184989Srafan if test "$cf_cv_utf8_lib" != no ; then 758166124Srafan NCURSES_LIBUTF8=1 759166124Srafan fi 760166124Srafan fi 761166124Srafan CF_WCHAR_TYPE(mbstate_t, NCURSES_MBSTATE_T) 762166124Srafan CF_WCHAR_TYPE(wchar_t, NCURSES_WCHAR_T, NCURSES_OK_WCHAR_T) 763166124Srafan CF_WCHAR_TYPE(wint_t, NCURSES_WINT_T, NCURSES_OK_WINT_T) 764166124Srafan 765166124Srafan if test "$NCURSES_MBSTATE_T" != 0; then 766262685Sdelphij AC_DEFINE(NEED_MBSTATE_T_DEF,1,[Define to 1 if we must declare mbstate_t]) 767166124Srafan fi 768166124Srafanfi 769166124SrafanAC_SUBST(NCURSES_CH_T) 770166124SrafanAC_SUBST(NCURSES_LIBUTF8) 771166124Srafan 772166124SrafanAC_SUBST(NEED_WCHAR_H) 773166124SrafanAC_SUBST(NCURSES_MBSTATE_T) 774166124SrafanAC_SUBST(NCURSES_WCHAR_T) 775166124SrafanAC_SUBST(NCURSES_WINT_T) 776166124Srafan 777166124SrafanAC_SUBST(NCURSES_OK_WCHAR_T) 778166124SrafanAC_SUBST(NCURSES_OK_WINT_T) 779166124Srafan 780166124Srafan### use option --disable-lp64 to allow long chtype 781166124Srafancase $cf_cv_abi_version in 782166124Srafan[[345]]*) 783166124Srafan default_with_lp64=no 784166124Srafan ;; 785166124Srafan*) 786166124Srafan default_with_lp64=yes 787166124Srafan ;; 788166124Srafanesac 789166124Srafan 790166124SrafanAC_MSG_CHECKING(whether to enable _LP64 definition in curses.h) 791166124SrafanAC_ARG_ENABLE(lp64, 792166124Srafan [ --disable-lp64 allow chtype to be long (ignore _LP64)], 793166124Srafan [with_lp64=$enableval], 794166124Srafan [with_lp64=$default_with_lp64]) 795166124SrafanAC_MSG_RESULT($with_lp64) 796166124Srafan 797262685Sdelphijif test "x$with_lp64" = xyes ; then 798166124Srafan cf_cv_enable_lp64=1 799166124Srafanelse 800166124Srafan cf_cv_enable_lp64=0 801166124Srafanfi 802166124SrafanAC_SUBST(cf_cv_enable_lp64) 803166124Srafan 804166124SrafanCF_LARGEFILE 805166124Srafan 806174993Srafan### use option --disable-tparm-varargs to make tparm() conform to X/Open 807166124SrafanAC_MSG_CHECKING(if you want tparm not to use X/Open fixed-parameter list) 808166124SrafanAC_ARG_ENABLE(tparm-varargs, 809166124Srafan [ --disable-tparm-varargs compile tparm() without varargs interface], 810166124Srafan [with_tparm_varargs=$enableval], 811166124Srafan [with_tparm_varargs=yes]) 812166124SrafanAC_MSG_RESULT($with_tparm_varargs) 813166124SrafanNCURSES_TPARM_VARARGS=0 814262685Sdelphijtest "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1 815166124SrafanAC_SUBST(NCURSES_TPARM_VARARGS) 816166124Srafan 817184989Srafan### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw 818184989Srafanif test "$with_ticlib" != no ; then 819184989SrafanAC_MSG_CHECKING(if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library) 820184989SrafanAC_ARG_ENABLE(tic-depends, 821184989Srafan [ --disable-tic-depends link tic library without explicit dependency on ncurses library], 822184989Srafan [with_tic_depends=$enableval], 823184989Srafan [with_tic_depends=yes]) 824184989SrafanAC_MSG_RESULT($with_tic_depends) 825184989Srafanelse 826184989Srafan with_tic_depends=no 827184989Srafanfi 828184989Srafan 82997049Speter### use option --with-bool to override bool's type 83097049SpeterAC_MSG_CHECKING(for type of bool) 83197049SpeterAC_ARG_WITH(bool, 83297049Speter [ --with-bool=TYPE override fallback type of bool variable], 83397049Speter [NCURSES_BOOL="$withval"], 83497049Speter [NCURSES_BOOL=auto]) 83597049SpeterAC_MSG_RESULT($NCURSES_BOOL) 83697049SpeterAC_SUBST(NCURSES_BOOL) 83797049Speter 838166124SrafanAC_MSG_CHECKING(for alternate terminal capabilities file) 839166124SrafanAC_ARG_WITH(caps, 840166124Srafan [ --with-caps=alt compile with alternate Caps file], 841166124Srafan [TERMINFO_CAPS=Caps.$withval], 842166124Srafan [TERMINFO_CAPS=Caps]) 843166124Srafantest -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps 844166124SrafanAC_MSG_RESULT($TERMINFO_CAPS) 845166124SrafanAC_SUBST(TERMINFO_CAPS) 846166124Srafan 847166124Srafan### use option --with-chtype to override chtype's type 848166124SrafanAC_MSG_CHECKING(for type of chtype) 849166124SrafanAC_ARG_WITH(chtype, 850166124Srafan [ --with-chtype=TYPE override type of chtype], 851166124Srafan [NCURSES_CHTYPE="$withval"], 852166124Srafan [NCURSES_CHTYPE=auto]) 853166124SrafanAC_MSG_RESULT($NCURSES_CHTYPE) 854166124Srafan 85576726Speter### use option --with-ospeed to override ospeed's type 85676726SpeterAC_MSG_CHECKING(for type of ospeed) 85776726SpeterAC_ARG_WITH(ospeed, 85876726Speter [ --with-ospeed=TYPE override type of ospeed variable], 85997049Speter [NCURSES_OSPEED="$withval"], 86076726Speter [NCURSES_OSPEED=short]) 86176726SpeterAC_MSG_RESULT($NCURSES_OSPEED) 86276726SpeterAC_SUBST(NCURSES_OSPEED) 86376726Speter 864166124Srafan### use option --with-mmask-t to override mmask_t's type 865166124SrafanAC_MSG_CHECKING(for type of mmask_t) 866166124SrafanAC_ARG_WITH(mmask-t, 867166124Srafan [ --with-mmask-t=TYPE override type of mmask_t], 868166124Srafan [NCURSES_MMASK_T="$withval"], 869166124Srafan [NCURSES_MMASK_T=auto]) 870166124SrafanAC_MSG_RESULT($NCURSES_MMASK_T) 87150276Speter 872262629Sdelphij### use option --with-ccharw-max to override CCHARW_MAX size 873262629SdelphijAC_MSG_CHECKING(for size CCHARW_MAX) 874262629SdelphijAC_ARG_WITH(ccharw-max, 875262629Sdelphij [ --with-ccharw-max=XXX override size CCHARW_MAX], 876262629Sdelphij [NCURSES_CCHARW_MAX="$withval"], 877262629Sdelphij [NCURSES_CCHARW_MAX=5]) 878262629SdelphijAC_MSG_RESULT($NCURSES_CCHARW_MAX) 879262629SdelphijAC_SUBST(NCURSES_CCHARW_MAX) 880262629Sdelphij 881262685Sdelphij### use option --with-tparm-arg to override tparm's argument type 882262685SdelphijAC_MSG_CHECKING(for type of tparm args) 883262685SdelphijAC_ARG_WITH(tparm-arg, 884262685Sdelphij [ --with-tparm-arg=TYPE override parameter type of tparm], 885262685Sdelphij [NCURSES_TPARM_ARG="$withval"], 886262685Sdelphij [NCURSES_TPARM_ARG=long]) 887262685SdelphijAC_MSG_RESULT($NCURSES_TPARM_ARG) 888262685SdelphijAC_SUBST(NCURSES_TPARM_ARG) 889262685Sdelphij 89062449Speter### Enable compiling-in rcs id's 89162449SpeterAC_MSG_CHECKING(if RCS identifiers should be compiled-in) 89262449SpeterAC_ARG_WITH(rcs-ids, 89362449Speter [ --with-rcs-ids compile-in RCS identifiers], 89462449Speter [with_rcs_ids=$withval], 89562449Speter [with_rcs_ids=no]) 89662449SpeterAC_MSG_RESULT($with_rcs_ids) 897262685Sdelphijtest "x$with_rcs_ids" = xyes && AC_DEFINE(USE_RCS_IDS,1,[Define to 1 to compile-in RCS identifiers]) 89862449Speter 89962449Speter############################################################################### 900262629SdelphijCF_MAN_PAGES([ captoinfo clear infocmp infotocap tabs tic toe tput tset ]) 90166963Speter 90266963Speter############################################################################### 90362449SpeterCF_HELP_MESSAGE(Extensions:) 90462449Speter 90562449Speter### Note that some functions (such as const) are normally disabled anyway. 90662449SpeterAC_MSG_CHECKING(if you want to build with function extensions) 90762449SpeterAC_ARG_ENABLE(ext-funcs, 90862449Speter [ --disable-ext-funcs disable function-extensions], 90962449Speter [with_ext_funcs=$enableval], 91062449Speter [with_ext_funcs=yes]) 91162449SpeterAC_MSG_RESULT($with_ext_funcs) 912262685Sdelphijif test "x$with_ext_funcs" = xyes ; then 91397049Speter NCURSES_EXT_FUNCS=1 914262685Sdelphij AC_DEFINE(HAVE_ASSUME_DEFAULT_COLORS,1,[Define to 1 to enable assume_default_colors() function]) 915262685Sdelphij AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 to enable curses_version() function]) 916262685Sdelphij AC_DEFINE(HAVE_HAS_KEY,1,[Define to 1 to enable has_key() function]) 917262685Sdelphij AC_DEFINE(HAVE_RESIZETERM,1,[Define to 1 to enable resizeterm() function]) 918262685Sdelphij AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function]) 919262685Sdelphij AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function]) 920262685Sdelphij AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function]) 921262685Sdelphij AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function]) 922262685Sdelphij AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function]) 923262685Sdelphij AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function]) 924262685Sdelphij AC_DEFINE(NCURSES_EXT_FUNCS,1,[Define to 1 to enable ncurses extended functions]) 925262629Sdelphij GENERATED_EXT_FUNCS=generated 92697049Speterelse 92797049Speter NCURSES_EXT_FUNCS=0 928262629Sdelphij GENERATED_EXT_FUNCS= 92962449Speterfi 93097049SpeterAC_SUBST(NCURSES_EXT_FUNCS) 931262629SdelphijAC_SUBST(GENERATED_EXT_FUNCS) 93262449Speter 933262629SdelphijAC_MSG_CHECKING(if you want to build with experimental SCREEN extensions) 934262629SdelphijAC_ARG_ENABLE(sp-funcs, 935262629Sdelphij [ --enable-sp-funcs enable experimental SCREEN-extensions], 936262629Sdelphij [with_sp_funcs=$enableval], 937262629Sdelphij [with_sp_funcs=no]) 938262629SdelphijAC_MSG_RESULT($with_sp_funcs) 939262685Sdelphijif test "x$with_sp_funcs" = xyes ; then 940262629Sdelphij NCURSES_SP_FUNCS=1 941262685Sdelphij AC_DEFINE(NCURSES_SP_FUNCS,1,[Define to 1 to enable experimental SCREEN-extensions]) 942262629Sdelphij GENERATED_SP_FUNCS=generated 943262629Sdelphijelse 944262629Sdelphij NCURSES_SP_FUNCS=0 945262629Sdelphij GENERATED_SP_FUNCS= 946262629Sdelphijfi 947262629SdelphijAC_SUBST(NCURSES_SP_FUNCS) 948262629SdelphijAC_SUBST(GENERATED_SP_FUNCS) 949262629Sdelphij 950262629SdelphijAC_MSG_CHECKING(if you want to build with experimental terminal-driver) 951262629SdelphijAC_ARG_ENABLE(term-driver, 952262629Sdelphij [ --enable-term-driver enable experimental terminal-driver], 953262629Sdelphij [with_term_driver=$enableval], 954262629Sdelphij [with_term_driver=no]) 955262629SdelphijAC_MSG_RESULT($with_term_driver) 956262685Sdelphijif test "x$with_term_driver" = xyes ; then 957262685Sdelphij AC_DEFINE(USE_TERM_DRIVER,1,[Define to 1 to enable experimental terminal-driver]) 958262685Sdelphij if test "x$with_sp_funcs" != xyes ; then 959262629Sdelphij AC_MSG_ERROR(The term-driver option relies upon sp-funcs) 960262629Sdelphij fi 961262629Sdelphijfi 962262629Sdelphij 96350276Speter### use option --enable-const to turn on use of const beyond that in XSI. 96450276SpeterAC_MSG_CHECKING(for extended use of const keyword) 96550276SpeterAC_ARG_ENABLE(const, 96650276Speter [ --enable-const compile with extra/non-standard const], 96750276Speter [with_ext_const=$enableval], 96850276Speter [with_ext_const=no]) 96950276SpeterAC_MSG_RESULT($with_ext_const) 97066963SpeterNCURSES_CONST='/*nothing*/' 971262685Sdelphijif test "x$with_ext_const" = xyes ; then 97250276Speter NCURSES_CONST=const 97350276Speterfi 97450276SpeterAC_SUBST(NCURSES_CONST) 97550276Speter 976184989Srafan### use option --enable-ext-colors to turn on use of colors beyond 16. 977184989SrafanAC_MSG_CHECKING(if you want to use extended colors) 978184989SrafanAC_ARG_ENABLE(ext-colors, 979184989Srafan [ --enable-ext-colors compile for 256-color support], 980184989Srafan [with_ext_colors=$enableval], 981184989Srafan [with_ext_colors=no]) 982184989SrafanAC_MSG_RESULT($with_ext_colors) 983184989SrafanNCURSES_EXT_COLORS=0 984262685Sdelphijif test "x$with_ext_colors" = xyes ; then 985262685Sdelphij if test "x$with_widec" != xyes ; then 986184989Srafan AC_MSG_ERROR(This option applies only to wide-character library) 987184989Srafan else 988184989Srafan # cannot be ABI 5 since it changes sizeof(cchar_t) 989184989Srafan CF_NCURSES_ABI_6 990184989Srafan fi 991184989Srafan NCURSES_EXT_COLORS=1 992262685Sdelphij AC_DEFINE(NCURSES_EXT_COLORS,1,[Define to 1 to compile for 256-color support]) 993184989Srafanfi 994184989SrafanAC_SUBST(NCURSES_EXT_COLORS) 995184989Srafan 996184989Srafan### use option --enable-ext-mouse to modify coding to support 5-button mice 997184989SrafanAC_MSG_CHECKING(if you want to use extended mouse encoding) 998184989SrafanAC_ARG_ENABLE(ext-mouse, 999184989Srafan [ --enable-ext-mouse compile for extended mouse-encoding], 1000184989Srafan [with_ext_mouse=$enableval], 1001184989Srafan [with_ext_mouse=no]) 1002184989SrafanAC_MSG_RESULT($with_ext_mouse) 1003184989SrafanNCURSES_MOUSE_VERSION=1 1004262685Sdelphijif test "x$with_ext_mouse" = xyes ; then 1005184989Srafan NCURSES_MOUSE_VERSION=2 1006184989Srafan CF_NCURSES_ABI_6 1007184989Srafanfi 1008184989SrafanAC_SUBST(NCURSES_MOUSE_VERSION) 1009184989Srafan 101062449SpeterAC_MSG_CHECKING(if you want \$NCURSES_NO_PADDING code) 101162449SpeterAC_ARG_ENABLE(no-padding, 1012166124Srafan [ --enable-no-padding compile with $NCURSES_NO_PADDING code], 101362449Speter [with_no_padding=$enableval], 101462449Speter [with_no_padding=$with_ext_funcs]) 101562449SpeterAC_MSG_RESULT($with_no_padding) 1016262685Sdelphijtest "x$with_no_padding" = xyes && AC_DEFINE(NCURSES_NO_PADDING,1,[Define to 1 to compile with $NCURSES_NO_PADDING code]) 101762449Speter 1018166124SrafanAC_CHECK_SIZEOF([signed char], 0) 1019166124Srafanif test "$ac_cv_sizeof_signed_char" = 1 ; then 1020166124Srafan NCURSES_SBOOL="signed char" 1021166124Srafanelse 1022166124Srafan NCURSES_SBOOL="char" 1023166124Srafanfi 1024166124SrafanAC_MSG_CHECKING(if you want to use signed Boolean array in term.h) 1025166124SrafanAC_ARG_ENABLE(signed-char, 1026174993Srafan [ --enable-signed-char compile using signed Boolean's in term.h], 1027166124Srafan [with_signed_char=$enableval], 1028166124Srafan [with_signed_char=no]) 1029166124SrafanAC_MSG_RESULT($with_signed_char) 1030262685Sdelphijtest "x$with_signed_char" != xyes && NCURSES_SBOOL="char" 1031166124SrafanAC_SUBST(NCURSES_SBOOL) 1032166124Srafan 103362449Speter### use option --enable-sigwinch to turn on use of SIGWINCH logic 103462449SpeterAC_MSG_CHECKING(if you want SIGWINCH handler) 103562449SpeterAC_ARG_ENABLE(sigwinch, 103662449Speter [ --enable-sigwinch compile with SIGWINCH handler], 103762449Speter [with_sigwinch=$enableval], 103862449Speter [with_sigwinch=$with_ext_funcs]) 103962449SpeterAC_MSG_RESULT($with_sigwinch) 1040262685Sdelphijtest "x$with_sigwinch" = xyes && AC_DEFINE(USE_SIGWINCH,1,[Define to 1 to compile with SIGWINCH handler]) 104162449Speter 104262449Speter### use option --enable-tcap-names to allow user to define new capabilities 104362449SpeterAC_MSG_CHECKING(if you want user-definable terminal capabilities like termcap) 104462449SpeterAC_ARG_ENABLE(tcap-names, 104562449Speter [ --enable-tcap-names compile with user-definable terminal capabilities], 104662449Speter [with_tcap_names=$enableval], 104762449Speter [with_tcap_names=$with_ext_funcs]) 104862449SpeterAC_MSG_RESULT($with_tcap_names) 104962449SpeterNCURSES_XNAMES=0 1050262685Sdelphijtest "x$with_tcap_names" = xyes && NCURSES_XNAMES=1 105162449SpeterAC_SUBST(NCURSES_XNAMES) 105262449Speter 105350276Speter############################################################################### 105466963Speter# These options are relatively safe to experiment with. 105566963SpeterCF_HELP_MESSAGE(Development Code:) 105666963SpeterAC_MSG_CHECKING(if you want all development code) 105750276SpeterAC_ARG_WITH(develop, 1058166124Srafan [ --without-develop disable development options], 105950276Speter [with_develop=$withval], 106050276Speter [with_develop=no]) 106150276SpeterAC_MSG_RESULT($with_develop) 106250276Speter 106350276Speter### use option --enable-hard-tabs to turn on use of hard-tabs optimize 106466963SpeterAC_MSG_CHECKING(if you want hard-tabs code) 106550276SpeterAC_ARG_ENABLE(hard-tabs, 1066166124Srafan [ --enable-hard-tabs compile with hard-tabs code],, 1067166124Srafan [enable_hard_tabs=$with_develop]) 1068166124SrafanAC_MSG_RESULT($enable_hard_tabs) 1069262685Sdelphijtest "x$enable_hard_tabs" = xyes && AC_DEFINE(USE_HARD_TABS,1,[Define to 1 to compile with hard-tabs code]) 107050276Speter 107166963Speter### use option --enable-xmc-glitch to turn on use of magic-cookie optimize 107266963SpeterAC_MSG_CHECKING(if you want limited support for xmc) 107366963SpeterAC_ARG_ENABLE(xmc-glitch, 1074166124Srafan [ --enable-xmc-glitch compile with support for xmc (magic-cookie)],, 1075166124Srafan [enable_xmc_glitch=$with_develop]) 1076166124SrafanAC_MSG_RESULT($enable_xmc_glitch) 1077262685Sdelphijtest "x$enable_xmc_glitch" = xyes && AC_DEFINE(USE_XMC_SUPPORT,1,[Define to 1 to compile with support for xmc (magic-cookie)]) 107866963Speter 107966963Speter############################################################################### 108066963Speter# These are just experimental, probably should not be in a package: 108166963SpeterCF_HELP_MESSAGE(Experimental Code:) 108266963Speter 108366963SpeterAC_MSG_CHECKING(if you do not want to assume colors are white-on-black) 108466963SpeterAC_ARG_ENABLE(assumed-color, 108566963Speter [ --disable-assumed-color do not assume anything about default-colors], 108666963Speter [with_assumed_color=$enableval], 108766963Speter [with_assumed_color=yes]) 108866963SpeterAC_MSG_RESULT($with_assumed_color) 1089262685Sdelphijtest "x$with_assumed_color" = xyes && AC_DEFINE(USE_ASSUMED_COLOR,1,[Define to 1 to assume things about default-colors]) 109066963Speter 109166963Speter### use option --enable-hashmap to turn on use of hashmap scrolling logic 109266963SpeterAC_MSG_CHECKING(if you want hashmap scrolling-optimization code) 109366963SpeterAC_ARG_ENABLE(hashmap, 109466963Speter [ --disable-hashmap compile without hashmap scrolling-optimization], 109566963Speter [with_hashmap=$enableval], 109666963Speter [with_hashmap=yes]) 109766963SpeterAC_MSG_RESULT($with_hashmap) 1098262685Sdelphijtest "x$with_hashmap" = xyes && AC_DEFINE(USE_HASHMAP,1,[Define to 1 to compile with hashmap scrolling-optimization]) 109966963Speter 110098503Speter### use option --enable-colorfgbg to turn on use of $COLORFGBG environment 110198503SpeterAC_MSG_CHECKING(if you want colorfgbg code) 110298503SpeterAC_ARG_ENABLE(colorfgbg, 1103262629Sdelphij [ --enable-colorfgbg compile-in experimental $COLORFGBG code], 110498503Speter [with_colorfgbg=$enableval], 110598503Speter [with_colorfgbg=no]) 110698503SpeterAC_MSG_RESULT($with_colorfgbg) 1107262685Sdelphijtest "x$with_colorfgbg" = xyes && AC_DEFINE(USE_COLORFGBG,1,[Define to 1 to compile-in experimental $COLORFGBG code]) 110898503Speter 1109262629Sdelphij### use option --enable-interop to turn on use of bindings used for interop 1110262629SdelphijAC_MSG_CHECKING(if you want interop bindings) 1111262629SdelphijAC_ARG_ENABLE(interop, 1112262629Sdelphij [ --enable-interop compile-in experimental interop bindings], 1113262629Sdelphij [with_exp_interop=$enableval], 1114262629Sdelphij [with_exp_interop=no]) 1115262629SdelphijAC_MSG_RESULT($with_exp_interop) 1116262629Sdelphij 1117262629SdelphijNCURSES_INTEROP_FUNCS=0 1118262685Sdelphijtest "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1 1119262629SdelphijAC_SUBST(NCURSES_INTEROP_FUNCS) 1120262629Sdelphij 1121184989Srafan# This is still experimental (20080329), but should ultimately be moved to 1122184989Srafan# the script-block --with-normal, etc. 1123184989SrafanCF_WITH_PTHREAD 1124184989Srafan 1125262629Sdelphijif test "x$with_pthread" != xno; then 1126262629Sdelphij AC_CHECK_FUNC(pthread_kill,[ 1127262629Sdelphij AC_MSG_CHECKING(if you want to allow EINTR in wgetch with pthreads) 1128262629Sdelphij AC_ARG_ENABLE(pthreads-eintr, 1129262629Sdelphij [ --enable-pthreads-eintr enable EINTR in wgetch with pthreads], 1130262629Sdelphij [use_pthreads_eintr=$enableval], 1131262629Sdelphij [use_pthreads_eintr=no]) 1132262629Sdelphij AC_MSG_RESULT($use_pthreads_eintr) 1133262685Sdelphij if test "x$use_pthreads_eintr" = xyes ; then 1134262685Sdelphij AC_DEFINE(USE_PTHREADS_EINTR,1,[Define to 1 to enable EINTR in wgetch with pthreads]) 1135262629Sdelphij fi]) 1136166124Srafan 1137262629Sdelphij AC_MSG_CHECKING(if you want to use weak-symbols for pthreads) 1138262629Sdelphij AC_ARG_ENABLE(weak-symbols, 1139262629Sdelphij [ --enable-weak-symbols enable weak-symbols for pthreads], 1140262629Sdelphij [use_weak_symbols=$enableval], 1141262629Sdelphij [use_weak_symbols=no]) 1142262629Sdelphij AC_MSG_RESULT($use_weak_symbols) 1143262685Sdelphij if test "x$use_weak_symbols" = xyes ; then 1144262629Sdelphij CF_WEAK_SYMBOLS 1145262629Sdelphij else 1146262629Sdelphij cf_cv_weak_symbols=no 1147262629Sdelphij fi 1148262629Sdelphij 1149262685Sdelphij if test "x$cf_cv_weak_symbols" = xyes ; then 1150262685Sdelphij AC_DEFINE(USE_WEAK_SYMBOLS,1,[Define to 1 to enable weak-symbols for pthreads]) 1151262629Sdelphij fi 1152166124Srafanfi 1153166124Srafan 1154184989SrafanPTHREAD= 1155262685Sdelphijif test "x$with_pthread" = "xyes" ; then 1156262685Sdelphij AC_DEFINE(USE_PTHREADS,1,[Define to 1 to use pthreads feature]) 1157178866Srafan enable_reentrant=yes 1158262685Sdelphij if test "x$cf_cv_weak_symbols" = xyes ; then 1159184989Srafan PTHREAD=-lpthread 1160184989Srafan fi 1161178866Srafanfi 1162184989SrafanAC_SUBST(PTHREAD) 1163178866Srafan 1164174993Srafan# Reentrant code has to be opaque; there's little advantage to making ncurses 1165178866Srafan# opaque outside of that, so there is no --enable-opaque option. We can use 1166178866Srafan# this option without --with-pthreads, but this will be always set for 1167178866Srafan# pthreads. 1168174993SrafanAC_MSG_CHECKING(if you want experimental reentrant code) 1169174993SrafanAC_ARG_ENABLE(reentrant, 1170174993Srafan [ --enable-reentrant compile with experimental reentrant code], 1171174993Srafan [with_reentrant=$enableval], 1172174993Srafan [with_reentrant=no]) 1173174993SrafanAC_MSG_RESULT($with_reentrant) 1174262685Sdelphijif test "x$with_reentrant" = xyes ; then 1175174993Srafan cf_cv_enable_reentrant=1 1176174993Srafan cf_cv_enable_opaque="NCURSES_INTERNALS" 1177174993Srafan NCURSES_OPAQUE=1 1178174993Srafan NCURSES_SIZE_T=int 1179262685Sdelphij if test "x$cf_cv_weak_symbols" = xyes ; then 1180262629Sdelphij CF_REMOVE_LIB(LIBS,$LIBS,pthread) 1181262629Sdelphij CF_ADD_LIB(pthread,TEST_LIBS) 1182262629Sdelphij CF_ADD_LIB(pthread,TEST_LIBS2) 1183262629Sdelphij else 1184262685Sdelphij # when not using weak symbols but with_reentrant, 1185262685Sdelphij # add 't' to the library suffix on all platforms 1186262685Sdelphij # except cygwin, where we only do that if ALSO 1187262685Sdelphij # compiling with full thread support. 1188262685Sdelphij case "$host" in 1189262685Sdelphij *cygwin* | *msys*) 1190262685Sdelphij if test "$with_pthread" = "yes" ; then 1191262685Sdelphij LIB_SUFFIX="t${LIB_SUFFIX}" 1192262685Sdelphij fi ;; 1193262685Sdelphij * ) LIB_SUFFIX="t${LIB_SUFFIX}" ;; 1194262685Sdelphij esac 1195262629Sdelphij fi 1196262685Sdelphij AC_DEFINE(USE_REENTRANT,1,[Define to 1 to use experimental reentrant feature]) 1197174993Srafan CF_NCURSES_ABI_6 1198174993Srafanelse 1199174993Srafan cf_cv_enable_reentrant=0 1200174993Srafan cf_cv_enable_opaque="NCURSES_OPAQUE" 1201174993Srafan NCURSES_OPAQUE=0 1202174993Srafan NCURSES_SIZE_T=short 1203174993Srafanfi 1204174993SrafanAC_SUBST(cf_cv_enable_reentrant) 1205174993SrafanAC_SUBST(cf_cv_enable_opaque) 1206174993SrafanAC_SUBST(NCURSES_OPAQUE) 1207174993SrafanAC_SUBST(NCURSES_SIZE_T) 1208174993Srafan 1209262629Sdelphij### Allow using a different wrap-prefix 1210262629Sdelphijif test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then 1211262629Sdelphij AC_MSG_CHECKING(for prefix used to wrap public variables) 1212262629Sdelphij AC_ARG_WITH(wrap-prefix, 1213262629Sdelphij [ --with-wrap-prefix=XXX override prefix used for public variables], 1214262629Sdelphij [NCURSES_WRAP_PREFIX=$withval], 1215262629Sdelphij [NCURSES_WRAP_PREFIX=_nc_]) 1216262629Sdelphij AC_MSG_RESULT($NCURSES_WRAP_PREFIX) 1217262629Sdelphijelse 1218262629Sdelphij NCURSES_WRAP_PREFIX=_nc_ 1219262629Sdelphijfi 1220262629SdelphijAC_SUBST(NCURSES_WRAP_PREFIX) 1221262685SdelphijAC_DEFINE_UNQUOTED(NCURSES_WRAP_PREFIX,"$NCURSES_WRAP_PREFIX",[Define to override _nc_ prefix]) 1222262629Sdelphij 122350276SpeterAC_MSG_CHECKING(if you want experimental safe-sprintf code) 122450276SpeterAC_ARG_ENABLE(safe-sprintf, 122550276Speter [ --enable-safe-sprintf compile with experimental safe-sprintf code], 122650276Speter [with_safe_sprintf=$enableval], 122750276Speter [with_safe_sprintf=no]) 122850276SpeterAC_MSG_RESULT($with_safe_sprintf) 1229262685Sdelphijtest "x$with_safe_sprintf" = xyes && AC_DEFINE(USE_SAFE_SPRINTF,1,[Define to 1 to compile with experimental safe-sprintf code]) 123050276Speter 123150276Speter### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic 123262449Speter# when hashmap is used scroll hints are useless 123362449Speterif test "$with_hashmap" = no ; then 123450276SpeterAC_MSG_CHECKING(if you want to experiment without scrolling-hints code) 123550276SpeterAC_ARG_ENABLE(scroll-hints, 123662449Speter [ --disable-scroll-hints compile without scroll-hints code], 123750276Speter [with_scroll_hints=$enableval], 123862449Speter [with_scroll_hints=yes]) 123950276SpeterAC_MSG_RESULT($with_scroll_hints) 1240262685Sdelphijtest "x$with_scroll_hints" = xyes && AC_DEFINE(USE_SCROLL_HINTS,1,[Define to 1 to compile without scroll-hints code]) 124162449Speterfi 124250276Speter 1243166124SrafanAC_MSG_CHECKING(if you want experimental wgetch-events code) 1244166124SrafanAC_ARG_ENABLE(wgetch-events, 1245166124Srafan [ --enable-wgetch-events compile with experimental wgetch-events code], 1246166124Srafan [with_wgetch_events=$enableval], 1247166124Srafan [with_wgetch_events=no]) 1248166124SrafanAC_MSG_RESULT($with_wgetch_events) 1249262685Sdelphijtest "x$with_wgetch_events" = xyes && AC_DEFINE(NCURSES_WGETCH_EVENTS,1,[Define to 1 to compile with experimental wgetch-events code]) 125050276Speter 125150276Speter############################################################################### 125250276SpeterCF_HELP_MESSAGE(Testing/development Options:) 125350276Speter 125450276Speter### use option --disable-echo to suppress full display compiling commands 1255262685SdelphijCF_DISABLE_ECHO 1256262685Sdelphijif test "x$enable_echo" = xyes; then 125750276Speter ECHO_LINK= 125850276Speterelse 125950276Speter ECHO_LINK='@ echo linking $@ ... ;' 126076726Speter test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent" 1261174993Srafan test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent" 126250276Speterfi 126350276SpeterAC_SUBST(ECHO_LINK) 126450276Speter 126550276Speter### use option --enable-warnings to turn on all gcc warnings 126666963SpeterAC_MSG_CHECKING(if you want to see compiler warnings) 126750276SpeterAC_ARG_ENABLE(warnings, 126850276Speter [ --enable-warnings build: turn on GCC compiler warnings], 126950276Speter [with_warnings=$enableval]) 127076726SpeterAC_MSG_RESULT($with_warnings) 127176726Speter 1272174993Srafanif test "x$with_warnings" = "xyes"; then 1273262629Sdelphij CF_ADD_ADAFLAGS(-gnatg) 1274262685Sdelphij CF_GCC_WARNINGS(Wno-unknown-pragmas Wswitch-enum) 1275262685Sdelphij if test "x$cf_with_cxx" = xyes ; then 1276166124Srafan CF_GXX_WARNINGS(Wno-unused) 1277166124Srafan fi 127850276Speterfi 127950276SpeterCF_GCC_ATTRIBUTES 1280262685SdelphijCF_ENABLE_STRING_HACKS 128150276Speter 128250276Speter### use option --enable-assertions to turn on generation of assertion code 128366963SpeterAC_MSG_CHECKING(if you want to enable runtime assertions) 128450276SpeterAC_ARG_ENABLE(assertions, 128550276Speter [ --enable-assertions test: turn on generation of assertion code], 128650276Speter [with_assertions=$enableval], 128750276Speter [with_assertions=no]) 128866963SpeterAC_MSG_RESULT($with_assertions) 128950276Speterif test -n "$GCC" 129050276Speterthen 129166963Speter if test "$with_assertions" = no 129250276Speter then 129350276Speter CPPFLAGS="$CPPFLAGS -DNDEBUG" 129450276Speter else 1295262629Sdelphij CF_ADD_ADAFLAGS(-gnata) 129650276Speter fi 129750276Speterfi 129850276Speter 129950276Speter### use option --disable-leaks to suppress "permanent" leaks, for testing 1300166124SrafanCF_DISABLE_LEAKS 1301262685SdelphijAC_DEFINE(HAVE_NC_ALLOC_H,1,[Define to 1 if we have nc_alloc.h header]) 130250276Speter 130350276Speter### use option --enable-expanded to generate certain macros as functions 130450276SpeterAC_ARG_ENABLE(expanded, 130550276Speter [ --enable-expanded test: generate functions for certain macros], 1306262685Sdelphij [test "x$enableval" = xyes && AC_DEFINE(NCURSES_EXPANDED,1,[Define to 1 to generate functions for certain macros])]) 130750276Speter 130850276Speter### use option --disable-macros to suppress macros in favor of functions 130950276SpeterAC_ARG_ENABLE(macros, 131050276Speter [ --disable-macros test: use functions rather than macros], 1311262685Sdelphij [test "$enableval" = no && AC_DEFINE(NCURSES_NOMACROS,1,[Define to 1 to use functions rather than macros])]) 131250276Speter 1313166124Srafan# Normally we only add trace() to the debug-library. Allow this to be 1314166124Srafan# extended to all models of the ncurses library: 1315166124Srafancf_all_traces=no 1316166124Srafancase "$CFLAGS $CPPFLAGS" in 1317166124Srafan*-DTRACE*) 1318166124Srafan cf_all_traces=yes 1319166124Srafan ;; 1320166124Srafanesac 1321166124Srafan 1322166124SrafanAC_MSG_CHECKING(whether to add trace feature to all models) 1323166124SrafanAC_ARG_WITH(trace, 1324166124Srafan[ --with-trace test: add trace() function to all models of ncurses], 1325166124Srafan[cf_with_trace=$withval], 1326166124Srafan[cf_with_trace=$cf_all_traces]) 1327166124SrafanAC_MSG_RESULT($cf_with_trace) 1328166124Srafan 1329262685Sdelphijif test "x$cf_with_trace" = xyes ; then 1330166124Srafan LIB_TRACING=all 1331166124Srafan ADA_TRACE=TRUE 1332166124Srafan CF_ADD_CFLAGS(-DTRACE) 1333166124Srafanelse 1334166124Srafan LIB_TRACING=DEBUG 1335166124Srafan ADA_TRACE=FALSE 1336166124Srafanfi 1337166124Srafan 1338166124SrafanAC_SUBST(ADA_TRACE) 1339166124Srafan 134050276Speter### Checks for libraries. 1341262629Sdelphijcase $cf_cv_system_name in #(vi 1342262629Sdelphij*mingw32*) #(vi 1343262629Sdelphij ;; 1344262629Sdelphij*) 134550276SpeterAC_CHECK_FUNC(gettimeofday, 1346262685Sdelphij AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define to 1 if we have gettimeofday function]),[ 134750276Speter 134850276SpeterAC_CHECK_LIB(bsd, gettimeofday, 1349262685Sdelphij AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define to 1 if we have gettimeofday function]) 1350262629Sdelphij CF_ADD_LIB(bsd))])dnl CLIX: bzero, select, gettimeofday 1351262629Sdelphij ;; 1352262629Sdelphijesac 135350276Speter 1354262685SdelphijCF_MATH_LIB(MATH_LIB,pow(sin(x),x)) 135550276SpeterAC_SUBST(MATH_LIB) 135650276Speter 135750276Speter### Checks for header files. 135850276SpeterAC_STDC_HEADERS 135950276SpeterAC_HEADER_DIRENT 136097049SpeterAC_HEADER_TIME 136150276SpeterCF_REGEX 136250276Speter 136350276Speterdnl These are some other potentially nonportable headers. 136450276SpeterAC_CHECK_HEADERS( \ 136550276Speterfcntl.h \ 136650276Spetergetopt.h \ 136750276Speterlimits.h \ 136850276Speterlocale.h \ 1369262629Sdelphijmath.h \ 137062449Speterpoll.h \ 137150276Spetersys/bsdtypes.h \ 137250276Spetersys/ioctl.h \ 137350276Spetersys/param.h \ 137462449Spetersys/poll.h \ 137550276Spetersys/select.h \ 137650276Spetersys/time.h \ 137750276Spetersys/times.h \ 137850276Speterttyent.h \ 137950276Speterunistd.h \ 1380166124Srafanwctype.h \ 138150276Speter) 138250276Speter 1383262685SdelphijCF_GETOPT_HEADER 1384262685Sdelphij 138550276Speter# check for ISC (this may also define _POSIX_SOURCE) 138650276Speter# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set 1387262685Sdelphijif test "x$ISC" = xyes ; then 138850276Speter AC_CHECK_LIB(cposix,main) 1389262629Sdelphij AC_CHECK_LIB(inet,bzero,CF_ADD_LIB(inet))dnl also 'select()' 139050276Speterfi 139150276Speter 139250276SpeterCF_SYS_TIME_SELECT 139350276Speter 139450276Speter### checks for compiler characteristics 139550276SpeterAC_LANG_C 139650276SpeterAC_C_CONST 1397174993SrafanCF_C_INLINE(NCURSES_INLINE,1200) 1398174993SrafanCF_SIG_ATOMIC_T 139950276Speter 1400166124Srafanif test $NCURSES_CHTYPE = auto ; then 1401166124Srafan CF_TYPEOF_CHTYPE 1402166124Srafanelse 1403166124Srafan cf_cv_typeof_chtype=$NCURSES_CHTYPE 1404166124Srafanfi 1405174993Srafantest "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype="" 1406166124SrafanAC_SUBST(cf_cv_typeof_chtype) 1407166124Srafan 1408166124SrafanCF_UNSIGNED_LITERALS 1409166124Srafancf_cv_1UL="1" 1410174993Srafantest ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U" 1411174993Srafantest ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L" 1412166124SrafanAC_SUBST(cf_cv_1UL) 1413166124Srafan 1414166124Srafanif test $NCURSES_MMASK_T = auto ; then 1415166124Srafan cf_cv_typeof_mmask_t=long 1416166124Srafanelse 1417166124Srafan cf_cv_typeof_mmask_t=$NCURSES_MMASK_T 1418166124Srafanfi 1419174993Srafantest "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t="" 1420166124SrafanAC_SUBST(cf_cv_typeof_mmask_t) 1421166124Srafan 142250276Speter### Checks for external-data 142350276SpeterCF_ERRNO 142450276SpeterCF_LINK_DATAONLY 142550276Speter 142650276Speter### Checks for library functions. 142762449SpeterAC_CHECK_FUNCS( \ 142862449Spetergetcwd \ 142966963Spetergetegid \ 143066963Spetergeteuid \ 143150276Spetergetttynam \ 143266963Speterissetugid \ 143350276Speterpoll \ 1434262685Sdelphijputenv \ 143550276Speterremove \ 143650276Speterselect \ 143750276Spetersetbuf \ 143850276Spetersetbuffer \ 1439262685Sdelphijsetenv \ 144050276Spetersetvbuf \ 144150276Spetersigaction \ 144250276Spetersigvec \ 144350276Speterstrdup \ 144450276Speterstrstr \ 144550276Spetertcgetpgrp \ 144650276Spetertimes \ 144750276Spetervsnprintf \ 144850276Speter) 1449262685Sdelphijif test "x$with_getcap" = "xyes" ; then 145050276Speter CF_CGETENT 145150276Speterfi 145250276Speter 145350276SpeterCF_ISASCII 145450276SpeterCF_STRUCT_SIGACTION 1455166124SrafanCF_FUNC_NANOSLEEP 145666963SpeterCF_FUNC_TERMIOS 145797049SpeterCF_FUNC_VSSCANF 145897049SpeterCF_MKSTEMP 145950276Speter 146097049Speter# setup for prototype of fallback for vsscanf() 1461166124SrafanCF_SUBST_IF(["$cf_cv_func_vsscanf" = vsscanf], HAVE_VSSCANF, 1, 0) 146297049Speter 146350276Speterdnl FIXME (may need this) AC_SYS_RESTARTABLE_SYSCALLS 1464262685Sdelphijif test "x$cross_compiling" = xyes ; then 146550276Speter AC_MSG_WARN(cross compiling: assume setvbuf params not reversed) 146650276Speterelse 146750276Speter AC_FUNC_SETVBUF_REVERSED 146850276Speterfi 1469262685SdelphijAC_CHECK_TYPE(intptr_t, long) 147050276SpeterCF_TYPE_SIGACTION 147150276SpeterCF_SIZECHANGE 147250276SpeterCF_FUNC_MEMMOVE 147362449SpeterCF_FUNC_POLL 1474262629SdelphijCF_VA_COPY 1475262629SdelphijAC_FUNC_VFORK 147650276Speter 1477178866Srafan# special check for test/ditto.c 1478178866SrafanCF_FUNC_OPENPTY 1479178866Srafanif test "$cf_cv_func_openpty" != no ; then 1480262685Sdelphij AC_DEFINE_UNQUOTED(USE_OPENPTY_HEADER,<$cf_cv_func_openpty>,[Define to actual header for openpty function]) 1481262685Sdelphij AC_DEFINE(USE_XTERM_PTY,1,[Define to 1 if we should assume xterm pseudoterminal interface]) 1482262685Sdelphij if test "x$cf_cv_lib_util" = xyes ; then 1483262629Sdelphij CF_ADD_LIB(util,TEST_LIBS) 1484178866Srafan fi 1485178866Srafanfi 1486178866SrafanAC_SUBST(TEST_LIBS) 1487262629SdelphijAC_SUBST(TEST_LIBS2) 1488178866Srafan 1489166124Srafanif test "$with_hashed_db" != no ; then 1490262685Sdelphij AC_DEFINE(USE_HASHED_DB,1,[Define to 1 if we should build terminfo in hashed database]) 1491174993Srafan CF_HASHED_DB($with_hashed_db) 1492166124Srafanfi 1493166124Srafan 149450276Speterdnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS 1495166124Srafanif test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then 149650276Speter CF_STRIP_G_OPT(CFLAGS) 149750276Speter CF_STRIP_G_OPT(CXXFLAGS) 149850276Speterfi 149950276Speter 1500166124Srafan# Just in case, check if the C compiler has a bool type. 150150276SpeterCF_BOOL_DECL(cf_cv_cc_bool_type) 1502166124Srafan 1503166124Srafan# Check for C++ compiler characteristics (and ensure that it's there!) 150450276Speterif test -n "$CXX" ; then 150550276Speter AC_LANG_CPLUSPLUS 150656639Speter CF_STDCPP_LIBRARY 1507166124Srafan CF_PROG_CC_C_O(CXX) 150876726Speter 150997049Speter case $GXX_VERSION in 151097049Speter 1*|2.[0-6]*) 151197049Speter cf_cxx_library=yes 151297049Speter ;; 151397049Speter *-2.7*|2.7*) 151497049Speter CF_GPP_LIBRARY 151597049Speter ;; 151697049Speter *) 151766963Speter cf_cxx_library=no 151897049Speter ;; 151997049Speter esac 152076726Speter 1521262685Sdelphij AC_CHECK_HEADERS(typeinfo) 1522262685Sdelphij CF_CXX_IOSTREAM_NAMESPACE 152350276Speter CF_BOOL_DECL 152450276Speter CF_BOOL_SIZE 152550276Speter CF_ETIP_DEFINES 152656639Speter CF_CPP_PARAM_INIT 1527166124Srafan CF_CPP_STATIC_CAST 1528262685Sdelphij CF_CXX_AR_FLAGS 152950276Speterelse 153050276Speter cf_cxx_library=no 153156639Speter cf_cv_builtin_bool=1 153250276Speter 153350276Speter # Just because we are not configuring against C++ right now does not 153450276Speter # mean that a user will not want to use C++. Some distributors disable 153550276Speter # the C++ portion of this configuration as a shortcut (or just to avoid 153650276Speter # compiling the demo in the c++ directory). So we need a reasonable 153750276Speter # default for the 'bool' type. 153850276Speter # 153950276Speter # Caveat: since the storage of the bool type is not standardized, it 154050276Speter # may change. 154150276Speter 154297049Speter if test "$NCURSES_BOOL" != auto ; then 1543166124Srafan cf_cv_type_of_bool=$NCURSES_BOOL 1544166124Srafan cf_cv_header_stdbool_h=0 154597049Speter else 154697049Speter if test "$cf_cv_header_stdbool_h" = 1 ; then 154797049Speter CF_BOOL_SIZE 154897049Speter else 154997049Speter AC_MSG_CHECKING(for fallback type of bool) 155097049Speter case "$host_cpu" in #(vi 155197049Speter i?86) cf_cv_type_of_bool=char ;; #(vi 155297049Speter *) cf_cv_type_of_bool=int ;; 155397049Speter esac 155497049Speter AC_MSG_RESULT($cf_cv_type_of_bool) 155597049Speter fi 155697049Speter fi 155750276Speterfi 155850276SpeterAC_SUBST(CXXLIBS) 155950276Speter 1560166124Srafan# If the C compiler did not declare bool, and we did not determine that the C++ 1561166124Srafan# compiler does not declare bool, turn on an ifdef in curses.h that makes the 1562166124Srafan# ncurses library use the same type as C++ bool. Note that this allows one to 1563166124Srafan# specify the type of bool in a configure-script option and postpone 1564166124Srafan# integration with the C++ compiler provided that the types are compatible. 1565166124SrafanUSE_CXX_BOOL=1 1566166124Srafanif test $cf_cv_cc_bool_type = 1 1567166124Srafanthen 1568166124Srafan # oops: C has a bool. Unlikely, but C++ could differ. 1569166124Srafan USE_CXX_BOOL=0 1570166124Srafanelif test $cf_cv_builtin_bool = 0 1571166124Srafanthen 1572166124Srafan # C++ has no bool 1573166124Srafan USE_CXX_BOOL=0 1574166124Srafanelse 1575166124Srafan # this is the normal case 1576166124Srafan USE_CXX_BOOL='defined(__cplusplus)' 1577166124Srafanfi 1578166124SrafanAC_SUBST(USE_CXX_BOOL) 1579166124Srafan 158050276SpeterCF_HELP_MESSAGE(Ada95 Binding Options:) 158150276Speter 1582174993Srafandnl If the Ada95 source-tree is present, add that to the build unless it will 1583174993Srafandnl not work, or was not requested. 1584174993Srafanif test -f "${srcdir}/Ada95/Makefile.in" ; then 1585174993Srafan 1586174993Srafandnl libtool does not know anything about GNAT, though a change made in 1998 1587174993Srafandnl provided for it "someday". Disable the ada subtree if we are using 1588174993Srafandnl libtool -TD 20070714 1589262629Sdelphij if test "$cf_with_ada" != "no" ; then 1590262629Sdelphij if test "$with_libtool" != "no"; then 1591262629Sdelphij AC_MSG_WARN(libtool does not support Ada - disabling feature) 1592262629Sdelphij cf_with_ada=no 1593262629Sdelphij fi 1594262629Sdelphij fi 1595174993Srafan 159650276Speterdnl Check for availability of GNU Ada Translator (GNAT). 159750276Speterdnl At the moment we support no other Ada95 compiler. 1598262629Sdelphij if test "$cf_with_ada" != "no" ; then 1599262629Sdelphij CF_PROG_GNAT 1600262685Sdelphij if test "x$cf_cv_prog_gnat_correct" = xyes; then 1601262629Sdelphij CF_ADD_ADAFLAGS(-gnatpn) 1602262685Sdelphij CF_FIXUP_ADAFLAGS 160350276Speter 1604262629Sdelphij CF_GNAT_GENERICS 1605262629Sdelphij CF_GNAT_SIGINT 1606262629Sdelphij CF_GNAT_PRAGMA_UNREF 1607262629Sdelphij CF_GNAT_PROJECTS 1608166124Srafan 1609262629Sdelphij CF_WITH_ADA_COMPILER 161050276Speter 1611262629Sdelphij cf_ada_package=terminal_interface 1612262629Sdelphij AC_SUBST(cf_ada_package) 161350276Speter 1614262629Sdelphij CF_WITH_ADA_INCLUDE 1615262629Sdelphij CF_WITH_ADA_OBJECTS 1616262629Sdelphij CF_WITH_ADA_SHAREDLIB 1617262629Sdelphij fi 1618262629Sdelphij fi 1619174993Srafanelse 1620262629Sdelphij cf_with_ada=no 162150276Speterfi 162250276Speter 1623262685Sdelphij# do this "late" to avoid conflict with header-checks 1624262685Sdelphijif test "x$with_widec" = xyes ; then 1625262685Sdelphij AC_CHECK_SIZEOF(wchar_t) 1626262685Sdelphijfi 1627262685Sdelphij 1628174993Srafan### Construct the ncurses library-subsets, if any, from this set of keywords: 1629174993Srafan### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar 1630174993Srafan### 1631174993Srafan### ticlib modules may be a separate library, otherwise contained in termlib. 1632174993Srafan### termlib modules may be a separate library, otherwise contained in ncurses. 1633174993Srafan### 1634174993Srafan### The of "+" or " " between the tokens controls the way the script 1635174993Srafan### chooses to split module lists into libraries. 1636174993Srafan### 1637174993Srafan### (see CF_LIB_RULES). 163850276SpeterAC_MSG_CHECKING(for library subsets) 1639174993SrafanLIB_SUBSETS= 1640174993Srafan 1641262685Sdelphijif test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then 1642174993Srafan LIB_SUBSETS="${LIB_SUBSETS}ticlib" 1643174993Srafan if test "$with_ticlib" != no ; then 1644174993Srafan LIB_SUBSETS="${LIB_SUBSETS} " 1645174993Srafan else 1646174993Srafan LIB_SUBSETS="${LIB_SUBSETS}+" 1647174993Srafan fi 1648174993Srafanfi 1649174993Srafan 1650174993SrafanLIB_SUBSETS="${LIB_SUBSETS}termlib" 1651262685Sdelphijtest "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo" 1652262629Sdelphij 1653166124Srafanif test "$with_termlib" != no ; then 1654166124Srafan LIB_SUBSETS="${LIB_SUBSETS} " 165550276Speterelse 1656174993Srafan LIB_SUBSETS="${LIB_SUBSETS}+" 165750276Speterfi 1658174993Srafan 165950276SpeterLIB_SUBSETS="${LIB_SUBSETS}base" 1660262629Sdelphij 1661262629Sdelphij# Most term-driver calls are to tinfo, but some like init_pair are to the 1662262629Sdelphij# base library (so it resides in base). 1663262629Sdelphijif test "$with_term_driver" != no ; then 1664262629Sdelphij LIB_SUBSETS="${LIB_SUBSETS}+port_drivers" 1665262629Sdelphij case $cf_cv_system_name in #(vi 1666262629Sdelphij *mingw32*) #(vi 1667262629Sdelphij LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con" 1668262629Sdelphij ;; 1669262629Sdelphij *) #(vi 1670262629Sdelphij LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo" 1671262629Sdelphij ;; 1672262629Sdelphij esac 1673262629Sdelphijfi 1674262629Sdelphij 1675262685Sdelphijtest "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar" 1676262685Sdelphijtest "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs" 1677174993Srafan 167850276SpeterAC_MSG_RESULT($LIB_SUBSETS) 167950276Speter 168050276Speter### Construct the list of include-directories to be generated 168150276SpeterCF_INCLUDE_DIRS 168250276SpeterCF_ADA_INCLUDE_DIRS 168350276Speter 168462449Speter### Build up pieces for makefile rules 168562449SpeterAC_MSG_CHECKING(default library suffix) 168662449SpeterCF_LIB_TYPE($DFT_LWR_MODEL,DFT_ARG_SUFFIX)dnl 168762449SpeterAC_SUBST(DFT_ARG_SUFFIX)dnl the string to append to "-lncurses" ("") 168862449SpeterAC_MSG_RESULT($DFT_ARG_SUFFIX) 168962449Speter 169062449SpeterAC_MSG_CHECKING(default library-dependency suffix) 1691184989SrafanCF_LIB_SUFFIX($DFT_LWR_MODEL,DFT_LIB_SUFFIX,DFT_DEP_SUFFIX)dnl 169262449SpeterAC_SUBST(DFT_DEP_SUFFIX)dnl the corresponding library-suffix (".a") 169362449SpeterAC_MSG_RESULT($DFT_DEP_SUFFIX) 169462449Speter 169562449SpeterAC_MSG_CHECKING(default object directory) 169662449SpeterCF_OBJ_SUBDIR($DFT_LWR_MODEL,DFT_OBJ_SUBDIR)dnl 169762449SpeterAC_SUBST(DFT_OBJ_SUBDIR)dnl the default object-directory ("obj") 169862449SpeterAC_MSG_RESULT($DFT_OBJ_SUBDIR) 169962449Speter 1700262685Sdelphijif test "x$cf_with_cxx" = xyes ; then 170176726SpeterAC_MSG_CHECKING(c++ library-dependency suffix) 1702166124Srafanif test "$with_libtool" != "no"; then 1703262685Sdelphij # libtool thinks it can make c++ shared libraries (perhaps only g++) 170476726Speter CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 1705262685Sdelphijelif test "$with_shared_cxx" != "no"; then 1706262685Sdelphij # also for g++ users... 1707262685Sdelphij CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 170876726Speterelse 1709262685Sdelphij # we normally make a static library because C/C++ library rules differ 1710262685Sdelphij CF_LIB_SUFFIX(normal,CXX_LIB_SUFFIX,CXX_DEP_SUFFIX) 171176726Speterfi 171276726SpeterAC_MSG_RESULT($CXX_LIB_SUFFIX) 171376726SpeterAC_SUBST(CXX_LIB_SUFFIX) 1714166124Srafanfi 171576726Speter 1716174993Srafan# do not want -ldl in build except as needed for -lncurses dependency 1717262685Sdelphijif test "x$with_dlsym" = xyes ; then 1718174993Srafanif test $DFT_LWR_MODEL = shared || \ 1719174993Srafan test $DFT_LWR_MODEL = libtool ; then 1720174993Srafan CF_REMOVE_LIB(LIBS,$LIBS,dl) 1721174993Srafanfi 1722174993Srafanfi 1723166124Srafan### Set up low-level terminfo dependencies for makefiles. 1724174993Srafan 1725174993Srafan# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but 1726174993Srafan# do not need libdl 1727174993SrafanTICS_LIST= 1728262685Sdelphijif test "x$with_dlsym" = xyes ; then 1729174993Srafan CF_REMOVE_LIB(TINFO_LIST,$SHLIB_LIST,dl) 1730174993Srafanfi 1731174993Srafan 1732174993Srafanif test "$with_ticlib" != no ; then 1733174993Srafan 1734262685Sdelphij if test "x$with_ticlib" != xyes ; then 1735174993Srafan TICS_NAME=$with_ticlib 1736174993Srafan TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 1737174993Srafan TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 1738174993Srafan TICS_LIB_SUFFIX="${with_ticlib}" 1739174993Srafan else 1740174993Srafan TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}" 1741174993Srafan TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}" 1742174993Srafan TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}" 1743174993Srafan fi 1744262685Sdelphij TICS_LDFLAGS="-L${LIB_DIR}" 1745262685Sdelphij TICS_LIBS="-l${TICS_LIB_SUFFIX}" 1746174993Srafanelse 1747262685Sdelphij TICS_LDFLAGS="-L${LIB_DIR}" 1748262685Sdelphij TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}" 1749174993Srafanfi 1750174993SrafanAC_SUBST(TICS_ARG_SUFFIX) 1751174993SrafanAC_SUBST(TICS_DEP_SUFFIX) 1752174993SrafanAC_SUBST(TICS_LIB_SUFFIX) 1753262685SdelphijAC_SUBST(TICS_LDFLAGS) 1754262685SdelphijAC_SUBST(TICS_LIBS) 1755174993Srafan 1756166124Srafanif test "$with_termlib" != no ; then 175762449Speter 1758262685Sdelphij if test "x$with_termlib" != xyes ; then 1759166124Srafan TINFO_NAME=$with_termlib 1760174993Srafan TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 1761166124Srafan TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 1762166124Srafan TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`" 1763166124Srafan TINFO_LIB_SUFFIX="${with_termlib}" 1764166124Srafan else 1765174993Srafan TINFO_SUFFIX=${DFT_LIB_SUFFIX} 1766166124Srafan TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}" 1767166124Srafan TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}" 1768166124Srafan TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}" 1769166124Srafan fi 1770166124Srafan 1771166124Srafan TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 1772166124Srafan TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 1773166124Srafan if test "$DFT_LWR_MODEL" = "libtool"; then 1774166124Srafan TEST_ARGS="${TEST_DEPS}" 1775166124Srafan TEST_ARG2="${TEST_DEP2}" 1776262685Sdelphij TINFO_LDFLAGS="-L${LIB_DIR}" 1777262685Sdelphij TINFO_LIBS="$TEST_ARGS" 1778262629Sdelphij TICS_LIST="$SHLIB_LIST $TEST_ARGS" 1779262629Sdelphij SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS" 1780166124Srafan else 1781166124Srafan TEST_ARGS="-l${TINFO_ARG_SUFFIX}" 1782166124Srafan TEST_ARG2="-l${TINFO_ARG_SUFFIX}" 1783262685Sdelphij if test "x$with_term_driver" != xno ; then 1784262685Sdelphij TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}" 1785262685Sdelphij TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}" 1786262685Sdelphij TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS" 1787262685Sdelphij else 1788262685Sdelphij TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 1789262685Sdelphij TINFO_LIBS="$TEST_ARGS" 1790262685Sdelphij fi 1791262685Sdelphij TINFO_LDFLAGS="-L${LIB_DIR}" 1792166124Srafan SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 1793166124Srafan fi 1794166124Srafanelse 1795174993Srafan # the next lines are needed for linking libtic over libncurses 1796174993Srafan TINFO_NAME=${LIB_NAME} 1797174993Srafan TINFO_SUFFIX=${DFT_LIB_SUFFIX} 1798174993Srafan TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX} 1799262685Sdelphij if test "x$with_tic_depends" = xyes ; then 1800184989Srafan TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}" 1801184989Srafan else 1802184989Srafan TICS_LIST="$SHLIB_LIST" 1803184989Srafan fi 1804174993Srafan 1805262685Sdelphij TINFO_LDFLAGS="-L${LIB_DIR}" 1806262685Sdelphij TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}" 1807166124Srafanfi 1808174993Srafan 1809174993Srafanif test "$DFT_LWR_MODEL" = shared ; then 1810174993Srafan case $cf_cv_system_name in #(vi 1811262685Sdelphij cygwin*|msys*) 1812262685Sdelphij # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll" 1813174993Srafan TINFO_SUFFIX=.dll 1814174993Srafan ;; 1815174993Srafan esac 1816174993Srafanfi 1817174993Srafan 1818166124SrafanAC_SUBST(TINFO_ARG_SUFFIX) 1819166124SrafanAC_SUBST(TINFO_DEP_SUFFIX) 1820166124SrafanAC_SUBST(TINFO_LIB_SUFFIX) 1821262685SdelphijAC_SUBST(TINFO_LDFLAGS) 1822262685SdelphijAC_SUBST(TINFO_LIBS) 1823166124Srafan 1824262685Sdelphijif test "x$with_dlsym" = xyes ; then 1825174993Srafan CF_REMOVE_LIB(TICS_LIST,$TICS_LIST,dl) 1826174993Srafanfi 1827174993Srafan 1828178866Srafanif test "$DFT_LWR_MODEL" = "libtool"; then 1829178866Srafan OBJEXT=lo 1830178866Srafanfi 1831178866Srafan 1832166124Srafan# needed for Ada95 1833262685SdelphijTINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'` 1834262685SdelphijAC_SUBST(TINFO_LDFLAGS2) 1835166124Srafan 1836174993Srafancase $DFT_LWR_MODEL in 1837174993Srafannormal|debug|profile) 1838174993Srafan CF_LDFLAGS_STATIC 1839174993Srafan ;; 1840174993Srafanesac 1841174993Srafan 184262449SpeterAC_MSG_CHECKING(where we will install curses.h) 1843262685SdelphijAC_SUBST(includesubdir) 1844262685Sdelphijincludesubdir= 1845262685Sdelphijif test "$with_overwrite" = no && \ 1846262685Sdelphij ( test "x$includedir" = 'x${prefix}/include' || \ 1847262685Sdelphij test "x$includedir" = "x${prefix}/include" ) 1848262685Sdelphijthen 1849262685Sdelphij includesubdir="/ncurses${LIB_SUFFIX}" 1850262685Sdelphijfi 1851262685SdelphijAC_MSG_RESULT(${includedir}${includesubdir}) 185262449Speter 1853166124Srafan### Resolve a conflict between normal and wide-curses by forcing applications 1854166124Srafan### that will need libutf8 to add it to their configure script. 1855166124Srafanif test "$with_overwrite" != no ; then 1856166124Srafanif test "$NCURSES_LIBUTF8" = 1 ; then 1857166124Srafan NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)' 1858166124Srafan AC_MSG_WARN(Wide-character applications must define HAVE_LIBUTF8_H to include curses.h) 1859166124Srafanfi 1860166124Srafanfi 1861262629SdelphijWITH_OVERWRITE=$with_overwrite 1862166124Srafan 1863166124SrafanAC_SUBST(WITH_OVERWRITE) 1864174993SrafanAC_SUBST(TICS_LIST) 186562449SpeterAC_SUBST(TINFO_LIST) 186662449SpeterAC_SUBST(SHLIB_LIST) 186762449Speter 1868174993Srafan# used to separate tack out of the tree 1869174993SrafanNCURSES_TREE= 1870174993SrafanAC_SUBST(NCURSES_TREE) 1871174993Srafan 1872166124Srafan### predefined stuff for the test programs 1873262685SdelphijAC_DEFINE(HAVE_SLK_COLOR,1,[Define to 1 if we have slk_color for test-programs]) 187450276Speter 187550276Speter### Construct the list of subdirectories for which we'll customize makefiles 187650276Speter### with the appropriate compile-rules. 187750276Speter 187850276SpeterCF_SRC_MODULES($modules_to_build) 1879174993Srafan 1880262685Sdelphijif test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 1881262629Sdelphij SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in" 1882262629Sdelphij SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in" 1883174993Srafanfi 1884174993Srafan 188550276SpeterCF_DIRS_TO_MAKE 188650276Speter 1887262629Sdelphij# symbols that differ when compiling Ada95 by itself. 1888262629SdelphijNCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib' 1889262629SdelphijAC_SUBST(NCURSES_SHLIB2) 189076726Speter 1891262629Sdelphij# values to use as strings 1892262685SdelphijAC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATH_SEPARATOR',[Define to override ':' as library path-separator]) 1893262629Sdelphij 1894262685SdelphijAC_DEFINE_UNQUOTED(NCURSES_VERSION_STRING, "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}",[Define to 1 if machine has ample memory for tic]) 1895166124Srafan 189650276Speter### Now that we're done running tests, add the compiler-warnings, if any 1897166124SrafanCF_ADD_CFLAGS($EXTRA_CFLAGS) 189850276Speter 1899166124Srafan### Define substitutions for header files to avoid name-pollution 1900262685SdelphijCF_SUBST_IF(["x$cf_cv_have_tcgetattr" = xyes], HAVE_TCGETATTR, 1, 0) 1901262685SdelphijCF_SUBST_IF(["x$ac_cv_header_termio_h" = xyes], HAVE_TERMIO_H, 1, 0) 1902262685SdelphijCF_SUBST_IF(["x$ac_cv_header_termios_h" = xyes], HAVE_TERMIOS_H, 1, 0) 1903166124Srafan 190450276Speter################################################################################ 1905262685Sdelphijtest "x$use_database" = xyes && \ 1906262629SdelphijSUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in" 1907262629Sdelphij 1908166124SrafanSUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in" 1909262629SdelphijSUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in" 1910262629Sdelphij 1911262685Sdelphijif test "x$enable_pc_files" = xyes ; then \ 1912262629SdelphijSUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in" 1913262629SdelphijMAKE_PC_FILES= 1914262629Sdelphijelse 1915262629SdelphijMAKE_PC_FILES="#" 1916262629Sdelphijfi 1917262629SdelphijAC_SUBST(MAKE_PC_FILES) 1918262629SdelphijAC_SUBST(cross_compiling) 1919262629Sdelphij 1920262629SdelphijAC_PATH_PROG(TIC_PATH,tic,unknown,$PATH:/usr/local/ncurses/bin) 1921262629Sdelphijif test -n "$FALLBACK_LIST" 1922262629Sdelphijthen 1923262629Sdelphij if test "$TIC_PATH" = unknown 1924262629Sdelphij then 1925262629Sdelphij AC_MSG_WARN(no tic program found for fallbacks) 1926262629Sdelphij fi 1927262629Sdelphijfi 1928262629SdelphijAC_SUBST(TIC_PATH) 1929262629Sdelphij 1930262629Sdelphijif test "x$cf_with_tests" != xno ; then 1931262629Sdelphij MAKE_TESTS= 1932262629Sdelphijelse 1933262629Sdelphij MAKE_TESTS="#" 1934262629Sdelphijfi 1935262629SdelphijAC_SUBST(MAKE_TESTS) 1936262629Sdelphij 1937262629SdelphijADAHTML_DIR=../../doc/html/ada 1938262629SdelphijAC_SUBST(ADAHTML_DIR) 1939262629Sdelphij 1940262685Sdelphij# these could be configurable, but are not currently 1941262685SdelphijPANEL_NAME=panel 1942262685SdelphijMENU_NAME=menu 1943262685SdelphijFORM_NAME=form 1944262685SdelphijCXX_NAME=ncurses++ 1945262685Sdelphij 1946262685SdelphijAC_SUBST(PANEL_NAME) 1947262685SdelphijAC_SUBST(MENU_NAME) 1948262685SdelphijAC_SUBST(FORM_NAME) 1949262685SdelphijAC_SUBST(CXX_NAME) 1950262685Sdelphij 1951262685Sdelphij# workaround for g++ versus Solaris (20131116) 1952262629Sdelphijcase $cf_cv_system_name in #(vi 1953262685Sdelphijsolaris2*) #(vi 1954262685Sdelphij case "x$CPPFLAGS" in #(vi 1955262685Sdelphij *-D_XOPEN_SOURCE_EXTENDED*) 1956262685Sdelphij CF_VERBOSE(moving _XOPEN_SOURCE_EXTENDED to work around g++ problem) 1957262685Sdelphij CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" 1958262685Sdelphij CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'` 1959262685Sdelphij ;; 1960262685Sdelphij esac 1961262629Sdelphij ;; 1962262629Sdelphijesac 1963262629Sdelphij 1964262685Sdelphij# AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this. 1965262685Sdelphijcase "x$NCURSES_OSPEED" in #(vi 1966262685Sdelphij*short*) #(vi 1967262685Sdelphij cf_compatible=1 1968262685Sdelphij ;; 1969262685Sdelphij*) 1970262685Sdelphij cf_compatible=0 1971262685Sdelphij ;; 1972262685Sdelphijesac 1973262685SdelphijAC_DEFINE_UNQUOTED(NCURSES_OSPEED_COMPAT,$cf_compatible,[Define to 1 if termcap variable ospeed is short]) 1974262685Sdelphij 1975262685SdelphijSUB_SCRIPTS= 1976262685Sdelphij 197750276SpeterAC_OUTPUT( \ 197850276Speter include/MKterm.h.awk \ 197997049Speter include/curses.head:include/curses.h.in \ 1980262629Sdelphij include/ncurses_dll.h \ 198150276Speter include/termcap.h \ 198250276Speter include/unctrl.h \ 1983262629Sdelphij $SUB_SCRIPTS \ 198450276Speter $SUB_MAKEFILES \ 198550276Speter Makefile,[ 1986262629Sdelphijif test "x$cf_with_tests" != xno ; then 1987262685Sdelphij CF_PRG_RULES([$srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD"], test) 1988262629Sdelphijfi 1989166124SrafanCF_LIB_RULES($SRC_SUBDIRS) 1990262629Sdelphij 1991262685Sdelphijif test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 1992262629Sdelphijif test -z "$USE_OLD_MAKERULES" ; then 1993262629Sdelphij $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile 1994262629Sdelphijfi 1995262629Sdelphijfi 199650276Speter],[ 199750276Speter### Special initialization commands, used to pass information from the 199850276Speter### configuration-run into config.status 199950276Speter 200050276SpeterAWK="$AWK" 2001166124SrafanDFT_ARG_SUFFIX="$DFT_ARG_SUFFIX" 200250276SpeterDFT_LWR_MODEL="$DFT_LWR_MODEL" 2003262685SdelphijECHO_LD="$ECHO_LD" 200450276SpeterLDCONFIG="$LDCONFIG" 2005262629SdelphijLIBTOOL_VERSION="$LIBTOOL_VERSION" 200650276SpeterLIB_NAME="$LIB_NAME" 2007262685SdelphijLIB_PREFIX="$LIB_PREFIX" 200897049SpeterLIB_SUBSETS="$LIB_SUBSETS" 200962449SpeterLIB_SUFFIX="$LIB_SUFFIX" 201062449SpeterLIB_TRACING="$LIB_TRACING" 2011262629SdelphijLN_S="$LN_S" 201297049SpeterMAKE_TERMINFO="$MAKE_TERMINFO" 2013166124SrafanNCURSES_MAJOR="$NCURSES_MAJOR" 2014166124SrafanNCURSES_MINOR="$NCURSES_MINOR" 201597049SpeterNCURSES_OSPEED="$NCURSES_OSPEED" 2016166124SrafanNCURSES_PATCH="$NCURSES_PATCH" 201750276SpeterSRC_SUBDIRS="$SRC_SUBDIRS" 201866963SpeterTERMINFO="$TERMINFO" 2019262629SdelphijTICS_ARG_SUFFIX="$TICS_ARG_SUFFIX" 2020262629SdelphijTICS_LIB_SUFFIX="$TICS_LIB_SUFFIX" 2021262629SdelphijTICS_NAME="$TICS_NAME" 2022262629SdelphijTIC_PATH="$TIC_PATH" 2023166124SrafanTINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX" 2024166124SrafanTINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX" 202550276SpeterTINFO_NAME="$TINFO_NAME" 2026174993SrafanTINFO_SUFFIX="$TINFO_SUFFIX" 2027262629SdelphijUSE_OLD_MAKERULES="$USE_OLD_MAKERULES" 202897049SpeterWITH_CURSES_H="$with_curses_h" 2029262685SdelphijWITH_ECHO="${enable_echo:=yes}" 203050276SpeterWITH_OVERWRITE="$with_overwrite" 2031166124Srafancf_LIST_MODELS="$cf_list_models" 203250276Spetercf_cv_abi_version="$cf_cv_abi_version" 2033174993Srafancf_cv_do_relink="$cf_cv_do_relink" 203450276Spetercf_cv_do_symlinks="$cf_cv_do_symlinks" 2035166124Srafancf_cv_enable_lp64="$cf_cv_enable_lp64" 2036174993Srafancf_cv_enable_opaque="$cf_cv_enable_opaque" 2037166124Srafancf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o 2038166124Srafancf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o 2039262685Sdelphijcf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct 204050276Spetercf_cv_rel_version="$cf_cv_rel_version" 204150276Spetercf_cv_rm_so_locs="$cf_cv_rm_so_locs" 2042184989Srafancf_cv_shared_soname='$cf_cv_shared_soname' 204397049Spetercf_cv_shlib_version="$cf_cv_shlib_version" 204497049Spetercf_cv_shlib_version_infix="$cf_cv_shlib_version_infix" 204550276Spetercf_cv_system_name="$cf_cv_system_name" 2046262685Sdelphijcf_cv_term_driver="$with_term_driver" 2047262629Sdelphijcf_with_ada="$cf_with_ada" 204856639Spetercf_with_cxx_binding="$cf_with_cxx_binding" 2049262685Sdelphijcf_with_db_install="$cf_with_db_install" 2050262629Sdelphijcf_with_manpages="$cf_with_manpages" 2051262629Sdelphijcf_with_tests="$cf_with_tests" 2052262685Sdelphijwith_shared_cxx="$with_shared_cxx" 2053166124Srafanhost="$host" 205450276Spetertarget="$target" 205550276Speter 2056166124Srafan],cat)dnl 2057262629Sdelphij${MAKE:-make} preinstall 2058