1#! /bin/sh 2 3# From configure.in Revision: 1.217 4 5 6 7# Guess values for system-dependent variables and create Makefiles. 8# Generated automatically using autoconf version 2.13.20000819 9# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13 14# Defaults: 15ac_help= 16ac_default_prefix=/usr/local 17# Any additions from configure.in: 18 19# Initialize some variables set by options. 20# The variables have the same names as the options, with 21# dashes changed to underlines. 22build=NONE 23cache_file=./config.cache 24exec_prefix=NONE 25host=NONE 26no_create= 27nonopt=NONE 28no_recursion= 29prefix=NONE 30program_prefix=NONE 31program_suffix=NONE 32program_transform_name=s,x,x, 33silent= 34site= 35srcdir= 36target=NONE 37verbose= 38x_includes=NONE 39x_libraries=NONE 40bindir='${exec_prefix}/bin' 41sbindir='${exec_prefix}/sbin' 42libexecdir='${exec_prefix}/libexec' 43datadir='${prefix}/share' 44sysconfdir='${prefix}/etc' 45sharedstatedir='${prefix}/com' 46localstatedir='${prefix}/var' 47libdir='${exec_prefix}/lib' 48includedir='${prefix}/include' 49oldincludedir='/usr/include' 50infodir='${prefix}/info' 51mandir='${prefix}/man' 52 53# Initialize some other variables. 54subdirs= 55MFLAGS= MAKEFLAGS= 56SHELL=${CONFIG_SHELL-/bin/sh} 57# Maximum number of lines to put in a shell here document. 58ac_max_here_lines=12 59 60ac_prev= 61for ac_option 62do 63 64 # If the previous option needs an argument, assign it. 65 if test -n "$ac_prev"; then 66 eval "$ac_prev=\$ac_option" 67 ac_prev= 68 continue 69 fi 70 71 case "$ac_option" in 72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 73 *) ac_optarg= ;; 74 esac 75 76 # Accept the important Cygnus configure options, so we can diagnose typos. 77 78 case "$ac_option" in 79 80 -bindir | --bindir | --bindi | --bind | --bin | --bi) 81 ac_prev=bindir ;; 82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 83 bindir="$ac_optarg" ;; 84 85 -build | --build | --buil | --bui | --bu) 86 ac_prev=build ;; 87 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 88 build="$ac_optarg" ;; 89 90 -cache-file | --cache-file | --cache-fil | --cache-fi \ 91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 92 ac_prev=cache_file ;; 93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 95 cache_file="$ac_optarg" ;; 96 97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 98 ac_prev=datadir ;; 99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 100 | --da=*) 101 datadir="$ac_optarg" ;; 102 103 -disable-* | --disable-*) 104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 105 # Reject names that are not valid shell variable names. 106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 108 fi 109 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 110 eval "enable_${ac_feature}=no" ;; 111 112 -enable-* | --enable-*) 113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 114 # Reject names that are not valid shell variable names. 115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 117 fi 118 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 119 case "$ac_option" in 120 *=*) ;; 121 *) ac_optarg=yes ;; 122 esac 123 eval "enable_${ac_feature}='$ac_optarg'" ;; 124 125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 127 | --exec | --exe | --ex) 128 ac_prev=exec_prefix ;; 129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 131 | --exec=* | --exe=* | --ex=*) 132 exec_prefix="$ac_optarg" ;; 133 134 -gas | --gas | --ga | --g) 135 # Obsolete; use --with-gas. 136 with_gas=yes ;; 137 138 -help | --help | --hel | --he) 139 # Omit some internal or obsolete options to make the list less imposing. 140 # This message is too long to be a string in the A/UX 3.1 sh. 141 cat << EOF 142Usage: configure [options] [host] 143Options: [defaults in brackets after descriptions] 144Configuration: 145 --cache-file=FILE cache test results in FILE 146 --help print this message 147 --no-create do not create output files 148 --quiet, --silent do not print \`checking...' messages 149 --version print the version of autoconf that created configure 150Directory and file names: 151 --prefix=PREFIX install architecture-independent files in PREFIX 152 [$ac_default_prefix] 153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 154 [same as prefix] 155 --bindir=DIR user executables in DIR [EPREFIX/bin] 156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 158 --datadir=DIR read-only architecture-independent data in DIR 159 [PREFIX/share] 160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 161 --sharedstatedir=DIR modifiable architecture-independent data in DIR 162 [PREFIX/com] 163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 164 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 165 --includedir=DIR C header files in DIR [PREFIX/include] 166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 167 --infodir=DIR info documentation in DIR [PREFIX/info] 168 --mandir=DIR man documentation in DIR [PREFIX/man] 169 --srcdir=DIR find the sources in DIR [configure dir or ..] 170 --program-prefix=PREFIX prepend PREFIX to installed program names 171 --program-suffix=SUFFIX append SUFFIX to installed program names 172 --program-transform-name=PROGRAM 173 run sed PROGRAM on installed program names 174EOF 175 cat << EOF 176Host type: 177 --build=BUILD configure for building on BUILD [BUILD=HOST] 178 --host=HOST configure for HOST [guessed] 179 --target=TARGET configure for TARGET [TARGET=HOST] 180Features and packages: 181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 185 --x-includes=DIR X include files are in DIR 186 --x-libraries=DIR X library files are in DIR 187EOF 188cat <<EOF 189--enable and --with options recognized: 190 --with-system-type=XXX test: override derived host system-type 191 --enable-add-ons=DIR... used to check if we are a glibc add-on. 192 --without-cxx do not adjust ncurses bool to match C++ 193 --without-cxx-binding do not build C++ binding and demo 194 --without-ada suppress check for Ada95, don't build demo 195 --without-progs suppress build with programs (e.g., tic) 196 --with-install-prefix prefixes actual install-location 197Options to Specify the Libraries Built/Used: 198 --with-shared generate shared-libraries 199 --with-normal generate normal-libraries (default) 200 --with-debug generate debug-libraries (default) 201 --with-profile generate profile-libraries 202 --with-termlib generate separate terminfo library 203EOF 204cat <<EOF 205 --with-dbmalloc test: use Conor Cahill's dbmalloc library 206 --with-dmalloc test: use Gray Watson's dmalloc library 207 --with-gpm use Alessandro Rubini's GPM library 208 --enable-rpath use rpath option when generating shared libraries 209 --with-shlib-version=X Specify rel or abi version for shared libs 210Fine-Tuning Your Configuration: 211 --disable-overwrite leave out the link to -lcurses 212 --disable-database use only built-in data 213 --with-database=XXX specify terminfo source to install 214 --with-fallbacks=XXX specify list of fallback terminal descriptions 215 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo) 216 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo) 217EOF 218cat <<EOF 219 --disable-big-core assume machine has little memory 220 --enable-termcap compile in termcap fallback support 221 --enable-getcap fast termcap load, no xrefs to terminfo 222 --enable-getcap-cache cache translated termcaps in ~/.terminfo 223 --enable-symlinks make tic use symbolic links not hard links 224 --enable-broken_linker compile with broken-linker support code 225 --enable-bsdpad recognize BSD-style prefix padding 226 --with-rcs-ids compile-in RCS identifiers 227Options to Specify How Manpages are Installed: 228 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and 229 optionally formatted, e.g., gzip,formatted 230 --with-manpage-renames specify manpage-renaming 231 --with-manpage-symlinks specify manpage-symlinks 232EOF 233cat <<EOF 234Extensions: 235 --disable-ext-funcs disable function-extensions 236 --enable-const compile with extra/non-standard const 237 --enable-no-padding compile with \$NCURSES_NO_PADDING code 238 --enable-sigwinch compile with SIGWINCH handler 239 --enable-tcap-names compile with user-definable terminal capabilities 240Development Code: 241 --with-develop enable all development options 242 --enable-colorfgbg compile with \$COLORFGBG code 243 --enable-hard-tabs compile with hard-tabs code 244 --disable-root-environ limit environment when running as root 245 --enable-xmc-glitch compile with limited support for xmc 246EOF 247cat <<EOF 248Experimental Code: 249 --disable-assumed-color do not assume anything about default-colors 250 --disable-hashmap compile without hashmap scrolling-optimization 251 --enable-safe-sprintf compile with experimental safe-sprintf code 252 --disable-scroll-hints compile without scroll-hints code 253 --enable-widec compile with experimental wide-char/UTF-8 code 254Testing/development Options: 255 --enable-echo build: display "compiling" commands (default) 256 --enable-warnings build: turn on GCC compiler warnings 257 --enable-assertions test: turn on generation of assertion code 258 --disable-leaks test: suppress permanent memory-leaks 259 --enable-expanded test: generate functions for certain macros 260EOF 261cat <<EOF 262 --disable-macros test: use functions rather than macros 263Ada95 Binding Options: 264 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake) 265 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude) 266 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib) 267EOF 268 exit 0 ;; 269 270 -host | --host | --hos | --ho) 271 ac_prev=host ;; 272 -host=* | --host=* | --hos=* | --ho=*) 273 host="$ac_optarg" ;; 274 275 -includedir | --includedir | --includedi | --included | --include \ 276 | --includ | --inclu | --incl | --inc) 277 ac_prev=includedir ;; 278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 279 | --includ=* | --inclu=* | --incl=* | --inc=*) 280 includedir="$ac_optarg" ;; 281 282 -infodir | --infodir | --infodi | --infod | --info | --inf) 283 ac_prev=infodir ;; 284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 285 infodir="$ac_optarg" ;; 286 287 -libdir | --libdir | --libdi | --libd) 288 ac_prev=libdir ;; 289 -libdir=* | --libdir=* | --libdi=* | --libd=*) 290 libdir="$ac_optarg" ;; 291 292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 293 | --libexe | --libex | --libe) 294 ac_prev=libexecdir ;; 295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 296 | --libexe=* | --libex=* | --libe=*) 297 libexecdir="$ac_optarg" ;; 298 299 -localstatedir | --localstatedir | --localstatedi | --localstated \ 300 | --localstate | --localstat | --localsta | --localst \ 301 | --locals | --local | --loca | --loc | --lo) 302 ac_prev=localstatedir ;; 303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 306 localstatedir="$ac_optarg" ;; 307 308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 309 ac_prev=mandir ;; 310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 311 mandir="$ac_optarg" ;; 312 313 -nfp | --nfp | --nf) 314 # Obsolete; use --without-fp. 315 with_fp=no ;; 316 317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 318 | --no-cr | --no-c) 319 no_create=yes ;; 320 321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 323 no_recursion=yes ;; 324 325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 327 | --oldin | --oldi | --old | --ol | --o) 328 ac_prev=oldincludedir ;; 329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 332 oldincludedir="$ac_optarg" ;; 333 334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 335 ac_prev=prefix ;; 336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 337 prefix="$ac_optarg" ;; 338 339 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 340 | --program-pre | --program-pr | --program-p) 341 ac_prev=program_prefix ;; 342 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 344 program_prefix="$ac_optarg" ;; 345 346 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 347 | --program-suf | --program-su | --program-s) 348 ac_prev=program_suffix ;; 349 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 351 program_suffix="$ac_optarg" ;; 352 353 -program-transform-name | --program-transform-name \ 354 | --program-transform-nam | --program-transform-na \ 355 | --program-transform-n | --program-transform- \ 356 | --program-transform | --program-transfor \ 357 | --program-transfo | --program-transf \ 358 | --program-trans | --program-tran \ 359 | --progr-tra | --program-tr | --program-t) 360 ac_prev=program_transform_name ;; 361 -program-transform-name=* | --program-transform-name=* \ 362 | --program-transform-nam=* | --program-transform-na=* \ 363 | --program-transform-n=* | --program-transform-=* \ 364 | --program-transform=* | --program-transfor=* \ 365 | --program-transfo=* | --program-transf=* \ 366 | --program-trans=* | --program-tran=* \ 367 | --progr-tra=* | --program-tr=* | --program-t=*) 368 program_transform_name="$ac_optarg" ;; 369 370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 371 | -silent | --silent | --silen | --sile | --sil) 372 silent=yes ;; 373 374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 375 ac_prev=sbindir ;; 376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 377 | --sbi=* | --sb=*) 378 sbindir="$ac_optarg" ;; 379 380 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 382 | --sharedst | --shareds | --shared | --share | --shar \ 383 | --sha | --sh) 384 ac_prev=sharedstatedir ;; 385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 388 | --sha=* | --sh=*) 389 sharedstatedir="$ac_optarg" ;; 390 391 -site | --site | --sit) 392 ac_prev=site ;; 393 -site=* | --site=* | --sit=*) 394 site="$ac_optarg" ;; 395 396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 397 ac_prev=srcdir ;; 398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 399 srcdir="$ac_optarg" ;; 400 401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 402 | --syscon | --sysco | --sysc | --sys | --sy) 403 ac_prev=sysconfdir ;; 404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 406 sysconfdir="$ac_optarg" ;; 407 408 -target | --target | --targe | --targ | --tar | --ta | --t) 409 ac_prev=target ;; 410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 411 target="$ac_optarg" ;; 412 413 -v | -verbose | --verbose | --verbos | --verbo | --verb) 414 verbose=yes ;; 415 416 -version | --version | --versio | --versi | --vers) 417 echo "configure generated by autoconf version 2.13.20000819" 418 exit 0 ;; 419 420 -with-* | --with-*) 421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 422 # Reject names that are not valid shell variable names. 423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 425 fi 426 ac_package=`echo $ac_package| sed 's/-/_/g'` 427 case "$ac_option" in 428 *=*) ;; 429 *) ac_optarg=yes ;; 430 esac 431 eval "with_${ac_package}='$ac_optarg'" ;; 432 433 -without-* | --without-*) 434 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 435 # Reject names that are not valid shell variable names. 436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 438 fi 439 ac_package=`echo $ac_package| sed 's/-/_/g'` 440 eval "with_${ac_package}=no" ;; 441 442 --x) 443 # Obsolete; use --with-x. 444 with_x=yes ;; 445 446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 447 | --x-incl | --x-inc | --x-in | --x-i) 448 ac_prev=x_includes ;; 449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 451 x_includes="$ac_optarg" ;; 452 453 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 455 ac_prev=x_libraries ;; 456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 458 x_libraries="$ac_optarg" ;; 459 460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 461 ;; 462 463 *) 464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 465 echo "configure: warning: $ac_option: invalid host type" 1>&2 466 fi 467 if test "x$nonopt" != xNONE; then 468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 469 fi 470 nonopt="$ac_option" 471 ;; 472 473 esac 474done 475 476if test -n "$ac_prev"; then 477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 478fi 479 480trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 481 482# File descriptor usage: 483# 0 standard input 484# 1 file creation 485# 2 errors and warnings 486# 3 some systems may open it to /dev/tty 487# 4 used on the Kubota Titan 488# 6 checking for... messages and results 489# 5 compiler messages saved in config.log 490if test "$silent" = yes; then 491 exec 6>/dev/null 492else 493 exec 6>&1 494fi 495exec 5>./config.log 496 497echo "\ 498This file contains any messages produced by compilers while 499running configure, to aid debugging if configure makes a mistake. 500" 1>&5 501 502# Strip out --no-create and --no-recursion so they do not pile up. 503# Also quote any args containing shell metacharacters. 504ac_configure_args= 505for ac_arg 506do 507 case "$ac_arg" in 508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 509 | --no-cr | --no-c) ;; 510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 513 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 514 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 515 esac 516done 517 518# NLS nuisances. 519# Only set these to C if already set. These must not be set unconditionally 520# because not all systems understand e.g. LANG=C (notably SCO). 521# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 522# Non-C LC_CTYPE values break the ctype check. 523if test "${LANG+set}" = set; then LANG=C; export LANG; fi 524if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 525if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 526if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 527 528# confdefs.h avoids OS command line length limits that DEFS can exceed. 529rm -rf conftest* confdefs.h 530# AIX cpp loses on an empty file, so make sure it contains at least a newline. 531echo > confdefs.h 532 533# A filename unique to this package, relative to the directory that 534# configure is in, which we can look for to find out if srcdir is correct. 535ac_unique_file=ncurses/base/lib_initscr.c 536 537# Find the source files, if location was not specified. 538if test -z "$srcdir"; then 539 ac_srcdir_defaulted=yes 540 # Try the directory containing this script, then its parent. 541 ac_prog=$0 542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 544 srcdir=$ac_confdir 545 if test ! -r $srcdir/$ac_unique_file; then 546 srcdir=.. 547 fi 548else 549 ac_srcdir_defaulted=no 550fi 551if test ! -r $srcdir/$ac_unique_file; then 552 if test "$ac_srcdir_defaulted" = yes; then 553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 554 else 555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 556 fi 557fi 558srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 559 560# Prefer explicitly selected file to automatically selected ones. 561if test -z "$CONFIG_SITE"; then 562 if test "x$prefix" != xNONE; then 563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 564 else 565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 566 fi 567fi 568for ac_site_file in $CONFIG_SITE; do 569 if test -r "$ac_site_file"; then 570 echo "loading site script $ac_site_file" 571 . "$ac_site_file" 572 fi 573done 574 575if test -r "$cache_file"; then 576 echo "loading cache $cache_file" 577 . $cache_file 578else 579 echo "creating cache $cache_file" 580 > $cache_file 581fi 582 583ac_ext=c 584# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 585ac_cpp='$CPP $CPPFLAGS' 586ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 587ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 588cross_compiling=$ac_cv_prog_cc_cross 589 590ac_exeext= 591ac_objext=o 592if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 595 ac_n= ac_c=' 596' ac_t=' ' 597 else 598 ac_n=-n ac_c= ac_t= 599 fi 600else 601 ac_n= ac_c='\c' ac_t= 602fi 603 604 605 606 607 608NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 609NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 610NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`" 611cf_cv_abi_version=${NCURSES_MAJOR} 612cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR} 613echo "$ac_t""Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version (`date`)" 1>&6 614 615 616 617 618 619 620 621 622ac_aux_dir= 623for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 624 if test -f $ac_dir/install-sh; then 625 ac_aux_dir=$ac_dir 626 ac_install_sh="$ac_aux_dir/install-sh -c" 627 break 628 elif test -f $ac_dir/install.sh; then 629 ac_aux_dir=$ac_dir 630 ac_install_sh="$ac_aux_dir/install.sh -c" 631 break 632 fi 633done 634if test -z "$ac_aux_dir"; then 635 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 636fi 637ac_config_guess=$ac_aux_dir/config.guess 638ac_config_sub=$ac_aux_dir/config.sub 639ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 640 641 642if test -f $srcdir/config.guess ; then 643 644# Do some error checking and defaulting for the host and target type. 645# The inputs are: 646# configure --host=HOST --target=TARGET --build=BUILD NONOPT 647# 648# The rules are: 649# 1. You are not allowed to specify --host, --target, and nonopt at the 650# same time. 651# 2. Host defaults to nonopt. 652# 3. If nonopt is not specified, then host defaults to the current host, 653# as determined by config.guess. 654# 4. Target and build default to nonopt. 655# 5. If nonopt is not specified, then target and build default to host. 656 657# The aliases save the names the user supplied, while $host etc. 658# will get canonicalized. 659case $host---$target---$nonopt in 660NONE---*---* | *---NONE---* | *---*---NONE) ;; 661*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 662esac 663 664 665# Make sure we can run config.sub. 666if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 667else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 668fi 669 670echo $ac_n "checking host system type""... $ac_c" 1>&6 671echo "configure:672: checking host system type" >&5 672 673host_alias=$host 674case "$host_alias" in 675NONE) 676 case $nonopt in 677 NONE) 678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 680 fi ;; 681 *) host_alias=$nonopt ;; 682 esac ;; 683esac 684 685host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 686host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 687host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 688host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 689echo "$ac_t""$host" 1>&6 690 691echo $ac_n "checking target system type""... $ac_c" 1>&6 692echo "configure:693: checking target system type" >&5 693 694target_alias=$target 695case "$target_alias" in 696NONE) 697 case $nonopt in 698 NONE) target_alias=$host_alias ;; 699 *) target_alias=$nonopt ;; 700 esac ;; 701esac 702 703target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 704target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 705target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 706target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 707echo "$ac_t""$target" 1>&6 708 709echo $ac_n "checking build system type""... $ac_c" 1>&6 710echo "configure:711: checking build system type" >&5 711 712build_alias=$build 713case "$build_alias" in 714NONE) 715 case $nonopt in 716 NONE) build_alias=$host_alias ;; 717 *) build_alias=$nonopt ;; 718 esac ;; 719esac 720 721build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 722build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 723build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 724build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 725echo "$ac_t""$build" 1>&6 726 727test "$host_alias" != "$target_alias" && 728 test "$program_prefix$program_suffix$program_transform_name" = \ 729 NONENONEs,x,x, && 730 program_prefix=${target_alias}- 731 732 system_name="$host_os" 733else 734 system_name="`(uname -s -r) 2>/dev/null`" 735 if test -z "$system_name" ; then 736 system_name="`(hostname) 2>/dev/null`" 737 fi 738fi 739test -n "$system_name" && cat >> confdefs.h <<EOF 740#define SYSTEM_NAME "$system_name" 741EOF 742 743if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then 744 echo $ac_n "(cached) $ac_c" 1>&6 745else 746 cf_cv_system_name="$system_name" 747fi 748 749 750test -z "$system_name" && system_name="$cf_cv_system_name" 751test -n "$cf_cv_system_name" && echo "$ac_t"""Configuring for $cf_cv_system_name"" 1>&6 752 753if test ".$system_name" != ".$cf_cv_system_name" ; then 754 echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6 755 { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; } 756fi 757 758 759# Check whether --with-system-type or --without-system-type was given. 760if test "${with_system_type+set}" = set; then 761 withval="$with_system_type" 762 echo "configure: warning: overriding system type to $withval" 1>&2 763 cf_cv_system_name=$withval 764fi 765 766 767# We need a configure script only when compiling as part of GNU C library. 768# Here we have to generate one of the files we need while compiling. 769# 770# The only problem is that users of the package might think they have to 771# run configure themself and find it irritating when nothing happens. 772# 773# So we try here to find out whether we are called from the glibc configure 774# or by a user. 775# 776 777# Check whether --enable-add-ons or --disable-add-ons was given. 778if test "${enable_add_ons+set}" = set; then 779 enableval="$enable_add_ons" 780 glibc_add_on=yes 781else 782 glibc_add_on= 783fi 784 785 786if test x"$glibc_add_on" = "xyes" ; then 787 rm -f $srcdir/Banner 788 # We are in glibc. 789 rm -f $srcdir/Makefile 790 cp $srcdir/Makefile.glibc $srcdir/Makefile 791 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \ 792 $srcdir/Makefile | sed -e \ 793 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner 794 exit 0 795fi 796 797### Save the given $CFLAGS to allow user-override. 798cf_user_CFLAGS="$CFLAGS" 799 800### Default install-location 801 802echo $ac_n "checking for prefix""... $ac_c" 1>&6 803echo "configure:804: checking for prefix" >&5 804if test "x$prefix" = "xNONE" ; then 805 case "$cf_cv_system_name" in 806 # non-vendor systems don't have a conflict 807 openbsd*|netbsd*|freebsd*|linux*) 808 prefix=/usr 809 ;; 810 *) prefix=$ac_default_prefix 811 ;; 812 esac 813fi 814echo "$ac_t""$prefix" 1>&6 815 816if test "x$prefix" = "xNONE" ; then 817echo $ac_n "checking for default include-directory""... $ac_c" 1>&6 818echo "configure:819: checking for default include-directory" >&5 819test -n "$verbose" && echo 1>&6 820for cf_symbol in \ 821 $includedir \ 822 $includedir/ncurses \ 823 $prefix/include \ 824 $prefix/include/ncurses \ 825 /usr/local/include \ 826 /usr/local/include/ncurses \ 827 /usr/include \ 828 /usr/include/ncurses 829do 830 cf_dir=`eval echo $cf_symbol` 831 if test -f $cf_dir/curses.h ; then 832 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then 833 includedir="$cf_symbol" 834 test -n "$verbose" && echo $ac_n " found " 1>&6 835 break 836 fi 837 fi 838 test -n "$verbose" && echo " tested $cf_dir" 1>&6 839done 840echo "$ac_t""$includedir" 1>&6 841fi 842 843 844### Checks for programs. 845# Extract the first word of "gcc", so it can be a program name with args. 846set dummy gcc; ac_word=$2 847echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 848echo "configure:849: checking for $ac_word" >&5 849if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 850 echo $ac_n "(cached) $ac_c" 1>&6 851else 852 if test -n "$CC"; then 853 ac_cv_prog_CC="$CC" # Let the user override the test. 854else 855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 856 ac_dummy="$PATH" 857 for ac_dir in $ac_dummy; do 858 test -z "$ac_dir" && ac_dir=. 859 if test -f $ac_dir/$ac_word; then 860 ac_cv_prog_CC="gcc" 861 break 862 fi 863 done 864 IFS="$ac_save_ifs" 865fi 866fi 867CC="$ac_cv_prog_CC" 868if test -n "$CC"; then 869 echo "$ac_t""$CC" 1>&6 870else 871 echo "$ac_t""no" 1>&6 872fi 873 874if test -z "$CC"; then 875 # Extract the first word of "cc", so it can be a program name with args. 876set dummy cc; ac_word=$2 877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 878echo "configure:879: checking for $ac_word" >&5 879if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 880 echo $ac_n "(cached) $ac_c" 1>&6 881else 882 if test -n "$CC"; then 883 ac_cv_prog_CC="$CC" # Let the user override the test. 884else 885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 886 ac_prog_rejected=no 887 ac_dummy="$PATH" 888 for ac_dir in $ac_dummy; do 889 test -z "$ac_dir" && ac_dir=. 890 if test -f $ac_dir/$ac_word; then 891 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 892 ac_prog_rejected=yes 893 continue 894 fi 895 ac_cv_prog_CC="cc" 896 break 897 fi 898 done 899 IFS="$ac_save_ifs" 900if test $ac_prog_rejected = yes; then 901 # We found a bogon in the path, so make sure we never use it. 902 set dummy $ac_cv_prog_CC 903 shift 904 if test $# -gt 0; then 905 # We chose a different compiler from the bogus one. 906 # However, it has the same basename, so the bogon will be chosen 907 # first if we set CC to just the basename; use the full file name. 908 shift 909 set dummy "$ac_dir/$ac_word" "$@" 910 shift 911 ac_cv_prog_CC="$@" 912 fi 913fi 914fi 915fi 916CC="$ac_cv_prog_CC" 917if test -n "$CC"; then 918 echo "$ac_t""$CC" 1>&6 919else 920 echo "$ac_t""no" 1>&6 921fi 922 923 if test -z "$CC"; then 924 case "`uname -s`" in 925 *win32* | *WIN32*) 926 # Extract the first word of "cl", so it can be a program name with args. 927set dummy cl; ac_word=$2 928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 929echo "configure:930: checking for $ac_word" >&5 930if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 931 echo $ac_n "(cached) $ac_c" 1>&6 932else 933 if test -n "$CC"; then 934 ac_cv_prog_CC="$CC" # Let the user override the test. 935else 936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 937 ac_dummy="$PATH" 938 for ac_dir in $ac_dummy; do 939 test -z "$ac_dir" && ac_dir=. 940 if test -f $ac_dir/$ac_word; then 941 ac_cv_prog_CC="cl" 942 break 943 fi 944 done 945 IFS="$ac_save_ifs" 946fi 947fi 948CC="$ac_cv_prog_CC" 949if test -n "$CC"; then 950 echo "$ac_t""$CC" 1>&6 951else 952 echo "$ac_t""no" 1>&6 953fi 954 ;; 955 esac 956 fi 957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 958fi 959 960echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 961echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 962 963ac_ext=c 964# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 965ac_cpp='$CPP $CPPFLAGS' 966ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 967ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 968cross_compiling=$ac_cv_prog_cc_cross 969 970cat > conftest.$ac_ext << EOF 971 972#line 973 "configure" 973#include "confdefs.h" 974 975main(){return(0);} 976EOF 977if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 978 ac_cv_prog_cc_works=yes 979 # If we can't run a trivial program, we are probably using a cross compiler. 980 if (./conftest; exit) 2>/dev/null; then 981 ac_cv_prog_cc_cross=no 982 else 983 ac_cv_prog_cc_cross=yes 984 fi 985else 986 echo "configure: failed program was:" >&5 987 cat conftest.$ac_ext >&5 988 ac_cv_prog_cc_works=no 989fi 990rm -fr conftest* 991ac_ext=c 992# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 993ac_cpp='$CPP $CPPFLAGS' 994ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 995ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 996cross_compiling=$ac_cv_prog_cc_cross 997 998echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 999if test $ac_cv_prog_cc_works = no; then 1000 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1001fi 1002echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1003echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1004echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1005cross_compiling=$ac_cv_prog_cc_cross 1006 1007echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1008echo "configure:1009: checking whether we are using GNU C" >&5 1009if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1010 echo $ac_n "(cached) $ac_c" 1>&6 1011else 1012 cat > conftest.c <<EOF 1013#ifdef __GNUC__ 1014 yes; 1015#endif 1016EOF 1017if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1018 ac_cv_prog_gcc=yes 1019else 1020 ac_cv_prog_gcc=no 1021fi 1022fi 1023 1024echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1025 1026if test $ac_cv_prog_gcc = yes; then 1027 GCC=yes 1028else 1029 GCC= 1030fi 1031 1032ac_test_CFLAGS="${CFLAGS+set}" 1033ac_save_CFLAGS="$CFLAGS" 1034CFLAGS= 1035echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1036echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5 1037if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1038 echo $ac_n "(cached) $ac_c" 1>&6 1039else 1040 echo 'void f(){}' > conftest.c 1041if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1042 ac_cv_prog_cc_g=yes 1043else 1044 ac_cv_prog_cc_g=no 1045fi 1046rm -f conftest* 1047 1048fi 1049 1050echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1051if test "$ac_test_CFLAGS" = set; then 1052 CFLAGS="$ac_save_CFLAGS" 1053elif test $ac_cv_prog_cc_g = yes; then 1054 if test "$GCC" = yes; then 1055 CFLAGS="-g -O2" 1056 else 1057 CFLAGS="-g" 1058 fi 1059else 1060 if test "$GCC" = yes; then 1061 CFLAGS="-O2" 1062 else 1063 CFLAGS= 1064 fi 1065fi 1066 1067if test "$GCC" = yes ; then 1068 echo $ac_n "checking version of gcc""... $ac_c" 1>&6 1069echo "configure:1070: checking version of gcc" >&5 1070 eval "$CC --version" 1071fi 1072if test "$host" != $build; then 1073 for ac_prog in $CC gcc cc 1074do 1075# Extract the first word of "$ac_prog", so it can be a program name with args. 1076set dummy $ac_prog; ac_word=$2 1077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1078echo "configure:1079: checking for $ac_word" >&5 1079if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then 1080 echo $ac_n "(cached) $ac_c" 1>&6 1081else 1082 if test -n "$BUILD_CC"; then 1083 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 1084else 1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1086 ac_dummy="$PATH" 1087 for ac_dir in $ac_dummy; do 1088 test -z "$ac_dir" && ac_dir=. 1089 if test -f $ac_dir/$ac_word; then 1090 ac_cv_prog_BUILD_CC="$ac_prog" 1091 break 1092 fi 1093 done 1094 IFS="$ac_save_ifs" 1095fi 1096fi 1097BUILD_CC="$ac_cv_prog_BUILD_CC" 1098if test -n "$BUILD_CC"; then 1099 echo "$ac_t""$BUILD_CC" 1>&6 1100else 1101 echo "$ac_t""no" 1>&6 1102fi 1103 1104test -n "$BUILD_CC" && break 1105done 1106 1107else 1108 BUILD_CC="$CC" 1109fi 1110 1111echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1112echo "configure:1113: checking how to run the C preprocessor" >&5 1113# On Suns, sometimes $CPP names a directory. 1114if test -n "$CPP" && test -d "$CPP"; then 1115 CPP= 1116fi 1117if test -z "$CPP"; then 1118if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1119 echo $ac_n "(cached) $ac_c" 1>&6 1120else 1121 # This must be in double quotes, not single quotes, because CPP may get 1122 # substituted into the Makefile and "${CC-cc}" will confuse make. 1123 CPP="${CC-cc} -E" 1124 # On the NeXT, cc -E runs the code through the compiler's parser, 1125 # not just through cpp. 1126 cat > conftest.$ac_ext <<EOF 1127#line 1128 "configure" 1128#include "confdefs.h" 1129#include <assert.h> 1130Syntax Error 1131EOF 1132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1133{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1135if test -z "$ac_err"; then 1136 : 1137else 1138 echo "$ac_err" >&5 1139 echo "configure: failed program was:" >&5 1140 cat conftest.$ac_ext >&5 1141 rm -rf conftest* 1142 CPP="${CC-cc} -E -traditional-cpp" 1143 cat > conftest.$ac_ext <<EOF 1144#line 1145 "configure" 1145#include "confdefs.h" 1146#include <assert.h> 1147Syntax Error 1148EOF 1149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1150{ (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1152if test -z "$ac_err"; then 1153 : 1154else 1155 echo "$ac_err" >&5 1156 echo "configure: failed program was:" >&5 1157 cat conftest.$ac_ext >&5 1158 rm -rf conftest* 1159 CPP="${CC-cc} -nologo -E" 1160 cat > conftest.$ac_ext <<EOF 1161#line 1162 "configure" 1162#include "confdefs.h" 1163#include <assert.h> 1164Syntax Error 1165EOF 1166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1167{ (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1169if test -z "$ac_err"; then 1170 : 1171else 1172 echo "$ac_err" >&5 1173 echo "configure: failed program was:" >&5 1174 cat conftest.$ac_ext >&5 1175 rm -rf conftest* 1176 CPP=/lib/cpp 1177fi 1178rm -f conftest* 1179fi 1180rm -f conftest* 1181fi 1182rm -f conftest* 1183 ac_cv_prog_CPP="$CPP" 1184fi 1185 CPP="$ac_cv_prog_CPP" 1186else 1187 ac_cv_prog_CPP="$CPP" 1188fi 1189echo "$ac_t""$CPP" 1>&6 1190 1191if test $ac_cv_prog_gcc = yes; then 1192 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1193echo "configure:1194: checking whether ${CC-cc} needs -traditional" >&5 1194if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1195 echo $ac_n "(cached) $ac_c" 1>&6 1196else 1197 ac_pattern="Autoconf.*'x'" 1198 cat > conftest.$ac_ext <<EOF 1199#line 1200 "configure" 1200#include "confdefs.h" 1201#include <sgtty.h> 1202Autoconf TIOCGETP 1203EOF 1204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1205 egrep "$ac_pattern" >/dev/null 2>&1; then 1206 rm -rf conftest* 1207 ac_cv_prog_gcc_traditional=yes 1208else 1209 rm -rf conftest* 1210 ac_cv_prog_gcc_traditional=no 1211fi 1212rm -f conftest* 1213 1214 1215 if test $ac_cv_prog_gcc_traditional = no; then 1216 cat > conftest.$ac_ext <<EOF 1217#line 1218 "configure" 1218#include "confdefs.h" 1219#include <termio.h> 1220Autoconf TCGETA 1221EOF 1222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1223 egrep "$ac_pattern" >/dev/null 2>&1; then 1224 rm -rf conftest* 1225 ac_cv_prog_gcc_traditional=yes 1226fi 1227rm -f conftest* 1228 1229 fi 1230fi 1231 1232echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1233 if test $ac_cv_prog_gcc_traditional = yes; then 1234 CC="$CC -traditional" 1235 fi 1236fi 1237 1238echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1239echo "configure:1240: checking for POSIXized ISC" >&5 1240if test -d /etc/conf/kconfig.d && 1241 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1242then 1243 echo "$ac_t""yes" 1>&6 1244 ISC=yes # If later tests want to check for ISC. 1245 cat >> confdefs.h <<\EOF 1246#define _POSIX_SOURCE 1 1247EOF 1248 1249 if test "$GCC" = yes; then 1250 CC="$CC -posix" 1251 else 1252 CC="$CC -Xp" 1253 fi 1254else 1255 echo "$ac_t""no" 1>&6 1256 ISC= 1257fi 1258 1259 1260echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 1261echo "configure:1262: checking for ${CC-cc} option to accept ANSI C" >&5 1262if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then 1263 echo $ac_n "(cached) $ac_c" 1>&6 1264else 1265 1266cf_cv_ansi_cc=no 1267cf_save_CFLAGS="$CFLAGS" 1268# Don't try gcc -ansi; that turns off useful extensions and 1269# breaks some systems' header files. 1270# AIX -qlanglvl=ansi 1271# Ultrix and OSF/1 -std1 1272# HP-UX -Aa -D_HPUX_SOURCE 1273# SVR4 -Xc 1274# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes) 1275for cf_arg in "-DCC_HAS_PROTOS" \ 1276 "" \ 1277 -qlanglvl=ansi \ 1278 -std1 \ 1279 -Ae \ 1280 "-Aa -D_HPUX_SOURCE" \ 1281 -Xc 1282do 1283 CFLAGS="$cf_save_CFLAGS $cf_arg" 1284 cat > conftest.$ac_ext <<EOF 1285#line 1286 "configure" 1286#include "confdefs.h" 1287 1288#ifndef CC_HAS_PROTOS 1289#if !defined(__STDC__) || (__STDC__ != 1) 1290choke me 1291#endif 1292#endif 1293 1294int main() { 1295 1296 int test (int i, double x); 1297 struct s1 {int (*f) (int a);}; 1298 struct s2 {int (*f) (double a);}; 1299; return 0; } 1300EOF 1301if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1302 rm -rf conftest* 1303 cf_cv_ansi_cc="$cf_arg"; break 1304else 1305 echo "configure: failed program was:" >&5 1306 cat conftest.$ac_ext >&5 1307fi 1308rm -f conftest* 1309done 1310CFLAGS="$cf_save_CFLAGS" 1311 1312fi 1313 1314echo "$ac_t""$cf_cv_ansi_cc" 1>&6 1315 1316if test "$cf_cv_ansi_cc" != "no"; then 1317if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then 1318 CFLAGS="$CFLAGS $cf_cv_ansi_cc" 1319else 1320 cat >> confdefs.h <<\EOF 1321#define CC_HAS_PROTOS 1 1322EOF 1323 1324fi 1325fi 1326 1327 1328if test "$cf_cv_ansi_cc" = "no"; then 1329 { echo "configure: error: Your compiler does not appear to recognize prototypes. 1330You have the following choices: 1331 a. adjust your compiler options 1332 b. get an up-to-date compiler 1333 c. use a wrapper such as unproto" 1>&2; exit 1; } 1334fi 1335 1336 1337 1338PROG_EXT= 1339case $cf_cv_system_name in 1340os2*) 1341 # We make sure -Zexe is not used -- it would interfere with @PROG_EXT@ 1342 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" 1343 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" 1344 LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"` 1345 PROG_EXT=".exe" 1346 ;; 1347cygwin*) 1348 PROG_EXT=".exe" 1349 ;; 1350esac 1351 1352 1353 1354case "$cf_cv_system_name" in 1355freebsd*) #(vi 1356 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R" 1357 ;; 1358*) LDPATH=$PATH:/sbin:/usr/sbin 1359 # Extract the first word of "ldconfig", so it can be a program name with args. 1360set dummy ldconfig; ac_word=$2 1361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1362echo "configure:1363: checking for $ac_word" >&5 1363if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then 1364 echo $ac_n "(cached) $ac_c" 1>&6 1365else 1366 case "$LDCONFIG" in 1367 /*) 1368 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 1369 ;; 1370 ?:/*) 1371 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. 1372 ;; 1373 *) 1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1375 ac_dummy="$LDPATH" 1376 for ac_dir in $ac_dummy; do 1377 test -z "$ac_dir" && ac_dir=. 1378 if test -f $ac_dir/$ac_word; then 1379 ac_cv_path_LDCONFIG="$ac_dir/$ac_word" 1380 break 1381 fi 1382 done 1383 IFS="$ac_save_ifs" 1384 ;; 1385esac 1386fi 1387LDCONFIG="$ac_cv_path_LDCONFIG" 1388if test -n "$LDCONFIG"; then 1389 echo "$ac_t""$LDCONFIG" 1>&6 1390else 1391 echo "$ac_t""no" 1>&6 1392fi 1393 1394 ;; 1395esac 1396 1397 1398echo $ac_n "checking if you want to ensure bool is consistent with C++""... $ac_c" 1>&6 1399echo "configure:1400: checking if you want to ensure bool is consistent with C++" >&5 1400 1401# Check whether --with-cxx or --without-cxx was given. 1402if test "${with_cxx+set}" = set; then 1403 withval="$with_cxx" 1404 cf_with_cxx=$withval 1405else 1406 cf_with_cxx=yes 1407fi 1408 1409echo "$ac_t""$cf_with_cxx" 1>&6 1410if test "X$cf_with_cxx" = Xno ; then 1411 CXX="" 1412 GXX="" 1413else 1414 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1415do 1416# Extract the first word of "$ac_prog", so it can be a program name with args. 1417set dummy $ac_prog; ac_word=$2 1418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1419echo "configure:1420: checking for $ac_word" >&5 1420if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1421 echo $ac_n "(cached) $ac_c" 1>&6 1422else 1423 if test -n "$CXX"; then 1424 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1425else 1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1427 ac_dummy="$PATH" 1428 for ac_dir in $ac_dummy; do 1429 test -z "$ac_dir" && ac_dir=. 1430 if test -f $ac_dir/$ac_word; then 1431 ac_cv_prog_CXX="$ac_prog" 1432 break 1433 fi 1434 done 1435 IFS="$ac_save_ifs" 1436fi 1437fi 1438CXX="$ac_cv_prog_CXX" 1439if test -n "$CXX"; then 1440 echo "$ac_t""$CXX" 1>&6 1441else 1442 echo "$ac_t""no" 1>&6 1443fi 1444 1445test -n "$CXX" && break 1446done 1447test -n "$CXX" || CXX="gcc" 1448 1449 1450echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1451echo "configure:1452: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1452 1453ac_ext=C 1454# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1455ac_cpp='$CXXCPP $CPPFLAGS' 1456ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1457ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1458cross_compiling=$ac_cv_prog_cxx_cross 1459 1460cat > conftest.$ac_ext << EOF 1461 1462#line 1463 "configure" 1463#include "confdefs.h" 1464 1465int main(){return(0);} 1466EOF 1467if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1468 ac_cv_prog_cxx_works=yes 1469 # If we can't run a trivial program, we are probably using a cross compiler. 1470 if (./conftest; exit) 2>/dev/null; then 1471 ac_cv_prog_cxx_cross=no 1472 else 1473 ac_cv_prog_cxx_cross=yes 1474 fi 1475else 1476 echo "configure: failed program was:" >&5 1477 cat conftest.$ac_ext >&5 1478 ac_cv_prog_cxx_works=no 1479fi 1480rm -fr conftest* 1481ac_ext=c 1482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1483ac_cpp='$CPP $CPPFLAGS' 1484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1486cross_compiling=$ac_cv_prog_cc_cross 1487 1488echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1489if test $ac_cv_prog_cxx_works = no; then 1490 echo "$ac_t""You don't have any C++ compiler, too bad" 1>&6; cf_with_cxx=no; CXX=""; GXX=""; 1491fi 1492echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1493echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1494echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1495cross_compiling=$ac_cv_prog_cxx_cross 1496 1497echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1498echo "configure:1499: checking whether we are using GNU C++" >&5 1499if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1500 echo $ac_n "(cached) $ac_c" 1>&6 1501else 1502 cat > conftest.C <<EOF 1503#ifdef __GNUC__ 1504 yes; 1505#endif 1506EOF 1507if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1508 ac_cv_prog_gxx=yes 1509else 1510 ac_cv_prog_gxx=no 1511fi 1512fi 1513 1514echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1515 1516if test $ac_cv_prog_gxx = yes; then 1517 GXX=yes 1518else 1519 GXX= 1520fi 1521 1522ac_test_CXXFLAGS="${CXXFLAGS+set}" 1523ac_save_CXXFLAGS="$CXXFLAGS" 1524CXXFLAGS= 1525echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1526echo "configure:1527: checking whether ${CXX-g++} accepts -g" >&5 1527if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1528 echo $ac_n "(cached) $ac_c" 1>&6 1529else 1530 echo 'void f(){}' > conftest.cc 1531if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1532 ac_cv_prog_cxx_g=yes 1533else 1534 ac_cv_prog_cxx_g=no 1535fi 1536rm -f conftest* 1537 1538fi 1539 1540echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1541if test "$ac_test_CXXFLAGS" = set; then 1542 CXXFLAGS="$ac_save_CXXFLAGS" 1543elif test $ac_cv_prog_cxx_g = yes; then 1544 if test "$GXX" = yes; then 1545 CXXFLAGS="-g -O2" 1546 else 1547 CXXFLAGS="-g" 1548 fi 1549else 1550 if test "$GXX" = yes; then 1551 CXXFLAGS="-O2" 1552 else 1553 CXXFLAGS= 1554 fi 1555fi 1556 1557 fi 1558 1559if test "$GXX" = yes; then 1560 case "`${CXX-g++} --version`" in 1561 1*|2.[0-6]*) 1562 GXX=""; CXX=""; ac_cv_prog_gxx=no 1563 cf_cxx_library=no 1564 echo No: templates do not work 1565 ;; 1566 esac 1567fi 1568 1569echo $ac_n "checking if you want to build C++ binding and demo""... $ac_c" 1>&6 1570echo "configure:1571: checking if you want to build C++ binding and demo" >&5 1571 1572# Check whether --with-cxx-binding or --without-cxx-binding was given. 1573if test "${with_cxx_binding+set}" = set; then 1574 withval="$with_cxx_binding" 1575 cf_with_cxx_binding=$withval 1576else 1577 cf_with_cxx_binding=$cf_with_cxx 1578fi 1579 1580echo "$ac_t""$cf_with_cxx_binding" 1>&6 1581 1582echo $ac_n "checking if you want to build with Ada95""... $ac_c" 1>&6 1583echo "configure:1584: checking if you want to build with Ada95" >&5 1584 1585# Check whether --with-ada or --without-ada was given. 1586if test "${with_ada+set}" = set; then 1587 withval="$with_ada" 1588 cf_with_ada=$withval 1589else 1590 cf_with_ada=yes 1591fi 1592 1593echo "$ac_t""$cf_with_ada" 1>&6 1594 1595echo $ac_n "checking if you want to build programs such as tic""... $ac_c" 1>&6 1596echo "configure:1597: checking if you want to build programs such as tic" >&5 1597 1598# Check whether --with-progs or --without-progs was given. 1599if test "${with_progs+set}" = set; then 1600 withval="$with_progs" 1601 cf_with_progs=$withval 1602else 1603 cf_with_progs=yes 1604fi 1605 1606echo "$ac_t""$cf_with_progs" 1>&6 1607 1608modules_to_build="ncurses" 1609if test "X$cf_with_progs" != Xno ; then 1610modules_to_build="$modules_to_build progs tack" 1611fi 1612modules_to_build="$modules_to_build panel menu form" 1613 1614if test "$program_transform_name" = s,x,x,; then 1615 program_transform_name= 1616else 1617 # Double any \ or $. echo might interpret backslashes. 1618 cat <<\EOF_SED > conftestsed 1619s,\\,\\\\,g; s,\$,$$,g 1620EOF_SED 1621 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 1622 rm -f conftestsed 1623fi 1624test "$program_prefix" != NONE && 1625 program_transform_name="s,^,${program_prefix},; $program_transform_name" 1626# Use a double $ so make ignores it. 1627test "$program_suffix" != NONE && 1628 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 1629 1630# sed with no file args requires a program. 1631test "$program_transform_name" = "" && program_transform_name="s,x,x," 1632 1633for ac_prog in mawk gawk nawk awk 1634do 1635# Extract the first word of "$ac_prog", so it can be a program name with args. 1636set dummy $ac_prog; ac_word=$2 1637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1638echo "configure:1639: checking for $ac_word" >&5 1639if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1640 echo $ac_n "(cached) $ac_c" 1>&6 1641else 1642 if test -n "$AWK"; then 1643 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1644else 1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1646 ac_dummy="$PATH" 1647 for ac_dir in $ac_dummy; do 1648 test -z "$ac_dir" && ac_dir=. 1649 if test -f $ac_dir/$ac_word; then 1650 ac_cv_prog_AWK="$ac_prog" 1651 break 1652 fi 1653 done 1654 IFS="$ac_save_ifs" 1655fi 1656fi 1657AWK="$ac_cv_prog_AWK" 1658if test -n "$AWK"; then 1659 echo "$ac_t""$AWK" 1>&6 1660else 1661 echo "$ac_t""no" 1>&6 1662fi 1663 1664test -n "$AWK" && break 1665done 1666 1667echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1668echo "configure:1669: checking whether ${MAKE-make} sets \${MAKE}" >&5 1669set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1670if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1671 echo $ac_n "(cached) $ac_c" 1>&6 1672else 1673 cat > conftestmake <<\EOF 1674all: 1675 @echo 'ac_maketemp="${MAKE}"' 1676EOF 1677# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1678eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1679if test -n "$ac_maketemp"; then 1680 eval ac_cv_prog_make_${ac_make}_set=yes 1681else 1682 eval ac_cv_prog_make_${ac_make}_set=no 1683fi 1684rm -f conftestmake 1685fi 1686if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1687 echo "$ac_t""yes" 1>&6 1688 SET_MAKE= 1689else 1690 echo "$ac_t""no" 1>&6 1691 SET_MAKE="MAKE=${MAKE-make}" 1692fi 1693 1694# Find a good install program. We prefer a C program (faster), 1695# so one script is as good as another. But avoid the broken or 1696# incompatible versions: 1697# SysV /etc/install, /usr/sbin/install 1698# SunOS /usr/etc/install 1699# IRIX /sbin/install 1700# AIX /bin/install 1701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1702# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1704# ./install, which can be erroneously created by make from ./install.sh. 1705echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1706echo "configure:1707: checking for a BSD compatible install" >&5 1707if test -z "$INSTALL"; then 1708if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1709 echo $ac_n "(cached) $ac_c" 1>&6 1710else 1711 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1712 for ac_dir in $PATH; do 1713 # Account for people who put trailing slashes in PATH elements. 1714 case "$ac_dir/" in 1715 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1716 *) 1717 # OSF1 and SCO ODT 3.0 have their own names for install. 1718 # Don't use installbsd from OSF since it installs stuff as root 1719 # by default. 1720 for ac_prog in ginstall scoinst install; do 1721 if test -f $ac_dir/$ac_prog; then 1722 if test $ac_prog = install && 1723 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1724 # AIX install. It has an incompatible calling convention. 1725 : 1726 else 1727 ac_cv_path_install="$ac_dir/$ac_prog -c" 1728 break 2 1729 fi 1730 fi 1731 done 1732 ;; 1733 esac 1734 done 1735 IFS="$ac_save_IFS" 1736 1737fi 1738 if test "${ac_cv_path_install+set}" = set; then 1739 INSTALL="$ac_cv_path_install" 1740 else 1741 # As a last resort, use the slow shell script. We don't cache a 1742 # path for INSTALL within a source directory, because that will 1743 # break other packages using the cache if that directory is 1744 # removed, or if the path is relative. 1745 INSTALL="$ac_install_sh" 1746 fi 1747fi 1748echo "$ac_t""$INSTALL" 1>&6 1749 1750# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1751# It thinks the first close brace ends the variable substitution. 1752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1753 1754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1755 1756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1757 1758case $INSTALL in 1759/*) 1760 ;; 1761*) 1762 cf_dir=`echo $INSTALL|sed -e 's%/[^/]*$%%'` 1763 test -z "$cf_dir" && cf_dir=. 1764 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'` 1765 ;; 1766esac 1767 1768echo $ac_n "checking for long file names""... $ac_c" 1>&6 1769echo "configure:1770: checking for long file names" >&5 1770if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 1771 echo $ac_n "(cached) $ac_c" 1>&6 1772else 1773 ac_cv_sys_long_file_names=yes 1774# Test for long file names in all the places we know might matter: 1775# . the current directory, where building will happen 1776# $prefix/lib where we will be installing things 1777# $exec_prefix/lib likewise 1778# eval it to expand exec_prefix. 1779# $TMPDIR if set, where it might want to write temporary files 1780# if $TMPDIR is not set: 1781# /tmp where it might want to write temporary files 1782# /var/tmp likewise 1783# /usr/tmp likewise 1784if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 1785 ac_tmpdirs="$TMPDIR" 1786else 1787 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 1788fi 1789for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 1790 test -d $ac_dir || continue 1791 test -w $ac_dir || continue # It is less confusing to not echo anything here. 1792 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null 1793 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null 1794 val=`cat $ac_dir/conftest9012345 2>/dev/null` 1795 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then 1796 ac_cv_sys_long_file_names=no 1797 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 1798 break 1799 fi 1800 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 1801done 1802fi 1803 1804echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 1805if test $ac_cv_sys_long_file_names = yes; then 1806 cat >> confdefs.h <<\EOF 1807#define HAVE_LONG_FILE_NAMES 1 1808EOF 1809 1810fi 1811 1812 1813echo $ac_n "checking if filesystem supports mixed-case filenames""... $ac_c" 1>&6 1814echo "configure:1815: checking if filesystem supports mixed-case filenames" >&5 1815if eval "test \"`echo '$''{'cf_cv_mixedcase'+set}'`\" = set"; then 1816 echo $ac_n "(cached) $ac_c" 1>&6 1817else 1818 1819 rm -f conftest CONFTEST 1820 echo test >conftest 1821 if test -f CONFTEST ; then 1822 cf_cv_mixedcase=no 1823 else 1824 cf_cv_mixedcase=yes 1825 fi 1826 rm -f conftest CONFTEST 1827 1828fi 1829 1830echo "$ac_t""$cf_cv_mixedcase" 1>&6 1831test "$cf_cv_mixedcase" = yes && cat >> confdefs.h <<\EOF 1832#define MIXEDCASE_FILENAMES 1 1833EOF 1834 1835 1836echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1837echo "configure:1838: checking whether ln -s works" >&5 1838if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1839 echo $ac_n "(cached) $ac_c" 1>&6 1840else 1841 rm -f conftestdata 1842if ln -s X conftestdata 2>/dev/null 1843then 1844 rm -f conftestdata 1845 ac_cv_prog_LN_S="ln -s" 1846else 1847 ac_cv_prog_LN_S=ln 1848fi 1849fi 1850LN_S="$ac_cv_prog_LN_S" 1851if test "$ac_cv_prog_LN_S" = "ln -s"; then 1852 echo "$ac_t""yes" 1>&6 1853else 1854 echo "$ac_t""no" 1>&6 1855fi 1856 1857# Extract the first word of "ranlib", so it can be a program name with args. 1858set dummy ranlib; ac_word=$2 1859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1860echo "configure:1861: checking for $ac_word" >&5 1861if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1862 echo $ac_n "(cached) $ac_c" 1>&6 1863else 1864 if test -n "$RANLIB"; then 1865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1866else 1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1868 ac_dummy="$PATH" 1869 for ac_dir in $ac_dummy; do 1870 test -z "$ac_dir" && ac_dir=. 1871 if test -f $ac_dir/$ac_word; then 1872 ac_cv_prog_RANLIB="ranlib" 1873 break 1874 fi 1875 done 1876 IFS="$ac_save_ifs" 1877 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1878fi 1879fi 1880RANLIB="$ac_cv_prog_RANLIB" 1881if test -n "$RANLIB"; then 1882 echo "$ac_t""$RANLIB" 1>&6 1883else 1884 echo "$ac_t""no" 1>&6 1885fi 1886 1887 1888 1889# Extract the first word of "ctags", so it can be a program name with args. 1890set dummy ctags; ac_word=$2 1891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1892echo "configure:1893: checking for $ac_word" >&5 1893if eval "test \"`echo '$''{'ac_cv_prog_MAKE_LOWER_TAGS'+set}'`\" = set"; then 1894 echo $ac_n "(cached) $ac_c" 1>&6 1895else 1896 if test -n "$MAKE_LOWER_TAGS"; then 1897 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 1898else 1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1900 ac_dummy="$PATH" 1901 for ac_dir in $ac_dummy; do 1902 test -z "$ac_dir" && ac_dir=. 1903 if test -f $ac_dir/$ac_word; then 1904 ac_cv_prog_MAKE_LOWER_TAGS="yes" 1905 break 1906 fi 1907 done 1908 IFS="$ac_save_ifs" 1909 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 1910fi 1911fi 1912MAKE_LOWER_TAGS="$ac_cv_prog_MAKE_LOWER_TAGS" 1913if test -n "$MAKE_LOWER_TAGS"; then 1914 echo "$ac_t""$MAKE_LOWER_TAGS" 1>&6 1915else 1916 echo "$ac_t""no" 1>&6 1917fi 1918 1919 1920if test "$cf_cv_mixedcase" = yes ; then 1921 # Extract the first word of "etags", so it can be a program name with args. 1922set dummy etags; ac_word=$2 1923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1924echo "configure:1925: checking for $ac_word" >&5 1925if eval "test \"`echo '$''{'ac_cv_prog_MAKE_UPPER_TAGS'+set}'`\" = set"; then 1926 echo $ac_n "(cached) $ac_c" 1>&6 1927else 1928 if test -n "$MAKE_UPPER_TAGS"; then 1929 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 1930else 1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1932 ac_dummy="$PATH" 1933 for ac_dir in $ac_dummy; do 1934 test -z "$ac_dir" && ac_dir=. 1935 if test -f $ac_dir/$ac_word; then 1936 ac_cv_prog_MAKE_UPPER_TAGS="yes" 1937 break 1938 fi 1939 done 1940 IFS="$ac_save_ifs" 1941 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 1942fi 1943fi 1944MAKE_UPPER_TAGS="$ac_cv_prog_MAKE_UPPER_TAGS" 1945if test -n "$MAKE_UPPER_TAGS"; then 1946 echo "$ac_t""$MAKE_UPPER_TAGS" 1>&6 1947else 1948 echo "$ac_t""no" 1>&6 1949fi 1950 1951else 1952 MAKE_UPPER_TAGS=no 1953fi 1954 1955if test "$MAKE_UPPER_TAGS" = yes ; then 1956 MAKE_UPPER_TAGS= 1957else 1958 MAKE_UPPER_TAGS="#" 1959fi 1960 1961 1962if test "$MAKE_LOWER_TAGS" = yes ; then 1963 MAKE_LOWER_TAGS= 1964else 1965 MAKE_LOWER_TAGS="#" 1966fi 1967 1968 1969for ac_prog in tdlint lint alint 1970do 1971# Extract the first word of "$ac_prog", so it can be a program name with args. 1972set dummy $ac_prog; ac_word=$2 1973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1974echo "configure:1975: checking for $ac_word" >&5 1975if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then 1976 echo $ac_n "(cached) $ac_c" 1>&6 1977else 1978 if test -n "$LINT"; then 1979 ac_cv_prog_LINT="$LINT" # Let the user override the test. 1980else 1981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1982 ac_dummy="$PATH" 1983 for ac_dir in $ac_dummy; do 1984 test -z "$ac_dir" && ac_dir=. 1985 if test -f $ac_dir/$ac_word; then 1986 ac_cv_prog_LINT="$ac_prog" 1987 break 1988 fi 1989 done 1990 IFS="$ac_save_ifs" 1991fi 1992fi 1993LINT="$ac_cv_prog_LINT" 1994if test -n "$LINT"; then 1995 echo "$ac_t""$LINT" 1>&6 1996else 1997 echo "$ac_t""no" 1>&6 1998fi 1999 2000test -n "$LINT" && break 2001done 2002 2003for ac_prog in man man_db 2004do 2005# Extract the first word of "$ac_prog", so it can be a program name with args. 2006set dummy $ac_prog; ac_word=$2 2007echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2008echo "configure:2009: checking for $ac_word" >&5 2009if eval "test \"`echo '$''{'ac_cv_prog_MAN'+set}'`\" = set"; then 2010 echo $ac_n "(cached) $ac_c" 1>&6 2011else 2012 if test -n "$MAN"; then 2013 ac_cv_prog_MAN="$MAN" # Let the user override the test. 2014else 2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2016 ac_dummy="$PATH" 2017 for ac_dir in $ac_dummy; do 2018 test -z "$ac_dir" && ac_dir=. 2019 if test -f $ac_dir/$ac_word; then 2020 ac_cv_prog_MAN="$ac_prog" 2021 break 2022 fi 2023 done 2024 IFS="$ac_save_ifs" 2025fi 2026fi 2027MAN="$ac_cv_prog_MAN" 2028if test -n "$MAN"; then 2029 echo "$ac_t""$MAN" 1>&6 2030else 2031 echo "$ac_t""no" 1>&6 2032fi 2033 2034test -n "$MAN" && break 2035done 2036 2037 2038 2039if eval "test \"`echo '$''{'cf_cv_subst_LD'+set}'`\" = set"; then 2040 echo $ac_n "(cached) $ac_c" 1>&6 2041else 2042 2043echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6 2044echo "configure:2045: checking for loader (symbol LD)" >&5 2045test -z "$LD" && LD=ld 2046echo "$ac_t""$LD" 1>&6 2047 2048cf_cv_subst_LD=$LD 2049fi 2050 2051LD=${cf_cv_subst_LD} 2052 2053if eval "test \"`echo '$''{'cf_cv_subst_AR'+set}'`\" = set"; then 2054 echo $ac_n "(cached) $ac_c" 1>&6 2055else 2056 2057echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6 2058echo "configure:2059: checking for archiver (symbol AR)" >&5 2059test -z "$AR" && AR=ar 2060echo "$ac_t""$AR" 1>&6 2061 2062cf_cv_subst_AR=$AR 2063fi 2064 2065AR=${cf_cv_subst_AR} 2066 2067if eval "test \"`echo '$''{'cf_cv_subst_AR_OPTS'+set}'`\" = set"; then 2068 echo $ac_n "(cached) $ac_c" 1>&6 2069else 2070 2071echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6 2072echo "configure:2073: checking for archiver options (symbol AR_OPTS)" >&5 2073test -z "$AR_OPTS" && AR_OPTS=rv 2074echo "$ac_t""$AR_OPTS" 1>&6 2075 2076cf_cv_subst_AR_OPTS=$AR_OPTS 2077fi 2078 2079AR_OPTS=${cf_cv_subst_AR_OPTS} 2080 2081 2082 2083echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6 2084echo "configure:2085: checking for makeflags variable" >&5 2085if eval "test \"`echo '$''{'cf_cv_makeflags'+set}'`\" = set"; then 2086 echo $ac_n "(cached) $ac_c" 1>&6 2087else 2088 2089 cf_cv_makeflags='' 2090 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)' 2091 do 2092 cat >cf_makeflags.tmp <<CF_EOF 2093all : 2094 @ echo '.$cf_option' 2095CF_EOF 2096 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null` 2097 case "$cf_result" in 2098 .*k) 2099 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 2100 case "$cf_result" in 2101 .*CC=*) cf_cv_makeflags= 2102 ;; 2103 *) cf_cv_makeflags=$cf_option 2104 ;; 2105 esac 2106 break 2107 ;; 2108 *) echo no match "$cf_result" 2109 ;; 2110 esac 2111 done 2112 rm -f cf_makeflags.tmp 2113fi 2114 2115echo "$ac_t""$cf_cv_makeflags" 1>&6 2116 2117 2118 2119echo $ac_n "checking if you have specified an install-prefix""... $ac_c" 1>&6 2120echo "configure:2121: checking if you have specified an install-prefix" >&5 2121 2122# Check whether --with-install-prefix or --without-install-prefix was given. 2123if test "${with_install_prefix+set}" = set; then 2124 withval="$with_install_prefix" 2125 case "$withval" in #(vi 2126 yes|no) #(vi 2127 ;; 2128 *) DESTDIR="$withval" 2129 ;; 2130 esac 2131fi 2132 2133echo "$ac_t""$DESTDIR" 1>&6 2134 2135 2136############################################################################### 2137 2138 2139### Options to allow the user to specify the set of libraries which are used. 2140### Use "--without-normal --with-shared" to allow the default model to be 2141### shared, for example. 2142cf_list_models="" 2143 2144echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6 2145echo "configure:2146: checking if you want to build shared libraries" >&5 2146 2147# Check whether --with-shared or --without-shared was given. 2148if test "${with_shared+set}" = set; then 2149 withval="$with_shared" 2150 with_shared=$withval 2151else 2152 with_shared=no 2153fi 2154 2155echo "$ac_t""$with_shared" 1>&6 2156test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared" 2157 2158echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6 2159echo "configure:2160: checking if you want to build static libraries" >&5 2160 2161# Check whether --with-normal or --without-normal was given. 2162if test "${with_normal+set}" = set; then 2163 withval="$with_normal" 2164 with_normal=$withval 2165else 2166 with_normal=yes 2167fi 2168 2169echo "$ac_t""$with_normal" 1>&6 2170test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal" 2171 2172echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6 2173echo "configure:2174: checking if you want to build debug libraries" >&5 2174 2175# Check whether --with-debug or --without-debug was given. 2176if test "${with_debug+set}" = set; then 2177 withval="$with_debug" 2178 with_debug=$withval 2179else 2180 with_debug=yes 2181fi 2182 2183echo "$ac_t""$with_debug" 1>&6 2184test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug" 2185 2186echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6 2187echo "configure:2188: checking if you want to build profiling libraries" >&5 2188 2189# Check whether --with-profile or --without-profile was given. 2190if test "${with_profile+set}" = set; then 2191 withval="$with_profile" 2192 with_profile=$withval 2193else 2194 with_profile=no 2195fi 2196 2197echo "$ac_t""$with_profile" 1>&6 2198test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile" 2199 2200############################################################################### 2201 2202echo $ac_n "checking for specified models""... $ac_c" 1>&6 2203echo "configure:2204: checking for specified models" >&5 2204test -z "$cf_list_models" && cf_list_models=normal 2205echo "$ac_t""$cf_list_models" 1>&6 2206 2207### Use the first model as the default, and save its suffix for use in building 2208### up test-applications. 2209echo $ac_n "checking for default model""... $ac_c" 1>&6 2210echo "configure:2211: checking for default model" >&5 2211DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'` 2212echo "$ac_t""$DFT_LWR_MODEL" 1>&6 2213 2214 2215DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 2216 2217 2218TINFO_NAME=tinfo 2219 2220 2221LIB_NAME=ncurses 2222 2223 2224LIB_DIR=../lib 2225 2226 case $cf_cv_system_name in 2227 os2) LIB_PREFIX='' ;; 2228 *) LIB_PREFIX='lib' ;; 2229 esac 2230cf_prefix=$LIB_PREFIX 2231 2232 2233LIB_PREFIX=$cf_prefix 2234 2235 2236LIB_SUFFIX= 2237 2238 2239############################################################################### 2240 2241echo $ac_n "checking if you want to build a separate terminfo library""... $ac_c" 1>&6 2242echo "configure:2243: checking if you want to build a separate terminfo library" >&5 2243 2244# Check whether --with-termlib or --without-termlib was given. 2245if test "${with_termlib+set}" = set; then 2246 withval="$with_termlib" 2247 with_termlib=$withval 2248else 2249 with_termlib=no 2250fi 2251 2252echo "$ac_t""$with_termlib" 1>&6 2253 2254### Checks for special libraries, must be done up-front. 2255echo $ac_n "checking if you want to link with dbmalloc for testing""... $ac_c" 1>&6 2256echo "configure:2257: checking if you want to link with dbmalloc for testing" >&5 2257 2258# Check whether --with-dbmalloc or --without-dbmalloc was given. 2259if test "${with_dbmalloc+set}" = set; then 2260 withval="$with_dbmalloc" 2261 with_dbmalloc=$withval 2262else 2263 with_dbmalloc=no 2264fi 2265 2266echo "$ac_t""$with_dbmalloc" 1>&6 2267if test "$with_dbmalloc" = yes ; then 2268 echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6 2269echo "configure:2270: checking for debug_malloc in -ldbmalloc" >&5 2270ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'` 2271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2272 echo $ac_n "(cached) $ac_c" 1>&6 2273else 2274 ac_save_LIBS="$LIBS" 2275LIBS="-ldbmalloc $LIBS" 2276cat > conftest.$ac_ext <<EOF 2277#line 2278 "configure" 2278#include "confdefs.h" 2279/* Override any gcc2 internal prototype to avoid an error. */ 2280/* We use char because int might match the return type of a gcc2 2281 builtin and then its argument prototype would still apply. */ 2282char debug_malloc(); 2283 2284int main() { 2285debug_malloc() 2286; return 0; } 2287EOF 2288if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2289 rm -rf conftest* 2290 eval "ac_cv_lib_$ac_lib_var=yes" 2291else 2292 echo "configure: failed program was:" >&5 2293 cat conftest.$ac_ext >&5 2294 rm -rf conftest* 2295 eval "ac_cv_lib_$ac_lib_var=no" 2296fi 2297rm -f conftest* 2298LIBS="$ac_save_LIBS" 2299 2300fi 2301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2302 echo "$ac_t""yes" 1>&6 2303 ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2305 cat >> confdefs.h <<EOF 2306#define $ac_tr_lib 1 2307EOF 2308 2309 LIBS="-ldbmalloc $LIBS" 2310 2311else 2312 echo "$ac_t""no" 1>&6 2313fi 2314 2315fi 2316 2317echo $ac_n "checking if you want to link with dmalloc for testing""... $ac_c" 1>&6 2318echo "configure:2319: checking if you want to link with dmalloc for testing" >&5 2319 2320# Check whether --with-dmalloc or --without-dmalloc was given. 2321if test "${with_dmalloc+set}" = set; then 2322 withval="$with_dmalloc" 2323 with_dmalloc=$withval 2324else 2325 with_dmalloc=no 2326fi 2327 2328echo "$ac_t""$with_dmalloc" 1>&6 2329if test "$with_dmalloc" = yes ; then 2330 echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6 2331echo "configure:2332: checking for dmalloc_debug in -ldmalloc" >&5 2332ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'` 2333if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2334 echo $ac_n "(cached) $ac_c" 1>&6 2335else 2336 ac_save_LIBS="$LIBS" 2337LIBS="-ldmalloc $LIBS" 2338cat > conftest.$ac_ext <<EOF 2339#line 2340 "configure" 2340#include "confdefs.h" 2341/* Override any gcc2 internal prototype to avoid an error. */ 2342/* We use char because int might match the return type of a gcc2 2343 builtin and then its argument prototype would still apply. */ 2344char dmalloc_debug(); 2345 2346int main() { 2347dmalloc_debug() 2348; return 0; } 2349EOF 2350if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2351 rm -rf conftest* 2352 eval "ac_cv_lib_$ac_lib_var=yes" 2353else 2354 echo "configure: failed program was:" >&5 2355 cat conftest.$ac_ext >&5 2356 rm -rf conftest* 2357 eval "ac_cv_lib_$ac_lib_var=no" 2358fi 2359rm -f conftest* 2360LIBS="$ac_save_LIBS" 2361 2362fi 2363if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2364 echo "$ac_t""yes" 1>&6 2365 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2367 cat >> confdefs.h <<EOF 2368#define $ac_tr_lib 1 2369EOF 2370 2371 LIBS="-ldmalloc $LIBS" 2372 2373else 2374 echo "$ac_t""no" 1>&6 2375fi 2376 2377fi 2378 2379SHLIB_LIST="" 2380echo $ac_n "checking if you want to link with the gpm mouse library""... $ac_c" 1>&6 2381echo "configure:2382: checking if you want to link with the gpm mouse library" >&5 2382 2383# Check whether --with-gpm or --without-gpm was given. 2384if test "${with_gpm+set}" = set; then 2385 withval="$with_gpm" 2386 with_gpm=$withval 2387else 2388 with_gpm=no 2389fi 2390 2391echo "$ac_t""$with_gpm" 1>&6 2392if test "$with_gpm" = yes ; then 2393 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 2394echo "configure:2395: checking for Gpm_Open in -lgpm" >&5 2395ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 2396if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2397 echo $ac_n "(cached) $ac_c" 1>&6 2398else 2399 ac_save_LIBS="$LIBS" 2400LIBS="-lgpm $LIBS" 2401cat > conftest.$ac_ext <<EOF 2402#line 2403 "configure" 2403#include "confdefs.h" 2404/* Override any gcc2 internal prototype to avoid an error. */ 2405/* We use char because int might match the return type of a gcc2 2406 builtin and then its argument prototype would still apply. */ 2407char Gpm_Open(); 2408 2409int main() { 2410Gpm_Open() 2411; return 0; } 2412EOF 2413if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2414 rm -rf conftest* 2415 eval "ac_cv_lib_$ac_lib_var=yes" 2416else 2417 echo "configure: failed program was:" >&5 2418 cat conftest.$ac_ext >&5 2419 rm -rf conftest* 2420 eval "ac_cv_lib_$ac_lib_var=no" 2421fi 2422rm -f conftest* 2423LIBS="$ac_save_LIBS" 2424 2425fi 2426if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2427 echo "$ac_t""yes" 1>&6 2428 2429 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS" 2430 SHLIB_LIST="-lgpm $SHLIB_LIST" 2431 cat >> confdefs.h <<\EOF 2432#define HAVE_LIBGPM 1 2433EOF 2434 2435 for ac_hdr in gpm.h 2436do 2437ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2438echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2439echo "configure:2440: checking for $ac_hdr" >&5 2440if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2441 echo $ac_n "(cached) $ac_c" 1>&6 2442else 2443 cat > conftest.$ac_ext <<EOF 2444#line 2445 "configure" 2445#include "confdefs.h" 2446#include <$ac_hdr> 2447EOF 2448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2449{ (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2451if test -z "$ac_err"; then 2452 rm -rf conftest* 2453 eval "ac_cv_header_$ac_safe=yes" 2454else 2455 echo "$ac_err" >&5 2456 echo "configure: failed program was:" >&5 2457 cat conftest.$ac_ext >&5 2458 rm -rf conftest* 2459 eval "ac_cv_header_$ac_safe=no" 2460fi 2461rm -f conftest* 2462fi 2463if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2464 echo "$ac_t""yes" 1>&6 2465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2466 cat >> confdefs.h <<EOF 2467#define $ac_tr_hdr 1 2468EOF 2469 2470else 2471 echo "$ac_t""no" 1>&6 2472fi 2473done 2474 2475 2476else 2477 echo "$ac_t""no" 1>&6 2478echo "configure: warning: Cannot link with gpm library - read the FAQ" 1>&2 2479fi 2480 2481fi 2482 2483 2484if test X"$CC_G_OPT" = X"" ; then 2485 CC_G_OPT='-g' 2486 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT='' 2487fi 2488 2489 2490if test X"$CXX_G_OPT" = X"" ; then 2491 CXX_G_OPT='-g' 2492 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT='' 2493fi 2494 2495 2496echo $ac_n "checking for default loader flags""... $ac_c" 1>&6 2497echo "configure:2498: checking for default loader flags" >&5 2498case $DFT_LWR_MODEL in 2499normal) LD_MODEL='' ;; 2500debug) LD_MODEL=$CC_G_OPT ;; 2501profile) LD_MODEL='-pg';; 2502shared) LD_MODEL='' ;; 2503esac 2504echo "$ac_t""$LD_MODEL" 1>&6 2505 2506echo $ac_n "checking if rpath option should be used""... $ac_c" 1>&6 2507echo "configure:2508: checking if rpath option should be used" >&5 2508 2509# Check whether --enable-rpath or --disable-rpath was given. 2510if test "${enable_rpath+set}" = set; then 2511 enableval="$enable_rpath" 2512 cf_cv_ld_rpath=$enableval 2513else 2514 cf_cv_ld_rpath=no 2515fi 2516 2517echo "$ac_t""$cf_cv_ld_rpath" 1>&6 2518 2519 2520 2521 LOCAL_LDFLAGS= 2522 LOCAL_LDFLAGS2= 2523 LD_SHARED_OPTS= 2524 INSTALL_LIB="-m 644" 2525 2526 cf_cv_do_symlinks=no 2527 2528 echo $ac_n "checking if release/abi version should be used for shared libs""... $ac_c" 1>&6 2529echo "configure:2530: checking if release/abi version should be used for shared libs" >&5 2530 2531# Check whether --with-shlib-version or --without-shlib-version was given. 2532if test "${with_shlib_version+set}" = set; then 2533 withval="$with_shlib_version" 2534 test -z "$withval" && withval=auto 2535 case $withval in #(vi 2536 yes) #(vi 2537 cf_cv_shlib_version=auto 2538 ;; 2539 rel|abi|auto|no) #(vi 2540 cf_cv_shlib_version=$withval 2541 ;; 2542 *) 2543 { echo "configure: error: option value must be one of: rel, abi, auto or no" 1>&2; exit 1; } 2544 ;; 2545 esac 2546 2547else 2548 cf_cv_shlib_version=auto 2549fi 2550 2551 echo "$ac_t""$cf_cv_shlib_version" 1>&6 2552 2553 cf_cv_rm_so_locs=no 2554 2555 # Some less-capable ports of gcc support only -fpic 2556 CC_SHARED_OPTS= 2557 if test "$GCC" = yes 2558 then 2559 echo $ac_n "checking which $CC option to use""... $ac_c" 1>&6 2560echo "configure:2561: checking which $CC option to use" >&5 2561 cf_save_CFLAGS="$CFLAGS" 2562 for CC_SHARED_OPTS in -fPIC -fpic '' 2563 do 2564 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS" 2565 cat > conftest.$ac_ext <<EOF 2566#line 2567 "configure" 2567#include "confdefs.h" 2568#include <stdio.h> 2569int main() { 2570int x = 1 2571; return 0; } 2572EOF 2573if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2574 rm -rf conftest* 2575 break 2576else 2577 echo "configure: failed program was:" >&5 2578 cat conftest.$ac_ext >&5 2579fi 2580rm -f conftest* 2581 done 2582 echo "$ac_t""$CC_SHARED_OPTS" 1>&6 2583 CFLAGS="$cf_save_CFLAGS" 2584 fi 2585 2586 case $cf_cv_system_name in 2587 beos*) 2588 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0' 2589 ;; 2590 hpux*) 2591 # (tested with gcc 2.7.2 -- I don't have c89) 2592 if test "$GCC" = yes; then 2593 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)' 2594 else 2595 CC_SHARED_OPTS='+Z' 2596 LD_SHARED_OPTS='-Wl,+b,$(libdir)' 2597 fi 2598 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@' 2599 # HP-UX shared libraries must be executable, and should be 2600 # readonly to exploit a quirk in the memory manager. 2601 INSTALL_LIB="-m 555" 2602 ;; 2603 irix*) 2604 if test "$cf_cv_ld_rpath" = yes ; then 2605 cf_ld_rpath_opt="-Wl,-rpath," 2606 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS" 2607 fi 2608 # tested with IRIX 5.2 and 'cc'. 2609 if test "$GCC" != yes; then 2610 CC_SHARED_OPTS='-KPIC' 2611 fi 2612 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@' 2613 cf_cv_rm_so_locs=yes 2614 ;; 2615 linux*|gnu*) 2616 if test "$DFT_LWR_MODEL" = "shared" ; then 2617 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib" 2618 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 2619 fi 2620 if test "$cf_cv_ld_rpath" = yes ; then 2621 cf_ld_rpath_opt="-Wl,-rpath," 2622 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS" 2623 fi 2624 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 2625 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@' 2626 ;; 2627 openbsd2*) 2628 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 2629 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@' 2630 ;; 2631 openbsd*|freebsd*) 2632 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 2633 MK_SHARED_LIB='$(LD) -Bshareable -o $@' 2634 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 2635 ;; 2636 netbsd*) 2637 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 2638 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath," 2639 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then 2640 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib" 2641 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 2642 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS" 2643 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@' 2644 if test "$cf_cv_shlib_version" = auto; then 2645 if test ! -f /usr/libexec/ld.elf_so; then 2646 cf_cv_shlib_version=rel 2647 fi 2648 fi 2649 else 2650 MK_SHARED_LIB='$(LD) -Bshareable -o $@' 2651 fi 2652 ;; 2653 osf*|mls+*) 2654 # tested with OSF/1 V3.2 and 'cc' 2655 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't 2656 # link with shared libs). 2657 MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@`' 2658 case $host_os in 2659 osf4*) 2660 MK_SHARED_LIB="${MK_SHARED_LIB} -msym" 2661 ;; 2662 esac 2663 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@' 2664 if test "$DFT_LWR_MODEL" = "shared" ; then 2665 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib" 2666 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 2667 fi 2668 if test "$cf_cv_ld_rpath" = yes ; then 2669 cf_ld_rpath_opt="-rpath" 2670 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS" 2671 fi 2672 cf_cv_rm_so_locs=yes 2673 ;; 2674 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98 2675 # tested with osr5.0.5 2676 if test "$ac_cv_prog_gcc" != yes; then 2677 CC_SHARED_OPTS='-belf -KPIC' 2678 fi 2679 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@' 2680 if test "$cf_cv_ld_rpath" = yes ; then 2681 # only way is to set LD_RUN_PATH but no switch for it 2682 RUN_PATH=$libdir 2683 fi 2684 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 2685 LINK_PROGS='LD_RUN_PATH=$(libdir)' 2686 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib' 2687 ;; 2688 sunos4*) 2689 # tested with SunOS 4.1.1 and gcc 2.7.0 2690 if test "$ac_cv_prog_gcc" != yes; then 2691 CC_SHARED_OPTS='-KPIC' 2692 fi 2693 MK_SHARED_LIB='$(LD) -assert pure-text -o $@' 2694 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 2695 ;; 2696 solaris2*) 2697 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2 2698 if test "$ac_cv_prog_gcc" != yes; then 2699 CC_SHARED_OPTS='-KPIC' 2700 fi 2701 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@' 2702 if test "$DFT_LWR_MODEL" = "shared" ; then 2703 LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)" 2704 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 2705 fi 2706 if test "$cf_cv_ld_rpath" = yes ; then 2707 cf_ld_rpath_opt="-R" 2708 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS" 2709 fi 2710 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 2711 ;; 2712 sysv5uw7*|unix_sv*) 2713 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc) 2714 if test "$ac_cv_prog_gcc" != yes; then 2715 CC_SHARED_OPTS='-KPIC' 2716 fi 2717 MK_SHARED_LIB='$(LD) -d y -G -o $@' 2718 ;; 2719 *) 2720 CC_SHARED_OPTS='unknown' 2721 MK_SHARED_LIB='echo unknown' 2722 ;; 2723 esac 2724 2725 # This works if the last tokens in $MK_SHARED_LIB are the -o target. 2726 case "$cf_cv_shlib_version" in #(vi 2727 rel|abi) 2728 case "$MK_SHARED_LIB" in #(vi 2729 *'-o $@') 2730 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes 2731 ;; 2732 *) 2733 echo "configure: warning: ignored --with-shlib-version" 1>&2 2734 ;; 2735 esac 2736 ;; 2737 esac 2738 2739 if test -n "$cf_ld_rpath_opt" ; then 2740 echo $ac_n "checking if we need a space after rpath option""... $ac_c" 1>&6 2741echo "configure:2742: checking if we need a space after rpath option" >&5 2742 cf_save_LIBS="$LIBS" 2743 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir" 2744 cat > conftest.$ac_ext <<EOF 2745#line 2746 "configure" 2746#include "confdefs.h" 2747 2748int main() { 2749 2750; return 0; } 2751EOF 2752if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2753 rm -rf conftest* 2754 cf_rpath_space=no 2755else 2756 echo "configure: failed program was:" >&5 2757 cat conftest.$ac_ext >&5 2758 rm -rf conftest* 2759 cf_rpath_space=yes 2760fi 2761rm -f conftest* 2762 LIBS="$cf_save_LIBS" 2763 echo "$ac_t""$cf_rpath_space" 1>&6 2764 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt " 2765 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)" 2766 fi 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778if test "$CC_SHARED_OPTS" = "unknown"; then 2779 for model in $cf_list_models; do 2780 if test "$model" = "shared"; then 2781 { echo "configure: error: Shared libraries are not supported in this version" 1>&2; exit 1; } 2782 fi 2783 done 2784fi 2785 2786############################################################################### 2787 2788 2789### use option --disable-overwrite to leave out the link to -lcurses 2790echo $ac_n "checking if you wish to install ncurses overwriting curses""... $ac_c" 1>&6 2791echo "configure:2792: checking if you wish to install ncurses overwriting curses" >&5 2792 2793# Check whether --enable-overwrite or --disable-overwrite was given. 2794if test "${enable_overwrite+set}" = set; then 2795 enableval="$enable_overwrite" 2796 with_overwrite=$enableval 2797else 2798 with_overwrite=yes 2799fi 2800 2801echo "$ac_t""$with_overwrite" 1>&6 2802 2803echo $ac_n "checking if external terminfo-database is used""... $ac_c" 1>&6 2804echo "configure:2805: checking if external terminfo-database is used" >&5 2805 2806# Check whether --enable-database or --disable-database was given. 2807if test "${enable_database+set}" = set; then 2808 enableval="$enable_database" 2809 use_database=$enableval 2810else 2811 use_database=yes 2812fi 2813 2814echo "$ac_t""$use_database" 1>&6 2815 2816case $host_os in #(vi 2817os2*) #(vi 2818 TERMINFO_SRC='${top_srcdir}/misc/emx.src' 2819 ;; 2820*) #(vi 2821 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src' 2822 ;; 2823esac 2824 2825 2826if test "$use_database" != no ; then 2827 cat >> confdefs.h <<\EOF 2828#define USE_DATABASE 1 2829EOF 2830 2831 echo $ac_n "checking which terminfo source-file will be installed""... $ac_c" 1>&6 2832echo "configure:2833: checking which terminfo source-file will be installed" >&5 2833 2834# Check whether --enable-database or --disable-database was given. 2835if test "${enable_database+set}" = set; then 2836 enableval="$enable_database" 2837 TERMINFO_SRC=$withval 2838fi 2839 2840 echo "$ac_t""$TERMINFO_SRC" 1>&6 2841fi 2842 2843echo $ac_n "checking for list of fallback descriptions""... $ac_c" 1>&6 2844echo "configure:2845: checking for list of fallback descriptions" >&5 2845 2846# Check whether --with-fallbacks or --without-fallbacks was given. 2847if test "${with_fallbacks+set}" = set; then 2848 withval="$with_fallbacks" 2849 with_fallback=$withval 2850else 2851 with_fallback= 2852fi 2853 2854echo "$ac_t""$with_fallback" 1>&6 2855FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'` 2856 2857 2858if test "$use_database" = no ; then 2859 if test -z $with_fallback ; then 2860 { echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; } 2861 fi 2862 TERMINFO="${datadir}/terminfo" 2863else 2864 2865echo $ac_n "checking for list of terminfo directories""... $ac_c" 1>&6 2866echo "configure:2867: checking for list of terminfo directories" >&5 2867 2868 2869# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given. 2870if test "${with_terminfo_dirs+set}" = set; then 2871 withval="$with_terminfo_dirs" 2872 : 2873else 2874 withval="${TERMINFO_DIRS-${datadir}/terminfo}" 2875fi 2876 2877IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2878cf_dst_path= 2879for cf_src_path in $withval 2880do 2881 2882case ".$cf_src_path" in #(vi 2883./*) #(vi 2884 ;; 2885.a-zA-Z:\\/*) #(vi OS/2 EMX 2886 ;; 2887.\${*prefix}*) #(vi 2888 eval cf_src_path="$cf_src_path" 2889 case ".$cf_src_path" in #(vi 2890 .NONE/*) 2891 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@` 2892 ;; 2893 esac 2894 ;; #(vi 2895.NONE/*) 2896 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@` 2897 ;; 2898*) 2899 { echo "configure: error: expected a pathname" 1>&2; exit 1; } 2900 ;; 2901esac 2902 2903 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:" 2904 cf_dst_path="${cf_dst_path}${cf_src_path}" 2905done 2906IFS="$ac_save_ifs" 2907 2908eval TERMINFO_DIRS="$cf_dst_path" 2909 2910echo "$ac_t""$TERMINFO_DIRS" 1>&6 2911test -n "$TERMINFO_DIRS" && cat >> confdefs.h <<EOF 2912#define TERMINFO_DIRS "$TERMINFO_DIRS" 2913EOF 2914 2915 2916echo $ac_n "checking for default terminfo directory""... $ac_c" 1>&6 2917echo "configure:2918: checking for default terminfo directory" >&5 2918 2919# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given. 2920if test "${with_default_terminfo_dir+set}" = set; then 2921 withval="$with_default_terminfo_dir" 2922 : 2923else 2924 withval="${TERMINFO-${datadir}/terminfo}" 2925fi 2926 2927case ".$withval" in #(vi 2928./*) #(vi 2929 ;; 2930.a-zA-Z:\\/*) #(vi OS/2 EMX 2931 ;; 2932.\${*prefix}*) #(vi 2933 eval withval="$withval" 2934 case ".$withval" in #(vi 2935 .NONE/*) 2936 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 2937 ;; 2938 esac 2939 ;; #(vi 2940.NONE/*) 2941 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 2942 ;; 2943*) 2944 { echo "configure: error: expected a pathname" 1>&2; exit 1; } 2945 ;; 2946esac 2947 2948eval TERMINFO="$withval" 2949 2950echo "$ac_t""$TERMINFO" 1>&6 2951cat >> confdefs.h <<EOF 2952#define TERMINFO "$TERMINFO" 2953EOF 2954 2955 2956fi 2957 2958 2959 2960### use option --disable-big-core to make tic run on small machines 2961### We need 4Mb, check if we can allocate 50% more than that. 2962echo $ac_n "checking if big-core option selected""... $ac_c" 1>&6 2963echo "configure:2964: checking if big-core option selected" >&5 2964 2965# Check whether --enable-big-core or --disable-big-core was given. 2966if test "${enable_big_core+set}" = set; then 2967 enableval="$enable_big_core" 2968 with_big_core=$enableval 2969else 2970 if test "$cross_compiling" = yes; then 2971 with_big_core=no 2972else 2973 cat > conftest.$ac_ext <<EOF 2974#line 2975 "configure" 2975#include "confdefs.h" 2976 2977#include <stdlib.h> 2978#include <string.h> 2979int main() { 2980 unsigned long n = 6000000L; 2981 char *s = malloc(n); 2982 if (s != 0) 2983 s[0] = s[n-1] = 0; 2984 exit(s == 0); 2985} 2986EOF 2987if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2988then 2989 with_big_core=yes 2990else 2991 echo "configure: failed program was:" >&5 2992 cat conftest.$ac_ext >&5 2993 rm -fr conftest* 2994 with_big_core=no 2995fi 2996rm -fr conftest* 2997fi 2998 2999fi 3000 3001echo "$ac_t""$with_big_core" 1>&6 3002test "$with_big_core" = "yes" && cat >> confdefs.h <<\EOF 3003#define HAVE_BIG_CORE 1 3004EOF 3005 3006 3007### use option --enable-termcap to compile in the termcap fallback support 3008echo $ac_n "checking if you want termcap-fallback support""... $ac_c" 1>&6 3009echo "configure:3010: checking if you want termcap-fallback support" >&5 3010 3011# Check whether --enable-termcap or --disable-termcap was given. 3012if test "${enable_termcap+set}" = set; then 3013 enableval="$enable_termcap" 3014 with_termcap=$enableval 3015else 3016 with_termcap=no 3017fi 3018 3019echo "$ac_t""$with_termcap" 1>&6 3020 3021if test "$with_termcap" != "yes" ; then 3022 cat >> confdefs.h <<\EOF 3023#define PURE_TERMINFO 1 3024EOF 3025 3026else 3027 3028### use option --enable-getcap to use a hacked getcap for reading termcaps 3029echo $ac_n "checking if fast termcap-loader is needed""... $ac_c" 1>&6 3030echo "configure:3031: checking if fast termcap-loader is needed" >&5 3031 3032# Check whether --enable-getcap or --disable-getcap was given. 3033if test "${enable_getcap+set}" = set; then 3034 enableval="$enable_getcap" 3035 with_getcap=$enableval 3036else 3037 with_getcap=no 3038fi 3039 3040echo "$ac_t""$with_getcap" 1>&6 3041test "$with_getcap" = "yes" && cat >> confdefs.h <<\EOF 3042#define USE_GETCAP 1 3043EOF 3044 3045 3046echo $ac_n "checking if translated termcaps will be cached in ~/.terminfo""... $ac_c" 1>&6 3047echo "configure:3048: checking if translated termcaps will be cached in ~/.terminfo" >&5 3048 3049# Check whether --enable-getcap-cache or --disable-getcap-cache was given. 3050if test "${enable_getcap_cache+set}" = set; then 3051 enableval="$enable_getcap_cache" 3052 with_getcap_cache=$enableval 3053else 3054 with_getcap_cache=no 3055fi 3056 3057echo "$ac_t""$with_getcap_cache" 1>&6 3058test "$with_getcap_cache" = "yes" && cat >> confdefs.h <<\EOF 3059#define USE_GETCAP_CACHE 1 3060EOF 3061 3062 3063fi 3064 3065### Use option --enable-symlinks to make tic use symlinks, not hard links 3066### to reduce storage requirements for the terminfo database. 3067 3068for ac_func in \ 3069 remove \ 3070 unlink 3071do 3072echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3073echo "configure:3074: checking for $ac_func" >&5 3074if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3075 echo $ac_n "(cached) $ac_c" 1>&6 3076else 3077 cat > conftest.$ac_ext <<EOF 3078#line 3079 "configure" 3079#include "confdefs.h" 3080/* System header to define __stub macros and hopefully few prototypes, 3081 which can conflict with char $ac_func(); below. */ 3082#include <assert.h> 3083/* Override any gcc2 internal prototype to avoid an error. */ 3084/* We use char because int might match the return type of a gcc2 3085 builtin and then its argument prototype would still apply. */ 3086char $ac_func(); 3087 3088int main() { 3089 3090/* The GNU C library defines this for functions which it implements 3091 to always fail with ENOSYS. Some functions are actually named 3092 something starting with __ and the normal name is an alias. */ 3093#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3094choke me 3095#else 3096$ac_func(); 3097#endif 3098 3099; return 0; } 3100EOF 3101if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3102 rm -rf conftest* 3103 eval "ac_cv_func_$ac_func=yes" 3104else 3105 echo "configure: failed program was:" >&5 3106 cat conftest.$ac_ext >&5 3107 rm -rf conftest* 3108 eval "ac_cv_func_$ac_func=no" 3109fi 3110rm -f conftest* 3111fi 3112 3113if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 3115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3116 cat >> confdefs.h <<EOF 3117#define $ac_tr_func 1 3118EOF 3119 3120else 3121 echo "$ac_t""no" 1>&6 3122fi 3123done 3124 3125 3126if test "$ac_cv_prog_cc_cross" = yes ; then 3127 for ac_func in \ 3128 link \ 3129 symlink 3130do 3131echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3132echo "configure:3133: checking for $ac_func" >&5 3133if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3134 echo $ac_n "(cached) $ac_c" 1>&6 3135else 3136 cat > conftest.$ac_ext <<EOF 3137#line 3138 "configure" 3138#include "confdefs.h" 3139/* System header to define __stub macros and hopefully few prototypes, 3140 which can conflict with char $ac_func(); below. */ 3141#include <assert.h> 3142/* Override any gcc2 internal prototype to avoid an error. */ 3143/* We use char because int might match the return type of a gcc2 3144 builtin and then its argument prototype would still apply. */ 3145char $ac_func(); 3146 3147int main() { 3148 3149/* The GNU C library defines this for functions which it implements 3150 to always fail with ENOSYS. Some functions are actually named 3151 something starting with __ and the normal name is an alias. */ 3152#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3153choke me 3154#else 3155$ac_func(); 3156#endif 3157 3158; return 0; } 3159EOF 3160if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3161 rm -rf conftest* 3162 eval "ac_cv_func_$ac_func=yes" 3163else 3164 echo "configure: failed program was:" >&5 3165 cat conftest.$ac_ext >&5 3166 rm -rf conftest* 3167 eval "ac_cv_func_$ac_func=no" 3168fi 3169rm -f conftest* 3170fi 3171 3172if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3173 echo "$ac_t""yes" 1>&6 3174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3175 cat >> confdefs.h <<EOF 3176#define $ac_tr_func 1 3177EOF 3178 3179else 3180 echo "$ac_t""no" 1>&6 3181fi 3182done 3183 3184else 3185 echo $ac_n "checking if link/symlink functions work""... $ac_c" 1>&6 3186echo "configure:3187: checking if link/symlink functions work" >&5 3187if eval "test \"`echo '$''{'cf_cv_link_funcs'+set}'`\" = set"; then 3188 echo $ac_n "(cached) $ac_c" 1>&6 3189else 3190 3191 cf_cv_link_funcs= 3192 for cf_func in link symlink ; do 3193 if test "$cross_compiling" = yes; then 3194 3195 eval 'ac_cv_func_'$cf_func'=error' 3196else 3197 cat > conftest.$ac_ext <<EOF 3198#line 3199 "configure" 3199#include "confdefs.h" 3200 3201#include <sys/types.h> 3202#include <sys/stat.h> 3203#ifdef HAVE_UNISTD_H 3204#include <unistd.h> 3205#endif 3206int main() 3207{ 3208 int fail = 0; 3209 char *src = "config.log"; 3210 char *dst = "conftest.chk"; 3211 struct stat src_sb; 3212 struct stat dst_sb; 3213 3214 stat(src, &src_sb); 3215 fail = ($cf_func("config.log", "conftest.chk") < 0) 3216 || (stat(dst, &dst_sb) < 0) 3217 || (dst_sb.st_mtime != src_sb.st_mtime); 3218#ifdef HAVE_UNLINK 3219 unlink(dst); 3220#else 3221 remove(dst); 3222#endif 3223 exit (fail); 3224} 3225 3226EOF 3227if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3228then 3229 3230 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func" 3231 eval 'ac_cv_func_'$cf_func'=yes' 3232else 3233 echo "configure: failed program was:" >&5 3234 cat conftest.$ac_ext >&5 3235 rm -fr conftest* 3236 3237 eval 'ac_cv_func_'$cf_func'=no' 3238fi 3239rm -fr conftest* 3240fi 3241 3242 done 3243 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no 3244 3245fi 3246 3247echo "$ac_t""$cf_cv_link_funcs" 1>&6 3248 test "$ac_cv_func_link" = yes && cat >> confdefs.h <<\EOF 3249#define HAVE_LINK 1 3250EOF 3251 3252 test "$ac_cv_func_symlink" = yes && cat >> confdefs.h <<\EOF 3253#define HAVE_SYMLINK 1 3254EOF 3255 3256fi 3257 3258 3259with_links=no 3260with_symlinks=no 3261 3262if test "$ac_cv_func_link" != yes ; then 3263 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6 3264echo "configure:3265: checking if tic should use symbolic links" >&5 3265 if test "$ac_cv_func_symlink" = yes ; then 3266 with_symlinks=yes 3267 else 3268 with_symlinks=no 3269 fi 3270 echo "$ac_t""$with_symlinks" 1>&6 3271elif test "$ac_cv_func_symlink" != yes ; then 3272 echo $ac_n "checking if tic should use hard links""... $ac_c" 1>&6 3273echo "configure:3274: checking if tic should use hard links" >&5 3274 if test "$ac_cv_func_link" = yes ; then 3275 with_links=yes 3276 else 3277 with_links=no 3278 fi 3279 echo "$ac_t""$with_links" 1>&6 3280else 3281 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6 3282echo "configure:3283: checking if tic should use symbolic links" >&5 3283 3284# Check whether --enable-symlinks or --disable-symlinks was given. 3285if test "${enable_symlinks+set}" = set; then 3286 enableval="$enable_symlinks" 3287 with_symlinks=$enableval 3288else 3289 with_symlinks=no 3290fi 3291 3292 echo "$ac_t""$with_symlinks" 1>&6 3293fi 3294 3295test "$with_links" = yes && cat >> confdefs.h <<\EOF 3296#define USE_LINKS 1 3297EOF 3298 3299test "$with_symlinks" = yes && cat >> confdefs.h <<\EOF 3300#define USE_SYMLINKS 1 3301EOF 3302 3303 3304### use option --enable-broken-linker to force on use of broken-linker support 3305echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6 3306echo "configure:3307: checking if you want broken-linker support code" >&5 3307 3308# Check whether --enable-broken_linker or --disable-broken_linker was given. 3309if test "${enable_broken_linker+set}" = set; then 3310 enableval="$enable_broken_linker" 3311 with_broken_linker=$enableval 3312else 3313 with_broken_linker=$BROKEN_LINKER 3314fi 3315 3316echo "$ac_t""$with_broken_linker" 1>&6 3317test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF 3318#define BROKEN_LINKER 1 3319EOF 3320 3321 3322### use option --enable-bsdpad to have tputs process BSD-style prefix padding 3323echo $ac_n "checking if tputs should process BSD-style prefix padding""... $ac_c" 1>&6 3324echo "configure:3325: checking if tputs should process BSD-style prefix padding" >&5 3325 3326# Check whether --enable-bsdpad or --disable-bsdpad was given. 3327if test "${enable_bsdpad+set}" = set; then 3328 enableval="$enable_bsdpad" 3329 with_bsdpad=$enableval 3330else 3331 with_bsdpad=no 3332fi 3333 3334echo "$ac_t""$with_bsdpad" 1>&6 3335test "$with_bsdpad" = yes && cat >> confdefs.h <<\EOF 3336#define BSD_TPUTS 1 3337EOF 3338 3339 3340### Enable compiling-in rcs id's 3341echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6 3342echo "configure:3343: checking if RCS identifiers should be compiled-in" >&5 3343 3344# Check whether --with-rcs-ids or --without-rcs-ids was given. 3345if test "${with_rcs_ids+set}" = set; then 3346 withval="$with_rcs_ids" 3347 with_rcs_ids=$withval 3348else 3349 with_rcs_ids=no 3350fi 3351 3352echo "$ac_t""$with_rcs_ids" 1>&6 3353test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF 3354#define USE_RCS_IDS 1 3355EOF 3356 3357 3358############################################################################### 3359 3360 3361 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6 3362echo "configure:3363: checking format of man-pages" >&5 3363 3364 3365# Check whether --with-manpage-format or --without-manpage-format was given. 3366if test "${with_manpage_format+set}" = set; then 3367 withval="$with_manpage_format" 3368 cf_manpage_form=$withval 3369else 3370 cf_manpage_form=unknown 3371fi 3372 3373 3374case ".$cf_manpage_form" in 3375.gzip|.compress|.BSDI|.normal|.formatted) # (vi 3376 ;; 3377.unknown|.) # (vi 3378 if test -z "$MANPATH" ; then 3379 MANPATH="/usr/man:/usr/share/man" 3380 fi 3381 # look for the 'date' man-page (it's most likely to be installed!) 3382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3383 cf_manpage_form=unknown 3384 for cf_dir in $MANPATH; do 3385 test -z "$cf_dir" && cf_dir=/usr/man 3386 for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date 3387 do 3388 cf_test=`echo $cf_name | sed -e 's/*//'` 3389 if test "x$cf_test" = "x$cf_name" ; then 3390 case "$cf_name" in 3391 *.gz) cf_manpage_form=gzip;; 3392 *.Z) cf_manpage_form=compress;; 3393 *.0) cf_manpage_form=BSDI,formatted;; 3394 *) cf_manpage_form=normal;; 3395 esac 3396 break 3397 fi 3398 done 3399 if test "$cf_manpage_form" != "unknown" ; then 3400 break 3401 fi 3402 done 3403 IFS="$ac_save_ifs" 3404 ;; 3405.*) # (vi 3406 echo "configure: warning: Unexpected manpage-format" 1>&2 3407 ;; 3408esac 3409 3410echo "$ac_t""$cf_manpage_form" 1>&6 3411 3412 3413echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6 3414echo "configure:3415: checking for manpage renaming" >&5 3415 3416 3417# Check whether --with-manpage-renames or --without-manpage-renames was given. 3418if test "${with_manpage_renames+set}" = set; then 3419 withval="$with_manpage_renames" 3420 cf_manpage_renames=$withval 3421else 3422 cf_manpage_renames=yes 3423fi 3424 3425 3426case ".$cf_manpage_renames" in #(vi 3427.no) #(vi 3428 ;; 3429.|.yes) 3430 # Debian 'man' program? 3431 if test -f /etc/debian_version ; then 3432 cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames 3433 else 3434 cf_manpage_renames=no 3435 fi 3436 ;; 3437esac 3438 3439if test "$cf_manpage_renames" != no ; then 3440 if test ! -f $cf_manpage_renames ; then 3441 { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; } 3442 fi 3443 3444 test ! -d man && mkdir man 3445 3446 # Construct a sed-script to perform renaming within man-pages 3447 if test -n "$cf_manpage_renames" ; then 3448 test ! -d man && mkdir man 3449 $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed 3450 fi 3451fi 3452 3453echo "$ac_t""$cf_manpage_renames" 1>&6 3454 3455 3456echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6 3457echo "configure:3458: checking for manpage symlinks" >&5 3458 3459 3460# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given. 3461if test "${with_manpage_symlinks+set}" = set; then 3462 withval="$with_manpage_symlinks" 3463 cf_manpage_symlinks=$withval 3464else 3465 cf_manpage_symlinks=yes 3466fi 3467 3468 3469echo "$ac_t""$cf_manpage_symlinks" 1>&6 3470 3471 3472 if test "$prefix" = "NONE" ; then 3473 cf_prefix="$ac_default_prefix" 3474 else 3475 cf_prefix="$prefix" 3476 fi 3477 3478 case "$cf_manpage_form" in # (vi 3479 *formatted*) # (vi 3480 cf_subdir='$mandir/cat' 3481 cf_format=yes 3482 ;; 3483 *) 3484 cf_subdir='$mandir/man' 3485 cf_format=no 3486 ;; 3487 esac 3488 3489test ! -d man && mkdir man 3490cat >man/edit_man.sh <<CF_EOF 3491#! /bin/sh 3492# this script is generated by the configure-script 3493prefix="$cf_prefix" 3494datadir="$datadir" 3495TERMINFO="$TERMINFO" 3496MKDIRS="`cd $srcdir && pwd`/mkinstalldirs" 3497INSTALL="$INSTALL" 3498INSTALL_DATA="$INSTALL_DATA" 3499transform="$program_transform_name" 3500 3501TMP=\${TMPDIR-/tmp}/man\$\$ 3502trap "rm -f \$TMP" 0 1 2 5 15 3503 3504verb=\$1 3505shift 3506 3507mandir=\$1 3508shift 3509 3510srcdir=\$1 3511shift 3512 3513for i in \$* ; do 3514case \$i in #(vi 3515*.orig|*.rej) ;; #(vi 3516*.[0-9]*) 3517 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`; 3518 if test \$verb = installing ; then 3519 if test ! -d $cf_subdir\${section} ; then 3520 \$MKDIRS $cf_subdir\$section 3521 fi 3522 fi 3523 aliases= 3524 source=\`basename \$i\` 3525 inalias=\$source 3526 test ! -f \$inalias && inalias="\$srcdir/\$inalias" 3527 if test ! -f \$inalias ; then 3528 echo .. skipped \$source 3529 continue 3530 fi 3531CF_EOF 3532if test "$cf_manpage_symlinks" = yes ; then 3533cat >>man/edit_man.sh <<CF_EOF 3534 aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\` 3535CF_EOF 3536fi 3537if test "$cf_manpage_renames" = no ; then 3538cat >>man/edit_man.sh <<CF_EOF 3539 # perform program transformations for section 1 man pages 3540 if test \$section = 1 ; then 3541 target=$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\` 3542 else 3543 target=$cf_subdir\${section}/\$source 3544 fi 3545 3546 # replace variables in man page 3547CF_EOF 3548 3549 for cf_name in captoinfo clear infocmp infotocap tic toe tput 3550 do 3551cat >>man/edit_man.sh <<CF_EOF 3552 prog_$cf_name=\`echo $cf_name|sed "\${transform}"\` 3553CF_EOF 3554 done 3555 3556cat >>man/edit_man.sh <<CF_EOF 3557 sed -e "s,@DATADIR@,\$datadir," \\ 3558 -e "s,@TERMINFO@,\$TERMINFO," \\ 3559CF_EOF 3560 3561 for cf_name in captoinfo clear infocmp infotocap tic toe tput 3562 do 3563 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 3564cat >>man/edit_man.sh <<CF_EOF 3565 -e "s,@$cf_NAME@,\$prog_$cf_name," \\ 3566CF_EOF 3567 done 3568 3569cat >>man/edit_man.sh <<CF_EOF 3570 < \$i >\$TMP 3571CF_EOF 3572else 3573cat >>man/edit_man.sh <<CF_EOF 3574 target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\` 3575 if test -z "\$target" ; then 3576 echo '? missing rename for '\$source 3577 target="\$source" 3578 fi 3579 target="$cf_subdir\$section/\$target" 3580 test \$verb = installing && sed -e "s,@DATADIR@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP 3581CF_EOF 3582fi 3583if test $cf_format = yes ; then 3584cat >>man/edit_man.sh <<CF_EOF 3585 nroff -man \$TMP >\$TMP.out 3586 mv \$TMP.out \$TMP 3587CF_EOF 3588fi 3589case "$cf_manpage_form" in #(vi 3590*compress*) #(vi 3591cat >>man/edit_man.sh <<CF_EOF 3592 if test \$verb = installing ; then 3593 if ( compress -f \$TMP ) 3594 then 3595 mv \$TMP.Z \$TMP 3596 fi 3597 fi 3598 target="\$target.Z" 3599CF_EOF 3600 ;; 3601*gzip*) #(vi 3602cat >>man/edit_man.sh <<CF_EOF 3603 if test \$verb = installing ; then 3604 if ( gzip -f \$TMP ) 3605 then 3606 mv \$TMP.gz \$TMP 3607 fi 3608 fi 3609 target="\$target.gz" 3610CF_EOF 3611 ;; 3612*BSDI*) 3613cat >>man/edit_man.sh <<CF_EOF 3614 # BSDI installs only .0 suffixes in the cat directories 3615 target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`" 3616CF_EOF 3617 ;; 3618esac 3619cat >>man/edit_man.sh <<CF_EOF 3620 echo \$verb \$target 3621 suffix=\`basename \$target | sed -e 's/^[^.]*//'\` 3622 if test \$verb = installing ; then 3623 \$INSTALL_DATA \$TMP \$target 3624 test -n "\$aliases" && ( 3625 cd $cf_subdir\${section} && ( 3626 target=\`basename \$target\` 3627 for cf_alias in \$aliases 3628 do 3629 if test \$section = 1 ; then 3630 cf_alias=\`echo \$cf_alias|sed "\${transform}"\` 3631 fi 3632 3633 if test -f \$cf_alias\${suffix} ; then 3634 if ( cmp -s \$target \$cf_alias\${suffix} ) 3635 then 3636 : 3637 else 3638 echo .. \$verb alias \$cf_alias\${suffix} 3639 rm -f \$cf_alias\${suffix} 3640 $LN_S \$target \$cf_alias\${suffix} 3641 fi 3642 else 3643 echo .. \$verb alias \$cf_alias\${suffix} 3644 rm -f \$cf_alias\${suffix} 3645 $LN_S \$target \$cf_alias\${suffix} 3646 fi 3647 done 3648 ) 3649 ) 3650 else 3651 rm -f \$target 3652 test -n "\$aliases" && ( 3653 cd $cf_subdir\${section} && ( 3654 for cf_alias in \$aliases 3655 do 3656 if test \$section = 1 ; then 3657 cf_alias=\`echo \$cf_alias|sed "\${transform}"\` 3658 fi 3659 3660 echo .. \$verb alias \$cf_alias\${suffix} 3661 rm -f \$cf_alias\${suffix} 3662 done 3663 ) 3664 ) 3665 fi 3666 ;; 3667esac 3668done 3669exit 0 3670CF_EOF 3671chmod 755 man/edit_man.sh 3672 3673 3674 3675############################################################################### 3676 3677 3678### Note that some functions (such as const) are normally disabled anyway. 3679echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6 3680echo "configure:3681: checking if you want to build with function extensions" >&5 3681 3682# Check whether --enable-ext-funcs or --disable-ext-funcs was given. 3683if test "${enable_ext_funcs+set}" = set; then 3684 enableval="$enable_ext_funcs" 3685 with_ext_funcs=$enableval 3686else 3687 with_ext_funcs=yes 3688fi 3689 3690echo "$ac_t""$with_ext_funcs" 1>&6 3691if test "$with_ext_funcs" = yes ; then 3692 cat >> confdefs.h <<\EOF 3693#define HAVE_CURSES_VERSION 1 3694EOF 3695 3696 cat >> confdefs.h <<\EOF 3697#define HAVE_HAS_KEY 1 3698EOF 3699 3700 cat >> confdefs.h <<\EOF 3701#define HAVE_RESIZETERM 1 3702EOF 3703 3704 cat >> confdefs.h <<\EOF 3705#define HAVE_USE_DEFAULT_COLORS 1 3706EOF 3707 3708 cat >> confdefs.h <<\EOF 3709#define HAVE_WRESIZE 1 3710EOF 3711 3712 cat >> confdefs.h <<\EOF 3713#define NCURSES_EXT_FUNCS 1 3714EOF 3715 3716fi 3717 3718### use option --enable-const to turn on use of const beyond that in XSI. 3719echo $ac_n "checking for extended use of const keyword""... $ac_c" 1>&6 3720echo "configure:3721: checking for extended use of const keyword" >&5 3721 3722# Check whether --enable-const or --disable-const was given. 3723if test "${enable_const+set}" = set; then 3724 enableval="$enable_const" 3725 with_ext_const=$enableval 3726else 3727 with_ext_const=no 3728fi 3729 3730echo "$ac_t""$with_ext_const" 1>&6 3731NCURSES_CONST='/*nothing*/' 3732if test "$with_ext_const" = yes ; then 3733 NCURSES_CONST=const 3734fi 3735 3736 3737echo $ac_n "checking if you want \$NCURSES_NO_PADDING code""... $ac_c" 1>&6 3738echo "configure:3739: checking if you want \$NCURSES_NO_PADDING code" >&5 3739 3740# Check whether --enable-no-padding or --disable-no-padding was given. 3741if test "${enable_no_padding+set}" = set; then 3742 enableval="$enable_no_padding" 3743 with_no_padding=$enableval 3744else 3745 with_no_padding=$with_ext_funcs 3746fi 3747 3748echo "$ac_t""$with_no_padding" 1>&6 3749test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF 3750#define NCURSES_NO_PADDING 1 3751EOF 3752 3753 3754### use option --enable-sigwinch to turn on use of SIGWINCH logic 3755echo $ac_n "checking if you want SIGWINCH handler""... $ac_c" 1>&6 3756echo "configure:3757: checking if you want SIGWINCH handler" >&5 3757 3758# Check whether --enable-sigwinch or --disable-sigwinch was given. 3759if test "${enable_sigwinch+set}" = set; then 3760 enableval="$enable_sigwinch" 3761 with_sigwinch=$enableval 3762else 3763 with_sigwinch=$with_ext_funcs 3764fi 3765 3766echo "$ac_t""$with_sigwinch" 1>&6 3767test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF 3768#define USE_SIGWINCH 1 3769EOF 3770 3771 3772### use option --enable-tcap-names to allow user to define new capabilities 3773echo $ac_n "checking if you want user-definable terminal capabilities like termcap""... $ac_c" 1>&6 3774echo "configure:3775: checking if you want user-definable terminal capabilities like termcap" >&5 3775 3776# Check whether --enable-tcap-names or --disable-tcap-names was given. 3777if test "${enable_tcap_names+set}" = set; then 3778 enableval="$enable_tcap_names" 3779 with_tcap_names=$enableval 3780else 3781 with_tcap_names=$with_ext_funcs 3782fi 3783 3784echo "$ac_t""$with_tcap_names" 1>&6 3785NCURSES_XNAMES=0 3786test "$with_tcap_names" = yes && NCURSES_XNAMES=1 3787 3788 3789############################################################################### 3790# These options are relatively safe to experiment with. 3791 3792echo $ac_n "checking if you want all development code""... $ac_c" 1>&6 3793echo "configure:3794: checking if you want all development code" >&5 3794 3795# Check whether --with-develop or --without-develop was given. 3796if test "${with_develop+set}" = set; then 3797 withval="$with_develop" 3798 with_develop=$withval 3799else 3800 with_develop=no 3801fi 3802 3803echo "$ac_t""$with_develop" 1>&6 3804 3805### use option --enable-colorfgbg to turn on use of $COLORFGBG environment 3806echo $ac_n "checking if you want colorfgbg code""... $ac_c" 1>&6 3807echo "configure:3808: checking if you want colorfgbg code" >&5 3808 3809# Check whether --enable-hard-tabs or --disable-hard-tabs was given. 3810if test "${enable_hard_tabs+set}" = set; then 3811 enableval="$enable_hard_tabs" 3812 with_colorfgbg=$enableval 3813else 3814 with_colorfgbg=$with_develop 3815fi 3816 3817echo "$ac_t""$with_colorfgbg" 1>&6 3818test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF 3819#define USE_COLORFGBG 1 3820EOF 3821 3822 3823### use option --enable-hard-tabs to turn on use of hard-tabs optimize 3824echo $ac_n "checking if you want hard-tabs code""... $ac_c" 1>&6 3825echo "configure:3826: checking if you want hard-tabs code" >&5 3826 3827# Check whether --enable-hard-tabs or --disable-hard-tabs was given. 3828if test "${enable_hard_tabs+set}" = set; then 3829 enableval="$enable_hard_tabs" 3830 with_hardtabs=$enableval 3831else 3832 with_hardtabs=$with_develop 3833fi 3834 3835echo "$ac_t""$with_hardtabs" 1>&6 3836test "$with_hardtabs" = yes && cat >> confdefs.h <<\EOF 3837#define USE_HARD_TABS 1 3838EOF 3839 3840 3841echo $ac_n "checking if you want to use restrict environment when running as root""... $ac_c" 1>&6 3842echo "configure:3843: checking if you want to use restrict environment when running as root" >&5 3843 3844# Check whether --enable-root-environ or --disable-root-environ was given. 3845if test "${enable_root_environ+set}" = set; then 3846 enableval="$enable_root_environ" 3847 with_root_environ=$enableval 3848else 3849 with_root_environ=yes 3850fi 3851 3852echo "$ac_t""$with_root_environ" 1>&6 3853test "$with_root_environ" = yes && cat >> confdefs.h <<\EOF 3854#define USE_ROOT_ENVIRON 1 3855EOF 3856 3857 3858### use option --enable-xmc-glitch to turn on use of magic-cookie optimize 3859echo $ac_n "checking if you want limited support for xmc""... $ac_c" 1>&6 3860echo "configure:3861: checking if you want limited support for xmc" >&5 3861 3862# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 3863if test "${enable_xmc_glitch+set}" = set; then 3864 enableval="$enable_xmc_glitch" 3865 with_xmc_glitch=$enableval 3866else 3867 with_xmc_glitch=$with_develop 3868fi 3869 3870echo "$ac_t""$with_xmc_glitch" 1>&6 3871test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF 3872#define USE_XMC_SUPPORT 1 3873EOF 3874 3875 3876############################################################################### 3877# These are just experimental, probably should not be in a package: 3878 3879 3880echo $ac_n "checking if you do not want to assume colors are white-on-black""... $ac_c" 1>&6 3881echo "configure:3882: checking if you do not want to assume colors are white-on-black" >&5 3882 3883# Check whether --enable-assumed-color or --disable-assumed-color was given. 3884if test "${enable_assumed_color+set}" = set; then 3885 enableval="$enable_assumed_color" 3886 with_assumed_color=$enableval 3887else 3888 with_assumed_color=yes 3889fi 3890 3891echo "$ac_t""$with_assumed_color" 1>&6 3892test "$with_assumed_color" = yes && cat >> confdefs.h <<\EOF 3893#define USE_ASSUMED_COLOR 1 3894EOF 3895 3896 3897### use option --enable-hashmap to turn on use of hashmap scrolling logic 3898echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6 3899echo "configure:3900: checking if you want hashmap scrolling-optimization code" >&5 3900 3901# Check whether --enable-hashmap or --disable-hashmap was given. 3902if test "${enable_hashmap+set}" = set; then 3903 enableval="$enable_hashmap" 3904 with_hashmap=$enableval 3905else 3906 with_hashmap=yes 3907fi 3908 3909echo "$ac_t""$with_hashmap" 1>&6 3910test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF 3911#define USE_HASHMAP 1 3912EOF 3913 3914 3915echo $ac_n "checking if you want experimental safe-sprintf code""... $ac_c" 1>&6 3916echo "configure:3917: checking if you want experimental safe-sprintf code" >&5 3917 3918# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given. 3919if test "${enable_safe_sprintf+set}" = set; then 3920 enableval="$enable_safe_sprintf" 3921 with_safe_sprintf=$enableval 3922else 3923 with_safe_sprintf=no 3924fi 3925 3926echo "$ac_t""$with_safe_sprintf" 1>&6 3927test "$with_safe_sprintf" = yes && cat >> confdefs.h <<\EOF 3928#define USE_SAFE_SPRINTF 1 3929EOF 3930 3931 3932### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic 3933# when hashmap is used scroll hints are useless 3934if test "$with_hashmap" = no ; then 3935echo $ac_n "checking if you want to experiment without scrolling-hints code""... $ac_c" 1>&6 3936echo "configure:3937: checking if you want to experiment without scrolling-hints code" >&5 3937 3938# Check whether --enable-scroll-hints or --disable-scroll-hints was given. 3939if test "${enable_scroll_hints+set}" = set; then 3940 enableval="$enable_scroll_hints" 3941 with_scroll_hints=$enableval 3942else 3943 with_scroll_hints=yes 3944fi 3945 3946echo "$ac_t""$with_scroll_hints" 1>&6 3947test "$with_scroll_hints" = yes && cat >> confdefs.h <<\EOF 3948#define USE_SCROLL_HINTS 1 3949EOF 3950 3951fi 3952 3953### use option --enable-widec to turn on use of wide-character support 3954echo $ac_n "checking if you want experimental wide-character code""... $ac_c" 1>&6 3955echo "configure:3956: checking if you want experimental wide-character code" >&5 3956 3957# Check whether --enable-widec or --disable-widec was given. 3958if test "${enable_widec+set}" = set; then 3959 enableval="$enable_widec" 3960 with_widec=$enableval 3961else 3962 with_widec=no 3963fi 3964 3965echo "$ac_t""$with_widec" 1>&6 3966if test "$with_widec" = yes ; then 3967 LIB_SUFFIX="w${LIB_SUFFIX}" 3968 cat >> confdefs.h <<\EOF 3969#define USE_WIDEC_SUPPORT 1 3970EOF 3971 3972fi 3973 3974############################################################################### 3975 3976 3977### use option --disable-echo to suppress full display compiling commands 3978echo $ac_n "checking if you want to display full commands during build""... $ac_c" 1>&6 3979echo "configure:3980: checking if you want to display full commands during build" >&5 3980 3981# Check whether --enable-echo or --disable-echo was given. 3982if test "${enable_echo+set}" = set; then 3983 enableval="$enable_echo" 3984 with_echo=$enableval 3985else 3986 with_echo=yes 3987fi 3988 3989if test "$with_echo" = yes; then 3990 ECHO_LINK= 3991else 3992 ECHO_LINK='@ echo linking $@ ... ;' 3993fi 3994echo "$ac_t""$with_echo" 1>&6 3995 3996 3997### use option --enable-warnings to turn on all gcc warnings 3998echo $ac_n "checking if you want to see compiler warnings""... $ac_c" 1>&6 3999echo "configure:4000: checking if you want to see compiler warnings" >&5 4000 4001# Check whether --enable-warnings or --disable-warnings was given. 4002if test "${enable_warnings+set}" = set; then 4003 enableval="$enable_warnings" 4004 with_warnings=$enableval 4005fi 4006 4007if test -n "$with_warnings"; then 4008 ADAFLAGS="$ADAFLAGS -gnatg" 4009 4010if test "$GCC" = yes 4011then 4012 cat > conftest.$ac_ext <<EOF 4013#line 4014 "configure" 4014int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4015EOF 4016 echo "checking for $CC warning options" 1>&6 4017echo "configure:4018: checking for $CC warning options" >&5 4018 cf_save_CFLAGS="$CFLAGS" 4019 EXTRA_CFLAGS="-W -Wall" 4020 cf_warn_CONST="" 4021 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4022 for cf_opt in \ 4023 Wbad-function-cast \ 4024 Wcast-align \ 4025 Wcast-qual \ 4026 Winline \ 4027 Wmissing-declarations \ 4028 Wmissing-prototypes \ 4029 Wnested-externs \ 4030 Wpointer-arith \ 4031 Wshadow \ 4032 Wstrict-prototypes $cf_warn_CONST 4033 do 4034 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4035 if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4036 test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6 4037 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4038 test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES" 4039 fi 4040 done 4041 rm -f conftest* 4042 CFLAGS="$cf_save_CFLAGS" 4043fi 4044 4045 4046fi 4047echo "$ac_t""$with_warnings" 1>&6 4048 4049if test "$GCC" = yes 4050then 4051cat > conftest.i <<EOF 4052#ifndef GCC_PRINTF 4053#define GCC_PRINTF 0 4054#endif 4055#ifndef GCC_SCANF 4056#define GCC_SCANF 0 4057#endif 4058#ifndef GCC_NORETURN 4059#define GCC_NORETURN /* nothing */ 4060#endif 4061#ifndef GCC_UNUSED 4062#define GCC_UNUSED /* nothing */ 4063#endif 4064EOF 4065if test "$GCC" = yes 4066then 4067 echo "checking for $CC __attribute__ directives" 1>&6 4068echo "configure:4069: checking for $CC __attribute__ directives" >&5 4069 cat > conftest.$ac_ext <<EOF 4070#line 4071 "configure" 4071#include "confdefs.h" 4072#include "conftest.h" 4073#include "conftest.i" 4074#if GCC_PRINTF 4075#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4076#else 4077#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4078#endif 4079#if GCC_SCANF 4080#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4081#else 4082#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4083#endif 4084extern void wow(char *,...) GCC_SCANFLIKE(1,2); 4085extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4086extern void foo(void) GCC_NORETURN; 4087int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4088EOF 4089 for cf_attribute in scanf printf unused noreturn 4090 do 4091 4092CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4093 4094 cf_directive="__attribute__(($cf_attribute))" 4095 echo "checking for $CC $cf_directive" 1>&5 4096 case $cf_attribute in 4097 scanf|printf) 4098 cat >conftest.h <<EOF 4099#define GCC_$CF_ATTRIBUTE 1 4100EOF 4101 ;; 4102 *) 4103 cat >conftest.h <<EOF 4104#define GCC_$CF_ATTRIBUTE $cf_directive 4105EOF 4106 ;; 4107 esac 4108 if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4109 test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6 4110 cat conftest.h >>confdefs.h 4111# else 4112# sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h 4113 fi 4114 done 4115else 4116 fgrep define conftest.i >>confdefs.h 4117fi 4118rm -rf conftest* 4119fi 4120 4121 4122### use option --enable-assertions to turn on generation of assertion code 4123echo $ac_n "checking if you want to enable runtime assertions""... $ac_c" 1>&6 4124echo "configure:4125: checking if you want to enable runtime assertions" >&5 4125 4126# Check whether --enable-assertions or --disable-assertions was given. 4127if test "${enable_assertions+set}" = set; then 4128 enableval="$enable_assertions" 4129 with_assertions=$enableval 4130else 4131 with_assertions=no 4132fi 4133 4134echo "$ac_t""$with_assertions" 1>&6 4135if test -n "$GCC" 4136then 4137 if test "$with_assertions" = no 4138 then 4139 cat >> confdefs.h <<\EOF 4140#define NDEBUG 1 4141EOF 4142 4143 CPPFLAGS="$CPPFLAGS -DNDEBUG" 4144 else 4145 ADAFLAGS="$ADAFLAGS -gnata" 4146 fi 4147fi 4148 4149### use option --disable-leaks to suppress "permanent" leaks, for testing 4150 4151# Check whether --enable-leaks or --disable-leaks was given. 4152if test "${enable_leaks+set}" = set; then 4153 enableval="$enable_leaks" 4154 test "$enableval" = no && cat >> confdefs.h <<\EOF 4155#define NO_LEAKS 1 4156EOF 4157 4158fi 4159 4160cat >> confdefs.h <<\EOF 4161#define HAVE_NC_ALLOC_H 1 4162EOF 4163 4164 4165### use option --enable-expanded to generate certain macros as functions 4166 4167# Check whether --enable-expanded or --disable-expanded was given. 4168if test "${enable_expanded+set}" = set; then 4169 enableval="$enable_expanded" 4170 test "$enableval" = yes && cat >> confdefs.h <<\EOF 4171#define NCURSES_EXPANDED 1 4172EOF 4173 4174fi 4175 4176 4177### use option --disable-macros to suppress macros in favor of functions 4178 4179# Check whether --enable-macros or --disable-macros was given. 4180if test "${enable_macros+set}" = set; then 4181 enableval="$enable_macros" 4182 test "$enableval" = no && cat >> confdefs.h <<\EOF 4183#define NCURSES_NOMACROS 1 4184EOF 4185 4186fi 4187 4188 4189### Checks for libraries. 4190echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 4191echo "configure:4192: checking for gettimeofday" >&5 4192if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then 4193 echo $ac_n "(cached) $ac_c" 1>&6 4194else 4195 cat > conftest.$ac_ext <<EOF 4196#line 4197 "configure" 4197#include "confdefs.h" 4198/* System header to define __stub macros and hopefully few prototypes, 4199 which can conflict with char gettimeofday(); below. */ 4200#include <assert.h> 4201/* Override any gcc2 internal prototype to avoid an error. */ 4202/* We use char because int might match the return type of a gcc2 4203 builtin and then its argument prototype would still apply. */ 4204char gettimeofday(); 4205 4206int main() { 4207 4208/* The GNU C library defines this for functions which it implements 4209 to always fail with ENOSYS. Some functions are actually named 4210 something starting with __ and the normal name is an alias. */ 4211#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 4212choke me 4213#else 4214gettimeofday(); 4215#endif 4216 4217; return 0; } 4218EOF 4219if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4220 rm -rf conftest* 4221 eval "ac_cv_func_gettimeofday=yes" 4222else 4223 echo "configure: failed program was:" >&5 4224 cat conftest.$ac_ext >&5 4225 rm -rf conftest* 4226 eval "ac_cv_func_gettimeofday=no" 4227fi 4228rm -f conftest* 4229fi 4230 4231if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then 4232 echo "$ac_t""yes" 1>&6 4233 cat >> confdefs.h <<\EOF 4234#define HAVE_GETTIMEOFDAY 1 4235EOF 4236 4237else 4238 echo "$ac_t""no" 1>&6 4239 4240 4241echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6 4242echo "configure:4243: checking for gettimeofday in -lbsd" >&5 4243ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'` 4244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4245 echo $ac_n "(cached) $ac_c" 1>&6 4246else 4247 ac_save_LIBS="$LIBS" 4248LIBS="-lbsd $LIBS" 4249cat > conftest.$ac_ext <<EOF 4250#line 4251 "configure" 4251#include "confdefs.h" 4252/* Override any gcc2 internal prototype to avoid an error. */ 4253/* We use char because int might match the return type of a gcc2 4254 builtin and then its argument prototype would still apply. */ 4255char gettimeofday(); 4256 4257int main() { 4258gettimeofday() 4259; return 0; } 4260EOF 4261if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4262 rm -rf conftest* 4263 eval "ac_cv_lib_$ac_lib_var=yes" 4264else 4265 echo "configure: failed program was:" >&5 4266 cat conftest.$ac_ext >&5 4267 rm -rf conftest* 4268 eval "ac_cv_lib_$ac_lib_var=no" 4269fi 4270rm -f conftest* 4271LIBS="$ac_save_LIBS" 4272 4273fi 4274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4275 echo "$ac_t""yes" 1>&6 4276 cat >> confdefs.h <<\EOF 4277#define HAVE_GETTIMEOFDAY 1 4278EOF 4279 4280 LIBS="$LIBS -lbsd" 4281else 4282 echo "$ac_t""no" 1>&6 4283fi 4284 4285fi 4286 4287 4288echo $ac_n "checking if -lm needed for math functions""... $ac_c" 1>&6 4289echo "configure:4290: checking if -lm needed for math functions" >&5 4290if eval "test \"`echo '$''{'cf_cv_need_libm'+set}'`\" = set"; then 4291 echo $ac_n "(cached) $ac_c" 1>&6 4292else 4293 4294 cat > conftest.$ac_ext <<EOF 4295#line 4296 "configure" 4296#include "confdefs.h" 4297 4298 #include <stdio.h> 4299 #include <math.h> 4300 4301int main() { 4302double x = rand(); printf("result = %g\n", sin(x)) 4303; return 0; } 4304EOF 4305if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4306 rm -rf conftest* 4307 cf_cv_need_libm=no 4308else 4309 echo "configure: failed program was:" >&5 4310 cat conftest.$ac_ext >&5 4311 rm -rf conftest* 4312 cf_cv_need_libm=yes 4313fi 4314rm -f conftest* 4315fi 4316 4317echo "$ac_t""$cf_cv_need_libm" 1>&6 4318if test "$cf_cv_need_libm" = yes 4319then 4320MATH_LIB=-lm 4321fi 4322 4323 4324 4325### Checks for header files. 4326echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 4327echo "configure:4328: checking for ANSI C header files" >&5 4328if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 4329 echo $ac_n "(cached) $ac_c" 1>&6 4330else 4331 cat > conftest.$ac_ext <<EOF 4332#line 4333 "configure" 4333#include "confdefs.h" 4334#include <stdlib.h> 4335#include <stdarg.h> 4336#include <string.h> 4337#include <float.h> 4338EOF 4339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4340{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4342if test -z "$ac_err"; then 4343 rm -rf conftest* 4344 ac_cv_header_stdc=yes 4345else 4346 echo "$ac_err" >&5 4347 echo "configure: failed program was:" >&5 4348 cat conftest.$ac_ext >&5 4349 rm -rf conftest* 4350 ac_cv_header_stdc=no 4351fi 4352rm -f conftest* 4353 4354if test $ac_cv_header_stdc = yes; then 4355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4356cat > conftest.$ac_ext <<EOF 4357#line 4358 "configure" 4358#include "confdefs.h" 4359#include <string.h> 4360EOF 4361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4362 egrep "memchr" >/dev/null 2>&1; then 4363 : 4364else 4365 rm -rf conftest* 4366 ac_cv_header_stdc=no 4367fi 4368rm -f conftest* 4369 4370fi 4371 4372if test $ac_cv_header_stdc = yes; then 4373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4374cat > conftest.$ac_ext <<EOF 4375#line 4376 "configure" 4376#include "confdefs.h" 4377#include <stdlib.h> 4378EOF 4379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4380 egrep "free" >/dev/null 2>&1; then 4381 : 4382else 4383 rm -rf conftest* 4384 ac_cv_header_stdc=no 4385fi 4386rm -f conftest* 4387 4388fi 4389 4390if test $ac_cv_header_stdc = yes; then 4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4392if test "$cross_compiling" = yes; then 4393 : 4394else 4395 cat > conftest.$ac_ext <<EOF 4396#line 4397 "configure" 4397#include "confdefs.h" 4398#include <ctype.h> 4399#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4400#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4401#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4402int main () { int i; for (i = 0; i < 256; i++) 4403if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 4404exit (0); } 4405 4406EOF 4407if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4408then 4409 : 4410else 4411 echo "configure: failed program was:" >&5 4412 cat conftest.$ac_ext >&5 4413 rm -fr conftest* 4414 ac_cv_header_stdc=no 4415fi 4416rm -fr conftest* 4417fi 4418 4419fi 4420fi 4421 4422echo "$ac_t""$ac_cv_header_stdc" 1>&6 4423if test $ac_cv_header_stdc = yes; then 4424 cat >> confdefs.h <<\EOF 4425#define STDC_HEADERS 1 4426EOF 4427 4428fi 4429 4430ac_header_dirent=no 4431for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 4432do 4433ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4434echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 4435echo "configure:4436: checking for $ac_hdr that defines DIR" >&5 4436if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 4437 echo $ac_n "(cached) $ac_c" 1>&6 4438else 4439 cat > conftest.$ac_ext <<EOF 4440#line 4441 "configure" 4441#include "confdefs.h" 4442#include <sys/types.h> 4443#include <$ac_hdr> 4444int main() { 4445DIR *dirp = 0; 4446; return 0; } 4447EOF 4448if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4449 rm -rf conftest* 4450 eval "ac_cv_header_dirent_$ac_safe=yes" 4451else 4452 echo "configure: failed program was:" >&5 4453 cat conftest.$ac_ext >&5 4454 rm -rf conftest* 4455 eval "ac_cv_header_dirent_$ac_safe=no" 4456fi 4457rm -f conftest* 4458fi 4459if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 4460 echo "$ac_t""yes" 1>&6 4461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4462 cat >> confdefs.h <<EOF 4463#define $ac_tr_hdr 1 4464EOF 4465 ac_header_dirent=$ac_hdr; break 4466else 4467 echo "$ac_t""no" 1>&6 4468fi 4469done 4470# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4471if test $ac_header_dirent = dirent.h; then 4472echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 4473echo "configure:4474: checking for opendir in -ldir" >&5 4474ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 4475if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4476 echo $ac_n "(cached) $ac_c" 1>&6 4477else 4478 ac_save_LIBS="$LIBS" 4479LIBS="-ldir $LIBS" 4480cat > conftest.$ac_ext <<EOF 4481#line 4482 "configure" 4482#include "confdefs.h" 4483/* Override any gcc2 internal prototype to avoid an error. */ 4484/* We use char because int might match the return type of a gcc2 4485 builtin and then its argument prototype would still apply. */ 4486char opendir(); 4487 4488int main() { 4489opendir() 4490; return 0; } 4491EOF 4492if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4493 rm -rf conftest* 4494 eval "ac_cv_lib_$ac_lib_var=yes" 4495else 4496 echo "configure: failed program was:" >&5 4497 cat conftest.$ac_ext >&5 4498 rm -rf conftest* 4499 eval "ac_cv_lib_$ac_lib_var=no" 4500fi 4501rm -f conftest* 4502LIBS="$ac_save_LIBS" 4503 4504fi 4505if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4506 echo "$ac_t""yes" 1>&6 4507 LIBS="$LIBS -ldir" 4508else 4509 echo "$ac_t""no" 1>&6 4510fi 4511 4512else 4513echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 4514echo "configure:4515: checking for opendir in -lx" >&5 4515ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 4516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4517 echo $ac_n "(cached) $ac_c" 1>&6 4518else 4519 ac_save_LIBS="$LIBS" 4520LIBS="-lx $LIBS" 4521cat > conftest.$ac_ext <<EOF 4522#line 4523 "configure" 4523#include "confdefs.h" 4524/* Override any gcc2 internal prototype to avoid an error. */ 4525/* We use char because int might match the return type of a gcc2 4526 builtin and then its argument prototype would still apply. */ 4527char opendir(); 4528 4529int main() { 4530opendir() 4531; return 0; } 4532EOF 4533if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4534 rm -rf conftest* 4535 eval "ac_cv_lib_$ac_lib_var=yes" 4536else 4537 echo "configure: failed program was:" >&5 4538 cat conftest.$ac_ext >&5 4539 rm -rf conftest* 4540 eval "ac_cv_lib_$ac_lib_var=no" 4541fi 4542rm -f conftest* 4543LIBS="$ac_save_LIBS" 4544 4545fi 4546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4547 echo "$ac_t""yes" 1>&6 4548 LIBS="$LIBS -lx" 4549else 4550 echo "$ac_t""no" 1>&6 4551fi 4552 4553fi 4554 4555 4556echo $ac_n "checking for regular-expression headers""... $ac_c" 1>&6 4557echo "configure:4558: checking for regular-expression headers" >&5 4558if eval "test \"`echo '$''{'cf_cv_regex'+set}'`\" = set"; then 4559 echo $ac_n "(cached) $ac_c" 1>&6 4560else 4561 4562cat > conftest.$ac_ext <<EOF 4563#line 4564 "configure" 4564#include "confdefs.h" 4565#include <sys/types.h> 4566#include <regex.h> 4567int main() { 4568 4569 regex_t *p; 4570 int x = regcomp(p, "", 0); 4571 int y = regexec(p, "", 0, 0, 0); 4572 regfree(p); 4573 4574; return 0; } 4575EOF 4576if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4577 rm -rf conftest* 4578 cf_cv_regex="regex.h" 4579else 4580 echo "configure: failed program was:" >&5 4581 cat conftest.$ac_ext >&5 4582 rm -rf conftest* 4583 4584 cat > conftest.$ac_ext <<EOF 4585#line 4586 "configure" 4586#include "confdefs.h" 4587#include <regexp.h> 4588int main() { 4589 4590 char *p = compile("", "", "", 0); 4591 int x = step("", ""); 4592 4593; return 0; } 4594EOF 4595if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4596 rm -rf conftest* 4597 cf_cv_regex="regexp.h" 4598else 4599 echo "configure: failed program was:" >&5 4600 cat conftest.$ac_ext >&5 4601 rm -rf conftest* 4602 4603 cf_save_LIBS="$LIBS" 4604 LIBS="-lgen $LIBS" 4605 cat > conftest.$ac_ext <<EOF 4606#line 4607 "configure" 4607#include "confdefs.h" 4608#include <regexpr.h> 4609int main() { 4610 4611 char *p = compile("", "", ""); 4612 int x = step("", ""); 4613 4614; return 0; } 4615EOF 4616if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4617 rm -rf conftest* 4618 cf_cv_regex="regexpr.h" 4619else 4620 echo "configure: failed program was:" >&5 4621 cat conftest.$ac_ext >&5 4622 rm -rf conftest* 4623 LIBS="$cf_save_LIBS" 4624fi 4625rm -f conftest* 4626fi 4627rm -f conftest* 4628fi 4629rm -f conftest* 4630 4631fi 4632 4633echo "$ac_t""$cf_cv_regex" 1>&6 4634case $cf_cv_regex in 4635 regex.h) cat >> confdefs.h <<\EOF 4636#define HAVE_REGEX_H_FUNCS 1 4637EOF 4638 ;; 4639 regexp.h) cat >> confdefs.h <<\EOF 4640#define HAVE_REGEXP_H_FUNCS 1 4641EOF 4642 ;; 4643 regexpr.h) cat >> confdefs.h <<\EOF 4644#define HAVE_REGEXPR_H_FUNCS 1 4645EOF 4646 ;; 4647esac 4648 4649 4650for ac_hdr in \ 4651fcntl.h \ 4652getopt.h \ 4653libc.h \ 4654limits.h \ 4655locale.h \ 4656poll.h \ 4657sys/bsdtypes.h \ 4658sys/ioctl.h \ 4659sys/param.h \ 4660sys/poll.h \ 4661sys/select.h \ 4662sys/time.h \ 4663sys/times.h \ 4664ttyent.h \ 4665unistd.h \ 4666 4667do 4668ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4669echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4670echo "configure:4671: checking for $ac_hdr" >&5 4671if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4672 echo $ac_n "(cached) $ac_c" 1>&6 4673else 4674 cat > conftest.$ac_ext <<EOF 4675#line 4676 "configure" 4676#include "confdefs.h" 4677#include <$ac_hdr> 4678EOF 4679ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4680{ (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4681ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4682if test -z "$ac_err"; then 4683 rm -rf conftest* 4684 eval "ac_cv_header_$ac_safe=yes" 4685else 4686 echo "$ac_err" >&5 4687 echo "configure: failed program was:" >&5 4688 cat conftest.$ac_ext >&5 4689 rm -rf conftest* 4690 eval "ac_cv_header_$ac_safe=no" 4691fi 4692rm -f conftest* 4693fi 4694if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4695 echo "$ac_t""yes" 1>&6 4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4697 cat >> confdefs.h <<EOF 4698#define $ac_tr_hdr 1 4699EOF 4700 4701else 4702 echo "$ac_t""no" 1>&6 4703fi 4704done 4705 4706 4707# check for ISC (this may also define _POSIX_SOURCE) 4708# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set 4709if test "$ISC" = yes ; then 4710 echo $ac_n "checking for main in -lcposix""... $ac_c" 1>&6 4711echo "configure:4712: checking for main in -lcposix" >&5 4712ac_lib_var=`echo cposix'_'main | sed 'y%./+-%__p_%'` 4713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4714 echo $ac_n "(cached) $ac_c" 1>&6 4715else 4716 ac_save_LIBS="$LIBS" 4717LIBS="-lcposix $LIBS" 4718cat > conftest.$ac_ext <<EOF 4719#line 4720 "configure" 4720#include "confdefs.h" 4721 4722int main() { 4723main() 4724; return 0; } 4725EOF 4726if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4727 rm -rf conftest* 4728 eval "ac_cv_lib_$ac_lib_var=yes" 4729else 4730 echo "configure: failed program was:" >&5 4731 cat conftest.$ac_ext >&5 4732 rm -rf conftest* 4733 eval "ac_cv_lib_$ac_lib_var=no" 4734fi 4735rm -f conftest* 4736LIBS="$ac_save_LIBS" 4737 4738fi 4739if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4740 echo "$ac_t""yes" 1>&6 4741 ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4743 cat >> confdefs.h <<EOF 4744#define $ac_tr_lib 1 4745EOF 4746 4747 LIBS="-lcposix $LIBS" 4748 4749else 4750 echo "$ac_t""no" 1>&6 4751fi 4752 4753 echo $ac_n "checking for bzero in -linet""... $ac_c" 1>&6 4754echo "configure:4755: checking for bzero in -linet" >&5 4755ac_lib_var=`echo inet'_'bzero | sed 'y%./+-%__p_%'` 4756if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4757 echo $ac_n "(cached) $ac_c" 1>&6 4758else 4759 ac_save_LIBS="$LIBS" 4760LIBS="-linet $LIBS" 4761cat > conftest.$ac_ext <<EOF 4762#line 4763 "configure" 4763#include "confdefs.h" 4764/* Override any gcc2 internal prototype to avoid an error. */ 4765/* We use char because int might match the return type of a gcc2 4766 builtin and then its argument prototype would still apply. */ 4767char bzero(); 4768 4769int main() { 4770bzero() 4771; return 0; } 4772EOF 4773if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4774 rm -rf conftest* 4775 eval "ac_cv_lib_$ac_lib_var=yes" 4776else 4777 echo "configure: failed program was:" >&5 4778 cat conftest.$ac_ext >&5 4779 rm -rf conftest* 4780 eval "ac_cv_lib_$ac_lib_var=no" 4781fi 4782rm -f conftest* 4783LIBS="$ac_save_LIBS" 4784 4785fi 4786if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4787 echo "$ac_t""yes" 1>&6 4788 LIBS="$LIBS -linet" 4789else 4790 echo "$ac_t""no" 1>&6 4791fi 4792fi 4793 4794 4795echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6 4796echo "configure:4797: checking if sys/time.h works with sys/select.h" >&5 4797if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then 4798 echo $ac_n "(cached) $ac_c" 1>&6 4799else 4800 4801cat > conftest.$ac_ext <<EOF 4802#line 4803 "configure" 4803#include "confdefs.h" 4804 4805#include <sys/types.h> 4806#ifdef HAVE_SYS_TIME_H 4807#include <sys/time.h> 4808#endif 4809#ifdef HAVE_SYS_SELECT_H 4810#include <sys/select.h> 4811#endif 4812 4813int main() { 4814 4815; return 0; } 4816EOF 4817if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4818 rm -rf conftest* 4819 cf_cv_sys_time_select=yes 4820else 4821 echo "configure: failed program was:" >&5 4822 cat conftest.$ac_ext >&5 4823 rm -rf conftest* 4824 cf_cv_sys_time_select=no 4825fi 4826rm -f conftest* 4827 4828fi 4829 4830echo "$ac_t""$cf_cv_sys_time_select" 1>&6 4831test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF 4832#define HAVE_SYS_TIME_SELECT 1 4833EOF 4834 4835 4836 4837### checks for compiler characteristics 4838ac_ext=c 4839# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 4840ac_cpp='$CPP $CPPFLAGS' 4841ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4842ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4843cross_compiling=$ac_cv_prog_cc_cross 4844 4845echo $ac_n "checking for working const""... $ac_c" 1>&6 4846echo "configure:4847: checking for working const" >&5 4847if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 4848 echo $ac_n "(cached) $ac_c" 1>&6 4849else 4850 cat > conftest.$ac_ext <<EOF 4851#line 4852 "configure" 4852#include "confdefs.h" 4853 4854int main() { 4855 4856/* Ultrix mips cc rejects this. */ 4857typedef int charset[2]; const charset x; 4858/* SunOS 4.1.1 cc rejects this. */ 4859char const *const *ccp; 4860char **p; 4861/* NEC SVR4.0.2 mips cc rejects this. */ 4862struct point {int x, y;}; 4863static struct point const zero = {0,0}; 4864/* AIX XL C 1.02.0.0 rejects this. 4865 It does not let you subtract one const X* pointer from another in an arm 4866 of an if-expression whose if-part is not a constant expression */ 4867const char *g = "string"; 4868ccp = &g + (g ? g-g : 0); 4869/* HPUX 7.0 cc rejects these. */ 4870++ccp; 4871p = (char**) ccp; 4872ccp = (char const *const *) p; 4873{ /* SCO 3.2v4 cc rejects this. */ 4874 char *t; 4875 char const *s = 0 ? (char *) 0 : (char const *) 0; 4876 4877 *t++ = 0; 4878} 4879{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4880 int x[] = {25, 17}; 4881 const int *foo = &x[0]; 4882 ++foo; 4883} 4884{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4885 typedef const int *iptr; 4886 iptr p = 0; 4887 ++p; 4888} 4889{ /* AIX XL C 1.02.0.0 rejects this saying 4890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4891 struct s { int j; const int *ap[3]; }; 4892 struct s *b; b->j = 5; 4893} 4894{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4895 const int foo = 10; 4896} 4897 4898; return 0; } 4899EOF 4900if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4901 rm -rf conftest* 4902 ac_cv_c_const=yes 4903else 4904 echo "configure: failed program was:" >&5 4905 cat conftest.$ac_ext >&5 4906 rm -rf conftest* 4907 ac_cv_c_const=no 4908fi 4909rm -f conftest* 4910fi 4911 4912echo "$ac_t""$ac_cv_c_const" 1>&6 4913if test $ac_cv_c_const = no; then 4914 cat >> confdefs.h <<\EOF 4915#define const 4916EOF 4917 4918fi 4919 4920echo $ac_n "checking for inline""... $ac_c" 1>&6 4921echo "configure:4922: checking for inline" >&5 4922if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 4923 echo $ac_n "(cached) $ac_c" 1>&6 4924else 4925 ac_cv_c_inline=no 4926for ac_kw in inline __inline__ __inline; do 4927 cat > conftest.$ac_ext <<EOF 4928#line 4929 "configure" 4929#include "confdefs.h" 4930 4931int main() { 4932} $ac_kw foo() { 4933; return 0; } 4934EOF 4935if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4936 rm -rf conftest* 4937 ac_cv_c_inline=$ac_kw; break 4938else 4939 echo "configure: failed program was:" >&5 4940 cat conftest.$ac_ext >&5 4941fi 4942rm -f conftest* 4943done 4944 4945fi 4946 4947echo "$ac_t""$ac_cv_c_inline" 1>&6 4948case "$ac_cv_c_inline" in 4949 inline | yes) ;; 4950 no) cat >> confdefs.h <<\EOF 4951#define inline 4952EOF 4953 ;; 4954 *) cat >> confdefs.h <<EOF 4955#define inline $ac_cv_c_inline 4956EOF 4957 ;; 4958esac 4959 4960test "$ac_cv_c_inline" != no && cat >> confdefs.h <<\EOF 4961#define CC_HAS_INLINE_FUNCS 1 4962EOF 4963 4964 4965 4966echo $ac_n "checking if unsigned literals are legal""... $ac_c" 1>&6 4967echo "configure:4968: checking if unsigned literals are legal" >&5 4968if eval "test \"`echo '$''{'cf_cv_unsigned_literals'+set}'`\" = set"; then 4969 echo $ac_n "(cached) $ac_c" 1>&6 4970else 4971 4972 cat > conftest.$ac_ext <<EOF 4973#line 4974 "configure" 4974#include "confdefs.h" 4975 4976int main() { 4977long x = 1L + 1UL + 1U + 1 4978; return 0; } 4979EOF 4980if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4981 rm -rf conftest* 4982 cf_cv_unsigned_literals=yes 4983else 4984 echo "configure: failed program was:" >&5 4985 cat conftest.$ac_ext >&5 4986 rm -rf conftest* 4987 cf_cv_unsigned_literals=no 4988fi 4989rm -f conftest* 4990 4991fi 4992 4993echo "$ac_t""$cf_cv_unsigned_literals" 1>&6 4994 4995 4996 4997echo $ac_n "checking for type of chtype""... $ac_c" 1>&6 4998echo "configure:4999: checking for type of chtype" >&5 4999if eval "test \"`echo '$''{'cf_cv_typeof_chtype'+set}'`\" = set"; then 5000 echo $ac_n "(cached) $ac_c" 1>&6 5001else 5002 5003 if test "$cross_compiling" = yes; then 5004 cf_cv_typeof_chtype=long 5005else 5006 cat > conftest.$ac_ext <<EOF 5007#line 5008 "configure" 5008#include "confdefs.h" 5009 5010#ifdef USE_WIDEC_SUPPORT 5011#include <stddef.h> /* we want wchar_t */ 5012#define WANT_BITS 39 5013#else 5014#define WANT_BITS 31 5015#endif 5016#include <stdio.h> 5017int main() 5018{ 5019 FILE *fp = fopen("cf_test.out", "w"); 5020 if (fp != 0) { 5021 char *result = "long"; 5022#ifdef USE_WIDEC_SUPPORT 5023 /* 5024 * If wchar_t is smaller than a long, it must be an int or a 5025 * short. We prefer not to use a short anyway. 5026 */ 5027 if (sizeof(unsigned long) > sizeof(wchar_t)) 5028 result = "int"; 5029#endif 5030 if (sizeof(unsigned long) > sizeof(unsigned int)) { 5031 int n; 5032 unsigned int x; 5033 for (n = 0; n < WANT_BITS; n++) { 5034 unsigned int y = (x >> n); 5035 if (y != 1 || x == 0) { 5036 x = 0; 5037 break; 5038 } 5039 } 5040 /* 5041 * If x is nonzero, an int is big enough for the bits 5042 * that we want. 5043 */ 5044 result = (x != 0) ? "int" : "long"; 5045 } 5046 fputs(result, fp); 5047 fclose(fp); 5048 } 5049 exit(0); 5050} 5051 5052EOF 5053if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5054then 5055 cf_cv_typeof_chtype=`cat cf_test.out` 5056else 5057 echo "configure: failed program was:" >&5 5058 cat conftest.$ac_ext >&5 5059 rm -fr conftest* 5060 cf_cv_typeof_chtype=long 5061fi 5062rm -fr conftest* 5063fi 5064 5065 rm -f cf_test.out 5066 5067fi 5068 5069echo "$ac_t""$cf_cv_typeof_chtype" 1>&6 5070 5071 5072cat >> confdefs.h <<EOF 5073#define TYPEOF_CHTYPE $cf_cv_typeof_chtype 5074EOF 5075 5076 5077cf_cv_1UL="1" 5078test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U" 5079test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L" 5080 5081 5082 5083 5084 5085echo $ac_n "checking for number of bits in chtype""... $ac_c" 1>&6 5086echo "configure:5087: checking for number of bits in chtype" >&5 5087if eval "test \"`echo '$''{'cf_cv_shift_limit'+set}'`\" = set"; then 5088 echo $ac_n "(cached) $ac_c" 1>&6 5089else 5090 5091 if test "$cross_compiling" = yes; then 5092 cf_cv_shift_limit=32 5093else 5094 cat > conftest.$ac_ext <<EOF 5095#line 5096 "configure" 5096#include "confdefs.h" 5097 5098#include <stdio.h> 5099int main() 5100{ 5101 FILE *fp = fopen("cf_test.out", "w"); 5102 if (fp != 0) { 5103 int n; 5104 unsigned TYPEOF_CHTYPE x = 1L; 5105 for (n = 0; ; n++) { 5106 unsigned long y = (x >> n); 5107 if (y != 1 || x == 0) 5108 break; 5109 x <<= 1; 5110 } 5111 fprintf(fp, "%d", n); 5112 fclose(fp); 5113 } 5114 exit(0); 5115} 5116 5117EOF 5118if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5119then 5120 cf_cv_shift_limit=`cat cf_test.out` 5121else 5122 echo "configure: failed program was:" >&5 5123 cat conftest.$ac_ext >&5 5124 rm -fr conftest* 5125 cf_cv_shift_limit=32 5126fi 5127rm -fr conftest* 5128fi 5129 5130 rm -f cf_test.out 5131 5132fi 5133 5134echo "$ac_t""$cf_cv_shift_limit" 1>&6 5135 5136 5137echo $ac_n "checking for width of character-index""... $ac_c" 1>&6 5138echo "configure:5139: checking for width of character-index" >&5 5139if eval "test \"`echo '$''{'cf_cv_widec_shift'+set}'`\" = set"; then 5140 echo $ac_n "(cached) $ac_c" 1>&6 5141else 5142 5143if test ".$with_widec" = ".yes" ; then 5144 cf_attrs_width=39 5145 if ( expr $cf_cv_shift_limit \> $cf_attrs_width >/dev/null ) 5146 then 5147 cf_cv_widec_shift=`expr 16 + $cf_cv_shift_limit - $cf_attrs_width` 5148 else 5149 cf_cv_widec_shift=16 5150 fi 5151else 5152 cf_cv_widec_shift=8 5153fi 5154 5155fi 5156 5157echo "$ac_t""$cf_cv_widec_shift" 1>&6 5158 5159 5160 5161### Checks for external-data 5162 5163 5164echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6 5165echo "configure:5166: checking if external errno is declared" >&5 5166if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then 5167 echo $ac_n "(cached) $ac_c" 1>&6 5168else 5169 5170 cat > conftest.$ac_ext <<EOF 5171#line 5172 "configure" 5172#include "confdefs.h" 5173 5174#ifdef HAVE_STDLIB_H 5175#include <stdlib.h> 5176#endif 5177#include <stdio.h> 5178#include <sys/types.h> 5179#include <errno.h> 5180int main() { 5181long x = (long) errno 5182; return 0; } 5183EOF 5184if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5185 rm -rf conftest* 5186 eval 'cf_cv_dcl_'errno'=yes' 5187else 5188 echo "configure: failed program was:" >&5 5189 cat conftest.$ac_ext >&5 5190 rm -rf conftest* 5191 eval 'cf_cv_dcl_'errno'=no' 5192fi 5193rm -f conftest* 5194 5195fi 5196 5197 5198eval 'cf_result=$cf_cv_dcl_'errno 5199echo "$ac_t""$cf_result" 1>&6 5200 5201if test "$cf_result" = no ; then 5202 eval 'cf_result=DECL_'errno 5203 5204cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 5205 5206 cat >> confdefs.h <<EOF 5207#define $cf_result 1 5208EOF 5209 5210fi 5211 5212# It's possible (for near-UNIX clones) that the data doesn't exist 5213 5214echo $ac_n "checking if external errno exists""... $ac_c" 1>&6 5215echo "configure:5216: checking if external errno exists" >&5 5216if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then 5217 echo $ac_n "(cached) $ac_c" 1>&6 5218else 5219 5220 cat > conftest.$ac_ext <<EOF 5221#line 5222 "configure" 5222#include "confdefs.h" 5223 5224#undef errno 5225extern int errno; 5226 5227int main() { 5228errno = 2 5229; return 0; } 5230EOF 5231if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5232 rm -rf conftest* 5233 eval 'cf_cv_have_'errno'=yes' 5234else 5235 echo "configure: failed program was:" >&5 5236 cat conftest.$ac_ext >&5 5237 rm -rf conftest* 5238 eval 'cf_cv_have_'errno'=no' 5239fi 5240rm -f conftest* 5241fi 5242 5243 5244eval 'cf_result=$cf_cv_have_'errno 5245echo "$ac_t""$cf_result" 1>&6 5246 5247if test "$cf_result" = yes ; then 5248 eval 'cf_result=HAVE_'errno 5249 5250cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 5251 5252 cat >> confdefs.h <<EOF 5253#define $cf_result 1 5254EOF 5255 5256fi 5257 5258 5259 5260 5261 5262echo $ac_n "checking if data-only library module links""... $ac_c" 1>&6 5263echo "configure:5264: checking if data-only library module links" >&5 5264if eval "test \"`echo '$''{'cf_cv_link_dataonly'+set}'`\" = set"; then 5265 echo $ac_n "(cached) $ac_c" 1>&6 5266else 5267 5268 rm -f conftest.a 5269 cat >conftest.$ac_ext <<EOF 5270#line 5271 "configure" 5271int testdata[3] = { 123, 456, 789 }; 5272EOF 5273 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then 5274 mv conftest.o data.o && \ 5275 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null 5276 fi 5277 rm -f conftest.$ac_ext data.o 5278 cat >conftest.$ac_ext <<EOF 5279#line 5280 "configure" 5280int testfunc() 5281{ 5282#if defined(NeXT) 5283 exit(1); /* I'm told this linker is broken */ 5284#else 5285 extern int testdata[3]; 5286 return testdata[0] == 123 5287 && testdata[1] == 456 5288 && testdata[2] == 789; 5289#endif 5290} 5291EOF 5292 if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5293 mv conftest.o func.o && \ 5294 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null 5295 fi 5296 rm -f conftest.$ac_ext func.o 5297 ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null 5298 cf_saveLIBS="$LIBS" 5299 LIBS="conftest.a $LIBS" 5300 if test "$cross_compiling" = yes; then 5301 cf_cv_link_dataonly=unknown 5302else 5303 cat > conftest.$ac_ext <<EOF 5304#line 5305 "configure" 5305#include "confdefs.h" 5306 5307 int main() 5308 { 5309 extern int testfunc(); 5310 exit (!testfunc()); 5311 } 5312 5313EOF 5314if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5315then 5316 cf_cv_link_dataonly=yes 5317else 5318 echo "configure: failed program was:" >&5 5319 cat conftest.$ac_ext >&5 5320 rm -fr conftest* 5321 cf_cv_link_dataonly=no 5322fi 5323rm -fr conftest* 5324fi 5325 5326 LIBS="$cf_saveLIBS" 5327 5328fi 5329 5330echo "$ac_t""$cf_cv_link_dataonly" 1>&6 5331test "$cf_cv_link_dataonly" = no && cat >> confdefs.h <<\EOF 5332#define BROKEN_LINKER 1 5333EOF 5334 5335 5336 5337### Checks for library functions. 5338for ac_func in \ 5339getcwd \ 5340getegid \ 5341geteuid \ 5342getttynam \ 5343issetugid \ 5344memccpy \ 5345mkstemp \ 5346nanosleep \ 5347poll \ 5348remove \ 5349select \ 5350setbuf \ 5351setbuffer \ 5352setvbuf \ 5353sigaction \ 5354sigvec \ 5355strdup \ 5356strstr \ 5357tcgetpgrp \ 5358times \ 5359vfscanf \ 5360vsnprintf \ 5361vsscanf \ 5362 5363do 5364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5365echo "configure:5366: checking for $ac_func" >&5 5366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5367 echo $ac_n "(cached) $ac_c" 1>&6 5368else 5369 cat > conftest.$ac_ext <<EOF 5370#line 5371 "configure" 5371#include "confdefs.h" 5372/* System header to define __stub macros and hopefully few prototypes, 5373 which can conflict with char $ac_func(); below. */ 5374#include <assert.h> 5375/* Override any gcc2 internal prototype to avoid an error. */ 5376/* We use char because int might match the return type of a gcc2 5377 builtin and then its argument prototype would still apply. */ 5378char $ac_func(); 5379 5380int main() { 5381 5382/* The GNU C library defines this for functions which it implements 5383 to always fail with ENOSYS. Some functions are actually named 5384 something starting with __ and the normal name is an alias. */ 5385#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5386choke me 5387#else 5388$ac_func(); 5389#endif 5390 5391; return 0; } 5392EOF 5393if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5394 rm -rf conftest* 5395 eval "ac_cv_func_$ac_func=yes" 5396else 5397 echo "configure: failed program was:" >&5 5398 cat conftest.$ac_ext >&5 5399 rm -rf conftest* 5400 eval "ac_cv_func_$ac_func=no" 5401fi 5402rm -f conftest* 5403fi 5404 5405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5406 echo "$ac_t""yes" 1>&6 5407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5408 cat >> confdefs.h <<EOF 5409#define $ac_tr_func 1 5410EOF 5411 5412else 5413 echo "$ac_t""no" 1>&6 5414fi 5415done 5416 5417if test "$with_getcap" = "yes" ; then 5418 5419echo $ac_n "checking for terminal-capability database functions""... $ac_c" 1>&6 5420echo "configure:5421: checking for terminal-capability database functions" >&5 5421if eval "test \"`echo '$''{'cf_cv_cgetent'+set}'`\" = set"; then 5422 echo $ac_n "(cached) $ac_c" 1>&6 5423else 5424 5425cat > conftest.$ac_ext <<EOF 5426#line 5427 "configure" 5427#include "confdefs.h" 5428 5429#include <stdlib.h> 5430int main() { 5431 5432 char temp[128]; 5433 char *buf = temp; 5434 char *db_array = temp; 5435 cgetent(&buf, /* int *, */ &db_array, "vt100"); 5436 cgetcap(buf, "tc", '='); 5437 cgetmatch(buf, "tc"); 5438 5439; return 0; } 5440EOF 5441if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5442 rm -rf conftest* 5443 cf_cv_cgetent=yes 5444else 5445 echo "configure: failed program was:" >&5 5446 cat conftest.$ac_ext >&5 5447 rm -rf conftest* 5448 cf_cv_cgetent=no 5449fi 5450rm -f conftest* 5451 5452fi 5453 5454echo "$ac_t""$cf_cv_cgetent" 1>&6 5455test "$cf_cv_cgetent" = yes && cat >> confdefs.h <<\EOF 5456#define HAVE_BSD_CGETENT 1 5457EOF 5458 5459 5460fi 5461 5462 5463echo $ac_n "checking for isascii""... $ac_c" 1>&6 5464echo "configure:5465: checking for isascii" >&5 5465if eval "test \"`echo '$''{'cf_cv_have_isascii'+set}'`\" = set"; then 5466 echo $ac_n "(cached) $ac_c" 1>&6 5467else 5468 5469 cat > conftest.$ac_ext <<EOF 5470#line 5471 "configure" 5471#include "confdefs.h" 5472#include <ctype.h> 5473int main() { 5474int x = isascii(' ') 5475; return 0; } 5476EOF 5477if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5478 rm -rf conftest* 5479 cf_cv_have_isascii=yes 5480else 5481 echo "configure: failed program was:" >&5 5482 cat conftest.$ac_ext >&5 5483 rm -rf conftest* 5484 cf_cv_have_isascii=no 5485fi 5486rm -f conftest* 5487 5488fi 5489echo "$ac_t""$cf_cv_have_isascii" 1>&6 5490test "$cf_cv_have_isascii" = yes && cat >> confdefs.h <<\EOF 5491#define HAVE_ISASCII 1 5492EOF 5493 5494 5495 5496if test "$ac_cv_func_sigaction" = yes; then 5497echo $ac_n "checking whether sigaction needs _POSIX_SOURCE""... $ac_c" 1>&6 5498echo "configure:5499: checking whether sigaction needs _POSIX_SOURCE" >&5 5499cat > conftest.$ac_ext <<EOF 5500#line 5501 "configure" 5501#include "confdefs.h" 5502 5503#include <sys/types.h> 5504#include <signal.h> 5505int main() { 5506struct sigaction act 5507; return 0; } 5508EOF 5509if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5510 rm -rf conftest* 5511 sigact_bad=no 5512else 5513 echo "configure: failed program was:" >&5 5514 cat conftest.$ac_ext >&5 5515 rm -rf conftest* 5516 5517cat > conftest.$ac_ext <<EOF 5518#line 5519 "configure" 5519#include "confdefs.h" 5520 5521#define _POSIX_SOURCE 5522#include <sys/types.h> 5523#include <signal.h> 5524int main() { 5525struct sigaction act 5526; return 0; } 5527EOF 5528if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5529 rm -rf conftest* 5530 sigact_bad=yes 5531 cat >> confdefs.h <<\EOF 5532#define SVR4_ACTION 1 5533EOF 5534 5535else 5536 echo "configure: failed program was:" >&5 5537 cat conftest.$ac_ext >&5 5538 rm -rf conftest* 5539 sigact_bad=unknown 5540fi 5541rm -f conftest* 5542fi 5543rm -f conftest* 5544echo "$ac_t""$sigact_bad" 1>&6 5545fi 5546 5547 5548for ac_hdr in \ 5549termio.h \ 5550termios.h \ 5551unistd.h \ 5552 5553do 5554ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5555echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5556echo "configure:5557: checking for $ac_hdr" >&5 5557if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5558 echo $ac_n "(cached) $ac_c" 1>&6 5559else 5560 cat > conftest.$ac_ext <<EOF 5561#line 5562 "configure" 5562#include "confdefs.h" 5563#include <$ac_hdr> 5564EOF 5565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5566{ (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5568if test -z "$ac_err"; then 5569 rm -rf conftest* 5570 eval "ac_cv_header_$ac_safe=yes" 5571else 5572 echo "$ac_err" >&5 5573 echo "configure: failed program was:" >&5 5574 cat conftest.$ac_ext >&5 5575 rm -rf conftest* 5576 eval "ac_cv_header_$ac_safe=no" 5577fi 5578rm -f conftest* 5579fi 5580if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5581 echo "$ac_t""yes" 1>&6 5582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5583 cat >> confdefs.h <<EOF 5584#define $ac_tr_hdr 1 5585EOF 5586 5587else 5588 echo "$ac_t""no" 1>&6 5589fi 5590done 5591 5592if test "$ISC" = yes ; then 5593 for ac_hdr in sys/termio.h 5594do 5595ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5596echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5597echo "configure:5598: checking for $ac_hdr" >&5 5598if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5599 echo $ac_n "(cached) $ac_c" 1>&6 5600else 5601 cat > conftest.$ac_ext <<EOF 5602#line 5603 "configure" 5603#include "confdefs.h" 5604#include <$ac_hdr> 5605EOF 5606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5607{ (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5609if test -z "$ac_err"; then 5610 rm -rf conftest* 5611 eval "ac_cv_header_$ac_safe=yes" 5612else 5613 echo "$ac_err" >&5 5614 echo "configure: failed program was:" >&5 5615 cat conftest.$ac_ext >&5 5616 rm -rf conftest* 5617 eval "ac_cv_header_$ac_safe=no" 5618fi 5619rm -f conftest* 5620fi 5621if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5622 echo "$ac_t""yes" 1>&6 5623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5624 cat >> confdefs.h <<EOF 5625#define $ac_tr_hdr 1 5626EOF 5627 5628else 5629 echo "$ac_t""no" 1>&6 5630fi 5631done 5632 5633fi 5634if test "$ac_cv_header_termios_h" = yes ; then 5635 case "$CFLAGS" in 5636 *-D_POSIX_SOURCE*) 5637 termios_bad=dunno ;; 5638 *) termios_bad=maybe ;; 5639 esac 5640 if test "$termios_bad" = maybe ; then 5641 echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6 5642echo "configure:5643: checking whether termios.h needs _POSIX_SOURCE" >&5 5643 cat > conftest.$ac_ext <<EOF 5644#line 5645 "configure" 5645#include "confdefs.h" 5646#include <termios.h> 5647int main() { 5648struct termios foo; int x = foo.c_iflag 5649; return 0; } 5650EOF 5651if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5652 rm -rf conftest* 5653 termios_bad=no 5654else 5655 echo "configure: failed program was:" >&5 5656 cat conftest.$ac_ext >&5 5657 rm -rf conftest* 5658 5659 cat > conftest.$ac_ext <<EOF 5660#line 5661 "configure" 5661#include "confdefs.h" 5662 5663#define _POSIX_SOURCE 5664#include <termios.h> 5665int main() { 5666struct termios foo; int x = foo.c_iflag 5667; return 0; } 5668EOF 5669if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5670 rm -rf conftest* 5671 termios_bad=unknown 5672else 5673 echo "configure: failed program was:" >&5 5674 cat conftest.$ac_ext >&5 5675 rm -rf conftest* 5676 termios_bad=yes cat >> confdefs.h <<\EOF 5677#define SVR4_TERMIO 1 5678EOF 5679 5680fi 5681rm -f conftest* 5682 5683fi 5684rm -f conftest* 5685 echo "$ac_t""$termios_bad" 1>&6 5686 fi 5687fi 5688 5689 5690 5691echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6 5692echo "configure:5693: checking for tcgetattr" >&5 5693if eval "test \"`echo '$''{'cf_cv_have_tcgetattr'+set}'`\" = set"; then 5694 echo $ac_n "(cached) $ac_c" 1>&6 5695else 5696 5697cat > conftest.$ac_ext <<EOF 5698#line 5699 "configure" 5699#include "confdefs.h" 5700 5701#include <sys/types.h> 5702#ifdef HAVE_UNISTD_H 5703#include <unistd.h> 5704#endif 5705#ifdef HAVE_TERMIOS_H 5706#include <termios.h> 5707#define TTY struct termios 5708#else 5709#ifdef HAVE_TERMIO_H 5710#include <termio.h> 5711#define TTY struct termio 5712#endif 5713#endif 5714 5715int main() { 5716 5717TTY foo; 5718tcgetattr(1, &foo); 5719; return 0; } 5720EOF 5721if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5722 rm -rf conftest* 5723 cf_cv_have_tcgetattr=yes 5724else 5725 echo "configure: failed program was:" >&5 5726 cat conftest.$ac_ext >&5 5727 rm -rf conftest* 5728 cf_cv_have_tcgetattr=no 5729fi 5730rm -f conftest* 5731fi 5732 5733echo "$ac_t""$cf_cv_have_tcgetattr" 1>&6 5734test "$cf_cv_have_tcgetattr" = yes && cat >> confdefs.h <<\EOF 5735#define HAVE_TCGETATTR 1 5736EOF 5737 5738 5739 5740if test "$cross_compiling" = yes ; then 5741 echo "configure: warning: cross compiling: assume setvbuf params not reversed" 1>&2 5742else 5743 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 5744echo "configure:5745: checking whether setvbuf arguments are reversed" >&5 5745if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then 5746 echo $ac_n "(cached) $ac_c" 1>&6 5747else 5748 if test "$cross_compiling" = yes; then 5749 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5750else 5751 cat > conftest.$ac_ext <<EOF 5752#line 5753 "configure" 5753#include "confdefs.h" 5754#include <stdio.h> 5755/* If setvbuf has the reversed format, exit 0. */ 5756main () { 5757 /* This call has the arguments reversed. 5758 A reversed system may check and see that the address of main 5759 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 5760 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 5761 exit(1); 5762 putc('\r', stdout); 5763 exit(0); /* Non-reversed systems segv here. */ 5764} 5765EOF 5766if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5767then 5768 ac_cv_func_setvbuf_reversed=yes 5769else 5770 echo "configure: failed program was:" >&5 5771 cat conftest.$ac_ext >&5 5772 rm -fr conftest* 5773 ac_cv_func_setvbuf_reversed=no 5774fi 5775rm -fr conftest* 5776fi 5777 5778rm -f core core.* *.core 5779fi 5780 5781echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 5782if test $ac_cv_func_setvbuf_reversed = yes; then 5783 cat >> confdefs.h <<\EOF 5784#define SETVBUF_REVERSED 1 5785EOF 5786 5787fi 5788 5789fi 5790echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 5791echo "configure:5792: checking return type of signal handlers" >&5 5792if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 5793 echo $ac_n "(cached) $ac_c" 1>&6 5794else 5795 cat > conftest.$ac_ext <<EOF 5796#line 5797 "configure" 5797#include "confdefs.h" 5798#include <sys/types.h> 5799#include <signal.h> 5800#ifdef signal 5801#undef signal 5802#endif 5803#ifdef __cplusplus 5804extern "C" void (*signal (int, void (*)(int)))(int); 5805#else 5806void (*signal ()) (); 5807#endif 5808 5809int main() { 5810int i; 5811; return 0; } 5812EOF 5813if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5814 rm -rf conftest* 5815 ac_cv_type_signal=void 5816else 5817 echo "configure: failed program was:" >&5 5818 cat conftest.$ac_ext >&5 5819 rm -rf conftest* 5820 ac_cv_type_signal=int 5821fi 5822rm -f conftest* 5823fi 5824 5825echo "$ac_t""$ac_cv_type_signal" 1>&6 5826cat >> confdefs.h <<EOF 5827#define RETSIGTYPE $ac_cv_type_signal 5828EOF 5829 5830 5831 5832echo $ac_n "checking for type sigaction_t""... $ac_c" 1>&6 5833echo "configure:5834: checking for type sigaction_t" >&5 5834if eval "test \"`echo '$''{'cf_cv_type_sigaction'+set}'`\" = set"; then 5835 echo $ac_n "(cached) $ac_c" 1>&6 5836else 5837 5838 cat > conftest.$ac_ext <<EOF 5839#line 5840 "configure" 5840#include "confdefs.h" 5841 5842#include <signal.h> 5843int main() { 5844sigaction_t x 5845; return 0; } 5846EOF 5847if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5848 rm -rf conftest* 5849 cf_cv_type_sigaction=yes 5850else 5851 echo "configure: failed program was:" >&5 5852 cat conftest.$ac_ext >&5 5853 rm -rf conftest* 5854 cf_cv_type_sigaction=no 5855fi 5856rm -f conftest* 5857fi 5858 5859echo "$ac_t""$cf_cv_type_sigaction" 1>&6 5860test "$cf_cv_type_sigaction" = yes && cat >> confdefs.h <<\EOF 5861#define HAVE_TYPE_SIGACTION 1 5862EOF 5863 5864 5865 5866 5867echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6 5868echo "configure:5869: checking declaration of size-change" >&5 5869if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then 5870 echo $ac_n "(cached) $ac_c" 1>&6 5871else 5872 5873 cf_cv_sizechange=unknown 5874 cf_save_CFLAGS="$CFLAGS" 5875 5876for cf_opts in "" "NEED_PTEM_H" 5877do 5878 5879 CFLAGS="$cf_save_CFLAGS" 5880 test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts" 5881 cat > conftest.$ac_ext <<EOF 5882#line 5883 "configure" 5883#include "confdefs.h" 5884#include <sys/types.h> 5885#ifdef HAVE_TERMIOS_H 5886#include <termios.h> 5887#else 5888#ifdef HAVE_TERMIO_H 5889#include <termio.h> 5890#endif 5891#endif 5892#ifdef NEED_PTEM_H 5893/* This is a workaround for SCO: they neglected to define struct winsize in 5894 * termios.h -- it's only in termio.h and ptem.h 5895 */ 5896#include <sys/stream.h> 5897#include <sys/ptem.h> 5898#endif 5899#if !defined(sun) || !defined(HAVE_TERMIOS_H) 5900#include <sys/ioctl.h> 5901#endif 5902 5903int main() { 5904 5905#ifdef TIOCGSIZE 5906 struct ttysize win; /* FIXME: what system is this? */ 5907 int y = win.ts_lines; 5908 int x = win.ts_cols; 5909#else 5910#ifdef TIOCGWINSZ 5911 struct winsize win; 5912 int y = win.ws_row; 5913 int x = win.ws_col; 5914#else 5915 no TIOCGSIZE or TIOCGWINSZ 5916#endif /* TIOCGWINSZ */ 5917#endif /* TIOCGSIZE */ 5918 5919; return 0; } 5920EOF 5921if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5922 rm -rf conftest* 5923 cf_cv_sizechange=yes 5924else 5925 echo "configure: failed program was:" >&5 5926 cat conftest.$ac_ext >&5 5927 rm -rf conftest* 5928 cf_cv_sizechange=no 5929fi 5930rm -f conftest* 5931 5932 CFLAGS="$cf_save_CFLAGS" 5933 if test "$cf_cv_sizechange" = yes ; then 5934 echo "size-change succeeded ($cf_opts)" >&5 5935 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts" 5936 break 5937 fi 5938done 5939 5940fi 5941 5942echo "$ac_t""$cf_cv_sizechange" 1>&6 5943if test "$cf_cv_sizechange" != no ; then 5944 cat >> confdefs.h <<\EOF 5945#define HAVE_SIZECHANGE 1 5946EOF 5947 5948 case $cf_cv_sizechange in #(vi 5949 NEED*) 5950 cat >> confdefs.h <<EOF 5951#define $cf_cv_sizechange 1 5952EOF 5953 5954 ;; 5955 esac 5956fi 5957 5958 5959echo $ac_n "checking for memmove""... $ac_c" 1>&6 5960echo "configure:5961: checking for memmove" >&5 5961if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then 5962 echo $ac_n "(cached) $ac_c" 1>&6 5963else 5964 cat > conftest.$ac_ext <<EOF 5965#line 5966 "configure" 5966#include "confdefs.h" 5967/* System header to define __stub macros and hopefully few prototypes, 5968 which can conflict with char memmove(); below. */ 5969#include <assert.h> 5970/* Override any gcc2 internal prototype to avoid an error. */ 5971/* We use char because int might match the return type of a gcc2 5972 builtin and then its argument prototype would still apply. */ 5973char memmove(); 5974 5975int main() { 5976 5977/* The GNU C library defines this for functions which it implements 5978 to always fail with ENOSYS. Some functions are actually named 5979 something starting with __ and the normal name is an alias. */ 5980#if defined (__stub_memmove) || defined (__stub___memmove) 5981choke me 5982#else 5983memmove(); 5984#endif 5985 5986; return 0; } 5987EOF 5988if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5989 rm -rf conftest* 5990 eval "ac_cv_func_memmove=yes" 5991else 5992 echo "configure: failed program was:" >&5 5993 cat conftest.$ac_ext >&5 5994 rm -rf conftest* 5995 eval "ac_cv_func_memmove=no" 5996fi 5997rm -f conftest* 5998fi 5999 6000if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then 6001 echo "$ac_t""yes" 1>&6 6002 : 6003else 6004 echo "$ac_t""no" 1>&6 6005 6006echo $ac_n "checking for bcopy""... $ac_c" 1>&6 6007echo "configure:6008: checking for bcopy" >&5 6008if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then 6009 echo $ac_n "(cached) $ac_c" 1>&6 6010else 6011 cat > conftest.$ac_ext <<EOF 6012#line 6013 "configure" 6013#include "confdefs.h" 6014/* System header to define __stub macros and hopefully few prototypes, 6015 which can conflict with char bcopy(); below. */ 6016#include <assert.h> 6017/* Override any gcc2 internal prototype to avoid an error. */ 6018/* We use char because int might match the return type of a gcc2 6019 builtin and then its argument prototype would still apply. */ 6020char bcopy(); 6021 6022int main() { 6023 6024/* The GNU C library defines this for functions which it implements 6025 to always fail with ENOSYS. Some functions are actually named 6026 something starting with __ and the normal name is an alias. */ 6027#if defined (__stub_bcopy) || defined (__stub___bcopy) 6028choke me 6029#else 6030bcopy(); 6031#endif 6032 6033; return 0; } 6034EOF 6035if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6036 rm -rf conftest* 6037 eval "ac_cv_func_bcopy=yes" 6038else 6039 echo "configure: failed program was:" >&5 6040 cat conftest.$ac_ext >&5 6041 rm -rf conftest* 6042 eval "ac_cv_func_bcopy=no" 6043fi 6044rm -f conftest* 6045fi 6046 6047if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then 6048 echo "$ac_t""yes" 1>&6 6049 6050 echo $ac_n "checking if bcopy does overlapping moves""... $ac_c" 1>&6 6051echo "configure:6052: checking if bcopy does overlapping moves" >&5 6052if eval "test \"`echo '$''{'cf_cv_good_bcopy'+set}'`\" = set"; then 6053 echo $ac_n "(cached) $ac_c" 1>&6 6054else 6055 6056 if test "$cross_compiling" = yes; then 6057 cf_cv_good_bcopy=unknown 6058else 6059 cat > conftest.$ac_ext <<EOF 6060#line 6061 "configure" 6061#include "confdefs.h" 6062 6063int main() { 6064 static char data[] = "abcdefghijklmnopqrstuwwxyz"; 6065 char temp[40]; 6066 bcopy(data, temp, sizeof(data)); 6067 bcopy(temp+10, temp, 15); 6068 bcopy(temp+5, temp+15, 10); 6069 exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz")); 6070} 6071 6072EOF 6073if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6074then 6075 cf_cv_good_bcopy=yes 6076else 6077 echo "configure: failed program was:" >&5 6078 cat conftest.$ac_ext >&5 6079 rm -fr conftest* 6080 cf_cv_good_bcopy=no 6081fi 6082rm -fr conftest* 6083fi 6084 6085 6086fi 6087 6088echo "$ac_t""$cf_cv_good_bcopy" 1>&6 6089 6090else 6091 echo "$ac_t""no" 1>&6 6092cf_cv_good_bcopy=no 6093fi 6094 6095 if test "$cf_cv_good_bcopy" = yes ; then 6096 cat >> confdefs.h <<\EOF 6097#define USE_OK_BCOPY 1 6098EOF 6099 6100 else 6101 cat >> confdefs.h <<\EOF 6102#define USE_MY_MEMMOVE 1 6103EOF 6104 6105 fi 6106 6107fi 6108 6109 6110echo $ac_n "checking if poll really works""... $ac_c" 1>&6 6111echo "configure:6112: checking if poll really works" >&5 6112if eval "test \"`echo '$''{'cf_cv_working_poll'+set}'`\" = set"; then 6113 echo $ac_n "(cached) $ac_c" 1>&6 6114else 6115 6116if test "$cross_compiling" = yes; then 6117 cf_cv_working_poll=unknown 6118else 6119 cat > conftest.$ac_ext <<EOF 6120#line 6121 "configure" 6121#include "confdefs.h" 6122 6123#include <stdio.h> 6124#ifdef HAVE_POLL_H 6125#include <poll.h> 6126#else 6127#include <sys/poll.h> 6128#endif 6129int main() { 6130 struct pollfd myfds; 6131 int ret; 6132 6133 myfds.fd = 0; 6134 myfds.events = POLLIN; 6135 6136 ret = poll(&myfds, 1, 100); 6137 exit(ret != 0); 6138} 6139EOF 6140if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6141then 6142 cf_cv_working_poll=yes 6143else 6144 echo "configure: failed program was:" >&5 6145 cat conftest.$ac_ext >&5 6146 rm -fr conftest* 6147 cf_cv_working_poll=no 6148fi 6149rm -fr conftest* 6150fi 6151 6152fi 6153 6154echo "$ac_t""$cf_cv_working_poll" 1>&6 6155test "$cf_cv_working_poll" = "yes" && cat >> confdefs.h <<\EOF 6156#define HAVE_WORKING_POLL 1 6157EOF 6158 6159 6160 6161if test -z "$cf_user_CFLAGS" ; then 6162 CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'` 6163 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'` 6164fi 6165 6166 6167echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6 6168echo "configure:6169: checking for builtin bool type" >&5 6169if eval "test \"`echo '$''{'cf_cv_cc_bool_type'+set}'`\" = set"; then 6170 echo $ac_n "(cached) $ac_c" 1>&6 6171else 6172 6173 cat > conftest.$ac_ext <<EOF 6174#line 6175 "configure" 6175#include "confdefs.h" 6176 6177#include <stdio.h> 6178#include <sys/types.h> 6179 6180int main() { 6181bool x = false 6182; return 0; } 6183EOF 6184if { (eval echo configure:6185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6185 rm -rf conftest* 6186 cf_cv_cc_bool_type=1 6187else 6188 echo "configure: failed program was:" >&5 6189 cat conftest.$ac_ext >&5 6190 rm -rf conftest* 6191 cf_cv_cc_bool_type=0 6192fi 6193rm -f conftest* 6194 6195fi 6196 6197if test "$cf_cv_cc_bool_type" = 1 6198then echo "$ac_t""yes" 1>&6 6199else echo "$ac_t""no" 1>&6 6200fi 6201 6202if test -n "$CXX" ; then 6203 ac_ext=C 6204# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6205ac_cpp='$CXXCPP $CPPFLAGS' 6206ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6207ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6208cross_compiling=$ac_cv_prog_cxx_cross 6209 6210 6211if test -n "$GXX" ; then 6212case $cf_cv_system_name in #(vi 6213os2*) #(vi 6214 cf_stdcpp_libname=stdcpp 6215 ;; 6216*) 6217 cf_stdcpp_libname=stdc++ 6218 ;; 6219esac 6220echo $ac_n "checking for library $cf_stdcpp_libname""... $ac_c" 1>&6 6221echo "configure:6222: checking for library $cf_stdcpp_libname" >&5 6222if eval "test \"`echo '$''{'cf_cv_libstdcpp'+set}'`\" = set"; then 6223 echo $ac_n "(cached) $ac_c" 1>&6 6224else 6225 6226 cf_save="$LIBS" 6227 LIBS="$LIBS -l$cf_stdcpp_libname" 6228cat > conftest.$ac_ext <<EOF 6229#line 6230 "configure" 6230#include "confdefs.h" 6231 6232#include <strstream.h> 6233int main() { 6234 6235char buf[80]; 6236strstreambuf foo(buf, sizeof(buf)) 6237 6238; return 0; } 6239EOF 6240if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6241 rm -rf conftest* 6242 cf_cv_libstdcpp=yes 6243else 6244 echo "configure: failed program was:" >&5 6245 cat conftest.$ac_ext >&5 6246 rm -rf conftest* 6247 cf_cv_libstdcpp=no 6248fi 6249rm -f conftest* 6250 LIBS="$cf_save" 6251 6252fi 6253 6254echo "$ac_t""$cf_cv_libstdcpp" 1>&6 6255test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname" 6256fi 6257 6258 if test "$GXX" = yes; then 6259 case "`${CXX-g++} --version`" in 6260 1*|2.0-6*) 6261 cf_cxx_library=yes 6262 ;; 6263 2.7*) 6264 6265cf_cxx_library=unknown 6266case $cf_cv_system_name in #(vi 6267os2*) #(vi 6268 cf_gpp_libname=gpp 6269 ;; 6270*) 6271 cf_gpp_libname=g++ 6272 ;; 6273esac 6274if test "$ac_cv_prog_gxx" = yes; then 6275 echo $ac_n "checking for lib$cf_gpp_libname""... $ac_c" 1>&6 6276echo "configure:6277: checking for lib$cf_gpp_libname" >&5 6277 cf_save="$LIBS" 6278 LIBS="$LIBS -l$cf_gpp_libname" 6279 cat > conftest.$ac_ext <<EOF 6280#line 6281 "configure" 6281#include "confdefs.h" 6282 6283#include <$cf_gpp_libname/builtin.h> 6284 6285int main() { 6286two_arg_error_handler_t foo2 = lib_error_handler 6287; return 0; } 6288EOF 6289if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6290 rm -rf conftest* 6291 cf_cxx_library=yes 6292 CXXLIBS="$CXXLIBS -l$cf_gpp_libname" 6293 if test "$cf_gpp_libname" = cpp ; then 6294 cat >> confdefs.h <<\EOF 6295#define HAVE_GPP_BUILTIN_H 1 6296EOF 6297 6298 else 6299 cat >> confdefs.h <<\EOF 6300#define HAVE_GXX_BUILTIN_H 1 6301EOF 6302 6303 fi 6304else 6305 echo "configure: failed program was:" >&5 6306 cat conftest.$ac_ext >&5 6307 rm -rf conftest* 6308 cat > conftest.$ac_ext <<EOF 6309#line 6310 "configure" 6310#include "confdefs.h" 6311 6312#include <builtin.h> 6313 6314int main() { 6315two_arg_error_handler_t foo2 = lib_error_handler 6316; return 0; } 6317EOF 6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6319 rm -rf conftest* 6320 cf_cxx_library=yes 6321 CXXLIBS="$CXXLIBS -l$cf_gpp_libname" 6322 cat >> confdefs.h <<\EOF 6323#define HAVE_BUILTIN_H 1 6324EOF 6325 6326else 6327 echo "configure: failed program was:" >&5 6328 cat conftest.$ac_ext >&5 6329 rm -rf conftest* 6330 cf_cxx_library=no 6331fi 6332rm -f conftest* 6333fi 6334rm -f conftest* 6335 LIBS="$cf_save" 6336 echo "$ac_t""$cf_cxx_library" 1>&6 6337fi 6338 6339 ;; 6340 *) 6341 cf_cxx_library=no 6342 ;; 6343 esac 6344 else 6345 cf_cxx_library=no 6346 fi 6347 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 6348echo "configure:6349: checking how to run the C++ preprocessor" >&5 6349if test -z "$CXXCPP"; then 6350if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 6351 echo $ac_n "(cached) $ac_c" 1>&6 6352else 6353 ac_ext=C 6354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6355ac_cpp='$CXXCPP $CPPFLAGS' 6356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6358cross_compiling=$ac_cv_prog_cxx_cross 6359 CXXCPP="${CXX-g++} -E" 6360 cat > conftest.$ac_ext <<EOF 6361#line 6362 "configure" 6362#include "confdefs.h" 6363#include <stdlib.h> 6364EOF 6365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6366{ (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6368if test -z "$ac_err"; then 6369 : 6370else 6371 echo "$ac_err" >&5 6372 echo "configure: failed program was:" >&5 6373 cat conftest.$ac_ext >&5 6374 rm -rf conftest* 6375 CXXCPP=/lib/cpp 6376fi 6377rm -f conftest* 6378 ac_cv_prog_CXXCPP="$CXXCPP" 6379ac_ext=C 6380# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6381ac_cpp='$CXXCPP $CPPFLAGS' 6382ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6383ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6384cross_compiling=$ac_cv_prog_cxx_cross 6385fi 6386fi 6387CXXCPP="$ac_cv_prog_CXXCPP" 6388echo "$ac_t""$CXXCPP" 1>&6 6389 6390for ac_hdr in typeinfo 6391do 6392ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6393echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6394echo "configure:6395: checking for $ac_hdr" >&5 6395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6396 echo $ac_n "(cached) $ac_c" 1>&6 6397else 6398 cat > conftest.$ac_ext <<EOF 6399#line 6400 "configure" 6400#include "confdefs.h" 6401#include <$ac_hdr> 6402EOF 6403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6404{ (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6406if test -z "$ac_err"; then 6407 rm -rf conftest* 6408 eval "ac_cv_header_$ac_safe=yes" 6409else 6410 echo "$ac_err" >&5 6411 echo "configure: failed program was:" >&5 6412 cat conftest.$ac_ext >&5 6413 rm -rf conftest* 6414 eval "ac_cv_header_$ac_safe=no" 6415fi 6416rm -f conftest* 6417fi 6418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6419 echo "$ac_t""yes" 1>&6 6420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6421 cat >> confdefs.h <<EOF 6422#define $ac_tr_hdr 1 6423EOF 6424 6425else 6426 echo "$ac_t""no" 1>&6 6427fi 6428done 6429 6430 6431echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6 6432echo "configure:6433: checking for builtin bool type" >&5 6433if eval "test \"`echo '$''{'cf_cv_builtin_bool'+set}'`\" = set"; then 6434 echo $ac_n "(cached) $ac_c" 1>&6 6435else 6436 6437 cat > conftest.$ac_ext <<EOF 6438#line 6439 "configure" 6439#include "confdefs.h" 6440 6441#include <stdio.h> 6442#include <sys/types.h> 6443 6444int main() { 6445bool x = false 6446; return 0; } 6447EOF 6448if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6449 rm -rf conftest* 6450 cf_cv_builtin_bool=1 6451else 6452 echo "configure: failed program was:" >&5 6453 cat conftest.$ac_ext >&5 6454 rm -rf conftest* 6455 cf_cv_builtin_bool=0 6456fi 6457rm -f conftest* 6458 6459fi 6460 6461if test "$cf_cv_builtin_bool" = 1 6462then echo "$ac_t""yes" 1>&6 6463else echo "$ac_t""no" 1>&6 6464fi 6465 6466 6467echo $ac_n "checking for size of bool""... $ac_c" 1>&6 6468echo "configure:6469: checking for size of bool" >&5 6469if eval "test \"`echo '$''{'cf_cv_type_of_bool'+set}'`\" = set"; then 6470 echo $ac_n "(cached) $ac_c" 1>&6 6471else 6472 6473 rm -f cf_test.out 6474 if test "$cross_compiling" = yes; then 6475 cf_cv_type_of_bool=unknown 6476else 6477 cat > conftest.$ac_ext <<EOF 6478#line 6479 "configure" 6479#include "confdefs.h" 6480#ifdef __cplusplus 6481extern "C" void exit(int); 6482#endif 6483 6484#include <stdlib.h> 6485#include <stdio.h> 6486#ifdef HAVE_GXX_BUILTIN_H 6487#include <g++/builtin.h> 6488#elif HAVE_GPP_BUILTIN_H 6489#include <gpp/builtin.h> 6490#elif HAVE_BUILTIN_H 6491#include <builtin.h> 6492#endif 6493main() 6494{ 6495 FILE *fp = fopen("cf_test.out", "w"); 6496 if (fp != 0) { 6497 bool x = true; 6498 if ((bool)(-x) >= 0) 6499 fputs("unsigned ", fp); 6500 if (sizeof(x) == sizeof(int)) fputs("int", fp); 6501 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 6502 else if (sizeof(x) == sizeof(short))fputs("short",fp); 6503 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 6504 fclose(fp); 6505 } 6506 exit(0); 6507} 6508 6509EOF 6510if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6511then 6512 cf_cv_type_of_bool=`cat cf_test.out` 6513else 6514 echo "configure: failed program was:" >&5 6515 cat conftest.$ac_ext >&5 6516 rm -fr conftest* 6517 cf_cv_type_of_bool=unknown 6518fi 6519rm -fr conftest* 6520fi 6521 6522 6523fi 6524 6525 rm -f cf_test.out 6526echo "$ac_t""$cf_cv_type_of_bool" 1>&6 6527if test "$cf_cv_type_of_bool" = unknown ; then 6528 echo "configure: warning: Assuming unsigned for type of bool" 1>&2 6529 cf_cv_type_of_bool=unsigned 6530fi 6531 6532 6533echo $ac_n "checking for special defines needed for etip.h""... $ac_c" 1>&6 6534echo "configure:6535: checking for special defines needed for etip.h" >&5 6535cf_save_CXXFLAGS="$CXXFLAGS" 6536cf_result="none" 6537for cf_math in "" MATH_H 6538do 6539for cf_excp in "" MATH_EXCEPTION 6540do 6541 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu" 6542 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}" 6543 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}" 6544cat > conftest.$ac_ext <<EOF 6545#line 6546 "configure" 6546#include "confdefs.h" 6547 6548#include <etip.h.in> 6549 6550int main() { 6551 6552; return 0; } 6553EOF 6554if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6555 rm -rf conftest* 6556 6557 test -n "$cf_math" && cat >> confdefs.h <<EOF 6558#define ETIP_NEEDS_${cf_math} 1 6559EOF 6560 6561 test -n "$cf_excp" && cat >> confdefs.h <<EOF 6562#define ETIP_NEEDS_${cf_excp} 1 6563EOF 6564 6565 cf_result="$cf_math $cf_excp" 6566 break 6567 6568else 6569 echo "configure: failed program was:" >&5 6570 cat conftest.$ac_ext >&5 6571fi 6572rm -f conftest* 6573done 6574done 6575echo "$ac_t""$cf_result" 1>&6 6576CXXFLAGS="$cf_save_CXXFLAGS" 6577 6578 6579if test "$CXX" = yes ; then 6580echo $ac_n "checking if $CXX accepts parameter initialization""... $ac_c" 1>&6 6581echo "configure:6582: checking if $CXX accepts parameter initialization" >&5 6582if eval "test \"`echo '$''{'cf_cv_cpp_param_init'+set}'`\" = set"; then 6583 echo $ac_n "(cached) $ac_c" 1>&6 6584else 6585 6586 ac_ext=C 6587# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6588ac_cpp='$CXXCPP $CPPFLAGS' 6589ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6590ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6591cross_compiling=$ac_cv_prog_cxx_cross 6592 6593 if test "$cross_compiling" = yes; then 6594 cf_cv_cpp_param_init=unknown 6595else 6596 cat > conftest.$ac_ext <<EOF 6597#line 6598 "configure" 6598#include "confdefs.h" 6599#ifdef __cplusplus 6600extern "C" void exit(int); 6601#endif 6602 6603class TEST { 6604private: 6605 int value; 6606public: 6607 TEST(int x = 1); 6608 ~TEST(); 6609}; 6610 6611TEST::TEST(int x = 1) // some compilers do not like second initializer 6612{ 6613 value = x; 6614} 6615void main() { } 6616 6617EOF 6618if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6619then 6620 cf_cv_cpp_param_init=yes 6621else 6622 echo "configure: failed program was:" >&5 6623 cat conftest.$ac_ext >&5 6624 rm -fr conftest* 6625 cf_cv_cpp_param_init=no 6626fi 6627rm -fr conftest* 6628fi 6629 6630 6631fi 6632 6633echo "$ac_t""$cf_cv_cpp_param_init" 1>&6 6634fi 6635test "$cf_cv_cpp_param_init" = yes && cat >> confdefs.h <<\EOF 6636#define CPP_HAS_PARAM_INIT 1 6637EOF 6638 6639 6640 case $cf_cv_system_name in #(vi 6641 sco3.2v5*) 6642 CXXLDFLAGS="-u main" 6643 ;; 6644 esac 6645 6646else 6647 cf_cxx_library=no 6648 cf_cv_builtin_bool=1 6649 6650 # Just because we are not configuring against C++ right now does not 6651 # mean that a user will not want to use C++. Some distributors disable 6652 # the C++ portion of this configuration as a shortcut (or just to avoid 6653 # compiling the demo in the c++ directory). So we need a reasonable 6654 # default for the 'bool' type. 6655 # 6656 # Caveat: since the storage of the bool type is not standardized, it 6657 # may change. 6658 6659 echo $ac_n "checking for fallback type of bool""... $ac_c" 1>&6 6660echo "configure:6661: checking for fallback type of bool" >&5 6661 case "$host_cpu" in #(vi 6662 i?86) cf_cv_type_of_bool=char ;; #(vi 6663 *) cf_cv_type_of_bool=int ;; 6664 esac 6665 echo "$ac_t""$cf_cv_type_of_bool" 1>&6 6666fi 6667 6668 6669 6670 6671if test "$cf_with_ada" != "no" ; then 6672cf_ada_make=gnatmake 6673# Extract the first word of "$cf_ada_make", so it can be a program name with args. 6674set dummy $cf_ada_make; ac_word=$2 6675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6676echo "configure:6677: checking for $ac_word" >&5 6677if eval "test \"`echo '$''{'ac_cv_prog_gnat_exists'+set}'`\" = set"; then 6678 echo $ac_n "(cached) $ac_c" 1>&6 6679else 6680 if test -n "$gnat_exists"; then 6681 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test. 6682else 6683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 6684 ac_dummy="$PATH" 6685 for ac_dir in $ac_dummy; do 6686 test -z "$ac_dir" && ac_dir=. 6687 if test -f $ac_dir/$ac_word; then 6688 ac_cv_prog_gnat_exists="yes" 6689 break 6690 fi 6691 done 6692 IFS="$ac_save_ifs" 6693 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no" 6694fi 6695fi 6696gnat_exists="$ac_cv_prog_gnat_exists" 6697if test -n "$gnat_exists"; then 6698 echo "$ac_t""$gnat_exists" 1>&6 6699else 6700 echo "$ac_t""no" 1>&6 6701fi 6702 6703if test "$ac_cv_prog_gnat_exists" = no; then 6704 cf_ada_make= 6705else 6706 6707cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\ 6708 sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'` 6709case $cf_cv_gnat_version in 6710 3.1[1-9]*|3.[2-9]*|[4-9].*) 6711 cf_cv_prog_gnat_correct=yes 6712 ;; 6713 *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding. 6714 cf_cv_prog_gnat_correct=no 6715 ;; 6716esac 6717case $cf_cv_gnat_version in 6718 3.1*|[4-9].*) 6719 cf_compile_generics=generics 6720 cf_generic_objects="\$(GENOBJS)" 6721 ;; 6722 *) cf_compile_generics= 6723 cf_generic_objects= 6724 ;; 6725esac 6726 6727 # Extract the first word of "m4", so it can be a program name with args. 6728set dummy m4; ac_word=$2 6729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6730echo "configure:6731: checking for $ac_word" >&5 6731if eval "test \"`echo '$''{'ac_cv_prog_M4_exists'+set}'`\" = set"; then 6732 echo $ac_n "(cached) $ac_c" 1>&6 6733else 6734 if test -n "$M4_exists"; then 6735 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test. 6736else 6737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 6738 ac_dummy="$PATH" 6739 for ac_dir in $ac_dummy; do 6740 test -z "$ac_dir" && ac_dir=. 6741 if test -f $ac_dir/$ac_word; then 6742 ac_cv_prog_M4_exists="yes" 6743 break 6744 fi 6745 done 6746 IFS="$ac_save_ifs" 6747 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no" 6748fi 6749fi 6750M4_exists="$ac_cv_prog_M4_exists" 6751if test -n "$M4_exists"; then 6752 echo "$ac_t""$M4_exists" 1>&6 6753else 6754 echo "$ac_t""no" 1>&6 6755fi 6756 6757 if test "$ac_cv_prog_M4_exists" = no; then 6758 cf_cv_prog_gnat_correct=no 6759 echo Ada95 binding required program m4 not found. Ada95 binding disabled. 6760 fi 6761 if test "$cf_cv_prog_gnat_correct" = yes; then 6762 echo $ac_n "checking if GNAT works""... $ac_c" 1>&6 6763echo "configure:6764: checking if GNAT works" >&5 6764 6765rm -f conftest* 6766cat >>conftest.ads <<CF_EOF 6767procedure conftest; 6768CF_EOF 6769cat >>conftest.adb <<CF_EOF 6770with Text_IO; 6771with GNAT.OS_Lib; 6772procedure conftest is 6773begin 6774 Text_IO.Put ("Hello World"); 6775 Text_IO.New_Line; 6776 GNAT.OS_Lib.OS_Exit (0); 6777end conftest; 6778CF_EOF 6779if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then 6780 if ( ./conftest 1>&5 2>&1 ) ; then 6781 cf_cv_prog_gnat_correct=yes 6782 else 6783 cf_cv_prog_gnat_correct=no 6784 fi 6785else 6786 cf_cv_prog_gnat_correct=no 6787fi 6788rm -f conftest* 6789 6790 echo "$ac_t""$cf_cv_prog_gnat_correct" 1>&6 6791 fi 6792fi 6793if test "$cf_cv_prog_gnat_correct" = yes; then 6794 ADAFLAGS="-O3 -gnatpn $ADAFLAGS" 6795 6796 6797# Check whether --with-ada-compiler or --without-ada-compiler was given. 6798if test "${with_ada_compiler+set}" = set; then 6799 withval="$with_ada_compiler" 6800 cf_ada_compiler=$withval 6801else 6802 cf_ada_compiler=gnatmake 6803fi 6804 6805 6806 cf_ada_package=terminal_interface 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816# Check whether --with-ada-include or --without-ada-include was given. 6817if test "${with_ada_include+set}" = set; then 6818 withval="$with_ada_include" 6819 : 6820else 6821 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}" 6822fi 6823 6824case ".$withval" in #(vi 6825./*) #(vi 6826 ;; 6827.a-zA-Z:\\/*) #(vi OS/2 EMX 6828 ;; 6829.\${*prefix}*) #(vi 6830 eval withval="$withval" 6831 case ".$withval" in #(vi 6832 .NONE/*) 6833 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 6834 ;; 6835 esac 6836 ;; #(vi 6837.NONE/*) 6838 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 6839 ;; 6840*) 6841 { echo "configure: error: expected a pathname" 1>&2; exit 1; } 6842 ;; 6843esac 6844 6845eval ADA_INCLUDE="$withval" 6846 6847 6848 6849 6850# Check whether --with-ada-objects or --without-ada-objects was given. 6851if test "${with_ada_objects+set}" = set; then 6852 withval="$with_ada_objects" 6853 : 6854else 6855 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}" 6856fi 6857 6858case ".$withval" in #(vi 6859./*) #(vi 6860 ;; 6861.a-zA-Z:\\/*) #(vi OS/2 EMX 6862 ;; 6863.\${*prefix}*) #(vi 6864 eval withval="$withval" 6865 case ".$withval" in #(vi 6866 .NONE/*) 6867 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 6868 ;; 6869 esac 6870 ;; #(vi 6871.NONE/*) 6872 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@` 6873 ;; 6874*) 6875 { echo "configure: error: expected a pathname" 1>&2; exit 1; } 6876 ;; 6877esac 6878 6879eval ADA_OBJECTS="$withval" 6880 6881 6882 6883fi 6884fi 6885 6886### It's not possible to appease gcc 2.6.3's conversion-warnings if we're 6887### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too 6888### badly to consider using for development purposes, but 2.5.8 is okay. 6889if test -n "$with_warnings"; then 6890 if test "$GCC" = yes; then 6891 case "`$CC --version`" in 6892 2.6.3) 6893 if test "$cf_cv_type_of_bool" != "char"; then 6894 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion" 6895 fi 6896 ;; 6897 2.5*) 6898 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion" 6899 ;; 6900 esac 6901 fi 6902fi 6903 6904### Construct the library-subsets, if any, from this set of keywords: 6905### none, base, ext_funcs, termlib. 6906echo $ac_n "checking for library subsets""... $ac_c" 1>&6 6907echo "configure:6908: checking for library subsets" >&5 6908if test "$with_termlib" = yes ; then 6909 LIB_SUBSETS="termlib " 6910else 6911 LIB_SUBSETS="termlib+" 6912fi 6913LIB_SUBSETS="${LIB_SUBSETS}base" 6914test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs" 6915echo "$ac_t""$LIB_SUBSETS" 1>&6 6916 6917LIB_TRACING=DEBUG 6918case "$CFLAGS" in 6919*-DTRACE*) 6920 LIB_TRACING=all 6921 ;; 6922esac 6923 6924### Construct the list of include-directories to be generated 6925 6926CPPFLAGS="$CPPFLAGS -I. -I../include" 6927if test "$srcdir" != "."; then 6928 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include" 6929fi 6930if test "$GCC" != yes; then 6931 CPPFLAGS="$CPPFLAGS -I\$(includedir)" 6932elif test "$includedir" != "/usr/include"; then 6933 if test "$includedir" = '${prefix}/include' ; then 6934 if test $prefix != /usr ; then 6935 CPPFLAGS="$CPPFLAGS -I\$(includedir)" 6936 fi 6937 else 6938 CPPFLAGS="$CPPFLAGS -I\$(includedir)" 6939 fi 6940fi 6941 6942 6943 6944ACPPFLAGS="$ACPPFLAGS -I. -I../../include" 6945if test "$srcdir" != "."; then 6946 ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include" 6947fi 6948if test "$GCC" != yes; then 6949 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)" 6950elif test "$includedir" != "/usr/include"; then 6951 if test "$includedir" = '${prefix}/include' ; then 6952 if test $prefix != /usr ; then 6953 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)" 6954 fi 6955 else 6956 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)" 6957 fi 6958fi 6959 6960 6961 6962### Build up pieces for makefile rules 6963echo $ac_n "checking default library suffix""... $ac_c" 1>&6 6964echo "configure:6965: checking default library suffix" >&5 6965 6966 case $DFT_LWR_MODEL in 6967 normal) DFT_ARG_SUFFIX='' ;; 6968 debug) DFT_ARG_SUFFIX='_g' ;; 6969 profile) DFT_ARG_SUFFIX='_p' ;; 6970 shared) DFT_ARG_SUFFIX='' ;; 6971 esac 6972 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}" 6973echo "$ac_t""$DFT_ARG_SUFFIX" 1>&6 6974 6975echo $ac_n "checking default library-dependency suffix""... $ac_c" 1>&6 6976echo "configure:6977: checking default library-dependency suffix" >&5 6977 6978 6979 case $DFT_LWR_MODEL in 6980 normal) DFT_DEP_SUFFIX='.a' ;; 6981 debug) DFT_DEP_SUFFIX='_g.a' ;; 6982 profile) DFT_DEP_SUFFIX='_p.a' ;; 6983 shared) 6984 case $cf_cv_system_name in 6985 hpux*) DFT_DEP_SUFFIX='.sl' ;; 6986 *) DFT_DEP_SUFFIX='.so' ;; 6987 esac 6988 esac 6989 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}" 6990echo "$ac_t""$DFT_DEP_SUFFIX" 1>&6 6991 6992echo $ac_n "checking default object directory""... $ac_c" 1>&6 6993echo "configure:6994: checking default object directory" >&5 6994 6995 case $DFT_LWR_MODEL in 6996 normal) DFT_OBJ_SUBDIR='objects' ;; 6997 debug) DFT_OBJ_SUBDIR='obj_g' ;; 6998 profile) DFT_OBJ_SUBDIR='obj_p' ;; 6999 shared) DFT_OBJ_SUBDIR='obj_s' ;; 7000 esac 7001echo "$ac_t""$DFT_OBJ_SUBDIR" 1>&6 7002 7003TINFO_LIST="$SHLIB_LIST" 7004test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}" 7005 7006echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6 7007echo "configure:7008: checking where we will install curses.h" >&5 7008test "$with_overwrite" = no && \ 7009test "x$includedir" = 'x${prefix}/include' && \ 7010 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX} 7011echo "$ac_t""$includedir" 1>&6 7012 7013 7014 7015 7016 7017### Set up low-level terminfo dependencies for makefiles. Note that we 7018### could override this. 7019if test "$with_termlib" = yes ; then 7020 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}" 7021 TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}" 7022fi 7023PROG_DEPS="$TEST_DEPS" 7024PROG_ARGS="$TEST_ARGS" 7025 7026### Construct the list of subdirectories for which we'll customize makefiles 7027### with the appropriate compile-rules. 7028 7029 7030echo $ac_n "checking for src modules""... $ac_c" 1>&6 7031echo "configure:7032: checking for src modules" >&5 7032 7033# dependencies and linker-arguments for test-programs 7034TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS" 7035TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS" 7036 7037# dependencies and linker-arguments for utility-programs 7038PROG_ARGS="$TEST_ARGS" 7039 7040cf_cv_src_modules= 7041for cf_dir in $modules_to_build 7042do 7043 if test -f $srcdir/$cf_dir/modules; then 7044 7045 # We may/may not have tack in the distribution, though the 7046 # makefile is. 7047 if test $cf_dir = tack ; then 7048 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then 7049 continue 7050 fi 7051 fi 7052 7053 if test -z "$cf_cv_src_modules"; then 7054 cf_cv_src_modules=$cf_dir 7055 else 7056 cf_cv_src_modules="$cf_cv_src_modules $cf_dir" 7057 fi 7058 7059 # Make the ncurses_cfg.h file record the library interface files as 7060 # well. These are header files that are the same name as their 7061 # directory. Ncurses is the only library that does not follow 7062 # that pattern. 7063 if test $cf_dir = tack ; then 7064 continue 7065 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then 7066 7067cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7068 7069 cat >> confdefs.h <<EOF 7070#define HAVE_${cf_have_include}_H 1 7071EOF 7072 7073 cat >> confdefs.h <<EOF 7074#define HAVE_LIB${cf_have_include} 1 7075EOF 7076 7077 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS" 7078 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS" 7079 fi 7080 fi 7081done 7082echo "$ac_t""$cf_cv_src_modules" 1>&6 7083TEST_ARGS="-L${LIB_DIR} -L\$(libdir) $TEST_ARGS" 7084 7085 7086 7087PROG_ARGS="-L${LIB_DIR} -L\$(libdir) $PROG_ARGS" 7088 7089 7090SRC_SUBDIRS="man include" 7091for cf_dir in $cf_cv_src_modules 7092do 7093 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir" 7094done 7095SRC_SUBDIRS="$SRC_SUBDIRS misc test" 7096test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++" 7097 7098ADA_SUBDIRS= 7099if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then 7100 SRC_SUBDIRS="$SRC_SUBDIRS Ada95" 7101 ADA_SUBDIRS="gen src samples" 7102fi 7103 7104SUB_MAKEFILES= 7105for cf_dir in $SRC_SUBDIRS 7106do 7107 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile" 7108done 7109 7110if test -n "$ADA_SUBDIRS"; then 7111 for cf_dir in $ADA_SUBDIRS 7112 do 7113 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile" 7114 done 7115 7116fi 7117 7118 7119DIRS_TO_MAKE="lib" 7120for cf_item in $cf_list_models 7121do 7122 7123 case $cf_item in 7124 normal) cf_subdir='objects' ;; 7125 debug) cf_subdir='obj_g' ;; 7126 profile) cf_subdir='obj_p' ;; 7127 shared) cf_subdir='obj_s' ;; 7128 esac 7129 7130 DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir" 7131done 7132for cf_dir in $DIRS_TO_MAKE 7133do 7134 test ! -d $cf_dir && mkdir $cf_dir 7135done 7136 7137 7138 7139### Now that we're done running tests, add the compiler-warnings, if any 7140CFLAGS="$CFLAGS $EXTRA_CFLAGS" 7141 7142################################################################################ 7143trap '' 1 2 15 7144cat > confcache <<\EOF 7145# This file is a shell script that caches the results of configure 7146# tests run on this system so they can be shared between configure 7147# scripts and configure runs. It is not useful on other systems. 7148# If it contains results you don't want to keep, you may remove or edit it. 7149# 7150# By default, configure uses ./config.cache as the cache file, 7151# creating it if it does not exist already. You can give configure 7152# the --cache-file=FILE option to use a different cache file; that is 7153# what configure does when it calls configure scripts in 7154# subdirectories, so they share the cache. 7155# Giving --cache-file=/dev/null disables caching, for debugging configure. 7156# config.status only pays attention to the cache file if you give it the 7157# --recheck option to rerun configure. 7158# 7159EOF 7160# The following way of writing the cache mishandles newlines in values, 7161# but we know of no workaround that is simple, portable, and efficient. 7162# So, don't put newlines in cache variables' values. 7163# Ultrix sh set writes to stderr and can't be redirected directly, 7164# and sets the high bit in the cache file unless we assign to the vars. 7165(set) 2>&1 | 7166 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7167 *ac_space=\ *) 7168 # `set' does not quote correctly, so add quotes (double-quote substitution 7169 # turns \\\\ into \\, and sed turns \\ into \). 7170 sed -n \ 7171 -e "s/'/'\\\\''/g" \ 7172 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 7173 ;; 7174 *) 7175 # `set' quotes correctly as required by POSIX, so do not add quotes. 7176 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 7177 ;; 7178 esac >> confcache 7179if cmp -s $cache_file confcache; then 7180 : 7181else 7182 if test -w $cache_file; then 7183 echo "updating cache $cache_file" 7184 cat confcache > $cache_file 7185 else 7186 echo "not updating unwritable cache $cache_file" 7187 fi 7188fi 7189rm -f confcache 7190 7191trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 7192 7193test "x$prefix" = xNONE && prefix=$ac_default_prefix 7194# Let make expand exec_prefix. 7195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7196 7197# Any assignment to VPATH causes Sun make to only execute 7198# the first set of double-colon rules, so remove it if not needed. 7199# If there is a colon in the path, we need to keep it. 7200if test "x$srcdir" = x.; then 7201 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 7202fi 7203 7204trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 7205 7206DEFS=-DHAVE_CONFIG_H 7207 7208# Without the "./", some shells look in PATH for config.status. 7209: ${CONFIG_STATUS=./config.status} 7210 7211echo creating $CONFIG_STATUS 7212rm -f $CONFIG_STATUS 7213cat > $CONFIG_STATUS <<EOF 7214#! /bin/sh 7215# Generated automatically by configure. 7216# Run this file to recreate the current configuration. 7217# This directory was configured as follows, 7218# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7219# 7220# $0 $ac_configure_args 7221# 7222# Compiler output produced by configure, useful for debugging 7223# configure, is in ./config.log if it exists. 7224 7225ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 7226for ac_option 7227do 7228 case "\$ac_option" in 7229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7230 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 7231 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 7232 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 7233 echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819" 7234 exit 0 ;; 7235 -help | --help | --hel | --he | --h) 7236 echo "\$ac_cs_usage"; exit 0 ;; 7237 *) echo "\$ac_cs_usage"; exit 1 ;; 7238 esac 7239done 7240 7241ac_given_srcdir=$srcdir 7242ac_given_INSTALL="$INSTALL" 7243 7244trap 'rm -fr `echo "\ 7245 include/MKterm.h.awk \ 7246 include/curses.h \ 7247 include/termcap.h \ 7248 include/unctrl.h \ 7249 misc/run_tic.sh:misc/run_tic.in \ 7250 $SUB_MAKEFILES \ 7251 Makefile include/ncurses_cfg.h:include/ncurses_cfg.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 7252EOF 7253cat >> $CONFIG_STATUS <<EOF 7254 7255# Protect against being on the right side of a sed subst in config.status. 7256sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 7257 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 7258$ac_vpsub 7259$extrasub 7260s%@SHELL@%$SHELL%g 7261s%@CFLAGS@%$CFLAGS%g 7262s%@CPPFLAGS@%$CPPFLAGS%g 7263s%@CXXFLAGS@%$CXXFLAGS%g 7264s%@FFLAGS@%$FFLAGS%g 7265s%@DEFS@%$DEFS%g 7266s%@LDFLAGS@%$LDFLAGS%g 7267s%@LIBS@%$LIBS%g 7268s%@exec_prefix@%$exec_prefix%g 7269s%@prefix@%$prefix%g 7270s%@program_transform_name@%$program_transform_name%g 7271s%@bindir@%$bindir%g 7272s%@sbindir@%$sbindir%g 7273s%@libexecdir@%$libexecdir%g 7274s%@datadir@%$datadir%g 7275s%@sysconfdir@%$sysconfdir%g 7276s%@sharedstatedir@%$sharedstatedir%g 7277s%@localstatedir@%$localstatedir%g 7278s%@libdir@%$libdir%g 7279s%@includedir@%$includedir%g 7280s%@oldincludedir@%$oldincludedir%g 7281s%@infodir@%$infodir%g 7282s%@mandir@%$mandir%g 7283s%@NCURSES_MAJOR@%$NCURSES_MAJOR%g 7284s%@NCURSES_MINOR@%$NCURSES_MINOR%g 7285s%@NCURSES_PATCH@%$NCURSES_PATCH%g 7286s%@cf_cv_rel_version@%$cf_cv_rel_version%g 7287s%@cf_cv_abi_version@%$cf_cv_abi_version%g 7288s%@cf_cv_cc_bool_type@%$cf_cv_cc_bool_type%g 7289s%@cf_cv_builtin_bool@%$cf_cv_builtin_bool%g 7290s%@cf_cv_type_of_bool@%$cf_cv_type_of_bool%g 7291s%@host@%$host%g 7292s%@host_alias@%$host_alias%g 7293s%@host_cpu@%$host_cpu%g 7294s%@host_vendor@%$host_vendor%g 7295s%@host_os@%$host_os%g 7296s%@target@%$target%g 7297s%@target_alias@%$target_alias%g 7298s%@target_cpu@%$target_cpu%g 7299s%@target_vendor@%$target_vendor%g 7300s%@target_os@%$target_os%g 7301s%@build@%$build%g 7302s%@build_alias@%$build_alias%g 7303s%@build_cpu@%$build_cpu%g 7304s%@build_vendor@%$build_vendor%g 7305s%@build_os@%$build_os%g 7306s%@CC@%$CC%g 7307s%@BUILD_CC@%$BUILD_CC%g 7308s%@CPP@%$CPP%g 7309s%@PROG_EXT@%$PROG_EXT%g 7310s%@LDCONFIG@%$LDCONFIG%g 7311s%@CXX@%$CXX%g 7312s%@AWK@%$AWK%g 7313s%@SET_MAKE@%$SET_MAKE%g 7314s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 7315s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 7316s%@INSTALL_DATA@%$INSTALL_DATA%g 7317s%@LN_S@%$LN_S%g 7318s%@RANLIB@%$RANLIB%g 7319s%@MAKE_LOWER_TAGS@%$MAKE_LOWER_TAGS%g 7320s%@MAKE_UPPER_TAGS@%$MAKE_UPPER_TAGS%g 7321s%@LINT@%$LINT%g 7322s%@MAN@%$MAN%g 7323s%@LINT_OPTS@%$LINT_OPTS%g 7324s%@LD@%$LD%g 7325s%@AR@%$AR%g 7326s%@AR_OPTS@%$AR_OPTS%g 7327s%@cf_cv_makeflags@%$cf_cv_makeflags%g 7328s%@DESTDIR@%$DESTDIR%g 7329s%@cf_list_models@%$cf_list_models%g 7330s%@DFT_LWR_MODEL@%$DFT_LWR_MODEL%g 7331s%@DFT_UPR_MODEL@%$DFT_UPR_MODEL%g 7332s%@TINFO_NAME@%$TINFO_NAME%g 7333s%@LIB_NAME@%$LIB_NAME%g 7334s%@LIB_PREFIX@%$LIB_PREFIX%g 7335s%@LIB_SUFFIX@%$LIB_SUFFIX%g 7336s%@CC_G_OPT@%$CC_G_OPT%g 7337s%@CXX_G_OPT@%$CXX_G_OPT%g 7338s%@LD_MODEL@%$LD_MODEL%g 7339s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g 7340s%@LD_SHARED_OPTS@%$LD_SHARED_OPTS%g 7341s%@MK_SHARED_LIB@%$MK_SHARED_LIB%g 7342s%@LINK_PROGS@%$LINK_PROGS%g 7343s%@LINK_TESTS@%$LINK_TESTS%g 7344s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g 7345s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g 7346s%@LOCAL_LDFLAGS2@%$LOCAL_LDFLAGS2%g 7347s%@INSTALL_LIB@%$INSTALL_LIB%g 7348s%@TERMINFO_SRC@%$TERMINFO_SRC%g 7349s%@FALLBACK_LIST@%$FALLBACK_LIST%g 7350s%@TERMINFO_DIRS@%$TERMINFO_DIRS%g 7351s%@TERMINFO@%$TERMINFO%g 7352s%@NCURSES_CONST@%$NCURSES_CONST%g 7353s%@NCURSES_XNAMES@%$NCURSES_XNAMES%g 7354s%@ECHO_LINK@%$ECHO_LINK%g 7355s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g 7356s%@MATH_LIB@%$MATH_LIB%g 7357s%@cf_cv_typeof_chtype@%$cf_cv_typeof_chtype%g 7358s%@cf_cv_1UL@%$cf_cv_1UL%g 7359s%@cf_cv_shift_limit@%$cf_cv_shift_limit%g 7360s%@cf_cv_widec_shift@%$cf_cv_widec_shift%g 7361s%@CXXCPP@%$CXXCPP%g 7362s%@CXXLDFLAGS@%$CXXLDFLAGS%g 7363s%@CXXLIBS@%$CXXLIBS%g 7364s%@gnat_exists@%$gnat_exists%g 7365s%@M4_exists@%$M4_exists%g 7366s%@cf_ada_make@%$cf_ada_make%g 7367s%@cf_ada_compiler@%$cf_ada_compiler%g 7368s%@cf_ada_package@%$cf_ada_package%g 7369s%@ADAFLAGS@%$ADAFLAGS%g 7370s%@cf_compile_generics@%$cf_compile_generics%g 7371s%@cf_generic_objects@%$cf_generic_objects%g 7372s%@ADA_INCLUDE@%$ADA_INCLUDE%g 7373s%@ADA_OBJECTS@%$ADA_OBJECTS%g 7374s%@ACPPFLAGS@%$ACPPFLAGS%g 7375s%@DFT_ARG_SUFFIX@%$DFT_ARG_SUFFIX%g 7376s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g 7377s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g 7378s%@EXTRA_LIBS@%$EXTRA_LIBS%g 7379s%@TINFO_LIST@%$TINFO_LIST%g 7380s%@SHLIB_LIST@%$SHLIB_LIST%g 7381s%@TEST_DEPS@%$TEST_DEPS%g 7382s%@TEST_ARGS@%$TEST_ARGS%g 7383s%@PROG_ARGS@%$PROG_ARGS%g 7384s%@ADA_SUBDIRS@%$ADA_SUBDIRS%g 7385s%@DIRS_TO_MAKE@%$DIRS_TO_MAKE%g 7386 7387CEOF 7388EOF 7389 7390cat >> $CONFIG_STATUS <<\EOF 7391 7392# Split the substitutions into bite-sized pieces for seds with 7393# small command number limits, like on Digital OSF/1 and HP-UX. 7394ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 7395ac_file=1 # Number of current file. 7396ac_beg=1 # First line for current file. 7397ac_end=$ac_max_sed_cmds # Line after last line for current file. 7398ac_more_lines=: 7399ac_sed_cmds="" 7400while $ac_more_lines; do 7401 if test $ac_beg -gt 1; then 7402 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 7403 else 7404 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 7405 fi 7406 if test ! -s conftest.s$ac_file; then 7407 ac_more_lines=false 7408 rm -f conftest.s$ac_file 7409 else 7410 if test -z "$ac_sed_cmds"; then 7411 ac_sed_cmds="sed -f conftest.s$ac_file" 7412 else 7413 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 7414 fi 7415 ac_file=`expr $ac_file + 1` 7416 ac_beg=$ac_end 7417 ac_end=`expr $ac_end + $ac_max_sed_cmds` 7418 fi 7419done 7420if test -z "$ac_sed_cmds"; then 7421 ac_sed_cmds=cat 7422fi 7423EOF 7424 7425cat >> $CONFIG_STATUS <<EOF 7426 7427CONFIG_FILES=\${CONFIG_FILES-"\ 7428 include/MKterm.h.awk \ 7429 include/curses.h \ 7430 include/termcap.h \ 7431 include/unctrl.h \ 7432 misc/run_tic.sh:misc/run_tic.in \ 7433 $SUB_MAKEFILES \ 7434 Makefile"} 7435EOF 7436cat >> $CONFIG_STATUS <<\EOF 7437for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 7438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7439 case "$ac_file" in 7440 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 7441 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 7442 *) ac_file_in="${ac_file}.in" ;; 7443 esac 7444 7445 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 7446 7447 # Remove last slash and all that follows it. Not all systems have dirname. 7448 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 7449 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7450 # The file is in a subdirectory. 7451 test ! -d "$ac_dir" && mkdir "$ac_dir" 7452 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 7453 # A "../" for each directory in $ac_dir_suffix. 7454 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 7455 else 7456 ac_dir_suffix= ac_dots= 7457 fi 7458 7459 case "$ac_given_srcdir" in 7460 .) srcdir=. 7461 if test -z "$ac_dots"; then top_srcdir=. 7462 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 7463 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 7464 *) # Relative path. 7465 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 7466 top_srcdir="$ac_dots$ac_given_srcdir" ;; 7467 esac 7468 7469 case "$ac_given_INSTALL" in 7470 [/$]*) INSTALL="$ac_given_INSTALL" ;; 7471 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 7472 esac 7473 7474 echo creating "$ac_file" 7475 rm -f "$ac_file" 7476 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 7477 case "$ac_file" in 7478 *Makefile*) ac_comsub="1i\\ 7479# $configure_input" ;; 7480 *) ac_comsub= ;; 7481 esac 7482 7483 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 7484 sed -e "$ac_comsub 7485s%@configure_input@%$configure_input%g 7486s%@srcdir@%$srcdir%g 7487s%@top_srcdir@%$top_srcdir%g 7488s%@INSTALL@%$INSTALL%g 7489" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 7490fi; done 7491rm -f conftest.s* 7492 7493# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7494# NAME is the cpp macro being defined and VALUE is the value it is being given. 7495# 7496# ac_d sets the value in "#define NAME VALUE" lines. 7497ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7498ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 7499ac_dC='\3' 7500ac_dD='%g' 7501# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 7502ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7503ac_uB='\([ ]\)%\1#\2define\3' 7504ac_uC=' ' 7505ac_uD='\4%g' 7506# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7507ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7508ac_eB='$%\1#\2define\3' 7509ac_eC=' ' 7510ac_eD='%g' 7511 7512if test "${CONFIG_HEADERS+set}" != set; then 7513EOF 7514cat >> $CONFIG_STATUS <<EOF 7515 CONFIG_HEADERS="include/ncurses_cfg.h:include/ncurses_cfg.hin" 7516EOF 7517cat >> $CONFIG_STATUS <<\EOF 7518fi 7519for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 7520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7521 case "$ac_file" in 7522 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 7523 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 7524 *) ac_file_in="${ac_file}.in" ;; 7525 esac 7526 7527 echo creating $ac_file 7528 7529 rm -f conftest.frag conftest.in conftest.out 7530 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 7531 cat $ac_file_inputs > conftest.in 7532 7533EOF 7534 7535 7536# Transform confdefs.h into a list of #define's. We won't use it as a sed 7537# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 7538# be either 'cat' or 'sort'. 7539sort confdefs.h >conftest.vals 7540 7541# Break up conftest.vals because some shells have a limit on 7542# the size of here documents, and old seds have small limits too. 7543 7544rm -f conftest.tail 7545echo ' rm -f conftest.frag' >> $CONFIG_STATUS 7546while : 7547do 7548 ac_lines=`grep -c . conftest.vals` 7549 # grep -c gives empty output for an empty file on some AIX systems. 7550 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 7551 # Write chunks of a limited-size here document to conftest.frag. 7552 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 7553 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 7554 echo 'CEOF' >> $CONFIG_STATUS 7555 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 7556 rm -f conftest.vals 7557 mv conftest.tail conftest.vals 7558done 7559rm -f conftest.vals 7560 7561# Run sed to substitute the contents of conftest.frag into conftest.in at the 7562# marker @DEFS@. 7563echo ' cat >> conftest.edit <<CEOF 7564/@DEFS@/r conftest.frag 7565/@DEFS@/d 7566CEOF 7567sed -f conftest.edit conftest.in > conftest.out 7568rm -f conftest.in 7569mv conftest.out conftest.in 7570rm -f conftest.edit conftest.frag 7571' >> $CONFIG_STATUS 7572 7573 7574cat >> $CONFIG_STATUS <<\EOF 7575 rm -f conftest.frag conftest.h 7576 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 7577 cat conftest.in >> conftest.h 7578 rm -f conftest.in 7579 if cmp -s $ac_file conftest.h 2>/dev/null; then 7580 echo "$ac_file is unchanged" 7581 rm -f conftest.h 7582 else 7583 # Remove last slash and all that follows it. Not all systems have dirname. 7584 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 7585 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 7586 # The file is in a subdirectory. 7587 test ! -d "$ac_dir" && mkdir "$ac_dir" 7588 fi 7589 rm -f $ac_file 7590 mv conftest.h $ac_file 7591 fi 7592fi; done 7593 7594EOF 7595cat >> $CONFIG_STATUS <<EOF 7596# Extra initialization commands, if any 7597 7598### Special initialization commands, used to pass information from the 7599### configuration-run into config.status 7600 7601AWK="$AWK" 7602CF_LIST_MODELS="$cf_list_models" 7603DFT_LWR_MODEL="$DFT_LWR_MODEL" 7604LDCONFIG="$LDCONFIG" 7605LIB_NAME="$LIB_NAME" 7606LIB_SUFFIX="$LIB_SUFFIX" 7607LIB_SUBSETS="$LIB_SUBSETS" 7608LIB_TRACING="$LIB_TRACING" 7609SRC_SUBDIRS="$SRC_SUBDIRS" 7610TERMINFO="$TERMINFO" 7611TINFO_NAME="$TINFO_NAME" 7612WITH_ECHO="$with_echo" 7613WITH_OVERWRITE="$with_overwrite" 7614cf_cv_abi_version="$cf_cv_abi_version" 7615cf_cv_do_symlinks="$cf_cv_do_symlinks" 7616cf_cv_rel_version="$cf_cv_rel_version" 7617cf_cv_rm_so_locs="$cf_cv_rm_so_locs" 7618cf_cv_system_name="$cf_cv_system_name" 7619cf_with_cxx_binding="$cf_with_cxx_binding" 7620cf_cv_shlib_version="$cf_cv_shlib_version" 7621target="$target" 7622 7623 7624EOF 7625cat >> $CONFIG_STATUS <<\EOF 7626# Extra commands, if any 7627 7628 7629 7630 case $cf_cv_system_name in 7631 os2) LIB_PREFIX='' ;; 7632 *) LIB_PREFIX='lib' ;; 7633 esac 7634cf_prefix=$LIB_PREFIX 7635 7636 7637 7638for cf_dir in $SRC_SUBDIRS 7639do 7640 if test -f $srcdir/$cf_dir/modules; then 7641 7642 cf_libs_to_make= 7643 for cf_item in $CF_LIST_MODELS 7644 do 7645 7646 7647 case $cf_item in 7648 normal) cf_suffix='.a' ;; 7649 debug) cf_suffix='_g.a' ;; 7650 profile) cf_suffix='_p.a' ;; 7651 shared) 7652 case $cf_cv_system_name in 7653 hpux*) cf_suffix='.sl' ;; 7654 *) cf_suffix='.so' ;; 7655 esac 7656 esac 7657 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 7658 7659 if test $cf_item = shared ; then 7660 if test "$cf_cv_do_symlinks" = yes ; then 7661 case "$cf_cv_shlib_version" in #(vi 7662 rel) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;; #(vi 7663 abi) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;; 7664 esac 7665 fi 7666 fi 7667 cf_libs_to_make="$cf_libs_to_make ../lib/${cf_prefix}${cf_dir}${cf_suffix}" 7668 done 7669 7670 if test $cf_dir = ncurses ; then 7671 case "$LIB_SUBSETS" in #(vi 7672 termlib+*) #(vi 7673 ;; 7674 *) #(vi 7675 cf_item=`echo $cf_libs_to_make |sed -e s/$LIB_NAME/$TINFO_NAME/g` 7676 cf_libs_to_make="$cf_item $cf_libs_to_make" 7677 ;; 7678 esac 7679 fi 7680 7681 sed -e "s@\@LIBS_TO_MAKE\@@$cf_libs_to_make@" \ 7682 $cf_dir/Makefile >$cf_dir/Makefile.out 7683 mv $cf_dir/Makefile.out $cf_dir/Makefile 7684 7685 $AWK -f $srcdir/mk-0th.awk \ 7686 name=$cf_dir \ 7687 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 7688 7689 for cf_item in $CF_LIST_MODELS 7690 do 7691 echo 'Appending rules for '$cf_item' model ('$cf_dir')' 7692 7693CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7694 7695 7696 7697 case $cf_item in 7698 normal) cf_suffix='.a' ;; 7699 debug) cf_suffix='_g.a' ;; 7700 profile) cf_suffix='_p.a' ;; 7701 shared) 7702 case $cf_cv_system_name in 7703 hpux*) cf_suffix='.sl' ;; 7704 *) cf_suffix='.so' ;; 7705 esac 7706 esac 7707 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 7708 7709 7710 case $cf_item in 7711 normal) cf_subdir='objects' ;; 7712 debug) cf_subdir='obj_g' ;; 7713 profile) cf_subdir='obj_p' ;; 7714 shared) cf_subdir='obj_s' ;; 7715 esac 7716 7717 7718 # These dependencies really are for development, not 7719 # builds, but they are useful in porting, too. 7720 cf_depend="../include/ncurses_cfg.h" 7721 if test "$srcdir" = "."; then 7722 cf_reldir="." 7723 else 7724 cf_reldir="\$(srcdir)" 7725 fi 7726 7727 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then 7728 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h" 7729 elif test -f $srcdir/$cf_dir/curses.priv.h; then 7730 cf_depend="$cf_depend $cf_reldir/curses.priv.h" 7731 fi 7732 7733 for cf_subset in $LIB_SUBSETS 7734 do 7735 $AWK -f $srcdir/mk-1st.awk \ 7736 name=$cf_dir \ 7737 traces=$LIB_TRACING \ 7738 MODEL=$CF_ITEM \ 7739 model=$cf_subdir \ 7740 prefix=$cf_prefix \ 7741 suffix=$cf_suffix \ 7742 subset=$cf_subset \ 7743 ShlibVer=$cf_cv_shlib_version \ 7744 DoLinks=$cf_cv_do_symlinks \ 7745 rmSoLocs=$cf_cv_rm_so_locs \ 7746 ldconfig="$LDCONFIG" \ 7747 overwrite=$WITH_OVERWRITE \ 7748 depend="$cf_depend" \ 7749 target="$target" \ 7750 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 7751 test $cf_dir = ncurses && WITH_OVERWRITE=no 7752 $AWK -f $srcdir/mk-2nd.awk \ 7753 name=$cf_dir \ 7754 traces=$LIB_TRACING \ 7755 MODEL=$CF_ITEM \ 7756 model=$cf_subdir \ 7757 subset=$cf_subset \ 7758 srcdir=$srcdir \ 7759 echo=$WITH_ECHO \ 7760 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 7761 done 7762 done 7763 fi 7764 7765 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >>Makefile 7766done 7767 7768for cf_dir in $SRC_SUBDIRS 7769do 7770 if test -f $cf_dir/Makefile ; then 7771 case "$cf_dir" in 7772 Ada95) #(vi 7773 echo 'libs \' >> Makefile 7774 echo 'install.libs \' >> Makefile 7775 echo 'uninstall.libs ::' >> Makefile 7776 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >> Makefile 7777 ;; 7778 esac 7779 fi 7780 7781 if test -f $srcdir/$cf_dir/modules; then 7782 echo >> Makefile 7783 if test -f $srcdir/$cf_dir/headers; then 7784cat >> Makefile <<CF_EOF 7785install.includes \\ 7786uninstall.includes \\ 7787CF_EOF 7788 fi 7789if test "$cf_dir" != "c++" ; then 7790echo 'lint \' >> Makefile 7791fi 7792cat >> Makefile <<CF_EOF 7793libs \\ 7794lintlib \\ 7795install.libs \\ 7796uninstall.libs \\ 7797install.$cf_dir \\ 7798uninstall.$cf_dir :: 7799 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@ 7800CF_EOF 7801 elif test -f $srcdir/$cf_dir/headers; then 7802cat >> Makefile <<CF_EOF 7803 7804libs \\ 7805install.libs \\ 7806uninstall.libs \\ 7807install.includes \\ 7808uninstall.includes :: 7809 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@ 7810CF_EOF 7811fi 7812done 7813 7814cat >> Makefile <<CF_EOF 7815 7816install.data \ 7817uninstall.data :: 7818 cd misc && \$(MAKE) \$(CF_MFLAGS) \$@ 7819 7820install.man \ 7821uninstall.man :: 7822 cd man && \$(MAKE) \$(CF_MFLAGS) \$@ 7823 7824distclean :: 7825 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h 7826 rm -f headers.sh headers.sed 7827 rm -rf \$(DIRS_TO_MAKE) 7828CF_EOF 7829 7830# Special case: tack's manpage lives in its own directory. 7831if test -d tack ; then 7832if test -f $srcdir/$tack.h; then 7833cat >> Makefile <<CF_EOF 7834 7835install.man \ 7836uninstall.man :: 7837 cd tack && \$(MAKE) \$(CF_MFLAGS) \$@ 7838CF_EOF 7839fi 7840fi 7841 7842 7843rm -f headers.sed headers.sh 7844 7845echo creating headers.sh 7846cat >headers.sh <<CF_EOF 7847#! /bin/sh 7848# This shell script is generated by the 'configure' script. It is invoked in a 7849# subdirectory of the build tree. It generates a sed-script in the parent 7850# directory that is used to adjust includes for header files that reside in a 7851# subdirectory of /usr/include, etc. 7852PRG="" 7853while test \$# != 3 7854do 7855PRG="\$PRG \$1"; shift 7856done 7857DST=\$1 7858REF=\$2 7859SRC=\$3 7860echo installing \$SRC in \$DST 7861case \$DST in 7862/*/include/*) 7863 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$ 7864 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$ 7865 END=\`basename \$DST\` 7866 for i in \`cat \$REF/../*/headers |fgrep -v "#"\` 7867 do 7868 NAME=\`basename \$i\` 7869 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 7870 done 7871 rm -f \$TMPSRC 7872 sed -f \$TMPSED \$SRC > \$TMPSRC 7873 eval \$PRG \$TMPSRC \$DST/\`basename \$SRC\` 7874 rm -f \$TMPSRC \$TMPSED 7875 ;; 7876*) 7877 eval \$PRG \$SRC \$DST 7878 ;; 7879esac 7880CF_EOF 7881 7882chmod 0755 headers.sh 7883 7884for cf_dir in $SRC_SUBDIRS 7885do 7886 if test -f $srcdir/$cf_dir/headers; then 7887 cat >>$cf_dir/Makefile <<CF_EOF 7888\$(DESTDIR)\$(includedir) : 7889 \$(srcdir)/../mkinstalldirs \$@ 7890 7891install \\ 7892install.libs \\ 7893install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\ 7894CF_EOF 7895 j="" 7896 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"` 7897 do 7898 test -n "$j" && echo " $j \\" >>$cf_dir/Makefile 7899 j=$i 7900 done 7901 echo " $j" >>$cf_dir/Makefile 7902 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"` 7903 do 7904 echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile 7905 test $i = curses.h && echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile 7906 done 7907 7908 cat >>$cf_dir/Makefile <<CF_EOF 7909 7910uninstall \\ 7911uninstall.libs \\ 7912uninstall.includes :: 7913CF_EOF 7914 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"` 7915 do 7916 i=`basename $i` 7917 echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile 7918 test $i = curses.h && echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile 7919 done 7920 fi 7921done 7922 7923 7924 7925exit 0 7926EOF 7927chmod +x $CONFIG_STATUS 7928rm -fr confdefs* $ac_clean_files 7929test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 7930${MAKE-make} preinstall 7931