1#! /bin/sh 2# From configure.in Revision: 1.729 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20210105. 5# 6# Copyright 2003-2020,2021 Thomas E. Dickey 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11 12# Avoid depending upon Character Ranges. 13as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16as_cr_digits='0123456789' 17as_cr_alnum=$as_cr_Letters$as_cr_digits 18 19# Sed expression to map a string onto a valid variable name. 20as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21 22# Sed expression to map a string onto a valid CPP name. 23as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 24 25# Be Bourne compatible 26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27 emulate sh 28 NULLCMD=: 29elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 30 set -o posix 31fi 32 33# Name of the executable. 34as_me=`echo "$0" |sed 's,.*[\\/],,'` 35 36if expr a : '\(a\)' >/dev/null 2>&1; then 37 as_expr=expr 38else 39 as_expr=false 40fi 41 42rm -f conf$$ conf$$.exe conf$$.file 43echo >conf$$.file 44if ln -s conf$$.file conf$$ 2>/dev/null; then 45 # We could just check for DJGPP; but this test a) works b) is more generic 46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 47 if test -f conf$$.exe; then 48 # Don't use ln at all; we don't have any links 49 as_ln_s='cp -p' 50 else 51 as_ln_s='ln -s' 52 fi 53elif ln conf$$.file conf$$ 2>/dev/null; then 54 as_ln_s=ln 55else 56 as_ln_s='cp -p' 57fi 58rm -f conf$$ conf$$.exe conf$$.file 59 60as_executable_p="test -f" 61 62# Support unset when possible. 63if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 64 as_unset="unset" 65else 66 as_unset="false" 67fi 68 69# NLS nuisances. 70$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 71$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 72$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 73$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 74$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 75$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 76$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 77$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 78 79# IFS 80# We need space, tab and new line, in precisely that order. 81as_nl=' 82' 83IFS=" $as_nl" 84 85# CDPATH. 86$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 87 88# Name of the host. 89# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 90# so uname gets run too. 91ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 92 93exec 6>&1 94 95# 96# Initializations. 97# 98ac_default_prefix=/usr/local 99cross_compiling=no 100subdirs= 101MFLAGS= 102MAKEFLAGS= 103SHELL=${CONFIG_SHELL-/bin/sh} 104 105# Maximum number of lines to put in a shell here document. 106# This variable seems obsolete. It should probably be removed, and 107# only ac_max_sed_lines should be used. 108: "${ac_max_here_lines=38}" 109 110ac_unique_file="ncurses/base/lib_initscr.c" 111# Factoring default headers for most tests. 112ac_includes_default="\ 113#include <stdio.h> 114#if HAVE_SYS_TYPES_H 115# include <sys/types.h> 116#endif 117#if HAVE_SYS_STAT_H 118# include <sys/stat.h> 119#endif 120#if STDC_HEADERS 121# include <stdlib.h> 122# include <stddef.h> 123#else 124# if HAVE_STDLIB_H 125# include <stdlib.h> 126# endif 127#endif 128#if HAVE_STRING_H 129# if !STDC_HEADERS && HAVE_MEMORY_H 130# include <memory.h> 131# endif 132# include <string.h> 133#endif 134#if HAVE_STRINGS_H 135# include <strings.h> 136#endif 137#if HAVE_INTTYPES_H 138# include <inttypes.h> 139#else 140# if HAVE_STDINT_H 141# include <stdint.h> 142# endif 143#endif 144#if HAVE_UNISTD_H 145# include <unistd.h> 146#endif" 147 148# Initialize some variables set by options. 149ac_init_help= 150ac_init_version=false 151# The variables have the same names as the options, with 152# dashes changed to underlines. 153cache_file=/dev/null 154exec_prefix=NONE 155no_create= 156no_recursion= 157prefix=NONE 158program_prefix=NONE 159program_suffix=NONE 160program_transform_name=s,x,x, 161silent= 162site= 163srcdir= 164verbose= 165x_includes=NONE 166x_libraries=NONE 167 168# Installation directory options. 169# These are left unexpanded so users can "make install exec_prefix=/foo" 170# and all the variables that are supposed to be based on exec_prefix 171# by default will actually change. 172# Use braces instead of parens because sh, perl, etc. also accept them. 173bindir='${exec_prefix}/bin' 174sbindir='${exec_prefix}/sbin' 175libexecdir='${exec_prefix}/libexec' 176datarootdir='${prefix}/share' 177datadir='${datarootdir}' 178sysconfdir='${prefix}/etc' 179sharedstatedir='${prefix}/com' 180localstatedir='${prefix}/var' 181runstatedir='${localstatedir}/run' 182libdir='${exec_prefix}/lib' 183includedir='${prefix}/include' 184oldincludedir='/usr/include' 185infodir='${datarootdir}/info' 186mandir='${datarootdir}/man' 187 188# Identity of this package. 189PACKAGE_NAME= 190PACKAGE_TARNAME= 191PACKAGE_VERSION= 192PACKAGE_STRING= 193PACKAGE_BUGREPORT= 194 195ac_prev= 196for ac_option 197do 198 # If the previous option needs an argument, assign it. 199 if test -n "$ac_prev"; then 200 eval "$ac_prev=\$ac_option" 201 ac_prev= 202 continue 203 fi 204 205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 206 207 # Accept the important Cygnus configure options, so we can diagnose typos. 208 209 case "$ac_option" in 210 211 -bindir | --bindir | --bindi | --bind | --bin | --bi) 212 ac_prev=bindir ;; 213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 214 bindir=$ac_optarg ;; 215 216 -build | --build | --buil | --bui | --bu) 217 ac_prev=build_alias ;; 218 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 219 build_alias=$ac_optarg ;; 220 221 -cache-file | --cache-file | --cache-fil | --cache-fi \ 222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 223 ac_prev=cache_file ;; 224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 226 cache_file=$ac_optarg ;; 227 228 --config-cache | -C) 229 cache_file=config.cache ;; 230 231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 232 ac_prev=datadir ;; 233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 234 | --da=*) 235 datadir=$ac_optarg ;; 236 237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 238 | --dataroo | --dataro | --datar) 239 ac_prev=datarootdir ;; 240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 242 datarootdir=$ac_optarg ;; 243 244 -disable-* | --disable-*) 245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 246 # Reject names that are not valid shell variable names. 247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 249 { (exit 1); exit 1; }; } 250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 251 eval "enable_$ac_feature=no" ;; 252 253 -enable-* | --enable-*) 254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 255 # Reject names that are not valid shell variable names. 256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 258 { (exit 1); exit 1; }; } 259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'` 260 case "$ac_option" in 261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 262 *) ac_optarg=yes ;; 263 esac 264 eval "enable_$ac_feature='$ac_optarg'" ;; 265 266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 268 | --exec | --exe | --ex) 269 ac_prev=exec_prefix ;; 270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 272 | --exec=* | --exe=* | --ex=*) 273 exec_prefix=$ac_optarg ;; 274 275 -gas | --gas | --ga | --g) 276 # Obsolete; use --with-gas. 277 with_gas=yes ;; 278 279 -help | --help | --hel | --he | -h) 280 ac_init_help=long ;; 281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 282 ac_init_help=recursive ;; 283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 284 ac_init_help=short ;; 285 286 -host | --host | --hos | --ho) 287 ac_prev=host_alias ;; 288 -host=* | --host=* | --hos=* | --ho=*) 289 host_alias=$ac_optarg ;; 290 291 -includedir | --includedir | --includedi | --included | --include \ 292 | --includ | --inclu | --incl | --inc) 293 ac_prev=includedir ;; 294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 295 | --includ=* | --inclu=* | --incl=* | --inc=*) 296 includedir=$ac_optarg ;; 297 298 -infodir | --infodir | --infodi | --infod | --info | --inf) 299 ac_prev=infodir ;; 300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 301 infodir=$ac_optarg ;; 302 303 -libdir | --libdir | --libdi | --libd) 304 ac_prev=libdir ;; 305 -libdir=* | --libdir=* | --libdi=* | --libd=*) 306 libdir=$ac_optarg ;; 307 308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 309 | --libexe | --libex | --libe) 310 ac_prev=libexecdir ;; 311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 312 | --libexe=* | --libex=* | --libe=*) 313 libexecdir=$ac_optarg ;; 314 315 -localstatedir | --localstatedir | --localstatedi | --localstated \ 316 | --localstate | --localstat | --localsta | --localst \ 317 | --locals | --local | --loca | --loc | --lo) 318 ac_prev=localstatedir ;; 319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 322 localstatedir=$ac_optarg ;; 323 324 -runstatedir | --runstatedir | --runstatedi | --runstated \ 325 | --runstate | --runstat | --runsta | --runst \ 326 | --runs | --run | --ru) 327 ac_prev=runstatedir ;; 328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 330 | --runs=* | --run=* | --ru=*) 331 runstatedir=$ac_optarg ;; 332 333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 334 ac_prev=mandir ;; 335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 336 mandir=$ac_optarg ;; 337 338 -nfp | --nfp | --nf) 339 # Obsolete; use --without-fp. 340 with_fp=no ;; 341 342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 343 | --no-cr | --no-c) 344 no_create=yes ;; 345 346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 348 no_recursion=yes ;; 349 350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 352 | --oldin | --oldi | --old | --ol | --o) 353 ac_prev=oldincludedir ;; 354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 357 oldincludedir=$ac_optarg ;; 358 359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 360 ac_prev=prefix ;; 361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 362 prefix=$ac_optarg ;; 363 364 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 365 | --program-pre | --program-pr | --program-p) 366 ac_prev=program_prefix ;; 367 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 369 program_prefix=$ac_optarg ;; 370 371 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 372 | --program-suf | --program-su | --program-s) 373 ac_prev=program_suffix ;; 374 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 376 program_suffix=$ac_optarg ;; 377 378 -program-transform-name | --program-transform-name \ 379 | --program-transform-nam | --program-transform-na \ 380 | --program-transform-n | --program-transform- \ 381 | --program-transform | --program-transfor \ 382 | --program-transfo | --program-transf \ 383 | --program-trans | --program-tran \ 384 | --progr-tra | --program-tr | --program-t) 385 ac_prev=program_transform_name ;; 386 -program-transform-name=* | --program-transform-name=* \ 387 | --program-transform-nam=* | --program-transform-na=* \ 388 | --program-transform-n=* | --program-transform-=* \ 389 | --program-transform=* | --program-transfor=* \ 390 | --program-transfo=* | --program-transf=* \ 391 | --program-trans=* | --program-tran=* \ 392 | --progr-tra=* | --program-tr=* | --program-t=*) 393 program_transform_name=$ac_optarg ;; 394 395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 396 | -silent | --silent | --silen | --sile | --sil) 397 silent=yes ;; 398 399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 400 ac_prev=sbindir ;; 401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 402 | --sbi=* | --sb=*) 403 sbindir=$ac_optarg ;; 404 405 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 407 | --sharedst | --shareds | --shared | --share | --shar \ 408 | --sha | --sh) 409 ac_prev=sharedstatedir ;; 410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 413 | --sha=* | --sh=*) 414 sharedstatedir=$ac_optarg ;; 415 416 -site | --site | --sit) 417 ac_prev=site ;; 418 -site=* | --site=* | --sit=*) 419 site=$ac_optarg ;; 420 421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 422 ac_prev=srcdir ;; 423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 424 srcdir=$ac_optarg ;; 425 426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 427 | --syscon | --sysco | --sysc | --sys | --sy) 428 ac_prev=sysconfdir ;; 429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 431 sysconfdir=$ac_optarg ;; 432 433 -target | --target | --targe | --targ | --tar | --ta | --t) 434 ac_prev=target_alias ;; 435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 436 target_alias=$ac_optarg ;; 437 438 -v | -verbose | --verbose | --verbos | --verbo | --verb) 439 verbose=yes ;; 440 441 -version | --version | --versio | --versi | --vers | -V) 442 ac_init_version=: ;; 443 444 -with-* | --with-*) 445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 446 # Reject names that are not valid shell variable names. 447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 448 { echo "$as_me: error: invalid package name: $ac_package" >&2 449 { (exit 1); exit 1; }; } 450 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 451 case "$ac_option" in 452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 453 *) ac_optarg=yes ;; 454 esac 455 eval "with_$ac_package='$ac_optarg'" ;; 456 457 -without-* | --without-*) 458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 459 # Reject names that are not valid shell variable names. 460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 461 { echo "$as_me: error: invalid package name: $ac_package" >&2 462 { (exit 1); exit 1; }; } 463 ac_package=`echo "$ac_package" | sed 's/-/_/g'` 464 eval "with_$ac_package=no" ;; 465 466 --x) 467 # Obsolete; use --with-x. 468 with_x=yes ;; 469 470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 471 | --x-incl | --x-inc | --x-in | --x-i) 472 ac_prev=x_includes ;; 473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 475 x_includes=$ac_optarg ;; 476 477 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 479 ac_prev=x_libraries ;; 480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 482 x_libraries=$ac_optarg ;; 483 484 -*) { echo "$as_me: error: unrecognized option: $ac_option 485Try \`$0 --help' for more information." >&2 486 { (exit 1); exit 1; }; } 487 ;; 488 489 *=*) 490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 491 # Reject names that are not valid shell variable names. 492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 494 { (exit 1); exit 1; }; } 495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 496 eval "$ac_envvar='$ac_optarg'" 497 export "$ac_envvar" ;; 498 499 *) 500 # FIXME: should be removed in autoconf 3.0. 501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}" 505 ;; 506 507 esac 508done 509 510if test -n "$ac_prev"; then 511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'` 512 { echo "$as_me: error: missing argument to $ac_option" >&2 513 { (exit 1); exit 1; }; } 514fi 515 516# Be sure to have absolute paths. 517for ac_var in exec_prefix prefix 518do 519 eval ac_val=$`echo "$ac_var"` 520 case "$ac_val" in 521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 523 { (exit 1); exit 1; }; };; 524 esac 525done 526 527# Be sure to have absolute paths. 528for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 529 localstatedir libdir includedir oldincludedir infodir mandir 530do 531 eval ac_val=$`echo "$ac_var"` 532 case "$ac_val" in 533 [\\/$]* | ?:[\\/]* ) ;; 534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 535 { (exit 1); exit 1; }; };; 536 esac 537done 538 539# There might be people who depend on the old broken behavior: `$host' 540# used to hold the argument of --host etc. 541build=$build_alias 542host=$host_alias 543target=$target_alias 544 545# FIXME: should be removed in autoconf 3.0. 546if test "x$host_alias" != x; then 547 if test "x$build_alias" = x; then 548 cross_compiling=maybe 549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 550 If a cross compiler is detected then cross compile mode will be used." >&2 551 elif test "x$build_alias" != "x$host_alias"; then 552 cross_compiling=yes 553 fi 554fi 555 556ac_tool_prefix= 557test -n "$host_alias" && ac_tool_prefix=$host_alias- 558 559test "$silent" = yes && exec 6>/dev/null 560 561# Find the source files, if location was not specified. 562if test -z "$srcdir"; then 563 ac_srcdir_defaulted=yes 564 # Try the directory containing this script, then its parent. 565 ac_prog=$0 566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 568 srcdir=$ac_confdir 569 if test ! -r "$srcdir/$ac_unique_file"; then 570 srcdir=.. 571 fi 572else 573 ac_srcdir_defaulted=no 574fi 575if test ! -r "$srcdir/$ac_unique_file"; then 576 if test "$ac_srcdir_defaulted" = yes; then 577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 578 { (exit 1); exit 1; }; } 579 else 580 { echo "$as_me: error: cannot find sources in $srcdir" >&2 581 { (exit 1); exit 1; }; } 582 fi 583fi 584srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 585ac_env_build_alias_set=${build_alias+set} 586ac_env_build_alias_value=$build_alias 587ac_cv_env_build_alias_set=${build_alias+set} 588ac_cv_env_build_alias_value=$build_alias 589ac_env_host_alias_set=${host_alias+set} 590ac_env_host_alias_value=$host_alias 591ac_cv_env_host_alias_set=${host_alias+set} 592ac_cv_env_host_alias_value=$host_alias 593ac_env_target_alias_set=${target_alias+set} 594ac_env_target_alias_value=$target_alias 595ac_cv_env_target_alias_set=${target_alias+set} 596ac_cv_env_target_alias_value=$target_alias 597ac_env_CC_set=${CC+set} 598ac_env_CC_value=$CC 599ac_cv_env_CC_set=${CC+set} 600ac_cv_env_CC_value=$CC 601ac_env_CFLAGS_set=${CFLAGS+set} 602ac_env_CFLAGS_value=$CFLAGS 603ac_cv_env_CFLAGS_set=${CFLAGS+set} 604ac_cv_env_CFLAGS_value=$CFLAGS 605ac_env_LDFLAGS_set=${LDFLAGS+set} 606ac_env_LDFLAGS_value=$LDFLAGS 607ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 608ac_cv_env_LDFLAGS_value=$LDFLAGS 609ac_env_CPPFLAGS_set=${CPPFLAGS+set} 610ac_env_CPPFLAGS_value=$CPPFLAGS 611ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 612ac_cv_env_CPPFLAGS_value=$CPPFLAGS 613ac_env_CPP_set=${CPP+set} 614ac_env_CPP_value=$CPP 615ac_cv_env_CPP_set=${CPP+set} 616ac_cv_env_CPP_value=$CPP 617ac_env_CXX_set=${CXX+set} 618ac_env_CXX_value=$CXX 619ac_cv_env_CXX_set=${CXX+set} 620ac_cv_env_CXX_value=$CXX 621ac_env_CXXFLAGS_set=${CXXFLAGS+set} 622ac_env_CXXFLAGS_value=$CXXFLAGS 623ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 624ac_cv_env_CXXFLAGS_value=$CXXFLAGS 625ac_env_CXXCPP_set=${CXXCPP+set} 626ac_env_CXXCPP_value=$CXXCPP 627ac_cv_env_CXXCPP_set=${CXXCPP+set} 628ac_cv_env_CXXCPP_value=$CXXCPP 629 630# 631# Report the --help message. 632# 633if test "$ac_init_help" = "long"; then 634 # Omit some internal or obsolete options to make the list less imposing. 635 # This message is too long to be a string in the A/UX 3.1 sh. 636 cat <<EOF 637\`configure' configures this package to adapt to many kinds of systems. 638 639Usage: $0 [OPTION]... [VAR=VALUE]... 640 641To assign environment variables (e.g., CC, CFLAGS...), specify them as 642VAR=VALUE. See below for descriptions of some of the useful variables. 643 644Defaults for the options are specified in brackets. 645 646Configuration: 647 -h, --help display this help and exit 648 --help=short display options specific to this package 649 --help=recursive display the short help of all the included packages 650 -V, --version display version information and exit 651 -q, --quiet, --silent do not print \`checking...' messages 652 --cache-file=FILE cache test results in FILE [disabled] 653 -C, --config-cache alias for \`--cache-file=config.cache' 654 -n, --no-create do not create output files 655 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 656 657EOF 658 659 cat <<EOF 660Installation directories: 661 --prefix=PREFIX install architecture-independent files in PREFIX 662 [$ac_default_prefix] 663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 664 [PREFIX] 665 666By default, \`make install' will install all the files in 667\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 668an installation prefix other than \`$ac_default_prefix' using \`--prefix', 669for instance \`--prefix=\$HOME'. 670 671For better control, use the options below. 672 673Fine tuning of the installation directories: 674 --bindir=DIR user executables [EPREFIX/bin] 675 --sbindir=DIR system admin executables [EPREFIX/sbin] 676 --libexecdir=DIR program executables [EPREFIX/libexec] 677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 681 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 683 --libdir=DIR object code libraries [EPREFIX/lib] 684 --includedir=DIR C header files [PREFIX/include] 685 --oldincludedir=DIR C header files for non-gcc [/usr/include] 686 --infodir=DIR info documentation [DATAROOTDIR/info] 687 --mandir=DIR man documentation [DATAROOTDIR/man] 688EOF 689 690 cat <<\EOF 691 692Program names: 693 --program-prefix=PREFIX prepend PREFIX to installed program names 694 --program-suffix=SUFFIX append SUFFIX to installed program names 695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 696 697System types: 698 --build=BUILD configure for building on BUILD [guessed] 699 --host=HOST build programs to run on HOST [BUILD] 700 --target=TARGET configure for building compilers for TARGET [HOST] 701EOF 702fi 703 704if test -n "$ac_init_help"; then 705 706 cat <<\EOF 707 708Optional Packages: 709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 711 712Optional Features: 713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 715 716 --with-rel-version=XXX override derived release version 717 --with-abi-version=XXX override derived ABI version 718 --with-system-type=XXX test: override derived host system-type 719 --without-ada suppress check for Ada compiler, don't build demo 720 --without-cxx do not adjust ncurses bool to match C++ 721 --without-cxx-binding do not build C++ binding and demo 722 --disable-db-install suppress install of terminal database 723 --without-manpages suppress install of manpages 724 --without-progs suppress build/install with programs (e.g., tic) 725 --without-tack suppress build/install with tack program 726 --without-tests suppress build/install with test-programs 727 --without-curses-h install curses.h as ncurses.h only 728 --with-config-suffix=X suffixes ncursesXX-config file 729 --with-pkg-config{=path} enable/disable use of pkg-config 730 --with-pkg-config-libdir=XXX use given directory for installing pc-files 731 --enable-pc-files generate and install .pc files for pkg-config 732 --with-pc-suffix suffixes pc-files 733 --enable-mixed-case tic should assume mixed-case filenames 734 --with-install-prefix prefixes actual install-location ($DESTDIR) 735Build-Tools Needed to Compile Temporary Applications for Cross-compiling: 736 --with-build-cc=XXX the build C compiler ($BUILD_CC) 737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP) 738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS) 739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS) 740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS) 741 --with-build-libs=XXX the build libraries (${BUILD_LIBS}) 742Options to Specify the Libraries Built/Used: 743 --disable-libtool-version enable to use libtool's incompatible naming scheme 744 --with-libtool generate libraries with libtool 745 --with-shared generate shared-libraries 746 --with-normal generate normal-libraries (default) 747 --with-debug generate debug-libraries (default) 748 --with-profile generate profile-libraries 749 --with-cxx-shared generate C++ shared-libraries 750 --with-lib-prefix override library-prefix 751 --with-termlib generate separate terminfo library 752 --with-ticlib generate separate tic library 753 --enable-rpath use rpath option when generating shared libraries 754 --disable-relink relink shared libraries during install 755 --with-shlib-version=X Specify rel or abi version for shared libs 756 --with-libtool-opts=XXX specify additional libtool options 757 --with-export-syms=XXX limit exported symbols using libtool 758 --with-versioned-syms=X markup versioned symbols using ld 759 --with-gpm use Alessandro Rubini's GPM library 760 --without-dlsym do not use dlsym() to load GPM dynamically 761 --with-pcre2 use PCRE2 for regular-expressions 762 --with-sysmouse use sysmouse (FreeBSD console) 763 --disable-lib-suffixes disable library suffixes 764 --disable-rpath-hack don't add rpath options for additional libraries 765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts 766Fine-Tuning Your Configuration: 767 --with-extra-suffix=X append extra suffix to header/library paths 768 --disable-overwrite put headers in subdir, omit link to -lcurses 769 --disable-database do not use terminfo, only fallbacks/termcap 770 --with-database=XXX specify terminfo source to install 771 --with-hashed-db specify hashed-database library 772 --with-fallbacks=XXX specify list of fallback terminal descriptions 773 --with-tic-path=XXX specify path of tic for fallbacks 774 --with-infocmp-path=XXX specify path of infocmp for fallbacks 775 --without-xterm-new specify if xterm terminfo should be old version 776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL 777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo) 778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo) 779 --disable-big-core assume machine has little memory 780 --disable-big-strings assume compiler has only standard-size strings 781 --enable-termcap compile in termcap fallback support 782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap) 783 --enable-getcap fast termcap load, no xrefs to terminfo 784 --enable-getcap-cache cache translated termcaps in ~/.terminfo 785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path 786 --disable-root-environ restrict environment when running as root 787 --enable-symlinks make tic use symbolic links not hard links 788 --enable-broken_linker compile with broken-linker support code 789 --enable-bsdpad recognize BSD-style prefix padding 790 --enable-widec compile with wide-char/UTF-8 code 791 --disable-lp64 allow chtype to be long (ignore _LP64) 792 --disable-largefile omit support for large files 793 --disable-tparm-varargs compile tparm() without varargs interface 794 --disable-tic-depends link tic library without explicit dependency on ncurses library 795 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition 796 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt) 797 --with-bool=TYPE override fallback type of bool variable 798 --with-caps=alt compile with alternate Caps file 799 --with-chtype=TYPE override type of chtype 800 --with-ospeed=TYPE override type of ospeed variable 801 --with-mmask-t=TYPE override type of mmask_t 802 --with-ccharw-max=XXX override size CCHARW_MAX 803 --enable-signed-char compile using signed Boolean's in term.h 804 --with-tparm-arg=TYPE override parameter type of tparm 805 --with-rcs-ids compile-in RCS identifiers 806Options to Specify How Manpages are Installed: 807 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and 808 optionally formatted/catonly, e.g., gzip,formatted 809 --with-manpage-renames specify manpage-renaming 810 --with-manpage-aliases specify manpage-aliases using .so 811 --with-manpage-symlinks specify manpage-aliases using symlinks 812 --with-manpage-tbl specify manpage processing with tbl 813Extensions: 814 --disable-ext-funcs disable function-extensions 815 --enable-sp-funcs enable SCREEN-extensions 816 --enable-term-driver enable terminal-driver 817 --enable-const compile with extra/non-standard const 818 --enable-ext-colors compile for 256-color support 819 --enable-ext-mouse compile for extended mouse-encoding 820 --enable-ext-putwin compile with extended putwin/screendump 821 --enable-no-padding compile with $NCURSES_NO_PADDING code 822 --enable-sigwinch compile with SIGWINCH handler 823 --enable-tcap-names compile with user-definable terminal capabilities 824Reentrant Code: 825 --with-pthread use POSIX thread library 826 --enable-pthreads-eintr enable EINTR in wgetch with pthreads 827 --enable-weak-symbols enable weak-symbols for pthreads 828 --enable-reentrant compile with reentrant code 829 --enable-opaque-curses make curses WINDOW, etc., "opaque" 830 --enable-opaque-form make form-library structures "opaque" 831 --enable-opaque-menu make menu-library structures "opaque" 832 --enable-opaque-panel make panel-library structures "opaque" 833 --with-wrap-prefix=XXX override prefix used for public variables 834Development Code: 835 --without-develop disable development options 836 --enable-hard-tabs compile with hard-tabs code 837 --enable-xmc-glitch compile with support for xmc (magic-cookie) 838Experimental Code: 839 --disable-assumed-color do not assume anything about default-colors 840 --disable-hashmap compile without hashmap scrolling-optimization 841 --enable-colorfgbg compile-in experimental $COLORFGBG code 842 --enable-fvisibility compile with -fvisibility=hidden 843 --enable-interop compile-in interop bindings 844 --enable-safe-sprintf compile with experimental safe-sprintf code 845 --disable-scroll-hints compile without scroll-hints code 846 --enable-wgetch-events compile with wgetch-events code 847 --enable-exp-win32 compile with experimental-Windows driver 848Testing/development Options: 849 --disable-echo do not display "compiling" commands 850 --disable-stripping do not strip (debug info) installed executables 851 --enable-warnings test: turn on gcc compiler warnings 852 --enable-string-hacks work around bogus compiler/loader warnings 853 --enable-assertions test: turn on generation of assertion code 854 --with-dmalloc test: use Gray Watson's dmalloc library 855 --with-dbmalloc test: use Conor Cahill's dbmalloc library 856 --with-valgrind test: use valgrind 857 --disable-leaks test: free permanent memory, analyze leaks 858 --enable-expanded test: generate functions for certain macros 859 --disable-macros test: use functions rather than macros 860 --with-trace test: add trace() function to all models of ncurses 861 --disable-gnat-projects test: disable GNAT projects even if usable 862Ada Binding Options: 863 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake) 864 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude) 865 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib) 866 --with-ada-sharedlib=soname build shared-library (requires GNAT projects) 867 --with-ada-libname=XXX override default Ada library-name 868 --with-form-libname=XXX override form basename of library 869 --with-menu-libname=XXX override menu basename of library 870 --with-panel-libname=XXX override panel basename of library 871 --with-cxx-libname=XXX override ncurses++ basename of library 872 873Some influential environment variables: 874 CC C compiler command 875 CFLAGS C compiler flags 876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 877 nonstandard directory <lib dir> 878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 879 headers in a nonstandard directory <include dir> 880 CPP C preprocessor 881 CXX C++ compiler command 882 CXXFLAGS C++ compiler flags 883 CXXCPP C++ preprocessor 884 885Use these variables to override the choices made by `configure' or to help 886it to find libraries and programs with nonstandard names/locations. 887 888EOF 889fi 890 891if test "$ac_init_help" = "recursive"; then 892 # If there are subdirs, report their specific --help. 893 ac_popdir=`pwd` 894 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 895 cd "$ac_subdir" 896 # A "../" for each directory in /$ac_subdir. 897 ac_dots=`echo "$ac_subdir" | 898 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 899 900 case "$srcdir" in 901 .) # No --srcdir option. We are building in place. 902 ac_sub_srcdir="$srcdir" ;; 903 [\\/]* | ?:[\\/]* ) # Absolute path. 904 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 905 *) # Relative path. 906 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 907 esac 908 909 # Check for guested configure; otherwise get Cygnus style configure. 910 if test -f "$ac_sub_srcdir/configure.gnu"; then 911 echo 912 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 913 elif test -f "$ac_sub_srcdir/configure"; then 914 echo 915 $SHELL "$ac_sub_srcdir/configure" --help=recursive 916 elif test -f "$ac_sub_srcdir/configure.ac" || 917 test -f "$ac_sub_srcdir/configure.in"; then 918 echo 919 "$ac_configure" --help 920 else 921 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 922 fi 923 cd "$ac_popdir" 924 done 925fi 926 927test -n "$ac_init_help" && exit 0 928if "$ac_init_version"; then 929 cat <<\EOF 930 931Copyright 2003-2020,2021 Thomas E. Dickey 932Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 933Free Software Foundation, Inc. 934This configure script is free software; the Free Software Foundation 935gives unlimited permission to copy, distribute and modify it. 936EOF 937 exit 0 938fi 939exec 5>config.log 940cat >&5 <<EOF 941This file contains any messages produced by compilers while 942running configure, to aid debugging if configure makes a mistake. 943 944It was created by $as_me, which was 945generated by GNU Autoconf 2.52.20210105. Invocation command line was 946 947 $ $0 $@ 948 949EOF 950{ 951cat <<_ASUNAME 952## ---------- ## 953## Platform. ## 954## ---------- ## 955 956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 957uname -m = `(uname -m) 2>/dev/null || echo unknown` 958uname -r = `(uname -r) 2>/dev/null || echo unknown` 959uname -s = `(uname -s) 2>/dev/null || echo unknown` 960uname -v = `(uname -v) 2>/dev/null || echo unknown` 961 962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 963/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 964 965/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 966/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 968hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 969/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 970/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 971/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 972 973PATH = $PATH 974 975_ASUNAME 976} >&5 977 978cat >&5 <<EOF 979## ------------ ## 980## Core tests. ## 981## ------------ ## 982 983EOF 984 985# Keep a trace of the command line. 986# Strip out --no-create and --no-recursion so they do not pile up. 987# Also quote any args containing shell meta-characters. 988ac_configure_args= 989ac_sep= 990for ac_arg 991do 992 case "$ac_arg" in 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c) ;; 995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 998 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 999 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1000 ac_sep=" " ;; 1001 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 1002 ac_sep=" " ;; 1003 esac 1004 # Get rid of the leading space. 1005done 1006 1007# When interrupted or exit'd, cleanup temporary files, and complete 1008# config.log. We remove comments because anyway the quotes in there 1009# would cause problems or look ugly. 1010trap 'exit_status=$? 1011 # Save into config.log some information that might help in debugging. 1012 echo >&5 1013 echo "## ----------------- ##" >&5 1014 echo "## Cache variables. ##" >&5 1015 echo "## ----------------- ##" >&5 1016 echo >&5 1017 # The following way of writing the cache mishandles newlines in values, 1018{ 1019 (set) 2>&1 | 1020 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1021 *ac_space=\ *) 1022 sed -n \ 1023 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1025 ;; 1026 *) 1027 sed -n \ 1028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1029 ;; 1030 esac; 1031} >&5 1032 sed "/^$/d" confdefs.h >conftest.log 1033 if test -s conftest.log; then 1034 echo >&5 1035 echo "## ------------ ##" >&5 1036 echo "## confdefs.h. ##" >&5 1037 echo "## ------------ ##" >&5 1038 echo >&5 1039 cat conftest.log >&5 1040 fi 1041 (echo; echo) >&5 1042 test "$ac_signal" != 0 && 1043 echo "$as_me: caught signal $ac_signal" >&5 1044 echo "$as_me: exit $exit_status" >&5 1045 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1046 exit $exit_status 1047 ' 0 1048for ac_signal in 1 2 13 15; do 1049 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 1050done 1051ac_signal=0 1052 1053# confdefs.h avoids OS command line length limits that DEFS can exceed. 1054rm -rf conftest* confdefs.h 1055# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1056echo >confdefs.h 1057 1058# Let the site file select an alternate cache file if it wants to. 1059# Prefer explicitly selected file to automatically selected ones. 1060if test -z "$CONFIG_SITE"; then 1061 if test "x$prefix" != xNONE; then 1062 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1063 else 1064 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1065 fi 1066fi 1067for ac_site_file in $CONFIG_SITE; do 1068 if test -r "$ac_site_file"; then 1069 { echo "$as_me:1069: loading site script $ac_site_file" >&5 1070echo "$as_me: loading site script $ac_site_file" >&6;} 1071 cat "$ac_site_file" >&5 1072 . "$ac_site_file" 1073 fi 1074done 1075 1076if test -r "$cache_file"; then 1077 # Some versions of bash will fail to source /dev/null (special 1078 # files actually), so we avoid doing that. 1079 if test -f "$cache_file"; then 1080 { echo "$as_me:1080: loading cache $cache_file" >&5 1081echo "$as_me: loading cache $cache_file" >&6;} 1082 case $cache_file in 1083 [\\/]* | ?:[\\/]* ) . $cache_file;; 1084 *) . ./$cache_file;; 1085 esac 1086 fi 1087else 1088 { echo "$as_me:1088: creating cache $cache_file" >&5 1089echo "$as_me: creating cache $cache_file" >&6;} 1090 >$cache_file 1091fi 1092 1093# Check that the precious variables saved in the cache have kept the same 1094# value. 1095ac_cache_corrupted=false 1096for ac_var in `(set) 2>&1 | 1097 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1098 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1099 eval ac_new_set=\$ac_env_${ac_var}_set 1100 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1101 eval ac_new_val="\$ac_env_${ac_var}_value" 1102 case "$ac_old_set,$ac_new_set" in 1103 set,) 1104 { echo "$as_me:1104: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1105echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1106 ac_cache_corrupted=: ;; 1107 ,set) 1108 { echo "$as_me:1108: error: \`$ac_var' was not set in the previous run" >&5 1109echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1110 ac_cache_corrupted=: ;; 1111 ,);; 1112 *) 1113 if test "x$ac_old_val" != "x$ac_new_val"; then 1114 { echo "$as_me:1114: error: \`$ac_var' has changed since the previous run:" >&5 1115echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1116 { echo "$as_me:1116: former value: $ac_old_val" >&5 1117echo "$as_me: former value: $ac_old_val" >&2;} 1118 { echo "$as_me:1118: current value: $ac_new_val" >&5 1119echo "$as_me: current value: $ac_new_val" >&2;} 1120 ac_cache_corrupted=: 1121 fi;; 1122 esac 1123 # Pass precious variables to config.status. It doesn't matter if 1124 # we pass some twice (in addition to the command line arguments). 1125 if test "$ac_new_set" = set; then 1126 case "$ac_new_val" in 1127 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1128 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1129 ac_configure_args="$ac_configure_args '$ac_arg'" 1130 ;; 1131 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1132 ;; 1133 esac 1134 fi 1135done 1136if "$ac_cache_corrupted"; then 1137 { echo "$as_me:1137: error: changes in the environment can compromise the build" >&5 1138echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1139 { { echo "$as_me:1139: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1140echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1141 { (exit 1); exit 1; }; } 1142fi 1143 1144ac_ext=c 1145ac_cpp='$CPP $CPPFLAGS' 1146ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1147ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1148ac_compiler_gnu=$ac_cv_c_compiler_gnu 1149ac_main_return="return" 1150 1151case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1152 *c*,-n*) ECHO_N= 1153 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1154 ECHO_T=' ' 1155 ;; 1156 *c*,* ) ECHO_N=-n 1157 ECHO_C= 1158 ECHO_T= 1159 ;; 1160 *) ECHO_N= 1161 ECHO_C='\c' 1162 ECHO_T= 1163 ;; 1164esac 1165echo "#! $SHELL" >conftest.sh 1166echo "exit 0" >>conftest.sh 1167chmod +x conftest.sh 1168if { (echo "$as_me:1168: PATH=\".;.\"; conftest.sh") >&5 1169 (PATH=".;."; conftest.sh) 2>&5 1170 ac_status=$? 1171 echo "$as_me:1171: \$? = $ac_status" >&5 1172 (exit "$ac_status"); }; then 1173 ac_path_separator=';' 1174else 1175 ac_path_separator=: 1176fi 1177PATH_SEPARATOR="$ac_path_separator" 1178rm -f conftest.sh 1179 1180ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin" 1181 1182top_builddir=`pwd` 1183 1184for ac_prog in ggrep grep 1185do 1186 # Extract the first word of "$ac_prog", so it can be a program name with args. 1187set dummy $ac_prog; ac_word=$2 1188echo "$as_me:1188: checking for $ac_word" >&5 1189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1190if test "${ac_cv_prog_GREP+set}" = set; then 1191 echo $ECHO_N "(cached) $ECHO_C" >&6 1192else 1193 if test -n "$GREP"; then 1194 ac_cv_prog_GREP="$GREP" # Let the user override the test. 1195else 1196 ac_save_IFS=$IFS; IFS=$ac_path_separator 1197ac_dummy="$PATH" 1198for ac_dir in $ac_dummy; do 1199 IFS=$ac_save_IFS 1200 test -z "$ac_dir" && ac_dir=. 1201 $as_executable_p "$ac_dir/$ac_word" || continue 1202ac_cv_prog_GREP="$ac_prog" 1203echo "$as_me:1203: found $ac_dir/$ac_word" >&5 1204break 1205done 1206 1207fi 1208fi 1209GREP=$ac_cv_prog_GREP 1210if test -n "$GREP"; then 1211 echo "$as_me:1211: result: $GREP" >&5 1212echo "${ECHO_T}$GREP" >&6 1213else 1214 echo "$as_me:1214: result: no" >&5 1215echo "${ECHO_T}no" >&6 1216fi 1217 1218 test -n "$GREP" && break 1219done 1220test -n "$GREP" || GREP=": " 1221 1222echo "$as_me:1222: checking for egrep" >&5 1223echo $ECHO_N "checking for egrep... $ECHO_C" >&6 1224if test "${ac_cv_path_EGREP+set}" = set; then 1225 echo $ECHO_N "(cached) $ECHO_C" >&6 1226else 1227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 1228 then ac_cv_path_EGREP="$GREP -E" 1229 else 1230 for ac_prog in gegrep egrep 1231do 1232 # Extract the first word of "$ac_prog", so it can be a program name with args. 1233set dummy $ac_prog; ac_word=$2 1234echo "$as_me:1234: checking for $ac_word" >&5 1235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1236if test "${ac_cv_path_EGREP+set}" = set; then 1237 echo $ECHO_N "(cached) $ECHO_C" >&6 1238else 1239 case $EGREP in 1240 [\\/]* | ?:[\\/]*) 1241 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 1242 ;; 1243 *) 1244 ac_save_IFS=$IFS; IFS=$ac_path_separator 1245ac_dummy="$PATH" 1246for ac_dir in $ac_dummy; do 1247 IFS=$ac_save_IFS 1248 test -z "$ac_dir" && ac_dir=. 1249 if $as_executable_p "$ac_dir/$ac_word"; then 1250 ac_cv_path_EGREP="$ac_dir/$ac_word" 1251 echo "$as_me:1251: found $ac_dir/$ac_word" >&5 1252 break 1253fi 1254done 1255 1256 ;; 1257esac 1258fi 1259EGREP=$ac_cv_path_EGREP 1260 1261if test -n "$EGREP"; then 1262 echo "$as_me:1262: result: $EGREP" >&5 1263echo "${ECHO_T}$EGREP" >&6 1264else 1265 echo "$as_me:1265: result: no" >&5 1266echo "${ECHO_T}no" >&6 1267fi 1268 1269 test -n "$EGREP" && break 1270done 1271test -n "$EGREP" || EGREP=": " 1272 1273 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1273: error: cannot find workable egrep" >&5 1274echo "$as_me: error: cannot find workable egrep" >&2;} 1275 { (exit 1); exit 1; }; } 1276 fi 1277fi 1278echo "$as_me:1278: result: $ac_cv_path_EGREP" >&5 1279echo "${ECHO_T}$ac_cv_path_EGREP" >&6 1280 EGREP="$ac_cv_path_EGREP" 1281 1282NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1283NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1284NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1285cf_cv_abi_version=${NCURSES_MAJOR} 1286cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR} 1287cf_cv_timestamp=`date` 1288echo "$as_me:1288: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5 1289echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6 1290 1291if test -f "$srcdir/VERSION" ; then 1292 echo "$as_me:1292: checking for package version" >&5 1293echo $ECHO_N "checking for package version... $ECHO_C" >&6 1294 1295 # if there are not enough fields, cut returns the last one... 1296 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1` 1297 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2` 1298 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3` 1299 1300 # this is how CF_BUNDLED_INTL uses $VERSION: 1301 VERSION="$cf_field1" 1302 1303 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'` 1304 test -z "$VERSION_MAJOR" && { { echo "$as_me:1304: error: missing major-version" >&5 1305echo "$as_me: error: missing major-version" >&2;} 1306 { (exit 1); exit 1; }; } 1307 1308 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'` 1309 test -z "$VERSION_MINOR" && { { echo "$as_me:1309: error: missing minor-version" >&5 1310echo "$as_me: error: missing minor-version" >&2;} 1311 { (exit 1); exit 1; }; } 1312 1313 echo "$as_me:1313: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5 1314echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6 1315 1316 echo "$as_me:1316: checking for package patch date" >&5 1317echo $ECHO_N "checking for package patch date... $ECHO_C" >&6 1318 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'` 1319 case .$VERSION_PATCH in 1320 (.) 1321 { { echo "$as_me:1321: error: missing patch-date $VERSION_PATCH" >&5 1322echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;} 1323 { (exit 1); exit 1; }; } 1324 ;; 1325 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) 1326 ;; 1327 (*) 1328 { { echo "$as_me:1328: error: illegal patch-date $VERSION_PATCH" >&5 1329echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;} 1330 { (exit 1); exit 1; }; } 1331 ;; 1332 esac 1333 echo "$as_me:1333: result: $VERSION_PATCH" >&5 1334echo "${ECHO_T}$VERSION_PATCH" >&6 1335else 1336 { { echo "$as_me:1336: error: did not find $srcdir/VERSION" >&5 1337echo "$as_me: error: did not find $srcdir/VERSION" >&2;} 1338 { (exit 1); exit 1; }; } 1339fi 1340 1341# show the actual data that we have for versions: 1342test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6 1343 1344echo "${as_me:-configure}:1344: testing ABI VERSION $VERSION ..." 1>&5 1345 1346test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6 1347 1348echo "${as_me:-configure}:1348: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5 1349 1350test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6 1351 1352echo "${as_me:-configure}:1352: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5 1353 1354test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6 1355 1356echo "${as_me:-configure}:1356: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5 1357 1358 cf_PACKAGE=NCURSES 1359 PACKAGE=ncurses 1360 1361cat >>confdefs.h <<EOF 1362#define PACKAGE "$PACKAGE" 1363EOF 1364 1365cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 1366 1367 cat >>confdefs.h <<EOF 1368#define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}" 1369EOF 1370 1371 cat >>confdefs.h <<EOF 1372#define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH} 1373EOF 1374 1375test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0 1376 1377# Check whether --with-rel-version or --without-rel-version was given. 1378if test "${with_rel_version+set}" = set; then 1379 withval="$with_rel_version" 1380 { echo "$as_me:1380: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5 1381echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;} 1382 cf_cv_rel_version=$withval 1383fi; 1384 1385 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'` 1386 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'` 1387 1388if test -n "$NCURSES_MAJOR" ; then 1389 case $NCURSES_MAJOR in 1390 ([0-9]*) 1391 ;; 1392 (*) 1393 { { echo "$as_me:1393: error: Release major-version is not a number: $NCURSES_MAJOR" >&5 1394echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;} 1395 { (exit 1); exit 1; }; } 1396 ;; 1397 esac 1398else 1399 { { echo "$as_me:1399: error: Release major-version value is empty" >&5 1400echo "$as_me: error: Release major-version value is empty" >&2;} 1401 { (exit 1); exit 1; }; } 1402fi 1403 1404if test -n "$NCURSES_MINOR" ; then 1405 case $NCURSES_MINOR in 1406 ([0-9]*) 1407 ;; 1408 (*) 1409 { { echo "$as_me:1409: error: Release minor-version is not a number: $NCURSES_MINOR" >&5 1410echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;} 1411 { (exit 1); exit 1; }; } 1412 ;; 1413 esac 1414else 1415 { { echo "$as_me:1415: error: Release minor-version value is empty" >&5 1416echo "$as_me: error: Release minor-version value is empty" >&2;} 1417 { (exit 1); exit 1; }; } 1418fi 1419 1420test -z "$cf_cv_abi_version" && cf_cv_abi_version=0 1421 1422# Check whether --with-abi-version or --without-abi-version was given. 1423if test "${with_abi_version+set}" = set; then 1424 withval="$with_abi_version" 1425 1426 if test "x$cf_cv_abi_version" != "x$withval" 1427 then 1428 { echo "$as_me:1428: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5 1429echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;} 1430 case "$cf_cv_rel_version" in 1431 (5.*) 1432 cf_cv_rel_version=$withval.0 1433 ;; 1434 (6.*) 1435 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release 1436 ;; 1437 esac 1438 fi 1439 cf_cv_abi_version=$withval 1440fi; 1441 1442if test -n "$cf_cv_abi_version" ; then 1443 case $cf_cv_abi_version in 1444 ([0-9]*) 1445 ;; 1446 (*) 1447 { { echo "$as_me:1447: error: ABI version is not a number: $cf_cv_abi_version" >&5 1448echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;} 1449 { (exit 1); exit 1; }; } 1450 ;; 1451 esac 1452else 1453 { { echo "$as_me:1453: error: ABI version value is empty" >&5 1454echo "$as_me: error: ABI version value is empty" >&2;} 1455 { (exit 1); exit 1; }; } 1456fi 1457 1458if test "x$cf_cv_abi_version" != "x$with_abi_version" 1459then 1460 case "$cf_cv_rel_version" in 1461 (5.*) 1462 cf_cv_rel_version=$with_abi_version.0 1463 ;; 1464 esac 1465fi 1466 1467ac_aux_dir= 1468for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1469 if test -f "$ac_dir/install-sh"; then 1470 ac_aux_dir=$ac_dir 1471 ac_install_sh="$ac_aux_dir/install-sh -c" 1472 break 1473 elif test -f "$ac_dir/install.sh"; then 1474 ac_aux_dir=$ac_dir 1475 ac_install_sh="$ac_aux_dir/install.sh -c" 1476 break 1477 elif test -f "$ac_dir/shtool"; then 1478 ac_aux_dir=$ac_dir 1479 ac_install_sh="$ac_aux_dir/shtool install -c" 1480 break 1481 fi 1482done 1483if test -z "$ac_aux_dir"; then 1484 { { echo "$as_me:1484: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1485echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1486 { (exit 1); exit 1; }; } 1487fi 1488ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1489ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1490ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1491 1492# Make sure we can run config.sub. 1493$ac_config_sub sun4 >/dev/null 2>&1 || 1494 { { echo "$as_me:1494: error: cannot run $ac_config_sub" >&5 1495echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1496 { (exit 1); exit 1; }; } 1497 1498echo "$as_me:1498: checking build system type" >&5 1499echo $ECHO_N "checking build system type... $ECHO_C" >&6 1500if test "${ac_cv_build+set}" = set; then 1501 echo $ECHO_N "(cached) $ECHO_C" >&6 1502else 1503 ac_cv_build_alias=$build_alias 1504test -z "$ac_cv_build_alias" && 1505 ac_cv_build_alias=`$ac_config_guess` 1506test -z "$ac_cv_build_alias" && 1507 { { echo "$as_me:1507: error: cannot guess build type; you must specify one" >&5 1508echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1509 { (exit 1); exit 1; }; } 1510ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1511 { { echo "$as_me:1511: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1512echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1513 { (exit 1); exit 1; }; } 1514 1515fi 1516echo "$as_me:1516: result: $ac_cv_build" >&5 1517echo "${ECHO_T}$ac_cv_build" >&6 1518build=$ac_cv_build 1519build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1520build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1521build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1522 1523echo "$as_me:1523: checking host system type" >&5 1524echo $ECHO_N "checking host system type... $ECHO_C" >&6 1525if test "${ac_cv_host+set}" = set; then 1526 echo $ECHO_N "(cached) $ECHO_C" >&6 1527else 1528 ac_cv_host_alias=$host_alias 1529test -z "$ac_cv_host_alias" && 1530 ac_cv_host_alias=$ac_cv_build_alias 1531ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1532 { { echo "$as_me:1532: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1533echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1534 { (exit 1); exit 1; }; } 1535 1536fi 1537echo "$as_me:1537: result: $ac_cv_host" >&5 1538echo "${ECHO_T}$ac_cv_host" >&6 1539host=$ac_cv_host 1540host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1541host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1542host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1543 1544if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1545 echo "$as_me:1545: checking target system type" >&5 1546echo $ECHO_N "checking target system type... $ECHO_C" >&6 1547if test "${ac_cv_target+set}" = set; then 1548 echo $ECHO_N "(cached) $ECHO_C" >&6 1549else 1550 ac_cv_target_alias=$target_alias 1551test "x$ac_cv_target_alias" = "x" && 1552 ac_cv_target_alias=$ac_cv_host_alias 1553ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` || 1554 { { echo "$as_me:1554: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1555echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1556 { (exit 1); exit 1; }; } 1557 1558fi 1559echo "$as_me:1559: result: $ac_cv_target" >&5 1560echo "${ECHO_T}$ac_cv_target" >&6 1561target=$ac_cv_target 1562target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1563target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1564target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1565 1566# The aliases save the names the user supplied, while $host etc. 1567# will get canonicalized. 1568test -n "$target_alias" && 1569 test "$program_prefix$program_suffix$program_transform_name" = \ 1570 NONENONEs,x,x, && 1571 program_prefix=${target_alias}- 1572 system_name="$host_os" 1573else 1574 system_name="`(uname -s -r) 2>/dev/null`" 1575 if test -z "$system_name" ; then 1576 system_name="`(hostname) 2>/dev/null`" 1577 fi 1578fi 1579test -n "$system_name" && 1580cat >>confdefs.h <<EOF 1581#define SYSTEM_NAME "$system_name" 1582EOF 1583 1584if test "${cf_cv_system_name+set}" = set; then 1585 echo $ECHO_N "(cached) $ECHO_C" >&6 1586else 1587 cf_cv_system_name="$system_name" 1588fi 1589 1590test -z "$system_name" && system_name="$cf_cv_system_name" 1591test -n "$cf_cv_system_name" && echo "$as_me:1591: result: Configuring for $cf_cv_system_name" >&5 1592echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1593 1594if test ".$system_name" != ".$cf_cv_system_name" ; then 1595 echo "$as_me:1595: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1596echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1597 { { echo "$as_me:1597: error: \"Please remove config.cache and try again.\"" >&5 1598echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1599 { (exit 1); exit 1; }; } 1600fi 1601 1602# Check whether --with-system-type or --without-system-type was given. 1603if test "${with_system_type+set}" = set; then 1604 withval="$with_system_type" 1605 { echo "$as_me:1605: WARNING: overriding system type to $withval" >&5 1606echo "$as_me: WARNING: overriding system type to $withval" >&2;} 1607 cf_cv_system_name=$withval 1608 host_os=$withval 1609 1610fi; 1611 1612### Save the given $CFLAGS to allow user-override. 1613cf_user_CFLAGS="$CFLAGS" 1614 1615### Default install-location 1616echo "$as_me:1616: checking for fgrep" >&5 1617echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 1618if test "${ac_cv_path_FGREP+set}" = set; then 1619 echo $ECHO_N "(cached) $ECHO_C" >&6 1620else 1621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 1622 then ac_cv_path_FGREP="$GREP -F" 1623 else 1624 for ac_prog in gfgrep fgrep 1625do 1626 # Extract the first word of "$ac_prog", so it can be a program name with args. 1627set dummy $ac_prog; ac_word=$2 1628echo "$as_me:1628: checking for $ac_word" >&5 1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1630if test "${ac_cv_path_FGREP+set}" = set; then 1631 echo $ECHO_N "(cached) $ECHO_C" >&6 1632else 1633 case $FGREP in 1634 [\\/]* | ?:[\\/]*) 1635 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 1636 ;; 1637 *) 1638 ac_save_IFS=$IFS; IFS=$ac_path_separator 1639ac_dummy="$PATH" 1640for ac_dir in $ac_dummy; do 1641 IFS=$ac_save_IFS 1642 test -z "$ac_dir" && ac_dir=. 1643 if $as_executable_p "$ac_dir/$ac_word"; then 1644 ac_cv_path_FGREP="$ac_dir/$ac_word" 1645 echo "$as_me:1645: found $ac_dir/$ac_word" >&5 1646 break 1647fi 1648done 1649 1650 ;; 1651esac 1652fi 1653FGREP=$ac_cv_path_FGREP 1654 1655if test -n "$FGREP"; then 1656 echo "$as_me:1656: result: $FGREP" >&5 1657echo "${ECHO_T}$FGREP" >&6 1658else 1659 echo "$as_me:1659: result: no" >&5 1660echo "${ECHO_T}no" >&6 1661fi 1662 1663 test -n "$FGREP" && break 1664done 1665test -n "$FGREP" || FGREP=": " 1666 1667 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1667: error: cannot find workable fgrep" >&5 1668echo "$as_me: error: cannot find workable fgrep" >&2;} 1669 { (exit 1); exit 1; }; } 1670 fi 1671fi 1672echo "$as_me:1672: result: $ac_cv_path_FGREP" >&5 1673echo "${ECHO_T}$ac_cv_path_FGREP" >&6 1674 FGREP="$ac_cv_path_FGREP" 1675 1676echo "$as_me:1676: checking for prefix" >&5 1677echo $ECHO_N "checking for prefix... $ECHO_C" >&6 1678if test "x$prefix" = "xNONE" ; then 1679 case "$cf_cv_system_name" in 1680 # non-vendor systems don't have a conflict 1681 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*) 1682 prefix=/usr 1683 ;; 1684 (*) prefix=$ac_default_prefix 1685 ;; 1686 esac 1687fi 1688echo "$as_me:1688: result: $prefix" >&5 1689echo "${ECHO_T}$prefix" >&6 1690 1691if test "x$prefix" = "xNONE" ; then 1692echo "$as_me:1692: checking for default include-directory" >&5 1693echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6 1694test -n "$verbose" && echo 1>&6 1695for cf_symbol in \ 1696 "$includedir" \ 1697 "$includedir/ncurses" \ 1698 "$prefix/include" \ 1699 "$prefix/include/ncurses" \ 1700 /usr/local/include \ 1701 /usr/local/include/ncurses \ 1702 /usr/include \ 1703 /usr/include/ncurses 1704do 1705 cf_dir=`eval echo "$cf_symbol"` 1706 if test -f "$cf_dir/curses.h" ; then 1707 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then 1708 includedir="$cf_symbol" 1709 test -n "$verbose" && echo $ECHO_N " found " 1>&6 1710 break 1711 fi 1712 fi 1713 test -n "$verbose" && echo " tested $cf_dir" 1>&6 1714done 1715echo "$as_me:1715: result: $includedir" >&5 1716echo "${ECHO_T}$includedir" >&6 1717fi 1718 1719### Defaults for ncurses ABI 1720 1721case x$cf_cv_abi_version in 1722(x[6789]) 1723 cf_dft_ext_colors=yes 1724 cf_dft_ext_const=yes 1725 cf_dft_ext_mouse=yes 1726 cf_dft_ext_putwin=yes 1727 cf_dft_ext_spfuncs=yes 1728 cf_dft_filter_syms=yes 1729 cf_dft_chtype=uint32_t 1730 cf_dft_mmask_t=uint32_t 1731 cf_dft_interop=yes 1732 cf_dft_tparm_arg=intptr_t 1733 cf_dft_with_lp64=yes 1734 ;; 1735(*) 1736 cf_dft_ext_colors=no 1737 cf_dft_ext_const=no 1738 cf_dft_ext_mouse=no 1739 cf_dft_ext_putwin=no 1740 cf_dft_ext_spfuncs=no 1741 cf_dft_filter_syms=no 1742 cf_dft_chtype=auto 1743 cf_dft_mmask_t=auto 1744 cf_dft_interop=no 1745 cf_dft_tparm_arg=long 1746 cf_dft_with_lp64=no 1747 ;; 1748esac 1749 1750### Checks for programs. 1751 1752# Check whether --with-ada or --without-ada was given. 1753if test "${with_ada+set}" = set; then 1754 withval="$with_ada" 1755 cf_with_ada=$withval 1756else 1757 cf_with_ada=yes 1758fi; 1759 1760if test "x$cf_with_ada" = xyes 1761then 1762 cf_prog_cc="gnatgcc gcc cc" 1763else 1764 cf_prog_cc="gcc cc" 1765fi 1766 1767ac_ext=c 1768ac_cpp='$CPP $CPPFLAGS' 1769ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1770ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1771ac_compiler_gnu=$ac_cv_c_compiler_gnu 1772ac_main_return="return" 1773if test -n "$ac_tool_prefix"; then 1774 for ac_prog in $cf_prog_cc 1775 do 1776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1777set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1778echo "$as_me:1778: checking for $ac_word" >&5 1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1780if test "${ac_cv_prog_CC+set}" = set; then 1781 echo $ECHO_N "(cached) $ECHO_C" >&6 1782else 1783 if test -n "$CC"; then 1784 ac_cv_prog_CC="$CC" # Let the user override the test. 1785else 1786 ac_save_IFS=$IFS; IFS=$ac_path_separator 1787ac_dummy="$PATH" 1788for ac_dir in $ac_dummy; do 1789 IFS=$ac_save_IFS 1790 test -z "$ac_dir" && ac_dir=. 1791 $as_executable_p "$ac_dir/$ac_word" || continue 1792ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1793echo "$as_me:1793: found $ac_dir/$ac_word" >&5 1794break 1795done 1796 1797fi 1798fi 1799CC=$ac_cv_prog_CC 1800if test -n "$CC"; then 1801 echo "$as_me:1801: result: $CC" >&5 1802echo "${ECHO_T}$CC" >&6 1803else 1804 echo "$as_me:1804: result: no" >&5 1805echo "${ECHO_T}no" >&6 1806fi 1807 1808 test -n "$CC" && break 1809 done 1810fi 1811if test -z "$CC"; then 1812 ac_ct_CC=$CC 1813 for ac_prog in $cf_prog_cc 1814do 1815 # Extract the first word of "$ac_prog", so it can be a program name with args. 1816set dummy $ac_prog; ac_word=$2 1817echo "$as_me:1817: checking for $ac_word" >&5 1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1820 echo $ECHO_N "(cached) $ECHO_C" >&6 1821else 1822 if test -n "$ac_ct_CC"; then 1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1824else 1825 ac_save_IFS=$IFS; IFS=$ac_path_separator 1826ac_dummy="$PATH" 1827for ac_dir in $ac_dummy; do 1828 IFS=$ac_save_IFS 1829 test -z "$ac_dir" && ac_dir=. 1830 $as_executable_p "$ac_dir/$ac_word" || continue 1831ac_cv_prog_ac_ct_CC="$ac_prog" 1832echo "$as_me:1832: found $ac_dir/$ac_word" >&5 1833break 1834done 1835 1836fi 1837fi 1838ac_ct_CC=$ac_cv_prog_ac_ct_CC 1839if test -n "$ac_ct_CC"; then 1840 echo "$as_me:1840: result: $ac_ct_CC" >&5 1841echo "${ECHO_T}$ac_ct_CC" >&6 1842else 1843 echo "$as_me:1843: result: no" >&5 1844echo "${ECHO_T}no" >&6 1845fi 1846 1847 test -n "$ac_ct_CC" && break 1848done 1849 1850 CC=$ac_ct_CC 1851fi 1852 1853test -z "$CC" && { { echo "$as_me:1853: error: no acceptable cc found in \$PATH" >&5 1854echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1855 { (exit 1); exit 1; }; } 1856 1857# Provide some information about the compiler. 1858echo "$as_me:1858:" \ 1859 "checking for C compiler version" >&5 1860ac_compiler=`set X $ac_compile; echo "$2"` 1861{ (eval echo "$as_me:1861: \"$ac_compiler --version </dev/null >&5\"") >&5 1862 (eval $ac_compiler --version </dev/null >&5) 2>&5 1863 ac_status=$? 1864 echo "$as_me:1864: \$? = $ac_status" >&5 1865 (exit "$ac_status"); } 1866{ (eval echo "$as_me:1866: \"$ac_compiler -v </dev/null >&5\"") >&5 1867 (eval $ac_compiler -v </dev/null >&5) 2>&5 1868 ac_status=$? 1869 echo "$as_me:1869: \$? = $ac_status" >&5 1870 (exit "$ac_status"); } 1871{ (eval echo "$as_me:1871: \"$ac_compiler -V </dev/null >&5\"") >&5 1872 (eval $ac_compiler -V </dev/null >&5) 2>&5 1873 ac_status=$? 1874 echo "$as_me:1874: \$? = $ac_status" >&5 1875 (exit "$ac_status"); } 1876 1877cat >"conftest.$ac_ext" <<_ACEOF 1878#line 1878 "configure" 1879#include "confdefs.h" 1880 1881int 1882main (void) 1883{ 1884 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889ac_clean_files_save=$ac_clean_files 1890ac_clean_files="$ac_clean_files a.out a.exe" 1891# Try to create an executable without -o first, disregard a.out. 1892# It will help us diagnose broken compilers, and finding out an intuition 1893# of exeext. 1894echo "$as_me:1894: checking for C compiler default output" >&5 1895echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1896ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1897if { (eval echo "$as_me:1897: \"$ac_link_default\"") >&5 1898 (eval $ac_link_default) 2>&5 1899 ac_status=$? 1900 echo "$as_me:1900: \$? = $ac_status" >&5 1901 (exit "$ac_status"); }; then 1902 # Find the output, starting from the most likely. This scheme is 1903# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1904# resort. 1905for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1906 ls a.out conftest 2>/dev/null; 1907 ls a.* conftest.* 2>/dev/null`; do 1908 case $ac_file in 1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1910 a.out ) # We found the default executable, but exeext='' is most 1911 # certainly right. 1912 break;; 1913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1914 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1915 export ac_cv_exeext 1916 break;; 1917 * ) break;; 1918 esac 1919done 1920else 1921 echo "$as_me: failed program was:" >&5 1922cat "conftest.$ac_ext" >&5 1923{ { echo "$as_me:1923: error: C compiler cannot create executables" >&5 1924echo "$as_me: error: C compiler cannot create executables" >&2;} 1925 { (exit 77); exit 77; }; } 1926fi 1927 1928ac_exeext=$ac_cv_exeext 1929echo "$as_me:1929: result: $ac_file" >&5 1930echo "${ECHO_T}$ac_file" >&6 1931 1932# Check the compiler produces executables we can run. If not, either 1933# the compiler is broken, or we cross compile. 1934echo "$as_me:1934: checking whether the C compiler works" >&5 1935echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1936# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1937# If not cross compiling, check that we can run a simple program. 1938if test "$cross_compiling" != yes; then 1939 if { ac_try='./$ac_file' 1940 { (eval echo "$as_me:1940: \"$ac_try\"") >&5 1941 (eval $ac_try) 2>&5 1942 ac_status=$? 1943 echo "$as_me:1943: \$? = $ac_status" >&5 1944 (exit "$ac_status"); }; }; then 1945 cross_compiling=no 1946 else 1947 if test "$cross_compiling" = maybe; then 1948 cross_compiling=yes 1949 else 1950 { { echo "$as_me:1950: error: cannot run C compiled programs. 1951If you meant to cross compile, use \`--host'." >&5 1952echo "$as_me: error: cannot run C compiled programs. 1953If you meant to cross compile, use \`--host'." >&2;} 1954 { (exit 1); exit 1; }; } 1955 fi 1956 fi 1957fi 1958echo "$as_me:1958: result: yes" >&5 1959echo "${ECHO_T}yes" >&6 1960 1961rm -f a.out a.exe "conftest$ac_cv_exeext" 1962ac_clean_files=$ac_clean_files_save 1963# Check the compiler produces executables we can run. If not, either 1964# the compiler is broken, or we cross compile. 1965echo "$as_me:1965: checking whether we are cross compiling" >&5 1966echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1967echo "$as_me:1967: result: $cross_compiling" >&5 1968echo "${ECHO_T}$cross_compiling" >&6 1969 1970echo "$as_me:1970: checking for executable suffix" >&5 1971echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1972if { (eval echo "$as_me:1972: \"$ac_link\"") >&5 1973 (eval $ac_link) 2>&5 1974 ac_status=$? 1975 echo "$as_me:1975: \$? = $ac_status" >&5 1976 (exit "$ac_status"); }; then 1977 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1978# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1979# work properly (i.e., refer to `conftest.exe'), while it won't with 1980# `rm'. 1981for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1982 case $ac_file in 1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1985 export ac_cv_exeext 1986 break;; 1987 * ) break;; 1988 esac 1989done 1990else 1991 { { echo "$as_me:1991: error: cannot compute EXEEXT: cannot compile and link" >&5 1992echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1993 { (exit 1); exit 1; }; } 1994fi 1995 1996rm -f "conftest$ac_cv_exeext" 1997echo "$as_me:1997: result: $ac_cv_exeext" >&5 1998echo "${ECHO_T}$ac_cv_exeext" >&6 1999 2000rm -f "conftest.$ac_ext" 2001EXEEXT=$ac_cv_exeext 2002ac_exeext=$EXEEXT 2003echo "$as_me:2003: checking for object suffix" >&5 2004echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 2005if test "${ac_cv_objext+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 cat >"conftest.$ac_ext" <<_ACEOF 2009#line 2009 "configure" 2010#include "confdefs.h" 2011 2012int 2013main (void) 2014{ 2015 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020rm -f conftest.o conftest.obj 2021if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5 2022 (eval $ac_compile) 2>&5 2023 ac_status=$? 2024 echo "$as_me:2024: \$? = $ac_status" >&5 2025 (exit "$ac_status"); }; then 2026 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2027 case $ac_file in 2028 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 2029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2030 break;; 2031 esac 2032done 2033else 2034 echo "$as_me: failed program was:" >&5 2035cat "conftest.$ac_ext" >&5 2036{ { echo "$as_me:2036: error: cannot compute OBJEXT: cannot compile" >&5 2037echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 2038 { (exit 1); exit 1; }; } 2039fi 2040 2041rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 2042fi 2043echo "$as_me:2043: result: $ac_cv_objext" >&5 2044echo "${ECHO_T}$ac_cv_objext" >&6 2045OBJEXT=$ac_cv_objext 2046ac_objext=$OBJEXT 2047echo "$as_me:2047: checking whether we are using the GNU C compiler" >&5 2048echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2049if test "${ac_cv_c_compiler_gnu+set}" = set; then 2050 echo $ECHO_N "(cached) $ECHO_C" >&6 2051else 2052 cat >"conftest.$ac_ext" <<_ACEOF 2053#line 2053 "configure" 2054#include "confdefs.h" 2055 2056int 2057main (void) 2058{ 2059#ifndef __GNUC__ 2060 choke me 2061#endif 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067rm -f "conftest.$ac_objext" 2068if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5 2069 (eval $ac_compile) 2>&5 2070 ac_status=$? 2071 echo "$as_me:2071: \$? = $ac_status" >&5 2072 (exit "$ac_status"); } && 2073 { ac_try='test -s "conftest.$ac_objext"' 2074 { (eval echo "$as_me:2074: \"$ac_try\"") >&5 2075 (eval $ac_try) 2>&5 2076 ac_status=$? 2077 echo "$as_me:2077: \$? = $ac_status" >&5 2078 (exit "$ac_status"); }; }; then 2079 ac_compiler_gnu=yes 2080else 2081 echo "$as_me: failed program was:" >&5 2082cat "conftest.$ac_ext" >&5 2083ac_compiler_gnu=no 2084fi 2085rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2086ac_cv_c_compiler_gnu=$ac_compiler_gnu 2087 2088fi 2089echo "$as_me:2089: result: $ac_cv_c_compiler_gnu" >&5 2090echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2091GCC=`test $ac_compiler_gnu = yes && echo yes` 2092ac_test_CFLAGS=${CFLAGS+set} 2093ac_save_CFLAGS=$CFLAGS 2094CFLAGS="-g" 2095echo "$as_me:2095: checking whether $CC accepts -g" >&5 2096echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2097if test "${ac_cv_prog_cc_g+set}" = set; then 2098 echo $ECHO_N "(cached) $ECHO_C" >&6 2099else 2100 cat >"conftest.$ac_ext" <<_ACEOF 2101#line 2101 "configure" 2102#include "confdefs.h" 2103 2104int 2105main (void) 2106{ 2107 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112rm -f "conftest.$ac_objext" 2113if { (eval echo "$as_me:2113: \"$ac_compile\"") >&5 2114 (eval $ac_compile) 2>&5 2115 ac_status=$? 2116 echo "$as_me:2116: \$? = $ac_status" >&5 2117 (exit "$ac_status"); } && 2118 { ac_try='test -s "conftest.$ac_objext"' 2119 { (eval echo "$as_me:2119: \"$ac_try\"") >&5 2120 (eval $ac_try) 2>&5 2121 ac_status=$? 2122 echo "$as_me:2122: \$? = $ac_status" >&5 2123 (exit "$ac_status"); }; }; then 2124 ac_cv_prog_cc_g=yes 2125else 2126 echo "$as_me: failed program was:" >&5 2127cat "conftest.$ac_ext" >&5 2128ac_cv_prog_cc_g=no 2129fi 2130rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2131fi 2132echo "$as_me:2132: result: $ac_cv_prog_cc_g" >&5 2133echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2134if test "$ac_test_CFLAGS" = set; then 2135 CFLAGS=$ac_save_CFLAGS 2136elif test $ac_cv_prog_cc_g = yes; then 2137 if test "$GCC" = yes; then 2138 CFLAGS="-g -O2" 2139 else 2140 CFLAGS="-g" 2141 fi 2142else 2143 if test "$GCC" = yes; then 2144 CFLAGS="-O2" 2145 else 2146 CFLAGS= 2147 fi 2148fi 2149# Some people use a C++ compiler to compile C. Since we use `exit', 2150# in C++ we need to declare it. In case someone uses the same compiler 2151# for both compiling C and C++ we need to have the C++ compiler decide 2152# the declaration of exit, since it's the most demanding environment. 2153cat >"conftest.$ac_ext" <<_ACEOF 2154#ifndef __cplusplus 2155 choke me 2156#endif 2157_ACEOF 2158rm -f "conftest.$ac_objext" 2159if { (eval echo "$as_me:2159: \"$ac_compile\"") >&5 2160 (eval $ac_compile) 2>&5 2161 ac_status=$? 2162 echo "$as_me:2162: \$? = $ac_status" >&5 2163 (exit "$ac_status"); } && 2164 { ac_try='test -s "conftest.$ac_objext"' 2165 { (eval echo "$as_me:2165: \"$ac_try\"") >&5 2166 (eval $ac_try) 2>&5 2167 ac_status=$? 2168 echo "$as_me:2168: \$? = $ac_status" >&5 2169 (exit "$ac_status"); }; }; then 2170 for ac_declaration in \ 2171 ''\ 2172 '#include <stdlib.h>' \ 2173 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2174 'extern "C" void std::exit (int); using std::exit;' \ 2175 'extern "C" void exit (int) throw ();' \ 2176 'extern "C" void exit (int);' \ 2177 'void exit (int);' 2178do 2179 cat >"conftest.$ac_ext" <<_ACEOF 2180#line 2180 "configure" 2181#include "confdefs.h" 2182#include <stdlib.h> 2183$ac_declaration 2184int 2185main (void) 2186{ 2187exit (42); 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192rm -f "conftest.$ac_objext" 2193if { (eval echo "$as_me:2193: \"$ac_compile\"") >&5 2194 (eval $ac_compile) 2>&5 2195 ac_status=$? 2196 echo "$as_me:2196: \$? = $ac_status" >&5 2197 (exit "$ac_status"); } && 2198 { ac_try='test -s "conftest.$ac_objext"' 2199 { (eval echo "$as_me:2199: \"$ac_try\"") >&5 2200 (eval $ac_try) 2>&5 2201 ac_status=$? 2202 echo "$as_me:2202: \$? = $ac_status" >&5 2203 (exit "$ac_status"); }; }; then 2204 : 2205else 2206 echo "$as_me: failed program was:" >&5 2207cat "conftest.$ac_ext" >&5 2208continue 2209fi 2210rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2211 cat >"conftest.$ac_ext" <<_ACEOF 2212#line 2212 "configure" 2213#include "confdefs.h" 2214$ac_declaration 2215int 2216main (void) 2217{ 2218exit (42); 2219 ; 2220 return 0; 2221} 2222_ACEOF 2223rm -f "conftest.$ac_objext" 2224if { (eval echo "$as_me:2224: \"$ac_compile\"") >&5 2225 (eval $ac_compile) 2>&5 2226 ac_status=$? 2227 echo "$as_me:2227: \$? = $ac_status" >&5 2228 (exit "$ac_status"); } && 2229 { ac_try='test -s "conftest.$ac_objext"' 2230 { (eval echo "$as_me:2230: \"$ac_try\"") >&5 2231 (eval $ac_try) 2>&5 2232 ac_status=$? 2233 echo "$as_me:2233: \$? = $ac_status" >&5 2234 (exit "$ac_status"); }; }; then 2235 break 2236else 2237 echo "$as_me: failed program was:" >&5 2238cat "conftest.$ac_ext" >&5 2239fi 2240rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2241done 2242rm -rf conftest* 2243if test -n "$ac_declaration"; then 2244 echo '#ifdef __cplusplus' >>confdefs.h 2245 echo "$ac_declaration" >>confdefs.h 2246 echo '#endif' >>confdefs.h 2247fi 2248 2249else 2250 echo "$as_me: failed program was:" >&5 2251cat "conftest.$ac_ext" >&5 2252fi 2253rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2254ac_ext=c 2255ac_cpp='$CPP $CPPFLAGS' 2256ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2257ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2258ac_compiler_gnu=$ac_cv_c_compiler_gnu 2259ac_main_return="return" 2260 2261GCC_VERSION=none 2262if test "$GCC" = yes ; then 2263 echo "$as_me:2263: checking version of $CC" >&5 2264echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2265 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2266 test -z "$GCC_VERSION" && GCC_VERSION=unknown 2267 echo "$as_me:2267: result: $GCC_VERSION" >&5 2268echo "${ECHO_T}$GCC_VERSION" >&6 2269fi 2270 2271INTEL_COMPILER=no 2272 2273if test "$GCC" = yes ; then 2274 case "$host_os" in 2275 (linux*|gnu*) 2276 echo "$as_me:2276: checking if this is really Intel C compiler" >&5 2277echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 2278 cf_save_CFLAGS="$CFLAGS" 2279 CFLAGS="$CFLAGS -no-gcc" 2280 cat >"conftest.$ac_ext" <<_ACEOF 2281#line 2281 "configure" 2282#include "confdefs.h" 2283 2284int 2285main (void) 2286{ 2287 2288#ifdef __INTEL_COMPILER 2289#else 2290make an error 2291#endif 2292 2293 ; 2294 return 0; 2295} 2296_ACEOF 2297rm -f "conftest.$ac_objext" 2298if { (eval echo "$as_me:2298: \"$ac_compile\"") >&5 2299 (eval $ac_compile) 2>&5 2300 ac_status=$? 2301 echo "$as_me:2301: \$? = $ac_status" >&5 2302 (exit "$ac_status"); } && 2303 { ac_try='test -s "conftest.$ac_objext"' 2304 { (eval echo "$as_me:2304: \"$ac_try\"") >&5 2305 (eval $ac_try) 2>&5 2306 ac_status=$? 2307 echo "$as_me:2307: \$? = $ac_status" >&5 2308 (exit "$ac_status"); }; }; then 2309 INTEL_COMPILER=yes 2310cf_save_CFLAGS="$cf_save_CFLAGS -we147" 2311 2312else 2313 echo "$as_me: failed program was:" >&5 2314cat "conftest.$ac_ext" >&5 2315fi 2316rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2317 CFLAGS="$cf_save_CFLAGS" 2318 echo "$as_me:2318: result: $INTEL_COMPILER" >&5 2319echo "${ECHO_T}$INTEL_COMPILER" >&6 2320 ;; 2321 esac 2322fi 2323 2324CLANG_COMPILER=no 2325 2326if test "$GCC" = yes ; then 2327 echo "$as_me:2327: checking if this is really Clang C compiler" >&5 2328echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2329 cf_save_CFLAGS="$CFLAGS" 2330 cat >"conftest.$ac_ext" <<_ACEOF 2331#line 2331 "configure" 2332#include "confdefs.h" 2333 2334int 2335main (void) 2336{ 2337 2338#ifdef __clang__ 2339#else 2340make an error 2341#endif 2342 2343 ; 2344 return 0; 2345} 2346_ACEOF 2347rm -f "conftest.$ac_objext" 2348if { (eval echo "$as_me:2348: \"$ac_compile\"") >&5 2349 (eval $ac_compile) 2>&5 2350 ac_status=$? 2351 echo "$as_me:2351: \$? = $ac_status" >&5 2352 (exit "$ac_status"); } && 2353 { ac_try='test -s "conftest.$ac_objext"' 2354 { (eval echo "$as_me:2354: \"$ac_try\"") >&5 2355 (eval $ac_try) 2>&5 2356 ac_status=$? 2357 echo "$as_me:2357: \$? = $ac_status" >&5 2358 (exit "$ac_status"); }; }; then 2359 CLANG_COMPILER=yes 2360 2361else 2362 echo "$as_me: failed program was:" >&5 2363cat "conftest.$ac_ext" >&5 2364fi 2365rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2366 CFLAGS="$cf_save_CFLAGS" 2367 echo "$as_me:2367: result: $CLANG_COMPILER" >&5 2368echo "${ECHO_T}$CLANG_COMPILER" >&6 2369fi 2370 2371CLANG_VERSION=none 2372 2373if test "x$CLANG_COMPILER" = "xyes" ; then 2374 case "$CC" in 2375 (c[1-9][0-9]|*/c[1-9][0-9]) 2376 { echo "$as_me:2376: WARNING: replacing broken compiler alias $CC" >&5 2377echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2378 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2379 CC=clang 2380 ;; 2381 esac 2382 2383 echo "$as_me:2383: checking version of $CC" >&5 2384echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2385 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 2386 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2387 echo "$as_me:2387: result: $CLANG_VERSION" >&5 2388echo "${ECHO_T}$CLANG_VERSION" >&6 2389 2390 for cf_clang_opt in \ 2391 -Qunused-arguments \ 2392 -Wno-error=implicit-function-declaration 2393 do 2394 echo "$as_me:2394: checking if option $cf_clang_opt works" >&5 2395echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2396 cf_save_CFLAGS="$CFLAGS" 2397 CFLAGS="$CFLAGS $cf_clang_opt" 2398 cat >"conftest.$ac_ext" <<_ACEOF 2399#line 2399 "configure" 2400#include "confdefs.h" 2401 2402 #include <stdio.h> 2403int 2404main (void) 2405{ 2406 2407 printf("hello!\\n"); 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2413if { (eval echo "$as_me:2413: \"$ac_link\"") >&5 2414 (eval $ac_link) 2>&5 2415 ac_status=$? 2416 echo "$as_me:2416: \$? = $ac_status" >&5 2417 (exit "$ac_status"); } && 2418 { ac_try='test -s "conftest$ac_exeext"' 2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5 2420 (eval $ac_try) 2>&5 2421 ac_status=$? 2422 echo "$as_me:2422: \$? = $ac_status" >&5 2423 (exit "$ac_status"); }; }; then 2424 2425 cf_clang_optok=yes 2426else 2427 echo "$as_me: failed program was:" >&5 2428cat "conftest.$ac_ext" >&5 2429 2430 cf_clang_optok=no 2431fi 2432rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2433 echo "$as_me:2433: result: $cf_clang_optok" >&5 2434echo "${ECHO_T}$cf_clang_optok" >&6 2435 CFLAGS="$cf_save_CFLAGS" 2436 if test "$cf_clang_optok" = yes; then 2437 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2438 2439echo "${as_me:-configure}:2439: testing adding option $cf_clang_opt ..." 1>&5 2440 2441 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2442 CFLAGS="${CFLAGS}$cf_clang_opt" 2443 2444 fi 2445 done 2446fi 2447 2448echo "$as_me:2448: checking for $CC option to accept ANSI C" >&5 2449echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2450if test "${ac_cv_prog_cc_stdc+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 ac_cv_prog_cc_stdc=no 2454ac_save_CC=$CC 2455cat >"conftest.$ac_ext" <<_ACEOF 2456#line 2456 "configure" 2457#include "confdefs.h" 2458#include <stdarg.h> 2459#include <stdio.h> 2460#include <sys/types.h> 2461#include <sys/stat.h> 2462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2463struct buf { int x; }; 2464FILE * (*rcsopen) (struct buf *, struct stat *, int); 2465static char *e (p, i) 2466 char **p; 2467 int i; 2468{ 2469 return p[i]; 2470} 2471static char *f (char * (*g) (char **, int), char **p, ...) 2472{ 2473 char *s; 2474 va_list v; 2475 va_start (v,p); 2476 s = g (p, va_arg (v,int)); 2477 va_end (v); 2478 return s; 2479} 2480int test (int i, double x); 2481struct s1 {int (*f) (int a);}; 2482struct s2 {int (*f) (double a);}; 2483int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2484int argc; 2485char **argv; 2486int 2487main (void) 2488{ 2489return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2490 ; 2491 return 0; 2492} 2493_ACEOF 2494# Don't try gcc -ansi; that turns off useful extensions and 2495# breaks some systems' header files. 2496# AIX -qlanglvl=ansi 2497# Ultrix and OSF/1 -std1 2498# HP-UX 10.20 and later -Ae 2499# HP-UX older versions -Aa -D_HPUX_SOURCE 2500# SVR4 -Xc -D__EXTENSIONS__ 2501for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2502do 2503 CC="$ac_save_CC $ac_arg" 2504 rm -f "conftest.$ac_objext" 2505if { (eval echo "$as_me:2505: \"$ac_compile\"") >&5 2506 (eval $ac_compile) 2>&5 2507 ac_status=$? 2508 echo "$as_me:2508: \$? = $ac_status" >&5 2509 (exit "$ac_status"); } && 2510 { ac_try='test -s "conftest.$ac_objext"' 2511 { (eval echo "$as_me:2511: \"$ac_try\"") >&5 2512 (eval $ac_try) 2>&5 2513 ac_status=$? 2514 echo "$as_me:2514: \$? = $ac_status" >&5 2515 (exit "$ac_status"); }; }; then 2516 ac_cv_prog_cc_stdc=$ac_arg 2517break 2518else 2519 echo "$as_me: failed program was:" >&5 2520cat "conftest.$ac_ext" >&5 2521fi 2522rm -f "conftest.$ac_objext" 2523done 2524rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2525CC=$ac_save_CC 2526 2527fi 2528 2529case "x$ac_cv_prog_cc_stdc" in 2530 x|xno) 2531 echo "$as_me:2531: result: none needed" >&5 2532echo "${ECHO_T}none needed" >&6 ;; 2533 *) 2534 echo "$as_me:2534: result: $ac_cv_prog_cc_stdc" >&5 2535echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2536 CC="$CC $ac_cv_prog_cc_stdc" ;; 2537esac 2538 2539# This should have been defined by AC_PROG_CC 2540: "${CC:=cc}" 2541 2542echo "$as_me:2542: checking \$CFLAGS variable" >&5 2543echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2544case "x$CFLAGS" in 2545(*-[IUD]*) 2546 echo "$as_me:2546: result: broken" >&5 2547echo "${ECHO_T}broken" >&6 2548 { echo "$as_me:2548: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2549echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2550 cf_flags="$CFLAGS" 2551 CFLAGS= 2552 for cf_arg in $cf_flags 2553 do 2554 2555cf_fix_cppflags=no 2556cf_new_cflags= 2557cf_new_cppflags= 2558cf_new_extra_cppflags= 2559 2560for cf_add_cflags in $cf_arg 2561do 2562case "$cf_fix_cppflags" in 2563(no) 2564 case "$cf_add_cflags" in 2565 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2566 case "$cf_add_cflags" in 2567 (-D*) 2568 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2569 2570 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2571 && test -z "${cf_tst_cflags}" \ 2572 && cf_fix_cppflags=yes 2573 2574 if test "$cf_fix_cppflags" = yes ; then 2575 2576 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2577 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2578 2579 continue 2580 elif test "${cf_tst_cflags}" = "\"'" ; then 2581 2582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2584 2585 continue 2586 fi 2587 ;; 2588 esac 2589 case "$CPPFLAGS" in 2590 (*$cf_add_cflags) 2591 ;; 2592 (*) 2593 case "$cf_add_cflags" in 2594 (-D*) 2595 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2596 2597CPPFLAGS=`echo "$CPPFLAGS" | \ 2598 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2599 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2600 2601 ;; 2602 esac 2603 2604 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2605 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2606 2607 ;; 2608 esac 2609 ;; 2610 (*) 2611 2612 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2613 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2614 2615 ;; 2616 esac 2617 ;; 2618(yes) 2619 2620 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2621 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2622 2623 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2624 2625 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2626 && test -z "${cf_tst_cflags}" \ 2627 && cf_fix_cppflags=no 2628 ;; 2629esac 2630done 2631 2632if test -n "$cf_new_cflags" ; then 2633 2634 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2635 CFLAGS="${CFLAGS}$cf_new_cflags" 2636 2637fi 2638 2639if test -n "$cf_new_cppflags" ; then 2640 2641 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2642 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2643 2644fi 2645 2646if test -n "$cf_new_extra_cppflags" ; then 2647 2648 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2649 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2650 2651fi 2652 2653 done 2654 ;; 2655(*) 2656 echo "$as_me:2656: result: ok" >&5 2657echo "${ECHO_T}ok" >&6 2658 ;; 2659esac 2660 2661echo "$as_me:2661: checking \$CC variable" >&5 2662echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2663case "$CC" in 2664(*[\ \ ]-*) 2665 echo "$as_me:2665: result: broken" >&5 2666echo "${ECHO_T}broken" >&6 2667 { echo "$as_me:2667: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2668echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2669 # humor him... 2670 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2671 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 2672 CC="$cf_prog" 2673 for cf_arg in $cf_flags 2674 do 2675 case "x$cf_arg" in 2676 (x-[IUDfgOW]*) 2677 2678cf_fix_cppflags=no 2679cf_new_cflags= 2680cf_new_cppflags= 2681cf_new_extra_cppflags= 2682 2683for cf_add_cflags in $cf_arg 2684do 2685case "$cf_fix_cppflags" in 2686(no) 2687 case "$cf_add_cflags" in 2688 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2689 case "$cf_add_cflags" in 2690 (-D*) 2691 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2692 2693 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2694 && test -z "${cf_tst_cflags}" \ 2695 && cf_fix_cppflags=yes 2696 2697 if test "$cf_fix_cppflags" = yes ; then 2698 2699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2701 2702 continue 2703 elif test "${cf_tst_cflags}" = "\"'" ; then 2704 2705 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2706 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2707 2708 continue 2709 fi 2710 ;; 2711 esac 2712 case "$CPPFLAGS" in 2713 (*$cf_add_cflags) 2714 ;; 2715 (*) 2716 case "$cf_add_cflags" in 2717 (-D*) 2718 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2719 2720CPPFLAGS=`echo "$CPPFLAGS" | \ 2721 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2722 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2723 2724 ;; 2725 esac 2726 2727 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2728 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2729 2730 ;; 2731 esac 2732 ;; 2733 (*) 2734 2735 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2736 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2737 2738 ;; 2739 esac 2740 ;; 2741(yes) 2742 2743 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2744 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2745 2746 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2747 2748 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2749 && test -z "${cf_tst_cflags}" \ 2750 && cf_fix_cppflags=no 2751 ;; 2752esac 2753done 2754 2755if test -n "$cf_new_cflags" ; then 2756 2757 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2758 CFLAGS="${CFLAGS}$cf_new_cflags" 2759 2760fi 2761 2762if test -n "$cf_new_cppflags" ; then 2763 2764 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2765 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2766 2767fi 2768 2769if test -n "$cf_new_extra_cppflags" ; then 2770 2771 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2772 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2773 2774fi 2775 2776 ;; 2777 (*) 2778 CC="$CC $cf_arg" 2779 ;; 2780 esac 2781 done 2782 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2783 2784echo "${as_me:-configure}:2784: testing resulting CC: '$CC' ..." 1>&5 2785 2786 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2787 2788echo "${as_me:-configure}:2788: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2789 2790 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2791 2792echo "${as_me:-configure}:2792: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2793 2794 ;; 2795(*) 2796 echo "$as_me:2796: result: ok" >&5 2797echo "${ECHO_T}ok" >&6 2798 ;; 2799esac 2800 2801ac_ext=c 2802ac_cpp='$CPP $CPPFLAGS' 2803ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2804ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2805ac_compiler_gnu=$ac_cv_c_compiler_gnu 2806ac_main_return="return" 2807echo "$as_me:2807: checking how to run the C preprocessor" >&5 2808echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2809# On Suns, sometimes $CPP names a directory. 2810if test -n "$CPP" && test -d "$CPP"; then 2811 CPP= 2812fi 2813if test -z "$CPP"; then 2814 if test "${ac_cv_prog_CPP+set}" = set; then 2815 echo $ECHO_N "(cached) $ECHO_C" >&6 2816else 2817 # Double quotes because CPP needs to be expanded 2818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2819 do 2820 ac_preproc_ok=false 2821for ac_c_preproc_warn_flag in '' yes 2822do 2823 # Use a header file that comes with gcc, so configuring glibc 2824 # with a fresh cross-compiler works. 2825 # On the NeXT, cc -E runs the code through the compiler's parser, 2826 # not just through cpp. "Syntax error" is here to catch this case. 2827 cat >"conftest.$ac_ext" <<_ACEOF 2828#line 2828 "configure" 2829#include "confdefs.h" 2830#include <assert.h> 2831 Syntax error 2832_ACEOF 2833if { (eval echo "$as_me:2833: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2834 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2835 ac_status=$? 2836 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2837 rm -f conftest.er1 2838 cat conftest.err >&5 2839 echo "$as_me:2839: \$? = $ac_status" >&5 2840 (exit "$ac_status"); } >/dev/null; then 2841 if test -s conftest.err; then 2842 ac_cpp_err=$ac_c_preproc_warn_flag 2843 else 2844 ac_cpp_err= 2845 fi 2846else 2847 ac_cpp_err=yes 2848fi 2849if test -z "$ac_cpp_err"; then 2850 : 2851else 2852 echo "$as_me: failed program was:" >&5 2853 cat "conftest.$ac_ext" >&5 2854 # Broken: fails on valid input. 2855continue 2856fi 2857rm -f conftest.err "conftest.$ac_ext" 2858 2859 # OK, works on sane cases. Now check whether non-existent headers 2860 # can be detected and how. 2861 cat >"conftest.$ac_ext" <<_ACEOF 2862#line 2862 "configure" 2863#include "confdefs.h" 2864#include <ac_nonexistent.h> 2865_ACEOF 2866if { (eval echo "$as_me:2866: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2867 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2868 ac_status=$? 2869 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2870 rm -f conftest.er1 2871 cat conftest.err >&5 2872 echo "$as_me:2872: \$? = $ac_status" >&5 2873 (exit "$ac_status"); } >/dev/null; then 2874 if test -s conftest.err; then 2875 ac_cpp_err=$ac_c_preproc_warn_flag 2876 else 2877 ac_cpp_err= 2878 fi 2879else 2880 ac_cpp_err=yes 2881fi 2882if test -z "$ac_cpp_err"; then 2883 # Broken: success on invalid input. 2884continue 2885else 2886 echo "$as_me: failed program was:" >&5 2887 cat "conftest.$ac_ext" >&5 2888 # Passes both tests. 2889ac_preproc_ok=: 2890break 2891fi 2892rm -f conftest.err "conftest.$ac_ext" 2893 2894done 2895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2896rm -f conftest.err "conftest.$ac_ext" 2897if $ac_preproc_ok; then 2898 break 2899fi 2900 2901 done 2902 ac_cv_prog_CPP=$CPP 2903 2904fi 2905 CPP=$ac_cv_prog_CPP 2906else 2907 ac_cv_prog_CPP=$CPP 2908fi 2909echo "$as_me:2909: result: $CPP" >&5 2910echo "${ECHO_T}$CPP" >&6 2911ac_preproc_ok=false 2912for ac_c_preproc_warn_flag in '' yes 2913do 2914 # Use a header file that comes with gcc, so configuring glibc 2915 # with a fresh cross-compiler works. 2916 # On the NeXT, cc -E runs the code through the compiler's parser, 2917 # not just through cpp. "Syntax error" is here to catch this case. 2918 cat >"conftest.$ac_ext" <<_ACEOF 2919#line 2919 "configure" 2920#include "confdefs.h" 2921#include <assert.h> 2922 Syntax error 2923_ACEOF 2924if { (eval echo "$as_me:2924: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2925 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2926 ac_status=$? 2927 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2928 rm -f conftest.er1 2929 cat conftest.err >&5 2930 echo "$as_me:2930: \$? = $ac_status" >&5 2931 (exit "$ac_status"); } >/dev/null; then 2932 if test -s conftest.err; then 2933 ac_cpp_err=$ac_c_preproc_warn_flag 2934 else 2935 ac_cpp_err= 2936 fi 2937else 2938 ac_cpp_err=yes 2939fi 2940if test -z "$ac_cpp_err"; then 2941 : 2942else 2943 echo "$as_me: failed program was:" >&5 2944 cat "conftest.$ac_ext" >&5 2945 # Broken: fails on valid input. 2946continue 2947fi 2948rm -f conftest.err "conftest.$ac_ext" 2949 2950 # OK, works on sane cases. Now check whether non-existent headers 2951 # can be detected and how. 2952 cat >"conftest.$ac_ext" <<_ACEOF 2953#line 2953 "configure" 2954#include "confdefs.h" 2955#include <ac_nonexistent.h> 2956_ACEOF 2957if { (eval echo "$as_me:2957: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2958 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2959 ac_status=$? 2960 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2961 rm -f conftest.er1 2962 cat conftest.err >&5 2963 echo "$as_me:2963: \$? = $ac_status" >&5 2964 (exit "$ac_status"); } >/dev/null; then 2965 if test -s conftest.err; then 2966 ac_cpp_err=$ac_c_preproc_warn_flag 2967 else 2968 ac_cpp_err= 2969 fi 2970else 2971 ac_cpp_err=yes 2972fi 2973if test -z "$ac_cpp_err"; then 2974 # Broken: success on invalid input. 2975continue 2976else 2977 echo "$as_me: failed program was:" >&5 2978 cat "conftest.$ac_ext" >&5 2979 # Passes both tests. 2980ac_preproc_ok=: 2981break 2982fi 2983rm -f conftest.err "conftest.$ac_ext" 2984 2985done 2986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2987rm -f conftest.err "conftest.$ac_ext" 2988if $ac_preproc_ok; then 2989 : 2990else 2991 { { echo "$as_me:2991: error: C preprocessor \"$CPP\" fails sanity check" >&5 2992echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2993 { (exit 1); exit 1; }; } 2994fi 2995 2996ac_ext=c 2997ac_cpp='$CPP $CPPFLAGS' 2998ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2999ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3000ac_compiler_gnu=$ac_cv_c_compiler_gnu 3001ac_main_return="return" 3002 3003if test $ac_cv_c_compiler_gnu = yes; then 3004 echo "$as_me:3004: checking whether $CC needs -traditional" >&5 3005echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3006if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3007 echo $ECHO_N "(cached) $ECHO_C" >&6 3008else 3009 ac_pattern="Autoconf.*'x'" 3010 cat >"conftest.$ac_ext" <<_ACEOF 3011#line 3011 "configure" 3012#include "confdefs.h" 3013#include <sgtty.h> 3014int Autoconf = TIOCGETP; 3015_ACEOF 3016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3017 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3018 ac_cv_prog_gcc_traditional=yes 3019else 3020 ac_cv_prog_gcc_traditional=no 3021fi 3022rm -rf conftest* 3023 3024 if test $ac_cv_prog_gcc_traditional = no; then 3025 cat >"conftest.$ac_ext" <<_ACEOF 3026#line 3026 "configure" 3027#include "confdefs.h" 3028#include <termio.h> 3029int Autoconf = TCGETA; 3030_ACEOF 3031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3032 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3033 ac_cv_prog_gcc_traditional=yes 3034fi 3035rm -rf conftest* 3036 3037 fi 3038fi 3039echo "$as_me:3039: result: $ac_cv_prog_gcc_traditional" >&5 3040echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3041 if test $ac_cv_prog_gcc_traditional = yes; then 3042 CC="$CC -traditional" 3043 fi 3044fi 3045 3046echo "$as_me:3046: checking whether $CC understands -c and -o together" >&5 3047echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6 3048if test "${cf_cv_prog_CC_c_o+set}" = set; then 3049 echo $ECHO_N "(cached) $ECHO_C" >&6 3050else 3051 3052cat > conftest.$ac_ext <<CF_EOF 3053int main(void) 3054{ 3055 ${cf_cv_main_return:-return}(0); 3056} 3057CF_EOF 3058# We do the test twice because some compilers refuse to overwrite an 3059# existing .o file with -o, though they will create one. 3060ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3061if { (eval echo "$as_me:3061: \"$ac_try\"") >&5 3062 (eval $ac_try) 2>&5 3063 ac_status=$? 3064 echo "$as_me:3064: \$? = $ac_status" >&5 3065 (exit "$ac_status"); } && 3066 test -f conftest2.$ac_objext && { (eval echo "$as_me:3066: \"$ac_try\"") >&5 3067 (eval $ac_try) 2>&5 3068 ac_status=$? 3069 echo "$as_me:3069: \$? = $ac_status" >&5 3070 (exit "$ac_status"); }; 3071then 3072 eval cf_cv_prog_CC_c_o=yes 3073else 3074 eval cf_cv_prog_CC_c_o=no 3075fi 3076rm -rf ./conftest* 3077 3078fi 3079if test "$cf_cv_prog_CC_c_o" = yes; then 3080 echo "$as_me:3080: result: yes" >&5 3081echo "${ECHO_T}yes" >&6 3082else 3083 echo "$as_me:3083: result: no" >&5 3084echo "${ECHO_T}no" >&6 3085fi 3086 3087if test "$cross_compiling" = yes ; then 3088 LDCONFIG=: 3089else 3090 case "$cf_cv_system_name" in 3091 (dragonfly*|mirbsd*|freebsd*) 3092 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R" 3093 ;; 3094 (*) LDPATH=$PATH:/sbin:/usr/sbin 3095 # Extract the first word of "ldconfig", so it can be a program name with args. 3096set dummy ldconfig; ac_word=$2 3097echo "$as_me:3097: checking for $ac_word" >&5 3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3099if test "${ac_cv_path_LDCONFIG+set}" = set; then 3100 echo $ECHO_N "(cached) $ECHO_C" >&6 3101else 3102 case $LDCONFIG in 3103 [\\/]* | ?:[\\/]*) 3104 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 3105 ;; 3106 *) 3107 ac_save_IFS=$IFS; IFS=$ac_path_separator 3108ac_dummy="$LDPATH" 3109for ac_dir in $ac_dummy; do 3110 IFS=$ac_save_IFS 3111 test -z "$ac_dir" && ac_dir=. 3112 if $as_executable_p "$ac_dir/$ac_word"; then 3113 ac_cv_path_LDCONFIG="$ac_dir/$ac_word" 3114 echo "$as_me:3114: found $ac_dir/$ac_word" >&5 3115 break 3116fi 3117done 3118 3119 ;; 3120esac 3121fi 3122LDCONFIG=$ac_cv_path_LDCONFIG 3123 3124if test -n "$LDCONFIG"; then 3125 echo "$as_me:3125: result: $LDCONFIG" >&5 3126echo "${ECHO_T}$LDCONFIG" >&6 3127else 3128 echo "$as_me:3128: result: no" >&5 3129echo "${ECHO_T}no" >&6 3130fi 3131 3132 ;; 3133 esac 3134fi 3135 3136echo "$as_me:3136: checking if you want to ensure bool is consistent with C++" >&5 3137echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6 3138 3139# Check whether --with-cxx or --without-cxx was given. 3140if test "${with_cxx+set}" = set; then 3141 withval="$with_cxx" 3142 cf_with_cxx=$withval 3143else 3144 cf_with_cxx=yes 3145fi; 3146echo "$as_me:3146: result: $cf_with_cxx" >&5 3147echo "${ECHO_T}$cf_with_cxx" >&6 3148if test "X$cf_with_cxx" = Xno ; then 3149 CXX="" 3150 GXX="" 3151else 3152 # with autoconf 2.13, we can change the error to a warning: 3153 ac_ext=cc 3154ac_cpp='$CXXCPP $CPPFLAGS' 3155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3156ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3158ac_main_return="return" 3159if test -n "$ac_tool_prefix"; then 3160 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3161 do 3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3163set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3164echo "$as_me:3164: checking for $ac_word" >&5 3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3166if test "${ac_cv_prog_CXX+set}" = set; then 3167 echo $ECHO_N "(cached) $ECHO_C" >&6 3168else 3169 if test -n "$CXX"; then 3170 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3171else 3172 ac_save_IFS=$IFS; IFS=$ac_path_separator 3173ac_dummy="$PATH" 3174for ac_dir in $ac_dummy; do 3175 IFS=$ac_save_IFS 3176 test -z "$ac_dir" && ac_dir=. 3177 $as_executable_p "$ac_dir/$ac_word" || continue 3178ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3179echo "$as_me:3179: found $ac_dir/$ac_word" >&5 3180break 3181done 3182 3183fi 3184fi 3185CXX=$ac_cv_prog_CXX 3186if test -n "$CXX"; then 3187 echo "$as_me:3187: result: $CXX" >&5 3188echo "${ECHO_T}$CXX" >&6 3189else 3190 echo "$as_me:3190: result: no" >&5 3191echo "${ECHO_T}no" >&6 3192fi 3193 3194 test -n "$CXX" && break 3195 done 3196fi 3197if test -z "$CXX"; then 3198 ac_ct_CXX=$CXX 3199 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3200do 3201 # Extract the first word of "$ac_prog", so it can be a program name with args. 3202set dummy $ac_prog; ac_word=$2 3203echo "$as_me:3203: checking for $ac_word" >&5 3204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3205if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3206 echo $ECHO_N "(cached) $ECHO_C" >&6 3207else 3208 if test -n "$ac_ct_CXX"; then 3209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3210else 3211 ac_save_IFS=$IFS; IFS=$ac_path_separator 3212ac_dummy="$PATH" 3213for ac_dir in $ac_dummy; do 3214 IFS=$ac_save_IFS 3215 test -z "$ac_dir" && ac_dir=. 3216 $as_executable_p "$ac_dir/$ac_word" || continue 3217ac_cv_prog_ac_ct_CXX="$ac_prog" 3218echo "$as_me:3218: found $ac_dir/$ac_word" >&5 3219break 3220done 3221 3222fi 3223fi 3224ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3225if test -n "$ac_ct_CXX"; then 3226 echo "$as_me:3226: result: $ac_ct_CXX" >&5 3227echo "${ECHO_T}$ac_ct_CXX" >&6 3228else 3229 echo "$as_me:3229: result: no" >&5 3230echo "${ECHO_T}no" >&6 3231fi 3232 3233 test -n "$ac_ct_CXX" && break 3234done 3235test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3236 3237 CXX=$ac_ct_CXX 3238fi 3239 3240# Provide some information about the compiler. 3241echo "$as_me:3241:" \ 3242 "checking for C++ compiler version" >&5 3243ac_compiler=`set X $ac_compile; echo $2` 3244{ (eval echo "$as_me:3244: \"$ac_compiler --version </dev/null >&5\"") >&5 3245 (eval $ac_compiler --version </dev/null >&5) 2>&5 3246 ac_status=$? 3247 echo "$as_me:3247: \$? = $ac_status" >&5 3248 (exit "$ac_status"); } 3249{ (eval echo "$as_me:3249: \"$ac_compiler -v </dev/null >&5\"") >&5 3250 (eval $ac_compiler -v </dev/null >&5) 2>&5 3251 ac_status=$? 3252 echo "$as_me:3252: \$? = $ac_status" >&5 3253 (exit "$ac_status"); } 3254{ (eval echo "$as_me:3254: \"$ac_compiler -V </dev/null >&5\"") >&5 3255 (eval $ac_compiler -V </dev/null >&5) 2>&5 3256 ac_status=$? 3257 echo "$as_me:3257: \$? = $ac_status" >&5 3258 (exit "$ac_status"); } 3259 3260echo "$as_me:3260: checking whether we are using the GNU C++ compiler" >&5 3261echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3262if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3263 echo $ECHO_N "(cached) $ECHO_C" >&6 3264else 3265 cat >"conftest.$ac_ext" <<_ACEOF 3266#line 3266 "configure" 3267#include "confdefs.h" 3268 3269int 3270main (void) 3271{ 3272#ifndef __GNUC__ 3273 choke me 3274#endif 3275 3276 ; 3277 return 0; 3278} 3279_ACEOF 3280rm -f "conftest.$ac_objext" 3281if { (eval echo "$as_me:3281: \"$ac_compile\"") >&5 3282 (eval $ac_compile) 2>&5 3283 ac_status=$? 3284 echo "$as_me:3284: \$? = $ac_status" >&5 3285 (exit "$ac_status"); } && 3286 { ac_try='test -s "conftest.$ac_objext"' 3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5 3288 (eval $ac_try) 2>&5 3289 ac_status=$? 3290 echo "$as_me:3290: \$? = $ac_status" >&5 3291 (exit "$ac_status"); }; }; then 3292 ac_compiler_gnu=yes 3293else 3294 echo "$as_me: failed program was:" >&5 3295cat "conftest.$ac_ext" >&5 3296ac_compiler_gnu=no 3297fi 3298rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3300 3301fi 3302echo "$as_me:3302: result: $ac_cv_cxx_compiler_gnu" >&5 3303echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3304GXX=`test $ac_compiler_gnu = yes && echo yes` 3305ac_test_CXXFLAGS=${CXXFLAGS+set} 3306ac_save_CXXFLAGS=$CXXFLAGS 3307CXXFLAGS="-g" 3308echo "$as_me:3308: checking whether $CXX accepts -g" >&5 3309echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3310if test "${ac_cv_prog_cxx_g+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 cat >"conftest.$ac_ext" <<_ACEOF 3314#line 3314 "configure" 3315#include "confdefs.h" 3316 3317int 3318main (void) 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f "conftest.$ac_objext" 3326if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5 3327 (eval $ac_compile) 2>&5 3328 ac_status=$? 3329 echo "$as_me:3329: \$? = $ac_status" >&5 3330 (exit "$ac_status"); } && 3331 { ac_try='test -s "conftest.$ac_objext"' 3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5 3333 (eval $ac_try) 2>&5 3334 ac_status=$? 3335 echo "$as_me:3335: \$? = $ac_status" >&5 3336 (exit "$ac_status"); }; }; then 3337 ac_cv_prog_cxx_g=yes 3338else 3339 echo "$as_me: failed program was:" >&5 3340cat "conftest.$ac_ext" >&5 3341ac_cv_prog_cxx_g=no 3342fi 3343rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3344fi 3345echo "$as_me:3345: result: $ac_cv_prog_cxx_g" >&5 3346echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3347if test "$ac_test_CXXFLAGS" = set; then 3348 CXXFLAGS=$ac_save_CXXFLAGS 3349elif test $ac_cv_prog_cxx_g = yes; then 3350 if test "$GXX" = yes; then 3351 CXXFLAGS="-g -O2" 3352 else 3353 CXXFLAGS="-g" 3354 fi 3355else 3356 if test "$GXX" = yes; then 3357 CXXFLAGS="-O2" 3358 else 3359 CXXFLAGS= 3360 fi 3361fi 3362for ac_declaration in \ 3363 ''\ 3364 '#include <stdlib.h>' \ 3365 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3366 'extern "C" void std::exit (int); using std::exit;' \ 3367 'extern "C" void exit (int) throw ();' \ 3368 'extern "C" void exit (int);' \ 3369 'void exit (int);' 3370do 3371 cat >"conftest.$ac_ext" <<_ACEOF 3372#line 3372 "configure" 3373#include "confdefs.h" 3374#include <stdlib.h> 3375$ac_declaration 3376int 3377main (void) 3378{ 3379exit (42); 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384rm -f "conftest.$ac_objext" 3385if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5 3386 (eval $ac_compile) 2>&5 3387 ac_status=$? 3388 echo "$as_me:3388: \$? = $ac_status" >&5 3389 (exit "$ac_status"); } && 3390 { ac_try='test -s "conftest.$ac_objext"' 3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5 3392 (eval $ac_try) 2>&5 3393 ac_status=$? 3394 echo "$as_me:3394: \$? = $ac_status" >&5 3395 (exit "$ac_status"); }; }; then 3396 : 3397else 3398 echo "$as_me: failed program was:" >&5 3399cat "conftest.$ac_ext" >&5 3400continue 3401fi 3402rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3403 cat >"conftest.$ac_ext" <<_ACEOF 3404#line 3404 "configure" 3405#include "confdefs.h" 3406$ac_declaration 3407int 3408main (void) 3409{ 3410exit (42); 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415rm -f "conftest.$ac_objext" 3416if { (eval echo "$as_me:3416: \"$ac_compile\"") >&5 3417 (eval $ac_compile) 2>&5 3418 ac_status=$? 3419 echo "$as_me:3419: \$? = $ac_status" >&5 3420 (exit "$ac_status"); } && 3421 { ac_try='test -s "conftest.$ac_objext"' 3422 { (eval echo "$as_me:3422: \"$ac_try\"") >&5 3423 (eval $ac_try) 2>&5 3424 ac_status=$? 3425 echo "$as_me:3425: \$? = $ac_status" >&5 3426 (exit "$ac_status"); }; }; then 3427 break 3428else 3429 echo "$as_me: failed program was:" >&5 3430cat "conftest.$ac_ext" >&5 3431fi 3432rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3433done 3434rm -rf conftest* 3435if test -n "$ac_declaration"; then 3436 echo '#ifdef __cplusplus' >>confdefs.h 3437 echo "$ac_declaration" >>confdefs.h 3438 echo '#endif' >>confdefs.h 3439fi 3440 3441ac_ext=c 3442ac_cpp='$CPP $CPPFLAGS' 3443ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3444ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3445ac_compiler_gnu=$ac_cv_c_compiler_gnu 3446ac_main_return="return" 3447 3448 ac_ext=cc 3449ac_cpp='$CXXCPP $CPPFLAGS' 3450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3451ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3453ac_main_return="return" 3454 3455 if test "x$cf_with_cxx" != xno 3456 then 3457 # Several of the C++ configurations do not work, particularly when 3458 # cross-compiling (20140913 -TD) 3459 echo "$as_me:3459: checking if $CXX works" >&5 3460echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6 3461 3462 save_CPPFLAGS="$CPPFLAGS" 3463 eval cf_includedir=${includedir} 3464 CPPFLAGS="$CPPFLAGS -I${cf_includedir}" 3465 3466cat >"conftest.$ac_ext" <<_ACEOF 3467#line 3467 "configure" 3468#include "confdefs.h" 3469 3470#include <stdlib.h> 3471#include <stdio.h> 3472 3473int 3474main (void) 3475{ 3476 3477 printf("Hello world!\n") 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483rm -f "conftest.$ac_objext" 3484if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5 3485 (eval $ac_compile) 2>&5 3486 ac_status=$? 3487 echo "$as_me:3487: \$? = $ac_status" >&5 3488 (exit "$ac_status"); } && 3489 { ac_try='test -s "conftest.$ac_objext"' 3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5 3491 (eval $ac_try) 2>&5 3492 ac_status=$? 3493 echo "$as_me:3493: \$? = $ac_status" >&5 3494 (exit "$ac_status"); }; }; then 3495 cf_cxx_works=yes 3496else 3497 echo "$as_me: failed program was:" >&5 3498cat "conftest.$ac_ext" >&5 3499cf_cxx_works=no 3500fi 3501rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3502 CPPFLAGS="$save_CPPFLAGS" 3503 3504 echo "$as_me:3504: result: $cf_cxx_works" >&5 3505echo "${ECHO_T}$cf_cxx_works" >&6 3506 if test "x$cf_cxx_works" = xno 3507 then 3508 { echo "$as_me:3508: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5 3509echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;} 3510 cf_with_cxx=no; CXX=""; GXX=""; 3511 fi 3512 fi 3513 ac_ext=c 3514ac_cpp='$CPP $CPPFLAGS' 3515ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3516ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3517ac_compiler_gnu=$ac_cv_c_compiler_gnu 3518ac_main_return="return" 3519 3520 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank) 3521 if test "$CXX" = "g++" ; then 3522 # Extract the first word of "g++", so it can be a program name with args. 3523set dummy g++; ac_word=$2 3524echo "$as_me:3524: checking for $ac_word" >&5 3525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3526if test "${ac_cv_path_CXX+set}" = set; then 3527 echo $ECHO_N "(cached) $ECHO_C" >&6 3528else 3529 case $CXX in 3530 [\\/]* | ?:[\\/]*) 3531 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 3532 ;; 3533 *) 3534 ac_save_IFS=$IFS; IFS=$ac_path_separator 3535ac_dummy="$PATH" 3536for ac_dir in $ac_dummy; do 3537 IFS=$ac_save_IFS 3538 test -z "$ac_dir" && ac_dir=. 3539 if $as_executable_p "$ac_dir/$ac_word"; then 3540 ac_cv_path_CXX="$ac_dir/$ac_word" 3541 echo "$as_me:3541: found $ac_dir/$ac_word" >&5 3542 break 3543fi 3544done 3545 3546 ;; 3547esac 3548fi 3549CXX=$ac_cv_path_CXX 3550 3551if test -n "$CXX"; then 3552 echo "$as_me:3552: result: $CXX" >&5 3553echo "${ECHO_T}$CXX" >&6 3554else 3555 echo "$as_me:3555: result: no" >&5 3556echo "${ECHO_T}no" >&6 3557fi 3558 3559 fi 3560 case "x$CXX" in 3561 (x|xg++) 3562 { echo "$as_me:3562: WARNING: You don't have any C++ compiler, too bad" >&5 3563echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;} 3564 cf_with_cxx=no; CXX=""; GXX=""; 3565 ;; 3566 esac 3567fi 3568 3569GXX_VERSION=none 3570if test "$GXX" = yes; then 3571 echo "$as_me:3571: checking version of ${CXX:-g++}" >&5 3572echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6 3573 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 3574 if test -z "$GXX_VERSION" 3575 then 3576 GXX_VERSION=unknown 3577 GXX=no 3578 fi 3579 echo "$as_me:3579: result: $GXX_VERSION" >&5 3580echo "${ECHO_T}$GXX_VERSION" >&6 3581fi 3582 3583case "$GXX_VERSION" in 3584([1-9][0-9].*) 3585 ;; 3586(1.*|2.[0-6]*) 3587 { echo "$as_me:3587: WARNING: templates do not work" >&5 3588echo "$as_me: WARNING: templates do not work" >&2;} 3589 ;; 3590esac 3591 3592echo "$as_me:3592: checking if you want to build C++ binding and demo" >&5 3593echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6 3594 3595# Check whether --with-cxx-binding or --without-cxx-binding was given. 3596if test "${with_cxx_binding+set}" = set; then 3597 withval="$with_cxx_binding" 3598 cf_with_cxx_binding=$withval 3599else 3600 cf_with_cxx_binding=$cf_with_cxx 3601fi; 3602echo "$as_me:3602: result: $cf_with_cxx_binding" >&5 3603echo "${ECHO_T}$cf_with_cxx_binding" >&6 3604 3605echo "$as_me:3605: checking if you want to build with Ada" >&5 3606echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6 3607echo "$as_me:3607: result: $cf_with_ada" >&5 3608echo "${ECHO_T}$cf_with_ada" >&6 3609 3610echo "$as_me:3610: checking if you want to install terminal database" >&5 3611echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6 3612 3613# Check whether --enable-db-install or --disable-db-install was given. 3614if test "${enable_db_install+set}" = set; then 3615 enableval="$enable_db_install" 3616 cf_with_db_install=$enableval 3617else 3618 cf_with_db_install=yes 3619fi; 3620echo "$as_me:3620: result: $cf_with_db_install" >&5 3621echo "${ECHO_T}$cf_with_db_install" >&6 3622 3623echo "$as_me:3623: checking if you want to install manpages" >&5 3624echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6 3625 3626# Check whether --with-manpages or --without-manpages was given. 3627if test "${with_manpages+set}" = set; then 3628 withval="$with_manpages" 3629 cf_with_manpages=$withval 3630else 3631 cf_with_manpages=yes 3632fi; 3633echo "$as_me:3633: result: $cf_with_manpages" >&5 3634echo "${ECHO_T}$cf_with_manpages" >&6 3635 3636echo "$as_me:3636: checking if you want to build programs such as tic" >&5 3637echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6 3638 3639# Check whether --with-progs or --without-progs was given. 3640if test "${with_progs+set}" = set; then 3641 withval="$with_progs" 3642 cf_with_progs=$withval 3643else 3644 cf_with_progs=yes 3645fi; 3646echo "$as_me:3646: result: $cf_with_progs" >&5 3647echo "${ECHO_T}$cf_with_progs" >&6 3648 3649if test -f "$srcdir/tack/tack.h" ; then 3650 if test "x$cross_compiling" = xyes ; then 3651 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6 3652 3653echo "${as_me:-configure}:3653: testing ignoring tack because we are cross-compiling ..." 1>&5 3654 3655 cf_with_tack=no 3656 else 3657 echo "$as_me:3657: checking if you want to build the tack program" >&5 3658echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6 3659 3660# Check whether --with-tack or --without-tack was given. 3661if test "${with_tack+set}" = set; then 3662 withval="$with_tack" 3663 cf_with_tack=$withval 3664else 3665 cf_with_tack=$cf_with_progs 3666fi; 3667 echo "$as_me:3667: result: $cf_with_tack" >&5 3668echo "${ECHO_T}$cf_with_tack" >&6 3669 fi 3670else 3671 cf_with_tack=no 3672fi 3673 3674echo "$as_me:3674: checking if you want to build test-programs" >&5 3675echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6 3676 3677# Check whether --with-tests or --without-tests was given. 3678if test "${with_tests+set}" = set; then 3679 withval="$with_tests" 3680 cf_with_tests=$withval 3681else 3682 cf_with_tests=yes 3683fi; 3684echo "$as_me:3684: result: $cf_with_tests" >&5 3685echo "${ECHO_T}$cf_with_tests" >&6 3686 3687echo "$as_me:3687: checking if you wish to install curses.h" >&5 3688echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6 3689 3690# Check whether --with-curses-h or --without-curses-h was given. 3691if test "${with_curses_h+set}" = set; then 3692 withval="$with_curses_h" 3693 with_curses_h=$withval 3694else 3695 with_curses_h=yes 3696fi; 3697echo "$as_me:3697: result: $with_curses_h" >&5 3698echo "${ECHO_T}$with_curses_h" >&6 3699 3700modules_to_build="ncurses" 3701test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs" 3702test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack" 3703modules_to_build="$modules_to_build panel menu form" 3704 3705test "$program_prefix" != NONE && 3706 program_transform_name="s,^,$program_prefix,;$program_transform_name" 3707# Use a double $ so make ignores it. 3708test "$program_suffix" != NONE && 3709 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 3710# Double any \ or $. echo might interpret backslashes. 3711# By default was `s,x,x', remove it if useless. 3712cat <<\_ACEOF >conftest.sed 3713s/[\\$]/&&/g;s/;s,x,x,$// 3714_ACEOF 3715program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3716rm conftest.sed 3717 3718for ac_prog in mawk gawk nawk awk 3719do 3720 # Extract the first word of "$ac_prog", so it can be a program name with args. 3721set dummy $ac_prog; ac_word=$2 3722echo "$as_me:3722: checking for $ac_word" >&5 3723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3724if test "${ac_cv_prog_AWK+set}" = set; then 3725 echo $ECHO_N "(cached) $ECHO_C" >&6 3726else 3727 if test -n "$AWK"; then 3728 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3729else 3730 ac_save_IFS=$IFS; IFS=$ac_path_separator 3731ac_dummy="$PATH" 3732for ac_dir in $ac_dummy; do 3733 IFS=$ac_save_IFS 3734 test -z "$ac_dir" && ac_dir=. 3735 $as_executable_p "$ac_dir/$ac_word" || continue 3736ac_cv_prog_AWK="$ac_prog" 3737echo "$as_me:3737: found $ac_dir/$ac_word" >&5 3738break 3739done 3740 3741fi 3742fi 3743AWK=$ac_cv_prog_AWK 3744if test -n "$AWK"; then 3745 echo "$as_me:3745: result: $AWK" >&5 3746echo "${ECHO_T}$AWK" >&6 3747else 3748 echo "$as_me:3748: result: no" >&5 3749echo "${ECHO_T}no" >&6 3750fi 3751 3752 test -n "$AWK" && break 3753done 3754 3755test -z "$AWK" && { { echo "$as_me:3755: error: No awk program found" >&5 3756echo "$as_me: error: No awk program found" >&2;} 3757 { (exit 1); exit 1; }; } 3758 3759# Find a good install program. We prefer a C program (faster), 3760# so one script is as good as another. But avoid the broken or 3761# incompatible versions: 3762# SysV /etc/install, /usr/sbin/install 3763# SunOS /usr/etc/install 3764# IRIX /sbin/install 3765# AIX /bin/install 3766# AmigaOS /C/install, which installs bootblocks on floppy discs 3767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3768# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3770# ./install, which can be erroneously created by make from ./install.sh. 3771echo "$as_me:3771: checking for a BSD compatible install" >&5 3772echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 3773if test -z "$INSTALL"; then 3774if test "${ac_cv_path_install+set}" = set; then 3775 echo $ECHO_N "(cached) $ECHO_C" >&6 3776else 3777 ac_save_IFS=$IFS; IFS=$ac_path_separator 3778 for ac_dir in $PATH; do 3779 IFS=$ac_save_IFS 3780 # Account for people who put trailing slashes in PATH elements. 3781 case $ac_dir/ in 3782 / | ./ | .// | /cC/* \ 3783 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 3784 | /usr/ucb/* ) ;; 3785 *) 3786 # OSF1 and SCO ODT 3.0 have their own names for install. 3787 # Don't use installbsd from OSF since it installs stuff as root 3788 # by default. 3789 for ac_prog in ginstall scoinst install; do 3790 if $as_executable_p "$ac_dir/$ac_prog"; then 3791 if test $ac_prog = install && 3792 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3793 # AIX install. It has an incompatible calling convention. 3794 : 3795 elif test $ac_prog = install && 3796 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3797 # program-specific install script used by HP pwplus--don't use. 3798 : 3799 else 3800 ac_cv_path_install="$ac_dir/$ac_prog -c" 3801 break 2 3802 fi 3803 fi 3804 done 3805 ;; 3806 esac 3807 done 3808 3809fi 3810 if test "${ac_cv_path_install+set}" = set; then 3811 INSTALL=$ac_cv_path_install 3812 else 3813 # As a last resort, use the slow shell script. We don't cache a 3814 # path for INSTALL within a source directory, because that will 3815 # break other packages using the cache if that directory is 3816 # removed, or if the path is relative. 3817 INSTALL=$ac_install_sh 3818 fi 3819fi 3820echo "$as_me:3820: result: $INSTALL" >&5 3821echo "${ECHO_T}$INSTALL" >&6 3822 3823# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3824# It thinks the first close brace ends the variable substitution. 3825test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3826 3827test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3828 3829test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3830 3831case $INSTALL in 3832(/*) 3833 ;; 3834(*) 3835 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'` 3836 test -z "$cf_dir" && cf_dir=. 3837 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`" 3838 ;; 3839esac 3840 3841for ac_prog in lint cppcheck splint 3842do 3843 # Extract the first word of "$ac_prog", so it can be a program name with args. 3844set dummy $ac_prog; ac_word=$2 3845echo "$as_me:3845: checking for $ac_word" >&5 3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3847if test "${ac_cv_prog_LINT+set}" = set; then 3848 echo $ECHO_N "(cached) $ECHO_C" >&6 3849else 3850 if test -n "$LINT"; then 3851 ac_cv_prog_LINT="$LINT" # Let the user override the test. 3852else 3853 ac_save_IFS=$IFS; IFS=$ac_path_separator 3854ac_dummy="$PATH" 3855for ac_dir in $ac_dummy; do 3856 IFS=$ac_save_IFS 3857 test -z "$ac_dir" && ac_dir=. 3858 $as_executable_p "$ac_dir/$ac_word" || continue 3859ac_cv_prog_LINT="$ac_prog" 3860echo "$as_me:3860: found $ac_dir/$ac_word" >&5 3861break 3862done 3863 3864fi 3865fi 3866LINT=$ac_cv_prog_LINT 3867if test -n "$LINT"; then 3868 echo "$as_me:3868: result: $LINT" >&5 3869echo "${ECHO_T}$LINT" >&6 3870else 3871 echo "$as_me:3871: result: no" >&5 3872echo "${ECHO_T}no" >&6 3873fi 3874 3875 test -n "$LINT" && break 3876done 3877 3878case "x$LINT" in 3879(xcppcheck|x*/cppcheck) 3880 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" 3881 ;; 3882esac 3883 3884echo "$as_me:3884: checking whether ln -s works" >&5 3885echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3886LN_S=$as_ln_s 3887if test "$LN_S" = "ln -s"; then 3888 echo "$as_me:3888: result: yes" >&5 3889echo "${ECHO_T}yes" >&6 3890else 3891 echo "$as_me:3891: result: no, using $LN_S" >&5 3892echo "${ECHO_T}no, using $LN_S" >&6 3893fi 3894 3895echo "$as_me:3895: checking if $LN_S -f options work" >&5 3896echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6 3897 3898rm -f conf$$.src conf$$dst 3899echo >conf$$.dst 3900echo first >conf$$.src 3901if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then 3902 cf_prog_ln_sf=yes 3903else 3904 cf_prog_ln_sf=no 3905fi 3906rm -f conf$$.dst conf$$src 3907echo "$as_me:3907: result: $cf_prog_ln_sf" >&5 3908echo "${ECHO_T}$cf_prog_ln_sf" >&6 3909 3910test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f" 3911 3912echo "$as_me:3912: checking for long file names" >&5 3913echo $ECHO_N "checking for long file names... $ECHO_C" >&6 3914if test "${ac_cv_sys_long_file_names+set}" = set; then 3915 echo $ECHO_N "(cached) $ECHO_C" >&6 3916else 3917 ac_cv_sys_long_file_names=yes 3918# Test for long file names in all the places we know might matter: 3919# . the current directory, where building will happen 3920# $prefix/lib where we will be installing things 3921# $exec_prefix/lib likewise 3922# eval it to expand exec_prefix. 3923# $TMPDIR if set, where it might want to write temporary files 3924# if $TMPDIR is not set: 3925# /tmp where it might want to write temporary files 3926# /var/tmp likewise 3927# /usr/tmp likewise 3928if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 3929 ac_tmpdirs=$TMPDIR 3930else 3931 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 3932fi 3933for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do 3934 test -d "$ac_dir" || continue 3935 test -w "$ac_dir" || continue # It is less confusing to not echo anything here. 3936 ac_xdir=$ac_dir/cf$$ 3937 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 3938 ac_tf1=$ac_xdir/conftest9012345 3939 ac_tf2=$ac_xdir/conftest9012346 3940 (echo 1 >"$ac_tf1") 2>/dev/null 3941 (echo 2 >"$ac_tf2") 2>/dev/null 3942 ac_val=`cat "$ac_tf1" 2>/dev/null` 3943 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then 3944 ac_cv_sys_long_file_names=no 3945 rm -rf "$ac_xdir" 2>/dev/null 3946 break 3947 fi 3948 rm -rf "$ac_xdir" 2>/dev/null 3949done 3950fi 3951echo "$as_me:3951: result: $ac_cv_sys_long_file_names" >&5 3952echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 3953if test "$ac_cv_sys_long_file_names" = yes; then 3954 3955cat >>confdefs.h <<\EOF 3956#define HAVE_LONG_FILE_NAMES 1 3957EOF 3958 3959fi 3960 3961# Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case 3962# of package conflict. 3963cf_config_suffix= 3964 3965# Check whether --with-config-suffix or --without-config-suffix was given. 3966if test "${with_config_suffix+set}" = set; then 3967 withval="$with_config_suffix" 3968 case "x$withval" in 3969 (xyes|xno) 3970 { echo "$as_me:3970: WARNING: expected a value for config-suffix option" >&5 3971echo "$as_me: WARNING: expected a value for config-suffix option" >&2;} 3972 ;; 3973 (*) cf_config_suffix="$withval" 3974 ;; 3975 esac 3976fi; 3977 3978# If we find pkg-config, check if we should install the ".pc" files. 3979 3980echo "$as_me:3980: checking if you want to use pkg-config" >&5 3981echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 3982 3983# Check whether --with-pkg-config or --without-pkg-config was given. 3984if test "${with_pkg_config+set}" = set; then 3985 withval="$with_pkg_config" 3986 cf_pkg_config=$withval 3987else 3988 cf_pkg_config=yes 3989fi; 3990echo "$as_me:3990: result: $cf_pkg_config" >&5 3991echo "${ECHO_T}$cf_pkg_config" >&6 3992 3993case "$cf_pkg_config" in 3994(no) 3995 PKG_CONFIG=none 3996 ;; 3997(yes) 3998 3999if test -n "$ac_tool_prefix"; then 4000 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4001set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4002echo "$as_me:4002: checking for $ac_word" >&5 4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4004if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006else 4007 case $PKG_CONFIG in 4008 [\\/]* | ?:[\\/]*) 4009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4010 ;; 4011 *) 4012 ac_save_IFS=$IFS; IFS=$ac_path_separator 4013ac_dummy="$PATH" 4014for ac_dir in $ac_dummy; do 4015 IFS=$ac_save_IFS 4016 test -z "$ac_dir" && ac_dir=. 4017 if $as_executable_p "$ac_dir/$ac_word"; then 4018 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 4019 echo "$as_me:4019: found $ac_dir/$ac_word" >&5 4020 break 4021fi 4022done 4023 4024 ;; 4025esac 4026fi 4027PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4028 4029if test -n "$PKG_CONFIG"; then 4030 echo "$as_me:4030: result: $PKG_CONFIG" >&5 4031echo "${ECHO_T}$PKG_CONFIG" >&6 4032else 4033 echo "$as_me:4033: result: no" >&5 4034echo "${ECHO_T}no" >&6 4035fi 4036 4037fi 4038if test -z "$ac_cv_path_PKG_CONFIG"; then 4039 ac_pt_PKG_CONFIG=$PKG_CONFIG 4040 # Extract the first word of "pkg-config", so it can be a program name with args. 4041set dummy pkg-config; ac_word=$2 4042echo "$as_me:4042: checking for $ac_word" >&5 4043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4044if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046else 4047 case $ac_pt_PKG_CONFIG in 4048 [\\/]* | ?:[\\/]*) 4049 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4050 ;; 4051 *) 4052 ac_save_IFS=$IFS; IFS=$ac_path_separator 4053ac_dummy="$PATH" 4054for ac_dir in $ac_dummy; do 4055 IFS=$ac_save_IFS 4056 test -z "$ac_dir" && ac_dir=. 4057 if $as_executable_p "$ac_dir/$ac_word"; then 4058 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 4059 echo "$as_me:4059: found $ac_dir/$ac_word" >&5 4060 break 4061fi 4062done 4063 4064 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 4065 ;; 4066esac 4067fi 4068ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4069 4070if test -n "$ac_pt_PKG_CONFIG"; then 4071 echo "$as_me:4071: result: $ac_pt_PKG_CONFIG" >&5 4072echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 4073else 4074 echo "$as_me:4074: result: no" >&5 4075echo "${ECHO_T}no" >&6 4076fi 4077 4078 PKG_CONFIG=$ac_pt_PKG_CONFIG 4079else 4080 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4081fi 4082 4083 ;; 4084(*) 4085 PKG_CONFIG=$withval 4086 ;; 4087esac 4088 4089test -z "$PKG_CONFIG" && PKG_CONFIG=none 4090if test "$PKG_CONFIG" != none ; then 4091 4092if test "x$prefix" != xNONE; then 4093 cf_path_syntax="$prefix" 4094else 4095 cf_path_syntax="$ac_default_prefix" 4096fi 4097 4098case ".$PKG_CONFIG" in 4099(.\$\(*\)*|.\'*\'*) 4100 ;; 4101(..|./*|.\\*) 4102 ;; 4103(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4104 ;; 4105(.\$\{*prefix\}*|.\$\{*dir\}*) 4106 eval PKG_CONFIG="$PKG_CONFIG" 4107 case ".$PKG_CONFIG" in 4108 (.NONE/*) 4109 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 4110 ;; 4111 esac 4112 ;; 4113(.no|.NONE/*) 4114 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 4115 ;; 4116(*) 4117 { { echo "$as_me:4117: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 4118echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 4119 { (exit 1); exit 1; }; } 4120 ;; 4121esac 4122 4123elif test "x$cf_pkg_config" != xno ; then 4124 { echo "$as_me:4124: WARNING: pkg-config is not installed" >&5 4125echo "$as_me: WARNING: pkg-config is not installed" >&2;} 4126fi 4127 4128case "$PKG_CONFIG" in 4129(no|none|yes) 4130 echo "$as_me:4130: checking for pkg-config library directory" >&5 4131echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6 4132 ;; 4133(*) 4134 echo "$as_me:4134: checking for $PKG_CONFIG library directory" >&5 4135echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6 4136 ;; 4137esac 4138 4139PKG_CONFIG_LIBDIR=no 4140 4141# Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given. 4142if test "${with_pkg_config_libdir+set}" = set; then 4143 withval="$with_pkg_config_libdir" 4144 PKG_CONFIG_LIBDIR=$withval 4145else 4146 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes 4147fi; 4148 4149case x$PKG_CONFIG_LIBDIR in 4150(x/*) 4151 ;; 4152(xyes) 4153 # Look for the library directory using the same prefix as the executable 4154 if test "x$PKG_CONFIG" = xnone 4155 then 4156 cf_path=$prefix 4157 else 4158 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'` 4159 fi 4160 4161 # If you don't like using the default architecture, you have to specify the 4162 # intended library directory and corresponding compiler/linker options. 4163 # 4164 # This case allows for Debian's 2014-flavor of multiarch, along with the 4165 # most common variations before that point. Some other variants spell the 4166 # directory differently, e.g., "pkg-config", and put it in unusual places. 4167 # pkg-config has always been poorly standardized, which is ironic... 4168 case x`(arch) 2>/dev/null` in 4169 (*64) 4170 cf_search_path="\ 4171 $cf_path/lib/*64-linux-gnu \ 4172 $cf_path/share \ 4173 $cf_path/lib64 \ 4174 $cf_path/lib32 \ 4175 $cf_path/lib" 4176 ;; 4177 (*) 4178 cf_search_path="\ 4179 $cf_path/lib/*-linux-gnu \ 4180 $cf_path/share \ 4181 $cf_path/lib32 \ 4182 $cf_path/lib \ 4183 $cf_path/libdata" 4184 ;; 4185 esac 4186 4187 test -n "$verbose" && echo " list..." 1>&6 4188 4189echo "${as_me:-configure}:4189: testing list... ..." 1>&5 4190 4191 for cf_config in $cf_search_path 4192 do 4193 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6 4194 4195echo "${as_me:-configure}:4195: testing checking $cf_config/pkgconfig ..." 1>&5 4196 4197 if test -d "$cf_config/pkgconfig" 4198 then 4199 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig 4200 echo "$as_me:4200: checking done" >&5 4201echo $ECHO_N "checking done... $ECHO_C" >&6 4202 break 4203 fi 4204 done 4205 ;; 4206(*) 4207 ;; 4208esac 4209 4210if test "x$PKG_CONFIG_LIBDIR" != xno ; then 4211 echo "$as_me:4211: result: $PKG_CONFIG_LIBDIR" >&5 4212echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6 4213fi 4214 4215if test "x$PKG_CONFIG" != xnone 4216then 4217 echo "$as_me:4217: checking if we should install .pc files for $PKG_CONFIG" >&5 4218echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6 4219else 4220 echo "$as_me:4220: checking if we should install .pc files" >&5 4221echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6 4222fi 4223 4224# Check whether --enable-pc-files or --disable-pc-files was given. 4225if test "${enable_pc_files+set}" = set; then 4226 enableval="$enable_pc_files" 4227 enable_pc_files=$enableval 4228else 4229 enable_pc_files=no 4230fi; 4231echo "$as_me:4231: result: $enable_pc_files" >&5 4232echo "${ECHO_T}$enable_pc_files" >&6 4233 4234if test "x$enable_pc_files" != xno 4235then 4236 MAKE_PC_FILES= 4237 case "x$PKG_CONFIG_LIBDIR" in 4238 (xno|xyes) 4239 { echo "$as_me:4239: WARNING: no PKG_CONFIG_LIBDIR was found" >&5 4240echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;} 4241 ;; 4242 (*) 4243 4244if test "x$prefix" != xNONE; then 4245 cf_path_syntax="$prefix" 4246else 4247 cf_path_syntax="$ac_default_prefix" 4248fi 4249 4250case ".$PKG_CONFIG_LIBDIR" in 4251(.\$\(*\)*|.\'*\'*) 4252 ;; 4253(..|./*|.\\*) 4254 ;; 4255(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4256 ;; 4257(.\$\{*prefix\}*|.\$\{*dir\}*) 4258 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR" 4259 case ".$PKG_CONFIG_LIBDIR" in 4260 (.NONE/*) 4261 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%` 4262 ;; 4263 esac 4264 ;; 4265(.no|.NONE/*) 4266 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%` 4267 ;; 4268(*) 4269 { { echo "$as_me:4269: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5 4270echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;} 4271 { (exit 1); exit 1; }; } 4272 ;; 4273esac 4274 4275 ;; 4276 esac 4277else 4278 MAKE_PC_FILES="#" 4279fi 4280 4281if test -z "$MAKE_PC_FILES" 4282then 4283 echo "$as_me:4283: checking for suffix to add to pc-files" >&5 4284echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6 4285 4286# Check whether --with-pc-suffix or --without-pc-suffix was given. 4287if test "${with_pc_suffix+set}" = set; then 4288 withval="$with_pc_suffix" 4289 case "x$withval" in 4290 (xyes|xno) 4291 PC_MODULE_SUFFIX= 4292 ;; 4293 (*) PC_MODULE_SUFFIX="$withval" 4294 ;; 4295 esac 4296fi; 4297 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none 4298 echo "$as_me:4298: result: $PC_MODULE_SUFFIX" >&5 4299echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6 4300 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX= 4301 4302fi 4303 4304echo "$as_me:4304: checking if we should assume mixed-case filenames" >&5 4305echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6 4306 4307# Check whether --enable-mixed-case or --disable-mixed-case was given. 4308if test "${enable_mixed_case+set}" = set; then 4309 enableval="$enable_mixed_case" 4310 enable_mixedcase=$enableval 4311else 4312 enable_mixedcase=auto 4313fi; 4314echo "$as_me:4314: result: $enable_mixedcase" >&5 4315echo "${ECHO_T}$enable_mixedcase" >&6 4316if test "$enable_mixedcase" = "auto" ; then 4317 4318echo "$as_me:4318: checking if filesystem supports mixed-case filenames" >&5 4319echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 4320if test "${cf_cv_mixedcase+set}" = set; then 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 4322else 4323 4324if test "$cross_compiling" = yes ; then 4325 case "$target_alias" in 4326 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 4327 cf_cv_mixedcase=no 4328 ;; 4329 (*) 4330 cf_cv_mixedcase=yes 4331 ;; 4332 esac 4333else 4334 rm -f conftest CONFTEST 4335 echo test >conftest 4336 if test -f CONFTEST ; then 4337 cf_cv_mixedcase=no 4338 else 4339 cf_cv_mixedcase=yes 4340 fi 4341 rm -f conftest CONFTEST 4342fi 4343 4344fi 4345echo "$as_me:4345: result: $cf_cv_mixedcase" >&5 4346echo "${ECHO_T}$cf_cv_mixedcase" >&6 4347test "$cf_cv_mixedcase" = yes && 4348cat >>confdefs.h <<\EOF 4349#define MIXEDCASE_FILENAMES 1 4350EOF 4351 4352else 4353 cf_cv_mixedcase=$enable_mixedcase 4354 if test "x$enable_mixedcase" = "xyes" ; then 4355 4356cat >>confdefs.h <<\EOF 4357#define MIXEDCASE_FILENAMES 1 4358EOF 4359 4360 fi 4361fi 4362 4363# do this after mixed-case option (tags/TAGS is not as important as tic). 4364echo "$as_me:4364: checking whether ${MAKE-make} sets \${MAKE}" >&5 4365echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 4366set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 4367if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4368 echo $ECHO_N "(cached) $ECHO_C" >&6 4369else 4370 cat >conftest.make <<\EOF 4371all: 4372 @echo 'ac_maketemp="${MAKE}"' 4373EOF 4374# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4375eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4376if test -n "$ac_maketemp"; then 4377 eval ac_cv_prog_make_${ac_make}_set=yes 4378else 4379 eval ac_cv_prog_make_${ac_make}_set=no 4380fi 4381rm -f conftest.make 4382fi 4383if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4384 echo "$as_me:4384: result: yes" >&5 4385echo "${ECHO_T}yes" >&6 4386 SET_MAKE= 4387else 4388 echo "$as_me:4388: result: no" >&5 4389echo "${ECHO_T}no" >&6 4390 SET_MAKE="MAKE=${MAKE-make}" 4391fi 4392 4393for ac_prog in exctags ctags 4394do 4395 # Extract the first word of "$ac_prog", so it can be a program name with args. 4396set dummy $ac_prog; ac_word=$2 4397echo "$as_me:4397: checking for $ac_word" >&5 4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4399if test "${ac_cv_prog_CTAGS+set}" = set; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401else 4402 if test -n "$CTAGS"; then 4403 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 4404else 4405 ac_save_IFS=$IFS; IFS=$ac_path_separator 4406ac_dummy="$PATH" 4407for ac_dir in $ac_dummy; do 4408 IFS=$ac_save_IFS 4409 test -z "$ac_dir" && ac_dir=. 4410 $as_executable_p "$ac_dir/$ac_word" || continue 4411ac_cv_prog_CTAGS="$ac_prog" 4412echo "$as_me:4412: found $ac_dir/$ac_word" >&5 4413break 4414done 4415 4416fi 4417fi 4418CTAGS=$ac_cv_prog_CTAGS 4419if test -n "$CTAGS"; then 4420 echo "$as_me:4420: result: $CTAGS" >&5 4421echo "${ECHO_T}$CTAGS" >&6 4422else 4423 echo "$as_me:4423: result: no" >&5 4424echo "${ECHO_T}no" >&6 4425fi 4426 4427 test -n "$CTAGS" && break 4428done 4429 4430for ac_prog in exetags etags 4431do 4432 # Extract the first word of "$ac_prog", so it can be a program name with args. 4433set dummy $ac_prog; ac_word=$2 4434echo "$as_me:4434: checking for $ac_word" >&5 4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4436if test "${ac_cv_prog_ETAGS+set}" = set; then 4437 echo $ECHO_N "(cached) $ECHO_C" >&6 4438else 4439 if test -n "$ETAGS"; then 4440 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 4441else 4442 ac_save_IFS=$IFS; IFS=$ac_path_separator 4443ac_dummy="$PATH" 4444for ac_dir in $ac_dummy; do 4445 IFS=$ac_save_IFS 4446 test -z "$ac_dir" && ac_dir=. 4447 $as_executable_p "$ac_dir/$ac_word" || continue 4448ac_cv_prog_ETAGS="$ac_prog" 4449echo "$as_me:4449: found $ac_dir/$ac_word" >&5 4450break 4451done 4452 4453fi 4454fi 4455ETAGS=$ac_cv_prog_ETAGS 4456if test -n "$ETAGS"; then 4457 echo "$as_me:4457: result: $ETAGS" >&5 4458echo "${ECHO_T}$ETAGS" >&6 4459else 4460 echo "$as_me:4460: result: no" >&5 4461echo "${ECHO_T}no" >&6 4462fi 4463 4464 test -n "$ETAGS" && break 4465done 4466 4467# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 4468set dummy ${CTAGS:-ctags}; ac_word=$2 4469echo "$as_me:4469: checking for $ac_word" >&5 4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4471if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 4472 echo $ECHO_N "(cached) $ECHO_C" >&6 4473else 4474 if test -n "$MAKE_LOWER_TAGS"; then 4475 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 4476else 4477 ac_save_IFS=$IFS; IFS=$ac_path_separator 4478ac_dummy="$PATH" 4479for ac_dir in $ac_dummy; do 4480 IFS=$ac_save_IFS 4481 test -z "$ac_dir" && ac_dir=. 4482 $as_executable_p "$ac_dir/$ac_word" || continue 4483ac_cv_prog_MAKE_LOWER_TAGS="yes" 4484echo "$as_me:4484: found $ac_dir/$ac_word" >&5 4485break 4486done 4487 4488 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 4489fi 4490fi 4491MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 4492if test -n "$MAKE_LOWER_TAGS"; then 4493 echo "$as_me:4493: result: $MAKE_LOWER_TAGS" >&5 4494echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 4495else 4496 echo "$as_me:4496: result: no" >&5 4497echo "${ECHO_T}no" >&6 4498fi 4499 4500if test "$cf_cv_mixedcase" = yes ; then 4501 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 4502set dummy ${ETAGS:-etags}; ac_word=$2 4503echo "$as_me:4503: checking for $ac_word" >&5 4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4505if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 if test -n "$MAKE_UPPER_TAGS"; then 4509 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 4510else 4511 ac_save_IFS=$IFS; IFS=$ac_path_separator 4512ac_dummy="$PATH" 4513for ac_dir in $ac_dummy; do 4514 IFS=$ac_save_IFS 4515 test -z "$ac_dir" && ac_dir=. 4516 $as_executable_p "$ac_dir/$ac_word" || continue 4517ac_cv_prog_MAKE_UPPER_TAGS="yes" 4518echo "$as_me:4518: found $ac_dir/$ac_word" >&5 4519break 4520done 4521 4522 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 4523fi 4524fi 4525MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 4526if test -n "$MAKE_UPPER_TAGS"; then 4527 echo "$as_me:4527: result: $MAKE_UPPER_TAGS" >&5 4528echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 4529else 4530 echo "$as_me:4530: result: no" >&5 4531echo "${ECHO_T}no" >&6 4532fi 4533 4534else 4535 MAKE_UPPER_TAGS=no 4536fi 4537 4538if test "$MAKE_UPPER_TAGS" = yes ; then 4539 MAKE_UPPER_TAGS= 4540else 4541 MAKE_UPPER_TAGS="#" 4542fi 4543 4544if test "$MAKE_LOWER_TAGS" = yes ; then 4545 MAKE_LOWER_TAGS= 4546else 4547 MAKE_LOWER_TAGS="#" 4548fi 4549 4550echo "$as_me:4550: checking for makeflags variable" >&5 4551echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 4552if test "${cf_cv_makeflags+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 4556 cf_cv_makeflags='' 4557 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 4558 do 4559 cat >cf_makeflags.tmp <<CF_EOF 4560SHELL = $SHELL 4561all : 4562 @ echo '.$cf_option' 4563CF_EOF 4564 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'` 4565 case "$cf_result" in 4566 (.*k|.*kw) 4567 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`" 4568 case "$cf_result" in 4569 (.*CC=*) cf_cv_makeflags= 4570 ;; 4571 (*) cf_cv_makeflags=$cf_option 4572 ;; 4573 esac 4574 break 4575 ;; 4576 (.-) 4577 ;; 4578 (*) 4579 4580echo "${as_me:-configure}:4580: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5 4581 4582 ;; 4583 esac 4584 done 4585 rm -f cf_makeflags.tmp 4586 4587fi 4588echo "$as_me:4588: result: $cf_cv_makeflags" >&5 4589echo "${ECHO_T}$cf_cv_makeflags" >&6 4590 4591if test -n "$ac_tool_prefix"; then 4592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4593set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4594echo "$as_me:4594: checking for $ac_word" >&5 4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4596if test "${ac_cv_prog_RANLIB+set}" = set; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 if test -n "$RANLIB"; then 4600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4601else 4602 ac_save_IFS=$IFS; IFS=$ac_path_separator 4603ac_dummy="$PATH" 4604for ac_dir in $ac_dummy; do 4605 IFS=$ac_save_IFS 4606 test -z "$ac_dir" && ac_dir=. 4607 $as_executable_p "$ac_dir/$ac_word" || continue 4608ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4609echo "$as_me:4609: found $ac_dir/$ac_word" >&5 4610break 4611done 4612 4613fi 4614fi 4615RANLIB=$ac_cv_prog_RANLIB 4616if test -n "$RANLIB"; then 4617 echo "$as_me:4617: result: $RANLIB" >&5 4618echo "${ECHO_T}$RANLIB" >&6 4619else 4620 echo "$as_me:4620: result: no" >&5 4621echo "${ECHO_T}no" >&6 4622fi 4623 4624fi 4625if test -z "$ac_cv_prog_RANLIB"; then 4626 ac_ct_RANLIB=$RANLIB 4627 # Extract the first word of "ranlib", so it can be a program name with args. 4628set dummy ranlib; ac_word=$2 4629echo "$as_me:4629: checking for $ac_word" >&5 4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4631if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4632 echo $ECHO_N "(cached) $ECHO_C" >&6 4633else 4634 if test -n "$ac_ct_RANLIB"; then 4635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4636else 4637 ac_save_IFS=$IFS; IFS=$ac_path_separator 4638ac_dummy="$PATH" 4639for ac_dir in $ac_dummy; do 4640 IFS=$ac_save_IFS 4641 test -z "$ac_dir" && ac_dir=. 4642 $as_executable_p "$ac_dir/$ac_word" || continue 4643ac_cv_prog_ac_ct_RANLIB="ranlib" 4644echo "$as_me:4644: found $ac_dir/$ac_word" >&5 4645break 4646done 4647 4648 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'" 4649fi 4650fi 4651ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4652if test -n "$ac_ct_RANLIB"; then 4653 echo "$as_me:4653: result: $ac_ct_RANLIB" >&5 4654echo "${ECHO_T}$ac_ct_RANLIB" >&6 4655else 4656 echo "$as_me:4656: result: no" >&5 4657echo "${ECHO_T}no" >&6 4658fi 4659 4660 RANLIB=$ac_ct_RANLIB 4661else 4662 RANLIB="$ac_cv_prog_RANLIB" 4663fi 4664 4665if test -n "$ac_tool_prefix"; then 4666 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 4667set dummy ${ac_tool_prefix}ld; ac_word=$2 4668echo "$as_me:4668: checking for $ac_word" >&5 4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4670if test "${ac_cv_prog_LD+set}" = set; then 4671 echo $ECHO_N "(cached) $ECHO_C" >&6 4672else 4673 if test -n "$LD"; then 4674 ac_cv_prog_LD="$LD" # Let the user override the test. 4675else 4676 ac_save_IFS=$IFS; IFS=$ac_path_separator 4677ac_dummy="$PATH" 4678for ac_dir in $ac_dummy; do 4679 IFS=$ac_save_IFS 4680 test -z "$ac_dir" && ac_dir=. 4681 $as_executable_p "$ac_dir/$ac_word" || continue 4682ac_cv_prog_LD="${ac_tool_prefix}ld" 4683echo "$as_me:4683: found $ac_dir/$ac_word" >&5 4684break 4685done 4686 4687fi 4688fi 4689LD=$ac_cv_prog_LD 4690if test -n "$LD"; then 4691 echo "$as_me:4691: result: $LD" >&5 4692echo "${ECHO_T}$LD" >&6 4693else 4694 echo "$as_me:4694: result: no" >&5 4695echo "${ECHO_T}no" >&6 4696fi 4697 4698fi 4699if test -z "$ac_cv_prog_LD"; then 4700 ac_ct_LD=$LD 4701 # Extract the first word of "ld", so it can be a program name with args. 4702set dummy ld; ac_word=$2 4703echo "$as_me:4703: checking for $ac_word" >&5 4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4705if test "${ac_cv_prog_ac_ct_LD+set}" = set; then 4706 echo $ECHO_N "(cached) $ECHO_C" >&6 4707else 4708 if test -n "$ac_ct_LD"; then 4709 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 4710else 4711 ac_save_IFS=$IFS; IFS=$ac_path_separator 4712ac_dummy="$PATH" 4713for ac_dir in $ac_dummy; do 4714 IFS=$ac_save_IFS 4715 test -z "$ac_dir" && ac_dir=. 4716 $as_executable_p "$ac_dir/$ac_word" || continue 4717ac_cv_prog_ac_ct_LD="ld" 4718echo "$as_me:4718: found $ac_dir/$ac_word" >&5 4719break 4720done 4721 4722 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" 4723fi 4724fi 4725ac_ct_LD=$ac_cv_prog_ac_ct_LD 4726if test -n "$ac_ct_LD"; then 4727 echo "$as_me:4727: result: $ac_ct_LD" >&5 4728echo "${ECHO_T}$ac_ct_LD" >&6 4729else 4730 echo "$as_me:4730: result: no" >&5 4731echo "${ECHO_T}no" >&6 4732fi 4733 4734 LD=$ac_ct_LD 4735else 4736 LD="$ac_cv_prog_LD" 4737fi 4738 4739if test -n "$ac_tool_prefix"; then 4740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4741set dummy ${ac_tool_prefix}ar; ac_word=$2 4742echo "$as_me:4742: checking for $ac_word" >&5 4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4744if test "${ac_cv_prog_AR+set}" = set; then 4745 echo $ECHO_N "(cached) $ECHO_C" >&6 4746else 4747 if test -n "$AR"; then 4748 ac_cv_prog_AR="$AR" # Let the user override the test. 4749else 4750 ac_save_IFS=$IFS; IFS=$ac_path_separator 4751ac_dummy="$PATH" 4752for ac_dir in $ac_dummy; do 4753 IFS=$ac_save_IFS 4754 test -z "$ac_dir" && ac_dir=. 4755 $as_executable_p "$ac_dir/$ac_word" || continue 4756ac_cv_prog_AR="${ac_tool_prefix}ar" 4757echo "$as_me:4757: found $ac_dir/$ac_word" >&5 4758break 4759done 4760 4761fi 4762fi 4763AR=$ac_cv_prog_AR 4764if test -n "$AR"; then 4765 echo "$as_me:4765: result: $AR" >&5 4766echo "${ECHO_T}$AR" >&6 4767else 4768 echo "$as_me:4768: result: no" >&5 4769echo "${ECHO_T}no" >&6 4770fi 4771 4772fi 4773if test -z "$ac_cv_prog_AR"; then 4774 ac_ct_AR=$AR 4775 # Extract the first word of "ar", so it can be a program name with args. 4776set dummy ar; ac_word=$2 4777echo "$as_me:4777: checking for $ac_word" >&5 4778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4779if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4780 echo $ECHO_N "(cached) $ECHO_C" >&6 4781else 4782 if test -n "$ac_ct_AR"; then 4783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4784else 4785 ac_save_IFS=$IFS; IFS=$ac_path_separator 4786ac_dummy="$PATH" 4787for ac_dir in $ac_dummy; do 4788 IFS=$ac_save_IFS 4789 test -z "$ac_dir" && ac_dir=. 4790 $as_executable_p "$ac_dir/$ac_word" || continue 4791ac_cv_prog_ac_ct_AR="ar" 4792echo "$as_me:4792: found $ac_dir/$ac_word" >&5 4793break 4794done 4795 4796 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 4797fi 4798fi 4799ac_ct_AR=$ac_cv_prog_ac_ct_AR 4800if test -n "$ac_ct_AR"; then 4801 echo "$as_me:4801: result: $ac_ct_AR" >&5 4802echo "${ECHO_T}$ac_ct_AR" >&6 4803else 4804 echo "$as_me:4804: result: no" >&5 4805echo "${ECHO_T}no" >&6 4806fi 4807 4808 AR=$ac_ct_AR 4809else 4810 AR="$ac_cv_prog_AR" 4811fi 4812 4813if test -n "$ac_tool_prefix"; then 4814 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 4815set dummy ${ac_tool_prefix}nm; ac_word=$2 4816echo "$as_me:4816: checking for $ac_word" >&5 4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4818if test "${ac_cv_prog_NM+set}" = set; then 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 4820else 4821 if test -n "$NM"; then 4822 ac_cv_prog_NM="$NM" # Let the user override the test. 4823else 4824 ac_save_IFS=$IFS; IFS=$ac_path_separator 4825ac_dummy="$PATH" 4826for ac_dir in $ac_dummy; do 4827 IFS=$ac_save_IFS 4828 test -z "$ac_dir" && ac_dir=. 4829 $as_executable_p "$ac_dir/$ac_word" || continue 4830ac_cv_prog_NM="${ac_tool_prefix}nm" 4831echo "$as_me:4831: found $ac_dir/$ac_word" >&5 4832break 4833done 4834 4835fi 4836fi 4837NM=$ac_cv_prog_NM 4838if test -n "$NM"; then 4839 echo "$as_me:4839: result: $NM" >&5 4840echo "${ECHO_T}$NM" >&6 4841else 4842 echo "$as_me:4842: result: no" >&5 4843echo "${ECHO_T}no" >&6 4844fi 4845 4846fi 4847if test -z "$ac_cv_prog_NM"; then 4848 ac_ct_NM=$NM 4849 # Extract the first word of "nm", so it can be a program name with args. 4850set dummy nm; ac_word=$2 4851echo "$as_me:4851: checking for $ac_word" >&5 4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4853if test "${ac_cv_prog_ac_ct_NM+set}" = set; then 4854 echo $ECHO_N "(cached) $ECHO_C" >&6 4855else 4856 if test -n "$ac_ct_NM"; then 4857 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 4858else 4859 ac_save_IFS=$IFS; IFS=$ac_path_separator 4860ac_dummy="$PATH" 4861for ac_dir in $ac_dummy; do 4862 IFS=$ac_save_IFS 4863 test -z "$ac_dir" && ac_dir=. 4864 $as_executable_p "$ac_dir/$ac_word" || continue 4865ac_cv_prog_ac_ct_NM="nm" 4866echo "$as_me:4866: found $ac_dir/$ac_word" >&5 4867break 4868done 4869 4870 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm" 4871fi 4872fi 4873ac_ct_NM=$ac_cv_prog_ac_ct_NM 4874if test -n "$ac_ct_NM"; then 4875 echo "$as_me:4875: result: $ac_ct_NM" >&5 4876echo "${ECHO_T}$ac_ct_NM" >&6 4877else 4878 echo "$as_me:4878: result: no" >&5 4879echo "${ECHO_T}no" >&6 4880fi 4881 4882 NM=$ac_ct_NM 4883else 4884 NM="$ac_cv_prog_NM" 4885fi 4886 4887if test -n "$ac_tool_prefix"; then 4888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4889set dummy ${ac_tool_prefix}ar; ac_word=$2 4890echo "$as_me:4890: checking for $ac_word" >&5 4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4892if test "${ac_cv_prog_AR+set}" = set; then 4893 echo $ECHO_N "(cached) $ECHO_C" >&6 4894else 4895 if test -n "$AR"; then 4896 ac_cv_prog_AR="$AR" # Let the user override the test. 4897else 4898 ac_save_IFS=$IFS; IFS=$ac_path_separator 4899ac_dummy="$PATH" 4900for ac_dir in $ac_dummy; do 4901 IFS=$ac_save_IFS 4902 test -z "$ac_dir" && ac_dir=. 4903 $as_executable_p "$ac_dir/$ac_word" || continue 4904ac_cv_prog_AR="${ac_tool_prefix}ar" 4905echo "$as_me:4905: found $ac_dir/$ac_word" >&5 4906break 4907done 4908 4909fi 4910fi 4911AR=$ac_cv_prog_AR 4912if test -n "$AR"; then 4913 echo "$as_me:4913: result: $AR" >&5 4914echo "${ECHO_T}$AR" >&6 4915else 4916 echo "$as_me:4916: result: no" >&5 4917echo "${ECHO_T}no" >&6 4918fi 4919 4920fi 4921if test -z "$ac_cv_prog_AR"; then 4922 ac_ct_AR=$AR 4923 # Extract the first word of "ar", so it can be a program name with args. 4924set dummy ar; ac_word=$2 4925echo "$as_me:4925: checking for $ac_word" >&5 4926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4927if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4928 echo $ECHO_N "(cached) $ECHO_C" >&6 4929else 4930 if test -n "$ac_ct_AR"; then 4931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4932else 4933 ac_save_IFS=$IFS; IFS=$ac_path_separator 4934ac_dummy="$PATH" 4935for ac_dir in $ac_dummy; do 4936 IFS=$ac_save_IFS 4937 test -z "$ac_dir" && ac_dir=. 4938 $as_executable_p "$ac_dir/$ac_word" || continue 4939ac_cv_prog_ac_ct_AR="ar" 4940echo "$as_me:4940: found $ac_dir/$ac_word" >&5 4941break 4942done 4943 4944 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 4945fi 4946fi 4947ac_ct_AR=$ac_cv_prog_ac_ct_AR 4948if test -n "$ac_ct_AR"; then 4949 echo "$as_me:4949: result: $ac_ct_AR" >&5 4950echo "${ECHO_T}$ac_ct_AR" >&6 4951else 4952 echo "$as_me:4952: result: no" >&5 4953echo "${ECHO_T}no" >&6 4954fi 4955 4956 AR=$ac_ct_AR 4957else 4958 AR="$ac_cv_prog_AR" 4959fi 4960 4961echo "$as_me:4961: checking for options to update archives" >&5 4962echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6 4963if test "${cf_cv_ar_flags+set}" = set; then 4964 echo $ECHO_N "(cached) $ECHO_C" >&6 4965else 4966 4967 case "$cf_cv_system_name" in 4968 (*-msvc*) 4969 cf_cv_ar_flags='' 4970 cat >mk_static_lib.sh <<-EOF 4971 #!$SHELL 4972 MSVC_BIN="$AR" 4973 out="\$1" 4974 shift 4975 exec \$MSVC_BIN -out:"\$out" \$@ 4976 EOF 4977 chmod +x mk_static_lib.sh 4978 AR=`pwd`/mk_static_lib.sh 4979 ;; 4980 (*) 4981 cf_cv_ar_flags=unknown 4982 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv 4983 do 4984 4985 # check if $ARFLAGS already contains this choice 4986 if test "x$ARFLAGS" != "x" ; then 4987 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"` 4988 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then 4989 cf_cv_ar_flags= 4990 break 4991 fi 4992 fi 4993 4994 rm -f "conftest.$ac_cv_objext" 4995 rm -f conftest.a 4996 4997 cat >"conftest.$ac_ext" <<EOF 4998#line 4998 "configure" 4999int testdata[3] = { 123, 456, 789 }; 5000EOF 5001 if { (eval echo "$as_me:5001: \"$ac_compile\"") >&5 5002 (eval $ac_compile) 2>&5 5003 ac_status=$? 5004 echo "$as_me:5004: \$? = $ac_status" >&5 5005 (exit "$ac_status"); } ; then 5006 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5 5007 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null 5008 if test -f conftest.a ; then 5009 cf_cv_ar_flags="$cf_ar_flags" 5010 break 5011 fi 5012 else 5013 test -n "$verbose" && echo " cannot compile test-program" 1>&6 5014 5015echo "${as_me:-configure}:5015: testing cannot compile test-program ..." 1>&5 5016 5017 break 5018 fi 5019 done 5020 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext" 5021 ;; 5022 esac 5023 5024fi 5025echo "$as_me:5025: result: $cf_cv_ar_flags" >&5 5026echo "${ECHO_T}$cf_cv_ar_flags" >&6 5027 5028if test -n "$ARFLAGS" ; then 5029 if test -n "$cf_cv_ar_flags" ; then 5030 ARFLAGS="$ARFLAGS $cf_cv_ar_flags" 5031 fi 5032else 5033 ARFLAGS=$cf_cv_ar_flags 5034fi 5035 5036echo "$as_me:5036: checking if you have specified an install-prefix" >&5 5037echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6 5038 5039# Check whether --with-install-prefix or --without-install-prefix was given. 5040if test "${with_install_prefix+set}" = set; then 5041 withval="$with_install_prefix" 5042 case "x$withval" in 5043 (xyes|xno) 5044 ;; 5045 (*) DESTDIR="$withval" 5046 ;; 5047 esac 5048fi; 5049echo "$as_me:5049: result: $DESTDIR" >&5 5050echo "${ECHO_T}$DESTDIR" >&6 5051 5052############################################################################### 5053 5054# If we're cross-compiling, allow the user to override the tools and their 5055# options. The configure script is oriented toward identifying the host 5056# compiler, etc., but we need a build compiler to generate parts of the source. 5057 5058case "$cf_cv_system_name" in 5059(*-msvc*) 5060 LDFLAGS="$LDFLAGS user32.lib" 5061 export LDFLAGS 5062 ;; 5063esac 5064 5065if test "$cross_compiling" = yes ; then 5066 5067 # defaults that we might want to override 5068 : ${BUILD_CFLAGS:=''} 5069 : ${BUILD_CPPFLAGS:=''} 5070 : ${BUILD_LDFLAGS:=''} 5071 : ${BUILD_LIBS:=''} 5072 : ${BUILD_EXEEXT:='$x'} 5073 : ${BUILD_OBJEXT:='o'} 5074 5075# Check whether --with-build-cc or --without-build-cc was given. 5076if test "${with_build_cc+set}" = set; then 5077 withval="$with_build_cc" 5078 BUILD_CC="$withval" 5079else 5080 for ac_prog in gcc clang c99 c89 cc cl 5081do 5082 # Extract the first word of "$ac_prog", so it can be a program name with args. 5083set dummy $ac_prog; ac_word=$2 5084echo "$as_me:5084: checking for $ac_word" >&5 5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5086if test "${ac_cv_prog_BUILD_CC+set}" = set; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088else 5089 if test -n "$BUILD_CC"; then 5090 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5091else 5092 ac_save_IFS=$IFS; IFS=$ac_path_separator 5093ac_dummy="$PATH" 5094for ac_dir in $ac_dummy; do 5095 IFS=$ac_save_IFS 5096 test -z "$ac_dir" && ac_dir=. 5097 $as_executable_p "$ac_dir/$ac_word" || continue 5098ac_cv_prog_BUILD_CC="$ac_prog" 5099echo "$as_me:5099: found $ac_dir/$ac_word" >&5 5100break 5101done 5102 5103fi 5104fi 5105BUILD_CC=$ac_cv_prog_BUILD_CC 5106if test -n "$BUILD_CC"; then 5107 echo "$as_me:5107: result: $BUILD_CC" >&5 5108echo "${ECHO_T}$BUILD_CC" >&6 5109else 5110 echo "$as_me:5110: result: no" >&5 5111echo "${ECHO_T}no" >&6 5112fi 5113 5114 test -n "$BUILD_CC" && break 5115done 5116test -n "$BUILD_CC" || BUILD_CC="none" 5117 5118fi; 5119 echo "$as_me:5119: checking for native build C compiler" >&5 5120echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6 5121 echo "$as_me:5121: result: $BUILD_CC" >&5 5122echo "${ECHO_T}$BUILD_CC" >&6 5123 5124 echo "$as_me:5124: checking for native build C preprocessor" >&5 5125echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6 5126 5127# Check whether --with-build-cpp or --without-build-cpp was given. 5128if test "${with_build_cpp+set}" = set; then 5129 withval="$with_build_cpp" 5130 BUILD_CPP="$withval" 5131else 5132 BUILD_CPP='${BUILD_CC} -E' 5133fi; 5134 echo "$as_me:5134: result: $BUILD_CPP" >&5 5135echo "${ECHO_T}$BUILD_CPP" >&6 5136 5137 echo "$as_me:5137: checking for native build C flags" >&5 5138echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6 5139 5140# Check whether --with-build-cflags or --without-build-cflags was given. 5141if test "${with_build_cflags+set}" = set; then 5142 withval="$with_build_cflags" 5143 BUILD_CFLAGS="$withval" 5144fi; 5145 echo "$as_me:5145: result: $BUILD_CFLAGS" >&5 5146echo "${ECHO_T}$BUILD_CFLAGS" >&6 5147 5148 echo "$as_me:5148: checking for native build C preprocessor-flags" >&5 5149echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6 5150 5151# Check whether --with-build-cppflags or --without-build-cppflags was given. 5152if test "${with_build_cppflags+set}" = set; then 5153 withval="$with_build_cppflags" 5154 BUILD_CPPFLAGS="$withval" 5155fi; 5156 echo "$as_me:5156: result: $BUILD_CPPFLAGS" >&5 5157echo "${ECHO_T}$BUILD_CPPFLAGS" >&6 5158 5159 echo "$as_me:5159: checking for native build linker-flags" >&5 5160echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6 5161 5162# Check whether --with-build-ldflags or --without-build-ldflags was given. 5163if test "${with_build_ldflags+set}" = set; then 5164 withval="$with_build_ldflags" 5165 BUILD_LDFLAGS="$withval" 5166fi; 5167 echo "$as_me:5167: result: $BUILD_LDFLAGS" >&5 5168echo "${ECHO_T}$BUILD_LDFLAGS" >&6 5169 5170 echo "$as_me:5170: checking for native build linker-libraries" >&5 5171echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6 5172 5173# Check whether --with-build-libs or --without-build-libs was given. 5174if test "${with_build_libs+set}" = set; then 5175 withval="$with_build_libs" 5176 BUILD_LIBS="$withval" 5177fi; 5178 echo "$as_me:5178: result: $BUILD_LIBS" >&5 5179echo "${ECHO_T}$BUILD_LIBS" >&6 5180 5181 # this assumes we're on Unix. 5182 BUILD_EXEEXT= 5183 BUILD_OBJEXT=o 5184 5185 : ${BUILD_CC:='${CC}'} 5186 5187 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then 5188 { { echo "$as_me:5188: error: Cross-build requires two compilers. 5189Use --with-build-cc to specify the native compiler." >&5 5190echo "$as_me: error: Cross-build requires two compilers. 5191Use --with-build-cc to specify the native compiler." >&2;} 5192 { (exit 1); exit 1; }; } 5193 fi 5194 5195else 5196 : ${BUILD_CC:='${CC}'} 5197 : ${BUILD_CPP:='${CPP}'} 5198 : ${BUILD_CFLAGS:='${CFLAGS}'} 5199 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'} 5200 : ${BUILD_LDFLAGS:='${LDFLAGS}'} 5201 : ${BUILD_LIBS:='${LIBS}'} 5202 : ${BUILD_EXEEXT:='$x'} 5203 : ${BUILD_OBJEXT:='o'} 5204fi 5205 5206############################################################################### 5207 5208### Options to allow the user to specify the set of libraries which are used. 5209### Use "--without-normal --with-shared" to allow the default model to be 5210### shared, for example. 5211cf_list_models="" 5212 5213echo "$as_me:5213: checking if libtool -version-number should be used" >&5 5214echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6 5215 5216# Check whether --enable-libtool-version or --disable-libtool-version was given. 5217if test "${enable_libtool_version+set}" = set; then 5218 enableval="$enable_libtool_version" 5219 test "$enableval" != no && enableval=yes 5220 if test "$enableval" != "yes" ; then 5221 cf_libtool_version=no 5222 else 5223 cf_libtool_version=yes 5224 fi 5225else 5226 enableval=yes 5227 cf_libtool_version=yes 5228 5229fi; 5230echo "$as_me:5230: result: $cf_libtool_version" >&5 5231echo "${ECHO_T}$cf_libtool_version" >&6 5232 5233if test "$cf_libtool_version" = yes ; then 5234 LIBTOOL_VERSION="-version-number" 5235else 5236 LIBTOOL_VERSION="-version-info" 5237 case "x$VERSION" in 5238 (x) 5239 { echo "$as_me:5239: WARNING: VERSION was not set" >&5 5240echo "$as_me: WARNING: VERSION was not set" >&2;} 5241 ;; 5242 (x*.*.*) 5243 ABI_VERSION="$VERSION" 5244 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6 5245 5246echo "${as_me:-configure}:5246: testing ABI_VERSION: $ABI_VERSION ..." 1>&5 5247 5248 ;; 5249 (x*:*:*) 5250 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'` 5251 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6 5252 5253echo "${as_me:-configure}:5253: testing ABI_VERSION: $ABI_VERSION ..." 1>&5 5254 5255 ;; 5256 (*) 5257 { echo "$as_me:5257: WARNING: unexpected VERSION value: $VERSION" >&5 5258echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;} 5259 ;; 5260 esac 5261fi 5262 5263LIBTOOL= 5264 5265# common library maintenance symbols that are convenient for libtool scripts: 5266LIB_CREATE='${AR} -cr' 5267LIB_OBJECT='${OBJECTS}' 5268LIB_SUFFIX=.a 5269LIB_PREP="$RANLIB" 5270 5271# symbols used to prop libtool up to enable it to determine what it should be 5272# doing: 5273LIB_CLEAN= 5274LIB_COMPILE= 5275LIB_LINK='${CC}' 5276LIB_INSTALL= 5277LIB_UNINSTALL= 5278 5279echo "$as_me:5279: checking if you want to build libraries with libtool" >&5 5280echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 5281 5282# Check whether --with-libtool or --without-libtool was given. 5283if test "${with_libtool+set}" = set; then 5284 withval="$with_libtool" 5285 with_libtool=$withval 5286else 5287 with_libtool=no 5288fi; 5289echo "$as_me:5289: result: $with_libtool" >&5 5290echo "${ECHO_T}$with_libtool" >&6 5291if test "$with_libtool" != "no"; then 5292 5293 if test "$with_libtool" != "yes" ; then 5294 5295if test "x$prefix" != xNONE; then 5296 cf_path_syntax="$prefix" 5297else 5298 cf_path_syntax="$ac_default_prefix" 5299fi 5300 5301case ".$with_libtool" in 5302(.\$\(*\)*|.\'*\'*) 5303 ;; 5304(..|./*|.\\*) 5305 ;; 5306(.[a-zA-Z]:[\\/]*) # OS/2 EMX 5307 ;; 5308(.\$\{*prefix\}*|.\$\{*dir\}*) 5309 eval with_libtool="$with_libtool" 5310 case ".$with_libtool" in 5311 (.NONE/*) 5312 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%` 5313 ;; 5314 esac 5315 ;; 5316(.no|.NONE/*) 5317 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%` 5318 ;; 5319(*) 5320 { { echo "$as_me:5320: error: expected a pathname, not \"$with_libtool\"" >&5 5321echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 5322 { (exit 1); exit 1; }; } 5323 ;; 5324esac 5325 5326 LIBTOOL=$with_libtool 5327 else 5328 if test -n "$ac_tool_prefix"; then 5329 for ac_prog in libtool glibtool 5330 do 5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5332set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5333echo "$as_me:5333: checking for $ac_word" >&5 5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5335if test "${ac_cv_prog_LIBTOOL+set}" = set; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337else 5338 if test -n "$LIBTOOL"; then 5339 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test. 5340else 5341 ac_save_IFS=$IFS; IFS=$ac_path_separator 5342ac_dummy="$PATH" 5343for ac_dir in $ac_dummy; do 5344 IFS=$ac_save_IFS 5345 test -z "$ac_dir" && ac_dir=. 5346 $as_executable_p "$ac_dir/$ac_word" || continue 5347ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog" 5348echo "$as_me:5348: found $ac_dir/$ac_word" >&5 5349break 5350done 5351 5352fi 5353fi 5354LIBTOOL=$ac_cv_prog_LIBTOOL 5355if test -n "$LIBTOOL"; then 5356 echo "$as_me:5356: result: $LIBTOOL" >&5 5357echo "${ECHO_T}$LIBTOOL" >&6 5358else 5359 echo "$as_me:5359: result: no" >&5 5360echo "${ECHO_T}no" >&6 5361fi 5362 5363 test -n "$LIBTOOL" && break 5364 done 5365fi 5366if test -z "$LIBTOOL"; then 5367 ac_ct_LIBTOOL=$LIBTOOL 5368 for ac_prog in libtool glibtool 5369do 5370 # Extract the first word of "$ac_prog", so it can be a program name with args. 5371set dummy $ac_prog; ac_word=$2 5372echo "$as_me:5372: checking for $ac_word" >&5 5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5374if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then 5375 echo $ECHO_N "(cached) $ECHO_C" >&6 5376else 5377 if test -n "$ac_ct_LIBTOOL"; then 5378 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test. 5379else 5380 ac_save_IFS=$IFS; IFS=$ac_path_separator 5381ac_dummy="$PATH" 5382for ac_dir in $ac_dummy; do 5383 IFS=$ac_save_IFS 5384 test -z "$ac_dir" && ac_dir=. 5385 $as_executable_p "$ac_dir/$ac_word" || continue 5386ac_cv_prog_ac_ct_LIBTOOL="$ac_prog" 5387echo "$as_me:5387: found $ac_dir/$ac_word" >&5 5388break 5389done 5390 5391fi 5392fi 5393ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL 5394if test -n "$ac_ct_LIBTOOL"; then 5395 echo "$as_me:5395: result: $ac_ct_LIBTOOL" >&5 5396echo "${ECHO_T}$ac_ct_LIBTOOL" >&6 5397else 5398 echo "$as_me:5398: result: no" >&5 5399echo "${ECHO_T}no" >&6 5400fi 5401 5402 test -n "$ac_ct_LIBTOOL" && break 5403done 5404test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none" 5405 5406 LIBTOOL=$ac_ct_LIBTOOL 5407fi 5408 5409if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5410then 5411 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 5412else 5413 cf_cv_libtool_version= 5414fi 5415test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5416 5417 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool 5418 then 5419 5420unset ac_cv_prog_ac_ct_LIBTOOL 5421unset ac_ct_LIBTOOL 5422unset LIBTOOL 5423 5424 if test -n "$ac_tool_prefix"; then 5425 for ac_prog in glibtool 5426 do 5427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5429echo "$as_me:5429: checking for $ac_word" >&5 5430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5431if test "${ac_cv_prog_LIBTOOL+set}" = set; then 5432 echo $ECHO_N "(cached) $ECHO_C" >&6 5433else 5434 if test -n "$LIBTOOL"; then 5435 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test. 5436else 5437 ac_save_IFS=$IFS; IFS=$ac_path_separator 5438ac_dummy="$PATH" 5439for ac_dir in $ac_dummy; do 5440 IFS=$ac_save_IFS 5441 test -z "$ac_dir" && ac_dir=. 5442 $as_executable_p "$ac_dir/$ac_word" || continue 5443ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog" 5444echo "$as_me:5444: found $ac_dir/$ac_word" >&5 5445break 5446done 5447 5448fi 5449fi 5450LIBTOOL=$ac_cv_prog_LIBTOOL 5451if test -n "$LIBTOOL"; then 5452 echo "$as_me:5452: result: $LIBTOOL" >&5 5453echo "${ECHO_T}$LIBTOOL" >&6 5454else 5455 echo "$as_me:5455: result: no" >&5 5456echo "${ECHO_T}no" >&6 5457fi 5458 5459 test -n "$LIBTOOL" && break 5460 done 5461fi 5462if test -z "$LIBTOOL"; then 5463 ac_ct_LIBTOOL=$LIBTOOL 5464 for ac_prog in glibtool 5465do 5466 # Extract the first word of "$ac_prog", so it can be a program name with args. 5467set dummy $ac_prog; ac_word=$2 5468echo "$as_me:5468: checking for $ac_word" >&5 5469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5470if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then 5471 echo $ECHO_N "(cached) $ECHO_C" >&6 5472else 5473 if test -n "$ac_ct_LIBTOOL"; then 5474 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test. 5475else 5476 ac_save_IFS=$IFS; IFS=$ac_path_separator 5477ac_dummy="$PATH" 5478for ac_dir in $ac_dummy; do 5479 IFS=$ac_save_IFS 5480 test -z "$ac_dir" && ac_dir=. 5481 $as_executable_p "$ac_dir/$ac_word" || continue 5482ac_cv_prog_ac_ct_LIBTOOL="$ac_prog" 5483echo "$as_me:5483: found $ac_dir/$ac_word" >&5 5484break 5485done 5486 5487fi 5488fi 5489ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL 5490if test -n "$ac_ct_LIBTOOL"; then 5491 echo "$as_me:5491: result: $ac_ct_LIBTOOL" >&5 5492echo "${ECHO_T}$ac_ct_LIBTOOL" >&6 5493else 5494 echo "$as_me:5494: result: no" >&5 5495echo "${ECHO_T}no" >&6 5496fi 5497 5498 test -n "$ac_ct_LIBTOOL" && break 5499done 5500test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none" 5501 5502 LIBTOOL=$ac_ct_LIBTOOL 5503fi 5504 5505if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5506then 5507 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 5508else 5509 cf_cv_libtool_version= 5510fi 5511test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5512 5513 fi 5514 fi 5515 if test -z "$LIBTOOL" ; then 5516 { { echo "$as_me:5516: error: Cannot find libtool" >&5 5517echo "$as_me: error: Cannot find libtool" >&2;} 5518 { (exit 1); exit 1; }; } 5519 fi 5520 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o' 5521 LIB_OBJECT='${OBJECTS:.o=.lo}' 5522 LIB_SUFFIX=.la 5523 LIB_CLEAN='${LIBTOOL} --mode=clean' 5524 LIB_COMPILE='${LIBTOOL} --mode=compile' 5525 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 5526 LIB_INSTALL='${LIBTOOL} --mode=install' 5527 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 5528 LIB_PREP=: 5529 5530if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5531then 5532 echo "$as_me:5532: checking version of $LIBTOOL" >&5 5533echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6 5534 5535if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5536then 5537 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'` 5538else 5539 cf_cv_libtool_version= 5540fi 5541test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5542 5543 echo "$as_me:5543: result: $cf_cv_libtool_version" >&5 5544echo "${ECHO_T}$cf_cv_libtool_version" >&6 5545 if test -z "$cf_cv_libtool_version" ; then 5546 { { echo "$as_me:5546: error: This is not GNU libtool" >&5 5547echo "$as_me: error: This is not GNU libtool" >&2;} 5548 { (exit 1); exit 1; }; } 5549 fi 5550else 5551 { { echo "$as_me:5551: error: GNU libtool has not been found" >&5 5552echo "$as_me: error: GNU libtool has not been found" >&2;} 5553 { (exit 1); exit 1; }; } 5554fi 5555 5556 # special hack to add -no-undefined (which libtool should do for itself) 5557 LT_UNDEF= 5558 case "$cf_cv_system_name" in 5559 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7]) 5560 LT_UNDEF=-no-undefined 5561 ;; 5562 esac 5563 5564 # special hack to add --tag option for C++ compiler 5565 case "$cf_cv_libtool_version" in 5566 (1.[5-9]*|[2-9].[0-9.a-z]*) 5567 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 5568 LIBTOOL="$LIBTOOL --tag=CC" 5569 ;; 5570 (*) 5571 LIBTOOL_CXX="$LIBTOOL" 5572 ;; 5573 esac 5574else 5575 LIBTOOL="" 5576 LIBTOOL_CXX="" 5577fi 5578 5579test -z "$LIBTOOL" && ECHO_LT= 5580 5581if test "$with_libtool" != "no" ; then 5582 5583cf_list_models="$cf_list_models libtool" 5584 5585else 5586 5587echo "$as_me:5587: checking if you want to build shared libraries" >&5 5588echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6 5589 5590# Check whether --with-shared or --without-shared was given. 5591if test "${with_shared+set}" = set; then 5592 withval="$with_shared" 5593 with_shared=$withval 5594else 5595 with_shared=no 5596fi; 5597echo "$as_me:5597: result: $with_shared" >&5 5598echo "${ECHO_T}$with_shared" >&6 5599test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared" 5600 5601echo "$as_me:5601: checking if you want to build static libraries" >&5 5602echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6 5603 5604# Check whether --with-normal or --without-normal was given. 5605if test "${with_normal+set}" = set; then 5606 withval="$with_normal" 5607 with_normal=$withval 5608else 5609 with_normal=yes 5610fi; 5611echo "$as_me:5611: result: $with_normal" >&5 5612echo "${ECHO_T}$with_normal" >&6 5613test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal" 5614 5615echo "$as_me:5615: checking if you want to build debug libraries" >&5 5616echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6 5617 5618# Check whether --with-debug or --without-debug was given. 5619if test "${with_debug+set}" = set; then 5620 withval="$with_debug" 5621 with_debug=$withval 5622else 5623 with_debug=yes 5624fi; 5625echo "$as_me:5625: result: $with_debug" >&5 5626echo "${ECHO_T}$with_debug" >&6 5627test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug" 5628 5629echo "$as_me:5629: checking if you want to build profiling libraries" >&5 5630echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6 5631 5632# Check whether --with-profile or --without-profile was given. 5633if test "${with_profile+set}" = set; then 5634 withval="$with_profile" 5635 with_profile=$withval 5636else 5637 with_profile=no 5638fi; 5639echo "$as_me:5639: result: $with_profile" >&5 5640echo "${ECHO_T}$with_profile" >&6 5641test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile" 5642 5643fi 5644 5645if test "X$cf_with_cxx_binding" != Xno; then 5646if test "x$with_shared" = "xyes"; then 5647echo "$as_me:5647: checking if you want to build C++ shared libraries" >&5 5648echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6 5649 5650# Check whether --with-cxx-shared or --without-cxx-shared was given. 5651if test "${with_cxx_shared+set}" = set; then 5652 withval="$with_cxx_shared" 5653 with_shared_cxx=$withval 5654else 5655 with_shared_cxx=no 5656fi; 5657echo "$as_me:5657: result: $with_shared_cxx" >&5 5658echo "${ECHO_T}$with_shared_cxx" >&6 5659fi 5660fi 5661 5662############################################################################### 5663 5664echo "$as_me:5664: checking for specified models" >&5 5665echo $ECHO_N "checking for specified models... $ECHO_C" >&6 5666test -z "$cf_list_models" && cf_list_models=normal 5667test "$with_libtool" != "no" && cf_list_models=libtool 5668echo "$as_me:5668: result: $cf_list_models" >&5 5669echo "${ECHO_T}$cf_list_models" >&6 5670 5671### Use the first model as the default, and save its suffix for use in building 5672### up test-applications. 5673echo "$as_me:5673: checking for default model" >&5 5674echo $ECHO_N "checking for default model... $ECHO_C" >&6 5675DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'` 5676echo "$as_me:5676: result: $DFT_LWR_MODEL" >&5 5677echo "${ECHO_T}$DFT_LWR_MODEL" >&6 5678 5679DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 5680 5681TICS_NAME=tic 5682 5683TINFO_NAME=tinfo 5684 5685LIB_NAME=ncurses 5686 5687LIB_DIR=../lib 5688LIB_2ND=../../lib 5689 5690echo "$as_me:5690: checking if you want to have a library-prefix" >&5 5691echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6 5692 5693# Check whether --with-lib-prefix or --without-lib-prefix was given. 5694if test "${with_lib_prefix+set}" = set; then 5695 withval="$with_lib_prefix" 5696 with_lib_prefix=$withval 5697else 5698 with_lib_prefix=auto 5699fi; 5700echo "$as_me:5700: result: $with_lib_prefix" >&5 5701echo "${ECHO_T}$with_lib_prefix" >&6 5702 5703if test "$with_lib_prefix" = auto 5704then 5705 5706 case "$cf_cv_system_name" in 5707 (OS/2*|os2*) 5708 if test "$DFT_LWR_MODEL" = libtool; then 5709 LIB_PREFIX='lib' 5710 else 5711 LIB_PREFIX='' 5712 fi 5713 ;; 5714 (*-msvc*) 5715 LIB_PREFIX='' 5716 ;; 5717 (*) LIB_PREFIX='lib' 5718 ;; 5719 esac 5720cf_prefix=$LIB_PREFIX 5721 5722elif test "$with_lib_prefix" = no 5723then 5724 LIB_PREFIX= 5725else 5726 LIB_PREFIX=$with_lib_prefix 5727fi 5728 5729LIB_SUFFIX= 5730 5731 echo "$as_me:5731: checking for PATH separator" >&5 5732echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 5733 case "$cf_cv_system_name" in 5734 (os2*) PATH_SEPARATOR=';' ;; 5735 (*) ${PATH_SEPARATOR:=':'} ;; 5736 esac 5737 5738 echo "$as_me:5738: result: $PATH_SEPARATOR" >&5 5739echo "${ECHO_T}$PATH_SEPARATOR" >&6 5740 5741############################################################################### 5742 5743echo "$as_me:5743: checking if you want to build a separate terminfo library" >&5 5744echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6 5745 5746# Check whether --with-termlib or --without-termlib was given. 5747if test "${with_termlib+set}" = set; then 5748 withval="$with_termlib" 5749 with_termlib=$withval 5750else 5751 with_termlib=no 5752fi; 5753echo "$as_me:5753: result: $with_termlib" >&5 5754echo "${ECHO_T}$with_termlib" >&6 5755 5756echo "$as_me:5756: checking if you want to build a separate tic library" >&5 5757echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6 5758 5759# Check whether --with-ticlib or --without-ticlib was given. 5760if test "${with_ticlib+set}" = set; then 5761 withval="$with_ticlib" 5762 with_ticlib=$withval 5763else 5764 with_ticlib=no 5765fi; 5766echo "$as_me:5766: result: $with_ticlib" >&5 5767echo "${ECHO_T}$with_ticlib" >&6 5768 5769if test X"$CC_G_OPT" = X"" ; then 5770 CC_G_OPT='-g' 5771 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT='' 5772fi 5773 5774if test X"$CXX_G_OPT" = X"" ; then 5775 CXX_G_OPT='-g' 5776 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT='' 5777fi 5778 5779echo "$as_me:5779: checking for default loader flags" >&5 5780echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6 5781case "$DFT_LWR_MODEL" in 5782(libtool) LD_MODEL='' ;; 5783(normal) LD_MODEL='' ;; 5784(debug) LD_MODEL=$CC_G_OPT ;; 5785(profile) LD_MODEL='-pg';; 5786(shared) LD_MODEL='' ;; 5787esac 5788echo "$as_me:5788: result: $LD_MODEL" >&5 5789echo "${ECHO_T}$LD_MODEL" >&6 5790 5791case "$DFT_LWR_MODEL" in 5792(shared) 5793 5794echo "$as_me:5794: checking if rpath option should be used" >&5 5795echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6 5796 5797# Check whether --enable-rpath or --disable-rpath was given. 5798if test "${enable_rpath+set}" = set; then 5799 enableval="$enable_rpath" 5800 cf_cv_enable_rpath=$enableval 5801else 5802 cf_cv_enable_rpath=no 5803fi; 5804echo "$as_me:5804: result: $cf_cv_enable_rpath" >&5 5805echo "${ECHO_T}$cf_cv_enable_rpath" >&6 5806 5807echo "$as_me:5807: checking if shared libraries should be relinked during install" >&5 5808echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6 5809 5810# Check whether --enable-relink or --disable-relink was given. 5811if test "${enable_relink+set}" = set; then 5812 enableval="$enable_relink" 5813 cf_cv_do_relink=$enableval 5814else 5815 cf_cv_do_relink=yes 5816fi; 5817echo "$as_me:5817: result: $cf_cv_do_relink" >&5 5818echo "${ECHO_T}$cf_cv_do_relink" >&6 5819 ;; 5820esac 5821 5822# we will build libraries one-level down. 5823rel_builddir=.. 5824 5825LD_RPATH_OPT= 5826if test "x$cf_cv_enable_rpath" != xno 5827then 5828 echo "$as_me:5828: checking for an rpath option" >&5 5829echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 5830 case "$cf_cv_system_name" in 5831 (irix*) 5832 if test "$GCC" = yes; then 5833 LD_RPATH_OPT="-Wl,-rpath," 5834 else 5835 LD_RPATH_OPT="-rpath " 5836 fi 5837 ;; 5838 (linux*|gnu*|k*bsd*-gnu|freebsd*) 5839 LD_RPATH_OPT="-Wl,-rpath," 5840 ;; 5841 (openbsd[2-9].*|mirbsd*) 5842 LD_RPATH_OPT="-Wl,-rpath," 5843 ;; 5844 (dragonfly*) 5845 LD_RPATH_OPT="-rpath " 5846 ;; 5847 (netbsd*) 5848 LD_RPATH_OPT="-Wl,-rpath," 5849 ;; 5850 (osf*|mls+*) 5851 LD_RPATH_OPT="-rpath " 5852 ;; 5853 (solaris2*) 5854 LD_RPATH_OPT="-R" 5855 ;; 5856 (*) 5857 ;; 5858 esac 5859 echo "$as_me:5859: result: $LD_RPATH_OPT" >&5 5860echo "${ECHO_T}$LD_RPATH_OPT" >&6 5861 5862 case "x$LD_RPATH_OPT" in 5863 (x-R*) 5864 echo "$as_me:5864: checking if we need a space after rpath option" >&5 5865echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 5866 cf_save_LIBS="$LIBS" 5867 5868cf_add_libs="$LIBS" 5869# reverse order 5870cf_add_0lib= 5871for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 5872# filter duplicates 5873for cf_add_1lib in $cf_add_0lib; do 5874 for cf_add_2lib in $cf_add_libs; do 5875 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 5876 cf_add_1lib= 5877 break 5878 fi 5879 done 5880 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 5881done 5882LIBS="$cf_add_libs" 5883 5884 cat >"conftest.$ac_ext" <<_ACEOF 5885#line 5885 "configure" 5886#include "confdefs.h" 5887 5888int 5889main (void) 5890{ 5891 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896rm -f "conftest.$ac_objext" "conftest$ac_exeext" 5897if { (eval echo "$as_me:5897: \"$ac_link\"") >&5 5898 (eval $ac_link) 2>&5 5899 ac_status=$? 5900 echo "$as_me:5900: \$? = $ac_status" >&5 5901 (exit "$ac_status"); } && 5902 { ac_try='test -s "conftest$ac_exeext"' 5903 { (eval echo "$as_me:5903: \"$ac_try\"") >&5 5904 (eval $ac_try) 2>&5 5905 ac_status=$? 5906 echo "$as_me:5906: \$? = $ac_status" >&5 5907 (exit "$ac_status"); }; }; then 5908 cf_rpath_space=no 5909else 5910 echo "$as_me: failed program was:" >&5 5911cat "conftest.$ac_ext" >&5 5912cf_rpath_space=yes 5913fi 5914rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 5915 LIBS="$cf_save_LIBS" 5916 echo "$as_me:5916: result: $cf_rpath_space" >&5 5917echo "${ECHO_T}$cf_rpath_space" >&6 5918 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 5919 ;; 5920 esac 5921fi 5922 5923 RM_SHARED_OPTS= 5924 LOCAL_LDFLAGS= 5925 LOCAL_LDFLAGS2= 5926 LD_SHARED_OPTS= 5927 INSTALL_LIB="-m 644" 5928 : ${rel_builddir:=.} 5929 5930 shlibdir=$libdir 5931 5932 MAKE_DLLS="#" 5933 5934 cf_cv_do_symlinks=no 5935 cf_ld_rpath_opt= 5936 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT" 5937 5938 echo "$as_me:5938: checking if release/abi version should be used for shared libs" >&5 5939echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6 5940 5941# Check whether --with-shlib-version or --without-shlib-version was given. 5942if test "${with_shlib_version+set}" = set; then 5943 withval="$with_shlib_version" 5944 test -z "$withval" && withval=auto 5945 case "$withval" in 5946 (yes) 5947 cf_cv_shlib_version=auto 5948 ;; 5949 (rel|abi|auto) 5950 cf_cv_shlib_version=$withval 5951 ;; 5952 (*) 5953 echo "$as_me:5953: result: $withval" >&5 5954echo "${ECHO_T}$withval" >&6 5955 { { echo "$as_me:5955: error: option value must be one of: rel, abi, or auto" >&5 5956echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;} 5957 { (exit 1); exit 1; }; } 5958 ;; 5959 esac 5960 5961else 5962 cf_cv_shlib_version=auto 5963fi; 5964 echo "$as_me:5964: result: $cf_cv_shlib_version" >&5 5965echo "${ECHO_T}$cf_cv_shlib_version" >&6 5966 5967 cf_cv_rm_so_locs=no 5968 cf_try_cflags= 5969 5970 # Some less-capable ports of gcc support only -fpic 5971 CC_SHARED_OPTS= 5972 5973 cf_try_fPIC=no 5974 if test "$GCC" = yes 5975 then 5976 cf_try_fPIC=yes 5977 else 5978 case "$cf_cv_system_name" in 5979 (*linux*) # e.g., PGI compiler 5980 cf_try_fPIC=yes 5981 ;; 5982 esac 5983 fi 5984 5985 if test "$cf_try_fPIC" = yes 5986 then 5987 echo "$as_me:5987: checking which $CC option to use" >&5 5988echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6 5989 cf_save_CFLAGS="$CFLAGS" 5990 for CC_SHARED_OPTS in -fPIC -fpic '' 5991 do 5992 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS" 5993 cat >"conftest.$ac_ext" <<_ACEOF 5994#line 5994 "configure" 5995#include "confdefs.h" 5996#include <stdio.h> 5997int 5998main (void) 5999{ 6000int x = 1 6001 ; 6002 return 0; 6003} 6004_ACEOF 6005rm -f "conftest.$ac_objext" 6006if { (eval echo "$as_me:6006: \"$ac_compile\"") >&5 6007 (eval $ac_compile) 2>&5 6008 ac_status=$? 6009 echo "$as_me:6009: \$? = $ac_status" >&5 6010 (exit "$ac_status"); } && 6011 { ac_try='test -s "conftest.$ac_objext"' 6012 { (eval echo "$as_me:6012: \"$ac_try\"") >&5 6013 (eval $ac_try) 2>&5 6014 ac_status=$? 6015 echo "$as_me:6015: \$? = $ac_status" >&5 6016 (exit "$ac_status"); }; }; then 6017 break 6018else 6019 echo "$as_me: failed program was:" >&5 6020cat "conftest.$ac_ext" >&5 6021fi 6022rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6023 done 6024 echo "$as_me:6024: result: $CC_SHARED_OPTS" >&5 6025echo "${ECHO_T}$CC_SHARED_OPTS" >&6 6026 CFLAGS="$cf_save_CFLAGS" 6027 fi 6028 6029 cf_cv_shlib_version_infix=no 6030 6031 case "$cf_cv_system_name" in 6032 (aix4.3-9*|aix[5-7]*) 6033 if test "$GCC" = yes; then 6034 CC_SHARED_OPTS='-Wl,-brtl' 6035 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@' 6036 else 6037 CC_SHARED_OPTS='-brtl' 6038 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall" 6039 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@' 6040 fi 6041 ;; 6042 (beos*) 6043 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0' 6044 ;; 6045 (cygwin*) 6046 CC_SHARED_OPTS= 6047 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6048 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6049 cf_cv_shlib_version=cygdll 6050 cf_cv_shlib_version_infix=cygdll 6051 shlibdir=$bindir 6052 MAKE_DLLS= 6053 cat >mk_shared_lib.sh <<-CF_EOF 6054 #!$SHELL 6055 SHARED_LIB=\$1 6056 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\` 6057 shift 6058 cat <<-EOF 6059 Linking shared library 6060 ** SHARED_LIB \$SHARED_LIB 6061 ** IMPORT_LIB \$IMPORT_LIB 6062EOF 6063 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6064CF_EOF 6065 chmod +x mk_shared_lib.sh 6066 ;; 6067 (msys*) 6068 CC_SHARED_OPTS= 6069 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6070 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6071 cf_cv_shlib_version=msysdll 6072 cf_cv_shlib_version_infix=msysdll 6073 shlibdir=$bindir 6074 MAKE_DLLS= 6075 cat >mk_shared_lib.sh <<-CF_EOF 6076 #!$SHELL 6077 SHARED_LIB=\$1 6078 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\` 6079 shift 6080 cat <<-EOF 6081 Linking shared library 6082 ** SHARED_LIB \$SHARED_LIB 6083 ** IMPORT_LIB \$IMPORT_LIB 6084EOF 6085 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6086CF_EOF 6087 chmod +x mk_shared_lib.sh 6088 ;; 6089 (darwin*) 6090 cf_try_cflags="no-cpp-precomp" 6091 CC_SHARED_OPTS="-dynamic" 6092 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@' 6093 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi 6094 cf_cv_shlib_version_infix=yes 6095 echo "$as_me:6095: checking if ld -search_paths_first works" >&5 6096echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6 6097if test "${cf_cv_ldflags_search_paths_first+set}" = set; then 6098 echo $ECHO_N "(cached) $ECHO_C" >&6 6099else 6100 6101 cf_save_LDFLAGS=$LDFLAGS 6102 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6103 cat >"conftest.$ac_ext" <<_ACEOF 6104#line 6104 "configure" 6105#include "confdefs.h" 6106 6107int 6108main (void) 6109{ 6110int i; 6111 ; 6112 return 0; 6113} 6114_ACEOF 6115rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6116if { (eval echo "$as_me:6116: \"$ac_link\"") >&5 6117 (eval $ac_link) 2>&5 6118 ac_status=$? 6119 echo "$as_me:6119: \$? = $ac_status" >&5 6120 (exit "$ac_status"); } && 6121 { ac_try='test -s "conftest$ac_exeext"' 6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5 6123 (eval $ac_try) 2>&5 6124 ac_status=$? 6125 echo "$as_me:6125: \$? = $ac_status" >&5 6126 (exit "$ac_status"); }; }; then 6127 cf_cv_ldflags_search_paths_first=yes 6128else 6129 echo "$as_me: failed program was:" >&5 6130cat "conftest.$ac_ext" >&5 6131cf_cv_ldflags_search_paths_first=no 6132fi 6133rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6134 LDFLAGS=$cf_save_LDFLAGS 6135fi 6136echo "$as_me:6136: result: $cf_cv_ldflags_search_paths_first" >&5 6137echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6 6138 if test "$cf_cv_ldflags_search_paths_first" = yes; then 6139 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6140 fi 6141 ;; 6142 (hpux[7-8]*) 6143 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list 6144 if test "$GCC" != yes; then 6145 CC_SHARED_OPTS='+Z' 6146 fi 6147 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@' 6148 INSTALL_LIB="-m 555" 6149 ;; 6150 (hpux*) 6151 # (tested with gcc 2.7.2 -- I don't have c89) 6152 if test "$GCC" = yes; then 6153 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}' 6154 else 6155 CC_SHARED_OPTS='+Z' 6156 LD_SHARED_OPTS='-Wl,+b,${libdir}' 6157 fi 6158 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@' 6159 # HP-UX shared libraries must be executable, and should be 6160 # readonly to exploit a quirk in the memory manager. 6161 INSTALL_LIB="-m 555" 6162 ;; 6163 (interix*) 6164 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6165 if test "$cf_cv_shlib_version" = rel; then 6166 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6167 else 6168 cf_shared_soname='`basename $@`' 6169 fi 6170 CC_SHARED_OPTS= 6171 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@' 6172 ;; 6173 (irix*) 6174 if test "$cf_cv_enable_rpath" = yes ; then 6175 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6176 fi 6177 # tested with IRIX 5.2 and 'cc'. 6178 if test "$GCC" != yes; then 6179 CC_SHARED_OPTS='-KPIC' 6180 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@' 6181 else 6182 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@' 6183 fi 6184 cf_cv_rm_so_locs=yes 6185 ;; 6186 (linux*|gnu*|k*bsd*-gnu) 6187 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6188 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6189 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6190 fi 6191 if test "$cf_cv_enable_rpath" = yes ; then 6192 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6193 fi 6194 6195 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6196 if test "$cf_cv_shlib_version" = rel; then 6197 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6198 else 6199 cf_cv_shared_soname='`basename $@`' 6200 fi 6201 6202 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6203 ;; 6204 (mingw*msvc*) 6205 cf_cv_shlib_version=msvcdll 6206 cf_cv_shlib_version_infix=msvcdll 6207 shlibdir=$bindir 6208 MAKE_DLLS= 6209 if test "$DFT_LWR_MODEL" = "shared" ; then 6210 LOCAL_LDFLAGS="-link -dll" 6211 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6212 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS" 6213 fi 6214 CC_SHARED_OPTS= 6215 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}' 6216 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib" 6217 cat >mk_shared_lib.sh <<-CF_EOF 6218 #!$SHELL 6219 SHARED_LIB=\$1 6220 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\` 6221 shift 6222 my_ld=\$1 6223 shift 6224 cat <<-EOF 6225 Linking shared library 6226 ** SHARED LIB \$SHARED_LIB 6227 ** IMPORT_LIB \$IMPORT_LIB 6228EOF 6229 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g") 6230 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args 6231 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}" 6232CF_EOF 6233 chmod +x mk_shared_lib.sh 6234 cat >mk_prog.sh <<-CF_EOF 6235 #!$SHELL 6236 shift 6237 # Ignore first argument (compiler) and use LD (link.exe) unconditionally 6238 LD="$LD" 6239 clopts=() 6240 ldopts=("/subsystem:console") 6241 libs=() 6242 isdll=0 6243 while test \$# -gt 0; do 6244 case "\$1" in 6245 -link) 6246 # ignore -link argument 6247 ;; 6248 -M[TD] | -M[TD]d) 6249 # ignore runtime-library option 6250 ;; 6251 -dll) 6252 isdll=1 6253 ;; 6254 -W* | -w*) 6255 # ignore warnings 6256 ;; 6257 -D*) 6258 clopts+=("\$1") 6259 ;; 6260 -I*) 6261 clopts+=("\$1") 6262 ;; 6263 -l*) 6264 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`") 6265 ;; 6266 -L*) 6267 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`") 6268 ;; 6269 *.obj | *.o) 6270 ldopts+=("\$1") 6271 ;; 6272 -Wl,*) 6273 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do 6274 ldopts+=("\${linkarg}") 6275 done 6276 ;; 6277 *.lib) 6278 ldopts+=("\$1") 6279 ;; 6280 -o) 6281 shift 6282 ldopts+=("-out:\$1") 6283 ;; 6284 *) 6285 clopts+=("\$1") 6286 ldopts+=("\$1") 6287 ;; 6288 esac 6289 shift 6290 done 6291 if [ "\$isdll" -ne 0 ]; then 6292 for lib in \${libs[*]}; do 6293 ldopts+=("\$lib.dll.lib") 6294 done 6295 else 6296 for lib in \${libs[*]}; do 6297 ldopts+=("\$lib.lib") 6298 done 6299 fi 6300 cat <<-EOF 6301 Creating program 6302 ** ld options: "\${ldopts[@]}" 6303EOF 6304 exec \$LD \${ldopts[@]} 6305CF_EOF 6306 chmod +x mk_prog.sh 6307 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh" 6308 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh" 6309 ;; 6310 (mingw*) 6311 cf_cv_shlib_version=mingw 6312 cf_cv_shlib_version_infix=mingw 6313 shlibdir=$bindir 6314 MAKE_DLLS= 6315 if test "$DFT_LWR_MODEL" = "shared" ; then 6316 LOCAL_LDFLAGS="-Wl,--enable-auto-import" 6317 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6318 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS" 6319 fi 6320 CC_SHARED_OPTS= 6321 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6322 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6323 cat >mk_shared_lib.sh <<-CF_EOF 6324 #!$SHELL 6325 SHARED_LIB=\$1 6326 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\` 6327 shift 6328 cat <<-EOF 6329 Linking shared library 6330 ** SHARED_LIB \$SHARED_LIB 6331 ** IMPORT_LIB \$IMPORT_LIB 6332EOF 6333 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6334CF_EOF 6335 chmod +x mk_shared_lib.sh 6336 ;; 6337 (openbsd[2-9].*|mirbsd*) 6338 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6339 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6340 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6341 fi 6342 if test "$cf_cv_enable_rpath" = yes ; then 6343 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6344 fi 6345 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6346 6347 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6348 if test "$cf_cv_shlib_version" = rel; then 6349 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6350 else 6351 cf_cv_shared_soname='`basename $@`' 6352 fi 6353 6354 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6355 ;; 6356 (nskJ*) 6357 CC_SHARED_OPTS= 6358 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@' 6359 ;; 6360 (nskL*) 6361 CC_SHARED_OPTS= 6362 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@' 6363 ;; 6364 (nto-qnx*|openbsd*|freebsd[12].*) 6365 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6366 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@' 6367 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6368 ;; 6369 (dragonfly*|freebsd*) 6370 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6371 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 6372 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 6373 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS" 6374 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6375 fi 6376 6377 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6378 if test "$cf_cv_shlib_version" = rel; then 6379 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6380 else 6381 cf_cv_shared_soname='`basename $@`' 6382 fi 6383 6384 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6385 ;; 6386 (netbsd*) 6387 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6388 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 6389 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 6390 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6391 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6392 if test "$cf_cv_shlib_version" = auto; then 6393 if test -f /usr/libexec/ld.elf_so; then 6394 cf_cv_shlib_version=abi 6395 else 6396 cf_cv_shlib_version=rel 6397 fi 6398 fi 6399 6400 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6401 if test "$cf_cv_shlib_version" = rel; then 6402 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6403 else 6404 cf_cv_shared_soname='`basename $@`' 6405 fi 6406 6407 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@' 6408 else 6409 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@' 6410 fi 6411 ;; 6412 (osf*|mls+*) 6413 # tested with OSF/1 V3.2 and 'cc' 6414 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't 6415 # link with shared libs). 6416 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`' 6417 case "$host_os" in 6418 (osf4*) 6419 MK_SHARED_LIB="${MK_SHARED_LIB} -msym" 6420 ;; 6421 esac 6422 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@' 6423 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6424 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6425 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6426 fi 6427 cf_cv_rm_so_locs=yes 6428 ;; 6429 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98 6430 # tested with osr5.0.5 6431 if test "$GCC" != yes; then 6432 CC_SHARED_OPTS='-belf -KPIC' 6433 fi 6434 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@' 6435 if test "$cf_cv_enable_rpath" = yes ; then 6436 # only way is to set LD_RUN_PATH but no switch for it 6437 RUN_PATH=$libdir 6438 fi 6439 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6440 LINK_PROGS='LD_RUN_PATH=${libdir}' 6441 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib' 6442 ;; 6443 (sunos4*) 6444 # tested with SunOS 4.1.1 and gcc 2.7.0 6445 if test "$GCC" != yes; then 6446 CC_SHARED_OPTS='-KPIC' 6447 fi 6448 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@' 6449 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6450 ;; 6451 (solaris2*) 6452 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2 6453 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3 6454 if test "$DFT_LWR_MODEL" = "shared" ; then 6455 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}" 6456 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6457 fi 6458 if test "$cf_cv_enable_rpath" = yes ; then 6459 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS" 6460 fi 6461 6462 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6463 if test "$cf_cv_shlib_version" = rel; then 6464 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6465 else 6466 cf_cv_shared_soname='`basename $@`' 6467 fi 6468 6469 if test "$GCC" != yes; then 6470 cf_save_CFLAGS="$CFLAGS" 6471 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O 6472 do 6473 CFLAGS="$cf_shared_opts $cf_save_CFLAGS" 6474 cat >"conftest.$ac_ext" <<_ACEOF 6475#line 6475 "configure" 6476#include "confdefs.h" 6477#include <stdio.h> 6478int 6479main (void) 6480{ 6481printf("Hello\\n"); 6482 ; 6483 return 0; 6484} 6485_ACEOF 6486rm -f "conftest.$ac_objext" 6487if { (eval echo "$as_me:6487: \"$ac_compile\"") >&5 6488 (eval $ac_compile) 2>&5 6489 ac_status=$? 6490 echo "$as_me:6490: \$? = $ac_status" >&5 6491 (exit "$ac_status"); } && 6492 { ac_try='test -s "conftest.$ac_objext"' 6493 { (eval echo "$as_me:6493: \"$ac_try\"") >&5 6494 (eval $ac_try) 2>&5 6495 ac_status=$? 6496 echo "$as_me:6496: \$? = $ac_status" >&5 6497 (exit "$ac_status"); }; }; then 6498 break 6499else 6500 echo "$as_me: failed program was:" >&5 6501cat "conftest.$ac_ext" >&5 6502fi 6503rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6504 done 6505 CFLAGS="$cf_save_CFLAGS" 6506 CC_SHARED_OPTS=$cf_shared_opts 6507 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@' 6508 else 6509 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@' 6510 fi 6511 ;; 6512 (sysv5uw7*|unix_sv*) 6513 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc) 6514 if test "$GCC" != yes; then 6515 CC_SHARED_OPTS='-KPIC' 6516 fi 6517 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@' 6518 ;; 6519 (*) 6520 CC_SHARED_OPTS='unknown' 6521 MK_SHARED_LIB='echo unknown' 6522 ;; 6523 esac 6524 6525 # This works if the last tokens in $MK_SHARED_LIB are the -o target. 6526 case "$cf_cv_shlib_version" in 6527 (rel|abi) 6528 case "$MK_SHARED_LIB" in 6529 (*'-o $@') 6530 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes 6531 ;; 6532 (*) 6533 { echo "$as_me:6533: WARNING: ignored --with-shlib-version" >&5 6534echo "$as_me: WARNING: ignored --with-shlib-version" >&2;} 6535 ;; 6536 esac 6537 ;; 6538 esac 6539 6540 if test -n "$cf_try_cflags" 6541 then 6542cat > conftest.$ac_ext <<EOF 6543#line 6543 "${as_me:-configure}" 6544#include <stdio.h> 6545int main(int argc, char *argv[]) 6546{ 6547 printf("hello\\n"); 6548 return (argv[argc-1] == 0) ; 6549} 6550EOF 6551 cf_save_CFLAGS="$CFLAGS" 6552 for cf_opt in $cf_try_cflags 6553 do 6554 CFLAGS="$cf_save_CFLAGS -$cf_opt" 6555 echo "$as_me:6555: checking if CFLAGS option -$cf_opt works" >&5 6556echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6 6557 if { (eval echo "$as_me:6557: \"$ac_compile\"") >&5 6558 (eval $ac_compile) 2>&5 6559 ac_status=$? 6560 echo "$as_me:6560: \$? = $ac_status" >&5 6561 (exit "$ac_status"); }; then 6562 echo "$as_me:6562: result: yes" >&5 6563echo "${ECHO_T}yes" >&6 6564 cf_save_CFLAGS="$CFLAGS" 6565 else 6566 echo "$as_me:6566: result: no" >&5 6567echo "${ECHO_T}no" >&6 6568 fi 6569 done 6570 CFLAGS="$cf_save_CFLAGS" 6571 fi 6572 6573 # RPATH_LIST is a colon-separated list of directories 6574 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}" 6575 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}" 6576 6577 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations" 6578 6579 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6 6580 6581echo "${as_me:-configure}:6581: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5 6582 6583 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6584 6585echo "${as_me:-configure}:6585: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6586 6587for model in $cf_list_models ; do 6588 case "$model" in 6589 (libtool) 6590 6591echo "$as_me:6591: checking for additional libtool options" >&5 6592echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6 6593 6594# Check whether --with-libtool-opts or --without-libtool-opts was given. 6595if test "${with_libtool_opts+set}" = set; then 6596 withval="$with_libtool_opts" 6597 with_libtool_opts=$withval 6598else 6599 with_libtool_opts=no 6600fi; 6601echo "$as_me:6601: result: $with_libtool_opts" >&5 6602echo "${ECHO_T}$with_libtool_opts" >&6 6603 6604case .$with_libtool_opts in 6605(.yes|.no|.) 6606 ;; 6607(*) 6608 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts" 6609 ;; 6610esac 6611 6612echo "$as_me:6612: checking if exported-symbols file should be used" >&5 6613echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6 6614 6615# Check whether --with-export-syms or --without-export-syms was given. 6616if test "${with_export_syms+set}" = set; then 6617 withval="$with_export_syms" 6618 with_export_syms=$withval 6619else 6620 with_export_syms=no 6621fi; 6622if test "x$with_export_syms" = xyes 6623then 6624 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym' 6625 6626fi 6627echo "$as_me:6627: result: $with_export_syms" >&5 6628echo "${ECHO_T}$with_export_syms" >&6 6629if test "x$with_export_syms" != xno 6630then 6631 EXPORT_SYMS="-export-symbols $with_export_syms" 6632 6633fi 6634 6635 ;; 6636 (shared) 6637 if test "$CC_SHARED_OPTS" = "unknown"; then 6638 { { echo "$as_me:6638: error: Shared libraries are not supported in this version" >&5 6639echo "$as_me: error: Shared libraries are not supported in this version" >&2;} 6640 { (exit 1); exit 1; }; } 6641 fi 6642 # workaround for inept transition to PIE vs PIC... 6643 echo "$as_me:6643: checking if current CFLAGS link properly" >&5 6644echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6 6645 cat >"conftest.$ac_ext" <<_ACEOF 6646#line 6646 "configure" 6647#include "confdefs.h" 6648#include <stdio.h> 6649int 6650main (void) 6651{ 6652printf("Hello work\\n"); 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6658if { (eval echo "$as_me:6658: \"$ac_link\"") >&5 6659 (eval $ac_link) 2>&5 6660 ac_status=$? 6661 echo "$as_me:6661: \$? = $ac_status" >&5 6662 (exit "$ac_status"); } && 6663 { ac_try='test -s "conftest$ac_exeext"' 6664 { (eval echo "$as_me:6664: \"$ac_try\"") >&5 6665 (eval $ac_try) 2>&5 6666 ac_status=$? 6667 echo "$as_me:6667: \$? = $ac_status" >&5 6668 (exit "$ac_status"); }; }; then 6669 cf_cflags_work=yes 6670else 6671 echo "$as_me: failed program was:" >&5 6672cat "conftest.$ac_ext" >&5 6673cf_cflags_work=no 6674fi 6675rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6676 echo "$as_me:6676: result: $cf_cflags_work" >&5 6677echo "${ECHO_T}$cf_cflags_work" >&6 6678 if test "$cf_cflags_work" = no 6679 then 6680 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6 6681 6682echo "${as_me:-configure}:6682: testing try to work around by appending shared-options ..." 1>&5 6683 6684 CFLAGS="$CFLAGS $CC_SHARED_OPTS" 6685 fi 6686 6687echo "$as_me:6687: checking if versioned-symbols file should be used" >&5 6688echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6 6689 6690# Check whether --with-versioned-syms or --without-versioned-syms was given. 6691if test "${with_versioned_syms+set}" = set; then 6692 withval="$with_versioned_syms" 6693 with_versioned_syms=$withval 6694else 6695 with_versioned_syms=no 6696fi; 6697case "x$with_versioned_syms" in 6698(xyes) 6699 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map' 6700 6701 ;; 6702(xno) 6703 ;; 6704(x/*) 6705 test -f "$with_versioned_syms" || { { echo "$as_me:6705: error: expected a filename: $with_versioned_syms" >&5 6706echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;} 6707 { (exit 1); exit 1; }; } 6708 ;; 6709(*) 6710 test -f "$with_versioned_syms" || { { echo "$as_me:6710: error: expected a filename: $with_versioned_syms" >&5 6711echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;} 6712 { (exit 1); exit 1; }; } 6713 with_versioned_syms=`pwd`/"$with_versioned_syms" 6714 ;; 6715esac 6716echo "$as_me:6716: result: $with_versioned_syms" >&5 6717echo "${ECHO_T}$with_versioned_syms" >&6 6718 6719RESULTING_SYMS= 6720VERSIONED_SYMS= 6721WILDCARD_SYMS= 6722 6723if test "x$with_versioned_syms" != xno 6724then 6725 RESULTING_SYMS=$with_versioned_syms 6726 case "x$MK_SHARED_LIB" in 6727 (*-Wl,*) 6728 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}" 6729 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"` 6730 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6731 6732echo "${as_me:-configure}:6732: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6733 6734 ;; 6735 (*-dy\ *) 6736 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}" 6737 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"` 6738 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6739 6740echo "${as_me:-configure}:6740: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6741 6742 ;; 6743 (*) 6744 { echo "$as_me:6744: WARNING: this system does not support versioned-symbols" >&5 6745echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;} 6746 ;; 6747 esac 6748 6749 # Linux ld can selectively override scope, e.g., of symbols beginning with 6750 # "_" by first declaring some as global, and then using a wildcard to 6751 # declare the others as local. Some other loaders cannot do this. Check 6752 # by constructing a (very) simple shared library and inspecting its 6753 # symbols. 6754 if test "x$VERSIONED_SYMS" != "x" 6755 then 6756 echo "$as_me:6756: checking if wildcards can be used to selectively omit symbols" >&5 6757echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6 6758 WILDCARD_SYMS=no 6759 6760 # make sources 6761 rm -f conftest.* 6762 6763 cat >conftest.ver <<EOF 6764module_1.0 { 6765global: 6766 globalf1; 6767local: 6768 localf1; 6769}; 6770module_2.0 { 6771global: 6772 globalf2; 6773local: 6774 localf2; 6775 _*; 6776} module_1.0; 6777submodule_1.0 { 6778global: 6779 subglobalf1; 6780 _ismissing; 6781local: 6782 sublocalf1; 6783}; 6784submodule_2.0 { 6785global: 6786 subglobalf2; 6787local: 6788 sublocalf2; 6789 _*; 6790} submodule_1.0; 6791EOF 6792 cat >conftest.$ac_ext <<EOF 6793#line 6793 "configure" 6794int _ismissing(void) { return 1; } 6795int _localf1(void) { return 1; } 6796int _localf2(void) { return 2; } 6797int globalf1(void) { return 1; } 6798int globalf2(void) { return 2; } 6799int _sublocalf1(void) { return 1; } 6800int _sublocalf2(void) { return 2; } 6801int subglobalf1(void) { return 1; } 6802int subglobalf2(void) { return 2; } 6803EOF 6804 cat >conftest.mk <<EOF 6805CC=${CC} 6806CFLAGS=${CFLAGS} 6807CPPFLAGS=${CPPFLAGS} 6808LDFLAGS=${LDFLAGS} 6809LIBS=${LIBS} 6810VERSIONED_SYMS=${VERSIONED_SYMS} 6811RESULTING_SYMS=conftest.ver 6812MK_SHARED_LIB=${MK_SHARED_LIB} 6813conftest.so: conftest.$ac_cv_objext 6814 \$(MK_SHARED_LIB) conftest.$ac_cv_objext 6815EOF 6816 6817 # compile source, make library 6818 if make -f conftest.mk 2>&5 >/dev/null 6819 then 6820 # test for missing symbol in either Data or Text section 6821 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`" 6822 test -n "$cf_missing" && WILDCARD_SYMS=yes 6823 fi 6824 echo "$as_me:6824: result: $WILDCARD_SYMS" >&5 6825echo "${ECHO_T}$WILDCARD_SYMS" >&6 6826 rm -f conftest.* 6827 fi 6828fi 6829 6830 ;; 6831 esac 6832done 6833 6834### Checks for special libraries, must be done up-front. 6835SHLIB_LIST="" 6836 6837echo "$as_me:6837: checking if you want to link with the GPM mouse library" >&5 6838echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6 6839 6840# Check whether --with-gpm or --without-gpm was given. 6841if test "${with_gpm+set}" = set; then 6842 withval="$with_gpm" 6843 with_gpm=$withval 6844else 6845 with_gpm=maybe 6846fi; 6847echo "$as_me:6847: result: $with_gpm" >&5 6848echo "${ECHO_T}$with_gpm" >&6 6849 6850if test "$with_gpm" != no ; then 6851 echo "$as_me:6851: checking for gpm.h" >&5 6852echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6 6853if test "${ac_cv_header_gpm_h+set}" = set; then 6854 echo $ECHO_N "(cached) $ECHO_C" >&6 6855else 6856 cat >"conftest.$ac_ext" <<_ACEOF 6857#line 6857 "configure" 6858#include "confdefs.h" 6859#include <gpm.h> 6860_ACEOF 6861if { (eval echo "$as_me:6861: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6862 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6863 ac_status=$? 6864 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6865 rm -f conftest.er1 6866 cat conftest.err >&5 6867 echo "$as_me:6867: \$? = $ac_status" >&5 6868 (exit "$ac_status"); } >/dev/null; then 6869 if test -s conftest.err; then 6870 ac_cpp_err=$ac_c_preproc_warn_flag 6871 else 6872 ac_cpp_err= 6873 fi 6874else 6875 ac_cpp_err=yes 6876fi 6877if test -z "$ac_cpp_err"; then 6878 ac_cv_header_gpm_h=yes 6879else 6880 echo "$as_me: failed program was:" >&5 6881 cat "conftest.$ac_ext" >&5 6882 ac_cv_header_gpm_h=no 6883fi 6884rm -f conftest.err "conftest.$ac_ext" 6885fi 6886echo "$as_me:6886: result: $ac_cv_header_gpm_h" >&5 6887echo "${ECHO_T}$ac_cv_header_gpm_h" >&6 6888if test "$ac_cv_header_gpm_h" = yes; then 6889 6890cat >>confdefs.h <<\EOF 6891#define HAVE_GPM_H 1 6892EOF 6893 6894 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then 6895 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6 6896 6897echo "${as_me:-configure}:6897: testing assuming we really have GPM library ..." 1>&5 6898 6899cat >>confdefs.h <<\EOF 6900#define HAVE_LIBGPM 1 6901EOF 6902 6903 with_gpm=yes 6904 else 6905 echo "$as_me:6905: checking for Gpm_Open in -lgpm" >&5 6906echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 6907if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 6908 echo $ECHO_N "(cached) $ECHO_C" >&6 6909else 6910 ac_check_lib_save_LIBS=$LIBS 6911LIBS="-lgpm $LIBS" 6912cat >"conftest.$ac_ext" <<_ACEOF 6913#line 6913 "configure" 6914#include "confdefs.h" 6915 6916/* Override any gcc2 internal prototype to avoid an error. */ 6917#ifdef __cplusplus 6918extern "C" 6919#endif 6920/* We use char because int might match the return type of a gcc2 6921 builtin and then its argument prototype would still apply. */ 6922char Gpm_Open (); 6923int 6924main (void) 6925{ 6926Gpm_Open (); 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6932if { (eval echo "$as_me:6932: \"$ac_link\"") >&5 6933 (eval $ac_link) 2>&5 6934 ac_status=$? 6935 echo "$as_me:6935: \$? = $ac_status" >&5 6936 (exit "$ac_status"); } && 6937 { ac_try='test -s "conftest$ac_exeext"' 6938 { (eval echo "$as_me:6938: \"$ac_try\"") >&5 6939 (eval $ac_try) 2>&5 6940 ac_status=$? 6941 echo "$as_me:6941: \$? = $ac_status" >&5 6942 (exit "$ac_status"); }; }; then 6943 ac_cv_lib_gpm_Gpm_Open=yes 6944else 6945 echo "$as_me: failed program was:" >&5 6946cat "conftest.$ac_ext" >&5 6947ac_cv_lib_gpm_Gpm_Open=no 6948fi 6949rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6950LIBS=$ac_check_lib_save_LIBS 6951fi 6952echo "$as_me:6952: result: $ac_cv_lib_gpm_Gpm_Open" >&5 6953echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 6954if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then 6955 with_gpm=yes 6956else 6957 6958 if test "$with_gpm" = maybe; then 6959 { echo "$as_me:6959: WARNING: Cannot link with GPM library" >&5 6960echo "$as_me: WARNING: Cannot link with GPM library" >&2;} 6961 with_gpm=no 6962 else 6963 { { echo "$as_me:6963: error: Cannot link with GPM library" >&5 6964echo "$as_me: error: Cannot link with GPM library" >&2;} 6965 { (exit 1); exit 1; }; } 6966 fi 6967 6968fi 6969 6970 fi 6971 6972else 6973 6974 test "$with_gpm" != maybe && { echo "$as_me:6974: WARNING: Cannot find GPM header" >&5 6975echo "$as_me: WARNING: Cannot find GPM header" >&2;} 6976 with_gpm=no 6977 6978fi 6979 6980fi 6981 6982if test "$with_gpm" != no ; then 6983 echo "$as_me:6983: checking if you want to load GPM dynamically" >&5 6984echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6 6985 6986# Check whether --with-dlsym or --without-dlsym was given. 6987if test "${with_dlsym+set}" = set; then 6988 withval="$with_dlsym" 6989 with_dlsym=$withval 6990else 6991 with_dlsym=yes 6992fi; 6993 echo "$as_me:6993: result: $with_dlsym" >&5 6994echo "${ECHO_T}$with_dlsym" >&6 6995 if test "x$with_dlsym" = xyes ; then 6996 6997cf_have_dlsym=no 6998echo "$as_me:6998: checking for dlsym" >&5 6999echo $ECHO_N "checking for dlsym... $ECHO_C" >&6 7000if test "${ac_cv_func_dlsym+set}" = set; then 7001 echo $ECHO_N "(cached) $ECHO_C" >&6 7002else 7003 cat >"conftest.$ac_ext" <<_ACEOF 7004#line 7004 "configure" 7005#include "confdefs.h" 7006#define dlsym autoconf_temporary 7007#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 7008#undef dlsym 7009 7010#ifdef __cplusplus 7011extern "C" 7012#endif 7013 7014/* We use char because int might match the return type of a gcc2 7015 builtin and then its argument prototype would still apply. */ 7016char dlsym (void); 7017 7018int 7019main (void) 7020{ 7021 7022/* The GNU C library defines stubs for functions which it implements 7023 to always fail with ENOSYS. Some functions are actually named 7024 something starting with __ and the normal name is an alias. */ 7025#if defined (__stub_dlsym) || defined (__stub___dlsym) 7026#error found stub for dlsym 7027#endif 7028 7029 return dlsym (); 7030 ; 7031 return 0; 7032} 7033_ACEOF 7034rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7035if { (eval echo "$as_me:7035: \"$ac_link\"") >&5 7036 (eval $ac_link) 2>&5 7037 ac_status=$? 7038 echo "$as_me:7038: \$? = $ac_status" >&5 7039 (exit "$ac_status"); } && 7040 { ac_try='test -s "conftest$ac_exeext"' 7041 { (eval echo "$as_me:7041: \"$ac_try\"") >&5 7042 (eval $ac_try) 2>&5 7043 ac_status=$? 7044 echo "$as_me:7044: \$? = $ac_status" >&5 7045 (exit "$ac_status"); }; }; then 7046 ac_cv_func_dlsym=yes 7047else 7048 echo "$as_me: failed program was:" >&5 7049cat "conftest.$ac_ext" >&5 7050ac_cv_func_dlsym=no 7051fi 7052rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7053fi 7054echo "$as_me:7054: result: $ac_cv_func_dlsym" >&5 7055echo "${ECHO_T}$ac_cv_func_dlsym" >&6 7056if test "$ac_cv_func_dlsym" = yes; then 7057 cf_have_dlsym=yes 7058else 7059 7060cf_have_libdl=no 7061echo "$as_me:7061: checking for dlsym in -ldl" >&5 7062echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 7063if test "${ac_cv_lib_dl_dlsym+set}" = set; then 7064 echo $ECHO_N "(cached) $ECHO_C" >&6 7065else 7066 ac_check_lib_save_LIBS=$LIBS 7067LIBS="-ldl $LIBS" 7068cat >"conftest.$ac_ext" <<_ACEOF 7069#line 7069 "configure" 7070#include "confdefs.h" 7071 7072/* Override any gcc2 internal prototype to avoid an error. */ 7073#ifdef __cplusplus 7074extern "C" 7075#endif 7076/* We use char because int might match the return type of a gcc2 7077 builtin and then its argument prototype would still apply. */ 7078char dlsym (); 7079int 7080main (void) 7081{ 7082dlsym (); 7083 ; 7084 return 0; 7085} 7086_ACEOF 7087rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7088if { (eval echo "$as_me:7088: \"$ac_link\"") >&5 7089 (eval $ac_link) 2>&5 7090 ac_status=$? 7091 echo "$as_me:7091: \$? = $ac_status" >&5 7092 (exit "$ac_status"); } && 7093 { ac_try='test -s "conftest$ac_exeext"' 7094 { (eval echo "$as_me:7094: \"$ac_try\"") >&5 7095 (eval $ac_try) 2>&5 7096 ac_status=$? 7097 echo "$as_me:7097: \$? = $ac_status" >&5 7098 (exit "$ac_status"); }; }; then 7099 ac_cv_lib_dl_dlsym=yes 7100else 7101 echo "$as_me: failed program was:" >&5 7102cat "conftest.$ac_ext" >&5 7103ac_cv_lib_dl_dlsym=no 7104fi 7105rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7106LIBS=$ac_check_lib_save_LIBS 7107fi 7108echo "$as_me:7108: result: $ac_cv_lib_dl_dlsym" >&5 7109echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 7110if test "$ac_cv_lib_dl_dlsym" = yes; then 7111 7112 cf_have_dlsym=yes 7113 cf_have_libdl=yes 7114fi 7115 7116fi 7117 7118if test "$cf_have_dlsym" = yes ; then 7119 test "$cf_have_libdl" = yes && { 7120cf_add_libs="$LIBS" 7121# reverse order 7122cf_add_0lib= 7123for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7124# filter duplicates 7125for cf_add_1lib in $cf_add_0lib; do 7126 for cf_add_2lib in $cf_add_libs; do 7127 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7128 cf_add_1lib= 7129 break 7130 fi 7131 done 7132 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7133done 7134LIBS="$cf_add_libs" 7135 } 7136 7137 echo "$as_me:7137: checking whether able to link to dl*() functions" >&5 7138echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6 7139 cat >"conftest.$ac_ext" <<_ACEOF 7140#line 7140 "configure" 7141#include "confdefs.h" 7142#include <dlfcn.h> 7143int 7144main (void) 7145{ 7146 7147 void *obj; 7148 if ((obj = dlopen("filename", 0)) != 0) { 7149 if (dlsym(obj, "symbolname") == 0) { 7150 dlclose(obj); 7151 } 7152 } 7153 ; 7154 return 0; 7155} 7156_ACEOF 7157rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7158if { (eval echo "$as_me:7158: \"$ac_link\"") >&5 7159 (eval $ac_link) 2>&5 7160 ac_status=$? 7161 echo "$as_me:7161: \$? = $ac_status" >&5 7162 (exit "$ac_status"); } && 7163 { ac_try='test -s "conftest$ac_exeext"' 7164 { (eval echo "$as_me:7164: \"$ac_try\"") >&5 7165 (eval $ac_try) 2>&5 7166 ac_status=$? 7167 echo "$as_me:7167: \$? = $ac_status" >&5 7168 (exit "$ac_status"); }; }; then 7169 7170cat >>confdefs.h <<\EOF 7171#define HAVE_LIBDL 1 7172EOF 7173 7174else 7175 echo "$as_me: failed program was:" >&5 7176cat "conftest.$ac_ext" >&5 7177 7178 { { echo "$as_me:7178: error: Cannot link test program for libdl" >&5 7179echo "$as_me: error: Cannot link test program for libdl" >&2;} 7180 { (exit 1); exit 1; }; } 7181fi 7182rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7183 echo "$as_me:7183: result: ok" >&5 7184echo "${ECHO_T}ok" >&6 7185else 7186 { { echo "$as_me:7186: error: Cannot find dlsym function" >&5 7187echo "$as_me: error: Cannot find dlsym function" >&2;} 7188 { (exit 1); exit 1; }; } 7189fi 7190 7191 if test "x$with_gpm" != xyes ; then 7192 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6 7193 7194echo "${as_me:-configure}:7194: testing assuming soname for gpm is $with_gpm ..." 1>&5 7195 7196 cf_cv_gpm_soname="$with_gpm" 7197 else 7198 7199echo "$as_me:7199: checking for soname of gpm library" >&5 7200echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6 7201if test "${cf_cv_gpm_soname+set}" = set; then 7202 echo $ECHO_N "(cached) $ECHO_C" >&6 7203else 7204 7205cf_cv_gpm_soname=unknown 7206if test "$cross_compiling" != yes ; then 7207cat >conftest.$ac_ext <<CF_EOF 7208#include <gpm.h> 7209int main(void) 7210{ 7211if (Gpm_Open(0,0)) Gpm_Close(); 7212 ${cf_cv_main_return:-return}(0); 7213} 7214CF_EOF 7215cf_save_LIBS="$LIBS" 7216 7217cf_add_libs="$LIBS" 7218# reverse order 7219cf_add_0lib= 7220for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7221# filter duplicates 7222for cf_add_1lib in $cf_add_0lib; do 7223 for cf_add_2lib in $cf_add_libs; do 7224 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7225 cf_add_1lib= 7226 break 7227 fi 7228 done 7229 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7230done 7231LIBS="$cf_add_libs" 7232 7233 if { (eval echo "$as_me:7233: \"$ac_compile\"") >&5 7234 (eval $ac_compile) 2>&5 7235 ac_status=$? 7236 echo "$as_me:7236: \$? = $ac_status" >&5 7237 (exit "$ac_status"); } ; then 7238 if { (eval echo "$as_me:7238: \"$ac_link\"") >&5 7239 (eval $ac_link) 2>&5 7240 ac_status=$? 7241 echo "$as_me:7241: \$? = $ac_status" >&5 7242 (exit "$ac_status"); } ; then 7243 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`" 7244 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown 7245 fi 7246 fi 7247rm -rf ./conftest* 7248LIBS="$cf_save_LIBS" 7249fi 7250 7251fi 7252echo "$as_me:7252: result: $cf_cv_gpm_soname" >&5 7253echo "${ECHO_T}$cf_cv_gpm_soname" >&6 7254 7255 fi 7256 test "$cf_cv_gpm_soname" != "unknown" && 7257cat >>confdefs.h <<EOF 7258#define LIBGPM_SONAME "$cf_cv_gpm_soname" 7259EOF 7260 7261 SHLIB_LIST="-ldl $SHLIB_LIST" 7262 7263cf_add_libs="$PRIVATE_LIBS" 7264# reverse order 7265cf_add_0lib= 7266for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7267# filter duplicates 7268for cf_add_1lib in $cf_add_0lib; do 7269 for cf_add_2lib in $cf_add_libs; do 7270 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7271 cf_add_1lib= 7272 break 7273 fi 7274 done 7275 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7276done 7277PRIVATE_LIBS="$cf_add_libs" 7278 7279 else 7280 SHLIB_LIST="-lgpm $SHLIB_LIST" 7281 7282cf_add_libs="$TEST_LIBS" 7283# reverse order 7284cf_add_0lib= 7285for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7286# filter duplicates 7287for cf_add_1lib in $cf_add_0lib; do 7288 for cf_add_2lib in $cf_add_libs; do 7289 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7290 cf_add_1lib= 7291 break 7292 fi 7293 done 7294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7295done 7296TEST_LIBS="$cf_add_libs" 7297 7298cf_add_libs="$PRIVATE_LIBS" 7299# reverse order 7300cf_add_0lib= 7301for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7302# filter duplicates 7303for cf_add_1lib in $cf_add_0lib; do 7304 for cf_add_2lib in $cf_add_libs; do 7305 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7306 cf_add_1lib= 7307 break 7308 fi 7309 done 7310 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7311done 7312PRIVATE_LIBS="$cf_add_libs" 7313 7314 fi 7315 7316cat >>confdefs.h <<\EOF 7317#define HAVE_LIBGPM 1 7318EOF 7319 7320echo "$as_me:7320: checking for Gpm_Wgetch in -lgpm" >&5 7321echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6 7322if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then 7323 echo $ECHO_N "(cached) $ECHO_C" >&6 7324else 7325 ac_check_lib_save_LIBS=$LIBS 7326LIBS="-lgpm $LIBS" 7327cat >"conftest.$ac_ext" <<_ACEOF 7328#line 7328 "configure" 7329#include "confdefs.h" 7330 7331/* Override any gcc2 internal prototype to avoid an error. */ 7332#ifdef __cplusplus 7333extern "C" 7334#endif 7335/* We use char because int might match the return type of a gcc2 7336 builtin and then its argument prototype would still apply. */ 7337char Gpm_Wgetch (); 7338int 7339main (void) 7340{ 7341Gpm_Wgetch (); 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7347if { (eval echo "$as_me:7347: \"$ac_link\"") >&5 7348 (eval $ac_link) 2>&5 7349 ac_status=$? 7350 echo "$as_me:7350: \$? = $ac_status" >&5 7351 (exit "$ac_status"); } && 7352 { ac_try='test -s "conftest$ac_exeext"' 7353 { (eval echo "$as_me:7353: \"$ac_try\"") >&5 7354 (eval $ac_try) 2>&5 7355 ac_status=$? 7356 echo "$as_me:7356: \$? = $ac_status" >&5 7357 (exit "$ac_status"); }; }; then 7358 ac_cv_lib_gpm_Gpm_Wgetch=yes 7359else 7360 echo "$as_me: failed program was:" >&5 7361cat "conftest.$ac_ext" >&5 7362ac_cv_lib_gpm_Gpm_Wgetch=no 7363fi 7364rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7365LIBS=$ac_check_lib_save_LIBS 7366fi 7367echo "$as_me:7367: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5 7368echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6 7369if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then 7370 7371echo "$as_me:7371: checking if GPM is weakly bound to curses library" >&5 7372echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6 7373if test "${cf_cv_check_gpm_wgetch+set}" = set; then 7374 echo $ECHO_N "(cached) $ECHO_C" >&6 7375else 7376 7377cf_cv_check_gpm_wgetch=unknown 7378if test "$cross_compiling" != yes ; then 7379 7380cat >conftest.$ac_ext <<CF_EOF 7381#include <gpm.h> 7382int main(void) 7383{ 7384 Gpm_Wgetch(); 7385 ${cf_cv_main_return:-return}(0); 7386} 7387CF_EOF 7388 7389 cf_save_LIBS="$LIBS" 7390 # This only works if we can look at the symbol table. If a shared 7391 # library is stripped for install, we cannot use that. So we're forced 7392 # to rely on the static library, noting that some packagers may not 7393 # include it. 7394 LIBS="-static -lgpm -dynamic $LIBS" 7395 if { (eval echo "$as_me:7395: \"$ac_compile\"") >&5 7396 (eval $ac_compile) 2>&5 7397 ac_status=$? 7398 echo "$as_me:7398: \$? = $ac_status" >&5 7399 (exit "$ac_status"); } ; then 7400 if { (eval echo "$as_me:7400: \"$ac_link\"") >&5 7401 (eval $ac_link) 2>&5 7402 ac_status=$? 7403 echo "$as_me:7403: \$? = $ac_status" >&5 7404 (exit "$ac_status"); } ; then 7405 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`" 7406 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes 7407 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no 7408 fi 7409 fi 7410 rm -rf ./conftest* 7411 LIBS="$cf_save_LIBS" 7412fi 7413 7414fi 7415echo "$as_me:7415: result: $cf_cv_check_gpm_wgetch" >&5 7416echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6 7417 7418if test "$cf_cv_check_gpm_wgetch" != yes ; then 7419 { echo "$as_me:7419: WARNING: GPM library is already linked with curses - read the FAQ" >&5 7420echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;} 7421fi 7422 7423fi 7424 7425fi 7426 7427echo "$as_me:7427: checking if you want to use PCRE2 for regular-expressions" >&5 7428echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 7429 7430# Check whether --with-pcre2 or --without-pcre2 was given. 7431if test "${with_pcre2+set}" = set; then 7432 withval="$with_pcre2" 7433 7434fi; 7435test -z "$with_pcre2" && with_pcre2=no 7436echo "$as_me:7436: result: $with_pcre2" >&5 7437echo "${ECHO_T}$with_pcre2" >&6 7438 7439if test "x$with_pcre2" != xno ; then 7440 cf_with_pcre2_ok=no 7441 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 7442 do 7443 7444if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 7445 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 7446 7447echo "${as_me:-configure}:7447: testing found package $cf_with_pcre2 ..." 1>&5 7448 7449 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 7450 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 7451 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 7452 7453echo "${as_me:-configure}:7453: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 7454 7455 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 7456 7457echo "${as_me:-configure}:7457: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 7458 7459cf_fix_cppflags=no 7460cf_new_cflags= 7461cf_new_cppflags= 7462cf_new_extra_cppflags= 7463 7464for cf_add_cflags in $cf_pkgconfig_incs 7465do 7466case "$cf_fix_cppflags" in 7467(no) 7468 case "$cf_add_cflags" in 7469 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 7470 case "$cf_add_cflags" in 7471 (-D*) 7472 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7473 7474 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7475 && test -z "${cf_tst_cflags}" \ 7476 && cf_fix_cppflags=yes 7477 7478 if test "$cf_fix_cppflags" = yes ; then 7479 7480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7482 7483 continue 7484 elif test "${cf_tst_cflags}" = "\"'" ; then 7485 7486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7488 7489 continue 7490 fi 7491 ;; 7492 esac 7493 case "$CPPFLAGS" in 7494 (*$cf_add_cflags) 7495 ;; 7496 (*) 7497 case "$cf_add_cflags" in 7498 (-D*) 7499 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7500 7501CPPFLAGS=`echo "$CPPFLAGS" | \ 7502 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7503 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7504 7505 ;; 7506 esac 7507 7508 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 7509 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 7510 7511 ;; 7512 esac 7513 ;; 7514 (*) 7515 7516 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 7517 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 7518 7519 ;; 7520 esac 7521 ;; 7522(yes) 7523 7524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7526 7527 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 7528 7529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7530 && test -z "${cf_tst_cflags}" \ 7531 && cf_fix_cppflags=no 7532 ;; 7533esac 7534done 7535 7536if test -n "$cf_new_cflags" ; then 7537 7538 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 7539 CFLAGS="${CFLAGS}$cf_new_cflags" 7540 7541fi 7542 7543if test -n "$cf_new_cppflags" ; then 7544 7545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 7546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 7547 7548fi 7549 7550if test -n "$cf_new_extra_cppflags" ; then 7551 7552 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 7553 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 7554 7555fi 7556 7557cf_add_libs="$LIBS" 7558# reverse order 7559cf_add_0lib= 7560for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7561# filter duplicates 7562for cf_add_1lib in $cf_add_0lib; do 7563 for cf_add_2lib in $cf_add_libs; do 7564 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7565 cf_add_1lib= 7566 break 7567 fi 7568 done 7569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7570done 7571LIBS="$cf_add_libs" 7572 7573 cf_with_pcre2_ok=yes; break 7574else 7575 cf_pkgconfig_incs= 7576 cf_pkgconfig_libs= 7577 : 7578fi 7579 7580 done 7581 cf_with_pcre2_ok=yes || { { echo "$as_me:7581: error: Cannot find PCRE2 library" >&5 7582echo "$as_me: error: Cannot find PCRE2 library" >&2;} 7583 { (exit 1); exit 1; }; } 7584 7585cat >>confdefs.h <<\EOF 7586#define HAVE_LIB_PCRE2 1 7587EOF 7588 7589 # if pkgconfig gave no results, look for the libraries directly 7590 case "$LIBS" in 7591 (*pcre2-posix*|*pcreposix*) 7592 ;; 7593 (*) 7594 echo "$as_me:7594: checking for regcomp in -lpcre2-posix" >&5 7595echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 7596if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 7597 echo $ECHO_N "(cached) $ECHO_C" >&6 7598else 7599 ac_check_lib_save_LIBS=$LIBS 7600LIBS="-lpcre2-posix $LIBS" 7601cat >"conftest.$ac_ext" <<_ACEOF 7602#line 7602 "configure" 7603#include "confdefs.h" 7604 7605/* Override any gcc2 internal prototype to avoid an error. */ 7606#ifdef __cplusplus 7607extern "C" 7608#endif 7609/* We use char because int might match the return type of a gcc2 7610 builtin and then its argument prototype would still apply. */ 7611char regcomp (); 7612int 7613main (void) 7614{ 7615regcomp (); 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7621if { (eval echo "$as_me:7621: \"$ac_link\"") >&5 7622 (eval $ac_link) 2>&5 7623 ac_status=$? 7624 echo "$as_me:7624: \$? = $ac_status" >&5 7625 (exit "$ac_status"); } && 7626 { ac_try='test -s "conftest$ac_exeext"' 7627 { (eval echo "$as_me:7627: \"$ac_try\"") >&5 7628 (eval $ac_try) 2>&5 7629 ac_status=$? 7630 echo "$as_me:7630: \$? = $ac_status" >&5 7631 (exit "$ac_status"); }; }; then 7632 ac_cv_lib_pcre2_posix_regcomp=yes 7633else 7634 echo "$as_me: failed program was:" >&5 7635cat "conftest.$ac_ext" >&5 7636ac_cv_lib_pcre2_posix_regcomp=no 7637fi 7638rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7639LIBS=$ac_check_lib_save_LIBS 7640fi 7641echo "$as_me:7641: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 7642echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 7643if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 7644 7645cf_add_libs="$LIBS" 7646# reverse order 7647cf_add_0lib= 7648for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7649# filter duplicates 7650for cf_add_1lib in $cf_add_0lib; do 7651 for cf_add_2lib in $cf_add_libs; do 7652 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7653 cf_add_1lib= 7654 break 7655 fi 7656 done 7657 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7658done 7659LIBS="$cf_add_libs" 7660 7661else 7662 echo "$as_me:7662: checking for regcomp in -lpcreposix" >&5 7663echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 7664if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 7665 echo $ECHO_N "(cached) $ECHO_C" >&6 7666else 7667 ac_check_lib_save_LIBS=$LIBS 7668LIBS="-lpcreposix $LIBS" 7669cat >"conftest.$ac_ext" <<_ACEOF 7670#line 7670 "configure" 7671#include "confdefs.h" 7672 7673/* Override any gcc2 internal prototype to avoid an error. */ 7674#ifdef __cplusplus 7675extern "C" 7676#endif 7677/* We use char because int might match the return type of a gcc2 7678 builtin and then its argument prototype would still apply. */ 7679char regcomp (); 7680int 7681main (void) 7682{ 7683regcomp (); 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7689if { (eval echo "$as_me:7689: \"$ac_link\"") >&5 7690 (eval $ac_link) 2>&5 7691 ac_status=$? 7692 echo "$as_me:7692: \$? = $ac_status" >&5 7693 (exit "$ac_status"); } && 7694 { ac_try='test -s "conftest$ac_exeext"' 7695 { (eval echo "$as_me:7695: \"$ac_try\"") >&5 7696 (eval $ac_try) 2>&5 7697 ac_status=$? 7698 echo "$as_me:7698: \$? = $ac_status" >&5 7699 (exit "$ac_status"); }; }; then 7700 ac_cv_lib_pcreposix_regcomp=yes 7701else 7702 echo "$as_me: failed program was:" >&5 7703cat "conftest.$ac_ext" >&5 7704ac_cv_lib_pcreposix_regcomp=no 7705fi 7706rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7707LIBS=$ac_check_lib_save_LIBS 7708fi 7709echo "$as_me:7709: result: $ac_cv_lib_pcreposix_regcomp" >&5 7710echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 7711if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 7712 7713cf_add_libs="$LIBS" 7714# reverse order 7715cf_add_0lib= 7716for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7717# filter duplicates 7718for cf_add_1lib in $cf_add_0lib; do 7719 for cf_add_2lib in $cf_add_libs; do 7720 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7721 cf_add_1lib= 7722 break 7723 fi 7724 done 7725 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7726done 7727LIBS="$cf_add_libs" 7728 7729else 7730 { { echo "$as_me:7730: error: Cannot find PCRE2 POSIX library" >&5 7731echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 7732 { (exit 1); exit 1; }; } 7733fi 7734 7735fi 7736 7737 ;; 7738 esac 7739 7740 # either way, check for the library header files 7741 7742for ac_header in pcre2posix.h pcreposix.h 7743do 7744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7745echo "$as_me:7745: checking for $ac_header" >&5 7746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7747if eval "test \"\${$as_ac_Header+set}\" = set"; then 7748 echo $ECHO_N "(cached) $ECHO_C" >&6 7749else 7750 cat >"conftest.$ac_ext" <<_ACEOF 7751#line 7751 "configure" 7752#include "confdefs.h" 7753#include <$ac_header> 7754_ACEOF 7755if { (eval echo "$as_me:7755: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7756 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7757 ac_status=$? 7758 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7759 rm -f conftest.er1 7760 cat conftest.err >&5 7761 echo "$as_me:7761: \$? = $ac_status" >&5 7762 (exit "$ac_status"); } >/dev/null; then 7763 if test -s conftest.err; then 7764 ac_cpp_err=$ac_c_preproc_warn_flag 7765 else 7766 ac_cpp_err= 7767 fi 7768else 7769 ac_cpp_err=yes 7770fi 7771if test -z "$ac_cpp_err"; then 7772 eval "$as_ac_Header=yes" 7773else 7774 echo "$as_me: failed program was:" >&5 7775 cat "conftest.$ac_ext" >&5 7776 eval "$as_ac_Header=no" 7777fi 7778rm -f conftest.err "conftest.$ac_ext" 7779fi 7780echo "$as_me:7780: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7781echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7782if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7783 cat >>confdefs.h <<EOF 7784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7785EOF 7786 7787fi 7788done 7789 7790fi 7791 7792# not everyone has "test -c" 7793if test -c /dev/sysmouse 2>/dev/null ; then 7794echo "$as_me:7794: checking if you want to use sysmouse" >&5 7795echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6 7796 7797# Check whether --with-sysmouse or --without-sysmouse was given. 7798if test "${with_sysmouse+set}" = set; then 7799 withval="$with_sysmouse" 7800 cf_with_sysmouse=$withval 7801else 7802 cf_with_sysmouse=maybe 7803fi; 7804 if test "$cf_with_sysmouse" != no ; then 7805 cat >"conftest.$ac_ext" <<_ACEOF 7806#line 7806 "configure" 7807#include "confdefs.h" 7808 7809#include <osreldate.h> 7810#if (__FreeBSD_version >= 400017) 7811#include <sys/consio.h> 7812#include <sys/fbio.h> 7813#else 7814#include <machine/console.h> 7815#endif 7816 7817int 7818main (void) 7819{ 7820 7821 struct mouse_info the_mouse; 7822 ioctl(0, CONS_MOUSECTL, &the_mouse); 7823 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828rm -f "conftest.$ac_objext" 7829if { (eval echo "$as_me:7829: \"$ac_compile\"") >&5 7830 (eval $ac_compile) 2>&5 7831 ac_status=$? 7832 echo "$as_me:7832: \$? = $ac_status" >&5 7833 (exit "$ac_status"); } && 7834 { ac_try='test -s "conftest.$ac_objext"' 7835 { (eval echo "$as_me:7835: \"$ac_try\"") >&5 7836 (eval $ac_try) 2>&5 7837 ac_status=$? 7838 echo "$as_me:7838: \$? = $ac_status" >&5 7839 (exit "$ac_status"); }; }; then 7840 cf_with_sysmouse=yes 7841else 7842 echo "$as_me: failed program was:" >&5 7843cat "conftest.$ac_ext" >&5 7844cf_with_sysmouse=no 7845fi 7846rm -f "conftest.$ac_objext" "conftest.$ac_ext" 7847 fi 7848echo "$as_me:7848: result: $cf_with_sysmouse" >&5 7849echo "${ECHO_T}$cf_with_sysmouse" >&6 7850test "$cf_with_sysmouse" = yes && 7851cat >>confdefs.h <<\EOF 7852#define USE_SYSMOUSE 1 7853EOF 7854 7855fi 7856 7857# pretend that ncurses==ncursesw==ncursest 7858echo "$as_me:7858: checking if you want to disable library suffixes" >&5 7859echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6 7860 7861# Check whether --enable-lib-suffixes or --disable-lib-suffixes was given. 7862if test "${enable_lib_suffixes+set}" = set; then 7863 enableval="$enable_lib_suffixes" 7864 test "$enableval" != no && enableval=yes 7865 if test "$enableval" != "yes" ; then 7866 disable_lib_suffixes=yes 7867 else 7868 disable_lib_suffixes=no 7869 fi 7870else 7871 enableval=yes 7872 disable_lib_suffixes=no 7873 7874fi; 7875echo "$as_me:7875: result: $disable_lib_suffixes" >&5 7876echo "${ECHO_T}$disable_lib_suffixes" >&6 7877 7878### If we're building with rpath, try to link non-standard libs that way too. 7879if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then 7880 7881echo "$as_me:7881: checking if rpath-hack should be disabled" >&5 7882echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 7883 7884# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 7885if test "${enable_rpath_hack+set}" = set; then 7886 enableval="$enable_rpath_hack" 7887 test "$enableval" != no && enableval=yes 7888 if test "$enableval" != "yes" ; then 7889 enable_rpath_hack=no 7890 else 7891 enable_rpath_hack=yes 7892 fi 7893else 7894 enableval=yes 7895 enable_rpath_hack=yes 7896 7897fi; 7898if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 7899echo "$as_me:7899: result: $cf_disable_rpath_hack" >&5 7900echo "${ECHO_T}$cf_disable_rpath_hack" >&6 7901 7902if test "$enable_rpath_hack" = yes ; then 7903 7904echo "$as_me:7904: checking for updated LDFLAGS" >&5 7905echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 7906if test -n "$LD_RPATH_OPT" ; then 7907 echo "$as_me:7907: result: maybe" >&5 7908echo "${ECHO_T}maybe" >&6 7909 7910 for ac_prog in ldd 7911do 7912 # Extract the first word of "$ac_prog", so it can be a program name with args. 7913set dummy $ac_prog; ac_word=$2 7914echo "$as_me:7914: checking for $ac_word" >&5 7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7916if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 7917 echo $ECHO_N "(cached) $ECHO_C" >&6 7918else 7919 if test -n "$cf_ldd_prog"; then 7920 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 7921else 7922 ac_save_IFS=$IFS; IFS=$ac_path_separator 7923ac_dummy="$PATH" 7924for ac_dir in $ac_dummy; do 7925 IFS=$ac_save_IFS 7926 test -z "$ac_dir" && ac_dir=. 7927 $as_executable_p "$ac_dir/$ac_word" || continue 7928ac_cv_prog_cf_ldd_prog="$ac_prog" 7929echo "$as_me:7929: found $ac_dir/$ac_word" >&5 7930break 7931done 7932 7933fi 7934fi 7935cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 7936if test -n "$cf_ldd_prog"; then 7937 echo "$as_me:7937: result: $cf_ldd_prog" >&5 7938echo "${ECHO_T}$cf_ldd_prog" >&6 7939else 7940 echo "$as_me:7940: result: no" >&5 7941echo "${ECHO_T}no" >&6 7942fi 7943 7944 test -n "$cf_ldd_prog" && break 7945done 7946test -n "$cf_ldd_prog" || cf_ldd_prog="no" 7947 7948 cf_rpath_list="/usr/lib /lib" 7949 if test "$cf_ldd_prog" != no 7950 then 7951 cf_rpath_oops= 7952 7953cat >"conftest.$ac_ext" <<_ACEOF 7954#line 7954 "configure" 7955#include "confdefs.h" 7956#include <stdio.h> 7957int 7958main (void) 7959{ 7960printf("Hello"); 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7966if { (eval echo "$as_me:7966: \"$ac_link\"") >&5 7967 (eval $ac_link) 2>&5 7968 ac_status=$? 7969 echo "$as_me:7969: \$? = $ac_status" >&5 7970 (exit "$ac_status"); } && 7971 { ac_try='test -s "conftest$ac_exeext"' 7972 { (eval echo "$as_me:7972: \"$ac_try\"") >&5 7973 (eval $ac_try) 2>&5 7974 ac_status=$? 7975 echo "$as_me:7975: \$? = $ac_status" >&5 7976 (exit "$ac_status"); }; }; then 7977 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 7978 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 7979else 7980 echo "$as_me: failed program was:" >&5 7981cat "conftest.$ac_ext" >&5 7982fi 7983rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7984 7985 # If we passed the link-test, but get a "not found" on a given library, 7986 # this could be due to inept reconfiguration of gcc to make it only 7987 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 7988 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 7989 # /usr/local libraries. 7990 if test -n "$cf_rpath_oops" 7991 then 7992 for cf_rpath_src in $cf_rpath_oops 7993 do 7994 for cf_rpath_dir in \ 7995 /usr/local \ 7996 /usr/pkg \ 7997 /opt/sfw 7998 do 7999 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 8000 then 8001 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 8002 8003echo "${as_me:-configure}:8003: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 8004 8005 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 8006 break 8007 fi 8008 done 8009 done 8010 fi 8011 fi 8012 8013 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 8014 8015echo "${as_me:-configure}:8015: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 8016 8017test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 8018 8019echo "${as_me:-configure}:8019: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 8020 8021cf_rpath_dst= 8022for cf_rpath_src in $LDFLAGS 8023do 8024 case "$cf_rpath_src" in 8025 (-L*) 8026 8027 # check if this refers to a directory which we will ignore 8028 cf_rpath_skip=no 8029 if test -n "$cf_rpath_list" 8030 then 8031 for cf_rpath_item in $cf_rpath_list 8032 do 8033 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 8034 then 8035 cf_rpath_skip=yes 8036 break 8037 fi 8038 done 8039 fi 8040 8041 if test "$cf_rpath_skip" = no 8042 then 8043 # transform the option 8044 if test "$LD_RPATH_OPT" = "-R " ; then 8045 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 8046 else 8047 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 8048 fi 8049 8050 # if we have not already added this, add it now 8051 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 8052 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 8053 then 8054 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 8055 8056echo "${as_me:-configure}:8056: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 8057 8058 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 8059 fi 8060 fi 8061 ;; 8062 esac 8063 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 8064done 8065LDFLAGS=$cf_rpath_dst 8066 8067test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 8068 8069echo "${as_me:-configure}:8069: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 8070 8071test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 8072 8073echo "${as_me:-configure}:8073: testing ...checking LIBS $LIBS ..." 1>&5 8074 8075cf_rpath_dst= 8076for cf_rpath_src in $LIBS 8077do 8078 case "$cf_rpath_src" in 8079 (-L*) 8080 8081 # check if this refers to a directory which we will ignore 8082 cf_rpath_skip=no 8083 if test -n "$cf_rpath_list" 8084 then 8085 for cf_rpath_item in $cf_rpath_list 8086 do 8087 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 8088 then 8089 cf_rpath_skip=yes 8090 break 8091 fi 8092 done 8093 fi 8094 8095 if test "$cf_rpath_skip" = no 8096 then 8097 # transform the option 8098 if test "$LD_RPATH_OPT" = "-R " ; then 8099 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 8100 else 8101 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 8102 fi 8103 8104 # if we have not already added this, add it now 8105 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 8106 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 8107 then 8108 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 8109 8110echo "${as_me:-configure}:8110: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 8111 8112 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 8113 fi 8114 fi 8115 ;; 8116 esac 8117 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 8118done 8119LIBS=$cf_rpath_dst 8120 8121test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 8122 8123echo "${as_me:-configure}:8123: testing ...checked LIBS $LIBS ..." 1>&5 8124 8125 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 8126 8127echo "${as_me:-configure}:8127: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 8128 8129else 8130 echo "$as_me:8130: result: no" >&5 8131echo "${ECHO_T}no" >&6 8132fi 8133 8134fi 8135 8136fi 8137 8138### Depending on the system, someone may use rpath to build ncurses but not 8139# want users of the package to rely upon that feature. Give those people an 8140# option to suppress that detail from EXTRA_LDFLAGS. 8141EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS" 8142if test -n "$EXTRA_PKG_LDFLAGS" 8143then 8144 echo "$as_me:8144: checking if you want to disable extra LDFLAGS for package-scripts" >&5 8145echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6 8146 8147# Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given. 8148if test "${enable_pkg_ldflags+set}" = set; then 8149 enableval="$enable_pkg_ldflags" 8150 test "$enableval" != no && enableval=yes 8151 if test "$enableval" != "yes" ; then 8152 disable_pkg_ldflags=yes 8153 else 8154 disable_pkg_ldflags=no 8155 fi 8156else 8157 enableval=yes 8158 disable_pkg_ldflags=no 8159 8160fi; 8161 echo "$as_me:8161: result: $disable_pkg_ldflags" >&5 8162echo "${ECHO_T}$disable_pkg_ldflags" >&6 8163 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS= 8164fi 8165 8166############################################################################### 8167 8168### use option --with-extra-suffix to append suffix to headers and libraries 8169echo "$as_me:8169: checking if you wish to append extra suffix to header/library paths" >&5 8170echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6 8171EXTRA_SUFFIX= 8172 8173# Check whether --with-extra-suffix or --without-extra-suffix was given. 8174if test "${with_extra_suffix+set}" = set; then 8175 withval="$with_extra_suffix" 8176 case x$withval in 8177 (xno) 8178 ;; 8179 (xyes|x) 8180 EXTRA_SUFFIX=$cf_cv_abi_version 8181 ;; 8182 (*) 8183 EXTRA_SUFFIX=$withval 8184 ;; 8185 esac 8186 8187fi; 8188echo "$as_me:8188: result: $EXTRA_SUFFIX" >&5 8189echo "${ECHO_T}$EXTRA_SUFFIX" >&6 8190 8191### use option --disable-overwrite to leave out the link to -lcurses 8192echo "$as_me:8192: checking if you wish to install ncurses overwriting curses" >&5 8193echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6 8194 8195# Check whether --enable-overwrite or --disable-overwrite was given. 8196if test "${enable_overwrite+set}" = set; then 8197 enableval="$enable_overwrite" 8198 with_overwrite=$enableval 8199else 8200 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi 8201fi; 8202echo "$as_me:8202: result: $with_overwrite" >&5 8203echo "${ECHO_T}$with_overwrite" >&6 8204 8205echo "$as_me:8205: checking if external terminfo-database is used" >&5 8206echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6 8207 8208# Check whether --enable-database or --disable-database was given. 8209if test "${enable_database+set}" = set; then 8210 enableval="$enable_database" 8211 use_database=$enableval 8212else 8213 use_database=yes 8214fi; 8215echo "$as_me:8215: result: $use_database" >&5 8216echo "${ECHO_T}$use_database" >&6 8217 8218case "$host_os" in 8219(os2*) 8220 TERMINFO_SRC='${top_srcdir}/misc/emx.src' 8221 ;; 8222(*) 8223 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src' 8224 ;; 8225esac 8226 8227NCURSES_USE_DATABASE=0 8228if test "$use_database" != no ; then 8229 NCURSES_USE_DATABASE=1 8230 8231 echo "$as_me:8231: checking which terminfo source-file will be installed" >&5 8232echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6 8233 8234# Check whether --with-database or --without-database was given. 8235if test "${with_database+set}" = set; then 8236 withval="$with_database" 8237 TERMINFO_SRC=$withval 8238fi; 8239 echo "$as_me:8239: result: $TERMINFO_SRC" >&5 8240echo "${ECHO_T}$TERMINFO_SRC" >&6 8241 8242 echo "$as_me:8242: checking whether to use hashed database instead of directory/tree" >&5 8243echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6 8244 8245# Check whether --with-hashed-db or --without-hashed-db was given. 8246if test "${with_hashed_db+set}" = set; then 8247 withval="$with_hashed_db" 8248 8249else 8250 with_hashed_db=no 8251fi; 8252 echo "$as_me:8252: result: $with_hashed_db" >&5 8253echo "${ECHO_T}$with_hashed_db" >&6 8254else 8255 with_hashed_db=no 8256fi 8257 8258echo "$as_me:8258: checking for list of fallback descriptions" >&5 8259echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6 8260 8261# Check whether --with-fallbacks or --without-fallbacks was given. 8262if test "${with_fallbacks+set}" = set; then 8263 withval="$with_fallbacks" 8264 with_fallback=$withval 8265else 8266 with_fallback= 8267fi; 8268echo "$as_me:8268: result: $with_fallback" >&5 8269echo "${ECHO_T}$with_fallback" >&6 8270 8271case ".$with_fallback" in 8272(.|.no) 8273 FALLBACK_LIST= 8274 ;; 8275(.yes) 8276 { echo "$as_me:8276: WARNING: expected a list of terminal descriptions" >&5 8277echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;} 8278 ;; 8279(*) 8280 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'` 8281 ;; 8282esac 8283 8284# The fallback feature in ncurses relies upon tic/infocmp outside the build 8285# tree for generating the terminal descriptions that will be compiled into the 8286# library. If your toolchain is old, it may not handle current terminal 8287# databases. Use configure-options to point to the tools which will be used, 8288# rather than the first ones found on the $PATH. 8289if test -n "$ac_tool_prefix"; then 8290 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args. 8291set dummy ${ac_tool_prefix}tic; ac_word=$2 8292echo "$as_me:8292: checking for $ac_word" >&5 8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8294if test "${ac_cv_prog_TIC+set}" = set; then 8295 echo $ECHO_N "(cached) $ECHO_C" >&6 8296else 8297 if test -n "$TIC"; then 8298 ac_cv_prog_TIC="$TIC" # Let the user override the test. 8299else 8300 ac_save_IFS=$IFS; IFS=$ac_path_separator 8301ac_dummy="$PATH" 8302for ac_dir in $ac_dummy; do 8303 IFS=$ac_save_IFS 8304 test -z "$ac_dir" && ac_dir=. 8305 $as_executable_p "$ac_dir/$ac_word" || continue 8306ac_cv_prog_TIC="${ac_tool_prefix}tic" 8307echo "$as_me:8307: found $ac_dir/$ac_word" >&5 8308break 8309done 8310 8311fi 8312fi 8313TIC=$ac_cv_prog_TIC 8314if test -n "$TIC"; then 8315 echo "$as_me:8315: result: $TIC" >&5 8316echo "${ECHO_T}$TIC" >&6 8317else 8318 echo "$as_me:8318: result: no" >&5 8319echo "${ECHO_T}no" >&6 8320fi 8321 8322fi 8323if test -z "$ac_cv_prog_TIC"; then 8324 ac_ct_TIC=$TIC 8325 # Extract the first word of "tic", so it can be a program name with args. 8326set dummy tic; ac_word=$2 8327echo "$as_me:8327: checking for $ac_word" >&5 8328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8329if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then 8330 echo $ECHO_N "(cached) $ECHO_C" >&6 8331else 8332 if test -n "$ac_ct_TIC"; then 8333 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test. 8334else 8335 ac_save_IFS=$IFS; IFS=$ac_path_separator 8336ac_dummy="$PATH" 8337for ac_dir in $ac_dummy; do 8338 IFS=$ac_save_IFS 8339 test -z "$ac_dir" && ac_dir=. 8340 $as_executable_p "$ac_dir/$ac_word" || continue 8341ac_cv_prog_ac_ct_TIC="tic" 8342echo "$as_me:8342: found $ac_dir/$ac_word" >&5 8343break 8344done 8345 8346fi 8347fi 8348ac_ct_TIC=$ac_cv_prog_ac_ct_TIC 8349if test -n "$ac_ct_TIC"; then 8350 echo "$as_me:8350: result: $ac_ct_TIC" >&5 8351echo "${ECHO_T}$ac_ct_TIC" >&6 8352else 8353 echo "$as_me:8353: result: no" >&5 8354echo "${ECHO_T}no" >&6 8355fi 8356 8357 TIC=$ac_ct_TIC 8358else 8359 TIC="$ac_cv_prog_TIC" 8360fi 8361 8362if test -n "$ac_tool_prefix"; then 8363 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args. 8364set dummy ${ac_tool_prefix}infocmp; ac_word=$2 8365echo "$as_me:8365: checking for $ac_word" >&5 8366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8367if test "${ac_cv_prog_INFOCMP+set}" = set; then 8368 echo $ECHO_N "(cached) $ECHO_C" >&6 8369else 8370 if test -n "$INFOCMP"; then 8371 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test. 8372else 8373 ac_save_IFS=$IFS; IFS=$ac_path_separator 8374ac_dummy="$PATH" 8375for ac_dir in $ac_dummy; do 8376 IFS=$ac_save_IFS 8377 test -z "$ac_dir" && ac_dir=. 8378 $as_executable_p "$ac_dir/$ac_word" || continue 8379ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp" 8380echo "$as_me:8380: found $ac_dir/$ac_word" >&5 8381break 8382done 8383 8384fi 8385fi 8386INFOCMP=$ac_cv_prog_INFOCMP 8387if test -n "$INFOCMP"; then 8388 echo "$as_me:8388: result: $INFOCMP" >&5 8389echo "${ECHO_T}$INFOCMP" >&6 8390else 8391 echo "$as_me:8391: result: no" >&5 8392echo "${ECHO_T}no" >&6 8393fi 8394 8395fi 8396if test -z "$ac_cv_prog_INFOCMP"; then 8397 ac_ct_INFOCMP=$INFOCMP 8398 # Extract the first word of "infocmp", so it can be a program name with args. 8399set dummy infocmp; ac_word=$2 8400echo "$as_me:8400: checking for $ac_word" >&5 8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8402if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then 8403 echo $ECHO_N "(cached) $ECHO_C" >&6 8404else 8405 if test -n "$ac_ct_INFOCMP"; then 8406 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test. 8407else 8408 ac_save_IFS=$IFS; IFS=$ac_path_separator 8409ac_dummy="$PATH" 8410for ac_dir in $ac_dummy; do 8411 IFS=$ac_save_IFS 8412 test -z "$ac_dir" && ac_dir=. 8413 $as_executable_p "$ac_dir/$ac_word" || continue 8414ac_cv_prog_ac_ct_INFOCMP="infocmp" 8415echo "$as_me:8415: found $ac_dir/$ac_word" >&5 8416break 8417done 8418 8419fi 8420fi 8421ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP 8422if test -n "$ac_ct_INFOCMP"; then 8423 echo "$as_me:8423: result: $ac_ct_INFOCMP" >&5 8424echo "${ECHO_T}$ac_ct_INFOCMP" >&6 8425else 8426 echo "$as_me:8426: result: no" >&5 8427echo "${ECHO_T}no" >&6 8428fi 8429 8430 INFOCMP=$ac_ct_INFOCMP 8431else 8432 INFOCMP="$ac_cv_prog_INFOCMP" 8433fi 8434 8435if test -n "$FALLBACK_LIST" 8436then 8437 8438# Check whether --with-tic-path or --without-tic-path was given. 8439if test "${with_tic_path+set}" = set; then 8440 withval="$with_tic_path" 8441 echo "$as_me:8441: checking for tic program for fallbacks" >&5 8442echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6 8443 TIC=$withval 8444 echo "$as_me:8444: result: $TIC" >&5 8445echo "${ECHO_T}$TIC" >&6 8446 8447if test "x$prefix" != xNONE; then 8448 cf_path_syntax="$prefix" 8449else 8450 cf_path_syntax="$ac_default_prefix" 8451fi 8452 8453case ".$TIC" in 8454(.\$\(*\)*|.\'*\'*) 8455 ;; 8456(..|./*|.\\*) 8457 ;; 8458(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8459 ;; 8460(.\$\{*prefix\}*|.\$\{*dir\}*) 8461 eval TIC="$TIC" 8462 case ".$TIC" in 8463 (.NONE/*) 8464 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%` 8465 ;; 8466 esac 8467 ;; 8468(.no|.NONE/*) 8469 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%` 8470 ;; 8471(*) 8472 { { echo "$as_me:8472: error: expected a pathname, not \"$TIC\"" >&5 8473echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;} 8474 { (exit 1); exit 1; }; } 8475 ;; 8476esac 8477 8478else 8479 8480test -z "$TIC" && TIC="tic" 8481for ac_prog in $TIC tic 8482do 8483 # Extract the first word of "$ac_prog", so it can be a program name with args. 8484set dummy $ac_prog; ac_word=$2 8485echo "$as_me:8485: checking for $ac_word" >&5 8486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8487if test "${ac_cv_path_TIC+set}" = set; then 8488 echo $ECHO_N "(cached) $ECHO_C" >&6 8489else 8490 case $TIC in 8491 [\\/]* | ?:[\\/]*) 8492 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 8493 ;; 8494 *) 8495 ac_save_IFS=$IFS; IFS=$ac_path_separator 8496ac_dummy="$PATH:/usr/local/ncurses/bin" 8497for ac_dir in $ac_dummy; do 8498 IFS=$ac_save_IFS 8499 test -z "$ac_dir" && ac_dir=. 8500 if $as_executable_p "$ac_dir/$ac_word"; then 8501 ac_cv_path_TIC="$ac_dir/$ac_word" 8502 echo "$as_me:8502: found $ac_dir/$ac_word" >&5 8503 break 8504fi 8505done 8506 8507 ;; 8508esac 8509fi 8510TIC=$ac_cv_path_TIC 8511 8512if test -n "$TIC"; then 8513 echo "$as_me:8513: result: $TIC" >&5 8514echo "${ECHO_T}$TIC" >&6 8515else 8516 echo "$as_me:8516: result: no" >&5 8517echo "${ECHO_T}no" >&6 8518fi 8519 8520 test -n "$TIC" && break 8521done 8522test -n "$TIC" || TIC="$TIC" 8523 8524cf_path_prog="" 8525cf_path_args="" 8526IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8527for cf_temp in $ac_cv_path_TIC 8528do 8529 if test -z "$cf_path_prog" ; then 8530 if test "$with_full_paths" = yes ; then 8531 8532if test "x$prefix" != xNONE; then 8533 cf_path_syntax="$prefix" 8534else 8535 cf_path_syntax="$ac_default_prefix" 8536fi 8537 8538case ".$cf_temp" in 8539(.\$\(*\)*|.\'*\'*) 8540 ;; 8541(..|./*|.\\*) 8542 ;; 8543(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8544 ;; 8545(.\$\{*prefix\}*|.\$\{*dir\}*) 8546 eval cf_temp="$cf_temp" 8547 case ".$cf_temp" in 8548 (.NONE/*) 8549 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8550 ;; 8551 esac 8552 ;; 8553(.no|.NONE/*) 8554 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8555 ;; 8556(*) 8557 break 8558 ;; 8559esac 8560 8561 cf_path_prog="$cf_temp" 8562 else 8563 cf_path_prog="`basename "$cf_temp"`" 8564 fi 8565 elif test -z "$cf_path_args" ; then 8566 cf_path_args="$cf_temp" 8567 else 8568 cf_path_args="$cf_path_args $cf_temp" 8569 fi 8570done 8571IFS="$cf_save_ifs" 8572 8573if test -n "$cf_path_prog" ; then 8574 8575echo "${as_me:-configure}:8575: testing defining path for ${cf_path_prog} ..." 1>&5 8576 8577cat >>confdefs.h <<EOF 8578#define TIC_PATH "$cf_path_prog" 8579EOF 8580 8581 test -n "$cf_path_args" && 8582cat >>confdefs.h <<EOF 8583#define TIC_ARGS "$cf_path_args" 8584EOF 8585 8586fi 8587 8588 if test -z "$TIC" 8589 then 8590 { echo "$as_me:8590: WARNING: no tic program found for fallbacks" >&5 8591echo "$as_me: WARNING: no tic program found for fallbacks" >&2;} 8592 fi 8593 8594fi; 8595 8596# Check whether --with-infocmp-path or --without-infocmp-path was given. 8597if test "${with_infocmp_path+set}" = set; then 8598 withval="$with_infocmp_path" 8599 echo "$as_me:8599: checking for infocmp program for fallbacks" >&5 8600echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6 8601 INFOCMP=$withval 8602 echo "$as_me:8602: result: $INFOCMP" >&5 8603echo "${ECHO_T}$INFOCMP" >&6 8604 8605if test "x$prefix" != xNONE; then 8606 cf_path_syntax="$prefix" 8607else 8608 cf_path_syntax="$ac_default_prefix" 8609fi 8610 8611case ".$INFOCMP" in 8612(.\$\(*\)*|.\'*\'*) 8613 ;; 8614(..|./*|.\\*) 8615 ;; 8616(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8617 ;; 8618(.\$\{*prefix\}*|.\$\{*dir\}*) 8619 eval INFOCMP="$INFOCMP" 8620 case ".$INFOCMP" in 8621 (.NONE/*) 8622 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%` 8623 ;; 8624 esac 8625 ;; 8626(.no|.NONE/*) 8627 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%` 8628 ;; 8629(*) 8630 { { echo "$as_me:8630: error: expected a pathname, not \"$INFOCMP\"" >&5 8631echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;} 8632 { (exit 1); exit 1; }; } 8633 ;; 8634esac 8635 8636else 8637 8638test -z "$INFOCMP" && INFOCMP="infocmp" 8639for ac_prog in $INFOCMP infocmp 8640do 8641 # Extract the first word of "$ac_prog", so it can be a program name with args. 8642set dummy $ac_prog; ac_word=$2 8643echo "$as_me:8643: checking for $ac_word" >&5 8644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8645if test "${ac_cv_path_INFOCMP+set}" = set; then 8646 echo $ECHO_N "(cached) $ECHO_C" >&6 8647else 8648 case $INFOCMP in 8649 [\\/]* | ?:[\\/]*) 8650 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path. 8651 ;; 8652 *) 8653 ac_save_IFS=$IFS; IFS=$ac_path_separator 8654ac_dummy="$PATH:/usr/local/ncurses/bin" 8655for ac_dir in $ac_dummy; do 8656 IFS=$ac_save_IFS 8657 test -z "$ac_dir" && ac_dir=. 8658 if $as_executable_p "$ac_dir/$ac_word"; then 8659 ac_cv_path_INFOCMP="$ac_dir/$ac_word" 8660 echo "$as_me:8660: found $ac_dir/$ac_word" >&5 8661 break 8662fi 8663done 8664 8665 ;; 8666esac 8667fi 8668INFOCMP=$ac_cv_path_INFOCMP 8669 8670if test -n "$INFOCMP"; then 8671 echo "$as_me:8671: result: $INFOCMP" >&5 8672echo "${ECHO_T}$INFOCMP" >&6 8673else 8674 echo "$as_me:8674: result: no" >&5 8675echo "${ECHO_T}no" >&6 8676fi 8677 8678 test -n "$INFOCMP" && break 8679done 8680test -n "$INFOCMP" || INFOCMP="$INFOCMP" 8681 8682cf_path_prog="" 8683cf_path_args="" 8684IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8685for cf_temp in $ac_cv_path_INFOCMP 8686do 8687 if test -z "$cf_path_prog" ; then 8688 if test "$with_full_paths" = yes ; then 8689 8690if test "x$prefix" != xNONE; then 8691 cf_path_syntax="$prefix" 8692else 8693 cf_path_syntax="$ac_default_prefix" 8694fi 8695 8696case ".$cf_temp" in 8697(.\$\(*\)*|.\'*\'*) 8698 ;; 8699(..|./*|.\\*) 8700 ;; 8701(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8702 ;; 8703(.\$\{*prefix\}*|.\$\{*dir\}*) 8704 eval cf_temp="$cf_temp" 8705 case ".$cf_temp" in 8706 (.NONE/*) 8707 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8708 ;; 8709 esac 8710 ;; 8711(.no|.NONE/*) 8712 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8713 ;; 8714(*) 8715 break 8716 ;; 8717esac 8718 8719 cf_path_prog="$cf_temp" 8720 else 8721 cf_path_prog="`basename "$cf_temp"`" 8722 fi 8723 elif test -z "$cf_path_args" ; then 8724 cf_path_args="$cf_temp" 8725 else 8726 cf_path_args="$cf_path_args $cf_temp" 8727 fi 8728done 8729IFS="$cf_save_ifs" 8730 8731if test -n "$cf_path_prog" ; then 8732 8733echo "${as_me:-configure}:8733: testing defining path for ${cf_path_prog} ..." 1>&5 8734 8735cat >>confdefs.h <<EOF 8736#define INFOCMP_PATH "$cf_path_prog" 8737EOF 8738 8739 test -n "$cf_path_args" && 8740cat >>confdefs.h <<EOF 8741#define INFOCMP_ARGS "$cf_path_args" 8742EOF 8743 8744fi 8745 8746 if test -z "$INFOCMP" 8747 then 8748 { echo "$as_me:8748: WARNING: no infocmp program found for fallbacks" >&5 8749echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;} 8750 fi 8751 8752fi; 8753 8754 test -z "$TIC" && FALLBACK_LIST= 8755 test -z "$INFOCMP" && FALLBACK_LIST= 8756 if test -z "$FALLBACK_LIST" 8757 then 8758 { echo "$as_me:8758: WARNING: ignoring fallback option because tic/infocmp are not available" >&5 8759echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;} 8760 fi 8761fi 8762 8763USE_FALLBACKS= 8764test -z "$FALLBACK_LIST" && USE_FALLBACKS="#" 8765 8766echo "$as_me:8766: checking if you want modern xterm or antique" >&5 8767echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6 8768 8769# Check whether --with-xterm-new or --without-xterm-new was given. 8770if test "${with_xterm_new+set}" = set; then 8771 withval="$with_xterm_new" 8772 with_xterm_new=$withval 8773else 8774 with_xterm_new=yes 8775fi; 8776case "$with_xterm_new" in 8777(no) with_xterm_new=xterm-old;; 8778(*) with_xterm_new=xterm-new;; 8779esac 8780echo "$as_me:8780: result: $with_xterm_new" >&5 8781echo "${ECHO_T}$with_xterm_new" >&6 8782WHICH_XTERM=$with_xterm_new 8783 8784echo "$as_me:8784: checking if xterm backspace sends BS or DEL" >&5 8785echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6 8786 8787# Check whether --with-xterm-kbs or --without-xterm-kbs was given. 8788if test "${with_xterm_kbs+set}" = set; then 8789 withval="$with_xterm_kbs" 8790 with_xterm_kbs=$withval 8791else 8792 with_xterm_kbs=BS 8793fi; 8794case x$with_xterm_kbs in 8795(xyes|xno|xBS|xbs|x8) 8796 with_xterm_kbs=BS 8797 ;; 8798(xDEL|xdel|x127) 8799 with_xterm_kbs=DEL 8800 ;; 8801(*) 8802 with_xterm_kbs=$withval 8803 ;; 8804esac 8805echo "$as_me:8805: result: $with_xterm_kbs" >&5 8806echo "${ECHO_T}$with_xterm_kbs" >&6 8807XTERM_KBS=$with_xterm_kbs 8808 8809MAKE_TERMINFO= 8810if test "$use_database" = no ; then 8811 TERMINFO="${datadir}/terminfo" 8812 MAKE_TERMINFO="#" 8813else 8814 8815echo "$as_me:8815: checking for list of terminfo directories" >&5 8816echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6 8817 8818# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given. 8819if test "${with_terminfo_dirs+set}" = set; then 8820 withval="$with_terminfo_dirs" 8821 8822else 8823 withval=${TERMINFO_DIRS:-${datadir}/terminfo} 8824fi; 8825IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 8826cf_dst_path= 8827for cf_src_path in $withval 8828do 8829 8830if test "x$prefix" != xNONE; then 8831 cf_path_syntax="$prefix" 8832else 8833 cf_path_syntax="$ac_default_prefix" 8834fi 8835 8836case ".$cf_src_path" in 8837(.\$\(*\)*|.\'*\'*) 8838 ;; 8839(..|./*|.\\*) 8840 ;; 8841(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8842 ;; 8843(.\$\{*prefix\}*|.\$\{*dir\}*) 8844 eval cf_src_path="$cf_src_path" 8845 case ".$cf_src_path" in 8846 (.NONE/*) 8847 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 8848 ;; 8849 esac 8850 ;; 8851(.no|.NONE/*) 8852 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 8853 ;; 8854(*) 8855 { { echo "$as_me:8855: error: expected a pathname, not \"$cf_src_path\"" >&5 8856echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 8857 { (exit 1); exit 1; }; } 8858 ;; 8859esac 8860 8861 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR" 8862 cf_dst_path="${cf_dst_path}${cf_src_path}" 8863done 8864IFS="$ac_save_ifs" 8865 8866# This may use the prefix/exec_prefix symbols which will only yield "NONE" 8867# so we have to check/work around. We do prefer the result of "eval"... 8868eval cf_dst_eval="$cf_dst_path" 8869case "x$cf_dst_eval" in 8870(xNONE*) 8871 TERMINFO_DIRS=$cf_dst_path 8872 ;; 8873(*) 8874 TERMINFO_DIRS="$cf_dst_eval" 8875 ;; 8876esac 8877 8878echo "$as_me:8878: result: $TERMINFO_DIRS" >&5 8879echo "${ECHO_T}$TERMINFO_DIRS" >&6 8880test -n "$TERMINFO_DIRS" && 8881cat >>confdefs.h <<EOF 8882#define TERMINFO_DIRS "$TERMINFO_DIRS" 8883EOF 8884 8885case "x$TERMINFO" in 8886x???:*) 8887 { echo "$as_me:8887: WARNING: ignoring non-directory/file TERMINFO value" >&5 8888echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;} 8889 unset TERMINFO 8890 ;; 8891esac 8892 8893echo "$as_me:8893: checking for default terminfo directory" >&5 8894echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6 8895 8896# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given. 8897if test "${with_default_terminfo_dir+set}" = set; then 8898 withval="$with_default_terminfo_dir" 8899 8900else 8901 withval="${TERMINFO:-${datadir}/terminfo}" 8902fi; if test -n "${datadir}/terminfo" ; then 8903 8904if test "x$prefix" != xNONE; then 8905 cf_path_syntax="$prefix" 8906else 8907 cf_path_syntax="$ac_default_prefix" 8908fi 8909 8910case ".$withval" in 8911(.\$\(*\)*|.\'*\'*) 8912 ;; 8913(..|./*|.\\*) 8914 ;; 8915(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8916 ;; 8917(.\$\{*prefix\}*|.\$\{*dir\}*) 8918 eval withval="$withval" 8919 case ".$withval" in 8920 (.NONE/*) 8921 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 8922 ;; 8923 esac 8924 ;; 8925(.no|.NONE/*) 8926 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 8927 ;; 8928(*) 8929 { { echo "$as_me:8929: error: expected a pathname, not \"$withval\"" >&5 8930echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 8931 { (exit 1); exit 1; }; } 8932 ;; 8933esac 8934 8935fi 8936eval TERMINFO="$withval" 8937 8938echo "$as_me:8938: result: $TERMINFO" >&5 8939echo "${ECHO_T}$TERMINFO" >&6 8940 8941cat >>confdefs.h <<EOF 8942#define TERMINFO "$TERMINFO" 8943EOF 8944 8945fi 8946 8947### use option --disable-big-core to make tic run on small machines 8948### We need 4Mb, check if we can allocate 50% more than that. 8949echo "$as_me:8949: checking if big-core option selected" >&5 8950echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6 8951 8952# Check whether --enable-big-core or --disable-big-core was given. 8953if test "${enable_big_core+set}" = set; then 8954 enableval="$enable_big_core" 8955 with_big_core=$enableval 8956else 8957 if test "$cross_compiling" = yes; then 8958 with_big_core=no 8959else 8960 cat >"conftest.$ac_ext" <<_ACEOF 8961#line 8961 "configure" 8962#include "confdefs.h" 8963 8964#include <stdlib.h> 8965#include <string.h> 8966int main() { 8967 unsigned long n = 6000000L; 8968 char *s = malloc(n); 8969 if (s != 0) 8970 s[0] = s[n-1] = 0; 8971 ${cf_cv_main_return:-return}(s == 0); 8972} 8973_ACEOF 8974rm -f "conftest$ac_exeext" 8975if { (eval echo "$as_me:8975: \"$ac_link\"") >&5 8976 (eval $ac_link) 2>&5 8977 ac_status=$? 8978 echo "$as_me:8978: \$? = $ac_status" >&5 8979 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 8980 { (eval echo "$as_me:8980: \"$ac_try\"") >&5 8981 (eval $ac_try) 2>&5 8982 ac_status=$? 8983 echo "$as_me:8983: \$? = $ac_status" >&5 8984 (exit "$ac_status"); }; }; then 8985 with_big_core=yes 8986else 8987 echo "$as_me: program exited with status $ac_status" >&5 8988echo "$as_me: failed program was:" >&5 8989cat "conftest.$ac_ext" >&5 8990with_big_core=no 8991fi 8992rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 8993fi 8994fi; 8995echo "$as_me:8995: result: $with_big_core" >&5 8996echo "${ECHO_T}$with_big_core" >&6 8997test "x$with_big_core" = "xyes" && 8998cat >>confdefs.h <<\EOF 8999#define HAVE_BIG_CORE 1 9000EOF 9001 9002### ISO C only guarantees 512-char strings, we have tables which load faster 9003### when constructed using "big" strings. More than the C compiler, the awk 9004### program is a limit on most vendor UNIX systems. Check that we can build. 9005echo "$as_me:9005: checking if big-strings option selected" >&5 9006echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6 9007 9008# Check whether --enable-big-strings or --disable-big-strings was given. 9009if test "${enable_big_strings+set}" = set; then 9010 enableval="$enable_big_strings" 9011 with_big_strings=$enableval 9012else 9013 9014 case x$AWK in 9015 (x) 9016 eval with_big_strings=no 9017 ;; 9018 (*) 9019 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \ 9020 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then 9021 eval with_big_strings=yes 9022 else 9023 eval with_big_strings=no 9024 fi 9025 ;; 9026 esac 9027 9028fi; 9029echo "$as_me:9029: result: $with_big_strings" >&5 9030echo "${ECHO_T}$with_big_strings" >&6 9031 9032USE_BIG_STRINGS=0 9033test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1 9034 9035### use option --enable-termcap to compile in the termcap fallback support 9036echo "$as_me:9036: checking if you want termcap-fallback support" >&5 9037echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6 9038 9039# Check whether --enable-termcap or --disable-termcap was given. 9040if test "${enable_termcap+set}" = set; then 9041 enableval="$enable_termcap" 9042 with_termcap=$enableval 9043else 9044 with_termcap=no 9045fi; 9046echo "$as_me:9046: result: $with_termcap" >&5 9047echo "${ECHO_T}$with_termcap" >&6 9048 9049NCURSES_USE_TERMCAP=0 9050if test "x$with_termcap" != "xyes" ; then 9051 if test "$use_database" = no ; then 9052 if test -z "$with_fallback" ; then 9053 { { echo "$as_me:9053: error: You have disabled the database w/o specifying fallbacks" >&5 9054echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;} 9055 { (exit 1); exit 1; }; } 9056 fi 9057 fi 9058 9059cat >>confdefs.h <<\EOF 9060#define PURE_TERMINFO 1 9061EOF 9062 9063else 9064 9065 if test "$with_ticlib" != no ; then 9066 { { echo "$as_me:9066: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5 9067echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;} 9068 { (exit 1); exit 1; }; } 9069 fi 9070 9071 NCURSES_USE_TERMCAP=1 9072 echo "$as_me:9072: checking for list of termcap files" >&5 9073echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6 9074 9075# Check whether --with-termpath or --without-termpath was given. 9076if test "${with_termpath+set}" = set; then 9077 withval="$with_termpath" 9078 9079else 9080 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap} 9081fi; 9082IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 9083cf_dst_path= 9084for cf_src_path in $withval 9085do 9086 9087if test "x$prefix" != xNONE; then 9088 cf_path_syntax="$prefix" 9089else 9090 cf_path_syntax="$ac_default_prefix" 9091fi 9092 9093case ".$cf_src_path" in 9094(.\$\(*\)*|.\'*\'*) 9095 ;; 9096(..|./*|.\\*) 9097 ;; 9098(.[a-zA-Z]:[\\/]*) # OS/2 EMX 9099 ;; 9100(.\$\{*prefix\}*|.\$\{*dir\}*) 9101 eval cf_src_path="$cf_src_path" 9102 case ".$cf_src_path" in 9103 (.NONE/*) 9104 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9105 ;; 9106 esac 9107 ;; 9108(.no|.NONE/*) 9109 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9110 ;; 9111(*) 9112 { { echo "$as_me:9112: error: expected a pathname, not \"$cf_src_path\"" >&5 9113echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 9114 { (exit 1); exit 1; }; } 9115 ;; 9116esac 9117 9118 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR" 9119 cf_dst_path="${cf_dst_path}${cf_src_path}" 9120done 9121IFS="$ac_save_ifs" 9122 9123# This may use the prefix/exec_prefix symbols which will only yield "NONE" 9124# so we have to check/work around. We do prefer the result of "eval"... 9125eval cf_dst_eval="$cf_dst_path" 9126case "x$cf_dst_eval" in 9127(xNONE*) 9128 TERMPATH=$cf_dst_path 9129 ;; 9130(*) 9131 TERMPATH="$cf_dst_eval" 9132 ;; 9133esac 9134 9135 echo "$as_me:9135: result: $TERMPATH" >&5 9136echo "${ECHO_T}$TERMPATH" >&6 9137 test -n "$TERMPATH" && 9138cat >>confdefs.h <<EOF 9139#define TERMPATH "$TERMPATH" 9140EOF 9141 9142 ### use option --enable-getcap to use a hacked getcap for reading termcaps 9143 echo "$as_me:9143: checking if fast termcap-loader is needed" >&5 9144echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6 9145 9146# Check whether --enable-getcap or --disable-getcap was given. 9147if test "${enable_getcap+set}" = set; then 9148 enableval="$enable_getcap" 9149 with_getcap=$enableval 9150else 9151 with_getcap=no 9152fi; 9153 echo "$as_me:9153: result: $with_getcap" >&5 9154echo "${ECHO_T}$with_getcap" >&6 9155 test "x$with_getcap" = "xyes" && 9156cat >>confdefs.h <<\EOF 9157#define USE_GETCAP 1 9158EOF 9159 9160 echo "$as_me:9160: checking if translated termcaps will be cached in ~/.terminfo" >&5 9161echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6 9162 9163# Check whether --enable-getcap-cache or --disable-getcap-cache was given. 9164if test "${enable_getcap_cache+set}" = set; then 9165 enableval="$enable_getcap_cache" 9166 with_getcap_cache=$enableval 9167else 9168 with_getcap_cache=no 9169fi; 9170 echo "$as_me:9170: result: $with_getcap_cache" >&5 9171echo "${ECHO_T}$with_getcap_cache" >&6 9172 test "x$with_getcap_cache" = "xyes" && 9173cat >>confdefs.h <<\EOF 9174#define USE_GETCAP_CACHE 1 9175EOF 9176 9177fi 9178 9179### Use option --disable-home-terminfo to completely remove ~/.terminfo 9180echo "$as_me:9180: checking if ~/.terminfo is wanted" >&5 9181echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6 9182 9183# Check whether --enable-home-terminfo or --disable-home-terminfo was given. 9184if test "${enable_home_terminfo+set}" = set; then 9185 enableval="$enable_home_terminfo" 9186 with_home_terminfo=$enableval 9187else 9188 with_home_terminfo=yes 9189fi; 9190echo "$as_me:9190: result: $with_home_terminfo" >&5 9191echo "${ECHO_T}$with_home_terminfo" >&6 9192test "x$with_home_terminfo" = "xyes" && 9193cat >>confdefs.h <<\EOF 9194#define USE_HOME_TERMINFO 1 9195EOF 9196 9197echo "$as_me:9197: checking if you want to use restricted environment when running as root" >&5 9198echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6 9199 9200# Check whether --enable-root-environ or --disable-root-environ was given. 9201if test "${enable_root_environ+set}" = set; then 9202 enableval="$enable_root_environ" 9203 with_root_environ=$enableval 9204else 9205 with_root_environ=yes 9206fi; 9207echo "$as_me:9207: result: $with_root_environ" >&5 9208echo "${ECHO_T}$with_root_environ" >&6 9209test "x$with_root_environ" = xyes && 9210cat >>confdefs.h <<\EOF 9211#define USE_ROOT_ENVIRON 1 9212EOF 9213 9214### Use option --enable-symlinks to make tic use symlinks, not hard links 9215### to reduce storage requirements for the terminfo database. 9216 9217for ac_header in \ 9218unistd.h \ 9219 9220do 9221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9222echo "$as_me:9222: checking for $ac_header" >&5 9223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9224if eval "test \"\${$as_ac_Header+set}\" = set"; then 9225 echo $ECHO_N "(cached) $ECHO_C" >&6 9226else 9227 cat >"conftest.$ac_ext" <<_ACEOF 9228#line 9228 "configure" 9229#include "confdefs.h" 9230#include <$ac_header> 9231_ACEOF 9232if { (eval echo "$as_me:9232: \"$ac_cpp "conftest.$ac_ext"\"") >&5 9233 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 9234 ac_status=$? 9235 $EGREP -v '^ *\+' conftest.er1 >conftest.err 9236 rm -f conftest.er1 9237 cat conftest.err >&5 9238 echo "$as_me:9238: \$? = $ac_status" >&5 9239 (exit "$ac_status"); } >/dev/null; then 9240 if test -s conftest.err; then 9241 ac_cpp_err=$ac_c_preproc_warn_flag 9242 else 9243 ac_cpp_err= 9244 fi 9245else 9246 ac_cpp_err=yes 9247fi 9248if test -z "$ac_cpp_err"; then 9249 eval "$as_ac_Header=yes" 9250else 9251 echo "$as_me: failed program was:" >&5 9252 cat "conftest.$ac_ext" >&5 9253 eval "$as_ac_Header=no" 9254fi 9255rm -f conftest.err "conftest.$ac_ext" 9256fi 9257echo "$as_me:9257: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 9258echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 9259if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 9260 cat >>confdefs.h <<EOF 9261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9262EOF 9263 9264fi 9265done 9266 9267for ac_func in \ 9268 remove \ 9269 unlink 9270do 9271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9272echo "$as_me:9272: checking for $ac_func" >&5 9273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9274if eval "test \"\${$as_ac_var+set}\" = set"; then 9275 echo $ECHO_N "(cached) $ECHO_C" >&6 9276else 9277 cat >"conftest.$ac_ext" <<_ACEOF 9278#line 9278 "configure" 9279#include "confdefs.h" 9280#define $ac_func autoconf_temporary 9281#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9282#undef $ac_func 9283 9284#ifdef __cplusplus 9285extern "C" 9286#endif 9287 9288/* We use char because int might match the return type of a gcc2 9289 builtin and then its argument prototype would still apply. */ 9290char $ac_func (void); 9291 9292int 9293main (void) 9294{ 9295 9296/* The GNU C library defines stubs for functions which it implements 9297 to always fail with ENOSYS. Some functions are actually named 9298 something starting with __ and the normal name is an alias. */ 9299#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9300#error found stub for $ac_func 9301#endif 9302 9303 return $ac_func (); 9304 ; 9305 return 0; 9306} 9307_ACEOF 9308rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9309if { (eval echo "$as_me:9309: \"$ac_link\"") >&5 9310 (eval $ac_link) 2>&5 9311 ac_status=$? 9312 echo "$as_me:9312: \$? = $ac_status" >&5 9313 (exit "$ac_status"); } && 9314 { ac_try='test -s "conftest$ac_exeext"' 9315 { (eval echo "$as_me:9315: \"$ac_try\"") >&5 9316 (eval $ac_try) 2>&5 9317 ac_status=$? 9318 echo "$as_me:9318: \$? = $ac_status" >&5 9319 (exit "$ac_status"); }; }; then 9320 eval "$as_ac_var=yes" 9321else 9322 echo "$as_me: failed program was:" >&5 9323cat "conftest.$ac_ext" >&5 9324eval "$as_ac_var=no" 9325fi 9326rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9327fi 9328echo "$as_me:9328: result: `eval echo '${'"$as_ac_var"'}'`" >&5 9329echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 9330if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 9331 cat >>confdefs.h <<EOF 9332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9333EOF 9334 9335fi 9336done 9337 9338if test "$cross_compiling" = yes ; then 9339 9340for ac_func in \ 9341 link \ 9342 symlink 9343do 9344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9345echo "$as_me:9345: checking for $ac_func" >&5 9346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9347if eval "test \"\${$as_ac_var+set}\" = set"; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349else 9350 cat >"conftest.$ac_ext" <<_ACEOF 9351#line 9351 "configure" 9352#include "confdefs.h" 9353#define $ac_func autoconf_temporary 9354#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9355#undef $ac_func 9356 9357#ifdef __cplusplus 9358extern "C" 9359#endif 9360 9361/* We use char because int might match the return type of a gcc2 9362 builtin and then its argument prototype would still apply. */ 9363char $ac_func (void); 9364 9365int 9366main (void) 9367{ 9368 9369/* The GNU C library defines stubs for functions which it implements 9370 to always fail with ENOSYS. Some functions are actually named 9371 something starting with __ and the normal name is an alias. */ 9372#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9373#error found stub for $ac_func 9374#endif 9375 9376 return $ac_func (); 9377 ; 9378 return 0; 9379} 9380_ACEOF 9381rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9382if { (eval echo "$as_me:9382: \"$ac_link\"") >&5 9383 (eval $ac_link) 2>&5 9384 ac_status=$? 9385 echo "$as_me:9385: \$? = $ac_status" >&5 9386 (exit "$ac_status"); } && 9387 { ac_try='test -s "conftest$ac_exeext"' 9388 { (eval echo "$as_me:9388: \"$ac_try\"") >&5 9389 (eval $ac_try) 2>&5 9390 ac_status=$? 9391 echo "$as_me:9391: \$? = $ac_status" >&5 9392 (exit "$ac_status"); }; }; then 9393 eval "$as_ac_var=yes" 9394else 9395 echo "$as_me: failed program was:" >&5 9396cat "conftest.$ac_ext" >&5 9397eval "$as_ac_var=no" 9398fi 9399rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9400fi 9401echo "$as_me:9401: result: `eval echo '${'"$as_ac_var"'}'`" >&5 9402echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 9403if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 9404 cat >>confdefs.h <<EOF 9405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9406EOF 9407 9408fi 9409done 9410 9411else 9412 echo "$as_me:9412: checking if link/symlink functions work" >&5 9413echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6 9414if test "${cf_cv_link_funcs+set}" = set; then 9415 echo $ECHO_N "(cached) $ECHO_C" >&6 9416else 9417 9418 cf_cv_link_funcs= 9419 for cf_func in link symlink ; do 9420 if test "$cross_compiling" = yes; then 9421 9422 eval 'ac_cv_func_'$cf_func'=error' 9423else 9424 cat >"conftest.$ac_ext" <<_ACEOF 9425#line 9425 "configure" 9426#include "confdefs.h" 9427 9428#include <sys/types.h> 9429#include <sys/stat.h> 9430#ifdef HAVE_UNISTD_H 9431#include <unistd.h> 9432#endif 9433int main(void) 9434{ 9435 int fail = 0; 9436 char *src = "config.log"; 9437 char *dst = "conftest.chk"; 9438 struct stat src_sb; 9439 struct stat dst_sb; 9440 9441 stat(src, &src_sb); 9442 fail = ($cf_func("config.log", "conftest.chk") < 0) 9443 || (stat(dst, &dst_sb) < 0) 9444 || (dst_sb.st_mtime != src_sb.st_mtime); 9445#ifdef HAVE_UNLINK 9446 unlink(dst); 9447#else 9448 remove(dst); 9449#endif 9450 ${cf_cv_main_return:-return} (fail); 9451} 9452 9453_ACEOF 9454rm -f "conftest$ac_exeext" 9455if { (eval echo "$as_me:9455: \"$ac_link\"") >&5 9456 (eval $ac_link) 2>&5 9457 ac_status=$? 9458 echo "$as_me:9458: \$? = $ac_status" >&5 9459 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5 9461 (eval $ac_try) 2>&5 9462 ac_status=$? 9463 echo "$as_me:9463: \$? = $ac_status" >&5 9464 (exit "$ac_status"); }; }; then 9465 9466 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func" 9467 eval 'ac_cv_func_'$cf_func'=yes' 9468else 9469 echo "$as_me: program exited with status $ac_status" >&5 9470echo "$as_me: failed program was:" >&5 9471cat "conftest.$ac_ext" >&5 9472 9473 eval 'ac_cv_func_'$cf_func'=no' 9474fi 9475rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 9476fi 9477 done 9478 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no 9479 9480fi 9481echo "$as_me:9481: result: $cf_cv_link_funcs" >&5 9482echo "${ECHO_T}$cf_cv_link_funcs" >&6 9483 test "$ac_cv_func_link" = yes && 9484cat >>confdefs.h <<\EOF 9485#define HAVE_LINK 1 9486EOF 9487 9488 test "$ac_cv_func_symlink" = yes && 9489cat >>confdefs.h <<\EOF 9490#define HAVE_SYMLINK 1 9491EOF 9492 9493fi 9494 9495with_links=no 9496with_symlinks=no 9497 9498# soft links (symbolic links) are useful for some systems where hard links do 9499# not work, or to make it simpler to copy terminfo trees around. 9500if test "x$ac_cv_func_symlink" = xyes ; then 9501 echo "$as_me:9501: checking if tic should use symbolic links" >&5 9502echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6 9503 9504# Check whether --enable-symlinks or --disable-symlinks was given. 9505if test "${enable_symlinks+set}" = set; then 9506 enableval="$enable_symlinks" 9507 with_symlinks=$enableval 9508else 9509 with_symlinks=no 9510fi; 9511 echo "$as_me:9511: result: $with_symlinks" >&5 9512echo "${ECHO_T}$with_symlinks" >&6 9513fi 9514 9515# If we have hard links and did not choose to use soft links instead, there is 9516# no reason to make this choice optional - use the hard links. 9517if test "$with_symlinks" = no ; then 9518 echo "$as_me:9518: checking if tic should use hard links" >&5 9519echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6 9520 if test "x$ac_cv_func_link" = xyes ; then 9521 with_links=yes 9522 else 9523 with_links=no 9524 fi 9525 echo "$as_me:9525: result: $with_links" >&5 9526echo "${ECHO_T}$with_links" >&6 9527fi 9528 9529test "x$with_links" = xyes && 9530cat >>confdefs.h <<\EOF 9531#define USE_LINKS 1 9532EOF 9533 9534test "x$with_symlinks" = xyes && 9535cat >>confdefs.h <<\EOF 9536#define USE_SYMLINKS 1 9537EOF 9538 9539### use option --enable-broken-linker to force on use of broken-linker support 9540 9541echo "$as_me:9541: checking if you want broken-linker support code" >&5 9542echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6 9543 9544# Check whether --enable-broken_linker or --disable-broken_linker was given. 9545if test "${enable_broken_linker+set}" = set; then 9546 enableval="$enable_broken_linker" 9547 with_broken_linker=$enableval 9548else 9549 with_broken_linker=no 9550fi; 9551echo "$as_me:9551: result: $with_broken_linker" >&5 9552echo "${ECHO_T}$with_broken_linker" >&6 9553 9554: "${BROKEN_LINKER:=0}" 9555if test "x$with_broken_linker" = xyes ; then 9556 9557cat >>confdefs.h <<\EOF 9558#define BROKEN_LINKER 1 9559EOF 9560 9561 BROKEN_LINKER=1 9562fi 9563 9564### use option --enable-bsdpad to have tputs process BSD-style prefix padding 9565echo "$as_me:9565: checking if tputs should process BSD-style prefix padding" >&5 9566echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6 9567 9568# Check whether --enable-bsdpad or --disable-bsdpad was given. 9569if test "${enable_bsdpad+set}" = set; then 9570 enableval="$enable_bsdpad" 9571 with_bsdpad=$enableval 9572else 9573 with_bsdpad=no 9574fi; 9575echo "$as_me:9575: result: $with_bsdpad" >&5 9576echo "${ECHO_T}$with_bsdpad" >&6 9577test "x$with_bsdpad" = xyes && 9578cat >>confdefs.h <<\EOF 9579#define BSD_TPUTS 1 9580EOF 9581 9582### use option --enable-widec to turn on use of wide-character support 9583NCURSES_CH_T=chtype 9584NCURSES_LIBUTF8=0 9585 9586NEED_WCHAR_H=0 9587NCURSES_MBSTATE_T=0 9588NCURSES_WCHAR_T=0 9589NCURSES_WINT_T=0 9590 9591# Check to define _XOPEN_SOURCE "automatically" 9592CPPFLAGS_before_XOPEN="$CPPFLAGS" 9593 9594echo "$as_me:9594: checking if the POSIX test-macros are already defined" >&5 9595echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 9596if test "${cf_cv_posix_visible+set}" = set; then 9597 echo $ECHO_N "(cached) $ECHO_C" >&6 9598else 9599 9600cat >"conftest.$ac_ext" <<_ACEOF 9601#line 9601 "configure" 9602#include "confdefs.h" 9603#include <stdio.h> 9604int 9605main (void) 9606{ 9607 9608#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 9609 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 9610 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 9611 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 9612#error conflicting symbols found 9613#endif 9614 9615 ; 9616 return 0; 9617} 9618_ACEOF 9619rm -f "conftest.$ac_objext" 9620if { (eval echo "$as_me:9620: \"$ac_compile\"") >&5 9621 (eval $ac_compile) 2>&5 9622 ac_status=$? 9623 echo "$as_me:9623: \$? = $ac_status" >&5 9624 (exit "$ac_status"); } && 9625 { ac_try='test -s "conftest.$ac_objext"' 9626 { (eval echo "$as_me:9626: \"$ac_try\"") >&5 9627 (eval $ac_try) 2>&5 9628 ac_status=$? 9629 echo "$as_me:9629: \$? = $ac_status" >&5 9630 (exit "$ac_status"); }; }; then 9631 cf_cv_posix_visible=no 9632else 9633 echo "$as_me: failed program was:" >&5 9634cat "conftest.$ac_ext" >&5 9635cf_cv_posix_visible=yes 9636fi 9637rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9638 9639fi 9640echo "$as_me:9640: result: $cf_cv_posix_visible" >&5 9641echo "${ECHO_T}$cf_cv_posix_visible" >&6 9642 9643if test "$cf_cv_posix_visible" = no; then 9644 9645cf_XOPEN_SOURCE=600 9646cf_POSIX_C_SOURCE=199506L 9647cf_xopen_source= 9648 9649case "$host_os" in 9650(aix[4-7]*) 9651 cf_xopen_source="-D_ALL_SOURCE" 9652 ;; 9653(msys) 9654 cf_XOPEN_SOURCE=600 9655 ;; 9656(darwin[0-8].*) 9657 cf_xopen_source="-D_APPLE_C_SOURCE" 9658 ;; 9659(darwin*) 9660 cf_xopen_source="-D_DARWIN_C_SOURCE" 9661 cf_XOPEN_SOURCE= 9662 ;; 9663(freebsd*|dragonfly*|midnightbsd*) 9664 # 5.x headers associate 9665 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 9666 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 9667 cf_POSIX_C_SOURCE=200112L 9668 cf_XOPEN_SOURCE=600 9669 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 9670 ;; 9671(hpux11*) 9672 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 9673 ;; 9674(hpux*) 9675 cf_xopen_source="-D_HPUX_SOURCE" 9676 ;; 9677(irix[56].*) 9678 cf_xopen_source="-D_SGI_SOURCE" 9679 cf_XOPEN_SOURCE= 9680 ;; 9681(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 9682 9683cf_gnu_xopen_source=$cf_XOPEN_SOURCE 9684 9685echo "$as_me:9685: checking if this is the GNU C library" >&5 9686echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 9687if test "${cf_cv_gnu_library+set}" = set; then 9688 echo $ECHO_N "(cached) $ECHO_C" >&6 9689else 9690 9691cat >"conftest.$ac_ext" <<_ACEOF 9692#line 9692 "configure" 9693#include "confdefs.h" 9694#include <sys/types.h> 9695int 9696main (void) 9697{ 9698 9699 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 9700 return 0; 9701 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 9702 return 0; 9703 #else 9704 # error not GNU C library 9705 #endif 9706 ; 9707 return 0; 9708} 9709_ACEOF 9710rm -f "conftest.$ac_objext" 9711if { (eval echo "$as_me:9711: \"$ac_compile\"") >&5 9712 (eval $ac_compile) 2>&5 9713 ac_status=$? 9714 echo "$as_me:9714: \$? = $ac_status" >&5 9715 (exit "$ac_status"); } && 9716 { ac_try='test -s "conftest.$ac_objext"' 9717 { (eval echo "$as_me:9717: \"$ac_try\"") >&5 9718 (eval $ac_try) 2>&5 9719 ac_status=$? 9720 echo "$as_me:9720: \$? = $ac_status" >&5 9721 (exit "$ac_status"); }; }; then 9722 cf_cv_gnu_library=yes 9723else 9724 echo "$as_me: failed program was:" >&5 9725cat "conftest.$ac_ext" >&5 9726cf_cv_gnu_library=no 9727fi 9728rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9729 9730fi 9731echo "$as_me:9731: result: $cf_cv_gnu_library" >&5 9732echo "${ECHO_T}$cf_cv_gnu_library" >&6 9733 9734if test x$cf_cv_gnu_library = xyes; then 9735 9736 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 9737 # was changed to help a little. newlib incorporated the change about 4 9738 # years later. 9739 echo "$as_me:9739: checking if _DEFAULT_SOURCE can be used as a basis" >&5 9740echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 9741if test "${cf_cv_gnu_library_219+set}" = set; then 9742 echo $ECHO_N "(cached) $ECHO_C" >&6 9743else 9744 9745 cf_save="$CPPFLAGS" 9746 9747 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 9748 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 9749 9750 cat >"conftest.$ac_ext" <<_ACEOF 9751#line 9751 "configure" 9752#include "confdefs.h" 9753#include <sys/types.h> 9754int 9755main (void) 9756{ 9757 9758 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 9759 return 0; 9760 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 9761 return 0; 9762 #else 9763 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 9764 #endif 9765 ; 9766 return 0; 9767} 9768_ACEOF 9769rm -f "conftest.$ac_objext" 9770if { (eval echo "$as_me:9770: \"$ac_compile\"") >&5 9771 (eval $ac_compile) 2>&5 9772 ac_status=$? 9773 echo "$as_me:9773: \$? = $ac_status" >&5 9774 (exit "$ac_status"); } && 9775 { ac_try='test -s "conftest.$ac_objext"' 9776 { (eval echo "$as_me:9776: \"$ac_try\"") >&5 9777 (eval $ac_try) 2>&5 9778 ac_status=$? 9779 echo "$as_me:9779: \$? = $ac_status" >&5 9780 (exit "$ac_status"); }; }; then 9781 cf_cv_gnu_library_219=yes 9782else 9783 echo "$as_me: failed program was:" >&5 9784cat "conftest.$ac_ext" >&5 9785cf_cv_gnu_library_219=no 9786fi 9787rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9788 CPPFLAGS="$cf_save" 9789 9790fi 9791echo "$as_me:9791: result: $cf_cv_gnu_library_219" >&5 9792echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 9793 9794 if test "x$cf_cv_gnu_library_219" = xyes; then 9795 cf_save="$CPPFLAGS" 9796 echo "$as_me:9796: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 9797echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 9798if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 9799 echo $ECHO_N "(cached) $ECHO_C" >&6 9800else 9801 9802cf_fix_cppflags=no 9803cf_new_cflags= 9804cf_new_cppflags= 9805cf_new_extra_cppflags= 9806 9807for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 9808do 9809case "$cf_fix_cppflags" in 9810(no) 9811 case "$cf_add_cflags" in 9812 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 9813 case "$cf_add_cflags" in 9814 (-D*) 9815 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 9816 9817 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9818 && test -z "${cf_tst_cflags}" \ 9819 && cf_fix_cppflags=yes 9820 9821 if test "$cf_fix_cppflags" = yes ; then 9822 9823 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 9824 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 9825 9826 continue 9827 elif test "${cf_tst_cflags}" = "\"'" ; then 9828 9829 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 9830 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 9831 9832 continue 9833 fi 9834 ;; 9835 esac 9836 case "$CPPFLAGS" in 9837 (*$cf_add_cflags) 9838 ;; 9839 (*) 9840 case "$cf_add_cflags" in 9841 (-D*) 9842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 9843 9844CPPFLAGS=`echo "$CPPFLAGS" | \ 9845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 9846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 9847 9848 ;; 9849 esac 9850 9851 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 9852 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 9853 9854 ;; 9855 esac 9856 ;; 9857 (*) 9858 9859 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 9860 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 9861 9862 ;; 9863 esac 9864 ;; 9865(yes) 9866 9867 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 9868 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 9869 9870 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 9871 9872 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 9873 && test -z "${cf_tst_cflags}" \ 9874 && cf_fix_cppflags=no 9875 ;; 9876esac 9877done 9878 9879if test -n "$cf_new_cflags" ; then 9880 9881 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 9882 CFLAGS="${CFLAGS}$cf_new_cflags" 9883 9884fi 9885 9886if test -n "$cf_new_cppflags" ; then 9887 9888 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 9889 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 9890 9891fi 9892 9893if test -n "$cf_new_extra_cppflags" ; then 9894 9895 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 9896 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 9897 9898fi 9899 9900 cat >"conftest.$ac_ext" <<_ACEOF 9901#line 9901 "configure" 9902#include "confdefs.h" 9903 9904 #include <limits.h> 9905 #include <sys/types.h> 9906 9907int 9908main (void) 9909{ 9910 9911 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 9912 return 0; 9913 #else 9914 # error GNU C library is too old 9915 #endif 9916 ; 9917 return 0; 9918} 9919_ACEOF 9920rm -f "conftest.$ac_objext" 9921if { (eval echo "$as_me:9921: \"$ac_compile\"") >&5 9922 (eval $ac_compile) 2>&5 9923 ac_status=$? 9924 echo "$as_me:9924: \$? = $ac_status" >&5 9925 (exit "$ac_status"); } && 9926 { ac_try='test -s "conftest.$ac_objext"' 9927 { (eval echo "$as_me:9927: \"$ac_try\"") >&5 9928 (eval $ac_try) 2>&5 9929 ac_status=$? 9930 echo "$as_me:9930: \$? = $ac_status" >&5 9931 (exit "$ac_status"); }; }; then 9932 cf_cv_gnu_dftsrc_219=yes 9933else 9934 echo "$as_me: failed program was:" >&5 9935cat "conftest.$ac_ext" >&5 9936cf_cv_gnu_dftsrc_219=no 9937fi 9938rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9939 9940fi 9941echo "$as_me:9941: result: $cf_cv_gnu_dftsrc_219" >&5 9942echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 9943 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 9944 else 9945 cf_cv_gnu_dftsrc_219=maybe 9946 fi 9947 9948 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 9949 9950 echo "$as_me:9950: checking if we must define _GNU_SOURCE" >&5 9951echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 9952if test "${cf_cv_gnu_source+set}" = set; then 9953 echo $ECHO_N "(cached) $ECHO_C" >&6 9954else 9955 9956 cat >"conftest.$ac_ext" <<_ACEOF 9957#line 9957 "configure" 9958#include "confdefs.h" 9959#include <sys/types.h> 9960int 9961main (void) 9962{ 9963 9964 #ifndef _XOPEN_SOURCE 9965 #error expected _XOPEN_SOURCE to be defined 9966 #endif 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971rm -f "conftest.$ac_objext" 9972if { (eval echo "$as_me:9972: \"$ac_compile\"") >&5 9973 (eval $ac_compile) 2>&5 9974 ac_status=$? 9975 echo "$as_me:9975: \$? = $ac_status" >&5 9976 (exit "$ac_status"); } && 9977 { ac_try='test -s "conftest.$ac_objext"' 9978 { (eval echo "$as_me:9978: \"$ac_try\"") >&5 9979 (eval $ac_try) 2>&5 9980 ac_status=$? 9981 echo "$as_me:9981: \$? = $ac_status" >&5 9982 (exit "$ac_status"); }; }; then 9983 cf_cv_gnu_source=no 9984else 9985 echo "$as_me: failed program was:" >&5 9986cat "conftest.$ac_ext" >&5 9987cf_save="$CPPFLAGS" 9988 9989cf_fix_cppflags=no 9990cf_new_cflags= 9991cf_new_cppflags= 9992cf_new_extra_cppflags= 9993 9994for cf_add_cflags in -D_GNU_SOURCE 9995do 9996case "$cf_fix_cppflags" in 9997(no) 9998 case "$cf_add_cflags" in 9999 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10000 case "$cf_add_cflags" in 10001 (-D*) 10002 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10003 10004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10005 && test -z "${cf_tst_cflags}" \ 10006 && cf_fix_cppflags=yes 10007 10008 if test "$cf_fix_cppflags" = yes ; then 10009 10010 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10011 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10012 10013 continue 10014 elif test "${cf_tst_cflags}" = "\"'" ; then 10015 10016 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10017 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10018 10019 continue 10020 fi 10021 ;; 10022 esac 10023 case "$CPPFLAGS" in 10024 (*$cf_add_cflags) 10025 ;; 10026 (*) 10027 case "$cf_add_cflags" in 10028 (-D*) 10029 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10030 10031CPPFLAGS=`echo "$CPPFLAGS" | \ 10032 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10033 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10034 10035 ;; 10036 esac 10037 10038 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10039 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10040 10041 ;; 10042 esac 10043 ;; 10044 (*) 10045 10046 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10047 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10048 10049 ;; 10050 esac 10051 ;; 10052(yes) 10053 10054 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10055 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10056 10057 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10058 10059 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10060 && test -z "${cf_tst_cflags}" \ 10061 && cf_fix_cppflags=no 10062 ;; 10063esac 10064done 10065 10066if test -n "$cf_new_cflags" ; then 10067 10068 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10069 CFLAGS="${CFLAGS}$cf_new_cflags" 10070 10071fi 10072 10073if test -n "$cf_new_cppflags" ; then 10074 10075 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10076 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10077 10078fi 10079 10080if test -n "$cf_new_extra_cppflags" ; then 10081 10082 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10083 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10084 10085fi 10086 10087 cat >"conftest.$ac_ext" <<_ACEOF 10088#line 10088 "configure" 10089#include "confdefs.h" 10090#include <sys/types.h> 10091int 10092main (void) 10093{ 10094 10095 #ifdef _XOPEN_SOURCE 10096 #error expected _XOPEN_SOURCE to be undefined 10097 #endif 10098 ; 10099 return 0; 10100} 10101_ACEOF 10102rm -f "conftest.$ac_objext" 10103if { (eval echo "$as_me:10103: \"$ac_compile\"") >&5 10104 (eval $ac_compile) 2>&5 10105 ac_status=$? 10106 echo "$as_me:10106: \$? = $ac_status" >&5 10107 (exit "$ac_status"); } && 10108 { ac_try='test -s "conftest.$ac_objext"' 10109 { (eval echo "$as_me:10109: \"$ac_try\"") >&5 10110 (eval $ac_try) 2>&5 10111 ac_status=$? 10112 echo "$as_me:10112: \$? = $ac_status" >&5 10113 (exit "$ac_status"); }; }; then 10114 cf_cv_gnu_source=no 10115else 10116 echo "$as_me: failed program was:" >&5 10117cat "conftest.$ac_ext" >&5 10118cf_cv_gnu_source=yes 10119fi 10120rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10121 CPPFLAGS="$cf_save" 10122 10123fi 10124rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10125 10126fi 10127echo "$as_me:10127: result: $cf_cv_gnu_source" >&5 10128echo "${ECHO_T}$cf_cv_gnu_source" >&6 10129 10130 if test "$cf_cv_gnu_source" = yes 10131 then 10132 echo "$as_me:10132: checking if we should also define _DEFAULT_SOURCE" >&5 10133echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 10134if test "${cf_cv_default_source+set}" = set; then 10135 echo $ECHO_N "(cached) $ECHO_C" >&6 10136else 10137 10138 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10139 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 10140 10141 cat >"conftest.$ac_ext" <<_ACEOF 10142#line 10142 "configure" 10143#include "confdefs.h" 10144#include <sys/types.h> 10145int 10146main (void) 10147{ 10148 10149 #ifdef _DEFAULT_SOURCE 10150 #error expected _DEFAULT_SOURCE to be undefined 10151 #endif 10152 ; 10153 return 0; 10154} 10155_ACEOF 10156rm -f "conftest.$ac_objext" 10157if { (eval echo "$as_me:10157: \"$ac_compile\"") >&5 10158 (eval $ac_compile) 2>&5 10159 ac_status=$? 10160 echo "$as_me:10160: \$? = $ac_status" >&5 10161 (exit "$ac_status"); } && 10162 { ac_try='test -s "conftest.$ac_objext"' 10163 { (eval echo "$as_me:10163: \"$ac_try\"") >&5 10164 (eval $ac_try) 2>&5 10165 ac_status=$? 10166 echo "$as_me:10166: \$? = $ac_status" >&5 10167 (exit "$ac_status"); }; }; then 10168 cf_cv_default_source=no 10169else 10170 echo "$as_me: failed program was:" >&5 10171cat "conftest.$ac_ext" >&5 10172cf_cv_default_source=yes 10173fi 10174rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10175 10176fi 10177echo "$as_me:10177: result: $cf_cv_default_source" >&5 10178echo "${ECHO_T}$cf_cv_default_source" >&6 10179 if test "$cf_cv_default_source" = yes 10180 then 10181 10182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10183 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 10184 10185 fi 10186 fi 10187 fi 10188 10189fi 10190 10191 ;; 10192(minix*) 10193 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 10194 ;; 10195(mirbsd*) 10196 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 10197 cf_XOPEN_SOURCE= 10198 10199if test "$cf_cv_posix_visible" = no; then 10200 10201cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 10202 10203cf_save_CFLAGS="$CFLAGS" 10204cf_save_CPPFLAGS="$CPPFLAGS" 10205 10206cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 10207 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10208 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10209 10210cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 10211 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10212 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10213 10214echo "$as_me:10214: checking if we should define _POSIX_C_SOURCE" >&5 10215echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 10216if test "${cf_cv_posix_c_source+set}" = set; then 10217 echo $ECHO_N "(cached) $ECHO_C" >&6 10218else 10219 10220echo "${as_me:-configure}:10220: testing if the symbol is already defined go no further ..." 1>&5 10221 10222 cat >"conftest.$ac_ext" <<_ACEOF 10223#line 10223 "configure" 10224#include "confdefs.h" 10225#include <sys/types.h> 10226int 10227main (void) 10228{ 10229 10230#ifndef _POSIX_C_SOURCE 10231make an error 10232#endif 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237rm -f "conftest.$ac_objext" 10238if { (eval echo "$as_me:10238: \"$ac_compile\"") >&5 10239 (eval $ac_compile) 2>&5 10240 ac_status=$? 10241 echo "$as_me:10241: \$? = $ac_status" >&5 10242 (exit "$ac_status"); } && 10243 { ac_try='test -s "conftest.$ac_objext"' 10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5 10245 (eval $ac_try) 2>&5 10246 ac_status=$? 10247 echo "$as_me:10247: \$? = $ac_status" >&5 10248 (exit "$ac_status"); }; }; then 10249 cf_cv_posix_c_source=no 10250else 10251 echo "$as_me: failed program was:" >&5 10252cat "conftest.$ac_ext" >&5 10253cf_want_posix_source=no 10254 case .$cf_POSIX_C_SOURCE in 10255 (.[12]??*) 10256 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10257 ;; 10258 (.2) 10259 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10260 cf_want_posix_source=yes 10261 ;; 10262 (.*) 10263 cf_want_posix_source=yes 10264 ;; 10265 esac 10266 if test "$cf_want_posix_source" = yes ; then 10267 cat >"conftest.$ac_ext" <<_ACEOF 10268#line 10268 "configure" 10269#include "confdefs.h" 10270#include <sys/types.h> 10271int 10272main (void) 10273{ 10274 10275#ifdef _POSIX_SOURCE 10276make an error 10277#endif 10278 ; 10279 return 0; 10280} 10281_ACEOF 10282rm -f "conftest.$ac_objext" 10283if { (eval echo "$as_me:10283: \"$ac_compile\"") >&5 10284 (eval $ac_compile) 2>&5 10285 ac_status=$? 10286 echo "$as_me:10286: \$? = $ac_status" >&5 10287 (exit "$ac_status"); } && 10288 { ac_try='test -s "conftest.$ac_objext"' 10289 { (eval echo "$as_me:10289: \"$ac_try\"") >&5 10290 (eval $ac_try) 2>&5 10291 ac_status=$? 10292 echo "$as_me:10292: \$? = $ac_status" >&5 10293 (exit "$ac_status"); }; }; then 10294 : 10295else 10296 echo "$as_me: failed program was:" >&5 10297cat "conftest.$ac_ext" >&5 10298cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 10299fi 10300rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10301 fi 10302 10303echo "${as_me:-configure}:10303: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 10304 10305 CFLAGS="$cf_trim_CFLAGS" 10306 CPPFLAGS="$cf_trim_CPPFLAGS" 10307 10308 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10309 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 10310 10311echo "${as_me:-configure}:10311: testing if the second compile does not leave our definition intact error ..." 1>&5 10312 10313 cat >"conftest.$ac_ext" <<_ACEOF 10314#line 10314 "configure" 10315#include "confdefs.h" 10316#include <sys/types.h> 10317int 10318main (void) 10319{ 10320 10321#ifndef _POSIX_C_SOURCE 10322make an error 10323#endif 10324 ; 10325 return 0; 10326} 10327_ACEOF 10328rm -f "conftest.$ac_objext" 10329if { (eval echo "$as_me:10329: \"$ac_compile\"") >&5 10330 (eval $ac_compile) 2>&5 10331 ac_status=$? 10332 echo "$as_me:10332: \$? = $ac_status" >&5 10333 (exit "$ac_status"); } && 10334 { ac_try='test -s "conftest.$ac_objext"' 10335 { (eval echo "$as_me:10335: \"$ac_try\"") >&5 10336 (eval $ac_try) 2>&5 10337 ac_status=$? 10338 echo "$as_me:10338: \$? = $ac_status" >&5 10339 (exit "$ac_status"); }; }; then 10340 : 10341else 10342 echo "$as_me: failed program was:" >&5 10343cat "conftest.$ac_ext" >&5 10344cf_cv_posix_c_source=no 10345fi 10346rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10347 CFLAGS="$cf_save_CFLAGS" 10348 CPPFLAGS="$cf_save_CPPFLAGS" 10349 10350fi 10351rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10352 10353fi 10354echo "$as_me:10354: result: $cf_cv_posix_c_source" >&5 10355echo "${ECHO_T}$cf_cv_posix_c_source" >&6 10356 10357if test "$cf_cv_posix_c_source" != no ; then 10358 CFLAGS="$cf_trim_CFLAGS" 10359 CPPFLAGS="$cf_trim_CPPFLAGS" 10360 10361cf_fix_cppflags=no 10362cf_new_cflags= 10363cf_new_cppflags= 10364cf_new_extra_cppflags= 10365 10366for cf_add_cflags in $cf_cv_posix_c_source 10367do 10368case "$cf_fix_cppflags" in 10369(no) 10370 case "$cf_add_cflags" in 10371 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10372 case "$cf_add_cflags" in 10373 (-D*) 10374 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10375 10376 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10377 && test -z "${cf_tst_cflags}" \ 10378 && cf_fix_cppflags=yes 10379 10380 if test "$cf_fix_cppflags" = yes ; then 10381 10382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10384 10385 continue 10386 elif test "${cf_tst_cflags}" = "\"'" ; then 10387 10388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10390 10391 continue 10392 fi 10393 ;; 10394 esac 10395 case "$CPPFLAGS" in 10396 (*$cf_add_cflags) 10397 ;; 10398 (*) 10399 case "$cf_add_cflags" in 10400 (-D*) 10401 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10402 10403CPPFLAGS=`echo "$CPPFLAGS" | \ 10404 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10405 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10406 10407 ;; 10408 esac 10409 10410 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10411 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10412 10413 ;; 10414 esac 10415 ;; 10416 (*) 10417 10418 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10419 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10420 10421 ;; 10422 esac 10423 ;; 10424(yes) 10425 10426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10428 10429 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10430 10431 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10432 && test -z "${cf_tst_cflags}" \ 10433 && cf_fix_cppflags=no 10434 ;; 10435esac 10436done 10437 10438if test -n "$cf_new_cflags" ; then 10439 10440 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10441 CFLAGS="${CFLAGS}$cf_new_cflags" 10442 10443fi 10444 10445if test -n "$cf_new_cppflags" ; then 10446 10447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10448 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10449 10450fi 10451 10452if test -n "$cf_new_extra_cppflags" ; then 10453 10454 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10455 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10456 10457fi 10458 10459fi 10460 10461fi # cf_cv_posix_visible 10462 10463 ;; 10464(netbsd*) 10465 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 10466 ;; 10467(openbsd[4-9]*) 10468 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 10469 cf_xopen_source="-D_BSD_SOURCE" 10470 cf_XOPEN_SOURCE=600 10471 ;; 10472(openbsd*) 10473 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 10474 ;; 10475(osf[45]*) 10476 cf_xopen_source="-D_OSF_SOURCE" 10477 ;; 10478(nto-qnx*) 10479 cf_xopen_source="-D_QNX_SOURCE" 10480 ;; 10481(sco*) 10482 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 10483 ;; 10484(solaris2.*) 10485 cf_xopen_source="-D__EXTENSIONS__" 10486 cf_cv_xopen_source=broken 10487 ;; 10488(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 10489 cf_XOPEN_SOURCE= 10490 cf_POSIX_C_SOURCE= 10491 ;; 10492(*) 10493 10494echo "$as_me:10494: checking if we should define _XOPEN_SOURCE" >&5 10495echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 10496if test "${cf_cv_xopen_source+set}" = set; then 10497 echo $ECHO_N "(cached) $ECHO_C" >&6 10498else 10499 10500 cat >"conftest.$ac_ext" <<_ACEOF 10501#line 10501 "configure" 10502#include "confdefs.h" 10503 10504#include <stdlib.h> 10505#include <string.h> 10506#include <sys/types.h> 10507 10508int 10509main (void) 10510{ 10511 10512#ifndef _XOPEN_SOURCE 10513make an error 10514#endif 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519rm -f "conftest.$ac_objext" 10520if { (eval echo "$as_me:10520: \"$ac_compile\"") >&5 10521 (eval $ac_compile) 2>&5 10522 ac_status=$? 10523 echo "$as_me:10523: \$? = $ac_status" >&5 10524 (exit "$ac_status"); } && 10525 { ac_try='test -s "conftest.$ac_objext"' 10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5 10527 (eval $ac_try) 2>&5 10528 ac_status=$? 10529 echo "$as_me:10529: \$? = $ac_status" >&5 10530 (exit "$ac_status"); }; }; then 10531 cf_cv_xopen_source=no 10532else 10533 echo "$as_me: failed program was:" >&5 10534cat "conftest.$ac_ext" >&5 10535cf_save="$CPPFLAGS" 10536 10537 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10538 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 10539 10540 cat >"conftest.$ac_ext" <<_ACEOF 10541#line 10541 "configure" 10542#include "confdefs.h" 10543 10544#include <stdlib.h> 10545#include <string.h> 10546#include <sys/types.h> 10547 10548int 10549main (void) 10550{ 10551 10552#ifdef _XOPEN_SOURCE 10553make an error 10554#endif 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559rm -f "conftest.$ac_objext" 10560if { (eval echo "$as_me:10560: \"$ac_compile\"") >&5 10561 (eval $ac_compile) 2>&5 10562 ac_status=$? 10563 echo "$as_me:10563: \$? = $ac_status" >&5 10564 (exit "$ac_status"); } && 10565 { ac_try='test -s "conftest.$ac_objext"' 10566 { (eval echo "$as_me:10566: \"$ac_try\"") >&5 10567 (eval $ac_try) 2>&5 10568 ac_status=$? 10569 echo "$as_me:10569: \$? = $ac_status" >&5 10570 (exit "$ac_status"); }; }; then 10571 cf_cv_xopen_source=no 10572else 10573 echo "$as_me: failed program was:" >&5 10574cat "conftest.$ac_ext" >&5 10575cf_cv_xopen_source=$cf_XOPEN_SOURCE 10576fi 10577rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10578 CPPFLAGS="$cf_save" 10579 10580fi 10581rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10582 10583fi 10584echo "$as_me:10584: result: $cf_cv_xopen_source" >&5 10585echo "${ECHO_T}$cf_cv_xopen_source" >&6 10586 10587if test "$cf_cv_xopen_source" != no ; then 10588 10589CFLAGS=`echo "$CFLAGS" | \ 10590 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10591 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 10592 10593CPPFLAGS=`echo "$CPPFLAGS" | \ 10594 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10595 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 10596 10597 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 10598 10599cf_fix_cppflags=no 10600cf_new_cflags= 10601cf_new_cppflags= 10602cf_new_extra_cppflags= 10603 10604for cf_add_cflags in $cf_temp_xopen_source 10605do 10606case "$cf_fix_cppflags" in 10607(no) 10608 case "$cf_add_cflags" in 10609 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10610 case "$cf_add_cflags" in 10611 (-D*) 10612 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10613 10614 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10615 && test -z "${cf_tst_cflags}" \ 10616 && cf_fix_cppflags=yes 10617 10618 if test "$cf_fix_cppflags" = yes ; then 10619 10620 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10621 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10622 10623 continue 10624 elif test "${cf_tst_cflags}" = "\"'" ; then 10625 10626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10628 10629 continue 10630 fi 10631 ;; 10632 esac 10633 case "$CPPFLAGS" in 10634 (*$cf_add_cflags) 10635 ;; 10636 (*) 10637 case "$cf_add_cflags" in 10638 (-D*) 10639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10640 10641CPPFLAGS=`echo "$CPPFLAGS" | \ 10642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10644 10645 ;; 10646 esac 10647 10648 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10649 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10650 10651 ;; 10652 esac 10653 ;; 10654 (*) 10655 10656 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10657 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10658 10659 ;; 10660 esac 10661 ;; 10662(yes) 10663 10664 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10665 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10666 10667 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10668 10669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10670 && test -z "${cf_tst_cflags}" \ 10671 && cf_fix_cppflags=no 10672 ;; 10673esac 10674done 10675 10676if test -n "$cf_new_cflags" ; then 10677 10678 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10679 CFLAGS="${CFLAGS}$cf_new_cflags" 10680 10681fi 10682 10683if test -n "$cf_new_cppflags" ; then 10684 10685 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10686 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10687 10688fi 10689 10690if test -n "$cf_new_extra_cppflags" ; then 10691 10692 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10693 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10694 10695fi 10696 10697fi 10698 10699if test "$cf_cv_posix_visible" = no; then 10700 10701cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 10702 10703cf_save_CFLAGS="$CFLAGS" 10704cf_save_CPPFLAGS="$CPPFLAGS" 10705 10706cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 10707 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10708 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10709 10710cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 10711 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10712 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10713 10714echo "$as_me:10714: checking if we should define _POSIX_C_SOURCE" >&5 10715echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 10716if test "${cf_cv_posix_c_source+set}" = set; then 10717 echo $ECHO_N "(cached) $ECHO_C" >&6 10718else 10719 10720echo "${as_me:-configure}:10720: testing if the symbol is already defined go no further ..." 1>&5 10721 10722 cat >"conftest.$ac_ext" <<_ACEOF 10723#line 10723 "configure" 10724#include "confdefs.h" 10725#include <sys/types.h> 10726int 10727main (void) 10728{ 10729 10730#ifndef _POSIX_C_SOURCE 10731make an error 10732#endif 10733 ; 10734 return 0; 10735} 10736_ACEOF 10737rm -f "conftest.$ac_objext" 10738if { (eval echo "$as_me:10738: \"$ac_compile\"") >&5 10739 (eval $ac_compile) 2>&5 10740 ac_status=$? 10741 echo "$as_me:10741: \$? = $ac_status" >&5 10742 (exit "$ac_status"); } && 10743 { ac_try='test -s "conftest.$ac_objext"' 10744 { (eval echo "$as_me:10744: \"$ac_try\"") >&5 10745 (eval $ac_try) 2>&5 10746 ac_status=$? 10747 echo "$as_me:10747: \$? = $ac_status" >&5 10748 (exit "$ac_status"); }; }; then 10749 cf_cv_posix_c_source=no 10750else 10751 echo "$as_me: failed program was:" >&5 10752cat "conftest.$ac_ext" >&5 10753cf_want_posix_source=no 10754 case .$cf_POSIX_C_SOURCE in 10755 (.[12]??*) 10756 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10757 ;; 10758 (.2) 10759 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10760 cf_want_posix_source=yes 10761 ;; 10762 (.*) 10763 cf_want_posix_source=yes 10764 ;; 10765 esac 10766 if test "$cf_want_posix_source" = yes ; then 10767 cat >"conftest.$ac_ext" <<_ACEOF 10768#line 10768 "configure" 10769#include "confdefs.h" 10770#include <sys/types.h> 10771int 10772main (void) 10773{ 10774 10775#ifdef _POSIX_SOURCE 10776make an error 10777#endif 10778 ; 10779 return 0; 10780} 10781_ACEOF 10782rm -f "conftest.$ac_objext" 10783if { (eval echo "$as_me:10783: \"$ac_compile\"") >&5 10784 (eval $ac_compile) 2>&5 10785 ac_status=$? 10786 echo "$as_me:10786: \$? = $ac_status" >&5 10787 (exit "$ac_status"); } && 10788 { ac_try='test -s "conftest.$ac_objext"' 10789 { (eval echo "$as_me:10789: \"$ac_try\"") >&5 10790 (eval $ac_try) 2>&5 10791 ac_status=$? 10792 echo "$as_me:10792: \$? = $ac_status" >&5 10793 (exit "$ac_status"); }; }; then 10794 : 10795else 10796 echo "$as_me: failed program was:" >&5 10797cat "conftest.$ac_ext" >&5 10798cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 10799fi 10800rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10801 fi 10802 10803echo "${as_me:-configure}:10803: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 10804 10805 CFLAGS="$cf_trim_CFLAGS" 10806 CPPFLAGS="$cf_trim_CPPFLAGS" 10807 10808 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10809 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 10810 10811echo "${as_me:-configure}:10811: testing if the second compile does not leave our definition intact error ..." 1>&5 10812 10813 cat >"conftest.$ac_ext" <<_ACEOF 10814#line 10814 "configure" 10815#include "confdefs.h" 10816#include <sys/types.h> 10817int 10818main (void) 10819{ 10820 10821#ifndef _POSIX_C_SOURCE 10822make an error 10823#endif 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828rm -f "conftest.$ac_objext" 10829if { (eval echo "$as_me:10829: \"$ac_compile\"") >&5 10830 (eval $ac_compile) 2>&5 10831 ac_status=$? 10832 echo "$as_me:10832: \$? = $ac_status" >&5 10833 (exit "$ac_status"); } && 10834 { ac_try='test -s "conftest.$ac_objext"' 10835 { (eval echo "$as_me:10835: \"$ac_try\"") >&5 10836 (eval $ac_try) 2>&5 10837 ac_status=$? 10838 echo "$as_me:10838: \$? = $ac_status" >&5 10839 (exit "$ac_status"); }; }; then 10840 : 10841else 10842 echo "$as_me: failed program was:" >&5 10843cat "conftest.$ac_ext" >&5 10844cf_cv_posix_c_source=no 10845fi 10846rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10847 CFLAGS="$cf_save_CFLAGS" 10848 CPPFLAGS="$cf_save_CPPFLAGS" 10849 10850fi 10851rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10852 10853fi 10854echo "$as_me:10854: result: $cf_cv_posix_c_source" >&5 10855echo "${ECHO_T}$cf_cv_posix_c_source" >&6 10856 10857if test "$cf_cv_posix_c_source" != no ; then 10858 CFLAGS="$cf_trim_CFLAGS" 10859 CPPFLAGS="$cf_trim_CPPFLAGS" 10860 10861cf_fix_cppflags=no 10862cf_new_cflags= 10863cf_new_cppflags= 10864cf_new_extra_cppflags= 10865 10866for cf_add_cflags in $cf_cv_posix_c_source 10867do 10868case "$cf_fix_cppflags" in 10869(no) 10870 case "$cf_add_cflags" in 10871 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10872 case "$cf_add_cflags" in 10873 (-D*) 10874 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10875 10876 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10877 && test -z "${cf_tst_cflags}" \ 10878 && cf_fix_cppflags=yes 10879 10880 if test "$cf_fix_cppflags" = yes ; then 10881 10882 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10883 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10884 10885 continue 10886 elif test "${cf_tst_cflags}" = "\"'" ; then 10887 10888 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10889 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10890 10891 continue 10892 fi 10893 ;; 10894 esac 10895 case "$CPPFLAGS" in 10896 (*$cf_add_cflags) 10897 ;; 10898 (*) 10899 case "$cf_add_cflags" in 10900 (-D*) 10901 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10902 10903CPPFLAGS=`echo "$CPPFLAGS" | \ 10904 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10905 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10906 10907 ;; 10908 esac 10909 10910 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10911 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10912 10913 ;; 10914 esac 10915 ;; 10916 (*) 10917 10918 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10919 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10920 10921 ;; 10922 esac 10923 ;; 10924(yes) 10925 10926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10928 10929 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10930 10931 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10932 && test -z "${cf_tst_cflags}" \ 10933 && cf_fix_cppflags=no 10934 ;; 10935esac 10936done 10937 10938if test -n "$cf_new_cflags" ; then 10939 10940 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10941 CFLAGS="${CFLAGS}$cf_new_cflags" 10942 10943fi 10944 10945if test -n "$cf_new_cppflags" ; then 10946 10947 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10948 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10949 10950fi 10951 10952if test -n "$cf_new_extra_cppflags" ; then 10953 10954 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10955 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10956 10957fi 10958 10959fi 10960 10961fi # cf_cv_posix_visible 10962 10963 ;; 10964esac 10965 10966if test -n "$cf_xopen_source" ; then 10967 10968cf_fix_cppflags=no 10969cf_new_cflags= 10970cf_new_cppflags= 10971cf_new_extra_cppflags= 10972 10973for cf_add_cflags in $cf_xopen_source 10974do 10975case "$cf_fix_cppflags" in 10976(no) 10977 case "$cf_add_cflags" in 10978 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10979 case "$cf_add_cflags" in 10980 (-D*) 10981 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10982 10983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10984 && test -z "${cf_tst_cflags}" \ 10985 && cf_fix_cppflags=yes 10986 10987 if test "$cf_fix_cppflags" = yes ; then 10988 10989 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10990 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10991 10992 continue 10993 elif test "${cf_tst_cflags}" = "\"'" ; then 10994 10995 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10996 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10997 10998 continue 10999 fi 11000 ;; 11001 esac 11002 case "$CPPFLAGS" in 11003 (*$cf_add_cflags) 11004 ;; 11005 (*) 11006 case "$cf_add_cflags" in 11007 (-D*) 11008 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11009 11010CPPFLAGS=`echo "$CPPFLAGS" | \ 11011 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11012 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11013 11014 ;; 11015 esac 11016 11017 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11018 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11019 11020 ;; 11021 esac 11022 ;; 11023 (*) 11024 11025 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11026 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11027 11028 ;; 11029 esac 11030 ;; 11031(yes) 11032 11033 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11034 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11035 11036 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11037 11038 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11039 && test -z "${cf_tst_cflags}" \ 11040 && cf_fix_cppflags=no 11041 ;; 11042esac 11043done 11044 11045if test -n "$cf_new_cflags" ; then 11046 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11047 11048echo "${as_me:-configure}:11048: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11049 11050 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11051 CFLAGS="${CFLAGS}$cf_new_cflags" 11052 11053fi 11054 11055if test -n "$cf_new_cppflags" ; then 11056 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11057 11058echo "${as_me:-configure}:11058: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 11059 11060 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11061 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11062 11063fi 11064 11065if test -n "$cf_new_extra_cppflags" ; then 11066 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 11067 11068echo "${as_me:-configure}:11068: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 11069 11070 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11071 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11072 11073fi 11074 11075fi 11076 11077if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 11078 echo "$as_me:11078: checking if _XOPEN_SOURCE really is set" >&5 11079echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 11080 cat >"conftest.$ac_ext" <<_ACEOF 11081#line 11081 "configure" 11082#include "confdefs.h" 11083#include <stdlib.h> 11084int 11085main (void) 11086{ 11087 11088#ifndef _XOPEN_SOURCE 11089make an error 11090#endif 11091 ; 11092 return 0; 11093} 11094_ACEOF 11095rm -f "conftest.$ac_objext" 11096if { (eval echo "$as_me:11096: \"$ac_compile\"") >&5 11097 (eval $ac_compile) 2>&5 11098 ac_status=$? 11099 echo "$as_me:11099: \$? = $ac_status" >&5 11100 (exit "$ac_status"); } && 11101 { ac_try='test -s "conftest.$ac_objext"' 11102 { (eval echo "$as_me:11102: \"$ac_try\"") >&5 11103 (eval $ac_try) 2>&5 11104 ac_status=$? 11105 echo "$as_me:11105: \$? = $ac_status" >&5 11106 (exit "$ac_status"); }; }; then 11107 cf_XOPEN_SOURCE_set=yes 11108else 11109 echo "$as_me: failed program was:" >&5 11110cat "conftest.$ac_ext" >&5 11111cf_XOPEN_SOURCE_set=no 11112fi 11113rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11114 echo "$as_me:11114: result: $cf_XOPEN_SOURCE_set" >&5 11115echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 11116 if test "$cf_XOPEN_SOURCE_set" = yes 11117 then 11118 cat >"conftest.$ac_ext" <<_ACEOF 11119#line 11119 "configure" 11120#include "confdefs.h" 11121#include <stdlib.h> 11122int 11123main (void) 11124{ 11125 11126#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 11127make an error 11128#endif 11129 ; 11130 return 0; 11131} 11132_ACEOF 11133rm -f "conftest.$ac_objext" 11134if { (eval echo "$as_me:11134: \"$ac_compile\"") >&5 11135 (eval $ac_compile) 2>&5 11136 ac_status=$? 11137 echo "$as_me:11137: \$? = $ac_status" >&5 11138 (exit "$ac_status"); } && 11139 { ac_try='test -s "conftest.$ac_objext"' 11140 { (eval echo "$as_me:11140: \"$ac_try\"") >&5 11141 (eval $ac_try) 2>&5 11142 ac_status=$? 11143 echo "$as_me:11143: \$? = $ac_status" >&5 11144 (exit "$ac_status"); }; }; then 11145 cf_XOPEN_SOURCE_set_ok=yes 11146else 11147 echo "$as_me: failed program was:" >&5 11148cat "conftest.$ac_ext" >&5 11149cf_XOPEN_SOURCE_set_ok=no 11150fi 11151rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11152 if test "$cf_XOPEN_SOURCE_set_ok" = no 11153 then 11154 { echo "$as_me:11154: WARNING: _XOPEN_SOURCE is lower than requested" >&5 11155echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 11156 fi 11157 else 11158 11159echo "$as_me:11159: checking if we should define _XOPEN_SOURCE" >&5 11160echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 11161if test "${cf_cv_xopen_source+set}" = set; then 11162 echo $ECHO_N "(cached) $ECHO_C" >&6 11163else 11164 11165 cat >"conftest.$ac_ext" <<_ACEOF 11166#line 11166 "configure" 11167#include "confdefs.h" 11168 11169#include <stdlib.h> 11170#include <string.h> 11171#include <sys/types.h> 11172 11173int 11174main (void) 11175{ 11176 11177#ifndef _XOPEN_SOURCE 11178make an error 11179#endif 11180 ; 11181 return 0; 11182} 11183_ACEOF 11184rm -f "conftest.$ac_objext" 11185if { (eval echo "$as_me:11185: \"$ac_compile\"") >&5 11186 (eval $ac_compile) 2>&5 11187 ac_status=$? 11188 echo "$as_me:11188: \$? = $ac_status" >&5 11189 (exit "$ac_status"); } && 11190 { ac_try='test -s "conftest.$ac_objext"' 11191 { (eval echo "$as_me:11191: \"$ac_try\"") >&5 11192 (eval $ac_try) 2>&5 11193 ac_status=$? 11194 echo "$as_me:11194: \$? = $ac_status" >&5 11195 (exit "$ac_status"); }; }; then 11196 cf_cv_xopen_source=no 11197else 11198 echo "$as_me: failed program was:" >&5 11199cat "conftest.$ac_ext" >&5 11200cf_save="$CPPFLAGS" 11201 11202 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11203 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 11204 11205 cat >"conftest.$ac_ext" <<_ACEOF 11206#line 11206 "configure" 11207#include "confdefs.h" 11208 11209#include <stdlib.h> 11210#include <string.h> 11211#include <sys/types.h> 11212 11213int 11214main (void) 11215{ 11216 11217#ifdef _XOPEN_SOURCE 11218make an error 11219#endif 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224rm -f "conftest.$ac_objext" 11225if { (eval echo "$as_me:11225: \"$ac_compile\"") >&5 11226 (eval $ac_compile) 2>&5 11227 ac_status=$? 11228 echo "$as_me:11228: \$? = $ac_status" >&5 11229 (exit "$ac_status"); } && 11230 { ac_try='test -s "conftest.$ac_objext"' 11231 { (eval echo "$as_me:11231: \"$ac_try\"") >&5 11232 (eval $ac_try) 2>&5 11233 ac_status=$? 11234 echo "$as_me:11234: \$? = $ac_status" >&5 11235 (exit "$ac_status"); }; }; then 11236 cf_cv_xopen_source=no 11237else 11238 echo "$as_me: failed program was:" >&5 11239cat "conftest.$ac_ext" >&5 11240cf_cv_xopen_source=$cf_XOPEN_SOURCE 11241fi 11242rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11243 CPPFLAGS="$cf_save" 11244 11245fi 11246rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11247 11248fi 11249echo "$as_me:11249: result: $cf_cv_xopen_source" >&5 11250echo "${ECHO_T}$cf_cv_xopen_source" >&6 11251 11252if test "$cf_cv_xopen_source" != no ; then 11253 11254CFLAGS=`echo "$CFLAGS" | \ 11255 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 11256 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 11257 11258CPPFLAGS=`echo "$CPPFLAGS" | \ 11259 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 11260 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 11261 11262 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 11263 11264cf_fix_cppflags=no 11265cf_new_cflags= 11266cf_new_cppflags= 11267cf_new_extra_cppflags= 11268 11269for cf_add_cflags in $cf_temp_xopen_source 11270do 11271case "$cf_fix_cppflags" in 11272(no) 11273 case "$cf_add_cflags" in 11274 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11275 case "$cf_add_cflags" in 11276 (-D*) 11277 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11278 11279 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11280 && test -z "${cf_tst_cflags}" \ 11281 && cf_fix_cppflags=yes 11282 11283 if test "$cf_fix_cppflags" = yes ; then 11284 11285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11287 11288 continue 11289 elif test "${cf_tst_cflags}" = "\"'" ; then 11290 11291 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11292 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11293 11294 continue 11295 fi 11296 ;; 11297 esac 11298 case "$CPPFLAGS" in 11299 (*$cf_add_cflags) 11300 ;; 11301 (*) 11302 case "$cf_add_cflags" in 11303 (-D*) 11304 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11305 11306CPPFLAGS=`echo "$CPPFLAGS" | \ 11307 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11308 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11309 11310 ;; 11311 esac 11312 11313 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11314 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11315 11316 ;; 11317 esac 11318 ;; 11319 (*) 11320 11321 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11322 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11323 11324 ;; 11325 esac 11326 ;; 11327(yes) 11328 11329 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11330 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11331 11332 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11333 11334 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11335 && test -z "${cf_tst_cflags}" \ 11336 && cf_fix_cppflags=no 11337 ;; 11338esac 11339done 11340 11341if test -n "$cf_new_cflags" ; then 11342 11343 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11344 CFLAGS="${CFLAGS}$cf_new_cflags" 11345 11346fi 11347 11348if test -n "$cf_new_cppflags" ; then 11349 11350 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11351 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11352 11353fi 11354 11355if test -n "$cf_new_extra_cppflags" ; then 11356 11357 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11358 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11359 11360fi 11361 11362fi 11363 11364 fi 11365fi 11366fi # cf_cv_posix_visible 11367 11368CPPFLAGS_after_XOPEN="$CPPFLAGS" 11369 11370# Work around breakage on OS X 11371 11372echo "$as_me:11372: checking if SIGWINCH is defined" >&5 11373echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 11374if test "${cf_cv_define_sigwinch+set}" = set; then 11375 echo $ECHO_N "(cached) $ECHO_C" >&6 11376else 11377 11378 cat >"conftest.$ac_ext" <<_ACEOF 11379#line 11379 "configure" 11380#include "confdefs.h" 11381 11382#include <sys/types.h> 11383#include <sys/signal.h> 11384 11385int 11386main (void) 11387{ 11388int x = SIGWINCH; (void)x 11389 ; 11390 return 0; 11391} 11392_ACEOF 11393rm -f "conftest.$ac_objext" 11394if { (eval echo "$as_me:11394: \"$ac_compile\"") >&5 11395 (eval $ac_compile) 2>&5 11396 ac_status=$? 11397 echo "$as_me:11397: \$? = $ac_status" >&5 11398 (exit "$ac_status"); } && 11399 { ac_try='test -s "conftest.$ac_objext"' 11400 { (eval echo "$as_me:11400: \"$ac_try\"") >&5 11401 (eval $ac_try) 2>&5 11402 ac_status=$? 11403 echo "$as_me:11403: \$? = $ac_status" >&5 11404 (exit "$ac_status"); }; }; then 11405 cf_cv_define_sigwinch=yes 11406else 11407 echo "$as_me: failed program was:" >&5 11408cat "conftest.$ac_ext" >&5 11409cat >"conftest.$ac_ext" <<_ACEOF 11410#line 11410 "configure" 11411#include "confdefs.h" 11412 11413#undef _XOPEN_SOURCE 11414#undef _POSIX_SOURCE 11415#undef _POSIX_C_SOURCE 11416#include <sys/types.h> 11417#include <sys/signal.h> 11418 11419int 11420main (void) 11421{ 11422int x = SIGWINCH; (void)x 11423 ; 11424 return 0; 11425} 11426_ACEOF 11427rm -f "conftest.$ac_objext" 11428if { (eval echo "$as_me:11428: \"$ac_compile\"") >&5 11429 (eval $ac_compile) 2>&5 11430 ac_status=$? 11431 echo "$as_me:11431: \$? = $ac_status" >&5 11432 (exit "$ac_status"); } && 11433 { ac_try='test -s "conftest.$ac_objext"' 11434 { (eval echo "$as_me:11434: \"$ac_try\"") >&5 11435 (eval $ac_try) 2>&5 11436 ac_status=$? 11437 echo "$as_me:11437: \$? = $ac_status" >&5 11438 (exit "$ac_status"); }; }; then 11439 cf_cv_define_sigwinch=maybe 11440else 11441 echo "$as_me: failed program was:" >&5 11442cat "conftest.$ac_ext" >&5 11443cf_cv_define_sigwinch=no 11444fi 11445rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11446 11447fi 11448rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11449 11450fi 11451echo "$as_me:11451: result: $cf_cv_define_sigwinch" >&5 11452echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 11453 11454if test "$cf_cv_define_sigwinch" = maybe ; then 11455echo "$as_me:11455: checking for actual SIGWINCH definition" >&5 11456echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 11457if test "${cf_cv_fixup_sigwinch+set}" = set; then 11458 echo $ECHO_N "(cached) $ECHO_C" >&6 11459else 11460 11461cf_cv_fixup_sigwinch=unknown 11462cf_sigwinch=32 11463while test "$cf_sigwinch" != 1 11464do 11465 cat >"conftest.$ac_ext" <<_ACEOF 11466#line 11466 "configure" 11467#include "confdefs.h" 11468 11469#undef _XOPEN_SOURCE 11470#undef _POSIX_SOURCE 11471#undef _POSIX_C_SOURCE 11472#include <sys/types.h> 11473#include <sys/signal.h> 11474 11475int 11476main (void) 11477{ 11478 11479#if SIGWINCH != $cf_sigwinch 11480make an error 11481#endif 11482int x = SIGWINCH; (void)x 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487rm -f "conftest.$ac_objext" 11488if { (eval echo "$as_me:11488: \"$ac_compile\"") >&5 11489 (eval $ac_compile) 2>&5 11490 ac_status=$? 11491 echo "$as_me:11491: \$? = $ac_status" >&5 11492 (exit "$ac_status"); } && 11493 { ac_try='test -s "conftest.$ac_objext"' 11494 { (eval echo "$as_me:11494: \"$ac_try\"") >&5 11495 (eval $ac_try) 2>&5 11496 ac_status=$? 11497 echo "$as_me:11497: \$? = $ac_status" >&5 11498 (exit "$ac_status"); }; }; then 11499 cf_cv_fixup_sigwinch=$cf_sigwinch 11500 break 11501else 11502 echo "$as_me: failed program was:" >&5 11503cat "conftest.$ac_ext" >&5 11504fi 11505rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11506 11507cf_sigwinch="`expr "$cf_sigwinch" - 1`" 11508done 11509 11510fi 11511echo "$as_me:11511: result: $cf_cv_fixup_sigwinch" >&5 11512echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 11513 11514 if test "$cf_cv_fixup_sigwinch" != unknown ; then 11515 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 11516 fi 11517fi 11518 11519# Checks for CODESET support. 11520 11521echo "$as_me:11521: checking for nl_langinfo and CODESET" >&5 11522echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 11523if test "${am_cv_langinfo_codeset+set}" = set; then 11524 echo $ECHO_N "(cached) $ECHO_C" >&6 11525else 11526 cat >"conftest.$ac_ext" <<_ACEOF 11527#line 11527 "configure" 11528#include "confdefs.h" 11529#include <langinfo.h> 11530int 11531main (void) 11532{ 11533char* cs = nl_langinfo(CODESET); (void)cs 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11539if { (eval echo "$as_me:11539: \"$ac_link\"") >&5 11540 (eval $ac_link) 2>&5 11541 ac_status=$? 11542 echo "$as_me:11542: \$? = $ac_status" >&5 11543 (exit "$ac_status"); } && 11544 { ac_try='test -s "conftest$ac_exeext"' 11545 { (eval echo "$as_me:11545: \"$ac_try\"") >&5 11546 (eval $ac_try) 2>&5 11547 ac_status=$? 11548 echo "$as_me:11548: \$? = $ac_status" >&5 11549 (exit "$ac_status"); }; }; then 11550 am_cv_langinfo_codeset=yes 11551else 11552 echo "$as_me: failed program was:" >&5 11553cat "conftest.$ac_ext" >&5 11554am_cv_langinfo_codeset=no 11555fi 11556rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11557 11558fi 11559echo "$as_me:11559: result: $am_cv_langinfo_codeset" >&5 11560echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 11561 if test "$am_cv_langinfo_codeset" = yes; then 11562 11563cat >>confdefs.h <<\EOF 11564#define HAVE_LANGINFO_CODESET 1 11565EOF 11566 11567 fi 11568 11569# use these variables to work around a defect in gcc's fixincludes. 11570NCURSES_OK_WCHAR_T= 11571NCURSES_OK_WINT_T= 11572 11573echo "$as_me:11573: checking if you want wide-character code" >&5 11574echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6 11575 11576# Check whether --enable-widec or --disable-widec was given. 11577if test "${enable_widec+set}" = set; then 11578 enableval="$enable_widec" 11579 with_widec=$enableval 11580else 11581 with_widec=no 11582fi; 11583echo "$as_me:11583: result: $with_widec" >&5 11584echo "${ECHO_T}$with_widec" >&6 11585 11586NCURSES_WCWIDTH_GRAPHICS=1 11587 11588if test "x$with_widec" = xyes ; then 11589 if test "x$disable_lib_suffixes" = xno ; then 11590 LIB_SUFFIX="w${LIB_SUFFIX}" 11591 fi 11592 11593cat >>confdefs.h <<\EOF 11594#define USE_WIDEC_SUPPORT 1 11595EOF 11596 11597cat >>confdefs.h <<\EOF 11598#define NCURSES_WIDECHAR 1 11599EOF 11600 11601for ac_header in \ 11602wchar.h \ 11603wctype.h \ 11604 11605do 11606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11607echo "$as_me:11607: checking for $ac_header" >&5 11608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11609if eval "test \"\${$as_ac_Header+set}\" = set"; then 11610 echo $ECHO_N "(cached) $ECHO_C" >&6 11611else 11612 cat >"conftest.$ac_ext" <<_ACEOF 11613#line 11613 "configure" 11614#include "confdefs.h" 11615#include <$ac_header> 11616_ACEOF 11617if { (eval echo "$as_me:11617: \"$ac_cpp "conftest.$ac_ext"\"") >&5 11618 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 11619 ac_status=$? 11620 $EGREP -v '^ *\+' conftest.er1 >conftest.err 11621 rm -f conftest.er1 11622 cat conftest.err >&5 11623 echo "$as_me:11623: \$? = $ac_status" >&5 11624 (exit "$ac_status"); } >/dev/null; then 11625 if test -s conftest.err; then 11626 ac_cpp_err=$ac_c_preproc_warn_flag 11627 else 11628 ac_cpp_err= 11629 fi 11630else 11631 ac_cpp_err=yes 11632fi 11633if test -z "$ac_cpp_err"; then 11634 eval "$as_ac_Header=yes" 11635else 11636 echo "$as_me: failed program was:" >&5 11637 cat "conftest.$ac_ext" >&5 11638 eval "$as_ac_Header=no" 11639fi 11640rm -f conftest.err "conftest.$ac_ext" 11641fi 11642echo "$as_me:11642: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 11643echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 11644if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 11645 cat >>confdefs.h <<EOF 11646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11647EOF 11648 11649fi 11650done 11651 11652echo "$as_me:11652: checking if wchar.h can be used as is" >&5 11653echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6 11654if test "${cf_cv_wchar_h_okay+set}" = set; then 11655 echo $ECHO_N "(cached) $ECHO_C" >&6 11656else 11657 11658cat >"conftest.$ac_ext" <<_ACEOF 11659#line 11659 "configure" 11660#include "confdefs.h" 11661 11662#include <stdlib.h> 11663#ifdef HAVE_WCHAR_H 11664#include <wchar.h> 11665#endif 11666#ifdef HAVE_WCTYPE_H 11667#include <wctype.h> 11668#endif 11669 11670int 11671main (void) 11672{ 11673 11674 wint_t foo = 0; 11675 int bar = iswpunct(foo) 11676 ; 11677 return 0; 11678} 11679_ACEOF 11680rm -f "conftest.$ac_objext" 11681if { (eval echo "$as_me:11681: \"$ac_compile\"") >&5 11682 (eval $ac_compile) 2>&5 11683 ac_status=$? 11684 echo "$as_me:11684: \$? = $ac_status" >&5 11685 (exit "$ac_status"); } && 11686 { ac_try='test -s "conftest.$ac_objext"' 11687 { (eval echo "$as_me:11687: \"$ac_try\"") >&5 11688 (eval $ac_try) 2>&5 11689 ac_status=$? 11690 echo "$as_me:11690: \$? = $ac_status" >&5 11691 (exit "$ac_status"); }; }; then 11692 cf_cv_wchar_h_okay=yes 11693else 11694 echo "$as_me: failed program was:" >&5 11695cat "conftest.$ac_ext" >&5 11696cf_cv_wchar_h_okay=no 11697fi 11698rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11699fi 11700echo "$as_me:11700: result: $cf_cv_wchar_h_okay" >&5 11701echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6 11702 11703if test "$cf_cv_wchar_h_okay" = no 11704then 11705 11706echo "$as_me:11706: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 11707echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 11708cat >"conftest.$ac_ext" <<_ACEOF 11709#line 11709 "configure" 11710#include "confdefs.h" 11711#include <sys/types.h> 11712 11713int 11714main (void) 11715{ 11716 11717#ifndef _XOPEN_SOURCE_EXTENDED 11718make an error 11719#endif 11720 ; 11721 return 0; 11722} 11723_ACEOF 11724rm -f "conftest.$ac_objext" 11725if { (eval echo "$as_me:11725: \"$ac_compile\"") >&5 11726 (eval $ac_compile) 2>&5 11727 ac_status=$? 11728 echo "$as_me:11728: \$? = $ac_status" >&5 11729 (exit "$ac_status"); } && 11730 { ac_try='test -s "conftest.$ac_objext"' 11731 { (eval echo "$as_me:11731: \"$ac_try\"") >&5 11732 (eval $ac_try) 2>&5 11733 ac_status=$? 11734 echo "$as_me:11734: \$? = $ac_status" >&5 11735 (exit "$ac_status"); }; }; then 11736 cf_result=no 11737else 11738 echo "$as_me: failed program was:" >&5 11739cat "conftest.$ac_ext" >&5 11740cf_result=yes 11741fi 11742rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11743echo "$as_me:11743: result: $cf_result" >&5 11744echo "${ECHO_T}$cf_result" >&6 11745 11746if test "$cf_result" = yes ; then 11747 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 11748elif test "x" != "x" ; then 11749 echo "$as_me:11749: checking checking for compatible value versus " >&5 11750echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6 11751 cat >"conftest.$ac_ext" <<_ACEOF 11752#line 11752 "configure" 11753#include "confdefs.h" 11754#include <sys/types.h> 11755 11756int 11757main (void) 11758{ 11759 11760#if _XOPEN_SOURCE_EXTENDED- < 0 11761make an error 11762#endif 11763 ; 11764 return 0; 11765} 11766_ACEOF 11767rm -f "conftest.$ac_objext" 11768if { (eval echo "$as_me:11768: \"$ac_compile\"") >&5 11769 (eval $ac_compile) 2>&5 11770 ac_status=$? 11771 echo "$as_me:11771: \$? = $ac_status" >&5 11772 (exit "$ac_status"); } && 11773 { ac_try='test -s "conftest.$ac_objext"' 11774 { (eval echo "$as_me:11774: \"$ac_try\"") >&5 11775 (eval $ac_try) 2>&5 11776 ac_status=$? 11777 echo "$as_me:11777: \$? = $ac_status" >&5 11778 (exit "$ac_status"); }; }; then 11779 cf_result=yes 11780else 11781 echo "$as_me: failed program was:" >&5 11782cat "conftest.$ac_ext" >&5 11783cf_result=no 11784fi 11785rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11786 echo "$as_me:11786: result: $cf_result" >&5 11787echo "${ECHO_T}$cf_result" >&6 11788 if test "$cf_result" = no ; then 11789 # perhaps we can override it - try... 11790 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=" 11791 fi 11792fi 11793 11794fi 11795 11796echo "$as_me:11796: checking if wcwidth agrees graphics are single-width" >&5 11797echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6 11798if test "${cf_cv_wcwidth_graphics+set}" = set; then 11799 echo $ECHO_N "(cached) $ECHO_C" >&6 11800else 11801 11802cat >conftest.in <<CF_EOF 11803- VT100 symbols 118040x250c upper left corner 118050x2514 lower left corner 118060x2510 upper right corner 118070x2518 lower right corner 118080x251c tee pointing left 118090x2524 tee pointing right 118100x2534 tee pointing up 118110x252c tee pointing down 118120x2500 horizontal line 118130x2502 vertical line 118140x253c large plus or crossover 118150x23ba scan line 1 118160x23bd scan line 9 118170x25c6 diamond 118180x2592 checker board (stipple) 118190x00b0 degree symbol 118200x00b1 plus/minus 118210x00b7 bullet 11822- Teletype 5410v1 symbols 118230x2190 arrow pointing left 118240x2192 arrow pointing right 118250x2193 arrow pointing down 118260x2191 arrow pointing up 118270x2592 board of squares 118280x2603 lantern symbol 118290x25ae solid square block 11830- these defaults were invented for ncurses 118310x23bb scan line 3 118320x23bc scan line 7 118330x2264 less-than-or-equal-to 118340x2265 greater-than-or-equal-to 118350x03c0 greek pi 118360x2260 not-equal 118370x00a3 pound-sterling symbol 11838- thick-line-drawing 118390x250f upper left corner 118400x2517 lower left corner 118410x2513 upper right corner 118420x251b lower right corner 118430x2523 tee pointing left 118440x252b tee pointing right 118450x253b tee pointing up 118460x2533 tee pointing down 118470x2501 horizontal line 118480x2503 vertical line 118490x254b large plus or crossover 11850- double-line-drawing 118510x2554 upper left corner 118520x255a lower left corner 118530x2557 upper right corner 118540x255d lower right corner 118550x2563 tee pointing left 118560x2560 tee pointing right 118570x2569 tee pointing up 118580x2566 tee pointing down 118590x2550 horizontal line 118600x2551 vertical line 118610x256c large plus or crossover 11862CF_EOF 11863if test "$cross_compiling" = yes; then 11864 cf_cv_wcwidth_graphics=unknown 11865else 11866 cat >"conftest.$ac_ext" <<_ACEOF 11867#line 11867 "configure" 11868#include "confdefs.h" 11869 11870#include <locale.h> 11871#include <stdio.h> 11872#include <wchar.h> 11873 11874#define MY_LEN 80 11875 11876int 11877main(void) 11878{ 11879 FILE *fp; 11880 int value; 11881 char buffer[MY_LEN + 1]; 11882 char notes[MY_LEN + 1]; 11883 int totals = 0; 11884 int passed = 0; 11885 11886 if (setlocale(LC_ALL, "en_US.UTF8") || 11887 setlocale(LC_ALL, "en_US.UTF-8") || 11888 setlocale(LC_ALL, "en_US.utf8") || 11889 setlocale(LC_ALL, "en_US.utf-8")) { 11890 if ((fp = fopen("conftest.in", "r")) != 0) { 11891 while (fgets(buffer, MY_LEN, fp) != 0) { 11892 if (*buffer == '-') { 11893 fprintf(stderr, "\\t%s", buffer); 11894 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) { 11895 ++totals; 11896 if (wcwidth(value) == 1) 11897 ++passed; 11898 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer); 11899 } else { 11900 fprintf(stderr, "?\\t%s", buffer); 11901 } 11902 } 11903 } 11904 } 11905 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals); 11906 return (totals == passed) ? 0 : 1; 11907} 11908 11909_ACEOF 11910rm -f "conftest$ac_exeext" 11911if { (eval echo "$as_me:11911: \"$ac_link\"") >&5 11912 (eval $ac_link) 2>&5 11913 ac_status=$? 11914 echo "$as_me:11914: \$? = $ac_status" >&5 11915 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 11916 { (eval echo "$as_me:11916: \"$ac_try\"") >&5 11917 (eval $ac_try) 2>&5 11918 ac_status=$? 11919 echo "$as_me:11919: \$? = $ac_status" >&5 11920 (exit "$ac_status"); }; }; then 11921 cf_cv_wcwidth_graphics=yes 11922else 11923 echo "$as_me: program exited with status $ac_status" >&5 11924echo "$as_me: failed program was:" >&5 11925cat "conftest.$ac_ext" >&5 11926cf_cv_wcwidth_graphics=no 11927fi 11928rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 11929fi 11930 11931fi 11932echo "$as_me:11932: result: $cf_cv_wcwidth_graphics" >&5 11933echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6 11934 11935 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0 11936 11937 # with_overwrite=no 11938 NCURSES_CH_T=cchar_t 11939 11940for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs 11941do 11942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11943echo "$as_me:11943: checking for $ac_func" >&5 11944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11945if eval "test \"\${$as_ac_var+set}\" = set"; then 11946 echo $ECHO_N "(cached) $ECHO_C" >&6 11947else 11948 cat >"conftest.$ac_ext" <<_ACEOF 11949#line 11949 "configure" 11950#include "confdefs.h" 11951#define $ac_func autoconf_temporary 11952#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 11953#undef $ac_func 11954 11955#ifdef __cplusplus 11956extern "C" 11957#endif 11958 11959/* We use char because int might match the return type of a gcc2 11960 builtin and then its argument prototype would still apply. */ 11961char $ac_func (void); 11962 11963int 11964main (void) 11965{ 11966 11967/* The GNU C library defines stubs for functions which it implements 11968 to always fail with ENOSYS. Some functions are actually named 11969 something starting with __ and the normal name is an alias. */ 11970#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11971#error found stub for $ac_func 11972#endif 11973 11974 return $ac_func (); 11975 ; 11976 return 0; 11977} 11978_ACEOF 11979rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11980if { (eval echo "$as_me:11980: \"$ac_link\"") >&5 11981 (eval $ac_link) 2>&5 11982 ac_status=$? 11983 echo "$as_me:11983: \$? = $ac_status" >&5 11984 (exit "$ac_status"); } && 11985 { ac_try='test -s "conftest$ac_exeext"' 11986 { (eval echo "$as_me:11986: \"$ac_try\"") >&5 11987 (eval $ac_try) 2>&5 11988 ac_status=$? 11989 echo "$as_me:11989: \$? = $ac_status" >&5 11990 (exit "$ac_status"); }; }; then 11991 eval "$as_ac_var=yes" 11992else 11993 echo "$as_me: failed program was:" >&5 11994cat "conftest.$ac_ext" >&5 11995eval "$as_ac_var=no" 11996fi 11997rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11998fi 11999echo "$as_me:11999: result: `eval echo '${'"$as_ac_var"'}'`" >&5 12000echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 12001if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 12002 cat >>confdefs.h <<EOF 12003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12004EOF 12005 12006fi 12007done 12008 12009 if test "x$ac_cv_func_putwc" != xyes ; then 12010 12011echo "$as_me:12011: checking for multibyte character support" >&5 12012echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 12013if test "${cf_cv_utf8_lib+set}" = set; then 12014 echo $ECHO_N "(cached) $ECHO_C" >&6 12015else 12016 12017 cf_save_LIBS="$LIBS" 12018 cat >"conftest.$ac_ext" <<_ACEOF 12019#line 12019 "configure" 12020#include "confdefs.h" 12021 12022#include <stdlib.h> 12023int 12024main (void) 12025{ 12026putwc(0,0); 12027 ; 12028 return 0; 12029} 12030_ACEOF 12031rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12032if { (eval echo "$as_me:12032: \"$ac_link\"") >&5 12033 (eval $ac_link) 2>&5 12034 ac_status=$? 12035 echo "$as_me:12035: \$? = $ac_status" >&5 12036 (exit "$ac_status"); } && 12037 { ac_try='test -s "conftest$ac_exeext"' 12038 { (eval echo "$as_me:12038: \"$ac_try\"") >&5 12039 (eval $ac_try) 2>&5 12040 ac_status=$? 12041 echo "$as_me:12041: \$? = $ac_status" >&5 12042 (exit "$ac_status"); }; }; then 12043 cf_cv_utf8_lib=yes 12044else 12045 echo "$as_me: failed program was:" >&5 12046cat "conftest.$ac_ext" >&5 12047 12048# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 12049# will be set on completion of the AC_TRY_LINK below. 12050cf_cv_header_path_utf8= 12051cf_cv_library_path_utf8= 12052 12053echo "${as_me:-configure}:12053: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 12054 12055cf_save_LIBS="$LIBS" 12056 12057cat >"conftest.$ac_ext" <<_ACEOF 12058#line 12058 "configure" 12059#include "confdefs.h" 12060 12061#include <libutf8.h> 12062int 12063main (void) 12064{ 12065putwc(0,0); 12066 ; 12067 return 0; 12068} 12069_ACEOF 12070rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12071if { (eval echo "$as_me:12071: \"$ac_link\"") >&5 12072 (eval $ac_link) 2>&5 12073 ac_status=$? 12074 echo "$as_me:12074: \$? = $ac_status" >&5 12075 (exit "$ac_status"); } && 12076 { ac_try='test -s "conftest$ac_exeext"' 12077 { (eval echo "$as_me:12077: \"$ac_try\"") >&5 12078 (eval $ac_try) 2>&5 12079 ac_status=$? 12080 echo "$as_me:12080: \$? = $ac_status" >&5 12081 (exit "$ac_status"); }; }; then 12082 12083 cf_cv_find_linkage_utf8=yes 12084 cf_cv_header_path_utf8=/usr/include 12085 cf_cv_library_path_utf8=/usr/lib 12086 12087else 12088 echo "$as_me: failed program was:" >&5 12089cat "conftest.$ac_ext" >&5 12090 12091LIBS="-lutf8 $cf_save_LIBS" 12092 12093cat >"conftest.$ac_ext" <<_ACEOF 12094#line 12094 "configure" 12095#include "confdefs.h" 12096 12097#include <libutf8.h> 12098int 12099main (void) 12100{ 12101putwc(0,0); 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12107if { (eval echo "$as_me:12107: \"$ac_link\"") >&5 12108 (eval $ac_link) 2>&5 12109 ac_status=$? 12110 echo "$as_me:12110: \$? = $ac_status" >&5 12111 (exit "$ac_status"); } && 12112 { ac_try='test -s "conftest$ac_exeext"' 12113 { (eval echo "$as_me:12113: \"$ac_try\"") >&5 12114 (eval $ac_try) 2>&5 12115 ac_status=$? 12116 echo "$as_me:12116: \$? = $ac_status" >&5 12117 (exit "$ac_status"); }; }; then 12118 12119 cf_cv_find_linkage_utf8=yes 12120 cf_cv_header_path_utf8=/usr/include 12121 cf_cv_library_path_utf8=/usr/lib 12122 cf_cv_library_file_utf8="-lutf8" 12123 12124else 12125 echo "$as_me: failed program was:" >&5 12126cat "conftest.$ac_ext" >&5 12127 12128 cf_cv_find_linkage_utf8=no 12129 LIBS="$cf_save_LIBS" 12130 12131 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 12132 12133echo "${as_me:-configure}:12133: testing find linkage for utf8 library ..." 1>&5 12134 12135echo "${as_me:-configure}:12135: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 12136 12137 cf_save_CPPFLAGS="$CPPFLAGS" 12138 cf_test_CPPFLAGS="$CPPFLAGS" 12139 12140cf_search= 12141 12142# collect the current set of include-directories from compiler flags 12143cf_header_path_list="" 12144if test -n "${CFLAGS}${CPPFLAGS}" ; then 12145 for cf_header_path in $CPPFLAGS $CFLAGS 12146 do 12147 case "$cf_header_path" in 12148 (-I*) 12149 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 12150 12151test "x$cf_header_path" != "xNONE" && \ 12152test -d "$cf_header_path" && \ 12153 { 12154 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 12155 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include" 12156 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8" 12157 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include" 12158 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include" 12159 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 12160} 12161 12162 cf_header_path_list="$cf_header_path_list $cf_search" 12163 ;; 12164 esac 12165 done 12166fi 12167 12168# add the variations for the package we are looking for 12169 12170cf_search= 12171 12172test "x$prefix" != "xNONE" && \ 12173test -d "$prefix" && \ 12174 { 12175 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 12176 test -d "$prefix/include" && cf_search="$cf_search $prefix/include" 12177 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8" 12178 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include" 12179 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include" 12180 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8" 12181} 12182 12183for cf_subdir_prefix in \ 12184 /usr \ 12185 /usr/local \ 12186 /usr/pkg \ 12187 /opt \ 12188 /opt/local \ 12189 $HOME 12190do 12191 12192test "x$cf_subdir_prefix" != "x$prefix" && \ 12193test -d "$cf_subdir_prefix" && \ 12194{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 12195 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 12196 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include" 12197 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8" 12198 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include" 12199 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include" 12200 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8" 12201} 12202 12203done 12204 12205test "$includedir" != NONE && \ 12206test "$includedir" != "/usr/include" && \ 12207test -d "$includedir" && { 12208 test -d "$includedir" && cf_search="$cf_search $includedir" 12209 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8" 12210} 12211 12212test "$oldincludedir" != NONE && \ 12213test "$oldincludedir" != "/usr/include" && \ 12214test -d "$oldincludedir" && { 12215 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir" 12216 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8" 12217} 12218 12219cf_search="$cf_search $cf_header_path_list" 12220 12221 for cf_cv_header_path_utf8 in $cf_search 12222 do 12223 if test -d "$cf_cv_header_path_utf8" ; then 12224 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 12225 12226echo "${as_me:-configure}:12226: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 12227 12228 CPPFLAGS="$cf_save_CPPFLAGS" 12229 12230 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12231 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8" 12232 12233 cat >"conftest.$ac_ext" <<_ACEOF 12234#line 12234 "configure" 12235#include "confdefs.h" 12236 12237#include <libutf8.h> 12238int 12239main (void) 12240{ 12241putwc(0,0); 12242 ; 12243 return 0; 12244} 12245_ACEOF 12246rm -f "conftest.$ac_objext" 12247if { (eval echo "$as_me:12247: \"$ac_compile\"") >&5 12248 (eval $ac_compile) 2>&5 12249 ac_status=$? 12250 echo "$as_me:12250: \$? = $ac_status" >&5 12251 (exit "$ac_status"); } && 12252 { ac_try='test -s "conftest.$ac_objext"' 12253 { (eval echo "$as_me:12253: \"$ac_try\"") >&5 12254 (eval $ac_try) 2>&5 12255 ac_status=$? 12256 echo "$as_me:12256: \$? = $ac_status" >&5 12257 (exit "$ac_status"); }; }; then 12258 12259 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 12260 12261echo "${as_me:-configure}:12261: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 12262 12263 cf_cv_find_linkage_utf8=maybe 12264 cf_test_CPPFLAGS="$CPPFLAGS" 12265 break 12266else 12267 echo "$as_me: failed program was:" >&5 12268cat "conftest.$ac_ext" >&5 12269 12270 CPPFLAGS="$cf_save_CPPFLAGS" 12271 12272fi 12273rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12274 fi 12275 done 12276 12277 if test "$cf_cv_find_linkage_utf8" = maybe ; then 12278 12279echo "${as_me:-configure}:12279: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 12280 12281 cf_save_LIBS="$LIBS" 12282 cf_save_LDFLAGS="$LDFLAGS" 12283 12284 if test "$cf_cv_find_linkage_utf8" != yes ; then 12285 12286cf_search= 12287cf_library_path_list="" 12288if test -n "${LDFLAGS}${LIBS}" ; then 12289 for cf_library_path in $LDFLAGS $LIBS 12290 do 12291 case "$cf_library_path" in 12292 (-L*) 12293 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 12294 12295test "x$cf_library_path" != "xNONE" && \ 12296test -d "$cf_library_path" && \ 12297 { 12298 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 12299 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib" 12300 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8" 12301 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 12302 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib" 12303 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 12304} 12305 12306 cf_library_path_list="$cf_library_path_list $cf_search" 12307 ;; 12308 esac 12309 done 12310fi 12311 12312cf_search= 12313 12314test "x$prefix" != "xNONE" && \ 12315test -d "$prefix" && \ 12316 { 12317 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 12318 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib" 12319 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8" 12320 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib" 12321 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib" 12322 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8" 12323} 12324 12325for cf_subdir_prefix in \ 12326 /usr \ 12327 /usr/local \ 12328 /usr/pkg \ 12329 /opt \ 12330 /opt/local \ 12331 $HOME 12332do 12333 12334test "x$cf_subdir_prefix" != "x$prefix" && \ 12335test -d "$cf_subdir_prefix" && \ 12336{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 12337 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 12338 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib" 12339 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8" 12340 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib" 12341 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib" 12342 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8" 12343} 12344 12345done 12346 12347cf_search="$cf_library_path_list $cf_search" 12348 12349 for cf_cv_library_path_utf8 in $cf_search 12350 do 12351 if test -d "$cf_cv_library_path_utf8" ; then 12352 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 12353 12354echo "${as_me:-configure}:12354: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 12355 12356 CPPFLAGS="$cf_test_CPPFLAGS" 12357 LIBS="-lutf8 $cf_save_LIBS" 12358 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 12359 cat >"conftest.$ac_ext" <<_ACEOF 12360#line 12360 "configure" 12361#include "confdefs.h" 12362 12363#include <libutf8.h> 12364int 12365main (void) 12366{ 12367putwc(0,0); 12368 ; 12369 return 0; 12370} 12371_ACEOF 12372rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12373if { (eval echo "$as_me:12373: \"$ac_link\"") >&5 12374 (eval $ac_link) 2>&5 12375 ac_status=$? 12376 echo "$as_me:12376: \$? = $ac_status" >&5 12377 (exit "$ac_status"); } && 12378 { ac_try='test -s "conftest$ac_exeext"' 12379 { (eval echo "$as_me:12379: \"$ac_try\"") >&5 12380 (eval $ac_try) 2>&5 12381 ac_status=$? 12382 echo "$as_me:12382: \$? = $ac_status" >&5 12383 (exit "$ac_status"); }; }; then 12384 12385 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 12386 12387echo "${as_me:-configure}:12387: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 12388 12389 cf_cv_find_linkage_utf8=yes 12390 cf_cv_library_file_utf8="-lutf8" 12391 break 12392else 12393 echo "$as_me: failed program was:" >&5 12394cat "conftest.$ac_ext" >&5 12395 12396 CPPFLAGS="$cf_save_CPPFLAGS" 12397 LIBS="$cf_save_LIBS" 12398 LDFLAGS="$cf_save_LDFLAGS" 12399 12400fi 12401rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12402 fi 12403 done 12404 CPPFLAGS="$cf_save_CPPFLAGS" 12405 LDFLAGS="$cf_save_LDFLAGS" 12406 fi 12407 12408 else 12409 cf_cv_find_linkage_utf8=no 12410 fi 12411 12412fi 12413rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12414 12415fi 12416rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12417 12418LIBS="$cf_save_LIBS" 12419 12420if test "$cf_cv_find_linkage_utf8" = yes ; then 12421cf_cv_utf8_lib=add-on 12422else 12423cf_cv_utf8_lib=no 12424fi 12425 12426fi 12427rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12428fi 12429echo "$as_me:12429: result: $cf_cv_utf8_lib" >&5 12430echo "${ECHO_T}$cf_cv_utf8_lib" >&6 12431 12432# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 12433# ncurses/ncursesw: 12434if test "$cf_cv_utf8_lib" = "add-on" ; then 12435 12436cat >>confdefs.h <<\EOF 12437#define HAVE_LIBUTF8_H 1 12438EOF 12439 12440if test -n "$cf_cv_header_path_utf8" ; then 12441 for cf_add_incdir in $cf_cv_header_path_utf8 12442 do 12443 while test "$cf_add_incdir" != /usr/include 12444 do 12445 if test -d "$cf_add_incdir" 12446 then 12447 cf_have_incdir=no 12448 if test -n "$CFLAGS$CPPFLAGS" ; then 12449 # a loop is needed to ensure we can add subdirs of existing dirs 12450 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 12451 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 12452 cf_have_incdir=yes; break 12453 fi 12454 done 12455 fi 12456 12457 if test "$cf_have_incdir" = no ; then 12458 if test "$cf_add_incdir" = /usr/local/include ; then 12459 if test "$GCC" = yes 12460 then 12461 cf_save_CPPFLAGS=$CPPFLAGS 12462 12463 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12464 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 12465 12466 cat >"conftest.$ac_ext" <<_ACEOF 12467#line 12467 "configure" 12468#include "confdefs.h" 12469#include <stdio.h> 12470int 12471main (void) 12472{ 12473printf("Hello") 12474 ; 12475 return 0; 12476} 12477_ACEOF 12478rm -f "conftest.$ac_objext" 12479if { (eval echo "$as_me:12479: \"$ac_compile\"") >&5 12480 (eval $ac_compile) 2>&5 12481 ac_status=$? 12482 echo "$as_me:12482: \$? = $ac_status" >&5 12483 (exit "$ac_status"); } && 12484 { ac_try='test -s "conftest.$ac_objext"' 12485 { (eval echo "$as_me:12485: \"$ac_try\"") >&5 12486 (eval $ac_try) 2>&5 12487 ac_status=$? 12488 echo "$as_me:12488: \$? = $ac_status" >&5 12489 (exit "$ac_status"); }; }; then 12490 : 12491else 12492 echo "$as_me: failed program was:" >&5 12493cat "conftest.$ac_ext" >&5 12494cf_have_incdir=yes 12495fi 12496rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12497 CPPFLAGS=$cf_save_CPPFLAGS 12498 fi 12499 fi 12500 fi 12501 12502 if test "$cf_have_incdir" = no ; then 12503 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 12504 12505echo "${as_me:-configure}:12505: testing adding $cf_add_incdir to include-path ..." 1>&5 12506 12507 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 12508 12509 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 12510 test "$cf_top_incdir" = "$cf_add_incdir" && break 12511 cf_add_incdir="$cf_top_incdir" 12512 else 12513 break 12514 fi 12515 else 12516 break 12517 fi 12518 done 12519 done 12520fi 12521 12522if test -n "$cf_cv_library_path_utf8" ; then 12523 for cf_add_libdir in $cf_cv_library_path_utf8 12524 do 12525 if test "$cf_add_libdir" = /usr/lib ; then 12526 : 12527 elif test -d "$cf_add_libdir" 12528 then 12529 cf_have_libdir=no 12530 if test -n "$LDFLAGS$LIBS" ; then 12531 # a loop is needed to ensure we can add subdirs of existing dirs 12532 for cf_test_libdir in $LDFLAGS $LIBS ; do 12533 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 12534 cf_have_libdir=yes; break 12535 fi 12536 done 12537 fi 12538 if test "$cf_have_libdir" = no ; then 12539 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 12540 12541echo "${as_me:-configure}:12541: testing adding $cf_add_libdir to library-path ..." 1>&5 12542 12543 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 12544 fi 12545 fi 12546 done 12547fi 12548 12549cf_add_libs="$LIBS" 12550# reverse order 12551cf_add_0lib= 12552for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12553# filter duplicates 12554for cf_add_1lib in $cf_add_0lib; do 12555 for cf_add_2lib in $cf_add_libs; do 12556 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12557 cf_add_1lib= 12558 break 12559 fi 12560 done 12561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12562done 12563LIBS="$cf_add_libs" 12564 12565fi 12566 12567 if test "$cf_cv_utf8_lib" != no ; then 12568 NCURSES_LIBUTF8=1 12569 fi 12570 fi 12571 12572# This is needed on Tru64 5.0 to declare mbstate_t 12573echo "$as_me:12573: checking if we must include wchar.h to declare mbstate_t" >&5 12574echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 12575if test "${cf_cv_mbstate_t+set}" = set; then 12576 echo $ECHO_N "(cached) $ECHO_C" >&6 12577else 12578 12579cat >"conftest.$ac_ext" <<_ACEOF 12580#line 12580 "configure" 12581#include "confdefs.h" 12582 12583#include <stdlib.h> 12584#include <stdarg.h> 12585#include <stdio.h> 12586#ifdef HAVE_LIBUTF8_H 12587#include <libutf8.h> 12588#endif 12589int 12590main (void) 12591{ 12592mbstate_t state 12593 ; 12594 return 0; 12595} 12596_ACEOF 12597rm -f "conftest.$ac_objext" 12598if { (eval echo "$as_me:12598: \"$ac_compile\"") >&5 12599 (eval $ac_compile) 2>&5 12600 ac_status=$? 12601 echo "$as_me:12601: \$? = $ac_status" >&5 12602 (exit "$ac_status"); } && 12603 { ac_try='test -s "conftest.$ac_objext"' 12604 { (eval echo "$as_me:12604: \"$ac_try\"") >&5 12605 (eval $ac_try) 2>&5 12606 ac_status=$? 12607 echo "$as_me:12607: \$? = $ac_status" >&5 12608 (exit "$ac_status"); }; }; then 12609 cf_cv_mbstate_t=no 12610else 12611 echo "$as_me: failed program was:" >&5 12612cat "conftest.$ac_ext" >&5 12613cat >"conftest.$ac_ext" <<_ACEOF 12614#line 12614 "configure" 12615#include "confdefs.h" 12616 12617#include <stdlib.h> 12618#include <stdarg.h> 12619#include <stdio.h> 12620#include <wchar.h> 12621#ifdef HAVE_LIBUTF8_H 12622#include <libutf8.h> 12623#endif 12624int 12625main (void) 12626{ 12627mbstate_t value 12628 ; 12629 return 0; 12630} 12631_ACEOF 12632rm -f "conftest.$ac_objext" 12633if { (eval echo "$as_me:12633: \"$ac_compile\"") >&5 12634 (eval $ac_compile) 2>&5 12635 ac_status=$? 12636 echo "$as_me:12636: \$? = $ac_status" >&5 12637 (exit "$ac_status"); } && 12638 { ac_try='test -s "conftest.$ac_objext"' 12639 { (eval echo "$as_me:12639: \"$ac_try\"") >&5 12640 (eval $ac_try) 2>&5 12641 ac_status=$? 12642 echo "$as_me:12642: \$? = $ac_status" >&5 12643 (exit "$ac_status"); }; }; then 12644 cf_cv_mbstate_t=yes 12645else 12646 echo "$as_me: failed program was:" >&5 12647cat "conftest.$ac_ext" >&5 12648cf_cv_mbstate_t=unknown 12649fi 12650rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12651fi 12652rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12653fi 12654echo "$as_me:12654: result: $cf_cv_mbstate_t" >&5 12655echo "${ECHO_T}$cf_cv_mbstate_t" >&6 12656 12657if test "$cf_cv_mbstate_t" = yes ; then 12658 12659cat >>confdefs.h <<\EOF 12660#define NEED_WCHAR_H 1 12661EOF 12662 12663 NEED_WCHAR_H=1 12664fi 12665 12666# if we do not find mbstate_t in either place, use substitution to provide a fallback. 12667if test "$cf_cv_mbstate_t" = unknown ; then 12668 NCURSES_MBSTATE_T=1 12669fi 12670 12671# This is needed on Tru64 5.0 to declare wchar_t 12672echo "$as_me:12672: checking if we must include wchar.h to declare wchar_t" >&5 12673echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6 12674if test "${cf_cv_wchar_t+set}" = set; then 12675 echo $ECHO_N "(cached) $ECHO_C" >&6 12676else 12677 12678cat >"conftest.$ac_ext" <<_ACEOF 12679#line 12679 "configure" 12680#include "confdefs.h" 12681 12682#include <stdlib.h> 12683#include <stdarg.h> 12684#include <stdio.h> 12685#ifdef HAVE_LIBUTF8_H 12686#include <libutf8.h> 12687#endif 12688int 12689main (void) 12690{ 12691wchar_t state 12692 ; 12693 return 0; 12694} 12695_ACEOF 12696rm -f "conftest.$ac_objext" 12697if { (eval echo "$as_me:12697: \"$ac_compile\"") >&5 12698 (eval $ac_compile) 2>&5 12699 ac_status=$? 12700 echo "$as_me:12700: \$? = $ac_status" >&5 12701 (exit "$ac_status"); } && 12702 { ac_try='test -s "conftest.$ac_objext"' 12703 { (eval echo "$as_me:12703: \"$ac_try\"") >&5 12704 (eval $ac_try) 2>&5 12705 ac_status=$? 12706 echo "$as_me:12706: \$? = $ac_status" >&5 12707 (exit "$ac_status"); }; }; then 12708 cf_cv_wchar_t=no 12709else 12710 echo "$as_me: failed program was:" >&5 12711cat "conftest.$ac_ext" >&5 12712cat >"conftest.$ac_ext" <<_ACEOF 12713#line 12713 "configure" 12714#include "confdefs.h" 12715 12716#include <stdlib.h> 12717#include <stdarg.h> 12718#include <stdio.h> 12719#include <wchar.h> 12720#ifdef HAVE_LIBUTF8_H 12721#include <libutf8.h> 12722#endif 12723int 12724main (void) 12725{ 12726wchar_t value 12727 ; 12728 return 0; 12729} 12730_ACEOF 12731rm -f "conftest.$ac_objext" 12732if { (eval echo "$as_me:12732: \"$ac_compile\"") >&5 12733 (eval $ac_compile) 2>&5 12734 ac_status=$? 12735 echo "$as_me:12735: \$? = $ac_status" >&5 12736 (exit "$ac_status"); } && 12737 { ac_try='test -s "conftest.$ac_objext"' 12738 { (eval echo "$as_me:12738: \"$ac_try\"") >&5 12739 (eval $ac_try) 2>&5 12740 ac_status=$? 12741 echo "$as_me:12741: \$? = $ac_status" >&5 12742 (exit "$ac_status"); }; }; then 12743 cf_cv_wchar_t=yes 12744else 12745 echo "$as_me: failed program was:" >&5 12746cat "conftest.$ac_ext" >&5 12747cf_cv_wchar_t=unknown 12748fi 12749rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12750fi 12751rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12752fi 12753echo "$as_me:12753: result: $cf_cv_wchar_t" >&5 12754echo "${ECHO_T}$cf_cv_wchar_t" >&6 12755 12756if test "$cf_cv_wchar_t" = yes ; then 12757 12758cat >>confdefs.h <<\EOF 12759#define NEED_WCHAR_H 1 12760EOF 12761 12762 NEED_WCHAR_H=1 12763fi 12764 12765# if we do not find wchar_t in either place, use substitution to provide a fallback. 12766if test "$cf_cv_wchar_t" = unknown ; then 12767 NCURSES_WCHAR_T=1 12768fi 12769 12770# if we find wchar_t in either place, use substitution to provide a fallback. 12771if test "$cf_cv_wchar_t" != unknown ; then 12772 NCURSES_OK_WCHAR_T=1 12773fi 12774 12775# This is needed on Tru64 5.0 to declare wint_t 12776echo "$as_me:12776: checking if we must include wchar.h to declare wint_t" >&5 12777echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6 12778if test "${cf_cv_wint_t+set}" = set; then 12779 echo $ECHO_N "(cached) $ECHO_C" >&6 12780else 12781 12782cat >"conftest.$ac_ext" <<_ACEOF 12783#line 12783 "configure" 12784#include "confdefs.h" 12785 12786#include <stdlib.h> 12787#include <stdarg.h> 12788#include <stdio.h> 12789#ifdef HAVE_LIBUTF8_H 12790#include <libutf8.h> 12791#endif 12792int 12793main (void) 12794{ 12795wint_t state 12796 ; 12797 return 0; 12798} 12799_ACEOF 12800rm -f "conftest.$ac_objext" 12801if { (eval echo "$as_me:12801: \"$ac_compile\"") >&5 12802 (eval $ac_compile) 2>&5 12803 ac_status=$? 12804 echo "$as_me:12804: \$? = $ac_status" >&5 12805 (exit "$ac_status"); } && 12806 { ac_try='test -s "conftest.$ac_objext"' 12807 { (eval echo "$as_me:12807: \"$ac_try\"") >&5 12808 (eval $ac_try) 2>&5 12809 ac_status=$? 12810 echo "$as_me:12810: \$? = $ac_status" >&5 12811 (exit "$ac_status"); }; }; then 12812 cf_cv_wint_t=no 12813else 12814 echo "$as_me: failed program was:" >&5 12815cat "conftest.$ac_ext" >&5 12816cat >"conftest.$ac_ext" <<_ACEOF 12817#line 12817 "configure" 12818#include "confdefs.h" 12819 12820#include <stdlib.h> 12821#include <stdarg.h> 12822#include <stdio.h> 12823#include <wchar.h> 12824#ifdef HAVE_LIBUTF8_H 12825#include <libutf8.h> 12826#endif 12827int 12828main (void) 12829{ 12830wint_t value 12831 ; 12832 return 0; 12833} 12834_ACEOF 12835rm -f "conftest.$ac_objext" 12836if { (eval echo "$as_me:12836: \"$ac_compile\"") >&5 12837 (eval $ac_compile) 2>&5 12838 ac_status=$? 12839 echo "$as_me:12839: \$? = $ac_status" >&5 12840 (exit "$ac_status"); } && 12841 { ac_try='test -s "conftest.$ac_objext"' 12842 { (eval echo "$as_me:12842: \"$ac_try\"") >&5 12843 (eval $ac_try) 2>&5 12844 ac_status=$? 12845 echo "$as_me:12845: \$? = $ac_status" >&5 12846 (exit "$ac_status"); }; }; then 12847 cf_cv_wint_t=yes 12848else 12849 echo "$as_me: failed program was:" >&5 12850cat "conftest.$ac_ext" >&5 12851cf_cv_wint_t=unknown 12852fi 12853rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12854fi 12855rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12856fi 12857echo "$as_me:12857: result: $cf_cv_wint_t" >&5 12858echo "${ECHO_T}$cf_cv_wint_t" >&6 12859 12860if test "$cf_cv_wint_t" = yes ; then 12861 12862cat >>confdefs.h <<\EOF 12863#define NEED_WCHAR_H 1 12864EOF 12865 12866 NEED_WCHAR_H=1 12867fi 12868 12869# if we do not find wint_t in either place, use substitution to provide a fallback. 12870if test "$cf_cv_wint_t" = unknown ; then 12871 NCURSES_WINT_T=1 12872fi 12873 12874# if we find wint_t in either place, use substitution to provide a fallback. 12875if test "$cf_cv_wint_t" != unknown ; then 12876 NCURSES_OK_WINT_T=1 12877fi 12878 12879 if test "$NCURSES_MBSTATE_T" != 0; then 12880 12881cat >>confdefs.h <<\EOF 12882#define NEED_MBSTATE_T_DEF 1 12883EOF 12884 12885 fi 12886fi 12887 12888### use option --disable-lp64 to allow long chtype 12889echo "$as_me:12889: checking whether to enable _LP64 definition in curses.h" >&5 12890echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6 12891 12892# Check whether --enable-lp64 or --disable-lp64 was given. 12893if test "${enable_lp64+set}" = set; then 12894 enableval="$enable_lp64" 12895 with_lp64=$enableval 12896else 12897 with_lp64=$cf_dft_with_lp64 12898fi; 12899echo "$as_me:12899: result: $with_lp64" >&5 12900echo "${ECHO_T}$with_lp64" >&6 12901 12902if test "x$with_lp64" = xyes ; then 12903 cf_cv_enable_lp64=1 12904else 12905 cf_cv_enable_lp64=0 12906fi 12907 12908# Check whether --enable-largefile or --disable-largefile was given. 12909if test "${enable_largefile+set}" = set; then 12910 enableval="$enable_largefile" 12911 12912fi; 12913if test "$enable_largefile" != no; then 12914 12915 echo "$as_me:12915: checking for special C compiler options needed for large files" >&5 12916echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 12917if test "${ac_cv_sys_largefile_CC+set}" = set; then 12918 echo $ECHO_N "(cached) $ECHO_C" >&6 12919else 12920 ac_cv_sys_largefile_CC=no 12921 if test "$GCC" != yes; then 12922 ac_save_CC=$CC 12923 while :; do 12924 # IRIX 6.2 and later do not support large files by default, 12925 # so use the C compiler's -n32 option if that helps. 12926 cat >"conftest.$ac_ext" <<_ACEOF 12927#line 12927 "configure" 12928#include "confdefs.h" 12929#include <sys/types.h> 12930 /* Check that off_t can represent 2**63 - 1 correctly. 12931 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12932 since some C++ compilers masquerading as C compilers 12933 incorrectly reject 9223372036854775807. */ 12934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12936 && LARGE_OFF_T % 2147483647 == 1) 12937 ? 1 : -1]; 12938int 12939main (void) 12940{ 12941 12942 ; 12943 return 0; 12944} 12945_ACEOF 12946 rm -f "conftest.$ac_objext" 12947if { (eval echo "$as_me:12947: \"$ac_compile\"") >&5 12948 (eval $ac_compile) 2>&5 12949 ac_status=$? 12950 echo "$as_me:12950: \$? = $ac_status" >&5 12951 (exit "$ac_status"); } && 12952 { ac_try='test -s "conftest.$ac_objext"' 12953 { (eval echo "$as_me:12953: \"$ac_try\"") >&5 12954 (eval $ac_try) 2>&5 12955 ac_status=$? 12956 echo "$as_me:12956: \$? = $ac_status" >&5 12957 (exit "$ac_status"); }; }; then 12958 break 12959else 12960 echo "$as_me: failed program was:" >&5 12961cat "conftest.$ac_ext" >&5 12962fi 12963rm -f "conftest.$ac_objext" 12964 CC="$CC -n32" 12965 rm -f "conftest.$ac_objext" 12966if { (eval echo "$as_me:12966: \"$ac_compile\"") >&5 12967 (eval $ac_compile) 2>&5 12968 ac_status=$? 12969 echo "$as_me:12969: \$? = $ac_status" >&5 12970 (exit "$ac_status"); } && 12971 { ac_try='test -s "conftest.$ac_objext"' 12972 { (eval echo "$as_me:12972: \"$ac_try\"") >&5 12973 (eval $ac_try) 2>&5 12974 ac_status=$? 12975 echo "$as_me:12975: \$? = $ac_status" >&5 12976 (exit "$ac_status"); }; }; then 12977 ac_cv_sys_largefile_CC=' -n32'; break 12978else 12979 echo "$as_me: failed program was:" >&5 12980cat "conftest.$ac_ext" >&5 12981fi 12982rm -f "conftest.$ac_objext" 12983 break 12984 done 12985 CC=$ac_save_CC 12986 rm -f "conftest.$ac_ext" 12987 fi 12988fi 12989echo "$as_me:12989: result: $ac_cv_sys_largefile_CC" >&5 12990echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 12991 if test "$ac_cv_sys_largefile_CC" != no; then 12992 CC=$CC$ac_cv_sys_largefile_CC 12993 fi 12994 12995 echo "$as_me:12995: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12996echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 12997if test "${ac_cv_sys_file_offset_bits+set}" = set; then 12998 echo $ECHO_N "(cached) $ECHO_C" >&6 12999else 13000 while :; do 13001 ac_cv_sys_file_offset_bits=no 13002 cat >"conftest.$ac_ext" <<_ACEOF 13003#line 13003 "configure" 13004#include "confdefs.h" 13005#include <sys/types.h> 13006 /* Check that off_t can represent 2**63 - 1 correctly. 13007 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13008 since some C++ compilers masquerading as C compilers 13009 incorrectly reject 9223372036854775807. */ 13010#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13012 && LARGE_OFF_T % 2147483647 == 1) 13013 ? 1 : -1]; 13014int 13015main (void) 13016{ 13017 13018 ; 13019 return 0; 13020} 13021_ACEOF 13022rm -f "conftest.$ac_objext" 13023if { (eval echo "$as_me:13023: \"$ac_compile\"") >&5 13024 (eval $ac_compile) 2>&5 13025 ac_status=$? 13026 echo "$as_me:13026: \$? = $ac_status" >&5 13027 (exit "$ac_status"); } && 13028 { ac_try='test -s "conftest.$ac_objext"' 13029 { (eval echo "$as_me:13029: \"$ac_try\"") >&5 13030 (eval $ac_try) 2>&5 13031 ac_status=$? 13032 echo "$as_me:13032: \$? = $ac_status" >&5 13033 (exit "$ac_status"); }; }; then 13034 break 13035else 13036 echo "$as_me: failed program was:" >&5 13037cat "conftest.$ac_ext" >&5 13038fi 13039rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13040 cat >"conftest.$ac_ext" <<_ACEOF 13041#line 13041 "configure" 13042#include "confdefs.h" 13043#define _FILE_OFFSET_BITS 64 13044#include <sys/types.h> 13045 /* Check that off_t can represent 2**63 - 1 correctly. 13046 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13047 since some C++ compilers masquerading as C compilers 13048 incorrectly reject 9223372036854775807. */ 13049#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13051 && LARGE_OFF_T % 2147483647 == 1) 13052 ? 1 : -1]; 13053int 13054main (void) 13055{ 13056 13057 ; 13058 return 0; 13059} 13060_ACEOF 13061rm -f "conftest.$ac_objext" 13062if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5 13063 (eval $ac_compile) 2>&5 13064 ac_status=$? 13065 echo "$as_me:13065: \$? = $ac_status" >&5 13066 (exit "$ac_status"); } && 13067 { ac_try='test -s "conftest.$ac_objext"' 13068 { (eval echo "$as_me:13068: \"$ac_try\"") >&5 13069 (eval $ac_try) 2>&5 13070 ac_status=$? 13071 echo "$as_me:13071: \$? = $ac_status" >&5 13072 (exit "$ac_status"); }; }; then 13073 ac_cv_sys_file_offset_bits=64; break 13074else 13075 echo "$as_me: failed program was:" >&5 13076cat "conftest.$ac_ext" >&5 13077fi 13078rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13079 break 13080done 13081fi 13082echo "$as_me:13082: result: $ac_cv_sys_file_offset_bits" >&5 13083echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 13084if test "$ac_cv_sys_file_offset_bits" != no; then 13085 13086cat >>confdefs.h <<EOF 13087#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13088EOF 13089 13090fi 13091rm -rf conftest* 13092 echo "$as_me:13092: checking for _LARGE_FILES value needed for large files" >&5 13093echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 13094if test "${ac_cv_sys_large_files+set}" = set; then 13095 echo $ECHO_N "(cached) $ECHO_C" >&6 13096else 13097 while :; do 13098 ac_cv_sys_large_files=no 13099 cat >"conftest.$ac_ext" <<_ACEOF 13100#line 13100 "configure" 13101#include "confdefs.h" 13102#include <sys/types.h> 13103 /* Check that off_t can represent 2**63 - 1 correctly. 13104 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13105 since some C++ compilers masquerading as C compilers 13106 incorrectly reject 9223372036854775807. */ 13107#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13109 && LARGE_OFF_T % 2147483647 == 1) 13110 ? 1 : -1]; 13111int 13112main (void) 13113{ 13114 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119rm -f "conftest.$ac_objext" 13120if { (eval echo "$as_me:13120: \"$ac_compile\"") >&5 13121 (eval $ac_compile) 2>&5 13122 ac_status=$? 13123 echo "$as_me:13123: \$? = $ac_status" >&5 13124 (exit "$ac_status"); } && 13125 { ac_try='test -s "conftest.$ac_objext"' 13126 { (eval echo "$as_me:13126: \"$ac_try\"") >&5 13127 (eval $ac_try) 2>&5 13128 ac_status=$? 13129 echo "$as_me:13129: \$? = $ac_status" >&5 13130 (exit "$ac_status"); }; }; then 13131 break 13132else 13133 echo "$as_me: failed program was:" >&5 13134cat "conftest.$ac_ext" >&5 13135fi 13136rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13137 cat >"conftest.$ac_ext" <<_ACEOF 13138#line 13138 "configure" 13139#include "confdefs.h" 13140#define _LARGE_FILES 1 13141#include <sys/types.h> 13142 /* Check that off_t can represent 2**63 - 1 correctly. 13143 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13144 since some C++ compilers masquerading as C compilers 13145 incorrectly reject 9223372036854775807. */ 13146#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13148 && LARGE_OFF_T % 2147483647 == 1) 13149 ? 1 : -1]; 13150int 13151main (void) 13152{ 13153 13154 ; 13155 return 0; 13156} 13157_ACEOF 13158rm -f "conftest.$ac_objext" 13159if { (eval echo "$as_me:13159: \"$ac_compile\"") >&5 13160 (eval $ac_compile) 2>&5 13161 ac_status=$? 13162 echo "$as_me:13162: \$? = $ac_status" >&5 13163 (exit "$ac_status"); } && 13164 { ac_try='test -s "conftest.$ac_objext"' 13165 { (eval echo "$as_me:13165: \"$ac_try\"") >&5 13166 (eval $ac_try) 2>&5 13167 ac_status=$? 13168 echo "$as_me:13168: \$? = $ac_status" >&5 13169 (exit "$ac_status"); }; }; then 13170 ac_cv_sys_large_files=1; break 13171else 13172 echo "$as_me: failed program was:" >&5 13173cat "conftest.$ac_ext" >&5 13174fi 13175rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13176 break 13177done 13178fi 13179echo "$as_me:13179: result: $ac_cv_sys_large_files" >&5 13180echo "${ECHO_T}$ac_cv_sys_large_files" >&6 13181if test "$ac_cv_sys_large_files" != no; then 13182 13183cat >>confdefs.h <<EOF 13184#define _LARGE_FILES $ac_cv_sys_large_files 13185EOF 13186 13187fi 13188rm -rf conftest* 13189fi 13190 13191 if test "$enable_largefile" != no ; then 13192 echo "$as_me:13192: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13193echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 13194if test "${ac_cv_sys_largefile_source+set}" = set; then 13195 echo $ECHO_N "(cached) $ECHO_C" >&6 13196else 13197 while :; do 13198 ac_cv_sys_largefile_source=no 13199 cat >"conftest.$ac_ext" <<_ACEOF 13200#line 13200 "configure" 13201#include "confdefs.h" 13202#include <stdio.h> 13203int 13204main (void) 13205{ 13206return !fseeko; 13207 ; 13208 return 0; 13209} 13210_ACEOF 13211rm -f "conftest.$ac_objext" 13212if { (eval echo "$as_me:13212: \"$ac_compile\"") >&5 13213 (eval $ac_compile) 2>&5 13214 ac_status=$? 13215 echo "$as_me:13215: \$? = $ac_status" >&5 13216 (exit "$ac_status"); } && 13217 { ac_try='test -s "conftest.$ac_objext"' 13218 { (eval echo "$as_me:13218: \"$ac_try\"") >&5 13219 (eval $ac_try) 2>&5 13220 ac_status=$? 13221 echo "$as_me:13221: \$? = $ac_status" >&5 13222 (exit "$ac_status"); }; }; then 13223 break 13224else 13225 echo "$as_me: failed program was:" >&5 13226cat "conftest.$ac_ext" >&5 13227fi 13228rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13229 cat >"conftest.$ac_ext" <<_ACEOF 13230#line 13230 "configure" 13231#include "confdefs.h" 13232#define _LARGEFILE_SOURCE 1 13233#include <stdio.h> 13234int 13235main (void) 13236{ 13237return !fseeko; 13238 ; 13239 return 0; 13240} 13241_ACEOF 13242rm -f "conftest.$ac_objext" 13243if { (eval echo "$as_me:13243: \"$ac_compile\"") >&5 13244 (eval $ac_compile) 2>&5 13245 ac_status=$? 13246 echo "$as_me:13246: \$? = $ac_status" >&5 13247 (exit "$ac_status"); } && 13248 { ac_try='test -s "conftest.$ac_objext"' 13249 { (eval echo "$as_me:13249: \"$ac_try\"") >&5 13250 (eval $ac_try) 2>&5 13251 ac_status=$? 13252 echo "$as_me:13252: \$? = $ac_status" >&5 13253 (exit "$ac_status"); }; }; then 13254 ac_cv_sys_largefile_source=1; break 13255else 13256 echo "$as_me: failed program was:" >&5 13257cat "conftest.$ac_ext" >&5 13258fi 13259rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13260 break 13261done 13262fi 13263echo "$as_me:13263: result: $ac_cv_sys_largefile_source" >&5 13264echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 13265if test "$ac_cv_sys_largefile_source" != no; then 13266 13267cat >>confdefs.h <<EOF 13268#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13269EOF 13270 13271fi 13272rm -rf conftest* 13273 13274# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13275# in glibc 2.1.3, but that breaks too many other things. 13276# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13277echo "$as_me:13277: checking for fseeko" >&5 13278echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 13279if test "${ac_cv_func_fseeko+set}" = set; then 13280 echo $ECHO_N "(cached) $ECHO_C" >&6 13281else 13282 cat >"conftest.$ac_ext" <<_ACEOF 13283#line 13283 "configure" 13284#include "confdefs.h" 13285#include <stdio.h> 13286int 13287main (void) 13288{ 13289return fseeko && fseeko (stdin, 0, 0); 13290 ; 13291 return 0; 13292} 13293_ACEOF 13294rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13295if { (eval echo "$as_me:13295: \"$ac_link\"") >&5 13296 (eval $ac_link) 2>&5 13297 ac_status=$? 13298 echo "$as_me:13298: \$? = $ac_status" >&5 13299 (exit "$ac_status"); } && 13300 { ac_try='test -s "conftest$ac_exeext"' 13301 { (eval echo "$as_me:13301: \"$ac_try\"") >&5 13302 (eval $ac_try) 2>&5 13303 ac_status=$? 13304 echo "$as_me:13304: \$? = $ac_status" >&5 13305 (exit "$ac_status"); }; }; then 13306 ac_cv_func_fseeko=yes 13307else 13308 echo "$as_me: failed program was:" >&5 13309cat "conftest.$ac_ext" >&5 13310ac_cv_func_fseeko=no 13311fi 13312rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13313fi 13314echo "$as_me:13314: result: $ac_cv_func_fseeko" >&5 13315echo "${ECHO_T}$ac_cv_func_fseeko" >&6 13316if test $ac_cv_func_fseeko = yes; then 13317 13318cat >>confdefs.h <<\EOF 13319#define HAVE_FSEEKO 1 13320EOF 13321 13322fi 13323 13324 # Normally we would collect these definitions in the config.h, 13325 # but (like _XOPEN_SOURCE), some environments rely on having these 13326 # defined before any of the system headers are included. Another 13327 # case comes up with C++, e.g., on AIX the compiler compiles the 13328 # header files by themselves before looking at the body files it is 13329 # told to compile. For ncurses, those header files do not include 13330 # the config.h 13331 if test "$ac_cv_sys_large_files" != no 13332 then 13333 13334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13335 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES" 13336 13337 fi 13338 if test "$ac_cv_sys_largefile_source" != no 13339 then 13340 13341 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13342 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE" 13343 13344 fi 13345 if test "$ac_cv_sys_file_offset_bits" != no 13346 then 13347 13348 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13349 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 13350 13351 fi 13352 13353 echo "$as_me:13353: checking whether to use struct dirent64" >&5 13354echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 13355if test "${cf_cv_struct_dirent64+set}" = set; then 13356 echo $ECHO_N "(cached) $ECHO_C" >&6 13357else 13358 13359 cat >"conftest.$ac_ext" <<_ACEOF 13360#line 13360 "configure" 13361#include "confdefs.h" 13362 13363#pragma GCC diagnostic error "-Wincompatible-pointer-types" 13364#include <sys/types.h> 13365#include <dirent.h> 13366 13367int 13368main (void) 13369{ 13370 13371 /* if transitional largefile support is setup, this is true */ 13372 extern struct dirent64 * readdir(DIR *); 13373 struct dirent64 *x = readdir((DIR *)0); 13374 struct dirent *y = readdir((DIR *)0); 13375 int z = x - y; 13376 (void)z; 13377 13378 ; 13379 return 0; 13380} 13381_ACEOF 13382rm -f "conftest.$ac_objext" 13383if { (eval echo "$as_me:13383: \"$ac_compile\"") >&5 13384 (eval $ac_compile) 2>&5 13385 ac_status=$? 13386 echo "$as_me:13386: \$? = $ac_status" >&5 13387 (exit "$ac_status"); } && 13388 { ac_try='test -s "conftest.$ac_objext"' 13389 { (eval echo "$as_me:13389: \"$ac_try\"") >&5 13390 (eval $ac_try) 2>&5 13391 ac_status=$? 13392 echo "$as_me:13392: \$? = $ac_status" >&5 13393 (exit "$ac_status"); }; }; then 13394 cf_cv_struct_dirent64=yes 13395else 13396 echo "$as_me: failed program was:" >&5 13397cat "conftest.$ac_ext" >&5 13398cf_cv_struct_dirent64=no 13399fi 13400rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13401 13402fi 13403echo "$as_me:13403: result: $cf_cv_struct_dirent64" >&5 13404echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 13405 test "$cf_cv_struct_dirent64" = yes && 13406cat >>confdefs.h <<\EOF 13407#define HAVE_STRUCT_DIRENT64 1 13408EOF 13409 13410 fi 13411 13412### use option --disable-tparm-varargs to make tparm() conform to X/Open 13413echo "$as_me:13413: checking if you want tparm not to use X/Open fixed-parameter list" >&5 13414echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6 13415 13416# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given. 13417if test "${enable_tparm_varargs+set}" = set; then 13418 enableval="$enable_tparm_varargs" 13419 with_tparm_varargs=$enableval 13420else 13421 with_tparm_varargs=yes 13422fi; 13423echo "$as_me:13423: result: $with_tparm_varargs" >&5 13424echo "${ECHO_T}$with_tparm_varargs" >&6 13425NCURSES_TPARM_VARARGS=0 13426test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1 13427 13428### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw 13429if test "$with_ticlib" != no ; then 13430echo "$as_me:13430: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5 13431echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6 13432 13433# Check whether --enable-tic-depends or --disable-tic-depends was given. 13434if test "${enable_tic_depends+set}" = set; then 13435 enableval="$enable_tic_depends" 13436 with_tic_depends=$enableval 13437else 13438 with_tic_depends=yes 13439fi; 13440echo "$as_me:13440: result: $with_tic_depends" >&5 13441echo "${ECHO_T}$with_tic_depends" >&6 13442else 13443 with_tic_depends=no 13444fi 13445 13446### use option --disable-wattr-macros to suppress wattr* macros from curses.h 13447echo "$as_me:13447: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5 13448echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6 13449 13450# Check whether --enable-wattr-macros or --disable-wattr-macros was given. 13451if test "${enable_wattr_macros+set}" = set; then 13452 enableval="$enable_wattr_macros" 13453 with_wattr_macros=$enableval 13454else 13455 with_wattr_macros=yes 13456fi; 13457if [ "x$with_wattr_macros" != xyes ]; then 13458 NCURSES_WATTR_MACROS=0 13459 echo "$as_me:13459: result: yes" >&5 13460echo "${ECHO_T}yes" >&6 13461else 13462 NCURSES_WATTR_MACROS=1 13463 echo "$as_me:13463: result: no" >&5 13464echo "${ECHO_T}no" >&6 13465fi 13466 13467echo "$as_me:13467: checking for X11 rgb file" >&5 13468echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6 13469 13470# Check whether --with-x11-rgb or --without-x11-rgb was given. 13471if test "${with_x11_rgb+set}" = set; then 13472 withval="$with_x11_rgb" 13473 RGB_PATH=$withval 13474else 13475 RGB_PATH=auto 13476fi; 13477 13478if test "x$RGB_PATH" = xauto 13479then 13480 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt' 13481 for cf_path in \ 13482 /opt/local/share/X11/rgb.txt \ 13483 /opt/X11/share/X11/rgb.txt \ 13484 /usr/share/X11/rgb.txt \ 13485 /usr/X11/share/X11/rgb.txt \ 13486 /usr/X11/lib/X11/rgb.txt \ 13487 /usr/lib/X11/rgb.txt \ 13488 /etc/X11/rgb.txt \ 13489 /usr/pkg/lib/X11/rgb.txt \ 13490 /usr/X11R7/lib/X11/rgb.txt \ 13491 /usr/X11R6/lib/X11/rgb.txt \ 13492 /usr/X11R5/lib/X11/rgb.txt \ 13493 /usr/X11R4/lib/X11/rgb.txt \ 13494 /usr/local/lib/X11/rgb.txt \ 13495 /usr/local/share/X11/rgb.txt \ 13496 /usr/lib64/X11/rgb.txt 13497 do 13498 if test -f "$cf_path" ; then 13499 RGB_PATH="$cf_path" 13500 break 13501 fi 13502 done 13503else 13504 cf_path=$RGB_PATH 13505 13506if test "x$prefix" != xNONE; then 13507 cf_path_syntax="$prefix" 13508else 13509 cf_path_syntax="$ac_default_prefix" 13510fi 13511 13512case ".$cf_path" in 13513(.\$\(*\)*|.\'*\'*) 13514 ;; 13515(..|./*|.\\*) 13516 ;; 13517(.[a-zA-Z]:[\\/]*) # OS/2 EMX 13518 ;; 13519(.\$\{*prefix\}*|.\$\{*dir\}*) 13520 eval cf_path="$cf_path" 13521 case ".$cf_path" in 13522 (.NONE/*) 13523 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 13524 ;; 13525 esac 13526 ;; 13527(.no|.NONE/*) 13528 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 13529 ;; 13530(*) 13531 { { echo "$as_me:13531: error: expected a pathname, not \"$cf_path\"" >&5 13532echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 13533 { (exit 1); exit 1; }; } 13534 ;; 13535esac 13536 13537fi 13538 13539echo "$as_me:13539: result: $RGB_PATH" >&5 13540echo "${ECHO_T}$RGB_PATH" >&6 13541 13542cat >>confdefs.h <<EOF 13543#define RGB_PATH "$cf_path" 13544EOF 13545 13546no_x11_rgb= 13547if test "$RGB_PATH" = no 13548then 13549 no_x11_rgb="#" 13550fi 13551 13552### use option --with-bool to override bool's type 13553echo "$as_me:13553: checking for type of bool" >&5 13554echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 13555 13556# Check whether --with-bool or --without-bool was given. 13557if test "${with_bool+set}" = set; then 13558 withval="$with_bool" 13559 NCURSES_BOOL="$withval" 13560else 13561 NCURSES_BOOL=auto 13562fi; 13563echo "$as_me:13563: result: $NCURSES_BOOL" >&5 13564echo "${ECHO_T}$NCURSES_BOOL" >&6 13565 13566echo "$as_me:13566: checking for alternate terminal capabilities file" >&5 13567echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6 13568 13569# Check whether --with-caps or --without-caps was given. 13570if test "${with_caps+set}" = set; then 13571 withval="$with_caps" 13572 TERMINFO_CAPS=Caps.$withval 13573else 13574 TERMINFO_CAPS=Caps 13575fi; 13576test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps 13577echo "$as_me:13577: result: $TERMINFO_CAPS" >&5 13578echo "${ECHO_T}$TERMINFO_CAPS" >&6 13579 13580### use option --with-chtype to override chtype's type 13581echo "$as_me:13581: checking for type of chtype" >&5 13582echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 13583 13584# Check whether --with-chtype or --without-chtype was given. 13585if test "${with_chtype+set}" = set; then 13586 withval="$with_chtype" 13587 NCURSES_CHTYPE="$withval" 13588else 13589 NCURSES_CHTYPE=$cf_dft_chtype 13590fi; 13591echo "$as_me:13591: result: $NCURSES_CHTYPE" >&5 13592echo "${ECHO_T}$NCURSES_CHTYPE" >&6 13593 13594### use option --with-ospeed to override ospeed's type 13595echo "$as_me:13595: checking for type of ospeed" >&5 13596echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6 13597 13598# Check whether --with-ospeed or --without-ospeed was given. 13599if test "${with_ospeed+set}" = set; then 13600 withval="$with_ospeed" 13601 NCURSES_OSPEED="$withval" 13602else 13603 NCURSES_OSPEED=short 13604fi; 13605echo "$as_me:13605: result: $NCURSES_OSPEED" >&5 13606echo "${ECHO_T}$NCURSES_OSPEED" >&6 13607 13608### use option --with-mmask-t to override mmask_t's type 13609echo "$as_me:13609: checking for type of mmask_t" >&5 13610echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6 13611 13612# Check whether --with-mmask-t or --without-mmask-t was given. 13613if test "${with_mmask_t+set}" = set; then 13614 withval="$with_mmask_t" 13615 NCURSES_MMASK_T="$withval" 13616else 13617 NCURSES_MMASK_T=$cf_dft_mmask_t 13618fi; 13619echo "$as_me:13619: result: $NCURSES_MMASK_T" >&5 13620echo "${ECHO_T}$NCURSES_MMASK_T" >&6 13621 13622### use option --with-ccharw-max to override CCHARW_MAX size 13623echo "$as_me:13623: checking for size CCHARW_MAX" >&5 13624echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6 13625 13626# Check whether --with-ccharw-max or --without-ccharw-max was given. 13627if test "${with_ccharw_max+set}" = set; then 13628 withval="$with_ccharw_max" 13629 NCURSES_CCHARW_MAX="$withval" 13630else 13631 NCURSES_CCHARW_MAX=5 13632fi; 13633echo "$as_me:13633: result: $NCURSES_CCHARW_MAX" >&5 13634echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6 13635 13636echo "$as_me:13636: checking for ANSI C header files" >&5 13637echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 13638if test "${ac_cv_header_stdc+set}" = set; then 13639 echo $ECHO_N "(cached) $ECHO_C" >&6 13640else 13641 cat >"conftest.$ac_ext" <<_ACEOF 13642#line 13642 "configure" 13643#include "confdefs.h" 13644#include <stdlib.h> 13645#include <stdarg.h> 13646#include <string.h> 13647#include <float.h> 13648 13649_ACEOF 13650if { (eval echo "$as_me:13650: \"$ac_cpp "conftest.$ac_ext"\"") >&5 13651 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 13652 ac_status=$? 13653 $EGREP -v '^ *\+' conftest.er1 >conftest.err 13654 rm -f conftest.er1 13655 cat conftest.err >&5 13656 echo "$as_me:13656: \$? = $ac_status" >&5 13657 (exit "$ac_status"); } >/dev/null; then 13658 if test -s conftest.err; then 13659 ac_cpp_err=$ac_c_preproc_warn_flag 13660 else 13661 ac_cpp_err= 13662 fi 13663else 13664 ac_cpp_err=yes 13665fi 13666if test -z "$ac_cpp_err"; then 13667 ac_cv_header_stdc=yes 13668else 13669 echo "$as_me: failed program was:" >&5 13670 cat "conftest.$ac_ext" >&5 13671 ac_cv_header_stdc=no 13672fi 13673rm -f conftest.err "conftest.$ac_ext" 13674 13675if test $ac_cv_header_stdc = yes; then 13676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13677 cat >"conftest.$ac_ext" <<_ACEOF 13678#line 13678 "configure" 13679#include "confdefs.h" 13680#include <string.h> 13681 13682_ACEOF 13683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13684 $EGREP "memchr" >/dev/null 2>&1; then 13685 : 13686else 13687 ac_cv_header_stdc=no 13688fi 13689rm -rf conftest* 13690 13691fi 13692 13693if test $ac_cv_header_stdc = yes; then 13694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13695 cat >"conftest.$ac_ext" <<_ACEOF 13696#line 13696 "configure" 13697#include "confdefs.h" 13698#include <stdlib.h> 13699 13700_ACEOF 13701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13702 $EGREP "free" >/dev/null 2>&1; then 13703 : 13704else 13705 ac_cv_header_stdc=no 13706fi 13707rm -rf conftest* 13708 13709fi 13710 13711if test $ac_cv_header_stdc = yes; then 13712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13713 if test "$cross_compiling" = yes; then 13714 : 13715else 13716 cat >"conftest.$ac_ext" <<_ACEOF 13717#line 13717 "configure" 13718#include "confdefs.h" 13719#include <ctype.h> 13720#if ((' ' & 0x0FF) == 0x020) 13721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13723#else 13724# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 13725 || ('j' <= (c) && (c) <= 'r') \ 13726 || ('s' <= (c) && (c) <= 'z')) 13727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13728#endif 13729 13730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13731int 13732main (void) 13733{ 13734 int i; 13735 for (i = 0; i < 256; i++) 13736 if (XOR (islower (i), ISLOWER (i)) 13737 || toupper (i) != TOUPPER (i)) 13738 $ac_main_return(2); 13739 $ac_main_return (0); 13740} 13741_ACEOF 13742rm -f "conftest$ac_exeext" 13743if { (eval echo "$as_me:13743: \"$ac_link\"") >&5 13744 (eval $ac_link) 2>&5 13745 ac_status=$? 13746 echo "$as_me:13746: \$? = $ac_status" >&5 13747 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 13748 { (eval echo "$as_me:13748: \"$ac_try\"") >&5 13749 (eval $ac_try) 2>&5 13750 ac_status=$? 13751 echo "$as_me:13751: \$? = $ac_status" >&5 13752 (exit "$ac_status"); }; }; then 13753 : 13754else 13755 echo "$as_me: program exited with status $ac_status" >&5 13756echo "$as_me: failed program was:" >&5 13757cat "conftest.$ac_ext" >&5 13758ac_cv_header_stdc=no 13759fi 13760rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 13761fi 13762fi 13763fi 13764echo "$as_me:13764: result: $ac_cv_header_stdc" >&5 13765echo "${ECHO_T}$ac_cv_header_stdc" >&6 13766if test $ac_cv_header_stdc = yes; then 13767 13768cat >>confdefs.h <<\EOF 13769#define STDC_HEADERS 1 13770EOF 13771 13772fi 13773 13774# On IRIX 5.3, sys/types and inttypes.h are conflicting. 13775 13776for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 13777 inttypes.h stdint.h unistd.h 13778do 13779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13780echo "$as_me:13780: checking for $ac_header" >&5 13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13782if eval "test \"\${$as_ac_Header+set}\" = set"; then 13783 echo $ECHO_N "(cached) $ECHO_C" >&6 13784else 13785 cat >"conftest.$ac_ext" <<_ACEOF 13786#line 13786 "configure" 13787#include "confdefs.h" 13788$ac_includes_default 13789#include <$ac_header> 13790_ACEOF 13791rm -f "conftest.$ac_objext" 13792if { (eval echo "$as_me:13792: \"$ac_compile\"") >&5 13793 (eval $ac_compile) 2>&5 13794 ac_status=$? 13795 echo "$as_me:13795: \$? = $ac_status" >&5 13796 (exit "$ac_status"); } && 13797 { ac_try='test -s "conftest.$ac_objext"' 13798 { (eval echo "$as_me:13798: \"$ac_try\"") >&5 13799 (eval $ac_try) 2>&5 13800 ac_status=$? 13801 echo "$as_me:13801: \$? = $ac_status" >&5 13802 (exit "$ac_status"); }; }; then 13803 eval "$as_ac_Header=yes" 13804else 13805 echo "$as_me: failed program was:" >&5 13806cat "conftest.$ac_ext" >&5 13807eval "$as_ac_Header=no" 13808fi 13809rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13810fi 13811echo "$as_me:13811: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 13812echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 13813if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 13814 cat >>confdefs.h <<EOF 13815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13816EOF 13817 13818fi 13819done 13820 13821echo "$as_me:13821: checking for signed char" >&5 13822echo $ECHO_N "checking for signed char... $ECHO_C" >&6 13823if test "${ac_cv_type_signed_char+set}" = set; then 13824 echo $ECHO_N "(cached) $ECHO_C" >&6 13825else 13826 cat >"conftest.$ac_ext" <<_ACEOF 13827#line 13827 "configure" 13828#include "confdefs.h" 13829$ac_includes_default 13830int 13831main (void) 13832{ 13833if ((signed char *) 0) 13834 return 0; 13835if (sizeof (signed char)) 13836 return 0; 13837 ; 13838 return 0; 13839} 13840_ACEOF 13841rm -f "conftest.$ac_objext" 13842if { (eval echo "$as_me:13842: \"$ac_compile\"") >&5 13843 (eval $ac_compile) 2>&5 13844 ac_status=$? 13845 echo "$as_me:13845: \$? = $ac_status" >&5 13846 (exit "$ac_status"); } && 13847 { ac_try='test -s "conftest.$ac_objext"' 13848 { (eval echo "$as_me:13848: \"$ac_try\"") >&5 13849 (eval $ac_try) 2>&5 13850 ac_status=$? 13851 echo "$as_me:13851: \$? = $ac_status" >&5 13852 (exit "$ac_status"); }; }; then 13853 ac_cv_type_signed_char=yes 13854else 13855 echo "$as_me: failed program was:" >&5 13856cat "conftest.$ac_ext" >&5 13857ac_cv_type_signed_char=no 13858fi 13859rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13860fi 13861echo "$as_me:13861: result: $ac_cv_type_signed_char" >&5 13862echo "${ECHO_T}$ac_cv_type_signed_char" >&6 13863 13864echo "$as_me:13864: checking size of signed char" >&5 13865echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 13866if test "${ac_cv_sizeof_signed_char+set}" = set; then 13867 echo $ECHO_N "(cached) $ECHO_C" >&6 13868else 13869 if test "$ac_cv_type_signed_char" = yes; then 13870 if test "$cross_compiling" = yes; then 13871 # Depending upon the size, compute the lo and hi bounds. 13872cat >"conftest.$ac_ext" <<_ACEOF 13873#line 13873 "configure" 13874#include "confdefs.h" 13875$ac_includes_default 13876int 13877main (void) 13878{ 13879int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)] 13880 ; 13881 return 0; 13882} 13883_ACEOF 13884rm -f "conftest.$ac_objext" 13885if { (eval echo "$as_me:13885: \"$ac_compile\"") >&5 13886 (eval $ac_compile) 2>&5 13887 ac_status=$? 13888 echo "$as_me:13888: \$? = $ac_status" >&5 13889 (exit "$ac_status"); } && 13890 { ac_try='test -s "conftest.$ac_objext"' 13891 { (eval echo "$as_me:13891: \"$ac_try\"") >&5 13892 (eval $ac_try) 2>&5 13893 ac_status=$? 13894 echo "$as_me:13894: \$? = $ac_status" >&5 13895 (exit "$ac_status"); }; }; then 13896 ac_lo=0 ac_mid=0 13897 while :; do 13898 cat >"conftest.$ac_ext" <<_ACEOF 13899#line 13899 "configure" 13900#include "confdefs.h" 13901$ac_includes_default 13902int 13903main (void) 13904{ 13905int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 13906 ; 13907 return 0; 13908} 13909_ACEOF 13910rm -f "conftest.$ac_objext" 13911if { (eval echo "$as_me:13911: \"$ac_compile\"") >&5 13912 (eval $ac_compile) 2>&5 13913 ac_status=$? 13914 echo "$as_me:13914: \$? = $ac_status" >&5 13915 (exit "$ac_status"); } && 13916 { ac_try='test -s "conftest.$ac_objext"' 13917 { (eval echo "$as_me:13917: \"$ac_try\"") >&5 13918 (eval $ac_try) 2>&5 13919 ac_status=$? 13920 echo "$as_me:13920: \$? = $ac_status" >&5 13921 (exit "$ac_status"); }; }; then 13922 ac_hi=$ac_mid; break 13923else 13924 echo "$as_me: failed program was:" >&5 13925cat "conftest.$ac_ext" >&5 13926ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 13927fi 13928rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13929 done 13930else 13931 echo "$as_me: failed program was:" >&5 13932cat "conftest.$ac_ext" >&5 13933ac_hi=-1 ac_mid=-1 13934 while :; do 13935 cat >"conftest.$ac_ext" <<_ACEOF 13936#line 13936 "configure" 13937#include "confdefs.h" 13938$ac_includes_default 13939int 13940main (void) 13941{ 13942int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)] 13943 ; 13944 return 0; 13945} 13946_ACEOF 13947rm -f "conftest.$ac_objext" 13948if { (eval echo "$as_me:13948: \"$ac_compile\"") >&5 13949 (eval $ac_compile) 2>&5 13950 ac_status=$? 13951 echo "$as_me:13951: \$? = $ac_status" >&5 13952 (exit "$ac_status"); } && 13953 { ac_try='test -s "conftest.$ac_objext"' 13954 { (eval echo "$as_me:13954: \"$ac_try\"") >&5 13955 (eval $ac_try) 2>&5 13956 ac_status=$? 13957 echo "$as_me:13957: \$? = $ac_status" >&5 13958 (exit "$ac_status"); }; }; then 13959 ac_lo=$ac_mid; break 13960else 13961 echo "$as_me: failed program was:" >&5 13962cat "conftest.$ac_ext" >&5 13963ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 13964fi 13965rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13966 done 13967fi 13968rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13969# Binary search between lo and hi bounds. 13970while test "x$ac_lo" != "x$ac_hi"; do 13971 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 13972 cat >"conftest.$ac_ext" <<_ACEOF 13973#line 13973 "configure" 13974#include "confdefs.h" 13975$ac_includes_default 13976int 13977main (void) 13978{ 13979int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984rm -f "conftest.$ac_objext" 13985if { (eval echo "$as_me:13985: \"$ac_compile\"") >&5 13986 (eval $ac_compile) 2>&5 13987 ac_status=$? 13988 echo "$as_me:13988: \$? = $ac_status" >&5 13989 (exit "$ac_status"); } && 13990 { ac_try='test -s "conftest.$ac_objext"' 13991 { (eval echo "$as_me:13991: \"$ac_try\"") >&5 13992 (eval $ac_try) 2>&5 13993 ac_status=$? 13994 echo "$as_me:13994: \$? = $ac_status" >&5 13995 (exit "$ac_status"); }; }; then 13996 ac_hi=$ac_mid 13997else 13998 echo "$as_me: failed program was:" >&5 13999cat "conftest.$ac_ext" >&5 14000ac_lo=`expr "$ac_mid" + 1` 14001fi 14002rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14003done 14004ac_cv_sizeof_signed_char=$ac_lo 14005else 14006 if test "$cross_compiling" = yes; then 14007 { { echo "$as_me:14007: error: cannot run test program while cross compiling" >&5 14008echo "$as_me: error: cannot run test program while cross compiling" >&2;} 14009 { (exit 1); exit 1; }; } 14010else 14011 cat >"conftest.$ac_ext" <<_ACEOF 14012#line 14012 "configure" 14013#include "confdefs.h" 14014$ac_includes_default 14015int 14016main (void) 14017{ 14018FILE *f = fopen ("conftest.val", "w"); 14019if (!f) 14020 $ac_main_return (1); 14021fprintf (f, "%d", (sizeof (signed char))); 14022fclose (f); 14023 ; 14024 return 0; 14025} 14026_ACEOF 14027rm -f "conftest$ac_exeext" 14028if { (eval echo "$as_me:14028: \"$ac_link\"") >&5 14029 (eval $ac_link) 2>&5 14030 ac_status=$? 14031 echo "$as_me:14031: \$? = $ac_status" >&5 14032 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 14033 { (eval echo "$as_me:14033: \"$ac_try\"") >&5 14034 (eval $ac_try) 2>&5 14035 ac_status=$? 14036 echo "$as_me:14036: \$? = $ac_status" >&5 14037 (exit "$ac_status"); }; }; then 14038 ac_cv_sizeof_signed_char=`cat conftest.val` 14039else 14040 echo "$as_me: program exited with status $ac_status" >&5 14041echo "$as_me: failed program was:" >&5 14042cat "conftest.$ac_ext" >&5 14043fi 14044rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 14045fi 14046fi 14047rm -f conftest.val 14048else 14049 ac_cv_sizeof_signed_char=0 14050fi 14051fi 14052echo "$as_me:14052: result: $ac_cv_sizeof_signed_char" >&5 14053echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 14054cat >>confdefs.h <<EOF 14055#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 14056EOF 14057 14058if test "$ac_cv_sizeof_signed_char" = 1 ; then 14059 NCURSES_SBOOL="signed char" 14060else 14061 NCURSES_SBOOL="char" 14062fi 14063echo "$as_me:14063: checking if you want to use signed Boolean array in term.h" >&5 14064echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6 14065 14066# Check whether --enable-signed-char or --disable-signed-char was given. 14067if test "${enable_signed_char+set}" = set; then 14068 enableval="$enable_signed_char" 14069 with_signed_char=$enableval 14070else 14071 with_signed_char=no 14072fi; 14073echo "$as_me:14073: result: $with_signed_char" >&5 14074echo "${ECHO_T}$with_signed_char" >&6 14075test "x$with_signed_char" != xyes && NCURSES_SBOOL="char" 14076 14077### use option --with-tparm-arg to override tparm's argument type 14078echo "$as_me:14078: checking for type of tparm args" >&5 14079echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6 14080 14081# Check whether --with-tparm-arg or --without-tparm-arg was given. 14082if test "${with_tparm_arg+set}" = set; then 14083 withval="$with_tparm_arg" 14084 NCURSES_TPARM_ARG="$withval" 14085else 14086 NCURSES_TPARM_ARG=$cf_dft_tparm_arg 14087fi; 14088echo "$as_me:14088: result: $NCURSES_TPARM_ARG" >&5 14089echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6 14090 14091### Enable compiling-in rcs id's 14092echo "$as_me:14092: checking if RCS identifiers should be compiled-in" >&5 14093echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6 14094 14095# Check whether --with-rcs-ids or --without-rcs-ids was given. 14096if test "${with_rcs_ids+set}" = set; then 14097 withval="$with_rcs_ids" 14098 with_rcs_ids=$withval 14099else 14100 with_rcs_ids=no 14101fi; 14102echo "$as_me:14102: result: $with_rcs_ids" >&5 14103echo "${ECHO_T}$with_rcs_ids" >&6 14104test "x$with_rcs_ids" = xyes && 14105cat >>confdefs.h <<\EOF 14106#define USE_RCS_IDS 1 14107EOF 14108 14109############################################################################### 14110 14111echo "$as_me:14111: checking format of man-pages" >&5 14112echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6 14113 14114# Check whether --with-manpage-format or --without-manpage-format was given. 14115if test "${with_manpage_format+set}" = set; then 14116 withval="$with_manpage_format" 14117 MANPAGE_FORMAT=$withval 14118else 14119 MANPAGE_FORMAT=unknown 14120fi; 14121 14122test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown 14123MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'` 14124 14125cf_unknown= 14126 14127case "$MANPAGE_FORMAT" in 14128(unknown) 14129 if test -z "$MANPATH" ; then 14130 MANPATH="/usr/man:/usr/share/man" 14131 fi 14132 14133 # look for the 'date' man-page (it's most likely to be installed!) 14134 MANPAGE_FORMAT= 14135 cf_preform="no" 14136 cf_catonly="yes" 14137 cf_example="date" 14138 14139 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 14140 for cf_dir in $MANPATH; do 14141 test -z "$cf_dir" && cf_dir=/usr/man 14142 for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example 14143 do 14144 cf_test=`echo "$cf_name" | sed -e 's/*//'` 14145 if test "x$cf_test" = "x$cf_name" ; then 14146 14147 case "$cf_name" in 14148 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";; 14149 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";; 14150 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";; 14151 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";; 14152 esac 14153 14154 case "$cf_name" in 14155 ($cf_dir/man*) 14156 cf_catonly=no 14157 ;; 14158 ($cf_dir/cat*) 14159 cf_preform=yes 14160 ;; 14161 esac 14162 break 14163 fi 14164 14165 # if we found a match in either man* or cat*, stop looking 14166 if test -n "$MANPAGE_FORMAT" ; then 14167 cf_found=no 14168 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted" 14169 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly" 14170 case "$cf_name" in 14171 ($cf_dir/cat*) 14172 cf_found=yes 14173 ;; 14174 esac 14175 test "$cf_found" = yes && break 14176 fi 14177 done 14178 # only check the first directory in $MANPATH where we find manpages 14179 if test -n "$MANPAGE_FORMAT" ; then 14180 break 14181 fi 14182 done 14183 # if we did not find the example, just assume it is normal 14184 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal 14185 IFS="$ac_save_ifs" 14186 ;; 14187(*) 14188 for cf_option in $MANPAGE_FORMAT; do 14189 case "$cf_option" in 14190 (gzip|compress|BSDI|normal|formatted|catonly) 14191 ;; 14192 (*) 14193 cf_unknown="$cf_unknown $cf_option" 14194 ;; 14195 esac 14196 done 14197 ;; 14198esac 14199 14200echo "$as_me:14200: result: $MANPAGE_FORMAT" >&5 14201echo "${ECHO_T}$MANPAGE_FORMAT" >&6 14202if test -n "$cf_unknown" ; then 14203 { echo "$as_me:14203: WARNING: Unexpected manpage-format $cf_unknown" >&5 14204echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;} 14205fi 14206 14207echo "$as_me:14207: checking for manpage renaming" >&5 14208echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6 14209 14210# Check whether --with-manpage-renames or --without-manpage-renames was given. 14211if test "${with_manpage_renames+set}" = set; then 14212 withval="$with_manpage_renames" 14213 MANPAGE_RENAMES=$withval 14214else 14215 MANPAGE_RENAMES=yes 14216fi; 14217 14218case ".$MANPAGE_RENAMES" in 14219(.no) 14220 ;; 14221(.|.yes) 14222 # Debian 'man' program? 14223 if test -f /etc/debian_version ; then 14224 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames 14225 else 14226 MANPAGE_RENAMES=no 14227 fi 14228 ;; 14229esac 14230 14231if test "$MANPAGE_RENAMES" != no ; then 14232 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then 14233 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES 14234 elif test ! -f "$MANPAGE_RENAMES" ; then 14235 { { echo "$as_me:14235: error: not a filename: $MANPAGE_RENAMES" >&5 14236echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;} 14237 { (exit 1); exit 1; }; } 14238 fi 14239 14240 test ! -d man && mkdir man 14241 14242 # Construct a sed-script to perform renaming within man-pages 14243 if test -n "$MANPAGE_RENAMES" ; then 14244 test ! -d man && mkdir man 14245 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed 14246 fi 14247fi 14248 14249echo "$as_me:14249: result: $MANPAGE_RENAMES" >&5 14250echo "${ECHO_T}$MANPAGE_RENAMES" >&6 14251 14252echo "$as_me:14252: checking if manpage aliases will be installed" >&5 14253echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6 14254 14255# Check whether --with-manpage-aliases or --without-manpage-aliases was given. 14256if test "${with_manpage_aliases+set}" = set; then 14257 withval="$with_manpage_aliases" 14258 MANPAGE_ALIASES=$withval 14259else 14260 MANPAGE_ALIASES=yes 14261fi; 14262 14263echo "$as_me:14263: result: $MANPAGE_ALIASES" >&5 14264echo "${ECHO_T}$MANPAGE_ALIASES" >&6 14265 14266case "x$LN_S" in 14267(xln*) 14268 cf_use_symlinks=yes 14269 ;; 14270(*) 14271 cf_use_symlinks=no 14272 ;; 14273esac 14274 14275MANPAGE_SYMLINKS=no 14276if test "$MANPAGE_ALIASES" = yes ; then 14277echo "$as_me:14277: checking if manpage symlinks should be used" >&5 14278echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6 14279 14280# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given. 14281if test "${with_manpage_symlinks+set}" = set; then 14282 withval="$with_manpage_symlinks" 14283 MANPAGE_SYMLINKS=$withval 14284else 14285 MANPAGE_SYMLINKS=$cf_use_symlinks 14286fi; 14287 14288if test "$$cf_use_symlinks" = no; then 14289if test "$MANPAGE_SYMLINKS" = yes ; then 14290 { echo "$as_me:14290: WARNING: cannot make symlinks" >&5 14291echo "$as_me: WARNING: cannot make symlinks" >&2;} 14292 MANPAGE_SYMLINKS=no 14293fi 14294fi 14295 14296echo "$as_me:14296: result: $MANPAGE_SYMLINKS" >&5 14297echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6 14298fi 14299 14300echo "$as_me:14300: checking for manpage tbl" >&5 14301echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6 14302 14303# Check whether --with-manpage-tbl or --without-manpage-tbl was given. 14304if test "${with_manpage_tbl+set}" = set; then 14305 withval="$with_manpage_tbl" 14306 MANPAGE_TBL=$withval 14307else 14308 MANPAGE_TBL=no 14309fi; 14310 14311echo "$as_me:14311: result: $MANPAGE_TBL" >&5 14312echo "${ECHO_T}$MANPAGE_TBL" >&6 14313 14314if test "$prefix" = "NONE" ; then 14315 cf_prefix="$ac_default_prefix" 14316else 14317 cf_prefix="$prefix" 14318fi 14319 14320case "$MANPAGE_FORMAT" in 14321(*catonly*) 14322 cf_format=yes 14323 cf_inboth=no 14324 ;; 14325(*formatted*) 14326 cf_format=yes 14327 cf_inboth=yes 14328 ;; 14329(*) 14330 cf_format=no 14331 cf_inboth=no 14332 ;; 14333esac 14334 14335test ! -d man && mkdir man 14336 14337cf_so_strip= 14338cf_compress= 14339case "$MANPAGE_FORMAT" in 14340(*compress*) 14341 cf_so_strip="Z" 14342 cf_compress=compress 14343 ;; 14344(*gzip*) 14345 cf_so_strip="gz" 14346 cf_compress=gzip 14347 ;; 14348esac 14349 14350cf_edit_man=./edit_man.sh 14351cf_man_alias=`pwd`/man_alias.sed 14352 14353cat >$cf_edit_man <<CF_EOF 14354#! $SHELL 14355# this script is generated by the configure-script CF_MAN_PAGES macro. 14356 14357prefix="$cf_prefix" 14358datarootdir="$datarootdir" 14359datadir="$datadir" 14360 14361NCURSES_MAJOR="$NCURSES_MAJOR" 14362NCURSES_MINOR="$NCURSES_MINOR" 14363NCURSES_PATCH="$NCURSES_PATCH" 14364 14365NCURSES_OSPEED="$NCURSES_OSPEED" 14366TERMINFO="$TERMINFO" 14367 14368INSTALL="$INSTALL" 14369INSTALL_DATA="$INSTALL_DATA" 14370 14371transform="$program_transform_name" 14372 14373TMP=\${TMPDIR:=/tmp}/man\$\$ 14374trap "rm -f \$TMP" 0 1 2 3 15 14375 14376form=\$1 14377shift || exit 1 14378 14379verb=\$1 14380shift || exit 1 14381 14382mandir=\$1 14383shift || exit 1 14384 14385srcdir=\$1 14386top_srcdir=\$srcdir/.. 14387shift || exit 1 14388 14389if test "\$form" = normal ; then 14390 if test "$cf_format" = yes ; then 14391 if test "$cf_inboth" = no ; then 14392 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@" 14393 exit $? 14394 fi 14395 fi 14396 cf_subdir=\$mandir/man 14397 cf_tables=$MANPAGE_TBL 14398else 14399 cf_subdir=\$mandir/cat 14400 cf_tables=yes 14401fi 14402 14403# process the list of source-files 14404for i in "\$@" ; do 14405case \$i in 14406(*.orig|*.rej) ;; 14407(*.[0-9]*) 14408 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`; 14409 if test "\$verb" = installing ; then 14410 if test ! -d "\$cf_subdir\${section}" ; then 14411 mkdir -p "\$cf_subdir\$section" 14412 fi 14413 fi 14414 14415 # replace variables in man page 14416 if test ! -f "$cf_man_alias" ; then 14417cat >>$cf_man_alias <<-CF_EOF2 14418 s,@DATADIR@,\$datadir,g 14419 s,@TERMINFO@,\${TERMINFO:="no default value"},g 14420 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g 14421 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g 14422 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g 14423 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g 14424 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g 14425CF_EOF 14426 14427 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset 14428 do 14429 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 14430 cf_name=`echo "$cf_name" | sed "$program_transform_name"` 14431cat >>$cf_edit_man <<-CF_EOF 14432 s,@$cf_NAME@,$cf_name,g 14433CF_EOF 14434 done 14435 14436cat >>$cf_edit_man <<CF_EOF 14437CF_EOF2 14438 echo "...made $cf_man_alias" 14439 fi 14440 14441 aliases= 14442 cf_source=\`basename "\$i"\` 14443 inalias=\$cf_source 14444 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias" 14445 if test ! -f "\$inalias" ; then 14446 echo ".. skipped \$cf_source" 14447 continue 14448 fi 14449CF_EOF 14450 14451if test "$MANPAGE_ALIASES" != no ; then 14452cat >>$cf_edit_man <<CF_EOF 14453 nCurses=ignore.3x 14454 test "$with_curses_h" = yes && nCurses=ncurses.3x 14455 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\` 14456CF_EOF 14457fi 14458 14459if test "$MANPAGE_RENAMES" = no ; then 14460cat >>$cf_edit_man <<CF_EOF 14461 # perform program transformations for section 1 man pages 14462 if test \$section = 1 ; then 14463 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\` 14464 else 14465 cf_target=\$cf_subdir\${section}/\$cf_source 14466 fi 14467CF_EOF 14468else 14469cat >>$cf_edit_man <<CF_EOF 14470 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\` 14471 if test -z "\$cf_target" ; then 14472 echo "? missing rename for \$cf_source" 14473 cf_target="\$cf_source" 14474 fi 14475 cf_target="\$cf_subdir\${section}/\${cf_target}" 14476 14477CF_EOF 14478fi 14479 14480cat >>$cf_edit_man <<CF_EOF 14481 sed -f "$cf_man_alias" \\ 14482CF_EOF 14483 14484if test -f "$MANPAGE_RENAMES" ; then 14485cat >>$cf_edit_man <<CF_EOF 14486 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP 14487CF_EOF 14488else 14489cat >>$cf_edit_man <<CF_EOF 14490 < "\$i" >\$TMP 14491CF_EOF 14492fi 14493 14494cat >>$cf_edit_man <<CF_EOF 14495if test \$cf_tables = yes ; then 14496 tbl \$TMP >\$TMP.out 14497 mv \$TMP.out \$TMP 14498fi 14499CF_EOF 14500 14501if test "$with_overwrite" != yes ; then 14502cat >>$cf_edit_man <<CF_EOF 14503 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out 14504 mv \$TMP.out \$TMP 14505CF_EOF 14506fi 14507 14508if test "$with_curses_h" != yes ; then 14509cat >>$cf_edit_man <<CF_EOF 14510 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out 14511 mv \$TMP.out \$TMP 14512CF_EOF 14513fi 14514 14515cat >>$cf_edit_man <<CF_EOF 14516 if test "\$form" = format ; then 14517 nroff -man \$TMP >\$TMP.out 14518 mv \$TMP.out \$TMP 14519 fi 14520CF_EOF 14521 14522if test -n "$cf_compress" ; then 14523cat >>$cf_edit_man <<CF_EOF 14524 if test "\$verb" = installing ; then 14525 if ( "$cf_compress" -f \$TMP ) 14526 then 14527 mv \$TMP.$cf_so_strip \$TMP 14528 fi 14529 fi 14530 cf_target="\$cf_target.$cf_so_strip" 14531CF_EOF 14532fi 14533 14534case "$MANPAGE_FORMAT" in 14535(*BSDI*) 14536cat >>$cf_edit_man <<CF_EOF 14537 if test "\$form" = format ; then 14538 # BSDI installs only .0 suffixes in the cat directories 14539 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`" 14540 fi 14541CF_EOF 14542 ;; 14543esac 14544 14545cat >>$cf_edit_man <<CF_EOF 14546 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\` 14547 if test "\$verb" = installing ; then 14548 echo "\$verb \$cf_target" 14549 \$INSTALL_DATA \$TMP "\$cf_target" 14550 test -d "\$cf_subdir\${section}" && 14551 test -n "\$aliases" && ( 14552 cd "\$cf_subdir\${section}" && ( 14553 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\` 14554 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\` 14555 cf_target=\`basename "\$cf_target"\` 14556 for cf_alias in \$aliases 14557 do 14558 if test "\$section" = 1 ; then 14559 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\` 14560 fi 14561 14562 if test "$MANPAGE_SYMLINKS" = yes ; then 14563 if test -f "\$cf_alias\${suffix}" ; then 14564 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" ) 14565 then 14566 continue 14567 fi 14568 fi 14569 echo ".. \$verb alias \$cf_alias\${suffix}" 14570CF_EOF 14571case "x$LN_S" in 14572(*-f) 14573cat >>$cf_edit_man <<CF_EOF 14574 $LN_S "\$cf_target" "\$cf_alias\${suffix}" 14575CF_EOF 14576 ;; 14577(*) 14578cat >>$cf_edit_man <<CF_EOF 14579 rm -f "\$cf_alias\${suffix}" 14580 $LN_S "\$cf_target" "\$cf_alias\${suffix}" 14581CF_EOF 14582 ;; 14583esac 14584cat >>$cf_edit_man <<CF_EOF 14585 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then 14586 echo ".so \$cf_source" >\$TMP 14587CF_EOF 14588if test -n "$cf_compress" ; then 14589cat >>$cf_edit_man <<CF_EOF 14590 if test -n "$cf_so_strip" ; then 14591 "$cf_compress" -f \$TMP 14592 mv \$TMP.$cf_so_strip \$TMP 14593 fi 14594CF_EOF 14595fi 14596cat >>$cf_edit_man <<CF_EOF 14597 echo ".. \$verb alias \$cf_alias\${suffix}" 14598 rm -f "\$cf_alias\${suffix}" 14599 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}" 14600 fi 14601 done 14602 ) 14603 ) 14604 elif test "\$verb" = removing ; then 14605 test -f "\$cf_target" && ( 14606 echo "\$verb \$cf_target" 14607 rm -f "\$cf_target" 14608 ) 14609 test -d "\$cf_subdir\${section}" && 14610 test -n "\$aliases" && ( 14611 cd "\$cf_subdir\${section}" && ( 14612 for cf_alias in \$aliases 14613 do 14614 if test "\$section" = 1 ; then 14615 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\` 14616 fi 14617 14618 echo ".. \$verb alias \$cf_alias\${suffix}" 14619 rm -f "\$cf_alias\${suffix}" 14620 done 14621 ) 14622 ) 14623 else 14624# echo ".hy 0" 14625 cat \$TMP 14626 fi 14627 ;; 14628esac 14629done 14630 14631if test "$cf_inboth" = yes ; then 14632if test "\$form" != format ; then 14633 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@" 14634fi 14635fi 14636 14637exit 0 14638CF_EOF 14639chmod 755 "$cf_edit_man" 14640 14641############################################################################### 14642 14643### Note that some functions (such as const) are normally disabled anyway. 14644echo "$as_me:14644: checking if you want to build with function extensions" >&5 14645echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6 14646 14647# Check whether --enable-ext-funcs or --disable-ext-funcs was given. 14648if test "${enable_ext_funcs+set}" = set; then 14649 enableval="$enable_ext_funcs" 14650 with_ext_funcs=$enableval 14651else 14652 with_ext_funcs=yes 14653fi; 14654echo "$as_me:14654: result: $with_ext_funcs" >&5 14655echo "${ECHO_T}$with_ext_funcs" >&6 14656if test "x$with_ext_funcs" = xyes ; then 14657 NCURSES_EXT_FUNCS=1 14658 14659cat >>confdefs.h <<\EOF 14660#define NCURSES_EXT_FUNCS 1 14661EOF 14662 14663cat >>confdefs.h <<\EOF 14664#define HAVE_ASSUME_DEFAULT_COLORS 1 14665EOF 14666 14667cat >>confdefs.h <<\EOF 14668#define HAVE_CURSES_VERSION 1 14669EOF 14670 14671cat >>confdefs.h <<\EOF 14672#define HAVE_HAS_KEY 1 14673EOF 14674 14675cat >>confdefs.h <<\EOF 14676#define HAVE_RESIZETERM 1 14677EOF 14678 14679cat >>confdefs.h <<\EOF 14680#define HAVE_RESIZE_TERM 1 14681EOF 14682 14683cat >>confdefs.h <<\EOF 14684#define HAVE_TERM_ENTRY_H 1 14685EOF 14686 14687cat >>confdefs.h <<\EOF 14688#define HAVE_USE_DEFAULT_COLORS 1 14689EOF 14690 14691cat >>confdefs.h <<\EOF 14692#define HAVE_USE_EXTENDED_NAMES 1 14693EOF 14694 14695cat >>confdefs.h <<\EOF 14696#define HAVE_USE_SCREEN 1 14697EOF 14698 14699cat >>confdefs.h <<\EOF 14700#define HAVE_USE_WINDOW 1 14701EOF 14702 14703cat >>confdefs.h <<\EOF 14704#define HAVE_WRESIZE 1 14705EOF 14706 14707 GENERATED_EXT_FUNCS=generated 14708 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no 14709else 14710 NCURSES_EXT_FUNCS=0 14711 GENERATED_EXT_FUNCS= 14712fi 14713 14714echo "$as_me:14714: checking if you want to build with SCREEN extensions" >&5 14715echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6 14716 14717# Check whether --enable-sp-funcs or --disable-sp-funcs was given. 14718if test "${enable_sp_funcs+set}" = set; then 14719 enableval="$enable_sp_funcs" 14720 with_sp_funcs=$enableval 14721else 14722 with_sp_funcs=$cf_dft_ext_spfuncs 14723fi; 14724echo "$as_me:14724: result: $with_sp_funcs" >&5 14725echo "${ECHO_T}$with_sp_funcs" >&6 14726if test "x$with_sp_funcs" = xyes ; then 14727 NCURSES_SP_FUNCS=1 14728 14729cat >>confdefs.h <<\EOF 14730#define NCURSES_SP_FUNCS 1 14731EOF 14732 14733cat >>confdefs.h <<\EOF 14734#define HAVE_TPUTS_SP 1 14735EOF 14736 14737 GENERATED_SP_FUNCS=generated 14738else 14739 NCURSES_SP_FUNCS=0 14740 GENERATED_SP_FUNCS= 14741fi 14742 14743echo "$as_me:14743: checking if you want to build with terminal-driver" >&5 14744echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6 14745 14746# Check whether --enable-term-driver or --disable-term-driver was given. 14747if test "${enable_term_driver+set}" = set; then 14748 enableval="$enable_term_driver" 14749 with_term_driver=$enableval 14750else 14751 with_term_driver=no 14752fi; 14753echo "$as_me:14753: result: $with_term_driver" >&5 14754echo "${ECHO_T}$with_term_driver" >&6 14755if test "x$with_term_driver" = xyes ; then 14756 14757cat >>confdefs.h <<\EOF 14758#define USE_TERM_DRIVER 1 14759EOF 14760 14761 if test "x$with_termlib" != xno ; then 14762 { { echo "$as_me:14762: error: The term-driver option conflicts with the termlib option" >&5 14763echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;} 14764 { (exit 1); exit 1; }; } 14765 fi 14766 if test "x$with_sp_funcs" != xyes ; then 14767 { { echo "$as_me:14767: error: The term-driver option relies upon sp-funcs" >&5 14768echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;} 14769 { (exit 1); exit 1; }; } 14770 fi 14771fi 14772 14773### use option --enable-const to turn on use of const beyond that in XSI. 14774echo "$as_me:14774: checking for extended use of const keyword" >&5 14775echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6 14776 14777# Check whether --enable-const or --disable-const was given. 14778if test "${enable_const+set}" = set; then 14779 enableval="$enable_const" 14780 with_ext_const=$enableval 14781else 14782 with_ext_const=$cf_dft_ext_const 14783fi; 14784echo "$as_me:14784: result: $with_ext_const" >&5 14785echo "${ECHO_T}$with_ext_const" >&6 14786NCURSES_CONST='/*nothing*/' 14787if test "x$with_ext_const" = xyes ; then 14788 NCURSES_CONST=const 14789fi 14790 14791### use option --enable-ext-colors to turn on use of colors beyond 16. 14792echo "$as_me:14792: checking if you want to use extended colors" >&5 14793echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6 14794 14795# Check whether --enable-ext-colors or --disable-ext-colors was given. 14796if test "${enable_ext_colors+set}" = set; then 14797 enableval="$enable_ext_colors" 14798 with_ext_colors=$enableval 14799else 14800 with_ext_colors=$cf_dft_ext_colors 14801fi; 14802echo "$as_me:14802: result: $with_ext_colors" >&5 14803echo "${ECHO_T}$with_ext_colors" >&6 14804NCURSES_EXT_COLORS=0 14805if test "x$with_ext_colors" = xyes ; then 14806 if test "x$with_widec" != xyes ; then 14807 { echo "$as_me:14807: WARNING: This option applies only to wide-character library" >&5 14808echo "$as_me: WARNING: This option applies only to wide-character library" >&2;} 14809 else 14810 # cannot be ABI 5 since it changes sizeof(cchar_t) 14811 14812if test "${with_abi_version+set}" != set; then 14813 case "$cf_cv_rel_version" in 14814 (5.*) 14815 cf_cv_rel_version=6.0 14816 cf_cv_abi_version=6 14817 { echo "$as_me:14817: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 14818echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 14819 ;; 14820 esac 14821fi 14822 14823 NCURSES_EXT_COLORS=1 14824 14825cat >>confdefs.h <<\EOF 14826#define NCURSES_EXT_COLORS 1 14827EOF 14828 14829cat >>confdefs.h <<\EOF 14830#define HAVE_ALLOC_PAIR 1 14831EOF 14832 14833cat >>confdefs.h <<\EOF 14834#define HAVE_INIT_EXTENDED_COLOR 1 14835EOF 14836 14837cat >>confdefs.h <<\EOF 14838#define HAVE_RESET_COLOR_PAIRS 1 14839EOF 14840 14841 fi 14842fi 14843 14844### use option --enable-ext-mouse to modify coding to support 5-button mice 14845echo "$as_me:14845: checking if you want to use extended mouse encoding" >&5 14846echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6 14847 14848# Check whether --enable-ext-mouse or --disable-ext-mouse was given. 14849if test "${enable_ext_mouse+set}" = set; then 14850 enableval="$enable_ext_mouse" 14851 with_ext_mouse=$enableval 14852else 14853 with_ext_mouse=$cf_dft_ext_mouse 14854fi; 14855echo "$as_me:14855: result: $with_ext_mouse" >&5 14856echo "${ECHO_T}$with_ext_mouse" >&6 14857NCURSES_MOUSE_VERSION=1 14858if test "x$with_ext_mouse" = xyes ; then 14859 NCURSES_MOUSE_VERSION=2 14860 14861if test "${with_abi_version+set}" != set; then 14862 case "$cf_cv_rel_version" in 14863 (5.*) 14864 cf_cv_rel_version=6.0 14865 cf_cv_abi_version=6 14866 { echo "$as_me:14866: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 14867echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 14868 ;; 14869 esac 14870fi 14871 14872fi 14873 14874### use option --enable-ext-putwin to turn on extended screendumps 14875echo "$as_me:14875: checking if you want to use extended putwin/screendump" >&5 14876echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6 14877 14878# Check whether --enable-ext-putwin or --disable-ext-putwin was given. 14879if test "${enable_ext_putwin+set}" = set; then 14880 enableval="$enable_ext_putwin" 14881 with_ext_putwin=$enableval 14882else 14883 with_ext_putwin=$cf_dft_ext_putwin 14884fi; 14885echo "$as_me:14885: result: $with_ext_putwin" >&5 14886echo "${ECHO_T}$with_ext_putwin" >&6 14887if test "x$with_ext_putwin" = xyes ; then 14888 14889cat >>confdefs.h <<\EOF 14890#define NCURSES_EXT_PUTWIN 1 14891EOF 14892 14893fi 14894 14895echo "$as_me:14895: checking if you want \$NCURSES_NO_PADDING code" >&5 14896echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6 14897 14898# Check whether --enable-no-padding or --disable-no-padding was given. 14899if test "${enable_no_padding+set}" = set; then 14900 enableval="$enable_no_padding" 14901 with_no_padding=$enableval 14902else 14903 with_no_padding=$with_ext_funcs 14904fi; 14905echo "$as_me:14905: result: $with_no_padding" >&5 14906echo "${ECHO_T}$with_no_padding" >&6 14907test "x$with_no_padding" = xyes && 14908cat >>confdefs.h <<\EOF 14909#define NCURSES_NO_PADDING 1 14910EOF 14911 14912### use option --enable-sigwinch to turn on use of SIGWINCH logic 14913echo "$as_me:14913: checking if you want SIGWINCH handler" >&5 14914echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6 14915 14916# Check whether --enable-sigwinch or --disable-sigwinch was given. 14917if test "${enable_sigwinch+set}" = set; then 14918 enableval="$enable_sigwinch" 14919 with_sigwinch=$enableval 14920else 14921 with_sigwinch=$with_ext_funcs 14922fi; 14923echo "$as_me:14923: result: $with_sigwinch" >&5 14924echo "${ECHO_T}$with_sigwinch" >&6 14925test "x$with_sigwinch" = xyes && 14926cat >>confdefs.h <<\EOF 14927#define USE_SIGWINCH 1 14928EOF 14929 14930### use option --enable-tcap-names to allow user to define new capabilities 14931echo "$as_me:14931: checking if you want user-definable terminal capabilities like termcap" >&5 14932echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6 14933 14934# Check whether --enable-tcap-names or --disable-tcap-names was given. 14935if test "${enable_tcap_names+set}" = set; then 14936 enableval="$enable_tcap_names" 14937 with_tcap_names=$enableval 14938else 14939 with_tcap_names=$with_ext_funcs 14940fi; 14941echo "$as_me:14941: result: $with_tcap_names" >&5 14942echo "${ECHO_T}$with_tcap_names" >&6 14943NCURSES_XNAMES=0 14944test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1 14945 14946############################################################################## 14947 14948echo "$as_me:14948: checking if you want to link with the pthread library" >&5 14949echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6 14950 14951# Check whether --with-pthread or --without-pthread was given. 14952if test "${with_pthread+set}" = set; then 14953 withval="$with_pthread" 14954 with_pthread=$withval 14955else 14956 with_pthread=no 14957fi; 14958echo "$as_me:14958: result: $with_pthread" >&5 14959echo "${ECHO_T}$with_pthread" >&6 14960 14961if test "$with_pthread" != no ; then 14962 echo "$as_me:14962: checking for pthread.h" >&5 14963echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 14964if test "${ac_cv_header_pthread_h+set}" = set; then 14965 echo $ECHO_N "(cached) $ECHO_C" >&6 14966else 14967 cat >"conftest.$ac_ext" <<_ACEOF 14968#line 14968 "configure" 14969#include "confdefs.h" 14970#include <pthread.h> 14971_ACEOF 14972if { (eval echo "$as_me:14972: \"$ac_cpp "conftest.$ac_ext"\"") >&5 14973 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 14974 ac_status=$? 14975 $EGREP -v '^ *\+' conftest.er1 >conftest.err 14976 rm -f conftest.er1 14977 cat conftest.err >&5 14978 echo "$as_me:14978: \$? = $ac_status" >&5 14979 (exit "$ac_status"); } >/dev/null; then 14980 if test -s conftest.err; then 14981 ac_cpp_err=$ac_c_preproc_warn_flag 14982 else 14983 ac_cpp_err= 14984 fi 14985else 14986 ac_cpp_err=yes 14987fi 14988if test -z "$ac_cpp_err"; then 14989 ac_cv_header_pthread_h=yes 14990else 14991 echo "$as_me: failed program was:" >&5 14992 cat "conftest.$ac_ext" >&5 14993 ac_cv_header_pthread_h=no 14994fi 14995rm -f conftest.err "conftest.$ac_ext" 14996fi 14997echo "$as_me:14997: result: $ac_cv_header_pthread_h" >&5 14998echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 14999if test "$ac_cv_header_pthread_h" = yes; then 15000 15001cat >>confdefs.h <<\EOF 15002#define HAVE_PTHREADS_H 1 15003EOF 15004 15005 for cf_lib_pthread in pthread c_r 15006 do 15007 echo "$as_me:15007: checking if we can link with the $cf_lib_pthread library" >&5 15008echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6 15009 cf_save_LIBS="$LIBS" 15010 15011cf_add_libs="$LIBS" 15012# reverse order 15013cf_add_0lib= 15014for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15015# filter duplicates 15016for cf_add_1lib in $cf_add_0lib; do 15017 for cf_add_2lib in $cf_add_libs; do 15018 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15019 cf_add_1lib= 15020 break 15021 fi 15022 done 15023 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15024done 15025LIBS="$cf_add_libs" 15026 15027 cat >"conftest.$ac_ext" <<_ACEOF 15028#line 15028 "configure" 15029#include "confdefs.h" 15030 15031#include <pthread.h> 15032 15033int 15034main (void) 15035{ 15036 15037 int rc = pthread_create(0,0,0,0); 15038 int r2 = pthread_mutexattr_settype(0, 0); 15039 15040 ; 15041 return 0; 15042} 15043_ACEOF 15044rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15045if { (eval echo "$as_me:15045: \"$ac_link\"") >&5 15046 (eval $ac_link) 2>&5 15047 ac_status=$? 15048 echo "$as_me:15048: \$? = $ac_status" >&5 15049 (exit "$ac_status"); } && 15050 { ac_try='test -s "conftest$ac_exeext"' 15051 { (eval echo "$as_me:15051: \"$ac_try\"") >&5 15052 (eval $ac_try) 2>&5 15053 ac_status=$? 15054 echo "$as_me:15054: \$? = $ac_status" >&5 15055 (exit "$ac_status"); }; }; then 15056 with_pthread=yes 15057else 15058 echo "$as_me: failed program was:" >&5 15059cat "conftest.$ac_ext" >&5 15060with_pthread=no 15061fi 15062rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15063 LIBS="$cf_save_LIBS" 15064 echo "$as_me:15064: result: $with_pthread" >&5 15065echo "${ECHO_T}$with_pthread" >&6 15066 test "$with_pthread" = yes && break 15067 done 15068 15069 if test "$with_pthread" = yes ; then 15070 15071cf_add_libs="$LIBS" 15072# reverse order 15073cf_add_0lib= 15074for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15075# filter duplicates 15076for cf_add_1lib in $cf_add_0lib; do 15077 for cf_add_2lib in $cf_add_libs; do 15078 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15079 cf_add_1lib= 15080 break 15081 fi 15082 done 15083 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15084done 15085LIBS="$cf_add_libs" 15086 15087cat >>confdefs.h <<\EOF 15088#define HAVE_LIBPTHREADS 1 15089EOF 15090 15091 else 15092 { { echo "$as_me:15092: error: Cannot link with pthread library" >&5 15093echo "$as_me: error: Cannot link with pthread library" >&2;} 15094 { (exit 1); exit 1; }; } 15095 fi 15096 15097fi 15098 15099fi 15100 15101if test "x$with_pthread" != xno; then 15102 echo "$as_me:15102: checking for pthread_kill" >&5 15103echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6 15104if test "${ac_cv_func_pthread_kill+set}" = set; then 15105 echo $ECHO_N "(cached) $ECHO_C" >&6 15106else 15107 cat >"conftest.$ac_ext" <<_ACEOF 15108#line 15108 "configure" 15109#include "confdefs.h" 15110#define pthread_kill autoconf_temporary 15111#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15112#undef pthread_kill 15113 15114#ifdef __cplusplus 15115extern "C" 15116#endif 15117 15118/* We use char because int might match the return type of a gcc2 15119 builtin and then its argument prototype would still apply. */ 15120char pthread_kill (void); 15121 15122int 15123main (void) 15124{ 15125 15126/* The GNU C library defines stubs for functions which it implements 15127 to always fail with ENOSYS. Some functions are actually named 15128 something starting with __ and the normal name is an alias. */ 15129#if defined (__stub_pthread_kill) || defined (__stub___pthread_kill) 15130#error found stub for pthread_kill 15131#endif 15132 15133 return pthread_kill (); 15134 ; 15135 return 0; 15136} 15137_ACEOF 15138rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15139if { (eval echo "$as_me:15139: \"$ac_link\"") >&5 15140 (eval $ac_link) 2>&5 15141 ac_status=$? 15142 echo "$as_me:15142: \$? = $ac_status" >&5 15143 (exit "$ac_status"); } && 15144 { ac_try='test -s "conftest$ac_exeext"' 15145 { (eval echo "$as_me:15145: \"$ac_try\"") >&5 15146 (eval $ac_try) 2>&5 15147 ac_status=$? 15148 echo "$as_me:15148: \$? = $ac_status" >&5 15149 (exit "$ac_status"); }; }; then 15150 ac_cv_func_pthread_kill=yes 15151else 15152 echo "$as_me: failed program was:" >&5 15153cat "conftest.$ac_ext" >&5 15154ac_cv_func_pthread_kill=no 15155fi 15156rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15157fi 15158echo "$as_me:15158: result: $ac_cv_func_pthread_kill" >&5 15159echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6 15160if test "$ac_cv_func_pthread_kill" = yes; then 15161 15162 echo "$as_me:15162: checking if you want to allow EINTR in wgetch with pthreads" >&5 15163echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6 15164 15165# Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given. 15166if test "${enable_pthreads_eintr+set}" = set; then 15167 enableval="$enable_pthreads_eintr" 15168 use_pthreads_eintr=$enableval 15169else 15170 use_pthreads_eintr=no 15171fi; 15172 echo "$as_me:15172: result: $use_pthreads_eintr" >&5 15173echo "${ECHO_T}$use_pthreads_eintr" >&6 15174 if test "x$use_pthreads_eintr" = xyes ; then 15175 15176cat >>confdefs.h <<\EOF 15177#define USE_PTHREADS_EINTR 1 15178EOF 15179 15180 fi 15181fi 15182 15183 echo "$as_me:15183: checking if you want to use weak-symbols for pthreads" >&5 15184echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6 15185 15186# Check whether --enable-weak-symbols or --disable-weak-symbols was given. 15187if test "${enable_weak_symbols+set}" = set; then 15188 enableval="$enable_weak_symbols" 15189 use_weak_symbols=$enableval 15190else 15191 use_weak_symbols=no 15192fi; 15193 echo "$as_me:15193: result: $use_weak_symbols" >&5 15194echo "${ECHO_T}$use_weak_symbols" >&6 15195 if test "x$use_weak_symbols" = xyes ; then 15196 15197echo "$as_me:15197: checking if $CC supports weak symbols" >&5 15198echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6 15199if test "${cf_cv_weak_symbols+set}" = set; then 15200 echo $ECHO_N "(cached) $ECHO_C" >&6 15201else 15202 15203cat >"conftest.$ac_ext" <<_ACEOF 15204#line 15204 "configure" 15205#include "confdefs.h" 15206 15207#include <stdio.h> 15208int 15209main (void) 15210{ 15211 15212#if defined(__GNUC__) 15213# if defined __USE_ISOC99 15214# define _cat_pragma(exp) _Pragma(#exp) 15215# define _weak_pragma(exp) _cat_pragma(weak name) 15216# else 15217# define _weak_pragma(exp) 15218# endif 15219# define _declare(name) __extension__ extern __typeof__(name) name 15220# define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak)) 15221#endif 15222 15223weak_symbol(fopen); 15224 15225 ; 15226 return 0; 15227} 15228_ACEOF 15229rm -f "conftest.$ac_objext" 15230if { (eval echo "$as_me:15230: \"$ac_compile\"") >&5 15231 (eval $ac_compile) 2>&5 15232 ac_status=$? 15233 echo "$as_me:15233: \$? = $ac_status" >&5 15234 (exit "$ac_status"); } && 15235 { ac_try='test -s "conftest.$ac_objext"' 15236 { (eval echo "$as_me:15236: \"$ac_try\"") >&5 15237 (eval $ac_try) 2>&5 15238 ac_status=$? 15239 echo "$as_me:15239: \$? = $ac_status" >&5 15240 (exit "$ac_status"); }; }; then 15241 cf_cv_weak_symbols=yes 15242else 15243 echo "$as_me: failed program was:" >&5 15244cat "conftest.$ac_ext" >&5 15245cf_cv_weak_symbols=no 15246fi 15247rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15248 15249fi 15250echo "$as_me:15250: result: $cf_cv_weak_symbols" >&5 15251echo "${ECHO_T}$cf_cv_weak_symbols" >&6 15252 15253 else 15254 cf_cv_weak_symbols=no 15255 fi 15256 15257 if test "x$cf_cv_weak_symbols" = xyes ; then 15258 15259cat >>confdefs.h <<\EOF 15260#define USE_WEAK_SYMBOLS 1 15261EOF 15262 15263 fi 15264fi 15265 15266PTHREAD= 15267if test "x$with_pthread" = "xyes" ; then 15268 15269cat >>confdefs.h <<\EOF 15270#define USE_PTHREADS 1 15271EOF 15272 15273 enable_reentrant=yes 15274 if test "x$cf_cv_weak_symbols" = xyes ; then 15275 PTHREAD=-lpthread 15276 15277cf_add_libs="$PRIVATE_LIBS" 15278# reverse order 15279cf_add_0lib= 15280for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15281# filter duplicates 15282for cf_add_1lib in $cf_add_0lib; do 15283 for cf_add_2lib in $cf_add_libs; do 15284 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15285 cf_add_1lib= 15286 break 15287 fi 15288 done 15289 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15290done 15291PRIVATE_LIBS="$cf_add_libs" 15292 15293 fi 15294fi 15295 15296# Reentrant code has to be opaque; there's little advantage to making ncurses 15297# opaque outside of that, so there is no --enable-opaque option. We can use 15298# this option without --with-pthreads, but this will be always set for 15299# pthreads. 15300echo "$as_me:15300: checking if you want reentrant code" >&5 15301echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6 15302 15303# Check whether --enable-reentrant or --disable-reentrant was given. 15304if test "${enable_reentrant+set}" = set; then 15305 enableval="$enable_reentrant" 15306 with_reentrant=$enableval 15307else 15308 with_reentrant=no 15309fi; 15310echo "$as_me:15310: result: $with_reentrant" >&5 15311echo "${ECHO_T}$with_reentrant" >&6 15312if test "x$with_reentrant" = xyes ; then 15313 cf_cv_enable_reentrant=1 15314 cf_cv_enable_opaque="NCURSES_INTERNALS" 15315 NCURSES_SIZE_T=int 15316 if test "x$cf_cv_weak_symbols" = xyes ; then 15317 15318# remove pthread library from $LIBS 15319LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'` 15320 15321cf_add_libs="$TEST_LIBS" 15322# reverse order 15323cf_add_0lib= 15324for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15325# filter duplicates 15326for cf_add_1lib in $cf_add_0lib; do 15327 for cf_add_2lib in $cf_add_libs; do 15328 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15329 cf_add_1lib= 15330 break 15331 fi 15332 done 15333 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15334done 15335TEST_LIBS="$cf_add_libs" 15336 15337cf_add_libs="$TEST_LIBS2" 15338# reverse order 15339cf_add_0lib= 15340for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15341# filter duplicates 15342for cf_add_1lib in $cf_add_0lib; do 15343 for cf_add_2lib in $cf_add_libs; do 15344 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15345 cf_add_1lib= 15346 break 15347 fi 15348 done 15349 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15350done 15351TEST_LIBS2="$cf_add_libs" 15352 15353cf_add_libs="$PRIVATE_LIBS" 15354# reverse order 15355cf_add_0lib= 15356for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15357# filter duplicates 15358for cf_add_1lib in $cf_add_0lib; do 15359 for cf_add_2lib in $cf_add_libs; do 15360 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15361 cf_add_1lib= 15362 break 15363 fi 15364 done 15365 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15366done 15367PRIVATE_LIBS="$cf_add_libs" 15368 15369 else 15370 # when not using weak symbols but with_reentrant, 15371 # add 't' to the library suffix on all platforms 15372 # except cygwin, where we only do that if ALSO 15373 # compiling with full thread support. 15374 case "$host" in 15375 (*cygwin* | *msys*) 15376 if test "$with_pthread" = "yes" ; then 15377 if test "x$disable_lib_suffixes" = "xno" ; then 15378 LIB_SUFFIX="t${LIB_SUFFIX}" 15379 fi 15380 fi ;; 15381 (*) 15382 if test "x$disable_lib_suffixes" = "xno" ; then 15383 LIB_SUFFIX="t${LIB_SUFFIX}" 15384 fi 15385 ;; 15386 esac 15387 fi 15388 15389cat >>confdefs.h <<\EOF 15390#define USE_REENTRANT 1 15391EOF 15392 15393if test "${with_abi_version+set}" != set; then 15394 case "$cf_cv_rel_version" in 15395 (5.*) 15396 cf_cv_rel_version=6.0 15397 cf_cv_abi_version=6 15398 { echo "$as_me:15398: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 15399echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 15400 ;; 15401 esac 15402fi 15403 15404else 15405 cf_cv_enable_reentrant=0 15406 cf_cv_enable_opaque="NCURSES_OPAQUE" 15407 NCURSES_SIZE_T=short 15408fi 15409 15410echo "$as_me:15410: checking if you want opaque curses-library structures" >&5 15411echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6 15412 15413# Check whether --enable-opaque-curses or --disable-opaque-curses was given. 15414if test "${enable_opaque_curses+set}" = set; then 15415 enableval="$enable_opaque_curses" 15416 test "$enableval" != yes && enableval=no 15417 if test "$enableval" != "no" ; then 15418 enable_opaque_curses=yes 15419 else 15420 15421 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes 15422 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no 15423 15424 fi 15425else 15426 enableval=no 15427 15428 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes 15429 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no 15430 15431fi; 15432echo "$as_me:15432: result: $enable_opaque_curses" >&5 15433echo "${ECHO_T}$enable_opaque_curses" >&6 15434 15435test "$cf_cv_enable_reentrant" = 1 && \ 15436test "$enable_opaque_curses" = no && \ 15437{ { echo "$as_me:15437: error: reentrant configuration requires opaque library" >&5 15438echo "$as_me: error: reentrant configuration requires opaque library" >&2;} 15439 { (exit 1); exit 1; }; } 15440 15441echo "$as_me:15441: checking if you want opaque form-library structures" >&5 15442echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6 15443 15444# Check whether --enable-opaque-form or --disable-opaque-form was given. 15445if test "${enable_opaque_form+set}" = set; then 15446 enableval="$enable_opaque_form" 15447 enable_opaque_form=yes 15448else 15449 enable_opaque_form=no 15450fi; 15451echo "$as_me:15451: result: $enable_opaque_form" >&5 15452echo "${ECHO_T}$enable_opaque_form" >&6 15453 15454echo "$as_me:15454: checking if you want opaque menu-library structures" >&5 15455echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6 15456 15457# Check whether --enable-opaque-menu or --disable-opaque-menu was given. 15458if test "${enable_opaque_menu+set}" = set; then 15459 enableval="$enable_opaque_menu" 15460 enable_opaque_menu=yes 15461else 15462 enable_opaque_menu=no 15463fi; 15464echo "$as_me:15464: result: $enable_opaque_menu" >&5 15465echo "${ECHO_T}$enable_opaque_menu" >&6 15466 15467echo "$as_me:15467: checking if you want opaque panel-library structures" >&5 15468echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6 15469 15470# Check whether --enable-opaque-panel or --disable-opaque-panel was given. 15471if test "${enable_opaque_panel+set}" = set; then 15472 enableval="$enable_opaque_panel" 15473 enable_opaque_panel=yes 15474else 15475 enable_opaque_panel=no 15476fi; 15477echo "$as_me:15477: result: $enable_opaque_panel" >&5 15478echo "${ECHO_T}$enable_opaque_panel" >&6 15479 15480NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1 15481NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1 15482NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1 15483NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1 15484 15485### Allow using a different wrap-prefix 15486if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then 15487 echo "$as_me:15487: checking for prefix used to wrap public variables" >&5 15488echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6 15489 15490# Check whether --with-wrap-prefix or --without-wrap-prefix was given. 15491if test "${with_wrap_prefix+set}" = set; then 15492 withval="$with_wrap_prefix" 15493 NCURSES_WRAP_PREFIX=$withval 15494else 15495 NCURSES_WRAP_PREFIX=_nc_ 15496fi; 15497 echo "$as_me:15497: result: $NCURSES_WRAP_PREFIX" >&5 15498echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6 15499else 15500 NCURSES_WRAP_PREFIX=_nc_ 15501fi 15502 15503cat >>confdefs.h <<EOF 15504#define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX" 15505EOF 15506 15507############################################################################### 15508# These options are relatively safe to experiment with. 15509 15510echo "$as_me:15510: checking if you want all development code" >&5 15511echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6 15512 15513# Check whether --with-develop or --without-develop was given. 15514if test "${with_develop+set}" = set; then 15515 withval="$with_develop" 15516 with_develop=$withval 15517else 15518 with_develop=no 15519fi; 15520echo "$as_me:15520: result: $with_develop" >&5 15521echo "${ECHO_T}$with_develop" >&6 15522 15523### use option --enable-hard-tabs to turn on use of hard-tabs optimize 15524echo "$as_me:15524: checking if you want hard-tabs code" >&5 15525echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6 15526 15527# Check whether --enable-hard-tabs or --disable-hard-tabs was given. 15528if test "${enable_hard_tabs+set}" = set; then 15529 enableval="$enable_hard_tabs" 15530 15531else 15532 enable_hard_tabs=$with_develop 15533fi; 15534echo "$as_me:15534: result: $enable_hard_tabs" >&5 15535echo "${ECHO_T}$enable_hard_tabs" >&6 15536test "x$enable_hard_tabs" = xyes && 15537cat >>confdefs.h <<\EOF 15538#define USE_HARD_TABS 1 15539EOF 15540 15541### use option --enable-xmc-glitch to turn on use of magic-cookie optimize 15542echo "$as_me:15542: checking if you want limited support for xmc" >&5 15543echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6 15544 15545# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 15546if test "${enable_xmc_glitch+set}" = set; then 15547 enableval="$enable_xmc_glitch" 15548 15549else 15550 enable_xmc_glitch=$with_develop 15551fi; 15552echo "$as_me:15552: result: $enable_xmc_glitch" >&5 15553echo "${ECHO_T}$enable_xmc_glitch" >&6 15554test "x$enable_xmc_glitch" = xyes && 15555cat >>confdefs.h <<\EOF 15556#define USE_XMC_SUPPORT 1 15557EOF 15558 15559############################################################################### 15560# These are just experimental, probably should not be in a package: 15561 15562echo "$as_me:15562: checking if you do not want to assume colors are white-on-black" >&5 15563echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6 15564 15565# Check whether --enable-assumed-color or --disable-assumed-color was given. 15566if test "${enable_assumed_color+set}" = set; then 15567 enableval="$enable_assumed_color" 15568 with_assumed_color=$enableval 15569else 15570 with_assumed_color=yes 15571fi; 15572echo "$as_me:15572: result: $with_assumed_color" >&5 15573echo "${ECHO_T}$with_assumed_color" >&6 15574test "x$with_assumed_color" = xyes && 15575cat >>confdefs.h <<\EOF 15576#define USE_ASSUMED_COLOR 1 15577EOF 15578 15579### use option --enable-hashmap to turn on use of hashmap scrolling logic 15580echo "$as_me:15580: checking if you want hashmap scrolling-optimization code" >&5 15581echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6 15582 15583# Check whether --enable-hashmap or --disable-hashmap was given. 15584if test "${enable_hashmap+set}" = set; then 15585 enableval="$enable_hashmap" 15586 with_hashmap=$enableval 15587else 15588 with_hashmap=yes 15589fi; 15590echo "$as_me:15590: result: $with_hashmap" >&5 15591echo "${ECHO_T}$with_hashmap" >&6 15592test "x$with_hashmap" = xyes && 15593cat >>confdefs.h <<\EOF 15594#define USE_HASHMAP 1 15595EOF 15596 15597### use option --enable-colorfgbg to turn on use of $COLORFGBG environment 15598echo "$as_me:15598: checking if you want colorfgbg code" >&5 15599echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6 15600 15601# Check whether --enable-colorfgbg or --disable-colorfgbg was given. 15602if test "${enable_colorfgbg+set}" = set; then 15603 enableval="$enable_colorfgbg" 15604 with_colorfgbg=$enableval 15605else 15606 with_colorfgbg=no 15607fi; 15608echo "$as_me:15608: result: $with_colorfgbg" >&5 15609echo "${ECHO_T}$with_colorfgbg" >&6 15610test "x$with_colorfgbg" = xyes && 15611cat >>confdefs.h <<\EOF 15612#define USE_COLORFGBG 1 15613EOF 15614 15615### use option --enable-fvisibility to turn on use of gcc-specific feature 15616echo "$as_me:15616: checking if you want to use gcc -fvisibility option" >&5 15617echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6 15618 15619# Check whether --enable-fvisibility or --disable-fvisibility was given. 15620if test "${enable_fvisibility+set}" = set; then 15621 enableval="$enable_fvisibility" 15622 cf_with_fvisibility=$enableval 15623else 15624 cf_with_fvisibility=no 15625fi; 15626echo "$as_me:15626: result: $cf_with_fvisibility" >&5 15627echo "${ECHO_T}$cf_with_fvisibility" >&6 15628 15629NCURSES_IMPEXP= 15630NCURSES_CXX_IMPEXP= 15631if test "x$cf_with_fvisibility" = xyes; then 15632 15633echo "$as_me:15633: checking if $CC -fvisibility=hidden option works" >&5 15634echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6 15635if test "${cf_cv_fvisibility_hidden+set}" = set; then 15636 echo $ECHO_N "(cached) $ECHO_C" >&6 15637else 15638 15639 cf_save_cflags="$CFLAGS" 15640 CFLAGS="$CFLAGS -fvisibility=hidden" 15641 cat >"conftest.$ac_ext" <<_ACEOF 15642#line 15642 "configure" 15643#include "confdefs.h" 15644 15645__attribute__ ((visibility("default"))) int somefunc() {return 42;} 15646 15647int 15648main (void) 15649{ 15650 15651 if (somefunc()) return 1; 15652 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15658if { (eval echo "$as_me:15658: \"$ac_link\"") >&5 15659 (eval $ac_link) 2>&5 15660 ac_status=$? 15661 echo "$as_me:15661: \$? = $ac_status" >&5 15662 (exit "$ac_status"); } && 15663 { ac_try='test -s "conftest$ac_exeext"' 15664 { (eval echo "$as_me:15664: \"$ac_try\"") >&5 15665 (eval $ac_try) 2>&5 15666 ac_status=$? 15667 echo "$as_me:15667: \$? = $ac_status" >&5 15668 (exit "$ac_status"); }; }; then 15669 cf_cv_fvisibility_hidden=yes 15670else 15671 echo "$as_me: failed program was:" >&5 15672cat "conftest.$ac_ext" >&5 15673cf_cv_fvisibility_hidden=no 15674fi 15675rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15676 CFLAGS=$cf_save_cflags 15677 15678fi 15679echo "$as_me:15679: result: $cf_cv_fvisibility_hidden" >&5 15680echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6 15681 15682 if test "x$cf_cv_fvisibility_hidden" = xyes 15683 then 15684 15685cf_fix_cppflags=no 15686cf_new_cflags= 15687cf_new_cppflags= 15688cf_new_extra_cppflags= 15689 15690for cf_add_cflags in -fvisibility=hidden 15691do 15692case "$cf_fix_cppflags" in 15693(no) 15694 case "$cf_add_cflags" in 15695 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15696 case "$cf_add_cflags" in 15697 (-D*) 15698 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15699 15700 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15701 && test -z "${cf_tst_cflags}" \ 15702 && cf_fix_cppflags=yes 15703 15704 if test "$cf_fix_cppflags" = yes ; then 15705 15706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15708 15709 continue 15710 elif test "${cf_tst_cflags}" = "\"'" ; then 15711 15712 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15713 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15714 15715 continue 15716 fi 15717 ;; 15718 esac 15719 case "$CPPFLAGS" in 15720 (*$cf_add_cflags) 15721 ;; 15722 (*) 15723 case "$cf_add_cflags" in 15724 (-D*) 15725 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15726 15727CPPFLAGS=`echo "$CPPFLAGS" | \ 15728 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15729 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15730 15731 ;; 15732 esac 15733 15734 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15735 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15736 15737 ;; 15738 esac 15739 ;; 15740 (*) 15741 15742 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15743 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15744 15745 ;; 15746 esac 15747 ;; 15748(yes) 15749 15750 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15751 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15752 15753 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15754 15755 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15756 && test -z "${cf_tst_cflags}" \ 15757 && cf_fix_cppflags=no 15758 ;; 15759esac 15760done 15761 15762if test -n "$cf_new_cflags" ; then 15763 15764 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15765 CFLAGS="${CFLAGS}$cf_new_cflags" 15766 15767fi 15768 15769if test -n "$cf_new_cppflags" ; then 15770 15771 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15772 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15773 15774fi 15775 15776if test -n "$cf_new_extra_cppflags" ; then 15777 15778 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15779 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15780 15781fi 15782 15783 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))" 15784 fi 15785 if test -n "$CXX" 15786 then 15787 ac_ext=cc 15788ac_cpp='$CXXCPP $CPPFLAGS' 15789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 15790ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 15791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15792ac_main_return="return" 15793 15794echo "$as_me:15794: checking if $CXX -fvisibility=hidden option works" >&5 15795echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6 15796if test "${cf_cv_fvisibility_hidden2+set}" = set; then 15797 echo $ECHO_N "(cached) $ECHO_C" >&6 15798else 15799 15800 cf_save_cflags="$CXXFLAGS" 15801 CXXFLAGS="$CXXFLAGS -fvisibility=hidden" 15802 cat >"conftest.$ac_ext" <<_ACEOF 15803#line 15803 "configure" 15804#include "confdefs.h" 15805 15806__attribute__ ((visibility("default"))) int somefunc() {return 42;} 15807 15808int 15809main (void) 15810{ 15811 15812 if (somefunc()) return 1; 15813 15814 ; 15815 return 0; 15816} 15817_ACEOF 15818rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15819if { (eval echo "$as_me:15819: \"$ac_link\"") >&5 15820 (eval $ac_link) 2>&5 15821 ac_status=$? 15822 echo "$as_me:15822: \$? = $ac_status" >&5 15823 (exit "$ac_status"); } && 15824 { ac_try='test -s "conftest$ac_exeext"' 15825 { (eval echo "$as_me:15825: \"$ac_try\"") >&5 15826 (eval $ac_try) 2>&5 15827 ac_status=$? 15828 echo "$as_me:15828: \$? = $ac_status" >&5 15829 (exit "$ac_status"); }; }; then 15830 cf_cv_fvisibility_hidden2=yes 15831else 15832 echo "$as_me: failed program was:" >&5 15833cat "conftest.$ac_ext" >&5 15834cf_cv_fvisibility_hidden2=no 15835fi 15836rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15837 CXXFLAGS=$cf_save_cflags 15838 15839fi 15840echo "$as_me:15840: result: $cf_cv_fvisibility_hidden2" >&5 15841echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6 15842 15843 if test "x$cf_cv_fvisibility_hidden2" = xyes 15844 then 15845 15846cf_save_CXXFLAGS="$CFLAGS" 15847CFLAGS="$CXXFLAGS" 15848 15849cf_fix_cppflags=no 15850cf_new_cflags= 15851cf_new_cppflags= 15852cf_new_extra_cppflags= 15853 15854for cf_add_cflags in -fvisibility=hidden 15855do 15856case "$cf_fix_cppflags" in 15857(no) 15858 case "$cf_add_cflags" in 15859 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 15860 case "$cf_add_cflags" in 15861 (-D*) 15862 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 15863 15864 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15865 && test -z "${cf_tst_cflags}" \ 15866 && cf_fix_cppflags=yes 15867 15868 if test "$cf_fix_cppflags" = yes ; then 15869 15870 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15871 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15872 15873 continue 15874 elif test "${cf_tst_cflags}" = "\"'" ; then 15875 15876 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15877 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15878 15879 continue 15880 fi 15881 ;; 15882 esac 15883 case "$CPPFLAGS" in 15884 (*$cf_add_cflags) 15885 ;; 15886 (*) 15887 case "$cf_add_cflags" in 15888 (-D*) 15889 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 15890 15891CPPFLAGS=`echo "$CPPFLAGS" | \ 15892 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 15893 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 15894 15895 ;; 15896 esac 15897 15898 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 15899 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 15900 15901 ;; 15902 esac 15903 ;; 15904 (*) 15905 15906 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 15907 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 15908 15909 ;; 15910 esac 15911 ;; 15912(yes) 15913 15914 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 15915 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 15916 15917 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 15918 15919 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 15920 && test -z "${cf_tst_cflags}" \ 15921 && cf_fix_cppflags=no 15922 ;; 15923esac 15924done 15925 15926if test -n "$cf_new_cflags" ; then 15927 15928 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 15929 CFLAGS="${CFLAGS}$cf_new_cflags" 15930 15931fi 15932 15933if test -n "$cf_new_cppflags" ; then 15934 15935 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 15936 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 15937 15938fi 15939 15940if test -n "$cf_new_extra_cppflags" ; then 15941 15942 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 15943 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 15944 15945fi 15946 15947CXXFLAGS="$CFLAGS" 15948CFLAGS="$cf_save_CXXFLAGS" 15949 15950 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))" 15951 fi 15952 ac_ext=c 15953ac_cpp='$CPP $CPPFLAGS' 15954ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 15955ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 15956ac_compiler_gnu=$ac_cv_c_compiler_gnu 15957ac_main_return="return" 15958 15959 fi 15960fi 15961 15962### use option --enable-interop to turn on use of bindings used for interop 15963echo "$as_me:15963: checking if you want interop bindings" >&5 15964echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6 15965 15966# Check whether --enable-interop or --disable-interop was given. 15967if test "${enable_interop+set}" = set; then 15968 enableval="$enable_interop" 15969 with_exp_interop=$enableval 15970else 15971 with_exp_interop=$cf_dft_interop 15972fi; 15973echo "$as_me:15973: result: $with_exp_interop" >&5 15974echo "${ECHO_T}$with_exp_interop" >&6 15975 15976NCURSES_INTEROP_FUNCS=0 15977test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1 15978 15979echo "$as_me:15979: checking if you want experimental safe-sprintf code" >&5 15980echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6 15981 15982# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given. 15983if test "${enable_safe_sprintf+set}" = set; then 15984 enableval="$enable_safe_sprintf" 15985 with_safe_sprintf=$enableval 15986else 15987 with_safe_sprintf=no 15988fi; 15989echo "$as_me:15989: result: $with_safe_sprintf" >&5 15990echo "${ECHO_T}$with_safe_sprintf" >&6 15991 15992### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic 15993# when hashmap is used scroll hints are useless 15994if test "$with_hashmap" = no ; then 15995echo "$as_me:15995: checking if you want to experiment without scrolling-hints code" >&5 15996echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6 15997 15998# Check whether --enable-scroll-hints or --disable-scroll-hints was given. 15999if test "${enable_scroll_hints+set}" = set; then 16000 enableval="$enable_scroll_hints" 16001 with_scroll_hints=$enableval 16002else 16003 with_scroll_hints=yes 16004fi; 16005echo "$as_me:16005: result: $with_scroll_hints" >&5 16006echo "${ECHO_T}$with_scroll_hints" >&6 16007test "x$with_scroll_hints" = xyes && 16008cat >>confdefs.h <<\EOF 16009#define USE_SCROLL_HINTS 1 16010EOF 16011 16012fi 16013 16014echo "$as_me:16014: checking if you want wgetch-events code" >&5 16015echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6 16016 16017# Check whether --enable-wgetch-events or --disable-wgetch-events was given. 16018if test "${enable_wgetch_events+set}" = set; then 16019 enableval="$enable_wgetch_events" 16020 with_wgetch_events=$enableval 16021else 16022 with_wgetch_events=no 16023fi; 16024echo "$as_me:16024: result: $with_wgetch_events" >&5 16025echo "${ECHO_T}$with_wgetch_events" >&6 16026if test "x$with_wgetch_events" = xyes ; then 16027 16028cat >>confdefs.h <<\EOF 16029#define NCURSES_WGETCH_EVENTS 1 16030EOF 16031 16032 NCURSES_WGETCH_EVENTS=1 16033else 16034 NCURSES_WGETCH_EVENTS=0 16035fi 16036 16037case "$cf_cv_system_name" in 16038(*mingw32*|*mingw64*|*-msvc*) 16039 echo "$as_me:16039: checking if you want experimental-Windows driver" >&5 16040echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6 16041 16042# Check whether --enable-exp-win32 or --disable-exp-win32 was given. 16043if test "${enable_exp_win32+set}" = set; then 16044 enableval="$enable_exp_win32" 16045 with_exp_win32=$enableval 16046else 16047 with_exp_win32=no 16048fi; 16049 echo "$as_me:16049: result: $with_exp_win32" >&5 16050echo "${ECHO_T}$with_exp_win32" >&6 16051 if test "x$with_exp_win32" = xyes 16052 then 16053 16054cat >>confdefs.h <<\EOF 16055#define EXP_WIN32_DRIVER 1 16056EOF 16057 16058 EXP_WIN32_DRIVER=1 16059 INTERNALS_HDR='$(INCDIR)/nc_win32.h' 16060 else 16061 INTERNALS_HDR='$(INCDIR)/nc_mingw.h' 16062 EXP_WIN32_DRIVER=0 16063 fi 16064 ;; 16065(*) 16066 EXP_WIN32_DRIVER=0 16067 INTERNALS_HDR= 16068 ;; 16069esac 16070 16071############################################################################### 16072 16073### use option --disable-echo to suppress full display compiling commands 16074 16075echo "$as_me:16075: checking if you want to see long compiling messages" >&5 16076echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 16077 16078# Check whether --enable-echo or --disable-echo was given. 16079if test "${enable_echo+set}" = set; then 16080 enableval="$enable_echo" 16081 test "$enableval" != no && enableval=yes 16082 if test "$enableval" != "yes" ; then 16083 16084 ECHO_LT='--silent' 16085 ECHO_LD='@echo linking $@;' 16086 RULE_CC='@echo compiling $<' 16087 SHOW_CC='@echo compiling $@' 16088 ECHO_CC='@' 16089 16090 else 16091 16092 ECHO_LT='' 16093 ECHO_LD='' 16094 RULE_CC='' 16095 SHOW_CC='' 16096 ECHO_CC='' 16097 16098 fi 16099else 16100 enableval=yes 16101 16102 ECHO_LT='' 16103 ECHO_LD='' 16104 RULE_CC='' 16105 SHOW_CC='' 16106 ECHO_CC='' 16107 16108fi; 16109echo "$as_me:16109: result: $enableval" >&5 16110echo "${ECHO_T}$enableval" >&6 16111 16112if test "x$enable_echo" = xyes; then 16113 ECHO_LINK= 16114else 16115 ECHO_LINK='@ echo linking $@ ... ;' 16116 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent" 16117 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent" 16118fi 16119 16120# --disable-stripping is used for debugging 16121 16122echo "$as_me:16122: checking if you want to install stripped executables" >&5 16123echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6 16124 16125# Check whether --enable-stripping or --disable-stripping was given. 16126if test "${enable_stripping+set}" = set; then 16127 enableval="$enable_stripping" 16128 test "$enableval" != no && enableval=yes 16129 if test "$enableval" != "yes" ; then 16130 enable_stripping=no 16131 else 16132 enable_stripping=yes 16133 fi 16134else 16135 enableval=yes 16136 enable_stripping=yes 16137 16138fi; 16139echo "$as_me:16139: result: $enable_stripping" >&5 16140echo "${ECHO_T}$enable_stripping" >&6 16141 16142if test "$enable_stripping" = yes 16143then 16144 INSTALL_OPT_S="-s" 16145else 16146 INSTALL_OPT_S= 16147fi 16148 16149: "${INSTALL:=install}" 16150echo "$as_me:16150: checking if install accepts -p option" >&5 16151echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6 16152if test "${cf_cv_install_p+set}" = set; then 16153 echo $ECHO_N "(cached) $ECHO_C" >&6 16154else 16155 16156 rm -rf ./conftest* 16157 date >conftest.in 16158 mkdir conftest.out 16159 sleep 3 16160 if $INSTALL -p conftest.in conftest.out 2>/dev/null 16161 then 16162 if test -f conftest.out/conftest.in 16163 then 16164 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \ 16165 test conftest.out/conftest.in -nt conftest.in 2>conftest.err 16166 if test -s conftest.err 16167 then 16168 cf_cv_install_p=no 16169 else 16170 cf_cv_install_p=yes 16171 fi 16172 else 16173 cf_cv_install_p=no 16174 fi 16175 else 16176 cf_cv_install_p=no 16177 fi 16178 rm -rf ./conftest* 16179 16180fi 16181echo "$as_me:16181: result: $cf_cv_install_p" >&5 16182echo "${ECHO_T}$cf_cv_install_p" >&6 16183 16184echo "$as_me:16184: checking if install needs to be told about ownership" >&5 16185echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6 16186case `$ac_config_guess` in 16187(*minix) 16188 with_install_o=yes 16189 ;; 16190(*) 16191 with_install_o=no 16192 ;; 16193esac 16194 16195echo "$as_me:16195: result: $with_install_o" >&5 16196echo "${ECHO_T}$with_install_o" >&6 16197if test "x$with_install_o" = xyes 16198then 16199 INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`" 16200else 16201 INSTALL_OPT_O= 16202fi 16203 16204# If we're avoiding relinking of shared libraries during install, that is to 16205# avoid modifying the build-tree. For the same reason, avoid doing ranlib if 16206# the install program has "-p" (for preserving timestamps). 16207cf_cv_do_reranlib=yes 16208if test "x$cf_cv_install_p" = xyes 16209then 16210 if test "x$cf_cv_do_relink" != xyes 16211 then 16212 cf_cv_do_reranlib=no 16213 INSTALL_OPT_P="-p" 16214 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P" 16215 fi 16216fi 16217 16218### use option --enable-warnings to turn on all gcc warnings 16219 16220if test "$GCC" = yes || test "$GXX" = yes 16221then 16222 16223if test "$GCC" = yes || test "$GXX" = yes 16224then 16225 case $CFLAGS in 16226 (*-Werror=*) 16227 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 16228 16229echo "${as_me:-configure}:16229: testing repairing CFLAGS: $CFLAGS ..." 1>&5 16230 16231 cf_temp_flags= 16232 for cf_temp_scan in $CFLAGS 16233 do 16234 case "x$cf_temp_scan" in 16235 (x-Werror=*) 16236 16237 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16238 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16239 16240 ;; 16241 (*) 16242 16243 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16244 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16245 16246 ;; 16247 esac 16248 done 16249 CFLAGS="$cf_temp_flags" 16250 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 16251 16252echo "${as_me:-configure}:16252: testing ... fixed $CFLAGS ..." 1>&5 16253 16254 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16255 16256echo "${as_me:-configure}:16256: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16257 16258 ;; 16259 esac 16260fi 16261 16262if test "$GCC" = yes || test "$GXX" = yes 16263then 16264 case $CPPFLAGS in 16265 (*-Werror=*) 16266 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 16267 16268echo "${as_me:-configure}:16268: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 16269 16270 cf_temp_flags= 16271 for cf_temp_scan in $CPPFLAGS 16272 do 16273 case "x$cf_temp_scan" in 16274 (x-Werror=*) 16275 16276 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16277 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16278 16279 ;; 16280 (*) 16281 16282 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16283 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16284 16285 ;; 16286 esac 16287 done 16288 CPPFLAGS="$cf_temp_flags" 16289 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 16290 16291echo "${as_me:-configure}:16291: testing ... fixed $CPPFLAGS ..." 1>&5 16292 16293 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16294 16295echo "${as_me:-configure}:16295: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16296 16297 ;; 16298 esac 16299fi 16300 16301if test "$GCC" = yes || test "$GXX" = yes 16302then 16303 case $LDFLAGS in 16304 (*-Werror=*) 16305 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 16306 16307echo "${as_me:-configure}:16307: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 16308 16309 cf_temp_flags= 16310 for cf_temp_scan in $LDFLAGS 16311 do 16312 case "x$cf_temp_scan" in 16313 (x-Werror=*) 16314 16315 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16316 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16317 16318 ;; 16319 (*) 16320 16321 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16322 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16323 16324 ;; 16325 esac 16326 done 16327 LDFLAGS="$cf_temp_flags" 16328 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 16329 16330echo "${as_me:-configure}:16330: testing ... fixed $LDFLAGS ..." 1>&5 16331 16332 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16333 16334echo "${as_me:-configure}:16334: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16335 16336 ;; 16337 esac 16338fi 16339 16340echo "$as_me:16340: checking if you want to turn on gcc warnings" >&5 16341echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 16342 16343# Check whether --enable-warnings or --disable-warnings was given. 16344if test "${enable_warnings+set}" = set; then 16345 enableval="$enable_warnings" 16346 test "$enableval" != yes && enableval=no 16347 if test "$enableval" != "no" ; then 16348 enable_warnings=yes 16349 else 16350 enable_warnings=no 16351 fi 16352else 16353 enableval=no 16354 enable_warnings=no 16355 16356fi; 16357echo "$as_me:16357: result: $enable_warnings" >&5 16358echo "${ECHO_T}$enable_warnings" >&6 16359if test "$enable_warnings" = "yes" 16360then 16361 16362if test "x$have_x" = xyes; then 16363 16364cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 16365cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 16366cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 16367LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 16368for cf_X_CFLAGS in $X_CFLAGS 16369do 16370 case "x$cf_X_CFLAGS" in 16371 x-[IUD]*) 16372 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 16373 ;; 16374 *) 16375 CFLAGS="$CFLAGS $cf_X_CFLAGS" 16376 ;; 16377 esac 16378done 16379 16380cat >"conftest.$ac_ext" <<_ACEOF 16381#line 16381 "configure" 16382#include "confdefs.h" 16383 16384#include <stdlib.h> 16385#include <X11/Intrinsic.h> 16386 16387int 16388main (void) 16389{ 16390String foo = malloc(1); (void)foo 16391 ; 16392 return 0; 16393} 16394_ACEOF 16395rm -f "conftest.$ac_objext" 16396if { (eval echo "$as_me:16396: \"$ac_compile\"") >&5 16397 (eval $ac_compile) 2>&5 16398 ac_status=$? 16399 echo "$as_me:16399: \$? = $ac_status" >&5 16400 (exit "$ac_status"); } && 16401 { ac_try='test -s "conftest.$ac_objext"' 16402 { (eval echo "$as_me:16402: \"$ac_try\"") >&5 16403 (eval $ac_try) 2>&5 16404 ac_status=$? 16405 echo "$as_me:16405: \$? = $ac_status" >&5 16406 (exit "$ac_status"); }; }; then 16407 16408echo "$as_me:16408: checking for X11/Xt const-feature" >&5 16409echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 16410if test "${cf_cv_const_x_string+set}" = set; then 16411 echo $ECHO_N "(cached) $ECHO_C" >&6 16412else 16413 16414 cat >"conftest.$ac_ext" <<_ACEOF 16415#line 16415 "configure" 16416#include "confdefs.h" 16417 16418#define _CONST_X_STRING /* X11R7.8 (perhaps) */ 16419#undef XTSTRINGDEFINES /* X11R5 and later */ 16420#include <stdlib.h> 16421#include <X11/Intrinsic.h> 16422 16423int 16424main (void) 16425{ 16426String foo = malloc(1); *foo = 0 16427 ; 16428 return 0; 16429} 16430_ACEOF 16431rm -f "conftest.$ac_objext" 16432if { (eval echo "$as_me:16432: \"$ac_compile\"") >&5 16433 (eval $ac_compile) 2>&5 16434 ac_status=$? 16435 echo "$as_me:16435: \$? = $ac_status" >&5 16436 (exit "$ac_status"); } && 16437 { ac_try='test -s "conftest.$ac_objext"' 16438 { (eval echo "$as_me:16438: \"$ac_try\"") >&5 16439 (eval $ac_try) 2>&5 16440 ac_status=$? 16441 echo "$as_me:16441: \$? = $ac_status" >&5 16442 (exit "$ac_status"); }; }; then 16443 16444 cf_cv_const_x_string=no 16445 16446else 16447 echo "$as_me: failed program was:" >&5 16448cat "conftest.$ac_ext" >&5 16449 16450 cf_cv_const_x_string=yes 16451 16452fi 16453rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16454 16455fi 16456echo "$as_me:16456: result: $cf_cv_const_x_string" >&5 16457echo "${ECHO_T}$cf_cv_const_x_string" >&6 16458 16459LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 16460CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 16461CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 16462 16463case "$cf_cv_const_x_string" in 16464(no) 16465 16466 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16467 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 16468 16469 ;; 16470(*) 16471 16472 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16473 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 16474 16475 ;; 16476esac 16477 16478else 16479 echo "$as_me: failed program was:" >&5 16480cat "conftest.$ac_ext" >&5 16481fi 16482rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16483 fi 16484cat > "conftest.$ac_ext" <<EOF 16485#line 16485 "${as_me:-configure}" 16486int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 16487EOF 16488if test "$INTEL_COMPILER" = yes 16489then 16490# The "-wdXXX" options suppress warnings: 16491# remark #1419: external declaration in primary source file 16492# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 16493# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 16494# remark #193: zero used for undefined preprocessing identifier 16495# remark #593: variable "curs_sb_left_arrow" was set but never used 16496# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 16497# remark #869: parameter "tw" was never referenced 16498# remark #981: operands are evaluated in unspecified order 16499# warning #279: controlling expression is constant 16500 16501 { echo "$as_me:16501: checking for $CC warning options..." >&5 16502echo "$as_me: checking for $CC warning options..." >&6;} 16503 cf_save_CFLAGS="$CFLAGS" 16504 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 16505 for cf_opt in \ 16506 wd1419 \ 16507 wd1683 \ 16508 wd1684 \ 16509 wd193 \ 16510 wd593 \ 16511 wd279 \ 16512 wd810 \ 16513 wd869 \ 16514 wd981 16515 do 16516 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 16517 if { (eval echo "$as_me:16517: \"$ac_compile\"") >&5 16518 (eval $ac_compile) 2>&5 16519 ac_status=$? 16520 echo "$as_me:16520: \$? = $ac_status" >&5 16521 (exit "$ac_status"); }; then 16522 test -n "$verbose" && echo "$as_me:16522: result: ... -$cf_opt" >&5 16523echo "${ECHO_T}... -$cf_opt" >&6 16524 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 16525 fi 16526 done 16527 CFLAGS="$cf_save_CFLAGS" 16528elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 16529then 16530 { echo "$as_me:16530: checking for $CC warning options..." >&5 16531echo "$as_me: checking for $CC warning options..." >&6;} 16532 cf_save_CFLAGS="$CFLAGS" 16533 cf_warn_CONST="" 16534 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 16535 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 16536 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 16537 for cf_opt in W Wall \ 16538 Wbad-function-cast \ 16539 Wcast-align \ 16540 Wcast-qual \ 16541 Wdeclaration-after-statement \ 16542 Wextra \ 16543 Winline \ 16544 Wmissing-declarations \ 16545 Wmissing-prototypes \ 16546 Wnested-externs \ 16547 Wpointer-arith \ 16548 Wshadow \ 16549 Wstrict-prototypes \ 16550 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum 16551 do 16552 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 16553 if { (eval echo "$as_me:16553: \"$ac_compile\"") >&5 16554 (eval $ac_compile) 2>&5 16555 ac_status=$? 16556 echo "$as_me:16556: \$? = $ac_status" >&5 16557 (exit "$ac_status"); }; then 16558 test -n "$verbose" && echo "$as_me:16558: result: ... -$cf_opt" >&5 16559echo "${ECHO_T}... -$cf_opt" >&6 16560 case "$cf_opt" in 16561 (Winline) 16562 case "$GCC_VERSION" in 16563 ([34].*) 16564 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 16565 16566echo "${as_me:-configure}:16566: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 16567 16568 continue;; 16569 esac 16570 ;; 16571 (Wpointer-arith) 16572 case "$GCC_VERSION" in 16573 ([12].*) 16574 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 16575 16576echo "${as_me:-configure}:16576: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 16577 16578 continue;; 16579 esac 16580 ;; 16581 esac 16582 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 16583 fi 16584 done 16585 CFLAGS="$cf_save_CFLAGS" 16586fi 16587rm -rf ./conftest* 16588 16589fi 16590 16591if test "$GCC" = yes || test "$GXX" = yes 16592then 16593cat > conftest.i <<EOF 16594#ifndef GCC_PRINTF 16595#define GCC_PRINTF 0 16596#endif 16597#ifndef GCC_SCANF 16598#define GCC_SCANF 0 16599#endif 16600#ifndef GCC_NORETURN 16601#define GCC_NORETURN /* nothing */ 16602#endif 16603#ifndef GCC_UNUSED 16604#define GCC_UNUSED /* nothing */ 16605#endif 16606EOF 16607if test "$GCC" = yes 16608then 16609 { echo "$as_me:16609: checking for $CC __attribute__ directives..." >&5 16610echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 16611cat > "conftest.$ac_ext" <<EOF 16612#line 16612 "${as_me:-configure}" 16613#include "confdefs.h" 16614#include "conftest.h" 16615#include "conftest.i" 16616#if GCC_PRINTF 16617#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 16618#else 16619#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 16620#endif 16621#if GCC_SCANF 16622#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 16623#else 16624#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 16625#endif 16626extern void wow(char *,...) GCC_SCANFLIKE(1,2); 16627extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 16628extern void foo(void) GCC_NORETURN; 16629int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 16630EOF 16631 cf_printf_attribute=no 16632 cf_scanf_attribute=no 16633 for cf_attribute in scanf printf unused noreturn 16634 do 16635 16636cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 16637 16638 cf_directive="__attribute__(($cf_attribute))" 16639 echo "checking for $CC $cf_directive" 1>&5 16640 16641 case "$cf_attribute" in 16642 (printf) 16643 cf_printf_attribute=yes 16644 cat >conftest.h <<EOF 16645#define GCC_$cf_ATTRIBUTE 1 16646EOF 16647 ;; 16648 (scanf) 16649 cf_scanf_attribute=yes 16650 cat >conftest.h <<EOF 16651#define GCC_$cf_ATTRIBUTE 1 16652EOF 16653 ;; 16654 (*) 16655 cat >conftest.h <<EOF 16656#define GCC_$cf_ATTRIBUTE $cf_directive 16657EOF 16658 ;; 16659 esac 16660 16661 if { (eval echo "$as_me:16661: \"$ac_compile\"") >&5 16662 (eval $ac_compile) 2>&5 16663 ac_status=$? 16664 echo "$as_me:16664: \$? = $ac_status" >&5 16665 (exit "$ac_status"); }; then 16666 test -n "$verbose" && echo "$as_me:16666: result: ... $cf_attribute" >&5 16667echo "${ECHO_T}... $cf_attribute" >&6 16668 cat conftest.h >>confdefs.h 16669 case "$cf_attribute" in 16670 (noreturn) 16671 16672cat >>confdefs.h <<EOF 16673#define GCC_NORETURN $cf_directive 16674EOF 16675 16676 ;; 16677 (printf) 16678 cf_value='/* nothing */' 16679 if test "$cf_printf_attribute" != no ; then 16680 cf_value='__attribute__((format(printf,fmt,var)))' 16681 16682cat >>confdefs.h <<\EOF 16683#define GCC_PRINTF 1 16684EOF 16685 16686 fi 16687 16688cat >>confdefs.h <<EOF 16689#define GCC_PRINTFLIKE(fmt,var) $cf_value 16690EOF 16691 16692 ;; 16693 (scanf) 16694 cf_value='/* nothing */' 16695 if test "$cf_scanf_attribute" != no ; then 16696 cf_value='__attribute__((format(scanf,fmt,var)))' 16697 16698cat >>confdefs.h <<\EOF 16699#define GCC_SCANF 1 16700EOF 16701 16702 fi 16703 16704cat >>confdefs.h <<EOF 16705#define GCC_SCANFLIKE(fmt,var) $cf_value 16706EOF 16707 16708 ;; 16709 (unused) 16710 16711cat >>confdefs.h <<EOF 16712#define GCC_UNUSED $cf_directive 16713EOF 16714 16715 ;; 16716 esac 16717 fi 16718 done 16719else 16720 ${FGREP-fgrep} define conftest.i >>confdefs.h 16721fi 16722rm -rf ./conftest* 16723fi 16724 16725fi 16726 16727if test "x$enable_warnings" = "xyes"; then 16728 16729 ADAFLAGS="$ADAFLAGS -gnatg" 16730 16731 if test "x$cf_with_cxx" = xyes ; then 16732 16733INTEL_CPLUSPLUS=no 16734 16735if test "$GCC" = yes ; then 16736 case "$host_os" in 16737 (linux*|gnu*) 16738 echo "$as_me:16738: checking if this is really Intel C++ compiler" >&5 16739echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6 16740 cf_save_CFLAGS="$CXXFLAGS" 16741 CXXFLAGS="$CXXFLAGS -no-gcc" 16742 cat >"conftest.$ac_ext" <<_ACEOF 16743#line 16743 "configure" 16744#include "confdefs.h" 16745 16746int 16747main (void) 16748{ 16749 16750#ifdef __INTEL_COMPILER 16751#else 16752make an error 16753#endif 16754 16755 ; 16756 return 0; 16757} 16758_ACEOF 16759rm -f "conftest.$ac_objext" 16760if { (eval echo "$as_me:16760: \"$ac_compile\"") >&5 16761 (eval $ac_compile) 2>&5 16762 ac_status=$? 16763 echo "$as_me:16763: \$? = $ac_status" >&5 16764 (exit "$ac_status"); } && 16765 { ac_try='test -s "conftest.$ac_objext"' 16766 { (eval echo "$as_me:16766: \"$ac_try\"") >&5 16767 (eval $ac_try) 2>&5 16768 ac_status=$? 16769 echo "$as_me:16769: \$? = $ac_status" >&5 16770 (exit "$ac_status"); }; }; then 16771 INTEL_CPLUSPLUS=yes 16772cf_save_CFLAGS="$cf_save_CFLAGS -we147" 16773 16774else 16775 echo "$as_me: failed program was:" >&5 16776cat "conftest.$ac_ext" >&5 16777fi 16778rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16779 CXXFLAGS="$cf_save_CFLAGS" 16780 echo "$as_me:16780: result: $INTEL_CPLUSPLUS" >&5 16781echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6 16782 ;; 16783 esac 16784fi 16785 16786CLANG_CPLUSPLUS=no 16787 16788if test "$GCC" = yes ; then 16789 echo "$as_me:16789: checking if this is really Clang C++ compiler" >&5 16790echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6 16791 cf_save_CFLAGS="$CXXFLAGS" 16792 cat >"conftest.$ac_ext" <<_ACEOF 16793#line 16793 "configure" 16794#include "confdefs.h" 16795 16796int 16797main (void) 16798{ 16799 16800#ifdef __clang__ 16801#else 16802make an error 16803#endif 16804 16805 ; 16806 return 0; 16807} 16808_ACEOF 16809rm -f "conftest.$ac_objext" 16810if { (eval echo "$as_me:16810: \"$ac_compile\"") >&5 16811 (eval $ac_compile) 2>&5 16812 ac_status=$? 16813 echo "$as_me:16813: \$? = $ac_status" >&5 16814 (exit "$ac_status"); } && 16815 { ac_try='test -s "conftest.$ac_objext"' 16816 { (eval echo "$as_me:16816: \"$ac_try\"") >&5 16817 (eval $ac_try) 2>&5 16818 ac_status=$? 16819 echo "$as_me:16819: \$? = $ac_status" >&5 16820 (exit "$ac_status"); }; }; then 16821 CLANG_CPLUSPLUS=yes 16822 16823else 16824 echo "$as_me: failed program was:" >&5 16825cat "conftest.$ac_ext" >&5 16826fi 16827rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16828 CXXFLAGS="$cf_save_CFLAGS" 16829 echo "$as_me:16829: result: $CLANG_CPLUSPLUS" >&5 16830echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6 16831fi 16832 16833CLANG_VERSION=none 16834 16835if test "x$CLANG_CPLUSPLUS" = "xyes" ; then 16836 case "$CC" in 16837 (c[1-9][0-9]|*/c[1-9][0-9]) 16838 { echo "$as_me:16838: WARNING: replacing broken compiler alias $CC" >&5 16839echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 16840 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 16841 CC=clang 16842 ;; 16843 esac 16844 16845 echo "$as_me:16845: checking version of $CC" >&5 16846echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 16847 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 16848 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 16849 echo "$as_me:16849: result: $CLANG_VERSION" >&5 16850echo "${ECHO_T}$CLANG_VERSION" >&6 16851 16852 for cf_clang_opt in \ 16853 -Qunused-arguments \ 16854 -Wno-error=implicit-function-declaration 16855 do 16856 echo "$as_me:16856: checking if option $cf_clang_opt works" >&5 16857echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 16858 cf_save_CFLAGS="$CFLAGS" 16859 CFLAGS="$CFLAGS $cf_clang_opt" 16860 cat >"conftest.$ac_ext" <<_ACEOF 16861#line 16861 "configure" 16862#include "confdefs.h" 16863 16864 #include <stdio.h> 16865int 16866main (void) 16867{ 16868 16869 printf("hello!\\n"); 16870 ; 16871 return 0; 16872} 16873_ACEOF 16874rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16875if { (eval echo "$as_me:16875: \"$ac_link\"") >&5 16876 (eval $ac_link) 2>&5 16877 ac_status=$? 16878 echo "$as_me:16878: \$? = $ac_status" >&5 16879 (exit "$ac_status"); } && 16880 { ac_try='test -s "conftest$ac_exeext"' 16881 { (eval echo "$as_me:16881: \"$ac_try\"") >&5 16882 (eval $ac_try) 2>&5 16883 ac_status=$? 16884 echo "$as_me:16884: \$? = $ac_status" >&5 16885 (exit "$ac_status"); }; }; then 16886 16887 cf_clang_optok=yes 16888else 16889 echo "$as_me: failed program was:" >&5 16890cat "conftest.$ac_ext" >&5 16891 16892 cf_clang_optok=no 16893fi 16894rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16895 echo "$as_me:16895: result: $cf_clang_optok" >&5 16896echo "${ECHO_T}$cf_clang_optok" >&6 16897 CFLAGS="$cf_save_CFLAGS" 16898 if test "$cf_clang_optok" = yes; then 16899 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 16900 16901echo "${as_me:-configure}:16901: testing adding option $cf_clang_opt ..." 1>&5 16902 16903 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 16904 CFLAGS="${CFLAGS}$cf_clang_opt" 16905 16906 fi 16907 done 16908fi 16909 16910ac_ext=cc 16911ac_cpp='$CXXCPP $CPPFLAGS' 16912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 16913ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 16914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16915ac_main_return="return" 16916 16917cat > conftest.$ac_ext <<EOF 16918#line 16918 "configure" 16919int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 16920EOF 16921 16922if test "$INTEL_CPLUSPLUS" = yes 16923then 16924# The "-wdXXX" options suppress warnings: 16925# remark #1419: external declaration in primary source file 16926# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 16927# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 16928# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 16929# remark #193: zero used for undefined preprocessing identifier 16930# remark #593: variable "curs_sb_left_arrow" was set but never used 16931# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 16932# remark #869: parameter "tw" was never referenced 16933# remark #981: operands are evaluated in unspecified order 16934# warning #269: invalid format string conversion 16935 16936 { echo "$as_me:16936: checking for $CC warning options..." >&5 16937echo "$as_me: checking for $CC warning options..." >&6;} 16938 cf_save_CXXFLAGS="$CXXFLAGS" 16939 EXTRA_CXXFLAGS="-Wall" 16940 for cf_opt in \ 16941 wd1419 \ 16942 wd1682 \ 16943 wd1683 \ 16944 wd1684 \ 16945 wd193 \ 16946 wd279 \ 16947 wd593 \ 16948 wd810 \ 16949 wd869 \ 16950 wd981 16951 do 16952 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt" 16953 if { (eval echo "$as_me:16953: \"$ac_compile\"") >&5 16954 (eval $ac_compile) 2>&5 16955 ac_status=$? 16956 echo "$as_me:16956: \$? = $ac_status" >&5 16957 (exit "$ac_status"); }; then 16958 test -n "$verbose" && echo "$as_me:16958: result: ... -$cf_opt" >&5 16959echo "${ECHO_T}... -$cf_opt" >&6 16960 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 16961 fi 16962 done 16963 CXXFLAGS="$cf_save_CXXFLAGS" 16964 16965elif test "$GXX" = yes 16966then 16967 { echo "$as_me:16967: checking for $CXX warning options..." >&5 16968echo "$as_me: checking for $CXX warning options..." >&6;} 16969 cf_save_CXXFLAGS="$CXXFLAGS" 16970 EXTRA_CXXFLAGS="-W -Wall" 16971 cf_gxx_extra_warnings="" 16972 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings" 16973 case "$GXX_VERSION" in 16974 ([1-2].*) 16975 ;; 16976 (*) 16977 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++" 16978 ;; 16979 esac 16980 for cf_opt in \ 16981 Wabi \ 16982 fabi-version=0 \ 16983 Wextra \ 16984 Wignored-qualifiers \ 16985 Wlogical-op \ 16986 Woverloaded-virtual \ 16987 Wsign-promo \ 16988 Wsynth \ 16989 Wold-style-cast \ 16990 Wcast-align \ 16991 Wcast-qual \ 16992 Wpointer-arith \ 16993 Wshadow \ 16994 Wundef $cf_gxx_extra_warnings Wno-unused 16995 do 16996 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt" 16997 if { (eval echo "$as_me:16997: \"$ac_compile\"") >&5 16998 (eval $ac_compile) 2>&5 16999 ac_status=$? 17000 echo "$as_me:17000: \$? = $ac_status" >&5 17001 (exit "$ac_status"); }; then 17002 test -n "$verbose" && echo "$as_me:17002: result: ... -$cf_opt" >&5 17003echo "${ECHO_T}... -$cf_opt" >&6 17004 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 17005 else 17006 test -n "$verbose" && echo "$as_me:17006: result: ... no -$cf_opt" >&5 17007echo "${ECHO_T}... no -$cf_opt" >&6 17008 fi 17009 done 17010 CXXFLAGS="$cf_save_CXXFLAGS" 17011fi 17012 17013rm -rf ./conftest* 17014ac_ext=c 17015ac_cpp='$CPP $CPPFLAGS' 17016ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 17017ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 17018ac_compiler_gnu=$ac_cv_c_compiler_gnu 17019ac_main_return="return" 17020 17021 fi 17022fi 17023 17024echo "$as_me:17024: checking if you want to work around bogus compiler/loader warnings" >&5 17025echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6 17026 17027# Check whether --enable-string-hacks or --disable-string-hacks was given. 17028if test "${enable_string_hacks+set}" = set; then 17029 enableval="$enable_string_hacks" 17030 enable_string_hacks=$enableval 17031else 17032 enable_string_hacks=no 17033fi; 17034echo "$as_me:17034: result: $enable_string_hacks" >&5 17035echo "${ECHO_T}$enable_string_hacks" >&6 17036 17037if test "x$enable_string_hacks" = "xyes"; then 17038 17039cat >>confdefs.h <<\EOF 17040#define USE_STRING_HACKS 1 17041EOF 17042 17043 { echo "$as_me:17043: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5 17044echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;} 17045 echo "$as_me:17045: checking for strlcat" >&5 17046echo $ECHO_N "checking for strlcat... $ECHO_C" >&6 17047if test "${ac_cv_func_strlcat+set}" = set; then 17048 echo $ECHO_N "(cached) $ECHO_C" >&6 17049else 17050 cat >"conftest.$ac_ext" <<_ACEOF 17051#line 17051 "configure" 17052#include "confdefs.h" 17053#define strlcat autoconf_temporary 17054#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17055#undef strlcat 17056 17057#ifdef __cplusplus 17058extern "C" 17059#endif 17060 17061/* We use char because int might match the return type of a gcc2 17062 builtin and then its argument prototype would still apply. */ 17063char strlcat (void); 17064 17065int 17066main (void) 17067{ 17068 17069/* The GNU C library defines stubs for functions which it implements 17070 to always fail with ENOSYS. Some functions are actually named 17071 something starting with __ and the normal name is an alias. */ 17072#if defined (__stub_strlcat) || defined (__stub___strlcat) 17073#error found stub for strlcat 17074#endif 17075 17076 return strlcat (); 17077 ; 17078 return 0; 17079} 17080_ACEOF 17081rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17082if { (eval echo "$as_me:17082: \"$ac_link\"") >&5 17083 (eval $ac_link) 2>&5 17084 ac_status=$? 17085 echo "$as_me:17085: \$? = $ac_status" >&5 17086 (exit "$ac_status"); } && 17087 { ac_try='test -s "conftest$ac_exeext"' 17088 { (eval echo "$as_me:17088: \"$ac_try\"") >&5 17089 (eval $ac_try) 2>&5 17090 ac_status=$? 17091 echo "$as_me:17091: \$? = $ac_status" >&5 17092 (exit "$ac_status"); }; }; then 17093 ac_cv_func_strlcat=yes 17094else 17095 echo "$as_me: failed program was:" >&5 17096cat "conftest.$ac_ext" >&5 17097ac_cv_func_strlcat=no 17098fi 17099rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17100fi 17101echo "$as_me:17101: result: $ac_cv_func_strlcat" >&5 17102echo "${ECHO_T}$ac_cv_func_strlcat" >&6 17103if test "$ac_cv_func_strlcat" = yes; then 17104 17105cat >>confdefs.h <<\EOF 17106#define HAVE_STRLCAT 1 17107EOF 17108 17109else 17110 17111 echo "$as_me:17111: checking for strlcat in -lbsd" >&5 17112echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6 17113if test "${ac_cv_lib_bsd_strlcat+set}" = set; then 17114 echo $ECHO_N "(cached) $ECHO_C" >&6 17115else 17116 ac_check_lib_save_LIBS=$LIBS 17117LIBS="-lbsd $LIBS" 17118cat >"conftest.$ac_ext" <<_ACEOF 17119#line 17119 "configure" 17120#include "confdefs.h" 17121 17122/* Override any gcc2 internal prototype to avoid an error. */ 17123#ifdef __cplusplus 17124extern "C" 17125#endif 17126/* We use char because int might match the return type of a gcc2 17127 builtin and then its argument prototype would still apply. */ 17128char strlcat (); 17129int 17130main (void) 17131{ 17132strlcat (); 17133 ; 17134 return 0; 17135} 17136_ACEOF 17137rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17138if { (eval echo "$as_me:17138: \"$ac_link\"") >&5 17139 (eval $ac_link) 2>&5 17140 ac_status=$? 17141 echo "$as_me:17141: \$? = $ac_status" >&5 17142 (exit "$ac_status"); } && 17143 { ac_try='test -s "conftest$ac_exeext"' 17144 { (eval echo "$as_me:17144: \"$ac_try\"") >&5 17145 (eval $ac_try) 2>&5 17146 ac_status=$? 17147 echo "$as_me:17147: \$? = $ac_status" >&5 17148 (exit "$ac_status"); }; }; then 17149 ac_cv_lib_bsd_strlcat=yes 17150else 17151 echo "$as_me: failed program was:" >&5 17152cat "conftest.$ac_ext" >&5 17153ac_cv_lib_bsd_strlcat=no 17154fi 17155rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17156LIBS=$ac_check_lib_save_LIBS 17157fi 17158echo "$as_me:17158: result: $ac_cv_lib_bsd_strlcat" >&5 17159echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6 17160if test "$ac_cv_lib_bsd_strlcat" = yes; then 17161 17162cf_add_libs="$LIBS" 17163# reverse order 17164cf_add_0lib= 17165for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 17166# filter duplicates 17167for cf_add_1lib in $cf_add_0lib; do 17168 for cf_add_2lib in $cf_add_libs; do 17169 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 17170 cf_add_1lib= 17171 break 17172 fi 17173 done 17174 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 17175done 17176LIBS="$cf_add_libs" 17177 17178for ac_header in bsd/string.h 17179do 17180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17181echo "$as_me:17181: checking for $ac_header" >&5 17182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17183if eval "test \"\${$as_ac_Header+set}\" = set"; then 17184 echo $ECHO_N "(cached) $ECHO_C" >&6 17185else 17186 cat >"conftest.$ac_ext" <<_ACEOF 17187#line 17187 "configure" 17188#include "confdefs.h" 17189#include <$ac_header> 17190_ACEOF 17191if { (eval echo "$as_me:17191: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17192 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17193 ac_status=$? 17194 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17195 rm -f conftest.er1 17196 cat conftest.err >&5 17197 echo "$as_me:17197: \$? = $ac_status" >&5 17198 (exit "$ac_status"); } >/dev/null; then 17199 if test -s conftest.err; then 17200 ac_cpp_err=$ac_c_preproc_warn_flag 17201 else 17202 ac_cpp_err= 17203 fi 17204else 17205 ac_cpp_err=yes 17206fi 17207if test -z "$ac_cpp_err"; then 17208 eval "$as_ac_Header=yes" 17209else 17210 echo "$as_me: failed program was:" >&5 17211 cat "conftest.$ac_ext" >&5 17212 eval "$as_ac_Header=no" 17213fi 17214rm -f conftest.err "conftest.$ac_ext" 17215fi 17216echo "$as_me:17216: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 17217echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 17218if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 17219 cat >>confdefs.h <<EOF 17220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17221EOF 17222 17223fi 17224done 17225 17226cat >>confdefs.h <<\EOF 17227#define HAVE_STRLCAT 1 17228EOF 17229 17230fi 17231 17232fi 17233 17234for ac_func in strlcpy snprintf 17235do 17236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17237echo "$as_me:17237: checking for $ac_func" >&5 17238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17239if eval "test \"\${$as_ac_var+set}\" = set"; then 17240 echo $ECHO_N "(cached) $ECHO_C" >&6 17241else 17242 cat >"conftest.$ac_ext" <<_ACEOF 17243#line 17243 "configure" 17244#include "confdefs.h" 17245#define $ac_func autoconf_temporary 17246#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17247#undef $ac_func 17248 17249#ifdef __cplusplus 17250extern "C" 17251#endif 17252 17253/* We use char because int might match the return type of a gcc2 17254 builtin and then its argument prototype would still apply. */ 17255char $ac_func (void); 17256 17257int 17258main (void) 17259{ 17260 17261/* The GNU C library defines stubs for functions which it implements 17262 to always fail with ENOSYS. Some functions are actually named 17263 something starting with __ and the normal name is an alias. */ 17264#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17265#error found stub for $ac_func 17266#endif 17267 17268 return $ac_func (); 17269 ; 17270 return 0; 17271} 17272_ACEOF 17273rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17274if { (eval echo "$as_me:17274: \"$ac_link\"") >&5 17275 (eval $ac_link) 2>&5 17276 ac_status=$? 17277 echo "$as_me:17277: \$? = $ac_status" >&5 17278 (exit "$ac_status"); } && 17279 { ac_try='test -s "conftest$ac_exeext"' 17280 { (eval echo "$as_me:17280: \"$ac_try\"") >&5 17281 (eval $ac_try) 2>&5 17282 ac_status=$? 17283 echo "$as_me:17283: \$? = $ac_status" >&5 17284 (exit "$ac_status"); }; }; then 17285 eval "$as_ac_var=yes" 17286else 17287 echo "$as_me: failed program was:" >&5 17288cat "conftest.$ac_ext" >&5 17289eval "$as_ac_var=no" 17290fi 17291rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17292fi 17293echo "$as_me:17293: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17294echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17295if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17296 cat >>confdefs.h <<EOF 17297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17298EOF 17299 17300fi 17301done 17302 17303fi 17304 17305### use option --enable-assertions to turn on generation of assertion code 17306echo "$as_me:17306: checking if you want to enable runtime assertions" >&5 17307echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6 17308 17309# Check whether --enable-assertions or --disable-assertions was given. 17310if test "${enable_assertions+set}" = set; then 17311 enableval="$enable_assertions" 17312 with_assertions=$enableval 17313else 17314 with_assertions=no 17315fi; 17316echo "$as_me:17316: result: $with_assertions" >&5 17317echo "${ECHO_T}$with_assertions" >&6 17318if test -n "$GCC" 17319then 17320 if test "$with_assertions" = no 17321 then 17322 CPPFLAGS="$CPPFLAGS -DNDEBUG" 17323 else 17324 17325 ADAFLAGS="$ADAFLAGS -gnata" 17326 17327 fi 17328fi 17329 17330### use option --disable-leaks to suppress "permanent" leaks, for testing 17331 17332echo "$as_me:17332: checking if you want to use dmalloc for testing" >&5 17333echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 17334 17335# Check whether --with-dmalloc or --without-dmalloc was given. 17336if test "${with_dmalloc+set}" = set; then 17337 withval="$with_dmalloc" 17338 17339cat >>confdefs.h <<EOF 17340#define USE_DMALLOC 1 17341EOF 17342 17343 : "${with_cflags:=-g}" 17344 : "${enable_leaks:=no}" 17345 with_dmalloc=yes 17346else 17347 with_dmalloc= 17348fi; 17349echo "$as_me:17349: result: ${with_dmalloc:-no}" >&5 17350echo "${ECHO_T}${with_dmalloc:-no}" >&6 17351 17352case ".$with_cflags" in 17353(.*-g*) 17354 case .$CFLAGS in 17355 (.*-g*) 17356 ;; 17357 (*) 17358 17359cf_fix_cppflags=no 17360cf_new_cflags= 17361cf_new_cppflags= 17362cf_new_extra_cppflags= 17363 17364for cf_add_cflags in -g 17365do 17366case "$cf_fix_cppflags" in 17367(no) 17368 case "$cf_add_cflags" in 17369 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17370 case "$cf_add_cflags" in 17371 (-D*) 17372 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17373 17374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17375 && test -z "${cf_tst_cflags}" \ 17376 && cf_fix_cppflags=yes 17377 17378 if test "$cf_fix_cppflags" = yes ; then 17379 17380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17382 17383 continue 17384 elif test "${cf_tst_cflags}" = "\"'" ; then 17385 17386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17388 17389 continue 17390 fi 17391 ;; 17392 esac 17393 case "$CPPFLAGS" in 17394 (*$cf_add_cflags) 17395 ;; 17396 (*) 17397 case "$cf_add_cflags" in 17398 (-D*) 17399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17400 17401CPPFLAGS=`echo "$CPPFLAGS" | \ 17402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17404 17405 ;; 17406 esac 17407 17408 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17409 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17410 17411 ;; 17412 esac 17413 ;; 17414 (*) 17415 17416 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17417 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17418 17419 ;; 17420 esac 17421 ;; 17422(yes) 17423 17424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17426 17427 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17428 17429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17430 && test -z "${cf_tst_cflags}" \ 17431 && cf_fix_cppflags=no 17432 ;; 17433esac 17434done 17435 17436if test -n "$cf_new_cflags" ; then 17437 17438 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17439 CFLAGS="${CFLAGS}$cf_new_cflags" 17440 17441fi 17442 17443if test -n "$cf_new_cppflags" ; then 17444 17445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17446 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17447 17448fi 17449 17450if test -n "$cf_new_extra_cppflags" ; then 17451 17452 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17453 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17454 17455fi 17456 17457 ;; 17458 esac 17459 ;; 17460esac 17461 17462if test "$with_dmalloc" = yes ; then 17463 echo "$as_me:17463: checking for dmalloc.h" >&5 17464echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 17465if test "${ac_cv_header_dmalloc_h+set}" = set; then 17466 echo $ECHO_N "(cached) $ECHO_C" >&6 17467else 17468 cat >"conftest.$ac_ext" <<_ACEOF 17469#line 17469 "configure" 17470#include "confdefs.h" 17471#include <dmalloc.h> 17472_ACEOF 17473if { (eval echo "$as_me:17473: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17474 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17475 ac_status=$? 17476 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17477 rm -f conftest.er1 17478 cat conftest.err >&5 17479 echo "$as_me:17479: \$? = $ac_status" >&5 17480 (exit "$ac_status"); } >/dev/null; then 17481 if test -s conftest.err; then 17482 ac_cpp_err=$ac_c_preproc_warn_flag 17483 else 17484 ac_cpp_err= 17485 fi 17486else 17487 ac_cpp_err=yes 17488fi 17489if test -z "$ac_cpp_err"; then 17490 ac_cv_header_dmalloc_h=yes 17491else 17492 echo "$as_me: failed program was:" >&5 17493 cat "conftest.$ac_ext" >&5 17494 ac_cv_header_dmalloc_h=no 17495fi 17496rm -f conftest.err "conftest.$ac_ext" 17497fi 17498echo "$as_me:17498: result: $ac_cv_header_dmalloc_h" >&5 17499echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 17500if test "$ac_cv_header_dmalloc_h" = yes; then 17501 17502echo "$as_me:17502: checking for dmalloc_debug in -ldmalloc" >&5 17503echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 17504if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 17505 echo $ECHO_N "(cached) $ECHO_C" >&6 17506else 17507 ac_check_lib_save_LIBS=$LIBS 17508LIBS="-ldmalloc $LIBS" 17509cat >"conftest.$ac_ext" <<_ACEOF 17510#line 17510 "configure" 17511#include "confdefs.h" 17512 17513/* Override any gcc2 internal prototype to avoid an error. */ 17514#ifdef __cplusplus 17515extern "C" 17516#endif 17517/* We use char because int might match the return type of a gcc2 17518 builtin and then its argument prototype would still apply. */ 17519char dmalloc_debug (); 17520int 17521main (void) 17522{ 17523dmalloc_debug (); 17524 ; 17525 return 0; 17526} 17527_ACEOF 17528rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17529if { (eval echo "$as_me:17529: \"$ac_link\"") >&5 17530 (eval $ac_link) 2>&5 17531 ac_status=$? 17532 echo "$as_me:17532: \$? = $ac_status" >&5 17533 (exit "$ac_status"); } && 17534 { ac_try='test -s "conftest$ac_exeext"' 17535 { (eval echo "$as_me:17535: \"$ac_try\"") >&5 17536 (eval $ac_try) 2>&5 17537 ac_status=$? 17538 echo "$as_me:17538: \$? = $ac_status" >&5 17539 (exit "$ac_status"); }; }; then 17540 ac_cv_lib_dmalloc_dmalloc_debug=yes 17541else 17542 echo "$as_me: failed program was:" >&5 17543cat "conftest.$ac_ext" >&5 17544ac_cv_lib_dmalloc_dmalloc_debug=no 17545fi 17546rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17547LIBS=$ac_check_lib_save_LIBS 17548fi 17549echo "$as_me:17549: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 17550echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 17551if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 17552 cat >>confdefs.h <<EOF 17553#define HAVE_LIBDMALLOC 1 17554EOF 17555 17556 LIBS="-ldmalloc $LIBS" 17557 17558fi 17559 17560fi 17561 17562fi 17563 17564echo "$as_me:17564: checking if you want to use dbmalloc for testing" >&5 17565echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 17566 17567# Check whether --with-dbmalloc or --without-dbmalloc was given. 17568if test "${with_dbmalloc+set}" = set; then 17569 withval="$with_dbmalloc" 17570 17571cat >>confdefs.h <<EOF 17572#define USE_DBMALLOC 1 17573EOF 17574 17575 : "${with_cflags:=-g}" 17576 : "${enable_leaks:=no}" 17577 with_dbmalloc=yes 17578else 17579 with_dbmalloc= 17580fi; 17581echo "$as_me:17581: result: ${with_dbmalloc:-no}" >&5 17582echo "${ECHO_T}${with_dbmalloc:-no}" >&6 17583 17584case ".$with_cflags" in 17585(.*-g*) 17586 case .$CFLAGS in 17587 (.*-g*) 17588 ;; 17589 (*) 17590 17591cf_fix_cppflags=no 17592cf_new_cflags= 17593cf_new_cppflags= 17594cf_new_extra_cppflags= 17595 17596for cf_add_cflags in -g 17597do 17598case "$cf_fix_cppflags" in 17599(no) 17600 case "$cf_add_cflags" in 17601 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17602 case "$cf_add_cflags" in 17603 (-D*) 17604 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17605 17606 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17607 && test -z "${cf_tst_cflags}" \ 17608 && cf_fix_cppflags=yes 17609 17610 if test "$cf_fix_cppflags" = yes ; then 17611 17612 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17613 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17614 17615 continue 17616 elif test "${cf_tst_cflags}" = "\"'" ; then 17617 17618 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17619 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17620 17621 continue 17622 fi 17623 ;; 17624 esac 17625 case "$CPPFLAGS" in 17626 (*$cf_add_cflags) 17627 ;; 17628 (*) 17629 case "$cf_add_cflags" in 17630 (-D*) 17631 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17632 17633CPPFLAGS=`echo "$CPPFLAGS" | \ 17634 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17635 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17636 17637 ;; 17638 esac 17639 17640 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17641 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17642 17643 ;; 17644 esac 17645 ;; 17646 (*) 17647 17648 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17649 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17650 17651 ;; 17652 esac 17653 ;; 17654(yes) 17655 17656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17658 17659 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17660 17661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17662 && test -z "${cf_tst_cflags}" \ 17663 && cf_fix_cppflags=no 17664 ;; 17665esac 17666done 17667 17668if test -n "$cf_new_cflags" ; then 17669 17670 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17671 CFLAGS="${CFLAGS}$cf_new_cflags" 17672 17673fi 17674 17675if test -n "$cf_new_cppflags" ; then 17676 17677 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17678 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17679 17680fi 17681 17682if test -n "$cf_new_extra_cppflags" ; then 17683 17684 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17685 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17686 17687fi 17688 17689 ;; 17690 esac 17691 ;; 17692esac 17693 17694if test "$with_dbmalloc" = yes ; then 17695 echo "$as_me:17695: checking for dbmalloc.h" >&5 17696echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 17697if test "${ac_cv_header_dbmalloc_h+set}" = set; then 17698 echo $ECHO_N "(cached) $ECHO_C" >&6 17699else 17700 cat >"conftest.$ac_ext" <<_ACEOF 17701#line 17701 "configure" 17702#include "confdefs.h" 17703#include <dbmalloc.h> 17704_ACEOF 17705if { (eval echo "$as_me:17705: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17706 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17707 ac_status=$? 17708 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17709 rm -f conftest.er1 17710 cat conftest.err >&5 17711 echo "$as_me:17711: \$? = $ac_status" >&5 17712 (exit "$ac_status"); } >/dev/null; then 17713 if test -s conftest.err; then 17714 ac_cpp_err=$ac_c_preproc_warn_flag 17715 else 17716 ac_cpp_err= 17717 fi 17718else 17719 ac_cpp_err=yes 17720fi 17721if test -z "$ac_cpp_err"; then 17722 ac_cv_header_dbmalloc_h=yes 17723else 17724 echo "$as_me: failed program was:" >&5 17725 cat "conftest.$ac_ext" >&5 17726 ac_cv_header_dbmalloc_h=no 17727fi 17728rm -f conftest.err "conftest.$ac_ext" 17729fi 17730echo "$as_me:17730: result: $ac_cv_header_dbmalloc_h" >&5 17731echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 17732if test "$ac_cv_header_dbmalloc_h" = yes; then 17733 17734echo "$as_me:17734: checking for debug_malloc in -ldbmalloc" >&5 17735echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 17736if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 17737 echo $ECHO_N "(cached) $ECHO_C" >&6 17738else 17739 ac_check_lib_save_LIBS=$LIBS 17740LIBS="-ldbmalloc $LIBS" 17741cat >"conftest.$ac_ext" <<_ACEOF 17742#line 17742 "configure" 17743#include "confdefs.h" 17744 17745/* Override any gcc2 internal prototype to avoid an error. */ 17746#ifdef __cplusplus 17747extern "C" 17748#endif 17749/* We use char because int might match the return type of a gcc2 17750 builtin and then its argument prototype would still apply. */ 17751char debug_malloc (); 17752int 17753main (void) 17754{ 17755debug_malloc (); 17756 ; 17757 return 0; 17758} 17759_ACEOF 17760rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17761if { (eval echo "$as_me:17761: \"$ac_link\"") >&5 17762 (eval $ac_link) 2>&5 17763 ac_status=$? 17764 echo "$as_me:17764: \$? = $ac_status" >&5 17765 (exit "$ac_status"); } && 17766 { ac_try='test -s "conftest$ac_exeext"' 17767 { (eval echo "$as_me:17767: \"$ac_try\"") >&5 17768 (eval $ac_try) 2>&5 17769 ac_status=$? 17770 echo "$as_me:17770: \$? = $ac_status" >&5 17771 (exit "$ac_status"); }; }; then 17772 ac_cv_lib_dbmalloc_debug_malloc=yes 17773else 17774 echo "$as_me: failed program was:" >&5 17775cat "conftest.$ac_ext" >&5 17776ac_cv_lib_dbmalloc_debug_malloc=no 17777fi 17778rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17779LIBS=$ac_check_lib_save_LIBS 17780fi 17781echo "$as_me:17781: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 17782echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 17783if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 17784 cat >>confdefs.h <<EOF 17785#define HAVE_LIBDBMALLOC 1 17786EOF 17787 17788 LIBS="-ldbmalloc $LIBS" 17789 17790fi 17791 17792fi 17793 17794fi 17795 17796echo "$as_me:17796: checking if you want to use valgrind for testing" >&5 17797echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 17798 17799# Check whether --with-valgrind or --without-valgrind was given. 17800if test "${with_valgrind+set}" = set; then 17801 withval="$with_valgrind" 17802 17803cat >>confdefs.h <<EOF 17804#define USE_VALGRIND 1 17805EOF 17806 17807 : "${with_cflags:=-g}" 17808 : "${enable_leaks:=no}" 17809 with_valgrind=yes 17810else 17811 with_valgrind= 17812fi; 17813echo "$as_me:17813: result: ${with_valgrind:-no}" >&5 17814echo "${ECHO_T}${with_valgrind:-no}" >&6 17815 17816case ".$with_cflags" in 17817(.*-g*) 17818 case .$CFLAGS in 17819 (.*-g*) 17820 ;; 17821 (*) 17822 17823cf_fix_cppflags=no 17824cf_new_cflags= 17825cf_new_cppflags= 17826cf_new_extra_cppflags= 17827 17828for cf_add_cflags in -g 17829do 17830case "$cf_fix_cppflags" in 17831(no) 17832 case "$cf_add_cflags" in 17833 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17834 case "$cf_add_cflags" in 17835 (-D*) 17836 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17837 17838 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17839 && test -z "${cf_tst_cflags}" \ 17840 && cf_fix_cppflags=yes 17841 17842 if test "$cf_fix_cppflags" = yes ; then 17843 17844 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17845 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17846 17847 continue 17848 elif test "${cf_tst_cflags}" = "\"'" ; then 17849 17850 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17851 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17852 17853 continue 17854 fi 17855 ;; 17856 esac 17857 case "$CPPFLAGS" in 17858 (*$cf_add_cflags) 17859 ;; 17860 (*) 17861 case "$cf_add_cflags" in 17862 (-D*) 17863 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17864 17865CPPFLAGS=`echo "$CPPFLAGS" | \ 17866 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17867 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17868 17869 ;; 17870 esac 17871 17872 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17873 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17874 17875 ;; 17876 esac 17877 ;; 17878 (*) 17879 17880 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17881 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17882 17883 ;; 17884 esac 17885 ;; 17886(yes) 17887 17888 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17889 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17890 17891 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17892 17893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17894 && test -z "${cf_tst_cflags}" \ 17895 && cf_fix_cppflags=no 17896 ;; 17897esac 17898done 17899 17900if test -n "$cf_new_cflags" ; then 17901 17902 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17903 CFLAGS="${CFLAGS}$cf_new_cflags" 17904 17905fi 17906 17907if test -n "$cf_new_cppflags" ; then 17908 17909 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17910 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17911 17912fi 17913 17914if test -n "$cf_new_extra_cppflags" ; then 17915 17916 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17917 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17918 17919fi 17920 17921 ;; 17922 esac 17923 ;; 17924esac 17925 17926echo "$as_me:17926: checking if you want to perform memory-leak testing" >&5 17927echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 17928 17929# Check whether --enable-leaks or --disable-leaks was given. 17930if test "${enable_leaks+set}" = set; then 17931 enableval="$enable_leaks" 17932 enable_leaks=no 17933else 17934 enable_leaks=yes 17935fi; 17936if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 17937echo "$as_me:17937: result: $with_no_leaks" >&5 17938echo "${ECHO_T}$with_no_leaks" >&6 17939 17940if test "$enable_leaks" = no ; then 17941 17942cat >>confdefs.h <<\EOF 17943#define NO_LEAKS 1 17944EOF 17945 17946cat >>confdefs.h <<\EOF 17947#define YY_NO_LEAKS 1 17948EOF 17949 17950fi 17951 17952cat >>confdefs.h <<\EOF 17953#define HAVE_NC_ALLOC_H 1 17954EOF 17955 17956### use option --enable-expanded to generate certain macros as functions 17957 17958# Check whether --enable-expanded or --disable-expanded was given. 17959if test "${enable_expanded+set}" = set; then 17960 enableval="$enable_expanded" 17961 test "x$enableval" = xyes && 17962cat >>confdefs.h <<\EOF 17963#define NCURSES_EXPANDED 1 17964EOF 17965 17966fi; 17967 17968### use option --disable-macros to suppress macros in favor of functions 17969 17970# Check whether --enable-macros or --disable-macros was given. 17971if test "${enable_macros+set}" = set; then 17972 enableval="$enable_macros" 17973 test "$enableval" = no && 17974cat >>confdefs.h <<\EOF 17975#define NCURSES_NOMACROS 1 17976EOF 17977 17978fi; 17979 17980# Normally we only add trace() to the debug-library. Allow this to be 17981# extended to all models of the ncurses library: 17982cf_all_traces=no 17983case "$CFLAGS $CPPFLAGS" in 17984(*-DTRACE*) 17985 cf_all_traces=yes 17986 ;; 17987esac 17988 17989echo "$as_me:17989: checking whether to add trace feature to all models" >&5 17990echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6 17991 17992# Check whether --with-trace or --without-trace was given. 17993if test "${with_trace+set}" = set; then 17994 withval="$with_trace" 17995 cf_with_trace=$withval 17996else 17997 cf_with_trace=$cf_all_traces 17998fi; 17999echo "$as_me:17999: result: $cf_with_trace" >&5 18000echo "${ECHO_T}$cf_with_trace" >&6 18001 18002if test "x$cf_with_trace" = xyes ; then 18003 LIB_TRACING=all 18004 ADA_TRACE=TRUE 18005 18006cf_fix_cppflags=no 18007cf_new_cflags= 18008cf_new_cppflags= 18009cf_new_extra_cppflags= 18010 18011for cf_add_cflags in -DTRACE 18012do 18013case "$cf_fix_cppflags" in 18014(no) 18015 case "$cf_add_cflags" in 18016 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18017 case "$cf_add_cflags" in 18018 (-D*) 18019 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18020 18021 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18022 && test -z "${cf_tst_cflags}" \ 18023 && cf_fix_cppflags=yes 18024 18025 if test "$cf_fix_cppflags" = yes ; then 18026 18027 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18028 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18029 18030 continue 18031 elif test "${cf_tst_cflags}" = "\"'" ; then 18032 18033 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18034 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18035 18036 continue 18037 fi 18038 ;; 18039 esac 18040 case "$CPPFLAGS" in 18041 (*$cf_add_cflags) 18042 ;; 18043 (*) 18044 case "$cf_add_cflags" in 18045 (-D*) 18046 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18047 18048CPPFLAGS=`echo "$CPPFLAGS" | \ 18049 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18050 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18051 18052 ;; 18053 esac 18054 18055 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18056 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18057 18058 ;; 18059 esac 18060 ;; 18061 (*) 18062 18063 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18064 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18065 18066 ;; 18067 esac 18068 ;; 18069(yes) 18070 18071 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18072 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18073 18074 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18075 18076 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18077 && test -z "${cf_tst_cflags}" \ 18078 && cf_fix_cppflags=no 18079 ;; 18080esac 18081done 18082 18083if test -n "$cf_new_cflags" ; then 18084 18085 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18086 CFLAGS="${CFLAGS}$cf_new_cflags" 18087 18088fi 18089 18090if test -n "$cf_new_cppflags" ; then 18091 18092 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18093 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18094 18095fi 18096 18097if test -n "$cf_new_extra_cppflags" ; then 18098 18099 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18100 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18101 18102fi 18103 18104cat >>confdefs.h <<\EOF 18105#define HAVE__TRACEF 1 18106EOF 18107 18108else 18109 LIB_TRACING=DEBUG 18110 ADA_TRACE=FALSE 18111fi 18112 18113echo "$as_me:18113: checking if we want to use GNAT projects" >&5 18114echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6 18115 18116# Check whether --enable-gnat-projects or --disable-gnat-projects was given. 18117if test "${enable_gnat_projects+set}" = set; then 18118 enableval="$enable_gnat_projects" 18119 test "$enableval" != no && enableval=yes 18120 if test "$enableval" != "yes" ; then 18121 enable_gnat_projects=no 18122 else 18123 enable_gnat_projects=yes 18124 fi 18125else 18126 enableval=yes 18127 enable_gnat_projects=yes 18128 18129fi; 18130echo "$as_me:18130: result: $enable_gnat_projects" >&5 18131echo "${ECHO_T}$enable_gnat_projects" >&6 18132 18133### Checks for libraries. 18134case "$cf_cv_system_name" in 18135(*mingw32*|*mingw64*) 18136 if test "x$with_exp_win32" = xyes ; then 18137 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN" 18138 else 18139 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" 18140 fi 18141 # Note: WINVER may be a problem with Windows 10 18142 ;; 18143(*) 18144echo "$as_me:18144: checking for gettimeofday" >&5 18145echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 18146if test "${ac_cv_func_gettimeofday+set}" = set; then 18147 echo $ECHO_N "(cached) $ECHO_C" >&6 18148else 18149 cat >"conftest.$ac_ext" <<_ACEOF 18150#line 18150 "configure" 18151#include "confdefs.h" 18152#define gettimeofday autoconf_temporary 18153#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 18154#undef gettimeofday 18155 18156#ifdef __cplusplus 18157extern "C" 18158#endif 18159 18160/* We use char because int might match the return type of a gcc2 18161 builtin and then its argument prototype would still apply. */ 18162char gettimeofday (void); 18163 18164int 18165main (void) 18166{ 18167 18168/* The GNU C library defines stubs for functions which it implements 18169 to always fail with ENOSYS. Some functions are actually named 18170 something starting with __ and the normal name is an alias. */ 18171#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 18172#error found stub for gettimeofday 18173#endif 18174 18175 return gettimeofday (); 18176 ; 18177 return 0; 18178} 18179_ACEOF 18180rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18181if { (eval echo "$as_me:18181: \"$ac_link\"") >&5 18182 (eval $ac_link) 2>&5 18183 ac_status=$? 18184 echo "$as_me:18184: \$? = $ac_status" >&5 18185 (exit "$ac_status"); } && 18186 { ac_try='test -s "conftest$ac_exeext"' 18187 { (eval echo "$as_me:18187: \"$ac_try\"") >&5 18188 (eval $ac_try) 2>&5 18189 ac_status=$? 18190 echo "$as_me:18190: \$? = $ac_status" >&5 18191 (exit "$ac_status"); }; }; then 18192 ac_cv_func_gettimeofday=yes 18193else 18194 echo "$as_me: failed program was:" >&5 18195cat "conftest.$ac_ext" >&5 18196ac_cv_func_gettimeofday=no 18197fi 18198rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18199fi 18200echo "$as_me:18200: result: $ac_cv_func_gettimeofday" >&5 18201echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 18202if test "$ac_cv_func_gettimeofday" = yes; then 18203 18204cat >>confdefs.h <<\EOF 18205#define HAVE_GETTIMEOFDAY 1 18206EOF 18207 18208else 18209 18210echo "$as_me:18210: checking for gettimeofday in -lbsd" >&5 18211echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 18212if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 18213 echo $ECHO_N "(cached) $ECHO_C" >&6 18214else 18215 ac_check_lib_save_LIBS=$LIBS 18216LIBS="-lbsd $LIBS" 18217cat >"conftest.$ac_ext" <<_ACEOF 18218#line 18218 "configure" 18219#include "confdefs.h" 18220 18221/* Override any gcc2 internal prototype to avoid an error. */ 18222#ifdef __cplusplus 18223extern "C" 18224#endif 18225/* We use char because int might match the return type of a gcc2 18226 builtin and then its argument prototype would still apply. */ 18227char gettimeofday (); 18228int 18229main (void) 18230{ 18231gettimeofday (); 18232 ; 18233 return 0; 18234} 18235_ACEOF 18236rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18237if { (eval echo "$as_me:18237: \"$ac_link\"") >&5 18238 (eval $ac_link) 2>&5 18239 ac_status=$? 18240 echo "$as_me:18240: \$? = $ac_status" >&5 18241 (exit "$ac_status"); } && 18242 { ac_try='test -s "conftest$ac_exeext"' 18243 { (eval echo "$as_me:18243: \"$ac_try\"") >&5 18244 (eval $ac_try) 2>&5 18245 ac_status=$? 18246 echo "$as_me:18246: \$? = $ac_status" >&5 18247 (exit "$ac_status"); }; }; then 18248 ac_cv_lib_bsd_gettimeofday=yes 18249else 18250 echo "$as_me: failed program was:" >&5 18251cat "conftest.$ac_ext" >&5 18252ac_cv_lib_bsd_gettimeofday=no 18253fi 18254rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18255LIBS=$ac_check_lib_save_LIBS 18256fi 18257echo "$as_me:18257: result: $ac_cv_lib_bsd_gettimeofday" >&5 18258echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 18259if test "$ac_cv_lib_bsd_gettimeofday" = yes; then 18260 18261cat >>confdefs.h <<\EOF 18262#define HAVE_GETTIMEOFDAY 1 18263EOF 18264 18265cf_add_libs="$LIBS" 18266# reverse order 18267cf_add_0lib= 18268for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18269# filter duplicates 18270for cf_add_1lib in $cf_add_0lib; do 18271 for cf_add_2lib in $cf_add_libs; do 18272 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18273 cf_add_1lib= 18274 break 18275 fi 18276 done 18277 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18278done 18279LIBS="$cf_add_libs" 18280 18281fi 18282 18283fi 18284 ;; 18285esac 18286 18287echo "$as_me:18287: checking if -lm needed for math functions" >&5 18288echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 18289if test "${cf_cv_need_libm+set}" = set; then 18290 echo $ECHO_N "(cached) $ECHO_C" >&6 18291else 18292 18293 cat >"conftest.$ac_ext" <<_ACEOF 18294#line 18294 "configure" 18295#include "confdefs.h" 18296 18297 #include <stdio.h> 18298 #include <stdlib.h> 18299 #include <math.h> 18300 18301int 18302main (void) 18303{ 18304double x = rand(); printf("result = %g\\n", pow(sin(x),x)) 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18310if { (eval echo "$as_me:18310: \"$ac_link\"") >&5 18311 (eval $ac_link) 2>&5 18312 ac_status=$? 18313 echo "$as_me:18313: \$? = $ac_status" >&5 18314 (exit "$ac_status"); } && 18315 { ac_try='test -s "conftest$ac_exeext"' 18316 { (eval echo "$as_me:18316: \"$ac_try\"") >&5 18317 (eval $ac_try) 2>&5 18318 ac_status=$? 18319 echo "$as_me:18319: \$? = $ac_status" >&5 18320 (exit "$ac_status"); }; }; then 18321 cf_cv_need_libm=no 18322else 18323 echo "$as_me: failed program was:" >&5 18324cat "conftest.$ac_ext" >&5 18325cf_cv_need_libm=yes 18326fi 18327rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18328fi 18329echo "$as_me:18329: result: $cf_cv_need_libm" >&5 18330echo "${ECHO_T}$cf_cv_need_libm" >&6 18331if test "$cf_cv_need_libm" = yes 18332then 18333MATH_LIB=-lm 18334fi 18335 18336### Checks for header files. 18337echo "$as_me:18337: checking for ANSI C header files" >&5 18338echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18339if test "${ac_cv_header_stdc+set}" = set; then 18340 echo $ECHO_N "(cached) $ECHO_C" >&6 18341else 18342 cat >"conftest.$ac_ext" <<_ACEOF 18343#line 18343 "configure" 18344#include "confdefs.h" 18345#include <stdlib.h> 18346#include <stdarg.h> 18347#include <string.h> 18348#include <float.h> 18349 18350_ACEOF 18351if { (eval echo "$as_me:18351: \"$ac_cpp "conftest.$ac_ext"\"") >&5 18352 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 18353 ac_status=$? 18354 $EGREP -v '^ *\+' conftest.er1 >conftest.err 18355 rm -f conftest.er1 18356 cat conftest.err >&5 18357 echo "$as_me:18357: \$? = $ac_status" >&5 18358 (exit "$ac_status"); } >/dev/null; then 18359 if test -s conftest.err; then 18360 ac_cpp_err=$ac_c_preproc_warn_flag 18361 else 18362 ac_cpp_err= 18363 fi 18364else 18365 ac_cpp_err=yes 18366fi 18367if test -z "$ac_cpp_err"; then 18368 ac_cv_header_stdc=yes 18369else 18370 echo "$as_me: failed program was:" >&5 18371 cat "conftest.$ac_ext" >&5 18372 ac_cv_header_stdc=no 18373fi 18374rm -f conftest.err "conftest.$ac_ext" 18375 18376if test $ac_cv_header_stdc = yes; then 18377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18378 cat >"conftest.$ac_ext" <<_ACEOF 18379#line 18379 "configure" 18380#include "confdefs.h" 18381#include <string.h> 18382 18383_ACEOF 18384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18385 $EGREP "memchr" >/dev/null 2>&1; then 18386 : 18387else 18388 ac_cv_header_stdc=no 18389fi 18390rm -rf conftest* 18391 18392fi 18393 18394if test $ac_cv_header_stdc = yes; then 18395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18396 cat >"conftest.$ac_ext" <<_ACEOF 18397#line 18397 "configure" 18398#include "confdefs.h" 18399#include <stdlib.h> 18400 18401_ACEOF 18402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18403 $EGREP "free" >/dev/null 2>&1; then 18404 : 18405else 18406 ac_cv_header_stdc=no 18407fi 18408rm -rf conftest* 18409 18410fi 18411 18412if test $ac_cv_header_stdc = yes; then 18413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18414 if test "$cross_compiling" = yes; then 18415 : 18416else 18417 cat >"conftest.$ac_ext" <<_ACEOF 18418#line 18418 "configure" 18419#include "confdefs.h" 18420#include <ctype.h> 18421#if ((' ' & 0x0FF) == 0x020) 18422# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18423# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18424#else 18425# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 18426 || ('j' <= (c) && (c) <= 'r') \ 18427 || ('s' <= (c) && (c) <= 'z')) 18428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18429#endif 18430 18431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18432int 18433main (void) 18434{ 18435 int i; 18436 for (i = 0; i < 256; i++) 18437 if (XOR (islower (i), ISLOWER (i)) 18438 || toupper (i) != TOUPPER (i)) 18439 $ac_main_return(2); 18440 $ac_main_return (0); 18441} 18442_ACEOF 18443rm -f "conftest$ac_exeext" 18444if { (eval echo "$as_me:18444: \"$ac_link\"") >&5 18445 (eval $ac_link) 2>&5 18446 ac_status=$? 18447 echo "$as_me:18447: \$? = $ac_status" >&5 18448 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 18449 { (eval echo "$as_me:18449: \"$ac_try\"") >&5 18450 (eval $ac_try) 2>&5 18451 ac_status=$? 18452 echo "$as_me:18452: \$? = $ac_status" >&5 18453 (exit "$ac_status"); }; }; then 18454 : 18455else 18456 echo "$as_me: program exited with status $ac_status" >&5 18457echo "$as_me: failed program was:" >&5 18458cat "conftest.$ac_ext" >&5 18459ac_cv_header_stdc=no 18460fi 18461rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 18462fi 18463fi 18464fi 18465echo "$as_me:18465: result: $ac_cv_header_stdc" >&5 18466echo "${ECHO_T}$ac_cv_header_stdc" >&6 18467if test $ac_cv_header_stdc = yes; then 18468 18469cat >>confdefs.h <<\EOF 18470#define STDC_HEADERS 1 18471EOF 18472 18473fi 18474 18475ac_header_dirent=no 18476for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18477 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18478echo "$as_me:18478: checking for $ac_hdr that defines DIR" >&5 18479echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 18480if eval "test \"\${$as_ac_Header+set}\" = set"; then 18481 echo $ECHO_N "(cached) $ECHO_C" >&6 18482else 18483 cat >"conftest.$ac_ext" <<_ACEOF 18484#line 18484 "configure" 18485#include "confdefs.h" 18486#include <sys/types.h> 18487#include <$ac_hdr> 18488 18489int 18490main (void) 18491{ 18492if ((DIR *) 0) 18493return 0; 18494 ; 18495 return 0; 18496} 18497_ACEOF 18498rm -f "conftest.$ac_objext" 18499if { (eval echo "$as_me:18499: \"$ac_compile\"") >&5 18500 (eval $ac_compile) 2>&5 18501 ac_status=$? 18502 echo "$as_me:18502: \$? = $ac_status" >&5 18503 (exit "$ac_status"); } && 18504 { ac_try='test -s "conftest.$ac_objext"' 18505 { (eval echo "$as_me:18505: \"$ac_try\"") >&5 18506 (eval $ac_try) 2>&5 18507 ac_status=$? 18508 echo "$as_me:18508: \$? = $ac_status" >&5 18509 (exit "$ac_status"); }; }; then 18510 eval "$as_ac_Header=yes" 18511else 18512 echo "$as_me: failed program was:" >&5 18513cat "conftest.$ac_ext" >&5 18514eval "$as_ac_Header=no" 18515fi 18516rm -f "conftest.$ac_objext" "conftest.$ac_ext" 18517fi 18518echo "$as_me:18518: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 18519echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 18520if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 18521 cat >>confdefs.h <<EOF 18522#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18523EOF 18524 18525ac_header_dirent=$ac_hdr; break 18526fi 18527 18528done 18529# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18530if test $ac_header_dirent = dirent.h; then 18531 echo "$as_me:18531: checking for opendir in -ldir" >&5 18532echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 18533if test "${ac_cv_lib_dir_opendir+set}" = set; then 18534 echo $ECHO_N "(cached) $ECHO_C" >&6 18535else 18536 ac_check_lib_save_LIBS=$LIBS 18537LIBS="-ldir $LIBS" 18538cat >"conftest.$ac_ext" <<_ACEOF 18539#line 18539 "configure" 18540#include "confdefs.h" 18541 18542/* Override any gcc2 internal prototype to avoid an error. */ 18543#ifdef __cplusplus 18544extern "C" 18545#endif 18546/* We use char because int might match the return type of a gcc2 18547 builtin and then its argument prototype would still apply. */ 18548char opendir (); 18549int 18550main (void) 18551{ 18552opendir (); 18553 ; 18554 return 0; 18555} 18556_ACEOF 18557rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18558if { (eval echo "$as_me:18558: \"$ac_link\"") >&5 18559 (eval $ac_link) 2>&5 18560 ac_status=$? 18561 echo "$as_me:18561: \$? = $ac_status" >&5 18562 (exit "$ac_status"); } && 18563 { ac_try='test -s "conftest$ac_exeext"' 18564 { (eval echo "$as_me:18564: \"$ac_try\"") >&5 18565 (eval $ac_try) 2>&5 18566 ac_status=$? 18567 echo "$as_me:18567: \$? = $ac_status" >&5 18568 (exit "$ac_status"); }; }; then 18569 ac_cv_lib_dir_opendir=yes 18570else 18571 echo "$as_me: failed program was:" >&5 18572cat "conftest.$ac_ext" >&5 18573ac_cv_lib_dir_opendir=no 18574fi 18575rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18576LIBS=$ac_check_lib_save_LIBS 18577fi 18578echo "$as_me:18578: result: $ac_cv_lib_dir_opendir" >&5 18579echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 18580if test "$ac_cv_lib_dir_opendir" = yes; then 18581 LIBS="$LIBS -ldir" 18582fi 18583 18584else 18585 echo "$as_me:18585: checking for opendir in -lx" >&5 18586echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 18587if test "${ac_cv_lib_x_opendir+set}" = set; then 18588 echo $ECHO_N "(cached) $ECHO_C" >&6 18589else 18590 ac_check_lib_save_LIBS=$LIBS 18591LIBS="-lx $LIBS" 18592cat >"conftest.$ac_ext" <<_ACEOF 18593#line 18593 "configure" 18594#include "confdefs.h" 18595 18596/* Override any gcc2 internal prototype to avoid an error. */ 18597#ifdef __cplusplus 18598extern "C" 18599#endif 18600/* We use char because int might match the return type of a gcc2 18601 builtin and then its argument prototype would still apply. */ 18602char opendir (); 18603int 18604main (void) 18605{ 18606opendir (); 18607 ; 18608 return 0; 18609} 18610_ACEOF 18611rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18612if { (eval echo "$as_me:18612: \"$ac_link\"") >&5 18613 (eval $ac_link) 2>&5 18614 ac_status=$? 18615 echo "$as_me:18615: \$? = $ac_status" >&5 18616 (exit "$ac_status"); } && 18617 { ac_try='test -s "conftest$ac_exeext"' 18618 { (eval echo "$as_me:18618: \"$ac_try\"") >&5 18619 (eval $ac_try) 2>&5 18620 ac_status=$? 18621 echo "$as_me:18621: \$? = $ac_status" >&5 18622 (exit "$ac_status"); }; }; then 18623 ac_cv_lib_x_opendir=yes 18624else 18625 echo "$as_me: failed program was:" >&5 18626cat "conftest.$ac_ext" >&5 18627ac_cv_lib_x_opendir=no 18628fi 18629rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18630LIBS=$ac_check_lib_save_LIBS 18631fi 18632echo "$as_me:18632: result: $ac_cv_lib_x_opendir" >&5 18633echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 18634if test "$ac_cv_lib_x_opendir" = yes; then 18635 LIBS="$LIBS -lx" 18636fi 18637 18638fi 18639 18640echo "$as_me:18640: checking whether time.h and sys/time.h may both be included" >&5 18641echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 18642if test "${ac_cv_header_time+set}" = set; then 18643 echo $ECHO_N "(cached) $ECHO_C" >&6 18644else 18645 cat >"conftest.$ac_ext" <<_ACEOF 18646#line 18646 "configure" 18647#include "confdefs.h" 18648#include <sys/types.h> 18649#include <sys/time.h> 18650#include <time.h> 18651 18652int 18653main (void) 18654{ 18655if ((struct tm *) 0) 18656return 0; 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661rm -f "conftest.$ac_objext" 18662if { (eval echo "$as_me:18662: \"$ac_compile\"") >&5 18663 (eval $ac_compile) 2>&5 18664 ac_status=$? 18665 echo "$as_me:18665: \$? = $ac_status" >&5 18666 (exit "$ac_status"); } && 18667 { ac_try='test -s "conftest.$ac_objext"' 18668 { (eval echo "$as_me:18668: \"$ac_try\"") >&5 18669 (eval $ac_try) 2>&5 18670 ac_status=$? 18671 echo "$as_me:18671: \$? = $ac_status" >&5 18672 (exit "$ac_status"); }; }; then 18673 ac_cv_header_time=yes 18674else 18675 echo "$as_me: failed program was:" >&5 18676cat "conftest.$ac_ext" >&5 18677ac_cv_header_time=no 18678fi 18679rm -f "conftest.$ac_objext" "conftest.$ac_ext" 18680fi 18681echo "$as_me:18681: result: $ac_cv_header_time" >&5 18682echo "${ECHO_T}$ac_cv_header_time" >&6 18683if test $ac_cv_header_time = yes; then 18684 18685cat >>confdefs.h <<\EOF 18686#define TIME_WITH_SYS_TIME 1 18687EOF 18688 18689fi 18690 18691cf_regex_func=no 18692cf_regex_libs= 18693case "$host_os" in 18694(mingw*) 18695 # -lsystre -ltre -lintl -liconv 18696 echo "$as_me:18696: checking for regcomp in -lsystre" >&5 18697echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 18698if test "${ac_cv_lib_systre_regcomp+set}" = set; then 18699 echo $ECHO_N "(cached) $ECHO_C" >&6 18700else 18701 ac_check_lib_save_LIBS=$LIBS 18702LIBS="-lsystre $LIBS" 18703cat >"conftest.$ac_ext" <<_ACEOF 18704#line 18704 "configure" 18705#include "confdefs.h" 18706 18707/* Override any gcc2 internal prototype to avoid an error. */ 18708#ifdef __cplusplus 18709extern "C" 18710#endif 18711/* We use char because int might match the return type of a gcc2 18712 builtin and then its argument prototype would still apply. */ 18713char regcomp (); 18714int 18715main (void) 18716{ 18717regcomp (); 18718 ; 18719 return 0; 18720} 18721_ACEOF 18722rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18723if { (eval echo "$as_me:18723: \"$ac_link\"") >&5 18724 (eval $ac_link) 2>&5 18725 ac_status=$? 18726 echo "$as_me:18726: \$? = $ac_status" >&5 18727 (exit "$ac_status"); } && 18728 { ac_try='test -s "conftest$ac_exeext"' 18729 { (eval echo "$as_me:18729: \"$ac_try\"") >&5 18730 (eval $ac_try) 2>&5 18731 ac_status=$? 18732 echo "$as_me:18732: \$? = $ac_status" >&5 18733 (exit "$ac_status"); }; }; then 18734 ac_cv_lib_systre_regcomp=yes 18735else 18736 echo "$as_me: failed program was:" >&5 18737cat "conftest.$ac_ext" >&5 18738ac_cv_lib_systre_regcomp=no 18739fi 18740rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18741LIBS=$ac_check_lib_save_LIBS 18742fi 18743echo "$as_me:18743: result: $ac_cv_lib_systre_regcomp" >&5 18744echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 18745if test "$ac_cv_lib_systre_regcomp" = yes; then 18746 18747 echo "$as_me:18747: checking for libiconv_open in -liconv" >&5 18748echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 18749if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 18750 echo $ECHO_N "(cached) $ECHO_C" >&6 18751else 18752 ac_check_lib_save_LIBS=$LIBS 18753LIBS="-liconv $LIBS" 18754cat >"conftest.$ac_ext" <<_ACEOF 18755#line 18755 "configure" 18756#include "confdefs.h" 18757 18758/* Override any gcc2 internal prototype to avoid an error. */ 18759#ifdef __cplusplus 18760extern "C" 18761#endif 18762/* We use char because int might match the return type of a gcc2 18763 builtin and then its argument prototype would still apply. */ 18764char libiconv_open (); 18765int 18766main (void) 18767{ 18768libiconv_open (); 18769 ; 18770 return 0; 18771} 18772_ACEOF 18773rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18774if { (eval echo "$as_me:18774: \"$ac_link\"") >&5 18775 (eval $ac_link) 2>&5 18776 ac_status=$? 18777 echo "$as_me:18777: \$? = $ac_status" >&5 18778 (exit "$ac_status"); } && 18779 { ac_try='test -s "conftest$ac_exeext"' 18780 { (eval echo "$as_me:18780: \"$ac_try\"") >&5 18781 (eval $ac_try) 2>&5 18782 ac_status=$? 18783 echo "$as_me:18783: \$? = $ac_status" >&5 18784 (exit "$ac_status"); }; }; then 18785 ac_cv_lib_iconv_libiconv_open=yes 18786else 18787 echo "$as_me: failed program was:" >&5 18788cat "conftest.$ac_ext" >&5 18789ac_cv_lib_iconv_libiconv_open=no 18790fi 18791rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18792LIBS=$ac_check_lib_save_LIBS 18793fi 18794echo "$as_me:18794: result: $ac_cv_lib_iconv_libiconv_open" >&5 18795echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 18796if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 18797 18798cf_add_libs="$LIBS" 18799# reverse order 18800cf_add_0lib= 18801for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18802# filter duplicates 18803for cf_add_1lib in $cf_add_0lib; do 18804 for cf_add_2lib in $cf_add_libs; do 18805 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18806 cf_add_1lib= 18807 break 18808 fi 18809 done 18810 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18811done 18812LIBS="$cf_add_libs" 18813 18814fi 18815 18816 echo "$as_me:18816: checking for libintl_gettext in -lintl" >&5 18817echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 18818if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 18819 echo $ECHO_N "(cached) $ECHO_C" >&6 18820else 18821 ac_check_lib_save_LIBS=$LIBS 18822LIBS="-lintl $LIBS" 18823cat >"conftest.$ac_ext" <<_ACEOF 18824#line 18824 "configure" 18825#include "confdefs.h" 18826 18827/* Override any gcc2 internal prototype to avoid an error. */ 18828#ifdef __cplusplus 18829extern "C" 18830#endif 18831/* We use char because int might match the return type of a gcc2 18832 builtin and then its argument prototype would still apply. */ 18833char libintl_gettext (); 18834int 18835main (void) 18836{ 18837libintl_gettext (); 18838 ; 18839 return 0; 18840} 18841_ACEOF 18842rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18843if { (eval echo "$as_me:18843: \"$ac_link\"") >&5 18844 (eval $ac_link) 2>&5 18845 ac_status=$? 18846 echo "$as_me:18846: \$? = $ac_status" >&5 18847 (exit "$ac_status"); } && 18848 { ac_try='test -s "conftest$ac_exeext"' 18849 { (eval echo "$as_me:18849: \"$ac_try\"") >&5 18850 (eval $ac_try) 2>&5 18851 ac_status=$? 18852 echo "$as_me:18852: \$? = $ac_status" >&5 18853 (exit "$ac_status"); }; }; then 18854 ac_cv_lib_intl_libintl_gettext=yes 18855else 18856 echo "$as_me: failed program was:" >&5 18857cat "conftest.$ac_ext" >&5 18858ac_cv_lib_intl_libintl_gettext=no 18859fi 18860rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18861LIBS=$ac_check_lib_save_LIBS 18862fi 18863echo "$as_me:18863: result: $ac_cv_lib_intl_libintl_gettext" >&5 18864echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 18865if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 18866 18867cf_add_libs="$LIBS" 18868# reverse order 18869cf_add_0lib= 18870for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18871# filter duplicates 18872for cf_add_1lib in $cf_add_0lib; do 18873 for cf_add_2lib in $cf_add_libs; do 18874 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18875 cf_add_1lib= 18876 break 18877 fi 18878 done 18879 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18880done 18881LIBS="$cf_add_libs" 18882 18883fi 18884 18885 echo "$as_me:18885: checking for tre_regcomp in -ltre" >&5 18886echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 18887if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 18888 echo $ECHO_N "(cached) $ECHO_C" >&6 18889else 18890 ac_check_lib_save_LIBS=$LIBS 18891LIBS="-ltre $LIBS" 18892cat >"conftest.$ac_ext" <<_ACEOF 18893#line 18893 "configure" 18894#include "confdefs.h" 18895 18896/* Override any gcc2 internal prototype to avoid an error. */ 18897#ifdef __cplusplus 18898extern "C" 18899#endif 18900/* We use char because int might match the return type of a gcc2 18901 builtin and then its argument prototype would still apply. */ 18902char tre_regcomp (); 18903int 18904main (void) 18905{ 18906tre_regcomp (); 18907 ; 18908 return 0; 18909} 18910_ACEOF 18911rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18912if { (eval echo "$as_me:18912: \"$ac_link\"") >&5 18913 (eval $ac_link) 2>&5 18914 ac_status=$? 18915 echo "$as_me:18915: \$? = $ac_status" >&5 18916 (exit "$ac_status"); } && 18917 { ac_try='test -s "conftest$ac_exeext"' 18918 { (eval echo "$as_me:18918: \"$ac_try\"") >&5 18919 (eval $ac_try) 2>&5 18920 ac_status=$? 18921 echo "$as_me:18921: \$? = $ac_status" >&5 18922 (exit "$ac_status"); }; }; then 18923 ac_cv_lib_tre_tre_regcomp=yes 18924else 18925 echo "$as_me: failed program was:" >&5 18926cat "conftest.$ac_ext" >&5 18927ac_cv_lib_tre_tre_regcomp=no 18928fi 18929rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18930LIBS=$ac_check_lib_save_LIBS 18931fi 18932echo "$as_me:18932: result: $ac_cv_lib_tre_tre_regcomp" >&5 18933echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 18934if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 18935 18936cf_add_libs="$LIBS" 18937# reverse order 18938cf_add_0lib= 18939for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18940# filter duplicates 18941for cf_add_1lib in $cf_add_0lib; do 18942 for cf_add_2lib in $cf_add_libs; do 18943 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18944 cf_add_1lib= 18945 break 18946 fi 18947 done 18948 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18949done 18950LIBS="$cf_add_libs" 18951 18952fi 18953 18954cf_add_libs="$LIBS" 18955# reverse order 18956cf_add_0lib= 18957for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18958# filter duplicates 18959for cf_add_1lib in $cf_add_0lib; do 18960 for cf_add_2lib in $cf_add_libs; do 18961 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18962 cf_add_1lib= 18963 break 18964 fi 18965 done 18966 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18967done 18968LIBS="$cf_add_libs" 18969 18970 cf_regex_func=regcomp 18971 18972else 18973 18974 echo "$as_me:18974: checking for regcomp in -lgnurx" >&5 18975echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 18976if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 18977 echo $ECHO_N "(cached) $ECHO_C" >&6 18978else 18979 ac_check_lib_save_LIBS=$LIBS 18980LIBS="-lgnurx $LIBS" 18981cat >"conftest.$ac_ext" <<_ACEOF 18982#line 18982 "configure" 18983#include "confdefs.h" 18984 18985/* Override any gcc2 internal prototype to avoid an error. */ 18986#ifdef __cplusplus 18987extern "C" 18988#endif 18989/* We use char because int might match the return type of a gcc2 18990 builtin and then its argument prototype would still apply. */ 18991char regcomp (); 18992int 18993main (void) 18994{ 18995regcomp (); 18996 ; 18997 return 0; 18998} 18999_ACEOF 19000rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19001if { (eval echo "$as_me:19001: \"$ac_link\"") >&5 19002 (eval $ac_link) 2>&5 19003 ac_status=$? 19004 echo "$as_me:19004: \$? = $ac_status" >&5 19005 (exit "$ac_status"); } && 19006 { ac_try='test -s "conftest$ac_exeext"' 19007 { (eval echo "$as_me:19007: \"$ac_try\"") >&5 19008 (eval $ac_try) 2>&5 19009 ac_status=$? 19010 echo "$as_me:19010: \$? = $ac_status" >&5 19011 (exit "$ac_status"); }; }; then 19012 ac_cv_lib_gnurx_regcomp=yes 19013else 19014 echo "$as_me: failed program was:" >&5 19015cat "conftest.$ac_ext" >&5 19016ac_cv_lib_gnurx_regcomp=no 19017fi 19018rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19019LIBS=$ac_check_lib_save_LIBS 19020fi 19021echo "$as_me:19021: result: $ac_cv_lib_gnurx_regcomp" >&5 19022echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 19023if test "$ac_cv_lib_gnurx_regcomp" = yes; then 19024 19025cf_add_libs="$LIBS" 19026# reverse order 19027cf_add_0lib= 19028for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19029# filter duplicates 19030for cf_add_1lib in $cf_add_0lib; do 19031 for cf_add_2lib in $cf_add_libs; do 19032 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19033 cf_add_1lib= 19034 break 19035 fi 19036 done 19037 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19038done 19039LIBS="$cf_add_libs" 19040 19041 cf_regex_func=regcomp 19042fi 19043 19044fi 19045 19046 ;; 19047(*) 19048 cf_regex_libs="regex re" 19049 echo "$as_me:19049: checking for regcomp" >&5 19050echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 19051if test "${ac_cv_func_regcomp+set}" = set; then 19052 echo $ECHO_N "(cached) $ECHO_C" >&6 19053else 19054 cat >"conftest.$ac_ext" <<_ACEOF 19055#line 19055 "configure" 19056#include "confdefs.h" 19057#define regcomp autoconf_temporary 19058#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19059#undef regcomp 19060 19061#ifdef __cplusplus 19062extern "C" 19063#endif 19064 19065/* We use char because int might match the return type of a gcc2 19066 builtin and then its argument prototype would still apply. */ 19067char regcomp (void); 19068 19069int 19070main (void) 19071{ 19072 19073/* The GNU C library defines stubs for functions which it implements 19074 to always fail with ENOSYS. Some functions are actually named 19075 something starting with __ and the normal name is an alias. */ 19076#if defined (__stub_regcomp) || defined (__stub___regcomp) 19077#error found stub for regcomp 19078#endif 19079 19080 return regcomp (); 19081 ; 19082 return 0; 19083} 19084_ACEOF 19085rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19086if { (eval echo "$as_me:19086: \"$ac_link\"") >&5 19087 (eval $ac_link) 2>&5 19088 ac_status=$? 19089 echo "$as_me:19089: \$? = $ac_status" >&5 19090 (exit "$ac_status"); } && 19091 { ac_try='test -s "conftest$ac_exeext"' 19092 { (eval echo "$as_me:19092: \"$ac_try\"") >&5 19093 (eval $ac_try) 2>&5 19094 ac_status=$? 19095 echo "$as_me:19095: \$? = $ac_status" >&5 19096 (exit "$ac_status"); }; }; then 19097 ac_cv_func_regcomp=yes 19098else 19099 echo "$as_me: failed program was:" >&5 19100cat "conftest.$ac_ext" >&5 19101ac_cv_func_regcomp=no 19102fi 19103rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19104fi 19105echo "$as_me:19105: result: $ac_cv_func_regcomp" >&5 19106echo "${ECHO_T}$ac_cv_func_regcomp" >&6 19107if test "$ac_cv_func_regcomp" = yes; then 19108 cf_regex_func=regcomp 19109else 19110 19111 for cf_regex_lib in $cf_regex_libs 19112 do 19113 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 19114echo "$as_me:19114: checking for regcomp in -l$cf_regex_lib" >&5 19115echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 19116if eval "test \"\${$as_ac_Lib+set}\" = set"; then 19117 echo $ECHO_N "(cached) $ECHO_C" >&6 19118else 19119 ac_check_lib_save_LIBS=$LIBS 19120LIBS="-l$cf_regex_lib $LIBS" 19121cat >"conftest.$ac_ext" <<_ACEOF 19122#line 19122 "configure" 19123#include "confdefs.h" 19124 19125/* Override any gcc2 internal prototype to avoid an error. */ 19126#ifdef __cplusplus 19127extern "C" 19128#endif 19129/* We use char because int might match the return type of a gcc2 19130 builtin and then its argument prototype would still apply. */ 19131char regcomp (); 19132int 19133main (void) 19134{ 19135regcomp (); 19136 ; 19137 return 0; 19138} 19139_ACEOF 19140rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19141if { (eval echo "$as_me:19141: \"$ac_link\"") >&5 19142 (eval $ac_link) 2>&5 19143 ac_status=$? 19144 echo "$as_me:19144: \$? = $ac_status" >&5 19145 (exit "$ac_status"); } && 19146 { ac_try='test -s "conftest$ac_exeext"' 19147 { (eval echo "$as_me:19147: \"$ac_try\"") >&5 19148 (eval $ac_try) 2>&5 19149 ac_status=$? 19150 echo "$as_me:19150: \$? = $ac_status" >&5 19151 (exit "$ac_status"); }; }; then 19152 eval "$as_ac_Lib=yes" 19153else 19154 echo "$as_me: failed program was:" >&5 19155cat "conftest.$ac_ext" >&5 19156eval "$as_ac_Lib=no" 19157fi 19158rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19159LIBS=$ac_check_lib_save_LIBS 19160fi 19161echo "$as_me:19161: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 19162echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 19163if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 19164 19165cf_add_libs="$LIBS" 19166# reverse order 19167cf_add_0lib= 19168for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19169# filter duplicates 19170for cf_add_1lib in $cf_add_0lib; do 19171 for cf_add_2lib in $cf_add_libs; do 19172 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19173 cf_add_1lib= 19174 break 19175 fi 19176 done 19177 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19178done 19179LIBS="$cf_add_libs" 19180 19181 cf_regex_func=regcomp 19182 break 19183fi 19184 19185 done 19186 19187fi 19188 19189 ;; 19190esac 19191 19192if test "$cf_regex_func" = no ; then 19193 echo "$as_me:19193: checking for compile" >&5 19194echo $ECHO_N "checking for compile... $ECHO_C" >&6 19195if test "${ac_cv_func_compile+set}" = set; then 19196 echo $ECHO_N "(cached) $ECHO_C" >&6 19197else 19198 cat >"conftest.$ac_ext" <<_ACEOF 19199#line 19199 "configure" 19200#include "confdefs.h" 19201#define compile autoconf_temporary 19202#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19203#undef compile 19204 19205#ifdef __cplusplus 19206extern "C" 19207#endif 19208 19209/* We use char because int might match the return type of a gcc2 19210 builtin and then its argument prototype would still apply. */ 19211char compile (void); 19212 19213int 19214main (void) 19215{ 19216 19217/* The GNU C library defines stubs for functions which it implements 19218 to always fail with ENOSYS. Some functions are actually named 19219 something starting with __ and the normal name is an alias. */ 19220#if defined (__stub_compile) || defined (__stub___compile) 19221#error found stub for compile 19222#endif 19223 19224 return compile (); 19225 ; 19226 return 0; 19227} 19228_ACEOF 19229rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19230if { (eval echo "$as_me:19230: \"$ac_link\"") >&5 19231 (eval $ac_link) 2>&5 19232 ac_status=$? 19233 echo "$as_me:19233: \$? = $ac_status" >&5 19234 (exit "$ac_status"); } && 19235 { ac_try='test -s "conftest$ac_exeext"' 19236 { (eval echo "$as_me:19236: \"$ac_try\"") >&5 19237 (eval $ac_try) 2>&5 19238 ac_status=$? 19239 echo "$as_me:19239: \$? = $ac_status" >&5 19240 (exit "$ac_status"); }; }; then 19241 ac_cv_func_compile=yes 19242else 19243 echo "$as_me: failed program was:" >&5 19244cat "conftest.$ac_ext" >&5 19245ac_cv_func_compile=no 19246fi 19247rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19248fi 19249echo "$as_me:19249: result: $ac_cv_func_compile" >&5 19250echo "${ECHO_T}$ac_cv_func_compile" >&6 19251if test "$ac_cv_func_compile" = yes; then 19252 cf_regex_func=compile 19253else 19254 19255 echo "$as_me:19255: checking for compile in -lgen" >&5 19256echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 19257if test "${ac_cv_lib_gen_compile+set}" = set; then 19258 echo $ECHO_N "(cached) $ECHO_C" >&6 19259else 19260 ac_check_lib_save_LIBS=$LIBS 19261LIBS="-lgen $LIBS" 19262cat >"conftest.$ac_ext" <<_ACEOF 19263#line 19263 "configure" 19264#include "confdefs.h" 19265 19266/* Override any gcc2 internal prototype to avoid an error. */ 19267#ifdef __cplusplus 19268extern "C" 19269#endif 19270/* We use char because int might match the return type of a gcc2 19271 builtin and then its argument prototype would still apply. */ 19272char compile (); 19273int 19274main (void) 19275{ 19276compile (); 19277 ; 19278 return 0; 19279} 19280_ACEOF 19281rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19282if { (eval echo "$as_me:19282: \"$ac_link\"") >&5 19283 (eval $ac_link) 2>&5 19284 ac_status=$? 19285 echo "$as_me:19285: \$? = $ac_status" >&5 19286 (exit "$ac_status"); } && 19287 { ac_try='test -s "conftest$ac_exeext"' 19288 { (eval echo "$as_me:19288: \"$ac_try\"") >&5 19289 (eval $ac_try) 2>&5 19290 ac_status=$? 19291 echo "$as_me:19291: \$? = $ac_status" >&5 19292 (exit "$ac_status"); }; }; then 19293 ac_cv_lib_gen_compile=yes 19294else 19295 echo "$as_me: failed program was:" >&5 19296cat "conftest.$ac_ext" >&5 19297ac_cv_lib_gen_compile=no 19298fi 19299rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19300LIBS=$ac_check_lib_save_LIBS 19301fi 19302echo "$as_me:19302: result: $ac_cv_lib_gen_compile" >&5 19303echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 19304if test "$ac_cv_lib_gen_compile" = yes; then 19305 19306cf_add_libs="$LIBS" 19307# reverse order 19308cf_add_0lib= 19309for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19310# filter duplicates 19311for cf_add_1lib in $cf_add_0lib; do 19312 for cf_add_2lib in $cf_add_libs; do 19313 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19314 cf_add_1lib= 19315 break 19316 fi 19317 done 19318 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19319done 19320LIBS="$cf_add_libs" 19321 19322 cf_regex_func=compile 19323fi 19324 19325fi 19326 19327fi 19328 19329if test "$cf_regex_func" = no ; then 19330 { echo "$as_me:19330: WARNING: cannot find regular expression library" >&5 19331echo "$as_me: WARNING: cannot find regular expression library" >&2;} 19332fi 19333 19334echo "$as_me:19334: checking for regular-expression headers" >&5 19335echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 19336if test "${cf_cv_regex_hdrs+set}" = set; then 19337 echo $ECHO_N "(cached) $ECHO_C" >&6 19338else 19339 19340cf_cv_regex_hdrs=no 19341case "$cf_regex_func" in 19342(compile) 19343 for cf_regex_hdr in regexp.h regexpr.h 19344 do 19345 cat >"conftest.$ac_ext" <<_ACEOF 19346#line 19346 "configure" 19347#include "confdefs.h" 19348#include <$cf_regex_hdr> 19349int 19350main (void) 19351{ 19352 19353 char *p = compile("", "", "", 0); 19354 int x = step("", ""); 19355 (void)p; 19356 (void)x; 19357 19358 ; 19359 return 0; 19360} 19361_ACEOF 19362rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19363if { (eval echo "$as_me:19363: \"$ac_link\"") >&5 19364 (eval $ac_link) 2>&5 19365 ac_status=$? 19366 echo "$as_me:19366: \$? = $ac_status" >&5 19367 (exit "$ac_status"); } && 19368 { ac_try='test -s "conftest$ac_exeext"' 19369 { (eval echo "$as_me:19369: \"$ac_try\"") >&5 19370 (eval $ac_try) 2>&5 19371 ac_status=$? 19372 echo "$as_me:19372: \$? = $ac_status" >&5 19373 (exit "$ac_status"); }; }; then 19374 19375 cf_cv_regex_hdrs=$cf_regex_hdr 19376 break 19377 19378else 19379 echo "$as_me: failed program was:" >&5 19380cat "conftest.$ac_ext" >&5 19381fi 19382rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19383 done 19384 ;; 19385(*) 19386 for cf_regex_hdr in regex.h 19387 do 19388 cat >"conftest.$ac_ext" <<_ACEOF 19389#line 19389 "configure" 19390#include "confdefs.h" 19391#include <sys/types.h> 19392#include <$cf_regex_hdr> 19393int 19394main (void) 19395{ 19396 19397 regex_t *p = 0; 19398 int x = regcomp(p, "", 0); 19399 int y = regexec(p, "", 0, 0, 0); 19400 (void)x; 19401 (void)y; 19402 regfree(p); 19403 19404 ; 19405 return 0; 19406} 19407_ACEOF 19408rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19409if { (eval echo "$as_me:19409: \"$ac_link\"") >&5 19410 (eval $ac_link) 2>&5 19411 ac_status=$? 19412 echo "$as_me:19412: \$? = $ac_status" >&5 19413 (exit "$ac_status"); } && 19414 { ac_try='test -s "conftest$ac_exeext"' 19415 { (eval echo "$as_me:19415: \"$ac_try\"") >&5 19416 (eval $ac_try) 2>&5 19417 ac_status=$? 19418 echo "$as_me:19418: \$? = $ac_status" >&5 19419 (exit "$ac_status"); }; }; then 19420 19421 cf_cv_regex_hdrs=$cf_regex_hdr 19422 break 19423 19424else 19425 echo "$as_me: failed program was:" >&5 19426cat "conftest.$ac_ext" >&5 19427fi 19428rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19429 done 19430 ;; 19431esac 19432 19433fi 19434echo "$as_me:19434: result: $cf_cv_regex_hdrs" >&5 19435echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 19436 19437case "$cf_cv_regex_hdrs" in 19438 (no) { echo "$as_me:19438: WARNING: no regular expression header found" >&5 19439echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 19440 (regex.h) 19441cat >>confdefs.h <<\EOF 19442#define HAVE_REGEX_H_FUNCS 1 19443EOF 19444 ;; 19445 (regexp.h) 19446cat >>confdefs.h <<\EOF 19447#define HAVE_REGEXP_H_FUNCS 1 19448EOF 19449 ;; 19450 (regexpr.h) 19451cat >>confdefs.h <<\EOF 19452#define HAVE_REGEXPR_H_FUNCS 1 19453EOF 19454 ;; 19455esac 19456 19457for ac_header in \ 19458fcntl.h \ 19459getopt.h \ 19460limits.h \ 19461locale.h \ 19462math.h \ 19463poll.h \ 19464sys/ioctl.h \ 19465sys/param.h \ 19466sys/poll.h \ 19467sys/select.h \ 19468sys/time.h \ 19469sys/times.h \ 19470ttyent.h \ 19471unistd.h \ 19472wctype.h \ 19473 19474do 19475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19476echo "$as_me:19476: checking for $ac_header" >&5 19477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19478if eval "test \"\${$as_ac_Header+set}\" = set"; then 19479 echo $ECHO_N "(cached) $ECHO_C" >&6 19480else 19481 cat >"conftest.$ac_ext" <<_ACEOF 19482#line 19482 "configure" 19483#include "confdefs.h" 19484#include <$ac_header> 19485_ACEOF 19486if { (eval echo "$as_me:19486: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19487 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19488 ac_status=$? 19489 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19490 rm -f conftest.er1 19491 cat conftest.err >&5 19492 echo "$as_me:19492: \$? = $ac_status" >&5 19493 (exit "$ac_status"); } >/dev/null; then 19494 if test -s conftest.err; then 19495 ac_cpp_err=$ac_c_preproc_warn_flag 19496 else 19497 ac_cpp_err= 19498 fi 19499else 19500 ac_cpp_err=yes 19501fi 19502if test -z "$ac_cpp_err"; then 19503 eval "$as_ac_Header=yes" 19504else 19505 echo "$as_me: failed program was:" >&5 19506 cat "conftest.$ac_ext" >&5 19507 eval "$as_ac_Header=no" 19508fi 19509rm -f conftest.err "conftest.$ac_ext" 19510fi 19511echo "$as_me:19511: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 19512echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 19513if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 19514 cat >>confdefs.h <<EOF 19515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19516EOF 19517 19518fi 19519done 19520 19521for ac_header in unistd.h getopt.h 19522do 19523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19524echo "$as_me:19524: checking for $ac_header" >&5 19525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19526if eval "test \"\${$as_ac_Header+set}\" = set"; then 19527 echo $ECHO_N "(cached) $ECHO_C" >&6 19528else 19529 cat >"conftest.$ac_ext" <<_ACEOF 19530#line 19530 "configure" 19531#include "confdefs.h" 19532#include <$ac_header> 19533_ACEOF 19534if { (eval echo "$as_me:19534: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19535 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19536 ac_status=$? 19537 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19538 rm -f conftest.er1 19539 cat conftest.err >&5 19540 echo "$as_me:19540: \$? = $ac_status" >&5 19541 (exit "$ac_status"); } >/dev/null; then 19542 if test -s conftest.err; then 19543 ac_cpp_err=$ac_c_preproc_warn_flag 19544 else 19545 ac_cpp_err= 19546 fi 19547else 19548 ac_cpp_err=yes 19549fi 19550if test -z "$ac_cpp_err"; then 19551 eval "$as_ac_Header=yes" 19552else 19553 echo "$as_me: failed program was:" >&5 19554 cat "conftest.$ac_ext" >&5 19555 eval "$as_ac_Header=no" 19556fi 19557rm -f conftest.err "conftest.$ac_ext" 19558fi 19559echo "$as_me:19559: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 19560echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 19561if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 19562 cat >>confdefs.h <<EOF 19563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19564EOF 19565 19566fi 19567done 19568 19569echo "$as_me:19569: checking for header declaring getopt variables" >&5 19570echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6 19571if test "${cf_cv_getopt_header+set}" = set; then 19572 echo $ECHO_N "(cached) $ECHO_C" >&6 19573else 19574 19575cf_cv_getopt_header=none 19576for cf_header in stdio.h stdlib.h unistd.h getopt.h 19577do 19578cat >"conftest.$ac_ext" <<_ACEOF 19579#line 19579 "configure" 19580#include "confdefs.h" 19581 19582#include <$cf_header> 19583int 19584main (void) 19585{ 19586int x = optind; char *y = optarg 19587 ; 19588 return 0; 19589} 19590_ACEOF 19591rm -f "conftest.$ac_objext" 19592if { (eval echo "$as_me:19592: \"$ac_compile\"") >&5 19593 (eval $ac_compile) 2>&5 19594 ac_status=$? 19595 echo "$as_me:19595: \$? = $ac_status" >&5 19596 (exit "$ac_status"); } && 19597 { ac_try='test -s "conftest.$ac_objext"' 19598 { (eval echo "$as_me:19598: \"$ac_try\"") >&5 19599 (eval $ac_try) 2>&5 19600 ac_status=$? 19601 echo "$as_me:19601: \$? = $ac_status" >&5 19602 (exit "$ac_status"); }; }; then 19603 cf_cv_getopt_header=$cf_header 19604 break 19605else 19606 echo "$as_me: failed program was:" >&5 19607cat "conftest.$ac_ext" >&5 19608fi 19609rm -f "conftest.$ac_objext" "conftest.$ac_ext" 19610done 19611 19612fi 19613echo "$as_me:19613: result: $cf_cv_getopt_header" >&5 19614echo "${ECHO_T}$cf_cv_getopt_header" >&6 19615if test "$cf_cv_getopt_header" != none ; then 19616 19617cat >>confdefs.h <<\EOF 19618#define HAVE_GETOPT_HEADER 1 19619EOF 19620 19621fi 19622if test "$cf_cv_getopt_header" = getopt.h ; then 19623 19624cat >>confdefs.h <<\EOF 19625#define NEED_GETOPT_H 1 19626EOF 19627 19628fi 19629 19630echo "$as_me:19630: checking if external environ is declared" >&5 19631echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6 19632if test "${cf_cv_dcl_environ+set}" = set; then 19633 echo $ECHO_N "(cached) $ECHO_C" >&6 19634else 19635 19636 cat >"conftest.$ac_ext" <<_ACEOF 19637#line 19637 "configure" 19638#include "confdefs.h" 19639 19640#ifdef HAVE_STDLIB_H 19641#include <stdlib.h> 19642#endif 19643#include <unistd.h> 19644int 19645main (void) 19646{ 19647int x = (int) environ 19648 ; 19649 return 0; 19650} 19651_ACEOF 19652rm -f "conftest.$ac_objext" 19653if { (eval echo "$as_me:19653: \"$ac_compile\"") >&5 19654 (eval $ac_compile) 2>&5 19655 ac_status=$? 19656 echo "$as_me:19656: \$? = $ac_status" >&5 19657 (exit "$ac_status"); } && 19658 { ac_try='test -s "conftest.$ac_objext"' 19659 { (eval echo "$as_me:19659: \"$ac_try\"") >&5 19660 (eval $ac_try) 2>&5 19661 ac_status=$? 19662 echo "$as_me:19662: \$? = $ac_status" >&5 19663 (exit "$ac_status"); }; }; then 19664 cf_cv_dcl_environ=yes 19665else 19666 echo "$as_me: failed program was:" >&5 19667cat "conftest.$ac_ext" >&5 19668cf_cv_dcl_environ=no 19669fi 19670rm -f "conftest.$ac_objext" "conftest.$ac_ext" 19671 19672fi 19673echo "$as_me:19673: result: $cf_cv_dcl_environ" >&5 19674echo "${ECHO_T}$cf_cv_dcl_environ" >&6 19675 19676if test "$cf_cv_dcl_environ" = no ; then 19677 19678cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 19679 19680 cat >>confdefs.h <<EOF 19681#define $cf_result 1 19682EOF 19683 19684fi 19685 19686# It's possible (for near-UNIX clones) that the data doesn't exist 19687 19688echo "$as_me:19688: checking if external environ exists" >&5 19689echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6 19690if test "${cf_cv_have_environ+set}" = set; then 19691 echo $ECHO_N "(cached) $ECHO_C" >&6 19692else 19693 19694 cat >"conftest.$ac_ext" <<_ACEOF 19695#line 19695 "configure" 19696#include "confdefs.h" 19697 19698#undef environ 19699extern int environ; 19700 19701int 19702main (void) 19703{ 19704environ = 2 19705 ; 19706 return 0; 19707} 19708_ACEOF 19709rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19710if { (eval echo "$as_me:19710: \"$ac_link\"") >&5 19711 (eval $ac_link) 2>&5 19712 ac_status=$? 19713 echo "$as_me:19713: \$? = $ac_status" >&5 19714 (exit "$ac_status"); } && 19715 { ac_try='test -s "conftest$ac_exeext"' 19716 { (eval echo "$as_me:19716: \"$ac_try\"") >&5 19717 (eval $ac_try) 2>&5 19718 ac_status=$? 19719 echo "$as_me:19719: \$? = $ac_status" >&5 19720 (exit "$ac_status"); }; }; then 19721 cf_cv_have_environ=yes 19722else 19723 echo "$as_me: failed program was:" >&5 19724cat "conftest.$ac_ext" >&5 19725cf_cv_have_environ=no 19726fi 19727rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19728 19729fi 19730echo "$as_me:19730: result: $cf_cv_have_environ" >&5 19731echo "${ECHO_T}$cf_cv_have_environ" >&6 19732 19733if test "$cf_cv_have_environ" = yes ; then 19734 19735cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 19736 19737 cat >>confdefs.h <<EOF 19738#define $cf_result 1 19739EOF 19740 19741fi 19742 19743echo "$as_me:19743: checking for getenv" >&5 19744echo $ECHO_N "checking for getenv... $ECHO_C" >&6 19745if test "${ac_cv_func_getenv+set}" = set; then 19746 echo $ECHO_N "(cached) $ECHO_C" >&6 19747else 19748 cat >"conftest.$ac_ext" <<_ACEOF 19749#line 19749 "configure" 19750#include "confdefs.h" 19751#define getenv autoconf_temporary 19752#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19753#undef getenv 19754 19755#ifdef __cplusplus 19756extern "C" 19757#endif 19758 19759/* We use char because int might match the return type of a gcc2 19760 builtin and then its argument prototype would still apply. */ 19761char getenv (void); 19762 19763int 19764main (void) 19765{ 19766 19767/* The GNU C library defines stubs for functions which it implements 19768 to always fail with ENOSYS. Some functions are actually named 19769 something starting with __ and the normal name is an alias. */ 19770#if defined (__stub_getenv) || defined (__stub___getenv) 19771#error found stub for getenv 19772#endif 19773 19774 return getenv (); 19775 ; 19776 return 0; 19777} 19778_ACEOF 19779rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19780if { (eval echo "$as_me:19780: \"$ac_link\"") >&5 19781 (eval $ac_link) 2>&5 19782 ac_status=$? 19783 echo "$as_me:19783: \$? = $ac_status" >&5 19784 (exit "$ac_status"); } && 19785 { ac_try='test -s "conftest$ac_exeext"' 19786 { (eval echo "$as_me:19786: \"$ac_try\"") >&5 19787 (eval $ac_try) 2>&5 19788 ac_status=$? 19789 echo "$as_me:19789: \$? = $ac_status" >&5 19790 (exit "$ac_status"); }; }; then 19791 ac_cv_func_getenv=yes 19792else 19793 echo "$as_me: failed program was:" >&5 19794cat "conftest.$ac_ext" >&5 19795ac_cv_func_getenv=no 19796fi 19797rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19798fi 19799echo "$as_me:19799: result: $ac_cv_func_getenv" >&5 19800echo "${ECHO_T}$ac_cv_func_getenv" >&6 19801 19802for ac_func in putenv setenv strdup 19803do 19804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19805echo "$as_me:19805: checking for $ac_func" >&5 19806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19807if eval "test \"\${$as_ac_var+set}\" = set"; then 19808 echo $ECHO_N "(cached) $ECHO_C" >&6 19809else 19810 cat >"conftest.$ac_ext" <<_ACEOF 19811#line 19811 "configure" 19812#include "confdefs.h" 19813#define $ac_func autoconf_temporary 19814#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19815#undef $ac_func 19816 19817#ifdef __cplusplus 19818extern "C" 19819#endif 19820 19821/* We use char because int might match the return type of a gcc2 19822 builtin and then its argument prototype would still apply. */ 19823char $ac_func (void); 19824 19825int 19826main (void) 19827{ 19828 19829/* The GNU C library defines stubs for functions which it implements 19830 to always fail with ENOSYS. Some functions are actually named 19831 something starting with __ and the normal name is an alias. */ 19832#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19833#error found stub for $ac_func 19834#endif 19835 19836 return $ac_func (); 19837 ; 19838 return 0; 19839} 19840_ACEOF 19841rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19842if { (eval echo "$as_me:19842: \"$ac_link\"") >&5 19843 (eval $ac_link) 2>&5 19844 ac_status=$? 19845 echo "$as_me:19845: \$? = $ac_status" >&5 19846 (exit "$ac_status"); } && 19847 { ac_try='test -s "conftest$ac_exeext"' 19848 { (eval echo "$as_me:19848: \"$ac_try\"") >&5 19849 (eval $ac_try) 2>&5 19850 ac_status=$? 19851 echo "$as_me:19851: \$? = $ac_status" >&5 19852 (exit "$ac_status"); }; }; then 19853 eval "$as_ac_var=yes" 19854else 19855 echo "$as_me: failed program was:" >&5 19856cat "conftest.$ac_ext" >&5 19857eval "$as_ac_var=no" 19858fi 19859rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19860fi 19861echo "$as_me:19861: result: `eval echo '${'"$as_ac_var"'}'`" >&5 19862echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 19863if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 19864 cat >>confdefs.h <<EOF 19865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19866EOF 19867 19868fi 19869done 19870 19871echo "$as_me:19871: checking if getenv returns consistent values" >&5 19872echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6 19873if test "${cf_cv_consistent_getenv+set}" = set; then 19874 echo $ECHO_N "(cached) $ECHO_C" >&6 19875else 19876 19877if test "$cross_compiling" = yes; then 19878 cf_cv_consistent_getenv=unknown 19879else 19880 cat >"conftest.$ac_ext" <<_ACEOF 19881#line 19881 "configure" 19882#include "confdefs.h" 19883 19884#include <stdlib.h> 19885#include <unistd.h> 19886#include <stdio.h> 19887#include <string.h> 19888#include <sys/types.h> 19889 19890#if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ) 19891extern char **environ; /* POSIX, but some systems are not... */ 19892#endif 19893 19894#if defined(HAVE_STRDUP) 19895#define str_alloc(s) strdup(s) 19896#else 19897#define str_alloc(s) strcpy(malloc(strlen(s) + 1, s)) 19898#endif 19899 19900static void set_value(const char *name, const char *value) 19901{ 19902#if defined(HAVE_SETENV) 19903 setenv(name, value, 1); 19904#elif defined(HAVE_PUTENV) 19905 char buffer[1024]; 19906 sprintf(buffer, "%s=%s", name, value); 19907 putenv(str_alloc(buffer)); 19908#else 19909#error neither putenv/setenv found 19910#endif 19911} 19912int main(void) 19913{ 19914 int pass; 19915 size_t numenv, limit, j; 19916 char **mynames; 19917 char **myvalues; 19918 char **mypointer; 19919 char *equals; 19920 for (numenv = 0; environ[numenv]; ++numenv) ; 19921 limit = numenv + 10; 19922 mynames = (char **) calloc(limit + 1, sizeof(char *)); 19923 myvalues = (char **) calloc(limit + 1, sizeof(char *)); 19924 mypointer = (char **) calloc(limit + 1, sizeof(char *)); 19925#if defined(HAVE_ENVIRON) 19926 for (j = 0; environ[j]; ++j) { 19927 mynames[j] = str_alloc(environ[j]); 19928 equals = strchr(mynames[j], '='); 19929 if (equals != 0) { 19930 *equals++ = '\\0'; 19931 myvalues[j] = str_alloc(equals); 19932 } else { 19933 myvalues[j] = str_alloc(""); 19934 } 19935 } 19936#endif 19937 for (j = numenv; j < limit; ++j) { 19938 char name[80]; 19939 char value[80]; 19940 size_t found; 19941 size_t k = 0; 19942 do { 19943 size_t jk; 19944 found = 0; 19945 sprintf(name, "TERM%lu", (unsigned long) k); 19946 for (jk = 0; jk < j; ++jk) { 19947 if (!strcmp(name, mynames[jk])) { 19948 found = 1; 19949 ++k; 19950 break; 19951 } 19952 } 19953 } while (found); 19954 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]); 19955 set_value(name, value); 19956 mynames[j] = str_alloc(name); 19957 myvalues[j] = str_alloc(value); 19958 } 19959 for (pass = 0; pass < 3; ++pass) { 19960 for (j = 0; j < limit; ++j) { 19961 char *value = getenv(mynames[j]); 19962 if (pass) { 19963 if (value == 0) { 19964 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]); 19965 ${cf_cv_main_return:-return}(1); 19966 } else if (value != mypointer[j]) { 19967 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]); 19968 ${cf_cv_main_return:-return}(1); 19969 } else if (strcmp(value, myvalues[j])) { 19970 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]); 19971 ${cf_cv_main_return:-return}(1); 19972 } 19973 } else { 19974 size_t k; 19975 mypointer[j] = value; 19976 for (k = 0; k < j; ++k) { 19977 if (mypointer[j] == mypointer[k]) { 19978 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]); 19979 ${cf_cv_main_return:-return}(1); 19980 } 19981 } 19982 } 19983 } 19984 } 19985 ${cf_cv_main_return:-return}(0); 19986} 19987 19988_ACEOF 19989rm -f "conftest$ac_exeext" 19990if { (eval echo "$as_me:19990: \"$ac_link\"") >&5 19991 (eval $ac_link) 2>&5 19992 ac_status=$? 19993 echo "$as_me:19993: \$? = $ac_status" >&5 19994 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 19995 { (eval echo "$as_me:19995: \"$ac_try\"") >&5 19996 (eval $ac_try) 2>&5 19997 ac_status=$? 19998 echo "$as_me:19998: \$? = $ac_status" >&5 19999 (exit "$ac_status"); }; }; then 20000 cf_cv_consistent_getenv=yes 20001else 20002 echo "$as_me: program exited with status $ac_status" >&5 20003echo "$as_me: failed program was:" >&5 20004cat "conftest.$ac_ext" >&5 20005cf_cv_consistent_getenv=no 20006fi 20007rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 20008fi 20009 20010fi 20011echo "$as_me:20011: result: $cf_cv_consistent_getenv" >&5 20012echo "${ECHO_T}$cf_cv_consistent_getenv" >&6 20013 20014if test "x$cf_cv_consistent_getenv" = xno 20015then 20016 20017cat >>confdefs.h <<\EOF 20018#define HAVE_CONSISTENT_GETENV 1 20019EOF 20020 20021fi 20022 20023if test "x$cf_cv_consistent_getenv" = xno && \ 20024 test "x$cf_with_trace" = xyes 20025then 20026 { echo "$as_me:20026: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5 20027echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;} 20028fi 20029 20030echo "$as_me:20030: checking if sys/time.h works with sys/select.h" >&5 20031echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6 20032if test "${cf_cv_sys_time_select+set}" = set; then 20033 echo $ECHO_N "(cached) $ECHO_C" >&6 20034else 20035 20036cat >"conftest.$ac_ext" <<_ACEOF 20037#line 20037 "configure" 20038#include "confdefs.h" 20039 20040#include <sys/types.h> 20041#ifdef HAVE_SYS_TIME_H 20042#include <sys/time.h> 20043#endif 20044#ifdef HAVE_SYS_SELECT_H 20045#include <sys/select.h> 20046#endif 20047 20048int 20049main (void) 20050{ 20051 20052 ; 20053 return 0; 20054} 20055_ACEOF 20056rm -f "conftest.$ac_objext" 20057if { (eval echo "$as_me:20057: \"$ac_compile\"") >&5 20058 (eval $ac_compile) 2>&5 20059 ac_status=$? 20060 echo "$as_me:20060: \$? = $ac_status" >&5 20061 (exit "$ac_status"); } && 20062 { ac_try='test -s "conftest.$ac_objext"' 20063 { (eval echo "$as_me:20063: \"$ac_try\"") >&5 20064 (eval $ac_try) 2>&5 20065 ac_status=$? 20066 echo "$as_me:20066: \$? = $ac_status" >&5 20067 (exit "$ac_status"); }; }; then 20068 cf_cv_sys_time_select=yes 20069else 20070 echo "$as_me: failed program was:" >&5 20071cat "conftest.$ac_ext" >&5 20072cf_cv_sys_time_select=no 20073fi 20074rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20075 20076fi 20077 20078echo "$as_me:20078: result: $cf_cv_sys_time_select" >&5 20079echo "${ECHO_T}$cf_cv_sys_time_select" >&6 20080test "$cf_cv_sys_time_select" = yes && 20081cat >>confdefs.h <<\EOF 20082#define HAVE_SYS_TIME_SELECT 1 20083EOF 20084 20085### checks for compiler characteristics 20086ac_ext=c 20087ac_cpp='$CPP $CPPFLAGS' 20088ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 20089ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 20090ac_compiler_gnu=$ac_cv_c_compiler_gnu 20091ac_main_return="return" 20092 20093echo "$as_me:20093: checking for an ANSI C-conforming const" >&5 20094echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20095if test "${ac_cv_c_const+set}" = set; then 20096 echo $ECHO_N "(cached) $ECHO_C" >&6 20097else 20098 cat >"conftest.$ac_ext" <<_ACEOF 20099#line 20099 "configure" 20100#include "confdefs.h" 20101 20102int 20103main (void) 20104{ 20105/* FIXME: Include the comments suggested by Paul. */ 20106#ifndef __cplusplus 20107 /* Ultrix mips cc rejects this. */ 20108 typedef int charset[2]; 20109 const charset x; 20110 /* SunOS 4.1.1 cc rejects this. */ 20111 char const *const *ccp; 20112 char **p; 20113 /* NEC SVR4.0.2 mips cc rejects this. */ 20114 struct point {int x, y;}; 20115 static struct point const zero = {0,0}; 20116 /* AIX XL C 1.02.0.0 rejects this. 20117 It does not let you subtract one const X* pointer from another in 20118 an arm of an if-expression whose if-part is not a constant 20119 expression */ 20120 const char *g = "string"; 20121 ccp = &g + (g ? g-g : 0); 20122 /* HPUX 7.0 cc rejects these. */ 20123 ++ccp; 20124 p = (char**) ccp; 20125 ccp = (char const *const *) p; 20126 { /* SCO 3.2v4 cc rejects this. */ 20127 char *t; 20128 char const *s = 0 ? (char *) 0 : (char const *) 0; 20129 20130 *t++ = 0; 20131 } 20132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20133 int x[] = {25, 17}; 20134 const int *foo = &x[0]; 20135 ++foo; 20136 } 20137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20138 typedef const int *iptr; 20139 iptr p = 0; 20140 ++p; 20141 } 20142 { /* AIX XL C 1.02.0.0 rejects this saying 20143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20144 struct s { int j; const int *ap[3]; }; 20145 struct s *b; b->j = 5; 20146 } 20147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20148 const int foo = 10; 20149 } 20150#endif 20151 20152 ; 20153 return 0; 20154} 20155_ACEOF 20156rm -f "conftest.$ac_objext" 20157if { (eval echo "$as_me:20157: \"$ac_compile\"") >&5 20158 (eval $ac_compile) 2>&5 20159 ac_status=$? 20160 echo "$as_me:20160: \$? = $ac_status" >&5 20161 (exit "$ac_status"); } && 20162 { ac_try='test -s "conftest.$ac_objext"' 20163 { (eval echo "$as_me:20163: \"$ac_try\"") >&5 20164 (eval $ac_try) 2>&5 20165 ac_status=$? 20166 echo "$as_me:20166: \$? = $ac_status" >&5 20167 (exit "$ac_status"); }; }; then 20168 ac_cv_c_const=yes 20169else 20170 echo "$as_me: failed program was:" >&5 20171cat "conftest.$ac_ext" >&5 20172ac_cv_c_const=no 20173fi 20174rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20175fi 20176echo "$as_me:20176: result: $ac_cv_c_const" >&5 20177echo "${ECHO_T}$ac_cv_c_const" >&6 20178if test $ac_cv_c_const = no; then 20179 20180cat >>confdefs.h <<\EOF 20181#define const 20182EOF 20183 20184fi 20185 20186echo "$as_me:20186: checking for inline" >&5 20187echo $ECHO_N "checking for inline... $ECHO_C" >&6 20188if test "${ac_cv_c_inline+set}" = set; then 20189 echo $ECHO_N "(cached) $ECHO_C" >&6 20190else 20191 ac_cv_c_inline=no 20192for ac_kw in inline __inline__ __inline; do 20193 cat >"conftest.$ac_ext" <<_ACEOF 20194#line 20194 "configure" 20195#include "confdefs.h" 20196#ifndef __cplusplus 20197static $ac_kw int static_foo () {return 0; } 20198$ac_kw int foo () {return 0; } 20199#endif 20200 20201_ACEOF 20202rm -f "conftest.$ac_objext" 20203if { (eval echo "$as_me:20203: \"$ac_compile\"") >&5 20204 (eval $ac_compile) 2>&5 20205 ac_status=$? 20206 echo "$as_me:20206: \$? = $ac_status" >&5 20207 (exit "$ac_status"); } && 20208 { ac_try='test -s "conftest.$ac_objext"' 20209 { (eval echo "$as_me:20209: \"$ac_try\"") >&5 20210 (eval $ac_try) 2>&5 20211 ac_status=$? 20212 echo "$as_me:20212: \$? = $ac_status" >&5 20213 (exit "$ac_status"); }; }; then 20214 ac_cv_c_inline=$ac_kw; break 20215else 20216 echo "$as_me: failed program was:" >&5 20217cat "conftest.$ac_ext" >&5 20218fi 20219rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20220done 20221 20222fi 20223echo "$as_me:20223: result: $ac_cv_c_inline" >&5 20224echo "${ECHO_T}$ac_cv_c_inline" >&6 20225case $ac_cv_c_inline in 20226 inline | yes) ;; 20227 no) 20228cat >>confdefs.h <<\EOF 20229#define inline 20230EOF 20231 ;; 20232 *) cat >>confdefs.h <<EOF 20233#define inline $ac_cv_c_inline 20234EOF 20235 ;; 20236esac 20237 20238NCURSES_INLINE= 20239if test "$ac_cv_c_inline" != no ; then 20240 NCURSES_INLINE=inline 20241 if test "$INTEL_COMPILER" = yes 20242 then 20243 : 20244 elif test "$CLANG_COMPILER" = yes 20245 then 20246 : 20247 elif test "$GCC" = yes 20248 then 20249 echo "$as_me:20249: checking if $CC supports options to tune inlining" >&5 20250echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6 20251if test "${cf_cv_gcc_inline+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253else 20254 20255 cf_save_CFLAGS=$CFLAGS 20256 CFLAGS="$CFLAGS --param max-inline-insns-single=1200" 20257 cat >"conftest.$ac_ext" <<_ACEOF 20258#line 20258 "configure" 20259#include "confdefs.h" 20260inline int foo(void) { return 1; } 20261int 20262main (void) 20263{ 20264${cf_cv_main_return:-return} foo() 20265 ; 20266 return 0; 20267} 20268_ACEOF 20269rm -f "conftest.$ac_objext" 20270if { (eval echo "$as_me:20270: \"$ac_compile\"") >&5 20271 (eval $ac_compile) 2>&5 20272 ac_status=$? 20273 echo "$as_me:20273: \$? = $ac_status" >&5 20274 (exit "$ac_status"); } && 20275 { ac_try='test -s "conftest.$ac_objext"' 20276 { (eval echo "$as_me:20276: \"$ac_try\"") >&5 20277 (eval $ac_try) 2>&5 20278 ac_status=$? 20279 echo "$as_me:20279: \$? = $ac_status" >&5 20280 (exit "$ac_status"); }; }; then 20281 cf_cv_gcc_inline=yes 20282else 20283 echo "$as_me: failed program was:" >&5 20284cat "conftest.$ac_ext" >&5 20285cf_cv_gcc_inline=no 20286fi 20287rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20288 CFLAGS=$cf_save_CFLAGS 20289 20290fi 20291echo "$as_me:20291: result: $cf_cv_gcc_inline" >&5 20292echo "${ECHO_T}$cf_cv_gcc_inline" >&6 20293 if test "$cf_cv_gcc_inline" = yes ; then 20294 20295cf_fix_cppflags=no 20296cf_new_cflags= 20297cf_new_cppflags= 20298cf_new_extra_cppflags= 20299 20300for cf_add_cflags in --param max-inline-insns-single=1200 20301do 20302case "$cf_fix_cppflags" in 20303(no) 20304 case "$cf_add_cflags" in 20305 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20306 case "$cf_add_cflags" in 20307 (-D*) 20308 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20309 20310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20311 && test -z "${cf_tst_cflags}" \ 20312 && cf_fix_cppflags=yes 20313 20314 if test "$cf_fix_cppflags" = yes ; then 20315 20316 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20317 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20318 20319 continue 20320 elif test "${cf_tst_cflags}" = "\"'" ; then 20321 20322 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20323 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20324 20325 continue 20326 fi 20327 ;; 20328 esac 20329 case "$CPPFLAGS" in 20330 (*$cf_add_cflags) 20331 ;; 20332 (*) 20333 case "$cf_add_cflags" in 20334 (-D*) 20335 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20336 20337CPPFLAGS=`echo "$CPPFLAGS" | \ 20338 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20339 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20340 20341 ;; 20342 esac 20343 20344 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20345 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20346 20347 ;; 20348 esac 20349 ;; 20350 (*) 20351 20352 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20353 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20354 20355 ;; 20356 esac 20357 ;; 20358(yes) 20359 20360 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20361 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20362 20363 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20364 20365 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20366 && test -z "${cf_tst_cflags}" \ 20367 && cf_fix_cppflags=no 20368 ;; 20369esac 20370done 20371 20372if test -n "$cf_new_cflags" ; then 20373 20374 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20375 CFLAGS="${CFLAGS}$cf_new_cflags" 20376 20377fi 20378 20379if test -n "$cf_new_cppflags" ; then 20380 20381 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20382 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20383 20384fi 20385 20386if test -n "$cf_new_extra_cppflags" ; then 20387 20388 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20389 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20390 20391fi 20392 20393 fi 20394 fi 20395fi 20396 20397echo "$as_me:20397: checking for signal global datatype" >&5 20398echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 20399if test "${cf_cv_sig_atomic_t+set}" = set; then 20400 echo $ECHO_N "(cached) $ECHO_C" >&6 20401else 20402 20403 for cf_type in \ 20404 "volatile sig_atomic_t" \ 20405 "sig_atomic_t" \ 20406 "int" 20407 do 20408 cat >"conftest.$ac_ext" <<_ACEOF 20409#line 20409 "configure" 20410#include "confdefs.h" 20411 20412#include <sys/types.h> 20413#include <signal.h> 20414#include <stdio.h> 20415 20416extern $cf_type x; 20417$cf_type x; 20418static void handler(int sig) 20419{ 20420 (void)sig; 20421 x = 5; 20422} 20423int 20424main (void) 20425{ 20426signal(SIGINT, handler); 20427 x = 1 20428 ; 20429 return 0; 20430} 20431_ACEOF 20432rm -f "conftest.$ac_objext" 20433if { (eval echo "$as_me:20433: \"$ac_compile\"") >&5 20434 (eval $ac_compile) 2>&5 20435 ac_status=$? 20436 echo "$as_me:20436: \$? = $ac_status" >&5 20437 (exit "$ac_status"); } && 20438 { ac_try='test -s "conftest.$ac_objext"' 20439 { (eval echo "$as_me:20439: \"$ac_try\"") >&5 20440 (eval $ac_try) 2>&5 20441 ac_status=$? 20442 echo "$as_me:20442: \$? = $ac_status" >&5 20443 (exit "$ac_status"); }; }; then 20444 cf_cv_sig_atomic_t=$cf_type 20445else 20446 echo "$as_me: failed program was:" >&5 20447cat "conftest.$ac_ext" >&5 20448cf_cv_sig_atomic_t=no 20449fi 20450rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20451 test "$cf_cv_sig_atomic_t" != no && break 20452 done 20453 20454fi 20455 20456echo "$as_me:20456: result: $cf_cv_sig_atomic_t" >&5 20457echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 20458test "$cf_cv_sig_atomic_t" != no && 20459cat >>confdefs.h <<EOF 20460#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 20461EOF 20462 20463if test "$NCURSES_CHTYPE" = auto ; then 20464 20465echo "$as_me:20465: checking for type of chtype" >&5 20466echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 20467if test "${cf_cv_typeof_chtype+set}" = set; then 20468 echo $ECHO_N "(cached) $ECHO_C" >&6 20469else 20470 20471 if test "$cross_compiling" = yes; then 20472 cf_cv_typeof_chtype=long 20473else 20474 cat >"conftest.$ac_ext" <<_ACEOF 20475#line 20475 "configure" 20476#include "confdefs.h" 20477 20478#define WANT_BITS 31 20479#include <stdio.h> 20480int main(void) 20481{ 20482 FILE *fp = fopen("cf_test.out", "w"); 20483 if (fp != 0) { 20484 char *result = "long"; 20485 if (sizeof(unsigned long) > sizeof(unsigned int)) { 20486 int n; 20487 unsigned int x, y; 20488 for (n = 0; n < WANT_BITS; n++) { 20489 x = (1 << n); 20490 y = (x >> n); 20491 if (y != 1 || x == 0) { 20492 x = 0; 20493 break; 20494 } 20495 } 20496 /* 20497 * If x is nonzero, an int is big enough for the bits 20498 * that we want. 20499 */ 20500 result = (x != 0) ? "int" : "long"; 20501 } 20502 fputs(result, fp); 20503 fclose(fp); 20504 } 20505 ${cf_cv_main_return:-return}(0); 20506} 20507 20508_ACEOF 20509rm -f "conftest$ac_exeext" 20510if { (eval echo "$as_me:20510: \"$ac_link\"") >&5 20511 (eval $ac_link) 2>&5 20512 ac_status=$? 20513 echo "$as_me:20513: \$? = $ac_status" >&5 20514 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 20515 { (eval echo "$as_me:20515: \"$ac_try\"") >&5 20516 (eval $ac_try) 2>&5 20517 ac_status=$? 20518 echo "$as_me:20518: \$? = $ac_status" >&5 20519 (exit "$ac_status"); }; }; then 20520 cf_cv_typeof_chtype=`cat cf_test.out` 20521else 20522 echo "$as_me: program exited with status $ac_status" >&5 20523echo "$as_me: failed program was:" >&5 20524cat "conftest.$ac_ext" >&5 20525cf_cv_typeof_chtype=long 20526fi 20527rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 20528fi 20529 rm -f cf_test.out 20530 20531fi 20532 20533echo "$as_me:20533: result: $cf_cv_typeof_chtype" >&5 20534echo "${ECHO_T}$cf_cv_typeof_chtype" >&6 20535 20536cat >>confdefs.h <<EOF 20537#define TYPEOF_CHTYPE $cf_cv_typeof_chtype 20538EOF 20539 20540else 20541 cf_cv_typeof_chtype=$NCURSES_CHTYPE 20542fi 20543test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype="" 20544 20545echo "$as_me:20545: checking if unsigned literals are legal" >&5 20546echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6 20547if test "${cf_cv_unsigned_literals+set}" = set; then 20548 echo $ECHO_N "(cached) $ECHO_C" >&6 20549else 20550 20551 cat >"conftest.$ac_ext" <<_ACEOF 20552#line 20552 "configure" 20553#include "confdefs.h" 20554 20555int 20556main (void) 20557{ 20558long x = 1L + 1UL + 1U + 1 20559 ; 20560 return 0; 20561} 20562_ACEOF 20563rm -f "conftest.$ac_objext" 20564if { (eval echo "$as_me:20564: \"$ac_compile\"") >&5 20565 (eval $ac_compile) 2>&5 20566 ac_status=$? 20567 echo "$as_me:20567: \$? = $ac_status" >&5 20568 (exit "$ac_status"); } && 20569 { ac_try='test -s "conftest.$ac_objext"' 20570 { (eval echo "$as_me:20570: \"$ac_try\"") >&5 20571 (eval $ac_try) 2>&5 20572 ac_status=$? 20573 echo "$as_me:20573: \$? = $ac_status" >&5 20574 (exit "$ac_status"); }; }; then 20575 cf_cv_unsigned_literals=yes 20576else 20577 echo "$as_me: failed program was:" >&5 20578cat "conftest.$ac_ext" >&5 20579cf_cv_unsigned_literals=no 20580fi 20581rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20582 20583fi 20584 20585echo "$as_me:20585: result: $cf_cv_unsigned_literals" >&5 20586echo "${ECHO_T}$cf_cv_unsigned_literals" >&6 20587 20588cf_cv_1UL="1" 20589test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U" 20590test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L" 20591 20592if test "$NCURSES_MMASK_T" = auto ; then 20593 cf_cv_typeof_mmask_t=long 20594else 20595 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T 20596fi 20597test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t="" 20598 20599### Checks for external-data 20600 20601echo "$as_me:20601: checking if external errno is declared" >&5 20602echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 20603if test "${cf_cv_dcl_errno+set}" = set; then 20604 echo $ECHO_N "(cached) $ECHO_C" >&6 20605else 20606 20607 cat >"conftest.$ac_ext" <<_ACEOF 20608#line 20608 "configure" 20609#include "confdefs.h" 20610 20611#ifdef HAVE_STDLIB_H 20612#include <stdlib.h> 20613#endif 20614#include <stdio.h> 20615#include <sys/types.h> 20616#include <errno.h> 20617int 20618main (void) 20619{ 20620int x = (int) errno; (void)x 20621 ; 20622 return 0; 20623} 20624_ACEOF 20625rm -f "conftest.$ac_objext" 20626if { (eval echo "$as_me:20626: \"$ac_compile\"") >&5 20627 (eval $ac_compile) 2>&5 20628 ac_status=$? 20629 echo "$as_me:20629: \$? = $ac_status" >&5 20630 (exit "$ac_status"); } && 20631 { ac_try='test -s "conftest.$ac_objext"' 20632 { (eval echo "$as_me:20632: \"$ac_try\"") >&5 20633 (eval $ac_try) 2>&5 20634 ac_status=$? 20635 echo "$as_me:20635: \$? = $ac_status" >&5 20636 (exit "$ac_status"); }; }; then 20637 cf_cv_dcl_errno=yes 20638else 20639 echo "$as_me: failed program was:" >&5 20640cat "conftest.$ac_ext" >&5 20641cf_cv_dcl_errno=no 20642fi 20643rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20644 20645fi 20646echo "$as_me:20646: result: $cf_cv_dcl_errno" >&5 20647echo "${ECHO_T}$cf_cv_dcl_errno" >&6 20648 20649if test "$cf_cv_dcl_errno" = no ; then 20650 20651cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20652 20653 cat >>confdefs.h <<EOF 20654#define $cf_result 1 20655EOF 20656 20657fi 20658 20659# It's possible (for near-UNIX clones) that the data doesn't exist 20660 20661echo "$as_me:20661: checking if external errno exists" >&5 20662echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 20663if test "${cf_cv_have_errno+set}" = set; then 20664 echo $ECHO_N "(cached) $ECHO_C" >&6 20665else 20666 20667 cat >"conftest.$ac_ext" <<_ACEOF 20668#line 20668 "configure" 20669#include "confdefs.h" 20670 20671#undef errno 20672extern int errno; 20673 20674int 20675main (void) 20676{ 20677errno = 2 20678 ; 20679 return 0; 20680} 20681_ACEOF 20682rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20683if { (eval echo "$as_me:20683: \"$ac_link\"") >&5 20684 (eval $ac_link) 2>&5 20685 ac_status=$? 20686 echo "$as_me:20686: \$? = $ac_status" >&5 20687 (exit "$ac_status"); } && 20688 { ac_try='test -s "conftest$ac_exeext"' 20689 { (eval echo "$as_me:20689: \"$ac_try\"") >&5 20690 (eval $ac_try) 2>&5 20691 ac_status=$? 20692 echo "$as_me:20692: \$? = $ac_status" >&5 20693 (exit "$ac_status"); }; }; then 20694 cf_cv_have_errno=yes 20695else 20696 echo "$as_me: failed program was:" >&5 20697cat "conftest.$ac_ext" >&5 20698cf_cv_have_errno=no 20699fi 20700rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20701 20702fi 20703echo "$as_me:20703: result: $cf_cv_have_errno" >&5 20704echo "${ECHO_T}$cf_cv_have_errno" >&6 20705 20706if test "$cf_cv_have_errno" = yes ; then 20707 20708cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20709 20710 cat >>confdefs.h <<EOF 20711#define $cf_result 1 20712EOF 20713 20714fi 20715 20716echo "$as_me:20716: checking if data-only library module links" >&5 20717echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6 20718if test "${cf_cv_link_dataonly+set}" = set; then 20719 echo $ECHO_N "(cached) $ECHO_C" >&6 20720else 20721 20722 rm -f conftest.a 20723 cat >conftest.$ac_ext <<EOF 20724#line 20724 "configure" 20725int testdata[3] = { 123, 456, 789 }; 20726EOF 20727 if { (eval echo "$as_me:20727: \"$ac_compile\"") >&5 20728 (eval $ac_compile) 2>&5 20729 ac_status=$? 20730 echo "$as_me:20730: \$? = $ac_status" >&5 20731 (exit "$ac_status"); } ; then 20732 mv conftest.o data.o && \ 20733 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null 20734 fi 20735 rm -f conftest.$ac_ext data.o 20736 cat >conftest.$ac_ext <<EOF 20737#line 20737 "configure" 20738int testfunc(void) 20739{ 20740#if defined(NeXT) 20741 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */ 20742#else 20743 extern int testdata[3]; 20744 return testdata[0] == 123 20745 && testdata[1] == 456 20746 && testdata[2] == 789; 20747#endif 20748} 20749EOF 20750 if { (eval echo "$as_me:20750: \"$ac_compile\"") >&5 20751 (eval $ac_compile) 2>&5 20752 ac_status=$? 20753 echo "$as_me:20753: \$? = $ac_status" >&5 20754 (exit "$ac_status"); }; then 20755 mv conftest.o func.o && \ 20756 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null 20757 fi 20758 rm -f conftest.$ac_ext func.o 20759 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null 20760 cf_saveLIBS="$LIBS" 20761 LIBS="conftest.a $LIBS" 20762 if test "$cross_compiling" = yes; then 20763 cf_cv_link_dataonly=unknown 20764else 20765 cat >"conftest.$ac_ext" <<_ACEOF 20766#line 20766 "configure" 20767#include "confdefs.h" 20768 20769 int main(void) 20770 { 20771 extern int testfunc(); 20772 ${cf_cv_main_return:-return} (!testfunc()); 20773 } 20774 20775_ACEOF 20776rm -f "conftest$ac_exeext" 20777if { (eval echo "$as_me:20777: \"$ac_link\"") >&5 20778 (eval $ac_link) 2>&5 20779 ac_status=$? 20780 echo "$as_me:20780: \$? = $ac_status" >&5 20781 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 20782 { (eval echo "$as_me:20782: \"$ac_try\"") >&5 20783 (eval $ac_try) 2>&5 20784 ac_status=$? 20785 echo "$as_me:20785: \$? = $ac_status" >&5 20786 (exit "$ac_status"); }; }; then 20787 cf_cv_link_dataonly=yes 20788else 20789 echo "$as_me: program exited with status $ac_status" >&5 20790echo "$as_me: failed program was:" >&5 20791cat "conftest.$ac_ext" >&5 20792cf_cv_link_dataonly=no 20793fi 20794rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 20795fi 20796 LIBS="$cf_saveLIBS" 20797 20798fi 20799 20800echo "$as_me:20800: result: $cf_cv_link_dataonly" >&5 20801echo "${ECHO_T}$cf_cv_link_dataonly" >&6 20802 20803if test "$cf_cv_link_dataonly" = no ; then 20804 20805cat >>confdefs.h <<\EOF 20806#define BROKEN_LINKER 1 20807EOF 20808 20809 BROKEN_LINKER=1 20810fi 20811 20812### Checks for library functions. 20813 20814for ac_func in \ 20815getcwd \ 20816getegid \ 20817geteuid \ 20818getopt \ 20819getttynam \ 20820issetugid \ 20821localeconv \ 20822poll \ 20823putenv \ 20824remove \ 20825select \ 20826setbuf \ 20827setbuffer \ 20828setenv \ 20829setvbuf \ 20830sigaction \ 20831sigvec \ 20832snprintf \ 20833strdup \ 20834strstr \ 20835sysconf \ 20836tcgetpgrp \ 20837times \ 20838tsearch \ 20839vsnprintf \ 20840 20841do 20842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20843echo "$as_me:20843: checking for $ac_func" >&5 20844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20845if eval "test \"\${$as_ac_var+set}\" = set"; then 20846 echo $ECHO_N "(cached) $ECHO_C" >&6 20847else 20848 cat >"conftest.$ac_ext" <<_ACEOF 20849#line 20849 "configure" 20850#include "confdefs.h" 20851#define $ac_func autoconf_temporary 20852#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 20853#undef $ac_func 20854 20855#ifdef __cplusplus 20856extern "C" 20857#endif 20858 20859/* We use char because int might match the return type of a gcc2 20860 builtin and then its argument prototype would still apply. */ 20861char $ac_func (void); 20862 20863int 20864main (void) 20865{ 20866 20867/* The GNU C library defines stubs for functions which it implements 20868 to always fail with ENOSYS. Some functions are actually named 20869 something starting with __ and the normal name is an alias. */ 20870#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20871#error found stub for $ac_func 20872#endif 20873 20874 return $ac_func (); 20875 ; 20876 return 0; 20877} 20878_ACEOF 20879rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20880if { (eval echo "$as_me:20880: \"$ac_link\"") >&5 20881 (eval $ac_link) 2>&5 20882 ac_status=$? 20883 echo "$as_me:20883: \$? = $ac_status" >&5 20884 (exit "$ac_status"); } && 20885 { ac_try='test -s "conftest$ac_exeext"' 20886 { (eval echo "$as_me:20886: \"$ac_try\"") >&5 20887 (eval $ac_try) 2>&5 20888 ac_status=$? 20889 echo "$as_me:20889: \$? = $ac_status" >&5 20890 (exit "$ac_status"); }; }; then 20891 eval "$as_ac_var=yes" 20892else 20893 echo "$as_me: failed program was:" >&5 20894cat "conftest.$ac_ext" >&5 20895eval "$as_ac_var=no" 20896fi 20897rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20898fi 20899echo "$as_me:20899: result: `eval echo '${'"$as_ac_var"'}'`" >&5 20900echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 20901if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 20902 cat >>confdefs.h <<EOF 20903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20904EOF 20905 20906fi 20907done 20908 20909if test "x$ac_cv_func_getopt" = xno && \ 20910 test "x$cf_with_progs$cf_with_tests" != xnono; then 20911 { { echo "$as_me:20911: error: getopt is required for building programs" >&5 20912echo "$as_me: error: getopt is required for building programs" >&2;} 20913 { (exit 1); exit 1; }; } 20914fi 20915 20916if test "x$with_safe_sprintf" = xyes 20917then 20918 if test "x$ac_cv_func_vsnprintf" = xyes 20919 then 20920 { echo "$as_me:20920: WARNING: will use vsnprintf instead of safe-sprintf option" >&5 20921echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;} 20922 else 20923 20924cat >>confdefs.h <<\EOF 20925#define USE_SAFE_SPRINTF 1 20926EOF 20927 20928 fi 20929fi 20930 20931if test "x$with_getcap" = "xyes" ; then 20932 20933echo "$as_me:20933: checking for terminal-capability database functions" >&5 20934echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6 20935if test "${cf_cv_cgetent+set}" = set; then 20936 echo $ECHO_N "(cached) $ECHO_C" >&6 20937else 20938 20939cat >"conftest.$ac_ext" <<_ACEOF 20940#line 20940 "configure" 20941#include "confdefs.h" 20942 20943#include <stdlib.h> 20944int 20945main (void) 20946{ 20947 20948 char temp[128]; 20949 char *buf = temp; 20950 char *db_array = temp; 20951 cgetent(&buf, &db_array, "vt100"); 20952 cgetcap(buf, "tc", '='); 20953 cgetmatch(buf, "tc"); 20954 20955 ; 20956 return 0; 20957} 20958_ACEOF 20959rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20960if { (eval echo "$as_me:20960: \"$ac_link\"") >&5 20961 (eval $ac_link) 2>&5 20962 ac_status=$? 20963 echo "$as_me:20963: \$? = $ac_status" >&5 20964 (exit "$ac_status"); } && 20965 { ac_try='test -s "conftest$ac_exeext"' 20966 { (eval echo "$as_me:20966: \"$ac_try\"") >&5 20967 (eval $ac_try) 2>&5 20968 ac_status=$? 20969 echo "$as_me:20969: \$? = $ac_status" >&5 20970 (exit "$ac_status"); }; }; then 20971 cf_cv_cgetent=yes 20972else 20973 echo "$as_me: failed program was:" >&5 20974cat "conftest.$ac_ext" >&5 20975cf_cv_cgetent=no 20976fi 20977rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20978 20979fi 20980echo "$as_me:20980: result: $cf_cv_cgetent" >&5 20981echo "${ECHO_T}$cf_cv_cgetent" >&6 20982 20983if test "$cf_cv_cgetent" = yes 20984then 20985 20986cat >>confdefs.h <<\EOF 20987#define HAVE_BSD_CGETENT 1 20988EOF 20989 20990echo "$as_me:20990: checking if cgetent uses const parameter" >&5 20991echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6 20992if test "${cf_cv_cgetent_const+set}" = set; then 20993 echo $ECHO_N "(cached) $ECHO_C" >&6 20994else 20995 20996cat >"conftest.$ac_ext" <<_ACEOF 20997#line 20997 "configure" 20998#include "confdefs.h" 20999 21000#pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers" 21001#include <stdlib.h> 21002int 21003main (void) 21004{ 21005 21006 char temp[128]; 21007 char *buf = temp; 21008#ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */ 21009 const char *db_array = temp; 21010 cgetent(&buf, &db_array, "vt100"); 21011#endif 21012 cgetcap(buf, "tc", '='); 21013 cgetmatch(buf, "tc"); 21014 21015 ; 21016 return 0; 21017} 21018_ACEOF 21019rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21020if { (eval echo "$as_me:21020: \"$ac_link\"") >&5 21021 (eval $ac_link) 2>&5 21022 ac_status=$? 21023 echo "$as_me:21023: \$? = $ac_status" >&5 21024 (exit "$ac_status"); } && 21025 { ac_try='test -s "conftest$ac_exeext"' 21026 { (eval echo "$as_me:21026: \"$ac_try\"") >&5 21027 (eval $ac_try) 2>&5 21028 ac_status=$? 21029 echo "$as_me:21029: \$? = $ac_status" >&5 21030 (exit "$ac_status"); }; }; then 21031 cf_cv_cgetent_const=yes 21032else 21033 echo "$as_me: failed program was:" >&5 21034cat "conftest.$ac_ext" >&5 21035cf_cv_cgetent_const=no 21036fi 21037rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21038 21039fi 21040echo "$as_me:21040: result: $cf_cv_cgetent_const" >&5 21041echo "${ECHO_T}$cf_cv_cgetent_const" >&6 21042 if test "$cf_cv_cgetent_const" = yes 21043 then 21044 21045cat >>confdefs.h <<EOF 21046#define CGETENT_CONST const 21047EOF 21048 21049 fi 21050fi 21051 21052fi 21053 21054echo "$as_me:21054: checking for isascii" >&5 21055echo $ECHO_N "checking for isascii... $ECHO_C" >&6 21056if test "${cf_cv_have_isascii+set}" = set; then 21057 echo $ECHO_N "(cached) $ECHO_C" >&6 21058else 21059 21060 cat >"conftest.$ac_ext" <<_ACEOF 21061#line 21061 "configure" 21062#include "confdefs.h" 21063#include <ctype.h> 21064int 21065main (void) 21066{ 21067int x = isascii(' ') 21068 ; 21069 return 0; 21070} 21071_ACEOF 21072rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21073if { (eval echo "$as_me:21073: \"$ac_link\"") >&5 21074 (eval $ac_link) 2>&5 21075 ac_status=$? 21076 echo "$as_me:21076: \$? = $ac_status" >&5 21077 (exit "$ac_status"); } && 21078 { ac_try='test -s "conftest$ac_exeext"' 21079 { (eval echo "$as_me:21079: \"$ac_try\"") >&5 21080 (eval $ac_try) 2>&5 21081 ac_status=$? 21082 echo "$as_me:21082: \$? = $ac_status" >&5 21083 (exit "$ac_status"); }; }; then 21084 cf_cv_have_isascii=yes 21085else 21086 echo "$as_me: failed program was:" >&5 21087cat "conftest.$ac_ext" >&5 21088cf_cv_have_isascii=no 21089fi 21090rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21091 21092fi 21093echo "$as_me:21093: result: $cf_cv_have_isascii" >&5 21094echo "${ECHO_T}$cf_cv_have_isascii" >&6 21095test "$cf_cv_have_isascii" = yes && 21096cat >>confdefs.h <<\EOF 21097#define HAVE_ISASCII 1 21098EOF 21099 21100if test "$ac_cv_func_sigaction" = yes; then 21101echo "$as_me:21101: checking whether sigaction needs _POSIX_SOURCE" >&5 21102echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6 21103cat >"conftest.$ac_ext" <<_ACEOF 21104#line 21104 "configure" 21105#include "confdefs.h" 21106 21107#include <sys/types.h> 21108#include <signal.h> 21109int 21110main (void) 21111{ 21112struct sigaction act 21113 ; 21114 return 0; 21115} 21116_ACEOF 21117rm -f "conftest.$ac_objext" 21118if { (eval echo "$as_me:21118: \"$ac_compile\"") >&5 21119 (eval $ac_compile) 2>&5 21120 ac_status=$? 21121 echo "$as_me:21121: \$? = $ac_status" >&5 21122 (exit "$ac_status"); } && 21123 { ac_try='test -s "conftest.$ac_objext"' 21124 { (eval echo "$as_me:21124: \"$ac_try\"") >&5 21125 (eval $ac_try) 2>&5 21126 ac_status=$? 21127 echo "$as_me:21127: \$? = $ac_status" >&5 21128 (exit "$ac_status"); }; }; then 21129 sigact_bad=no 21130else 21131 echo "$as_me: failed program was:" >&5 21132cat "conftest.$ac_ext" >&5 21133 21134cat >"conftest.$ac_ext" <<_ACEOF 21135#line 21135 "configure" 21136#include "confdefs.h" 21137 21138#define _POSIX_SOURCE 21139#include <sys/types.h> 21140#include <signal.h> 21141int 21142main (void) 21143{ 21144struct sigaction act 21145 ; 21146 return 0; 21147} 21148_ACEOF 21149rm -f "conftest.$ac_objext" 21150if { (eval echo "$as_me:21150: \"$ac_compile\"") >&5 21151 (eval $ac_compile) 2>&5 21152 ac_status=$? 21153 echo "$as_me:21153: \$? = $ac_status" >&5 21154 (exit "$ac_status"); } && 21155 { ac_try='test -s "conftest.$ac_objext"' 21156 { (eval echo "$as_me:21156: \"$ac_try\"") >&5 21157 (eval $ac_try) 2>&5 21158 ac_status=$? 21159 echo "$as_me:21159: \$? = $ac_status" >&5 21160 (exit "$ac_status"); }; }; then 21161 sigact_bad=yes 21162 21163cat >>confdefs.h <<\EOF 21164#define _POSIX_SOURCE 1 21165EOF 21166 21167else 21168 echo "$as_me: failed program was:" >&5 21169cat "conftest.$ac_ext" >&5 21170sigact_bad=unknown 21171fi 21172rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21173fi 21174rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21175echo "$as_me:21175: result: $sigact_bad" >&5 21176echo "${ECHO_T}$sigact_bad" >&6 21177fi 21178 21179echo "$as_me:21179: checking if nanosleep really works" >&5 21180echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6 21181if test "${cf_cv_func_nanosleep+set}" = set; then 21182 echo $ECHO_N "(cached) $ECHO_C" >&6 21183else 21184 21185if test "$cross_compiling" = yes; then 21186 cf_cv_func_nanosleep=unknown 21187else 21188 cat >"conftest.$ac_ext" <<_ACEOF 21189#line 21189 "configure" 21190#include "confdefs.h" 21191 21192#include <stdio.h> 21193#include <errno.h> 21194#include <time.h> 21195 21196#ifdef HAVE_SYS_TIME_H 21197#include <sys/time.h> 21198#endif 21199 21200int main(void) { 21201 struct timespec ts1, ts2; 21202 int code; 21203 ts1.tv_sec = 0; 21204 ts1.tv_nsec = 750000000; 21205 ts2.tv_sec = 0; 21206 ts2.tv_nsec = 0; 21207 errno = 0; 21208 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */ 21209 ${cf_cv_main_return:-return}(code != 0); 21210} 21211 21212_ACEOF 21213rm -f "conftest$ac_exeext" 21214if { (eval echo "$as_me:21214: \"$ac_link\"") >&5 21215 (eval $ac_link) 2>&5 21216 ac_status=$? 21217 echo "$as_me:21217: \$? = $ac_status" >&5 21218 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 21219 { (eval echo "$as_me:21219: \"$ac_try\"") >&5 21220 (eval $ac_try) 2>&5 21221 ac_status=$? 21222 echo "$as_me:21222: \$? = $ac_status" >&5 21223 (exit "$ac_status"); }; }; then 21224 cf_cv_func_nanosleep=yes 21225else 21226 echo "$as_me: program exited with status $ac_status" >&5 21227echo "$as_me: failed program was:" >&5 21228cat "conftest.$ac_ext" >&5 21229cf_cv_func_nanosleep=no 21230fi 21231rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 21232fi 21233fi 21234echo "$as_me:21234: result: $cf_cv_func_nanosleep" >&5 21235echo "${ECHO_T}$cf_cv_func_nanosleep" >&6 21236 21237test "$cf_cv_func_nanosleep" = "yes" && 21238cat >>confdefs.h <<\EOF 21239#define HAVE_NANOSLEEP 1 21240EOF 21241 21242for ac_header in \ 21243termio.h \ 21244termios.h \ 21245unistd.h \ 21246sys/ioctl.h \ 21247sys/termio.h \ 21248 21249do 21250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21251echo "$as_me:21251: checking for $ac_header" >&5 21252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21253if eval "test \"\${$as_ac_Header+set}\" = set"; then 21254 echo $ECHO_N "(cached) $ECHO_C" >&6 21255else 21256 cat >"conftest.$ac_ext" <<_ACEOF 21257#line 21257 "configure" 21258#include "confdefs.h" 21259#include <$ac_header> 21260_ACEOF 21261if { (eval echo "$as_me:21261: \"$ac_cpp "conftest.$ac_ext"\"") >&5 21262 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 21263 ac_status=$? 21264 $EGREP -v '^ *\+' conftest.er1 >conftest.err 21265 rm -f conftest.er1 21266 cat conftest.err >&5 21267 echo "$as_me:21267: \$? = $ac_status" >&5 21268 (exit "$ac_status"); } >/dev/null; then 21269 if test -s conftest.err; then 21270 ac_cpp_err=$ac_c_preproc_warn_flag 21271 else 21272 ac_cpp_err= 21273 fi 21274else 21275 ac_cpp_err=yes 21276fi 21277if test -z "$ac_cpp_err"; then 21278 eval "$as_ac_Header=yes" 21279else 21280 echo "$as_me: failed program was:" >&5 21281 cat "conftest.$ac_ext" >&5 21282 eval "$as_ac_Header=no" 21283fi 21284rm -f conftest.err "conftest.$ac_ext" 21285fi 21286echo "$as_me:21286: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 21287echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 21288if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 21289 cat >>confdefs.h <<EOF 21290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21291EOF 21292 21293fi 21294done 21295 21296if test "$ac_cv_header_termios_h" = yes ; then 21297 case "$CFLAGS $CPPFLAGS" in 21298 (*-D_POSIX_SOURCE*) 21299 termios_bad=dunno ;; 21300 (*) termios_bad=maybe ;; 21301 esac 21302 if test "$termios_bad" = maybe ; then 21303 echo "$as_me:21303: checking whether termios.h needs _POSIX_SOURCE" >&5 21304echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6 21305 cat >"conftest.$ac_ext" <<_ACEOF 21306#line 21306 "configure" 21307#include "confdefs.h" 21308#include <termios.h> 21309int 21310main (void) 21311{ 21312struct termios foo; int x = foo.c_iflag = 1; (void)x 21313 ; 21314 return 0; 21315} 21316_ACEOF 21317rm -f "conftest.$ac_objext" 21318if { (eval echo "$as_me:21318: \"$ac_compile\"") >&5 21319 (eval $ac_compile) 2>&5 21320 ac_status=$? 21321 echo "$as_me:21321: \$? = $ac_status" >&5 21322 (exit "$ac_status"); } && 21323 { ac_try='test -s "conftest.$ac_objext"' 21324 { (eval echo "$as_me:21324: \"$ac_try\"") >&5 21325 (eval $ac_try) 2>&5 21326 ac_status=$? 21327 echo "$as_me:21327: \$? = $ac_status" >&5 21328 (exit "$ac_status"); }; }; then 21329 termios_bad=no 21330else 21331 echo "$as_me: failed program was:" >&5 21332cat "conftest.$ac_ext" >&5 21333 21334 cat >"conftest.$ac_ext" <<_ACEOF 21335#line 21335 "configure" 21336#include "confdefs.h" 21337 21338#define _POSIX_SOURCE 21339#include <termios.h> 21340int 21341main (void) 21342{ 21343struct termios foo; int x = foo.c_iflag = 2; (void)x 21344 ; 21345 return 0; 21346} 21347_ACEOF 21348rm -f "conftest.$ac_objext" 21349if { (eval echo "$as_me:21349: \"$ac_compile\"") >&5 21350 (eval $ac_compile) 2>&5 21351 ac_status=$? 21352 echo "$as_me:21352: \$? = $ac_status" >&5 21353 (exit "$ac_status"); } && 21354 { ac_try='test -s "conftest.$ac_objext"' 21355 { (eval echo "$as_me:21355: \"$ac_try\"") >&5 21356 (eval $ac_try) 2>&5 21357 ac_status=$? 21358 echo "$as_me:21358: \$? = $ac_status" >&5 21359 (exit "$ac_status"); }; }; then 21360 termios_bad=unknown 21361else 21362 echo "$as_me: failed program was:" >&5 21363cat "conftest.$ac_ext" >&5 21364termios_bad=yes 21365cat >>confdefs.h <<\EOF 21366#define _POSIX_SOURCE 1 21367EOF 21368 21369fi 21370rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21371 21372fi 21373rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21374 echo "$as_me:21374: result: $termios_bad" >&5 21375echo "${ECHO_T}$termios_bad" >&6 21376 fi 21377fi 21378 21379echo "$as_me:21379: checking for tcgetattr" >&5 21380echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6 21381if test "${cf_cv_have_tcgetattr+set}" = set; then 21382 echo $ECHO_N "(cached) $ECHO_C" >&6 21383else 21384 21385cat >"conftest.$ac_ext" <<_ACEOF 21386#line 21386 "configure" 21387#include "confdefs.h" 21388 21389#include <sys/types.h> 21390#ifdef HAVE_UNISTD_H 21391#include <unistd.h> 21392#endif 21393#ifdef HAVE_TERMIOS_H 21394#include <termios.h> 21395#define TTY struct termios 21396#else 21397#ifdef HAVE_TERMIO_H 21398#include <termio.h> 21399#define TTY struct termio 21400#endif 21401#endif 21402 21403int 21404main (void) 21405{ 21406 21407TTY foo; 21408tcgetattr(1, &foo); 21409 ; 21410 return 0; 21411} 21412_ACEOF 21413rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21414if { (eval echo "$as_me:21414: \"$ac_link\"") >&5 21415 (eval $ac_link) 2>&5 21416 ac_status=$? 21417 echo "$as_me:21417: \$? = $ac_status" >&5 21418 (exit "$ac_status"); } && 21419 { ac_try='test -s "conftest$ac_exeext"' 21420 { (eval echo "$as_me:21420: \"$ac_try\"") >&5 21421 (eval $ac_try) 2>&5 21422 ac_status=$? 21423 echo "$as_me:21423: \$? = $ac_status" >&5 21424 (exit "$ac_status"); }; }; then 21425 cf_cv_have_tcgetattr=yes 21426else 21427 echo "$as_me: failed program was:" >&5 21428cat "conftest.$ac_ext" >&5 21429cf_cv_have_tcgetattr=no 21430fi 21431rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21432fi 21433echo "$as_me:21433: result: $cf_cv_have_tcgetattr" >&5 21434echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6 21435test "$cf_cv_have_tcgetattr" = yes && 21436cat >>confdefs.h <<\EOF 21437#define HAVE_TCGETATTR 1 21438EOF 21439 21440echo "$as_me:21440: checking for vsscanf function or workaround" >&5 21441echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6 21442if test "${cf_cv_func_vsscanf+set}" = set; then 21443 echo $ECHO_N "(cached) $ECHO_C" >&6 21444else 21445 21446cat >"conftest.$ac_ext" <<_ACEOF 21447#line 21447 "configure" 21448#include "confdefs.h" 21449 21450#include <stdarg.h> 21451#include <stdio.h> 21452int 21453main (void) 21454{ 21455 21456 va_list ap; 21457 vsscanf("from", "%d", ap) 21458 ; 21459 return 0; 21460} 21461_ACEOF 21462rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21463if { (eval echo "$as_me:21463: \"$ac_link\"") >&5 21464 (eval $ac_link) 2>&5 21465 ac_status=$? 21466 echo "$as_me:21466: \$? = $ac_status" >&5 21467 (exit "$ac_status"); } && 21468 { ac_try='test -s "conftest$ac_exeext"' 21469 { (eval echo "$as_me:21469: \"$ac_try\"") >&5 21470 (eval $ac_try) 2>&5 21471 ac_status=$? 21472 echo "$as_me:21472: \$? = $ac_status" >&5 21473 (exit "$ac_status"); }; }; then 21474 cf_cv_func_vsscanf=vsscanf 21475else 21476 echo "$as_me: failed program was:" >&5 21477cat "conftest.$ac_ext" >&5 21478 21479cat >"conftest.$ac_ext" <<_ACEOF 21480#line 21480 "configure" 21481#include "confdefs.h" 21482 21483#include <stdarg.h> 21484#include <stdio.h> 21485int 21486main (void) 21487{ 21488 21489 FILE strbuf; 21490 char *str = "from"; 21491 21492 strbuf._flag = _IOREAD; 21493 strbuf._ptr = strbuf._base = (unsigned char *) str; 21494 strbuf._cnt = strlen(str); 21495 strbuf._file = _NFILE; 21496 return (vfscanf(&strbuf, "%d", ap)) 21497 ; 21498 return 0; 21499} 21500_ACEOF 21501rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21502if { (eval echo "$as_me:21502: \"$ac_link\"") >&5 21503 (eval $ac_link) 2>&5 21504 ac_status=$? 21505 echo "$as_me:21505: \$? = $ac_status" >&5 21506 (exit "$ac_status"); } && 21507 { ac_try='test -s "conftest$ac_exeext"' 21508 { (eval echo "$as_me:21508: \"$ac_try\"") >&5 21509 (eval $ac_try) 2>&5 21510 ac_status=$? 21511 echo "$as_me:21511: \$? = $ac_status" >&5 21512 (exit "$ac_status"); }; }; then 21513 cf_cv_func_vsscanf=vfscanf 21514else 21515 echo "$as_me: failed program was:" >&5 21516cat "conftest.$ac_ext" >&5 21517 21518cat >"conftest.$ac_ext" <<_ACEOF 21519#line 21519 "configure" 21520#include "confdefs.h" 21521 21522#include <stdarg.h> 21523#include <stdio.h> 21524int 21525main (void) 21526{ 21527 21528 FILE strbuf; 21529 char *str = "from"; 21530 21531 strbuf._flag = _IOREAD; 21532 strbuf._ptr = strbuf._base = (unsigned char *) str; 21533 strbuf._cnt = strlen(str); 21534 strbuf._file = _NFILE; 21535 return (_doscan(&strbuf, "%d", ap)) 21536 ; 21537 return 0; 21538} 21539_ACEOF 21540rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21541if { (eval echo "$as_me:21541: \"$ac_link\"") >&5 21542 (eval $ac_link) 2>&5 21543 ac_status=$? 21544 echo "$as_me:21544: \$? = $ac_status" >&5 21545 (exit "$ac_status"); } && 21546 { ac_try='test -s "conftest$ac_exeext"' 21547 { (eval echo "$as_me:21547: \"$ac_try\"") >&5 21548 (eval $ac_try) 2>&5 21549 ac_status=$? 21550 echo "$as_me:21550: \$? = $ac_status" >&5 21551 (exit "$ac_status"); }; }; then 21552 cf_cv_func_vsscanf=_doscan 21553else 21554 echo "$as_me: failed program was:" >&5 21555cat "conftest.$ac_ext" >&5 21556 21557cf_cv_func_vsscanf=no 21558fi 21559rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21560fi 21561rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21562fi 21563rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21564fi 21565echo "$as_me:21565: result: $cf_cv_func_vsscanf" >&5 21566echo "${ECHO_T}$cf_cv_func_vsscanf" >&6 21567 21568case "$cf_cv_func_vsscanf" in 21569(vsscanf) 21570cat >>confdefs.h <<\EOF 21571#define HAVE_VSSCANF 1 21572EOF 21573;; 21574(vfscanf) 21575cat >>confdefs.h <<\EOF 21576#define HAVE_VFSCANF 1 21577EOF 21578;; 21579(_doscan) 21580cat >>confdefs.h <<\EOF 21581#define HAVE__DOSCAN 1 21582EOF 21583;; 21584esac 21585 21586for ac_header in \ 21587unistd.h \ 21588 21589do 21590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21591echo "$as_me:21591: checking for $ac_header" >&5 21592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21593if eval "test \"\${$as_ac_Header+set}\" = set"; then 21594 echo $ECHO_N "(cached) $ECHO_C" >&6 21595else 21596 cat >"conftest.$ac_ext" <<_ACEOF 21597#line 21597 "configure" 21598#include "confdefs.h" 21599#include <$ac_header> 21600_ACEOF 21601if { (eval echo "$as_me:21601: \"$ac_cpp "conftest.$ac_ext"\"") >&5 21602 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 21603 ac_status=$? 21604 $EGREP -v '^ *\+' conftest.er1 >conftest.err 21605 rm -f conftest.er1 21606 cat conftest.err >&5 21607 echo "$as_me:21607: \$? = $ac_status" >&5 21608 (exit "$ac_status"); } >/dev/null; then 21609 if test -s conftest.err; then 21610 ac_cpp_err=$ac_c_preproc_warn_flag 21611 else 21612 ac_cpp_err= 21613 fi 21614else 21615 ac_cpp_err=yes 21616fi 21617if test -z "$ac_cpp_err"; then 21618 eval "$as_ac_Header=yes" 21619else 21620 echo "$as_me: failed program was:" >&5 21621 cat "conftest.$ac_ext" >&5 21622 eval "$as_ac_Header=no" 21623fi 21624rm -f conftest.err "conftest.$ac_ext" 21625fi 21626echo "$as_me:21626: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 21627echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 21628if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 21629 cat >>confdefs.h <<EOF 21630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21631EOF 21632 21633fi 21634done 21635 21636echo "$as_me:21636: checking for working mkstemp" >&5 21637echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 21638if test "${cf_cv_func_mkstemp+set}" = set; then 21639 echo $ECHO_N "(cached) $ECHO_C" >&6 21640else 21641 21642rm -rf ./conftest* 21643if test "$cross_compiling" = yes; then 21644 cf_cv_func_mkstemp=maybe 21645else 21646 cat >"conftest.$ac_ext" <<_ACEOF 21647#line 21647 "configure" 21648#include "confdefs.h" 21649 21650#include <sys/types.h> 21651#ifdef HAVE_UNISTD_H 21652#include <unistd.h> 21653#endif 21654#include <stdlib.h> 21655#include <stdio.h> 21656#include <string.h> 21657#include <sys/stat.h> 21658int main(void) 21659{ 21660 char *tmpl = "conftestXXXXXX"; 21661 char name[2][80]; 21662 int n; 21663 int result = 0; 21664 int fd; 21665 struct stat sb; 21666 21667 umask(077); 21668 for (n = 0; n < 2; ++n) { 21669 strcpy(name[n], tmpl); 21670 if ((fd = mkstemp(name[n])) >= 0) { 21671 if (!strcmp(name[n], tmpl) 21672 || stat(name[n], &sb) != 0 21673 || (sb.st_mode & S_IFMT) != S_IFREG 21674 || (sb.st_mode & 077) != 0) { 21675 result = 1; 21676 } 21677 close(fd); 21678 } 21679 } 21680 if (result == 0 21681 && !strcmp(name[0], name[1])) 21682 result = 1; 21683 ${cf_cv_main_return:-return}(result); 21684} 21685 21686_ACEOF 21687rm -f "conftest$ac_exeext" 21688if { (eval echo "$as_me:21688: \"$ac_link\"") >&5 21689 (eval $ac_link) 2>&5 21690 ac_status=$? 21691 echo "$as_me:21691: \$? = $ac_status" >&5 21692 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 21693 { (eval echo "$as_me:21693: \"$ac_try\"") >&5 21694 (eval $ac_try) 2>&5 21695 ac_status=$? 21696 echo "$as_me:21696: \$? = $ac_status" >&5 21697 (exit "$ac_status"); }; }; then 21698 cf_cv_func_mkstemp=yes 21699 21700else 21701 echo "$as_me: program exited with status $ac_status" >&5 21702echo "$as_me: failed program was:" >&5 21703cat "conftest.$ac_ext" >&5 21704cf_cv_func_mkstemp=no 21705 21706fi 21707rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 21708fi 21709 21710fi 21711echo "$as_me:21711: result: $cf_cv_func_mkstemp" >&5 21712echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 21713if test "x$cf_cv_func_mkstemp" = xmaybe ; then 21714 echo "$as_me:21714: checking for mkstemp" >&5 21715echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 21716if test "${ac_cv_func_mkstemp+set}" = set; then 21717 echo $ECHO_N "(cached) $ECHO_C" >&6 21718else 21719 cat >"conftest.$ac_ext" <<_ACEOF 21720#line 21720 "configure" 21721#include "confdefs.h" 21722#define mkstemp autoconf_temporary 21723#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21724#undef mkstemp 21725 21726#ifdef __cplusplus 21727extern "C" 21728#endif 21729 21730/* We use char because int might match the return type of a gcc2 21731 builtin and then its argument prototype would still apply. */ 21732char mkstemp (void); 21733 21734int 21735main (void) 21736{ 21737 21738/* The GNU C library defines stubs for functions which it implements 21739 to always fail with ENOSYS. Some functions are actually named 21740 something starting with __ and the normal name is an alias. */ 21741#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 21742#error found stub for mkstemp 21743#endif 21744 21745 return mkstemp (); 21746 ; 21747 return 0; 21748} 21749_ACEOF 21750rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21751if { (eval echo "$as_me:21751: \"$ac_link\"") >&5 21752 (eval $ac_link) 2>&5 21753 ac_status=$? 21754 echo "$as_me:21754: \$? = $ac_status" >&5 21755 (exit "$ac_status"); } && 21756 { ac_try='test -s "conftest$ac_exeext"' 21757 { (eval echo "$as_me:21757: \"$ac_try\"") >&5 21758 (eval $ac_try) 2>&5 21759 ac_status=$? 21760 echo "$as_me:21760: \$? = $ac_status" >&5 21761 (exit "$ac_status"); }; }; then 21762 ac_cv_func_mkstemp=yes 21763else 21764 echo "$as_me: failed program was:" >&5 21765cat "conftest.$ac_ext" >&5 21766ac_cv_func_mkstemp=no 21767fi 21768rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21769fi 21770echo "$as_me:21770: result: $ac_cv_func_mkstemp" >&5 21771echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 21772 21773fi 21774if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 21775 21776cat >>confdefs.h <<\EOF 21777#define HAVE_MKSTEMP 1 21778EOF 21779 21780fi 21781 21782# setup for prototype of fallback for vsscanf() 21783 21784if test "$cf_cv_func_vsscanf" = vsscanf ; then 21785 HAVE_VSSCANF=1 21786else 21787 HAVE_VSSCANF=0 21788fi 21789 21790if test "x$cross_compiling" = xyes ; then 21791 { echo "$as_me:21791: WARNING: cross compiling: assume setvbuf params not reversed" >&5 21792echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;} 21793else 21794 echo "$as_me:21794: checking whether setvbuf arguments are reversed" >&5 21795echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 21796if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 21797 echo $ECHO_N "(cached) $ECHO_C" >&6 21798else 21799 if test "$cross_compiling" = yes; then 21800 { { echo "$as_me:21800: error: cannot run test program while cross compiling" >&5 21801echo "$as_me: error: cannot run test program while cross compiling" >&2;} 21802 { (exit 1); exit 1; }; } 21803else 21804 cat >"conftest.$ac_ext" <<_ACEOF 21805#line 21805 "configure" 21806#include "confdefs.h" 21807#include <stdio.h> 21808/* If setvbuf has the reversed format, exit 0. */ 21809int 21810main (void) 21811{ 21812 /* This call has the arguments reversed. 21813 A reversed system may check and see that the address of main 21814 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 21815 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 21816 $ac_main_return(1); 21817 putc('\r', stdout); 21818 $ac_main_return(0); /* Non-reversed systems segv here. */ 21819} 21820_ACEOF 21821rm -f "conftest$ac_exeext" 21822if { (eval echo "$as_me:21822: \"$ac_link\"") >&5 21823 (eval $ac_link) 2>&5 21824 ac_status=$? 21825 echo "$as_me:21825: \$? = $ac_status" >&5 21826 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 21827 { (eval echo "$as_me:21827: \"$ac_try\"") >&5 21828 (eval $ac_try) 2>&5 21829 ac_status=$? 21830 echo "$as_me:21830: \$? = $ac_status" >&5 21831 (exit "$ac_status"); }; }; then 21832 ac_cv_func_setvbuf_reversed=yes 21833else 21834 echo "$as_me: program exited with status $ac_status" >&5 21835echo "$as_me: failed program was:" >&5 21836cat "conftest.$ac_ext" >&5 21837ac_cv_func_setvbuf_reversed=no 21838fi 21839rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 21840fi 21841rm -f core ./core.* ./*.core 21842fi 21843echo "$as_me:21843: result: $ac_cv_func_setvbuf_reversed" >&5 21844echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 21845if test $ac_cv_func_setvbuf_reversed = yes; then 21846 21847cat >>confdefs.h <<\EOF 21848#define SETVBUF_REVERSED 1 21849EOF 21850 21851fi 21852 21853fi 21854echo "$as_me:21854: checking for intptr_t" >&5 21855echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 21856if test "${ac_cv_type_intptr_t+set}" = set; then 21857 echo $ECHO_N "(cached) $ECHO_C" >&6 21858else 21859 cat >"conftest.$ac_ext" <<_ACEOF 21860#line 21860 "configure" 21861#include "confdefs.h" 21862$ac_includes_default 21863int 21864main (void) 21865{ 21866if ((intptr_t *) 0) 21867 return 0; 21868if (sizeof (intptr_t)) 21869 return 0; 21870 ; 21871 return 0; 21872} 21873_ACEOF 21874rm -f "conftest.$ac_objext" 21875if { (eval echo "$as_me:21875: \"$ac_compile\"") >&5 21876 (eval $ac_compile) 2>&5 21877 ac_status=$? 21878 echo "$as_me:21878: \$? = $ac_status" >&5 21879 (exit "$ac_status"); } && 21880 { ac_try='test -s "conftest.$ac_objext"' 21881 { (eval echo "$as_me:21881: \"$ac_try\"") >&5 21882 (eval $ac_try) 2>&5 21883 ac_status=$? 21884 echo "$as_me:21884: \$? = $ac_status" >&5 21885 (exit "$ac_status"); }; }; then 21886 ac_cv_type_intptr_t=yes 21887else 21888 echo "$as_me: failed program was:" >&5 21889cat "conftest.$ac_ext" >&5 21890ac_cv_type_intptr_t=no 21891fi 21892rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21893fi 21894echo "$as_me:21894: result: $ac_cv_type_intptr_t" >&5 21895echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 21896if test "$ac_cv_type_intptr_t" = yes; then 21897 : 21898else 21899 21900cat >>confdefs.h <<EOF 21901#define intptr_t long 21902EOF 21903 21904fi 21905 21906echo "$as_me:21906: checking for ssize_t" >&5 21907echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 21908if test "${ac_cv_type_ssize_t+set}" = set; then 21909 echo $ECHO_N "(cached) $ECHO_C" >&6 21910else 21911 cat >"conftest.$ac_ext" <<_ACEOF 21912#line 21912 "configure" 21913#include "confdefs.h" 21914$ac_includes_default 21915int 21916main (void) 21917{ 21918if ((ssize_t *) 0) 21919 return 0; 21920if (sizeof (ssize_t)) 21921 return 0; 21922 ; 21923 return 0; 21924} 21925_ACEOF 21926rm -f "conftest.$ac_objext" 21927if { (eval echo "$as_me:21927: \"$ac_compile\"") >&5 21928 (eval $ac_compile) 2>&5 21929 ac_status=$? 21930 echo "$as_me:21930: \$? = $ac_status" >&5 21931 (exit "$ac_status"); } && 21932 { ac_try='test -s "conftest.$ac_objext"' 21933 { (eval echo "$as_me:21933: \"$ac_try\"") >&5 21934 (eval $ac_try) 2>&5 21935 ac_status=$? 21936 echo "$as_me:21936: \$? = $ac_status" >&5 21937 (exit "$ac_status"); }; }; then 21938 ac_cv_type_ssize_t=yes 21939else 21940 echo "$as_me: failed program was:" >&5 21941cat "conftest.$ac_ext" >&5 21942ac_cv_type_ssize_t=no 21943fi 21944rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21945fi 21946echo "$as_me:21946: result: $ac_cv_type_ssize_t" >&5 21947echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 21948if test "$ac_cv_type_ssize_t" = yes; then 21949 : 21950else 21951 21952cat >>confdefs.h <<EOF 21953#define ssize_t int 21954EOF 21955 21956fi 21957 21958echo "$as_me:21958: checking for type sigaction_t" >&5 21959echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6 21960if test "${cf_cv_type_sigaction+set}" = set; then 21961 echo $ECHO_N "(cached) $ECHO_C" >&6 21962else 21963 21964 cat >"conftest.$ac_ext" <<_ACEOF 21965#line 21965 "configure" 21966#include "confdefs.h" 21967 21968#include <signal.h> 21969int 21970main (void) 21971{ 21972sigaction_t x 21973 ; 21974 return 0; 21975} 21976_ACEOF 21977rm -f "conftest.$ac_objext" 21978if { (eval echo "$as_me:21978: \"$ac_compile\"") >&5 21979 (eval $ac_compile) 2>&5 21980 ac_status=$? 21981 echo "$as_me:21981: \$? = $ac_status" >&5 21982 (exit "$ac_status"); } && 21983 { ac_try='test -s "conftest.$ac_objext"' 21984 { (eval echo "$as_me:21984: \"$ac_try\"") >&5 21985 (eval $ac_try) 2>&5 21986 ac_status=$? 21987 echo "$as_me:21987: \$? = $ac_status" >&5 21988 (exit "$ac_status"); }; }; then 21989 cf_cv_type_sigaction=yes 21990else 21991 echo "$as_me: failed program was:" >&5 21992cat "conftest.$ac_ext" >&5 21993cf_cv_type_sigaction=no 21994fi 21995rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21996fi 21997 21998echo "$as_me:21998: result: $cf_cv_type_sigaction" >&5 21999echo "${ECHO_T}$cf_cv_type_sigaction" >&6 22000test "$cf_cv_type_sigaction" = yes && 22001cat >>confdefs.h <<\EOF 22002#define HAVE_TYPE_SIGACTION 1 22003EOF 22004 22005echo "$as_me:22005: checking declaration of size-change" >&5 22006echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6 22007if test "${cf_cv_sizechange+set}" = set; then 22008 echo $ECHO_N "(cached) $ECHO_C" >&6 22009else 22010 22011 cf_cv_sizechange=unknown 22012 cf_save_CPPFLAGS="$CPPFLAGS" 22013 22014for cf_opts in "" "NEED_PTEM_H" 22015do 22016 22017 CPPFLAGS="$cf_save_CPPFLAGS" 22018 if test -n "$cf_opts" 22019 then 22020 22021 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 22022 CPPFLAGS="${CPPFLAGS}-D$cf_opts" 22023 22024 fi 22025 cat >"conftest.$ac_ext" <<_ACEOF 22026#line 22026 "configure" 22027#include "confdefs.h" 22028#include <sys/types.h> 22029#ifdef HAVE_TERMIOS_H 22030#include <termios.h> 22031#else 22032#ifdef HAVE_TERMIO_H 22033#include <termio.h> 22034#endif 22035#endif 22036 22037#ifdef NEED_PTEM_H 22038/* This is a workaround for SCO: they neglected to define struct winsize in 22039 * termios.h -- it's only in termio.h and ptem.h 22040 */ 22041#include <sys/stream.h> 22042#include <sys/ptem.h> 22043#endif 22044 22045#ifdef HAVE_SYS_IOCTL_H 22046#include <sys/ioctl.h> 22047#endif 22048 22049int 22050main (void) 22051{ 22052 22053#ifdef TIOCGSIZE 22054 struct ttysize win; /* SunOS 3.0... */ 22055 int y = win.ts_lines = 2; 22056 int x = win.ts_cols = 1; 22057 (void)y; 22058 (void)x; 22059#else 22060#ifdef TIOCGWINSZ 22061 struct winsize win; /* everything else */ 22062 int y = win.ws_row = 2; 22063 int x = win.ws_col = 1; 22064 (void)y; 22065 (void)x; 22066#else 22067 no TIOCGSIZE or TIOCGWINSZ 22068#endif /* TIOCGWINSZ */ 22069#endif /* TIOCGSIZE */ 22070 22071 ; 22072 return 0; 22073} 22074_ACEOF 22075rm -f "conftest.$ac_objext" 22076if { (eval echo "$as_me:22076: \"$ac_compile\"") >&5 22077 (eval $ac_compile) 2>&5 22078 ac_status=$? 22079 echo "$as_me:22079: \$? = $ac_status" >&5 22080 (exit "$ac_status"); } && 22081 { ac_try='test -s "conftest.$ac_objext"' 22082 { (eval echo "$as_me:22082: \"$ac_try\"") >&5 22083 (eval $ac_try) 2>&5 22084 ac_status=$? 22085 echo "$as_me:22085: \$? = $ac_status" >&5 22086 (exit "$ac_status"); }; }; then 22087 cf_cv_sizechange=yes 22088else 22089 echo "$as_me: failed program was:" >&5 22090cat "conftest.$ac_ext" >&5 22091cf_cv_sizechange=no 22092fi 22093rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22094 22095 CPPFLAGS="$cf_save_CPPFLAGS" 22096 if test "$cf_cv_sizechange" = yes ; then 22097 echo "size-change succeeded ($cf_opts)" >&5 22098 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts" 22099 break 22100 fi 22101done 22102 22103fi 22104echo "$as_me:22104: result: $cf_cv_sizechange" >&5 22105echo "${ECHO_T}$cf_cv_sizechange" >&6 22106if test "$cf_cv_sizechange" != no ; then 22107 22108cat >>confdefs.h <<\EOF 22109#define HAVE_SIZECHANGE 1 22110EOF 22111 22112 case "$cf_cv_sizechange" in 22113 (NEED*) 22114 cat >>confdefs.h <<EOF 22115#define $cf_cv_sizechange 1 22116EOF 22117 22118 ;; 22119 esac 22120fi 22121 22122echo "$as_me:22122: checking for memmove" >&5 22123echo $ECHO_N "checking for memmove... $ECHO_C" >&6 22124if test "${ac_cv_func_memmove+set}" = set; then 22125 echo $ECHO_N "(cached) $ECHO_C" >&6 22126else 22127 cat >"conftest.$ac_ext" <<_ACEOF 22128#line 22128 "configure" 22129#include "confdefs.h" 22130#define memmove autoconf_temporary 22131#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22132#undef memmove 22133 22134#ifdef __cplusplus 22135extern "C" 22136#endif 22137 22138/* We use char because int might match the return type of a gcc2 22139 builtin and then its argument prototype would still apply. */ 22140char memmove (void); 22141 22142int 22143main (void) 22144{ 22145 22146/* The GNU C library defines stubs for functions which it implements 22147 to always fail with ENOSYS. Some functions are actually named 22148 something starting with __ and the normal name is an alias. */ 22149#if defined (__stub_memmove) || defined (__stub___memmove) 22150#error found stub for memmove 22151#endif 22152 22153 return memmove (); 22154 ; 22155 return 0; 22156} 22157_ACEOF 22158rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22159if { (eval echo "$as_me:22159: \"$ac_link\"") >&5 22160 (eval $ac_link) 2>&5 22161 ac_status=$? 22162 echo "$as_me:22162: \$? = $ac_status" >&5 22163 (exit "$ac_status"); } && 22164 { ac_try='test -s "conftest$ac_exeext"' 22165 { (eval echo "$as_me:22165: \"$ac_try\"") >&5 22166 (eval $ac_try) 2>&5 22167 ac_status=$? 22168 echo "$as_me:22168: \$? = $ac_status" >&5 22169 (exit "$ac_status"); }; }; then 22170 ac_cv_func_memmove=yes 22171else 22172 echo "$as_me: failed program was:" >&5 22173cat "conftest.$ac_ext" >&5 22174ac_cv_func_memmove=no 22175fi 22176rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22177fi 22178echo "$as_me:22178: result: $ac_cv_func_memmove" >&5 22179echo "${ECHO_T}$ac_cv_func_memmove" >&6 22180if test "$ac_cv_func_memmove" = yes; then 22181 : 22182else 22183 22184echo "$as_me:22184: checking for bcopy" >&5 22185echo $ECHO_N "checking for bcopy... $ECHO_C" >&6 22186if test "${ac_cv_func_bcopy+set}" = set; then 22187 echo $ECHO_N "(cached) $ECHO_C" >&6 22188else 22189 cat >"conftest.$ac_ext" <<_ACEOF 22190#line 22190 "configure" 22191#include "confdefs.h" 22192#define bcopy autoconf_temporary 22193#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22194#undef bcopy 22195 22196#ifdef __cplusplus 22197extern "C" 22198#endif 22199 22200/* We use char because int might match the return type of a gcc2 22201 builtin and then its argument prototype would still apply. */ 22202char bcopy (void); 22203 22204int 22205main (void) 22206{ 22207 22208/* The GNU C library defines stubs for functions which it implements 22209 to always fail with ENOSYS. Some functions are actually named 22210 something starting with __ and the normal name is an alias. */ 22211#if defined (__stub_bcopy) || defined (__stub___bcopy) 22212#error found stub for bcopy 22213#endif 22214 22215 return bcopy (); 22216 ; 22217 return 0; 22218} 22219_ACEOF 22220rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22221if { (eval echo "$as_me:22221: \"$ac_link\"") >&5 22222 (eval $ac_link) 2>&5 22223 ac_status=$? 22224 echo "$as_me:22224: \$? = $ac_status" >&5 22225 (exit "$ac_status"); } && 22226 { ac_try='test -s "conftest$ac_exeext"' 22227 { (eval echo "$as_me:22227: \"$ac_try\"") >&5 22228 (eval $ac_try) 2>&5 22229 ac_status=$? 22230 echo "$as_me:22230: \$? = $ac_status" >&5 22231 (exit "$ac_status"); }; }; then 22232 ac_cv_func_bcopy=yes 22233else 22234 echo "$as_me: failed program was:" >&5 22235cat "conftest.$ac_ext" >&5 22236ac_cv_func_bcopy=no 22237fi 22238rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22239fi 22240echo "$as_me:22240: result: $ac_cv_func_bcopy" >&5 22241echo "${ECHO_T}$ac_cv_func_bcopy" >&6 22242if test "$ac_cv_func_bcopy" = yes; then 22243 22244 echo "$as_me:22244: checking if bcopy does overlapping moves" >&5 22245echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6 22246if test "${cf_cv_good_bcopy+set}" = set; then 22247 echo $ECHO_N "(cached) $ECHO_C" >&6 22248else 22249 22250 if test "$cross_compiling" = yes; then 22251 cf_cv_good_bcopy=unknown 22252else 22253 cat >"conftest.$ac_ext" <<_ACEOF 22254#line 22254 "configure" 22255#include "confdefs.h" 22256 22257int main(void) { 22258 static char data[] = "abcdefghijklmnopqrstuwwxyz"; 22259 char temp[40]; 22260 bcopy(data, temp, sizeof(data)); 22261 bcopy(temp+10, temp, 15); 22262 bcopy(temp+5, temp+15, 10); 22263 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz")); 22264} 22265 22266_ACEOF 22267rm -f "conftest$ac_exeext" 22268if { (eval echo "$as_me:22268: \"$ac_link\"") >&5 22269 (eval $ac_link) 2>&5 22270 ac_status=$? 22271 echo "$as_me:22271: \$? = $ac_status" >&5 22272 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22273 { (eval echo "$as_me:22273: \"$ac_try\"") >&5 22274 (eval $ac_try) 2>&5 22275 ac_status=$? 22276 echo "$as_me:22276: \$? = $ac_status" >&5 22277 (exit "$ac_status"); }; }; then 22278 cf_cv_good_bcopy=yes 22279else 22280 echo "$as_me: program exited with status $ac_status" >&5 22281echo "$as_me: failed program was:" >&5 22282cat "conftest.$ac_ext" >&5 22283cf_cv_good_bcopy=no 22284fi 22285rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22286fi 22287 22288fi 22289echo "$as_me:22289: result: $cf_cv_good_bcopy" >&5 22290echo "${ECHO_T}$cf_cv_good_bcopy" >&6 22291 22292else 22293 cf_cv_good_bcopy=no 22294fi 22295 22296 if test "$cf_cv_good_bcopy" = yes ; then 22297 22298cat >>confdefs.h <<\EOF 22299#define USE_OK_BCOPY 1 22300EOF 22301 22302 else 22303 22304cat >>confdefs.h <<\EOF 22305#define USE_MY_MEMMOVE 1 22306EOF 22307 22308 fi 22309 22310fi 22311 22312tty >/dev/null 2>&1 || { 22313for ac_func in posix_openpt 22314do 22315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22316echo "$as_me:22316: checking for $ac_func" >&5 22317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22318if eval "test \"\${$as_ac_var+set}\" = set"; then 22319 echo $ECHO_N "(cached) $ECHO_C" >&6 22320else 22321 cat >"conftest.$ac_ext" <<_ACEOF 22322#line 22322 "configure" 22323#include "confdefs.h" 22324#define $ac_func autoconf_temporary 22325#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22326#undef $ac_func 22327 22328#ifdef __cplusplus 22329extern "C" 22330#endif 22331 22332/* We use char because int might match the return type of a gcc2 22333 builtin and then its argument prototype would still apply. */ 22334char $ac_func (void); 22335 22336int 22337main (void) 22338{ 22339 22340/* The GNU C library defines stubs for functions which it implements 22341 to always fail with ENOSYS. Some functions are actually named 22342 something starting with __ and the normal name is an alias. */ 22343#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22344#error found stub for $ac_func 22345#endif 22346 22347 return $ac_func (); 22348 ; 22349 return 0; 22350} 22351_ACEOF 22352rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22353if { (eval echo "$as_me:22353: \"$ac_link\"") >&5 22354 (eval $ac_link) 2>&5 22355 ac_status=$? 22356 echo "$as_me:22356: \$? = $ac_status" >&5 22357 (exit "$ac_status"); } && 22358 { ac_try='test -s "conftest$ac_exeext"' 22359 { (eval echo "$as_me:22359: \"$ac_try\"") >&5 22360 (eval $ac_try) 2>&5 22361 ac_status=$? 22362 echo "$as_me:22362: \$? = $ac_status" >&5 22363 (exit "$ac_status"); }; }; then 22364 eval "$as_ac_var=yes" 22365else 22366 echo "$as_me: failed program was:" >&5 22367cat "conftest.$ac_ext" >&5 22368eval "$as_ac_var=no" 22369fi 22370rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22371fi 22372echo "$as_me:22372: result: `eval echo '${'"$as_ac_var"'}'`" >&5 22373echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 22374if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 22375 cat >>confdefs.h <<EOF 22376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22377EOF 22378 22379fi 22380done 22381 } 22382echo "$as_me:22382: checking if poll really works" >&5 22383echo $ECHO_N "checking if poll really works... $ECHO_C" >&6 22384if test "${cf_cv_working_poll+set}" = set; then 22385 echo $ECHO_N "(cached) $ECHO_C" >&6 22386else 22387 22388if test "$cross_compiling" = yes; then 22389 cf_cv_working_poll=unknown 22390else 22391 cat >"conftest.$ac_ext" <<_ACEOF 22392#line 22392 "configure" 22393#include "confdefs.h" 22394 22395#include <stdlib.h> 22396#include <stdio.h> 22397#include <unistd.h> 22398#include <fcntl.h> 22399#ifdef HAVE_POLL_H 22400#include <poll.h> 22401#else 22402#include <sys/poll.h> 22403#endif 22404int main(void) { 22405 struct pollfd myfds; 22406 int ret; 22407 22408 /* check for Darwin bug with respect to "devices" */ 22409 myfds.fd = open("/dev/null", 1); /* O_WRONLY */ 22410 if (myfds.fd < 0) 22411 myfds.fd = 0; 22412 myfds.events = POLLIN; 22413 myfds.revents = 0; 22414 22415 ret = poll(&myfds, 1, 100); 22416 22417 if (ret < 0 || (myfds.revents & POLLNVAL)) { 22418 ret = -1; 22419 } else { 22420 int fd = 0; 22421 if (!isatty(fd)) { 22422 fd = open("/dev/tty", 2); /* O_RDWR */ 22423 } 22424#ifdef HAVE_POSIX_OPENPT 22425 if (fd < 0) { 22426 fd = posix_openpt(O_RDWR); 22427 } 22428#endif 22429 22430 if (fd >= 0) { 22431 /* also check with standard input */ 22432 myfds.fd = fd; 22433 myfds.events = POLLIN; 22434 myfds.revents = 0; 22435 ret = poll(&myfds, 1, 100); 22436 } else { 22437 ret = -1; 22438 } 22439 } 22440 ${cf_cv_main_return:-return}(ret < 0); 22441} 22442_ACEOF 22443rm -f "conftest$ac_exeext" 22444if { (eval echo "$as_me:22444: \"$ac_link\"") >&5 22445 (eval $ac_link) 2>&5 22446 ac_status=$? 22447 echo "$as_me:22447: \$? = $ac_status" >&5 22448 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22449 { (eval echo "$as_me:22449: \"$ac_try\"") >&5 22450 (eval $ac_try) 2>&5 22451 ac_status=$? 22452 echo "$as_me:22452: \$? = $ac_status" >&5 22453 (exit "$ac_status"); }; }; then 22454 cf_cv_working_poll=yes 22455else 22456 echo "$as_me: program exited with status $ac_status" >&5 22457echo "$as_me: failed program was:" >&5 22458cat "conftest.$ac_ext" >&5 22459cf_cv_working_poll=no 22460fi 22461rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22462fi 22463fi 22464echo "$as_me:22464: result: $cf_cv_working_poll" >&5 22465echo "${ECHO_T}$cf_cv_working_poll" >&6 22466test "$cf_cv_working_poll" = "yes" && 22467cat >>confdefs.h <<\EOF 22468#define HAVE_WORKING_POLL 1 22469EOF 22470 22471echo "$as_me:22471: checking for va_copy" >&5 22472echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 22473if test "${cf_cv_have_va_copy+set}" = set; then 22474 echo $ECHO_N "(cached) $ECHO_C" >&6 22475else 22476 22477cat >"conftest.$ac_ext" <<_ACEOF 22478#line 22478 "configure" 22479#include "confdefs.h" 22480 22481#include <stdarg.h> 22482 22483int 22484main (void) 22485{ 22486 22487 static va_list dst; 22488 static va_list src; 22489 va_copy(dst, src) 22490 ; 22491 return 0; 22492} 22493_ACEOF 22494rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22495if { (eval echo "$as_me:22495: \"$ac_link\"") >&5 22496 (eval $ac_link) 2>&5 22497 ac_status=$? 22498 echo "$as_me:22498: \$? = $ac_status" >&5 22499 (exit "$ac_status"); } && 22500 { ac_try='test -s "conftest$ac_exeext"' 22501 { (eval echo "$as_me:22501: \"$ac_try\"") >&5 22502 (eval $ac_try) 2>&5 22503 ac_status=$? 22504 echo "$as_me:22504: \$? = $ac_status" >&5 22505 (exit "$ac_status"); }; }; then 22506 cf_cv_have_va_copy=yes 22507else 22508 echo "$as_me: failed program was:" >&5 22509cat "conftest.$ac_ext" >&5 22510cf_cv_have_va_copy=no 22511fi 22512rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22513fi 22514echo "$as_me:22514: result: $cf_cv_have_va_copy" >&5 22515echo "${ECHO_T}$cf_cv_have_va_copy" >&6 22516 22517if test "$cf_cv_have_va_copy" = yes; 22518then 22519 22520cat >>confdefs.h <<\EOF 22521#define HAVE_VA_COPY 1 22522EOF 22523 22524else # !cf_cv_have_va_copy 22525 22526echo "$as_me:22526: checking for __va_copy" >&5 22527echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 22528if test "${cf_cv_have___va_copy+set}" = set; then 22529 echo $ECHO_N "(cached) $ECHO_C" >&6 22530else 22531 22532cat >"conftest.$ac_ext" <<_ACEOF 22533#line 22533 "configure" 22534#include "confdefs.h" 22535 22536#include <stdarg.h> 22537 22538int 22539main (void) 22540{ 22541 22542 static va_list dst; 22543 static va_list src; 22544 __va_copy(dst, src) 22545 ; 22546 return 0; 22547} 22548_ACEOF 22549rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22550if { (eval echo "$as_me:22550: \"$ac_link\"") >&5 22551 (eval $ac_link) 2>&5 22552 ac_status=$? 22553 echo "$as_me:22553: \$? = $ac_status" >&5 22554 (exit "$ac_status"); } && 22555 { ac_try='test -s "conftest$ac_exeext"' 22556 { (eval echo "$as_me:22556: \"$ac_try\"") >&5 22557 (eval $ac_try) 2>&5 22558 ac_status=$? 22559 echo "$as_me:22559: \$? = $ac_status" >&5 22560 (exit "$ac_status"); }; }; then 22561 cf_cv_have___va_copy=yes 22562else 22563 echo "$as_me: failed program was:" >&5 22564cat "conftest.$ac_ext" >&5 22565cf_cv_have___va_copy=no 22566fi 22567rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22568fi 22569echo "$as_me:22569: result: $cf_cv_have___va_copy" >&5 22570echo "${ECHO_T}$cf_cv_have___va_copy" >&6 22571 22572if test "$cf_cv_have___va_copy" = yes 22573then 22574 22575cat >>confdefs.h <<\EOF 22576#define HAVE___VA_COPY 1 22577EOF 22578 22579else # !cf_cv_have___va_copy 22580 22581echo "$as_me:22581: checking for __builtin_va_copy" >&5 22582echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6 22583if test "${cf_cv_have___builtin_va_copy+set}" = set; then 22584 echo $ECHO_N "(cached) $ECHO_C" >&6 22585else 22586 22587cat >"conftest.$ac_ext" <<_ACEOF 22588#line 22588 "configure" 22589#include "confdefs.h" 22590 22591#include <stdarg.h> 22592 22593int 22594main (void) 22595{ 22596 22597 static va_list dst; 22598 static va_list src; 22599 __builtin_va_copy(dst, src) 22600 ; 22601 return 0; 22602} 22603_ACEOF 22604rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22605if { (eval echo "$as_me:22605: \"$ac_link\"") >&5 22606 (eval $ac_link) 2>&5 22607 ac_status=$? 22608 echo "$as_me:22608: \$? = $ac_status" >&5 22609 (exit "$ac_status"); } && 22610 { ac_try='test -s "conftest$ac_exeext"' 22611 { (eval echo "$as_me:22611: \"$ac_try\"") >&5 22612 (eval $ac_try) 2>&5 22613 ac_status=$? 22614 echo "$as_me:22614: \$? = $ac_status" >&5 22615 (exit "$ac_status"); }; }; then 22616 cf_cv_have___builtin_va_copy=yes 22617else 22618 echo "$as_me: failed program was:" >&5 22619cat "conftest.$ac_ext" >&5 22620cf_cv_have___builtin_va_copy=no 22621fi 22622rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22623fi 22624echo "$as_me:22624: result: $cf_cv_have___builtin_va_copy" >&5 22625echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6 22626 22627test "$cf_cv_have___builtin_va_copy" = yes && 22628 22629cat >>confdefs.h <<\EOF 22630#define HAVE___BUILTIN_VA_COPY 1 22631EOF 22632 22633fi # cf_cv_have___va_copy 22634 22635fi # cf_cv_have_va_copy 22636 22637case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in 22638(*yes*) 22639 ;; 22640 22641(*) 22642 echo "$as_me:22642: checking if we can simply copy va_list" >&5 22643echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6 22644if test "${cf_cv_pointer_va_list+set}" = set; then 22645 echo $ECHO_N "(cached) $ECHO_C" >&6 22646else 22647 22648cat >"conftest.$ac_ext" <<_ACEOF 22649#line 22649 "configure" 22650#include "confdefs.h" 22651 22652#include <stdarg.h> 22653 22654int 22655main (void) 22656{ 22657 22658 va_list dst; 22659 va_list src; 22660 dst = src 22661 ; 22662 return 0; 22663} 22664_ACEOF 22665rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22666if { (eval echo "$as_me:22666: \"$ac_link\"") >&5 22667 (eval $ac_link) 2>&5 22668 ac_status=$? 22669 echo "$as_me:22669: \$? = $ac_status" >&5 22670 (exit "$ac_status"); } && 22671 { ac_try='test -s "conftest$ac_exeext"' 22672 { (eval echo "$as_me:22672: \"$ac_try\"") >&5 22673 (eval $ac_try) 2>&5 22674 ac_status=$? 22675 echo "$as_me:22675: \$? = $ac_status" >&5 22676 (exit "$ac_status"); }; }; then 22677 cf_cv_pointer_va_list=yes 22678else 22679 echo "$as_me: failed program was:" >&5 22680cat "conftest.$ac_ext" >&5 22681cf_cv_pointer_va_list=no 22682fi 22683rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22684fi 22685echo "$as_me:22685: result: $cf_cv_pointer_va_list" >&5 22686echo "${ECHO_T}$cf_cv_pointer_va_list" >&6 22687 22688 if test "$cf_cv_pointer_va_list" = no 22689 then 22690 echo "$as_me:22690: checking if we can copy va_list indirectly" >&5 22691echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6 22692if test "${cf_cv_array_va_list+set}" = set; then 22693 echo $ECHO_N "(cached) $ECHO_C" >&6 22694else 22695 22696cat >"conftest.$ac_ext" <<_ACEOF 22697#line 22697 "configure" 22698#include "confdefs.h" 22699 22700#include <stdarg.h> 22701 22702int 22703main (void) 22704{ 22705 22706 va_list dst; 22707 va_list src; 22708 *dst = *src 22709 ; 22710 return 0; 22711} 22712_ACEOF 22713rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22714if { (eval echo "$as_me:22714: \"$ac_link\"") >&5 22715 (eval $ac_link) 2>&5 22716 ac_status=$? 22717 echo "$as_me:22717: \$? = $ac_status" >&5 22718 (exit "$ac_status"); } && 22719 { ac_try='test -s "conftest$ac_exeext"' 22720 { (eval echo "$as_me:22720: \"$ac_try\"") >&5 22721 (eval $ac_try) 2>&5 22722 ac_status=$? 22723 echo "$as_me:22723: \$? = $ac_status" >&5 22724 (exit "$ac_status"); }; }; then 22725 cf_cv_array_va_list=yes 22726else 22727 echo "$as_me: failed program was:" >&5 22728cat "conftest.$ac_ext" >&5 22729cf_cv_array_va_list=no 22730fi 22731rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22732fi 22733echo "$as_me:22733: result: $cf_cv_array_va_list" >&5 22734echo "${ECHO_T}$cf_cv_array_va_list" >&6 22735 test "$cf_cv_array_va_list" = yes && 22736cat >>confdefs.h <<\EOF 22737#define ARRAY_VA_LIST 1 22738EOF 22739 22740 fi 22741 ;; 22742esac 22743 22744echo "$as_me:22744: checking for pid_t" >&5 22745echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 22746if test "${ac_cv_type_pid_t+set}" = set; then 22747 echo $ECHO_N "(cached) $ECHO_C" >&6 22748else 22749 cat >"conftest.$ac_ext" <<_ACEOF 22750#line 22750 "configure" 22751#include "confdefs.h" 22752$ac_includes_default 22753int 22754main (void) 22755{ 22756if ((pid_t *) 0) 22757 return 0; 22758if (sizeof (pid_t)) 22759 return 0; 22760 ; 22761 return 0; 22762} 22763_ACEOF 22764rm -f "conftest.$ac_objext" 22765if { (eval echo "$as_me:22765: \"$ac_compile\"") >&5 22766 (eval $ac_compile) 2>&5 22767 ac_status=$? 22768 echo "$as_me:22768: \$? = $ac_status" >&5 22769 (exit "$ac_status"); } && 22770 { ac_try='test -s "conftest.$ac_objext"' 22771 { (eval echo "$as_me:22771: \"$ac_try\"") >&5 22772 (eval $ac_try) 2>&5 22773 ac_status=$? 22774 echo "$as_me:22774: \$? = $ac_status" >&5 22775 (exit "$ac_status"); }; }; then 22776 ac_cv_type_pid_t=yes 22777else 22778 echo "$as_me: failed program was:" >&5 22779cat "conftest.$ac_ext" >&5 22780ac_cv_type_pid_t=no 22781fi 22782rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22783fi 22784echo "$as_me:22784: result: $ac_cv_type_pid_t" >&5 22785echo "${ECHO_T}$ac_cv_type_pid_t" >&6 22786if test "$ac_cv_type_pid_t" = yes; then 22787 : 22788else 22789 22790cat >>confdefs.h <<EOF 22791#define pid_t int 22792EOF 22793 22794fi 22795 22796for ac_header in unistd.h vfork.h 22797do 22798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22799echo "$as_me:22799: checking for $ac_header" >&5 22800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22801if eval "test \"\${$as_ac_Header+set}\" = set"; then 22802 echo $ECHO_N "(cached) $ECHO_C" >&6 22803else 22804 cat >"conftest.$ac_ext" <<_ACEOF 22805#line 22805 "configure" 22806#include "confdefs.h" 22807#include <$ac_header> 22808_ACEOF 22809if { (eval echo "$as_me:22809: \"$ac_cpp "conftest.$ac_ext"\"") >&5 22810 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 22811 ac_status=$? 22812 $EGREP -v '^ *\+' conftest.er1 >conftest.err 22813 rm -f conftest.er1 22814 cat conftest.err >&5 22815 echo "$as_me:22815: \$? = $ac_status" >&5 22816 (exit "$ac_status"); } >/dev/null; then 22817 if test -s conftest.err; then 22818 ac_cpp_err=$ac_c_preproc_warn_flag 22819 else 22820 ac_cpp_err= 22821 fi 22822else 22823 ac_cpp_err=yes 22824fi 22825if test -z "$ac_cpp_err"; then 22826 eval "$as_ac_Header=yes" 22827else 22828 echo "$as_me: failed program was:" >&5 22829 cat "conftest.$ac_ext" >&5 22830 eval "$as_ac_Header=no" 22831fi 22832rm -f conftest.err "conftest.$ac_ext" 22833fi 22834echo "$as_me:22834: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 22835echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 22836if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 22837 cat >>confdefs.h <<EOF 22838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22839EOF 22840 22841fi 22842done 22843 22844for ac_func in fork vfork 22845do 22846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22847echo "$as_me:22847: checking for $ac_func" >&5 22848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22849if eval "test \"\${$as_ac_var+set}\" = set"; then 22850 echo $ECHO_N "(cached) $ECHO_C" >&6 22851else 22852 cat >"conftest.$ac_ext" <<_ACEOF 22853#line 22853 "configure" 22854#include "confdefs.h" 22855#define $ac_func autoconf_temporary 22856#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22857#undef $ac_func 22858 22859#ifdef __cplusplus 22860extern "C" 22861#endif 22862 22863/* We use char because int might match the return type of a gcc2 22864 builtin and then its argument prototype would still apply. */ 22865char $ac_func (void); 22866 22867int 22868main (void) 22869{ 22870 22871/* The GNU C library defines stubs for functions which it implements 22872 to always fail with ENOSYS. Some functions are actually named 22873 something starting with __ and the normal name is an alias. */ 22874#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22875#error found stub for $ac_func 22876#endif 22877 22878 return $ac_func (); 22879 ; 22880 return 0; 22881} 22882_ACEOF 22883rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22884if { (eval echo "$as_me:22884: \"$ac_link\"") >&5 22885 (eval $ac_link) 2>&5 22886 ac_status=$? 22887 echo "$as_me:22887: \$? = $ac_status" >&5 22888 (exit "$ac_status"); } && 22889 { ac_try='test -s "conftest$ac_exeext"' 22890 { (eval echo "$as_me:22890: \"$ac_try\"") >&5 22891 (eval $ac_try) 2>&5 22892 ac_status=$? 22893 echo "$as_me:22893: \$? = $ac_status" >&5 22894 (exit "$ac_status"); }; }; then 22895 eval "$as_ac_var=yes" 22896else 22897 echo "$as_me: failed program was:" >&5 22898cat "conftest.$ac_ext" >&5 22899eval "$as_ac_var=no" 22900fi 22901rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22902fi 22903echo "$as_me:22903: result: `eval echo '${'"$as_ac_var"'}'`" >&5 22904echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 22905if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 22906 cat >>confdefs.h <<EOF 22907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22908EOF 22909 22910fi 22911done 22912 22913ac_cv_func_fork_works=$ac_cv_func_fork 22914if test "x$ac_cv_func_fork" = xyes; then 22915 echo "$as_me:22915: checking for working fork" >&5 22916echo $ECHO_N "checking for working fork... $ECHO_C" >&6 22917if test "${ac_cv_func_fork_works+set}" = set; then 22918 echo $ECHO_N "(cached) $ECHO_C" >&6 22919else 22920 if test "$cross_compiling" = yes; then 22921 ac_cv_func_fork_works=cross 22922else 22923 cat >"conftest.$ac_ext" <<_ACEOF 22924/* By Rüdiger Kuhlmann. */ 22925 #include <sys/types.h> 22926 #if HAVE_UNISTD_H 22927 # include <unistd.h> 22928 #endif 22929 /* Some systems only have a dummy stub for fork() */ 22930 int main (void) 22931 { 22932 if (fork() < 0) 22933 $ac_main_return (1); 22934 $ac_main_return (0); 22935 } 22936_ACEOF 22937rm -f "conftest$ac_exeext" 22938if { (eval echo "$as_me:22938: \"$ac_link\"") >&5 22939 (eval $ac_link) 2>&5 22940 ac_status=$? 22941 echo "$as_me:22941: \$? = $ac_status" >&5 22942 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22943 { (eval echo "$as_me:22943: \"$ac_try\"") >&5 22944 (eval $ac_try) 2>&5 22945 ac_status=$? 22946 echo "$as_me:22946: \$? = $ac_status" >&5 22947 (exit "$ac_status"); }; }; then 22948 ac_cv_func_fork_works=yes 22949else 22950 echo "$as_me: program exited with status $ac_status" >&5 22951echo "$as_me: failed program was:" >&5 22952cat "conftest.$ac_ext" >&5 22953ac_cv_func_fork_works=no 22954fi 22955rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22956fi 22957fi 22958echo "$as_me:22958: result: $ac_cv_func_fork_works" >&5 22959echo "${ECHO_T}$ac_cv_func_fork_works" >&6 22960 22961fi 22962if test "x$ac_cv_func_fork_works" = xcross; then 22963 case $host in 22964 *-*-amigaos* | *-*-msdosdjgpp*) 22965 # Override, as these systems have only a dummy fork() stub 22966 ac_cv_func_fork_works=no 22967 ;; 22968 *) 22969 ac_cv_func_fork_works=yes 22970 ;; 22971 esac 22972 { echo "$as_me:22972: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 22973echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} 22974fi 22975ac_cv_func_vfork_works=$ac_cv_func_vfork 22976if test "x$ac_cv_func_vfork" = xyes; then 22977 echo "$as_me:22977: checking for working vfork" >&5 22978echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 22979if test "${ac_cv_func_vfork_works+set}" = set; then 22980 echo $ECHO_N "(cached) $ECHO_C" >&6 22981else 22982 if test "$cross_compiling" = yes; then 22983 ac_cv_func_vfork_works=cross 22984else 22985 cat >"conftest.$ac_ext" <<_ACEOF 22986#line 22986 "configure" 22987#include "confdefs.h" 22988/* Thanks to Paul Eggert for this test. */ 22989#include <stdio.h> 22990#include <sys/types.h> 22991#include <sys/stat.h> 22992#if HAVE_UNISTD_H 22993# include <unistd.h> 22994#endif 22995#if HAVE_VFORK_H 22996# include <vfork.h> 22997#endif 22998/* On some sparc systems, changes by the child to local and incoming 22999 argument registers are propagated back to the parent. The compiler 23000 is told about this with #include <vfork.h>, but some compilers 23001 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23002 static variable whose address is put into a register that is 23003 clobbered by the vfork. */ 23004static 23005#ifdef __cplusplus 23006sparc_address_test (int arg) 23007# else 23008sparc_address_test (arg) int arg; 23009#endif 23010{ 23011 static pid_t child; 23012 if (!child) { 23013 child = vfork (); 23014 if (child < 0) { 23015 perror ("vfork"); 23016 _exit(2); 23017 } 23018 if (!child) { 23019 arg = getpid(); 23020 write(-1, "", 0); 23021 _exit (arg); 23022 } 23023 } 23024} 23025 23026int 23027main (void) 23028{ 23029 pid_t parent = getpid (); 23030 pid_t child; 23031 23032 sparc_address_test (); 23033 23034 child = vfork (); 23035 23036 if (child == 0) { 23037 /* Here is another test for sparc vfork register problems. This 23038 test uses lots of local variables, at least as many local 23039 variables as main has allocated so far including compiler 23040 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23041 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23042 reuse the register of parent for one of the local variables, 23043 since it will think that parent can't possibly be used any more 23044 in this routine. Assigning to the local variable will thus 23045 munge parent in the parent process. */ 23046 pid_t 23047 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23048 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23049 /* Convince the compiler that p..p7 are live; otherwise, it might 23050 use the same hardware register for all 8 local variables. */ 23051 if (p != p1 || p != p2 || p != p3 || p != p4 23052 || p != p5 || p != p6 || p != p7) 23053 _exit(1); 23054 23055 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23056 from child file descriptors. If the child closes a descriptor 23057 before it execs or exits, this munges the parent's descriptor 23058 as well. Test for this by closing stdout in the child. */ 23059 _exit(close(fileno(stdout)) != 0); 23060 } else { 23061 int status; 23062 struct stat st; 23063 23064 while (wait(&status) != child) 23065 ; 23066 $ac_main_return( 23067 /* Was there some problem with vforking? */ 23068 child < 0 23069 23070 /* Did the child fail? (This shouldn't happen.) */ 23071 || status 23072 23073 /* Did the vfork/compiler bug occur? */ 23074 || parent != getpid() 23075 23076 /* Did the file descriptor bug occur? */ 23077 || fstat(fileno(stdout), &st) != 0 23078 ); 23079 } 23080} 23081_ACEOF 23082rm -f "conftest$ac_exeext" 23083if { (eval echo "$as_me:23083: \"$ac_link\"") >&5 23084 (eval $ac_link) 2>&5 23085 ac_status=$? 23086 echo "$as_me:23086: \$? = $ac_status" >&5 23087 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 23088 { (eval echo "$as_me:23088: \"$ac_try\"") >&5 23089 (eval $ac_try) 2>&5 23090 ac_status=$? 23091 echo "$as_me:23091: \$? = $ac_status" >&5 23092 (exit "$ac_status"); }; }; then 23093 ac_cv_func_vfork_works=yes 23094else 23095 echo "$as_me: program exited with status $ac_status" >&5 23096echo "$as_me: failed program was:" >&5 23097cat "conftest.$ac_ext" >&5 23098ac_cv_func_vfork_works=no 23099fi 23100rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 23101fi 23102fi 23103echo "$as_me:23103: result: $ac_cv_func_vfork_works" >&5 23104echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 23105 23106fi; 23107if test "x$ac_cv_func_fork_works" = xcross; then 23108 ac_cv_func_vfork_works=ac_cv_func_vfork 23109 { echo "$as_me:23109: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 23110echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} 23111fi 23112 23113if test "x$ac_cv_func_vfork_works" = xyes; then 23114 23115cat >>confdefs.h <<\EOF 23116#define HAVE_WORKING_VFORK 1 23117EOF 23118 23119else 23120 23121cat >>confdefs.h <<\EOF 23122#define vfork fork 23123EOF 23124 23125fi 23126if test "x$ac_cv_func_fork_works" = xyes; then 23127 23128cat >>confdefs.h <<\EOF 23129#define HAVE_WORKING_FORK 1 23130EOF 23131 23132fi 23133 23134echo "$as_me:23134: checking if fopen accepts explicit binary mode" >&5 23135echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6 23136if test "${cf_cv_fopen_bin_r+set}" = set; then 23137 echo $ECHO_N "(cached) $ECHO_C" >&6 23138else 23139 23140 if test "$cross_compiling" = yes; then 23141 cf_cv_fopen_bin_r=unknown 23142else 23143 cat >"conftest.$ac_ext" <<_ACEOF 23144#line 23144 "configure" 23145#include "confdefs.h" 23146 23147#include <stdio.h> 23148int main(void) { 23149 FILE *fp = fopen("conftest.tmp", "wb"); 23150 int rc = 0; 23151 if (fp != 0) { 23152 int p, q; 23153 for (p = 0; p < 256; ++p) { 23154 fputc(p, fp); 23155 } 23156 fclose(fp); 23157 fp = fopen("conftest.tmp", "rb"); 23158 if (fp != 0) { 23159 for (p = 0; p < 256; ++p) { 23160 q = fgetc(fp); 23161 if (q != p) { 23162 rc = 1; 23163 break; 23164 } 23165 } 23166 } else { 23167 rc = 1; 23168 } 23169 } else { 23170 rc = 1; 23171 } 23172 ${cf_cv_main_return:-return} (rc); 23173} 23174 23175_ACEOF 23176rm -f "conftest$ac_exeext" 23177if { (eval echo "$as_me:23177: \"$ac_link\"") >&5 23178 (eval $ac_link) 2>&5 23179 ac_status=$? 23180 echo "$as_me:23180: \$? = $ac_status" >&5 23181 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 23182 { (eval echo "$as_me:23182: \"$ac_try\"") >&5 23183 (eval $ac_try) 2>&5 23184 ac_status=$? 23185 echo "$as_me:23185: \$? = $ac_status" >&5 23186 (exit "$ac_status"); }; }; then 23187 cf_cv_fopen_bin_r=yes 23188else 23189 echo "$as_me: program exited with status $ac_status" >&5 23190echo "$as_me: failed program was:" >&5 23191cat "conftest.$ac_ext" >&5 23192cf_cv_fopen_bin_r=no 23193fi 23194rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 23195fi 23196 23197fi 23198echo "$as_me:23198: result: $cf_cv_fopen_bin_r" >&5 23199echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6 23200test "x$cf_cv_fopen_bin_r" != xno && 23201cat >>confdefs.h <<\EOF 23202#define USE_FOPEN_BIN_R 1 23203EOF 23204 23205# special check for test/ditto.c 23206 23207echo "$as_me:23207: checking for openpty in -lutil" >&5 23208echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 23209if test "${ac_cv_lib_util_openpty+set}" = set; then 23210 echo $ECHO_N "(cached) $ECHO_C" >&6 23211else 23212 ac_check_lib_save_LIBS=$LIBS 23213LIBS="-lutil $LIBS" 23214cat >"conftest.$ac_ext" <<_ACEOF 23215#line 23215 "configure" 23216#include "confdefs.h" 23217 23218/* Override any gcc2 internal prototype to avoid an error. */ 23219#ifdef __cplusplus 23220extern "C" 23221#endif 23222/* We use char because int might match the return type of a gcc2 23223 builtin and then its argument prototype would still apply. */ 23224char openpty (); 23225int 23226main (void) 23227{ 23228openpty (); 23229 ; 23230 return 0; 23231} 23232_ACEOF 23233rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23234if { (eval echo "$as_me:23234: \"$ac_link\"") >&5 23235 (eval $ac_link) 2>&5 23236 ac_status=$? 23237 echo "$as_me:23237: \$? = $ac_status" >&5 23238 (exit "$ac_status"); } && 23239 { ac_try='test -s "conftest$ac_exeext"' 23240 { (eval echo "$as_me:23240: \"$ac_try\"") >&5 23241 (eval $ac_try) 2>&5 23242 ac_status=$? 23243 echo "$as_me:23243: \$? = $ac_status" >&5 23244 (exit "$ac_status"); }; }; then 23245 ac_cv_lib_util_openpty=yes 23246else 23247 echo "$as_me: failed program was:" >&5 23248cat "conftest.$ac_ext" >&5 23249ac_cv_lib_util_openpty=no 23250fi 23251rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23252LIBS=$ac_check_lib_save_LIBS 23253fi 23254echo "$as_me:23254: result: $ac_cv_lib_util_openpty" >&5 23255echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 23256if test "$ac_cv_lib_util_openpty" = yes; then 23257 cf_cv_lib_util=yes 23258else 23259 cf_cv_lib_util=no 23260fi 23261 23262echo "$as_me:23262: checking for openpty header" >&5 23263echo $ECHO_N "checking for openpty header... $ECHO_C" >&6 23264if test "${cf_cv_func_openpty+set}" = set; then 23265 echo $ECHO_N "(cached) $ECHO_C" >&6 23266else 23267 23268 cf_save_LIBS="$LIBS" 23269 test "$cf_cv_lib_util" = yes && { 23270cf_add_libs="$LIBS" 23271# reverse order 23272cf_add_0lib= 23273for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23274# filter duplicates 23275for cf_add_1lib in $cf_add_0lib; do 23276 for cf_add_2lib in $cf_add_libs; do 23277 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23278 cf_add_1lib= 23279 break 23280 fi 23281 done 23282 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23283done 23284LIBS="$cf_add_libs" 23285 } 23286 for cf_header in pty.h libutil.h util.h 23287 do 23288 cat >"conftest.$ac_ext" <<_ACEOF 23289#line 23289 "configure" 23290#include "confdefs.h" 23291 23292#include <$cf_header> 23293 23294int 23295main (void) 23296{ 23297 23298 int x = openpty((int *)0, (int *)0, (char *)0, 23299 (struct termios *)0, (struct winsize *)0); 23300 23301 ; 23302 return 0; 23303} 23304_ACEOF 23305rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23306if { (eval echo "$as_me:23306: \"$ac_link\"") >&5 23307 (eval $ac_link) 2>&5 23308 ac_status=$? 23309 echo "$as_me:23309: \$? = $ac_status" >&5 23310 (exit "$ac_status"); } && 23311 { ac_try='test -s "conftest$ac_exeext"' 23312 { (eval echo "$as_me:23312: \"$ac_try\"") >&5 23313 (eval $ac_try) 2>&5 23314 ac_status=$? 23315 echo "$as_me:23315: \$? = $ac_status" >&5 23316 (exit "$ac_status"); }; }; then 23317 23318 cf_cv_func_openpty=$cf_header 23319 break 23320 23321else 23322 echo "$as_me: failed program was:" >&5 23323cat "conftest.$ac_ext" >&5 23324 23325 cf_cv_func_openpty=no 23326 23327fi 23328rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23329 done 23330 LIBS="$cf_save_LIBS" 23331 23332fi 23333echo "$as_me:23333: result: $cf_cv_func_openpty" >&5 23334echo "${ECHO_T}$cf_cv_func_openpty" >&6 23335 23336if test "$cf_cv_func_openpty" != no ; then 23337 23338cat >>confdefs.h <<EOF 23339#define USE_OPENPTY_HEADER <$cf_cv_func_openpty> 23340EOF 23341 23342cat >>confdefs.h <<\EOF 23343#define USE_XTERM_PTY 1 23344EOF 23345 23346 if test "x$cf_cv_lib_util" = xyes ; then 23347 23348cf_add_libs="$TEST_LIBS" 23349# reverse order 23350cf_add_0lib= 23351for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23352# filter duplicates 23353for cf_add_1lib in $cf_add_0lib; do 23354 for cf_add_2lib in $cf_add_libs; do 23355 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23356 cf_add_1lib= 23357 break 23358 fi 23359 done 23360 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23361done 23362TEST_LIBS="$cf_add_libs" 23363 23364 fi 23365fi 23366 23367if test "$with_hashed_db" != no ; then 23368 23369cat >>confdefs.h <<\EOF 23370#define USE_HASHED_DB 1 23371EOF 23372 23373case $with_hashed_db in 23374(yes|*able*) 23375 ;; 23376(*) 23377 if test -d "$with_hashed_db" ; then 23378 23379if test -n "$with_hashed_db/include" ; then 23380 for cf_add_incdir in $with_hashed_db/include 23381 do 23382 while test "$cf_add_incdir" != /usr/include 23383 do 23384 if test -d "$cf_add_incdir" 23385 then 23386 cf_have_incdir=no 23387 if test -n "$CFLAGS$CPPFLAGS" ; then 23388 # a loop is needed to ensure we can add subdirs of existing dirs 23389 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 23390 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 23391 cf_have_incdir=yes; break 23392 fi 23393 done 23394 fi 23395 23396 if test "$cf_have_incdir" = no ; then 23397 if test "$cf_add_incdir" = /usr/local/include ; then 23398 if test "$GCC" = yes 23399 then 23400 cf_save_CPPFLAGS=$CPPFLAGS 23401 23402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23403 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 23404 23405 cat >"conftest.$ac_ext" <<_ACEOF 23406#line 23406 "configure" 23407#include "confdefs.h" 23408#include <stdio.h> 23409int 23410main (void) 23411{ 23412printf("Hello") 23413 ; 23414 return 0; 23415} 23416_ACEOF 23417rm -f "conftest.$ac_objext" 23418if { (eval echo "$as_me:23418: \"$ac_compile\"") >&5 23419 (eval $ac_compile) 2>&5 23420 ac_status=$? 23421 echo "$as_me:23421: \$? = $ac_status" >&5 23422 (exit "$ac_status"); } && 23423 { ac_try='test -s "conftest.$ac_objext"' 23424 { (eval echo "$as_me:23424: \"$ac_try\"") >&5 23425 (eval $ac_try) 2>&5 23426 ac_status=$? 23427 echo "$as_me:23427: \$? = $ac_status" >&5 23428 (exit "$ac_status"); }; }; then 23429 : 23430else 23431 echo "$as_me: failed program was:" >&5 23432cat "conftest.$ac_ext" >&5 23433cf_have_incdir=yes 23434fi 23435rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23436 CPPFLAGS=$cf_save_CPPFLAGS 23437 fi 23438 fi 23439 fi 23440 23441 if test "$cf_have_incdir" = no ; then 23442 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 23443 23444echo "${as_me:-configure}:23444: testing adding $cf_add_incdir to include-path ..." 1>&5 23445 23446 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 23447 23448 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 23449 test "$cf_top_incdir" = "$cf_add_incdir" && break 23450 cf_add_incdir="$cf_top_incdir" 23451 else 23452 break 23453 fi 23454 else 23455 break 23456 fi 23457 done 23458 done 23459fi 23460 23461if test -n "$with_hashed_db/lib" ; then 23462 for cf_add_libdir in $with_hashed_db/lib 23463 do 23464 if test "$cf_add_libdir" = /usr/lib ; then 23465 : 23466 elif test -d "$cf_add_libdir" 23467 then 23468 cf_have_libdir=no 23469 if test -n "$LDFLAGS$LIBS" ; then 23470 # a loop is needed to ensure we can add subdirs of existing dirs 23471 for cf_test_libdir in $LDFLAGS $LIBS ; do 23472 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 23473 cf_have_libdir=yes; break 23474 fi 23475 done 23476 fi 23477 if test "$cf_have_libdir" = no ; then 23478 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 23479 23480echo "${as_me:-configure}:23480: testing adding $cf_add_libdir to library-path ..." 1>&5 23481 23482 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 23483 fi 23484 fi 23485 done 23486fi 23487 23488 else 23489 case "$with_hashed_db" in 23490 (./*|../*|/*) 23491 { echo "$as_me:23491: WARNING: no such directory $with_hashed_db" >&5 23492echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;} 23493 ;; 23494 (*) 23495 23496cf_search= 23497 23498test "x$prefix" != "xNONE" && \ 23499test -d "$prefix" && \ 23500 { 23501 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 23502 test -d "$prefix/include" && cf_search="$cf_search $prefix/include" 23503 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db" 23504 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include" 23505 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include" 23506 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db" 23507} 23508 23509for cf_subdir_prefix in \ 23510 /usr \ 23511 /usr/local \ 23512 /usr/pkg \ 23513 /opt \ 23514 /opt/local \ 23515 $HOME 23516do 23517 23518test "x$cf_subdir_prefix" != "x$prefix" && \ 23519test -d "$cf_subdir_prefix" && \ 23520{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 23521 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 23522 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include" 23523 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db" 23524 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include" 23525 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include" 23526 test -d "$cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db" 23527} 23528 23529done 23530 23531 for cf_item in $cf_search 23532 do 23533 case "$cf_item" in 23534 (*/$with_hashed_db) 23535 23536if test -n "$cf_item" ; then 23537 for cf_add_incdir in $cf_item 23538 do 23539 while test "$cf_add_incdir" != /usr/include 23540 do 23541 if test -d "$cf_add_incdir" 23542 then 23543 cf_have_incdir=no 23544 if test -n "$CFLAGS$CPPFLAGS" ; then 23545 # a loop is needed to ensure we can add subdirs of existing dirs 23546 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 23547 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 23548 cf_have_incdir=yes; break 23549 fi 23550 done 23551 fi 23552 23553 if test "$cf_have_incdir" = no ; then 23554 if test "$cf_add_incdir" = /usr/local/include ; then 23555 if test "$GCC" = yes 23556 then 23557 cf_save_CPPFLAGS=$CPPFLAGS 23558 23559 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23560 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 23561 23562 cat >"conftest.$ac_ext" <<_ACEOF 23563#line 23563 "configure" 23564#include "confdefs.h" 23565#include <stdio.h> 23566int 23567main (void) 23568{ 23569printf("Hello") 23570 ; 23571 return 0; 23572} 23573_ACEOF 23574rm -f "conftest.$ac_objext" 23575if { (eval echo "$as_me:23575: \"$ac_compile\"") >&5 23576 (eval $ac_compile) 2>&5 23577 ac_status=$? 23578 echo "$as_me:23578: \$? = $ac_status" >&5 23579 (exit "$ac_status"); } && 23580 { ac_try='test -s "conftest.$ac_objext"' 23581 { (eval echo "$as_me:23581: \"$ac_try\"") >&5 23582 (eval $ac_try) 2>&5 23583 ac_status=$? 23584 echo "$as_me:23584: \$? = $ac_status" >&5 23585 (exit "$ac_status"); }; }; then 23586 : 23587else 23588 echo "$as_me: failed program was:" >&5 23589cat "conftest.$ac_ext" >&5 23590cf_have_incdir=yes 23591fi 23592rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23593 CPPFLAGS=$cf_save_CPPFLAGS 23594 fi 23595 fi 23596 fi 23597 23598 if test "$cf_have_incdir" = no ; then 23599 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 23600 23601echo "${as_me:-configure}:23601: testing adding $cf_add_incdir to include-path ..." 1>&5 23602 23603 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 23604 23605 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 23606 test "$cf_top_incdir" = "$cf_add_incdir" && break 23607 cf_add_incdir="$cf_top_incdir" 23608 else 23609 break 23610 fi 23611 else 23612 break 23613 fi 23614 done 23615 done 23616fi 23617 23618 ;; 23619 esac 23620 done 23621 23622cf_search= 23623 23624test "x$prefix" != "xNONE" && \ 23625test -d "$prefix" && \ 23626 { 23627 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 23628 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib" 23629 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db" 23630 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib" 23631 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib" 23632 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db" 23633} 23634 23635for cf_subdir_prefix in \ 23636 /usr \ 23637 /usr/local \ 23638 /usr/pkg \ 23639 /opt \ 23640 /opt/local \ 23641 $HOME 23642do 23643 23644test "x$cf_subdir_prefix" != "x$prefix" && \ 23645test -d "$cf_subdir_prefix" && \ 23646{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 23647 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 23648 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib" 23649 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db" 23650 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib" 23651 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib" 23652 test -d "$cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db" 23653} 23654 23655done 23656 23657 for cf_item in $cf_search 23658 do 23659 case "$cf_item" in 23660 (*/$with_hashed_db) 23661 23662if test -n "$cf_item" ; then 23663 for cf_add_libdir in $cf_item 23664 do 23665 if test "$cf_add_libdir" = /usr/lib ; then 23666 : 23667 elif test -d "$cf_add_libdir" 23668 then 23669 cf_have_libdir=no 23670 if test -n "$LDFLAGS$LIBS" ; then 23671 # a loop is needed to ensure we can add subdirs of existing dirs 23672 for cf_test_libdir in $LDFLAGS $LIBS ; do 23673 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 23674 cf_have_libdir=yes; break 23675 fi 23676 done 23677 fi 23678 if test "$cf_have_libdir" = no ; then 23679 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 23680 23681echo "${as_me:-configure}:23681: testing adding $cf_add_libdir to library-path ..." 1>&5 23682 23683 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 23684 fi 23685 fi 23686 done 23687fi 23688 23689 ;; 23690 esac 23691 done 23692 23693 ;; 23694 esac 23695 fi 23696esac 23697 23698echo "$as_me:23698: checking for db.h" >&5 23699echo $ECHO_N "checking for db.h... $ECHO_C" >&6 23700if test "${ac_cv_header_db_h+set}" = set; then 23701 echo $ECHO_N "(cached) $ECHO_C" >&6 23702else 23703 cat >"conftest.$ac_ext" <<_ACEOF 23704#line 23704 "configure" 23705#include "confdefs.h" 23706#include <db.h> 23707_ACEOF 23708if { (eval echo "$as_me:23708: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23709 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23710 ac_status=$? 23711 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23712 rm -f conftest.er1 23713 cat conftest.err >&5 23714 echo "$as_me:23714: \$? = $ac_status" >&5 23715 (exit "$ac_status"); } >/dev/null; then 23716 if test -s conftest.err; then 23717 ac_cpp_err=$ac_c_preproc_warn_flag 23718 else 23719 ac_cpp_err= 23720 fi 23721else 23722 ac_cpp_err=yes 23723fi 23724if test -z "$ac_cpp_err"; then 23725 ac_cv_header_db_h=yes 23726else 23727 echo "$as_me: failed program was:" >&5 23728 cat "conftest.$ac_ext" >&5 23729 ac_cv_header_db_h=no 23730fi 23731rm -f conftest.err "conftest.$ac_ext" 23732fi 23733echo "$as_me:23733: result: $ac_cv_header_db_h" >&5 23734echo "${ECHO_T}$ac_cv_header_db_h" >&6 23735if test "$ac_cv_header_db_h" = yes; then 23736 23737echo "$as_me:23737: checking for version of db" >&5 23738echo $ECHO_N "checking for version of db... $ECHO_C" >&6 23739if test "${cf_cv_hashed_db_version+set}" = set; then 23740 echo $ECHO_N "(cached) $ECHO_C" >&6 23741else 23742 23743cf_cv_hashed_db_version=unknown 23744 23745for cf_db_version in 1 2 3 4 5 6 23746do 23747 23748echo "${as_me:-configure}:23748: testing checking for db version $cf_db_version ..." 1>&5 23749 23750 cat >"conftest.$ac_ext" <<_ACEOF 23751#line 23751 "configure" 23752#include "confdefs.h" 23753 23754$ac_includes_default 23755#include <db.h> 23756 23757#ifdef DB_VERSION_MAJOR 23758 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */ 23759#if $cf_db_version == DB_VERSION_MAJOR 23760 /* ok */ 23761#else 23762 make an error 23763#endif 23764#else 23765#if $cf_db_version == 1 23766 /* ok: assuming this is DB 1.8.5 */ 23767#else 23768 make an error 23769#endif 23770#endif 23771 23772int 23773main (void) 23774{ 23775DBT *foo = 0 23776 ; 23777 return 0; 23778} 23779_ACEOF 23780rm -f "conftest.$ac_objext" 23781if { (eval echo "$as_me:23781: \"$ac_compile\"") >&5 23782 (eval $ac_compile) 2>&5 23783 ac_status=$? 23784 echo "$as_me:23784: \$? = $ac_status" >&5 23785 (exit "$ac_status"); } && 23786 { ac_try='test -s "conftest.$ac_objext"' 23787 { (eval echo "$as_me:23787: \"$ac_try\"") >&5 23788 (eval $ac_try) 2>&5 23789 ac_status=$? 23790 echo "$as_me:23790: \$? = $ac_status" >&5 23791 (exit "$ac_status"); }; }; then 23792 23793 cf_cv_hashed_db_version=$cf_db_version 23794 break 23795 23796else 23797 echo "$as_me: failed program was:" >&5 23798cat "conftest.$ac_ext" >&5 23799fi 23800rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23801done 23802 23803fi 23804echo "$as_me:23804: result: $cf_cv_hashed_db_version" >&5 23805echo "${ECHO_T}$cf_cv_hashed_db_version" >&6 23806 23807if test "$cf_cv_hashed_db_version" = unknown ; then 23808 { { echo "$as_me:23808: error: Cannot determine version of db" >&5 23809echo "$as_me: error: Cannot determine version of db" >&2;} 23810 { (exit 1); exit 1; }; } 23811else 23812 23813echo "$as_me:23813: checking for db libraries" >&5 23814echo $ECHO_N "checking for db libraries... $ECHO_C" >&6 23815if test "${cf_cv_hashed_db_libs+set}" = set; then 23816 echo $ECHO_N "(cached) $ECHO_C" >&6 23817else 23818 23819cf_cv_hashed_db_libs=unknown 23820for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db '' 23821do 23822 cf_save_libs="$LIBS" 23823 if test -n "$cf_db_libs"; then 23824 23825cf_add_libs="$LIBS" 23826# reverse order 23827cf_add_0lib= 23828for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23829# filter duplicates 23830for cf_add_1lib in $cf_add_0lib; do 23831 for cf_add_2lib in $cf_add_libs; do 23832 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23833 cf_add_1lib= 23834 break 23835 fi 23836 done 23837 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23838done 23839LIBS="$cf_add_libs" 23840 23841 fi 23842 23843echo "${as_me:-configure}:23843: testing checking for library $cf_db_libs ..." 1>&5 23844 23845 cat >"conftest.$ac_ext" <<_ACEOF 23846#line 23846 "configure" 23847#include "confdefs.h" 23848 23849$ac_includes_default 23850#include <db.h> 23851 23852int 23853main (void) 23854{ 23855 23856 char *path = "/tmp/foo"; 23857#ifdef DB_VERSION_MAJOR 23858#if DB_VERSION_MAJOR >= 4 23859 DB *result = 0; 23860 db_create(&result, NULL, 0); 23861 result->open(result, 23862 NULL, 23863 path, 23864 path, 23865 DB_HASH, 23866 DB_CREATE, 23867 0644); 23868#elif DB_VERSION_MAJOR >= 3 23869 DB *result = 0; 23870 db_create(&result, NULL, 0); 23871 result->open(result, 23872 path, 23873 path, 23874 DB_HASH, 23875 DB_CREATE, 23876 0644); 23877#elif DB_VERSION_MAJOR >= 2 23878 DB *result = 0; 23879 db_open(path, 23880 DB_HASH, 23881 DB_CREATE, 23882 0644, 23883 (DB_ENV *) 0, 23884 (DB_INFO *) 0, 23885 &result); 23886#endif /* DB_VERSION_MAJOR */ 23887#else 23888 DB *result = dbopen(path, 23889 2, 23890 0644, 23891 DB_HASH, 23892 0); 23893#endif 23894 ${cf_cv_main_return:-return}(result != 0) 23895 23896 ; 23897 return 0; 23898} 23899_ACEOF 23900rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23901if { (eval echo "$as_me:23901: \"$ac_link\"") >&5 23902 (eval $ac_link) 2>&5 23903 ac_status=$? 23904 echo "$as_me:23904: \$? = $ac_status" >&5 23905 (exit "$ac_status"); } && 23906 { ac_try='test -s "conftest$ac_exeext"' 23907 { (eval echo "$as_me:23907: \"$ac_try\"") >&5 23908 (eval $ac_try) 2>&5 23909 ac_status=$? 23910 echo "$as_me:23910: \$? = $ac_status" >&5 23911 (exit "$ac_status"); }; }; then 23912 23913 if test -n "$cf_db_libs" ; then 23914 cf_cv_hashed_db_libs=$cf_db_libs 23915 else 23916 cf_cv_hashed_db_libs=default 23917 fi 23918 LIBS="$cf_save_libs" 23919 break 23920 23921else 23922 echo "$as_me: failed program was:" >&5 23923cat "conftest.$ac_ext" >&5 23924fi 23925rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23926 LIBS="$cf_save_libs" 23927done 23928 23929fi 23930echo "$as_me:23930: result: $cf_cv_hashed_db_libs" >&5 23931echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6 23932 23933 if test "$cf_cv_hashed_db_libs" = unknown ; then 23934 { { echo "$as_me:23934: error: Cannot determine library for db" >&5 23935echo "$as_me: error: Cannot determine library for db" >&2;} 23936 { (exit 1); exit 1; }; } 23937 elif test "$cf_cv_hashed_db_libs" != default ; then 23938 23939cf_add_libs="$LIBS" 23940# reverse order 23941cf_add_0lib= 23942for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23943# filter duplicates 23944for cf_add_1lib in $cf_add_0lib; do 23945 for cf_add_2lib in $cf_add_libs; do 23946 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23947 cf_add_1lib= 23948 break 23949 fi 23950 done 23951 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23952done 23953LIBS="$cf_add_libs" 23954 23955 fi 23956fi 23957 23958else 23959 23960 { { echo "$as_me:23960: error: Cannot find db.h" >&5 23961echo "$as_me: error: Cannot find db.h" >&2;} 23962 { (exit 1); exit 1; }; } 23963 23964fi 23965 23966fi 23967 23968if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then 23969 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'` 23970 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'` 23971fi 23972 23973# Just in case, check if the C compiler has a bool type. 23974 23975echo "$as_me:23975: checking if we should include stdbool.h" >&5 23976echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 23977 23978if test "${cf_cv_header_stdbool_h+set}" = set; then 23979 echo $ECHO_N "(cached) $ECHO_C" >&6 23980else 23981 23982 cat >"conftest.$ac_ext" <<_ACEOF 23983#line 23983 "configure" 23984#include "confdefs.h" 23985 23986int 23987main (void) 23988{ 23989bool foo = false 23990 ; 23991 return 0; 23992} 23993_ACEOF 23994rm -f "conftest.$ac_objext" 23995if { (eval echo "$as_me:23995: \"$ac_compile\"") >&5 23996 (eval $ac_compile) 2>&5 23997 ac_status=$? 23998 echo "$as_me:23998: \$? = $ac_status" >&5 23999 (exit "$ac_status"); } && 24000 { ac_try='test -s "conftest.$ac_objext"' 24001 { (eval echo "$as_me:24001: \"$ac_try\"") >&5 24002 (eval $ac_try) 2>&5 24003 ac_status=$? 24004 echo "$as_me:24004: \$? = $ac_status" >&5 24005 (exit "$ac_status"); }; }; then 24006 cf_cv_header_stdbool_h=0 24007else 24008 echo "$as_me: failed program was:" >&5 24009cat "conftest.$ac_ext" >&5 24010cat >"conftest.$ac_ext" <<_ACEOF 24011#line 24011 "configure" 24012#include "confdefs.h" 24013 24014#ifndef __BEOS__ 24015#include <stdbool.h> 24016#endif 24017 24018int 24019main (void) 24020{ 24021bool foo = false 24022 ; 24023 return 0; 24024} 24025_ACEOF 24026rm -f "conftest.$ac_objext" 24027if { (eval echo "$as_me:24027: \"$ac_compile\"") >&5 24028 (eval $ac_compile) 2>&5 24029 ac_status=$? 24030 echo "$as_me:24030: \$? = $ac_status" >&5 24031 (exit "$ac_status"); } && 24032 { ac_try='test -s "conftest.$ac_objext"' 24033 { (eval echo "$as_me:24033: \"$ac_try\"") >&5 24034 (eval $ac_try) 2>&5 24035 ac_status=$? 24036 echo "$as_me:24036: \$? = $ac_status" >&5 24037 (exit "$ac_status"); }; }; then 24038 cf_cv_header_stdbool_h=1 24039else 24040 echo "$as_me: failed program was:" >&5 24041cat "conftest.$ac_ext" >&5 24042cf_cv_header_stdbool_h=0 24043fi 24044rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24045fi 24046rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24047fi 24048 24049if test "$cf_cv_header_stdbool_h" = 1 24050then echo "$as_me:24050: result: yes" >&5 24051echo "${ECHO_T}yes" >&6 24052else echo "$as_me:24052: result: no" >&5 24053echo "${ECHO_T}no" >&6 24054fi 24055 24056echo "$as_me:24056: checking for builtin bool type" >&5 24057echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 24058 24059if test "${cf_cv_cc_bool_type+set}" = set; then 24060 echo $ECHO_N "(cached) $ECHO_C" >&6 24061else 24062 24063 cat >"conftest.$ac_ext" <<_ACEOF 24064#line 24064 "configure" 24065#include "confdefs.h" 24066 24067#include <stdio.h> 24068#include <sys/types.h> 24069 24070int 24071main (void) 24072{ 24073bool x = false 24074 ; 24075 return 0; 24076} 24077_ACEOF 24078rm -f "conftest.$ac_objext" 24079if { (eval echo "$as_me:24079: \"$ac_compile\"") >&5 24080 (eval $ac_compile) 2>&5 24081 ac_status=$? 24082 echo "$as_me:24082: \$? = $ac_status" >&5 24083 (exit "$ac_status"); } && 24084 { ac_try='test -s "conftest.$ac_objext"' 24085 { (eval echo "$as_me:24085: \"$ac_try\"") >&5 24086 (eval $ac_try) 2>&5 24087 ac_status=$? 24088 echo "$as_me:24088: \$? = $ac_status" >&5 24089 (exit "$ac_status"); }; }; then 24090 cf_cv_cc_bool_type=1 24091else 24092 echo "$as_me: failed program was:" >&5 24093cat "conftest.$ac_ext" >&5 24094cf_cv_cc_bool_type=0 24095fi 24096rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24097 24098fi 24099 24100if test "$cf_cv_cc_bool_type" = 1 24101then echo "$as_me:24101: result: yes" >&5 24102echo "${ECHO_T}yes" >&6 24103else echo "$as_me:24103: result: no" >&5 24104echo "${ECHO_T}no" >&6 24105fi 24106 24107# Check for C++ compiler characteristics (and ensure that it's there!) 24108if test -n "$CXX" ; then 24109 ac_ext=cc 24110ac_cpp='$CXXCPP $CPPFLAGS' 24111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 24112ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 24113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24114ac_main_return="return" 24115 24116if test -n "$GXX" ; then 24117 24118 cf_save="$LIBS" 24119 LIBS="$LIBS $CXXLIBS" 24120 echo "$as_me:24120: checking if we already have C++ library" >&5 24121echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6 24122 cat >"conftest.$ac_ext" <<_ACEOF 24123#line 24123 "configure" 24124#include "confdefs.h" 24125 24126 #include <iostream> 24127int 24128main (void) 24129{ 24130 24131 std::cout << "Hello World!" << std::endl; 24132 ; 24133 return 0; 24134} 24135_ACEOF 24136rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24137if { (eval echo "$as_me:24137: \"$ac_link\"") >&5 24138 (eval $ac_link) 2>&5 24139 ac_status=$? 24140 echo "$as_me:24140: \$? = $ac_status" >&5 24141 (exit "$ac_status"); } && 24142 { ac_try='test -s "conftest$ac_exeext"' 24143 { (eval echo "$as_me:24143: \"$ac_try\"") >&5 24144 (eval $ac_try) 2>&5 24145 ac_status=$? 24146 echo "$as_me:24146: \$? = $ac_status" >&5 24147 (exit "$ac_status"); }; }; then 24148 cf_have_libstdcpp=yes 24149else 24150 echo "$as_me: failed program was:" >&5 24151cat "conftest.$ac_ext" >&5 24152cf_have_libstdcpp=no 24153fi 24154rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24155 echo "$as_me:24155: result: $cf_have_libstdcpp" >&5 24156echo "${ECHO_T}$cf_have_libstdcpp" >&6 24157 LIBS="$cf_save" 24158 24159 if test "$cf_have_libstdcpp" != yes 24160 then 24161 case "$cf_cv_system_name" in 24162 (os2*) 24163 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then 24164 cf_stdcpp_libname=stdcpp 24165 else 24166 cf_stdcpp_libname=stdc++ 24167 fi 24168 ;; 24169 (*) 24170 cf_stdcpp_libname=stdc++ 24171 ;; 24172 esac 24173 24174 echo "$as_me:24174: checking for library $cf_stdcpp_libname" >&5 24175echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6 24176if test "${cf_cv_libstdcpp+set}" = set; then 24177 echo $ECHO_N "(cached) $ECHO_C" >&6 24178else 24179 24180 cf_save="$LIBS" 24181 LIBS="$LIBS $CXXLIBS" 24182 24183cf_add_libs="$LIBS" 24184# reverse order 24185cf_add_0lib= 24186for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24187# filter duplicates 24188for cf_add_1lib in $cf_add_0lib; do 24189 for cf_add_2lib in $cf_add_libs; do 24190 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24191 cf_add_1lib= 24192 break 24193 fi 24194 done 24195 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24196done 24197LIBS="$cf_add_libs" 24198 24199 cat >"conftest.$ac_ext" <<_ACEOF 24200#line 24200 "configure" 24201#include "confdefs.h" 24202 24203 #include <iostream> 24204int 24205main (void) 24206{ 24207 24208 std::cout << "Hello World!" << std::endl; 24209 ; 24210 return 0; 24211} 24212_ACEOF 24213rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24214if { (eval echo "$as_me:24214: \"$ac_link\"") >&5 24215 (eval $ac_link) 2>&5 24216 ac_status=$? 24217 echo "$as_me:24217: \$? = $ac_status" >&5 24218 (exit "$ac_status"); } && 24219 { ac_try='test -s "conftest$ac_exeext"' 24220 { (eval echo "$as_me:24220: \"$ac_try\"") >&5 24221 (eval $ac_try) 2>&5 24222 ac_status=$? 24223 echo "$as_me:24223: \$? = $ac_status" >&5 24224 (exit "$ac_status"); }; }; then 24225 cf_cv_libstdcpp=yes 24226else 24227 echo "$as_me: failed program was:" >&5 24228cat "conftest.$ac_ext" >&5 24229cf_cv_libstdcpp=no 24230fi 24231rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24232 LIBS="$cf_save" 24233 24234fi 24235echo "$as_me:24235: result: $cf_cv_libstdcpp" >&5 24236echo "${ECHO_T}$cf_cv_libstdcpp" >&6 24237 test "$cf_cv_libstdcpp" = yes && { 24238cf_add_libs="$CXXLIBS" 24239# reverse order 24240cf_add_0lib= 24241for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24242# filter duplicates 24243for cf_add_1lib in $cf_add_0lib; do 24244 for cf_add_2lib in $cf_add_libs; do 24245 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24246 cf_add_1lib= 24247 break 24248 fi 24249 done 24250 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24251done 24252CXXLIBS="$cf_add_libs" 24253 } 24254 fi 24255fi 24256 24257 echo "$as_me:24257: checking whether $CXX understands -c and -o together" >&5 24258echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6 24259if test "${cf_cv_prog_CXX_c_o+set}" = set; then 24260 echo $ECHO_N "(cached) $ECHO_C" >&6 24261else 24262 24263cat > conftest.$ac_ext <<CF_EOF 24264int main(void) 24265{ 24266 ${cf_cv_main_return:-return}(0); 24267} 24268CF_EOF 24269# We do the test twice because some compilers refuse to overwrite an 24270# existing .o file with -o, though they will create one. 24271ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 24272if { (eval echo "$as_me:24272: \"$ac_try\"") >&5 24273 (eval $ac_try) 2>&5 24274 ac_status=$? 24275 echo "$as_me:24275: \$? = $ac_status" >&5 24276 (exit "$ac_status"); } && 24277 test -f conftest2.$ac_objext && { (eval echo "$as_me:24277: \"$ac_try\"") >&5 24278 (eval $ac_try) 2>&5 24279 ac_status=$? 24280 echo "$as_me:24280: \$? = $ac_status" >&5 24281 (exit "$ac_status"); }; 24282then 24283 eval cf_cv_prog_CXX_c_o=yes 24284else 24285 eval cf_cv_prog_CXX_c_o=no 24286fi 24287rm -rf ./conftest* 24288 24289fi 24290if test "$cf_cv_prog_CXX_c_o" = yes; then 24291 echo "$as_me:24291: result: yes" >&5 24292echo "${ECHO_T}yes" >&6 24293else 24294 echo "$as_me:24294: result: no" >&5 24295echo "${ECHO_T}no" >&6 24296fi 24297 24298 case "$GXX_VERSION" in 24299 (1.*|2.[0-6]*|[1-9][0-9].*) 24300 cf_cxx_library=yes 24301 ;; 24302 (*-2.7*|2.7*) 24303 24304cf_cxx_library=unknown 24305case "$cf_cv_system_name" in 24306(os2*) 24307 cf_gpp_libname=gpp 24308 ;; 24309(*) 24310 cf_gpp_libname=g++ 24311 ;; 24312esac 24313if test "$GXX" = yes; then 24314 echo "$as_me:24314: checking for lib$cf_gpp_libname" >&5 24315echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6 24316 cf_save="$LIBS" 24317 24318cf_add_libs="$LIBS" 24319# reverse order 24320cf_add_0lib= 24321for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24322# filter duplicates 24323for cf_add_1lib in $cf_add_0lib; do 24324 for cf_add_2lib in $cf_add_libs; do 24325 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24326 cf_add_1lib= 24327 break 24328 fi 24329 done 24330 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24331done 24332LIBS="$cf_add_libs" 24333 24334 cat >"conftest.$ac_ext" <<_ACEOF 24335#line 24335 "configure" 24336#include "confdefs.h" 24337 24338#include <$cf_gpp_libname/builtin.h> 24339 24340int 24341main (void) 24342{ 24343two_arg_error_handler_t foo2 = lib_error_handler 24344 ; 24345 return 0; 24346} 24347_ACEOF 24348rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24349if { (eval echo "$as_me:24349: \"$ac_link\"") >&5 24350 (eval $ac_link) 2>&5 24351 ac_status=$? 24352 echo "$as_me:24352: \$? = $ac_status" >&5 24353 (exit "$ac_status"); } && 24354 { ac_try='test -s "conftest$ac_exeext"' 24355 { (eval echo "$as_me:24355: \"$ac_try\"") >&5 24356 (eval $ac_try) 2>&5 24357 ac_status=$? 24358 echo "$as_me:24358: \$? = $ac_status" >&5 24359 (exit "$ac_status"); }; }; then 24360 cf_cxx_library=yes 24361 24362cf_add_libs="$CXXLIBS" 24363# reverse order 24364cf_add_0lib= 24365for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24366# filter duplicates 24367for cf_add_1lib in $cf_add_0lib; do 24368 for cf_add_2lib in $cf_add_libs; do 24369 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24370 cf_add_1lib= 24371 break 24372 fi 24373 done 24374 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24375done 24376CXXLIBS="$cf_add_libs" 24377 24378 if test "$cf_gpp_libname" = cpp ; then 24379 24380cat >>confdefs.h <<\EOF 24381#define HAVE_GPP_BUILTIN_H 1 24382EOF 24383 24384 else 24385 24386cat >>confdefs.h <<\EOF 24387#define HAVE_GXX_BUILTIN_H 1 24388EOF 24389 24390 fi 24391else 24392 echo "$as_me: failed program was:" >&5 24393cat "conftest.$ac_ext" >&5 24394cat >"conftest.$ac_ext" <<_ACEOF 24395#line 24395 "configure" 24396#include "confdefs.h" 24397 24398#include <builtin.h> 24399 24400int 24401main (void) 24402{ 24403two_arg_error_handler_t foo2 = lib_error_handler 24404 ; 24405 return 0; 24406} 24407_ACEOF 24408rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24409if { (eval echo "$as_me:24409: \"$ac_link\"") >&5 24410 (eval $ac_link) 2>&5 24411 ac_status=$? 24412 echo "$as_me:24412: \$? = $ac_status" >&5 24413 (exit "$ac_status"); } && 24414 { ac_try='test -s "conftest$ac_exeext"' 24415 { (eval echo "$as_me:24415: \"$ac_try\"") >&5 24416 (eval $ac_try) 2>&5 24417 ac_status=$? 24418 echo "$as_me:24418: \$? = $ac_status" >&5 24419 (exit "$ac_status"); }; }; then 24420 cf_cxx_library=yes 24421 24422cf_add_libs="$CXXLIBS" 24423# reverse order 24424cf_add_0lib= 24425for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24426# filter duplicates 24427for cf_add_1lib in $cf_add_0lib; do 24428 for cf_add_2lib in $cf_add_libs; do 24429 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24430 cf_add_1lib= 24431 break 24432 fi 24433 done 24434 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24435done 24436CXXLIBS="$cf_add_libs" 24437 24438cat >>confdefs.h <<\EOF 24439#define HAVE_BUILTIN_H 1 24440EOF 24441 24442else 24443 echo "$as_me: failed program was:" >&5 24444cat "conftest.$ac_ext" >&5 24445cf_cxx_library=no 24446fi 24447rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24448fi 24449rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24450 LIBS="$cf_save" 24451 echo "$as_me:24451: result: $cf_cxx_library" >&5 24452echo "${ECHO_T}$cf_cxx_library" >&6 24453fi 24454 24455 ;; 24456 (*) 24457 cf_cxx_library=no 24458 ;; 24459 esac 24460 24461 ac_ext=cc 24462ac_cpp='$CXXCPP $CPPFLAGS' 24463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 24464ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 24465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24466ac_main_return="return" 24467echo "$as_me:24467: checking how to run the C++ preprocessor" >&5 24468echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 24469if test -z "$CXXCPP"; then 24470 if test "${ac_cv_prog_CXXCPP+set}" = set; then 24471 echo $ECHO_N "(cached) $ECHO_C" >&6 24472else 24473 # Double quotes because CXXCPP needs to be expanded 24474 for CXXCPP in "$CXX -E" "/lib/cpp" 24475 do 24476 ac_preproc_ok=false 24477for ac_cxx_preproc_warn_flag in '' yes 24478do 24479 # Use a header file that comes with gcc, so configuring glibc 24480 # with a fresh cross-compiler works. 24481 # On the NeXT, cc -E runs the code through the compiler's parser, 24482 # not just through cpp. "Syntax error" is here to catch this case. 24483 cat >"conftest.$ac_ext" <<_ACEOF 24484#line 24484 "configure" 24485#include "confdefs.h" 24486#include <assert.h> 24487 Syntax error 24488_ACEOF 24489if { (eval echo "$as_me:24489: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24490 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24491 ac_status=$? 24492 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24493 rm -f conftest.er1 24494 cat conftest.err >&5 24495 echo "$as_me:24495: \$? = $ac_status" >&5 24496 (exit "$ac_status"); } >/dev/null; then 24497 if test -s conftest.err; then 24498 ac_cpp_err=$ac_cxx_preproc_warn_flag 24499 else 24500 ac_cpp_err= 24501 fi 24502else 24503 ac_cpp_err=yes 24504fi 24505if test -z "$ac_cpp_err"; then 24506 : 24507else 24508 echo "$as_me: failed program was:" >&5 24509 cat "conftest.$ac_ext" >&5 24510 # Broken: fails on valid input. 24511continue 24512fi 24513rm -f conftest.err "conftest.$ac_ext" 24514 24515 # OK, works on sane cases. Now check whether non-existent headers 24516 # can be detected and how. 24517 cat >"conftest.$ac_ext" <<_ACEOF 24518#line 24518 "configure" 24519#include "confdefs.h" 24520#include <ac_nonexistent.h> 24521_ACEOF 24522if { (eval echo "$as_me:24522: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24523 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24524 ac_status=$? 24525 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24526 rm -f conftest.er1 24527 cat conftest.err >&5 24528 echo "$as_me:24528: \$? = $ac_status" >&5 24529 (exit "$ac_status"); } >/dev/null; then 24530 if test -s conftest.err; then 24531 ac_cpp_err=$ac_cxx_preproc_warn_flag 24532 else 24533 ac_cpp_err= 24534 fi 24535else 24536 ac_cpp_err=yes 24537fi 24538if test -z "$ac_cpp_err"; then 24539 # Broken: success on invalid input. 24540continue 24541else 24542 echo "$as_me: failed program was:" >&5 24543 cat "conftest.$ac_ext" >&5 24544 # Passes both tests. 24545ac_preproc_ok=: 24546break 24547fi 24548rm -f conftest.err "conftest.$ac_ext" 24549 24550done 24551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24552rm -f conftest.err "conftest.$ac_ext" 24553if $ac_preproc_ok; then 24554 break 24555fi 24556 24557 done 24558 ac_cv_prog_CXXCPP=$CXXCPP 24559 24560fi 24561 CXXCPP=$ac_cv_prog_CXXCPP 24562else 24563 ac_cv_prog_CXXCPP=$CXXCPP 24564fi 24565echo "$as_me:24565: result: $CXXCPP" >&5 24566echo "${ECHO_T}$CXXCPP" >&6 24567ac_preproc_ok=false 24568for ac_cxx_preproc_warn_flag in '' yes 24569do 24570 # Use a header file that comes with gcc, so configuring glibc 24571 # with a fresh cross-compiler works. 24572 # On the NeXT, cc -E runs the code through the compiler's parser, 24573 # not just through cpp. "Syntax error" is here to catch this case. 24574 cat >"conftest.$ac_ext" <<_ACEOF 24575#line 24575 "configure" 24576#include "confdefs.h" 24577#include <assert.h> 24578 Syntax error 24579_ACEOF 24580if { (eval echo "$as_me:24580: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24581 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24582 ac_status=$? 24583 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24584 rm -f conftest.er1 24585 cat conftest.err >&5 24586 echo "$as_me:24586: \$? = $ac_status" >&5 24587 (exit "$ac_status"); } >/dev/null; then 24588 if test -s conftest.err; then 24589 ac_cpp_err=$ac_cxx_preproc_warn_flag 24590 else 24591 ac_cpp_err= 24592 fi 24593else 24594 ac_cpp_err=yes 24595fi 24596if test -z "$ac_cpp_err"; then 24597 : 24598else 24599 echo "$as_me: failed program was:" >&5 24600 cat "conftest.$ac_ext" >&5 24601 # Broken: fails on valid input. 24602continue 24603fi 24604rm -f conftest.err "conftest.$ac_ext" 24605 24606 # OK, works on sane cases. Now check whether non-existent headers 24607 # can be detected and how. 24608 cat >"conftest.$ac_ext" <<_ACEOF 24609#line 24609 "configure" 24610#include "confdefs.h" 24611#include <ac_nonexistent.h> 24612_ACEOF 24613if { (eval echo "$as_me:24613: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24614 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24615 ac_status=$? 24616 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24617 rm -f conftest.er1 24618 cat conftest.err >&5 24619 echo "$as_me:24619: \$? = $ac_status" >&5 24620 (exit "$ac_status"); } >/dev/null; then 24621 if test -s conftest.err; then 24622 ac_cpp_err=$ac_cxx_preproc_warn_flag 24623 else 24624 ac_cpp_err= 24625 fi 24626else 24627 ac_cpp_err=yes 24628fi 24629if test -z "$ac_cpp_err"; then 24630 # Broken: success on invalid input. 24631continue 24632else 24633 echo "$as_me: failed program was:" >&5 24634 cat "conftest.$ac_ext" >&5 24635 # Passes both tests. 24636ac_preproc_ok=: 24637break 24638fi 24639rm -f conftest.err "conftest.$ac_ext" 24640 24641done 24642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24643rm -f conftest.err "conftest.$ac_ext" 24644if $ac_preproc_ok; then 24645 : 24646else 24647 { { echo "$as_me:24647: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 24648echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 24649 { (exit 1); exit 1; }; } 24650fi 24651 24652ac_ext=cc 24653ac_cpp='$CXXCPP $CPPFLAGS' 24654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 24655ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 24656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24657ac_main_return="return" 24658 24659for ac_header in typeinfo 24660do 24661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24662echo "$as_me:24662: checking for $ac_header" >&5 24663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24664if eval "test \"\${$as_ac_Header+set}\" = set"; then 24665 echo $ECHO_N "(cached) $ECHO_C" >&6 24666else 24667 cat >"conftest.$ac_ext" <<_ACEOF 24668#line 24668 "configure" 24669#include "confdefs.h" 24670#include <$ac_header> 24671_ACEOF 24672if { (eval echo "$as_me:24672: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24673 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24674 ac_status=$? 24675 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24676 rm -f conftest.er1 24677 cat conftest.err >&5 24678 echo "$as_me:24678: \$? = $ac_status" >&5 24679 (exit "$ac_status"); } >/dev/null; then 24680 if test -s conftest.err; then 24681 ac_cpp_err=$ac_cxx_preproc_warn_flag 24682 else 24683 ac_cpp_err= 24684 fi 24685else 24686 ac_cpp_err=yes 24687fi 24688if test -z "$ac_cpp_err"; then 24689 eval "$as_ac_Header=yes" 24690else 24691 echo "$as_me: failed program was:" >&5 24692 cat "conftest.$ac_ext" >&5 24693 eval "$as_ac_Header=no" 24694fi 24695rm -f conftest.err "conftest.$ac_ext" 24696fi 24697echo "$as_me:24697: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 24698echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 24699if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 24700 cat >>confdefs.h <<EOF 24701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24702EOF 24703 24704fi 24705done 24706 24707for ac_header in iostream 24708do 24709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24710echo "$as_me:24710: checking for $ac_header" >&5 24711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24712if eval "test \"\${$as_ac_Header+set}\" = set"; then 24713 echo $ECHO_N "(cached) $ECHO_C" >&6 24714else 24715 cat >"conftest.$ac_ext" <<_ACEOF 24716#line 24716 "configure" 24717#include "confdefs.h" 24718#include <$ac_header> 24719_ACEOF 24720if { (eval echo "$as_me:24720: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24721 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24722 ac_status=$? 24723 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24724 rm -f conftest.er1 24725 cat conftest.err >&5 24726 echo "$as_me:24726: \$? = $ac_status" >&5 24727 (exit "$ac_status"); } >/dev/null; then 24728 if test -s conftest.err; then 24729 ac_cpp_err=$ac_cxx_preproc_warn_flag 24730 else 24731 ac_cpp_err= 24732 fi 24733else 24734 ac_cpp_err=yes 24735fi 24736if test -z "$ac_cpp_err"; then 24737 eval "$as_ac_Header=yes" 24738else 24739 echo "$as_me: failed program was:" >&5 24740 cat "conftest.$ac_ext" >&5 24741 eval "$as_ac_Header=no" 24742fi 24743rm -f conftest.err "conftest.$ac_ext" 24744fi 24745echo "$as_me:24745: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 24746echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 24747if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 24748 cat >>confdefs.h <<EOF 24749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24750EOF 24751 24752fi 24753done 24754 24755if test x"$ac_cv_header_iostream" = xyes ; then 24756 echo "$as_me:24756: checking if iostream uses std-namespace" >&5 24757echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6 24758 cat >"conftest.$ac_ext" <<_ACEOF 24759#line 24759 "configure" 24760#include "confdefs.h" 24761 24762#include <iostream> 24763using std::endl; 24764using std::cerr; 24765int 24766main (void) 24767{ 24768 24769cerr << "testing" << endl; 24770 24771 ; 24772 return 0; 24773} 24774_ACEOF 24775rm -f "conftest.$ac_objext" 24776if { (eval echo "$as_me:24776: \"$ac_compile\"") >&5 24777 (eval $ac_compile) 2>&5 24778 ac_status=$? 24779 echo "$as_me:24779: \$? = $ac_status" >&5 24780 (exit "$ac_status"); } && 24781 { ac_try='test -s "conftest.$ac_objext"' 24782 { (eval echo "$as_me:24782: \"$ac_try\"") >&5 24783 (eval $ac_try) 2>&5 24784 ac_status=$? 24785 echo "$as_me:24785: \$? = $ac_status" >&5 24786 (exit "$ac_status"); }; }; then 24787 cf_iostream_namespace=yes 24788else 24789 echo "$as_me: failed program was:" >&5 24790cat "conftest.$ac_ext" >&5 24791cf_iostream_namespace=no 24792fi 24793rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24794 echo "$as_me:24794: result: $cf_iostream_namespace" >&5 24795echo "${ECHO_T}$cf_iostream_namespace" >&6 24796 if test "$cf_iostream_namespace" = yes ; then 24797 24798cat >>confdefs.h <<\EOF 24799#define IOSTREAM_NAMESPACE 1 24800EOF 24801 24802 fi 24803fi 24804 24805echo "$as_me:24805: checking if we should include stdbool.h" >&5 24806echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 24807 24808if test "${cf_cv_header_stdbool_h+set}" = set; then 24809 echo $ECHO_N "(cached) $ECHO_C" >&6 24810else 24811 24812 cat >"conftest.$ac_ext" <<_ACEOF 24813#line 24813 "configure" 24814#include "confdefs.h" 24815 24816int 24817main (void) 24818{ 24819bool foo = false 24820 ; 24821 return 0; 24822} 24823_ACEOF 24824rm -f "conftest.$ac_objext" 24825if { (eval echo "$as_me:24825: \"$ac_compile\"") >&5 24826 (eval $ac_compile) 2>&5 24827 ac_status=$? 24828 echo "$as_me:24828: \$? = $ac_status" >&5 24829 (exit "$ac_status"); } && 24830 { ac_try='test -s "conftest.$ac_objext"' 24831 { (eval echo "$as_me:24831: \"$ac_try\"") >&5 24832 (eval $ac_try) 2>&5 24833 ac_status=$? 24834 echo "$as_me:24834: \$? = $ac_status" >&5 24835 (exit "$ac_status"); }; }; then 24836 cf_cv_header_stdbool_h=0 24837else 24838 echo "$as_me: failed program was:" >&5 24839cat "conftest.$ac_ext" >&5 24840cat >"conftest.$ac_ext" <<_ACEOF 24841#line 24841 "configure" 24842#include "confdefs.h" 24843 24844#ifndef __BEOS__ 24845#include <stdbool.h> 24846#endif 24847 24848int 24849main (void) 24850{ 24851bool foo = false 24852 ; 24853 return 0; 24854} 24855_ACEOF 24856rm -f "conftest.$ac_objext" 24857if { (eval echo "$as_me:24857: \"$ac_compile\"") >&5 24858 (eval $ac_compile) 2>&5 24859 ac_status=$? 24860 echo "$as_me:24860: \$? = $ac_status" >&5 24861 (exit "$ac_status"); } && 24862 { ac_try='test -s "conftest.$ac_objext"' 24863 { (eval echo "$as_me:24863: \"$ac_try\"") >&5 24864 (eval $ac_try) 2>&5 24865 ac_status=$? 24866 echo "$as_me:24866: \$? = $ac_status" >&5 24867 (exit "$ac_status"); }; }; then 24868 cf_cv_header_stdbool_h=1 24869else 24870 echo "$as_me: failed program was:" >&5 24871cat "conftest.$ac_ext" >&5 24872cf_cv_header_stdbool_h=0 24873fi 24874rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24875fi 24876rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24877fi 24878 24879if test "$cf_cv_header_stdbool_h" = 1 24880then echo "$as_me:24880: result: yes" >&5 24881echo "${ECHO_T}yes" >&6 24882else echo "$as_me:24882: result: no" >&5 24883echo "${ECHO_T}no" >&6 24884fi 24885 24886echo "$as_me:24886: checking for builtin bool type" >&5 24887echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 24888 24889if test "${cf_cv_builtin_bool+set}" = set; then 24890 echo $ECHO_N "(cached) $ECHO_C" >&6 24891else 24892 24893 cat >"conftest.$ac_ext" <<_ACEOF 24894#line 24894 "configure" 24895#include "confdefs.h" 24896 24897#include <stdio.h> 24898#include <sys/types.h> 24899 24900int 24901main (void) 24902{ 24903bool x = false 24904 ; 24905 return 0; 24906} 24907_ACEOF 24908rm -f "conftest.$ac_objext" 24909if { (eval echo "$as_me:24909: \"$ac_compile\"") >&5 24910 (eval $ac_compile) 2>&5 24911 ac_status=$? 24912 echo "$as_me:24912: \$? = $ac_status" >&5 24913 (exit "$ac_status"); } && 24914 { ac_try='test -s "conftest.$ac_objext"' 24915 { (eval echo "$as_me:24915: \"$ac_try\"") >&5 24916 (eval $ac_try) 2>&5 24917 ac_status=$? 24918 echo "$as_me:24918: \$? = $ac_status" >&5 24919 (exit "$ac_status"); }; }; then 24920 cf_cv_builtin_bool=1 24921else 24922 echo "$as_me: failed program was:" >&5 24923cat "conftest.$ac_ext" >&5 24924cf_cv_builtin_bool=0 24925fi 24926rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24927 24928fi 24929 24930if test "$cf_cv_builtin_bool" = 1 24931then echo "$as_me:24931: result: yes" >&5 24932echo "${ECHO_T}yes" >&6 24933else echo "$as_me:24933: result: no" >&5 24934echo "${ECHO_T}no" >&6 24935fi 24936 24937echo "$as_me:24937: checking for bool" >&5 24938echo $ECHO_N "checking for bool... $ECHO_C" >&6 24939if test "${ac_cv_type_bool+set}" = set; then 24940 echo $ECHO_N "(cached) $ECHO_C" >&6 24941else 24942 cat >"conftest.$ac_ext" <<_ACEOF 24943#line 24943 "configure" 24944#include "confdefs.h" 24945 24946#include <stdlib.h> 24947#include <stdio.h> 24948 24949#if defined(__cplusplus) 24950 24951#ifdef HAVE_GXX_BUILTIN_H 24952#include <g++/builtin.h> 24953#elif HAVE_GPP_BUILTIN_H 24954#include <gpp/builtin.h> 24955#elif HAVE_BUILTIN_H 24956#include <builtin.h> 24957#endif 24958 24959#else 24960 24961#if $cf_cv_header_stdbool_h 24962#include <stdbool.h> 24963#endif 24964 24965#endif 24966 24967int 24968main (void) 24969{ 24970if ((bool *) 0) 24971 return 0; 24972if (sizeof (bool)) 24973 return 0; 24974 ; 24975 return 0; 24976} 24977_ACEOF 24978rm -f "conftest.$ac_objext" 24979if { (eval echo "$as_me:24979: \"$ac_compile\"") >&5 24980 (eval $ac_compile) 2>&5 24981 ac_status=$? 24982 echo "$as_me:24982: \$? = $ac_status" >&5 24983 (exit "$ac_status"); } && 24984 { ac_try='test -s "conftest.$ac_objext"' 24985 { (eval echo "$as_me:24985: \"$ac_try\"") >&5 24986 (eval $ac_try) 2>&5 24987 ac_status=$? 24988 echo "$as_me:24988: \$? = $ac_status" >&5 24989 (exit "$ac_status"); }; }; then 24990 ac_cv_type_bool=yes 24991else 24992 echo "$as_me: failed program was:" >&5 24993cat "conftest.$ac_ext" >&5 24994ac_cv_type_bool=no 24995fi 24996rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24997fi 24998echo "$as_me:24998: result: $ac_cv_type_bool" >&5 24999echo "${ECHO_T}$ac_cv_type_bool" >&6 25000 25001echo "$as_me:25001: checking size of bool" >&5 25002echo $ECHO_N "checking size of bool... $ECHO_C" >&6 25003if test "${ac_cv_sizeof_bool+set}" = set; then 25004 echo $ECHO_N "(cached) $ECHO_C" >&6 25005else 25006 if test "$ac_cv_type_bool" = yes; then 25007 if test "$cross_compiling" = yes; then 25008 # Depending upon the size, compute the lo and hi bounds. 25009cat >"conftest.$ac_ext" <<_ACEOF 25010#line 25010 "configure" 25011#include "confdefs.h" 25012 25013#include <stdlib.h> 25014#include <stdio.h> 25015 25016#if defined(__cplusplus) 25017 25018#ifdef HAVE_GXX_BUILTIN_H 25019#include <g++/builtin.h> 25020#elif HAVE_GPP_BUILTIN_H 25021#include <gpp/builtin.h> 25022#elif HAVE_BUILTIN_H 25023#include <builtin.h> 25024#endif 25025 25026#else 25027 25028#if $cf_cv_header_stdbool_h 25029#include <stdbool.h> 25030#endif 25031 25032#endif 25033 25034int 25035main (void) 25036{ 25037int _array_ [1 - 2 * !((sizeof (bool)) >= 0)] 25038 ; 25039 return 0; 25040} 25041_ACEOF 25042rm -f "conftest.$ac_objext" 25043if { (eval echo "$as_me:25043: \"$ac_compile\"") >&5 25044 (eval $ac_compile) 2>&5 25045 ac_status=$? 25046 echo "$as_me:25046: \$? = $ac_status" >&5 25047 (exit "$ac_status"); } && 25048 { ac_try='test -s "conftest.$ac_objext"' 25049 { (eval echo "$as_me:25049: \"$ac_try\"") >&5 25050 (eval $ac_try) 2>&5 25051 ac_status=$? 25052 echo "$as_me:25052: \$? = $ac_status" >&5 25053 (exit "$ac_status"); }; }; then 25054 ac_lo=0 ac_mid=0 25055 while :; do 25056 cat >"conftest.$ac_ext" <<_ACEOF 25057#line 25057 "configure" 25058#include "confdefs.h" 25059 25060#include <stdlib.h> 25061#include <stdio.h> 25062 25063#if defined(__cplusplus) 25064 25065#ifdef HAVE_GXX_BUILTIN_H 25066#include <g++/builtin.h> 25067#elif HAVE_GPP_BUILTIN_H 25068#include <gpp/builtin.h> 25069#elif HAVE_BUILTIN_H 25070#include <builtin.h> 25071#endif 25072 25073#else 25074 25075#if $cf_cv_header_stdbool_h 25076#include <stdbool.h> 25077#endif 25078 25079#endif 25080 25081int 25082main (void) 25083{ 25084int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25085 ; 25086 return 0; 25087} 25088_ACEOF 25089rm -f "conftest.$ac_objext" 25090if { (eval echo "$as_me:25090: \"$ac_compile\"") >&5 25091 (eval $ac_compile) 2>&5 25092 ac_status=$? 25093 echo "$as_me:25093: \$? = $ac_status" >&5 25094 (exit "$ac_status"); } && 25095 { ac_try='test -s "conftest.$ac_objext"' 25096 { (eval echo "$as_me:25096: \"$ac_try\"") >&5 25097 (eval $ac_try) 2>&5 25098 ac_status=$? 25099 echo "$as_me:25099: \$? = $ac_status" >&5 25100 (exit "$ac_status"); }; }; then 25101 ac_hi=$ac_mid; break 25102else 25103 echo "$as_me: failed program was:" >&5 25104cat "conftest.$ac_ext" >&5 25105ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 25106fi 25107rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25108 done 25109else 25110 echo "$as_me: failed program was:" >&5 25111cat "conftest.$ac_ext" >&5 25112ac_hi=-1 ac_mid=-1 25113 while :; do 25114 cat >"conftest.$ac_ext" <<_ACEOF 25115#line 25115 "configure" 25116#include "confdefs.h" 25117 25118#include <stdlib.h> 25119#include <stdio.h> 25120 25121#if defined(__cplusplus) 25122 25123#ifdef HAVE_GXX_BUILTIN_H 25124#include <g++/builtin.h> 25125#elif HAVE_GPP_BUILTIN_H 25126#include <gpp/builtin.h> 25127#elif HAVE_BUILTIN_H 25128#include <builtin.h> 25129#endif 25130 25131#else 25132 25133#if $cf_cv_header_stdbool_h 25134#include <stdbool.h> 25135#endif 25136 25137#endif 25138 25139int 25140main (void) 25141{ 25142int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)] 25143 ; 25144 return 0; 25145} 25146_ACEOF 25147rm -f "conftest.$ac_objext" 25148if { (eval echo "$as_me:25148: \"$ac_compile\"") >&5 25149 (eval $ac_compile) 2>&5 25150 ac_status=$? 25151 echo "$as_me:25151: \$? = $ac_status" >&5 25152 (exit "$ac_status"); } && 25153 { ac_try='test -s "conftest.$ac_objext"' 25154 { (eval echo "$as_me:25154: \"$ac_try\"") >&5 25155 (eval $ac_try) 2>&5 25156 ac_status=$? 25157 echo "$as_me:25157: \$? = $ac_status" >&5 25158 (exit "$ac_status"); }; }; then 25159 ac_lo=$ac_mid; break 25160else 25161 echo "$as_me: failed program was:" >&5 25162cat "conftest.$ac_ext" >&5 25163ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 25164fi 25165rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25166 done 25167fi 25168rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25169# Binary search between lo and hi bounds. 25170while test "x$ac_lo" != "x$ac_hi"; do 25171 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 25172 cat >"conftest.$ac_ext" <<_ACEOF 25173#line 25173 "configure" 25174#include "confdefs.h" 25175 25176#include <stdlib.h> 25177#include <stdio.h> 25178 25179#if defined(__cplusplus) 25180 25181#ifdef HAVE_GXX_BUILTIN_H 25182#include <g++/builtin.h> 25183#elif HAVE_GPP_BUILTIN_H 25184#include <gpp/builtin.h> 25185#elif HAVE_BUILTIN_H 25186#include <builtin.h> 25187#endif 25188 25189#else 25190 25191#if $cf_cv_header_stdbool_h 25192#include <stdbool.h> 25193#endif 25194 25195#endif 25196 25197int 25198main (void) 25199{ 25200int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25201 ; 25202 return 0; 25203} 25204_ACEOF 25205rm -f "conftest.$ac_objext" 25206if { (eval echo "$as_me:25206: \"$ac_compile\"") >&5 25207 (eval $ac_compile) 2>&5 25208 ac_status=$? 25209 echo "$as_me:25209: \$? = $ac_status" >&5 25210 (exit "$ac_status"); } && 25211 { ac_try='test -s "conftest.$ac_objext"' 25212 { (eval echo "$as_me:25212: \"$ac_try\"") >&5 25213 (eval $ac_try) 2>&5 25214 ac_status=$? 25215 echo "$as_me:25215: \$? = $ac_status" >&5 25216 (exit "$ac_status"); }; }; then 25217 ac_hi=$ac_mid 25218else 25219 echo "$as_me: failed program was:" >&5 25220cat "conftest.$ac_ext" >&5 25221ac_lo=`expr "$ac_mid" + 1` 25222fi 25223rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25224done 25225ac_cv_sizeof_bool=$ac_lo 25226else 25227 if test "$cross_compiling" = yes; then 25228 { { echo "$as_me:25228: error: cannot run test program while cross compiling" >&5 25229echo "$as_me: error: cannot run test program while cross compiling" >&2;} 25230 { (exit 1); exit 1; }; } 25231else 25232 cat >"conftest.$ac_ext" <<_ACEOF 25233#line 25233 "configure" 25234#include "confdefs.h" 25235 25236#include <stdlib.h> 25237#include <stdio.h> 25238 25239#if defined(__cplusplus) 25240 25241#ifdef HAVE_GXX_BUILTIN_H 25242#include <g++/builtin.h> 25243#elif HAVE_GPP_BUILTIN_H 25244#include <gpp/builtin.h> 25245#elif HAVE_BUILTIN_H 25246#include <builtin.h> 25247#endif 25248 25249#else 25250 25251#if $cf_cv_header_stdbool_h 25252#include <stdbool.h> 25253#endif 25254 25255#endif 25256 25257int 25258main (void) 25259{ 25260FILE *f = fopen ("conftest.val", "w"); 25261if (!f) 25262 $ac_main_return (1); 25263fprintf (f, "%d", (sizeof (bool))); 25264fclose (f); 25265 ; 25266 return 0; 25267} 25268_ACEOF 25269rm -f "conftest$ac_exeext" 25270if { (eval echo "$as_me:25270: \"$ac_link\"") >&5 25271 (eval $ac_link) 2>&5 25272 ac_status=$? 25273 echo "$as_me:25273: \$? = $ac_status" >&5 25274 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25275 { (eval echo "$as_me:25275: \"$ac_try\"") >&5 25276 (eval $ac_try) 2>&5 25277 ac_status=$? 25278 echo "$as_me:25278: \$? = $ac_status" >&5 25279 (exit "$ac_status"); }; }; then 25280 ac_cv_sizeof_bool=`cat conftest.val` 25281else 25282 echo "$as_me: program exited with status $ac_status" >&5 25283echo "$as_me: failed program was:" >&5 25284cat "conftest.$ac_ext" >&5 25285fi 25286rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25287fi 25288fi 25289rm -f conftest.val 25290else 25291 ac_cv_sizeof_bool=0 25292fi 25293fi 25294echo "$as_me:25294: result: $ac_cv_sizeof_bool" >&5 25295echo "${ECHO_T}$ac_cv_sizeof_bool" >&6 25296cat >>confdefs.h <<EOF 25297#define SIZEOF_BOOL $ac_cv_sizeof_bool 25298EOF 25299 25300echo "$as_me:25300: checking for type of bool" >&5 25301echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 25302if test "${cf_cv_type_of_bool+set}" = set; then 25303 echo $ECHO_N "(cached) $ECHO_C" >&6 25304else 25305 25306 rm -f cf_test.out 25307 if test "$cross_compiling" = yes; then 25308 25309 case x$ac_cv_sizeof_bool in 25310 (x1) cf_cv_type_of_bool="unsigned char";; 25311 (x2) cf_cv_type_of_bool="unsigned short";; 25312 (x4) cf_cv_type_of_bool="unsigned int";; 25313 (x8) cf_cv_type_of_bool="unsigned long";; 25314 (*) cf_cv_type_of_bool=unknown;; 25315 esac 25316 25317else 25318 cat >"conftest.$ac_ext" <<_ACEOF 25319#line 25319 "configure" 25320#include "confdefs.h" 25321 25322#include <stdlib.h> 25323#include <stdio.h> 25324 25325#if defined(__cplusplus) 25326 25327#ifdef HAVE_GXX_BUILTIN_H 25328#include <g++/builtin.h> 25329#elif HAVE_GPP_BUILTIN_H 25330#include <gpp/builtin.h> 25331#elif HAVE_BUILTIN_H 25332#include <builtin.h> 25333#endif 25334 25335#else 25336 25337#if $cf_cv_header_stdbool_h 25338#include <stdbool.h> 25339#endif 25340 25341#endif 25342 25343int main(void) 25344{ 25345 FILE *fp = fopen("cf_test.out", "w"); 25346 if (fp != 0) { 25347 bool x = true; 25348 if ((bool)(-x) >= 0) 25349 fputs("unsigned ", fp); 25350 if (sizeof(x) == sizeof(int)) fputs("int", fp); 25351 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 25352 else if (sizeof(x) == sizeof(short))fputs("short",fp); 25353 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 25354 fclose(fp); 25355 } 25356 ${cf_cv_main_return:-return}(0); 25357} 25358 25359_ACEOF 25360rm -f "conftest$ac_exeext" 25361if { (eval echo "$as_me:25361: \"$ac_link\"") >&5 25362 (eval $ac_link) 2>&5 25363 ac_status=$? 25364 echo "$as_me:25364: \$? = $ac_status" >&5 25365 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25366 { (eval echo "$as_me:25366: \"$ac_try\"") >&5 25367 (eval $ac_try) 2>&5 25368 ac_status=$? 25369 echo "$as_me:25369: \$? = $ac_status" >&5 25370 (exit "$ac_status"); }; }; then 25371 cf_cv_type_of_bool=`cat cf_test.out` 25372 if test -z "$cf_cv_type_of_bool"; then 25373 cf_cv_type_of_bool=unknown 25374 fi 25375else 25376 echo "$as_me: program exited with status $ac_status" >&5 25377echo "$as_me: failed program was:" >&5 25378cat "conftest.$ac_ext" >&5 25379cf_cv_type_of_bool=unknown 25380fi 25381rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25382fi 25383 rm -f cf_test.out 25384 25385fi 25386echo "$as_me:25386: result: $cf_cv_type_of_bool" >&5 25387echo "${ECHO_T}$cf_cv_type_of_bool" >&6 25388 25389if test "$cf_cv_type_of_bool" = unknown ; then 25390 case .$NCURSES_BOOL in 25391 (.auto|.) NCURSES_BOOL=unsigned;; 25392 esac 25393 { echo "$as_me:25393: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 25394echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 25395 cf_cv_type_of_bool=$NCURSES_BOOL 25396fi 25397 25398echo "$as_me:25398: checking for special defines needed for etip.h" >&5 25399echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6 25400cf_save_CXXFLAGS="$CXXFLAGS" 25401cf_result="none" 25402 25403# etip.h includes ncurses.h which includes ncurses_dll.h 25404# But ncurses_dll.h is generated - fix here. 25405test -d include || mkdir include 25406test -f include/ncurses_dll.h || sed -e 's/@NCURSES_WRAP_PREFIX@/'$NCURSES_WRAP_PREFIX'/g' "${srcdir}/include/ncurses_dll.h.in" >include/ncurses_dll.h 25407 25408for cf_math in "" MATH_H 25409do 25410for cf_excp in "" MATH_EXCEPTION 25411do 25412 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include" 25413 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}" 25414 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}" 25415cat >"conftest.$ac_ext" <<_ACEOF 25416#line 25416 "configure" 25417#include "confdefs.h" 25418 25419#include <etip.h.in> 25420 25421int 25422main (void) 25423{ 25424 25425 ; 25426 return 0; 25427} 25428_ACEOF 25429rm -f "conftest.$ac_objext" 25430if { (eval echo "$as_me:25430: \"$ac_compile\"") >&5 25431 (eval $ac_compile) 2>&5 25432 ac_status=$? 25433 echo "$as_me:25433: \$? = $ac_status" >&5 25434 (exit "$ac_status"); } && 25435 { ac_try='test -s "conftest.$ac_objext"' 25436 { (eval echo "$as_me:25436: \"$ac_try\"") >&5 25437 (eval $ac_try) 2>&5 25438 ac_status=$? 25439 echo "$as_me:25439: \$? = $ac_status" >&5 25440 (exit "$ac_status"); }; }; then 25441 25442 test -n "$cf_math" && cat >>confdefs.h <<EOF 25443#define ETIP_NEEDS_${cf_math} 1 25444EOF 25445 25446 test -n "$cf_excp" && cat >>confdefs.h <<EOF 25447#define ETIP_NEEDS_${cf_excp} 1 25448EOF 25449 25450 cf_result="$cf_math $cf_excp" 25451 break 2 25452 25453else 25454 echo "$as_me: failed program was:" >&5 25455cat "conftest.$ac_ext" >&5 25456fi 25457rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25458done 25459done 25460echo "$as_me:25460: result: $cf_result" >&5 25461echo "${ECHO_T}$cf_result" >&6 25462CXXFLAGS="$cf_save_CXXFLAGS" 25463 25464if test -n "$CXX"; then 25465echo "$as_me:25465: checking if $CXX accepts parameter initialization" >&5 25466echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6 25467if test "${cf_cv_cpp_param_init+set}" = set; then 25468 echo $ECHO_N "(cached) $ECHO_C" >&6 25469else 25470 25471 ac_ext=cc 25472ac_cpp='$CXXCPP $CPPFLAGS' 25473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25474ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25476ac_main_return="return" 25477 25478 if test "$cross_compiling" = yes; then 25479 cf_cv_cpp_param_init=unknown 25480else 25481 cat >"conftest.$ac_ext" <<_ACEOF 25482#line 25482 "configure" 25483#include "confdefs.h" 25484 25485class TEST { 25486private: 25487 int value; 25488public: 25489 TEST(int x = 1); 25490 ~TEST(); 25491}; 25492 25493TEST::TEST(int x = 1) // some compilers do not like second initializer 25494{ 25495 value = x; 25496} 25497int main(void) { } 25498 25499_ACEOF 25500rm -f "conftest$ac_exeext" 25501if { (eval echo "$as_me:25501: \"$ac_link\"") >&5 25502 (eval $ac_link) 2>&5 25503 ac_status=$? 25504 echo "$as_me:25504: \$? = $ac_status" >&5 25505 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25506 { (eval echo "$as_me:25506: \"$ac_try\"") >&5 25507 (eval $ac_try) 2>&5 25508 ac_status=$? 25509 echo "$as_me:25509: \$? = $ac_status" >&5 25510 (exit "$ac_status"); }; }; then 25511 cf_cv_cpp_param_init=yes 25512else 25513 echo "$as_me: program exited with status $ac_status" >&5 25514echo "$as_me: failed program was:" >&5 25515cat "conftest.$ac_ext" >&5 25516cf_cv_cpp_param_init=no 25517fi 25518rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25519fi 25520 ac_ext=cc 25521ac_cpp='$CXXCPP $CPPFLAGS' 25522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25523ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25525ac_main_return="return" 25526 25527fi 25528echo "$as_me:25528: result: $cf_cv_cpp_param_init" >&5 25529echo "${ECHO_T}$cf_cv_cpp_param_init" >&6 25530fi 25531test "$cf_cv_cpp_param_init" = yes && 25532cat >>confdefs.h <<\EOF 25533#define CPP_HAS_PARAM_INIT 1 25534EOF 25535 25536if test -n "$CXX"; then 25537 25538echo "$as_me:25538: checking if $CXX accepts static_cast" >&5 25539echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6 25540if test "${cf_cv_cpp_static_cast+set}" = set; then 25541 echo $ECHO_N "(cached) $ECHO_C" >&6 25542else 25543 25544 ac_ext=cc 25545ac_cpp='$CXXCPP $CPPFLAGS' 25546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25547ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25549ac_main_return="return" 25550 25551 cat >"conftest.$ac_ext" <<_ACEOF 25552#line 25552 "configure" 25553#include "confdefs.h" 25554 25555class NCursesPanel 25556{ 25557public: 25558 NCursesPanel(int nlines, 25559 int ncols, 25560 int begin_y = 0, 25561 int begin_x = 0) 25562 { 25563 } 25564 NCursesPanel(); 25565 ~NCursesPanel(); 25566}; 25567 25568template<class T> class NCursesUserPanel : public NCursesPanel 25569{ 25570public: 25571 NCursesUserPanel (int nlines, 25572 int ncols, 25573 int begin_y = 0, 25574 int begin_x = 0, 25575 const T* p_UserData = static_cast<T*>(0)) 25576 : NCursesPanel (nlines, ncols, begin_y, begin_x) 25577 { 25578 }; 25579 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel() 25580 { 25581 }; 25582 25583 virtual ~NCursesUserPanel() {}; 25584}; 25585 25586int 25587main (void) 25588{ 25589 25590 const char* p_UserData = static_cast<char*>(0) 25591 ; 25592 return 0; 25593} 25594_ACEOF 25595rm -f "conftest.$ac_objext" 25596if { (eval echo "$as_me:25596: \"$ac_compile\"") >&5 25597 (eval $ac_compile) 2>&5 25598 ac_status=$? 25599 echo "$as_me:25599: \$? = $ac_status" >&5 25600 (exit "$ac_status"); } && 25601 { ac_try='test -s "conftest.$ac_objext"' 25602 { (eval echo "$as_me:25602: \"$ac_try\"") >&5 25603 (eval $ac_try) 2>&5 25604 ac_status=$? 25605 echo "$as_me:25605: \$? = $ac_status" >&5 25606 (exit "$ac_status"); }; }; then 25607 cf_cv_cpp_static_cast=yes 25608else 25609 echo "$as_me: failed program was:" >&5 25610cat "conftest.$ac_ext" >&5 25611cf_cv_cpp_static_cast=no 25612fi 25613rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25614 25615 ac_ext=cc 25616ac_cpp='$CXXCPP $CPPFLAGS' 25617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25618ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25620ac_main_return="return" 25621 25622fi 25623echo "$as_me:25623: result: $cf_cv_cpp_static_cast" >&5 25624echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6 25625 25626fi 25627 25628test "$cf_cv_cpp_static_cast" = yes && 25629cat >>confdefs.h <<\EOF 25630#define CPP_HAS_STATIC_CAST 1 25631EOF 25632 25633 CXX_AR='$(AR)' 25634 CXX_ARFLAGS='$(ARFLAGS)' 25635 case "$cf_cv_system_name" in 25636 (irix*) 25637 if test "$GXX" != yes ; then 25638 CXX_AR='$(CXX)' 25639 CXX_ARFLAGS='-ar -o' 25640 fi 25641 ;; 25642 (sco3.2v5*) 25643 CXXLDFLAGS="-u main" 25644 ;; 25645 (solaris2*) 25646 if test "$GXX" != yes ; then 25647 CXX_AR='$(CXX)' 25648 CXX_ARFLAGS='-xar -o' 25649 fi 25650 ;; 25651 esac 25652 25653else 25654 cf_cxx_library=no 25655 cf_cv_builtin_bool=1 25656 25657 # Just because we are not configuring against C++ right now does not 25658 # mean that a user will not want to use C++. Some distributors disable 25659 # the C++ portion of this configuration as a shortcut (or just to avoid 25660 # compiling the demo in the c++ directory). So we need a reasonable 25661 # default for the 'bool' type. 25662 # 25663 # Caveat: since the storage of the bool type is not standardized, it 25664 # may change. 25665 25666 if test "$NCURSES_BOOL" != auto ; then 25667 cf_cv_type_of_bool=$NCURSES_BOOL 25668 cf_cv_header_stdbool_h=0 25669 else 25670 if test "$cf_cv_header_stdbool_h" = 1 ; then 25671 25672echo "$as_me:25672: checking for bool" >&5 25673echo $ECHO_N "checking for bool... $ECHO_C" >&6 25674if test "${ac_cv_type_bool+set}" = set; then 25675 echo $ECHO_N "(cached) $ECHO_C" >&6 25676else 25677 cat >"conftest.$ac_ext" <<_ACEOF 25678#line 25678 "configure" 25679#include "confdefs.h" 25680 25681#include <stdlib.h> 25682#include <stdio.h> 25683 25684#if defined(__cplusplus) 25685 25686#ifdef HAVE_GXX_BUILTIN_H 25687#include <g++/builtin.h> 25688#elif HAVE_GPP_BUILTIN_H 25689#include <gpp/builtin.h> 25690#elif HAVE_BUILTIN_H 25691#include <builtin.h> 25692#endif 25693 25694#else 25695 25696#if $cf_cv_header_stdbool_h 25697#include <stdbool.h> 25698#endif 25699 25700#endif 25701 25702int 25703main (void) 25704{ 25705if ((bool *) 0) 25706 return 0; 25707if (sizeof (bool)) 25708 return 0; 25709 ; 25710 return 0; 25711} 25712_ACEOF 25713rm -f "conftest.$ac_objext" 25714if { (eval echo "$as_me:25714: \"$ac_compile\"") >&5 25715 (eval $ac_compile) 2>&5 25716 ac_status=$? 25717 echo "$as_me:25717: \$? = $ac_status" >&5 25718 (exit "$ac_status"); } && 25719 { ac_try='test -s "conftest.$ac_objext"' 25720 { (eval echo "$as_me:25720: \"$ac_try\"") >&5 25721 (eval $ac_try) 2>&5 25722 ac_status=$? 25723 echo "$as_me:25723: \$? = $ac_status" >&5 25724 (exit "$ac_status"); }; }; then 25725 ac_cv_type_bool=yes 25726else 25727 echo "$as_me: failed program was:" >&5 25728cat "conftest.$ac_ext" >&5 25729ac_cv_type_bool=no 25730fi 25731rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25732fi 25733echo "$as_me:25733: result: $ac_cv_type_bool" >&5 25734echo "${ECHO_T}$ac_cv_type_bool" >&6 25735 25736echo "$as_me:25736: checking size of bool" >&5 25737echo $ECHO_N "checking size of bool... $ECHO_C" >&6 25738if test "${ac_cv_sizeof_bool+set}" = set; then 25739 echo $ECHO_N "(cached) $ECHO_C" >&6 25740else 25741 if test "$ac_cv_type_bool" = yes; then 25742 if test "$cross_compiling" = yes; then 25743 # Depending upon the size, compute the lo and hi bounds. 25744cat >"conftest.$ac_ext" <<_ACEOF 25745#line 25745 "configure" 25746#include "confdefs.h" 25747 25748#include <stdlib.h> 25749#include <stdio.h> 25750 25751#if defined(__cplusplus) 25752 25753#ifdef HAVE_GXX_BUILTIN_H 25754#include <g++/builtin.h> 25755#elif HAVE_GPP_BUILTIN_H 25756#include <gpp/builtin.h> 25757#elif HAVE_BUILTIN_H 25758#include <builtin.h> 25759#endif 25760 25761#else 25762 25763#if $cf_cv_header_stdbool_h 25764#include <stdbool.h> 25765#endif 25766 25767#endif 25768 25769int 25770main (void) 25771{ 25772int _array_ [1 - 2 * !((sizeof (bool)) >= 0)] 25773 ; 25774 return 0; 25775} 25776_ACEOF 25777rm -f "conftest.$ac_objext" 25778if { (eval echo "$as_me:25778: \"$ac_compile\"") >&5 25779 (eval $ac_compile) 2>&5 25780 ac_status=$? 25781 echo "$as_me:25781: \$? = $ac_status" >&5 25782 (exit "$ac_status"); } && 25783 { ac_try='test -s "conftest.$ac_objext"' 25784 { (eval echo "$as_me:25784: \"$ac_try\"") >&5 25785 (eval $ac_try) 2>&5 25786 ac_status=$? 25787 echo "$as_me:25787: \$? = $ac_status" >&5 25788 (exit "$ac_status"); }; }; then 25789 ac_lo=0 ac_mid=0 25790 while :; do 25791 cat >"conftest.$ac_ext" <<_ACEOF 25792#line 25792 "configure" 25793#include "confdefs.h" 25794 25795#include <stdlib.h> 25796#include <stdio.h> 25797 25798#if defined(__cplusplus) 25799 25800#ifdef HAVE_GXX_BUILTIN_H 25801#include <g++/builtin.h> 25802#elif HAVE_GPP_BUILTIN_H 25803#include <gpp/builtin.h> 25804#elif HAVE_BUILTIN_H 25805#include <builtin.h> 25806#endif 25807 25808#else 25809 25810#if $cf_cv_header_stdbool_h 25811#include <stdbool.h> 25812#endif 25813 25814#endif 25815 25816int 25817main (void) 25818{ 25819int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25820 ; 25821 return 0; 25822} 25823_ACEOF 25824rm -f "conftest.$ac_objext" 25825if { (eval echo "$as_me:25825: \"$ac_compile\"") >&5 25826 (eval $ac_compile) 2>&5 25827 ac_status=$? 25828 echo "$as_me:25828: \$? = $ac_status" >&5 25829 (exit "$ac_status"); } && 25830 { ac_try='test -s "conftest.$ac_objext"' 25831 { (eval echo "$as_me:25831: \"$ac_try\"") >&5 25832 (eval $ac_try) 2>&5 25833 ac_status=$? 25834 echo "$as_me:25834: \$? = $ac_status" >&5 25835 (exit "$ac_status"); }; }; then 25836 ac_hi=$ac_mid; break 25837else 25838 echo "$as_me: failed program was:" >&5 25839cat "conftest.$ac_ext" >&5 25840ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 25841fi 25842rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25843 done 25844else 25845 echo "$as_me: failed program was:" >&5 25846cat "conftest.$ac_ext" >&5 25847ac_hi=-1 ac_mid=-1 25848 while :; do 25849 cat >"conftest.$ac_ext" <<_ACEOF 25850#line 25850 "configure" 25851#include "confdefs.h" 25852 25853#include <stdlib.h> 25854#include <stdio.h> 25855 25856#if defined(__cplusplus) 25857 25858#ifdef HAVE_GXX_BUILTIN_H 25859#include <g++/builtin.h> 25860#elif HAVE_GPP_BUILTIN_H 25861#include <gpp/builtin.h> 25862#elif HAVE_BUILTIN_H 25863#include <builtin.h> 25864#endif 25865 25866#else 25867 25868#if $cf_cv_header_stdbool_h 25869#include <stdbool.h> 25870#endif 25871 25872#endif 25873 25874int 25875main (void) 25876{ 25877int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)] 25878 ; 25879 return 0; 25880} 25881_ACEOF 25882rm -f "conftest.$ac_objext" 25883if { (eval echo "$as_me:25883: \"$ac_compile\"") >&5 25884 (eval $ac_compile) 2>&5 25885 ac_status=$? 25886 echo "$as_me:25886: \$? = $ac_status" >&5 25887 (exit "$ac_status"); } && 25888 { ac_try='test -s "conftest.$ac_objext"' 25889 { (eval echo "$as_me:25889: \"$ac_try\"") >&5 25890 (eval $ac_try) 2>&5 25891 ac_status=$? 25892 echo "$as_me:25892: \$? = $ac_status" >&5 25893 (exit "$ac_status"); }; }; then 25894 ac_lo=$ac_mid; break 25895else 25896 echo "$as_me: failed program was:" >&5 25897cat "conftest.$ac_ext" >&5 25898ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 25899fi 25900rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25901 done 25902fi 25903rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25904# Binary search between lo and hi bounds. 25905while test "x$ac_lo" != "x$ac_hi"; do 25906 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 25907 cat >"conftest.$ac_ext" <<_ACEOF 25908#line 25908 "configure" 25909#include "confdefs.h" 25910 25911#include <stdlib.h> 25912#include <stdio.h> 25913 25914#if defined(__cplusplus) 25915 25916#ifdef HAVE_GXX_BUILTIN_H 25917#include <g++/builtin.h> 25918#elif HAVE_GPP_BUILTIN_H 25919#include <gpp/builtin.h> 25920#elif HAVE_BUILTIN_H 25921#include <builtin.h> 25922#endif 25923 25924#else 25925 25926#if $cf_cv_header_stdbool_h 25927#include <stdbool.h> 25928#endif 25929 25930#endif 25931 25932int 25933main (void) 25934{ 25935int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25936 ; 25937 return 0; 25938} 25939_ACEOF 25940rm -f "conftest.$ac_objext" 25941if { (eval echo "$as_me:25941: \"$ac_compile\"") >&5 25942 (eval $ac_compile) 2>&5 25943 ac_status=$? 25944 echo "$as_me:25944: \$? = $ac_status" >&5 25945 (exit "$ac_status"); } && 25946 { ac_try='test -s "conftest.$ac_objext"' 25947 { (eval echo "$as_me:25947: \"$ac_try\"") >&5 25948 (eval $ac_try) 2>&5 25949 ac_status=$? 25950 echo "$as_me:25950: \$? = $ac_status" >&5 25951 (exit "$ac_status"); }; }; then 25952 ac_hi=$ac_mid 25953else 25954 echo "$as_me: failed program was:" >&5 25955cat "conftest.$ac_ext" >&5 25956ac_lo=`expr "$ac_mid" + 1` 25957fi 25958rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25959done 25960ac_cv_sizeof_bool=$ac_lo 25961else 25962 if test "$cross_compiling" = yes; then 25963 { { echo "$as_me:25963: error: cannot run test program while cross compiling" >&5 25964echo "$as_me: error: cannot run test program while cross compiling" >&2;} 25965 { (exit 1); exit 1; }; } 25966else 25967 cat >"conftest.$ac_ext" <<_ACEOF 25968#line 25968 "configure" 25969#include "confdefs.h" 25970 25971#include <stdlib.h> 25972#include <stdio.h> 25973 25974#if defined(__cplusplus) 25975 25976#ifdef HAVE_GXX_BUILTIN_H 25977#include <g++/builtin.h> 25978#elif HAVE_GPP_BUILTIN_H 25979#include <gpp/builtin.h> 25980#elif HAVE_BUILTIN_H 25981#include <builtin.h> 25982#endif 25983 25984#else 25985 25986#if $cf_cv_header_stdbool_h 25987#include <stdbool.h> 25988#endif 25989 25990#endif 25991 25992int 25993main (void) 25994{ 25995FILE *f = fopen ("conftest.val", "w"); 25996if (!f) 25997 $ac_main_return (1); 25998fprintf (f, "%d", (sizeof (bool))); 25999fclose (f); 26000 ; 26001 return 0; 26002} 26003_ACEOF 26004rm -f "conftest$ac_exeext" 26005if { (eval echo "$as_me:26005: \"$ac_link\"") >&5 26006 (eval $ac_link) 2>&5 26007 ac_status=$? 26008 echo "$as_me:26008: \$? = $ac_status" >&5 26009 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 26010 { (eval echo "$as_me:26010: \"$ac_try\"") >&5 26011 (eval $ac_try) 2>&5 26012 ac_status=$? 26013 echo "$as_me:26013: \$? = $ac_status" >&5 26014 (exit "$ac_status"); }; }; then 26015 ac_cv_sizeof_bool=`cat conftest.val` 26016else 26017 echo "$as_me: program exited with status $ac_status" >&5 26018echo "$as_me: failed program was:" >&5 26019cat "conftest.$ac_ext" >&5 26020fi 26021rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 26022fi 26023fi 26024rm -f conftest.val 26025else 26026 ac_cv_sizeof_bool=0 26027fi 26028fi 26029echo "$as_me:26029: result: $ac_cv_sizeof_bool" >&5 26030echo "${ECHO_T}$ac_cv_sizeof_bool" >&6 26031cat >>confdefs.h <<EOF 26032#define SIZEOF_BOOL $ac_cv_sizeof_bool 26033EOF 26034 26035echo "$as_me:26035: checking for type of bool" >&5 26036echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 26037if test "${cf_cv_type_of_bool+set}" = set; then 26038 echo $ECHO_N "(cached) $ECHO_C" >&6 26039else 26040 26041 rm -f cf_test.out 26042 if test "$cross_compiling" = yes; then 26043 26044 case x$ac_cv_sizeof_bool in 26045 (x1) cf_cv_type_of_bool="unsigned char";; 26046 (x2) cf_cv_type_of_bool="unsigned short";; 26047 (x4) cf_cv_type_of_bool="unsigned int";; 26048 (x8) cf_cv_type_of_bool="unsigned long";; 26049 (*) cf_cv_type_of_bool=unknown;; 26050 esac 26051 26052else 26053 cat >"conftest.$ac_ext" <<_ACEOF 26054#line 26054 "configure" 26055#include "confdefs.h" 26056 26057#include <stdlib.h> 26058#include <stdio.h> 26059 26060#if defined(__cplusplus) 26061 26062#ifdef HAVE_GXX_BUILTIN_H 26063#include <g++/builtin.h> 26064#elif HAVE_GPP_BUILTIN_H 26065#include <gpp/builtin.h> 26066#elif HAVE_BUILTIN_H 26067#include <builtin.h> 26068#endif 26069 26070#else 26071 26072#if $cf_cv_header_stdbool_h 26073#include <stdbool.h> 26074#endif 26075 26076#endif 26077 26078int main(void) 26079{ 26080 FILE *fp = fopen("cf_test.out", "w"); 26081 if (fp != 0) { 26082 bool x = true; 26083 if ((bool)(-x) >= 0) 26084 fputs("unsigned ", fp); 26085 if (sizeof(x) == sizeof(int)) fputs("int", fp); 26086 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 26087 else if (sizeof(x) == sizeof(short))fputs("short",fp); 26088 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 26089 fclose(fp); 26090 } 26091 ${cf_cv_main_return:-return}(0); 26092} 26093 26094_ACEOF 26095rm -f "conftest$ac_exeext" 26096if { (eval echo "$as_me:26096: \"$ac_link\"") >&5 26097 (eval $ac_link) 2>&5 26098 ac_status=$? 26099 echo "$as_me:26099: \$? = $ac_status" >&5 26100 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 26101 { (eval echo "$as_me:26101: \"$ac_try\"") >&5 26102 (eval $ac_try) 2>&5 26103 ac_status=$? 26104 echo "$as_me:26104: \$? = $ac_status" >&5 26105 (exit "$ac_status"); }; }; then 26106 cf_cv_type_of_bool=`cat cf_test.out` 26107 if test -z "$cf_cv_type_of_bool"; then 26108 cf_cv_type_of_bool=unknown 26109 fi 26110else 26111 echo "$as_me: program exited with status $ac_status" >&5 26112echo "$as_me: failed program was:" >&5 26113cat "conftest.$ac_ext" >&5 26114cf_cv_type_of_bool=unknown 26115fi 26116rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 26117fi 26118 rm -f cf_test.out 26119 26120fi 26121echo "$as_me:26121: result: $cf_cv_type_of_bool" >&5 26122echo "${ECHO_T}$cf_cv_type_of_bool" >&6 26123 26124if test "$cf_cv_type_of_bool" = unknown ; then 26125 case .$NCURSES_BOOL in 26126 (.auto|.) NCURSES_BOOL=unsigned;; 26127 esac 26128 { echo "$as_me:26128: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 26129echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 26130 cf_cv_type_of_bool=$NCURSES_BOOL 26131fi 26132 26133 else 26134 echo "$as_me:26134: checking for fallback type of bool" >&5 26135echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6 26136 case "$host_cpu" in 26137 (i?86) cf_cv_type_of_bool=char ;; 26138 (*) cf_cv_type_of_bool=int ;; 26139 esac 26140 echo "$as_me:26140: result: $cf_cv_type_of_bool" >&5 26141echo "${ECHO_T}$cf_cv_type_of_bool" >&6 26142 fi 26143 fi 26144fi 26145 26146# If the C compiler did not declare bool, and we did not determine that the C++ 26147# compiler does not declare bool, turn on an ifdef in curses.h that makes the 26148# ncurses library use the same type as C++ bool. Note that this allows one to 26149# specify the type of bool in a configure-script option and postpone 26150# integration with the C++ compiler provided that the types are compatible. 26151USE_CXX_BOOL=1 26152if test "$cf_cv_cc_bool_type" = 1 26153then 26154 # oops: C has a bool. Unlikely, but C++ could differ. 26155 USE_CXX_BOOL=0 26156elif test "$cf_cv_builtin_bool" = 0 26157then 26158 # C++ has no bool 26159 USE_CXX_BOOL=0 26160else 26161 # this is the normal case 26162 USE_CXX_BOOL='defined(__cplusplus)' 26163fi 26164 26165if test -f "${srcdir}/Ada95/Makefile.in" ; then 26166 26167 if test "$cf_with_ada" != "no" ; then 26168 if test "$with_libtool" != "no"; then 26169 { echo "$as_me:26169: WARNING: libtool does not support Ada - disabling feature" >&5 26170echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;} 26171 cf_with_ada=no 26172 fi 26173 fi 26174 26175 if test "$cf_with_ada" != "no" ; then 26176 26177for cf_prog_gnat in gnat gnatmake gprconfig gprbuild 26178do 26179 26180cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 26181 26182 unset ac_cv_path_cf_TEMP_gnat 26183 unset cf_TEMP_gnat 26184 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args. 26185set dummy $cf_prog_gnat; ac_word=$2 26186echo "$as_me:26186: checking for $ac_word" >&5 26187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 26188if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then 26189 echo $ECHO_N "(cached) $ECHO_C" >&6 26190else 26191 case $cf_TEMP_gnat in 26192 [\\/]* | ?:[\\/]*) 26193 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path. 26194 ;; 26195 *) 26196 ac_save_IFS=$IFS; IFS=$ac_path_separator 26197ac_dummy="$PATH" 26198for ac_dir in $ac_dummy; do 26199 IFS=$ac_save_IFS 26200 test -z "$ac_dir" && ac_dir=. 26201 if $as_executable_p "$ac_dir/$ac_word"; then 26202 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word" 26203 echo "$as_me:26203: found $ac_dir/$ac_word" >&5 26204 break 26205fi 26206done 26207 26208 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no" 26209 ;; 26210esac 26211fi 26212cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat 26213 26214if test -n "$cf_TEMP_gnat"; then 26215 echo "$as_me:26215: result: $cf_TEMP_gnat" >&5 26216echo "${ECHO_T}$cf_TEMP_gnat" >&6 26217else 26218 echo "$as_me:26218: result: no" >&5 26219echo "${ECHO_T}no" >&6 26220fi 26221 26222 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat" 26223 26224 if test "x$cf_TEMP_gnat" != xno; then 26225 unset cf_cv_gnat_version 26226 unset cf_TEMP_gnat 26227 26228echo "$as_me:26228: checking for $cf_prog_gnat version" >&5 26229echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6 26230if test "${cf_cv_gnat_version+set}" = set; then 26231 echo $ECHO_N "(cached) $ECHO_C" >&6 26232else 26233 26234cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \ 26235 grep '[0-9].[0-9][0-9]*' |\ 26236 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'` 26237 26238fi 26239echo "$as_me:26239: result: $cf_cv_gnat_version" >&5 26240echo "${ECHO_T}$cf_cv_gnat_version" >&6 26241test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no 26242eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version 26243 26244 fi 26245 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat" 26246 26247 unset cf_TEMP_gnat 26248 unset cf_cv_gnat_version 26249 unset ac_cv_path_cf_TEMP_gnat 26250done 26251 26252if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then 26253 cf_ada_make= 26254 cf_cv_prog_gnat_correct=no 26255else 26256 cf_ada_make=gnatmake 26257 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then 26258 # gprconfig is newer than gnatmake; we can continue... 26259 cf_ada_config="##" 26260 else 26261 rm -rf ./conftest* ./*~conftest* 26262 if mkdir conftest.src 26263 then 26264 cf_ada_config="" 26265 cd conftest.src 26266 for cf_gprconfig in Ada C 26267 do 26268 echo "$as_me:26268: checking for gprconfig name for $cf_gprconfig" >&5 26269echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6 26270 if test "$cf_gprconfig" = C 26271 then 26272 for cf_gprconfig_param in \ 26273 "$cf_gprconfig,,,,GNATGCC" \ 26274 "$cf_gprconfig,,,,GCC" \ 26275 "$cf_gprconfig" 26276 do 26277 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1` 26278 test -n "$cf_gprconfig_value" && break 26279 done 26280 else 26281 cf_gprconfig_param=$cf_gprconfig 26282 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1` 26283 fi 26284 if test -n "$cf_gprconfig_value" 26285 then 26286 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value" 26287 echo "$as_me:26287: result: $cf_gprconfig_value" >&5 26288echo "${ECHO_T}$cf_gprconfig_value" >&6 26289 else 26290 echo "$as_me:26290: result: missing" >&5 26291echo "${ECHO_T}missing" >&6 26292 cf_ada_config="#" 26293 break 26294 fi 26295 done 26296 cd .. 26297 rm -rf ./conftest* ./*~conftest* 26298 fi 26299 fi 26300 if test "x$cf_ada_config" != "x#" 26301 then 26302 26303echo "$as_me:26303: checking for gnat version" >&5 26304echo $ECHO_N "checking for gnat version... $ECHO_C" >&6 26305if test "${cf_cv_gnat_version+set}" = set; then 26306 echo $ECHO_N "(cached) $ECHO_C" >&6 26307else 26308 26309cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \ 26310 grep '[0-9].[0-9][0-9]*' |\ 26311 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'` 26312 26313fi 26314echo "$as_me:26314: result: $cf_cv_gnat_version" >&5 26315echo "${ECHO_T}$cf_cv_gnat_version" >&6 26316test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no 26317 26318case "$cf_cv_gnat_version" in 26319(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9]) 26320 cf_cv_prog_gnat_correct=yes 26321 ;; 26322(*) 26323 { echo "$as_me:26323: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5 26324echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;} 26325 cf_cv_prog_gnat_correct=no 26326 ;; 26327esac 26328 26329 # Extract the first word of "m4", so it can be a program name with args. 26330set dummy m4; ac_word=$2 26331echo "$as_me:26331: checking for $ac_word" >&5 26332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 26333if test "${ac_cv_prog_M4_exists+set}" = set; then 26334 echo $ECHO_N "(cached) $ECHO_C" >&6 26335else 26336 if test -n "$M4_exists"; then 26337 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test. 26338else 26339 ac_save_IFS=$IFS; IFS=$ac_path_separator 26340ac_dummy="$PATH" 26341for ac_dir in $ac_dummy; do 26342 IFS=$ac_save_IFS 26343 test -z "$ac_dir" && ac_dir=. 26344 $as_executable_p "$ac_dir/$ac_word" || continue 26345ac_cv_prog_M4_exists="yes" 26346echo "$as_me:26346: found $ac_dir/$ac_word" >&5 26347break 26348done 26349 26350 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no" 26351fi 26352fi 26353M4_exists=$ac_cv_prog_M4_exists 26354if test -n "$M4_exists"; then 26355 echo "$as_me:26355: result: $M4_exists" >&5 26356echo "${ECHO_T}$M4_exists" >&6 26357else 26358 echo "$as_me:26358: result: no" >&5 26359echo "${ECHO_T}no" >&6 26360fi 26361 26362 if test "$ac_cv_prog_M4_exists" = no; then 26363 cf_cv_prog_gnat_correct=no 26364 { echo "$as_me:26364: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5 26365echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;} 26366 fi 26367 if test "$cf_cv_prog_gnat_correct" = yes; then 26368 echo "$as_me:26368: checking if GNAT works" >&5 26369echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6 26370 26371rm -rf ./conftest* ./*~conftest* 26372cat >>conftest.ads <<CF_EOF 26373procedure conftest; 26374CF_EOF 26375cat >>conftest.adb <<CF_EOF 26376with Text_IO; 26377with GNAT.OS_Lib; 26378procedure conftest is 26379begin 26380 Text_IO.Put ("Hello World"); 26381 Text_IO.New_Line; 26382 GNAT.OS_Lib.OS_Exit (0); 26383end conftest; 26384CF_EOF 26385if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then 26386 if ( ./conftest 1>&5 2>&1 ) ; then 26387 cf_cv_prog_gnat_correct=yes 26388 else 26389 cf_cv_prog_gnat_correct=no 26390 fi 26391else 26392 cf_cv_prog_gnat_correct=no 26393fi 26394rm -rf ./conftest* ./*~conftest* 26395 26396 echo "$as_me:26396: result: $cf_cv_prog_gnat_correct" >&5 26397echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6 26398 fi 26399 else 26400 cf_cv_prog_gnat_correct=no 26401 fi 26402fi 26403 26404 if test "x$cf_cv_prog_gnat_correct" = xyes; then 26405 26406 ADAFLAGS="$ADAFLAGS -gnatpn" 26407 26408 echo "$as_me:26408: checking optimization options for ADAFLAGS" >&5 26409echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6 26410 case "$CFLAGS" in 26411 (*-g*) 26412 26413 ADAFLAGS="$ADAFLAGS -g" 26414 26415 ;; 26416 esac 26417 case "$CFLAGS" in 26418 (*-O*) 26419 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'` 26420 26421 ADAFLAGS="$ADAFLAGS $cf_O_flag" 26422 26423 ;; 26424 esac 26425 echo "$as_me:26425: result: $ADAFLAGS" >&5 26426echo "${ECHO_T}$ADAFLAGS" >&6 26427 26428echo "$as_me:26428: checking if GNATPREP supports -T option" >&5 26429echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6 26430if test "${cf_cv_gnatprep_opt_t+set}" = set; then 26431 echo $ECHO_N "(cached) $ECHO_C" >&6 26432else 26433 26434cf_cv_gnatprep_opt_t=no 26435gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes 26436 26437fi 26438echo "$as_me:26438: result: $cf_cv_gnatprep_opt_t" >&5 26439echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6 26440test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS" 26441 26442echo "$as_me:26442: checking if GNAT supports generics" >&5 26443echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6 26444case "$cf_cv_gnat_version" in 26445(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9]) 26446 cf_gnat_generics=yes 26447 ;; 26448(*) 26449 cf_gnat_generics=no 26450 ;; 26451esac 26452echo "$as_me:26452: result: $cf_gnat_generics" >&5 26453echo "${ECHO_T}$cf_gnat_generics" >&6 26454 26455if test "$cf_gnat_generics" = yes 26456then 26457 cf_compile_generics=generics 26458 cf_generic_objects="\${GENOBJS}" 26459else 26460 cf_compile_generics= 26461 cf_generic_objects= 26462fi 26463 26464echo "$as_me:26464: checking if GNAT supports SIGINT" >&5 26465echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6 26466if test "${cf_cv_gnat_sigint+set}" = set; then 26467 echo $ECHO_N "(cached) $ECHO_C" >&6 26468else 26469 26470rm -rf ./conftest* ./*~conftest* 26471cat >>conftest.ads <<CF_EOF 26472with Ada.Interrupts.Names; 26473 26474package ConfTest is 26475 26476 pragma Warnings (Off); -- the next pragma exists since 3.11p 26477 pragma Unreserve_All_Interrupts; 26478 pragma Warnings (On); 26479 26480 protected Process is 26481 procedure Stop; 26482 function Continue return Boolean; 26483 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT); 26484 private 26485 Done : Boolean := False; 26486 end Process; 26487 26488end ConfTest; 26489CF_EOF 26490cat >>conftest.adb <<CF_EOF 26491package body ConfTest is 26492 protected body Process is 26493 procedure Stop is 26494 begin 26495 Done := True; 26496 end Stop; 26497 function Continue return Boolean is 26498 begin 26499 return not Done; 26500 end Continue; 26501 end Process; 26502end ConfTest; 26503CF_EOF 26504if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then 26505 cf_cv_gnat_sigint=yes 26506else 26507 cf_cv_gnat_sigint=no 26508fi 26509rm -rf ./conftest* ./*~conftest* 26510 26511fi 26512echo "$as_me:26512: result: $cf_cv_gnat_sigint" >&5 26513echo "${ECHO_T}$cf_cv_gnat_sigint" >&6 26514 26515if test "$cf_cv_gnat_sigint" = yes ; then 26516 USE_GNAT_SIGINT="" 26517else 26518 USE_GNAT_SIGINT="#" 26519fi 26520 26521cf_gnat_libraries=no 26522cf_gnat_projects=no 26523 26524if test "$enable_gnat_projects" != no ; then 26525echo "$as_me:26525: checking if GNAT supports project files" >&5 26526echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6 26527case "$cf_cv_gnat_version" in 26528(3.[0-9]*) 26529 ;; 26530(*) 26531 case "$cf_cv_system_name" in 26532 (cygwin*|msys*) 26533 ;; 26534 (*) 26535 rm -rf ./conftest* ./*~conftest* 26536 if mkdir conftest.src conftest.bin conftest.lib 26537 then 26538 cd conftest.src 26539 rm -rf ./conftest* ./*~conftest* 26540 cat >>library.gpr <<CF_EOF 26541project Library is 26542 Kind := External ("LIB_KIND"); 26543 for Library_Name use "ConfTest"; 26544 for Object_Dir use "."; 26545 for Library_ALI_Dir use External("LIBRARY_DIR"); 26546 for Library_Version use External ("SONAME"); 26547 for Library_Kind use Kind; 26548 for Library_Dir use External("BUILD_DIR"); 26549 Source_Dir := External ("SOURCE_DIR"); 26550 for Source_Dirs use (Source_Dir); 26551end Library; 26552CF_EOF 26553 cat >>confpackage.ads <<CF_EOF 26554package ConfPackage is 26555 procedure conftest; 26556end ConfPackage; 26557CF_EOF 26558 cat >>confpackage.adb <<CF_EOF 26559with Text_IO; 26560package body ConfPackage is 26561 procedure conftest is 26562 begin 26563 Text_IO.Put ("Hello World"); 26564 Text_IO.New_Line; 26565 end conftest; 26566end ConfPackage; 26567CF_EOF 26568 if ( "$cf_ada_make" $ADAFLAGS \ 26569 -Plibrary.gpr \ 26570 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \ 26571 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \ 26572 -XSOURCE_DIR="`pwd`" \ 26573 -XSONAME=libConfTest.so.1 \ 26574 -XLIB_KIND=static 1>&5 2>&1 ) ; then 26575 cf_gnat_projects=yes 26576 fi 26577 cd .. 26578 fi 26579 if test -f conftest.lib/confpackage.ali 26580 then 26581 cf_gnat_libraries=yes 26582 fi 26583 rm -rf ./conftest* ./*~conftest* 26584 ;; 26585 esac 26586 ;; 26587esac 26588echo "$as_me:26588: result: $cf_gnat_projects" >&5 26589echo "${ECHO_T}$cf_gnat_projects" >&6 26590fi # enable_gnat_projects 26591 26592if test "$cf_gnat_projects" = yes 26593then 26594 echo "$as_me:26594: checking if GNAT supports libraries" >&5 26595echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6 26596 echo "$as_me:26596: result: $cf_gnat_libraries" >&5 26597echo "${ECHO_T}$cf_gnat_libraries" >&6 26598fi 26599 26600USE_OLD_MAKERULES="" 26601USE_GNAT_PROJECTS="#" 26602USE_GNAT_MAKE_GPR="#" 26603USE_GNAT_GPRBUILD="#" 26604 26605if test "$cf_gnat_projects" = yes 26606then 26607 USE_OLD_MAKERULES="#" 26608 USE_GNAT_PROJECTS="" 26609 if test "$cf_cv_VERSION_GPRBUILD" != no 26610 then 26611 USE_GNAT_GPRBUILD="" 26612 elif test "$cf_cv_VERSION_GNATMAKE" != no 26613 then 26614 USE_GNAT_MAKE_GPR="" 26615 else 26616 { echo "$as_me:26616: WARNING: use old makefile rules since tools are missing" >&5 26617echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;} 26618 fi 26619fi 26620 26621if test "$cf_gnat_libraries" = yes 26622then 26623 USE_GNAT_LIBRARIES="" 26624else 26625 USE_GNAT_LIBRARIES="#" 26626fi 26627 26628echo "$as_me:26628: checking for ada-compiler" >&5 26629echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6 26630 26631# Check whether --with-ada-compiler or --without-ada-compiler was given. 26632if test "${with_ada_compiler+set}" = set; then 26633 withval="$with_ada_compiler" 26634 cf_ada_compiler=$withval 26635else 26636 cf_ada_compiler=gnatmake 26637fi; 26638 26639echo "$as_me:26639: result: $cf_ada_compiler" >&5 26640echo "${ECHO_T}$cf_ada_compiler" >&6 26641 26642 cf_ada_package=terminal_interface 26643 26644echo "$as_me:26644: checking for ada-include" >&5 26645echo $ECHO_N "checking for ada-include... $ECHO_C" >&6 26646 26647# Check whether --with-ada-include or --without-ada-include was given. 26648if test "${with_ada_include+set}" = set; then 26649 withval="$with_ada_include" 26650 26651else 26652 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}" 26653fi; if test -n "$prefix/share/ada/adainclude" ; then 26654 26655if test "x$prefix" != xNONE; then 26656 cf_path_syntax="$prefix" 26657else 26658 cf_path_syntax="$ac_default_prefix" 26659fi 26660 26661case ".$withval" in 26662(.\$\(*\)*|.\'*\'*) 26663 ;; 26664(..|./*|.\\*) 26665 ;; 26666(.[a-zA-Z]:[\\/]*) # OS/2 EMX 26667 ;; 26668(.\$\{*prefix\}*|.\$\{*dir\}*) 26669 eval withval="$withval" 26670 case ".$withval" in 26671 (.NONE/*) 26672 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 26673 ;; 26674 esac 26675 ;; 26676(.no|.NONE/*) 26677 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 26678 ;; 26679(*) 26680 { { echo "$as_me:26680: error: expected a pathname, not \"$withval\"" >&5 26681echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 26682 { (exit 1); exit 1; }; } 26683 ;; 26684esac 26685 26686fi 26687eval ADA_INCLUDE="$withval" 26688 26689echo "$as_me:26689: result: $ADA_INCLUDE" >&5 26690echo "${ECHO_T}$ADA_INCLUDE" >&6 26691 26692echo "$as_me:26692: checking for ada-objects" >&5 26693echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6 26694 26695# Check whether --with-ada-objects or --without-ada-objects was given. 26696if test "${with_ada_objects+set}" = set; then 26697 withval="$with_ada_objects" 26698 26699else 26700 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}" 26701fi; if test -n "$prefix/lib/ada/adalib" ; then 26702 26703if test "x$prefix" != xNONE; then 26704 cf_path_syntax="$prefix" 26705else 26706 cf_path_syntax="$ac_default_prefix" 26707fi 26708 26709case ".$withval" in 26710(.\$\(*\)*|.\'*\'*) 26711 ;; 26712(..|./*|.\\*) 26713 ;; 26714(.[a-zA-Z]:[\\/]*) # OS/2 EMX 26715 ;; 26716(.\$\{*prefix\}*|.\$\{*dir\}*) 26717 eval withval="$withval" 26718 case ".$withval" in 26719 (.NONE/*) 26720 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 26721 ;; 26722 esac 26723 ;; 26724(.no|.NONE/*) 26725 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 26726 ;; 26727(*) 26728 { { echo "$as_me:26728: error: expected a pathname, not \"$withval\"" >&5 26729echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 26730 { (exit 1); exit 1; }; } 26731 ;; 26732esac 26733 26734fi 26735eval ADA_OBJECTS="$withval" 26736 26737echo "$as_me:26737: result: $ADA_OBJECTS" >&5 26738echo "${ECHO_T}$ADA_OBJECTS" >&6 26739 26740echo "$as_me:26740: checking if an Ada95 shared-library should be built" >&5 26741echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6 26742 26743# Check whether --with-ada-sharedlib or --without-ada-sharedlib was given. 26744if test "${with_ada_sharedlib+set}" = set; then 26745 withval="$with_ada_sharedlib" 26746 with_ada_sharedlib=$withval 26747else 26748 with_ada_sharedlib=no 26749fi; 26750echo "$as_me:26750: result: $with_ada_sharedlib" >&5 26751echo "${ECHO_T}$with_ada_sharedlib" >&6 26752 26753if test "x$with_ada_sharedlib" != xno 26754then 26755 if test "x$cf_gnat_projects" != xyes 26756 then 26757 { echo "$as_me:26757: WARNING: disabling shared-library since GNAT projects are not supported" >&5 26758echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;} 26759 with_ada_sharedlib=no 26760 fi 26761fi 26762 26763ADA_SHAREDLIB='lib$(LIB_NAME).so.1' 26764MAKE_ADA_SHAREDLIB="#" 26765 26766if test "x$with_ada_sharedlib" != xno 26767then 26768 MAKE_ADA_SHAREDLIB= 26769 if test "x$with_ada_sharedlib" != xyes 26770 then 26771 ADA_SHAREDLIB="$with_ada_sharedlib" 26772 fi 26773fi 26774 26775 # allow the Ada binding to be renamed 26776 26777echo "$as_me:26777: checking for ada-libname" >&5 26778echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6 26779 26780# Check whether --with-ada-libname or --without-ada-libname was given. 26781if test "${with_ada_libname+set}" = set; then 26782 withval="$with_ada_libname" 26783 ADA_LIBNAME=$withval 26784else 26785 ADA_LIBNAME=AdaCurses 26786fi; 26787case "x$ADA_LIBNAME" in 26788(x|xyes|xno) 26789 ADA_LIBNAME=AdaCurses 26790 ;; 26791esac 26792 26793echo "$as_me:26793: result: $ADA_LIBNAME" >&5 26794echo "${ECHO_T}$ADA_LIBNAME" >&6 26795 26796 fi 26797 fi 26798else 26799 cf_with_ada=no 26800fi 26801 26802# do this "late" to avoid conflict with header-checks 26803if test "x$with_widec" = xyes ; then 26804 echo "$as_me:26804: checking for wchar_t" >&5 26805echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 26806if test "${ac_cv_type_wchar_t+set}" = set; then 26807 echo $ECHO_N "(cached) $ECHO_C" >&6 26808else 26809 cat >"conftest.$ac_ext" <<_ACEOF 26810#line 26810 "configure" 26811#include "confdefs.h" 26812$ac_includes_default 26813int 26814main (void) 26815{ 26816if ((wchar_t *) 0) 26817 return 0; 26818if (sizeof (wchar_t)) 26819 return 0; 26820 ; 26821 return 0; 26822} 26823_ACEOF 26824rm -f "conftest.$ac_objext" 26825if { (eval echo "$as_me:26825: \"$ac_compile\"") >&5 26826 (eval $ac_compile) 2>&5 26827 ac_status=$? 26828 echo "$as_me:26828: \$? = $ac_status" >&5 26829 (exit "$ac_status"); } && 26830 { ac_try='test -s "conftest.$ac_objext"' 26831 { (eval echo "$as_me:26831: \"$ac_try\"") >&5 26832 (eval $ac_try) 2>&5 26833 ac_status=$? 26834 echo "$as_me:26834: \$? = $ac_status" >&5 26835 (exit "$ac_status"); }; }; then 26836 ac_cv_type_wchar_t=yes 26837else 26838 echo "$as_me: failed program was:" >&5 26839cat "conftest.$ac_ext" >&5 26840ac_cv_type_wchar_t=no 26841fi 26842rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26843fi 26844echo "$as_me:26844: result: $ac_cv_type_wchar_t" >&5 26845echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 26846 26847echo "$as_me:26847: checking size of wchar_t" >&5 26848echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 26849if test "${ac_cv_sizeof_wchar_t+set}" = set; then 26850 echo $ECHO_N "(cached) $ECHO_C" >&6 26851else 26852 if test "$ac_cv_type_wchar_t" = yes; then 26853 if test "$cross_compiling" = yes; then 26854 # Depending upon the size, compute the lo and hi bounds. 26855cat >"conftest.$ac_ext" <<_ACEOF 26856#line 26856 "configure" 26857#include "confdefs.h" 26858$ac_includes_default 26859int 26860main (void) 26861{ 26862int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)] 26863 ; 26864 return 0; 26865} 26866_ACEOF 26867rm -f "conftest.$ac_objext" 26868if { (eval echo "$as_me:26868: \"$ac_compile\"") >&5 26869 (eval $ac_compile) 2>&5 26870 ac_status=$? 26871 echo "$as_me:26871: \$? = $ac_status" >&5 26872 (exit "$ac_status"); } && 26873 { ac_try='test -s "conftest.$ac_objext"' 26874 { (eval echo "$as_me:26874: \"$ac_try\"") >&5 26875 (eval $ac_try) 2>&5 26876 ac_status=$? 26877 echo "$as_me:26877: \$? = $ac_status" >&5 26878 (exit "$ac_status"); }; }; then 26879 ac_lo=0 ac_mid=0 26880 while :; do 26881 cat >"conftest.$ac_ext" <<_ACEOF 26882#line 26882 "configure" 26883#include "confdefs.h" 26884$ac_includes_default 26885int 26886main (void) 26887{ 26888int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)] 26889 ; 26890 return 0; 26891} 26892_ACEOF 26893rm -f "conftest.$ac_objext" 26894if { (eval echo "$as_me:26894: \"$ac_compile\"") >&5 26895 (eval $ac_compile) 2>&5 26896 ac_status=$? 26897 echo "$as_me:26897: \$? = $ac_status" >&5 26898 (exit "$ac_status"); } && 26899 { ac_try='test -s "conftest.$ac_objext"' 26900 { (eval echo "$as_me:26900: \"$ac_try\"") >&5 26901 (eval $ac_try) 2>&5 26902 ac_status=$? 26903 echo "$as_me:26903: \$? = $ac_status" >&5 26904 (exit "$ac_status"); }; }; then 26905 ac_hi=$ac_mid; break 26906else 26907 echo "$as_me: failed program was:" >&5 26908cat "conftest.$ac_ext" >&5 26909ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 26910fi 26911rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26912 done 26913else 26914 echo "$as_me: failed program was:" >&5 26915cat "conftest.$ac_ext" >&5 26916ac_hi=-1 ac_mid=-1 26917 while :; do 26918 cat >"conftest.$ac_ext" <<_ACEOF 26919#line 26919 "configure" 26920#include "confdefs.h" 26921$ac_includes_default 26922int 26923main (void) 26924{ 26925int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)] 26926 ; 26927 return 0; 26928} 26929_ACEOF 26930rm -f "conftest.$ac_objext" 26931if { (eval echo "$as_me:26931: \"$ac_compile\"") >&5 26932 (eval $ac_compile) 2>&5 26933 ac_status=$? 26934 echo "$as_me:26934: \$? = $ac_status" >&5 26935 (exit "$ac_status"); } && 26936 { ac_try='test -s "conftest.$ac_objext"' 26937 { (eval echo "$as_me:26937: \"$ac_try\"") >&5 26938 (eval $ac_try) 2>&5 26939 ac_status=$? 26940 echo "$as_me:26940: \$? = $ac_status" >&5 26941 (exit "$ac_status"); }; }; then 26942 ac_lo=$ac_mid; break 26943else 26944 echo "$as_me: failed program was:" >&5 26945cat "conftest.$ac_ext" >&5 26946ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 26947fi 26948rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26949 done 26950fi 26951rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26952# Binary search between lo and hi bounds. 26953while test "x$ac_lo" != "x$ac_hi"; do 26954 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 26955 cat >"conftest.$ac_ext" <<_ACEOF 26956#line 26956 "configure" 26957#include "confdefs.h" 26958$ac_includes_default 26959int 26960main (void) 26961{ 26962int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)] 26963 ; 26964 return 0; 26965} 26966_ACEOF 26967rm -f "conftest.$ac_objext" 26968if { (eval echo "$as_me:26968: \"$ac_compile\"") >&5 26969 (eval $ac_compile) 2>&5 26970 ac_status=$? 26971 echo "$as_me:26971: \$? = $ac_status" >&5 26972 (exit "$ac_status"); } && 26973 { ac_try='test -s "conftest.$ac_objext"' 26974 { (eval echo "$as_me:26974: \"$ac_try\"") >&5 26975 (eval $ac_try) 2>&5 26976 ac_status=$? 26977 echo "$as_me:26977: \$? = $ac_status" >&5 26978 (exit "$ac_status"); }; }; then 26979 ac_hi=$ac_mid 26980else 26981 echo "$as_me: failed program was:" >&5 26982cat "conftest.$ac_ext" >&5 26983ac_lo=`expr "$ac_mid" + 1` 26984fi 26985rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26986done 26987ac_cv_sizeof_wchar_t=$ac_lo 26988else 26989 if test "$cross_compiling" = yes; then 26990 { { echo "$as_me:26990: error: cannot run test program while cross compiling" >&5 26991echo "$as_me: error: cannot run test program while cross compiling" >&2;} 26992 { (exit 1); exit 1; }; } 26993else 26994 cat >"conftest.$ac_ext" <<_ACEOF 26995#line 26995 "configure" 26996#include "confdefs.h" 26997$ac_includes_default 26998int 26999main (void) 27000{ 27001FILE *f = fopen ("conftest.val", "w"); 27002if (!f) 27003 $ac_main_return (1); 27004fprintf (f, "%d", (sizeof (wchar_t))); 27005fclose (f); 27006 ; 27007 return 0; 27008} 27009_ACEOF 27010rm -f "conftest$ac_exeext" 27011if { (eval echo "$as_me:27011: \"$ac_link\"") >&5 27012 (eval $ac_link) 2>&5 27013 ac_status=$? 27014 echo "$as_me:27014: \$? = $ac_status" >&5 27015 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 27016 { (eval echo "$as_me:27016: \"$ac_try\"") >&5 27017 (eval $ac_try) 2>&5 27018 ac_status=$? 27019 echo "$as_me:27019: \$? = $ac_status" >&5 27020 (exit "$ac_status"); }; }; then 27021 ac_cv_sizeof_wchar_t=`cat conftest.val` 27022else 27023 echo "$as_me: program exited with status $ac_status" >&5 27024echo "$as_me: failed program was:" >&5 27025cat "conftest.$ac_ext" >&5 27026fi 27027rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 27028fi 27029fi 27030rm -f conftest.val 27031else 27032 ac_cv_sizeof_wchar_t=0 27033fi 27034fi 27035echo "$as_me:27035: result: $ac_cv_sizeof_wchar_t" >&5 27036echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 27037cat >>confdefs.h <<EOF 27038#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 27039EOF 27040 27041 # cross-compiling to mingw can run into the problem that attempting to 27042 # link with the regex library fails, causing the test to not set this to 27043 # a number. "recent" autoconf does not address this problem either -TD 27044 if test -z "$ac_cv_sizeof_wchar_t" 27045 then 27046 test -n "$verbose" && echo " test failed (assume 2)" 1>&6 27047 27048echo "${as_me:-configure}:27048: testing test failed (assume 2) ..." 1>&5 27049 27050 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp 27051 mv confdefs.tmp confdefs.h 27052 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h 27053 fi 27054fi 27055 27056### Construct the ncurses library-subsets, if any, from this set of keywords: 27057### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar 27058### 27059### ticlib modules may be a separate library, otherwise contained in termlib. 27060### termlib modules may be a separate library, otherwise contained in ncurses. 27061### 27062### The of "+" or " " between the tokens controls the way the script 27063### chooses to split module lists into libraries. 27064### 27065### (see CF_LIB_RULES). 27066echo "$as_me:27066: checking for library subsets" >&5 27067echo $ECHO_N "checking for library subsets... $ECHO_C" >&6 27068LIB_SUBSETS= 27069 27070if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then 27071 LIB_SUBSETS="${LIB_SUBSETS}ticlib" 27072 if test "$with_ticlib" != no ; then 27073 LIB_SUBSETS="${LIB_SUBSETS} " 27074 else 27075 LIB_SUBSETS="${LIB_SUBSETS}+" 27076 fi 27077fi 27078 27079LIB_SUBSETS="${LIB_SUBSETS}termlib" 27080test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo" 27081 27082if test "$with_termlib" != no ; then 27083 LIB_SUBSETS="${LIB_SUBSETS} " 27084else 27085 LIB_SUBSETS="${LIB_SUBSETS}+" 27086fi 27087 27088LIB_SUBSETS="${LIB_SUBSETS}base" 27089 27090# Most term-driver calls are to tinfo, but some like init_pair are to the 27091# base library (so it resides in base). 27092if test "$with_term_driver" != no ; then 27093 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers" 27094 case "$cf_cv_system_name" in 27095 (*mingw32*|*mingw64*) 27096 if test "x$with_exp_win32" = xyes ; then 27097 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32" 27098 else 27099 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con" 27100 fi 27101 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER" 27102 ;; 27103 (*) 27104 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo" 27105 ;; 27106 esac 27107elif test "x$with_exp_win32" = xyes ; then 27108 case "$cf_cv_system_name" in 27109 (*mingw32*|*mingw64*) 27110 LIB_SUBSETS="${LIB_SUBSETS}+port_win32" 27111 ;; 27112 (*) 27113 ;; 27114 esac 27115fi 27116 27117test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar" 27118test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs" 27119 27120echo "$as_me:27120: result: $LIB_SUBSETS" >&5 27121echo "${ECHO_T}$LIB_SUBSETS" >&6 27122 27123### Construct the list of include-directories to be generated 27124 27125if test "$srcdir" != "."; then 27126 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS" 27127fi 27128CPPFLAGS="-I../include $CPPFLAGS" 27129if test "$srcdir" != "."; then 27130 CPPFLAGS="-I\${srcdir} $CPPFLAGS" 27131fi 27132CPPFLAGS="-I. $CPPFLAGS" 27133 27134ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS" 27135if test "$srcdir" != "."; then 27136 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS" 27137fi 27138if test "$GCC" != yes; then 27139 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27140elif test "$includedir" != "/usr/include"; then 27141 if test "$includedir" = '${prefix}/include' ; then 27142 if test x$prefix != x/usr ; then 27143 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27144 fi 27145 else 27146 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27147 fi 27148fi 27149 27150### Build up pieces for makefile rules 27151echo "$as_me:27151: checking default library suffix" >&5 27152echo $ECHO_N "checking default library suffix... $ECHO_C" >&6 27153 27154 case $DFT_LWR_MODEL in 27155 (libtool) DFT_ARG_SUFFIX='' ;; 27156 (normal) DFT_ARG_SUFFIX='' ;; 27157 (debug) DFT_ARG_SUFFIX='_g' ;; 27158 (profile) DFT_ARG_SUFFIX='_p' ;; 27159 (shared) DFT_ARG_SUFFIX='' ;; 27160 esac 27161 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}" 27162echo "$as_me:27162: result: $DFT_ARG_SUFFIX" >&5 27163echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6 27164 27165echo "$as_me:27165: checking default library-dependency suffix" >&5 27166echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6 27167 27168 case X$DFT_LWR_MODEL in 27169 (Xlibtool) 27170 DFT_LIB_SUFFIX='.la' 27171 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27172 ;; 27173 (Xdebug) 27174 case "$cf_cv_system_name" in 27175 (*-msvc*) 27176 DFT_LIB_SUFFIX='_g.lib' 27177 ;; 27178 (*) 27179 DFT_LIB_SUFFIX='_g.a' 27180 ;; 27181 esac 27182 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27183 ;; 27184 (Xprofile) 27185 case "$cf_cv_system_name" in 27186 (*-msvc*) 27187 DFT_LIB_SUFFIX='_p.lib' 27188 ;; 27189 (*) 27190 DFT_LIB_SUFFIX='_p.a' 27191 ;; 27192 esac 27193 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27194 ;; 27195 (Xshared) 27196 case "$cf_cv_system_name" in 27197 (aix[5-7]*) 27198 DFT_LIB_SUFFIX='.so' 27199 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27200 ;; 27201 (*-msvc*) 27202 DFT_LIB_SUFFIX='.dll' 27203 DFT_DEP_SUFFIX='.dll.lib' 27204 ;; 27205 (cygwin*|msys*|mingw*) 27206 DFT_LIB_SUFFIX='.dll' 27207 DFT_DEP_SUFFIX='.dll.a' 27208 ;; 27209 (darwin*) 27210 DFT_LIB_SUFFIX='.dylib' 27211 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27212 ;; 27213 (hpux*) 27214 case "$target" in 27215 (ia64*) 27216 DFT_LIB_SUFFIX='.so' 27217 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27218 ;; 27219 (*) 27220 DFT_LIB_SUFFIX='.sl' 27221 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27222 ;; 27223 esac 27224 ;; 27225 (*) 27226 DFT_LIB_SUFFIX='.so' 27227 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27228 ;; 27229 esac 27230 ;; 27231 (*) 27232 case "$target" in 27233 (*-msvc*) 27234 DFT_LIB_SUFFIX='.lib' 27235 ;; 27236 (*) 27237 DFT_LIB_SUFFIX='.a' 27238 ;; 27239 esac 27240 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27241 ;; 27242 esac 27243 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 27244 then 27245 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}" 27246 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}" 27247 fi 27248echo "$as_me:27248: result: $DFT_DEP_SUFFIX" >&5 27249echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6 27250 27251echo "$as_me:27251: checking default object directory" >&5 27252echo $ECHO_N "checking default object directory... $ECHO_C" >&6 27253 27254 case $DFT_LWR_MODEL in 27255 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;; 27256 (normal) DFT_OBJ_SUBDIR='objects' ;; 27257 (debug) DFT_OBJ_SUBDIR='obj_g' ;; 27258 (profile) DFT_OBJ_SUBDIR='obj_p' ;; 27259 (shared) 27260 case "$cf_cv_system_name" in 27261 (cygwin|msys) 27262 DFT_OBJ_SUBDIR='objects' ;; 27263 (*) 27264 DFT_OBJ_SUBDIR='obj_s' ;; 27265 esac 27266 esac 27267echo "$as_me:27267: result: $DFT_OBJ_SUBDIR" >&5 27268echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6 27269 27270if test "x$cf_with_cxx" = xyes ; then 27271echo "$as_me:27271: checking c++ library-dependency suffix" >&5 27272echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6 27273if test "$with_libtool" != "no"; then 27274 # libtool thinks it can make c++ shared libraries (perhaps only g++) 27275 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 27276elif test "$with_shared_cxx" != "no"; then 27277 # also for g++ users... 27278 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 27279else 27280 # we normally make a static library because C/C++ library rules differ 27281 27282 case Xnormal in 27283 (Xlibtool) 27284 CXX_LIB_SUFFIX='.la' 27285 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27286 ;; 27287 (Xdebug) 27288 case "$cf_cv_system_name" in 27289 (*-msvc*) 27290 CXX_LIB_SUFFIX='_g.lib' 27291 ;; 27292 (*) 27293 CXX_LIB_SUFFIX='_g.a' 27294 ;; 27295 esac 27296 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27297 ;; 27298 (Xprofile) 27299 case "$cf_cv_system_name" in 27300 (*-msvc*) 27301 CXX_LIB_SUFFIX='_p.lib' 27302 ;; 27303 (*) 27304 CXX_LIB_SUFFIX='_p.a' 27305 ;; 27306 esac 27307 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27308 ;; 27309 (Xshared) 27310 case "$cf_cv_system_name" in 27311 (aix[5-7]*) 27312 CXX_LIB_SUFFIX='.so' 27313 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27314 ;; 27315 (*-msvc*) 27316 CXX_LIB_SUFFIX='.dll' 27317 CXX_DEP_SUFFIX='.dll.lib' 27318 ;; 27319 (cygwin*|msys*|mingw*) 27320 CXX_LIB_SUFFIX='.dll' 27321 CXX_DEP_SUFFIX='.dll.a' 27322 ;; 27323 (darwin*) 27324 CXX_LIB_SUFFIX='.dylib' 27325 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27326 ;; 27327 (hpux*) 27328 case "$target" in 27329 (ia64*) 27330 CXX_LIB_SUFFIX='.so' 27331 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27332 ;; 27333 (*) 27334 CXX_LIB_SUFFIX='.sl' 27335 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27336 ;; 27337 esac 27338 ;; 27339 (*) 27340 CXX_LIB_SUFFIX='.so' 27341 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27342 ;; 27343 esac 27344 ;; 27345 (*) 27346 case "$target" in 27347 (*-msvc*) 27348 CXX_LIB_SUFFIX='.lib' 27349 ;; 27350 (*) 27351 CXX_LIB_SUFFIX='.a' 27352 ;; 27353 esac 27354 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27355 ;; 27356 esac 27357 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 27358 then 27359 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}" 27360 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}" 27361 fi 27362 27363fi 27364echo "$as_me:27364: result: $CXX_LIB_SUFFIX" >&5 27365echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6 27366 27367fi 27368 27369# do not want -ldl in build except as needed for -lncurses dependency 27370if test "x$with_dlsym" = xyes ; then 27371if test "$DFT_LWR_MODEL" = shared || \ 27372 test "$DFT_LWR_MODEL" = libtool ; then 27373 27374# remove dl library from $LIBS 27375LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27376 27377fi 27378fi 27379### Set up low-level terminfo dependencies for makefiles. 27380 27381# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but 27382# do not need libdl 27383TICS_LIST= 27384if test "x$with_dlsym" = xyes ; then 27385 27386# remove dl library from $SHLIB_LIST 27387TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27388 27389fi 27390 27391USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}" 27392USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}" 27393USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version} 27394if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}" 27395then 27396 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}" 27397fi 27398 27399if test "$with_ticlib" != no ; then 27400 27401 if test "x$with_ticlib" != xyes ; then 27402 TICS_NAME=$with_ticlib 27403 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`" 27404 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27405 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27406 TICS_LIB_SUFFIX="${with_ticlib}" 27407 else 27408 TICS_SUFFIX=${DFT_LIB_SUFFIX} 27409 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}" 27410 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}" 27411 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}" 27412 fi 27413 TICS_LDFLAGS="-L${LIB_DIR}" 27414 TICS_LIBS="-l${TICS_ARG_SUFFIX}" 27415else 27416 TICS_SUFFIX=${DFT_LIB_SUFFIX} 27417 TICS_LDFLAGS="-L${LIB_DIR}" 27418 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}" 27419fi 27420 27421if test "$with_termlib" != no ; then 27422 27423 if test "x$with_termlib" != xyes ; then 27424 TINFO_NAME=$with_termlib 27425 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`" 27426 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27427 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27428 TINFO_LIB_SUFFIX="${with_termlib}" 27429 else 27430 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 27431 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}" 27432 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}" 27433 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}" 27434 fi 27435 27436 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 27437 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 27438 if test "$DFT_LWR_MODEL" = "libtool"; then 27439 TEST_ARGS="${TEST_DEPS}" 27440 TEST_ARG2="${TEST_DEP2}" 27441 TINFO_LDFLAGS="-L${LIB_DIR}" 27442 TINFO_LIBS="$TEST_ARGS" 27443 TICS_LIST="$SHLIB_LIST $TEST_ARGS" 27444 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS" 27445 else 27446 TEST_ARGS="-l${TINFO_ARG_SUFFIX}" 27447 TEST_ARG2="-l${TINFO_ARG_SUFFIX}" 27448 if test "x$with_term_driver" != xno ; then 27449 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}" 27450 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}" 27451 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS" 27452 else 27453 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 27454 TINFO_LIBS="$TEST_ARGS" 27455 fi 27456 TINFO_LDFLAGS="-L${LIB_DIR}" 27457 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 27458 fi 27459else 27460 # the next lines are needed for linking libtic over libncurses 27461 TINFO_NAME=${LIB_NAME} 27462 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 27463 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX} 27464 if test "x$with_tic_depends" = xyes ; then 27465 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}" 27466 else 27467 TICS_LIST="$SHLIB_LIST" 27468 fi 27469 27470 TINFO_LDFLAGS="-L${LIB_DIR}" 27471 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}" 27472fi 27473 27474if test "$DFT_LWR_MODEL" = shared ; then 27475 case "$cf_cv_system_name" in 27476 (cygwin*|msys*) 27477 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll" 27478 TINFO_SUFFIX=.dll 27479 ;; 27480 esac 27481fi 27482 27483if test "x$with_dlsym" = xyes ; then 27484 27485# remove dl library from $TICS_LIST 27486TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27487 27488fi 27489 27490if test "$DFT_LWR_MODEL" = "libtool"; then 27491 OBJEXT=lo 27492fi 27493 27494# needed for Ada95 27495TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'` 27496 27497case "$DFT_LWR_MODEL" in 27498(normal|debug|profile) 27499 27500if test "$GCC" = yes ; then 27501 case "$cf_cv_system_name" in 27502 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) 27503 LDFLAGS_STATIC= 27504 LDFLAGS_SHARED= 27505 ;; 27506 (*) # normally, except when broken 27507 LDFLAGS_STATIC=-static 27508 LDFLAGS_SHARED=-dynamic 27509 ;; 27510 esac 27511else 27512 case "$cf_cv_system_name" in 27513 (aix[4-7]*) # from ld manpage 27514 LDFLAGS_STATIC=-bstatic 27515 LDFLAGS_SHARED=-bdynamic 27516 ;; 27517 (hpux*) # from ld manpage for hpux10.20, hpux11.11 27518 # We could also use just "archive" and "shared". 27519 LDFLAGS_STATIC=-Wl,-a,archive_shared 27520 LDFLAGS_SHARED=-Wl,-a,shared_archive 27521 ;; 27522 (irix*) # from ld manpage IRIX64 27523 LDFLAGS_STATIC=-Bstatic 27524 LDFLAGS_SHARED=-Bdynamic 27525 ;; 27526 (osf[45]*) # from ld manpage osf4.0d, osf5.1 27527 # alternative "-oldstyle_liblookup" (not in cc manpage) 27528 LDFLAGS_STATIC=-noso 27529 LDFLAGS_SHARED=-so_archive 27530 ;; 27531 (solaris2*) 27532 LDFLAGS_STATIC=-Bstatic 27533 LDFLAGS_SHARED=-Bdynamic 27534 ;; 27535 esac 27536fi 27537 27538if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED" 27539then 27540 echo "$as_me:27540: checking if linker supports switching between static/dynamic" >&5 27541echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6 27542 27543 rm -f libconftest.a 27544 cat >conftest.$ac_ext <<EOF 27545#line 27545 "configure" 27546#include <stdio.h> 27547int cf_ldflags_static(FILE *fp) { return fflush(fp); } 27548EOF 27549 if { (eval echo "$as_me:27549: \"$ac_compile\"") >&5 27550 (eval $ac_compile) 2>&5 27551 ac_status=$? 27552 echo "$as_me:27552: \$? = $ac_status" >&5 27553 (exit "$ac_status"); } ; then 27554 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null 27555 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null 27556 fi 27557 rm -f conftest.* 27558 27559 cf_save_LIBS="$LIBS" 27560 27561 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS" 27562 cat >"conftest.$ac_ext" <<_ACEOF 27563#line 27563 "configure" 27564#include "confdefs.h" 27565 27566#line 27566 "configure" 27567#include <stdio.h> 27568int cf_ldflags_static(FILE *fp); 27569 27570int 27571main (void) 27572{ 27573 27574 return cf_ldflags_static(stdin); 27575 27576 ; 27577 return 0; 27578} 27579_ACEOF 27580rm -f "conftest.$ac_objext" "conftest$ac_exeext" 27581if { (eval echo "$as_me:27581: \"$ac_link\"") >&5 27582 (eval $ac_link) 2>&5 27583 ac_status=$? 27584 echo "$as_me:27584: \$? = $ac_status" >&5 27585 (exit "$ac_status"); } && 27586 { ac_try='test -s "conftest$ac_exeext"' 27587 { (eval echo "$as_me:27587: \"$ac_try\"") >&5 27588 (eval $ac_try) 2>&5 27589 ac_status=$? 27590 echo "$as_me:27590: \$? = $ac_status" >&5 27591 (exit "$ac_status"); }; }; then 27592 27593 # some linkers simply ignore the -dynamic 27594 case x`file "conftest$ac_exeext" 2>/dev/null` in 27595 (*static*) 27596 cf_ldflags_static=no 27597 ;; 27598 (*) 27599 cf_ldflags_static=yes 27600 ;; 27601 esac 27602 27603else 27604 echo "$as_me: failed program was:" >&5 27605cat "conftest.$ac_ext" >&5 27606cf_ldflags_static=no 27607fi 27608rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 27609 27610 rm -f libconftest.* 27611 LIBS="$cf_save_LIBS" 27612 27613 echo "$as_me:27613: result: $cf_ldflags_static" >&5 27614echo "${ECHO_T}$cf_ldflags_static" >&6 27615 27616 if test "$cf_ldflags_static" != yes 27617 then 27618 LDFLAGS_STATIC= 27619 LDFLAGS_SHARED= 27620 fi 27621else 27622 LDFLAGS_STATIC= 27623 LDFLAGS_SHARED= 27624fi 27625 27626 ;; 27627esac 27628 27629echo "$as_me:27629: checking where we will install curses.h" >&5 27630echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6 27631 27632includesubdir= 27633if test "$with_overwrite" = no && \ 27634 { test "x$includedir" = 'x${prefix}/include' || \ 27635 test "x$includedir" = "x${prefix}/include"; } 27636then 27637 includesubdir="/ncurses${USE_LIB_SUFFIX}" 27638fi 27639echo "$as_me:27639: result: ${includedir}${includesubdir}" >&5 27640echo "${ECHO_T}${includedir}${includesubdir}" >&6 27641 27642### Resolve a conflict between normal and wide-curses by forcing applications 27643### that will need libutf8 to add it to their configure script. 27644if test "$with_overwrite" != no ; then 27645if test "$NCURSES_LIBUTF8" = 1 ; then 27646 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)' 27647 { echo "$as_me:27647: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5 27648echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;} 27649fi 27650fi 27651WITH_OVERWRITE=$with_overwrite 27652 27653### At least on MinGW a shared library build without libtool 27654### requires adding the additional libs to the link list. 27655case "$cf_cv_system_name" in 27656(*mingw32*|*mingw64*) 27657 if test "$DFT_LWR_MODEL" != "libtool"; then 27658 SHLIB_LIST="$SHLIB_LIST ${LIBS}" 27659 fi 27660 ;; 27661*) ;; 27662esac 27663 27664# used to separate tack out of the tree 27665NCURSES_TREE= 27666 27667### predefined stuff for the test programs 27668 27669cat >>confdefs.h <<\EOF 27670#define HAVE_SLK_COLOR 1 27671EOF 27672 27673# pkgsrc uses these 27674 27675echo "$as_me:27675: checking for desired basename for form library" >&5 27676echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6 27677 27678# Check whether --with-form-libname or --without-form-libname was given. 27679if test "${with_form_libname+set}" = set; then 27680 withval="$with_form_libname" 27681 with_lib_basename=$withval 27682else 27683 with_lib_basename=form 27684fi; 27685FORM_NAME="$with_lib_basename" 27686 27687case "x$FORM_NAME" in 27688(x|xno|xnone|xyes) 27689 FORM_NAME=form 27690 ;; 27691(*) 27692 ;; 27693esac 27694 27695echo "$as_me:27695: result: $FORM_NAME" >&5 27696echo "${ECHO_T}$FORM_NAME" >&6 27697 27698echo "$as_me:27698: checking for desired basename for menu library" >&5 27699echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6 27700 27701# Check whether --with-menu-libname or --without-menu-libname was given. 27702if test "${with_menu_libname+set}" = set; then 27703 withval="$with_menu_libname" 27704 with_lib_basename=$withval 27705else 27706 with_lib_basename=menu 27707fi; 27708MENU_NAME="$with_lib_basename" 27709 27710case "x$MENU_NAME" in 27711(x|xno|xnone|xyes) 27712 MENU_NAME=menu 27713 ;; 27714(*) 27715 ;; 27716esac 27717 27718echo "$as_me:27718: result: $MENU_NAME" >&5 27719echo "${ECHO_T}$MENU_NAME" >&6 27720 27721echo "$as_me:27721: checking for desired basename for panel library" >&5 27722echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6 27723 27724# Check whether --with-panel-libname or --without-panel-libname was given. 27725if test "${with_panel_libname+set}" = set; then 27726 withval="$with_panel_libname" 27727 with_lib_basename=$withval 27728else 27729 with_lib_basename=panel 27730fi; 27731PANEL_NAME="$with_lib_basename" 27732 27733case "x$PANEL_NAME" in 27734(x|xno|xnone|xyes) 27735 PANEL_NAME=panel 27736 ;; 27737(*) 27738 ;; 27739esac 27740 27741echo "$as_me:27741: result: $PANEL_NAME" >&5 27742echo "${ECHO_T}$PANEL_NAME" >&6 27743 27744echo "$as_me:27744: checking for desired basename for cxx library" >&5 27745echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6 27746 27747# Check whether --with-cxx-libname or --without-cxx-libname was given. 27748if test "${with_cxx_libname+set}" = set; then 27749 withval="$with_cxx_libname" 27750 with_lib_basename=$withval 27751else 27752 with_lib_basename=ncurses++ 27753fi; 27754CXX_NAME="$with_lib_basename" 27755 27756case "x$CXX_NAME" in 27757(x|xno|xnone|xyes) 27758 CXX_NAME=ncurses++ 27759 ;; 27760(*) 27761 ;; 27762esac 27763 27764echo "$as_me:27764: result: $CXX_NAME" >&5 27765echo "${ECHO_T}$CXX_NAME" >&6 27766 27767### Construct the list of subdirectories for which we'll customize makefiles 27768### with the appropriate compile-rules. 27769 27770echo "$as_me:27770: checking for src modules" >&5 27771echo $ECHO_N "checking for src modules... $ECHO_C" >&6 27772 27773# dependencies and linker-arguments for test-programs 27774TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS" 27775TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2" 27776if test "$DFT_LWR_MODEL" = "libtool"; then 27777 TEST_ARGS="${TEST_DEPS}" 27778 TEST_ARG2="${TEST_DEP2}" 27779else 27780 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS" 27781 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2" 27782fi 27783 27784PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}" 27785cf_cv_src_modules= 27786for cf_dir in $modules_to_build 27787do 27788 if test -f "$srcdir/$cf_dir/modules" ; then 27789 27790 # We may/may not have tack in the distribution, though the 27791 # makefile is. 27792 if test "$cf_dir" = tack ; then 27793 if test "x$cf_with_tack" != "xyes"; then 27794 continue 27795 fi 27796 fi 27797 27798 if test -z "$cf_cv_src_modules"; then 27799 cf_cv_src_modules=$cf_dir 27800 else 27801 cf_cv_src_modules="$cf_cv_src_modules $cf_dir" 27802 fi 27803 27804 # Make the ncurses_cfg.h file record the library interface files as 27805 # well. These are header files that are the same name as their 27806 # directory. Ncurses is the only library that does not follow 27807 # that pattern. 27808 if test "$cf_dir" = tack ; then 27809 continue 27810 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then 27811 27812cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 27813 27814 cat >>confdefs.h <<EOF 27815#define HAVE_${cf_have_include}_H 1 27816EOF 27817 27818 cat >>confdefs.h <<EOF 27819#define HAVE_LIB${cf_have_include} 1 27820EOF 27821 27822cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 27823 27824eval TEST_ROOT="\$${cf_map_lib_basename}_NAME" 27825 27826 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS" 27827 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2" 27828 if test "$DFT_LWR_MODEL" = "libtool"; then 27829 TEST_ARGS="${TEST_DEPS}" 27830 TEST_ARG2="${TEST_DEP2}" 27831 else 27832 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS" 27833 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2" 27834 fi 27835 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}" 27836 fi 27837 fi 27838done 27839echo "$as_me:27839: result: $cf_cv_src_modules" >&5 27840echo "${ECHO_T}$cf_cv_src_modules" >&6 27841 27842TEST_ARGS="-L${LIB_DIR} $TEST_ARGS" 27843TEST_ARG2="-L${LIB_2ND} $TEST_ARG2" 27844 27845SRC_SUBDIRS= 27846if test "x$cf_with_manpages" != xno ; then 27847 SRC_SUBDIRS="$SRC_SUBDIRS man" 27848fi 27849SRC_SUBDIRS="$SRC_SUBDIRS include" 27850for cf_dir in $cf_cv_src_modules 27851do 27852 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir" 27853done 27854if test "x$cf_with_tests" != "xno" ; then 27855 SRC_SUBDIRS="$SRC_SUBDIRS test" 27856fi 27857# always make this, to install the ncurses-config script 27858SRC_SUBDIRS="$SRC_SUBDIRS misc" 27859if test "$cf_with_cxx_binding" != no; then 27860 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}" 27861 SRC_SUBDIRS="$SRC_SUBDIRS c++" 27862fi 27863 27864test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX" 27865test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX" 27866 27867ADA_SUBDIRS= 27868if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then 27869 SRC_SUBDIRS="$SRC_SUBDIRS Ada95" 27870 ADA_SUBDIRS="gen src" 27871 if test "x$cf_with_tests" != "xno" ; then 27872 ADA_SUBDIRS="$ADA_SUBDIRS samples" 27873 fi 27874fi 27875 27876SUB_MAKEFILES= 27877for cf_dir in $SRC_SUBDIRS 27878do 27879 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile" 27880done 27881 27882if test -n "$ADA_SUBDIRS"; then 27883 for cf_dir in $ADA_SUBDIRS 27884 do 27885 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile" 27886 done 27887 27888fi 27889 27890if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 27891 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in" 27892 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in" 27893 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in" 27894fi 27895 27896DIRS_TO_MAKE="lib" 27897for cf_item in $cf_list_models 27898do 27899 27900 case $cf_item in 27901 (libtool) cf_subdir='obj_lo' ;; 27902 (normal) cf_subdir='objects' ;; 27903 (debug) cf_subdir='obj_g' ;; 27904 (profile) cf_subdir='obj_p' ;; 27905 (shared) 27906 case "$cf_cv_system_name" in 27907 (cygwin|msys) 27908 cf_subdir='objects' ;; 27909 (*) 27910 cf_subdir='obj_s' ;; 27911 esac 27912 esac 27913 27914 for cf_item2 in $DIRS_TO_MAKE 27915 do 27916 test "$cf_item2" = "$cf_subdir" && break 27917 done 27918 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir" 27919done 27920for cf_dir in $DIRS_TO_MAKE 27921do 27922 test ! -d "$cf_dir" && mkdir "$cf_dir" 27923done 27924 27925# symbols that differ when compiling Ada95 by itself. 27926NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib' 27927 27928# values to use as strings 27929 27930cat >>confdefs.h <<EOF 27931#define NCURSES_PATHSEP '$PATH_SEPARATOR' 27932EOF 27933 27934cat >>confdefs.h <<EOF 27935#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}" 27936EOF 27937 27938### Define substitutions for header files to avoid name-pollution 27939 27940if test "x$cf_cv_have_tcgetattr" = xyes ; then 27941 HAVE_TCGETATTR=1 27942else 27943 HAVE_TCGETATTR=0 27944fi 27945 27946if test "x$ac_cv_header_stdint_h" = xyes ; then 27947 HAVE_STDINT_H=1 27948else 27949 HAVE_STDINT_H=0 27950fi 27951 27952if test "x$ac_cv_header_termio_h" = xyes ; then 27953 HAVE_TERMIO_H=1 27954else 27955 HAVE_TERMIO_H=0 27956fi 27957 27958if test "x$ac_cv_header_termios_h" = xyes ; then 27959 HAVE_TERMIOS_H=1 27960else 27961 HAVE_TERMIOS_H=0 27962fi 27963 27964################################################################################ 27965test "x$use_database" = xyes && \ 27966SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in" 27967 27968SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in" 27969SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in" 27970 27971if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then 27972SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in" 27973fi 27974 27975if test "x$cf_with_tests" != xno ; then 27976 MAKE_TESTS= 27977else 27978 MAKE_TESTS="#" 27979fi 27980 27981ADAHTML_DIR=../../doc/html/ada 27982 27983# workaround for OS/2 (20151017) 27984case "$cf_cv_system_name" in 27985(os2*) 27986 LIBTOOL_OPTS_CXX="-os2dllname ncurs++" 27987 ;; 27988(*) 27989 LIBTOOL_OPTS_CXX= 27990 ;; 27991esac 27992 27993# workaround for g++ versus Solaris (20131116) 27994case "$cf_cv_system_name" in 27995(solaris2*) 27996 case "x$CPPFLAGS" in 27997 (*-D_XOPEN_SOURCE_EXTENDED*) 27998 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6 27999 28000echo "${as_me:-configure}:28000: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5 28001 28002 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" 28003 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'` 28004 ;; 28005 esac 28006 ;; 28007esac 28008 28009# Help to automatically enable the extended curses features when using either 28010# the *-config or the ".pc" files by adding defines. 28011echo "$as_me:28011: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5 28012echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6 28013PKG_CFLAGS= 28014for cf_loop1 in $CPPFLAGS_after_XOPEN 28015do 28016 cf_found=no 28017 for cf_loop2 in $CPPFLAGS_before_XOPEN 28018 do 28019 if test "x$cf_loop1" = "x$cf_loop2" 28020 then 28021 cf_found=yes 28022 break 28023 fi 28024 done 28025 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1" 28026done 28027echo "$as_me:28027: result: $PKG_CFLAGS" >&5 28028echo "${ECHO_T}$PKG_CFLAGS" >&6 28029 28030# AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this. 28031case "x$NCURSES_OSPEED" in 28032(*short*) 28033 cf_compatible=1 28034 ;; 28035(*) 28036 cf_compatible=0 28037 ;; 28038esac 28039 28040cat >>confdefs.h <<EOF 28041#define NCURSES_OSPEED_COMPAT $cf_compatible 28042EOF 28043 28044case "x$cf_cv_typeof_chtype" in 28045(xshort|xint|xlong) 28046 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype" 28047 ;; 28048esac 28049 28050case "x$cf_cv_typeof_mmask_t" in 28051(xshort|xint|xlong) 28052 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t" 28053 ;; 28054esac 28055 28056# substitute into misc/Makefile to suppress 28057# (un)install.data from the 28058# (un)install rules. 28059if test "x$cf_with_db_install" = "xno"; then 28060 MISC_INSTALL_DATA= 28061 MISC_UNINSTALL_DATA= 28062else 28063 MISC_INSTALL_DATA=install.data 28064 MISC_UNINSTALL_DATA=uninstall.data 28065fi 28066 28067if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then 28068 MAKE_DATABASE="#" 28069else 28070 MAKE_DATABASE="$MAKE_TERMINFO" 28071fi 28072 28073if test -n "$PACKAGE" 28074then 28075 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}" 28076 export PACKAGE 28077 echo "package: $PACKAGE" 28078fi 28079 28080UNALTERED_SYMS= 28081cf_filter_syms=no 28082 28083if test -n "$RESULTING_SYMS" 28084then 28085 cf_filter_syms=$cf_dft_filter_syms 28086 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6 28087 28088echo "${as_me:-configure}:28088: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5 28089 28090fi 28091 28092if test "x$WILDCARD_SYMS" = xno 28093then 28094 cf_filter_syms=yes 28095fi 28096 28097test "x$cf_with_trace" = xyes && NCURSES_INLINE= 28098 28099UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'` 28100if test "$cf_filter_syms" = yes 28101then 28102 RESULTING_SYMS=resulting.map 28103fi 28104 28105if test "x$cross_compiling" = xyes ; then 28106 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)' 28107 CHECK_BUILD="#" 28108else 28109 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)' 28110 CHECK_BUILD= 28111fi 28112 28113# This is used for the *-config script and *.pc data files. 28114 28115echo "$as_me:28115: checking for linker search path" >&5 28116echo $ECHO_N "checking for linker search path... $ECHO_C" >&6 28117if test "${cf_cv_ld_searchpath+set}" = set; then 28118 echo $ECHO_N "(cached) $ECHO_C" >&6 28119else 28120 28121if test "$cross_compiling" != yes ; then 28122 28123# GNU binutils' ld does not involve permissions which may stop ldconfig. 28124cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u` 28125 28126# The -NX options tell newer versions of Linux ldconfig to not attempt to 28127# update the cache, which makes it run faster. 28128test -z "$cf_pathlist" && \ 28129 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u` 28130 28131test -z "$cf_pathlist" && 28132 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u` 28133 28134# This works with OpenBSD 6.5, which lists only filenames 28135test -z "$cf_pathlist" && 28136 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u` 28137 28138if test -z "$cf_pathlist" 28139then 28140 # dyld default path with MacOS 28141 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin 28142 then 28143 # do this to bypass check 28144 cf_cv_ld_searchpath='$HOME/lib' 28145 cf_pathlist="/usr/local/lib /lib /usr/lib" 28146 fi 28147fi 28148 28149if test -z "$cf_pathlist" 28150then 28151 # Solaris is hardcoded 28152 if test -d /opt/SUNWspro/lib 28153 then 28154 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib" 28155 elif test -d /usr/ccs/lib 28156 then 28157 cf_pathlist="/usr/ccs/lib /usr/lib" 28158 fi 28159fi 28160 28161fi 28162 28163# If nothing else, assume it is conventional 28164test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib" 28165 28166# Finally, check that this is only directories 28167for cf_path in $0 $cf_pathlist 28168do 28169 if test -d "$cf_path"; then 28170 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} " 28171 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}" 28172 fi 28173done 28174 28175# Ensure that it is nonempty 28176test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib 28177 28178fi 28179echo "$as_me:28179: result: $cf_cv_ld_searchpath" >&5 28180echo "${ECHO_T}$cf_cv_ld_searchpath" >&6 28181 28182LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'` 28183 28184cat >>confdefs.h <<\EOF 28185#define HAVE_CURSES_DATA_BOOLNAMES 1 28186EOF 28187 28188ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile" 28189ac_config_commands="$ac_config_commands default" 28190cat >confcache <<\_ACEOF 28191# This file is a shell script that caches the results of configure 28192# tests run on this system so they can be shared between configure 28193# scripts and configure runs, see configure's option --config-cache. 28194# It is not useful on other systems. If it contains results you don't 28195# want to keep, you may remove or edit it. 28196# 28197# config.status only pays attention to the cache file if you give it 28198# the --recheck option to rerun configure. 28199# 28200# `ac_cv_env_foo' variables (set or unset) will be overriden when 28201# loading this file, other *unset* `ac_cv_foo' will be assigned the 28202# following values. 28203 28204_ACEOF 28205 28206# The following way of writing the cache mishandles newlines in values, 28207# but we know of no workaround that is simple, portable, and efficient. 28208# So, don't put newlines in cache variables' values. 28209# Ultrix sh set writes to stderr and can't be redirected directly, 28210# and sets the high bit in the cache file unless we assign to the vars. 28211{ 28212 (set) 2>&1 | 28213 case `(ac_space=' '; set | grep ac_space) 2>&1` in 28214 *ac_space=\ *) 28215 # `set' does not quote correctly, so add quotes (double-quote 28216 # substitution turns \\\\ into \\, and sed turns \\ into \). 28217 sed -n \ 28218 "s/'/'\\\\''/g; 28219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28220 ;; 28221 *) 28222 # `set' quotes correctly as required by POSIX, so do not add quotes. 28223 sed -n \ 28224 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 28225 ;; 28226 esac; 28227} | 28228 sed ' 28229 t clear 28230 : clear 28231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 28232 t end 28233 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28234 : end' >>confcache 28235if cmp -s $cache_file confcache; then :; else 28236 if test -w $cache_file; then 28237 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 28238 cat confcache >$cache_file 28239 else 28240 echo "not updating unwritable cache $cache_file" 28241 fi 28242fi 28243rm -f confcache 28244 28245test "x$prefix" = xNONE && prefix=$ac_default_prefix 28246# Let make expand exec_prefix. 28247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28248 28249# VPATH may cause trouble with some makes, so we remove $(srcdir), 28250# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28251# trailing colons and then remove the whole line if VPATH becomes empty 28252# (actually we leave an empty line to preserve line numbers). 28253if test "x$srcdir" = x.; then 28254 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28255s/:*\$(srcdir):*/:/; 28256s/:*\${srcdir}:*/:/; 28257s/:*@srcdir@:*/:/; 28258s/^\([^=]*=[ ]*\):*/\1/; 28259s/:*$//; 28260s/^[^=]*=[ ]*$//; 28261}' 28262fi 28263 28264DEFS=-DHAVE_CONFIG_H 28265 28266: "${CONFIG_STATUS=./config.status}" 28267ac_clean_files_save=$ac_clean_files 28268ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28269{ echo "$as_me:28269: creating $CONFIG_STATUS" >&5 28270echo "$as_me: creating $CONFIG_STATUS" >&6;} 28271cat >"$CONFIG_STATUS" <<_ACEOF 28272#! $SHELL 28273# Generated automatically by configure. 28274# Run this file to recreate the current configuration. 28275# Compiler output produced by configure, useful for debugging 28276# configure, is in config.log if it exists. 28277 28278debug=false 28279SHELL=\${CONFIG_SHELL-$SHELL} 28280ac_cs_invocation="\$0 \$@" 28281 28282CLICOLOR_FORCE= GREP_OPTIONS= 28283unset CLICOLOR_FORCE GREP_OPTIONS 28284_ACEOF 28285 28286cat >>"$CONFIG_STATUS" <<\_ACEOF 28287# Be Bourne compatible 28288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28289 emulate sh 28290 NULLCMD=: 28291elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28292 set -o posix 28293fi 28294 28295# Name of the executable. 28296as_me=`echo "$0" |sed 's,.*[\\/],,'` 28297 28298if expr a : '\(a\)' >/dev/null 2>&1; then 28299 as_expr=expr 28300else 28301 as_expr=false 28302fi 28303 28304rm -f conf$$ conf$$.exe conf$$.file 28305echo >conf$$.file 28306if ln -s conf$$.file conf$$ 2>/dev/null; then 28307 # We could just check for DJGPP; but this test a) works b) is more generic 28308 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 28309 if test -f conf$$.exe; then 28310 # Don't use ln at all; we don't have any links 28311 as_ln_s='cp -p' 28312 else 28313 as_ln_s='ln -s' 28314 fi 28315elif ln conf$$.file conf$$ 2>/dev/null; then 28316 as_ln_s=ln 28317else 28318 as_ln_s='cp -p' 28319fi 28320rm -f conf$$ conf$$.exe conf$$.file 28321 28322as_executable_p="test -f" 28323 28324# Support unset when possible. 28325if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28326 as_unset="unset" 28327else 28328 as_unset="false" 28329fi 28330 28331# NLS nuisances. 28332$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 28333$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 28334$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 28335$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 28336$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 28337$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 28338$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 28339$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 28340 28341# IFS 28342# We need space, tab and new line, in precisely that order. 28343as_nl=' 28344' 28345IFS=" $as_nl" 28346 28347# CDPATH. 28348$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 28349 28350exec 6>&1 28351 28352_ACEOF 28353 28354# Files that config.status was made for. 28355if test -n "$ac_config_files"; then 28356 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 28357fi 28358 28359if test -n "$ac_config_headers"; then 28360 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 28361fi 28362 28363if test -n "$ac_config_links"; then 28364 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 28365fi 28366 28367if test -n "$ac_config_commands"; then 28368 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 28369fi 28370 28371cat >>"$CONFIG_STATUS" <<\EOF 28372 28373ac_cs_usage="\ 28374\`$as_me' instantiates files from templates according to the 28375current configuration. 28376 28377Usage: $0 [OPTIONS] [FILE]... 28378 28379 -h, --help print this help, then exit 28380 -V, --version print version number, then exit 28381 -d, --debug don't remove temporary files 28382 --recheck update $as_me by reconfiguring in the same conditions 28383 --file=FILE[:TEMPLATE] 28384 instantiate the configuration file FILE 28385 --header=FILE[:TEMPLATE] 28386 instantiate the configuration header FILE 28387 28388Configuration files: 28389$config_files 28390 28391Configuration headers: 28392$config_headers 28393 28394Configuration commands: 28395$config_commands 28396 28397Report bugs to <dickey@invisible-island.net>." 28398EOF 28399 28400cat >>"$CONFIG_STATUS" <<EOF 28401ac_cs_version="\\ 28402config.status 28403configured by $0, generated by GNU Autoconf 2.52.20210105, 28404 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 28405 28406Copyright 2003-2020,2021 Thomas E. Dickey 28407Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 28408Free Software Foundation, Inc. 28409This config.status script is free software; the Free Software Foundation 28410gives unlimited permission to copy, distribute and modify it." 28411srcdir="$srcdir" 28412INSTALL="$INSTALL" 28413EOF 28414 28415cat >>"$CONFIG_STATUS" <<\EOF 28416# If no file are specified by the user, then we need to provide default 28417# value. By we need to know if files were specified by the user. 28418ac_need_defaults=: 28419while test $# != 0 28420do 28421 case $1 in 28422 --*=*) 28423 ac_option=`expr "x$1" : 'x\([^=]*\)='` 28424 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 28425 shift 28426 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 28427 shift 28428 ;; 28429 -*);; 28430 *) # This is not an option, so the user has probably given explicit 28431 # arguments. 28432 ac_need_defaults=false;; 28433 esac 28434 28435 case $1 in 28436 # Handling of the options. 28437EOF 28438cat >>"$CONFIG_STATUS" <<EOF 28439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28440 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 28441 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 28442EOF 28443cat >>"$CONFIG_STATUS" <<\EOF 28444 --version | --vers* | -V ) 28445 echo "$ac_cs_version"; exit 0 ;; 28446 --he | --h) 28447 # Conflict between --help and --header 28448 { { echo "$as_me:28448: error: ambiguous option: $1 28449Try \`$0 --help' for more information." >&5 28450echo "$as_me: error: ambiguous option: $1 28451Try \`$0 --help' for more information." >&2;} 28452 { (exit 1); exit 1; }; };; 28453 --help | --hel | -h ) 28454 echo "$ac_cs_usage"; exit 0 ;; 28455 --debug | --d* | -d ) 28456 debug=: ;; 28457 --file | --fil | --fi | --f ) 28458 shift 28459 CONFIG_FILES="$CONFIG_FILES $1" 28460 ac_need_defaults=false;; 28461 --header | --heade | --head | --hea ) 28462 shift 28463 CONFIG_HEADERS="$CONFIG_HEADERS $1" 28464 ac_need_defaults=false;; 28465 28466 # This is an error. 28467 -*) { { echo "$as_me:28467: error: unrecognized option: $1 28468Try \`$0 --help' for more information." >&5 28469echo "$as_me: error: unrecognized option: $1 28470Try \`$0 --help' for more information." >&2;} 28471 { (exit 1); exit 1; }; } ;; 28472 28473 *) ac_config_targets="$ac_config_targets $1" ;; 28474 28475 esac 28476 shift 28477done 28478 28479exec 5>>config.log 28480cat >&5 << _ACEOF 28481 28482## ----------------------- ## 28483## Running config.status. ## 28484## ----------------------- ## 28485 28486This file was extended by $as_me 2.52.20210105, executed with 28487 CONFIG_FILES = $CONFIG_FILES 28488 CONFIG_HEADERS = $CONFIG_HEADERS 28489 CONFIG_LINKS = $CONFIG_LINKS 28490 CONFIG_COMMANDS = $CONFIG_COMMANDS 28491 > "$ac_cs_invocation" 28492on `(hostname || uname -n) 2>/dev/null | sed 1q` 28493 28494_ACEOF 28495EOF 28496 28497cat >>"$CONFIG_STATUS" <<EOF 28498# 28499# INIT-COMMANDS section. 28500# 28501 28502### Special initialization commands, used to pass information from the 28503### configuration-run into config.status 28504 28505ALTERNATE_SYMS="$ALTERNATE_SYMS" 28506AWK="$AWK" 28507CXX_NAME="$CXX_NAME" 28508DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX" 28509DFT_LWR_MODEL="$DFT_LWR_MODEL" 28510ECHO_LD="$ECHO_LD" 28511EXTRA_SUFFIX="$EXTRA_SUFFIX" 28512FORM_NAME="$FORM_NAME" 28513LDCONFIG="$LDCONFIG" 28514LIBTOOL_VERSION="$LIBTOOL_VERSION" 28515LIB_NAME="$LIB_NAME" 28516LIB_PREFIX="$LIB_PREFIX" 28517LIB_SUBSETS="$LIB_SUBSETS" 28518LIB_SUFFIX="$LIB_SUFFIX" 28519LIB_TRACING="$LIB_TRACING" 28520LN_S="$LN_S" 28521MAKE_TERMINFO="$MAKE_TERMINFO" 28522MENU_NAME="$MENU_NAME" 28523NCURSES_MAJOR="$NCURSES_MAJOR" 28524NCURSES_MINOR="$NCURSES_MINOR" 28525NCURSES_OSPEED="$NCURSES_OSPEED" 28526NCURSES_PATCH="$NCURSES_PATCH" 28527PANEL_NAME="$PANEL_NAME" 28528SRC_SUBDIRS="$SRC_SUBDIRS" 28529TERMINFO="$TERMINFO" 28530TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX" 28531TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX" 28532TICS_NAME="$TICS_NAME" 28533TICS_SUFFIX="$TICS_SUFFIX" 28534TIC_PATH="$TIC_PATH" 28535TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX" 28536TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX" 28537TINFO_NAME="$TINFO_NAME" 28538TINFO_SUFFIX="$TINFO_SUFFIX" 28539UNALTERED_SYMS="$UNALTERED_SYMS" 28540USE_ARG_SUFFIX="$USE_ARG_SUFFIX" 28541USE_CFG_SUFFIX="$USE_CFG_SUFFIX" 28542USE_LIB_SUFFIX="$USE_LIB_SUFFIX" 28543USE_OLD_MAKERULES="$USE_OLD_MAKERULES" 28544WILDCARD_SYMS="$WILDCARD_SYMS" 28545WITH_CURSES_H="$with_curses_h" 28546WITH_ECHO="${enable_echo:=yes}" 28547WITH_OVERWRITE="$with_overwrite" 28548cf_LIST_MODELS="$cf_list_models" 28549cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE 28550cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD 28551cf_cv_abi_version="$cf_cv_abi_version" 28552cf_cv_do_relink="$cf_cv_do_relink" 28553cf_cv_do_reranlib="$cf_cv_do_reranlib" 28554cf_cv_do_symlinks="$cf_cv_do_symlinks" 28555cf_cv_enable_lp64="$cf_cv_enable_lp64" 28556cf_cv_enable_opaque="$cf_cv_enable_opaque" 28557cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o 28558cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o 28559cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct 28560cf_cv_rel_version="$cf_cv_rel_version" 28561cf_cv_rm_so_locs="$cf_cv_rm_so_locs" 28562cf_cv_shared_soname='$cf_cv_shared_soname' 28563cf_cv_shlib_version="$cf_cv_shlib_version" 28564cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix" 28565cf_cv_system_name="$cf_cv_system_name" 28566cf_cv_term_driver="$with_term_driver" 28567cf_with_ada="$cf_with_ada" 28568cf_with_cxx_binding="$cf_with_cxx_binding" 28569cf_with_db_install="$cf_with_db_install" 28570cf_with_manpages="$cf_with_manpages" 28571cf_with_tests="$cf_with_tests" 28572host="$host" 28573target="$target" 28574with_shared_cxx="$with_shared_cxx" 28575 28576EOF 28577 28578cat >>"$CONFIG_STATUS" <<\EOF 28579for ac_config_target in $ac_config_targets 28580do 28581 case "$ac_config_target" in 28582 # Handling of arguments. 28583 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;; 28584 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;; 28585 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;; 28586 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;; 28587 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;; 28588 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;; 28589 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28590 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 28591 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;; 28592 *) { { echo "$as_me:28592: error: invalid argument: $ac_config_target" >&5 28593echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28594 { (exit 1); exit 1; }; };; 28595 esac 28596done 28597 28598# If the user did not use the arguments to specify the items to instantiate, 28599# then the envvar interface is used. Set only those that are not. 28600# We use the long form for the default assignment because of an extremely 28601# bizarre bug on SunOS 4.1.3. 28602if "$ac_need_defaults"; then 28603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28606fi 28607 28608# Create a temporary directory, and hook for its removal unless debugging. 28609$debug || 28610{ 28611 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 28612 trap '{ (exit 1); exit 1; }' 1 2 13 15 28613} 28614 28615# Create a (secure) tmp directory for tmp files. 28616: ${TMPDIR=/tmp} 28617{ 28618 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 28619 test -n "$tmp" && test -d "$tmp" 28620} || 28621{ 28622 tmp=$TMPDIR/cs$$-$RANDOM 28623 (umask 077 && mkdir $tmp) 28624} || 28625{ 28626 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 28627 { (exit 1); exit 1; } 28628} 28629 28630EOF 28631 28632cat >>"$CONFIG_STATUS" <<EOF 28633 28634# 28635# CONFIG_FILES section. 28636# 28637 28638# No need to generate the scripts if there are no CONFIG_FILES. 28639# This happens for instance when ./config.status config.h 28640if test -n "\$CONFIG_FILES"; then 28641 # Protect against being on the right side of a sed subst in config.status. 28642 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 28643 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 28644s,@SHELL@,$SHELL,;t t 28645s,@exec_prefix@,$exec_prefix,;t t 28646s,@prefix@,$prefix,;t t 28647s,@program_transform_name@,$program_transform_name,;t t 28648s,@bindir@,$bindir,;t t 28649s,@sbindir@,$sbindir,;t t 28650s,@libexecdir@,$libexecdir,;t t 28651s,@datarootdir@,$datarootdir,;t t 28652s,@datadir@,$datadir,;t t 28653s,@sysconfdir@,$sysconfdir,;t t 28654s,@sharedstatedir@,$sharedstatedir,;t t 28655s,@localstatedir@,$localstatedir,;t t 28656s,@runstatedir@,$runstatedir,;t t 28657s,@libdir@,$libdir,;t t 28658s,@includedir@,$includedir,;t t 28659s,@oldincludedir@,$oldincludedir,;t t 28660s,@infodir@,$infodir,;t t 28661s,@mandir@,$mandir,;t t 28662s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 28663s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 28664s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 28665s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 28666s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 28667s,@build_alias@,$build_alias,;t t 28668s,@host_alias@,$host_alias,;t t 28669s,@target_alias@,$target_alias,;t t 28670s,@ECHO_C@,$ECHO_C,;t t 28671s,@ECHO_N@,$ECHO_N,;t t 28672s,@ECHO_T@,$ECHO_T,;t t 28673s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 28674s,@DEFS@,$DEFS,;t t 28675s,@LIBS@,$LIBS,;t t 28676s,@top_builddir@,$top_builddir,;t t 28677s,@GREP@,$GREP,;t t 28678s,@EGREP@,$EGREP,;t t 28679s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t 28680s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t 28681s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t 28682s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t 28683s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t 28684s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t 28685s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t 28686s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t 28687s,@VERSION@,$VERSION,;t t 28688s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t 28689s,@VERSION_MINOR@,$VERSION_MINOR,;t t 28690s,@VERSION_PATCH@,$VERSION_PATCH,;t t 28691s,@PACKAGE@,$PACKAGE,;t t 28692s,@build@,$build,;t t 28693s,@build_cpu@,$build_cpu,;t t 28694s,@build_vendor@,$build_vendor,;t t 28695s,@build_os@,$build_os,;t t 28696s,@host@,$host,;t t 28697s,@host_cpu@,$host_cpu,;t t 28698s,@host_vendor@,$host_vendor,;t t 28699s,@host_os@,$host_os,;t t 28700s,@target@,$target,;t t 28701s,@target_cpu@,$target_cpu,;t t 28702s,@target_vendor@,$target_vendor,;t t 28703s,@target_os@,$target_os,;t t 28704s,@FGREP@,$FGREP,;t t 28705s,@CC@,$CC,;t t 28706s,@CFLAGS@,$CFLAGS,;t t 28707s,@LDFLAGS@,$LDFLAGS,;t t 28708s,@CPPFLAGS@,$CPPFLAGS,;t t 28709s,@ac_ct_CC@,$ac_ct_CC,;t t 28710s,@EXEEXT@,$EXEEXT,;t t 28711s,@OBJEXT@,$OBJEXT,;t t 28712s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 28713s,@CPP@,$CPP,;t t 28714s,@LDCONFIG@,$LDCONFIG,;t t 28715s,@CXX@,$CXX,;t t 28716s,@CXXFLAGS@,$CXXFLAGS,;t t 28717s,@ac_ct_CXX@,$ac_ct_CXX,;t t 28718s,@AWK@,$AWK,;t t 28719s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 28720s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 28721s,@INSTALL_DATA@,$INSTALL_DATA,;t t 28722s,@LINT@,$LINT,;t t 28723s,@LINT_OPTS@,$LINT_OPTS,;t t 28724s,@LN_S@,$LN_S,;t t 28725s,@cf_config_suffix@,$cf_config_suffix,;t t 28726s,@PKG_CONFIG@,$PKG_CONFIG,;t t 28727s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 28728s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t 28729s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t 28730s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t 28731s,@SET_MAKE@,$SET_MAKE,;t t 28732s,@CTAGS@,$CTAGS,;t t 28733s,@ETAGS@,$ETAGS,;t t 28734s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 28735s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 28736s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 28737s,@RANLIB@,$RANLIB,;t t 28738s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 28739s,@LD@,$LD,;t t 28740s,@ac_ct_LD@,$ac_ct_LD,;t t 28741s,@AR@,$AR,;t t 28742s,@ac_ct_AR@,$ac_ct_AR,;t t 28743s,@NM@,$NM,;t t 28744s,@ac_ct_NM@,$ac_ct_NM,;t t 28745s,@ARFLAGS@,$ARFLAGS,;t t 28746s,@DESTDIR@,$DESTDIR,;t t 28747s,@BUILD_CC@,$BUILD_CC,;t t 28748s,@BUILD_CPP@,$BUILD_CPP,;t t 28749s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 28750s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t 28751s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t 28752s,@BUILD_LIBS@,$BUILD_LIBS,;t t 28753s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 28754s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t 28755s,@cf_list_models@,$cf_list_models,;t t 28756s,@ABI_VERSION@,$ABI_VERSION,;t t 28757s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t 28758s,@LIBTOOL@,$LIBTOOL,;t t 28759s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t 28760s,@LT_UNDEF@,$LT_UNDEF,;t t 28761s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 28762s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 28763s,@LIB_CREATE@,$LIB_CREATE,;t t 28764s,@LIB_OBJECT@,$LIB_OBJECT,;t t 28765s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 28766s,@LIB_PREP@,$LIB_PREP,;t t 28767s,@LIB_CLEAN@,$LIB_CLEAN,;t t 28768s,@LIB_COMPILE@,$LIB_COMPILE,;t t 28769s,@LIB_LINK@,$LIB_LINK,;t t 28770s,@LIB_INSTALL@,$LIB_INSTALL,;t t 28771s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 28772s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t 28773s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t 28774s,@TICS_NAME@,$TICS_NAME,;t t 28775s,@TINFO_NAME@,$TINFO_NAME,;t t 28776s,@LIB_NAME@,$LIB_NAME,;t t 28777s,@LIB_PREFIX@,$LIB_PREFIX,;t t 28778s,@CC_G_OPT@,$CC_G_OPT,;t t 28779s,@CXX_G_OPT@,$CXX_G_OPT,;t t 28780s,@LD_MODEL@,$LD_MODEL,;t t 28781s,@shlibdir@,$shlibdir,;t t 28782s,@MAKE_DLLS@,$MAKE_DLLS,;t t 28783s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t 28784s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t 28785s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t 28786s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t 28787s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t 28788s,@LINK_PROGS@,$LINK_PROGS,;t t 28789s,@LINK_TESTS@,$LINK_TESTS,;t t 28790s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 28791s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t 28792s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t 28793s,@INSTALL_LIB@,$INSTALL_LIB,;t t 28794s,@RPATH_LIST@,$RPATH_LIST,;t t 28795s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t 28796s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t 28797s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t 28798s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t 28799s,@cf_ldd_prog@,$cf_ldd_prog,;t t 28800s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t 28801s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t 28802s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t 28803s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t 28804s,@TIC@,$TIC,;t t 28805s,@ac_ct_TIC@,$ac_ct_TIC,;t t 28806s,@INFOCMP@,$INFOCMP,;t t 28807s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t 28808s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t 28809s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t 28810s,@WHICH_XTERM@,$WHICH_XTERM,;t t 28811s,@XTERM_KBS@,$XTERM_KBS,;t t 28812s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t 28813s,@TERMINFO@,$TERMINFO,;t t 28814s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t 28815s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t 28816s,@TERMPATH@,$TERMPATH,;t t 28817s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t 28818s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t 28819s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t 28820s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t 28821s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t 28822s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t 28823s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t 28824s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t 28825s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t 28826s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t 28827s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t 28828s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t 28829s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t 28830s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t 28831s,@RGB_PATH@,$RGB_PATH,;t t 28832s,@no_x11_rgb@,$no_x11_rgb,;t t 28833s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t 28834s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t 28835s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t 28836s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t 28837s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t 28838s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t 28839s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t 28840s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t 28841s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t 28842s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t 28843s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t 28844s,@NCURSES_CONST@,$NCURSES_CONST,;t t 28845s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t 28846s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t 28847s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t 28848s,@PTHREAD@,$PTHREAD,;t t 28849s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t 28850s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t 28851s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t 28852s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t 28853s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t 28854s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t 28855s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t 28856s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t 28857s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t 28858s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t 28859s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t 28860s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t 28861s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t 28862s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t 28863s,@ECHO_LT@,$ECHO_LT,;t t 28864s,@ECHO_LD@,$ECHO_LD,;t t 28865s,@RULE_CC@,$RULE_CC,;t t 28866s,@SHOW_CC@,$SHOW_CC,;t t 28867s,@ECHO_CC@,$ECHO_CC,;t t 28868s,@ECHO_LINK@,$ECHO_LINK,;t t 28869s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t 28870s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t 28871s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t 28872s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 28873s,@ADAFLAGS@,$ADAFLAGS,;t t 28874s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t 28875s,@ADA_TRACE@,$ADA_TRACE,;t t 28876s,@MATH_LIB@,$MATH_LIB,;t t 28877s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t 28878s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t 28879s,@cf_cv_1UL@,$cf_cv_1UL,;t t 28880s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t 28881s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t 28882s,@TEST_LIBS@,$TEST_LIBS,;t t 28883s,@TEST_LIBS2@,$TEST_LIBS2,;t t 28884s,@CXXCPP@,$CXXCPP,;t t 28885s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t 28886s,@CXX_AR@,$CXX_AR,;t t 28887s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t 28888s,@CXXLIBS@,$CXXLIBS,;t t 28889s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t 28890s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t 28891s,@M4_exists@,$M4_exists,;t t 28892s,@cf_ada_make@,$cf_ada_make,;t t 28893s,@cf_ada_config@,$cf_ada_config,;t t 28894s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t 28895s,@cf_ada_config_C@,$cf_ada_config_C,;t t 28896s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t 28897s,@cf_compile_generics@,$cf_compile_generics,;t t 28898s,@cf_generic_objects@,$cf_generic_objects,;t t 28899s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t 28900s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t 28901s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t 28902s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t 28903s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t 28904s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t 28905s,@cf_ada_compiler@,$cf_ada_compiler,;t t 28906s,@cf_ada_package@,$cf_ada_package,;t t 28907s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t 28908s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t 28909s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t 28910s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t 28911s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t 28912s,@ACPPFLAGS@,$ACPPFLAGS,;t t 28913s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t 28914s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t 28915s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t 28916s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t 28917s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t 28918s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t 28919s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t 28920s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t 28921s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t 28922s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t 28923s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t 28924s,@TICS_LIBS@,$TICS_LIBS,;t t 28925s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t 28926s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t 28927s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t 28928s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t 28929s,@TINFO_LIBS@,$TINFO_LIBS,;t t 28930s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t 28931s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t 28932s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t 28933s,@includesubdir@,$includesubdir,;t t 28934s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t 28935s,@TICS_LIST@,$TICS_LIST,;t t 28936s,@TINFO_LIST@,$TINFO_LIST,;t t 28937s,@SHLIB_LIST@,$SHLIB_LIST,;t t 28938s,@NCURSES_TREE@,$NCURSES_TREE,;t t 28939s,@FORM_NAME@,$FORM_NAME,;t t 28940s,@MENU_NAME@,$MENU_NAME,;t t 28941s,@PANEL_NAME@,$PANEL_NAME,;t t 28942s,@CXX_NAME@,$CXX_NAME,;t t 28943s,@TEST_ARGS@,$TEST_ARGS,;t t 28944s,@TEST_DEPS@,$TEST_DEPS,;t t 28945s,@TEST_ARG2@,$TEST_ARG2,;t t 28946s,@TEST_DEP2@,$TEST_DEP2,;t t 28947s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t 28948s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t 28949s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t 28950s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t 28951s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t 28952s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t 28953s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t 28954s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t 28955s,@cross_compiling@,$cross_compiling,;t t 28956s,@MAKE_TESTS@,$MAKE_TESTS,;t t 28957s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t 28958s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t 28959s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t 28960s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t 28961s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t 28962s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t 28963s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t 28964s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t 28965s,@CHECK_BUILD@,$CHECK_BUILD,;t t 28966s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t 28967s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t 28968CEOF 28969 28970EOF 28971 28972 cat >>"$CONFIG_STATUS" <<\EOF 28973 # Split the substitutions into bite-sized pieces for seds with 28974 # small command number limits, like on Digital OSF/1 and HP-UX. 28975 ac_max_sed_lines=48 28976 ac_sed_frag=1 # Number of current file. 28977 ac_beg=1 # First line for current file. 28978 ac_end=$ac_max_sed_lines # Line after last line for current file. 28979 ac_more_lines=: 28980 ac_sed_cmds= 28981 while "$ac_more_lines"; do 28982 if test "$ac_beg" -gt 1; then 28983 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28984 else 28985 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28986 fi 28987 if test ! -s $tmp/subs.frag; then 28988 ac_more_lines=false 28989 else 28990 # The purpose of the label and of the branching condition is to 28991 # speed up the sed processing (if there are no `@' at all, there 28992 # is no need to browse any of the substitutions). 28993 # These are the two extra sed commands mentioned above. 28994 (echo ':t 28995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 28996 # It is possible to make a multiline substitution using escaped newlines. 28997 # Ensure that we do not split the substitution between script fragments. 28998 ac_BEG=$ac_end 28999 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 29000 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 29001 if test -s $tmp/subs.next; then 29002 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 29003 if test ! -s $tmp/subs.edit; then 29004 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 29005 if test ! -s $tmp/subs.edit; then 29006 if test "$ac_beg" -gt 1; then 29007 ac_end=`expr "$ac_end" - 1` 29008 continue 29009 fi 29010 fi 29011 fi 29012 fi 29013 29014 if test -z "$ac_sed_cmds"; then 29015 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 29016 else 29017 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 29018 fi 29019 ac_sed_frag=`expr "$ac_sed_frag" + 1` 29020 ac_beg=$ac_end 29021 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 29022 fi 29023 done 29024 if test -z "$ac_sed_cmds"; then 29025 ac_sed_cmds=cat 29026 fi 29027fi # test -n "$CONFIG_FILES" 29028 29029EOF 29030cat >>"$CONFIG_STATUS" <<\EOF 29031for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 29032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 29033 case "$ac_file" in 29034 - | *:- | *:-:* ) # input from stdin 29035 cat >$tmp/stdin 29036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29040 * ) ac_file_in=$ac_file.in ;; 29041 esac 29042 29043 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 29044 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29045 X"$ac_file" : 'X\(//\)[^/]' \| \ 29046 X"$ac_file" : 'X\(//\)$' \| \ 29047 X"$ac_file" : 'X\(/\)' \| \ 29048 . : '\(.\)' 2>/dev/null || 29049echo X"$ac_file" | 29050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29051 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29052 /^X\(\/\/\)$/{ s//\1/; q; } 29053 /^X\(\/\).*/{ s//\1/; q; } 29054 s/.*/./; q'` 29055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 29056 { case "$ac_dir" in 29057 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 29058 *) as_incr_dir=.;; 29059esac 29060as_dummy="$ac_dir" 29061for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 29062 case $as_mkdir_dir in 29063 # Skip DOS drivespec 29064 ?:) as_incr_dir=$as_mkdir_dir ;; 29065 *) 29066 as_incr_dir=$as_incr_dir/$as_mkdir_dir 29067 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 29068 ;; 29069 esac 29070done; } 29071 29072 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 29073 # A "../" for each directory in $ac_dir_suffix. 29074 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 29075 else 29076 ac_dir_suffix= ac_dots= 29077 fi 29078 29079 case "$srcdir" in 29080 .) ac_srcdir=. 29081 if test -z "$ac_dots"; then 29082 ac_top_srcdir=. 29083 else 29084 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 29085 fi ;; 29086 [\\/]* | ?:[\\/]* ) 29087 ac_srcdir="$srcdir$ac_dir_suffix"; 29088 ac_top_srcdir="$srcdir" ;; 29089 *) # Relative path. 29090 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 29091 ac_top_srcdir="$ac_dots$srcdir" ;; 29092 esac 29093 29094 case $INSTALL in 29095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 29096 *) ac_INSTALL=$ac_dots$INSTALL ;; 29097 esac 29098 29099 if test x"$ac_file" != x-; then 29100 { echo "$as_me:29100: creating $ac_file" >&5 29101echo "$as_me: creating $ac_file" >&6;} 29102 rm -f "$ac_file" 29103 fi 29104 # Let's still pretend it is `configure' which instantiates (i.e., don't 29105 # use $as_me), people would be surprised to read: 29106 # /* config.h. Generated automatically by config.status. */ 29107 configure_input="Generated automatically from `echo $ac_file_in | 29108 sed 's,.*/,,'` by configure." 29109 29110 # First look for the input files in the build tree, otherwise in the 29111 # src tree. 29112 ac_file_inputs=`IFS=: 29113 for f in $ac_file_in; do 29114 case $f in 29115 -) echo $tmp/stdin ;; 29116 [\\/$]*) 29117 # Absolute (can't be DOS-style, as IFS=:) 29118 test -f "$f" || { { echo "$as_me:29118: error: cannot find input file: $f" >&5 29119echo "$as_me: error: cannot find input file: $f" >&2;} 29120 { (exit 1); exit 1; }; } 29121 echo $f;; 29122 *) # Relative 29123 if test -f "$f"; then 29124 # Build tree 29125 echo $f 29126 elif test -f "$srcdir/$f"; then 29127 # Source tree 29128 echo "$srcdir/$f" 29129 else 29130 # /dev/null tree 29131 { { echo "$as_me:29131: error: cannot find input file: $f" >&5 29132echo "$as_me: error: cannot find input file: $f" >&2;} 29133 { (exit 1); exit 1; }; } 29134 fi;; 29135 esac 29136 done` || { (exit 1); exit 1; } 29137EOF 29138cat >>"$CONFIG_STATUS" <<\EOF 29139 ac_warn_datarootdir=no 29140 if test x"$ac_file" != x-; then 29141 for ac_item in $ac_file_inputs 29142 do 29143 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 29144 if test -n "$ac_seen"; then 29145 ac_used=`grep '@datarootdir@' "$ac_item"` 29146 if test -z "$ac_used"; then 29147 { echo "$as_me:29147: WARNING: datarootdir was used implicitly but not set: 29148$ac_seen" >&5 29149echo "$as_me: WARNING: datarootdir was used implicitly but not set: 29150$ac_seen" >&2;} 29151 ac_warn_datarootdir=yes 29152 fi 29153 fi 29154 ac_seen=`grep '${datarootdir}' "$ac_item"` 29155 if test -n "$ac_seen"; then 29156 { echo "$as_me:29156: WARNING: datarootdir was used explicitly but not set: 29157$ac_seen" >&5 29158echo "$as_me: WARNING: datarootdir was used explicitly but not set: 29159$ac_seen" >&2;} 29160 ac_warn_datarootdir=yes 29161 fi 29162 done 29163 fi 29164 29165if test "x$ac_warn_datarootdir" = xyes; then 29166 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 29167fi 29168 29169EOF 29170cat >>"$CONFIG_STATUS" <<EOF 29171 sed "$ac_vpsub 29172$extrasub 29173EOF 29174cat >>"$CONFIG_STATUS" <<\EOF 29175:t 29176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 29177s,@configure_input@,$configure_input,;t t 29178s,@srcdir@,$ac_srcdir,;t t 29179s,@top_srcdir@,$ac_top_srcdir,;t t 29180s,@INSTALL@,$ac_INSTALL,;t t 29181" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 29182 rm -f $tmp/stdin 29183 if test x"$ac_file" != x-; then 29184 cp "$tmp/out" "$ac_file" 29185 29186 for ac_name in prefix exec_prefix datarootdir 29187 do 29188 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"` 29189 if test -n "$ac_seen"; then 29190 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"` 29191 if test -z "$ac_init"; then 29192 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 29193 { echo "$as_me:29193: WARNING: Variable $ac_name is used but was not set: 29194$ac_seen" >&5 29195echo "$as_me: WARNING: Variable $ac_name is used but was not set: 29196$ac_seen" >&2;} 29197 fi 29198 fi 29199 done 29200 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out 29201 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out 29202 if test -s $tmp/out; then 29203 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 29204 { echo "$as_me:29204: WARNING: Some variables may not be substituted: 29205$ac_seen" >&5 29206echo "$as_me: WARNING: Some variables may not be substituted: 29207$ac_seen" >&2;} 29208 fi 29209 else 29210 cat $tmp/out 29211 fi 29212 rm -f $tmp/out 29213 29214done 29215EOF 29216cat >>"$CONFIG_STATUS" <<\EOF 29217 29218# 29219# CONFIG_HEADER section. 29220# 29221 29222# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 29223# NAME is the cpp macro being defined and VALUE is the value it is being given. 29224# 29225# ac_d sets the value in "#define NAME VALUE" lines. 29226ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 29227ac_dB='[ ].*$,\1#\2' 29228ac_dC=' ' 29229ac_dD=',;t' 29230# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 29231ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29232ac_iB='\([ ]\),\1#\2define\3' 29233ac_iC=' ' 29234ac_iD='\4,;t' 29235# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 29236ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29237ac_uB='$,\1#\2define\3' 29238ac_uC=' ' 29239ac_uD=',;t' 29240 29241for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 29242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 29243 case "$ac_file" in 29244 - | *:- | *:-:* ) # input from stdin 29245 cat >$tmp/stdin 29246 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29248 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29249 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29250 * ) ac_file_in=$ac_file.in ;; 29251 esac 29252 29253 test x"$ac_file" != x- && { echo "$as_me:29253: creating $ac_file" >&5 29254echo "$as_me: creating $ac_file" >&6;} 29255 29256 # First look for the input files in the build tree, otherwise in the 29257 # src tree. 29258 ac_file_inputs=`IFS=: 29259 for f in $ac_file_in; do 29260 case $f in 29261 -) echo $tmp/stdin ;; 29262 [\\/$]*) 29263 # Absolute (can't be DOS-style, as IFS=:) 29264 test -f "$f" || { { echo "$as_me:29264: error: cannot find input file: $f" >&5 29265echo "$as_me: error: cannot find input file: $f" >&2;} 29266 { (exit 1); exit 1; }; } 29267 echo $f;; 29268 *) # Relative 29269 if test -f "$f"; then 29270 # Build tree 29271 echo $f 29272 elif test -f "$srcdir/$f"; then 29273 # Source tree 29274 echo "$srcdir/$f" 29275 else 29276 # /dev/null tree 29277 { { echo "$as_me:29277: error: cannot find input file: $f" >&5 29278echo "$as_me: error: cannot find input file: $f" >&2;} 29279 { (exit 1); exit 1; }; } 29280 fi;; 29281 esac 29282 done` || { (exit 1); exit 1; } 29283 # Remove the trailing spaces. 29284 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 29285 29286EOF 29287 29288# Transform confdefs.h into a list of #define's. We won't use it as a sed 29289# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 29290# be either 'cat' or 'sort'. 29291cat confdefs.h | uniq >conftest.vals 29292 29293# Break up conftest.vals because some shells have a limit on 29294# the size of here documents, and old seds have small limits too. 29295 29296rm -f conftest.tail 29297echo ' rm -f conftest.frag' >> "$CONFIG_STATUS" 29298while grep . conftest.vals >/dev/null 29299do 29300 # Write chunks of a limited-size here document to conftest.frag. 29301 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS" 29302 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS" 29303 echo 'CEOF' >> "$CONFIG_STATUS" 29304 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail 29305 rm -f conftest.vals 29306 mv conftest.tail conftest.vals 29307done 29308rm -f conftest.vals 29309 29310# Run sed to substitute the contents of conftest.frag into $tmp/in at the 29311# marker @DEFS@. 29312echo ' cat >> conftest.edit <<CEOF 29313/@DEFS@/r conftest.frag 29314/@DEFS@/d 29315CEOF 29316sed -f conftest.edit $tmp/in > $tmp/out 29317rm -f $tmp/in 29318mv $tmp/out $tmp/in 29319rm -f conftest.edit conftest.frag 29320' >> "$CONFIG_STATUS" 29321 29322cat >>"$CONFIG_STATUS" <<\EOF 29323 # Let's still pretend it is `configure' which instantiates (i.e., don't 29324 # use $as_me), people would be surprised to read: 29325 # /* config.h. Generated automatically by config.status. */ 29326 if test x"$ac_file" = x-; then 29327 echo "/* Generated automatically by configure. */" >$tmp/config.h 29328 else 29329 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 29330 fi 29331 cat $tmp/in >>$tmp/config.h 29332 rm -f $tmp/in 29333 if test x"$ac_file" != x-; then 29334 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 29335 { echo "$as_me:29335: $ac_file is unchanged" >&5 29336echo "$as_me: $ac_file is unchanged" >&6;} 29337 else 29338 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29339 X"$ac_file" : 'X\(//\)[^/]' \| \ 29340 X"$ac_file" : 'X\(//\)$' \| \ 29341 X"$ac_file" : 'X\(/\)' \| \ 29342 . : '\(.\)' 2>/dev/null || 29343echo X"$ac_file" | 29344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29345 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29346 /^X\(\/\/\)$/{ s//\1/; q; } 29347 /^X\(\/\).*/{ s//\1/; q; } 29348 s/.*/./; q'` 29349 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 29350 { case "$ac_dir" in 29351 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 29352 *) as_incr_dir=.;; 29353esac 29354as_dummy="$ac_dir" 29355for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 29356 case $as_mkdir_dir in 29357 # Skip DOS drivespec 29358 ?:) as_incr_dir=$as_mkdir_dir ;; 29359 *) 29360 as_incr_dir=$as_incr_dir/$as_mkdir_dir 29361 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 29362 ;; 29363 esac 29364done; } 29365 29366 fi 29367 rm -f "$ac_file" 29368 mv "$tmp/config.h" "$ac_file" 29369 fi 29370 else 29371 cat $tmp/config.h 29372 rm -f $tmp/config.h 29373 fi 29374done 29375EOF 29376cat >>"$CONFIG_STATUS" <<\EOF 29377# 29378# CONFIG_COMMANDS section. 29379# 29380for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 29381 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 29382 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 29383 29384 case "$ac_dest" in 29385 default ) 29386if test "x$cf_with_tests" != xno ; then 29387 29388for cf_dir in test 29389do 29390 if test ! -d "$srcdir/$cf_dir" ; then 29391 continue 29392 elif test -f "$srcdir/$cf_dir/programs" ; then 29393 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile 29394 fi 29395done 29396 29397fi 29398 29399cf_prefix=$LIB_PREFIX 29400 29401case "$cf_cv_shlib_version" in 29402(cygdll|msysdll|mingw|msvcdll) 29403 TINFO_NAME=$TINFO_ARG_SUFFIX 29404 TINFO_SUFFIX=.dll 29405 ;; 29406esac 29407 29408if test -n "$TINFO_SUFFIX" ; then 29409 case "$TINFO_SUFFIX" in 29410 (tw*) 29411 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}" 29412 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'` 29413 ;; 29414 (t*) 29415 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}" 29416 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'` 29417 ;; 29418 (w*) 29419 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}" 29420 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'` 29421 ;; 29422 esac 29423fi 29424 29425for cf_dir in $SRC_SUBDIRS 29426do 29427 if test ! -d "$srcdir/$cf_dir" ; then 29428 continue 29429 elif test -f "$srcdir/$cf_dir/modules" ; then 29430 29431 SHARED_LIB= 29432 Libs_To_Make= 29433 cf_awk_program= 29434 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5" 29435 then 29436 cf_awk_program="$cf_awk_program\ 29437/deprecated in ABI${cf_cv_abi_version}/ { next; }\ 29438{ sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\ 29439" 29440 fi 29441 29442 if test "x$WILDCARD_SYMS" = xno 29443 then 29444 cf_awk_program="$cf_awk_program\ 29445/[ ]_\\*;/ { skip=1; next; }\ 29446" 29447 fi 29448 29449 if test "x$cf_awk_program" != "x" 29450 then 29451 cat >>$cf_dir/Makefile <<CF_EOF 29452 29453# Generated by CF_LIB_RULES 29454resulting.map: $UNALTERED_SYMS 29455 $AWK 'BEGIN { skip = 1; last=""; } \ 29456$cf_awk_program \ 29457{ if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\ 29458 skip = 0; last = \$\$0; } \ 29459END { print last; }' < "$UNALTERED_SYMS" >\$@ 29460 29461distclean:: 29462 rm -f resulting.map 29463CF_EOF 29464 fi 29465 29466 for cf_item in $cf_LIST_MODELS 29467 do 29468 29469 case X$cf_item in 29470 (Xlibtool) 29471 cf_suffix='.la' 29472 cf_depsuf=$cf_suffix 29473 ;; 29474 (Xdebug) 29475 case "$cf_cv_system_name" in 29476 (*-msvc*) 29477 cf_suffix='_g.lib' 29478 ;; 29479 (*) 29480 cf_suffix='_g.a' 29481 ;; 29482 esac 29483 cf_depsuf=$cf_suffix 29484 ;; 29485 (Xprofile) 29486 case "$cf_cv_system_name" in 29487 (*-msvc*) 29488 cf_suffix='_p.lib' 29489 ;; 29490 (*) 29491 cf_suffix='_p.a' 29492 ;; 29493 esac 29494 cf_depsuf=$cf_suffix 29495 ;; 29496 (Xshared) 29497 case "$cf_cv_system_name" in 29498 (aix[5-7]*) 29499 cf_suffix='.so' 29500 cf_depsuf=$cf_suffix 29501 ;; 29502 (*-msvc*) 29503 cf_suffix='.dll' 29504 cf_depsuf='.dll.lib' 29505 ;; 29506 (cygwin*|msys*|mingw*) 29507 cf_suffix='.dll' 29508 cf_depsuf='.dll.a' 29509 ;; 29510 (darwin*) 29511 cf_suffix='.dylib' 29512 cf_depsuf=$cf_suffix 29513 ;; 29514 (hpux*) 29515 case "$target" in 29516 (ia64*) 29517 cf_suffix='.so' 29518 cf_depsuf=$cf_suffix 29519 ;; 29520 (*) 29521 cf_suffix='.sl' 29522 cf_depsuf=$cf_suffix 29523 ;; 29524 esac 29525 ;; 29526 (*) 29527 cf_suffix='.so' 29528 cf_depsuf=$cf_suffix 29529 ;; 29530 esac 29531 ;; 29532 (*) 29533 case "$target" in 29534 (*-msvc*) 29535 cf_suffix='.lib' 29536 ;; 29537 (*) 29538 cf_suffix='.a' 29539 ;; 29540 esac 29541 cf_depsuf=$cf_suffix 29542 ;; 29543 esac 29544 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 29545 then 29546 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}" 29547 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}" 29548 fi 29549 29550 if test "$cf_dir" = "c++" 29551 then 29552 29553cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 29554 29555eval cf_libname="\$${cf_map_lib_basename}_NAME" 29556 29557 else 29558 29559cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 29560 29561eval cf_libname="\$${cf_map_lib_basename}_NAME" 29562 29563 fi 29564 test -z "$cf_libname" && cf_libname="$cf_dir" 29565 if test "$cf_item" = shared ; then 29566 if test -n "${LIB_SUFFIX}" 29567 then 29568 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'` 29569 else 29570 cf_shared_suffix="$cf_suffix" 29571 fi 29572 if test "$cf_cv_do_symlinks" = yes ; then 29573 cf_version_name= 29574 29575 case "$cf_cv_shlib_version" in 29576 (rel) 29577 cf_version_name=REL_VERSION 29578 ;; 29579 (abi) 29580 cf_version_name=ABI_VERSION 29581 ;; 29582 esac 29583 29584 if test -n "$cf_version_name" 29585 then 29586 case "$cf_cv_system_name" in 29587 (darwin*) 29588 # "w", etc? 29589 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix" 29590 ;; 29591 (*) 29592 cf_suffix="$cf_suffix"'.${'$cf_version_name'}' 29593 ;; 29594 esac 29595 fi 29596 if test -n "${USE_LIB_SUFFIX}" 29597 then 29598 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'` 29599 else 29600 cf_shared_suffix="$cf_suffix" 29601 fi 29602 fi 29603 # cygwin needs import library, and has unique naming convention 29604 # use autodetected ${cf_prefix} for import lib and static lib, but 29605 # use 'cyg' prefix for shared lib. 29606 case "$cf_cv_shlib_version" in 29607 (cygdll) 29608 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 29609 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}" 29610 ;; 29611 (msysdll) 29612 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 29613 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}" 29614 ;; 29615 (mingw) 29616 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 29617 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}" 29618 ;; 29619 (msvcdll) 29620 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 29621 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}" 29622 ;; 29623 (*) 29624 cf_add_lib= 29625 ;; 29626 esac 29627 if test -n "$cf_add_lib" 29628 then 29629 Libs_To_Make="$Libs_To_Make $cf_add_lib" 29630 continue 29631 fi 29632 fi 29633 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}" 29634 Libs_To_Make="$Libs_To_Make $cf_add_lib" 29635 done 29636 29637 if test "$cf_dir" = ncurses ; then 29638 cf_subsets="$LIB_SUBSETS" 29639 cf_r_parts="$cf_subsets" 29640 cf_liblist="$Libs_To_Make" 29641 29642 while test -n "$cf_r_parts" 29643 do 29644 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'` 29645 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'` 29646 if test "$cf_l_parts" != "$cf_r_parts" ; then 29647 cf_add_lib= 29648 case "$cf_l_parts" in 29649 (*termlib*) 29650 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g` 29651 ;; 29652 (*ticlib*) 29653 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g` 29654 ;; 29655 (*) 29656 break 29657 ;; 29658 esac 29659 if test -n "$cf_add_lib"; then 29660 Libs_To_Make="$cf_add_lib $Libs_To_Make" 29661 fi 29662 else 29663 break 29664 fi 29665 done 29666 else 29667 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'` 29668 fi 29669 29670 if test "$cf_dir" = c++; then 29671 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then 29672 cf_list= 29673 for cf_item in $Libs_To_Make 29674 do 29675 case "$cf_item" in 29676 (*.a) 29677 ;; 29678 (*) 29679 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"` 29680 ;; 29681 esac 29682 for cf_test in $cf_list 29683 do 29684 if test "$cf_test" = "$cf_item" 29685 then 29686 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'` 29687 cf_item= 29688 break 29689 fi 29690 done 29691 test -n "$cf_item" && cf_list="$cf_list $cf_item" 29692 done 29693 Libs_To_Make="$cf_list" 29694 fi 29695 fi 29696 29697 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \ 29698 -e "s%@SHARED_LIB@%$SHARED_LIB%" \ 29699 "$cf_dir/Makefile" >$cf_dir/Makefile.out 29700 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile" 29701 29702 $AWK -f "$srcdir/mk-0th.awk" \ 29703 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \ 29704 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 29705 29706 for cf_subset in $cf_subsets 29707 do 29708 cf_subdirs= 29709 for cf_item in $cf_LIST_MODELS 29710 do 29711 29712 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})" 29713 29714cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 29715 29716 CXX_MODEL=$cf_ITEM 29717 if test "$CXX_MODEL" = SHARED; then 29718 case "$cf_cv_shlib_version" in 29719 (cygdll|msysdll|mingw|msvcdll) 29720 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6 29721 29722echo "${as_me:-configure}:29722: testing overriding CXX_MODEL to SHARED ..." 1>&5 29723 29724 with_shared_cxx=yes 29725 ;; 29726 (*) 29727 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL 29728 ;; 29729 esac 29730 fi 29731 29732 case X$cf_item in 29733 (Xlibtool) 29734 cf_suffix='.la' 29735 cf_depsuf=$cf_suffix 29736 ;; 29737 (Xdebug) 29738 case "$cf_cv_system_name" in 29739 (*-msvc*) 29740 cf_suffix='_g.lib' 29741 ;; 29742 (*) 29743 cf_suffix='_g.a' 29744 ;; 29745 esac 29746 cf_depsuf=$cf_suffix 29747 ;; 29748 (Xprofile) 29749 case "$cf_cv_system_name" in 29750 (*-msvc*) 29751 cf_suffix='_p.lib' 29752 ;; 29753 (*) 29754 cf_suffix='_p.a' 29755 ;; 29756 esac 29757 cf_depsuf=$cf_suffix 29758 ;; 29759 (Xshared) 29760 case "$cf_cv_system_name" in 29761 (aix[5-7]*) 29762 cf_suffix='.so' 29763 cf_depsuf=$cf_suffix 29764 ;; 29765 (*-msvc*) 29766 cf_suffix='.dll' 29767 cf_depsuf='.dll.lib' 29768 ;; 29769 (cygwin*|msys*|mingw*) 29770 cf_suffix='.dll' 29771 cf_depsuf='.dll.a' 29772 ;; 29773 (darwin*) 29774 cf_suffix='.dylib' 29775 cf_depsuf=$cf_suffix 29776 ;; 29777 (hpux*) 29778 case "$target" in 29779 (ia64*) 29780 cf_suffix='.so' 29781 cf_depsuf=$cf_suffix 29782 ;; 29783 (*) 29784 cf_suffix='.sl' 29785 cf_depsuf=$cf_suffix 29786 ;; 29787 esac 29788 ;; 29789 (*) 29790 cf_suffix='.so' 29791 cf_depsuf=$cf_suffix 29792 ;; 29793 esac 29794 ;; 29795 (*) 29796 case "$target" in 29797 (*-msvc*) 29798 cf_suffix='.lib' 29799 ;; 29800 (*) 29801 cf_suffix='.a' 29802 ;; 29803 esac 29804 cf_depsuf=$cf_suffix 29805 ;; 29806 esac 29807 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 29808 then 29809 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}" 29810 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}" 29811 fi 29812 29813 case $cf_item in 29814 (libtool) cf_subdir='obj_lo' ;; 29815 (normal) cf_subdir='objects' ;; 29816 (debug) cf_subdir='obj_g' ;; 29817 (profile) cf_subdir='obj_p' ;; 29818 (shared) 29819 case "$cf_cv_system_name" in 29820 (cygwin|msys) 29821 cf_subdir='objects' ;; 29822 (*) 29823 cf_subdir='obj_s' ;; 29824 esac 29825 esac 29826 29827 # Test for case where we build libtinfo with a different name. 29828 cf_libname=$cf_dir 29829 if test "$cf_dir" = ncurses ; then 29830 case "$cf_subset" in 29831 (*base*) 29832 cf_libname=${cf_libname}$USE_LIB_SUFFIX 29833 ;; 29834 (*termlib*) 29835 cf_libname=$TINFO_LIB_SUFFIX 29836 ;; 29837 (ticlib*) 29838 cf_libname=$TICS_LIB_SUFFIX 29839 ;; 29840 esac 29841 elif test "$cf_dir" = c++ ; then 29842 29843cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 29844 29845eval cf_libname="\$${cf_map_lib_basename}_NAME" 29846 29847 cf_libname=${cf_libname}$USE_LIB_SUFFIX 29848 else 29849 29850cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 29851 29852eval cf_libname="\$${cf_map_lib_basename}_NAME" 29853 29854 cf_libname=${cf_libname}$USE_LIB_SUFFIX 29855 fi 29856 if test -n "${USE_ARG_SUFFIX}" ; then 29857 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX 29858 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"` 29859 fi 29860 29861 # These dependencies really are for development, not 29862 # builds, but they are useful in porting, too. 29863 cf_depend="../include/ncurses_cfg.h" 29864 if test "$srcdir" = "."; then 29865 cf_reldir="." 29866 else 29867 cf_reldir="\${srcdir}" 29868 fi 29869 29870 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then 29871 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h" 29872 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then 29873 cf_depend="$cf_depend $cf_reldir/curses.priv.h" 29874 fi 29875 29876 cf_dir_suffix= 29877 old_cf_suffix="$cf_suffix" 29878 if test "$cf_cv_shlib_version_infix" = yes ; then 29879 if test -n "$USE_LIB_SUFFIX" ; then 29880 case "$USE_LIB_SUFFIX" in 29881 (tw*) 29882 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'` 29883 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'` 29884 cf_dir_suffix=tw$EXTRA_SUFFIX 29885 ;; 29886 (t*) 29887 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'` 29888 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'` 29889 cf_dir_suffix=t$EXTRA_SUFFIX 29890 ;; 29891 (w*) 29892 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'` 29893 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'` 29894 cf_dir_suffix=w$EXTRA_SUFFIX 29895 ;; 29896 (*) 29897 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'` 29898 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'` 29899 cf_dir_suffix=$EXTRA_SUFFIX 29900 ;; 29901 esac 29902 fi 29903 fi 29904 29905 $AWK -f "$srcdir/mk-1st.awk" \ 29906 name=${cf_libname}${cf_dir_suffix} \ 29907 traces=$LIB_TRACING \ 29908 MODEL=$cf_ITEM \ 29909 CXX_MODEL=$CXX_MODEL \ 29910 model=$cf_subdir \ 29911 prefix=$cf_prefix \ 29912 suffix=$cf_suffix \ 29913 subset=$cf_subset \ 29914 driver=$cf_cv_term_driver \ 29915 SymLink="$LN_S" \ 29916 TermlibRoot=$TINFO_NAME \ 29917 TermlibSuffix=$TINFO_SUFFIX \ 29918 ShlibVer=$cf_cv_shlib_version \ 29919 ShlibVerInfix=$cf_cv_shlib_version_infix \ 29920 ReLink=${cf_cv_do_relink:-no} \ 29921 ReRanlib=${cf_cv_do_reranlib:-yes} \ 29922 DoLinks=$cf_cv_do_symlinks \ 29923 rmSoLocs=$cf_cv_rm_so_locs \ 29924 ldconfig="$LDCONFIG" \ 29925 overwrite=$WITH_OVERWRITE \ 29926 depend="$cf_depend" \ 29927 host="$host" \ 29928 libtool_version="$LIBTOOL_VERSION" \ 29929 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 29930 29931 cf_suffix="$old_cf_suffix" 29932 29933 for cf_subdir2 in $cf_subdirs lib 29934 do 29935 test "$cf_subdir" = "$cf_subdir2" && break 29936 done 29937 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \ 29938 $AWK -f "$srcdir/mk-2nd.awk" \ 29939 name=$cf_dir \ 29940 traces=$LIB_TRACING \ 29941 MODEL=$cf_ITEM \ 29942 model=$cf_subdir \ 29943 subset=$cf_subset \ 29944 srcdir=$srcdir \ 29945 echo=$WITH_ECHO \ 29946 crenames=$cf_cv_prog_CC_c_o \ 29947 cxxrenames=$cf_cv_prog_CXX_c_o \ 29948 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 29949 cf_subdirs="$cf_subdirs $cf_subdir" 29950 done 29951 done 29952 fi 29953 29954 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile 29955done 29956 29957for cf_dir in $SRC_SUBDIRS 29958do 29959 if test ! -d "$srcdir/$cf_dir" ; then 29960 continue 29961 fi 29962 29963 if test -f "$cf_dir/Makefile" ; then 29964 case "$cf_dir" in 29965 (Ada95) 29966 echo 'libs \' >> Makefile 29967 echo 'install.libs \' >> Makefile 29968 echo 'uninstall.libs ::' >> Makefile 29969 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile 29970 ;; 29971 esac 29972 fi 29973 29974 if test -f "$srcdir/$cf_dir/modules" ; then 29975 echo >> Makefile 29976 if test -f "$srcdir/$cf_dir/headers" ; then 29977cat >> Makefile <<CF_EOF 29978install.includes \\ 29979uninstall.includes \\ 29980CF_EOF 29981 fi 29982if test "$cf_dir" != "c++" ; then 29983echo 'lint \' >> Makefile 29984fi 29985cat >> Makefile <<CF_EOF 29986libs \\ 29987lintlib \\ 29988install.libs \\ 29989uninstall.libs \\ 29990install.$cf_dir \\ 29991uninstall.$cf_dir :: 29992 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) 29993CF_EOF 29994 elif test -f "$srcdir/$cf_dir/headers" ; then 29995cat >> Makefile <<CF_EOF 29996 29997libs \\ 29998install.libs \\ 29999uninstall.libs \\ 30000install.includes \\ 30001uninstall.includes :: 30002 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) 30003CF_EOF 30004fi 30005done 30006 30007if test "x$cf_with_db_install" = xyes; then 30008cat >> Makefile <<CF_EOF 30009 30010install.libs uninstall.libs \\ 30011install.data uninstall.data :: 30012$MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) 30013CF_EOF 30014else 30015cat >> Makefile <<CF_EOF 30016 30017install.libs uninstall.libs :: 30018 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) 30019CF_EOF 30020fi 30021 30022if test "x$cf_with_manpages" = xyes; then 30023cat >> Makefile <<CF_EOF 30024 30025install.man \\ 30026uninstall.man :: 30027 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ ) 30028CF_EOF 30029fi 30030 30031cat >> Makefile <<CF_EOF 30032 30033distclean :: 30034 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h 30035 rm -f headers.sh headers.sed mk_shared_lib.sh 30036 rm -f edit_man.* man_alias.* 30037 rm -rf \${DIRS_TO_MAKE} 30038CF_EOF 30039 30040# Special case: tack's manpage lives in its own directory. 30041if test "x$cf_with_manpages" = xyes; then 30042if test "x$cf_with_tack" = "xyes"; then 30043cat >> Makefile <<CF_EOF 30044 30045install.man \\ 30046uninstall.man :: 30047 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ ) 30048CF_EOF 30049fi 30050fi 30051 30052rm -f headers.sed headers.sh 30053 30054echo creating headers.sh 30055cat >headers.sh <<CF_EOF 30056#! $SHELL 30057# This shell script is generated by the 'configure' script. It is invoked in a 30058# subdirectory of the build tree. It generates a sed-script in the parent 30059# directory that is used to adjust includes for header files that reside in a 30060# subdirectory of /usr/include, etc. 30061PRG="" 30062while test \$# != 3 30063do 30064PRG="\$PRG \$1"; shift 30065done 30066DST=\$1 30067REF=\$2 30068SRC=\$3 30069TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$ 30070TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$ 30071echo installing \$SRC in \$DST 30072CF_EOF 30073 30074if test "$WITH_CURSES_H" = yes; then 30075 cat >>headers.sh <<CF_EOF 30076case \$DST in 30077(/*/include/*) 30078 END=\`basename \$DST\` 30079 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\` 30080 do 30081 NAME=\`basename \$i\` 30082 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 30083 done 30084 ;; 30085(*) 30086 echo "" >> \$TMPSED 30087 ;; 30088esac 30089CF_EOF 30090 30091else 30092 cat >>headers.sh <<CF_EOF 30093case \$DST in 30094(/*/include/*) 30095 END=\`basename \$DST\` 30096 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\` 30097 do 30098 NAME=\`basename \$i\` 30099 if test "\$NAME" = "curses.h" 30100 then 30101 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 30102 NAME=ncurses.h 30103 fi 30104 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 30105 done 30106 ;; 30107(*) 30108 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 30109 ;; 30110esac 30111CF_EOF 30112fi 30113cat >>headers.sh <<CF_EOF 30114rm -f \$TMPSRC 30115sed -f \$TMPSED \$SRC > \$TMPSRC 30116NAME=\`basename \$SRC\` 30117CF_EOF 30118if test "$WITH_CURSES_H" != yes; then 30119 cat >>headers.sh <<CF_EOF 30120test "\$NAME" = "curses.h" && NAME=ncurses.h 30121CF_EOF 30122fi 30123cat >>headers.sh <<CF_EOF 30124# Just in case someone gzip'd manpages, remove the conflicting copy. 30125test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz 30126 30127eval \$PRG \$TMPSRC \$DST/\$NAME 30128rm -f \$TMPSRC \$TMPSED 30129CF_EOF 30130 30131chmod 0755 headers.sh 30132 30133for cf_dir in $SRC_SUBDIRS 30134do 30135 if test ! -d "$srcdir/$cf_dir" ; then 30136 continue 30137 fi 30138 30139 if test -f "$srcdir/$cf_dir/headers" ; then 30140 $AWK -f "$srcdir/mk-hdr.awk" \ 30141 subset="$LIB_SUBSETS" \ 30142 compat="$WITH_CURSES_H" \ 30143 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile 30144 fi 30145 30146 if test -f "$srcdir/$cf_dir/modules" ; then 30147 if test "$cf_dir" != "c++" ; then 30148 cat >>$cf_dir/Makefile <<"CF_EOF" 30149depend : ${AUTO_SRC} 30150 makedepend -- ${CPPFLAGS} -- ${C_SRC} 30151 30152# DO NOT DELETE THIS LINE -- make depend depends on it. 30153CF_EOF 30154 fi 30155 fi 30156done 30157 30158if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 30159if test -z "$USE_OLD_MAKERULES" ; then 30160 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile 30161fi 30162fi 30163 ;; 30164 esac 30165done 30166EOF 30167 30168cat >>"$CONFIG_STATUS" <<\EOF 30169 30170{ (exit 0); exit 0; } 30171EOF 30172chmod +x "$CONFIG_STATUS" 30173ac_clean_files=$ac_clean_files_save 30174 30175# configure is writing to config.log, and then calls config.status. 30176# config.status does its own redirection, appending to config.log. 30177# Unfortunately, on DOS this fails, as config.log is still kept open 30178# by configure, so config.status won't be able to write to it; its 30179# output is simply discarded. So we exec the FD to /dev/null, 30180# effectively closing config.log, so it can be properly (re)opened and 30181# appended to by config.status. When coming back to configure, we 30182# need to make the FD available again. 30183if test "$no_create" != yes; then 30184 ac_cs_success=: 30185 exec 5>/dev/null 30186 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 30187 exec 5>>config.log 30188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30189 # would make configure fail if this is the last instruction. 30190 "$ac_cs_success" || { (exit 1); exit 1; } 30191fi 30192${MAKE:-make} preinstall 30193