1#! /bin/sh 2# From configure.in Revision: 1.736 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20210509. 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 root use of ncurses environment variables 787 --disable-root-access restrict file-access when running setuid 788 --enable-symlinks make tic use symbolic links not hard links 789 --enable-broken_linker compile with broken-linker support code 790 --enable-bsdpad recognize BSD-style prefix padding 791 --enable-widec compile with wide-char/UTF-8 code 792 --disable-lp64 allow chtype to be long (ignore _LP64) 793 --disable-largefile omit support for large files 794 --disable-tparm-varargs compile tparm() without varargs interface 795 --disable-tic-depends link tic library without explicit dependency on ncurses library 796 --enable-wattr-macros enable wattr* macros 797 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt) 798 --with-bool=TYPE override fallback type of bool variable 799 --with-caps=alt compile with alternate Caps file 800 --with-chtype=TYPE override type of chtype 801 --with-ospeed=TYPE override type of ospeed variable 802 --with-mmask-t=TYPE override type of mmask_t 803 --with-ccharw-max=XXX override size CCHARW_MAX 804 --enable-signed-char compile using signed Boolean's in term.h 805 --with-tparm-arg=TYPE override parameter type of tparm 806 --with-rcs-ids compile-in RCS identifiers 807Options to Specify How Manpages are Installed: 808 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and 809 optionally formatted/catonly, e.g., gzip,formatted 810 --with-manpage-renames specify manpage-renaming 811 --with-manpage-aliases specify manpage-aliases using .so 812 --with-manpage-symlinks specify manpage-aliases using symlinks 813 --with-manpage-tbl specify manpage processing with tbl 814Extensions: 815 --disable-ext-funcs disable function-extensions 816 --enable-sp-funcs enable SCREEN-extensions 817 --enable-term-driver enable terminal-driver 818 --enable-const compile with extra/non-standard const 819 --enable-ext-colors compile for 256-color support 820 --enable-ext-mouse compile for extended mouse-encoding 821 --enable-ext-putwin compile with extended putwin/screendump 822 --enable-no-padding compile with $NCURSES_NO_PADDING code 823 --enable-sigwinch compile with SIGWINCH handler 824 --enable-tcap-names compile with user-definable terminal capabilities 825Reentrant Code: 826 --with-pthread use POSIX thread library 827 --enable-pthreads-eintr enable EINTR in wgetch with pthreads 828 --enable-weak-symbols enable weak-symbols for pthreads 829 --enable-reentrant compile with reentrant code 830 --enable-opaque-curses make curses WINDOW, etc., "opaque" 831 --enable-opaque-form make form-library structures "opaque" 832 --enable-opaque-menu make menu-library structures "opaque" 833 --enable-opaque-panel make panel-library structures "opaque" 834 --with-wrap-prefix=XXX override prefix used for public variables 835Development Code: 836 --without-develop disable development options 837 --enable-hard-tabs compile with hard-tabs code 838 --enable-xmc-glitch compile with support for xmc (magic-cookie) 839Experimental Code: 840 --disable-assumed-color do not assume anything about default-colors 841 --disable-hashmap compile without hashmap scrolling-optimization 842 --enable-colorfgbg compile-in experimental $COLORFGBG code 843 --enable-fvisibility compile with -fvisibility=hidden 844 --enable-interop compile-in interop bindings 845 --enable-safe-sprintf compile with experimental safe-sprintf code 846 --disable-scroll-hints compile without scroll-hints code 847 --enable-wgetch-events compile with wgetch-events code 848 --enable-exp-win32 compile with experimental-Windows driver 849Testing/development Options: 850 --disable-echo do not display "compiling" commands 851 --disable-stripping do not strip (debug info) installed executables 852 --enable-warnings test: turn on gcc compiler warnings 853 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics 854 --enable-string-hacks work around bogus compiler/loader warnings 855 --enable-assertions test: turn on generation of assertion code 856 --with-dmalloc test: use Gray Watson's dmalloc library 857 --with-dbmalloc test: use Conor Cahill's dbmalloc library 858 --with-valgrind test: use valgrind 859 --disable-leaks test: free permanent memory, analyze leaks 860 --enable-expanded test: generate functions for certain macros 861 --disable-macros test: use functions rather than macros 862 --with-trace test: add trace() function to all models of ncurses 863 --disable-gnat-projects test: disable GNAT projects even if usable 864Ada Binding Options: 865 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake) 866 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude) 867 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib) 868 --with-ada-sharedlib=soname build shared-library (requires GNAT projects) 869 --with-ada-libname=XXX override default Ada library-name 870 --with-form-libname=XXX override form basename of library 871 --with-menu-libname=XXX override menu basename of library 872 --with-panel-libname=XXX override panel basename of library 873 --with-cxx-libname=XXX override ncurses++ basename of library 874 875Some influential environment variables: 876 CC C compiler command 877 CFLAGS C compiler flags 878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 879 nonstandard directory <lib dir> 880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 881 headers in a nonstandard directory <include dir> 882 CPP C preprocessor 883 CXX C++ compiler command 884 CXXFLAGS C++ compiler flags 885 CXXCPP C++ preprocessor 886 887Use these variables to override the choices made by `configure' or to help 888it to find libraries and programs with nonstandard names/locations. 889 890EOF 891fi 892 893if test "$ac_init_help" = "recursive"; then 894 # If there are subdirs, report their specific --help. 895 ac_popdir=`pwd` 896 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 897 cd "$ac_subdir" 898 # A "../" for each directory in /$ac_subdir. 899 ac_dots=`echo "$ac_subdir" | 900 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 901 902 case "$srcdir" in 903 .) # No --srcdir option. We are building in place. 904 ac_sub_srcdir="$srcdir" ;; 905 [\\/]* | ?:[\\/]* ) # Absolute path. 906 ac_sub_srcdir="$srcdir/$ac_subdir" ;; 907 *) # Relative path. 908 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;; 909 esac 910 911 # Check for guested configure; otherwise get Cygnus style configure. 912 if test -f "$ac_sub_srcdir/configure.gnu"; then 913 echo 914 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive 915 elif test -f "$ac_sub_srcdir/configure"; then 916 echo 917 $SHELL "$ac_sub_srcdir/configure" --help=recursive 918 elif test -f "$ac_sub_srcdir/configure.ac" || 919 test -f "$ac_sub_srcdir/configure.in"; then 920 echo 921 "$ac_configure" --help 922 else 923 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 924 fi 925 cd "$ac_popdir" 926 done 927fi 928 929test -n "$ac_init_help" && exit 0 930if "$ac_init_version"; then 931 cat <<\EOF 932 933Copyright 2003-2020,2021 Thomas E. Dickey 934Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 935Free Software Foundation, Inc. 936This configure script is free software; the Free Software Foundation 937gives unlimited permission to copy, distribute and modify it. 938EOF 939 exit 0 940fi 941exec 5>config.log 942cat >&5 <<EOF 943This file contains any messages produced by compilers while 944running configure, to aid debugging if configure makes a mistake. 945 946It was created by $as_me, which was 947generated by GNU Autoconf 2.52.20210509. Invocation command line was 948 949 $ $0 $@ 950 951EOF 952{ 953cat <<_ASUNAME 954## ---------- ## 955## Platform. ## 956## ---------- ## 957 958hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 959uname -m = `(uname -m) 2>/dev/null || echo unknown` 960uname -r = `(uname -r) 2>/dev/null || echo unknown` 961uname -s = `(uname -s) 2>/dev/null || echo unknown` 962uname -v = `(uname -v) 2>/dev/null || echo unknown` 963 964/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 965/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 966 967/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 968/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 969/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 970hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 971/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 972/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 973/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 974 975PATH = $PATH 976 977_ASUNAME 978} >&5 979 980cat >&5 <<EOF 981## ------------ ## 982## Core tests. ## 983## ------------ ## 984 985EOF 986 987# Keep a trace of the command line. 988# Strip out --no-create and --no-recursion so they do not pile up. 989# Also quote any args containing shell meta-characters. 990ac_configure_args= 991ac_sep= 992for ac_arg 993do 994 case "$ac_arg" in 995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 996 | --no-cr | --no-c) ;; 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 1001 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1002 ac_sep=" " ;; 1003 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 1004 ac_sep=" " ;; 1005 esac 1006 # Get rid of the leading space. 1007done 1008 1009# When interrupted or exit'd, cleanup temporary files, and complete 1010# config.log. We remove comments because anyway the quotes in there 1011# would cause problems or look ugly. 1012trap 'exit_status=$? 1013 # Save into config.log some information that might help in debugging. 1014 echo >&5 1015 echo "## ----------------- ##" >&5 1016 echo "## Cache variables. ##" >&5 1017 echo "## ----------------- ##" >&5 1018 echo >&5 1019 # The following way of writing the cache mishandles newlines in values, 1020{ 1021 (set) 2>&1 | 1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1023 *ac_space=\ *) 1024 sed -n \ 1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1027 ;; 1028 *) 1029 sed -n \ 1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1031 ;; 1032 esac; 1033} >&5 1034 sed "/^$/d" confdefs.h >conftest.log 1035 if test -s conftest.log; then 1036 echo >&5 1037 echo "## ------------ ##" >&5 1038 echo "## confdefs.h. ##" >&5 1039 echo "## ------------ ##" >&5 1040 echo >&5 1041 cat conftest.log >&5 1042 fi 1043 (echo; echo) >&5 1044 test "$ac_signal" != 0 && 1045 echo "$as_me: caught signal $ac_signal" >&5 1046 echo "$as_me: exit $exit_status" >&5 1047 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1048 exit $exit_status 1049 ' 0 1050for ac_signal in 1 2 13 15; do 1051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal" 1052done 1053ac_signal=0 1054 1055# confdefs.h avoids OS command line length limits that DEFS can exceed. 1056rm -rf conftest* confdefs.h 1057# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1058echo >confdefs.h 1059 1060# Let the site file select an alternate cache file if it wants to. 1061# Prefer explicitly selected file to automatically selected ones. 1062if test -z "$CONFIG_SITE"; then 1063 if test "x$prefix" != xNONE; then 1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1065 else 1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1067 fi 1068fi 1069for ac_site_file in $CONFIG_SITE; do 1070 if test -r "$ac_site_file"; then 1071 { echo "$as_me:1071: loading site script $ac_site_file" >&5 1072echo "$as_me: loading site script $ac_site_file" >&6;} 1073 cat "$ac_site_file" >&5 1074 . "$ac_site_file" 1075 fi 1076done 1077 1078if test -r "$cache_file"; then 1079 # Some versions of bash will fail to source /dev/null (special 1080 # files actually), so we avoid doing that. 1081 if test -f "$cache_file"; then 1082 { echo "$as_me:1082: loading cache $cache_file" >&5 1083echo "$as_me: loading cache $cache_file" >&6;} 1084 case $cache_file in 1085 [\\/]* | ?:[\\/]* ) . $cache_file;; 1086 *) . ./$cache_file;; 1087 esac 1088 fi 1089else 1090 { echo "$as_me:1090: creating cache $cache_file" >&5 1091echo "$as_me: creating cache $cache_file" >&6;} 1092 >$cache_file 1093fi 1094 1095# Check that the precious variables saved in the cache have kept the same 1096# value. 1097ac_cache_corrupted=false 1098for ac_var in `(set) 2>&1 | 1099 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1101 eval ac_new_set=\$ac_env_${ac_var}_set 1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1103 eval ac_new_val="\$ac_env_${ac_var}_value" 1104 case "$ac_old_set,$ac_new_set" in 1105 set,) 1106 { echo "$as_me:1106: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1107echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1108 ac_cache_corrupted=: ;; 1109 ,set) 1110 { echo "$as_me:1110: error: \`$ac_var' was not set in the previous run" >&5 1111echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1112 ac_cache_corrupted=: ;; 1113 ,);; 1114 *) 1115 if test "x$ac_old_val" != "x$ac_new_val"; then 1116 { echo "$as_me:1116: error: \`$ac_var' has changed since the previous run:" >&5 1117echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1118 { echo "$as_me:1118: former value: $ac_old_val" >&5 1119echo "$as_me: former value: $ac_old_val" >&2;} 1120 { echo "$as_me:1120: current value: $ac_new_val" >&5 1121echo "$as_me: current value: $ac_new_val" >&2;} 1122 ac_cache_corrupted=: 1123 fi;; 1124 esac 1125 # Pass precious variables to config.status. It doesn't matter if 1126 # we pass some twice (in addition to the command line arguments). 1127 if test "$ac_new_set" = set; then 1128 case "$ac_new_val" in 1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1131 ac_configure_args="$ac_configure_args '$ac_arg'" 1132 ;; 1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1134 ;; 1135 esac 1136 fi 1137done 1138if "$ac_cache_corrupted"; then 1139 { echo "$as_me:1139: error: changes in the environment can compromise the build" >&5 1140echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1141 { { echo "$as_me:1141: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1142echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1143 { (exit 1); exit 1; }; } 1144fi 1145 1146ac_ext=c 1147ac_cpp='$CPP $CPPFLAGS' 1148ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1149ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1150ac_compiler_gnu=$ac_cv_c_compiler_gnu 1151ac_main_return="return" 1152 1153case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 1154 *c*,-n*) ECHO_N= 1155 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 1156 ECHO_T=' ' 1157 ;; 1158 *c*,* ) ECHO_N=-n 1159 ECHO_C= 1160 ECHO_T= 1161 ;; 1162 *) ECHO_N= 1163 ECHO_C='\c' 1164 ECHO_T= 1165 ;; 1166esac 1167echo "#! $SHELL" >conftest.sh 1168echo "exit 0" >>conftest.sh 1169chmod +x conftest.sh 1170if { (echo "$as_me:1170: PATH=\".;.\"; conftest.sh") >&5 1171 (PATH=".;."; conftest.sh) 2>&5 1172 ac_status=$? 1173 echo "$as_me:1173: \$? = $ac_status" >&5 1174 (exit "$ac_status"); }; then 1175 ac_path_separator=';' 1176else 1177 ac_path_separator=: 1178fi 1179PATH_SEPARATOR="$ac_path_separator" 1180rm -f conftest.sh 1181 1182ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin" 1183 1184top_builddir=`pwd` 1185 1186for ac_prog in ggrep grep 1187do 1188 # Extract the first word of "$ac_prog", so it can be a program name with args. 1189set dummy $ac_prog; ac_word=$2 1190echo "$as_me:1190: checking for $ac_word" >&5 1191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1192if test "${ac_cv_prog_GREP+set}" = set; then 1193 echo $ECHO_N "(cached) $ECHO_C" >&6 1194else 1195 if test -n "$GREP"; then 1196 ac_cv_prog_GREP="$GREP" # Let the user override the test. 1197else 1198 ac_save_IFS=$IFS; IFS=$ac_path_separator 1199ac_dummy="$PATH" 1200for ac_dir in $ac_dummy; do 1201 IFS=$ac_save_IFS 1202 test -z "$ac_dir" && ac_dir=. 1203 $as_executable_p "$ac_dir/$ac_word" || continue 1204ac_cv_prog_GREP="$ac_prog" 1205echo "$as_me:1205: found $ac_dir/$ac_word" >&5 1206break 1207done 1208 1209fi 1210fi 1211GREP=$ac_cv_prog_GREP 1212if test -n "$GREP"; then 1213 echo "$as_me:1213: result: $GREP" >&5 1214echo "${ECHO_T}$GREP" >&6 1215else 1216 echo "$as_me:1216: result: no" >&5 1217echo "${ECHO_T}no" >&6 1218fi 1219 1220 test -n "$GREP" && break 1221done 1222test -n "$GREP" || GREP=": " 1223 1224echo "$as_me:1224: checking for egrep" >&5 1225echo $ECHO_N "checking for egrep... $ECHO_C" >&6 1226if test "${ac_cv_path_EGREP+set}" = set; then 1227 echo $ECHO_N "(cached) $ECHO_C" >&6 1228else 1229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 1230 then ac_cv_path_EGREP="$GREP -E" 1231 else 1232 for ac_prog in gegrep egrep 1233do 1234 # Extract the first word of "$ac_prog", so it can be a program name with args. 1235set dummy $ac_prog; ac_word=$2 1236echo "$as_me:1236: checking for $ac_word" >&5 1237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1238if test "${ac_cv_path_EGREP+set}" = set; then 1239 echo $ECHO_N "(cached) $ECHO_C" >&6 1240else 1241 case $EGREP in 1242 [\\/]* | ?:[\\/]*) 1243 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 1244 ;; 1245 *) 1246 ac_save_IFS=$IFS; IFS=$ac_path_separator 1247ac_dummy="$PATH" 1248for ac_dir in $ac_dummy; do 1249 IFS=$ac_save_IFS 1250 test -z "$ac_dir" && ac_dir=. 1251 if $as_executable_p "$ac_dir/$ac_word"; then 1252 ac_cv_path_EGREP="$ac_dir/$ac_word" 1253 echo "$as_me:1253: found $ac_dir/$ac_word" >&5 1254 break 1255fi 1256done 1257 1258 ;; 1259esac 1260fi 1261EGREP=$ac_cv_path_EGREP 1262 1263if test -n "$EGREP"; then 1264 echo "$as_me:1264: result: $EGREP" >&5 1265echo "${ECHO_T}$EGREP" >&6 1266else 1267 echo "$as_me:1267: result: no" >&5 1268echo "${ECHO_T}no" >&6 1269fi 1270 1271 test -n "$EGREP" && break 1272done 1273test -n "$EGREP" || EGREP=": " 1274 1275 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1275: error: cannot find workable egrep" >&5 1276echo "$as_me: error: cannot find workable egrep" >&2;} 1277 { (exit 1); exit 1; }; } 1278 fi 1279fi 1280echo "$as_me:1280: result: $ac_cv_path_EGREP" >&5 1281echo "${ECHO_T}$ac_cv_path_EGREP" >&6 1282 EGREP="$ac_cv_path_EGREP" 1283 1284NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1285NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1286NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`" 1287cf_cv_abi_version=${NCURSES_MAJOR} 1288cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR} 1289cf_cv_timestamp=`date` 1290echo "$as_me:1290: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5 1291echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6 1292 1293if test -f "$srcdir/VERSION" ; then 1294 echo "$as_me:1294: checking for package version" >&5 1295echo $ECHO_N "checking for package version... $ECHO_C" >&6 1296 1297 # if there are not enough fields, cut returns the last one... 1298 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1` 1299 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2` 1300 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3` 1301 1302 # this is how CF_BUNDLED_INTL uses $VERSION: 1303 VERSION="$cf_field1" 1304 1305 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'` 1306 test -z "$VERSION_MAJOR" && { { echo "$as_me:1306: error: missing major-version" >&5 1307echo "$as_me: error: missing major-version" >&2;} 1308 { (exit 1); exit 1; }; } 1309 1310 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'` 1311 test -z "$VERSION_MINOR" && { { echo "$as_me:1311: error: missing minor-version" >&5 1312echo "$as_me: error: missing minor-version" >&2;} 1313 { (exit 1); exit 1; }; } 1314 1315 echo "$as_me:1315: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5 1316echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6 1317 1318 echo "$as_me:1318: checking for package patch date" >&5 1319echo $ECHO_N "checking for package patch date... $ECHO_C" >&6 1320 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'` 1321 case .$VERSION_PATCH in 1322 (.) 1323 { { echo "$as_me:1323: error: missing patch-date $VERSION_PATCH" >&5 1324echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;} 1325 { (exit 1); exit 1; }; } 1326 ;; 1327 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) 1328 ;; 1329 (*) 1330 { { echo "$as_me:1330: error: illegal patch-date $VERSION_PATCH" >&5 1331echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;} 1332 { (exit 1); exit 1; }; } 1333 ;; 1334 esac 1335 echo "$as_me:1335: result: $VERSION_PATCH" >&5 1336echo "${ECHO_T}$VERSION_PATCH" >&6 1337else 1338 { { echo "$as_me:1338: error: did not find $srcdir/VERSION" >&5 1339echo "$as_me: error: did not find $srcdir/VERSION" >&2;} 1340 { (exit 1); exit 1; }; } 1341fi 1342 1343# show the actual data that we have for versions: 1344test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6 1345 1346echo "${as_me:-configure}:1346: testing ABI VERSION $VERSION ..." 1>&5 1347 1348test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6 1349 1350echo "${as_me:-configure}:1350: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5 1351 1352test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6 1353 1354echo "${as_me:-configure}:1354: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5 1355 1356test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6 1357 1358echo "${as_me:-configure}:1358: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5 1359 1360 cf_PACKAGE=NCURSES 1361 PACKAGE=ncurses 1362 1363cat >>confdefs.h <<EOF 1364#define PACKAGE "$PACKAGE" 1365EOF 1366 1367cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 1368 1369 cat >>confdefs.h <<EOF 1370#define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}" 1371EOF 1372 1373 cat >>confdefs.h <<EOF 1374#define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH} 1375EOF 1376 1377test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0 1378 1379# Check whether --with-rel-version or --without-rel-version was given. 1380if test "${with_rel_version+set}" = set; then 1381 withval="$with_rel_version" 1382 { echo "$as_me:1382: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5 1383echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;} 1384 cf_cv_rel_version=$withval 1385fi; 1386 1387 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'` 1388 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'` 1389 1390if test -n "$NCURSES_MAJOR" ; then 1391 case $NCURSES_MAJOR in 1392 ([0-9]*) 1393 ;; 1394 (*) 1395 { { echo "$as_me:1395: error: Release major-version is not a number: $NCURSES_MAJOR" >&5 1396echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;} 1397 { (exit 1); exit 1; }; } 1398 ;; 1399 esac 1400else 1401 { { echo "$as_me:1401: error: Release major-version value is empty" >&5 1402echo "$as_me: error: Release major-version value is empty" >&2;} 1403 { (exit 1); exit 1; }; } 1404fi 1405 1406if test -n "$NCURSES_MINOR" ; then 1407 case $NCURSES_MINOR in 1408 ([0-9]*) 1409 ;; 1410 (*) 1411 { { echo "$as_me:1411: error: Release minor-version is not a number: $NCURSES_MINOR" >&5 1412echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;} 1413 { (exit 1); exit 1; }; } 1414 ;; 1415 esac 1416else 1417 { { echo "$as_me:1417: error: Release minor-version value is empty" >&5 1418echo "$as_me: error: Release minor-version value is empty" >&2;} 1419 { (exit 1); exit 1; }; } 1420fi 1421 1422test -z "$cf_cv_abi_version" && cf_cv_abi_version=0 1423 1424# Check whether --with-abi-version or --without-abi-version was given. 1425if test "${with_abi_version+set}" = set; then 1426 withval="$with_abi_version" 1427 1428 if test "x$cf_cv_abi_version" != "x$withval" 1429 then 1430 { echo "$as_me:1430: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5 1431echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;} 1432 case "$cf_cv_rel_version" in 1433 (5.*) 1434 cf_cv_rel_version=$withval.0 1435 ;; 1436 (6.*) 1437 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release 1438 ;; 1439 esac 1440 fi 1441 cf_cv_abi_version=$withval 1442fi; 1443 1444if test -n "$cf_cv_abi_version" ; then 1445 case $cf_cv_abi_version in 1446 ([0-9]*) 1447 ;; 1448 (*) 1449 { { echo "$as_me:1449: error: ABI version is not a number: $cf_cv_abi_version" >&5 1450echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;} 1451 { (exit 1); exit 1; }; } 1452 ;; 1453 esac 1454else 1455 { { echo "$as_me:1455: error: ABI version value is empty" >&5 1456echo "$as_me: error: ABI version value is empty" >&2;} 1457 { (exit 1); exit 1; }; } 1458fi 1459 1460if test "x$cf_cv_abi_version" != "x$with_abi_version" 1461then 1462 case "$cf_cv_rel_version" in 1463 (5.*) 1464 cf_cv_rel_version=$with_abi_version.0 1465 ;; 1466 esac 1467fi 1468 1469ac_aux_dir= 1470for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1471 if test -f "$ac_dir/install-sh"; then 1472 ac_aux_dir=$ac_dir 1473 ac_install_sh="$ac_aux_dir/install-sh -c" 1474 break 1475 elif test -f "$ac_dir/install.sh"; then 1476 ac_aux_dir=$ac_dir 1477 ac_install_sh="$ac_aux_dir/install.sh -c" 1478 break 1479 elif test -f "$ac_dir/shtool"; then 1480 ac_aux_dir=$ac_dir 1481 ac_install_sh="$ac_aux_dir/shtool install -c" 1482 break 1483 fi 1484done 1485if test -z "$ac_aux_dir"; then 1486 { { echo "$as_me:1486: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1487echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1488 { (exit 1); exit 1; }; } 1489fi 1490ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1491ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1492ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1493 1494# Make sure we can run config.sub. 1495$ac_config_sub sun4 >/dev/null 2>&1 || 1496 { { echo "$as_me:1496: error: cannot run $ac_config_sub" >&5 1497echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1498 { (exit 1); exit 1; }; } 1499 1500echo "$as_me:1500: checking build system type" >&5 1501echo $ECHO_N "checking build system type... $ECHO_C" >&6 1502if test "${ac_cv_build+set}" = set; then 1503 echo $ECHO_N "(cached) $ECHO_C" >&6 1504else 1505 ac_cv_build_alias=$build_alias 1506test -z "$ac_cv_build_alias" && 1507 ac_cv_build_alias=`$ac_config_guess` 1508test -z "$ac_cv_build_alias" && 1509 { { echo "$as_me:1509: error: cannot guess build type; you must specify one" >&5 1510echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1511 { (exit 1); exit 1; }; } 1512ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || 1513 { { echo "$as_me:1513: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1514echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1515 { (exit 1); exit 1; }; } 1516 1517fi 1518echo "$as_me:1518: result: $ac_cv_build" >&5 1519echo "${ECHO_T}$ac_cv_build" >&6 1520build=$ac_cv_build 1521build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1522build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1523build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1524 1525echo "$as_me:1525: checking host system type" >&5 1526echo $ECHO_N "checking host system type... $ECHO_C" >&6 1527if test "${ac_cv_host+set}" = set; then 1528 echo $ECHO_N "(cached) $ECHO_C" >&6 1529else 1530 ac_cv_host_alias=$host_alias 1531test -z "$ac_cv_host_alias" && 1532 ac_cv_host_alias=$ac_cv_build_alias 1533ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || 1534 { { echo "$as_me:1534: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1535echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1536 { (exit 1); exit 1; }; } 1537 1538fi 1539echo "$as_me:1539: result: $ac_cv_host" >&5 1540echo "${ECHO_T}$ac_cv_host" >&6 1541host=$ac_cv_host 1542host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1543host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1544host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1545 1546if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then 1547 echo "$as_me:1547: checking target system type" >&5 1548echo $ECHO_N "checking target system type... $ECHO_C" >&6 1549if test "${ac_cv_target+set}" = set; then 1550 echo $ECHO_N "(cached) $ECHO_C" >&6 1551else 1552 ac_cv_target_alias=$target_alias 1553test "x$ac_cv_target_alias" = "x" && 1554 ac_cv_target_alias=$ac_cv_host_alias 1555ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` || 1556 { { echo "$as_me:1556: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1557echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1558 { (exit 1); exit 1; }; } 1559 1560fi 1561echo "$as_me:1561: result: $ac_cv_target" >&5 1562echo "${ECHO_T}$ac_cv_target" >&6 1563target=$ac_cv_target 1564target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1565target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1566target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1567 1568# The aliases save the names the user supplied, while $host etc. 1569# will get canonicalized. 1570test -n "$target_alias" && 1571 test "$program_prefix$program_suffix$program_transform_name" = \ 1572 NONENONEs,x,x, && 1573 program_prefix=${target_alias}- 1574 system_name="$host_os" 1575else 1576 system_name="`(uname -s -r) 2>/dev/null`" 1577 if test -z "$system_name" ; then 1578 system_name="`(hostname) 2>/dev/null`" 1579 fi 1580fi 1581test -n "$system_name" && 1582cat >>confdefs.h <<EOF 1583#define SYSTEM_NAME "$system_name" 1584EOF 1585 1586if test "${cf_cv_system_name+set}" = set; then 1587 echo $ECHO_N "(cached) $ECHO_C" >&6 1588else 1589 cf_cv_system_name="$system_name" 1590fi 1591 1592test -z "$system_name" && system_name="$cf_cv_system_name" 1593test -n "$cf_cv_system_name" && echo "$as_me:1593: result: Configuring for $cf_cv_system_name" >&5 1594echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1595 1596if test ".$system_name" != ".$cf_cv_system_name" ; then 1597 echo "$as_me:1597: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1598echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1599 { { echo "$as_me:1599: error: \"Please remove config.cache and try again.\"" >&5 1600echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1601 { (exit 1); exit 1; }; } 1602fi 1603 1604# Check whether --with-system-type or --without-system-type was given. 1605if test "${with_system_type+set}" = set; then 1606 withval="$with_system_type" 1607 { echo "$as_me:1607: WARNING: overriding system type to $withval" >&5 1608echo "$as_me: WARNING: overriding system type to $withval" >&2;} 1609 cf_cv_system_name=$withval 1610 host_os=$withval 1611 1612fi; 1613 1614### Save the given $CFLAGS to allow user-override. 1615cf_user_CFLAGS="$CFLAGS" 1616 1617### Default install-location 1618echo "$as_me:1618: checking for fgrep" >&5 1619echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 1620if test "${ac_cv_path_FGREP+set}" = set; then 1621 echo $ECHO_N "(cached) $ECHO_C" >&6 1622else 1623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 1624 then ac_cv_path_FGREP="$GREP -F" 1625 else 1626 for ac_prog in gfgrep fgrep 1627do 1628 # Extract the first word of "$ac_prog", so it can be a program name with args. 1629set dummy $ac_prog; ac_word=$2 1630echo "$as_me:1630: checking for $ac_word" >&5 1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1632if test "${ac_cv_path_FGREP+set}" = set; then 1633 echo $ECHO_N "(cached) $ECHO_C" >&6 1634else 1635 case $FGREP in 1636 [\\/]* | ?:[\\/]*) 1637 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 1638 ;; 1639 *) 1640 ac_save_IFS=$IFS; IFS=$ac_path_separator 1641ac_dummy="$PATH" 1642for ac_dir in $ac_dummy; do 1643 IFS=$ac_save_IFS 1644 test -z "$ac_dir" && ac_dir=. 1645 if $as_executable_p "$ac_dir/$ac_word"; then 1646 ac_cv_path_FGREP="$ac_dir/$ac_word" 1647 echo "$as_me:1647: found $ac_dir/$ac_word" >&5 1648 break 1649fi 1650done 1651 1652 ;; 1653esac 1654fi 1655FGREP=$ac_cv_path_FGREP 1656 1657if test -n "$FGREP"; then 1658 echo "$as_me:1658: result: $FGREP" >&5 1659echo "${ECHO_T}$FGREP" >&6 1660else 1661 echo "$as_me:1661: result: no" >&5 1662echo "${ECHO_T}no" >&6 1663fi 1664 1665 test -n "$FGREP" && break 1666done 1667test -n "$FGREP" || FGREP=": " 1668 1669 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1669: error: cannot find workable fgrep" >&5 1670echo "$as_me: error: cannot find workable fgrep" >&2;} 1671 { (exit 1); exit 1; }; } 1672 fi 1673fi 1674echo "$as_me:1674: result: $ac_cv_path_FGREP" >&5 1675echo "${ECHO_T}$ac_cv_path_FGREP" >&6 1676 FGREP="$ac_cv_path_FGREP" 1677 1678echo "$as_me:1678: checking for prefix" >&5 1679echo $ECHO_N "checking for prefix... $ECHO_C" >&6 1680if test "x$prefix" = "xNONE" ; then 1681 case "$cf_cv_system_name" in 1682 # non-vendor systems don't have a conflict 1683 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*) 1684 prefix=/usr 1685 ;; 1686 (*) prefix=$ac_default_prefix 1687 ;; 1688 esac 1689fi 1690echo "$as_me:1690: result: $prefix" >&5 1691echo "${ECHO_T}$prefix" >&6 1692 1693if test "x$prefix" = "xNONE" ; then 1694echo "$as_me:1694: checking for default include-directory" >&5 1695echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6 1696test -n "$verbose" && echo 1>&6 1697for cf_symbol in \ 1698 "$includedir" \ 1699 "$includedir/ncurses" \ 1700 "$prefix/include" \ 1701 "$prefix/include/ncurses" \ 1702 /usr/local/include \ 1703 /usr/local/include/ncurses \ 1704 /usr/include \ 1705 /usr/include/ncurses 1706do 1707 cf_dir=`eval echo "$cf_symbol"` 1708 if test -f "$cf_dir/curses.h" ; then 1709 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then 1710 includedir="$cf_symbol" 1711 test -n "$verbose" && echo $ECHO_N " found " 1>&6 1712 break 1713 fi 1714 fi 1715 test -n "$verbose" && echo " tested $cf_dir" 1>&6 1716done 1717echo "$as_me:1717: result: $includedir" >&5 1718echo "${ECHO_T}$includedir" >&6 1719fi 1720 1721### Defaults for ncurses ABI 1722 1723case x$cf_cv_abi_version in 1724(x[6789]) 1725 cf_dft_ext_colors=yes 1726 cf_dft_ext_const=yes 1727 cf_dft_ext_mouse=yes 1728 cf_dft_ext_putwin=yes 1729 cf_dft_ext_spfuncs=yes 1730 cf_dft_filter_syms=yes 1731 cf_dft_chtype=uint32_t 1732 cf_dft_mmask_t=uint32_t 1733 cf_dft_interop=yes 1734 cf_dft_tparm_arg=intptr_t 1735 cf_dft_with_lp64=yes 1736 ;; 1737(*) 1738 cf_dft_ext_colors=no 1739 cf_dft_ext_const=no 1740 cf_dft_ext_mouse=no 1741 cf_dft_ext_putwin=no 1742 cf_dft_ext_spfuncs=no 1743 cf_dft_filter_syms=no 1744 cf_dft_chtype=auto 1745 cf_dft_mmask_t=auto 1746 cf_dft_interop=no 1747 cf_dft_tparm_arg=long 1748 cf_dft_with_lp64=no 1749 ;; 1750esac 1751 1752### Checks for programs. 1753 1754# Check whether --with-ada or --without-ada was given. 1755if test "${with_ada+set}" = set; then 1756 withval="$with_ada" 1757 cf_with_ada=$withval 1758else 1759 cf_with_ada=yes 1760fi; 1761 1762if test "x$cf_with_ada" = xyes 1763then 1764 cf_prog_cc="gnatgcc gcc cc" 1765else 1766 cf_prog_cc="gcc cc" 1767fi 1768 1769ac_ext=c 1770ac_cpp='$CPP $CPPFLAGS' 1771ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 1772ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 1773ac_compiler_gnu=$ac_cv_c_compiler_gnu 1774ac_main_return="return" 1775if test -n "$ac_tool_prefix"; then 1776 for ac_prog in $cf_prog_cc 1777 do 1778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1779set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1780echo "$as_me:1780: checking for $ac_word" >&5 1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1782if test "${ac_cv_prog_CC+set}" = set; then 1783 echo $ECHO_N "(cached) $ECHO_C" >&6 1784else 1785 if test -n "$CC"; then 1786 ac_cv_prog_CC="$CC" # Let the user override the test. 1787else 1788 ac_save_IFS=$IFS; IFS=$ac_path_separator 1789ac_dummy="$PATH" 1790for ac_dir in $ac_dummy; do 1791 IFS=$ac_save_IFS 1792 test -z "$ac_dir" && ac_dir=. 1793 $as_executable_p "$ac_dir/$ac_word" || continue 1794ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1795echo "$as_me:1795: found $ac_dir/$ac_word" >&5 1796break 1797done 1798 1799fi 1800fi 1801CC=$ac_cv_prog_CC 1802if test -n "$CC"; then 1803 echo "$as_me:1803: result: $CC" >&5 1804echo "${ECHO_T}$CC" >&6 1805else 1806 echo "$as_me:1806: result: no" >&5 1807echo "${ECHO_T}no" >&6 1808fi 1809 1810 test -n "$CC" && break 1811 done 1812fi 1813if test -z "$CC"; then 1814 ac_ct_CC=$CC 1815 for ac_prog in $cf_prog_cc 1816do 1817 # Extract the first word of "$ac_prog", so it can be a program name with args. 1818set dummy $ac_prog; ac_word=$2 1819echo "$as_me:1819: checking for $ac_word" >&5 1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1821if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1822 echo $ECHO_N "(cached) $ECHO_C" >&6 1823else 1824 if test -n "$ac_ct_CC"; then 1825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1826else 1827 ac_save_IFS=$IFS; IFS=$ac_path_separator 1828ac_dummy="$PATH" 1829for ac_dir in $ac_dummy; do 1830 IFS=$ac_save_IFS 1831 test -z "$ac_dir" && ac_dir=. 1832 $as_executable_p "$ac_dir/$ac_word" || continue 1833ac_cv_prog_ac_ct_CC="$ac_prog" 1834echo "$as_me:1834: found $ac_dir/$ac_word" >&5 1835break 1836done 1837 1838fi 1839fi 1840ac_ct_CC=$ac_cv_prog_ac_ct_CC 1841if test -n "$ac_ct_CC"; then 1842 echo "$as_me:1842: result: $ac_ct_CC" >&5 1843echo "${ECHO_T}$ac_ct_CC" >&6 1844else 1845 echo "$as_me:1845: result: no" >&5 1846echo "${ECHO_T}no" >&6 1847fi 1848 1849 test -n "$ac_ct_CC" && break 1850done 1851 1852 CC=$ac_ct_CC 1853fi 1854 1855test -z "$CC" && { { echo "$as_me:1855: error: no acceptable cc found in \$PATH" >&5 1856echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1857 { (exit 1); exit 1; }; } 1858 1859# Provide some information about the compiler. 1860echo "$as_me:1860:" \ 1861 "checking for C compiler version" >&5 1862ac_compiler=`set X $ac_compile; echo "$2"` 1863{ (eval echo "$as_me:1863: \"$ac_compiler --version </dev/null >&5\"") >&5 1864 (eval $ac_compiler --version </dev/null >&5) 2>&5 1865 ac_status=$? 1866 echo "$as_me:1866: \$? = $ac_status" >&5 1867 (exit "$ac_status"); } 1868{ (eval echo "$as_me:1868: \"$ac_compiler -v </dev/null >&5\"") >&5 1869 (eval $ac_compiler -v </dev/null >&5) 2>&5 1870 ac_status=$? 1871 echo "$as_me:1871: \$? = $ac_status" >&5 1872 (exit "$ac_status"); } 1873{ (eval echo "$as_me:1873: \"$ac_compiler -V </dev/null >&5\"") >&5 1874 (eval $ac_compiler -V </dev/null >&5) 2>&5 1875 ac_status=$? 1876 echo "$as_me:1876: \$? = $ac_status" >&5 1877 (exit "$ac_status"); } 1878 1879cat >"conftest.$ac_ext" <<_ACEOF 1880#line 1880 "configure" 1881#include "confdefs.h" 1882 1883int 1884main (void) 1885{ 1886 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891ac_clean_files_save=$ac_clean_files 1892ac_clean_files="$ac_clean_files a.out a.exe" 1893# Try to create an executable without -o first, disregard a.out. 1894# It will help us diagnose broken compilers, and finding out an intuition 1895# of exeext. 1896echo "$as_me:1896: checking for C compiler default output" >&5 1897echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1898ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` 1899if { (eval echo "$as_me:1899: \"$ac_link_default\"") >&5 1900 (eval $ac_link_default) 2>&5 1901 ac_status=$? 1902 echo "$as_me:1902: \$? = $ac_status" >&5 1903 (exit "$ac_status"); }; then 1904 # Find the output, starting from the most likely. This scheme is 1905# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1906# resort. 1907for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1908 ls a.out conftest 2>/dev/null; 1909 ls a.* conftest.* 2>/dev/null`; do 1910 case $ac_file in 1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1912 a.out ) # We found the default executable, but exeext='' is most 1913 # certainly right. 1914 break;; 1915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1916 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1917 export ac_cv_exeext 1918 break;; 1919 * ) break;; 1920 esac 1921done 1922else 1923 echo "$as_me: failed program was:" >&5 1924cat "conftest.$ac_ext" >&5 1925{ { echo "$as_me:1925: error: C compiler cannot create executables" >&5 1926echo "$as_me: error: C compiler cannot create executables" >&2;} 1927 { (exit 77); exit 77; }; } 1928fi 1929 1930ac_exeext=$ac_cv_exeext 1931echo "$as_me:1931: result: $ac_file" >&5 1932echo "${ECHO_T}$ac_file" >&6 1933 1934# Check the compiler produces executables we can run. If not, either 1935# the compiler is broken, or we cross compile. 1936echo "$as_me:1936: checking whether the C compiler works" >&5 1937echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1939# If not cross compiling, check that we can run a simple program. 1940if test "$cross_compiling" != yes; then 1941 if { ac_try='./$ac_file' 1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5 1943 (eval $ac_try) 2>&5 1944 ac_status=$? 1945 echo "$as_me:1945: \$? = $ac_status" >&5 1946 (exit "$ac_status"); }; }; then 1947 cross_compiling=no 1948 else 1949 if test "$cross_compiling" = maybe; then 1950 cross_compiling=yes 1951 else 1952 { { echo "$as_me:1952: error: cannot run C compiled programs. 1953If you meant to cross compile, use \`--host'." >&5 1954echo "$as_me: error: cannot run C compiled programs. 1955If you meant to cross compile, use \`--host'." >&2;} 1956 { (exit 1); exit 1; }; } 1957 fi 1958 fi 1959fi 1960echo "$as_me:1960: result: yes" >&5 1961echo "${ECHO_T}yes" >&6 1962 1963rm -f a.out a.exe "conftest$ac_cv_exeext" 1964ac_clean_files=$ac_clean_files_save 1965# Check the compiler produces executables we can run. If not, either 1966# the compiler is broken, or we cross compile. 1967echo "$as_me:1967: checking whether we are cross compiling" >&5 1968echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1969echo "$as_me:1969: result: $cross_compiling" >&5 1970echo "${ECHO_T}$cross_compiling" >&6 1971 1972echo "$as_me:1972: checking for executable suffix" >&5 1973echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1974if { (eval echo "$as_me:1974: \"$ac_link\"") >&5 1975 (eval $ac_link) 2>&5 1976 ac_status=$? 1977 echo "$as_me:1977: \$? = $ac_status" >&5 1978 (exit "$ac_status"); }; then 1979 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1980# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1981# work properly (i.e., refer to `conftest.exe'), while it won't with 1982# `rm'. 1983for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1984 case $ac_file in 1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1987 export ac_cv_exeext 1988 break;; 1989 * ) break;; 1990 esac 1991done 1992else 1993 { { echo "$as_me:1993: error: cannot compute EXEEXT: cannot compile and link" >&5 1994echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1995 { (exit 1); exit 1; }; } 1996fi 1997 1998rm -f "conftest$ac_cv_exeext" 1999echo "$as_me:1999: result: $ac_cv_exeext" >&5 2000echo "${ECHO_T}$ac_cv_exeext" >&6 2001 2002rm -f "conftest.$ac_ext" 2003EXEEXT=$ac_cv_exeext 2004ac_exeext=$EXEEXT 2005echo "$as_me:2005: checking for object suffix" >&5 2006echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 2007if test "${ac_cv_objext+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 cat >"conftest.$ac_ext" <<_ACEOF 2011#line 2011 "configure" 2012#include "confdefs.h" 2013 2014int 2015main (void) 2016{ 2017 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022rm -f conftest.o conftest.obj 2023if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5 2024 (eval $ac_compile) 2>&5 2025 ac_status=$? 2026 echo "$as_me:2026: \$? = $ac_status" >&5 2027 (exit "$ac_status"); }; then 2028 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2029 case $ac_file in 2030 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 2031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2032 break;; 2033 esac 2034done 2035else 2036 echo "$as_me: failed program was:" >&5 2037cat "conftest.$ac_ext" >&5 2038{ { echo "$as_me:2038: error: cannot compute OBJEXT: cannot compile" >&5 2039echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 2040 { (exit 1); exit 1; }; } 2041fi 2042 2043rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" 2044fi 2045echo "$as_me:2045: result: $ac_cv_objext" >&5 2046echo "${ECHO_T}$ac_cv_objext" >&6 2047OBJEXT=$ac_cv_objext 2048ac_objext=$OBJEXT 2049echo "$as_me:2049: checking whether we are using the GNU C compiler" >&5 2050echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2051if test "${ac_cv_c_compiler_gnu+set}" = set; then 2052 echo $ECHO_N "(cached) $ECHO_C" >&6 2053else 2054 cat >"conftest.$ac_ext" <<_ACEOF 2055#line 2055 "configure" 2056#include "confdefs.h" 2057 2058int 2059main (void) 2060{ 2061#ifndef __GNUC__ 2062 choke me 2063#endif 2064 2065 ; 2066 return 0; 2067} 2068_ACEOF 2069rm -f "conftest.$ac_objext" 2070if { (eval echo "$as_me:2070: \"$ac_compile\"") >&5 2071 (eval $ac_compile) 2>&5 2072 ac_status=$? 2073 echo "$as_me:2073: \$? = $ac_status" >&5 2074 (exit "$ac_status"); } && 2075 { ac_try='test -s "conftest.$ac_objext"' 2076 { (eval echo "$as_me:2076: \"$ac_try\"") >&5 2077 (eval $ac_try) 2>&5 2078 ac_status=$? 2079 echo "$as_me:2079: \$? = $ac_status" >&5 2080 (exit "$ac_status"); }; }; then 2081 ac_compiler_gnu=yes 2082else 2083 echo "$as_me: failed program was:" >&5 2084cat "conftest.$ac_ext" >&5 2085ac_compiler_gnu=no 2086fi 2087rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2088ac_cv_c_compiler_gnu=$ac_compiler_gnu 2089 2090fi 2091echo "$as_me:2091: result: $ac_cv_c_compiler_gnu" >&5 2092echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2093GCC=`test $ac_compiler_gnu = yes && echo yes` 2094ac_test_CFLAGS=${CFLAGS+set} 2095ac_save_CFLAGS=$CFLAGS 2096CFLAGS="-g" 2097echo "$as_me:2097: checking whether $CC accepts -g" >&5 2098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2099if test "${ac_cv_prog_cc_g+set}" = set; then 2100 echo $ECHO_N "(cached) $ECHO_C" >&6 2101else 2102 cat >"conftest.$ac_ext" <<_ACEOF 2103#line 2103 "configure" 2104#include "confdefs.h" 2105 2106int 2107main (void) 2108{ 2109 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114rm -f "conftest.$ac_objext" 2115if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5 2116 (eval $ac_compile) 2>&5 2117 ac_status=$? 2118 echo "$as_me:2118: \$? = $ac_status" >&5 2119 (exit "$ac_status"); } && 2120 { ac_try='test -s "conftest.$ac_objext"' 2121 { (eval echo "$as_me:2121: \"$ac_try\"") >&5 2122 (eval $ac_try) 2>&5 2123 ac_status=$? 2124 echo "$as_me:2124: \$? = $ac_status" >&5 2125 (exit "$ac_status"); }; }; then 2126 ac_cv_prog_cc_g=yes 2127else 2128 echo "$as_me: failed program was:" >&5 2129cat "conftest.$ac_ext" >&5 2130ac_cv_prog_cc_g=no 2131fi 2132rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2133fi 2134echo "$as_me:2134: result: $ac_cv_prog_cc_g" >&5 2135echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2136if test "$ac_test_CFLAGS" = set; then 2137 CFLAGS=$ac_save_CFLAGS 2138elif test $ac_cv_prog_cc_g = yes; then 2139 if test "$GCC" = yes; then 2140 CFLAGS="-g -O2" 2141 else 2142 CFLAGS="-g" 2143 fi 2144else 2145 if test "$GCC" = yes; then 2146 CFLAGS="-O2" 2147 else 2148 CFLAGS= 2149 fi 2150fi 2151# Some people use a C++ compiler to compile C. Since we use `exit', 2152# in C++ we need to declare it. In case someone uses the same compiler 2153# for both compiling C and C++ we need to have the C++ compiler decide 2154# the declaration of exit, since it's the most demanding environment. 2155cat >"conftest.$ac_ext" <<_ACEOF 2156#ifndef __cplusplus 2157 choke me 2158#endif 2159_ACEOF 2160rm -f "conftest.$ac_objext" 2161if { (eval echo "$as_me:2161: \"$ac_compile\"") >&5 2162 (eval $ac_compile) 2>&5 2163 ac_status=$? 2164 echo "$as_me:2164: \$? = $ac_status" >&5 2165 (exit "$ac_status"); } && 2166 { ac_try='test -s "conftest.$ac_objext"' 2167 { (eval echo "$as_me:2167: \"$ac_try\"") >&5 2168 (eval $ac_try) 2>&5 2169 ac_status=$? 2170 echo "$as_me:2170: \$? = $ac_status" >&5 2171 (exit "$ac_status"); }; }; then 2172 for ac_declaration in \ 2173 ''\ 2174 '#include <stdlib.h>' \ 2175 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2176 'extern "C" void std::exit (int); using std::exit;' \ 2177 'extern "C" void exit (int) throw ();' \ 2178 'extern "C" void exit (int);' \ 2179 'void exit (int);' 2180do 2181 cat >"conftest.$ac_ext" <<_ACEOF 2182#line 2182 "configure" 2183#include "confdefs.h" 2184#include <stdlib.h> 2185$ac_declaration 2186int 2187main (void) 2188{ 2189exit (42); 2190 ; 2191 return 0; 2192} 2193_ACEOF 2194rm -f "conftest.$ac_objext" 2195if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5 2196 (eval $ac_compile) 2>&5 2197 ac_status=$? 2198 echo "$as_me:2198: \$? = $ac_status" >&5 2199 (exit "$ac_status"); } && 2200 { ac_try='test -s "conftest.$ac_objext"' 2201 { (eval echo "$as_me:2201: \"$ac_try\"") >&5 2202 (eval $ac_try) 2>&5 2203 ac_status=$? 2204 echo "$as_me:2204: \$? = $ac_status" >&5 2205 (exit "$ac_status"); }; }; then 2206 : 2207else 2208 echo "$as_me: failed program was:" >&5 2209cat "conftest.$ac_ext" >&5 2210continue 2211fi 2212rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2213 cat >"conftest.$ac_ext" <<_ACEOF 2214#line 2214 "configure" 2215#include "confdefs.h" 2216$ac_declaration 2217int 2218main (void) 2219{ 2220exit (42); 2221 ; 2222 return 0; 2223} 2224_ACEOF 2225rm -f "conftest.$ac_objext" 2226if { (eval echo "$as_me:2226: \"$ac_compile\"") >&5 2227 (eval $ac_compile) 2>&5 2228 ac_status=$? 2229 echo "$as_me:2229: \$? = $ac_status" >&5 2230 (exit "$ac_status"); } && 2231 { ac_try='test -s "conftest.$ac_objext"' 2232 { (eval echo "$as_me:2232: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:2235: \$? = $ac_status" >&5 2236 (exit "$ac_status"); }; }; then 2237 break 2238else 2239 echo "$as_me: failed program was:" >&5 2240cat "conftest.$ac_ext" >&5 2241fi 2242rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2243done 2244rm -rf conftest* 2245if test -n "$ac_declaration"; then 2246 echo '#ifdef __cplusplus' >>confdefs.h 2247 echo "$ac_declaration" >>confdefs.h 2248 echo '#endif' >>confdefs.h 2249fi 2250 2251else 2252 echo "$as_me: failed program was:" >&5 2253cat "conftest.$ac_ext" >&5 2254fi 2255rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2256ac_ext=c 2257ac_cpp='$CPP $CPPFLAGS' 2258ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2259ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2260ac_compiler_gnu=$ac_cv_c_compiler_gnu 2261ac_main_return="return" 2262 2263GCC_VERSION=none 2264if test "$GCC" = yes ; then 2265 echo "$as_me:2265: checking version of $CC" >&5 2266echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2267 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.].*//'`" 2268 test -z "$GCC_VERSION" && GCC_VERSION=unknown 2269 echo "$as_me:2269: result: $GCC_VERSION" >&5 2270echo "${ECHO_T}$GCC_VERSION" >&6 2271fi 2272 2273INTEL_COMPILER=no 2274 2275if test "$GCC" = yes ; then 2276 case "$host_os" in 2277 (linux*|gnu*) 2278 echo "$as_me:2278: checking if this is really Intel C compiler" >&5 2279echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 2280 cf_save_CFLAGS="$CFLAGS" 2281 CFLAGS="$CFLAGS -no-gcc" 2282 cat >"conftest.$ac_ext" <<_ACEOF 2283#line 2283 "configure" 2284#include "confdefs.h" 2285 2286int 2287main (void) 2288{ 2289 2290#ifdef __INTEL_COMPILER 2291#else 2292make an error 2293#endif 2294 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299rm -f "conftest.$ac_objext" 2300if { (eval echo "$as_me:2300: \"$ac_compile\"") >&5 2301 (eval $ac_compile) 2>&5 2302 ac_status=$? 2303 echo "$as_me:2303: \$? = $ac_status" >&5 2304 (exit "$ac_status"); } && 2305 { ac_try='test -s "conftest.$ac_objext"' 2306 { (eval echo "$as_me:2306: \"$ac_try\"") >&5 2307 (eval $ac_try) 2>&5 2308 ac_status=$? 2309 echo "$as_me:2309: \$? = $ac_status" >&5 2310 (exit "$ac_status"); }; }; then 2311 INTEL_COMPILER=yes 2312cf_save_CFLAGS="$cf_save_CFLAGS -we147" 2313 2314else 2315 echo "$as_me: failed program was:" >&5 2316cat "conftest.$ac_ext" >&5 2317fi 2318rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2319 CFLAGS="$cf_save_CFLAGS" 2320 echo "$as_me:2320: result: $INTEL_COMPILER" >&5 2321echo "${ECHO_T}$INTEL_COMPILER" >&6 2322 ;; 2323 esac 2324fi 2325 2326CLANG_COMPILER=no 2327 2328if test "$GCC" = yes ; then 2329 echo "$as_me:2329: checking if this is really Clang C compiler" >&5 2330echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 2331 cf_save_CFLAGS="$CFLAGS" 2332 cat >"conftest.$ac_ext" <<_ACEOF 2333#line 2333 "configure" 2334#include "confdefs.h" 2335 2336int 2337main (void) 2338{ 2339 2340#ifdef __clang__ 2341#else 2342make an error 2343#endif 2344 2345 ; 2346 return 0; 2347} 2348_ACEOF 2349rm -f "conftest.$ac_objext" 2350if { (eval echo "$as_me:2350: \"$ac_compile\"") >&5 2351 (eval $ac_compile) 2>&5 2352 ac_status=$? 2353 echo "$as_me:2353: \$? = $ac_status" >&5 2354 (exit "$ac_status"); } && 2355 { ac_try='test -s "conftest.$ac_objext"' 2356 { (eval echo "$as_me:2356: \"$ac_try\"") >&5 2357 (eval $ac_try) 2>&5 2358 ac_status=$? 2359 echo "$as_me:2359: \$? = $ac_status" >&5 2360 (exit "$ac_status"); }; }; then 2361 CLANG_COMPILER=yes 2362 2363else 2364 echo "$as_me: failed program was:" >&5 2365cat "conftest.$ac_ext" >&5 2366fi 2367rm -f "conftest.$ac_objext" "conftest.$ac_ext" 2368 CFLAGS="$cf_save_CFLAGS" 2369 echo "$as_me:2369: result: $CLANG_COMPILER" >&5 2370echo "${ECHO_T}$CLANG_COMPILER" >&6 2371fi 2372 2373CLANG_VERSION=none 2374 2375if test "x$CLANG_COMPILER" = "xyes" ; then 2376 case "$CC" in 2377 (c[1-9][0-9]|*/c[1-9][0-9]) 2378 { echo "$as_me:2378: WARNING: replacing broken compiler alias $CC" >&5 2379echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 2380 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 2381 CC=clang 2382 ;; 2383 esac 2384 2385 echo "$as_me:2385: checking version of $CC" >&5 2386echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 2387 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.].*//'`" 2388 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 2389 echo "$as_me:2389: result: $CLANG_VERSION" >&5 2390echo "${ECHO_T}$CLANG_VERSION" >&6 2391 2392 for cf_clang_opt in \ 2393 -Qunused-arguments \ 2394 -Wno-error=implicit-function-declaration 2395 do 2396 echo "$as_me:2396: checking if option $cf_clang_opt works" >&5 2397echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 2398 cf_save_CFLAGS="$CFLAGS" 2399 CFLAGS="$CFLAGS $cf_clang_opt" 2400 cat >"conftest.$ac_ext" <<_ACEOF 2401#line 2401 "configure" 2402#include "confdefs.h" 2403 2404 #include <stdio.h> 2405int 2406main (void) 2407{ 2408 2409 printf("hello!\\n"); 2410 ; 2411 return 0; 2412} 2413_ACEOF 2414rm -f "conftest.$ac_objext" "conftest$ac_exeext" 2415if { (eval echo "$as_me:2415: \"$ac_link\"") >&5 2416 (eval $ac_link) 2>&5 2417 ac_status=$? 2418 echo "$as_me:2418: \$? = $ac_status" >&5 2419 (exit "$ac_status"); } && 2420 { ac_try='test -s "conftest$ac_exeext"' 2421 { (eval echo "$as_me:2421: \"$ac_try\"") >&5 2422 (eval $ac_try) 2>&5 2423 ac_status=$? 2424 echo "$as_me:2424: \$? = $ac_status" >&5 2425 (exit "$ac_status"); }; }; then 2426 2427 cf_clang_optok=yes 2428else 2429 echo "$as_me: failed program was:" >&5 2430cat "conftest.$ac_ext" >&5 2431 2432 cf_clang_optok=no 2433fi 2434rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 2435 echo "$as_me:2435: result: $cf_clang_optok" >&5 2436echo "${ECHO_T}$cf_clang_optok" >&6 2437 CFLAGS="$cf_save_CFLAGS" 2438 if test "$cf_clang_optok" = yes; then 2439 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 2440 2441echo "${as_me:-configure}:2441: testing adding option $cf_clang_opt ..." 1>&5 2442 2443 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2444 CFLAGS="${CFLAGS}$cf_clang_opt" 2445 2446 fi 2447 done 2448fi 2449 2450echo "$as_me:2450: checking for $CC option to accept ANSI C" >&5 2451echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2452if test "${ac_cv_prog_cc_stdc+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 ac_cv_prog_cc_stdc=no 2456ac_save_CC=$CC 2457cat >"conftest.$ac_ext" <<_ACEOF 2458#line 2458 "configure" 2459#include "confdefs.h" 2460#include <stdarg.h> 2461#include <stdio.h> 2462#include <sys/types.h> 2463#include <sys/stat.h> 2464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2465struct buf { int x; }; 2466FILE * (*rcsopen) (struct buf *, struct stat *, int); 2467static char *e (p, i) 2468 char **p; 2469 int i; 2470{ 2471 return p[i]; 2472} 2473static char *f (char * (*g) (char **, int), char **p, ...) 2474{ 2475 char *s; 2476 va_list v; 2477 va_start (v,p); 2478 s = g (p, va_arg (v,int)); 2479 va_end (v); 2480 return s; 2481} 2482int test (int i, double x); 2483struct s1 {int (*f) (int a);}; 2484struct s2 {int (*f) (double a);}; 2485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2486int argc; 2487char **argv; 2488int 2489main (void) 2490{ 2491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2492 ; 2493 return 0; 2494} 2495_ACEOF 2496# Don't try gcc -ansi; that turns off useful extensions and 2497# breaks some systems' header files. 2498# AIX -qlanglvl=ansi 2499# Ultrix and OSF/1 -std1 2500# HP-UX 10.20 and later -Ae 2501# HP-UX older versions -Aa -D_HPUX_SOURCE 2502# SVR4 -Xc -D__EXTENSIONS__ 2503for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2504do 2505 CC="$ac_save_CC $ac_arg" 2506 rm -f "conftest.$ac_objext" 2507if { (eval echo "$as_me:2507: \"$ac_compile\"") >&5 2508 (eval $ac_compile) 2>&5 2509 ac_status=$? 2510 echo "$as_me:2510: \$? = $ac_status" >&5 2511 (exit "$ac_status"); } && 2512 { ac_try='test -s "conftest.$ac_objext"' 2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5 2514 (eval $ac_try) 2>&5 2515 ac_status=$? 2516 echo "$as_me:2516: \$? = $ac_status" >&5 2517 (exit "$ac_status"); }; }; then 2518 ac_cv_prog_cc_stdc=$ac_arg 2519break 2520else 2521 echo "$as_me: failed program was:" >&5 2522cat "conftest.$ac_ext" >&5 2523fi 2524rm -f "conftest.$ac_objext" 2525done 2526rm -f "conftest.$ac_ext" "conftest.$ac_objext" 2527CC=$ac_save_CC 2528 2529fi 2530 2531case "x$ac_cv_prog_cc_stdc" in 2532 x|xno) 2533 echo "$as_me:2533: result: none needed" >&5 2534echo "${ECHO_T}none needed" >&6 ;; 2535 *) 2536 echo "$as_me:2536: result: $ac_cv_prog_cc_stdc" >&5 2537echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2538 CC="$CC $ac_cv_prog_cc_stdc" ;; 2539esac 2540 2541# This should have been defined by AC_PROG_CC 2542: "${CC:=cc}" 2543 2544echo "$as_me:2544: checking \$CFLAGS variable" >&5 2545echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 2546case "x$CFLAGS" in 2547(*-[IUD]*) 2548 echo "$as_me:2548: result: broken" >&5 2549echo "${ECHO_T}broken" >&6 2550 { echo "$as_me:2550: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 2551echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 2552 cf_flags="$CFLAGS" 2553 CFLAGS= 2554 for cf_arg in $cf_flags 2555 do 2556 2557cf_fix_cppflags=no 2558cf_new_cflags= 2559cf_new_cppflags= 2560cf_new_extra_cppflags= 2561 2562for cf_add_cflags in $cf_arg 2563do 2564case "$cf_fix_cppflags" in 2565(no) 2566 case "$cf_add_cflags" in 2567 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2568 case "$cf_add_cflags" in 2569 (-D*) 2570 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2571 2572 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2573 && test -z "${cf_tst_cflags}" \ 2574 && cf_fix_cppflags=yes 2575 2576 if test "$cf_fix_cppflags" = yes ; then 2577 2578 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2579 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2580 2581 continue 2582 elif test "${cf_tst_cflags}" = "\"'" ; then 2583 2584 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2585 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2586 2587 continue 2588 fi 2589 ;; 2590 esac 2591 case "$CPPFLAGS" in 2592 (*$cf_add_cflags) 2593 ;; 2594 (*) 2595 case "$cf_add_cflags" in 2596 (-D*) 2597 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2598 2599CPPFLAGS=`echo "$CPPFLAGS" | \ 2600 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2601 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2602 2603 ;; 2604 esac 2605 2606 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2607 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2608 2609 ;; 2610 esac 2611 ;; 2612 (*) 2613 2614 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2615 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2616 2617 ;; 2618 esac 2619 ;; 2620(yes) 2621 2622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2624 2625 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2626 2627 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2628 && test -z "${cf_tst_cflags}" \ 2629 && cf_fix_cppflags=no 2630 ;; 2631esac 2632done 2633 2634if test -n "$cf_new_cflags" ; then 2635 2636 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2637 CFLAGS="${CFLAGS}$cf_new_cflags" 2638 2639fi 2640 2641if test -n "$cf_new_cppflags" ; then 2642 2643 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2644 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2645 2646fi 2647 2648if test -n "$cf_new_extra_cppflags" ; then 2649 2650 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2651 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2652 2653fi 2654 2655 done 2656 ;; 2657(*) 2658 echo "$as_me:2658: result: ok" >&5 2659echo "${ECHO_T}ok" >&6 2660 ;; 2661esac 2662 2663echo "$as_me:2663: checking \$CC variable" >&5 2664echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2665case "$CC" in 2666(*[\ \ ]-*) 2667 echo "$as_me:2667: result: broken" >&5 2668echo "${ECHO_T}broken" >&6 2669 { echo "$as_me:2669: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2670echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2671 # humor him... 2672 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2673 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 2674 CC="$cf_prog" 2675 for cf_arg in $cf_flags 2676 do 2677 case "x$cf_arg" in 2678 (x-[IUDfgOW]*) 2679 2680cf_fix_cppflags=no 2681cf_new_cflags= 2682cf_new_cppflags= 2683cf_new_extra_cppflags= 2684 2685for cf_add_cflags in $cf_arg 2686do 2687case "$cf_fix_cppflags" in 2688(no) 2689 case "$cf_add_cflags" in 2690 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2691 case "$cf_add_cflags" in 2692 (-D*) 2693 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2694 2695 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2696 && test -z "${cf_tst_cflags}" \ 2697 && cf_fix_cppflags=yes 2698 2699 if test "$cf_fix_cppflags" = yes ; then 2700 2701 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2702 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2703 2704 continue 2705 elif test "${cf_tst_cflags}" = "\"'" ; then 2706 2707 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2708 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2709 2710 continue 2711 fi 2712 ;; 2713 esac 2714 case "$CPPFLAGS" in 2715 (*$cf_add_cflags) 2716 ;; 2717 (*) 2718 case "$cf_add_cflags" in 2719 (-D*) 2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2721 2722CPPFLAGS=`echo "$CPPFLAGS" | \ 2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2725 2726 ;; 2727 esac 2728 2729 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2730 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2731 2732 ;; 2733 esac 2734 ;; 2735 (*) 2736 2737 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2738 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2739 2740 ;; 2741 esac 2742 ;; 2743(yes) 2744 2745 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2746 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2747 2748 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 2749 2750 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2751 && test -z "${cf_tst_cflags}" \ 2752 && cf_fix_cppflags=no 2753 ;; 2754esac 2755done 2756 2757if test -n "$cf_new_cflags" ; then 2758 2759 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2760 CFLAGS="${CFLAGS}$cf_new_cflags" 2761 2762fi 2763 2764if test -n "$cf_new_cppflags" ; then 2765 2766 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2767 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2768 2769fi 2770 2771if test -n "$cf_new_extra_cppflags" ; then 2772 2773 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2774 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2775 2776fi 2777 2778 ;; 2779 (*) 2780 CC="$CC $cf_arg" 2781 ;; 2782 esac 2783 done 2784 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2785 2786echo "${as_me:-configure}:2786: testing resulting CC: '$CC' ..." 1>&5 2787 2788 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2789 2790echo "${as_me:-configure}:2790: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2791 2792 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2793 2794echo "${as_me:-configure}:2794: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2795 2796 ;; 2797(*) 2798 echo "$as_me:2798: result: ok" >&5 2799echo "${ECHO_T}ok" >&6 2800 ;; 2801esac 2802 2803ac_ext=c 2804ac_cpp='$CPP $CPPFLAGS' 2805ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 2806ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 2807ac_compiler_gnu=$ac_cv_c_compiler_gnu 2808ac_main_return="return" 2809echo "$as_me:2809: checking how to run the C preprocessor" >&5 2810echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2811# On Suns, sometimes $CPP names a directory. 2812if test -n "$CPP" && test -d "$CPP"; then 2813 CPP= 2814fi 2815if test -z "$CPP"; then 2816 if test "${ac_cv_prog_CPP+set}" = set; then 2817 echo $ECHO_N "(cached) $ECHO_C" >&6 2818else 2819 # Double quotes because CPP needs to be expanded 2820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2821 do 2822 ac_preproc_ok=false 2823for ac_c_preproc_warn_flag in '' yes 2824do 2825 # Use a header file that comes with gcc, so configuring glibc 2826 # with a fresh cross-compiler works. 2827 # On the NeXT, cc -E runs the code through the compiler's parser, 2828 # not just through cpp. "Syntax error" is here to catch this case. 2829 cat >"conftest.$ac_ext" <<_ACEOF 2830#line 2830 "configure" 2831#include "confdefs.h" 2832#include <assert.h> 2833 Syntax error 2834_ACEOF 2835if { (eval echo "$as_me:2835: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2836 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2837 ac_status=$? 2838 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2839 rm -f conftest.er1 2840 cat conftest.err >&5 2841 echo "$as_me:2841: \$? = $ac_status" >&5 2842 (exit "$ac_status"); } >/dev/null; then 2843 if test -s conftest.err; then 2844 ac_cpp_err=$ac_c_preproc_warn_flag 2845 else 2846 ac_cpp_err= 2847 fi 2848else 2849 ac_cpp_err=yes 2850fi 2851if test -z "$ac_cpp_err"; then 2852 : 2853else 2854 echo "$as_me: failed program was:" >&5 2855 cat "conftest.$ac_ext" >&5 2856 # Broken: fails on valid input. 2857continue 2858fi 2859rm -f conftest.err "conftest.$ac_ext" 2860 2861 # OK, works on sane cases. Now check whether non-existent headers 2862 # can be detected and how. 2863 cat >"conftest.$ac_ext" <<_ACEOF 2864#line 2864 "configure" 2865#include "confdefs.h" 2866#include <ac_nonexistent.h> 2867_ACEOF 2868if { (eval echo "$as_me:2868: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2869 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2870 ac_status=$? 2871 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2872 rm -f conftest.er1 2873 cat conftest.err >&5 2874 echo "$as_me:2874: \$? = $ac_status" >&5 2875 (exit "$ac_status"); } >/dev/null; then 2876 if test -s conftest.err; then 2877 ac_cpp_err=$ac_c_preproc_warn_flag 2878 else 2879 ac_cpp_err= 2880 fi 2881else 2882 ac_cpp_err=yes 2883fi 2884if test -z "$ac_cpp_err"; then 2885 # Broken: success on invalid input. 2886continue 2887else 2888 echo "$as_me: failed program was:" >&5 2889 cat "conftest.$ac_ext" >&5 2890 # Passes both tests. 2891ac_preproc_ok=: 2892break 2893fi 2894rm -f conftest.err "conftest.$ac_ext" 2895 2896done 2897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2898rm -f conftest.err "conftest.$ac_ext" 2899if $ac_preproc_ok; then 2900 break 2901fi 2902 2903 done 2904 ac_cv_prog_CPP=$CPP 2905 2906fi 2907 CPP=$ac_cv_prog_CPP 2908else 2909 ac_cv_prog_CPP=$CPP 2910fi 2911echo "$as_me:2911: result: $CPP" >&5 2912echo "${ECHO_T}$CPP" >&6 2913ac_preproc_ok=false 2914for ac_c_preproc_warn_flag in '' yes 2915do 2916 # Use a header file that comes with gcc, so configuring glibc 2917 # with a fresh cross-compiler works. 2918 # On the NeXT, cc -E runs the code through the compiler's parser, 2919 # not just through cpp. "Syntax error" is here to catch this case. 2920 cat >"conftest.$ac_ext" <<_ACEOF 2921#line 2921 "configure" 2922#include "confdefs.h" 2923#include <assert.h> 2924 Syntax error 2925_ACEOF 2926if { (eval echo "$as_me:2926: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2927 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2928 ac_status=$? 2929 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2930 rm -f conftest.er1 2931 cat conftest.err >&5 2932 echo "$as_me:2932: \$? = $ac_status" >&5 2933 (exit "$ac_status"); } >/dev/null; then 2934 if test -s conftest.err; then 2935 ac_cpp_err=$ac_c_preproc_warn_flag 2936 else 2937 ac_cpp_err= 2938 fi 2939else 2940 ac_cpp_err=yes 2941fi 2942if test -z "$ac_cpp_err"; then 2943 : 2944else 2945 echo "$as_me: failed program was:" >&5 2946 cat "conftest.$ac_ext" >&5 2947 # Broken: fails on valid input. 2948continue 2949fi 2950rm -f conftest.err "conftest.$ac_ext" 2951 2952 # OK, works on sane cases. Now check whether non-existent headers 2953 # can be detected and how. 2954 cat >"conftest.$ac_ext" <<_ACEOF 2955#line 2955 "configure" 2956#include "confdefs.h" 2957#include <ac_nonexistent.h> 2958_ACEOF 2959if { (eval echo "$as_me:2959: \"$ac_cpp "conftest.$ac_ext"\"") >&5 2960 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 2961 ac_status=$? 2962 $EGREP -v '^ *\+' conftest.er1 >conftest.err 2963 rm -f conftest.er1 2964 cat conftest.err >&5 2965 echo "$as_me:2965: \$? = $ac_status" >&5 2966 (exit "$ac_status"); } >/dev/null; then 2967 if test -s conftest.err; then 2968 ac_cpp_err=$ac_c_preproc_warn_flag 2969 else 2970 ac_cpp_err= 2971 fi 2972else 2973 ac_cpp_err=yes 2974fi 2975if test -z "$ac_cpp_err"; then 2976 # Broken: success on invalid input. 2977continue 2978else 2979 echo "$as_me: failed program was:" >&5 2980 cat "conftest.$ac_ext" >&5 2981 # Passes both tests. 2982ac_preproc_ok=: 2983break 2984fi 2985rm -f conftest.err "conftest.$ac_ext" 2986 2987done 2988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2989rm -f conftest.err "conftest.$ac_ext" 2990if $ac_preproc_ok; then 2991 : 2992else 2993 { { echo "$as_me:2993: error: C preprocessor \"$CPP\" fails sanity check" >&5 2994echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2995 { (exit 1); exit 1; }; } 2996fi 2997 2998ac_ext=c 2999ac_cpp='$CPP $CPPFLAGS' 3000ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3001ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3002ac_compiler_gnu=$ac_cv_c_compiler_gnu 3003ac_main_return="return" 3004 3005if test $ac_cv_c_compiler_gnu = yes; then 3006 echo "$as_me:3006: checking whether $CC needs -traditional" >&5 3007echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3008if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 ac_pattern="Autoconf.*'x'" 3012 cat >"conftest.$ac_ext" <<_ACEOF 3013#line 3013 "configure" 3014#include "confdefs.h" 3015#include <sgtty.h> 3016int Autoconf = TIOCGETP; 3017_ACEOF 3018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3019 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3020 ac_cv_prog_gcc_traditional=yes 3021else 3022 ac_cv_prog_gcc_traditional=no 3023fi 3024rm -rf conftest* 3025 3026 if test $ac_cv_prog_gcc_traditional = no; then 3027 cat >"conftest.$ac_ext" <<_ACEOF 3028#line 3028 "configure" 3029#include "confdefs.h" 3030#include <termio.h> 3031int Autoconf = TCGETA; 3032_ACEOF 3033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3034 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3035 ac_cv_prog_gcc_traditional=yes 3036fi 3037rm -rf conftest* 3038 3039 fi 3040fi 3041echo "$as_me:3041: result: $ac_cv_prog_gcc_traditional" >&5 3042echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3043 if test $ac_cv_prog_gcc_traditional = yes; then 3044 CC="$CC -traditional" 3045 fi 3046fi 3047 3048echo "$as_me:3048: checking whether $CC understands -c and -o together" >&5 3049echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6 3050if test "${cf_cv_prog_CC_c_o+set}" = set; then 3051 echo $ECHO_N "(cached) $ECHO_C" >&6 3052else 3053 3054cat > conftest.$ac_ext <<CF_EOF 3055int main(void) 3056{ 3057 ${cf_cv_main_return:-return}(0); 3058} 3059CF_EOF 3060# We do the test twice because some compilers refuse to overwrite an 3061# existing .o file with -o, though they will create one. 3062ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3063if { (eval echo "$as_me:3063: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:3066: \$? = $ac_status" >&5 3067 (exit "$ac_status"); } && 3068 test -f conftest2.$ac_objext && { (eval echo "$as_me:3068: \"$ac_try\"") >&5 3069 (eval $ac_try) 2>&5 3070 ac_status=$? 3071 echo "$as_me:3071: \$? = $ac_status" >&5 3072 (exit "$ac_status"); }; 3073then 3074 eval cf_cv_prog_CC_c_o=yes 3075else 3076 eval cf_cv_prog_CC_c_o=no 3077fi 3078rm -rf ./conftest* 3079 3080fi 3081if test "$cf_cv_prog_CC_c_o" = yes; then 3082 echo "$as_me:3082: result: yes" >&5 3083echo "${ECHO_T}yes" >&6 3084else 3085 echo "$as_me:3085: result: no" >&5 3086echo "${ECHO_T}no" >&6 3087fi 3088 3089if test "$cross_compiling" = yes ; then 3090 LDCONFIG=: 3091else 3092 case "$cf_cv_system_name" in 3093 (dragonfly*|mirbsd*|freebsd*) 3094 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R" 3095 ;; 3096 (*) LDPATH=$PATH:/sbin:/usr/sbin 3097 # Extract the first word of "ldconfig", so it can be a program name with args. 3098set dummy ldconfig; ac_word=$2 3099echo "$as_me:3099: checking for $ac_word" >&5 3100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3101if test "${ac_cv_path_LDCONFIG+set}" = set; then 3102 echo $ECHO_N "(cached) $ECHO_C" >&6 3103else 3104 case $LDCONFIG in 3105 [\\/]* | ?:[\\/]*) 3106 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 3107 ;; 3108 *) 3109 ac_save_IFS=$IFS; IFS=$ac_path_separator 3110ac_dummy="$LDPATH" 3111for ac_dir in $ac_dummy; do 3112 IFS=$ac_save_IFS 3113 test -z "$ac_dir" && ac_dir=. 3114 if $as_executable_p "$ac_dir/$ac_word"; then 3115 ac_cv_path_LDCONFIG="$ac_dir/$ac_word" 3116 echo "$as_me:3116: found $ac_dir/$ac_word" >&5 3117 break 3118fi 3119done 3120 3121 ;; 3122esac 3123fi 3124LDCONFIG=$ac_cv_path_LDCONFIG 3125 3126if test -n "$LDCONFIG"; then 3127 echo "$as_me:3127: result: $LDCONFIG" >&5 3128echo "${ECHO_T}$LDCONFIG" >&6 3129else 3130 echo "$as_me:3130: result: no" >&5 3131echo "${ECHO_T}no" >&6 3132fi 3133 3134 ;; 3135 esac 3136fi 3137 3138echo "$as_me:3138: checking if you want to ensure bool is consistent with C++" >&5 3139echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6 3140 3141# Check whether --with-cxx or --without-cxx was given. 3142if test "${with_cxx+set}" = set; then 3143 withval="$with_cxx" 3144 cf_with_cxx=$withval 3145else 3146 cf_with_cxx=yes 3147fi; 3148echo "$as_me:3148: result: $cf_with_cxx" >&5 3149echo "${ECHO_T}$cf_with_cxx" >&6 3150if test "X$cf_with_cxx" = Xno ; then 3151 CXX="" 3152 GXX="" 3153else 3154 # with autoconf 2.13, we can change the error to a warning: 3155 ac_ext=cc 3156ac_cpp='$CXXCPP $CPPFLAGS' 3157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3158ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3160ac_main_return="return" 3161if test -n "$ac_tool_prefix"; then 3162 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3163 do 3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3166echo "$as_me:3166: checking for $ac_word" >&5 3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3168if test "${ac_cv_prog_CXX+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 if test -n "$CXX"; then 3172 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3173else 3174 ac_save_IFS=$IFS; IFS=$ac_path_separator 3175ac_dummy="$PATH" 3176for ac_dir in $ac_dummy; do 3177 IFS=$ac_save_IFS 3178 test -z "$ac_dir" && ac_dir=. 3179 $as_executable_p "$ac_dir/$ac_word" || continue 3180ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3181echo "$as_me:3181: found $ac_dir/$ac_word" >&5 3182break 3183done 3184 3185fi 3186fi 3187CXX=$ac_cv_prog_CXX 3188if test -n "$CXX"; then 3189 echo "$as_me:3189: result: $CXX" >&5 3190echo "${ECHO_T}$CXX" >&6 3191else 3192 echo "$as_me:3192: result: no" >&5 3193echo "${ECHO_T}no" >&6 3194fi 3195 3196 test -n "$CXX" && break 3197 done 3198fi 3199if test -z "$CXX"; then 3200 ac_ct_CXX=$CXX 3201 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3202do 3203 # Extract the first word of "$ac_prog", so it can be a program name with args. 3204set dummy $ac_prog; ac_word=$2 3205echo "$as_me:3205: checking for $ac_word" >&5 3206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3207if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 if test -n "$ac_ct_CXX"; then 3211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3212else 3213 ac_save_IFS=$IFS; IFS=$ac_path_separator 3214ac_dummy="$PATH" 3215for ac_dir in $ac_dummy; do 3216 IFS=$ac_save_IFS 3217 test -z "$ac_dir" && ac_dir=. 3218 $as_executable_p "$ac_dir/$ac_word" || continue 3219ac_cv_prog_ac_ct_CXX="$ac_prog" 3220echo "$as_me:3220: found $ac_dir/$ac_word" >&5 3221break 3222done 3223 3224fi 3225fi 3226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3227if test -n "$ac_ct_CXX"; then 3228 echo "$as_me:3228: result: $ac_ct_CXX" >&5 3229echo "${ECHO_T}$ac_ct_CXX" >&6 3230else 3231 echo "$as_me:3231: result: no" >&5 3232echo "${ECHO_T}no" >&6 3233fi 3234 3235 test -n "$ac_ct_CXX" && break 3236done 3237test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3238 3239 CXX=$ac_ct_CXX 3240fi 3241 3242# Provide some information about the compiler. 3243echo "$as_me:3243:" \ 3244 "checking for C++ compiler version" >&5 3245ac_compiler=`set X $ac_compile; echo $2` 3246{ (eval echo "$as_me:3246: \"$ac_compiler --version </dev/null >&5\"") >&5 3247 (eval $ac_compiler --version </dev/null >&5) 2>&5 3248 ac_status=$? 3249 echo "$as_me:3249: \$? = $ac_status" >&5 3250 (exit "$ac_status"); } 3251{ (eval echo "$as_me:3251: \"$ac_compiler -v </dev/null >&5\"") >&5 3252 (eval $ac_compiler -v </dev/null >&5) 2>&5 3253 ac_status=$? 3254 echo "$as_me:3254: \$? = $ac_status" >&5 3255 (exit "$ac_status"); } 3256{ (eval echo "$as_me:3256: \"$ac_compiler -V </dev/null >&5\"") >&5 3257 (eval $ac_compiler -V </dev/null >&5) 2>&5 3258 ac_status=$? 3259 echo "$as_me:3259: \$? = $ac_status" >&5 3260 (exit "$ac_status"); } 3261 3262echo "$as_me:3262: checking whether we are using the GNU C++ compiler" >&5 3263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3265 echo $ECHO_N "(cached) $ECHO_C" >&6 3266else 3267 cat >"conftest.$ac_ext" <<_ACEOF 3268#line 3268 "configure" 3269#include "confdefs.h" 3270 3271int 3272main (void) 3273{ 3274#ifndef __GNUC__ 3275 choke me 3276#endif 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282rm -f "conftest.$ac_objext" 3283if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5 3284 (eval $ac_compile) 2>&5 3285 ac_status=$? 3286 echo "$as_me:3286: \$? = $ac_status" >&5 3287 (exit "$ac_status"); } && 3288 { ac_try='test -s "conftest.$ac_objext"' 3289 { (eval echo "$as_me:3289: \"$ac_try\"") >&5 3290 (eval $ac_try) 2>&5 3291 ac_status=$? 3292 echo "$as_me:3292: \$? = $ac_status" >&5 3293 (exit "$ac_status"); }; }; then 3294 ac_compiler_gnu=yes 3295else 3296 echo "$as_me: failed program was:" >&5 3297cat "conftest.$ac_ext" >&5 3298ac_compiler_gnu=no 3299fi 3300rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3301ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3302 3303fi 3304echo "$as_me:3304: result: $ac_cv_cxx_compiler_gnu" >&5 3305echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3306GXX=`test $ac_compiler_gnu = yes && echo yes` 3307ac_test_CXXFLAGS=${CXXFLAGS+set} 3308ac_save_CXXFLAGS=$CXXFLAGS 3309CXXFLAGS="-g" 3310echo "$as_me:3310: checking whether $CXX accepts -g" >&5 3311echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3312if test "${ac_cv_prog_cxx_g+set}" = set; then 3313 echo $ECHO_N "(cached) $ECHO_C" >&6 3314else 3315 cat >"conftest.$ac_ext" <<_ACEOF 3316#line 3316 "configure" 3317#include "confdefs.h" 3318 3319int 3320main (void) 3321{ 3322 3323 ; 3324 return 0; 3325} 3326_ACEOF 3327rm -f "conftest.$ac_objext" 3328if { (eval echo "$as_me:3328: \"$ac_compile\"") >&5 3329 (eval $ac_compile) 2>&5 3330 ac_status=$? 3331 echo "$as_me:3331: \$? = $ac_status" >&5 3332 (exit "$ac_status"); } && 3333 { ac_try='test -s "conftest.$ac_objext"' 3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5 3335 (eval $ac_try) 2>&5 3336 ac_status=$? 3337 echo "$as_me:3337: \$? = $ac_status" >&5 3338 (exit "$ac_status"); }; }; then 3339 ac_cv_prog_cxx_g=yes 3340else 3341 echo "$as_me: failed program was:" >&5 3342cat "conftest.$ac_ext" >&5 3343ac_cv_prog_cxx_g=no 3344fi 3345rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3346fi 3347echo "$as_me:3347: result: $ac_cv_prog_cxx_g" >&5 3348echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3349if test "$ac_test_CXXFLAGS" = set; then 3350 CXXFLAGS=$ac_save_CXXFLAGS 3351elif test $ac_cv_prog_cxx_g = yes; then 3352 if test "$GXX" = yes; then 3353 CXXFLAGS="-g -O2" 3354 else 3355 CXXFLAGS="-g" 3356 fi 3357else 3358 if test "$GXX" = yes; then 3359 CXXFLAGS="-O2" 3360 else 3361 CXXFLAGS= 3362 fi 3363fi 3364for ac_declaration in \ 3365 ''\ 3366 '#include <stdlib.h>' \ 3367 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3368 'extern "C" void std::exit (int); using std::exit;' \ 3369 'extern "C" void exit (int) throw ();' \ 3370 'extern "C" void exit (int);' \ 3371 'void exit (int);' 3372do 3373 cat >"conftest.$ac_ext" <<_ACEOF 3374#line 3374 "configure" 3375#include "confdefs.h" 3376#include <stdlib.h> 3377$ac_declaration 3378int 3379main (void) 3380{ 3381exit (42); 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386rm -f "conftest.$ac_objext" 3387if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5 3388 (eval $ac_compile) 2>&5 3389 ac_status=$? 3390 echo "$as_me:3390: \$? = $ac_status" >&5 3391 (exit "$ac_status"); } && 3392 { ac_try='test -s "conftest.$ac_objext"' 3393 { (eval echo "$as_me:3393: \"$ac_try\"") >&5 3394 (eval $ac_try) 2>&5 3395 ac_status=$? 3396 echo "$as_me:3396: \$? = $ac_status" >&5 3397 (exit "$ac_status"); }; }; then 3398 : 3399else 3400 echo "$as_me: failed program was:" >&5 3401cat "conftest.$ac_ext" >&5 3402continue 3403fi 3404rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3405 cat >"conftest.$ac_ext" <<_ACEOF 3406#line 3406 "configure" 3407#include "confdefs.h" 3408$ac_declaration 3409int 3410main (void) 3411{ 3412exit (42); 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417rm -f "conftest.$ac_objext" 3418if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 3419 (eval $ac_compile) 2>&5 3420 ac_status=$? 3421 echo "$as_me:3421: \$? = $ac_status" >&5 3422 (exit "$ac_status"); } && 3423 { ac_try='test -s "conftest.$ac_objext"' 3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5 3425 (eval $ac_try) 2>&5 3426 ac_status=$? 3427 echo "$as_me:3427: \$? = $ac_status" >&5 3428 (exit "$ac_status"); }; }; then 3429 break 3430else 3431 echo "$as_me: failed program was:" >&5 3432cat "conftest.$ac_ext" >&5 3433fi 3434rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3435done 3436rm -rf conftest* 3437if test -n "$ac_declaration"; then 3438 echo '#ifdef __cplusplus' >>confdefs.h 3439 echo "$ac_declaration" >>confdefs.h 3440 echo '#endif' >>confdefs.h 3441fi 3442 3443ac_ext=c 3444ac_cpp='$CPP $CPPFLAGS' 3445ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3446ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3447ac_compiler_gnu=$ac_cv_c_compiler_gnu 3448ac_main_return="return" 3449 3450 ac_ext=cc 3451ac_cpp='$CXXCPP $CPPFLAGS' 3452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3453ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3455ac_main_return="return" 3456 3457 if test "x$cf_with_cxx" != xno 3458 then 3459 # Several of the C++ configurations do not work, particularly when 3460 # cross-compiling (20140913 -TD) 3461 echo "$as_me:3461: checking if $CXX works" >&5 3462echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6 3463 3464 save_CPPFLAGS="$CPPFLAGS" 3465 eval cf_includedir=${includedir} 3466 CPPFLAGS="$CPPFLAGS -I${cf_includedir}" 3467 3468cat >"conftest.$ac_ext" <<_ACEOF 3469#line 3469 "configure" 3470#include "confdefs.h" 3471 3472#include <stdlib.h> 3473#include <stdio.h> 3474 3475int 3476main (void) 3477{ 3478 3479 printf("Hello world!\n") 3480 3481 ; 3482 return 0; 3483} 3484_ACEOF 3485rm -f "conftest.$ac_objext" 3486if { (eval echo "$as_me:3486: \"$ac_compile\"") >&5 3487 (eval $ac_compile) 2>&5 3488 ac_status=$? 3489 echo "$as_me:3489: \$? = $ac_status" >&5 3490 (exit "$ac_status"); } && 3491 { ac_try='test -s "conftest.$ac_objext"' 3492 { (eval echo "$as_me:3492: \"$ac_try\"") >&5 3493 (eval $ac_try) 2>&5 3494 ac_status=$? 3495 echo "$as_me:3495: \$? = $ac_status" >&5 3496 (exit "$ac_status"); }; }; then 3497 cf_cxx_works=yes 3498else 3499 echo "$as_me: failed program was:" >&5 3500cat "conftest.$ac_ext" >&5 3501cf_cxx_works=no 3502fi 3503rm -f "conftest.$ac_objext" "conftest.$ac_ext" 3504 CPPFLAGS="$save_CPPFLAGS" 3505 3506 echo "$as_me:3506: result: $cf_cxx_works" >&5 3507echo "${ECHO_T}$cf_cxx_works" >&6 3508 if test "x$cf_cxx_works" = xno 3509 then 3510 { echo "$as_me:3510: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5 3511echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;} 3512 cf_with_cxx=no; CXX=""; GXX=""; 3513 fi 3514 fi 3515 ac_ext=c 3516ac_cpp='$CPP $CPPFLAGS' 3517ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 3518ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 3519ac_compiler_gnu=$ac_cv_c_compiler_gnu 3520ac_main_return="return" 3521 3522 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank) 3523 if test "$CXX" = "g++" ; then 3524 # Extract the first word of "g++", so it can be a program name with args. 3525set dummy g++; ac_word=$2 3526echo "$as_me:3526: checking for $ac_word" >&5 3527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3528if test "${ac_cv_path_CXX+set}" = set; then 3529 echo $ECHO_N "(cached) $ECHO_C" >&6 3530else 3531 case $CXX in 3532 [\\/]* | ?:[\\/]*) 3533 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 3534 ;; 3535 *) 3536 ac_save_IFS=$IFS; IFS=$ac_path_separator 3537ac_dummy="$PATH" 3538for ac_dir in $ac_dummy; do 3539 IFS=$ac_save_IFS 3540 test -z "$ac_dir" && ac_dir=. 3541 if $as_executable_p "$ac_dir/$ac_word"; then 3542 ac_cv_path_CXX="$ac_dir/$ac_word" 3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5 3544 break 3545fi 3546done 3547 3548 ;; 3549esac 3550fi 3551CXX=$ac_cv_path_CXX 3552 3553if test -n "$CXX"; then 3554 echo "$as_me:3554: result: $CXX" >&5 3555echo "${ECHO_T}$CXX" >&6 3556else 3557 echo "$as_me:3557: result: no" >&5 3558echo "${ECHO_T}no" >&6 3559fi 3560 3561 fi 3562 case "x$CXX" in 3563 (x|xg++) 3564 { echo "$as_me:3564: WARNING: You don't have any C++ compiler, too bad" >&5 3565echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;} 3566 cf_with_cxx=no; CXX=""; GXX=""; 3567 ;; 3568 esac 3569fi 3570 3571GXX_VERSION=none 3572if test "$GXX" = yes; then 3573 echo "$as_me:3573: checking version of ${CXX:-g++}" >&5 3574echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6 3575 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 3576 if test -z "$GXX_VERSION" 3577 then 3578 GXX_VERSION=unknown 3579 GXX=no 3580 fi 3581 echo "$as_me:3581: result: $GXX_VERSION" >&5 3582echo "${ECHO_T}$GXX_VERSION" >&6 3583fi 3584 3585case "$GXX_VERSION" in 3586([1-9][0-9].*) 3587 ;; 3588(1.*|2.[0-6]*) 3589 { echo "$as_me:3589: WARNING: templates do not work" >&5 3590echo "$as_me: WARNING: templates do not work" >&2;} 3591 ;; 3592esac 3593 3594echo "$as_me:3594: checking if you want to build C++ binding and demo" >&5 3595echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6 3596 3597# Check whether --with-cxx-binding or --without-cxx-binding was given. 3598if test "${with_cxx_binding+set}" = set; then 3599 withval="$with_cxx_binding" 3600 cf_with_cxx_binding=$withval 3601else 3602 cf_with_cxx_binding=$cf_with_cxx 3603fi; 3604echo "$as_me:3604: result: $cf_with_cxx_binding" >&5 3605echo "${ECHO_T}$cf_with_cxx_binding" >&6 3606 3607echo "$as_me:3607: checking if you want to build with Ada" >&5 3608echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6 3609echo "$as_me:3609: result: $cf_with_ada" >&5 3610echo "${ECHO_T}$cf_with_ada" >&6 3611 3612echo "$as_me:3612: checking if you want to install terminal database" >&5 3613echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6 3614 3615# Check whether --enable-db-install or --disable-db-install was given. 3616if test "${enable_db_install+set}" = set; then 3617 enableval="$enable_db_install" 3618 cf_with_db_install=$enableval 3619else 3620 cf_with_db_install=yes 3621fi; 3622echo "$as_me:3622: result: $cf_with_db_install" >&5 3623echo "${ECHO_T}$cf_with_db_install" >&6 3624 3625echo "$as_me:3625: checking if you want to install manpages" >&5 3626echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6 3627 3628# Check whether --with-manpages or --without-manpages was given. 3629if test "${with_manpages+set}" = set; then 3630 withval="$with_manpages" 3631 cf_with_manpages=$withval 3632else 3633 cf_with_manpages=yes 3634fi; 3635echo "$as_me:3635: result: $cf_with_manpages" >&5 3636echo "${ECHO_T}$cf_with_manpages" >&6 3637 3638echo "$as_me:3638: checking if you want to build programs such as tic" >&5 3639echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6 3640 3641# Check whether --with-progs or --without-progs was given. 3642if test "${with_progs+set}" = set; then 3643 withval="$with_progs" 3644 cf_with_progs=$withval 3645else 3646 cf_with_progs=yes 3647fi; 3648echo "$as_me:3648: result: $cf_with_progs" >&5 3649echo "${ECHO_T}$cf_with_progs" >&6 3650 3651if test -f "$srcdir/tack/tack.h" ; then 3652 if test "x$cross_compiling" = xyes ; then 3653 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6 3654 3655echo "${as_me:-configure}:3655: testing ignoring tack because we are cross-compiling ..." 1>&5 3656 3657 cf_with_tack=no 3658 else 3659 echo "$as_me:3659: checking if you want to build the tack program" >&5 3660echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6 3661 3662# Check whether --with-tack or --without-tack was given. 3663if test "${with_tack+set}" = set; then 3664 withval="$with_tack" 3665 cf_with_tack=$withval 3666else 3667 cf_with_tack=$cf_with_progs 3668fi; 3669 echo "$as_me:3669: result: $cf_with_tack" >&5 3670echo "${ECHO_T}$cf_with_tack" >&6 3671 fi 3672else 3673 cf_with_tack=no 3674fi 3675 3676echo "$as_me:3676: checking if you want to build test-programs" >&5 3677echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6 3678 3679# Check whether --with-tests or --without-tests was given. 3680if test "${with_tests+set}" = set; then 3681 withval="$with_tests" 3682 cf_with_tests=$withval 3683else 3684 cf_with_tests=yes 3685fi; 3686echo "$as_me:3686: result: $cf_with_tests" >&5 3687echo "${ECHO_T}$cf_with_tests" >&6 3688 3689echo "$as_me:3689: checking if you wish to install curses.h" >&5 3690echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6 3691 3692# Check whether --with-curses-h or --without-curses-h was given. 3693if test "${with_curses_h+set}" = set; then 3694 withval="$with_curses_h" 3695 with_curses_h=$withval 3696else 3697 with_curses_h=yes 3698fi; 3699echo "$as_me:3699: result: $with_curses_h" >&5 3700echo "${ECHO_T}$with_curses_h" >&6 3701 3702modules_to_build="ncurses" 3703test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs" 3704test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack" 3705modules_to_build="$modules_to_build panel menu form" 3706 3707test "$program_prefix" != NONE && 3708 program_transform_name="s,^,$program_prefix,;$program_transform_name" 3709# Use a double $ so make ignores it. 3710test "$program_suffix" != NONE && 3711 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 3712# Double any \ or $. echo might interpret backslashes. 3713# By default was `s,x,x', remove it if useless. 3714cat <<\_ACEOF >conftest.sed 3715s/[\\$]/&&/g;s/;s,x,x,$// 3716_ACEOF 3717program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3718rm conftest.sed 3719 3720for ac_prog in mawk gawk nawk awk 3721do 3722 # Extract the first word of "$ac_prog", so it can be a program name with args. 3723set dummy $ac_prog; ac_word=$2 3724echo "$as_me:3724: checking for $ac_word" >&5 3725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3726if test "${ac_cv_prog_AWK+set}" = set; then 3727 echo $ECHO_N "(cached) $ECHO_C" >&6 3728else 3729 if test -n "$AWK"; then 3730 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3731else 3732 ac_save_IFS=$IFS; IFS=$ac_path_separator 3733ac_dummy="$PATH" 3734for ac_dir in $ac_dummy; do 3735 IFS=$ac_save_IFS 3736 test -z "$ac_dir" && ac_dir=. 3737 $as_executable_p "$ac_dir/$ac_word" || continue 3738ac_cv_prog_AWK="$ac_prog" 3739echo "$as_me:3739: found $ac_dir/$ac_word" >&5 3740break 3741done 3742 3743fi 3744fi 3745AWK=$ac_cv_prog_AWK 3746if test -n "$AWK"; then 3747 echo "$as_me:3747: result: $AWK" >&5 3748echo "${ECHO_T}$AWK" >&6 3749else 3750 echo "$as_me:3750: result: no" >&5 3751echo "${ECHO_T}no" >&6 3752fi 3753 3754 test -n "$AWK" && break 3755done 3756 3757test -z "$AWK" && { { echo "$as_me:3757: error: No awk program found" >&5 3758echo "$as_me: error: No awk program found" >&2;} 3759 { (exit 1); exit 1; }; } 3760 3761# Find a good install program. We prefer a C program (faster), 3762# so one script is as good as another. But avoid the broken or 3763# incompatible versions: 3764# SysV /etc/install, /usr/sbin/install 3765# SunOS /usr/etc/install 3766# IRIX /sbin/install 3767# AIX /bin/install 3768# AmigaOS /C/install, which installs bootblocks on floppy discs 3769# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3770# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3771# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3772# ./install, which can be erroneously created by make from ./install.sh. 3773echo "$as_me:3773: checking for a BSD compatible install" >&5 3774echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 3775if test -z "$INSTALL"; then 3776if test "${ac_cv_path_install+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 ac_save_IFS=$IFS; IFS=$ac_path_separator 3780 for ac_dir in $PATH; do 3781 IFS=$ac_save_IFS 3782 # Account for people who put trailing slashes in PATH elements. 3783 case $ac_dir/ in 3784 / | ./ | .// | /cC/* \ 3785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 3786 | /usr/ucb/* ) ;; 3787 *) 3788 # OSF1 and SCO ODT 3.0 have their own names for install. 3789 # Don't use installbsd from OSF since it installs stuff as root 3790 # by default. 3791 for ac_prog in ginstall scoinst install; do 3792 if $as_executable_p "$ac_dir/$ac_prog"; then 3793 if test $ac_prog = install && 3794 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3795 # AIX install. It has an incompatible calling convention. 3796 : 3797 elif test $ac_prog = install && 3798 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3799 # program-specific install script used by HP pwplus--don't use. 3800 : 3801 else 3802 ac_cv_path_install="$ac_dir/$ac_prog -c" 3803 break 2 3804 fi 3805 fi 3806 done 3807 ;; 3808 esac 3809 done 3810 3811fi 3812 if test "${ac_cv_path_install+set}" = set; then 3813 INSTALL=$ac_cv_path_install 3814 else 3815 # As a last resort, use the slow shell script. We don't cache a 3816 # path for INSTALL within a source directory, because that will 3817 # break other packages using the cache if that directory is 3818 # removed, or if the path is relative. 3819 INSTALL=$ac_install_sh 3820 fi 3821fi 3822echo "$as_me:3822: result: $INSTALL" >&5 3823echo "${ECHO_T}$INSTALL" >&6 3824 3825# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3826# It thinks the first close brace ends the variable substitution. 3827test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3828 3829test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3830 3831test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3832 3833case $INSTALL in 3834(/*) 3835 ;; 3836(*) 3837 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'` 3838 test -z "$cf_dir" && cf_dir=. 3839 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`" 3840 ;; 3841esac 3842 3843for ac_prog in lint cppcheck splint 3844do 3845 # Extract the first word of "$ac_prog", so it can be a program name with args. 3846set dummy $ac_prog; ac_word=$2 3847echo "$as_me:3847: checking for $ac_word" >&5 3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3849if test "${ac_cv_prog_LINT+set}" = set; then 3850 echo $ECHO_N "(cached) $ECHO_C" >&6 3851else 3852 if test -n "$LINT"; then 3853 ac_cv_prog_LINT="$LINT" # Let the user override the test. 3854else 3855 ac_save_IFS=$IFS; IFS=$ac_path_separator 3856ac_dummy="$PATH" 3857for ac_dir in $ac_dummy; do 3858 IFS=$ac_save_IFS 3859 test -z "$ac_dir" && ac_dir=. 3860 $as_executable_p "$ac_dir/$ac_word" || continue 3861ac_cv_prog_LINT="$ac_prog" 3862echo "$as_me:3862: found $ac_dir/$ac_word" >&5 3863break 3864done 3865 3866fi 3867fi 3868LINT=$ac_cv_prog_LINT 3869if test -n "$LINT"; then 3870 echo "$as_me:3870: result: $LINT" >&5 3871echo "${ECHO_T}$LINT" >&6 3872else 3873 echo "$as_me:3873: result: no" >&5 3874echo "${ECHO_T}no" >&6 3875fi 3876 3877 test -n "$LINT" && break 3878done 3879 3880case "x$LINT" in 3881(xcppcheck|x*/cppcheck) 3882 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" 3883 ;; 3884esac 3885 3886echo "$as_me:3886: checking whether ln -s works" >&5 3887echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3888LN_S=$as_ln_s 3889if test "$LN_S" = "ln -s"; then 3890 echo "$as_me:3890: result: yes" >&5 3891echo "${ECHO_T}yes" >&6 3892else 3893 echo "$as_me:3893: result: no, using $LN_S" >&5 3894echo "${ECHO_T}no, using $LN_S" >&6 3895fi 3896 3897echo "$as_me:3897: checking if $LN_S -f options work" >&5 3898echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6 3899 3900rm -f conf$$.src conf$$dst 3901echo >conf$$.dst 3902echo first >conf$$.src 3903if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then 3904 cf_prog_ln_sf=yes 3905else 3906 cf_prog_ln_sf=no 3907fi 3908rm -f conf$$.dst conf$$src 3909echo "$as_me:3909: result: $cf_prog_ln_sf" >&5 3910echo "${ECHO_T}$cf_prog_ln_sf" >&6 3911 3912test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f" 3913 3914echo "$as_me:3914: checking for long file names" >&5 3915echo $ECHO_N "checking for long file names... $ECHO_C" >&6 3916if test "${ac_cv_sys_long_file_names+set}" = set; then 3917 echo $ECHO_N "(cached) $ECHO_C" >&6 3918else 3919 ac_cv_sys_long_file_names=yes 3920# Test for long file names in all the places we know might matter: 3921# . the current directory, where building will happen 3922# $prefix/lib where we will be installing things 3923# $exec_prefix/lib likewise 3924# eval it to expand exec_prefix. 3925# $TMPDIR if set, where it might want to write temporary files 3926# if $TMPDIR is not set: 3927# /tmp where it might want to write temporary files 3928# /var/tmp likewise 3929# /usr/tmp likewise 3930if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 3931 ac_tmpdirs=$TMPDIR 3932else 3933 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 3934fi 3935for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do 3936 test -d "$ac_dir" || continue 3937 test -w "$ac_dir" || continue # It is less confusing to not echo anything here. 3938 ac_xdir=$ac_dir/cf$$ 3939 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 3940 ac_tf1=$ac_xdir/conftest9012345 3941 ac_tf2=$ac_xdir/conftest9012346 3942 (echo 1 >"$ac_tf1") 2>/dev/null 3943 (echo 2 >"$ac_tf2") 2>/dev/null 3944 ac_val=`cat "$ac_tf1" 2>/dev/null` 3945 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then 3946 ac_cv_sys_long_file_names=no 3947 rm -rf "$ac_xdir" 2>/dev/null 3948 break 3949 fi 3950 rm -rf "$ac_xdir" 2>/dev/null 3951done 3952fi 3953echo "$as_me:3953: result: $ac_cv_sys_long_file_names" >&5 3954echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 3955if test "$ac_cv_sys_long_file_names" = yes; then 3956 3957cat >>confdefs.h <<\EOF 3958#define HAVE_LONG_FILE_NAMES 1 3959EOF 3960 3961fi 3962 3963# Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case 3964# of package conflict. 3965cf_config_suffix= 3966 3967# Check whether --with-config-suffix or --without-config-suffix was given. 3968if test "${with_config_suffix+set}" = set; then 3969 withval="$with_config_suffix" 3970 case "x$withval" in 3971 (xyes|xno) 3972 { echo "$as_me:3972: WARNING: expected a value for config-suffix option" >&5 3973echo "$as_me: WARNING: expected a value for config-suffix option" >&2;} 3974 ;; 3975 (*) cf_config_suffix="$withval" 3976 ;; 3977 esac 3978fi; 3979 3980# If we find pkg-config, check if we should install the ".pc" files. 3981 3982echo "$as_me:3982: checking if you want to use pkg-config" >&5 3983echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6 3984 3985# Check whether --with-pkg-config or --without-pkg-config was given. 3986if test "${with_pkg_config+set}" = set; then 3987 withval="$with_pkg_config" 3988 cf_pkg_config=$withval 3989else 3990 cf_pkg_config=yes 3991fi; 3992echo "$as_me:3992: result: $cf_pkg_config" >&5 3993echo "${ECHO_T}$cf_pkg_config" >&6 3994 3995case "$cf_pkg_config" in 3996(no) 3997 PKG_CONFIG=none 3998 ;; 3999(yes) 4000 4001if test -n "$ac_tool_prefix"; then 4002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4003set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4004echo "$as_me:4004: checking for $ac_word" >&5 4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4006if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 case $PKG_CONFIG in 4010 [\\/]* | ?:[\\/]*) 4011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4012 ;; 4013 *) 4014 ac_save_IFS=$IFS; IFS=$ac_path_separator 4015ac_dummy="$PATH" 4016for ac_dir in $ac_dummy; do 4017 IFS=$ac_save_IFS 4018 test -z "$ac_dir" && ac_dir=. 4019 if $as_executable_p "$ac_dir/$ac_word"; then 4020 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 4021 echo "$as_me:4021: found $ac_dir/$ac_word" >&5 4022 break 4023fi 4024done 4025 4026 ;; 4027esac 4028fi 4029PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4030 4031if test -n "$PKG_CONFIG"; then 4032 echo "$as_me:4032: result: $PKG_CONFIG" >&5 4033echo "${ECHO_T}$PKG_CONFIG" >&6 4034else 4035 echo "$as_me:4035: result: no" >&5 4036echo "${ECHO_T}no" >&6 4037fi 4038 4039fi 4040if test -z "$ac_cv_path_PKG_CONFIG"; then 4041 ac_pt_PKG_CONFIG=$PKG_CONFIG 4042 # Extract the first word of "pkg-config", so it can be a program name with args. 4043set dummy pkg-config; ac_word=$2 4044echo "$as_me:4044: checking for $ac_word" >&5 4045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4046if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4047 echo $ECHO_N "(cached) $ECHO_C" >&6 4048else 4049 case $ac_pt_PKG_CONFIG in 4050 [\\/]* | ?:[\\/]*) 4051 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4052 ;; 4053 *) 4054 ac_save_IFS=$IFS; IFS=$ac_path_separator 4055ac_dummy="$PATH" 4056for ac_dir in $ac_dummy; do 4057 IFS=$ac_save_IFS 4058 test -z "$ac_dir" && ac_dir=. 4059 if $as_executable_p "$ac_dir/$ac_word"; then 4060 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word" 4061 echo "$as_me:4061: found $ac_dir/$ac_word" >&5 4062 break 4063fi 4064done 4065 4066 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none" 4067 ;; 4068esac 4069fi 4070ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4071 4072if test -n "$ac_pt_PKG_CONFIG"; then 4073 echo "$as_me:4073: result: $ac_pt_PKG_CONFIG" >&5 4074echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 4075else 4076 echo "$as_me:4076: result: no" >&5 4077echo "${ECHO_T}no" >&6 4078fi 4079 4080 PKG_CONFIG=$ac_pt_PKG_CONFIG 4081else 4082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4083fi 4084 4085 ;; 4086(*) 4087 PKG_CONFIG=$withval 4088 ;; 4089esac 4090 4091test -z "$PKG_CONFIG" && PKG_CONFIG=none 4092if test "$PKG_CONFIG" != none ; then 4093 4094if test "x$prefix" != xNONE; then 4095 cf_path_syntax="$prefix" 4096else 4097 cf_path_syntax="$ac_default_prefix" 4098fi 4099 4100case ".$PKG_CONFIG" in 4101(.\$\(*\)*|.\'*\'*) 4102 ;; 4103(..|./*|.\\*) 4104 ;; 4105(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4106 ;; 4107(.\$\{*prefix\}*|.\$\{*dir\}*) 4108 eval PKG_CONFIG="$PKG_CONFIG" 4109 case ".$PKG_CONFIG" in 4110 (.NONE/*) 4111 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 4112 ;; 4113 esac 4114 ;; 4115(.no|.NONE/*) 4116 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%` 4117 ;; 4118(*) 4119 { { echo "$as_me:4119: error: expected a pathname, not \"$PKG_CONFIG\"" >&5 4120echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;} 4121 { (exit 1); exit 1; }; } 4122 ;; 4123esac 4124 4125elif test "x$cf_pkg_config" != xno ; then 4126 { echo "$as_me:4126: WARNING: pkg-config is not installed" >&5 4127echo "$as_me: WARNING: pkg-config is not installed" >&2;} 4128fi 4129 4130case "$PKG_CONFIG" in 4131(no|none|yes) 4132 echo "$as_me:4132: checking for pkg-config library directory" >&5 4133echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6 4134 ;; 4135(*) 4136 echo "$as_me:4136: checking for $PKG_CONFIG library directory" >&5 4137echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6 4138 ;; 4139esac 4140 4141cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,'` 4142 4143# Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given. 4144if test "${with_pkg_config_libdir+set}" = set; then 4145 withval="$with_pkg_config_libdir" 4146 cf_search_path=$withval 4147else 4148 test "x$PKG_CONFIG" != xnone && cf_search_path=yes 4149fi; 4150 4151case x$cf_search_path in 4152(x/*) 4153 ;; 4154(xyes) 4155 cf_search_path= 4156 test -n "$verbose" && echo " auto..." 1>&6 4157 4158echo "${as_me:-configure}:4158: testing auto... ..." 1>&5 4159 4160 # Look for the library directory using the same prefix as the executable 4161 echo "$as_me:4161: checking for search-list" >&5 4162echo $ECHO_N "checking for search-list... $ECHO_C" >&6 4163 if test "x$PKG_CONFIG" = xnone 4164 then 4165 cf_path=$prefix 4166 else 4167 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'` 4168 cf_search_path=` 4169 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | awk "\ 4170/^Scanning directory #[1-9][0-9]* '.*'$/{ \ 4171 sub(\"^[^']*'\",\"\"); \ 4172 sub(\"'.*\",\"\"); \ 4173 printf \" %s\", \\$0; } \ 4174/trying path:/{ 4175 sub(\"^.* trying path: \",\"\"); 4176 sub(\" for no-such-package.*$\",\"\"); 4177 printf \" %s\", \\$0; 4178} 4179{ next; } \ 4180"` 4181 fi 4182 4183 if test -z "$cf_search_path" 4184 then 4185 # If you don't like using the default architecture, you have to specify 4186 # the intended library directory and corresponding compiler/linker 4187 # options. 4188 # 4189 # This case allows for Debian's 2014-flavor of multiarch, along with 4190 # the most common variations before that point. Some other variants 4191 # spell the directory differently, e.g., "pkg-config", and put it in 4192 # unusual places. 4193 # 4194 # pkg-config has always been poorly standardized, which is ironic... 4195 case x`(arch) 2>/dev/null` in 4196 (*64) 4197 cf_test_path="\ 4198 $cf_path/lib/*64-linux-gnu \ 4199 $cf_path/share \ 4200 $cf_path/lib64 \ 4201 $cf_path/lib32 \ 4202 $cf_path/lib" 4203 ;; 4204 (*) 4205 cf_test_path="\ 4206 $cf_path/lib/*-linux-gnu \ 4207 $cf_path/share \ 4208 $cf_path/lib32 \ 4209 $cf_path/lib \ 4210 $cf_path/libdata" 4211 ;; 4212 esac 4213 for cf_config in $cf_test_path 4214 do 4215 test -d "$cf_config/pkgconfig" && cf_search_path="$cf_search_path $cf_config/pkgconfig" 4216 done 4217 fi 4218 4219 echo "$as_me:4219: result: $cf_search_path" >&5 4220echo "${ECHO_T}$cf_search_path" >&6 4221 4222 ;; 4223(*) 4224 ;; 4225esac 4226 4227echo "$as_me:4227: checking for first directory" >&5 4228echo $ECHO_N "checking for first directory... $ECHO_C" >&6 4229cf_pkg_config_path=none 4230for cf_config in $cf_search_path 4231do 4232 if test -d "$cf_config" 4233 then 4234 cf_pkg_config_path=$cf_config 4235 break 4236 fi 4237done 4238echo "$as_me:4238: result: $cf_pkg_config_path" >&5 4239echo "${ECHO_T}$cf_pkg_config_path" >&6 4240 4241if test "x$cf_pkg_config_path" != xnone ; then 4242 # limit this to the first directory found 4243 PKG_CONFIG_LIBDIR="$cf_pkg_config_path" 4244fi 4245 4246if test "x$PKG_CONFIG" != xnone 4247then 4248 echo "$as_me:4248: checking if we should install .pc files for $PKG_CONFIG" >&5 4249echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6 4250else 4251 echo "$as_me:4251: checking if we should install .pc files" >&5 4252echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6 4253fi 4254 4255# Check whether --enable-pc-files or --disable-pc-files was given. 4256if test "${enable_pc_files+set}" = set; then 4257 enableval="$enable_pc_files" 4258 enable_pc_files=$enableval 4259else 4260 enable_pc_files=no 4261fi; 4262echo "$as_me:4262: result: $enable_pc_files" >&5 4263echo "${ECHO_T}$enable_pc_files" >&6 4264 4265if test "x$enable_pc_files" != xno 4266then 4267 MAKE_PC_FILES= 4268 case "x$PKG_CONFIG_LIBDIR" in 4269 (xno|xnone|xyes) 4270 { echo "$as_me:4270: WARNING: no PKG_CONFIG_LIBDIR was found" >&5 4271echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;} 4272 ;; 4273 (*) 4274 4275if test "x$prefix" != xNONE; then 4276 cf_path_syntax="$prefix" 4277else 4278 cf_path_syntax="$ac_default_prefix" 4279fi 4280 4281case ".$PKG_CONFIG_LIBDIR" in 4282(.\$\(*\)*|.\'*\'*) 4283 ;; 4284(..|./*|.\\*) 4285 ;; 4286(.[a-zA-Z]:[\\/]*) # OS/2 EMX 4287 ;; 4288(.\$\{*prefix\}*|.\$\{*dir\}*) 4289 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR" 4290 case ".$PKG_CONFIG_LIBDIR" in 4291 (.NONE/*) 4292 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%` 4293 ;; 4294 esac 4295 ;; 4296(.no|.NONE/*) 4297 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%` 4298 ;; 4299(*) 4300 { { echo "$as_me:4300: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5 4301echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;} 4302 { (exit 1); exit 1; }; } 4303 ;; 4304esac 4305 4306 ;; 4307 esac 4308else 4309 MAKE_PC_FILES="#" 4310fi 4311 4312if test -z "$MAKE_PC_FILES" 4313then 4314 echo "$as_me:4314: checking for suffix to add to pc-files" >&5 4315echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6 4316 4317# Check whether --with-pc-suffix or --without-pc-suffix was given. 4318if test "${with_pc_suffix+set}" = set; then 4319 withval="$with_pc_suffix" 4320 case "x$withval" in 4321 (xyes|xno) 4322 PC_MODULE_SUFFIX= 4323 ;; 4324 (*) PC_MODULE_SUFFIX="$withval" 4325 ;; 4326 esac 4327fi; 4328 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none 4329 echo "$as_me:4329: result: $PC_MODULE_SUFFIX" >&5 4330echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6 4331 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX= 4332 4333fi 4334 4335echo "$as_me:4335: checking if we should assume mixed-case filenames" >&5 4336echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6 4337 4338# Check whether --enable-mixed-case or --disable-mixed-case was given. 4339if test "${enable_mixed_case+set}" = set; then 4340 enableval="$enable_mixed_case" 4341 enable_mixedcase=$enableval 4342else 4343 enable_mixedcase=auto 4344fi; 4345echo "$as_me:4345: result: $enable_mixedcase" >&5 4346echo "${ECHO_T}$enable_mixedcase" >&6 4347if test "$enable_mixedcase" = "auto" ; then 4348 4349echo "$as_me:4349: checking if filesystem supports mixed-case filenames" >&5 4350echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 4351if test "${cf_cv_mixedcase+set}" = set; then 4352 echo $ECHO_N "(cached) $ECHO_C" >&6 4353else 4354 4355if test "$cross_compiling" = yes ; then 4356 case "$target_alias" in 4357 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*) 4358 cf_cv_mixedcase=no 4359 ;; 4360 (*) 4361 cf_cv_mixedcase=yes 4362 ;; 4363 esac 4364else 4365 rm -f conftest CONFTEST 4366 echo test >conftest 4367 if test -f CONFTEST ; then 4368 cf_cv_mixedcase=no 4369 else 4370 cf_cv_mixedcase=yes 4371 fi 4372 rm -f conftest CONFTEST 4373fi 4374 4375fi 4376echo "$as_me:4376: result: $cf_cv_mixedcase" >&5 4377echo "${ECHO_T}$cf_cv_mixedcase" >&6 4378test "$cf_cv_mixedcase" = yes && 4379cat >>confdefs.h <<\EOF 4380#define MIXEDCASE_FILENAMES 1 4381EOF 4382 4383else 4384 cf_cv_mixedcase=$enable_mixedcase 4385 if test "x$enable_mixedcase" = "xyes" ; then 4386 4387cat >>confdefs.h <<\EOF 4388#define MIXEDCASE_FILENAMES 1 4389EOF 4390 4391 fi 4392fi 4393 4394# do this after mixed-case option (tags/TAGS is not as important as tic). 4395echo "$as_me:4395: checking whether ${MAKE-make} sets \${MAKE}" >&5 4396echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 4397set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 4398if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400else 4401 cat >conftest.make <<\EOF 4402all: 4403 @echo 'ac_maketemp="${MAKE}"' 4404EOF 4405# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4406eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4407if test -n "$ac_maketemp"; then 4408 eval ac_cv_prog_make_${ac_make}_set=yes 4409else 4410 eval ac_cv_prog_make_${ac_make}_set=no 4411fi 4412rm -f conftest.make 4413fi 4414if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4415 echo "$as_me:4415: result: yes" >&5 4416echo "${ECHO_T}yes" >&6 4417 SET_MAKE= 4418else 4419 echo "$as_me:4419: result: no" >&5 4420echo "${ECHO_T}no" >&6 4421 SET_MAKE="MAKE=${MAKE-make}" 4422fi 4423 4424echo "$as_me:4424: checking for \".PHONY\" make-support" >&5 4425echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6 4426if test "${cf_cv_make_PHONY+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 4430 rm -rf conftest* 4431 ( 4432 mkdir conftest || exit 1 4433 cd conftest 4434 cat >makefile <<'CF_EOF' 4435.PHONY: always 4436DATA=0 4437always: always.out 4438 @echo "** making $@ $(DATA)" 4439once: once.out 4440 @echo "** making $@ $(DATA)" 4441always.out: 4442 @echo "** making $@ $(DATA)" 4443 echo $(DATA) > $@ 4444once.out: 4445 @echo "** making $@ $(DATA)" 4446 echo $(DATA) > $@ 4447CF_EOF 4448 for cf_data in 1 2 3 4449 do 4450 ${MAKE:-make} always DATA=$cf_data 4451 ${MAKE:-make} once DATA=$cf_data 4452 ${MAKE:-make} -t always once 4453 if test -f always ; then 4454 echo "no (case 1)" > ../conftest.tmp 4455 elif test ! -f always.out ; then 4456 echo "no (case 2)" > ../conftest.tmp 4457 elif test ! -f once.out ; then 4458 echo "no (case 3)" > ../conftest.tmp 4459 elif ! cmp -s always.out once.out ; then 4460 echo "no (case 4)" > ../conftest.tmp 4461 diff always.out once.out 4462 else 4463 cf_check="`cat always.out`" 4464 if test "x$cf_check" != "x$cf_data" ; then 4465 echo "no (case 5)" > ../conftest.tmp 4466 else 4467 echo yes > ../conftest.tmp 4468 rm -f ./*.out 4469 continue 4470 fi 4471 fi 4472 break 4473 done 4474 ) >&5 2>&1 4475 cf_cv_make_PHONY="`cat conftest.tmp`" 4476 rm -rf conftest* 4477 4478fi 4479echo "$as_me:4479: result: $cf_cv_make_PHONY" >&5 4480echo "${ECHO_T}$cf_cv_make_PHONY" >&6 4481MAKE_NO_PHONY="#" 4482MAKE_PHONY="#" 4483test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY= 4484test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY= 4485 4486for ac_prog in exctags ctags 4487do 4488 # Extract the first word of "$ac_prog", so it can be a program name with args. 4489set dummy $ac_prog; ac_word=$2 4490echo "$as_me:4490: checking for $ac_word" >&5 4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4492if test "${ac_cv_prog_CTAGS+set}" = set; then 4493 echo $ECHO_N "(cached) $ECHO_C" >&6 4494else 4495 if test -n "$CTAGS"; then 4496 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 4497else 4498 ac_save_IFS=$IFS; IFS=$ac_path_separator 4499ac_dummy="$PATH" 4500for ac_dir in $ac_dummy; do 4501 IFS=$ac_save_IFS 4502 test -z "$ac_dir" && ac_dir=. 4503 $as_executable_p "$ac_dir/$ac_word" || continue 4504ac_cv_prog_CTAGS="$ac_prog" 4505echo "$as_me:4505: found $ac_dir/$ac_word" >&5 4506break 4507done 4508 4509fi 4510fi 4511CTAGS=$ac_cv_prog_CTAGS 4512if test -n "$CTAGS"; then 4513 echo "$as_me:4513: result: $CTAGS" >&5 4514echo "${ECHO_T}$CTAGS" >&6 4515else 4516 echo "$as_me:4516: result: no" >&5 4517echo "${ECHO_T}no" >&6 4518fi 4519 4520 test -n "$CTAGS" && break 4521done 4522 4523for ac_prog in exetags etags 4524do 4525 # Extract the first word of "$ac_prog", so it can be a program name with args. 4526set dummy $ac_prog; ac_word=$2 4527echo "$as_me:4527: checking for $ac_word" >&5 4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4529if test "${ac_cv_prog_ETAGS+set}" = set; then 4530 echo $ECHO_N "(cached) $ECHO_C" >&6 4531else 4532 if test -n "$ETAGS"; then 4533 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 4534else 4535 ac_save_IFS=$IFS; IFS=$ac_path_separator 4536ac_dummy="$PATH" 4537for ac_dir in $ac_dummy; do 4538 IFS=$ac_save_IFS 4539 test -z "$ac_dir" && ac_dir=. 4540 $as_executable_p "$ac_dir/$ac_word" || continue 4541ac_cv_prog_ETAGS="$ac_prog" 4542echo "$as_me:4542: found $ac_dir/$ac_word" >&5 4543break 4544done 4545 4546fi 4547fi 4548ETAGS=$ac_cv_prog_ETAGS 4549if test -n "$ETAGS"; then 4550 echo "$as_me:4550: result: $ETAGS" >&5 4551echo "${ECHO_T}$ETAGS" >&6 4552else 4553 echo "$as_me:4553: result: no" >&5 4554echo "${ECHO_T}no" >&6 4555fi 4556 4557 test -n "$ETAGS" && break 4558done 4559 4560# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 4561set dummy ${CTAGS:-ctags}; ac_word=$2 4562echo "$as_me:4562: checking for $ac_word" >&5 4563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4564if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 4565 echo $ECHO_N "(cached) $ECHO_C" >&6 4566else 4567 if test -n "$MAKE_LOWER_TAGS"; then 4568 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 4569else 4570 ac_save_IFS=$IFS; IFS=$ac_path_separator 4571ac_dummy="$PATH" 4572for ac_dir in $ac_dummy; do 4573 IFS=$ac_save_IFS 4574 test -z "$ac_dir" && ac_dir=. 4575 $as_executable_p "$ac_dir/$ac_word" || continue 4576ac_cv_prog_MAKE_LOWER_TAGS="yes" 4577echo "$as_me:4577: found $ac_dir/$ac_word" >&5 4578break 4579done 4580 4581 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 4582fi 4583fi 4584MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 4585if test -n "$MAKE_LOWER_TAGS"; then 4586 echo "$as_me:4586: result: $MAKE_LOWER_TAGS" >&5 4587echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 4588else 4589 echo "$as_me:4589: result: no" >&5 4590echo "${ECHO_T}no" >&6 4591fi 4592 4593if test "$cf_cv_mixedcase" = yes ; then 4594 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 4595set dummy ${ETAGS:-etags}; ac_word=$2 4596echo "$as_me:4596: checking for $ac_word" >&5 4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4598if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 4599 echo $ECHO_N "(cached) $ECHO_C" >&6 4600else 4601 if test -n "$MAKE_UPPER_TAGS"; then 4602 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 4603else 4604 ac_save_IFS=$IFS; IFS=$ac_path_separator 4605ac_dummy="$PATH" 4606for ac_dir in $ac_dummy; do 4607 IFS=$ac_save_IFS 4608 test -z "$ac_dir" && ac_dir=. 4609 $as_executable_p "$ac_dir/$ac_word" || continue 4610ac_cv_prog_MAKE_UPPER_TAGS="yes" 4611echo "$as_me:4611: found $ac_dir/$ac_word" >&5 4612break 4613done 4614 4615 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 4616fi 4617fi 4618MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 4619if test -n "$MAKE_UPPER_TAGS"; then 4620 echo "$as_me:4620: result: $MAKE_UPPER_TAGS" >&5 4621echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 4622else 4623 echo "$as_me:4623: result: no" >&5 4624echo "${ECHO_T}no" >&6 4625fi 4626 4627else 4628 MAKE_UPPER_TAGS=no 4629fi 4630 4631if test "$MAKE_UPPER_TAGS" = yes ; then 4632 MAKE_UPPER_TAGS= 4633else 4634 MAKE_UPPER_TAGS="#" 4635fi 4636 4637if test "$MAKE_LOWER_TAGS" = yes ; then 4638 MAKE_LOWER_TAGS= 4639else 4640 MAKE_LOWER_TAGS="#" 4641fi 4642 4643echo "$as_me:4643: checking for makeflags variable" >&5 4644echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 4645if test "${cf_cv_makeflags+set}" = set; then 4646 echo $ECHO_N "(cached) $ECHO_C" >&6 4647else 4648 4649 cf_cv_makeflags='' 4650 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 4651 do 4652 cat >cf_makeflags.tmp <<CF_EOF 4653SHELL = $SHELL 4654all : 4655 @ echo '.$cf_option' 4656CF_EOF 4657 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'` 4658 case "$cf_result" in 4659 (.*k|.*kw) 4660 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`" 4661 case "$cf_result" in 4662 (.*CC=*) cf_cv_makeflags= 4663 ;; 4664 (*) cf_cv_makeflags=$cf_option 4665 ;; 4666 esac 4667 break 4668 ;; 4669 (.-) 4670 ;; 4671 (*) 4672 4673echo "${as_me:-configure}:4673: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5 4674 4675 ;; 4676 esac 4677 done 4678 rm -f cf_makeflags.tmp 4679 4680fi 4681echo "$as_me:4681: result: $cf_cv_makeflags" >&5 4682echo "${ECHO_T}$cf_cv_makeflags" >&6 4683 4684if test -n "$ac_tool_prefix"; then 4685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4686set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4687echo "$as_me:4687: checking for $ac_word" >&5 4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4689if test "${ac_cv_prog_RANLIB+set}" = set; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 if test -n "$RANLIB"; then 4693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4694else 4695 ac_save_IFS=$IFS; IFS=$ac_path_separator 4696ac_dummy="$PATH" 4697for ac_dir in $ac_dummy; do 4698 IFS=$ac_save_IFS 4699 test -z "$ac_dir" && ac_dir=. 4700 $as_executable_p "$ac_dir/$ac_word" || continue 4701ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4702echo "$as_me:4702: found $ac_dir/$ac_word" >&5 4703break 4704done 4705 4706fi 4707fi 4708RANLIB=$ac_cv_prog_RANLIB 4709if test -n "$RANLIB"; then 4710 echo "$as_me:4710: result: $RANLIB" >&5 4711echo "${ECHO_T}$RANLIB" >&6 4712else 4713 echo "$as_me:4713: result: no" >&5 4714echo "${ECHO_T}no" >&6 4715fi 4716 4717fi 4718if test -z "$ac_cv_prog_RANLIB"; then 4719 ac_ct_RANLIB=$RANLIB 4720 # Extract the first word of "ranlib", so it can be a program name with args. 4721set dummy ranlib; ac_word=$2 4722echo "$as_me:4722: checking for $ac_word" >&5 4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4724if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4725 echo $ECHO_N "(cached) $ECHO_C" >&6 4726else 4727 if test -n "$ac_ct_RANLIB"; then 4728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4729else 4730 ac_save_IFS=$IFS; IFS=$ac_path_separator 4731ac_dummy="$PATH" 4732for ac_dir in $ac_dummy; do 4733 IFS=$ac_save_IFS 4734 test -z "$ac_dir" && ac_dir=. 4735 $as_executable_p "$ac_dir/$ac_word" || continue 4736ac_cv_prog_ac_ct_RANLIB="ranlib" 4737echo "$as_me:4737: found $ac_dir/$ac_word" >&5 4738break 4739done 4740 4741 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'" 4742fi 4743fi 4744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4745if test -n "$ac_ct_RANLIB"; then 4746 echo "$as_me:4746: result: $ac_ct_RANLIB" >&5 4747echo "${ECHO_T}$ac_ct_RANLIB" >&6 4748else 4749 echo "$as_me:4749: result: no" >&5 4750echo "${ECHO_T}no" >&6 4751fi 4752 4753 RANLIB=$ac_ct_RANLIB 4754else 4755 RANLIB="$ac_cv_prog_RANLIB" 4756fi 4757 4758if test -n "$ac_tool_prefix"; then 4759 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 4760set dummy ${ac_tool_prefix}ld; ac_word=$2 4761echo "$as_me:4761: checking for $ac_word" >&5 4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4763if test "${ac_cv_prog_LD+set}" = set; then 4764 echo $ECHO_N "(cached) $ECHO_C" >&6 4765else 4766 if test -n "$LD"; then 4767 ac_cv_prog_LD="$LD" # Let the user override the test. 4768else 4769 ac_save_IFS=$IFS; IFS=$ac_path_separator 4770ac_dummy="$PATH" 4771for ac_dir in $ac_dummy; do 4772 IFS=$ac_save_IFS 4773 test -z "$ac_dir" && ac_dir=. 4774 $as_executable_p "$ac_dir/$ac_word" || continue 4775ac_cv_prog_LD="${ac_tool_prefix}ld" 4776echo "$as_me:4776: found $ac_dir/$ac_word" >&5 4777break 4778done 4779 4780fi 4781fi 4782LD=$ac_cv_prog_LD 4783if test -n "$LD"; then 4784 echo "$as_me:4784: result: $LD" >&5 4785echo "${ECHO_T}$LD" >&6 4786else 4787 echo "$as_me:4787: result: no" >&5 4788echo "${ECHO_T}no" >&6 4789fi 4790 4791fi 4792if test -z "$ac_cv_prog_LD"; then 4793 ac_ct_LD=$LD 4794 # Extract the first word of "ld", so it can be a program name with args. 4795set dummy ld; ac_word=$2 4796echo "$as_me:4796: checking for $ac_word" >&5 4797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4798if test "${ac_cv_prog_ac_ct_LD+set}" = set; then 4799 echo $ECHO_N "(cached) $ECHO_C" >&6 4800else 4801 if test -n "$ac_ct_LD"; then 4802 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 4803else 4804 ac_save_IFS=$IFS; IFS=$ac_path_separator 4805ac_dummy="$PATH" 4806for ac_dir in $ac_dummy; do 4807 IFS=$ac_save_IFS 4808 test -z "$ac_dir" && ac_dir=. 4809 $as_executable_p "$ac_dir/$ac_word" || continue 4810ac_cv_prog_ac_ct_LD="ld" 4811echo "$as_me:4811: found $ac_dir/$ac_word" >&5 4812break 4813done 4814 4815 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" 4816fi 4817fi 4818ac_ct_LD=$ac_cv_prog_ac_ct_LD 4819if test -n "$ac_ct_LD"; then 4820 echo "$as_me:4820: result: $ac_ct_LD" >&5 4821echo "${ECHO_T}$ac_ct_LD" >&6 4822else 4823 echo "$as_me:4823: result: no" >&5 4824echo "${ECHO_T}no" >&6 4825fi 4826 4827 LD=$ac_ct_LD 4828else 4829 LD="$ac_cv_prog_LD" 4830fi 4831 4832if test -n "$ac_tool_prefix"; then 4833 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4834set dummy ${ac_tool_prefix}ar; ac_word=$2 4835echo "$as_me:4835: checking for $ac_word" >&5 4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4837if test "${ac_cv_prog_AR+set}" = set; then 4838 echo $ECHO_N "(cached) $ECHO_C" >&6 4839else 4840 if test -n "$AR"; then 4841 ac_cv_prog_AR="$AR" # Let the user override the test. 4842else 4843 ac_save_IFS=$IFS; IFS=$ac_path_separator 4844ac_dummy="$PATH" 4845for ac_dir in $ac_dummy; do 4846 IFS=$ac_save_IFS 4847 test -z "$ac_dir" && ac_dir=. 4848 $as_executable_p "$ac_dir/$ac_word" || continue 4849ac_cv_prog_AR="${ac_tool_prefix}ar" 4850echo "$as_me:4850: found $ac_dir/$ac_word" >&5 4851break 4852done 4853 4854fi 4855fi 4856AR=$ac_cv_prog_AR 4857if test -n "$AR"; then 4858 echo "$as_me:4858: result: $AR" >&5 4859echo "${ECHO_T}$AR" >&6 4860else 4861 echo "$as_me:4861: result: no" >&5 4862echo "${ECHO_T}no" >&6 4863fi 4864 4865fi 4866if test -z "$ac_cv_prog_AR"; then 4867 ac_ct_AR=$AR 4868 # Extract the first word of "ar", so it can be a program name with args. 4869set dummy ar; ac_word=$2 4870echo "$as_me:4870: checking for $ac_word" >&5 4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4872if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4873 echo $ECHO_N "(cached) $ECHO_C" >&6 4874else 4875 if test -n "$ac_ct_AR"; then 4876 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4877else 4878 ac_save_IFS=$IFS; IFS=$ac_path_separator 4879ac_dummy="$PATH" 4880for ac_dir in $ac_dummy; do 4881 IFS=$ac_save_IFS 4882 test -z "$ac_dir" && ac_dir=. 4883 $as_executable_p "$ac_dir/$ac_word" || continue 4884ac_cv_prog_ac_ct_AR="ar" 4885echo "$as_me:4885: found $ac_dir/$ac_word" >&5 4886break 4887done 4888 4889 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 4890fi 4891fi 4892ac_ct_AR=$ac_cv_prog_ac_ct_AR 4893if test -n "$ac_ct_AR"; then 4894 echo "$as_me:4894: result: $ac_ct_AR" >&5 4895echo "${ECHO_T}$ac_ct_AR" >&6 4896else 4897 echo "$as_me:4897: result: no" >&5 4898echo "${ECHO_T}no" >&6 4899fi 4900 4901 AR=$ac_ct_AR 4902else 4903 AR="$ac_cv_prog_AR" 4904fi 4905 4906if test -n "$ac_tool_prefix"; then 4907 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 4908set dummy ${ac_tool_prefix}nm; ac_word=$2 4909echo "$as_me:4909: checking for $ac_word" >&5 4910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4911if test "${ac_cv_prog_NM+set}" = set; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 if test -n "$NM"; then 4915 ac_cv_prog_NM="$NM" # Let the user override the test. 4916else 4917 ac_save_IFS=$IFS; IFS=$ac_path_separator 4918ac_dummy="$PATH" 4919for ac_dir in $ac_dummy; do 4920 IFS=$ac_save_IFS 4921 test -z "$ac_dir" && ac_dir=. 4922 $as_executable_p "$ac_dir/$ac_word" || continue 4923ac_cv_prog_NM="${ac_tool_prefix}nm" 4924echo "$as_me:4924: found $ac_dir/$ac_word" >&5 4925break 4926done 4927 4928fi 4929fi 4930NM=$ac_cv_prog_NM 4931if test -n "$NM"; then 4932 echo "$as_me:4932: result: $NM" >&5 4933echo "${ECHO_T}$NM" >&6 4934else 4935 echo "$as_me:4935: result: no" >&5 4936echo "${ECHO_T}no" >&6 4937fi 4938 4939fi 4940if test -z "$ac_cv_prog_NM"; then 4941 ac_ct_NM=$NM 4942 # Extract the first word of "nm", so it can be a program name with args. 4943set dummy nm; ac_word=$2 4944echo "$as_me:4944: checking for $ac_word" >&5 4945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4946if test "${ac_cv_prog_ac_ct_NM+set}" = set; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948else 4949 if test -n "$ac_ct_NM"; then 4950 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 4951else 4952 ac_save_IFS=$IFS; IFS=$ac_path_separator 4953ac_dummy="$PATH" 4954for ac_dir in $ac_dummy; do 4955 IFS=$ac_save_IFS 4956 test -z "$ac_dir" && ac_dir=. 4957 $as_executable_p "$ac_dir/$ac_word" || continue 4958ac_cv_prog_ac_ct_NM="nm" 4959echo "$as_me:4959: found $ac_dir/$ac_word" >&5 4960break 4961done 4962 4963 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm" 4964fi 4965fi 4966ac_ct_NM=$ac_cv_prog_ac_ct_NM 4967if test -n "$ac_ct_NM"; then 4968 echo "$as_me:4968: result: $ac_ct_NM" >&5 4969echo "${ECHO_T}$ac_ct_NM" >&6 4970else 4971 echo "$as_me:4971: result: no" >&5 4972echo "${ECHO_T}no" >&6 4973fi 4974 4975 NM=$ac_ct_NM 4976else 4977 NM="$ac_cv_prog_NM" 4978fi 4979 4980if test -n "$ac_tool_prefix"; then 4981 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4982set dummy ${ac_tool_prefix}ar; ac_word=$2 4983echo "$as_me:4983: checking for $ac_word" >&5 4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4985if test "${ac_cv_prog_AR+set}" = set; then 4986 echo $ECHO_N "(cached) $ECHO_C" >&6 4987else 4988 if test -n "$AR"; then 4989 ac_cv_prog_AR="$AR" # Let the user override the test. 4990else 4991 ac_save_IFS=$IFS; IFS=$ac_path_separator 4992ac_dummy="$PATH" 4993for ac_dir in $ac_dummy; do 4994 IFS=$ac_save_IFS 4995 test -z "$ac_dir" && ac_dir=. 4996 $as_executable_p "$ac_dir/$ac_word" || continue 4997ac_cv_prog_AR="${ac_tool_prefix}ar" 4998echo "$as_me:4998: found $ac_dir/$ac_word" >&5 4999break 5000done 5001 5002fi 5003fi 5004AR=$ac_cv_prog_AR 5005if test -n "$AR"; then 5006 echo "$as_me:5006: result: $AR" >&5 5007echo "${ECHO_T}$AR" >&6 5008else 5009 echo "$as_me:5009: result: no" >&5 5010echo "${ECHO_T}no" >&6 5011fi 5012 5013fi 5014if test -z "$ac_cv_prog_AR"; then 5015 ac_ct_AR=$AR 5016 # Extract the first word of "ar", so it can be a program name with args. 5017set dummy ar; ac_word=$2 5018echo "$as_me:5018: checking for $ac_word" >&5 5019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5020if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5021 echo $ECHO_N "(cached) $ECHO_C" >&6 5022else 5023 if test -n "$ac_ct_AR"; then 5024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5025else 5026 ac_save_IFS=$IFS; IFS=$ac_path_separator 5027ac_dummy="$PATH" 5028for ac_dir in $ac_dummy; do 5029 IFS=$ac_save_IFS 5030 test -z "$ac_dir" && ac_dir=. 5031 $as_executable_p "$ac_dir/$ac_word" || continue 5032ac_cv_prog_ac_ct_AR="ar" 5033echo "$as_me:5033: found $ac_dir/$ac_word" >&5 5034break 5035done 5036 5037 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 5038fi 5039fi 5040ac_ct_AR=$ac_cv_prog_ac_ct_AR 5041if test -n "$ac_ct_AR"; then 5042 echo "$as_me:5042: result: $ac_ct_AR" >&5 5043echo "${ECHO_T}$ac_ct_AR" >&6 5044else 5045 echo "$as_me:5045: result: no" >&5 5046echo "${ECHO_T}no" >&6 5047fi 5048 5049 AR=$ac_ct_AR 5050else 5051 AR="$ac_cv_prog_AR" 5052fi 5053 5054echo "$as_me:5054: checking for options to update archives" >&5 5055echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6 5056if test "${cf_cv_ar_flags+set}" = set; then 5057 echo $ECHO_N "(cached) $ECHO_C" >&6 5058else 5059 5060 case "$cf_cv_system_name" in 5061 (*-msvc*) 5062 cf_cv_ar_flags='' 5063 cat >mk_static_lib.sh <<-EOF 5064 #!$SHELL 5065 MSVC_BIN="$AR" 5066 out="\$1" 5067 shift 5068 exec \$MSVC_BIN -out:"\$out" \$@ 5069 EOF 5070 chmod +x mk_static_lib.sh 5071 AR=`pwd`/mk_static_lib.sh 5072 ;; 5073 (*) 5074 cf_cv_ar_flags=unknown 5075 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv 5076 do 5077 5078 # check if $ARFLAGS already contains this choice 5079 if test "x$ARFLAGS" != "x" ; then 5080 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"` 5081 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then 5082 cf_cv_ar_flags= 5083 break 5084 fi 5085 fi 5086 5087 rm -f "conftest.$ac_cv_objext" 5088 rm -f conftest.a 5089 5090 cat >"conftest.$ac_ext" <<EOF 5091#line 5091 "configure" 5092int testdata[3] = { 123, 456, 789 }; 5093EOF 5094 if { (eval echo "$as_me:5094: \"$ac_compile\"") >&5 5095 (eval $ac_compile) 2>&5 5096 ac_status=$? 5097 echo "$as_me:5097: \$? = $ac_status" >&5 5098 (exit "$ac_status"); } ; then 5099 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5 5100 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null 5101 if test -f conftest.a ; then 5102 cf_cv_ar_flags="$cf_ar_flags" 5103 break 5104 fi 5105 else 5106 test -n "$verbose" && echo " cannot compile test-program" 1>&6 5107 5108echo "${as_me:-configure}:5108: testing cannot compile test-program ..." 1>&5 5109 5110 break 5111 fi 5112 done 5113 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext" 5114 ;; 5115 esac 5116 5117fi 5118echo "$as_me:5118: result: $cf_cv_ar_flags" >&5 5119echo "${ECHO_T}$cf_cv_ar_flags" >&6 5120 5121if test -n "$ARFLAGS" ; then 5122 if test -n "$cf_cv_ar_flags" ; then 5123 ARFLAGS="$ARFLAGS $cf_cv_ar_flags" 5124 fi 5125else 5126 ARFLAGS=$cf_cv_ar_flags 5127fi 5128 5129echo "$as_me:5129: checking if you have specified an install-prefix" >&5 5130echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6 5131 5132# Check whether --with-install-prefix or --without-install-prefix was given. 5133if test "${with_install_prefix+set}" = set; then 5134 withval="$with_install_prefix" 5135 case "x$withval" in 5136 (xyes|xno) 5137 ;; 5138 (*) DESTDIR="$withval" 5139 ;; 5140 esac 5141fi; 5142echo "$as_me:5142: result: $DESTDIR" >&5 5143echo "${ECHO_T}$DESTDIR" >&6 5144 5145############################################################################### 5146 5147# If we're cross-compiling, allow the user to override the tools and their 5148# options. The configure script is oriented toward identifying the host 5149# compiler, etc., but we need a build compiler to generate parts of the source. 5150 5151case "$cf_cv_system_name" in 5152(*-msvc*) 5153 LDFLAGS="$LDFLAGS user32.lib" 5154 export LDFLAGS 5155 ;; 5156esac 5157 5158if test "$cross_compiling" = yes ; then 5159 5160 # defaults that we might want to override 5161 : ${BUILD_CFLAGS:=''} 5162 : ${BUILD_CPPFLAGS:=''} 5163 : ${BUILD_LDFLAGS:=''} 5164 : ${BUILD_LIBS:=''} 5165 : ${BUILD_EXEEXT:='$x'} 5166 : ${BUILD_OBJEXT:='o'} 5167 5168# Check whether --with-build-cc or --without-build-cc was given. 5169if test "${with_build_cc+set}" = set; then 5170 withval="$with_build_cc" 5171 BUILD_CC="$withval" 5172else 5173 for ac_prog in gcc clang c99 c89 cc cl 5174do 5175 # Extract the first word of "$ac_prog", so it can be a program name with args. 5176set dummy $ac_prog; ac_word=$2 5177echo "$as_me:5177: checking for $ac_word" >&5 5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5179if test "${ac_cv_prog_BUILD_CC+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181else 5182 if test -n "$BUILD_CC"; then 5183 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5184else 5185 ac_save_IFS=$IFS; IFS=$ac_path_separator 5186ac_dummy="$PATH" 5187for ac_dir in $ac_dummy; do 5188 IFS=$ac_save_IFS 5189 test -z "$ac_dir" && ac_dir=. 5190 $as_executable_p "$ac_dir/$ac_word" || continue 5191ac_cv_prog_BUILD_CC="$ac_prog" 5192echo "$as_me:5192: found $ac_dir/$ac_word" >&5 5193break 5194done 5195 5196fi 5197fi 5198BUILD_CC=$ac_cv_prog_BUILD_CC 5199if test -n "$BUILD_CC"; then 5200 echo "$as_me:5200: result: $BUILD_CC" >&5 5201echo "${ECHO_T}$BUILD_CC" >&6 5202else 5203 echo "$as_me:5203: result: no" >&5 5204echo "${ECHO_T}no" >&6 5205fi 5206 5207 test -n "$BUILD_CC" && break 5208done 5209test -n "$BUILD_CC" || BUILD_CC="none" 5210 5211fi; 5212 echo "$as_me:5212: checking for native build C compiler" >&5 5213echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6 5214 echo "$as_me:5214: result: $BUILD_CC" >&5 5215echo "${ECHO_T}$BUILD_CC" >&6 5216 5217 echo "$as_me:5217: checking for native build C preprocessor" >&5 5218echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6 5219 5220# Check whether --with-build-cpp or --without-build-cpp was given. 5221if test "${with_build_cpp+set}" = set; then 5222 withval="$with_build_cpp" 5223 BUILD_CPP="$withval" 5224else 5225 BUILD_CPP='${BUILD_CC} -E' 5226fi; 5227 echo "$as_me:5227: result: $BUILD_CPP" >&5 5228echo "${ECHO_T}$BUILD_CPP" >&6 5229 5230 echo "$as_me:5230: checking for native build C flags" >&5 5231echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6 5232 5233# Check whether --with-build-cflags or --without-build-cflags was given. 5234if test "${with_build_cflags+set}" = set; then 5235 withval="$with_build_cflags" 5236 BUILD_CFLAGS="$withval" 5237fi; 5238 echo "$as_me:5238: result: $BUILD_CFLAGS" >&5 5239echo "${ECHO_T}$BUILD_CFLAGS" >&6 5240 5241 echo "$as_me:5241: checking for native build C preprocessor-flags" >&5 5242echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6 5243 5244# Check whether --with-build-cppflags or --without-build-cppflags was given. 5245if test "${with_build_cppflags+set}" = set; then 5246 withval="$with_build_cppflags" 5247 BUILD_CPPFLAGS="$withval" 5248fi; 5249 echo "$as_me:5249: result: $BUILD_CPPFLAGS" >&5 5250echo "${ECHO_T}$BUILD_CPPFLAGS" >&6 5251 5252 echo "$as_me:5252: checking for native build linker-flags" >&5 5253echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6 5254 5255# Check whether --with-build-ldflags or --without-build-ldflags was given. 5256if test "${with_build_ldflags+set}" = set; then 5257 withval="$with_build_ldflags" 5258 BUILD_LDFLAGS="$withval" 5259fi; 5260 echo "$as_me:5260: result: $BUILD_LDFLAGS" >&5 5261echo "${ECHO_T}$BUILD_LDFLAGS" >&6 5262 5263 echo "$as_me:5263: checking for native build linker-libraries" >&5 5264echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6 5265 5266# Check whether --with-build-libs or --without-build-libs was given. 5267if test "${with_build_libs+set}" = set; then 5268 withval="$with_build_libs" 5269 BUILD_LIBS="$withval" 5270fi; 5271 echo "$as_me:5271: result: $BUILD_LIBS" >&5 5272echo "${ECHO_T}$BUILD_LIBS" >&6 5273 5274 # this assumes we're on Unix. 5275 BUILD_EXEEXT= 5276 BUILD_OBJEXT=o 5277 5278 : ${BUILD_CC:='${CC}'} 5279 5280 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then 5281 { { echo "$as_me:5281: error: Cross-build requires two compilers. 5282Use --with-build-cc to specify the native compiler." >&5 5283echo "$as_me: error: Cross-build requires two compilers. 5284Use --with-build-cc to specify the native compiler." >&2;} 5285 { (exit 1); exit 1; }; } 5286 fi 5287 5288else 5289 : ${BUILD_CC:='${CC}'} 5290 : ${BUILD_CPP:='${CPP}'} 5291 : ${BUILD_CFLAGS:='${CFLAGS}'} 5292 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'} 5293 : ${BUILD_LDFLAGS:='${LDFLAGS}'} 5294 : ${BUILD_LIBS:='${LIBS}'} 5295 : ${BUILD_EXEEXT:='$x'} 5296 : ${BUILD_OBJEXT:='o'} 5297fi 5298 5299############################################################################### 5300 5301### Options to allow the user to specify the set of libraries which are used. 5302### Use "--without-normal --with-shared" to allow the default model to be 5303### shared, for example. 5304cf_list_models="" 5305 5306echo "$as_me:5306: checking if libtool -version-number should be used" >&5 5307echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6 5308 5309# Check whether --enable-libtool-version or --disable-libtool-version was given. 5310if test "${enable_libtool_version+set}" = set; then 5311 enableval="$enable_libtool_version" 5312 test "$enableval" != no && enableval=yes 5313 if test "$enableval" != "yes" ; then 5314 cf_libtool_version=no 5315 else 5316 cf_libtool_version=yes 5317 fi 5318else 5319 enableval=yes 5320 cf_libtool_version=yes 5321 5322fi; 5323echo "$as_me:5323: result: $cf_libtool_version" >&5 5324echo "${ECHO_T}$cf_libtool_version" >&6 5325 5326if test "$cf_libtool_version" = yes ; then 5327 LIBTOOL_VERSION="-version-number" 5328else 5329 LIBTOOL_VERSION="-version-info" 5330 case "x$VERSION" in 5331 (x) 5332 { echo "$as_me:5332: WARNING: VERSION was not set" >&5 5333echo "$as_me: WARNING: VERSION was not set" >&2;} 5334 ;; 5335 (x*.*.*) 5336 ABI_VERSION="$VERSION" 5337 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6 5338 5339echo "${as_me:-configure}:5339: testing ABI_VERSION: $ABI_VERSION ..." 1>&5 5340 5341 ;; 5342 (x*:*:*) 5343 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'` 5344 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6 5345 5346echo "${as_me:-configure}:5346: testing ABI_VERSION: $ABI_VERSION ..." 1>&5 5347 5348 ;; 5349 (*) 5350 { echo "$as_me:5350: WARNING: unexpected VERSION value: $VERSION" >&5 5351echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;} 5352 ;; 5353 esac 5354fi 5355 5356LIBTOOL= 5357 5358# common library maintenance symbols that are convenient for libtool scripts: 5359LIB_CREATE='${AR} -cr' 5360LIB_OBJECT='${OBJECTS}' 5361LIB_SUFFIX=.a 5362LIB_PREP="$RANLIB" 5363 5364# symbols used to prop libtool up to enable it to determine what it should be 5365# doing: 5366LIB_CLEAN= 5367LIB_COMPILE= 5368LIB_LINK='${CC}' 5369LIB_INSTALL= 5370LIB_UNINSTALL= 5371 5372echo "$as_me:5372: checking if you want to build libraries with libtool" >&5 5373echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6 5374 5375# Check whether --with-libtool or --without-libtool was given. 5376if test "${with_libtool+set}" = set; then 5377 withval="$with_libtool" 5378 with_libtool=$withval 5379else 5380 with_libtool=no 5381fi; 5382echo "$as_me:5382: result: $with_libtool" >&5 5383echo "${ECHO_T}$with_libtool" >&6 5384if test "$with_libtool" != "no"; then 5385 5386 if test "$with_libtool" != "yes" ; then 5387 5388if test "x$prefix" != xNONE; then 5389 cf_path_syntax="$prefix" 5390else 5391 cf_path_syntax="$ac_default_prefix" 5392fi 5393 5394case ".$with_libtool" in 5395(.\$\(*\)*|.\'*\'*) 5396 ;; 5397(..|./*|.\\*) 5398 ;; 5399(.[a-zA-Z]:[\\/]*) # OS/2 EMX 5400 ;; 5401(.\$\{*prefix\}*|.\$\{*dir\}*) 5402 eval with_libtool="$with_libtool" 5403 case ".$with_libtool" in 5404 (.NONE/*) 5405 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%` 5406 ;; 5407 esac 5408 ;; 5409(.no|.NONE/*) 5410 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%` 5411 ;; 5412(*) 5413 { { echo "$as_me:5413: error: expected a pathname, not \"$with_libtool\"" >&5 5414echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;} 5415 { (exit 1); exit 1; }; } 5416 ;; 5417esac 5418 5419 LIBTOOL=$with_libtool 5420 else 5421 if test -n "$ac_tool_prefix"; then 5422 for ac_prog in libtool glibtool 5423 do 5424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5425set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5426echo "$as_me:5426: checking for $ac_word" >&5 5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5428if test "${ac_cv_prog_LIBTOOL+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430else 5431 if test -n "$LIBTOOL"; then 5432 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test. 5433else 5434 ac_save_IFS=$IFS; IFS=$ac_path_separator 5435ac_dummy="$PATH" 5436for ac_dir in $ac_dummy; do 5437 IFS=$ac_save_IFS 5438 test -z "$ac_dir" && ac_dir=. 5439 $as_executable_p "$ac_dir/$ac_word" || continue 5440ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog" 5441echo "$as_me:5441: found $ac_dir/$ac_word" >&5 5442break 5443done 5444 5445fi 5446fi 5447LIBTOOL=$ac_cv_prog_LIBTOOL 5448if test -n "$LIBTOOL"; then 5449 echo "$as_me:5449: result: $LIBTOOL" >&5 5450echo "${ECHO_T}$LIBTOOL" >&6 5451else 5452 echo "$as_me:5452: result: no" >&5 5453echo "${ECHO_T}no" >&6 5454fi 5455 5456 test -n "$LIBTOOL" && break 5457 done 5458fi 5459if test -z "$LIBTOOL"; then 5460 ac_ct_LIBTOOL=$LIBTOOL 5461 for ac_prog in libtool glibtool 5462do 5463 # Extract the first word of "$ac_prog", so it can be a program name with args. 5464set dummy $ac_prog; ac_word=$2 5465echo "$as_me:5465: checking for $ac_word" >&5 5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5467if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then 5468 echo $ECHO_N "(cached) $ECHO_C" >&6 5469else 5470 if test -n "$ac_ct_LIBTOOL"; then 5471 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test. 5472else 5473 ac_save_IFS=$IFS; IFS=$ac_path_separator 5474ac_dummy="$PATH" 5475for ac_dir in $ac_dummy; do 5476 IFS=$ac_save_IFS 5477 test -z "$ac_dir" && ac_dir=. 5478 $as_executable_p "$ac_dir/$ac_word" || continue 5479ac_cv_prog_ac_ct_LIBTOOL="$ac_prog" 5480echo "$as_me:5480: found $ac_dir/$ac_word" >&5 5481break 5482done 5483 5484fi 5485fi 5486ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL 5487if test -n "$ac_ct_LIBTOOL"; then 5488 echo "$as_me:5488: result: $ac_ct_LIBTOOL" >&5 5489echo "${ECHO_T}$ac_ct_LIBTOOL" >&6 5490else 5491 echo "$as_me:5491: result: no" >&5 5492echo "${ECHO_T}no" >&6 5493fi 5494 5495 test -n "$ac_ct_LIBTOOL" && break 5496done 5497test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none" 5498 5499 LIBTOOL=$ac_ct_LIBTOOL 5500fi 5501 5502if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5503then 5504 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.].*//'` 5505else 5506 cf_cv_libtool_version= 5507fi 5508test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5509 5510 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool 5511 then 5512 5513unset ac_cv_prog_ac_ct_LIBTOOL 5514unset ac_ct_LIBTOOL 5515unset LIBTOOL 5516 5517 if test -n "$ac_tool_prefix"; then 5518 for ac_prog in glibtool 5519 do 5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5521set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5522echo "$as_me:5522: checking for $ac_word" >&5 5523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5524if test "${ac_cv_prog_LIBTOOL+set}" = set; then 5525 echo $ECHO_N "(cached) $ECHO_C" >&6 5526else 5527 if test -n "$LIBTOOL"; then 5528 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test. 5529else 5530 ac_save_IFS=$IFS; IFS=$ac_path_separator 5531ac_dummy="$PATH" 5532for ac_dir in $ac_dummy; do 5533 IFS=$ac_save_IFS 5534 test -z "$ac_dir" && ac_dir=. 5535 $as_executable_p "$ac_dir/$ac_word" || continue 5536ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog" 5537echo "$as_me:5537: found $ac_dir/$ac_word" >&5 5538break 5539done 5540 5541fi 5542fi 5543LIBTOOL=$ac_cv_prog_LIBTOOL 5544if test -n "$LIBTOOL"; then 5545 echo "$as_me:5545: result: $LIBTOOL" >&5 5546echo "${ECHO_T}$LIBTOOL" >&6 5547else 5548 echo "$as_me:5548: result: no" >&5 5549echo "${ECHO_T}no" >&6 5550fi 5551 5552 test -n "$LIBTOOL" && break 5553 done 5554fi 5555if test -z "$LIBTOOL"; then 5556 ac_ct_LIBTOOL=$LIBTOOL 5557 for ac_prog in glibtool 5558do 5559 # Extract the first word of "$ac_prog", so it can be a program name with args. 5560set dummy $ac_prog; ac_word=$2 5561echo "$as_me:5561: checking for $ac_word" >&5 5562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5563if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then 5564 echo $ECHO_N "(cached) $ECHO_C" >&6 5565else 5566 if test -n "$ac_ct_LIBTOOL"; then 5567 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test. 5568else 5569 ac_save_IFS=$IFS; IFS=$ac_path_separator 5570ac_dummy="$PATH" 5571for ac_dir in $ac_dummy; do 5572 IFS=$ac_save_IFS 5573 test -z "$ac_dir" && ac_dir=. 5574 $as_executable_p "$ac_dir/$ac_word" || continue 5575ac_cv_prog_ac_ct_LIBTOOL="$ac_prog" 5576echo "$as_me:5576: found $ac_dir/$ac_word" >&5 5577break 5578done 5579 5580fi 5581fi 5582ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL 5583if test -n "$ac_ct_LIBTOOL"; then 5584 echo "$as_me:5584: result: $ac_ct_LIBTOOL" >&5 5585echo "${ECHO_T}$ac_ct_LIBTOOL" >&6 5586else 5587 echo "$as_me:5587: result: no" >&5 5588echo "${ECHO_T}no" >&6 5589fi 5590 5591 test -n "$ac_ct_LIBTOOL" && break 5592done 5593test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none" 5594 5595 LIBTOOL=$ac_ct_LIBTOOL 5596fi 5597 5598if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5599then 5600 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.].*//'` 5601else 5602 cf_cv_libtool_version= 5603fi 5604test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5605 5606 fi 5607 fi 5608 if test -z "$LIBTOOL" ; then 5609 { { echo "$as_me:5609: error: Cannot find libtool" >&5 5610echo "$as_me: error: Cannot find libtool" >&2;} 5611 { (exit 1); exit 1; }; } 5612 fi 5613 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o' 5614 LIB_OBJECT='${OBJECTS:.o=.lo}' 5615 LIB_SUFFIX=.la 5616 LIB_CLEAN='${LIBTOOL} --mode=clean' 5617 LIB_COMPILE='${LIBTOOL} --mode=compile' 5618 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}' 5619 LIB_INSTALL='${LIBTOOL} --mode=install' 5620 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall' 5621 LIB_PREP=: 5622 5623if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5624then 5625 echo "$as_me:5625: checking version of $LIBTOOL" >&5 5626echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6 5627 5628if test -n "$LIBTOOL" && test "$LIBTOOL" != none 5629then 5630 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.].*//'` 5631else 5632 cf_cv_libtool_version= 5633fi 5634test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version 5635 5636 echo "$as_me:5636: result: $cf_cv_libtool_version" >&5 5637echo "${ECHO_T}$cf_cv_libtool_version" >&6 5638 if test -n "$cf_cv_libtool_version" 5639 then 5640 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'` 5641 case "x$cf_check_libtool_version" in 5642 (*...GNU-libtool...*) 5643 ;; 5644 (*) 5645 { { echo "$as_me:5645: error: This is not GNU libtool" >&5 5646echo "$as_me: error: This is not GNU libtool" >&2;} 5647 { (exit 1); exit 1; }; } 5648 ;; 5649 esac 5650 else 5651 { { echo "$as_me:5651: error: No version found for $LIBTOOL" >&5 5652echo "$as_me: error: No version found for $LIBTOOL" >&2;} 5653 { (exit 1); exit 1; }; } 5654 fi 5655else 5656 { { echo "$as_me:5656: error: GNU libtool has not been found" >&5 5657echo "$as_me: error: GNU libtool has not been found" >&2;} 5658 { (exit 1); exit 1; }; } 5659fi 5660 5661 # special hack to add -no-undefined (which libtool should do for itself) 5662 LT_UNDEF= 5663 case "$cf_cv_system_name" in 5664 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7]) 5665 LT_UNDEF=-no-undefined 5666 ;; 5667 esac 5668 5669 # special hack to add --tag option for C++ compiler 5670 case "$cf_cv_libtool_version" in 5671 (1.[5-9]*|[2-9].[0-9.a-z]*) 5672 LIBTOOL_CXX="$LIBTOOL --tag=CXX" 5673 LIBTOOL="$LIBTOOL --tag=CC" 5674 ;; 5675 (*) 5676 LIBTOOL_CXX="$LIBTOOL" 5677 ;; 5678 esac 5679else 5680 LIBTOOL="" 5681 LIBTOOL_CXX="" 5682fi 5683 5684test -z "$LIBTOOL" && ECHO_LT= 5685 5686if test "$with_libtool" != "no" ; then 5687 5688cf_list_models="$cf_list_models libtool" 5689 5690else 5691 5692echo "$as_me:5692: checking if you want to build shared libraries" >&5 5693echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6 5694 5695# Check whether --with-shared or --without-shared was given. 5696if test "${with_shared+set}" = set; then 5697 withval="$with_shared" 5698 with_shared=$withval 5699else 5700 with_shared=no 5701fi; 5702echo "$as_me:5702: result: $with_shared" >&5 5703echo "${ECHO_T}$with_shared" >&6 5704test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared" 5705 5706echo "$as_me:5706: checking if you want to build static libraries" >&5 5707echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6 5708 5709# Check whether --with-normal or --without-normal was given. 5710if test "${with_normal+set}" = set; then 5711 withval="$with_normal" 5712 with_normal=$withval 5713else 5714 with_normal=yes 5715fi; 5716echo "$as_me:5716: result: $with_normal" >&5 5717echo "${ECHO_T}$with_normal" >&6 5718test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal" 5719 5720echo "$as_me:5720: checking if you want to build debug libraries" >&5 5721echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6 5722 5723# Check whether --with-debug or --without-debug was given. 5724if test "${with_debug+set}" = set; then 5725 withval="$with_debug" 5726 with_debug=$withval 5727else 5728 with_debug=yes 5729fi; 5730echo "$as_me:5730: result: $with_debug" >&5 5731echo "${ECHO_T}$with_debug" >&6 5732test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug" 5733 5734echo "$as_me:5734: checking if you want to build profiling libraries" >&5 5735echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6 5736 5737# Check whether --with-profile or --without-profile was given. 5738if test "${with_profile+set}" = set; then 5739 withval="$with_profile" 5740 with_profile=$withval 5741else 5742 with_profile=no 5743fi; 5744echo "$as_me:5744: result: $with_profile" >&5 5745echo "${ECHO_T}$with_profile" >&6 5746test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile" 5747 5748fi 5749 5750if test "X$cf_with_cxx_binding" != Xno; then 5751if test "x$with_shared" = "xyes"; then 5752echo "$as_me:5752: checking if you want to build C++ shared libraries" >&5 5753echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6 5754 5755# Check whether --with-cxx-shared or --without-cxx-shared was given. 5756if test "${with_cxx_shared+set}" = set; then 5757 withval="$with_cxx_shared" 5758 with_shared_cxx=$withval 5759else 5760 with_shared_cxx=no 5761fi; 5762echo "$as_me:5762: result: $with_shared_cxx" >&5 5763echo "${ECHO_T}$with_shared_cxx" >&6 5764fi 5765fi 5766 5767############################################################################### 5768 5769echo "$as_me:5769: checking for specified models" >&5 5770echo $ECHO_N "checking for specified models... $ECHO_C" >&6 5771test -z "$cf_list_models" && cf_list_models=normal 5772test "$with_libtool" != "no" && cf_list_models=libtool 5773echo "$as_me:5773: result: $cf_list_models" >&5 5774echo "${ECHO_T}$cf_list_models" >&6 5775 5776### Use the first model as the default, and save its suffix for use in building 5777### up test-applications. 5778echo "$as_me:5778: checking for default model" >&5 5779echo $ECHO_N "checking for default model... $ECHO_C" >&6 5780DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'` 5781echo "$as_me:5781: result: $DFT_LWR_MODEL" >&5 5782echo "${ECHO_T}$DFT_LWR_MODEL" >&6 5783 5784DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 5785 5786TICS_NAME=tic 5787 5788TINFO_NAME=tinfo 5789 5790LIB_NAME=ncurses 5791 5792LIB_DIR=../lib 5793LIB_2ND=../../lib 5794 5795echo "$as_me:5795: checking if you want to have a library-prefix" >&5 5796echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6 5797 5798# Check whether --with-lib-prefix or --without-lib-prefix was given. 5799if test "${with_lib_prefix+set}" = set; then 5800 withval="$with_lib_prefix" 5801 with_lib_prefix=$withval 5802else 5803 with_lib_prefix=auto 5804fi; 5805echo "$as_me:5805: result: $with_lib_prefix" >&5 5806echo "${ECHO_T}$with_lib_prefix" >&6 5807 5808if test "$with_lib_prefix" = auto 5809then 5810 5811 case "$cf_cv_system_name" in 5812 (OS/2*|os2*) 5813 if test "$DFT_LWR_MODEL" = libtool; then 5814 LIB_PREFIX='lib' 5815 else 5816 LIB_PREFIX='' 5817 fi 5818 ;; 5819 (*-msvc*) 5820 LIB_PREFIX='' 5821 ;; 5822 (*) LIB_PREFIX='lib' 5823 ;; 5824 esac 5825cf_prefix=$LIB_PREFIX 5826 5827elif test "$with_lib_prefix" = no 5828then 5829 LIB_PREFIX= 5830else 5831 LIB_PREFIX=$with_lib_prefix 5832fi 5833 5834LIB_SUFFIX= 5835 5836 echo "$as_me:5836: checking for PATH separator" >&5 5837echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 5838 case "$cf_cv_system_name" in 5839 (os2*) PATH_SEPARATOR=';' ;; 5840 (*) ${PATH_SEPARATOR:=':'} ;; 5841 esac 5842 5843 echo "$as_me:5843: result: $PATH_SEPARATOR" >&5 5844echo "${ECHO_T}$PATH_SEPARATOR" >&6 5845 5846############################################################################### 5847 5848echo "$as_me:5848: checking if you want to build a separate terminfo library" >&5 5849echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6 5850 5851# Check whether --with-termlib or --without-termlib was given. 5852if test "${with_termlib+set}" = set; then 5853 withval="$with_termlib" 5854 with_termlib=$withval 5855else 5856 with_termlib=no 5857fi; 5858echo "$as_me:5858: result: $with_termlib" >&5 5859echo "${ECHO_T}$with_termlib" >&6 5860 5861echo "$as_me:5861: checking if you want to build a separate tic library" >&5 5862echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6 5863 5864# Check whether --with-ticlib or --without-ticlib was given. 5865if test "${with_ticlib+set}" = set; then 5866 withval="$with_ticlib" 5867 with_ticlib=$withval 5868else 5869 with_ticlib=no 5870fi; 5871echo "$as_me:5871: result: $with_ticlib" >&5 5872echo "${ECHO_T}$with_ticlib" >&6 5873 5874if test X"$CC_G_OPT" = X"" ; then 5875 CC_G_OPT='-g' 5876 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT='' 5877fi 5878 5879if test X"$CXX_G_OPT" = X"" ; then 5880 CXX_G_OPT='-g' 5881 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT='' 5882fi 5883 5884echo "$as_me:5884: checking for default loader flags" >&5 5885echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6 5886case "$DFT_LWR_MODEL" in 5887(libtool) LD_MODEL='' ;; 5888(normal) LD_MODEL='' ;; 5889(debug) LD_MODEL=$CC_G_OPT ;; 5890(profile) LD_MODEL='-pg';; 5891(shared) LD_MODEL='' ;; 5892esac 5893echo "$as_me:5893: result: $LD_MODEL" >&5 5894echo "${ECHO_T}$LD_MODEL" >&6 5895 5896case "$DFT_LWR_MODEL" in 5897(shared) 5898 5899echo "$as_me:5899: checking if rpath option should be used" >&5 5900echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6 5901 5902# Check whether --enable-rpath or --disable-rpath was given. 5903if test "${enable_rpath+set}" = set; then 5904 enableval="$enable_rpath" 5905 cf_cv_enable_rpath=$enableval 5906else 5907 cf_cv_enable_rpath=no 5908fi; 5909echo "$as_me:5909: result: $cf_cv_enable_rpath" >&5 5910echo "${ECHO_T}$cf_cv_enable_rpath" >&6 5911 5912echo "$as_me:5912: checking if shared libraries should be relinked during install" >&5 5913echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6 5914 5915# Check whether --enable-relink or --disable-relink was given. 5916if test "${enable_relink+set}" = set; then 5917 enableval="$enable_relink" 5918 cf_cv_do_relink=$enableval 5919else 5920 cf_cv_do_relink=yes 5921fi; 5922echo "$as_me:5922: result: $cf_cv_do_relink" >&5 5923echo "${ECHO_T}$cf_cv_do_relink" >&6 5924 ;; 5925esac 5926 5927# we will build libraries one-level down. 5928rel_builddir=.. 5929 5930LD_RPATH_OPT= 5931if test "x$cf_cv_enable_rpath" != xno 5932then 5933 echo "$as_me:5933: checking for an rpath option" >&5 5934echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6 5935 case "$cf_cv_system_name" in 5936 (irix*) 5937 if test "$GCC" = yes; then 5938 LD_RPATH_OPT="-Wl,-rpath," 5939 else 5940 LD_RPATH_OPT="-rpath " 5941 fi 5942 ;; 5943 (linux*|gnu*|k*bsd*-gnu|freebsd*) 5944 LD_RPATH_OPT="-Wl,-rpath," 5945 ;; 5946 (openbsd[2-9].*|mirbsd*) 5947 LD_RPATH_OPT="-Wl,-rpath," 5948 ;; 5949 (dragonfly*) 5950 LD_RPATH_OPT="-rpath " 5951 ;; 5952 (netbsd*) 5953 LD_RPATH_OPT="-Wl,-rpath," 5954 ;; 5955 (osf*|mls+*) 5956 LD_RPATH_OPT="-rpath " 5957 ;; 5958 (solaris2*) 5959 LD_RPATH_OPT="-R" 5960 ;; 5961 (*) 5962 ;; 5963 esac 5964 echo "$as_me:5964: result: $LD_RPATH_OPT" >&5 5965echo "${ECHO_T}$LD_RPATH_OPT" >&6 5966 5967 case "x$LD_RPATH_OPT" in 5968 (x-R*) 5969 echo "$as_me:5969: checking if we need a space after rpath option" >&5 5970echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6 5971 cf_save_LIBS="$LIBS" 5972 5973cf_add_libs="$LIBS" 5974# reverse order 5975cf_add_0lib= 5976for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 5977# filter duplicates 5978for cf_add_1lib in $cf_add_0lib; do 5979 for cf_add_2lib in $cf_add_libs; do 5980 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 5981 cf_add_1lib= 5982 break 5983 fi 5984 done 5985 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 5986done 5987LIBS="$cf_add_libs" 5988 5989 cat >"conftest.$ac_ext" <<_ACEOF 5990#line 5990 "configure" 5991#include "confdefs.h" 5992 5993int 5994main (void) 5995{ 5996 5997 ; 5998 return 0; 5999} 6000_ACEOF 6001rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6002if { (eval echo "$as_me:6002: \"$ac_link\"") >&5 6003 (eval $ac_link) 2>&5 6004 ac_status=$? 6005 echo "$as_me:6005: \$? = $ac_status" >&5 6006 (exit "$ac_status"); } && 6007 { ac_try='test -s "conftest$ac_exeext"' 6008 { (eval echo "$as_me:6008: \"$ac_try\"") >&5 6009 (eval $ac_try) 2>&5 6010 ac_status=$? 6011 echo "$as_me:6011: \$? = $ac_status" >&5 6012 (exit "$ac_status"); }; }; then 6013 cf_rpath_space=no 6014else 6015 echo "$as_me: failed program was:" >&5 6016cat "conftest.$ac_ext" >&5 6017cf_rpath_space=yes 6018fi 6019rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6020 LIBS="$cf_save_LIBS" 6021 echo "$as_me:6021: result: $cf_rpath_space" >&5 6022echo "${ECHO_T}$cf_rpath_space" >&6 6023 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT " 6024 ;; 6025 esac 6026fi 6027 6028 RM_SHARED_OPTS= 6029 LOCAL_LDFLAGS= 6030 LOCAL_LDFLAGS2= 6031 LD_SHARED_OPTS= 6032 INSTALL_LIB="-m 644" 6033 : ${rel_builddir:=.} 6034 6035 shlibdir=$libdir 6036 6037 MAKE_DLLS="#" 6038 6039 cf_cv_do_symlinks=no 6040 cf_ld_rpath_opt= 6041 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT" 6042 6043 echo "$as_me:6043: checking if release/abi version should be used for shared libs" >&5 6044echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6 6045 6046# Check whether --with-shlib-version or --without-shlib-version was given. 6047if test "${with_shlib_version+set}" = set; then 6048 withval="$with_shlib_version" 6049 test -z "$withval" && withval=auto 6050 case "$withval" in 6051 (yes) 6052 cf_cv_shlib_version=auto 6053 ;; 6054 (rel|abi|auto) 6055 cf_cv_shlib_version=$withval 6056 ;; 6057 (*) 6058 echo "$as_me:6058: result: $withval" >&5 6059echo "${ECHO_T}$withval" >&6 6060 { { echo "$as_me:6060: error: option value must be one of: rel, abi, or auto" >&5 6061echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;} 6062 { (exit 1); exit 1; }; } 6063 ;; 6064 esac 6065 6066else 6067 cf_cv_shlib_version=auto 6068fi; 6069 echo "$as_me:6069: result: $cf_cv_shlib_version" >&5 6070echo "${ECHO_T}$cf_cv_shlib_version" >&6 6071 6072 cf_cv_rm_so_locs=no 6073 cf_try_cflags= 6074 6075 # Some less-capable ports of gcc support only -fpic 6076 CC_SHARED_OPTS= 6077 6078 cf_try_fPIC=no 6079 if test "$GCC" = yes 6080 then 6081 cf_try_fPIC=yes 6082 else 6083 case "$cf_cv_system_name" in 6084 (*linux*) # e.g., PGI compiler 6085 cf_try_fPIC=yes 6086 ;; 6087 esac 6088 fi 6089 6090 if test "$cf_try_fPIC" = yes 6091 then 6092 echo "$as_me:6092: checking which $CC option to use" >&5 6093echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6 6094 cf_save_CFLAGS="$CFLAGS" 6095 for CC_SHARED_OPTS in -fPIC -fpic '' 6096 do 6097 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS" 6098 cat >"conftest.$ac_ext" <<_ACEOF 6099#line 6099 "configure" 6100#include "confdefs.h" 6101#include <stdio.h> 6102int 6103main (void) 6104{ 6105int x = 1 6106 ; 6107 return 0; 6108} 6109_ACEOF 6110rm -f "conftest.$ac_objext" 6111if { (eval echo "$as_me:6111: \"$ac_compile\"") >&5 6112 (eval $ac_compile) 2>&5 6113 ac_status=$? 6114 echo "$as_me:6114: \$? = $ac_status" >&5 6115 (exit "$ac_status"); } && 6116 { ac_try='test -s "conftest.$ac_objext"' 6117 { (eval echo "$as_me:6117: \"$ac_try\"") >&5 6118 (eval $ac_try) 2>&5 6119 ac_status=$? 6120 echo "$as_me:6120: \$? = $ac_status" >&5 6121 (exit "$ac_status"); }; }; then 6122 break 6123else 6124 echo "$as_me: failed program was:" >&5 6125cat "conftest.$ac_ext" >&5 6126fi 6127rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6128 done 6129 echo "$as_me:6129: result: $CC_SHARED_OPTS" >&5 6130echo "${ECHO_T}$CC_SHARED_OPTS" >&6 6131 CFLAGS="$cf_save_CFLAGS" 6132 fi 6133 6134 cf_cv_shlib_version_infix=no 6135 6136 case "$cf_cv_system_name" in 6137 (aix4.3-9*|aix[5-7]*) 6138 if test "$GCC" = yes; then 6139 CC_SHARED_OPTS='-Wl,-brtl' 6140 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@' 6141 else 6142 CC_SHARED_OPTS='-brtl' 6143 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall" 6144 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@' 6145 fi 6146 ;; 6147 (beos*) 6148 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0' 6149 ;; 6150 (cygwin*) 6151 CC_SHARED_OPTS= 6152 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6153 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6154 cf_cv_shlib_version=cygdll 6155 cf_cv_shlib_version_infix=cygdll 6156 shlibdir=$bindir 6157 MAKE_DLLS= 6158 cat >mk_shared_lib.sh <<-CF_EOF 6159 #!$SHELL 6160 SHARED_LIB=\$1 6161 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\` 6162 shift 6163 cat <<-EOF 6164 Linking shared library 6165 ** SHARED_LIB \$SHARED_LIB 6166 ** IMPORT_LIB \$IMPORT_LIB 6167EOF 6168 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6169CF_EOF 6170 chmod +x mk_shared_lib.sh 6171 ;; 6172 (msys*) 6173 CC_SHARED_OPTS= 6174 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6175 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6176 cf_cv_shlib_version=msysdll 6177 cf_cv_shlib_version_infix=msysdll 6178 shlibdir=$bindir 6179 MAKE_DLLS= 6180 cat >mk_shared_lib.sh <<-CF_EOF 6181 #!$SHELL 6182 SHARED_LIB=\$1 6183 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\` 6184 shift 6185 cat <<-EOF 6186 Linking shared library 6187 ** SHARED_LIB \$SHARED_LIB 6188 ** IMPORT_LIB \$IMPORT_LIB 6189EOF 6190 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6191CF_EOF 6192 chmod +x mk_shared_lib.sh 6193 ;; 6194 (darwin*) 6195 cf_try_cflags="no-cpp-precomp" 6196 CC_SHARED_OPTS="-dynamic" 6197 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@' 6198 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi 6199 cf_cv_shlib_version_infix=yes 6200 echo "$as_me:6200: checking if ld -search_paths_first works" >&5 6201echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6 6202if test "${cf_cv_ldflags_search_paths_first+set}" = set; then 6203 echo $ECHO_N "(cached) $ECHO_C" >&6 6204else 6205 6206 cf_save_LDFLAGS=$LDFLAGS 6207 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6208 cat >"conftest.$ac_ext" <<_ACEOF 6209#line 6209 "configure" 6210#include "confdefs.h" 6211 6212int 6213main (void) 6214{ 6215int i; 6216 ; 6217 return 0; 6218} 6219_ACEOF 6220rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6221if { (eval echo "$as_me:6221: \"$ac_link\"") >&5 6222 (eval $ac_link) 2>&5 6223 ac_status=$? 6224 echo "$as_me:6224: \$? = $ac_status" >&5 6225 (exit "$ac_status"); } && 6226 { ac_try='test -s "conftest$ac_exeext"' 6227 { (eval echo "$as_me:6227: \"$ac_try\"") >&5 6228 (eval $ac_try) 2>&5 6229 ac_status=$? 6230 echo "$as_me:6230: \$? = $ac_status" >&5 6231 (exit "$ac_status"); }; }; then 6232 cf_cv_ldflags_search_paths_first=yes 6233else 6234 echo "$as_me: failed program was:" >&5 6235cat "conftest.$ac_ext" >&5 6236cf_cv_ldflags_search_paths_first=no 6237fi 6238rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6239 LDFLAGS=$cf_save_LDFLAGS 6240fi 6241echo "$as_me:6241: result: $cf_cv_ldflags_search_paths_first" >&5 6242echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6 6243 if test "$cf_cv_ldflags_search_paths_first" = yes; then 6244 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6245 fi 6246 ;; 6247 (haiku*) 6248 6249 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6250 if test "$cf_cv_shlib_version" = rel; then 6251 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6252 else 6253 cf_cv_shared_soname='`basename $@`' 6254 fi 6255 6256 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6257 ;; 6258 (hpux[7-8]*) 6259 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list 6260 if test "$GCC" != yes; then 6261 CC_SHARED_OPTS='+Z' 6262 fi 6263 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@' 6264 INSTALL_LIB="-m 555" 6265 ;; 6266 (hpux*) 6267 # (tested with gcc 2.7.2 -- I don't have c89) 6268 if test "$GCC" = yes; then 6269 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}' 6270 else 6271 CC_SHARED_OPTS='+Z' 6272 LD_SHARED_OPTS='-Wl,+b,${libdir}' 6273 fi 6274 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@' 6275 # HP-UX shared libraries must be executable, and should be 6276 # readonly to exploit a quirk in the memory manager. 6277 INSTALL_LIB="-m 555" 6278 ;; 6279 (interix*) 6280 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6281 if test "$cf_cv_shlib_version" = rel; then 6282 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6283 else 6284 cf_shared_soname='`basename $@`' 6285 fi 6286 CC_SHARED_OPTS= 6287 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@' 6288 ;; 6289 (irix*) 6290 if test "$cf_cv_enable_rpath" = yes ; then 6291 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6292 fi 6293 # tested with IRIX 5.2 and 'cc'. 6294 if test "$GCC" != yes; then 6295 CC_SHARED_OPTS='-KPIC' 6296 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@' 6297 else 6298 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@' 6299 fi 6300 cf_cv_rm_so_locs=yes 6301 ;; 6302 (linux*|gnu*|k*bsd*-gnu) 6303 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6304 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6305 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6306 fi 6307 if test "$cf_cv_enable_rpath" = yes ; then 6308 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6309 fi 6310 6311 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6312 if test "$cf_cv_shlib_version" = rel; then 6313 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6314 else 6315 cf_cv_shared_soname='`basename $@`' 6316 fi 6317 6318 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6319 ;; 6320 (mingw*msvc*) 6321 cf_cv_shlib_version=msvcdll 6322 cf_cv_shlib_version_infix=msvcdll 6323 shlibdir=$bindir 6324 MAKE_DLLS= 6325 if test "$DFT_LWR_MODEL" = "shared" ; then 6326 LOCAL_LDFLAGS="-link -dll" 6327 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6328 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS" 6329 fi 6330 CC_SHARED_OPTS= 6331 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}' 6332 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib" 6333 cat >mk_shared_lib.sh <<-CF_EOF 6334 #!$SHELL 6335 SHARED_LIB=\$1 6336 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\` 6337 shift 6338 my_ld=\$1 6339 shift 6340 cat <<-EOF 6341 Linking shared library 6342 ** SHARED LIB \$SHARED_LIB 6343 ** IMPORT_LIB \$IMPORT_LIB 6344EOF 6345 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g") 6346 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args 6347 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}" 6348CF_EOF 6349 chmod +x mk_shared_lib.sh 6350 cat >mk_prog.sh <<-CF_EOF 6351 #!$SHELL 6352 shift 6353 # Ignore first argument (compiler) and use LD (link.exe) unconditionally 6354 LD="$LD" 6355 clopts=() 6356 ldopts=("/subsystem:console") 6357 libs=() 6358 isdll=0 6359 while test \$# -gt 0; do 6360 case "\$1" in 6361 -link) 6362 # ignore -link argument 6363 ;; 6364 -M[TD] | -M[TD]d) 6365 # ignore runtime-library option 6366 ;; 6367 -dll) 6368 isdll=1 6369 ;; 6370 -W* | -w*) 6371 # ignore warnings 6372 ;; 6373 -D*) 6374 clopts+=("\$1") 6375 ;; 6376 -I*) 6377 clopts+=("\$1") 6378 ;; 6379 -l*) 6380 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`") 6381 ;; 6382 -L*) 6383 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`") 6384 ;; 6385 *.obj | *.o) 6386 ldopts+=("\$1") 6387 ;; 6388 -Wl,*) 6389 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do 6390 ldopts+=("\${linkarg}") 6391 done 6392 ;; 6393 *.lib) 6394 ldopts+=("\$1") 6395 ;; 6396 -o) 6397 shift 6398 ldopts+=("-out:\$1") 6399 ;; 6400 *) 6401 clopts+=("\$1") 6402 ldopts+=("\$1") 6403 ;; 6404 esac 6405 shift 6406 done 6407 if [ "\$isdll" -ne 0 ]; then 6408 for lib in \${libs[*]}; do 6409 ldopts+=("\$lib.dll.lib") 6410 done 6411 else 6412 for lib in \${libs[*]}; do 6413 ldopts+=("\$lib.lib") 6414 done 6415 fi 6416 cat <<-EOF 6417 Creating program 6418 ** ld options: "\${ldopts[@]}" 6419EOF 6420 exec \$LD \${ldopts[@]} 6421CF_EOF 6422 chmod +x mk_prog.sh 6423 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh" 6424 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh" 6425 ;; 6426 (mingw*) 6427 cf_cv_shlib_version=mingw 6428 cf_cv_shlib_version_infix=mingw 6429 shlibdir=$bindir 6430 MAKE_DLLS= 6431 if test "$DFT_LWR_MODEL" = "shared" ; then 6432 LOCAL_LDFLAGS="-Wl,--enable-auto-import" 6433 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6434 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS" 6435 fi 6436 CC_SHARED_OPTS= 6437 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}' 6438 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a" 6439 cat >mk_shared_lib.sh <<-CF_EOF 6440 #!$SHELL 6441 SHARED_LIB=\$1 6442 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\` 6443 shift 6444 cat <<-EOF 6445 Linking shared library 6446 ** SHARED_LIB \$SHARED_LIB 6447 ** IMPORT_LIB \$IMPORT_LIB 6448EOF 6449 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB} 6450CF_EOF 6451 chmod +x mk_shared_lib.sh 6452 ;; 6453 (openbsd[2-9].*|mirbsd*) 6454 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6455 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6456 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6457 fi 6458 if test "$cf_cv_enable_rpath" = yes ; then 6459 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6460 fi 6461 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6462 6463 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6464 if test "$cf_cv_shlib_version" = rel; then 6465 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6466 else 6467 cf_cv_shared_soname='`basename $@`' 6468 fi 6469 6470 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6471 ;; 6472 (nskJ*) 6473 CC_SHARED_OPTS= 6474 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@' 6475 ;; 6476 (nskL*) 6477 CC_SHARED_OPTS= 6478 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@' 6479 ;; 6480 (nto-qnx*|openbsd*|freebsd[12].*) 6481 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6482 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@' 6483 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6484 ;; 6485 (dragonfly*|freebsd*) 6486 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6487 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 6488 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 6489 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS" 6490 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6491 fi 6492 6493 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6494 if test "$cf_cv_shlib_version" = rel; then 6495 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6496 else 6497 cf_cv_shared_soname='`basename $@`' 6498 fi 6499 6500 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@' 6501 ;; 6502 (netbsd*) 6503 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" 6504 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then 6505 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)" 6506 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6507 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS" 6508 if test "$cf_cv_shlib_version" = auto; then 6509 if test -f /usr/libexec/ld.elf_so; then 6510 cf_cv_shlib_version=abi 6511 else 6512 cf_cv_shlib_version=rel 6513 fi 6514 fi 6515 6516 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6517 if test "$cf_cv_shlib_version" = rel; then 6518 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6519 else 6520 cf_cv_shared_soname='`basename $@`' 6521 fi 6522 6523 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@' 6524 else 6525 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@' 6526 fi 6527 ;; 6528 (osf*|mls+*) 6529 # tested with OSF/1 V3.2 and 'cc' 6530 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't 6531 # link with shared libs). 6532 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`' 6533 case "$host_os" in 6534 (osf4*) 6535 MK_SHARED_LIB="${MK_SHARED_LIB} -msym" 6536 ;; 6537 esac 6538 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@' 6539 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then 6540 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" 6541 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6542 fi 6543 cf_cv_rm_so_locs=yes 6544 ;; 6545 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98 6546 # tested with osr5.0.5 6547 if test "$GCC" != yes; then 6548 CC_SHARED_OPTS='-belf -KPIC' 6549 fi 6550 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@' 6551 if test "$cf_cv_enable_rpath" = yes ; then 6552 # only way is to set LD_RUN_PATH but no switch for it 6553 RUN_PATH=$libdir 6554 fi 6555 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6556 LINK_PROGS='LD_RUN_PATH=${libdir}' 6557 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib' 6558 ;; 6559 (sunos4*) 6560 # tested with SunOS 4.1.1 and gcc 2.7.0 6561 if test "$GCC" != yes; then 6562 CC_SHARED_OPTS='-KPIC' 6563 fi 6564 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@' 6565 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6566 ;; 6567 (solaris2*) 6568 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2 6569 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3 6570 if test "$DFT_LWR_MODEL" = "shared" ; then 6571 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}" 6572 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" 6573 fi 6574 if test "$cf_cv_enable_rpath" = yes ; then 6575 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS" 6576 fi 6577 6578 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel 6579 if test "$cf_cv_shlib_version" = rel; then 6580 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}' 6581 else 6582 cf_cv_shared_soname='`basename $@`' 6583 fi 6584 6585 if test "$GCC" != yes; then 6586 cf_save_CFLAGS="$CFLAGS" 6587 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O 6588 do 6589 CFLAGS="$cf_shared_opts $cf_save_CFLAGS" 6590 cat >"conftest.$ac_ext" <<_ACEOF 6591#line 6591 "configure" 6592#include "confdefs.h" 6593#include <stdio.h> 6594int 6595main (void) 6596{ 6597printf("Hello\\n"); 6598 ; 6599 return 0; 6600} 6601_ACEOF 6602rm -f "conftest.$ac_objext" 6603if { (eval echo "$as_me:6603: \"$ac_compile\"") >&5 6604 (eval $ac_compile) 2>&5 6605 ac_status=$? 6606 echo "$as_me:6606: \$? = $ac_status" >&5 6607 (exit "$ac_status"); } && 6608 { ac_try='test -s "conftest.$ac_objext"' 6609 { (eval echo "$as_me:6609: \"$ac_try\"") >&5 6610 (eval $ac_try) 2>&5 6611 ac_status=$? 6612 echo "$as_me:6612: \$? = $ac_status" >&5 6613 (exit "$ac_status"); }; }; then 6614 break 6615else 6616 echo "$as_me: failed program was:" >&5 6617cat "conftest.$ac_ext" >&5 6618fi 6619rm -f "conftest.$ac_objext" "conftest.$ac_ext" 6620 done 6621 CFLAGS="$cf_save_CFLAGS" 6622 CC_SHARED_OPTS=$cf_shared_opts 6623 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@' 6624 else 6625 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@' 6626 fi 6627 ;; 6628 (sysv5uw7*|unix_sv*) 6629 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc) 6630 if test "$GCC" != yes; then 6631 CC_SHARED_OPTS='-KPIC' 6632 fi 6633 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@' 6634 ;; 6635 (*) 6636 CC_SHARED_OPTS='unknown' 6637 MK_SHARED_LIB='echo unknown' 6638 ;; 6639 esac 6640 6641 # This works if the last tokens in $MK_SHARED_LIB are the -o target. 6642 case "$cf_cv_shlib_version" in 6643 (rel|abi) 6644 case "$MK_SHARED_LIB" in 6645 (*'-o $@') 6646 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes 6647 ;; 6648 (*) 6649 { echo "$as_me:6649: WARNING: ignored --with-shlib-version" >&5 6650echo "$as_me: WARNING: ignored --with-shlib-version" >&2;} 6651 ;; 6652 esac 6653 ;; 6654 esac 6655 6656 if test -n "$cf_try_cflags" 6657 then 6658cat > conftest.$ac_ext <<EOF 6659#line 6659 "${as_me:-configure}" 6660#include <stdio.h> 6661int main(int argc, char *argv[]) 6662{ 6663 printf("hello\\n"); 6664 return (argv[argc-1] == 0) ; 6665} 6666EOF 6667 cf_save_CFLAGS="$CFLAGS" 6668 for cf_opt in $cf_try_cflags 6669 do 6670 CFLAGS="$cf_save_CFLAGS -$cf_opt" 6671 echo "$as_me:6671: checking if CFLAGS option -$cf_opt works" >&5 6672echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6 6673 if { (eval echo "$as_me:6673: \"$ac_compile\"") >&5 6674 (eval $ac_compile) 2>&5 6675 ac_status=$? 6676 echo "$as_me:6676: \$? = $ac_status" >&5 6677 (exit "$ac_status"); }; then 6678 echo "$as_me:6678: result: yes" >&5 6679echo "${ECHO_T}yes" >&6 6680 cf_save_CFLAGS="$CFLAGS" 6681 else 6682 echo "$as_me:6682: result: no" >&5 6683echo "${ECHO_T}no" >&6 6684 fi 6685 done 6686 CFLAGS="$cf_save_CFLAGS" 6687 fi 6688 6689 # RPATH_LIST is a colon-separated list of directories 6690 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}" 6691 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}" 6692 6693 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations" 6694 6695 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6 6696 6697echo "${as_me:-configure}:6697: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5 6698 6699 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6700 6701echo "${as_me:-configure}:6701: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6702 6703for model in $cf_list_models ; do 6704 case "$model" in 6705 (libtool) 6706 6707echo "$as_me:6707: checking for additional libtool options" >&5 6708echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6 6709 6710# Check whether --with-libtool-opts or --without-libtool-opts was given. 6711if test "${with_libtool_opts+set}" = set; then 6712 withval="$with_libtool_opts" 6713 with_libtool_opts=$withval 6714else 6715 with_libtool_opts=no 6716fi; 6717echo "$as_me:6717: result: $with_libtool_opts" >&5 6718echo "${ECHO_T}$with_libtool_opts" >&6 6719 6720case .$with_libtool_opts in 6721(.yes|.no|.) 6722 ;; 6723(*) 6724 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts" 6725 ;; 6726esac 6727 6728echo "$as_me:6728: checking if exported-symbols file should be used" >&5 6729echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6 6730 6731# Check whether --with-export-syms or --without-export-syms was given. 6732if test "${with_export_syms+set}" = set; then 6733 withval="$with_export_syms" 6734 with_export_syms=$withval 6735else 6736 with_export_syms=no 6737fi; 6738if test "x$with_export_syms" = xyes 6739then 6740 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym' 6741 6742fi 6743echo "$as_me:6743: result: $with_export_syms" >&5 6744echo "${ECHO_T}$with_export_syms" >&6 6745if test "x$with_export_syms" != xno 6746then 6747 EXPORT_SYMS="-export-symbols $with_export_syms" 6748 6749fi 6750 6751 ;; 6752 (shared) 6753 if test "$CC_SHARED_OPTS" = "unknown"; then 6754 { { echo "$as_me:6754: error: Shared libraries are not supported in this version" >&5 6755echo "$as_me: error: Shared libraries are not supported in this version" >&2;} 6756 { (exit 1); exit 1; }; } 6757 fi 6758 # workaround for inept transition to PIE vs PIC... 6759 echo "$as_me:6759: checking if current CFLAGS link properly" >&5 6760echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6 6761 cat >"conftest.$ac_ext" <<_ACEOF 6762#line 6762 "configure" 6763#include "confdefs.h" 6764#include <stdio.h> 6765int 6766main (void) 6767{ 6768printf("Hello work\\n"); 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773rm -f "conftest.$ac_objext" "conftest$ac_exeext" 6774if { (eval echo "$as_me:6774: \"$ac_link\"") >&5 6775 (eval $ac_link) 2>&5 6776 ac_status=$? 6777 echo "$as_me:6777: \$? = $ac_status" >&5 6778 (exit "$ac_status"); } && 6779 { ac_try='test -s "conftest$ac_exeext"' 6780 { (eval echo "$as_me:6780: \"$ac_try\"") >&5 6781 (eval $ac_try) 2>&5 6782 ac_status=$? 6783 echo "$as_me:6783: \$? = $ac_status" >&5 6784 (exit "$ac_status"); }; }; then 6785 cf_cflags_work=yes 6786else 6787 echo "$as_me: failed program was:" >&5 6788cat "conftest.$ac_ext" >&5 6789cf_cflags_work=no 6790fi 6791rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 6792 echo "$as_me:6792: result: $cf_cflags_work" >&5 6793echo "${ECHO_T}$cf_cflags_work" >&6 6794 if test "$cf_cflags_work" = no 6795 then 6796 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6 6797 6798echo "${as_me:-configure}:6798: testing try to work around by appending shared-options ..." 1>&5 6799 6800 CFLAGS="$CFLAGS $CC_SHARED_OPTS" 6801 fi 6802 6803echo "$as_me:6803: checking if versioned-symbols file should be used" >&5 6804echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6 6805 6806# Check whether --with-versioned-syms or --without-versioned-syms was given. 6807if test "${with_versioned_syms+set}" = set; then 6808 withval="$with_versioned_syms" 6809 with_versioned_syms=$withval 6810else 6811 with_versioned_syms=no 6812fi; 6813case "x$with_versioned_syms" in 6814(xyes) 6815 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map' 6816 6817 ;; 6818(xno) 6819 ;; 6820(x/*) 6821 test -f "$with_versioned_syms" || { { echo "$as_me:6821: error: expected a filename: $with_versioned_syms" >&5 6822echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;} 6823 { (exit 1); exit 1; }; } 6824 ;; 6825(*) 6826 test -f "$with_versioned_syms" || { { echo "$as_me:6826: error: expected a filename: $with_versioned_syms" >&5 6827echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;} 6828 { (exit 1); exit 1; }; } 6829 with_versioned_syms=`pwd`/"$with_versioned_syms" 6830 ;; 6831esac 6832echo "$as_me:6832: result: $with_versioned_syms" >&5 6833echo "${ECHO_T}$with_versioned_syms" >&6 6834 6835RESULTING_SYMS= 6836VERSIONED_SYMS= 6837WILDCARD_SYMS= 6838 6839if test "x$with_versioned_syms" != xno 6840then 6841 RESULTING_SYMS=$with_versioned_syms 6842 case "x$MK_SHARED_LIB" in 6843 (*-Wl,*) 6844 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}" 6845 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"` 6846 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6847 6848echo "${as_me:-configure}:6848: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6849 6850 ;; 6851 (*-dy\ *) 6852 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}" 6853 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"` 6854 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6 6855 6856echo "${as_me:-configure}:6856: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5 6857 6858 ;; 6859 (*) 6860 { echo "$as_me:6860: WARNING: this system does not support versioned-symbols" >&5 6861echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;} 6862 ;; 6863 esac 6864 6865 # Linux ld can selectively override scope, e.g., of symbols beginning with 6866 # "_" by first declaring some as global, and then using a wildcard to 6867 # declare the others as local. Some other loaders cannot do this. Check 6868 # by constructing a (very) simple shared library and inspecting its 6869 # symbols. 6870 if test "x$VERSIONED_SYMS" != "x" 6871 then 6872 echo "$as_me:6872: checking if wildcards can be used to selectively omit symbols" >&5 6873echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6 6874 WILDCARD_SYMS=no 6875 6876 # make sources 6877 rm -f conftest.* 6878 6879 cat >conftest.ver <<EOF 6880module_1.0 { 6881global: 6882 globalf1; 6883local: 6884 localf1; 6885}; 6886module_2.0 { 6887global: 6888 globalf2; 6889local: 6890 localf2; 6891 _*; 6892} module_1.0; 6893submodule_1.0 { 6894global: 6895 subglobalf1; 6896 _ismissing; 6897local: 6898 sublocalf1; 6899}; 6900submodule_2.0 { 6901global: 6902 subglobalf2; 6903local: 6904 sublocalf2; 6905 _*; 6906} submodule_1.0; 6907EOF 6908 cat >conftest.$ac_ext <<EOF 6909#line 6909 "configure" 6910int _ismissing(void) { return 1; } 6911int _localf1(void) { return 1; } 6912int _localf2(void) { return 2; } 6913int globalf1(void) { return 1; } 6914int globalf2(void) { return 2; } 6915int _sublocalf1(void) { return 1; } 6916int _sublocalf2(void) { return 2; } 6917int subglobalf1(void) { return 1; } 6918int subglobalf2(void) { return 2; } 6919EOF 6920 cat >conftest.mk <<EOF 6921CC=${CC} 6922CFLAGS=${CFLAGS} 6923CPPFLAGS=${CPPFLAGS} 6924LDFLAGS=${LDFLAGS} 6925LIBS=${LIBS} 6926VERSIONED_SYMS=${VERSIONED_SYMS} 6927RESULTING_SYMS=conftest.ver 6928MK_SHARED_LIB=${MK_SHARED_LIB} 6929conftest.so: conftest.$ac_cv_objext 6930 \$(MK_SHARED_LIB) conftest.$ac_cv_objext 6931EOF 6932 6933 # compile source, make library 6934 if make -f conftest.mk 2>&5 >/dev/null 6935 then 6936 # test for missing symbol in either Data or Text section 6937 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`" 6938 test -n "$cf_missing" && WILDCARD_SYMS=yes 6939 fi 6940 echo "$as_me:6940: result: $WILDCARD_SYMS" >&5 6941echo "${ECHO_T}$WILDCARD_SYMS" >&6 6942 rm -f conftest.* 6943 fi 6944fi 6945 6946 ;; 6947 esac 6948done 6949 6950### Checks for special libraries, must be done up-front. 6951SHLIB_LIST="" 6952 6953echo "$as_me:6953: checking if you want to link with the GPM mouse library" >&5 6954echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6 6955 6956# Check whether --with-gpm or --without-gpm was given. 6957if test "${with_gpm+set}" = set; then 6958 withval="$with_gpm" 6959 with_gpm=$withval 6960else 6961 with_gpm=maybe 6962fi; 6963echo "$as_me:6963: result: $with_gpm" >&5 6964echo "${ECHO_T}$with_gpm" >&6 6965 6966if test "$with_gpm" != no ; then 6967 echo "$as_me:6967: checking for gpm.h" >&5 6968echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6 6969if test "${ac_cv_header_gpm_h+set}" = set; then 6970 echo $ECHO_N "(cached) $ECHO_C" >&6 6971else 6972 cat >"conftest.$ac_ext" <<_ACEOF 6973#line 6973 "configure" 6974#include "confdefs.h" 6975#include <gpm.h> 6976_ACEOF 6977if { (eval echo "$as_me:6977: \"$ac_cpp "conftest.$ac_ext"\"") >&5 6978 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 6979 ac_status=$? 6980 $EGREP -v '^ *\+' conftest.er1 >conftest.err 6981 rm -f conftest.er1 6982 cat conftest.err >&5 6983 echo "$as_me:6983: \$? = $ac_status" >&5 6984 (exit "$ac_status"); } >/dev/null; then 6985 if test -s conftest.err; then 6986 ac_cpp_err=$ac_c_preproc_warn_flag 6987 else 6988 ac_cpp_err= 6989 fi 6990else 6991 ac_cpp_err=yes 6992fi 6993if test -z "$ac_cpp_err"; then 6994 ac_cv_header_gpm_h=yes 6995else 6996 echo "$as_me: failed program was:" >&5 6997 cat "conftest.$ac_ext" >&5 6998 ac_cv_header_gpm_h=no 6999fi 7000rm -f conftest.err "conftest.$ac_ext" 7001fi 7002echo "$as_me:7002: result: $ac_cv_header_gpm_h" >&5 7003echo "${ECHO_T}$ac_cv_header_gpm_h" >&6 7004if test "$ac_cv_header_gpm_h" = yes; then 7005 7006cat >>confdefs.h <<\EOF 7007#define HAVE_GPM_H 1 7008EOF 7009 7010 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then 7011 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6 7012 7013echo "${as_me:-configure}:7013: testing assuming we really have GPM library ..." 1>&5 7014 7015cat >>confdefs.h <<\EOF 7016#define HAVE_LIBGPM 1 7017EOF 7018 7019 with_gpm=yes 7020 else 7021 echo "$as_me:7021: checking for Gpm_Open in -lgpm" >&5 7022echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6 7023if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 7024 echo $ECHO_N "(cached) $ECHO_C" >&6 7025else 7026 ac_check_lib_save_LIBS=$LIBS 7027LIBS="-lgpm $LIBS" 7028cat >"conftest.$ac_ext" <<_ACEOF 7029#line 7029 "configure" 7030#include "confdefs.h" 7031 7032/* Override any gcc2 internal prototype to avoid an error. */ 7033#ifdef __cplusplus 7034extern "C" 7035#endif 7036/* We use char because int might match the return type of a gcc2 7037 builtin and then its argument prototype would still apply. */ 7038char Gpm_Open (); 7039int 7040main (void) 7041{ 7042Gpm_Open (); 7043 ; 7044 return 0; 7045} 7046_ACEOF 7047rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7048if { (eval echo "$as_me:7048: \"$ac_link\"") >&5 7049 (eval $ac_link) 2>&5 7050 ac_status=$? 7051 echo "$as_me:7051: \$? = $ac_status" >&5 7052 (exit "$ac_status"); } && 7053 { ac_try='test -s "conftest$ac_exeext"' 7054 { (eval echo "$as_me:7054: \"$ac_try\"") >&5 7055 (eval $ac_try) 2>&5 7056 ac_status=$? 7057 echo "$as_me:7057: \$? = $ac_status" >&5 7058 (exit "$ac_status"); }; }; then 7059 ac_cv_lib_gpm_Gpm_Open=yes 7060else 7061 echo "$as_me: failed program was:" >&5 7062cat "conftest.$ac_ext" >&5 7063ac_cv_lib_gpm_Gpm_Open=no 7064fi 7065rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7066LIBS=$ac_check_lib_save_LIBS 7067fi 7068echo "$as_me:7068: result: $ac_cv_lib_gpm_Gpm_Open" >&5 7069echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6 7070if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then 7071 with_gpm=yes 7072else 7073 7074 if test "$with_gpm" = maybe; then 7075 { echo "$as_me:7075: WARNING: Cannot link with GPM library" >&5 7076echo "$as_me: WARNING: Cannot link with GPM library" >&2;} 7077 with_gpm=no 7078 else 7079 { { echo "$as_me:7079: error: Cannot link with GPM library" >&5 7080echo "$as_me: error: Cannot link with GPM library" >&2;} 7081 { (exit 1); exit 1; }; } 7082 fi 7083 7084fi 7085 7086 fi 7087 7088else 7089 7090 test "$with_gpm" != maybe && { echo "$as_me:7090: WARNING: Cannot find GPM header" >&5 7091echo "$as_me: WARNING: Cannot find GPM header" >&2;} 7092 with_gpm=no 7093 7094fi 7095 7096fi 7097 7098if test "$with_gpm" != no ; then 7099 echo "$as_me:7099: checking if you want to load GPM dynamically" >&5 7100echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6 7101 7102# Check whether --with-dlsym or --without-dlsym was given. 7103if test "${with_dlsym+set}" = set; then 7104 withval="$with_dlsym" 7105 with_dlsym=$withval 7106else 7107 with_dlsym=yes 7108fi; 7109 echo "$as_me:7109: result: $with_dlsym" >&5 7110echo "${ECHO_T}$with_dlsym" >&6 7111 if test "x$with_dlsym" = xyes ; then 7112 7113cf_have_dlsym=no 7114echo "$as_me:7114: checking for dlsym" >&5 7115echo $ECHO_N "checking for dlsym... $ECHO_C" >&6 7116if test "${ac_cv_func_dlsym+set}" = set; then 7117 echo $ECHO_N "(cached) $ECHO_C" >&6 7118else 7119 cat >"conftest.$ac_ext" <<_ACEOF 7120#line 7120 "configure" 7121#include "confdefs.h" 7122#define dlsym autoconf_temporary 7123#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 7124#undef dlsym 7125 7126#ifdef __cplusplus 7127extern "C" 7128#endif 7129 7130/* We use char because int might match the return type of a gcc2 7131 builtin and then its argument prototype would still apply. */ 7132char dlsym (void); 7133 7134int 7135main (void) 7136{ 7137 7138/* The GNU C library defines stubs for functions which it implements 7139 to always fail with ENOSYS. Some functions are actually named 7140 something starting with __ and the normal name is an alias. */ 7141#if defined (__stub_dlsym) || defined (__stub___dlsym) 7142#error found stub for dlsym 7143#endif 7144 7145 return dlsym (); 7146 ; 7147 return 0; 7148} 7149_ACEOF 7150rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7151if { (eval echo "$as_me:7151: \"$ac_link\"") >&5 7152 (eval $ac_link) 2>&5 7153 ac_status=$? 7154 echo "$as_me:7154: \$? = $ac_status" >&5 7155 (exit "$ac_status"); } && 7156 { ac_try='test -s "conftest$ac_exeext"' 7157 { (eval echo "$as_me:7157: \"$ac_try\"") >&5 7158 (eval $ac_try) 2>&5 7159 ac_status=$? 7160 echo "$as_me:7160: \$? = $ac_status" >&5 7161 (exit "$ac_status"); }; }; then 7162 ac_cv_func_dlsym=yes 7163else 7164 echo "$as_me: failed program was:" >&5 7165cat "conftest.$ac_ext" >&5 7166ac_cv_func_dlsym=no 7167fi 7168rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7169fi 7170echo "$as_me:7170: result: $ac_cv_func_dlsym" >&5 7171echo "${ECHO_T}$ac_cv_func_dlsym" >&6 7172if test "$ac_cv_func_dlsym" = yes; then 7173 cf_have_dlsym=yes 7174else 7175 7176cf_have_libdl=no 7177echo "$as_me:7177: checking for dlsym in -ldl" >&5 7178echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 7179if test "${ac_cv_lib_dl_dlsym+set}" = set; then 7180 echo $ECHO_N "(cached) $ECHO_C" >&6 7181else 7182 ac_check_lib_save_LIBS=$LIBS 7183LIBS="-ldl $LIBS" 7184cat >"conftest.$ac_ext" <<_ACEOF 7185#line 7185 "configure" 7186#include "confdefs.h" 7187 7188/* Override any gcc2 internal prototype to avoid an error. */ 7189#ifdef __cplusplus 7190extern "C" 7191#endif 7192/* We use char because int might match the return type of a gcc2 7193 builtin and then its argument prototype would still apply. */ 7194char dlsym (); 7195int 7196main (void) 7197{ 7198dlsym (); 7199 ; 7200 return 0; 7201} 7202_ACEOF 7203rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7204if { (eval echo "$as_me:7204: \"$ac_link\"") >&5 7205 (eval $ac_link) 2>&5 7206 ac_status=$? 7207 echo "$as_me:7207: \$? = $ac_status" >&5 7208 (exit "$ac_status"); } && 7209 { ac_try='test -s "conftest$ac_exeext"' 7210 { (eval echo "$as_me:7210: \"$ac_try\"") >&5 7211 (eval $ac_try) 2>&5 7212 ac_status=$? 7213 echo "$as_me:7213: \$? = $ac_status" >&5 7214 (exit "$ac_status"); }; }; then 7215 ac_cv_lib_dl_dlsym=yes 7216else 7217 echo "$as_me: failed program was:" >&5 7218cat "conftest.$ac_ext" >&5 7219ac_cv_lib_dl_dlsym=no 7220fi 7221rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7222LIBS=$ac_check_lib_save_LIBS 7223fi 7224echo "$as_me:7224: result: $ac_cv_lib_dl_dlsym" >&5 7225echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 7226if test "$ac_cv_lib_dl_dlsym" = yes; then 7227 7228 cf_have_dlsym=yes 7229 cf_have_libdl=yes 7230fi 7231 7232fi 7233 7234if test "$cf_have_dlsym" = yes ; then 7235 test "$cf_have_libdl" = yes && { 7236cf_add_libs="$LIBS" 7237# reverse order 7238cf_add_0lib= 7239for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7240# filter duplicates 7241for cf_add_1lib in $cf_add_0lib; do 7242 for cf_add_2lib in $cf_add_libs; do 7243 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7244 cf_add_1lib= 7245 break 7246 fi 7247 done 7248 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7249done 7250LIBS="$cf_add_libs" 7251 } 7252 7253 echo "$as_me:7253: checking whether able to link to dl*() functions" >&5 7254echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6 7255 cat >"conftest.$ac_ext" <<_ACEOF 7256#line 7256 "configure" 7257#include "confdefs.h" 7258#include <dlfcn.h> 7259int 7260main (void) 7261{ 7262 7263 void *obj; 7264 if ((obj = dlopen("filename", 0)) != 0) { 7265 if (dlsym(obj, "symbolname") == 0) { 7266 dlclose(obj); 7267 } 7268 } 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7274if { (eval echo "$as_me:7274: \"$ac_link\"") >&5 7275 (eval $ac_link) 2>&5 7276 ac_status=$? 7277 echo "$as_me:7277: \$? = $ac_status" >&5 7278 (exit "$ac_status"); } && 7279 { ac_try='test -s "conftest$ac_exeext"' 7280 { (eval echo "$as_me:7280: \"$ac_try\"") >&5 7281 (eval $ac_try) 2>&5 7282 ac_status=$? 7283 echo "$as_me:7283: \$? = $ac_status" >&5 7284 (exit "$ac_status"); }; }; then 7285 7286cat >>confdefs.h <<\EOF 7287#define HAVE_LIBDL 1 7288EOF 7289 7290else 7291 echo "$as_me: failed program was:" >&5 7292cat "conftest.$ac_ext" >&5 7293 7294 { { echo "$as_me:7294: error: Cannot link test program for libdl" >&5 7295echo "$as_me: error: Cannot link test program for libdl" >&2;} 7296 { (exit 1); exit 1; }; } 7297fi 7298rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7299 echo "$as_me:7299: result: ok" >&5 7300echo "${ECHO_T}ok" >&6 7301else 7302 { { echo "$as_me:7302: error: Cannot find dlsym function" >&5 7303echo "$as_me: error: Cannot find dlsym function" >&2;} 7304 { (exit 1); exit 1; }; } 7305fi 7306 7307 if test "x$with_gpm" != xyes ; then 7308 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6 7309 7310echo "${as_me:-configure}:7310: testing assuming soname for gpm is $with_gpm ..." 1>&5 7311 7312 cf_cv_gpm_soname="$with_gpm" 7313 else 7314 7315echo "$as_me:7315: checking for soname of gpm library" >&5 7316echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6 7317if test "${cf_cv_gpm_soname+set}" = set; then 7318 echo $ECHO_N "(cached) $ECHO_C" >&6 7319else 7320 7321cf_cv_gpm_soname=unknown 7322if test "$cross_compiling" != yes ; then 7323cat >conftest.$ac_ext <<CF_EOF 7324#include <gpm.h> 7325int main(void) 7326{ 7327if (Gpm_Open(0,0)) Gpm_Close(); 7328 ${cf_cv_main_return:-return}(0); 7329} 7330CF_EOF 7331cf_save_LIBS="$LIBS" 7332 7333cf_add_libs="$LIBS" 7334# reverse order 7335cf_add_0lib= 7336for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7337# filter duplicates 7338for cf_add_1lib in $cf_add_0lib; do 7339 for cf_add_2lib in $cf_add_libs; do 7340 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7341 cf_add_1lib= 7342 break 7343 fi 7344 done 7345 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7346done 7347LIBS="$cf_add_libs" 7348 7349 if { (eval echo "$as_me:7349: \"$ac_compile\"") >&5 7350 (eval $ac_compile) 2>&5 7351 ac_status=$? 7352 echo "$as_me:7352: \$? = $ac_status" >&5 7353 (exit "$ac_status"); } ; then 7354 if { (eval echo "$as_me:7354: \"$ac_link\"") >&5 7355 (eval $ac_link) 2>&5 7356 ac_status=$? 7357 echo "$as_me:7357: \$? = $ac_status" >&5 7358 (exit "$ac_status"); } ; then 7359 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`" 7360 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown 7361 fi 7362 fi 7363rm -rf ./conftest* 7364LIBS="$cf_save_LIBS" 7365fi 7366 7367fi 7368echo "$as_me:7368: result: $cf_cv_gpm_soname" >&5 7369echo "${ECHO_T}$cf_cv_gpm_soname" >&6 7370 7371 fi 7372 test "$cf_cv_gpm_soname" != "unknown" && 7373cat >>confdefs.h <<EOF 7374#define LIBGPM_SONAME "$cf_cv_gpm_soname" 7375EOF 7376 7377 SHLIB_LIST="-ldl $SHLIB_LIST" 7378 7379cf_add_libs="$PRIVATE_LIBS" 7380# reverse order 7381cf_add_0lib= 7382for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7383# filter duplicates 7384for cf_add_1lib in $cf_add_0lib; do 7385 for cf_add_2lib in $cf_add_libs; do 7386 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7387 cf_add_1lib= 7388 break 7389 fi 7390 done 7391 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7392done 7393PRIVATE_LIBS="$cf_add_libs" 7394 7395 else 7396 SHLIB_LIST="-lgpm $SHLIB_LIST" 7397 7398cf_add_libs="$TEST_LIBS" 7399# reverse order 7400cf_add_0lib= 7401for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7402# filter duplicates 7403for cf_add_1lib in $cf_add_0lib; do 7404 for cf_add_2lib in $cf_add_libs; do 7405 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7406 cf_add_1lib= 7407 break 7408 fi 7409 done 7410 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7411done 7412TEST_LIBS="$cf_add_libs" 7413 7414cf_add_libs="$PRIVATE_LIBS" 7415# reverse order 7416cf_add_0lib= 7417for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7418# filter duplicates 7419for cf_add_1lib in $cf_add_0lib; do 7420 for cf_add_2lib in $cf_add_libs; do 7421 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7422 cf_add_1lib= 7423 break 7424 fi 7425 done 7426 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7427done 7428PRIVATE_LIBS="$cf_add_libs" 7429 7430 fi 7431 7432cat >>confdefs.h <<\EOF 7433#define HAVE_LIBGPM 1 7434EOF 7435 7436echo "$as_me:7436: checking for Gpm_Wgetch in -lgpm" >&5 7437echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6 7438if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then 7439 echo $ECHO_N "(cached) $ECHO_C" >&6 7440else 7441 ac_check_lib_save_LIBS=$LIBS 7442LIBS="-lgpm $LIBS" 7443cat >"conftest.$ac_ext" <<_ACEOF 7444#line 7444 "configure" 7445#include "confdefs.h" 7446 7447/* Override any gcc2 internal prototype to avoid an error. */ 7448#ifdef __cplusplus 7449extern "C" 7450#endif 7451/* We use char because int might match the return type of a gcc2 7452 builtin and then its argument prototype would still apply. */ 7453char Gpm_Wgetch (); 7454int 7455main (void) 7456{ 7457Gpm_Wgetch (); 7458 ; 7459 return 0; 7460} 7461_ACEOF 7462rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7463if { (eval echo "$as_me:7463: \"$ac_link\"") >&5 7464 (eval $ac_link) 2>&5 7465 ac_status=$? 7466 echo "$as_me:7466: \$? = $ac_status" >&5 7467 (exit "$ac_status"); } && 7468 { ac_try='test -s "conftest$ac_exeext"' 7469 { (eval echo "$as_me:7469: \"$ac_try\"") >&5 7470 (eval $ac_try) 2>&5 7471 ac_status=$? 7472 echo "$as_me:7472: \$? = $ac_status" >&5 7473 (exit "$ac_status"); }; }; then 7474 ac_cv_lib_gpm_Gpm_Wgetch=yes 7475else 7476 echo "$as_me: failed program was:" >&5 7477cat "conftest.$ac_ext" >&5 7478ac_cv_lib_gpm_Gpm_Wgetch=no 7479fi 7480rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7481LIBS=$ac_check_lib_save_LIBS 7482fi 7483echo "$as_me:7483: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5 7484echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6 7485if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then 7486 7487echo "$as_me:7487: checking if GPM is weakly bound to curses library" >&5 7488echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6 7489if test "${cf_cv_check_gpm_wgetch+set}" = set; then 7490 echo $ECHO_N "(cached) $ECHO_C" >&6 7491else 7492 7493cf_cv_check_gpm_wgetch=unknown 7494if test "$cross_compiling" != yes ; then 7495 7496cat >conftest.$ac_ext <<CF_EOF 7497#include <gpm.h> 7498int main(void) 7499{ 7500 Gpm_Wgetch(); 7501 ${cf_cv_main_return:-return}(0); 7502} 7503CF_EOF 7504 7505 cf_save_LIBS="$LIBS" 7506 # This only works if we can look at the symbol table. If a shared 7507 # library is stripped for install, we cannot use that. So we're forced 7508 # to rely on the static library, noting that some packagers may not 7509 # include it. 7510 LIBS="-static -lgpm -dynamic $LIBS" 7511 if { (eval echo "$as_me:7511: \"$ac_compile\"") >&5 7512 (eval $ac_compile) 2>&5 7513 ac_status=$? 7514 echo "$as_me:7514: \$? = $ac_status" >&5 7515 (exit "$ac_status"); } ; then 7516 if { (eval echo "$as_me:7516: \"$ac_link\"") >&5 7517 (eval $ac_link) 2>&5 7518 ac_status=$? 7519 echo "$as_me:7519: \$? = $ac_status" >&5 7520 (exit "$ac_status"); } ; then 7521 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`" 7522 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes 7523 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no 7524 fi 7525 fi 7526 rm -rf ./conftest* 7527 LIBS="$cf_save_LIBS" 7528fi 7529 7530fi 7531echo "$as_me:7531: result: $cf_cv_check_gpm_wgetch" >&5 7532echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6 7533 7534if test "$cf_cv_check_gpm_wgetch" != yes ; then 7535 { echo "$as_me:7535: WARNING: GPM library is already linked with curses - read the FAQ" >&5 7536echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;} 7537fi 7538 7539fi 7540 7541fi 7542 7543echo "$as_me:7543: checking if you want to use PCRE2 for regular-expressions" >&5 7544echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6 7545 7546# Check whether --with-pcre2 or --without-pcre2 was given. 7547if test "${with_pcre2+set}" = set; then 7548 withval="$with_pcre2" 7549 7550fi; 7551test -z "$with_pcre2" && with_pcre2=no 7552echo "$as_me:7552: result: $with_pcre2" >&5 7553echo "${ECHO_T}$with_pcre2" >&6 7554 7555if test "x$with_pcre2" != xno ; then 7556 cf_with_pcre2_ok=no 7557 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre 7558 do 7559 7560if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then 7561 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6 7562 7563echo "${as_me:-configure}:7563: testing found package $cf_with_pcre2 ..." 1>&5 7564 7565 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`" 7566 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`" 7567 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6 7568 7569echo "${as_me:-configure}:7569: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5 7570 7571 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6 7572 7573echo "${as_me:-configure}:7573: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5 7574 7575cf_fix_cppflags=no 7576cf_new_cflags= 7577cf_new_cppflags= 7578cf_new_extra_cppflags= 7579 7580for cf_add_cflags in $cf_pkgconfig_incs 7581do 7582case "$cf_fix_cppflags" in 7583(no) 7584 case "$cf_add_cflags" in 7585 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 7586 case "$cf_add_cflags" in 7587 (-D*) 7588 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7589 7590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7591 && test -z "${cf_tst_cflags}" \ 7592 && cf_fix_cppflags=yes 7593 7594 if test "$cf_fix_cppflags" = yes ; then 7595 7596 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7597 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7598 7599 continue 7600 elif test "${cf_tst_cflags}" = "\"'" ; then 7601 7602 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7603 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7604 7605 continue 7606 fi 7607 ;; 7608 esac 7609 case "$CPPFLAGS" in 7610 (*$cf_add_cflags) 7611 ;; 7612 (*) 7613 case "$cf_add_cflags" in 7614 (-D*) 7615 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7616 7617CPPFLAGS=`echo "$CPPFLAGS" | \ 7618 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7619 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7620 7621 ;; 7622 esac 7623 7624 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 7625 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 7626 7627 ;; 7628 esac 7629 ;; 7630 (*) 7631 7632 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 7633 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 7634 7635 ;; 7636 esac 7637 ;; 7638(yes) 7639 7640 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7641 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7642 7643 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 7644 7645 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7646 && test -z "${cf_tst_cflags}" \ 7647 && cf_fix_cppflags=no 7648 ;; 7649esac 7650done 7651 7652if test -n "$cf_new_cflags" ; then 7653 7654 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 7655 CFLAGS="${CFLAGS}$cf_new_cflags" 7656 7657fi 7658 7659if test -n "$cf_new_cppflags" ; then 7660 7661 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 7662 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 7663 7664fi 7665 7666if test -n "$cf_new_extra_cppflags" ; then 7667 7668 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 7669 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 7670 7671fi 7672 7673cf_add_libs="$LIBS" 7674# reverse order 7675cf_add_0lib= 7676for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7677# filter duplicates 7678for cf_add_1lib in $cf_add_0lib; do 7679 for cf_add_2lib in $cf_add_libs; do 7680 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7681 cf_add_1lib= 7682 break 7683 fi 7684 done 7685 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7686done 7687LIBS="$cf_add_libs" 7688 7689 cf_with_pcre2_ok=yes; break 7690else 7691 cf_pkgconfig_incs= 7692 cf_pkgconfig_libs= 7693 : 7694fi 7695 7696 done 7697 cf_with_pcre2_ok=yes || { { echo "$as_me:7697: error: Cannot find PCRE2 library" >&5 7698echo "$as_me: error: Cannot find PCRE2 library" >&2;} 7699 { (exit 1); exit 1; }; } 7700 7701cat >>confdefs.h <<\EOF 7702#define HAVE_LIB_PCRE2 1 7703EOF 7704 7705 # if pkgconfig gave no results, look for the libraries directly 7706 case "$LIBS" in 7707 (*pcre2-posix*|*pcreposix*) 7708 ;; 7709 (*) 7710 echo "$as_me:7710: checking for regcomp in -lpcre2-posix" >&5 7711echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6 7712if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then 7713 echo $ECHO_N "(cached) $ECHO_C" >&6 7714else 7715 ac_check_lib_save_LIBS=$LIBS 7716LIBS="-lpcre2-posix $LIBS" 7717cat >"conftest.$ac_ext" <<_ACEOF 7718#line 7718 "configure" 7719#include "confdefs.h" 7720 7721/* Override any gcc2 internal prototype to avoid an error. */ 7722#ifdef __cplusplus 7723extern "C" 7724#endif 7725/* We use char because int might match the return type of a gcc2 7726 builtin and then its argument prototype would still apply. */ 7727char regcomp (); 7728int 7729main (void) 7730{ 7731regcomp (); 7732 ; 7733 return 0; 7734} 7735_ACEOF 7736rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7737if { (eval echo "$as_me:7737: \"$ac_link\"") >&5 7738 (eval $ac_link) 2>&5 7739 ac_status=$? 7740 echo "$as_me:7740: \$? = $ac_status" >&5 7741 (exit "$ac_status"); } && 7742 { ac_try='test -s "conftest$ac_exeext"' 7743 { (eval echo "$as_me:7743: \"$ac_try\"") >&5 7744 (eval $ac_try) 2>&5 7745 ac_status=$? 7746 echo "$as_me:7746: \$? = $ac_status" >&5 7747 (exit "$ac_status"); }; }; then 7748 ac_cv_lib_pcre2_posix_regcomp=yes 7749else 7750 echo "$as_me: failed program was:" >&5 7751cat "conftest.$ac_ext" >&5 7752ac_cv_lib_pcre2_posix_regcomp=no 7753fi 7754rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7755LIBS=$ac_check_lib_save_LIBS 7756fi 7757echo "$as_me:7757: result: $ac_cv_lib_pcre2_posix_regcomp" >&5 7758echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6 7759if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then 7760 7761cf_add_libs="$LIBS" 7762# reverse order 7763cf_add_0lib= 7764for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7765# filter duplicates 7766for cf_add_1lib in $cf_add_0lib; do 7767 for cf_add_2lib in $cf_add_libs; do 7768 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7769 cf_add_1lib= 7770 break 7771 fi 7772 done 7773 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7774done 7775LIBS="$cf_add_libs" 7776 7777else 7778 echo "$as_me:7778: checking for regcomp in -lpcreposix" >&5 7779echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6 7780if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then 7781 echo $ECHO_N "(cached) $ECHO_C" >&6 7782else 7783 ac_check_lib_save_LIBS=$LIBS 7784LIBS="-lpcreposix $LIBS" 7785cat >"conftest.$ac_ext" <<_ACEOF 7786#line 7786 "configure" 7787#include "confdefs.h" 7788 7789/* Override any gcc2 internal prototype to avoid an error. */ 7790#ifdef __cplusplus 7791extern "C" 7792#endif 7793/* We use char because int might match the return type of a gcc2 7794 builtin and then its argument prototype would still apply. */ 7795char regcomp (); 7796int 7797main (void) 7798{ 7799regcomp (); 7800 ; 7801 return 0; 7802} 7803_ACEOF 7804rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7805if { (eval echo "$as_me:7805: \"$ac_link\"") >&5 7806 (eval $ac_link) 2>&5 7807 ac_status=$? 7808 echo "$as_me:7808: \$? = $ac_status" >&5 7809 (exit "$ac_status"); } && 7810 { ac_try='test -s "conftest$ac_exeext"' 7811 { (eval echo "$as_me:7811: \"$ac_try\"") >&5 7812 (eval $ac_try) 2>&5 7813 ac_status=$? 7814 echo "$as_me:7814: \$? = $ac_status" >&5 7815 (exit "$ac_status"); }; }; then 7816 ac_cv_lib_pcreposix_regcomp=yes 7817else 7818 echo "$as_me: failed program was:" >&5 7819cat "conftest.$ac_ext" >&5 7820ac_cv_lib_pcreposix_regcomp=no 7821fi 7822rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7823LIBS=$ac_check_lib_save_LIBS 7824fi 7825echo "$as_me:7825: result: $ac_cv_lib_pcreposix_regcomp" >&5 7826echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6 7827if test "$ac_cv_lib_pcreposix_regcomp" = yes; then 7828 7829cf_add_libs="$LIBS" 7830# reverse order 7831cf_add_0lib= 7832for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 7833# filter duplicates 7834for cf_add_1lib in $cf_add_0lib; do 7835 for cf_add_2lib in $cf_add_libs; do 7836 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 7837 cf_add_1lib= 7838 break 7839 fi 7840 done 7841 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 7842done 7843LIBS="$cf_add_libs" 7844 7845else 7846 { { echo "$as_me:7846: error: Cannot find PCRE2 POSIX library" >&5 7847echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;} 7848 { (exit 1); exit 1; }; } 7849fi 7850 7851fi 7852 7853 ;; 7854 esac 7855 7856 # either way, check for the library header files 7857 7858for ac_header in pcre2posix.h pcreposix.h 7859do 7860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7861echo "$as_me:7861: checking for $ac_header" >&5 7862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7863if eval "test \"\${$as_ac_Header+set}\" = set"; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865else 7866 cat >"conftest.$ac_ext" <<_ACEOF 7867#line 7867 "configure" 7868#include "confdefs.h" 7869#include <$ac_header> 7870_ACEOF 7871if { (eval echo "$as_me:7871: \"$ac_cpp "conftest.$ac_ext"\"") >&5 7872 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 7873 ac_status=$? 7874 $EGREP -v '^ *\+' conftest.er1 >conftest.err 7875 rm -f conftest.er1 7876 cat conftest.err >&5 7877 echo "$as_me:7877: \$? = $ac_status" >&5 7878 (exit "$ac_status"); } >/dev/null; then 7879 if test -s conftest.err; then 7880 ac_cpp_err=$ac_c_preproc_warn_flag 7881 else 7882 ac_cpp_err= 7883 fi 7884else 7885 ac_cpp_err=yes 7886fi 7887if test -z "$ac_cpp_err"; then 7888 eval "$as_ac_Header=yes" 7889else 7890 echo "$as_me: failed program was:" >&5 7891 cat "conftest.$ac_ext" >&5 7892 eval "$as_ac_Header=no" 7893fi 7894rm -f conftest.err "conftest.$ac_ext" 7895fi 7896echo "$as_me:7896: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 7897echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 7898if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 7899 cat >>confdefs.h <<EOF 7900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7901EOF 7902 7903fi 7904done 7905 7906for ac_func in PCRE2regcomp 7907do 7908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7909echo "$as_me:7909: checking for $ac_func" >&5 7910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7911if eval "test \"\${$as_ac_var+set}\" = set"; then 7912 echo $ECHO_N "(cached) $ECHO_C" >&6 7913else 7914 cat >"conftest.$ac_ext" <<_ACEOF 7915#line 7915 "configure" 7916#include "confdefs.h" 7917#define $ac_func autoconf_temporary 7918#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 7919#undef $ac_func 7920 7921#ifdef __cplusplus 7922extern "C" 7923#endif 7924 7925/* We use char because int might match the return type of a gcc2 7926 builtin and then its argument prototype would still apply. */ 7927char $ac_func (void); 7928 7929int 7930main (void) 7931{ 7932 7933/* The GNU C library defines stubs for functions which it implements 7934 to always fail with ENOSYS. Some functions are actually named 7935 something starting with __ and the normal name is an alias. */ 7936#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7937#error found stub for $ac_func 7938#endif 7939 7940 return $ac_func (); 7941 ; 7942 return 0; 7943} 7944_ACEOF 7945rm -f "conftest.$ac_objext" "conftest$ac_exeext" 7946if { (eval echo "$as_me:7946: \"$ac_link\"") >&5 7947 (eval $ac_link) 2>&5 7948 ac_status=$? 7949 echo "$as_me:7949: \$? = $ac_status" >&5 7950 (exit "$ac_status"); } && 7951 { ac_try='test -s "conftest$ac_exeext"' 7952 { (eval echo "$as_me:7952: \"$ac_try\"") >&5 7953 (eval $ac_try) 2>&5 7954 ac_status=$? 7955 echo "$as_me:7955: \$? = $ac_status" >&5 7956 (exit "$ac_status"); }; }; then 7957 eval "$as_ac_var=yes" 7958else 7959 echo "$as_me: failed program was:" >&5 7960cat "conftest.$ac_ext" >&5 7961eval "$as_ac_var=no" 7962fi 7963rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 7964fi 7965echo "$as_me:7965: result: `eval echo '${'"$as_ac_var"'}'`" >&5 7966echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 7967if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 7968 cat >>confdefs.h <<EOF 7969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7970EOF 7971 7972fi 7973done 7974 7975fi 7976 7977# not everyone has "test -c" 7978if test -c /dev/sysmouse 2>/dev/null ; then 7979echo "$as_me:7979: checking if you want to use sysmouse" >&5 7980echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6 7981 7982# Check whether --with-sysmouse or --without-sysmouse was given. 7983if test "${with_sysmouse+set}" = set; then 7984 withval="$with_sysmouse" 7985 cf_with_sysmouse=$withval 7986else 7987 cf_with_sysmouse=maybe 7988fi; 7989 if test "$cf_with_sysmouse" != no ; then 7990 cat >"conftest.$ac_ext" <<_ACEOF 7991#line 7991 "configure" 7992#include "confdefs.h" 7993 7994#include <osreldate.h> 7995#if (__FreeBSD_version >= 400017) 7996#include <sys/consio.h> 7997#include <sys/fbio.h> 7998#else 7999#include <machine/console.h> 8000#endif 8001 8002int 8003main (void) 8004{ 8005 8006 struct mouse_info the_mouse; 8007 ioctl(0, CONS_MOUSECTL, &the_mouse); 8008 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013rm -f "conftest.$ac_objext" 8014if { (eval echo "$as_me:8014: \"$ac_compile\"") >&5 8015 (eval $ac_compile) 2>&5 8016 ac_status=$? 8017 echo "$as_me:8017: \$? = $ac_status" >&5 8018 (exit "$ac_status"); } && 8019 { ac_try='test -s "conftest.$ac_objext"' 8020 { (eval echo "$as_me:8020: \"$ac_try\"") >&5 8021 (eval $ac_try) 2>&5 8022 ac_status=$? 8023 echo "$as_me:8023: \$? = $ac_status" >&5 8024 (exit "$ac_status"); }; }; then 8025 cf_with_sysmouse=yes 8026else 8027 echo "$as_me: failed program was:" >&5 8028cat "conftest.$ac_ext" >&5 8029cf_with_sysmouse=no 8030fi 8031rm -f "conftest.$ac_objext" "conftest.$ac_ext" 8032 fi 8033echo "$as_me:8033: result: $cf_with_sysmouse" >&5 8034echo "${ECHO_T}$cf_with_sysmouse" >&6 8035test "$cf_with_sysmouse" = yes && 8036cat >>confdefs.h <<\EOF 8037#define USE_SYSMOUSE 1 8038EOF 8039 8040fi 8041 8042# pretend that ncurses==ncursesw==ncursest 8043echo "$as_me:8043: checking if you want to disable library suffixes" >&5 8044echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6 8045 8046# Check whether --enable-lib-suffixes or --disable-lib-suffixes was given. 8047if test "${enable_lib_suffixes+set}" = set; then 8048 enableval="$enable_lib_suffixes" 8049 test "$enableval" != no && enableval=yes 8050 if test "$enableval" != "yes" ; then 8051 disable_lib_suffixes=yes 8052 else 8053 disable_lib_suffixes=no 8054 fi 8055else 8056 enableval=yes 8057 disable_lib_suffixes=no 8058 8059fi; 8060echo "$as_me:8060: result: $disable_lib_suffixes" >&5 8061echo "${ECHO_T}$disable_lib_suffixes" >&6 8062 8063### If we're building with rpath, try to link non-standard libs that way too. 8064if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then 8065 8066echo "$as_me:8066: checking if rpath-hack should be disabled" >&5 8067echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6 8068 8069# Check whether --enable-rpath-hack or --disable-rpath-hack was given. 8070if test "${enable_rpath_hack+set}" = set; then 8071 enableval="$enable_rpath_hack" 8072 test "$enableval" != no && enableval=yes 8073 if test "$enableval" != "yes" ; then 8074 enable_rpath_hack=no 8075 else 8076 enable_rpath_hack=yes 8077 fi 8078else 8079 enableval=yes 8080 enable_rpath_hack=yes 8081 8082fi; 8083if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi 8084echo "$as_me:8084: result: $cf_disable_rpath_hack" >&5 8085echo "${ECHO_T}$cf_disable_rpath_hack" >&6 8086 8087if test "$enable_rpath_hack" = yes ; then 8088 8089echo "$as_me:8089: checking for updated LDFLAGS" >&5 8090echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6 8091if test -n "$LD_RPATH_OPT" ; then 8092 echo "$as_me:8092: result: maybe" >&5 8093echo "${ECHO_T}maybe" >&6 8094 8095 for ac_prog in ldd 8096do 8097 # Extract the first word of "$ac_prog", so it can be a program name with args. 8098set dummy $ac_prog; ac_word=$2 8099echo "$as_me:8099: checking for $ac_word" >&5 8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8101if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then 8102 echo $ECHO_N "(cached) $ECHO_C" >&6 8103else 8104 if test -n "$cf_ldd_prog"; then 8105 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test. 8106else 8107 ac_save_IFS=$IFS; IFS=$ac_path_separator 8108ac_dummy="$PATH" 8109for ac_dir in $ac_dummy; do 8110 IFS=$ac_save_IFS 8111 test -z "$ac_dir" && ac_dir=. 8112 $as_executable_p "$ac_dir/$ac_word" || continue 8113ac_cv_prog_cf_ldd_prog="$ac_prog" 8114echo "$as_me:8114: found $ac_dir/$ac_word" >&5 8115break 8116done 8117 8118fi 8119fi 8120cf_ldd_prog=$ac_cv_prog_cf_ldd_prog 8121if test -n "$cf_ldd_prog"; then 8122 echo "$as_me:8122: result: $cf_ldd_prog" >&5 8123echo "${ECHO_T}$cf_ldd_prog" >&6 8124else 8125 echo "$as_me:8125: result: no" >&5 8126echo "${ECHO_T}no" >&6 8127fi 8128 8129 test -n "$cf_ldd_prog" && break 8130done 8131test -n "$cf_ldd_prog" || cf_ldd_prog="no" 8132 8133 cf_rpath_list="/usr/lib /lib" 8134 if test "$cf_ldd_prog" != no 8135 then 8136 cf_rpath_oops= 8137 8138cat >"conftest.$ac_ext" <<_ACEOF 8139#line 8139 "configure" 8140#include "confdefs.h" 8141#include <stdio.h> 8142int 8143main (void) 8144{ 8145printf("Hello"); 8146 ; 8147 return 0; 8148} 8149_ACEOF 8150rm -f "conftest.$ac_objext" "conftest$ac_exeext" 8151if { (eval echo "$as_me:8151: \"$ac_link\"") >&5 8152 (eval $ac_link) 2>&5 8153 ac_status=$? 8154 echo "$as_me:8154: \$? = $ac_status" >&5 8155 (exit "$ac_status"); } && 8156 { ac_try='test -s "conftest$ac_exeext"' 8157 { (eval echo "$as_me:8157: \"$ac_try\"") >&5 8158 (eval $ac_try) 2>&5 8159 ac_status=$? 8160 echo "$as_me:8160: \$? = $ac_status" >&5 8161 (exit "$ac_status"); }; }; then 8162 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq` 8163 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq` 8164else 8165 echo "$as_me: failed program was:" >&5 8166cat "conftest.$ac_ext" >&5 8167fi 8168rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 8169 8170 # If we passed the link-test, but get a "not found" on a given library, 8171 # this could be due to inept reconfiguration of gcc to make it only 8172 # partly honor /usr/local/lib (or whatever). Sometimes this behavior 8173 # is intentional, e.g., installing gcc in /usr/bin and suppressing the 8174 # /usr/local libraries. 8175 if test -n "$cf_rpath_oops" 8176 then 8177 for cf_rpath_src in $cf_rpath_oops 8178 do 8179 for cf_rpath_dir in \ 8180 /usr/local \ 8181 /usr/pkg \ 8182 /opt/sfw 8183 do 8184 if test -f "$cf_rpath_dir/lib/$cf_rpath_src" 8185 then 8186 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6 8187 8188echo "${as_me:-configure}:8188: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5 8189 8190 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib" 8191 break 8192 fi 8193 done 8194 done 8195 fi 8196 fi 8197 8198 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 8199 8200echo "${as_me:-configure}:8200: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 8201 8202test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6 8203 8204echo "${as_me:-configure}:8204: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5 8205 8206cf_rpath_dst= 8207for cf_rpath_src in $LDFLAGS 8208do 8209 case "$cf_rpath_src" in 8210 (-L*) 8211 8212 # check if this refers to a directory which we will ignore 8213 cf_rpath_skip=no 8214 if test -n "$cf_rpath_list" 8215 then 8216 for cf_rpath_item in $cf_rpath_list 8217 do 8218 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 8219 then 8220 cf_rpath_skip=yes 8221 break 8222 fi 8223 done 8224 fi 8225 8226 if test "$cf_rpath_skip" = no 8227 then 8228 # transform the option 8229 if test "$LD_RPATH_OPT" = "-R " ; then 8230 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 8231 else 8232 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 8233 fi 8234 8235 # if we have not already added this, add it now 8236 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 8237 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 8238 then 8239 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 8240 8241echo "${as_me:-configure}:8241: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 8242 8243 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 8244 fi 8245 fi 8246 ;; 8247 esac 8248 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 8249done 8250LDFLAGS=$cf_rpath_dst 8251 8252test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6 8253 8254echo "${as_me:-configure}:8254: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5 8255 8256test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6 8257 8258echo "${as_me:-configure}:8258: testing ...checking LIBS $LIBS ..." 1>&5 8259 8260cf_rpath_dst= 8261for cf_rpath_src in $LIBS 8262do 8263 case "$cf_rpath_src" in 8264 (-L*) 8265 8266 # check if this refers to a directory which we will ignore 8267 cf_rpath_skip=no 8268 if test -n "$cf_rpath_list" 8269 then 8270 for cf_rpath_item in $cf_rpath_list 8271 do 8272 if test "x$cf_rpath_src" = "x-L$cf_rpath_item" 8273 then 8274 cf_rpath_skip=yes 8275 break 8276 fi 8277 done 8278 fi 8279 8280 if test "$cf_rpath_skip" = no 8281 then 8282 # transform the option 8283 if test "$LD_RPATH_OPT" = "-R " ; then 8284 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"` 8285 else 8286 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"` 8287 fi 8288 8289 # if we have not already added this, add it now 8290 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"` 8291 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS" 8292 then 8293 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6 8294 8295echo "${as_me:-configure}:8295: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5 8296 8297 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS" 8298 fi 8299 fi 8300 ;; 8301 esac 8302 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src" 8303done 8304LIBS=$cf_rpath_dst 8305 8306test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6 8307 8308echo "${as_me:-configure}:8308: testing ...checked LIBS $LIBS ..." 1>&5 8309 8310 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6 8311 8312echo "${as_me:-configure}:8312: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5 8313 8314else 8315 echo "$as_me:8315: result: no" >&5 8316echo "${ECHO_T}no" >&6 8317fi 8318 8319fi 8320 8321fi 8322 8323### Depending on the system, someone may use rpath to build ncurses but not 8324# want users of the package to rely upon that feature. Give those people an 8325# option to suppress that detail from EXTRA_LDFLAGS. 8326EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 8327if test -n "$EXTRA_PKG_LDFLAGS" 8328then 8329 echo "$as_me:8329: checking if you want to disable extra LDFLAGS for package-scripts" >&5 8330echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6 8331 8332# Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given. 8333if test "${enable_pkg_ldflags+set}" = set; then 8334 enableval="$enable_pkg_ldflags" 8335 test "$enableval" != no && enableval=yes 8336 if test "$enableval" != "yes" ; then 8337 disable_pkg_ldflags=yes 8338 else 8339 disable_pkg_ldflags=no 8340 fi 8341else 8342 enableval=yes 8343 disable_pkg_ldflags=no 8344 8345fi; 8346 echo "$as_me:8346: result: $disable_pkg_ldflags" >&5 8347echo "${ECHO_T}$disable_pkg_ldflags" >&6 8348 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS= 8349fi 8350 8351############################################################################### 8352 8353### use option --with-extra-suffix to append suffix to headers and libraries 8354echo "$as_me:8354: checking if you wish to append extra suffix to header/library paths" >&5 8355echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6 8356EXTRA_SUFFIX= 8357 8358# Check whether --with-extra-suffix or --without-extra-suffix was given. 8359if test "${with_extra_suffix+set}" = set; then 8360 withval="$with_extra_suffix" 8361 case x$withval in 8362 (xno) 8363 ;; 8364 (xyes|x) 8365 EXTRA_SUFFIX=$cf_cv_abi_version 8366 ;; 8367 (*) 8368 EXTRA_SUFFIX=$withval 8369 ;; 8370 esac 8371 8372fi; 8373echo "$as_me:8373: result: $EXTRA_SUFFIX" >&5 8374echo "${ECHO_T}$EXTRA_SUFFIX" >&6 8375 8376### use option --disable-overwrite to leave out the link to -lcurses 8377echo "$as_me:8377: checking if you wish to install ncurses overwriting curses" >&5 8378echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6 8379 8380# Check whether --enable-overwrite or --disable-overwrite was given. 8381if test "${enable_overwrite+set}" = set; then 8382 enableval="$enable_overwrite" 8383 with_overwrite=$enableval 8384else 8385 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi 8386fi; 8387echo "$as_me:8387: result: $with_overwrite" >&5 8388echo "${ECHO_T}$with_overwrite" >&6 8389 8390echo "$as_me:8390: checking if external terminfo-database is used" >&5 8391echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6 8392 8393# Check whether --enable-database or --disable-database was given. 8394if test "${enable_database+set}" = set; then 8395 enableval="$enable_database" 8396 use_database=$enableval 8397else 8398 use_database=yes 8399fi; 8400echo "$as_me:8400: result: $use_database" >&5 8401echo "${ECHO_T}$use_database" >&6 8402 8403case "$host_os" in 8404(os2*) 8405 TERMINFO_SRC='${top_srcdir}/misc/emx.src' 8406 ;; 8407(*) 8408 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src' 8409 ;; 8410esac 8411 8412NCURSES_USE_DATABASE=0 8413if test "$use_database" != no ; then 8414 NCURSES_USE_DATABASE=1 8415 8416 echo "$as_me:8416: checking which terminfo source-file will be installed" >&5 8417echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6 8418 8419# Check whether --with-database or --without-database was given. 8420if test "${with_database+set}" = set; then 8421 withval="$with_database" 8422 TERMINFO_SRC=$withval 8423fi; 8424 echo "$as_me:8424: result: $TERMINFO_SRC" >&5 8425echo "${ECHO_T}$TERMINFO_SRC" >&6 8426 8427 echo "$as_me:8427: checking whether to use hashed database instead of directory/tree" >&5 8428echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6 8429 8430# Check whether --with-hashed-db or --without-hashed-db was given. 8431if test "${with_hashed_db+set}" = set; then 8432 withval="$with_hashed_db" 8433 8434else 8435 with_hashed_db=no 8436fi; 8437 echo "$as_me:8437: result: $with_hashed_db" >&5 8438echo "${ECHO_T}$with_hashed_db" >&6 8439else 8440 with_hashed_db=no 8441fi 8442 8443echo "$as_me:8443: checking for list of fallback descriptions" >&5 8444echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6 8445 8446# Check whether --with-fallbacks or --without-fallbacks was given. 8447if test "${with_fallbacks+set}" = set; then 8448 withval="$with_fallbacks" 8449 with_fallback=$withval 8450else 8451 with_fallback= 8452fi; 8453echo "$as_me:8453: result: $with_fallback" >&5 8454echo "${ECHO_T}$with_fallback" >&6 8455 8456case ".$with_fallback" in 8457(.|.no) 8458 FALLBACK_LIST= 8459 ;; 8460(.yes) 8461 { echo "$as_me:8461: WARNING: expected a list of terminal descriptions" >&5 8462echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;} 8463 ;; 8464(*) 8465 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'` 8466 ;; 8467esac 8468 8469# The fallback feature in ncurses relies upon tic/infocmp outside the build 8470# tree for generating the terminal descriptions that will be compiled into the 8471# library. If your toolchain is old, it may not handle current terminal 8472# databases. Use configure-options to point to the tools which will be used, 8473# rather than the first ones found on the $PATH. 8474if test -n "$ac_tool_prefix"; then 8475 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args. 8476set dummy ${ac_tool_prefix}tic; ac_word=$2 8477echo "$as_me:8477: checking for $ac_word" >&5 8478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8479if test "${ac_cv_prog_TIC+set}" = set; then 8480 echo $ECHO_N "(cached) $ECHO_C" >&6 8481else 8482 if test -n "$TIC"; then 8483 ac_cv_prog_TIC="$TIC" # Let the user override the test. 8484else 8485 ac_save_IFS=$IFS; IFS=$ac_path_separator 8486ac_dummy="$PATH" 8487for ac_dir in $ac_dummy; do 8488 IFS=$ac_save_IFS 8489 test -z "$ac_dir" && ac_dir=. 8490 $as_executable_p "$ac_dir/$ac_word" || continue 8491ac_cv_prog_TIC="${ac_tool_prefix}tic" 8492echo "$as_me:8492: found $ac_dir/$ac_word" >&5 8493break 8494done 8495 8496fi 8497fi 8498TIC=$ac_cv_prog_TIC 8499if test -n "$TIC"; then 8500 echo "$as_me:8500: result: $TIC" >&5 8501echo "${ECHO_T}$TIC" >&6 8502else 8503 echo "$as_me:8503: result: no" >&5 8504echo "${ECHO_T}no" >&6 8505fi 8506 8507fi 8508if test -z "$ac_cv_prog_TIC"; then 8509 ac_ct_TIC=$TIC 8510 # Extract the first word of "tic", so it can be a program name with args. 8511set dummy tic; ac_word=$2 8512echo "$as_me:8512: checking for $ac_word" >&5 8513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8514if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then 8515 echo $ECHO_N "(cached) $ECHO_C" >&6 8516else 8517 if test -n "$ac_ct_TIC"; then 8518 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test. 8519else 8520 ac_save_IFS=$IFS; IFS=$ac_path_separator 8521ac_dummy="$PATH" 8522for ac_dir in $ac_dummy; do 8523 IFS=$ac_save_IFS 8524 test -z "$ac_dir" && ac_dir=. 8525 $as_executable_p "$ac_dir/$ac_word" || continue 8526ac_cv_prog_ac_ct_TIC="tic" 8527echo "$as_me:8527: found $ac_dir/$ac_word" >&5 8528break 8529done 8530 8531fi 8532fi 8533ac_ct_TIC=$ac_cv_prog_ac_ct_TIC 8534if test -n "$ac_ct_TIC"; then 8535 echo "$as_me:8535: result: $ac_ct_TIC" >&5 8536echo "${ECHO_T}$ac_ct_TIC" >&6 8537else 8538 echo "$as_me:8538: result: no" >&5 8539echo "${ECHO_T}no" >&6 8540fi 8541 8542 TIC=$ac_ct_TIC 8543else 8544 TIC="$ac_cv_prog_TIC" 8545fi 8546 8547if test -n "$ac_tool_prefix"; then 8548 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args. 8549set dummy ${ac_tool_prefix}infocmp; ac_word=$2 8550echo "$as_me:8550: checking for $ac_word" >&5 8551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8552if test "${ac_cv_prog_INFOCMP+set}" = set; then 8553 echo $ECHO_N "(cached) $ECHO_C" >&6 8554else 8555 if test -n "$INFOCMP"; then 8556 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test. 8557else 8558 ac_save_IFS=$IFS; IFS=$ac_path_separator 8559ac_dummy="$PATH" 8560for ac_dir in $ac_dummy; do 8561 IFS=$ac_save_IFS 8562 test -z "$ac_dir" && ac_dir=. 8563 $as_executable_p "$ac_dir/$ac_word" || continue 8564ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp" 8565echo "$as_me:8565: found $ac_dir/$ac_word" >&5 8566break 8567done 8568 8569fi 8570fi 8571INFOCMP=$ac_cv_prog_INFOCMP 8572if test -n "$INFOCMP"; then 8573 echo "$as_me:8573: result: $INFOCMP" >&5 8574echo "${ECHO_T}$INFOCMP" >&6 8575else 8576 echo "$as_me:8576: result: no" >&5 8577echo "${ECHO_T}no" >&6 8578fi 8579 8580fi 8581if test -z "$ac_cv_prog_INFOCMP"; then 8582 ac_ct_INFOCMP=$INFOCMP 8583 # Extract the first word of "infocmp", so it can be a program name with args. 8584set dummy infocmp; ac_word=$2 8585echo "$as_me:8585: checking for $ac_word" >&5 8586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8587if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then 8588 echo $ECHO_N "(cached) $ECHO_C" >&6 8589else 8590 if test -n "$ac_ct_INFOCMP"; then 8591 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test. 8592else 8593 ac_save_IFS=$IFS; IFS=$ac_path_separator 8594ac_dummy="$PATH" 8595for ac_dir in $ac_dummy; do 8596 IFS=$ac_save_IFS 8597 test -z "$ac_dir" && ac_dir=. 8598 $as_executable_p "$ac_dir/$ac_word" || continue 8599ac_cv_prog_ac_ct_INFOCMP="infocmp" 8600echo "$as_me:8600: found $ac_dir/$ac_word" >&5 8601break 8602done 8603 8604fi 8605fi 8606ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP 8607if test -n "$ac_ct_INFOCMP"; then 8608 echo "$as_me:8608: result: $ac_ct_INFOCMP" >&5 8609echo "${ECHO_T}$ac_ct_INFOCMP" >&6 8610else 8611 echo "$as_me:8611: result: no" >&5 8612echo "${ECHO_T}no" >&6 8613fi 8614 8615 INFOCMP=$ac_ct_INFOCMP 8616else 8617 INFOCMP="$ac_cv_prog_INFOCMP" 8618fi 8619 8620if test -n "$FALLBACK_LIST" 8621then 8622 8623# Check whether --with-tic-path or --without-tic-path was given. 8624if test "${with_tic_path+set}" = set; then 8625 withval="$with_tic_path" 8626 echo "$as_me:8626: checking for tic program for fallbacks" >&5 8627echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6 8628 TIC=$withval 8629 echo "$as_me:8629: result: $TIC" >&5 8630echo "${ECHO_T}$TIC" >&6 8631 8632if test "x$prefix" != xNONE; then 8633 cf_path_syntax="$prefix" 8634else 8635 cf_path_syntax="$ac_default_prefix" 8636fi 8637 8638case ".$TIC" in 8639(.\$\(*\)*|.\'*\'*) 8640 ;; 8641(..|./*|.\\*) 8642 ;; 8643(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8644 ;; 8645(.\$\{*prefix\}*|.\$\{*dir\}*) 8646 eval TIC="$TIC" 8647 case ".$TIC" in 8648 (.NONE/*) 8649 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%` 8650 ;; 8651 esac 8652 ;; 8653(.no|.NONE/*) 8654 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%` 8655 ;; 8656(*) 8657 { { echo "$as_me:8657: error: expected a pathname, not \"$TIC\"" >&5 8658echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;} 8659 { (exit 1); exit 1; }; } 8660 ;; 8661esac 8662 8663else 8664 8665test -z "$TIC" && TIC="tic" 8666for ac_prog in $TIC tic 8667do 8668 # Extract the first word of "$ac_prog", so it can be a program name with args. 8669set dummy $ac_prog; ac_word=$2 8670echo "$as_me:8670: checking for $ac_word" >&5 8671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8672if test "${ac_cv_path_TIC+set}" = set; then 8673 echo $ECHO_N "(cached) $ECHO_C" >&6 8674else 8675 case $TIC in 8676 [\\/]* | ?:[\\/]*) 8677 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 8678 ;; 8679 *) 8680 ac_save_IFS=$IFS; IFS=$ac_path_separator 8681ac_dummy="$PATH:/usr/local/ncurses/bin" 8682for ac_dir in $ac_dummy; do 8683 IFS=$ac_save_IFS 8684 test -z "$ac_dir" && ac_dir=. 8685 if $as_executable_p "$ac_dir/$ac_word"; then 8686 ac_cv_path_TIC="$ac_dir/$ac_word" 8687 echo "$as_me:8687: found $ac_dir/$ac_word" >&5 8688 break 8689fi 8690done 8691 8692 ;; 8693esac 8694fi 8695TIC=$ac_cv_path_TIC 8696 8697if test -n "$TIC"; then 8698 echo "$as_me:8698: result: $TIC" >&5 8699echo "${ECHO_T}$TIC" >&6 8700else 8701 echo "$as_me:8701: result: no" >&5 8702echo "${ECHO_T}no" >&6 8703fi 8704 8705 test -n "$TIC" && break 8706done 8707test -n "$TIC" || TIC="$TIC" 8708 8709cf_path_prog="" 8710cf_path_args="" 8711IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8712for cf_temp in $ac_cv_path_TIC 8713do 8714 if test -z "$cf_path_prog" ; then 8715 if test "$with_full_paths" = yes ; then 8716 8717if test "x$prefix" != xNONE; then 8718 cf_path_syntax="$prefix" 8719else 8720 cf_path_syntax="$ac_default_prefix" 8721fi 8722 8723case ".$cf_temp" in 8724(.\$\(*\)*|.\'*\'*) 8725 ;; 8726(..|./*|.\\*) 8727 ;; 8728(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8729 ;; 8730(.\$\{*prefix\}*|.\$\{*dir\}*) 8731 eval cf_temp="$cf_temp" 8732 case ".$cf_temp" in 8733 (.NONE/*) 8734 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8735 ;; 8736 esac 8737 ;; 8738(.no|.NONE/*) 8739 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8740 ;; 8741(*) 8742 break 8743 ;; 8744esac 8745 8746 cf_path_prog="$cf_temp" 8747 else 8748 cf_path_prog="`basename "$cf_temp"`" 8749 fi 8750 elif test -z "$cf_path_args" ; then 8751 cf_path_args="$cf_temp" 8752 else 8753 cf_path_args="$cf_path_args $cf_temp" 8754 fi 8755done 8756IFS="$cf_save_ifs" 8757 8758if test -n "$cf_path_prog" ; then 8759 8760echo "${as_me:-configure}:8760: testing defining path for ${cf_path_prog} ..." 1>&5 8761 8762cat >>confdefs.h <<EOF 8763#define TIC_PATH "$cf_path_prog" 8764EOF 8765 8766 test -n "$cf_path_args" && 8767cat >>confdefs.h <<EOF 8768#define TIC_ARGS "$cf_path_args" 8769EOF 8770 8771fi 8772 8773 if test -z "$TIC" 8774 then 8775 { echo "$as_me:8775: WARNING: no tic program found for fallbacks" >&5 8776echo "$as_me: WARNING: no tic program found for fallbacks" >&2;} 8777 fi 8778 8779fi; 8780 8781# Check whether --with-infocmp-path or --without-infocmp-path was given. 8782if test "${with_infocmp_path+set}" = set; then 8783 withval="$with_infocmp_path" 8784 echo "$as_me:8784: checking for infocmp program for fallbacks" >&5 8785echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6 8786 INFOCMP=$withval 8787 echo "$as_me:8787: result: $INFOCMP" >&5 8788echo "${ECHO_T}$INFOCMP" >&6 8789 8790if test "x$prefix" != xNONE; then 8791 cf_path_syntax="$prefix" 8792else 8793 cf_path_syntax="$ac_default_prefix" 8794fi 8795 8796case ".$INFOCMP" in 8797(.\$\(*\)*|.\'*\'*) 8798 ;; 8799(..|./*|.\\*) 8800 ;; 8801(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8802 ;; 8803(.\$\{*prefix\}*|.\$\{*dir\}*) 8804 eval INFOCMP="$INFOCMP" 8805 case ".$INFOCMP" in 8806 (.NONE/*) 8807 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%` 8808 ;; 8809 esac 8810 ;; 8811(.no|.NONE/*) 8812 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%` 8813 ;; 8814(*) 8815 { { echo "$as_me:8815: error: expected a pathname, not \"$INFOCMP\"" >&5 8816echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;} 8817 { (exit 1); exit 1; }; } 8818 ;; 8819esac 8820 8821else 8822 8823test -z "$INFOCMP" && INFOCMP="infocmp" 8824for ac_prog in $INFOCMP infocmp 8825do 8826 # Extract the first word of "$ac_prog", so it can be a program name with args. 8827set dummy $ac_prog; ac_word=$2 8828echo "$as_me:8828: checking for $ac_word" >&5 8829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8830if test "${ac_cv_path_INFOCMP+set}" = set; then 8831 echo $ECHO_N "(cached) $ECHO_C" >&6 8832else 8833 case $INFOCMP in 8834 [\\/]* | ?:[\\/]*) 8835 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path. 8836 ;; 8837 *) 8838 ac_save_IFS=$IFS; IFS=$ac_path_separator 8839ac_dummy="$PATH:/usr/local/ncurses/bin" 8840for ac_dir in $ac_dummy; do 8841 IFS=$ac_save_IFS 8842 test -z "$ac_dir" && ac_dir=. 8843 if $as_executable_p "$ac_dir/$ac_word"; then 8844 ac_cv_path_INFOCMP="$ac_dir/$ac_word" 8845 echo "$as_me:8845: found $ac_dir/$ac_word" >&5 8846 break 8847fi 8848done 8849 8850 ;; 8851esac 8852fi 8853INFOCMP=$ac_cv_path_INFOCMP 8854 8855if test -n "$INFOCMP"; then 8856 echo "$as_me:8856: result: $INFOCMP" >&5 8857echo "${ECHO_T}$INFOCMP" >&6 8858else 8859 echo "$as_me:8859: result: no" >&5 8860echo "${ECHO_T}no" >&6 8861fi 8862 8863 test -n "$INFOCMP" && break 8864done 8865test -n "$INFOCMP" || INFOCMP="$INFOCMP" 8866 8867cf_path_prog="" 8868cf_path_args="" 8869IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" 8870for cf_temp in $ac_cv_path_INFOCMP 8871do 8872 if test -z "$cf_path_prog" ; then 8873 if test "$with_full_paths" = yes ; then 8874 8875if test "x$prefix" != xNONE; then 8876 cf_path_syntax="$prefix" 8877else 8878 cf_path_syntax="$ac_default_prefix" 8879fi 8880 8881case ".$cf_temp" in 8882(.\$\(*\)*|.\'*\'*) 8883 ;; 8884(..|./*|.\\*) 8885 ;; 8886(.[a-zA-Z]:[\\/]*) # OS/2 EMX 8887 ;; 8888(.\$\{*prefix\}*|.\$\{*dir\}*) 8889 eval cf_temp="$cf_temp" 8890 case ".$cf_temp" in 8891 (.NONE/*) 8892 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8893 ;; 8894 esac 8895 ;; 8896(.no|.NONE/*) 8897 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%` 8898 ;; 8899(*) 8900 break 8901 ;; 8902esac 8903 8904 cf_path_prog="$cf_temp" 8905 else 8906 cf_path_prog="`basename "$cf_temp"`" 8907 fi 8908 elif test -z "$cf_path_args" ; then 8909 cf_path_args="$cf_temp" 8910 else 8911 cf_path_args="$cf_path_args $cf_temp" 8912 fi 8913done 8914IFS="$cf_save_ifs" 8915 8916if test -n "$cf_path_prog" ; then 8917 8918echo "${as_me:-configure}:8918: testing defining path for ${cf_path_prog} ..." 1>&5 8919 8920cat >>confdefs.h <<EOF 8921#define INFOCMP_PATH "$cf_path_prog" 8922EOF 8923 8924 test -n "$cf_path_args" && 8925cat >>confdefs.h <<EOF 8926#define INFOCMP_ARGS "$cf_path_args" 8927EOF 8928 8929fi 8930 8931 if test -z "$INFOCMP" 8932 then 8933 { echo "$as_me:8933: WARNING: no infocmp program found for fallbacks" >&5 8934echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;} 8935 fi 8936 8937fi; 8938 8939 test -z "$TIC" && FALLBACK_LIST= 8940 test -z "$INFOCMP" && FALLBACK_LIST= 8941 if test -z "$FALLBACK_LIST" 8942 then 8943 { echo "$as_me:8943: WARNING: ignoring fallback option because tic/infocmp are not available" >&5 8944echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;} 8945 fi 8946fi 8947 8948USE_FALLBACKS= 8949test -z "$FALLBACK_LIST" && USE_FALLBACKS="#" 8950 8951echo "$as_me:8951: checking if you want modern xterm or antique" >&5 8952echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6 8953 8954# Check whether --with-xterm-new or --without-xterm-new was given. 8955if test "${with_xterm_new+set}" = set; then 8956 withval="$with_xterm_new" 8957 with_xterm_new=$withval 8958else 8959 with_xterm_new=yes 8960fi; 8961case "$with_xterm_new" in 8962(no) with_xterm_new=xterm-old;; 8963(*) with_xterm_new=xterm-new;; 8964esac 8965echo "$as_me:8965: result: $with_xterm_new" >&5 8966echo "${ECHO_T}$with_xterm_new" >&6 8967WHICH_XTERM=$with_xterm_new 8968 8969echo "$as_me:8969: checking if xterm backspace sends BS or DEL" >&5 8970echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6 8971 8972# Check whether --with-xterm-kbs or --without-xterm-kbs was given. 8973if test "${with_xterm_kbs+set}" = set; then 8974 withval="$with_xterm_kbs" 8975 with_xterm_kbs=$withval 8976else 8977 with_xterm_kbs=BS 8978fi; 8979case x$with_xterm_kbs in 8980(xyes|xno|xBS|xbs|x8) 8981 with_xterm_kbs=BS 8982 ;; 8983(xDEL|xdel|x127) 8984 with_xterm_kbs=DEL 8985 ;; 8986(*) 8987 with_xterm_kbs=$withval 8988 ;; 8989esac 8990echo "$as_me:8990: result: $with_xterm_kbs" >&5 8991echo "${ECHO_T}$with_xterm_kbs" >&6 8992XTERM_KBS=$with_xterm_kbs 8993 8994MAKE_TERMINFO= 8995if test "$use_database" = no ; then 8996 TERMINFO="${datadir}/terminfo" 8997 MAKE_TERMINFO="#" 8998else 8999 9000echo "$as_me:9000: checking for list of terminfo directories" >&5 9001echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6 9002 9003# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given. 9004if test "${with_terminfo_dirs+set}" = set; then 9005 withval="$with_terminfo_dirs" 9006 9007else 9008 withval=${TERMINFO_DIRS:-${datadir}/terminfo} 9009fi; 9010IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 9011cf_dst_path= 9012for cf_src_path in $withval 9013do 9014 9015if test "x$prefix" != xNONE; then 9016 cf_path_syntax="$prefix" 9017else 9018 cf_path_syntax="$ac_default_prefix" 9019fi 9020 9021case ".$cf_src_path" in 9022(.\$\(*\)*|.\'*\'*) 9023 ;; 9024(..|./*|.\\*) 9025 ;; 9026(.[a-zA-Z]:[\\/]*) # OS/2 EMX 9027 ;; 9028(.\$\{*prefix\}*|.\$\{*dir\}*) 9029 eval cf_src_path="$cf_src_path" 9030 case ".$cf_src_path" in 9031 (.NONE/*) 9032 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9033 ;; 9034 esac 9035 ;; 9036(.no|.NONE/*) 9037 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9038 ;; 9039(*) 9040 { { echo "$as_me:9040: error: expected a pathname, not \"$cf_src_path\"" >&5 9041echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 9042 { (exit 1); exit 1; }; } 9043 ;; 9044esac 9045 9046 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR" 9047 cf_dst_path="${cf_dst_path}${cf_src_path}" 9048done 9049IFS="$ac_save_ifs" 9050 9051# This may use the prefix/exec_prefix symbols which will only yield "NONE" 9052# so we have to check/work around. We do prefer the result of "eval"... 9053eval cf_dst_eval="$cf_dst_path" 9054case "x$cf_dst_eval" in 9055(xNONE*) 9056 TERMINFO_DIRS=$cf_dst_path 9057 ;; 9058(*) 9059 TERMINFO_DIRS="$cf_dst_eval" 9060 ;; 9061esac 9062 9063echo "$as_me:9063: result: $TERMINFO_DIRS" >&5 9064echo "${ECHO_T}$TERMINFO_DIRS" >&6 9065test -n "$TERMINFO_DIRS" && 9066cat >>confdefs.h <<EOF 9067#define TERMINFO_DIRS "$TERMINFO_DIRS" 9068EOF 9069 9070case "x$TERMINFO" in 9071x???:*) 9072 { echo "$as_me:9072: WARNING: ignoring non-directory/file TERMINFO value" >&5 9073echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;} 9074 unset TERMINFO 9075 ;; 9076esac 9077 9078echo "$as_me:9078: checking for default terminfo directory" >&5 9079echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6 9080 9081# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given. 9082if test "${with_default_terminfo_dir+set}" = set; then 9083 withval="$with_default_terminfo_dir" 9084 9085else 9086 withval="${TERMINFO:-${datadir}/terminfo}" 9087fi; if test -n "${datadir}/terminfo" ; then 9088 9089if test "x$prefix" != xNONE; then 9090 cf_path_syntax="$prefix" 9091else 9092 cf_path_syntax="$ac_default_prefix" 9093fi 9094 9095case ".$withval" in 9096(.\$\(*\)*|.\'*\'*) 9097 ;; 9098(..|./*|.\\*) 9099 ;; 9100(.[a-zA-Z]:[\\/]*) # OS/2 EMX 9101 ;; 9102(.\$\{*prefix\}*|.\$\{*dir\}*) 9103 eval withval="$withval" 9104 case ".$withval" in 9105 (.NONE/*) 9106 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 9107 ;; 9108 esac 9109 ;; 9110(.no|.NONE/*) 9111 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 9112 ;; 9113(*) 9114 { { echo "$as_me:9114: error: expected a pathname, not \"$withval\"" >&5 9115echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 9116 { (exit 1); exit 1; }; } 9117 ;; 9118esac 9119 9120fi 9121eval TERMINFO="$withval" 9122 9123echo "$as_me:9123: result: $TERMINFO" >&5 9124echo "${ECHO_T}$TERMINFO" >&6 9125 9126cat >>confdefs.h <<EOF 9127#define TERMINFO "$TERMINFO" 9128EOF 9129 9130fi 9131 9132### use option --disable-big-core to make tic run on small machines 9133### We need 4Mb, check if we can allocate 50% more than that. 9134echo "$as_me:9134: checking if big-core option selected" >&5 9135echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6 9136 9137# Check whether --enable-big-core or --disable-big-core was given. 9138if test "${enable_big_core+set}" = set; then 9139 enableval="$enable_big_core" 9140 with_big_core=$enableval 9141else 9142 if test "$cross_compiling" = yes; then 9143 with_big_core=no 9144else 9145 cat >"conftest.$ac_ext" <<_ACEOF 9146#line 9146 "configure" 9147#include "confdefs.h" 9148 9149#include <stdlib.h> 9150#include <string.h> 9151int main() { 9152 unsigned long n = 6000000L; 9153 char *s = malloc(n); 9154 if (s != 0) 9155 s[0] = s[n-1] = 0; 9156 ${cf_cv_main_return:-return}(s == 0); 9157} 9158_ACEOF 9159rm -f "conftest$ac_exeext" 9160if { (eval echo "$as_me:9160: \"$ac_link\"") >&5 9161 (eval $ac_link) 2>&5 9162 ac_status=$? 9163 echo "$as_me:9163: \$? = $ac_status" >&5 9164 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 9165 { (eval echo "$as_me:9165: \"$ac_try\"") >&5 9166 (eval $ac_try) 2>&5 9167 ac_status=$? 9168 echo "$as_me:9168: \$? = $ac_status" >&5 9169 (exit "$ac_status"); }; }; then 9170 with_big_core=yes 9171else 9172 echo "$as_me: program exited with status $ac_status" >&5 9173echo "$as_me: failed program was:" >&5 9174cat "conftest.$ac_ext" >&5 9175with_big_core=no 9176fi 9177rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 9178fi 9179fi; 9180echo "$as_me:9180: result: $with_big_core" >&5 9181echo "${ECHO_T}$with_big_core" >&6 9182test "x$with_big_core" = "xyes" && 9183cat >>confdefs.h <<\EOF 9184#define HAVE_BIG_CORE 1 9185EOF 9186 9187### ISO C only guarantees 512-char strings, we have tables which load faster 9188### when constructed using "big" strings. More than the C compiler, the awk 9189### program is a limit on most vendor UNIX systems. Check that we can build. 9190echo "$as_me:9190: checking if big-strings option selected" >&5 9191echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6 9192 9193# Check whether --enable-big-strings or --disable-big-strings was given. 9194if test "${enable_big_strings+set}" = set; then 9195 enableval="$enable_big_strings" 9196 with_big_strings=$enableval 9197else 9198 9199 case x$AWK in 9200 (x) 9201 eval with_big_strings=no 9202 ;; 9203 (*) 9204 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \ 9205 | $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 9206 eval with_big_strings=yes 9207 else 9208 eval with_big_strings=no 9209 fi 9210 ;; 9211 esac 9212 9213fi; 9214echo "$as_me:9214: result: $with_big_strings" >&5 9215echo "${ECHO_T}$with_big_strings" >&6 9216 9217USE_BIG_STRINGS=0 9218test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1 9219 9220### use option --enable-termcap to compile in the termcap fallback support 9221echo "$as_me:9221: checking if you want termcap-fallback support" >&5 9222echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6 9223 9224# Check whether --enable-termcap or --disable-termcap was given. 9225if test "${enable_termcap+set}" = set; then 9226 enableval="$enable_termcap" 9227 with_termcap=$enableval 9228else 9229 with_termcap=no 9230fi; 9231echo "$as_me:9231: result: $with_termcap" >&5 9232echo "${ECHO_T}$with_termcap" >&6 9233 9234NCURSES_USE_TERMCAP=0 9235if test "x$with_termcap" != "xyes" ; then 9236 if test "$use_database" = no ; then 9237 if test -z "$with_fallback" ; then 9238 { { echo "$as_me:9238: error: You have disabled the database w/o specifying fallbacks" >&5 9239echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;} 9240 { (exit 1); exit 1; }; } 9241 fi 9242 fi 9243 9244cat >>confdefs.h <<\EOF 9245#define PURE_TERMINFO 1 9246EOF 9247 9248else 9249 9250 if test "$with_ticlib" != no ; then 9251 { { echo "$as_me:9251: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5 9252echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;} 9253 { (exit 1); exit 1; }; } 9254 fi 9255 9256 NCURSES_USE_TERMCAP=1 9257 echo "$as_me:9257: checking for list of termcap files" >&5 9258echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6 9259 9260# Check whether --with-termpath or --without-termpath was given. 9261if test "${with_termpath+set}" = set; then 9262 withval="$with_termpath" 9263 9264else 9265 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap} 9266fi; 9267IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}" 9268cf_dst_path= 9269for cf_src_path in $withval 9270do 9271 9272if test "x$prefix" != xNONE; then 9273 cf_path_syntax="$prefix" 9274else 9275 cf_path_syntax="$ac_default_prefix" 9276fi 9277 9278case ".$cf_src_path" in 9279(.\$\(*\)*|.\'*\'*) 9280 ;; 9281(..|./*|.\\*) 9282 ;; 9283(.[a-zA-Z]:[\\/]*) # OS/2 EMX 9284 ;; 9285(.\$\{*prefix\}*|.\$\{*dir\}*) 9286 eval cf_src_path="$cf_src_path" 9287 case ".$cf_src_path" in 9288 (.NONE/*) 9289 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9290 ;; 9291 esac 9292 ;; 9293(.no|.NONE/*) 9294 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%` 9295 ;; 9296(*) 9297 { { echo "$as_me:9297: error: expected a pathname, not \"$cf_src_path\"" >&5 9298echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;} 9299 { (exit 1); exit 1; }; } 9300 ;; 9301esac 9302 9303 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR" 9304 cf_dst_path="${cf_dst_path}${cf_src_path}" 9305done 9306IFS="$ac_save_ifs" 9307 9308# This may use the prefix/exec_prefix symbols which will only yield "NONE" 9309# so we have to check/work around. We do prefer the result of "eval"... 9310eval cf_dst_eval="$cf_dst_path" 9311case "x$cf_dst_eval" in 9312(xNONE*) 9313 TERMPATH=$cf_dst_path 9314 ;; 9315(*) 9316 TERMPATH="$cf_dst_eval" 9317 ;; 9318esac 9319 9320 echo "$as_me:9320: result: $TERMPATH" >&5 9321echo "${ECHO_T}$TERMPATH" >&6 9322 test -n "$TERMPATH" && 9323cat >>confdefs.h <<EOF 9324#define TERMPATH "$TERMPATH" 9325EOF 9326 9327 ### use option --enable-getcap to use a hacked getcap for reading termcaps 9328 echo "$as_me:9328: checking if fast termcap-loader is needed" >&5 9329echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6 9330 9331# Check whether --enable-getcap or --disable-getcap was given. 9332if test "${enable_getcap+set}" = set; then 9333 enableval="$enable_getcap" 9334 with_getcap=$enableval 9335else 9336 with_getcap=no 9337fi; 9338 echo "$as_me:9338: result: $with_getcap" >&5 9339echo "${ECHO_T}$with_getcap" >&6 9340 test "x$with_getcap" = "xyes" && 9341cat >>confdefs.h <<\EOF 9342#define USE_GETCAP 1 9343EOF 9344 9345 echo "$as_me:9345: checking if translated termcaps will be cached in ~/.terminfo" >&5 9346echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6 9347 9348# Check whether --enable-getcap-cache or --disable-getcap-cache was given. 9349if test "${enable_getcap_cache+set}" = set; then 9350 enableval="$enable_getcap_cache" 9351 with_getcap_cache=$enableval 9352else 9353 with_getcap_cache=no 9354fi; 9355 echo "$as_me:9355: result: $with_getcap_cache" >&5 9356echo "${ECHO_T}$with_getcap_cache" >&6 9357 test "x$with_getcap_cache" = "xyes" && 9358cat >>confdefs.h <<\EOF 9359#define USE_GETCAP_CACHE 1 9360EOF 9361 9362fi 9363 9364### Use option --disable-home-terminfo to completely remove ~/.terminfo 9365echo "$as_me:9365: checking if ~/.terminfo is wanted" >&5 9366echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6 9367 9368# Check whether --enable-home-terminfo or --disable-home-terminfo was given. 9369if test "${enable_home_terminfo+set}" = set; then 9370 enableval="$enable_home_terminfo" 9371 with_home_terminfo=$enableval 9372else 9373 with_home_terminfo=yes 9374fi; 9375echo "$as_me:9375: result: $with_home_terminfo" >&5 9376echo "${ECHO_T}$with_home_terminfo" >&6 9377test "x$with_home_terminfo" = "xyes" && 9378cat >>confdefs.h <<\EOF 9379#define USE_HOME_TERMINFO 1 9380EOF 9381 9382echo "$as_me:9382: checking if you want to permit root to use ncurses environment variables" >&5 9383echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6 9384 9385# Check whether --enable-root-environ or --disable-root-environ was given. 9386if test "${enable_root_environ+set}" = set; then 9387 enableval="$enable_root_environ" 9388 with_root_environ=$enableval 9389else 9390 with_root_environ=yes 9391fi; 9392echo "$as_me:9392: result: $with_root_environ" >&5 9393echo "${ECHO_T}$with_root_environ" >&6 9394test "x$with_root_environ" = xyes && 9395cat >>confdefs.h <<\EOF 9396#define USE_ROOT_ENVIRON 1 9397EOF 9398 9399echo "$as_me:9399: checking if you want to permit setuid programs to access all files" >&5 9400echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6 9401 9402# Check whether --enable-root-environ or --disable-root-environ was given. 9403if test "${enable_root_environ+set}" = set; then 9404 enableval="$enable_root_environ" 9405 with_root_access=$enableval 9406else 9407 with_root_access=yes 9408fi; 9409echo "$as_me:9409: result: $with_root_access" >&5 9410echo "${ECHO_T}$with_root_access" >&6 9411test "x$with_root_access" = xyes && 9412cat >>confdefs.h <<\EOF 9413#define USE_ROOT_ACCESS 1 9414EOF 9415 9416### Use option --enable-symlinks to make tic use symlinks, not hard links 9417### to reduce storage requirements for the terminfo database. 9418 9419for ac_header in \ 9420unistd.h \ 9421 9422do 9423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9424echo "$as_me:9424: checking for $ac_header" >&5 9425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9426if eval "test \"\${$as_ac_Header+set}\" = set"; then 9427 echo $ECHO_N "(cached) $ECHO_C" >&6 9428else 9429 cat >"conftest.$ac_ext" <<_ACEOF 9430#line 9430 "configure" 9431#include "confdefs.h" 9432#include <$ac_header> 9433_ACEOF 9434if { (eval echo "$as_me:9434: \"$ac_cpp "conftest.$ac_ext"\"") >&5 9435 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 9436 ac_status=$? 9437 $EGREP -v '^ *\+' conftest.er1 >conftest.err 9438 rm -f conftest.er1 9439 cat conftest.err >&5 9440 echo "$as_me:9440: \$? = $ac_status" >&5 9441 (exit "$ac_status"); } >/dev/null; then 9442 if test -s conftest.err; then 9443 ac_cpp_err=$ac_c_preproc_warn_flag 9444 else 9445 ac_cpp_err= 9446 fi 9447else 9448 ac_cpp_err=yes 9449fi 9450if test -z "$ac_cpp_err"; then 9451 eval "$as_ac_Header=yes" 9452else 9453 echo "$as_me: failed program was:" >&5 9454 cat "conftest.$ac_ext" >&5 9455 eval "$as_ac_Header=no" 9456fi 9457rm -f conftest.err "conftest.$ac_ext" 9458fi 9459echo "$as_me:9459: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 9460echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 9461if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 9462 cat >>confdefs.h <<EOF 9463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9464EOF 9465 9466fi 9467done 9468 9469for ac_func in \ 9470 remove \ 9471 unlink 9472do 9473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9474echo "$as_me:9474: checking for $ac_func" >&5 9475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9476if eval "test \"\${$as_ac_var+set}\" = set"; then 9477 echo $ECHO_N "(cached) $ECHO_C" >&6 9478else 9479 cat >"conftest.$ac_ext" <<_ACEOF 9480#line 9480 "configure" 9481#include "confdefs.h" 9482#define $ac_func autoconf_temporary 9483#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9484#undef $ac_func 9485 9486#ifdef __cplusplus 9487extern "C" 9488#endif 9489 9490/* We use char because int might match the return type of a gcc2 9491 builtin and then its argument prototype would still apply. */ 9492char $ac_func (void); 9493 9494int 9495main (void) 9496{ 9497 9498/* The GNU C library defines stubs for functions which it implements 9499 to always fail with ENOSYS. Some functions are actually named 9500 something starting with __ and the normal name is an alias. */ 9501#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9502#error found stub for $ac_func 9503#endif 9504 9505 return $ac_func (); 9506 ; 9507 return 0; 9508} 9509_ACEOF 9510rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9511if { (eval echo "$as_me:9511: \"$ac_link\"") >&5 9512 (eval $ac_link) 2>&5 9513 ac_status=$? 9514 echo "$as_me:9514: \$? = $ac_status" >&5 9515 (exit "$ac_status"); } && 9516 { ac_try='test -s "conftest$ac_exeext"' 9517 { (eval echo "$as_me:9517: \"$ac_try\"") >&5 9518 (eval $ac_try) 2>&5 9519 ac_status=$? 9520 echo "$as_me:9520: \$? = $ac_status" >&5 9521 (exit "$ac_status"); }; }; then 9522 eval "$as_ac_var=yes" 9523else 9524 echo "$as_me: failed program was:" >&5 9525cat "conftest.$ac_ext" >&5 9526eval "$as_ac_var=no" 9527fi 9528rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9529fi 9530echo "$as_me:9530: result: `eval echo '${'"$as_ac_var"'}'`" >&5 9531echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 9532if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 9533 cat >>confdefs.h <<EOF 9534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9535EOF 9536 9537fi 9538done 9539 9540if test "$cross_compiling" = yes ; then 9541 9542for ac_func in \ 9543 link \ 9544 symlink 9545do 9546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9547echo "$as_me:9547: checking for $ac_func" >&5 9548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9549if eval "test \"\${$as_ac_var+set}\" = set"; then 9550 echo $ECHO_N "(cached) $ECHO_C" >&6 9551else 9552 cat >"conftest.$ac_ext" <<_ACEOF 9553#line 9553 "configure" 9554#include "confdefs.h" 9555#define $ac_func autoconf_temporary 9556#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 9557#undef $ac_func 9558 9559#ifdef __cplusplus 9560extern "C" 9561#endif 9562 9563/* We use char because int might match the return type of a gcc2 9564 builtin and then its argument prototype would still apply. */ 9565char $ac_func (void); 9566 9567int 9568main (void) 9569{ 9570 9571/* The GNU C library defines stubs for functions which it implements 9572 to always fail with ENOSYS. Some functions are actually named 9573 something starting with __ and the normal name is an alias. */ 9574#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9575#error found stub for $ac_func 9576#endif 9577 9578 return $ac_func (); 9579 ; 9580 return 0; 9581} 9582_ACEOF 9583rm -f "conftest.$ac_objext" "conftest$ac_exeext" 9584if { (eval echo "$as_me:9584: \"$ac_link\"") >&5 9585 (eval $ac_link) 2>&5 9586 ac_status=$? 9587 echo "$as_me:9587: \$? = $ac_status" >&5 9588 (exit "$ac_status"); } && 9589 { ac_try='test -s "conftest$ac_exeext"' 9590 { (eval echo "$as_me:9590: \"$ac_try\"") >&5 9591 (eval $ac_try) 2>&5 9592 ac_status=$? 9593 echo "$as_me:9593: \$? = $ac_status" >&5 9594 (exit "$ac_status"); }; }; then 9595 eval "$as_ac_var=yes" 9596else 9597 echo "$as_me: failed program was:" >&5 9598cat "conftest.$ac_ext" >&5 9599eval "$as_ac_var=no" 9600fi 9601rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 9602fi 9603echo "$as_me:9603: result: `eval echo '${'"$as_ac_var"'}'`" >&5 9604echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 9605if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 9606 cat >>confdefs.h <<EOF 9607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9608EOF 9609 9610fi 9611done 9612 9613else 9614 echo "$as_me:9614: checking if link/symlink functions work" >&5 9615echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6 9616if test "${cf_cv_link_funcs+set}" = set; then 9617 echo $ECHO_N "(cached) $ECHO_C" >&6 9618else 9619 9620 cf_cv_link_funcs= 9621 for cf_func in link symlink ; do 9622 if test "$cross_compiling" = yes; then 9623 9624 eval 'ac_cv_func_'$cf_func'=error' 9625else 9626 cat >"conftest.$ac_ext" <<_ACEOF 9627#line 9627 "configure" 9628#include "confdefs.h" 9629 9630#include <stdio.h> 9631#include <sys/types.h> 9632#include <sys/stat.h> 9633#ifdef HAVE_UNISTD_H 9634#include <unistd.h> 9635#endif 9636int main(void) 9637{ 9638 int fail = 0; 9639 char *src = "conftest.tmp"; 9640 char *dst = "conftest.chk"; 9641 struct stat src_sb, dst_sb; 9642 FILE *fp = fopen(src, "w"); 9643 if (fp == 0) { fail = 3; } else { 9644 fclose(fp); stat(src, &src_sb); 9645 if ($cf_func(src, dst) < 0) { 9646 fail = 1; 9647 } else if (stat(dst, &dst_sb) < 0) { 9648 fail = 2; 9649 } else { 9650 long diff = (dst_sb.st_mtime - src_sb.st_mtime); 9651 if (diff < 0) diff = -diff; 9652 if (diff > 2) fail = 3; 9653 } 9654 } 9655#ifdef HAVE_UNLINK 9656 unlink(dst); unlink(src); 9657#else 9658 remove(dst); remove(src); 9659#endif 9660 ${cf_cv_main_return:-return} (fail); 9661} 9662 9663_ACEOF 9664rm -f "conftest$ac_exeext" 9665if { (eval echo "$as_me:9665: \"$ac_link\"") >&5 9666 (eval $ac_link) 2>&5 9667 ac_status=$? 9668 echo "$as_me:9668: \$? = $ac_status" >&5 9669 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 9670 { (eval echo "$as_me:9670: \"$ac_try\"") >&5 9671 (eval $ac_try) 2>&5 9672 ac_status=$? 9673 echo "$as_me:9673: \$? = $ac_status" >&5 9674 (exit "$ac_status"); }; }; then 9675 9676 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func" 9677 eval 'ac_cv_func_'$cf_func'=yes' 9678else 9679 echo "$as_me: program exited with status $ac_status" >&5 9680echo "$as_me: failed program was:" >&5 9681cat "conftest.$ac_ext" >&5 9682 9683 eval 'ac_cv_func_'$cf_func'=no' 9684fi 9685rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 9686fi 9687 done 9688 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no 9689 9690fi 9691echo "$as_me:9691: result: $cf_cv_link_funcs" >&5 9692echo "${ECHO_T}$cf_cv_link_funcs" >&6 9693 test "$ac_cv_func_link" = yes && 9694cat >>confdefs.h <<\EOF 9695#define HAVE_LINK 1 9696EOF 9697 9698 test "$ac_cv_func_symlink" = yes && 9699cat >>confdefs.h <<\EOF 9700#define HAVE_SYMLINK 1 9701EOF 9702 9703fi 9704 9705with_links=no 9706with_symlinks=no 9707 9708# soft links (symbolic links) are useful for some systems where hard links do 9709# not work, or to make it simpler to copy terminfo trees around. 9710if test "x$ac_cv_func_symlink" = xyes ; then 9711 echo "$as_me:9711: checking if tic should use symbolic links" >&5 9712echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6 9713 9714# Check whether --enable-symlinks or --disable-symlinks was given. 9715if test "${enable_symlinks+set}" = set; then 9716 enableval="$enable_symlinks" 9717 with_symlinks=$enableval 9718else 9719 with_symlinks=no 9720fi; 9721 echo "$as_me:9721: result: $with_symlinks" >&5 9722echo "${ECHO_T}$with_symlinks" >&6 9723fi 9724 9725# If we have hard links and did not choose to use soft links instead, there is 9726# no reason to make this choice optional - use the hard links. 9727if test "$with_symlinks" = no ; then 9728 echo "$as_me:9728: checking if tic should use hard links" >&5 9729echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6 9730 if test "x$ac_cv_func_link" = xyes ; then 9731 with_links=yes 9732 else 9733 with_links=no 9734 fi 9735 echo "$as_me:9735: result: $with_links" >&5 9736echo "${ECHO_T}$with_links" >&6 9737fi 9738 9739test "x$with_links" = xyes && 9740cat >>confdefs.h <<\EOF 9741#define USE_LINKS 1 9742EOF 9743 9744test "x$with_symlinks" = xyes && 9745cat >>confdefs.h <<\EOF 9746#define USE_SYMLINKS 1 9747EOF 9748 9749### use option --enable-broken-linker to force on use of broken-linker support 9750 9751echo "$as_me:9751: checking if you want broken-linker support code" >&5 9752echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6 9753 9754# Check whether --enable-broken_linker or --disable-broken_linker was given. 9755if test "${enable_broken_linker+set}" = set; then 9756 enableval="$enable_broken_linker" 9757 with_broken_linker=$enableval 9758else 9759 with_broken_linker=no 9760fi; 9761echo "$as_me:9761: result: $with_broken_linker" >&5 9762echo "${ECHO_T}$with_broken_linker" >&6 9763 9764: "${BROKEN_LINKER:=0}" 9765if test "x$with_broken_linker" = xyes ; then 9766 9767cat >>confdefs.h <<\EOF 9768#define BROKEN_LINKER 1 9769EOF 9770 9771 BROKEN_LINKER=1 9772fi 9773 9774### use option --enable-bsdpad to have tputs process BSD-style prefix padding 9775echo "$as_me:9775: checking if tputs should process BSD-style prefix padding" >&5 9776echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6 9777 9778# Check whether --enable-bsdpad or --disable-bsdpad was given. 9779if test "${enable_bsdpad+set}" = set; then 9780 enableval="$enable_bsdpad" 9781 with_bsdpad=$enableval 9782else 9783 with_bsdpad=no 9784fi; 9785echo "$as_me:9785: result: $with_bsdpad" >&5 9786echo "${ECHO_T}$with_bsdpad" >&6 9787test "x$with_bsdpad" = xyes && 9788cat >>confdefs.h <<\EOF 9789#define BSD_TPUTS 1 9790EOF 9791 9792### use option --enable-widec to turn on use of wide-character support 9793NCURSES_CH_T=chtype 9794NCURSES_LIBUTF8=0 9795 9796NEED_WCHAR_H=0 9797NCURSES_MBSTATE_T=0 9798NCURSES_WCHAR_T=0 9799NCURSES_WINT_T=0 9800 9801# Check to define _XOPEN_SOURCE "automatically" 9802CPPFLAGS_before_XOPEN="$CPPFLAGS" 9803 9804echo "$as_me:9804: checking if the POSIX test-macros are already defined" >&5 9805echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 9806if test "${cf_cv_posix_visible+set}" = set; then 9807 echo $ECHO_N "(cached) $ECHO_C" >&6 9808else 9809 9810cat >"conftest.$ac_ext" <<_ACEOF 9811#line 9811 "configure" 9812#include "confdefs.h" 9813#include <stdio.h> 9814int 9815main (void) 9816{ 9817 9818#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 9819 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 9820 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 9821 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 9822#error conflicting symbols found 9823#endif 9824 9825 ; 9826 return 0; 9827} 9828_ACEOF 9829rm -f "conftest.$ac_objext" 9830if { (eval echo "$as_me:9830: \"$ac_compile\"") >&5 9831 (eval $ac_compile) 2>&5 9832 ac_status=$? 9833 echo "$as_me:9833: \$? = $ac_status" >&5 9834 (exit "$ac_status"); } && 9835 { ac_try='test -s "conftest.$ac_objext"' 9836 { (eval echo "$as_me:9836: \"$ac_try\"") >&5 9837 (eval $ac_try) 2>&5 9838 ac_status=$? 9839 echo "$as_me:9839: \$? = $ac_status" >&5 9840 (exit "$ac_status"); }; }; then 9841 cf_cv_posix_visible=no 9842else 9843 echo "$as_me: failed program was:" >&5 9844cat "conftest.$ac_ext" >&5 9845cf_cv_posix_visible=yes 9846fi 9847rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9848 9849fi 9850echo "$as_me:9850: result: $cf_cv_posix_visible" >&5 9851echo "${ECHO_T}$cf_cv_posix_visible" >&6 9852 9853if test "$cf_cv_posix_visible" = no; then 9854 9855cf_XOPEN_SOURCE=600 9856cf_POSIX_C_SOURCE=199506L 9857cf_xopen_source= 9858 9859case "$host_os" in 9860(aix[4-7]*) 9861 cf_xopen_source="-D_ALL_SOURCE" 9862 ;; 9863(msys) 9864 cf_XOPEN_SOURCE=600 9865 ;; 9866(darwin[0-8].*) 9867 cf_xopen_source="-D_APPLE_C_SOURCE" 9868 ;; 9869(darwin*) 9870 cf_xopen_source="-D_DARWIN_C_SOURCE" 9871 cf_XOPEN_SOURCE= 9872 ;; 9873(dragonfly*) 9874 cf_XOPEN_SOURCE= 9875 ;; 9876(freebsd*|midnightbsd*) 9877 # 5.x headers associate 9878 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 9879 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 9880 cf_POSIX_C_SOURCE=200112L 9881 cf_XOPEN_SOURCE=600 9882 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 9883 ;; 9884(hpux11*) 9885 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 9886 ;; 9887(hpux*) 9888 cf_xopen_source="-D_HPUX_SOURCE" 9889 ;; 9890(irix[56].*) 9891 cf_xopen_source="-D_SGI_SOURCE" 9892 cf_XOPEN_SOURCE= 9893 ;; 9894(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 9895 9896cf_gnu_xopen_source=$cf_XOPEN_SOURCE 9897 9898echo "$as_me:9895: checking if this is the GNU C library" >&5 9899echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 9900if test "${cf_cv_gnu_library+set}" = set; then 9901 echo $ECHO_N "(cached) $ECHO_C" >&6 9902else 9903 9904cat >"conftest.$ac_ext" <<_ACEOF 9905#line 9902 "configure" 9906#include "confdefs.h" 9907#include <sys/types.h> 9908int 9909main (void) 9910{ 9911 9912 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 9913 return 0; 9914 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 9915 return 0; 9916 #else 9917 # error not GNU C library 9918 #endif 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923rm -f "conftest.$ac_objext" 9924if { (eval echo "$as_me:9921: \"$ac_compile\"") >&5 9925 (eval $ac_compile) 2>&5 9926 ac_status=$? 9927 echo "$as_me:9924: \$? = $ac_status" >&5 9928 (exit "$ac_status"); } && 9929 { ac_try='test -s "conftest.$ac_objext"' 9930 { (eval echo "$as_me:9927: \"$ac_try\"") >&5 9931 (eval $ac_try) 2>&5 9932 ac_status=$? 9933 echo "$as_me:9930: \$? = $ac_status" >&5 9934 (exit "$ac_status"); }; }; then 9935 cf_cv_gnu_library=yes 9936else 9937 echo "$as_me: failed program was:" >&5 9938cat "conftest.$ac_ext" >&5 9939cf_cv_gnu_library=no 9940fi 9941rm -f "conftest.$ac_objext" "conftest.$ac_ext" 9942 9943fi 9944echo "$as_me:9941: result: $cf_cv_gnu_library" >&5 9945echo "${ECHO_T}$cf_cv_gnu_library" >&6 9946 9947if test x$cf_cv_gnu_library = xyes; then 9948 9949 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 9950 # was changed to help a little. newlib incorporated the change about 4 9951 # years later. 9952 echo "$as_me:9949: checking if _DEFAULT_SOURCE can be used as a basis" >&5 9953echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 9954if test "${cf_cv_gnu_library_219+set}" = set; then 9955 echo $ECHO_N "(cached) $ECHO_C" >&6 9956else 9957 9958 cf_save="$CPPFLAGS" 9959 9960 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 9961 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 9962 9963 cat >"conftest.$ac_ext" <<_ACEOF 9964#line 9961 "configure" 9965#include "confdefs.h" 9966#include <sys/types.h> 9967int 9968main (void) 9969{ 9970 9971 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 9972 return 0; 9973 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 9974 return 0; 9975 #else 9976 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 9977 #endif 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982rm -f "conftest.$ac_objext" 9983if { (eval echo "$as_me:9980: \"$ac_compile\"") >&5 9984 (eval $ac_compile) 2>&5 9985 ac_status=$? 9986 echo "$as_me:9983: \$? = $ac_status" >&5 9987 (exit "$ac_status"); } && 9988 { ac_try='test -s "conftest.$ac_objext"' 9989 { (eval echo "$as_me:9986: \"$ac_try\"") >&5 9990 (eval $ac_try) 2>&5 9991 ac_status=$? 9992 echo "$as_me:9989: \$? = $ac_status" >&5 9993 (exit "$ac_status"); }; }; then 9994 cf_cv_gnu_library_219=yes 9995else 9996 echo "$as_me: failed program was:" >&5 9997cat "conftest.$ac_ext" >&5 9998cf_cv_gnu_library_219=no 9999fi 10000rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10001 CPPFLAGS="$cf_save" 10002 10003fi 10004echo "$as_me:10001: result: $cf_cv_gnu_library_219" >&5 10005echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 10006 10007 if test "x$cf_cv_gnu_library_219" = xyes; then 10008 cf_save="$CPPFLAGS" 10009 echo "$as_me:10006: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 10010echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 10011if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 10012 echo $ECHO_N "(cached) $ECHO_C" >&6 10013else 10014 10015cf_fix_cppflags=no 10016cf_new_cflags= 10017cf_new_cppflags= 10018cf_new_extra_cppflags= 10019 10020for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 10021do 10022case "$cf_fix_cppflags" in 10023(no) 10024 case "$cf_add_cflags" in 10025 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10026 case "$cf_add_cflags" in 10027 (-D*) 10028 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10029 10030 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10031 && test -z "${cf_tst_cflags}" \ 10032 && cf_fix_cppflags=yes 10033 10034 if test "$cf_fix_cppflags" = yes ; then 10035 10036 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10037 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10038 10039 continue 10040 elif test "${cf_tst_cflags}" = "\"'" ; then 10041 10042 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10043 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10044 10045 continue 10046 fi 10047 ;; 10048 esac 10049 case "$CPPFLAGS" in 10050 (*$cf_add_cflags) 10051 ;; 10052 (*) 10053 case "$cf_add_cflags" in 10054 (-D*) 10055 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10056 10057CPPFLAGS=`echo "$CPPFLAGS" | \ 10058 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10059 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10060 10061 ;; 10062 esac 10063 10064 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10065 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10066 10067 ;; 10068 esac 10069 ;; 10070 (*) 10071 10072 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10073 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10074 10075 ;; 10076 esac 10077 ;; 10078(yes) 10079 10080 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10081 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10082 10083 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10084 10085 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10086 && test -z "${cf_tst_cflags}" \ 10087 && cf_fix_cppflags=no 10088 ;; 10089esac 10090done 10091 10092if test -n "$cf_new_cflags" ; then 10093 10094 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10095 CFLAGS="${CFLAGS}$cf_new_cflags" 10096 10097fi 10098 10099if test -n "$cf_new_cppflags" ; then 10100 10101 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10102 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10103 10104fi 10105 10106if test -n "$cf_new_extra_cppflags" ; then 10107 10108 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10109 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10110 10111fi 10112 10113 cat >"conftest.$ac_ext" <<_ACEOF 10114#line 10111 "configure" 10115#include "confdefs.h" 10116 10117 #include <limits.h> 10118 #include <sys/types.h> 10119 10120int 10121main (void) 10122{ 10123 10124 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 10125 return 0; 10126 #else 10127 # error GNU C library is too old 10128 #endif 10129 ; 10130 return 0; 10131} 10132_ACEOF 10133rm -f "conftest.$ac_objext" 10134if { (eval echo "$as_me:10131: \"$ac_compile\"") >&5 10135 (eval $ac_compile) 2>&5 10136 ac_status=$? 10137 echo "$as_me:10134: \$? = $ac_status" >&5 10138 (exit "$ac_status"); } && 10139 { ac_try='test -s "conftest.$ac_objext"' 10140 { (eval echo "$as_me:10137: \"$ac_try\"") >&5 10141 (eval $ac_try) 2>&5 10142 ac_status=$? 10143 echo "$as_me:10140: \$? = $ac_status" >&5 10144 (exit "$ac_status"); }; }; then 10145 cf_cv_gnu_dftsrc_219=yes 10146else 10147 echo "$as_me: failed program was:" >&5 10148cat "conftest.$ac_ext" >&5 10149cf_cv_gnu_dftsrc_219=no 10150fi 10151rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10152 10153fi 10154echo "$as_me:10151: result: $cf_cv_gnu_dftsrc_219" >&5 10155echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 10156 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 10157 else 10158 cf_cv_gnu_dftsrc_219=maybe 10159 fi 10160 10161 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 10162 10163 echo "$as_me:10160: checking if we must define _GNU_SOURCE" >&5 10164echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 10165if test "${cf_cv_gnu_source+set}" = set; then 10166 echo $ECHO_N "(cached) $ECHO_C" >&6 10167else 10168 10169 cat >"conftest.$ac_ext" <<_ACEOF 10170#line 10167 "configure" 10171#include "confdefs.h" 10172#include <sys/types.h> 10173int 10174main (void) 10175{ 10176 10177 #ifndef _XOPEN_SOURCE 10178 #error expected _XOPEN_SOURCE to be defined 10179 #endif 10180 ; 10181 return 0; 10182} 10183_ACEOF 10184rm -f "conftest.$ac_objext" 10185if { (eval echo "$as_me:10182: \"$ac_compile\"") >&5 10186 (eval $ac_compile) 2>&5 10187 ac_status=$? 10188 echo "$as_me:10185: \$? = $ac_status" >&5 10189 (exit "$ac_status"); } && 10190 { ac_try='test -s "conftest.$ac_objext"' 10191 { (eval echo "$as_me:10188: \"$ac_try\"") >&5 10192 (eval $ac_try) 2>&5 10193 ac_status=$? 10194 echo "$as_me:10191: \$? = $ac_status" >&5 10195 (exit "$ac_status"); }; }; then 10196 cf_cv_gnu_source=no 10197else 10198 echo "$as_me: failed program was:" >&5 10199cat "conftest.$ac_ext" >&5 10200cf_save="$CPPFLAGS" 10201 10202cf_fix_cppflags=no 10203cf_new_cflags= 10204cf_new_cppflags= 10205cf_new_extra_cppflags= 10206 10207for cf_add_cflags in -D_GNU_SOURCE 10208do 10209case "$cf_fix_cppflags" in 10210(no) 10211 case "$cf_add_cflags" in 10212 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10213 case "$cf_add_cflags" in 10214 (-D*) 10215 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10216 10217 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10218 && test -z "${cf_tst_cflags}" \ 10219 && cf_fix_cppflags=yes 10220 10221 if test "$cf_fix_cppflags" = yes ; then 10222 10223 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10224 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10225 10226 continue 10227 elif test "${cf_tst_cflags}" = "\"'" ; then 10228 10229 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10230 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10231 10232 continue 10233 fi 10234 ;; 10235 esac 10236 case "$CPPFLAGS" in 10237 (*$cf_add_cflags) 10238 ;; 10239 (*) 10240 case "$cf_add_cflags" in 10241 (-D*) 10242 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10243 10244CPPFLAGS=`echo "$CPPFLAGS" | \ 10245 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10246 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10247 10248 ;; 10249 esac 10250 10251 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10252 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10253 10254 ;; 10255 esac 10256 ;; 10257 (*) 10258 10259 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10260 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10261 10262 ;; 10263 esac 10264 ;; 10265(yes) 10266 10267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10269 10270 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10271 10272 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10273 && test -z "${cf_tst_cflags}" \ 10274 && cf_fix_cppflags=no 10275 ;; 10276esac 10277done 10278 10279if test -n "$cf_new_cflags" ; then 10280 10281 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10282 CFLAGS="${CFLAGS}$cf_new_cflags" 10283 10284fi 10285 10286if test -n "$cf_new_cppflags" ; then 10287 10288 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10289 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10290 10291fi 10292 10293if test -n "$cf_new_extra_cppflags" ; then 10294 10295 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10296 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10297 10298fi 10299 10300 cat >"conftest.$ac_ext" <<_ACEOF 10301#line 10298 "configure" 10302#include "confdefs.h" 10303#include <sys/types.h> 10304int 10305main (void) 10306{ 10307 10308 #ifdef _XOPEN_SOURCE 10309 #error expected _XOPEN_SOURCE to be undefined 10310 #endif 10311 ; 10312 return 0; 10313} 10314_ACEOF 10315rm -f "conftest.$ac_objext" 10316if { (eval echo "$as_me:10313: \"$ac_compile\"") >&5 10317 (eval $ac_compile) 2>&5 10318 ac_status=$? 10319 echo "$as_me:10316: \$? = $ac_status" >&5 10320 (exit "$ac_status"); } && 10321 { ac_try='test -s "conftest.$ac_objext"' 10322 { (eval echo "$as_me:10319: \"$ac_try\"") >&5 10323 (eval $ac_try) 2>&5 10324 ac_status=$? 10325 echo "$as_me:10322: \$? = $ac_status" >&5 10326 (exit "$ac_status"); }; }; then 10327 cf_cv_gnu_source=no 10328else 10329 echo "$as_me: failed program was:" >&5 10330cat "conftest.$ac_ext" >&5 10331cf_cv_gnu_source=yes 10332fi 10333rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10334 CPPFLAGS="$cf_save" 10335 10336fi 10337rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10338 10339fi 10340echo "$as_me:10337: result: $cf_cv_gnu_source" >&5 10341echo "${ECHO_T}$cf_cv_gnu_source" >&6 10342 10343 if test "$cf_cv_gnu_source" = yes 10344 then 10345 echo "$as_me:10342: checking if we should also define _DEFAULT_SOURCE" >&5 10346echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 10347if test "${cf_cv_default_source+set}" = set; then 10348 echo $ECHO_N "(cached) $ECHO_C" >&6 10349else 10350 10351 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10352 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 10353 10354 cat >"conftest.$ac_ext" <<_ACEOF 10355#line 10352 "configure" 10356#include "confdefs.h" 10357#include <sys/types.h> 10358int 10359main (void) 10360{ 10361 10362 #ifdef _DEFAULT_SOURCE 10363 #error expected _DEFAULT_SOURCE to be undefined 10364 #endif 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369rm -f "conftest.$ac_objext" 10370if { (eval echo "$as_me:10367: \"$ac_compile\"") >&5 10371 (eval $ac_compile) 2>&5 10372 ac_status=$? 10373 echo "$as_me:10370: \$? = $ac_status" >&5 10374 (exit "$ac_status"); } && 10375 { ac_try='test -s "conftest.$ac_objext"' 10376 { (eval echo "$as_me:10373: \"$ac_try\"") >&5 10377 (eval $ac_try) 2>&5 10378 ac_status=$? 10379 echo "$as_me:10376: \$? = $ac_status" >&5 10380 (exit "$ac_status"); }; }; then 10381 cf_cv_default_source=no 10382else 10383 echo "$as_me: failed program was:" >&5 10384cat "conftest.$ac_ext" >&5 10385cf_cv_default_source=yes 10386fi 10387rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10388 10389fi 10390echo "$as_me:10387: result: $cf_cv_default_source" >&5 10391echo "${ECHO_T}$cf_cv_default_source" >&6 10392 if test "$cf_cv_default_source" = yes 10393 then 10394 10395 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10396 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 10397 10398 fi 10399 fi 10400 fi 10401 10402fi 10403 10404 ;; 10405(minix*) 10406 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 10407 ;; 10408(mirbsd*) 10409 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 10410 cf_XOPEN_SOURCE= 10411 10412if test "$cf_cv_posix_visible" = no; then 10413 10414cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 10415 10416cf_save_CFLAGS="$CFLAGS" 10417cf_save_CPPFLAGS="$CPPFLAGS" 10418 10419cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 10420 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10421 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10422 10423cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 10424 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10425 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10426 10427echo "$as_me:10424: checking if we should define _POSIX_C_SOURCE" >&5 10428echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 10429if test "${cf_cv_posix_c_source+set}" = set; then 10430 echo $ECHO_N "(cached) $ECHO_C" >&6 10431else 10432 10433echo "${as_me:-configure}:10430: testing if the symbol is already defined go no further ..." 1>&5 10434 10435 cat >"conftest.$ac_ext" <<_ACEOF 10436#line 10433 "configure" 10437#include "confdefs.h" 10438#include <sys/types.h> 10439int 10440main (void) 10441{ 10442 10443#ifndef _POSIX_C_SOURCE 10444make an error 10445#endif 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450rm -f "conftest.$ac_objext" 10451if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5 10452 (eval $ac_compile) 2>&5 10453 ac_status=$? 10454 echo "$as_me:10451: \$? = $ac_status" >&5 10455 (exit "$ac_status"); } && 10456 { ac_try='test -s "conftest.$ac_objext"' 10457 { (eval echo "$as_me:10454: \"$ac_try\"") >&5 10458 (eval $ac_try) 2>&5 10459 ac_status=$? 10460 echo "$as_me:10457: \$? = $ac_status" >&5 10461 (exit "$ac_status"); }; }; then 10462 cf_cv_posix_c_source=no 10463else 10464 echo "$as_me: failed program was:" >&5 10465cat "conftest.$ac_ext" >&5 10466cf_want_posix_source=no 10467 case .$cf_POSIX_C_SOURCE in 10468 (.[12]??*) 10469 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10470 ;; 10471 (.2) 10472 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 10473 cf_want_posix_source=yes 10474 ;; 10475 (.*) 10476 cf_want_posix_source=yes 10477 ;; 10478 esac 10479 if test "$cf_want_posix_source" = yes ; then 10480 cat >"conftest.$ac_ext" <<_ACEOF 10481#line 10478 "configure" 10482#include "confdefs.h" 10483#include <sys/types.h> 10484int 10485main (void) 10486{ 10487 10488#ifdef _POSIX_SOURCE 10489make an error 10490#endif 10491 ; 10492 return 0; 10493} 10494_ACEOF 10495rm -f "conftest.$ac_objext" 10496if { (eval echo "$as_me:10493: \"$ac_compile\"") >&5 10497 (eval $ac_compile) 2>&5 10498 ac_status=$? 10499 echo "$as_me:10496: \$? = $ac_status" >&5 10500 (exit "$ac_status"); } && 10501 { ac_try='test -s "conftest.$ac_objext"' 10502 { (eval echo "$as_me:10499: \"$ac_try\"") >&5 10503 (eval $ac_try) 2>&5 10504 ac_status=$? 10505 echo "$as_me:10502: \$? = $ac_status" >&5 10506 (exit "$ac_status"); }; }; then 10507 : 10508else 10509 echo "$as_me: failed program was:" >&5 10510cat "conftest.$ac_ext" >&5 10511cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 10512fi 10513rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10514 fi 10515 10516echo "${as_me:-configure}:10513: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 10517 10518 CFLAGS="$cf_trim_CFLAGS" 10519 CPPFLAGS="$cf_trim_CPPFLAGS" 10520 10521 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10522 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 10523 10524echo "${as_me:-configure}:10521: testing if the second compile does not leave our definition intact error ..." 1>&5 10525 10526 cat >"conftest.$ac_ext" <<_ACEOF 10527#line 10524 "configure" 10528#include "confdefs.h" 10529#include <sys/types.h> 10530int 10531main (void) 10532{ 10533 10534#ifndef _POSIX_C_SOURCE 10535make an error 10536#endif 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f "conftest.$ac_objext" 10542if { (eval echo "$as_me:10539: \"$ac_compile\"") >&5 10543 (eval $ac_compile) 2>&5 10544 ac_status=$? 10545 echo "$as_me:10542: \$? = $ac_status" >&5 10546 (exit "$ac_status"); } && 10547 { ac_try='test -s "conftest.$ac_objext"' 10548 { (eval echo "$as_me:10545: \"$ac_try\"") >&5 10549 (eval $ac_try) 2>&5 10550 ac_status=$? 10551 echo "$as_me:10548: \$? = $ac_status" >&5 10552 (exit "$ac_status"); }; }; then 10553 : 10554else 10555 echo "$as_me: failed program was:" >&5 10556cat "conftest.$ac_ext" >&5 10557cf_cv_posix_c_source=no 10558fi 10559rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10560 CFLAGS="$cf_save_CFLAGS" 10561 CPPFLAGS="$cf_save_CPPFLAGS" 10562 10563fi 10564rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10565 10566fi 10567echo "$as_me:10564: result: $cf_cv_posix_c_source" >&5 10568echo "${ECHO_T}$cf_cv_posix_c_source" >&6 10569 10570if test "$cf_cv_posix_c_source" != no ; then 10571 CFLAGS="$cf_trim_CFLAGS" 10572 CPPFLAGS="$cf_trim_CPPFLAGS" 10573 10574cf_fix_cppflags=no 10575cf_new_cflags= 10576cf_new_cppflags= 10577cf_new_extra_cppflags= 10578 10579for cf_add_cflags in $cf_cv_posix_c_source 10580do 10581case "$cf_fix_cppflags" in 10582(no) 10583 case "$cf_add_cflags" in 10584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10585 case "$cf_add_cflags" in 10586 (-D*) 10587 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10588 10589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10590 && test -z "${cf_tst_cflags}" \ 10591 && cf_fix_cppflags=yes 10592 10593 if test "$cf_fix_cppflags" = yes ; then 10594 10595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10597 10598 continue 10599 elif test "${cf_tst_cflags}" = "\"'" ; then 10600 10601 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10602 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10603 10604 continue 10605 fi 10606 ;; 10607 esac 10608 case "$CPPFLAGS" in 10609 (*$cf_add_cflags) 10610 ;; 10611 (*) 10612 case "$cf_add_cflags" in 10613 (-D*) 10614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10615 10616CPPFLAGS=`echo "$CPPFLAGS" | \ 10617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10619 10620 ;; 10621 esac 10622 10623 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10624 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10625 10626 ;; 10627 esac 10628 ;; 10629 (*) 10630 10631 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10632 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10633 10634 ;; 10635 esac 10636 ;; 10637(yes) 10638 10639 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10640 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10641 10642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10643 10644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10645 && test -z "${cf_tst_cflags}" \ 10646 && cf_fix_cppflags=no 10647 ;; 10648esac 10649done 10650 10651if test -n "$cf_new_cflags" ; then 10652 10653 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10654 CFLAGS="${CFLAGS}$cf_new_cflags" 10655 10656fi 10657 10658if test -n "$cf_new_cppflags" ; then 10659 10660 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10661 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10662 10663fi 10664 10665if test -n "$cf_new_extra_cppflags" ; then 10666 10667 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10668 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10669 10670fi 10671 10672fi 10673 10674fi # cf_cv_posix_visible 10675 10676 ;; 10677(netbsd*) 10678 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 10679 ;; 10680(openbsd[6-9]*) 10681 # OpenBSD 6.x has broken locale support, both compile-time and runtime. 10682 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html 10683 # Abusing the conformance level is a workaround. 10684 { echo "$as_me:10681: WARNING: this system does not provide usable locale support" >&5 10685echo "$as_me: WARNING: this system does not provide usable locale support" >&2;} 10686 cf_xopen_source="-D_BSD_SOURCE" 10687 cf_XOPEN_SOURCE=700 10688 ;; 10689(openbsd[4-5]*) 10690 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 10691 cf_xopen_source="-D_BSD_SOURCE" 10692 cf_XOPEN_SOURCE=600 10693 ;; 10694(openbsd*) 10695 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 10696 ;; 10697(osf[45]*) 10698 cf_xopen_source="-D_OSF_SOURCE" 10699 ;; 10700(nto-qnx*) 10701 cf_xopen_source="-D_QNX_SOURCE" 10702 ;; 10703(sco*) 10704 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 10705 ;; 10706(solaris2.*) 10707 cf_xopen_source="-D__EXTENSIONS__" 10708 cf_cv_xopen_source=broken 10709 ;; 10710(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 10711 cf_XOPEN_SOURCE= 10712 cf_POSIX_C_SOURCE= 10713 ;; 10714(*) 10715 10716echo "$as_me:10713: checking if we should define _XOPEN_SOURCE" >&5 10717echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 10718if test "${cf_cv_xopen_source+set}" = set; then 10719 echo $ECHO_N "(cached) $ECHO_C" >&6 10720else 10721 10722 cat >"conftest.$ac_ext" <<_ACEOF 10723#line 10720 "configure" 10724#include "confdefs.h" 10725 10726#include <stdlib.h> 10727#include <string.h> 10728#include <sys/types.h> 10729 10730int 10731main (void) 10732{ 10733 10734#ifndef _XOPEN_SOURCE 10735make an error 10736#endif 10737 ; 10738 return 0; 10739} 10740_ACEOF 10741rm -f "conftest.$ac_objext" 10742if { (eval echo "$as_me:10739: \"$ac_compile\"") >&5 10743 (eval $ac_compile) 2>&5 10744 ac_status=$? 10745 echo "$as_me:10742: \$? = $ac_status" >&5 10746 (exit "$ac_status"); } && 10747 { ac_try='test -s "conftest.$ac_objext"' 10748 { (eval echo "$as_me:10745: \"$ac_try\"") >&5 10749 (eval $ac_try) 2>&5 10750 ac_status=$? 10751 echo "$as_me:10748: \$? = $ac_status" >&5 10752 (exit "$ac_status"); }; }; then 10753 cf_cv_xopen_source=no 10754else 10755 echo "$as_me: failed program was:" >&5 10756cat "conftest.$ac_ext" >&5 10757cf_save="$CPPFLAGS" 10758 10759 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10760 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 10761 10762 cat >"conftest.$ac_ext" <<_ACEOF 10763#line 10760 "configure" 10764#include "confdefs.h" 10765 10766#include <stdlib.h> 10767#include <string.h> 10768#include <sys/types.h> 10769 10770int 10771main (void) 10772{ 10773 10774#ifdef _XOPEN_SOURCE 10775make an error 10776#endif 10777 ; 10778 return 0; 10779} 10780_ACEOF 10781rm -f "conftest.$ac_objext" 10782if { (eval echo "$as_me:10779: \"$ac_compile\"") >&5 10783 (eval $ac_compile) 2>&5 10784 ac_status=$? 10785 echo "$as_me:10782: \$? = $ac_status" >&5 10786 (exit "$ac_status"); } && 10787 { ac_try='test -s "conftest.$ac_objext"' 10788 { (eval echo "$as_me:10785: \"$ac_try\"") >&5 10789 (eval $ac_try) 2>&5 10790 ac_status=$? 10791 echo "$as_me:10788: \$? = $ac_status" >&5 10792 (exit "$ac_status"); }; }; then 10793 cf_cv_xopen_source=no 10794else 10795 echo "$as_me: failed program was:" >&5 10796cat "conftest.$ac_ext" >&5 10797cf_cv_xopen_source=$cf_XOPEN_SOURCE 10798fi 10799rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10800 CPPFLAGS="$cf_save" 10801 10802fi 10803rm -f "conftest.$ac_objext" "conftest.$ac_ext" 10804 10805fi 10806echo "$as_me:10803: result: $cf_cv_xopen_source" >&5 10807echo "${ECHO_T}$cf_cv_xopen_source" >&6 10808 10809if test "$cf_cv_xopen_source" != no ; then 10810 10811CFLAGS=`echo "$CFLAGS" | \ 10812 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10813 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 10814 10815CPPFLAGS=`echo "$CPPFLAGS" | \ 10816 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10817 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 10818 10819 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 10820 10821for cf_add_cflags in $cf_temp_xopen_source 10822do 10823 case "x$cf_add_cflags" in 10824 (x-[DU]*) 10825 10826cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 10827while true 10828do 10829 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 10830 test "$CFLAGS" != "$cf_old_cflag" || break 10831 10832 CFLAGS="$cf_old_cflag" 10833done 10834 10835cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 10836while true 10837do 10838 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 10839 test "$CPPFLAGS" != "$cf_old_cflag" || break 10840 10841 CPPFLAGS="$cf_old_cflag" 10842done 10843 10844 ;; 10845 esac 10846 10847cf_fix_cppflags=no 10848cf_new_cflags= 10849cf_new_cppflags= 10850cf_new_extra_cppflags= 10851 10852for cf_add_cflags in $cf_add_cflags 10853do 10854case "$cf_fix_cppflags" in 10855(no) 10856 case "$cf_add_cflags" in 10857 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 10858 case "$cf_add_cflags" in 10859 (-D*) 10860 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 10861 10862 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10863 && test -z "${cf_tst_cflags}" \ 10864 && cf_fix_cppflags=yes 10865 10866 if test "$cf_fix_cppflags" = yes ; then 10867 10868 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10869 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10870 10871 continue 10872 elif test "${cf_tst_cflags}" = "\"'" ; then 10873 10874 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10875 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10876 10877 continue 10878 fi 10879 ;; 10880 esac 10881 case "$CPPFLAGS" in 10882 (*$cf_add_cflags) 10883 ;; 10884 (*) 10885 case "$cf_add_cflags" in 10886 (-D*) 10887 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 10888 10889CPPFLAGS=`echo "$CPPFLAGS" | \ 10890 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 10891 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 10892 10893 ;; 10894 esac 10895 10896 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 10897 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 10898 10899 ;; 10900 esac 10901 ;; 10902 (*) 10903 10904 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 10905 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 10906 10907 ;; 10908 esac 10909 ;; 10910(yes) 10911 10912 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 10913 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 10914 10915 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 10916 10917 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 10918 && test -z "${cf_tst_cflags}" \ 10919 && cf_fix_cppflags=no 10920 ;; 10921esac 10922done 10923 10924if test -n "$cf_new_cflags" ; then 10925 10926 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 10927 CFLAGS="${CFLAGS}$cf_new_cflags" 10928 10929fi 10930 10931if test -n "$cf_new_cppflags" ; then 10932 10933 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 10934 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 10935 10936fi 10937 10938if test -n "$cf_new_extra_cppflags" ; then 10939 10940 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 10941 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 10942 10943fi 10944 10945done 10946 10947fi 10948 10949if test "$cf_cv_posix_visible" = no; then 10950 10951cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 10952 10953cf_save_CFLAGS="$CFLAGS" 10954cf_save_CPPFLAGS="$CPPFLAGS" 10955 10956cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 10957 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10958 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10959 10960cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 10961 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 10962 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 10963 10964echo "$as_me:10961: checking if we should define _POSIX_C_SOURCE" >&5 10965echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 10966if test "${cf_cv_posix_c_source+set}" = set; then 10967 echo $ECHO_N "(cached) $ECHO_C" >&6 10968else 10969 10970echo "${as_me:-configure}:10967: testing if the symbol is already defined go no further ..." 1>&5 10971 10972 cat >"conftest.$ac_ext" <<_ACEOF 10973#line 10970 "configure" 10974#include "confdefs.h" 10975#include <sys/types.h> 10976int 10977main (void) 10978{ 10979 10980#ifndef _POSIX_C_SOURCE 10981make an error 10982#endif 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987rm -f "conftest.$ac_objext" 10988if { (eval echo "$as_me:10985: \"$ac_compile\"") >&5 10989 (eval $ac_compile) 2>&5 10990 ac_status=$? 10991 echo "$as_me:10988: \$? = $ac_status" >&5 10992 (exit "$ac_status"); } && 10993 { ac_try='test -s "conftest.$ac_objext"' 10994 { (eval echo "$as_me:10991: \"$ac_try\"") >&5 10995 (eval $ac_try) 2>&5 10996 ac_status=$? 10997 echo "$as_me:10994: \$? = $ac_status" >&5 10998 (exit "$ac_status"); }; }; then 10999 cf_cv_posix_c_source=no 11000else 11001 echo "$as_me: failed program was:" >&5 11002cat "conftest.$ac_ext" >&5 11003cf_want_posix_source=no 11004 case .$cf_POSIX_C_SOURCE in 11005 (.[12]??*) 11006 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 11007 ;; 11008 (.2) 11009 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 11010 cf_want_posix_source=yes 11011 ;; 11012 (.*) 11013 cf_want_posix_source=yes 11014 ;; 11015 esac 11016 if test "$cf_want_posix_source" = yes ; then 11017 cat >"conftest.$ac_ext" <<_ACEOF 11018#line 11015 "configure" 11019#include "confdefs.h" 11020#include <sys/types.h> 11021int 11022main (void) 11023{ 11024 11025#ifdef _POSIX_SOURCE 11026make an error 11027#endif 11028 ; 11029 return 0; 11030} 11031_ACEOF 11032rm -f "conftest.$ac_objext" 11033if { (eval echo "$as_me:11030: \"$ac_compile\"") >&5 11034 (eval $ac_compile) 2>&5 11035 ac_status=$? 11036 echo "$as_me:11033: \$? = $ac_status" >&5 11037 (exit "$ac_status"); } && 11038 { ac_try='test -s "conftest.$ac_objext"' 11039 { (eval echo "$as_me:11036: \"$ac_try\"") >&5 11040 (eval $ac_try) 2>&5 11041 ac_status=$? 11042 echo "$as_me:11039: \$? = $ac_status" >&5 11043 (exit "$ac_status"); }; }; then 11044 : 11045else 11046 echo "$as_me: failed program was:" >&5 11047cat "conftest.$ac_ext" >&5 11048cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 11049fi 11050rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11051 fi 11052 11053echo "${as_me:-configure}:11050: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 11054 11055 CFLAGS="$cf_trim_CFLAGS" 11056 CPPFLAGS="$cf_trim_CPPFLAGS" 11057 11058 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11059 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 11060 11061echo "${as_me:-configure}:11058: testing if the second compile does not leave our definition intact error ..." 1>&5 11062 11063 cat >"conftest.$ac_ext" <<_ACEOF 11064#line 11061 "configure" 11065#include "confdefs.h" 11066#include <sys/types.h> 11067int 11068main (void) 11069{ 11070 11071#ifndef _POSIX_C_SOURCE 11072make an error 11073#endif 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078rm -f "conftest.$ac_objext" 11079if { (eval echo "$as_me:11076: \"$ac_compile\"") >&5 11080 (eval $ac_compile) 2>&5 11081 ac_status=$? 11082 echo "$as_me:11079: \$? = $ac_status" >&5 11083 (exit "$ac_status"); } && 11084 { ac_try='test -s "conftest.$ac_objext"' 11085 { (eval echo "$as_me:11082: \"$ac_try\"") >&5 11086 (eval $ac_try) 2>&5 11087 ac_status=$? 11088 echo "$as_me:11085: \$? = $ac_status" >&5 11089 (exit "$ac_status"); }; }; then 11090 : 11091else 11092 echo "$as_me: failed program was:" >&5 11093cat "conftest.$ac_ext" >&5 11094cf_cv_posix_c_source=no 11095fi 11096rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11097 CFLAGS="$cf_save_CFLAGS" 11098 CPPFLAGS="$cf_save_CPPFLAGS" 11099 11100fi 11101rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11102 11103fi 11104echo "$as_me:11101: result: $cf_cv_posix_c_source" >&5 11105echo "${ECHO_T}$cf_cv_posix_c_source" >&6 11106 11107if test "$cf_cv_posix_c_source" != no ; then 11108 CFLAGS="$cf_trim_CFLAGS" 11109 CPPFLAGS="$cf_trim_CPPFLAGS" 11110 11111cf_fix_cppflags=no 11112cf_new_cflags= 11113cf_new_cppflags= 11114cf_new_extra_cppflags= 11115 11116for cf_add_cflags in $cf_cv_posix_c_source 11117do 11118case "$cf_fix_cppflags" in 11119(no) 11120 case "$cf_add_cflags" in 11121 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11122 case "$cf_add_cflags" in 11123 (-D*) 11124 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11125 11126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11127 && test -z "${cf_tst_cflags}" \ 11128 && cf_fix_cppflags=yes 11129 11130 if test "$cf_fix_cppflags" = yes ; then 11131 11132 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11133 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11134 11135 continue 11136 elif test "${cf_tst_cflags}" = "\"'" ; then 11137 11138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11140 11141 continue 11142 fi 11143 ;; 11144 esac 11145 case "$CPPFLAGS" in 11146 (*$cf_add_cflags) 11147 ;; 11148 (*) 11149 case "$cf_add_cflags" in 11150 (-D*) 11151 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11152 11153CPPFLAGS=`echo "$CPPFLAGS" | \ 11154 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11155 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11156 11157 ;; 11158 esac 11159 11160 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11161 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11162 11163 ;; 11164 esac 11165 ;; 11166 (*) 11167 11168 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11169 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11170 11171 ;; 11172 esac 11173 ;; 11174(yes) 11175 11176 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11177 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11178 11179 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11180 11181 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11182 && test -z "${cf_tst_cflags}" \ 11183 && cf_fix_cppflags=no 11184 ;; 11185esac 11186done 11187 11188if test -n "$cf_new_cflags" ; then 11189 11190 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11191 CFLAGS="${CFLAGS}$cf_new_cflags" 11192 11193fi 11194 11195if test -n "$cf_new_cppflags" ; then 11196 11197 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11198 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11199 11200fi 11201 11202if test -n "$cf_new_extra_cppflags" ; then 11203 11204 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11205 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11206 11207fi 11208 11209fi 11210 11211fi # cf_cv_posix_visible 11212 11213 ;; 11214esac 11215 11216if test -n "$cf_xopen_source" ; then 11217 11218for cf_add_cflags in $cf_xopen_source 11219do 11220 case "x$cf_add_cflags" in 11221 (x-[DU]*) 11222 11223cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 11224while true 11225do 11226 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 11227 test "$CFLAGS" != "$cf_old_cflag" || break 11228 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6 11229 11230echo "${as_me:-configure}:11227: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5 11231 11232 CFLAGS="$cf_old_cflag" 11233done 11234 11235cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 11236while true 11237do 11238 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 11239 test "$CPPFLAGS" != "$cf_old_cflag" || break 11240 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6 11241 11242echo "${as_me:-configure}:11239: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5 11243 11244 CPPFLAGS="$cf_old_cflag" 11245done 11246 11247 ;; 11248 esac 11249 11250cf_fix_cppflags=no 11251cf_new_cflags= 11252cf_new_cppflags= 11253cf_new_extra_cppflags= 11254 11255for cf_add_cflags in $cf_add_cflags 11256do 11257case "$cf_fix_cppflags" in 11258(no) 11259 case "$cf_add_cflags" in 11260 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11261 case "$cf_add_cflags" in 11262 (-D*) 11263 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11264 11265 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11266 && test -z "${cf_tst_cflags}" \ 11267 && cf_fix_cppflags=yes 11268 11269 if test "$cf_fix_cppflags" = yes ; then 11270 11271 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11272 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11273 11274 continue 11275 elif test "${cf_tst_cflags}" = "\"'" ; then 11276 11277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11279 11280 continue 11281 fi 11282 ;; 11283 esac 11284 case "$CPPFLAGS" in 11285 (*$cf_add_cflags) 11286 ;; 11287 (*) 11288 case "$cf_add_cflags" in 11289 (-D*) 11290 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11291 11292CPPFLAGS=`echo "$CPPFLAGS" | \ 11293 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11294 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11295 11296 ;; 11297 esac 11298 11299 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11300 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11301 11302 ;; 11303 esac 11304 ;; 11305 (*) 11306 11307 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11308 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11309 11310 ;; 11311 esac 11312 ;; 11313(yes) 11314 11315 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11316 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11317 11318 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11319 11320 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11321 && test -z "${cf_tst_cflags}" \ 11322 && cf_fix_cppflags=no 11323 ;; 11324esac 11325done 11326 11327if test -n "$cf_new_cflags" ; then 11328 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 11329 11330echo "${as_me:-configure}:11327: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 11331 11332 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11333 CFLAGS="${CFLAGS}$cf_new_cflags" 11334 11335fi 11336 11337if test -n "$cf_new_cppflags" ; then 11338 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 11339 11340echo "${as_me:-configure}:11337: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 11341 11342 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11343 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11344 11345fi 11346 11347if test -n "$cf_new_extra_cppflags" ; then 11348 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 11349 11350echo "${as_me:-configure}:11347: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 11351 11352 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11353 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11354 11355fi 11356 11357done 11358 11359fi 11360 11361if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 11362 echo "$as_me:11359: checking if _XOPEN_SOURCE really is set" >&5 11363echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 11364 cat >"conftest.$ac_ext" <<_ACEOF 11365#line 11362 "configure" 11366#include "confdefs.h" 11367#include <stdlib.h> 11368int 11369main (void) 11370{ 11371 11372#ifndef _XOPEN_SOURCE 11373make an error 11374#endif 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379rm -f "conftest.$ac_objext" 11380if { (eval echo "$as_me:11377: \"$ac_compile\"") >&5 11381 (eval $ac_compile) 2>&5 11382 ac_status=$? 11383 echo "$as_me:11380: \$? = $ac_status" >&5 11384 (exit "$ac_status"); } && 11385 { ac_try='test -s "conftest.$ac_objext"' 11386 { (eval echo "$as_me:11383: \"$ac_try\"") >&5 11387 (eval $ac_try) 2>&5 11388 ac_status=$? 11389 echo "$as_me:11386: \$? = $ac_status" >&5 11390 (exit "$ac_status"); }; }; then 11391 cf_XOPEN_SOURCE_set=yes 11392else 11393 echo "$as_me: failed program was:" >&5 11394cat "conftest.$ac_ext" >&5 11395cf_XOPEN_SOURCE_set=no 11396fi 11397rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11398 echo "$as_me:11395: result: $cf_XOPEN_SOURCE_set" >&5 11399echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 11400 if test "$cf_XOPEN_SOURCE_set" = yes 11401 then 11402 cat >"conftest.$ac_ext" <<_ACEOF 11403#line 11400 "configure" 11404#include "confdefs.h" 11405#include <stdlib.h> 11406int 11407main (void) 11408{ 11409 11410#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 11411make an error 11412#endif 11413 ; 11414 return 0; 11415} 11416_ACEOF 11417rm -f "conftest.$ac_objext" 11418if { (eval echo "$as_me:11415: \"$ac_compile\"") >&5 11419 (eval $ac_compile) 2>&5 11420 ac_status=$? 11421 echo "$as_me:11418: \$? = $ac_status" >&5 11422 (exit "$ac_status"); } && 11423 { ac_try='test -s "conftest.$ac_objext"' 11424 { (eval echo "$as_me:11421: \"$ac_try\"") >&5 11425 (eval $ac_try) 2>&5 11426 ac_status=$? 11427 echo "$as_me:11424: \$? = $ac_status" >&5 11428 (exit "$ac_status"); }; }; then 11429 cf_XOPEN_SOURCE_set_ok=yes 11430else 11431 echo "$as_me: failed program was:" >&5 11432cat "conftest.$ac_ext" >&5 11433cf_XOPEN_SOURCE_set_ok=no 11434fi 11435rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11436 if test "$cf_XOPEN_SOURCE_set_ok" = no 11437 then 11438 { echo "$as_me:11435: WARNING: _XOPEN_SOURCE is lower than requested" >&5 11439echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 11440 fi 11441 else 11442 11443echo "$as_me:11440: checking if we should define _XOPEN_SOURCE" >&5 11444echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 11445if test "${cf_cv_xopen_source+set}" = set; then 11446 echo $ECHO_N "(cached) $ECHO_C" >&6 11447else 11448 11449 cat >"conftest.$ac_ext" <<_ACEOF 11450#line 11447 "configure" 11451#include "confdefs.h" 11452 11453#include <stdlib.h> 11454#include <string.h> 11455#include <sys/types.h> 11456 11457int 11458main (void) 11459{ 11460 11461#ifndef _XOPEN_SOURCE 11462make an error 11463#endif 11464 ; 11465 return 0; 11466} 11467_ACEOF 11468rm -f "conftest.$ac_objext" 11469if { (eval echo "$as_me:11466: \"$ac_compile\"") >&5 11470 (eval $ac_compile) 2>&5 11471 ac_status=$? 11472 echo "$as_me:11469: \$? = $ac_status" >&5 11473 (exit "$ac_status"); } && 11474 { ac_try='test -s "conftest.$ac_objext"' 11475 { (eval echo "$as_me:11472: \"$ac_try\"") >&5 11476 (eval $ac_try) 2>&5 11477 ac_status=$? 11478 echo "$as_me:11475: \$? = $ac_status" >&5 11479 (exit "$ac_status"); }; }; then 11480 cf_cv_xopen_source=no 11481else 11482 echo "$as_me: failed program was:" >&5 11483cat "conftest.$ac_ext" >&5 11484cf_save="$CPPFLAGS" 11485 11486 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11487 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 11488 11489 cat >"conftest.$ac_ext" <<_ACEOF 11490#line 11487 "configure" 11491#include "confdefs.h" 11492 11493#include <stdlib.h> 11494#include <string.h> 11495#include <sys/types.h> 11496 11497int 11498main (void) 11499{ 11500 11501#ifdef _XOPEN_SOURCE 11502make an error 11503#endif 11504 ; 11505 return 0; 11506} 11507_ACEOF 11508rm -f "conftest.$ac_objext" 11509if { (eval echo "$as_me:11506: \"$ac_compile\"") >&5 11510 (eval $ac_compile) 2>&5 11511 ac_status=$? 11512 echo "$as_me:11509: \$? = $ac_status" >&5 11513 (exit "$ac_status"); } && 11514 { ac_try='test -s "conftest.$ac_objext"' 11515 { (eval echo "$as_me:11512: \"$ac_try\"") >&5 11516 (eval $ac_try) 2>&5 11517 ac_status=$? 11518 echo "$as_me:11515: \$? = $ac_status" >&5 11519 (exit "$ac_status"); }; }; then 11520 cf_cv_xopen_source=no 11521else 11522 echo "$as_me: failed program was:" >&5 11523cat "conftest.$ac_ext" >&5 11524cf_cv_xopen_source=$cf_XOPEN_SOURCE 11525fi 11526rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11527 CPPFLAGS="$cf_save" 11528 11529fi 11530rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11531 11532fi 11533echo "$as_me:11530: result: $cf_cv_xopen_source" >&5 11534echo "${ECHO_T}$cf_cv_xopen_source" >&6 11535 11536if test "$cf_cv_xopen_source" != no ; then 11537 11538CFLAGS=`echo "$CFLAGS" | \ 11539 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 11540 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 11541 11542CPPFLAGS=`echo "$CPPFLAGS" | \ 11543 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 11544 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 11545 11546 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 11547 11548for cf_add_cflags in $cf_temp_xopen_source 11549do 11550 case "x$cf_add_cflags" in 11551 (x-[DU]*) 11552 11553cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 11554while true 11555do 11556 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 11557 test "$CFLAGS" != "$cf_old_cflag" || break 11558 11559 CFLAGS="$cf_old_cflag" 11560done 11561 11562cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'` 11563while true 11564do 11565 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'` 11566 test "$CPPFLAGS" != "$cf_old_cflag" || break 11567 11568 CPPFLAGS="$cf_old_cflag" 11569done 11570 11571 ;; 11572 esac 11573 11574cf_fix_cppflags=no 11575cf_new_cflags= 11576cf_new_cppflags= 11577cf_new_extra_cppflags= 11578 11579for cf_add_cflags in $cf_add_cflags 11580do 11581case "$cf_fix_cppflags" in 11582(no) 11583 case "$cf_add_cflags" in 11584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 11585 case "$cf_add_cflags" in 11586 (-D*) 11587 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 11588 11589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11590 && test -z "${cf_tst_cflags}" \ 11591 && cf_fix_cppflags=yes 11592 11593 if test "$cf_fix_cppflags" = yes ; then 11594 11595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11597 11598 continue 11599 elif test "${cf_tst_cflags}" = "\"'" ; then 11600 11601 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11602 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11603 11604 continue 11605 fi 11606 ;; 11607 esac 11608 case "$CPPFLAGS" in 11609 (*$cf_add_cflags) 11610 ;; 11611 (*) 11612 case "$cf_add_cflags" in 11613 (-D*) 11614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 11615 11616CPPFLAGS=`echo "$CPPFLAGS" | \ 11617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 11618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 11619 11620 ;; 11621 esac 11622 11623 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 11624 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 11625 11626 ;; 11627 esac 11628 ;; 11629 (*) 11630 11631 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 11632 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 11633 11634 ;; 11635 esac 11636 ;; 11637(yes) 11638 11639 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 11640 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 11641 11642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 11643 11644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 11645 && test -z "${cf_tst_cflags}" \ 11646 && cf_fix_cppflags=no 11647 ;; 11648esac 11649done 11650 11651if test -n "$cf_new_cflags" ; then 11652 11653 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 11654 CFLAGS="${CFLAGS}$cf_new_cflags" 11655 11656fi 11657 11658if test -n "$cf_new_cppflags" ; then 11659 11660 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 11661 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 11662 11663fi 11664 11665if test -n "$cf_new_extra_cppflags" ; then 11666 11667 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 11668 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 11669 11670fi 11671 11672done 11673 11674fi 11675 11676 fi 11677fi 11678fi # cf_cv_posix_visible 11679 11680CPPFLAGS_after_XOPEN="$CPPFLAGS" 11681 11682# Work around breakage on OS X 11683 11684echo "$as_me:11681: checking if SIGWINCH is defined" >&5 11685echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 11686if test "${cf_cv_define_sigwinch+set}" = set; then 11687 echo $ECHO_N "(cached) $ECHO_C" >&6 11688else 11689 11690 cat >"conftest.$ac_ext" <<_ACEOF 11691#line 11688 "configure" 11692#include "confdefs.h" 11693 11694#include <sys/types.h> 11695#include <sys/signal.h> 11696 11697int 11698main (void) 11699{ 11700int x = SIGWINCH; (void)x 11701 ; 11702 return 0; 11703} 11704_ACEOF 11705rm -f "conftest.$ac_objext" 11706if { (eval echo "$as_me:11703: \"$ac_compile\"") >&5 11707 (eval $ac_compile) 2>&5 11708 ac_status=$? 11709 echo "$as_me:11706: \$? = $ac_status" >&5 11710 (exit "$ac_status"); } && 11711 { ac_try='test -s "conftest.$ac_objext"' 11712 { (eval echo "$as_me:11709: \"$ac_try\"") >&5 11713 (eval $ac_try) 2>&5 11714 ac_status=$? 11715 echo "$as_me:11712: \$? = $ac_status" >&5 11716 (exit "$ac_status"); }; }; then 11717 cf_cv_define_sigwinch=yes 11718else 11719 echo "$as_me: failed program was:" >&5 11720cat "conftest.$ac_ext" >&5 11721cat >"conftest.$ac_ext" <<_ACEOF 11722#line 11719 "configure" 11723#include "confdefs.h" 11724 11725#undef _XOPEN_SOURCE 11726#undef _POSIX_SOURCE 11727#undef _POSIX_C_SOURCE 11728#include <sys/types.h> 11729#include <sys/signal.h> 11730 11731int 11732main (void) 11733{ 11734int x = SIGWINCH; (void)x 11735 ; 11736 return 0; 11737} 11738_ACEOF 11739rm -f "conftest.$ac_objext" 11740if { (eval echo "$as_me:11737: \"$ac_compile\"") >&5 11741 (eval $ac_compile) 2>&5 11742 ac_status=$? 11743 echo "$as_me:11740: \$? = $ac_status" >&5 11744 (exit "$ac_status"); } && 11745 { ac_try='test -s "conftest.$ac_objext"' 11746 { (eval echo "$as_me:11743: \"$ac_try\"") >&5 11747 (eval $ac_try) 2>&5 11748 ac_status=$? 11749 echo "$as_me:11746: \$? = $ac_status" >&5 11750 (exit "$ac_status"); }; }; then 11751 cf_cv_define_sigwinch=maybe 11752else 11753 echo "$as_me: failed program was:" >&5 11754cat "conftest.$ac_ext" >&5 11755cf_cv_define_sigwinch=no 11756fi 11757rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11758 11759fi 11760rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11761 11762fi 11763echo "$as_me:11760: result: $cf_cv_define_sigwinch" >&5 11764echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 11765 11766if test "$cf_cv_define_sigwinch" = maybe ; then 11767echo "$as_me:11764: checking for actual SIGWINCH definition" >&5 11768echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 11769if test "${cf_cv_fixup_sigwinch+set}" = set; then 11770 echo $ECHO_N "(cached) $ECHO_C" >&6 11771else 11772 11773cf_cv_fixup_sigwinch=unknown 11774cf_sigwinch=32 11775while test "$cf_sigwinch" != 1 11776do 11777 cat >"conftest.$ac_ext" <<_ACEOF 11778#line 11775 "configure" 11779#include "confdefs.h" 11780 11781#undef _XOPEN_SOURCE 11782#undef _POSIX_SOURCE 11783#undef _POSIX_C_SOURCE 11784#include <sys/types.h> 11785#include <sys/signal.h> 11786 11787int 11788main (void) 11789{ 11790 11791#if SIGWINCH != $cf_sigwinch 11792make an error 11793#endif 11794int x = SIGWINCH; (void)x 11795 ; 11796 return 0; 11797} 11798_ACEOF 11799rm -f "conftest.$ac_objext" 11800if { (eval echo "$as_me:11797: \"$ac_compile\"") >&5 11801 (eval $ac_compile) 2>&5 11802 ac_status=$? 11803 echo "$as_me:11800: \$? = $ac_status" >&5 11804 (exit "$ac_status"); } && 11805 { ac_try='test -s "conftest.$ac_objext"' 11806 { (eval echo "$as_me:11803: \"$ac_try\"") >&5 11807 (eval $ac_try) 2>&5 11808 ac_status=$? 11809 echo "$as_me:11806: \$? = $ac_status" >&5 11810 (exit "$ac_status"); }; }; then 11811 cf_cv_fixup_sigwinch=$cf_sigwinch 11812 break 11813else 11814 echo "$as_me: failed program was:" >&5 11815cat "conftest.$ac_ext" >&5 11816fi 11817rm -f "conftest.$ac_objext" "conftest.$ac_ext" 11818 11819cf_sigwinch="`expr "$cf_sigwinch" - 1`" 11820done 11821 11822fi 11823echo "$as_me:11820: result: $cf_cv_fixup_sigwinch" >&5 11824echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 11825 11826 if test "$cf_cv_fixup_sigwinch" != unknown ; then 11827 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 11828 fi 11829fi 11830 11831# Checks for CODESET support. 11832 11833echo "$as_me:11830: checking for nl_langinfo and CODESET" >&5 11834echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 11835if test "${am_cv_langinfo_codeset+set}" = set; then 11836 echo $ECHO_N "(cached) $ECHO_C" >&6 11837else 11838 cat >"conftest.$ac_ext" <<_ACEOF 11839#line 11836 "configure" 11840#include "confdefs.h" 11841#include <langinfo.h> 11842int 11843main (void) 11844{ 11845char* cs = nl_langinfo(CODESET); (void)cs 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850rm -f "conftest.$ac_objext" "conftest$ac_exeext" 11851if { (eval echo "$as_me:11848: \"$ac_link\"") >&5 11852 (eval $ac_link) 2>&5 11853 ac_status=$? 11854 echo "$as_me:11851: \$? = $ac_status" >&5 11855 (exit "$ac_status"); } && 11856 { ac_try='test -s "conftest$ac_exeext"' 11857 { (eval echo "$as_me:11854: \"$ac_try\"") >&5 11858 (eval $ac_try) 2>&5 11859 ac_status=$? 11860 echo "$as_me:11857: \$? = $ac_status" >&5 11861 (exit "$ac_status"); }; }; then 11862 am_cv_langinfo_codeset=yes 11863else 11864 echo "$as_me: failed program was:" >&5 11865cat "conftest.$ac_ext" >&5 11866am_cv_langinfo_codeset=no 11867fi 11868rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 11869 11870fi 11871echo "$as_me:11868: result: $am_cv_langinfo_codeset" >&5 11872echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 11873 if test "$am_cv_langinfo_codeset" = yes; then 11874 11875cat >>confdefs.h <<\EOF 11876#define HAVE_LANGINFO_CODESET 1 11877EOF 11878 11879 fi 11880 11881# use these variables to work around a defect in gcc's fixincludes. 11882NCURSES_OK_WCHAR_T= 11883NCURSES_OK_WINT_T= 11884 11885echo "$as_me:11882: checking if you want wide-character code" >&5 11886echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6 11887 11888# Check whether --enable-widec or --disable-widec was given. 11889if test "${enable_widec+set}" = set; then 11890 enableval="$enable_widec" 11891 with_widec=$enableval 11892else 11893 with_widec=no 11894fi; 11895echo "$as_me:11892: result: $with_widec" >&5 11896echo "${ECHO_T}$with_widec" >&6 11897 11898NCURSES_WCWIDTH_GRAPHICS=1 11899 11900if test "x$with_widec" = xyes ; then 11901 if test "x$disable_lib_suffixes" = xno ; then 11902 LIB_SUFFIX="w${LIB_SUFFIX}" 11903 fi 11904 11905cat >>confdefs.h <<\EOF 11906#define USE_WIDEC_SUPPORT 1 11907EOF 11908 11909cat >>confdefs.h <<\EOF 11910#define NCURSES_WIDECHAR 1 11911EOF 11912 11913for ac_header in \ 11914wchar.h \ 11915wctype.h \ 11916 11917do 11918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11919echo "$as_me:11916: checking for $ac_header" >&5 11920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11921if eval "test \"\${$as_ac_Header+set}\" = set"; then 11922 echo $ECHO_N "(cached) $ECHO_C" >&6 11923else 11924 cat >"conftest.$ac_ext" <<_ACEOF 11925#line 11922 "configure" 11926#include "confdefs.h" 11927#include <$ac_header> 11928_ACEOF 11929if { (eval echo "$as_me:11926: \"$ac_cpp "conftest.$ac_ext"\"") >&5 11930 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 11931 ac_status=$? 11932 $EGREP -v '^ *\+' conftest.er1 >conftest.err 11933 rm -f conftest.er1 11934 cat conftest.err >&5 11935 echo "$as_me:11932: \$? = $ac_status" >&5 11936 (exit "$ac_status"); } >/dev/null; then 11937 if test -s conftest.err; then 11938 ac_cpp_err=$ac_c_preproc_warn_flag 11939 else 11940 ac_cpp_err= 11941 fi 11942else 11943 ac_cpp_err=yes 11944fi 11945if test -z "$ac_cpp_err"; then 11946 eval "$as_ac_Header=yes" 11947else 11948 echo "$as_me: failed program was:" >&5 11949 cat "conftest.$ac_ext" >&5 11950 eval "$as_ac_Header=no" 11951fi 11952rm -f conftest.err "conftest.$ac_ext" 11953fi 11954echo "$as_me:11951: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 11955echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 11956if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 11957 cat >>confdefs.h <<EOF 11958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11959EOF 11960 11961fi 11962done 11963 11964echo "$as_me:11961: checking if wchar.h can be used as is" >&5 11965echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6 11966if test "${cf_cv_wchar_h_okay+set}" = set; then 11967 echo $ECHO_N "(cached) $ECHO_C" >&6 11968else 11969 11970cat >"conftest.$ac_ext" <<_ACEOF 11971#line 11968 "configure" 11972#include "confdefs.h" 11973 11974#include <stdlib.h> 11975#ifdef HAVE_WCHAR_H 11976#include <wchar.h> 11977#endif 11978#ifdef HAVE_WCTYPE_H 11979#include <wctype.h> 11980#endif 11981 11982int 11983main (void) 11984{ 11985 11986 wint_t foo = 0; 11987 int bar = iswpunct(foo) 11988 ; 11989 return 0; 11990} 11991_ACEOF 11992rm -f "conftest.$ac_objext" 11993if { (eval echo "$as_me:11990: \"$ac_compile\"") >&5 11994 (eval $ac_compile) 2>&5 11995 ac_status=$? 11996 echo "$as_me:11993: \$? = $ac_status" >&5 11997 (exit "$ac_status"); } && 11998 { ac_try='test -s "conftest.$ac_objext"' 11999 { (eval echo "$as_me:11996: \"$ac_try\"") >&5 12000 (eval $ac_try) 2>&5 12001 ac_status=$? 12002 echo "$as_me:11999: \$? = $ac_status" >&5 12003 (exit "$ac_status"); }; }; then 12004 cf_cv_wchar_h_okay=yes 12005else 12006 echo "$as_me: failed program was:" >&5 12007cat "conftest.$ac_ext" >&5 12008cf_cv_wchar_h_okay=no 12009fi 12010rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12011fi 12012echo "$as_me:12009: result: $cf_cv_wchar_h_okay" >&5 12013echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6 12014 12015if test "$cf_cv_wchar_h_okay" = no 12016then 12017 12018echo "$as_me:12015: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5 12019echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6 12020cat >"conftest.$ac_ext" <<_ACEOF 12021#line 12018 "configure" 12022#include "confdefs.h" 12023#include <sys/types.h> 12024 12025int 12026main (void) 12027{ 12028 12029#ifndef _XOPEN_SOURCE_EXTENDED 12030make an error 12031#endif 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036rm -f "conftest.$ac_objext" 12037if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5 12038 (eval $ac_compile) 2>&5 12039 ac_status=$? 12040 echo "$as_me:12037: \$? = $ac_status" >&5 12041 (exit "$ac_status"); } && 12042 { ac_try='test -s "conftest.$ac_objext"' 12043 { (eval echo "$as_me:12040: \"$ac_try\"") >&5 12044 (eval $ac_try) 2>&5 12045 ac_status=$? 12046 echo "$as_me:12043: \$? = $ac_status" >&5 12047 (exit "$ac_status"); }; }; then 12048 cf_result=no 12049else 12050 echo "$as_me: failed program was:" >&5 12051cat "conftest.$ac_ext" >&5 12052cf_result=yes 12053fi 12054rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12055echo "$as_me:12052: result: $cf_result" >&5 12056echo "${ECHO_T}$cf_result" >&6 12057 12058if test "$cf_result" = yes ; then 12059 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" 12060elif test "x" != "x" ; then 12061 echo "$as_me:12058: checking checking for compatible value versus " >&5 12062echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6 12063 cat >"conftest.$ac_ext" <<_ACEOF 12064#line 12061 "configure" 12065#include "confdefs.h" 12066#include <sys/types.h> 12067 12068int 12069main (void) 12070{ 12071 12072#if _XOPEN_SOURCE_EXTENDED- < 0 12073make an error 12074#endif 12075 ; 12076 return 0; 12077} 12078_ACEOF 12079rm -f "conftest.$ac_objext" 12080if { (eval echo "$as_me:12077: \"$ac_compile\"") >&5 12081 (eval $ac_compile) 2>&5 12082 ac_status=$? 12083 echo "$as_me:12080: \$? = $ac_status" >&5 12084 (exit "$ac_status"); } && 12085 { ac_try='test -s "conftest.$ac_objext"' 12086 { (eval echo "$as_me:12083: \"$ac_try\"") >&5 12087 (eval $ac_try) 2>&5 12088 ac_status=$? 12089 echo "$as_me:12086: \$? = $ac_status" >&5 12090 (exit "$ac_status"); }; }; then 12091 cf_result=yes 12092else 12093 echo "$as_me: failed program was:" >&5 12094cat "conftest.$ac_ext" >&5 12095cf_result=no 12096fi 12097rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12098 echo "$as_me:12095: result: $cf_result" >&5 12099echo "${ECHO_T}$cf_result" >&6 12100 if test "$cf_result" = no ; then 12101 # perhaps we can override it - try... 12102 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=" 12103 fi 12104fi 12105 12106fi 12107 12108echo "$as_me:12105: checking if wcwidth agrees graphics are single-width" >&5 12109echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6 12110if test "${cf_cv_wcwidth_graphics+set}" = set; then 12111 echo $ECHO_N "(cached) $ECHO_C" >&6 12112else 12113 12114cat >conftest.in <<CF_EOF 12115- VT100 symbols 121160x250c upper left corner 121170x2514 lower left corner 121180x2510 upper right corner 121190x2518 lower right corner 121200x251c tee pointing left 121210x2524 tee pointing right 121220x2534 tee pointing up 121230x252c tee pointing down 121240x2500 horizontal line 121250x2502 vertical line 121260x253c large plus or crossover 121270x23ba scan line 1 121280x23bd scan line 9 121290x25c6 diamond 121300x2592 checker board (stipple) 121310x00b0 degree symbol 121320x00b1 plus/minus 121330x00b7 bullet 12134- Teletype 5410v1 symbols 121350x2190 arrow pointing left 121360x2192 arrow pointing right 121370x2193 arrow pointing down 121380x2191 arrow pointing up 121390x2592 board of squares 121400x2603 lantern symbol 121410x25ae solid square block 12142- these defaults were invented for ncurses 121430x23bb scan line 3 121440x23bc scan line 7 121450x2264 less-than-or-equal-to 121460x2265 greater-than-or-equal-to 121470x03c0 greek pi 121480x2260 not-equal 121490x00a3 pound-sterling symbol 12150- thick-line-drawing 121510x250f upper left corner 121520x2517 lower left corner 121530x2513 upper right corner 121540x251b lower right corner 121550x2523 tee pointing left 121560x252b tee pointing right 121570x253b tee pointing up 121580x2533 tee pointing down 121590x2501 horizontal line 121600x2503 vertical line 121610x254b large plus or crossover 12162- double-line-drawing 121630x2554 upper left corner 121640x255a lower left corner 121650x2557 upper right corner 121660x255d lower right corner 121670x2563 tee pointing left 121680x2560 tee pointing right 121690x2569 tee pointing up 121700x2566 tee pointing down 121710x2550 horizontal line 121720x2551 vertical line 121730x256c large plus or crossover 12174CF_EOF 12175if test "$cross_compiling" = yes; then 12176 cf_cv_wcwidth_graphics=unknown 12177else 12178 cat >"conftest.$ac_ext" <<_ACEOF 12179#line 12176 "configure" 12180#include "confdefs.h" 12181 12182#include <locale.h> 12183#include <stdio.h> 12184#include <wchar.h> 12185 12186#define MY_LEN 80 12187 12188int 12189main(void) 12190{ 12191 FILE *fp; 12192 int value; 12193 char buffer[MY_LEN + 1]; 12194 char notes[MY_LEN + 1]; 12195 int totals = 0; 12196 int passed = 0; 12197 12198 if (setlocale(LC_ALL, "en_US.UTF8") || 12199 setlocale(LC_ALL, "en_US.UTF-8") || 12200 setlocale(LC_ALL, "en_US.utf8") || 12201 setlocale(LC_ALL, "en_US.utf-8")) { 12202 if ((fp = fopen("conftest.in", "r")) != 0) { 12203 while (fgets(buffer, MY_LEN, fp) != 0) { 12204 if (*buffer == '-') { 12205 fprintf(stderr, "\\t%s", buffer); 12206 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) { 12207 ++totals; 12208 if (wcwidth(value) == 1) 12209 ++passed; 12210 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer); 12211 } else { 12212 fprintf(stderr, "?\\t%s", buffer); 12213 } 12214 } 12215 } 12216 } 12217 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals); 12218 return (totals == passed) ? 0 : 1; 12219} 12220 12221_ACEOF 12222rm -f "conftest$ac_exeext" 12223if { (eval echo "$as_me:12220: \"$ac_link\"") >&5 12224 (eval $ac_link) 2>&5 12225 ac_status=$? 12226 echo "$as_me:12223: \$? = $ac_status" >&5 12227 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 12228 { (eval echo "$as_me:12225: \"$ac_try\"") >&5 12229 (eval $ac_try) 2>&5 12230 ac_status=$? 12231 echo "$as_me:12228: \$? = $ac_status" >&5 12232 (exit "$ac_status"); }; }; then 12233 cf_cv_wcwidth_graphics=yes 12234else 12235 echo "$as_me: program exited with status $ac_status" >&5 12236echo "$as_me: failed program was:" >&5 12237cat "conftest.$ac_ext" >&5 12238cf_cv_wcwidth_graphics=no 12239fi 12240rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 12241fi 12242 12243fi 12244echo "$as_me:12241: result: $cf_cv_wcwidth_graphics" >&5 12245echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6 12246 12247 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0 12248 12249 # with_overwrite=no 12250 NCURSES_CH_T=cchar_t 12251 12252for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs 12253do 12254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12255echo "$as_me:12252: checking for $ac_func" >&5 12256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12257if eval "test \"\${$as_ac_var+set}\" = set"; then 12258 echo $ECHO_N "(cached) $ECHO_C" >&6 12259else 12260 cat >"conftest.$ac_ext" <<_ACEOF 12261#line 12258 "configure" 12262#include "confdefs.h" 12263#define $ac_func autoconf_temporary 12264#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 12265#undef $ac_func 12266 12267#ifdef __cplusplus 12268extern "C" 12269#endif 12270 12271/* We use char because int might match the return type of a gcc2 12272 builtin and then its argument prototype would still apply. */ 12273char $ac_func (void); 12274 12275int 12276main (void) 12277{ 12278 12279/* The GNU C library defines stubs for functions which it implements 12280 to always fail with ENOSYS. Some functions are actually named 12281 something starting with __ and the normal name is an alias. */ 12282#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12283#error found stub for $ac_func 12284#endif 12285 12286 return $ac_func (); 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12292if { (eval echo "$as_me:12289: \"$ac_link\"") >&5 12293 (eval $ac_link) 2>&5 12294 ac_status=$? 12295 echo "$as_me:12292: \$? = $ac_status" >&5 12296 (exit "$ac_status"); } && 12297 { ac_try='test -s "conftest$ac_exeext"' 12298 { (eval echo "$as_me:12295: \"$ac_try\"") >&5 12299 (eval $ac_try) 2>&5 12300 ac_status=$? 12301 echo "$as_me:12298: \$? = $ac_status" >&5 12302 (exit "$ac_status"); }; }; then 12303 eval "$as_ac_var=yes" 12304else 12305 echo "$as_me: failed program was:" >&5 12306cat "conftest.$ac_ext" >&5 12307eval "$as_ac_var=no" 12308fi 12309rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12310fi 12311echo "$as_me:12308: result: `eval echo '${'"$as_ac_var"'}'`" >&5 12312echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 12313if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 12314 cat >>confdefs.h <<EOF 12315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12316EOF 12317 12318fi 12319done 12320 12321 if test "x$ac_cv_func_putwc" != xyes ; then 12322 12323for ac_header in wchar.h 12324do 12325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12326echo "$as_me:12323: checking for $ac_header" >&5 12327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12328if eval "test \"\${$as_ac_Header+set}\" = set"; then 12329 echo $ECHO_N "(cached) $ECHO_C" >&6 12330else 12331 cat >"conftest.$ac_ext" <<_ACEOF 12332#line 12329 "configure" 12333#include "confdefs.h" 12334#include <$ac_header> 12335_ACEOF 12336if { (eval echo "$as_me:12333: \"$ac_cpp "conftest.$ac_ext"\"") >&5 12337 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 12338 ac_status=$? 12339 $EGREP -v '^ *\+' conftest.er1 >conftest.err 12340 rm -f conftest.er1 12341 cat conftest.err >&5 12342 echo "$as_me:12339: \$? = $ac_status" >&5 12343 (exit "$ac_status"); } >/dev/null; then 12344 if test -s conftest.err; then 12345 ac_cpp_err=$ac_c_preproc_warn_flag 12346 else 12347 ac_cpp_err= 12348 fi 12349else 12350 ac_cpp_err=yes 12351fi 12352if test -z "$ac_cpp_err"; then 12353 eval "$as_ac_Header=yes" 12354else 12355 echo "$as_me: failed program was:" >&5 12356 cat "conftest.$ac_ext" >&5 12357 eval "$as_ac_Header=no" 12358fi 12359rm -f conftest.err "conftest.$ac_ext" 12360fi 12361echo "$as_me:12358: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 12362echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 12363if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 12364 cat >>confdefs.h <<EOF 12365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12366EOF 12367 12368fi 12369done 12370 12371echo "$as_me:12368: checking for multibyte character support" >&5 12372echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6 12373if test "${cf_cv_utf8_lib+set}" = set; then 12374 echo $ECHO_N "(cached) $ECHO_C" >&6 12375else 12376 12377 cf_save_LIBS="$LIBS" 12378 cat >"conftest.$ac_ext" <<_ACEOF 12379#line 12376 "configure" 12380#include "confdefs.h" 12381 12382#include <stdlib.h> 12383#include <stdio.h> 12384#ifdef HAVE_WCHAR_H 12385#include <wchar.h> 12386#endif 12387 12388int 12389main (void) 12390{ 12391putwc(0,0); 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12397if { (eval echo "$as_me:12394: \"$ac_link\"") >&5 12398 (eval $ac_link) 2>&5 12399 ac_status=$? 12400 echo "$as_me:12397: \$? = $ac_status" >&5 12401 (exit "$ac_status"); } && 12402 { ac_try='test -s "conftest$ac_exeext"' 12403 { (eval echo "$as_me:12400: \"$ac_try\"") >&5 12404 (eval $ac_try) 2>&5 12405 ac_status=$? 12406 echo "$as_me:12403: \$? = $ac_status" >&5 12407 (exit "$ac_status"); }; }; then 12408 cf_cv_utf8_lib=yes 12409else 12410 echo "$as_me: failed program was:" >&5 12411cat "conftest.$ac_ext" >&5 12412 12413# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these 12414# will be set on completion of the AC_TRY_LINK below. 12415cf_cv_header_path_utf8= 12416cf_cv_library_path_utf8= 12417 12418echo "${as_me:-configure}:12415: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5 12419 12420cf_save_LIBS="$LIBS" 12421 12422cat >"conftest.$ac_ext" <<_ACEOF 12423#line 12420 "configure" 12424#include "confdefs.h" 12425 12426#include <libutf8.h> 12427int 12428main (void) 12429{ 12430putwc(0,0); 12431 ; 12432 return 0; 12433} 12434_ACEOF 12435rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12436if { (eval echo "$as_me:12433: \"$ac_link\"") >&5 12437 (eval $ac_link) 2>&5 12438 ac_status=$? 12439 echo "$as_me:12436: \$? = $ac_status" >&5 12440 (exit "$ac_status"); } && 12441 { ac_try='test -s "conftest$ac_exeext"' 12442 { (eval echo "$as_me:12439: \"$ac_try\"") >&5 12443 (eval $ac_try) 2>&5 12444 ac_status=$? 12445 echo "$as_me:12442: \$? = $ac_status" >&5 12446 (exit "$ac_status"); }; }; then 12447 12448 cf_cv_find_linkage_utf8=yes 12449 cf_cv_header_path_utf8=/usr/include 12450 cf_cv_library_path_utf8=/usr/lib 12451 12452else 12453 echo "$as_me: failed program was:" >&5 12454cat "conftest.$ac_ext" >&5 12455 12456LIBS="-lutf8 $cf_save_LIBS" 12457 12458cat >"conftest.$ac_ext" <<_ACEOF 12459#line 12456 "configure" 12460#include "confdefs.h" 12461 12462#include <libutf8.h> 12463int 12464main (void) 12465{ 12466putwc(0,0); 12467 ; 12468 return 0; 12469} 12470_ACEOF 12471rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12472if { (eval echo "$as_me:12469: \"$ac_link\"") >&5 12473 (eval $ac_link) 2>&5 12474 ac_status=$? 12475 echo "$as_me:12472: \$? = $ac_status" >&5 12476 (exit "$ac_status"); } && 12477 { ac_try='test -s "conftest$ac_exeext"' 12478 { (eval echo "$as_me:12475: \"$ac_try\"") >&5 12479 (eval $ac_try) 2>&5 12480 ac_status=$? 12481 echo "$as_me:12478: \$? = $ac_status" >&5 12482 (exit "$ac_status"); }; }; then 12483 12484 cf_cv_find_linkage_utf8=yes 12485 cf_cv_header_path_utf8=/usr/include 12486 cf_cv_library_path_utf8=/usr/lib 12487 cf_cv_library_file_utf8="-lutf8" 12488 12489else 12490 echo "$as_me: failed program was:" >&5 12491cat "conftest.$ac_ext" >&5 12492 12493 cf_cv_find_linkage_utf8=no 12494 LIBS="$cf_save_LIBS" 12495 12496 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6 12497 12498echo "${as_me:-configure}:12495: testing find linkage for utf8 library ..." 1>&5 12499 12500echo "${as_me:-configure}:12497: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5 12501 12502 cf_save_CPPFLAGS="$CPPFLAGS" 12503 cf_test_CPPFLAGS="$CPPFLAGS" 12504 12505cf_search= 12506 12507# collect the current set of include-directories from compiler flags 12508cf_header_path_list="" 12509if test -n "${CFLAGS}${CPPFLAGS}" ; then 12510 for cf_header_path in $CPPFLAGS $CFLAGS 12511 do 12512 case "$cf_header_path" in 12513 (-I*) 12514 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'` 12515 12516test "x$cf_header_path" != "xNONE" && \ 12517test -d "$cf_header_path" && \ 12518 { 12519 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path" 12520 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include" 12521 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8" 12522 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include" 12523 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include" 12524 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8" 12525} 12526 12527 cf_header_path_list="$cf_header_path_list $cf_search" 12528 ;; 12529 esac 12530 done 12531fi 12532 12533# add the variations for the package we are looking for 12534 12535cf_search= 12536 12537test "x$prefix" != "xNONE" && \ 12538test -d "$prefix" && \ 12539 { 12540 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 12541 test -d "$prefix/include" && cf_search="$cf_search $prefix/include" 12542 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8" 12543 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include" 12544 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include" 12545 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8" 12546} 12547 12548for cf_subdir_prefix in \ 12549 /usr \ 12550 /usr/local \ 12551 /usr/pkg \ 12552 /opt \ 12553 /opt/local \ 12554 $HOME 12555do 12556 12557test "x$cf_subdir_prefix" != "x$prefix" && \ 12558test -d "$cf_subdir_prefix" && \ 12559{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 12560 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 12561 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include" 12562 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8" 12563 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include" 12564 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include" 12565 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8" 12566} 12567 12568done 12569 12570test "$includedir" != NONE && \ 12571test "$includedir" != "/usr/include" && \ 12572test -d "$includedir" && { 12573 test -d "$includedir" && cf_search="$cf_search $includedir" 12574 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8" 12575} 12576 12577test "$oldincludedir" != NONE && \ 12578test "$oldincludedir" != "/usr/include" && \ 12579test -d "$oldincludedir" && { 12580 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir" 12581 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8" 12582} 12583 12584cf_search="$cf_search $cf_header_path_list" 12585 12586 for cf_cv_header_path_utf8 in $cf_search 12587 do 12588 if test -d "$cf_cv_header_path_utf8" ; then 12589 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6 12590 12591echo "${as_me:-configure}:12588: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5 12592 12593 CPPFLAGS="$cf_save_CPPFLAGS" 12594 12595 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12596 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8" 12597 12598 cat >"conftest.$ac_ext" <<_ACEOF 12599#line 12596 "configure" 12600#include "confdefs.h" 12601 12602#include <libutf8.h> 12603int 12604main (void) 12605{ 12606putwc(0,0); 12607 ; 12608 return 0; 12609} 12610_ACEOF 12611rm -f "conftest.$ac_objext" 12612if { (eval echo "$as_me:12609: \"$ac_compile\"") >&5 12613 (eval $ac_compile) 2>&5 12614 ac_status=$? 12615 echo "$as_me:12612: \$? = $ac_status" >&5 12616 (exit "$ac_status"); } && 12617 { ac_try='test -s "conftest.$ac_objext"' 12618 { (eval echo "$as_me:12615: \"$ac_try\"") >&5 12619 (eval $ac_try) 2>&5 12620 ac_status=$? 12621 echo "$as_me:12618: \$? = $ac_status" >&5 12622 (exit "$ac_status"); }; }; then 12623 12624 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6 12625 12626echo "${as_me:-configure}:12623: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5 12627 12628 cf_cv_find_linkage_utf8=maybe 12629 cf_test_CPPFLAGS="$CPPFLAGS" 12630 break 12631else 12632 echo "$as_me: failed program was:" >&5 12633cat "conftest.$ac_ext" >&5 12634 12635 CPPFLAGS="$cf_save_CPPFLAGS" 12636 12637fi 12638rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12639 fi 12640 done 12641 12642 if test "$cf_cv_find_linkage_utf8" = maybe ; then 12643 12644echo "${as_me:-configure}:12641: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5 12645 12646 cf_save_LIBS="$LIBS" 12647 cf_save_LDFLAGS="$LDFLAGS" 12648 12649 if test "$cf_cv_find_linkage_utf8" != yes ; then 12650 12651cf_search= 12652cf_library_path_list="" 12653if test -n "${LDFLAGS}${LIBS}" ; then 12654 for cf_library_path in $LDFLAGS $LIBS 12655 do 12656 case "$cf_library_path" in 12657 (-L*) 12658 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'` 12659 12660test "x$cf_library_path" != "xNONE" && \ 12661test -d "$cf_library_path" && \ 12662 { 12663 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path" 12664 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib" 12665 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8" 12666 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib" 12667 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib" 12668 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8" 12669} 12670 12671 cf_library_path_list="$cf_library_path_list $cf_search" 12672 ;; 12673 esac 12674 done 12675fi 12676 12677cf_search= 12678 12679test "x$prefix" != "xNONE" && \ 12680test -d "$prefix" && \ 12681 { 12682 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 12683 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib" 12684 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8" 12685 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib" 12686 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib" 12687 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8" 12688} 12689 12690for cf_subdir_prefix in \ 12691 /usr \ 12692 /usr/local \ 12693 /usr/pkg \ 12694 /opt \ 12695 /opt/local \ 12696 $HOME 12697do 12698 12699test "x$cf_subdir_prefix" != "x$prefix" && \ 12700test -d "$cf_subdir_prefix" && \ 12701{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 12702 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 12703 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib" 12704 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8" 12705 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib" 12706 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib" 12707 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8" 12708} 12709 12710done 12711 12712cf_search="$cf_library_path_list $cf_search" 12713 12714 for cf_cv_library_path_utf8 in $cf_search 12715 do 12716 if test -d "$cf_cv_library_path_utf8" ; then 12717 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6 12718 12719echo "${as_me:-configure}:12716: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5 12720 12721 CPPFLAGS="$cf_test_CPPFLAGS" 12722 LIBS="-lutf8 $cf_save_LIBS" 12723 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8" 12724 cat >"conftest.$ac_ext" <<_ACEOF 12725#line 12722 "configure" 12726#include "confdefs.h" 12727 12728#include <libutf8.h> 12729int 12730main (void) 12731{ 12732putwc(0,0); 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737rm -f "conftest.$ac_objext" "conftest$ac_exeext" 12738if { (eval echo "$as_me:12735: \"$ac_link\"") >&5 12739 (eval $ac_link) 2>&5 12740 ac_status=$? 12741 echo "$as_me:12738: \$? = $ac_status" >&5 12742 (exit "$ac_status"); } && 12743 { ac_try='test -s "conftest$ac_exeext"' 12744 { (eval echo "$as_me:12741: \"$ac_try\"") >&5 12745 (eval $ac_try) 2>&5 12746 ac_status=$? 12747 echo "$as_me:12744: \$? = $ac_status" >&5 12748 (exit "$ac_status"); }; }; then 12749 12750 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6 12751 12752echo "${as_me:-configure}:12749: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5 12753 12754 cf_cv_find_linkage_utf8=yes 12755 cf_cv_library_file_utf8="-lutf8" 12756 break 12757else 12758 echo "$as_me: failed program was:" >&5 12759cat "conftest.$ac_ext" >&5 12760 12761 CPPFLAGS="$cf_save_CPPFLAGS" 12762 LIBS="$cf_save_LIBS" 12763 LDFLAGS="$cf_save_LDFLAGS" 12764 12765fi 12766rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12767 fi 12768 done 12769 CPPFLAGS="$cf_save_CPPFLAGS" 12770 LDFLAGS="$cf_save_LDFLAGS" 12771 fi 12772 12773 else 12774 cf_cv_find_linkage_utf8=no 12775 fi 12776 12777fi 12778rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12779 12780fi 12781rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12782 12783LIBS="$cf_save_LIBS" 12784 12785if test "$cf_cv_find_linkage_utf8" = yes ; then 12786cf_cv_utf8_lib=add-on 12787else 12788cf_cv_utf8_lib=no 12789fi 12790 12791fi 12792rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 12793fi 12794echo "$as_me:12791: result: $cf_cv_utf8_lib" >&5 12795echo "${ECHO_T}$cf_cv_utf8_lib" >&6 12796 12797# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between 12798# ncurses/ncursesw: 12799if test "$cf_cv_utf8_lib" = "add-on" ; then 12800 12801cat >>confdefs.h <<\EOF 12802#define HAVE_LIBUTF8_H 1 12803EOF 12804 12805if test -n "$cf_cv_header_path_utf8" ; then 12806 for cf_add_incdir in $cf_cv_header_path_utf8 12807 do 12808 while test "$cf_add_incdir" != /usr/include 12809 do 12810 if test -d "$cf_add_incdir" 12811 then 12812 cf_have_incdir=no 12813 if test -n "$CFLAGS$CPPFLAGS" ; then 12814 # a loop is needed to ensure we can add subdirs of existing dirs 12815 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 12816 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 12817 cf_have_incdir=yes; break 12818 fi 12819 done 12820 fi 12821 12822 if test "$cf_have_incdir" = no ; then 12823 if test "$cf_add_incdir" = /usr/local/include ; then 12824 if test "$GCC" = yes 12825 then 12826 cf_save_CPPFLAGS=$CPPFLAGS 12827 12828 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 12829 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 12830 12831 cat >"conftest.$ac_ext" <<_ACEOF 12832#line 12829 "configure" 12833#include "confdefs.h" 12834#include <stdio.h> 12835int 12836main (void) 12837{ 12838printf("Hello") 12839 ; 12840 return 0; 12841} 12842_ACEOF 12843rm -f "conftest.$ac_objext" 12844if { (eval echo "$as_me:12841: \"$ac_compile\"") >&5 12845 (eval $ac_compile) 2>&5 12846 ac_status=$? 12847 echo "$as_me:12844: \$? = $ac_status" >&5 12848 (exit "$ac_status"); } && 12849 { ac_try='test -s "conftest.$ac_objext"' 12850 { (eval echo "$as_me:12847: \"$ac_try\"") >&5 12851 (eval $ac_try) 2>&5 12852 ac_status=$? 12853 echo "$as_me:12850: \$? = $ac_status" >&5 12854 (exit "$ac_status"); }; }; then 12855 : 12856else 12857 echo "$as_me: failed program was:" >&5 12858cat "conftest.$ac_ext" >&5 12859cf_have_incdir=yes 12860fi 12861rm -f "conftest.$ac_objext" "conftest.$ac_ext" 12862 CPPFLAGS=$cf_save_CPPFLAGS 12863 fi 12864 fi 12865 fi 12866 12867 if test "$cf_have_incdir" = no ; then 12868 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 12869 12870echo "${as_me:-configure}:12867: testing adding $cf_add_incdir to include-path ..." 1>&5 12871 12872 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 12873 12874 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 12875 test "$cf_top_incdir" = "$cf_add_incdir" && break 12876 cf_add_incdir="$cf_top_incdir" 12877 else 12878 break 12879 fi 12880 else 12881 break 12882 fi 12883 done 12884 done 12885fi 12886 12887if test -n "$cf_cv_library_path_utf8" ; then 12888 for cf_add_libdir in $cf_cv_library_path_utf8 12889 do 12890 if test "$cf_add_libdir" = /usr/lib ; then 12891 : 12892 elif test -d "$cf_add_libdir" 12893 then 12894 cf_have_libdir=no 12895 if test -n "$LDFLAGS$LIBS" ; then 12896 # a loop is needed to ensure we can add subdirs of existing dirs 12897 for cf_test_libdir in $LDFLAGS $LIBS ; do 12898 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 12899 cf_have_libdir=yes; break 12900 fi 12901 done 12902 fi 12903 if test "$cf_have_libdir" = no ; then 12904 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 12905 12906echo "${as_me:-configure}:12903: testing adding $cf_add_libdir to library-path ..." 1>&5 12907 12908 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 12909 fi 12910 fi 12911 done 12912fi 12913 12914cf_add_libs="$LIBS" 12915# reverse order 12916cf_add_0lib= 12917for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 12918# filter duplicates 12919for cf_add_1lib in $cf_add_0lib; do 12920 for cf_add_2lib in $cf_add_libs; do 12921 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 12922 cf_add_1lib= 12923 break 12924 fi 12925 done 12926 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 12927done 12928LIBS="$cf_add_libs" 12929 12930fi 12931 12932 if test "$cf_cv_utf8_lib" != no ; then 12933 NCURSES_LIBUTF8=1 12934 fi 12935 fi 12936 12937# This is needed on Tru64 5.0 to declare mbstate_t 12938echo "$as_me:12935: checking if we must include wchar.h to declare mbstate_t" >&5 12939echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6 12940if test "${cf_cv_mbstate_t+set}" = set; then 12941 echo $ECHO_N "(cached) $ECHO_C" >&6 12942else 12943 12944cat >"conftest.$ac_ext" <<_ACEOF 12945#line 12942 "configure" 12946#include "confdefs.h" 12947 12948#include <stdlib.h> 12949#include <stdarg.h> 12950#include <stdio.h> 12951#ifdef HAVE_LIBUTF8_H 12952#include <libutf8.h> 12953#endif 12954int 12955main (void) 12956{ 12957mbstate_t state 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962rm -f "conftest.$ac_objext" 12963if { (eval echo "$as_me:12960: \"$ac_compile\"") >&5 12964 (eval $ac_compile) 2>&5 12965 ac_status=$? 12966 echo "$as_me:12963: \$? = $ac_status" >&5 12967 (exit "$ac_status"); } && 12968 { ac_try='test -s "conftest.$ac_objext"' 12969 { (eval echo "$as_me:12966: \"$ac_try\"") >&5 12970 (eval $ac_try) 2>&5 12971 ac_status=$? 12972 echo "$as_me:12969: \$? = $ac_status" >&5 12973 (exit "$ac_status"); }; }; then 12974 cf_cv_mbstate_t=no 12975else 12976 echo "$as_me: failed program was:" >&5 12977cat "conftest.$ac_ext" >&5 12978cat >"conftest.$ac_ext" <<_ACEOF 12979#line 12976 "configure" 12980#include "confdefs.h" 12981 12982#include <stdlib.h> 12983#include <stdarg.h> 12984#include <stdio.h> 12985#include <wchar.h> 12986#ifdef HAVE_LIBUTF8_H 12987#include <libutf8.h> 12988#endif 12989int 12990main (void) 12991{ 12992mbstate_t value 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997rm -f "conftest.$ac_objext" 12998if { (eval echo "$as_me:12995: \"$ac_compile\"") >&5 12999 (eval $ac_compile) 2>&5 13000 ac_status=$? 13001 echo "$as_me:12998: \$? = $ac_status" >&5 13002 (exit "$ac_status"); } && 13003 { ac_try='test -s "conftest.$ac_objext"' 13004 { (eval echo "$as_me:13001: \"$ac_try\"") >&5 13005 (eval $ac_try) 2>&5 13006 ac_status=$? 13007 echo "$as_me:13004: \$? = $ac_status" >&5 13008 (exit "$ac_status"); }; }; then 13009 cf_cv_mbstate_t=yes 13010else 13011 echo "$as_me: failed program was:" >&5 13012cat "conftest.$ac_ext" >&5 13013cf_cv_mbstate_t=unknown 13014fi 13015rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13016fi 13017rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13018fi 13019echo "$as_me:13016: result: $cf_cv_mbstate_t" >&5 13020echo "${ECHO_T}$cf_cv_mbstate_t" >&6 13021 13022if test "$cf_cv_mbstate_t" = yes ; then 13023 13024cat >>confdefs.h <<\EOF 13025#define NEED_WCHAR_H 1 13026EOF 13027 13028 NEED_WCHAR_H=1 13029fi 13030 13031# if we do not find mbstate_t in either place, use substitution to provide a fallback. 13032if test "$cf_cv_mbstate_t" = unknown ; then 13033 NCURSES_MBSTATE_T=1 13034fi 13035 13036# This is needed on Tru64 5.0 to declare wchar_t 13037echo "$as_me:13034: checking if we must include wchar.h to declare wchar_t" >&5 13038echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6 13039if test "${cf_cv_wchar_t+set}" = set; then 13040 echo $ECHO_N "(cached) $ECHO_C" >&6 13041else 13042 13043cat >"conftest.$ac_ext" <<_ACEOF 13044#line 13041 "configure" 13045#include "confdefs.h" 13046 13047#include <stdlib.h> 13048#include <stdarg.h> 13049#include <stdio.h> 13050#ifdef HAVE_LIBUTF8_H 13051#include <libutf8.h> 13052#endif 13053int 13054main (void) 13055{ 13056wchar_t state 13057 ; 13058 return 0; 13059} 13060_ACEOF 13061rm -f "conftest.$ac_objext" 13062if { (eval echo "$as_me:13059: \"$ac_compile\"") >&5 13063 (eval $ac_compile) 2>&5 13064 ac_status=$? 13065 echo "$as_me:13062: \$? = $ac_status" >&5 13066 (exit "$ac_status"); } && 13067 { ac_try='test -s "conftest.$ac_objext"' 13068 { (eval echo "$as_me:13065: \"$ac_try\"") >&5 13069 (eval $ac_try) 2>&5 13070 ac_status=$? 13071 echo "$as_me:13068: \$? = $ac_status" >&5 13072 (exit "$ac_status"); }; }; then 13073 cf_cv_wchar_t=no 13074else 13075 echo "$as_me: failed program was:" >&5 13076cat "conftest.$ac_ext" >&5 13077cat >"conftest.$ac_ext" <<_ACEOF 13078#line 13075 "configure" 13079#include "confdefs.h" 13080 13081#include <stdlib.h> 13082#include <stdarg.h> 13083#include <stdio.h> 13084#include <wchar.h> 13085#ifdef HAVE_LIBUTF8_H 13086#include <libutf8.h> 13087#endif 13088int 13089main (void) 13090{ 13091wchar_t value 13092 ; 13093 return 0; 13094} 13095_ACEOF 13096rm -f "conftest.$ac_objext" 13097if { (eval echo "$as_me:13094: \"$ac_compile\"") >&5 13098 (eval $ac_compile) 2>&5 13099 ac_status=$? 13100 echo "$as_me:13097: \$? = $ac_status" >&5 13101 (exit "$ac_status"); } && 13102 { ac_try='test -s "conftest.$ac_objext"' 13103 { (eval echo "$as_me:13100: \"$ac_try\"") >&5 13104 (eval $ac_try) 2>&5 13105 ac_status=$? 13106 echo "$as_me:13103: \$? = $ac_status" >&5 13107 (exit "$ac_status"); }; }; then 13108 cf_cv_wchar_t=yes 13109else 13110 echo "$as_me: failed program was:" >&5 13111cat "conftest.$ac_ext" >&5 13112cf_cv_wchar_t=unknown 13113fi 13114rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13115fi 13116rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13117fi 13118echo "$as_me:13115: result: $cf_cv_wchar_t" >&5 13119echo "${ECHO_T}$cf_cv_wchar_t" >&6 13120 13121if test "$cf_cv_wchar_t" = yes ; then 13122 13123cat >>confdefs.h <<\EOF 13124#define NEED_WCHAR_H 1 13125EOF 13126 13127 NEED_WCHAR_H=1 13128fi 13129 13130# if we do not find wchar_t in either place, use substitution to provide a fallback. 13131if test "$cf_cv_wchar_t" = unknown ; then 13132 NCURSES_WCHAR_T=1 13133fi 13134 13135# if we find wchar_t in either place, use substitution to provide a fallback. 13136if test "$cf_cv_wchar_t" != unknown ; then 13137 NCURSES_OK_WCHAR_T=1 13138fi 13139 13140# This is needed on Tru64 5.0 to declare wint_t 13141echo "$as_me:13138: checking if we must include wchar.h to declare wint_t" >&5 13142echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6 13143if test "${cf_cv_wint_t+set}" = set; then 13144 echo $ECHO_N "(cached) $ECHO_C" >&6 13145else 13146 13147cat >"conftest.$ac_ext" <<_ACEOF 13148#line 13145 "configure" 13149#include "confdefs.h" 13150 13151#include <stdlib.h> 13152#include <stdarg.h> 13153#include <stdio.h> 13154#ifdef HAVE_LIBUTF8_H 13155#include <libutf8.h> 13156#endif 13157int 13158main (void) 13159{ 13160wint_t state 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165rm -f "conftest.$ac_objext" 13166if { (eval echo "$as_me:13163: \"$ac_compile\"") >&5 13167 (eval $ac_compile) 2>&5 13168 ac_status=$? 13169 echo "$as_me:13166: \$? = $ac_status" >&5 13170 (exit "$ac_status"); } && 13171 { ac_try='test -s "conftest.$ac_objext"' 13172 { (eval echo "$as_me:13169: \"$ac_try\"") >&5 13173 (eval $ac_try) 2>&5 13174 ac_status=$? 13175 echo "$as_me:13172: \$? = $ac_status" >&5 13176 (exit "$ac_status"); }; }; then 13177 cf_cv_wint_t=no 13178else 13179 echo "$as_me: failed program was:" >&5 13180cat "conftest.$ac_ext" >&5 13181cat >"conftest.$ac_ext" <<_ACEOF 13182#line 13179 "configure" 13183#include "confdefs.h" 13184 13185#include <stdlib.h> 13186#include <stdarg.h> 13187#include <stdio.h> 13188#include <wchar.h> 13189#ifdef HAVE_LIBUTF8_H 13190#include <libutf8.h> 13191#endif 13192int 13193main (void) 13194{ 13195wint_t value 13196 ; 13197 return 0; 13198} 13199_ACEOF 13200rm -f "conftest.$ac_objext" 13201if { (eval echo "$as_me:13198: \"$ac_compile\"") >&5 13202 (eval $ac_compile) 2>&5 13203 ac_status=$? 13204 echo "$as_me:13201: \$? = $ac_status" >&5 13205 (exit "$ac_status"); } && 13206 { ac_try='test -s "conftest.$ac_objext"' 13207 { (eval echo "$as_me:13204: \"$ac_try\"") >&5 13208 (eval $ac_try) 2>&5 13209 ac_status=$? 13210 echo "$as_me:13207: \$? = $ac_status" >&5 13211 (exit "$ac_status"); }; }; then 13212 cf_cv_wint_t=yes 13213else 13214 echo "$as_me: failed program was:" >&5 13215cat "conftest.$ac_ext" >&5 13216cf_cv_wint_t=unknown 13217fi 13218rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13219fi 13220rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13221fi 13222echo "$as_me:13219: result: $cf_cv_wint_t" >&5 13223echo "${ECHO_T}$cf_cv_wint_t" >&6 13224 13225if test "$cf_cv_wint_t" = yes ; then 13226 13227cat >>confdefs.h <<\EOF 13228#define NEED_WCHAR_H 1 13229EOF 13230 13231 NEED_WCHAR_H=1 13232fi 13233 13234# if we do not find wint_t in either place, use substitution to provide a fallback. 13235if test "$cf_cv_wint_t" = unknown ; then 13236 NCURSES_WINT_T=1 13237fi 13238 13239# if we find wint_t in either place, use substitution to provide a fallback. 13240if test "$cf_cv_wint_t" != unknown ; then 13241 NCURSES_OK_WINT_T=1 13242fi 13243 13244 if test "$NCURSES_MBSTATE_T" != 0; then 13245 13246cat >>confdefs.h <<\EOF 13247#define NEED_MBSTATE_T_DEF 1 13248EOF 13249 13250 fi 13251fi 13252 13253### use option --disable-lp64 to allow long chtype 13254echo "$as_me:13251: checking whether to enable _LP64 definition in curses.h" >&5 13255echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6 13256 13257# Check whether --enable-lp64 or --disable-lp64 was given. 13258if test "${enable_lp64+set}" = set; then 13259 enableval="$enable_lp64" 13260 with_lp64=$enableval 13261else 13262 with_lp64=$cf_dft_with_lp64 13263fi; 13264echo "$as_me:13261: result: $with_lp64" >&5 13265echo "${ECHO_T}$with_lp64" >&6 13266 13267if test "x$with_lp64" = xyes ; then 13268 cf_cv_enable_lp64=1 13269else 13270 cf_cv_enable_lp64=0 13271fi 13272 13273# Check whether --enable-largefile or --disable-largefile was given. 13274if test "${enable_largefile+set}" = set; then 13275 enableval="$enable_largefile" 13276 13277fi; 13278if test "$enable_largefile" != no; then 13279 13280 echo "$as_me:13277: checking for special C compiler options needed for large files" >&5 13281echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 13282if test "${ac_cv_sys_largefile_CC+set}" = set; then 13283 echo $ECHO_N "(cached) $ECHO_C" >&6 13284else 13285 ac_cv_sys_largefile_CC=no 13286 if test "$GCC" != yes; then 13287 ac_save_CC=$CC 13288 while :; do 13289 # IRIX 6.2 and later do not support large files by default, 13290 # so use the C compiler's -n32 option if that helps. 13291 cat >"conftest.$ac_ext" <<_ACEOF 13292#line 13289 "configure" 13293#include "confdefs.h" 13294#include <sys/types.h> 13295 /* Check that off_t can represent 2**63 - 1 correctly. 13296 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13297 since some C++ compilers masquerading as C compilers 13298 incorrectly reject 9223372036854775807. */ 13299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13301 && LARGE_OFF_T % 2147483647 == 1) 13302 ? 1 : -1]; 13303int 13304main (void) 13305{ 13306 13307 ; 13308 return 0; 13309} 13310_ACEOF 13311 rm -f "conftest.$ac_objext" 13312if { (eval echo "$as_me:13309: \"$ac_compile\"") >&5 13313 (eval $ac_compile) 2>&5 13314 ac_status=$? 13315 echo "$as_me:13312: \$? = $ac_status" >&5 13316 (exit "$ac_status"); } && 13317 { ac_try='test -s "conftest.$ac_objext"' 13318 { (eval echo "$as_me:13315: \"$ac_try\"") >&5 13319 (eval $ac_try) 2>&5 13320 ac_status=$? 13321 echo "$as_me:13318: \$? = $ac_status" >&5 13322 (exit "$ac_status"); }; }; then 13323 break 13324else 13325 echo "$as_me: failed program was:" >&5 13326cat "conftest.$ac_ext" >&5 13327fi 13328rm -f "conftest.$ac_objext" 13329 CC="$CC -n32" 13330 rm -f "conftest.$ac_objext" 13331if { (eval echo "$as_me:13328: \"$ac_compile\"") >&5 13332 (eval $ac_compile) 2>&5 13333 ac_status=$? 13334 echo "$as_me:13331: \$? = $ac_status" >&5 13335 (exit "$ac_status"); } && 13336 { ac_try='test -s "conftest.$ac_objext"' 13337 { (eval echo "$as_me:13334: \"$ac_try\"") >&5 13338 (eval $ac_try) 2>&5 13339 ac_status=$? 13340 echo "$as_me:13337: \$? = $ac_status" >&5 13341 (exit "$ac_status"); }; }; then 13342 ac_cv_sys_largefile_CC=' -n32'; break 13343else 13344 echo "$as_me: failed program was:" >&5 13345cat "conftest.$ac_ext" >&5 13346fi 13347rm -f "conftest.$ac_objext" 13348 break 13349 done 13350 CC=$ac_save_CC 13351 rm -f "conftest.$ac_ext" 13352 fi 13353fi 13354echo "$as_me:13351: result: $ac_cv_sys_largefile_CC" >&5 13355echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 13356 if test "$ac_cv_sys_largefile_CC" != no; then 13357 CC=$CC$ac_cv_sys_largefile_CC 13358 fi 13359 13360 echo "$as_me:13357: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13361echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 13362if test "${ac_cv_sys_file_offset_bits+set}" = set; then 13363 echo $ECHO_N "(cached) $ECHO_C" >&6 13364else 13365 while :; do 13366 ac_cv_sys_file_offset_bits=no 13367 cat >"conftest.$ac_ext" <<_ACEOF 13368#line 13365 "configure" 13369#include "confdefs.h" 13370#include <sys/types.h> 13371 /* Check that off_t can represent 2**63 - 1 correctly. 13372 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13373 since some C++ compilers masquerading as C compilers 13374 incorrectly reject 9223372036854775807. */ 13375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13377 && LARGE_OFF_T % 2147483647 == 1) 13378 ? 1 : -1]; 13379int 13380main (void) 13381{ 13382 13383 ; 13384 return 0; 13385} 13386_ACEOF 13387rm -f "conftest.$ac_objext" 13388if { (eval echo "$as_me:13385: \"$ac_compile\"") >&5 13389 (eval $ac_compile) 2>&5 13390 ac_status=$? 13391 echo "$as_me:13388: \$? = $ac_status" >&5 13392 (exit "$ac_status"); } && 13393 { ac_try='test -s "conftest.$ac_objext"' 13394 { (eval echo "$as_me:13391: \"$ac_try\"") >&5 13395 (eval $ac_try) 2>&5 13396 ac_status=$? 13397 echo "$as_me:13394: \$? = $ac_status" >&5 13398 (exit "$ac_status"); }; }; then 13399 break 13400else 13401 echo "$as_me: failed program was:" >&5 13402cat "conftest.$ac_ext" >&5 13403fi 13404rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13405 cat >"conftest.$ac_ext" <<_ACEOF 13406#line 13403 "configure" 13407#include "confdefs.h" 13408#define _FILE_OFFSET_BITS 64 13409#include <sys/types.h> 13410 /* Check that off_t can represent 2**63 - 1 correctly. 13411 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13412 since some C++ compilers masquerading as C compilers 13413 incorrectly reject 9223372036854775807. */ 13414#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13416 && LARGE_OFF_T % 2147483647 == 1) 13417 ? 1 : -1]; 13418int 13419main (void) 13420{ 13421 13422 ; 13423 return 0; 13424} 13425_ACEOF 13426rm -f "conftest.$ac_objext" 13427if { (eval echo "$as_me:13424: \"$ac_compile\"") >&5 13428 (eval $ac_compile) 2>&5 13429 ac_status=$? 13430 echo "$as_me:13427: \$? = $ac_status" >&5 13431 (exit "$ac_status"); } && 13432 { ac_try='test -s "conftest.$ac_objext"' 13433 { (eval echo "$as_me:13430: \"$ac_try\"") >&5 13434 (eval $ac_try) 2>&5 13435 ac_status=$? 13436 echo "$as_me:13433: \$? = $ac_status" >&5 13437 (exit "$ac_status"); }; }; then 13438 ac_cv_sys_file_offset_bits=64; break 13439else 13440 echo "$as_me: failed program was:" >&5 13441cat "conftest.$ac_ext" >&5 13442fi 13443rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13444 break 13445done 13446fi 13447echo "$as_me:13444: result: $ac_cv_sys_file_offset_bits" >&5 13448echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 13449if test "$ac_cv_sys_file_offset_bits" != no; then 13450 13451cat >>confdefs.h <<EOF 13452#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13453EOF 13454 13455fi 13456rm -rf conftest* 13457 echo "$as_me:13454: checking for _LARGE_FILES value needed for large files" >&5 13458echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 13459if test "${ac_cv_sys_large_files+set}" = set; then 13460 echo $ECHO_N "(cached) $ECHO_C" >&6 13461else 13462 while :; do 13463 ac_cv_sys_large_files=no 13464 cat >"conftest.$ac_ext" <<_ACEOF 13465#line 13462 "configure" 13466#include "confdefs.h" 13467#include <sys/types.h> 13468 /* Check that off_t can represent 2**63 - 1 correctly. 13469 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13470 since some C++ compilers masquerading as C compilers 13471 incorrectly reject 9223372036854775807. */ 13472#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13474 && LARGE_OFF_T % 2147483647 == 1) 13475 ? 1 : -1]; 13476int 13477main (void) 13478{ 13479 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484rm -f "conftest.$ac_objext" 13485if { (eval echo "$as_me:13482: \"$ac_compile\"") >&5 13486 (eval $ac_compile) 2>&5 13487 ac_status=$? 13488 echo "$as_me:13485: \$? = $ac_status" >&5 13489 (exit "$ac_status"); } && 13490 { ac_try='test -s "conftest.$ac_objext"' 13491 { (eval echo "$as_me:13488: \"$ac_try\"") >&5 13492 (eval $ac_try) 2>&5 13493 ac_status=$? 13494 echo "$as_me:13491: \$? = $ac_status" >&5 13495 (exit "$ac_status"); }; }; then 13496 break 13497else 13498 echo "$as_me: failed program was:" >&5 13499cat "conftest.$ac_ext" >&5 13500fi 13501rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13502 cat >"conftest.$ac_ext" <<_ACEOF 13503#line 13500 "configure" 13504#include "confdefs.h" 13505#define _LARGE_FILES 1 13506#include <sys/types.h> 13507 /* Check that off_t can represent 2**63 - 1 correctly. 13508 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13509 since some C++ compilers masquerading as C compilers 13510 incorrectly reject 9223372036854775807. */ 13511#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13513 && LARGE_OFF_T % 2147483647 == 1) 13514 ? 1 : -1]; 13515int 13516main (void) 13517{ 13518 13519 ; 13520 return 0; 13521} 13522_ACEOF 13523rm -f "conftest.$ac_objext" 13524if { (eval echo "$as_me:13521: \"$ac_compile\"") >&5 13525 (eval $ac_compile) 2>&5 13526 ac_status=$? 13527 echo "$as_me:13524: \$? = $ac_status" >&5 13528 (exit "$ac_status"); } && 13529 { ac_try='test -s "conftest.$ac_objext"' 13530 { (eval echo "$as_me:13527: \"$ac_try\"") >&5 13531 (eval $ac_try) 2>&5 13532 ac_status=$? 13533 echo "$as_me:13530: \$? = $ac_status" >&5 13534 (exit "$ac_status"); }; }; then 13535 ac_cv_sys_large_files=1; break 13536else 13537 echo "$as_me: failed program was:" >&5 13538cat "conftest.$ac_ext" >&5 13539fi 13540rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13541 break 13542done 13543fi 13544echo "$as_me:13541: result: $ac_cv_sys_large_files" >&5 13545echo "${ECHO_T}$ac_cv_sys_large_files" >&6 13546if test "$ac_cv_sys_large_files" != no; then 13547 13548cat >>confdefs.h <<EOF 13549#define _LARGE_FILES $ac_cv_sys_large_files 13550EOF 13551 13552fi 13553rm -rf conftest* 13554fi 13555 13556 if test "$enable_largefile" != no ; then 13557 echo "$as_me:13554: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13558echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 13559if test "${ac_cv_sys_largefile_source+set}" = set; then 13560 echo $ECHO_N "(cached) $ECHO_C" >&6 13561else 13562 while :; do 13563 ac_cv_sys_largefile_source=no 13564 cat >"conftest.$ac_ext" <<_ACEOF 13565#line 13562 "configure" 13566#include "confdefs.h" 13567#include <stdio.h> 13568int 13569main (void) 13570{ 13571return !fseeko; 13572 ; 13573 return 0; 13574} 13575_ACEOF 13576rm -f "conftest.$ac_objext" 13577if { (eval echo "$as_me:13574: \"$ac_compile\"") >&5 13578 (eval $ac_compile) 2>&5 13579 ac_status=$? 13580 echo "$as_me:13577: \$? = $ac_status" >&5 13581 (exit "$ac_status"); } && 13582 { ac_try='test -s "conftest.$ac_objext"' 13583 { (eval echo "$as_me:13580: \"$ac_try\"") >&5 13584 (eval $ac_try) 2>&5 13585 ac_status=$? 13586 echo "$as_me:13583: \$? = $ac_status" >&5 13587 (exit "$ac_status"); }; }; then 13588 break 13589else 13590 echo "$as_me: failed program was:" >&5 13591cat "conftest.$ac_ext" >&5 13592fi 13593rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13594 cat >"conftest.$ac_ext" <<_ACEOF 13595#line 13592 "configure" 13596#include "confdefs.h" 13597#define _LARGEFILE_SOURCE 1 13598#include <stdio.h> 13599int 13600main (void) 13601{ 13602return !fseeko; 13603 ; 13604 return 0; 13605} 13606_ACEOF 13607rm -f "conftest.$ac_objext" 13608if { (eval echo "$as_me:13605: \"$ac_compile\"") >&5 13609 (eval $ac_compile) 2>&5 13610 ac_status=$? 13611 echo "$as_me:13608: \$? = $ac_status" >&5 13612 (exit "$ac_status"); } && 13613 { ac_try='test -s "conftest.$ac_objext"' 13614 { (eval echo "$as_me:13611: \"$ac_try\"") >&5 13615 (eval $ac_try) 2>&5 13616 ac_status=$? 13617 echo "$as_me:13614: \$? = $ac_status" >&5 13618 (exit "$ac_status"); }; }; then 13619 ac_cv_sys_largefile_source=1; break 13620else 13621 echo "$as_me: failed program was:" >&5 13622cat "conftest.$ac_ext" >&5 13623fi 13624rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13625 break 13626done 13627fi 13628echo "$as_me:13625: result: $ac_cv_sys_largefile_source" >&5 13629echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 13630if test "$ac_cv_sys_largefile_source" != no; then 13631 13632cat >>confdefs.h <<EOF 13633#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13634EOF 13635 13636fi 13637rm -rf conftest* 13638 13639# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13640# in glibc 2.1.3, but that breaks too many other things. 13641# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13642echo "$as_me:13639: checking for fseeko" >&5 13643echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 13644if test "${ac_cv_func_fseeko+set}" = set; then 13645 echo $ECHO_N "(cached) $ECHO_C" >&6 13646else 13647 cat >"conftest.$ac_ext" <<_ACEOF 13648#line 13645 "configure" 13649#include "confdefs.h" 13650#include <stdio.h> 13651int 13652main (void) 13653{ 13654return fseeko && fseeko (stdin, 0, 0); 13655 ; 13656 return 0; 13657} 13658_ACEOF 13659rm -f "conftest.$ac_objext" "conftest$ac_exeext" 13660if { (eval echo "$as_me:13657: \"$ac_link\"") >&5 13661 (eval $ac_link) 2>&5 13662 ac_status=$? 13663 echo "$as_me:13660: \$? = $ac_status" >&5 13664 (exit "$ac_status"); } && 13665 { ac_try='test -s "conftest$ac_exeext"' 13666 { (eval echo "$as_me:13663: \"$ac_try\"") >&5 13667 (eval $ac_try) 2>&5 13668 ac_status=$? 13669 echo "$as_me:13666: \$? = $ac_status" >&5 13670 (exit "$ac_status"); }; }; then 13671 ac_cv_func_fseeko=yes 13672else 13673 echo "$as_me: failed program was:" >&5 13674cat "conftest.$ac_ext" >&5 13675ac_cv_func_fseeko=no 13676fi 13677rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 13678fi 13679echo "$as_me:13676: result: $ac_cv_func_fseeko" >&5 13680echo "${ECHO_T}$ac_cv_func_fseeko" >&6 13681if test $ac_cv_func_fseeko = yes; then 13682 13683cat >>confdefs.h <<\EOF 13684#define HAVE_FSEEKO 1 13685EOF 13686 13687fi 13688 13689 # Normally we would collect these definitions in the config.h, 13690 # but (like _XOPEN_SOURCE), some environments rely on having these 13691 # defined before any of the system headers are included. Another 13692 # case comes up with C++, e.g., on AIX the compiler compiles the 13693 # header files by themselves before looking at the body files it is 13694 # told to compile. For ncurses, those header files do not include 13695 # the config.h 13696 if test "$ac_cv_sys_large_files" != no 13697 then 13698 13699 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13700 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES" 13701 13702 fi 13703 if test "$ac_cv_sys_largefile_source" != no 13704 then 13705 13706 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13707 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE" 13708 13709 fi 13710 if test "$ac_cv_sys_file_offset_bits" != no 13711 then 13712 13713 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 13714 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 13715 13716 fi 13717 13718 echo "$as_me:13715: checking whether to use struct dirent64" >&5 13719echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 13720if test "${cf_cv_struct_dirent64+set}" = set; then 13721 echo $ECHO_N "(cached) $ECHO_C" >&6 13722else 13723 13724 cat >"conftest.$ac_ext" <<_ACEOF 13725#line 13722 "configure" 13726#include "confdefs.h" 13727 13728#pragma GCC diagnostic error "-Wincompatible-pointer-types" 13729#include <sys/types.h> 13730#include <dirent.h> 13731 13732int 13733main (void) 13734{ 13735 13736 /* if transitional largefile support is setup, this is true */ 13737 extern struct dirent64 * readdir(DIR *); 13738 struct dirent64 *x = readdir((DIR *)0); 13739 struct dirent *y = readdir((DIR *)0); 13740 int z = x - y; 13741 (void)z; 13742 13743 ; 13744 return 0; 13745} 13746_ACEOF 13747rm -f "conftest.$ac_objext" 13748if { (eval echo "$as_me:13745: \"$ac_compile\"") >&5 13749 (eval $ac_compile) 2>&5 13750 ac_status=$? 13751 echo "$as_me:13748: \$? = $ac_status" >&5 13752 (exit "$ac_status"); } && 13753 { ac_try='test -s "conftest.$ac_objext"' 13754 { (eval echo "$as_me:13751: \"$ac_try\"") >&5 13755 (eval $ac_try) 2>&5 13756 ac_status=$? 13757 echo "$as_me:13754: \$? = $ac_status" >&5 13758 (exit "$ac_status"); }; }; then 13759 cf_cv_struct_dirent64=yes 13760else 13761 echo "$as_me: failed program was:" >&5 13762cat "conftest.$ac_ext" >&5 13763cf_cv_struct_dirent64=no 13764fi 13765rm -f "conftest.$ac_objext" "conftest.$ac_ext" 13766 13767fi 13768echo "$as_me:13765: result: $cf_cv_struct_dirent64" >&5 13769echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 13770 test "$cf_cv_struct_dirent64" = yes && 13771cat >>confdefs.h <<\EOF 13772#define HAVE_STRUCT_DIRENT64 1 13773EOF 13774 13775 fi 13776 13777### use option --disable-tparm-varargs to make tparm() conform to X/Open 13778echo "$as_me:13775: checking if you want tparm not to use X/Open fixed-parameter list" >&5 13779echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6 13780 13781# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given. 13782if test "${enable_tparm_varargs+set}" = set; then 13783 enableval="$enable_tparm_varargs" 13784 with_tparm_varargs=$enableval 13785else 13786 with_tparm_varargs=yes 13787fi; 13788echo "$as_me:13785: result: $with_tparm_varargs" >&5 13789echo "${ECHO_T}$with_tparm_varargs" >&6 13790NCURSES_TPARM_VARARGS=0 13791test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1 13792 13793### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw 13794if test "$with_ticlib" != no ; then 13795echo "$as_me:13792: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5 13796echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6 13797 13798# Check whether --enable-tic-depends or --disable-tic-depends was given. 13799if test "${enable_tic_depends+set}" = set; then 13800 enableval="$enable_tic_depends" 13801 with_tic_depends=$enableval 13802else 13803 with_tic_depends=yes 13804fi; 13805echo "$as_me:13802: result: $with_tic_depends" >&5 13806echo "${ECHO_T}$with_tic_depends" >&6 13807else 13808 with_tic_depends=no 13809fi 13810 13811### use option --enable-wattr-macros to enable wattr* macros in curses.h 13812echo "$as_me:13809: checking if you want to enable wattr* macros" >&5 13813echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6 13814 13815# Check whether --enable-wattr-macros or --disable-wattr-macros was given. 13816if test "${enable_wattr_macros+set}" = set; then 13817 enableval="$enable_wattr_macros" 13818 with_wattr_macros=$enableval 13819else 13820 with_wattr_macros=no 13821fi; 13822if [ "x$with_wattr_macros" != xyes ]; then 13823 NCURSES_WATTR_MACROS=0 13824 echo "$as_me:13821: result: no" >&5 13825echo "${ECHO_T}no" >&6 13826else 13827 NCURSES_WATTR_MACROS=1 13828 echo "$as_me:13825: result: yes" >&5 13829echo "${ECHO_T}yes" >&6 13830fi 13831 13832echo "$as_me:13829: checking for X11 rgb file" >&5 13833echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6 13834 13835# Check whether --with-x11-rgb or --without-x11-rgb was given. 13836if test "${with_x11_rgb+set}" = set; then 13837 withval="$with_x11_rgb" 13838 RGB_PATH=$withval 13839else 13840 RGB_PATH=auto 13841fi; 13842 13843if test "x$RGB_PATH" = xauto 13844then 13845 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt' 13846 for cf_path in \ 13847 /opt/local/share/X11/rgb.txt \ 13848 /opt/X11/share/X11/rgb.txt \ 13849 /usr/share/X11/rgb.txt \ 13850 /usr/X11/share/X11/rgb.txt \ 13851 /usr/X11/lib/X11/rgb.txt \ 13852 /usr/lib/X11/rgb.txt \ 13853 /etc/X11/rgb.txt \ 13854 /usr/pkg/lib/X11/rgb.txt \ 13855 /usr/X11R7/lib/X11/rgb.txt \ 13856 /usr/X11R6/lib/X11/rgb.txt \ 13857 /usr/X11R5/lib/X11/rgb.txt \ 13858 /usr/X11R4/lib/X11/rgb.txt \ 13859 /usr/local/lib/X11/rgb.txt \ 13860 /usr/local/share/X11/rgb.txt \ 13861 /usr/lib64/X11/rgb.txt 13862 do 13863 if test -f "$cf_path" ; then 13864 RGB_PATH="$cf_path" 13865 break 13866 fi 13867 done 13868else 13869 cf_path=$RGB_PATH 13870 13871if test "x$prefix" != xNONE; then 13872 cf_path_syntax="$prefix" 13873else 13874 cf_path_syntax="$ac_default_prefix" 13875fi 13876 13877case ".$cf_path" in 13878(.\$\(*\)*|.\'*\'*) 13879 ;; 13880(..|./*|.\\*) 13881 ;; 13882(.[a-zA-Z]:[\\/]*) # OS/2 EMX 13883 ;; 13884(.\$\{*prefix\}*|.\$\{*dir\}*) 13885 eval cf_path="$cf_path" 13886 case ".$cf_path" in 13887 (.NONE/*) 13888 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 13889 ;; 13890 esac 13891 ;; 13892(.no|.NONE/*) 13893 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` 13894 ;; 13895(*) 13896 { { echo "$as_me:13893: error: expected a pathname, not \"$cf_path\"" >&5 13897echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} 13898 { (exit 1); exit 1; }; } 13899 ;; 13900esac 13901 13902fi 13903 13904echo "$as_me:13901: result: $RGB_PATH" >&5 13905echo "${ECHO_T}$RGB_PATH" >&6 13906 13907cat >>confdefs.h <<EOF 13908#define RGB_PATH "$cf_path" 13909EOF 13910 13911no_x11_rgb= 13912if test "$RGB_PATH" = no 13913then 13914 no_x11_rgb="#" 13915fi 13916 13917### use option --with-bool to override bool's type 13918echo "$as_me:13915: checking for type of bool" >&5 13919echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 13920 13921# Check whether --with-bool or --without-bool was given. 13922if test "${with_bool+set}" = set; then 13923 withval="$with_bool" 13924 NCURSES_BOOL="$withval" 13925else 13926 NCURSES_BOOL=auto 13927fi; 13928echo "$as_me:13925: result: $NCURSES_BOOL" >&5 13929echo "${ECHO_T}$NCURSES_BOOL" >&6 13930 13931echo "$as_me:13928: checking for alternate terminal capabilities file" >&5 13932echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6 13933 13934# Check whether --with-caps or --without-caps was given. 13935if test "${with_caps+set}" = set; then 13936 withval="$with_caps" 13937 TERMINFO_CAPS=Caps.$withval 13938else 13939 TERMINFO_CAPS=Caps 13940fi; 13941test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps 13942echo "$as_me:13939: result: $TERMINFO_CAPS" >&5 13943echo "${ECHO_T}$TERMINFO_CAPS" >&6 13944 13945### use option --with-chtype to override chtype's type 13946echo "$as_me:13943: checking for type of chtype" >&5 13947echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 13948 13949# Check whether --with-chtype or --without-chtype was given. 13950if test "${with_chtype+set}" = set; then 13951 withval="$with_chtype" 13952 NCURSES_CHTYPE="$withval" 13953else 13954 NCURSES_CHTYPE=$cf_dft_chtype 13955fi; 13956echo "$as_me:13953: result: $NCURSES_CHTYPE" >&5 13957echo "${ECHO_T}$NCURSES_CHTYPE" >&6 13958 13959### use option --with-ospeed to override ospeed's type 13960echo "$as_me:13957: checking for type of ospeed" >&5 13961echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6 13962 13963# Check whether --with-ospeed or --without-ospeed was given. 13964if test "${with_ospeed+set}" = set; then 13965 withval="$with_ospeed" 13966 NCURSES_OSPEED="$withval" 13967else 13968 NCURSES_OSPEED=short 13969fi; 13970echo "$as_me:13967: result: $NCURSES_OSPEED" >&5 13971echo "${ECHO_T}$NCURSES_OSPEED" >&6 13972 13973### use option --with-mmask-t to override mmask_t's type 13974echo "$as_me:13971: checking for type of mmask_t" >&5 13975echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6 13976 13977# Check whether --with-mmask-t or --without-mmask-t was given. 13978if test "${with_mmask_t+set}" = set; then 13979 withval="$with_mmask_t" 13980 NCURSES_MMASK_T="$withval" 13981else 13982 NCURSES_MMASK_T=$cf_dft_mmask_t 13983fi; 13984echo "$as_me:13981: result: $NCURSES_MMASK_T" >&5 13985echo "${ECHO_T}$NCURSES_MMASK_T" >&6 13986 13987### use option --with-ccharw-max to override CCHARW_MAX size 13988echo "$as_me:13985: checking for size CCHARW_MAX" >&5 13989echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6 13990 13991# Check whether --with-ccharw-max or --without-ccharw-max was given. 13992if test "${with_ccharw_max+set}" = set; then 13993 withval="$with_ccharw_max" 13994 NCURSES_CCHARW_MAX="$withval" 13995else 13996 NCURSES_CCHARW_MAX=5 13997fi; 13998echo "$as_me:13995: result: $NCURSES_CCHARW_MAX" >&5 13999echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6 14000 14001echo "$as_me:13998: checking for ANSI C header files" >&5 14002echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 14003if test "${ac_cv_header_stdc+set}" = set; then 14004 echo $ECHO_N "(cached) $ECHO_C" >&6 14005else 14006 cat >"conftest.$ac_ext" <<_ACEOF 14007#line 14004 "configure" 14008#include "confdefs.h" 14009#include <stdlib.h> 14010#include <stdarg.h> 14011#include <string.h> 14012#include <float.h> 14013 14014_ACEOF 14015if { (eval echo "$as_me:14012: \"$ac_cpp "conftest.$ac_ext"\"") >&5 14016 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 14017 ac_status=$? 14018 $EGREP -v '^ *\+' conftest.er1 >conftest.err 14019 rm -f conftest.er1 14020 cat conftest.err >&5 14021 echo "$as_me:14018: \$? = $ac_status" >&5 14022 (exit "$ac_status"); } >/dev/null; then 14023 if test -s conftest.err; then 14024 ac_cpp_err=$ac_c_preproc_warn_flag 14025 else 14026 ac_cpp_err= 14027 fi 14028else 14029 ac_cpp_err=yes 14030fi 14031if test -z "$ac_cpp_err"; then 14032 ac_cv_header_stdc=yes 14033else 14034 echo "$as_me: failed program was:" >&5 14035 cat "conftest.$ac_ext" >&5 14036 ac_cv_header_stdc=no 14037fi 14038rm -f conftest.err "conftest.$ac_ext" 14039 14040if test $ac_cv_header_stdc = yes; then 14041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14042 cat >"conftest.$ac_ext" <<_ACEOF 14043#line 14040 "configure" 14044#include "confdefs.h" 14045#include <string.h> 14046 14047_ACEOF 14048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14049 $EGREP "memchr" >/dev/null 2>&1; then 14050 : 14051else 14052 ac_cv_header_stdc=no 14053fi 14054rm -rf conftest* 14055 14056fi 14057 14058if test $ac_cv_header_stdc = yes; then 14059 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14060 cat >"conftest.$ac_ext" <<_ACEOF 14061#line 14058 "configure" 14062#include "confdefs.h" 14063#include <stdlib.h> 14064 14065_ACEOF 14066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14067 $EGREP "free" >/dev/null 2>&1; then 14068 : 14069else 14070 ac_cv_header_stdc=no 14071fi 14072rm -rf conftest* 14073 14074fi 14075 14076if test $ac_cv_header_stdc = yes; then 14077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14078 if test "$cross_compiling" = yes; then 14079 : 14080else 14081 cat >"conftest.$ac_ext" <<_ACEOF 14082#line 14079 "configure" 14083#include "confdefs.h" 14084#include <ctype.h> 14085#if ((' ' & 0x0FF) == 0x020) 14086# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14087# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14088#else 14089# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 14090 || ('j' <= (c) && (c) <= 'r') \ 14091 || ('s' <= (c) && (c) <= 'z')) 14092# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14093#endif 14094 14095#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14096int 14097main (void) 14098{ 14099 int i; 14100 for (i = 0; i < 256; i++) 14101 if (XOR (islower (i), ISLOWER (i)) 14102 || toupper (i) != TOUPPER (i)) 14103 $ac_main_return(2); 14104 $ac_main_return (0); 14105} 14106_ACEOF 14107rm -f "conftest$ac_exeext" 14108if { (eval echo "$as_me:14105: \"$ac_link\"") >&5 14109 (eval $ac_link) 2>&5 14110 ac_status=$? 14111 echo "$as_me:14108: \$? = $ac_status" >&5 14112 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 14113 { (eval echo "$as_me:14110: \"$ac_try\"") >&5 14114 (eval $ac_try) 2>&5 14115 ac_status=$? 14116 echo "$as_me:14113: \$? = $ac_status" >&5 14117 (exit "$ac_status"); }; }; then 14118 : 14119else 14120 echo "$as_me: program exited with status $ac_status" >&5 14121echo "$as_me: failed program was:" >&5 14122cat "conftest.$ac_ext" >&5 14123ac_cv_header_stdc=no 14124fi 14125rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 14126fi 14127fi 14128fi 14129echo "$as_me:14126: result: $ac_cv_header_stdc" >&5 14130echo "${ECHO_T}$ac_cv_header_stdc" >&6 14131if test $ac_cv_header_stdc = yes; then 14132 14133cat >>confdefs.h <<\EOF 14134#define STDC_HEADERS 1 14135EOF 14136 14137fi 14138 14139# On IRIX 5.3, sys/types and inttypes.h are conflicting. 14140 14141for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 14142 inttypes.h stdint.h unistd.h 14143do 14144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14145echo "$as_me:14142: checking for $ac_header" >&5 14146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14147if eval "test \"\${$as_ac_Header+set}\" = set"; then 14148 echo $ECHO_N "(cached) $ECHO_C" >&6 14149else 14150 cat >"conftest.$ac_ext" <<_ACEOF 14151#line 14148 "configure" 14152#include "confdefs.h" 14153$ac_includes_default 14154#include <$ac_header> 14155_ACEOF 14156rm -f "conftest.$ac_objext" 14157if { (eval echo "$as_me:14154: \"$ac_compile\"") >&5 14158 (eval $ac_compile) 2>&5 14159 ac_status=$? 14160 echo "$as_me:14157: \$? = $ac_status" >&5 14161 (exit "$ac_status"); } && 14162 { ac_try='test -s "conftest.$ac_objext"' 14163 { (eval echo "$as_me:14160: \"$ac_try\"") >&5 14164 (eval $ac_try) 2>&5 14165 ac_status=$? 14166 echo "$as_me:14163: \$? = $ac_status" >&5 14167 (exit "$ac_status"); }; }; then 14168 eval "$as_ac_Header=yes" 14169else 14170 echo "$as_me: failed program was:" >&5 14171cat "conftest.$ac_ext" >&5 14172eval "$as_ac_Header=no" 14173fi 14174rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14175fi 14176echo "$as_me:14173: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 14177echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 14178if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 14179 cat >>confdefs.h <<EOF 14180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14181EOF 14182 14183fi 14184done 14185 14186echo "$as_me:14183: checking for signed char" >&5 14187echo $ECHO_N "checking for signed char... $ECHO_C" >&6 14188if test "${ac_cv_type_signed_char+set}" = set; then 14189 echo $ECHO_N "(cached) $ECHO_C" >&6 14190else 14191 cat >"conftest.$ac_ext" <<_ACEOF 14192#line 14189 "configure" 14193#include "confdefs.h" 14194$ac_includes_default 14195int 14196main (void) 14197{ 14198if ((signed char *) 0) 14199 return 0; 14200if (sizeof (signed char)) 14201 return 0; 14202 ; 14203 return 0; 14204} 14205_ACEOF 14206rm -f "conftest.$ac_objext" 14207if { (eval echo "$as_me:14204: \"$ac_compile\"") >&5 14208 (eval $ac_compile) 2>&5 14209 ac_status=$? 14210 echo "$as_me:14207: \$? = $ac_status" >&5 14211 (exit "$ac_status"); } && 14212 { ac_try='test -s "conftest.$ac_objext"' 14213 { (eval echo "$as_me:14210: \"$ac_try\"") >&5 14214 (eval $ac_try) 2>&5 14215 ac_status=$? 14216 echo "$as_me:14213: \$? = $ac_status" >&5 14217 (exit "$ac_status"); }; }; then 14218 ac_cv_type_signed_char=yes 14219else 14220 echo "$as_me: failed program was:" >&5 14221cat "conftest.$ac_ext" >&5 14222ac_cv_type_signed_char=no 14223fi 14224rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14225fi 14226echo "$as_me:14223: result: $ac_cv_type_signed_char" >&5 14227echo "${ECHO_T}$ac_cv_type_signed_char" >&6 14228 14229echo "$as_me:14226: checking size of signed char" >&5 14230echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 14231if test "${ac_cv_sizeof_signed_char+set}" = set; then 14232 echo $ECHO_N "(cached) $ECHO_C" >&6 14233else 14234 if test "$ac_cv_type_signed_char" = yes; then 14235 if test "$cross_compiling" = yes; then 14236 # Depending upon the size, compute the lo and hi bounds. 14237cat >"conftest.$ac_ext" <<_ACEOF 14238#line 14235 "configure" 14239#include "confdefs.h" 14240$ac_includes_default 14241int 14242main (void) 14243{ 14244int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)] 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249rm -f "conftest.$ac_objext" 14250if { (eval echo "$as_me:14247: \"$ac_compile\"") >&5 14251 (eval $ac_compile) 2>&5 14252 ac_status=$? 14253 echo "$as_me:14250: \$? = $ac_status" >&5 14254 (exit "$ac_status"); } && 14255 { ac_try='test -s "conftest.$ac_objext"' 14256 { (eval echo "$as_me:14253: \"$ac_try\"") >&5 14257 (eval $ac_try) 2>&5 14258 ac_status=$? 14259 echo "$as_me:14256: \$? = $ac_status" >&5 14260 (exit "$ac_status"); }; }; then 14261 ac_lo=0 ac_mid=0 14262 while :; do 14263 cat >"conftest.$ac_ext" <<_ACEOF 14264#line 14261 "configure" 14265#include "confdefs.h" 14266$ac_includes_default 14267int 14268main (void) 14269{ 14270int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 14271 ; 14272 return 0; 14273} 14274_ACEOF 14275rm -f "conftest.$ac_objext" 14276if { (eval echo "$as_me:14273: \"$ac_compile\"") >&5 14277 (eval $ac_compile) 2>&5 14278 ac_status=$? 14279 echo "$as_me:14276: \$? = $ac_status" >&5 14280 (exit "$ac_status"); } && 14281 { ac_try='test -s "conftest.$ac_objext"' 14282 { (eval echo "$as_me:14279: \"$ac_try\"") >&5 14283 (eval $ac_try) 2>&5 14284 ac_status=$? 14285 echo "$as_me:14282: \$? = $ac_status" >&5 14286 (exit "$ac_status"); }; }; then 14287 ac_hi=$ac_mid; break 14288else 14289 echo "$as_me: failed program was:" >&5 14290cat "conftest.$ac_ext" >&5 14291ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 14292fi 14293rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14294 done 14295else 14296 echo "$as_me: failed program was:" >&5 14297cat "conftest.$ac_ext" >&5 14298ac_hi=-1 ac_mid=-1 14299 while :; do 14300 cat >"conftest.$ac_ext" <<_ACEOF 14301#line 14298 "configure" 14302#include "confdefs.h" 14303$ac_includes_default 14304int 14305main (void) 14306{ 14307int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)] 14308 ; 14309 return 0; 14310} 14311_ACEOF 14312rm -f "conftest.$ac_objext" 14313if { (eval echo "$as_me:14310: \"$ac_compile\"") >&5 14314 (eval $ac_compile) 2>&5 14315 ac_status=$? 14316 echo "$as_me:14313: \$? = $ac_status" >&5 14317 (exit "$ac_status"); } && 14318 { ac_try='test -s "conftest.$ac_objext"' 14319 { (eval echo "$as_me:14316: \"$ac_try\"") >&5 14320 (eval $ac_try) 2>&5 14321 ac_status=$? 14322 echo "$as_me:14319: \$? = $ac_status" >&5 14323 (exit "$ac_status"); }; }; then 14324 ac_lo=$ac_mid; break 14325else 14326 echo "$as_me: failed program was:" >&5 14327cat "conftest.$ac_ext" >&5 14328ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 14329fi 14330rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14331 done 14332fi 14333rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14334# Binary search between lo and hi bounds. 14335while test "x$ac_lo" != "x$ac_hi"; do 14336 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 14337 cat >"conftest.$ac_ext" <<_ACEOF 14338#line 14335 "configure" 14339#include "confdefs.h" 14340$ac_includes_default 14341int 14342main (void) 14343{ 14344int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 14345 ; 14346 return 0; 14347} 14348_ACEOF 14349rm -f "conftest.$ac_objext" 14350if { (eval echo "$as_me:14347: \"$ac_compile\"") >&5 14351 (eval $ac_compile) 2>&5 14352 ac_status=$? 14353 echo "$as_me:14350: \$? = $ac_status" >&5 14354 (exit "$ac_status"); } && 14355 { ac_try='test -s "conftest.$ac_objext"' 14356 { (eval echo "$as_me:14353: \"$ac_try\"") >&5 14357 (eval $ac_try) 2>&5 14358 ac_status=$? 14359 echo "$as_me:14356: \$? = $ac_status" >&5 14360 (exit "$ac_status"); }; }; then 14361 ac_hi=$ac_mid 14362else 14363 echo "$as_me: failed program was:" >&5 14364cat "conftest.$ac_ext" >&5 14365ac_lo=`expr "$ac_mid" + 1` 14366fi 14367rm -f "conftest.$ac_objext" "conftest.$ac_ext" 14368done 14369ac_cv_sizeof_signed_char=$ac_lo 14370else 14371 if test "$cross_compiling" = yes; then 14372 { { echo "$as_me:14369: error: cannot run test program while cross compiling" >&5 14373echo "$as_me: error: cannot run test program while cross compiling" >&2;} 14374 { (exit 1); exit 1; }; } 14375else 14376 cat >"conftest.$ac_ext" <<_ACEOF 14377#line 14374 "configure" 14378#include "confdefs.h" 14379$ac_includes_default 14380int 14381main (void) 14382{ 14383FILE *f = fopen ("conftest.val", "w"); 14384if (!f) 14385 $ac_main_return (1); 14386fprintf (f, "%ld", (long)(sizeof (signed char))); 14387fclose (f); 14388 ; 14389 return 0; 14390} 14391_ACEOF 14392rm -f "conftest$ac_exeext" 14393if { (eval echo "$as_me:14390: \"$ac_link\"") >&5 14394 (eval $ac_link) 2>&5 14395 ac_status=$? 14396 echo "$as_me:14393: \$? = $ac_status" >&5 14397 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 14398 { (eval echo "$as_me:14395: \"$ac_try\"") >&5 14399 (eval $ac_try) 2>&5 14400 ac_status=$? 14401 echo "$as_me:14398: \$? = $ac_status" >&5 14402 (exit "$ac_status"); }; }; then 14403 ac_cv_sizeof_signed_char=`cat conftest.val` 14404else 14405 echo "$as_me: program exited with status $ac_status" >&5 14406echo "$as_me: failed program was:" >&5 14407cat "conftest.$ac_ext" >&5 14408fi 14409rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 14410fi 14411fi 14412rm -f conftest.val 14413else 14414 ac_cv_sizeof_signed_char=0 14415fi 14416fi 14417echo "$as_me:14414: result: $ac_cv_sizeof_signed_char" >&5 14418echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 14419cat >>confdefs.h <<EOF 14420#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 14421EOF 14422 14423if test "$ac_cv_sizeof_signed_char" = 1 ; then 14424 NCURSES_SBOOL="signed char" 14425else 14426 NCURSES_SBOOL="char" 14427fi 14428echo "$as_me:14425: checking if you want to use signed Boolean array in term.h" >&5 14429echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6 14430 14431# Check whether --enable-signed-char or --disable-signed-char was given. 14432if test "${enable_signed_char+set}" = set; then 14433 enableval="$enable_signed_char" 14434 with_signed_char=$enableval 14435else 14436 with_signed_char=no 14437fi; 14438echo "$as_me:14435: result: $with_signed_char" >&5 14439echo "${ECHO_T}$with_signed_char" >&6 14440test "x$with_signed_char" != xyes && NCURSES_SBOOL="char" 14441 14442### use option --with-tparm-arg to override tparm's argument type 14443echo "$as_me:14440: checking for type of tparm args" >&5 14444echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6 14445 14446# Check whether --with-tparm-arg or --without-tparm-arg was given. 14447if test "${with_tparm_arg+set}" = set; then 14448 withval="$with_tparm_arg" 14449 NCURSES_TPARM_ARG="$withval" 14450else 14451 NCURSES_TPARM_ARG=$cf_dft_tparm_arg 14452fi; 14453echo "$as_me:14450: result: $NCURSES_TPARM_ARG" >&5 14454echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6 14455 14456### Enable compiling-in rcs id's 14457echo "$as_me:14454: checking if RCS identifiers should be compiled-in" >&5 14458echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6 14459 14460# Check whether --with-rcs-ids or --without-rcs-ids was given. 14461if test "${with_rcs_ids+set}" = set; then 14462 withval="$with_rcs_ids" 14463 with_rcs_ids=$withval 14464else 14465 with_rcs_ids=no 14466fi; 14467echo "$as_me:14464: result: $with_rcs_ids" >&5 14468echo "${ECHO_T}$with_rcs_ids" >&6 14469test "x$with_rcs_ids" = xyes && 14470cat >>confdefs.h <<\EOF 14471#define USE_RCS_IDS 1 14472EOF 14473 14474############################################################################### 14475 14476echo "$as_me:14473: checking format of man-pages" >&5 14477echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6 14478 14479# Check whether --with-manpage-format or --without-manpage-format was given. 14480if test "${with_manpage_format+set}" = set; then 14481 withval="$with_manpage_format" 14482 MANPAGE_FORMAT=$withval 14483else 14484 MANPAGE_FORMAT=unknown 14485fi; 14486 14487test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown 14488MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'` 14489 14490cf_unknown= 14491 14492case "$MANPAGE_FORMAT" in 14493(unknown) 14494 if test -z "$MANPATH" ; then 14495 MANPATH="/usr/man:/usr/share/man" 14496 fi 14497 14498 # look for the 'date' man-page (it is most likely to be installed!) 14499 MANPAGE_FORMAT= 14500 cf_preform="no" 14501 cf_catonly="yes" 14502 cf_example="date" 14503 14504 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" 14505 for cf_dir in $MANPATH; do 14506 test -z "$cf_dir" && cf_dir=/usr/man 14507 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 14508 do 14509 cf_test=`echo "$cf_name" | sed -e 's/*//'` 14510 if test "x$cf_test" = "x$cf_name" ; then 14511 14512 case "$cf_name" in 14513 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";; 14514 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";; 14515 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";; 14516 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";; 14517 esac 14518 14519 case "$cf_name" in 14520 ($cf_dir/man*) 14521 cf_catonly=no 14522 ;; 14523 ($cf_dir/cat*) 14524 cf_preform=yes 14525 ;; 14526 esac 14527 break 14528 fi 14529 14530 # if we found a match in either man* or cat*, stop looking 14531 if test -n "$MANPAGE_FORMAT" ; then 14532 cf_found=no 14533 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted" 14534 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly" 14535 case "$cf_name" in 14536 ($cf_dir/cat*) 14537 cf_found=yes 14538 ;; 14539 esac 14540 test "$cf_found" = yes && break 14541 fi 14542 done 14543 # only check the first directory in $MANPATH where we find manpages 14544 if test -n "$MANPAGE_FORMAT" ; then 14545 break 14546 fi 14547 done 14548 # if we did not find the example, just assume it is normal 14549 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal 14550 IFS="$ac_save_ifs" 14551 ;; 14552(*) 14553 for cf_option in $MANPAGE_FORMAT; do 14554 case "$cf_option" in 14555 (gzip|compress|BSDI|normal|formatted|catonly) 14556 ;; 14557 (*) 14558 cf_unknown="$cf_unknown $cf_option" 14559 ;; 14560 esac 14561 done 14562 ;; 14563esac 14564 14565echo "$as_me:14562: result: $MANPAGE_FORMAT" >&5 14566echo "${ECHO_T}$MANPAGE_FORMAT" >&6 14567if test -n "$cf_unknown" ; then 14568 { echo "$as_me:14565: WARNING: Unexpected manpage-format $cf_unknown" >&5 14569echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;} 14570fi 14571 14572echo "$as_me:14569: checking for manpage renaming" >&5 14573echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6 14574 14575# Check whether --with-manpage-renames or --without-manpage-renames was given. 14576if test "${with_manpage_renames+set}" = set; then 14577 withval="$with_manpage_renames" 14578 MANPAGE_RENAMES=$withval 14579else 14580 MANPAGE_RENAMES=yes 14581fi; 14582 14583case ".$MANPAGE_RENAMES" in 14584(.no) 14585 ;; 14586(.|.yes) 14587 # Debian 'man' program? 14588 if test -f /etc/debian_version ; then 14589 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames 14590 else 14591 MANPAGE_RENAMES=no 14592 fi 14593 ;; 14594esac 14595 14596if test "$MANPAGE_RENAMES" != no ; then 14597 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then 14598 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES 14599 elif test ! -f "$MANPAGE_RENAMES" ; then 14600 { { echo "$as_me:14597: error: not a filename: $MANPAGE_RENAMES" >&5 14601echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;} 14602 { (exit 1); exit 1; }; } 14603 fi 14604 14605 test ! -d man && mkdir man 14606 14607 # Construct a sed-script to perform renaming within man-pages 14608 if test -n "$MANPAGE_RENAMES" ; then 14609 test ! -d man && mkdir man 14610 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed 14611 fi 14612fi 14613 14614echo "$as_me:14611: result: $MANPAGE_RENAMES" >&5 14615echo "${ECHO_T}$MANPAGE_RENAMES" >&6 14616 14617echo "$as_me:14614: checking if manpage aliases will be installed" >&5 14618echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6 14619 14620# Check whether --with-manpage-aliases or --without-manpage-aliases was given. 14621if test "${with_manpage_aliases+set}" = set; then 14622 withval="$with_manpage_aliases" 14623 MANPAGE_ALIASES=$withval 14624else 14625 MANPAGE_ALIASES=yes 14626fi; 14627 14628echo "$as_me:14625: result: $MANPAGE_ALIASES" >&5 14629echo "${ECHO_T}$MANPAGE_ALIASES" >&6 14630 14631case "x$LN_S" in 14632(xln*) 14633 cf_use_symlinks=yes 14634 ;; 14635(*) 14636 cf_use_symlinks=no 14637 ;; 14638esac 14639 14640MANPAGE_SYMLINKS=no 14641if test "$MANPAGE_ALIASES" = yes ; then 14642echo "$as_me:14639: checking if manpage symlinks should be used" >&5 14643echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6 14644 14645# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given. 14646if test "${with_manpage_symlinks+set}" = set; then 14647 withval="$with_manpage_symlinks" 14648 MANPAGE_SYMLINKS=$withval 14649else 14650 MANPAGE_SYMLINKS=$cf_use_symlinks 14651fi; 14652 14653if test "$$cf_use_symlinks" = no; then 14654if test "$MANPAGE_SYMLINKS" = yes ; then 14655 { echo "$as_me:14652: WARNING: cannot make symlinks" >&5 14656echo "$as_me: WARNING: cannot make symlinks" >&2;} 14657 MANPAGE_SYMLINKS=no 14658fi 14659fi 14660 14661echo "$as_me:14658: result: $MANPAGE_SYMLINKS" >&5 14662echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6 14663fi 14664 14665echo "$as_me:14662: checking for manpage tbl" >&5 14666echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6 14667 14668# Check whether --with-manpage-tbl or --without-manpage-tbl was given. 14669if test "${with_manpage_tbl+set}" = set; then 14670 withval="$with_manpage_tbl" 14671 MANPAGE_TBL=$withval 14672else 14673 MANPAGE_TBL=no 14674fi; 14675 14676echo "$as_me:14673: result: $MANPAGE_TBL" >&5 14677echo "${ECHO_T}$MANPAGE_TBL" >&6 14678 14679if test "$prefix" = "NONE" ; then 14680 cf_prefix="$ac_default_prefix" 14681else 14682 cf_prefix="$prefix" 14683fi 14684 14685case "$MANPAGE_FORMAT" in 14686(*catonly*) 14687 cf_format=yes 14688 cf_inboth=no 14689 ;; 14690(*formatted*) 14691 cf_format=yes 14692 cf_inboth=yes 14693 ;; 14694(*) 14695 cf_format=no 14696 cf_inboth=no 14697 ;; 14698esac 14699 14700test ! -d man && mkdir man 14701 14702cf_so_strip= 14703cf_compress= 14704case "$MANPAGE_FORMAT" in 14705(*compress*) 14706 cf_so_strip="Z" 14707 cf_compress=compress 14708 ;; 14709(*gzip*) 14710 cf_so_strip="gz" 14711 cf_compress=gzip 14712 ;; 14713esac 14714 14715cf_edit_man=./edit_man.sh 14716cf_man_alias=`pwd`/man_alias.sed 14717 14718cat >$cf_edit_man <<CF_EOF 14719#! $SHELL 14720# this script is generated by the configure-script CF_MAN_PAGES macro. 14721 14722prefix="$cf_prefix" 14723datarootdir="$datarootdir" 14724datadir="$datadir" 14725 14726NCURSES_MAJOR="$NCURSES_MAJOR" 14727NCURSES_MINOR="$NCURSES_MINOR" 14728NCURSES_PATCH="$NCURSES_PATCH" 14729 14730NCURSES_OSPEED="$NCURSES_OSPEED" 14731TERMINFO="$TERMINFO" 14732 14733INSTALL="$INSTALL" 14734INSTALL_DATA="$INSTALL_DATA" 14735 14736transform="$program_transform_name" 14737 14738TMP=\${TMPDIR:=/tmp}/man\$\$ 14739trap "rm -f \$TMP" 0 1 2 3 15 14740 14741form=\$1 14742shift || exit 1 14743 14744verb=\$1 14745shift || exit 1 14746 14747mandir=\$1 14748shift || exit 1 14749 14750srcdir=\$1 14751top_srcdir=\$srcdir/.. 14752shift || exit 1 14753 14754if test "\$form" = normal ; then 14755 if test "$cf_format" = yes ; then 14756 if test "$cf_inboth" = no ; then 14757 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@" 14758 exit $? 14759 fi 14760 fi 14761 cf_subdir=\$mandir/man 14762 cf_tables=$MANPAGE_TBL 14763else 14764 cf_subdir=\$mandir/cat 14765 cf_tables=yes 14766fi 14767 14768# process the list of source-files 14769for i in "\$@" ; do 14770case \$i in 14771(*.orig|*.rej) ;; 14772(*.[0-9]*) 14773 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`; 14774 if test "\$verb" = installing ; then 14775 if test ! -d "\$cf_subdir\${section}" ; then 14776 mkdir -p "\$cf_subdir\$section" 14777 fi 14778 fi 14779 14780 # replace variables in man page 14781 if test ! -f "$cf_man_alias" ; then 14782cat >>$cf_man_alias <<-CF_EOF2 14783 s,@DATADIR@,\$datadir,g 14784 s,@TERMINFO@,\${TERMINFO:="no default value"},g 14785 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g 14786 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g 14787 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g 14788 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g 14789 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g 14790CF_EOF 14791 14792 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset 14793 do 14794 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 14795 cf_name=`echo "$cf_name" | sed "$program_transform_name"` 14796cat >>$cf_edit_man <<-CF_EOF 14797 s,@$cf_NAME@,$cf_name,g 14798CF_EOF 14799 done 14800 14801cat >>$cf_edit_man <<CF_EOF 14802CF_EOF2 14803 echo "...made $cf_man_alias" 14804 fi 14805 14806 aliases= 14807 cf_source=\`basename "\$i"\` 14808 inalias=\$cf_source 14809 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias" 14810 if test ! -f "\$inalias" ; then 14811 echo ".. skipped \$cf_source" 14812 continue 14813 fi 14814CF_EOF 14815 14816if test "$MANPAGE_ALIASES" != no ; then 14817cat >>$cf_edit_man <<CF_EOF 14818 nCurses=ignore.3x 14819 test "$with_curses_h" = yes && nCurses=ncurses.3x 14820 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\` 14821CF_EOF 14822fi 14823 14824if test "$MANPAGE_RENAMES" = no ; then 14825cat >>$cf_edit_man <<CF_EOF 14826 # perform program transformations for section 1 man pages 14827 if test \$section = 1 ; then 14828 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\` 14829 else 14830 cf_target=\$cf_subdir\${section}/\$cf_source 14831 fi 14832CF_EOF 14833else 14834cat >>$cf_edit_man <<CF_EOF 14835 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\` 14836 if test -z "\$cf_target" ; then 14837 echo "? missing rename for \$cf_source" 14838 cf_target="\$cf_source" 14839 fi 14840 cf_target="\$cf_subdir\${section}/\${cf_target}" 14841 14842CF_EOF 14843fi 14844 14845cat >>$cf_edit_man <<CF_EOF 14846 sed -f "$cf_man_alias" \\ 14847CF_EOF 14848 14849if test -f "$MANPAGE_RENAMES" ; then 14850cat >>$cf_edit_man <<CF_EOF 14851 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP 14852CF_EOF 14853else 14854cat >>$cf_edit_man <<CF_EOF 14855 < "\$i" >\$TMP 14856CF_EOF 14857fi 14858 14859cat >>$cf_edit_man <<CF_EOF 14860if test \$cf_tables = yes ; then 14861 tbl \$TMP >\$TMP.out 14862 mv \$TMP.out \$TMP 14863fi 14864CF_EOF 14865 14866if test "$with_overwrite" != yes ; then 14867cat >>$cf_edit_man <<CF_EOF 14868 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out 14869 mv \$TMP.out \$TMP 14870CF_EOF 14871fi 14872 14873if test "$with_curses_h" != yes ; then 14874cat >>$cf_edit_man <<CF_EOF 14875 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out 14876 mv \$TMP.out \$TMP 14877CF_EOF 14878fi 14879 14880cat >>$cf_edit_man <<CF_EOF 14881 if test "\$form" = format ; then 14882 nroff -man \$TMP >\$TMP.out 14883 mv \$TMP.out \$TMP 14884 fi 14885CF_EOF 14886 14887if test -n "$cf_compress" ; then 14888cat >>$cf_edit_man <<CF_EOF 14889 if test "\$verb" = installing ; then 14890 if ( "$cf_compress" -f \$TMP ) 14891 then 14892 mv \$TMP.$cf_so_strip \$TMP 14893 fi 14894 fi 14895 cf_target="\$cf_target.$cf_so_strip" 14896CF_EOF 14897fi 14898 14899case "$MANPAGE_FORMAT" in 14900(*BSDI*) 14901cat >>$cf_edit_man <<CF_EOF 14902 if test "\$form" = format ; then 14903 # BSDI installs only .0 suffixes in the cat directories 14904 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`" 14905 fi 14906CF_EOF 14907 ;; 14908esac 14909 14910cat >>$cf_edit_man <<CF_EOF 14911 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\` 14912 if test "\$verb" = installing ; then 14913 echo "\$verb \$cf_target" 14914 \$INSTALL_DATA \$TMP "\$cf_target" 14915 test -d "\$cf_subdir\${section}" && 14916 test -n "\$aliases" && ( 14917 cd "\$cf_subdir\${section}" && ( 14918 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\` 14919 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\` 14920 cf_target=\`basename "\$cf_target"\` 14921 for cf_alias in \$aliases 14922 do 14923 if test "\$section" = 1 ; then 14924 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\` 14925 fi 14926 14927 if test "$MANPAGE_SYMLINKS" = yes ; then 14928 if test -f "\$cf_alias\${suffix}" ; then 14929 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" ) 14930 then 14931 continue 14932 fi 14933 fi 14934 echo ".. \$verb alias \$cf_alias\${suffix}" 14935CF_EOF 14936case "x$LN_S" in 14937(*-f) 14938cat >>$cf_edit_man <<CF_EOF 14939 $LN_S "\$cf_target" "\$cf_alias\${suffix}" 14940CF_EOF 14941 ;; 14942(*) 14943cat >>$cf_edit_man <<CF_EOF 14944 rm -f "\$cf_alias\${suffix}" 14945 $LN_S "\$cf_target" "\$cf_alias\${suffix}" 14946CF_EOF 14947 ;; 14948esac 14949cat >>$cf_edit_man <<CF_EOF 14950 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then 14951 echo ".so \$cf_source" >\$TMP 14952CF_EOF 14953if test -n "$cf_compress" ; then 14954cat >>$cf_edit_man <<CF_EOF 14955 if test -n "$cf_so_strip" ; then 14956 "$cf_compress" -f \$TMP 14957 mv \$TMP.$cf_so_strip \$TMP 14958 fi 14959CF_EOF 14960fi 14961cat >>$cf_edit_man <<CF_EOF 14962 echo ".. \$verb alias \$cf_alias\${suffix}" 14963 rm -f "\$cf_alias\${suffix}" 14964 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}" 14965 fi 14966 done 14967 ) 14968 ) 14969 elif test "\$verb" = removing ; then 14970 test -f "\$cf_target" && ( 14971 echo "\$verb \$cf_target" 14972 rm -f "\$cf_target" 14973 ) 14974 test -d "\$cf_subdir\${section}" && 14975 test -n "\$aliases" && ( 14976 cd "\$cf_subdir\${section}" && ( 14977 for cf_alias in \$aliases 14978 do 14979 if test "\$section" = 1 ; then 14980 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\` 14981 fi 14982 14983 echo ".. \$verb alias \$cf_alias\${suffix}" 14984 rm -f "\$cf_alias\${suffix}" 14985 done 14986 ) 14987 ) 14988 else 14989# echo ".hy 0" 14990 cat \$TMP 14991 fi 14992 ;; 14993esac 14994done 14995 14996if test "$cf_inboth" = yes ; then 14997if test "\$form" != format ; then 14998 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@" 14999fi 15000fi 15001 15002exit 0 15003CF_EOF 15004chmod 755 "$cf_edit_man" 15005 15006############################################################################### 15007 15008### Note that some functions (such as const) are normally disabled anyway. 15009echo "$as_me:15006: checking if you want to build with function extensions" >&5 15010echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6 15011 15012# Check whether --enable-ext-funcs or --disable-ext-funcs was given. 15013if test "${enable_ext_funcs+set}" = set; then 15014 enableval="$enable_ext_funcs" 15015 with_ext_funcs=$enableval 15016else 15017 with_ext_funcs=yes 15018fi; 15019echo "$as_me:15016: result: $with_ext_funcs" >&5 15020echo "${ECHO_T}$with_ext_funcs" >&6 15021if test "x$with_ext_funcs" = xyes ; then 15022 NCURSES_EXT_FUNCS=1 15023 15024cat >>confdefs.h <<\EOF 15025#define NCURSES_EXT_FUNCS 1 15026EOF 15027 15028cat >>confdefs.h <<\EOF 15029#define HAVE_ASSUME_DEFAULT_COLORS 1 15030EOF 15031 15032cat >>confdefs.h <<\EOF 15033#define HAVE_CURSES_VERSION 1 15034EOF 15035 15036cat >>confdefs.h <<\EOF 15037#define HAVE_HAS_KEY 1 15038EOF 15039 15040cat >>confdefs.h <<\EOF 15041#define HAVE_RESIZETERM 1 15042EOF 15043 15044cat >>confdefs.h <<\EOF 15045#define HAVE_RESIZE_TERM 1 15046EOF 15047 15048cat >>confdefs.h <<\EOF 15049#define HAVE_TERM_ENTRY_H 1 15050EOF 15051 15052cat >>confdefs.h <<\EOF 15053#define HAVE_USE_DEFAULT_COLORS 1 15054EOF 15055 15056cat >>confdefs.h <<\EOF 15057#define HAVE_USE_EXTENDED_NAMES 1 15058EOF 15059 15060cat >>confdefs.h <<\EOF 15061#define HAVE_USE_SCREEN 1 15062EOF 15063 15064cat >>confdefs.h <<\EOF 15065#define HAVE_USE_WINDOW 1 15066EOF 15067 15068cat >>confdefs.h <<\EOF 15069#define HAVE_WRESIZE 1 15070EOF 15071 15072 GENERATED_EXT_FUNCS=generated 15073 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no 15074else 15075 NCURSES_EXT_FUNCS=0 15076 GENERATED_EXT_FUNCS= 15077fi 15078 15079echo "$as_me:15076: checking if you want to build with SCREEN extensions" >&5 15080echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6 15081 15082# Check whether --enable-sp-funcs or --disable-sp-funcs was given. 15083if test "${enable_sp_funcs+set}" = set; then 15084 enableval="$enable_sp_funcs" 15085 with_sp_funcs=$enableval 15086else 15087 with_sp_funcs=$cf_dft_ext_spfuncs 15088fi; 15089echo "$as_me:15086: result: $with_sp_funcs" >&5 15090echo "${ECHO_T}$with_sp_funcs" >&6 15091if test "x$with_sp_funcs" = xyes ; then 15092 NCURSES_SP_FUNCS=1 15093 15094cat >>confdefs.h <<\EOF 15095#define NCURSES_SP_FUNCS 1 15096EOF 15097 15098cat >>confdefs.h <<\EOF 15099#define HAVE_TPUTS_SP 1 15100EOF 15101 15102 GENERATED_SP_FUNCS=generated 15103else 15104 NCURSES_SP_FUNCS=0 15105 GENERATED_SP_FUNCS= 15106fi 15107 15108echo "$as_me:15105: checking if you want to build with terminal-driver" >&5 15109echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6 15110 15111# Check whether --enable-term-driver or --disable-term-driver was given. 15112if test "${enable_term_driver+set}" = set; then 15113 enableval="$enable_term_driver" 15114 with_term_driver=$enableval 15115else 15116 with_term_driver=no 15117fi; 15118echo "$as_me:15115: result: $with_term_driver" >&5 15119echo "${ECHO_T}$with_term_driver" >&6 15120if test "x$with_term_driver" = xyes ; then 15121 15122cat >>confdefs.h <<\EOF 15123#define USE_TERM_DRIVER 1 15124EOF 15125 15126 if test "x$with_termlib" != xno ; then 15127 { { echo "$as_me:15124: error: The term-driver option conflicts with the termlib option" >&5 15128echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;} 15129 { (exit 1); exit 1; }; } 15130 fi 15131 if test "x$with_sp_funcs" != xyes ; then 15132 { { echo "$as_me:15129: error: The term-driver option relies upon sp-funcs" >&5 15133echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;} 15134 { (exit 1); exit 1; }; } 15135 fi 15136fi 15137 15138### use option --enable-const to turn on use of const beyond that in XSI. 15139echo "$as_me:15136: checking for extended use of const keyword" >&5 15140echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6 15141 15142# Check whether --enable-const or --disable-const was given. 15143if test "${enable_const+set}" = set; then 15144 enableval="$enable_const" 15145 with_ext_const=$enableval 15146else 15147 with_ext_const=$cf_dft_ext_const 15148fi; 15149echo "$as_me:15146: result: $with_ext_const" >&5 15150echo "${ECHO_T}$with_ext_const" >&6 15151NCURSES_CONST='/*nothing*/' 15152if test "x$with_ext_const" = xyes ; then 15153 NCURSES_CONST=const 15154fi 15155 15156### use option --enable-ext-colors to turn on use of colors beyond 16. 15157echo "$as_me:15154: checking if you want to use extended colors" >&5 15158echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6 15159 15160# Check whether --enable-ext-colors or --disable-ext-colors was given. 15161if test "${enable_ext_colors+set}" = set; then 15162 enableval="$enable_ext_colors" 15163 with_ext_colors=$enableval 15164else 15165 with_ext_colors=$cf_dft_ext_colors 15166fi; 15167echo "$as_me:15164: result: $with_ext_colors" >&5 15168echo "${ECHO_T}$with_ext_colors" >&6 15169NCURSES_EXT_COLORS=0 15170if test "x$with_ext_colors" = xyes ; then 15171 if test "x$with_widec" != xyes ; then 15172 { echo "$as_me:15169: WARNING: This option applies only to wide-character library" >&5 15173echo "$as_me: WARNING: This option applies only to wide-character library" >&2;} 15174 else 15175 # cannot be ABI 5 since it changes sizeof(cchar_t) 15176 15177if test "${with_abi_version+set}" != set; then 15178 case "$cf_cv_rel_version" in 15179 (5.*) 15180 cf_cv_rel_version=6.0 15181 cf_cv_abi_version=6 15182 { echo "$as_me:15179: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 15183echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 15184 ;; 15185 esac 15186fi 15187 15188 NCURSES_EXT_COLORS=1 15189 15190cat >>confdefs.h <<\EOF 15191#define NCURSES_EXT_COLORS 1 15192EOF 15193 15194cat >>confdefs.h <<\EOF 15195#define HAVE_ALLOC_PAIR 1 15196EOF 15197 15198cat >>confdefs.h <<\EOF 15199#define HAVE_INIT_EXTENDED_COLOR 1 15200EOF 15201 15202cat >>confdefs.h <<\EOF 15203#define HAVE_RESET_COLOR_PAIRS 1 15204EOF 15205 15206 fi 15207fi 15208 15209### use option --enable-ext-mouse to modify coding to support 5-button mice 15210echo "$as_me:15207: checking if you want to use extended mouse encoding" >&5 15211echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6 15212 15213# Check whether --enable-ext-mouse or --disable-ext-mouse was given. 15214if test "${enable_ext_mouse+set}" = set; then 15215 enableval="$enable_ext_mouse" 15216 with_ext_mouse=$enableval 15217else 15218 with_ext_mouse=$cf_dft_ext_mouse 15219fi; 15220echo "$as_me:15217: result: $with_ext_mouse" >&5 15221echo "${ECHO_T}$with_ext_mouse" >&6 15222NCURSES_MOUSE_VERSION=1 15223if test "x$with_ext_mouse" = xyes ; then 15224 NCURSES_MOUSE_VERSION=2 15225 15226if test "${with_abi_version+set}" != set; then 15227 case "$cf_cv_rel_version" in 15228 (5.*) 15229 cf_cv_rel_version=6.0 15230 cf_cv_abi_version=6 15231 { echo "$as_me:15228: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 15232echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 15233 ;; 15234 esac 15235fi 15236 15237fi 15238 15239### use option --enable-ext-putwin to turn on extended screendumps 15240echo "$as_me:15237: checking if you want to use extended putwin/screendump" >&5 15241echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6 15242 15243# Check whether --enable-ext-putwin or --disable-ext-putwin was given. 15244if test "${enable_ext_putwin+set}" = set; then 15245 enableval="$enable_ext_putwin" 15246 with_ext_putwin=$enableval 15247else 15248 with_ext_putwin=$cf_dft_ext_putwin 15249fi; 15250echo "$as_me:15247: result: $with_ext_putwin" >&5 15251echo "${ECHO_T}$with_ext_putwin" >&6 15252if test "x$with_ext_putwin" = xyes ; then 15253 15254cat >>confdefs.h <<\EOF 15255#define NCURSES_EXT_PUTWIN 1 15256EOF 15257 15258fi 15259 15260echo "$as_me:15257: checking if you want \$NCURSES_NO_PADDING code" >&5 15261echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6 15262 15263# Check whether --enable-no-padding or --disable-no-padding was given. 15264if test "${enable_no_padding+set}" = set; then 15265 enableval="$enable_no_padding" 15266 with_no_padding=$enableval 15267else 15268 with_no_padding=$with_ext_funcs 15269fi; 15270echo "$as_me:15267: result: $with_no_padding" >&5 15271echo "${ECHO_T}$with_no_padding" >&6 15272test "x$with_no_padding" = xyes && 15273cat >>confdefs.h <<\EOF 15274#define NCURSES_NO_PADDING 1 15275EOF 15276 15277### use option --enable-sigwinch to turn on use of SIGWINCH logic 15278echo "$as_me:15275: checking if you want SIGWINCH handler" >&5 15279echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6 15280 15281# Check whether --enable-sigwinch or --disable-sigwinch was given. 15282if test "${enable_sigwinch+set}" = set; then 15283 enableval="$enable_sigwinch" 15284 with_sigwinch=$enableval 15285else 15286 with_sigwinch=$with_ext_funcs 15287fi; 15288echo "$as_me:15285: result: $with_sigwinch" >&5 15289echo "${ECHO_T}$with_sigwinch" >&6 15290test "x$with_sigwinch" = xyes && 15291cat >>confdefs.h <<\EOF 15292#define USE_SIGWINCH 1 15293EOF 15294 15295### use option --enable-tcap-names to allow user to define new capabilities 15296echo "$as_me:15293: checking if you want user-definable terminal capabilities like termcap" >&5 15297echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6 15298 15299# Check whether --enable-tcap-names or --disable-tcap-names was given. 15300if test "${enable_tcap_names+set}" = set; then 15301 enableval="$enable_tcap_names" 15302 with_tcap_names=$enableval 15303else 15304 with_tcap_names=$with_ext_funcs 15305fi; 15306echo "$as_me:15303: result: $with_tcap_names" >&5 15307echo "${ECHO_T}$with_tcap_names" >&6 15308NCURSES_XNAMES=0 15309test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1 15310 15311############################################################################## 15312 15313echo "$as_me:15310: checking if you want to link with the pthread library" >&5 15314echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6 15315 15316# Check whether --with-pthread or --without-pthread was given. 15317if test "${with_pthread+set}" = set; then 15318 withval="$with_pthread" 15319 with_pthread=$withval 15320else 15321 with_pthread=no 15322fi; 15323echo "$as_me:15320: result: $with_pthread" >&5 15324echo "${ECHO_T}$with_pthread" >&6 15325 15326if test "$with_pthread" != no ; then 15327 echo "$as_me:15324: checking for pthread.h" >&5 15328echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 15329if test "${ac_cv_header_pthread_h+set}" = set; then 15330 echo $ECHO_N "(cached) $ECHO_C" >&6 15331else 15332 cat >"conftest.$ac_ext" <<_ACEOF 15333#line 15330 "configure" 15334#include "confdefs.h" 15335#include <pthread.h> 15336_ACEOF 15337if { (eval echo "$as_me:15334: \"$ac_cpp "conftest.$ac_ext"\"") >&5 15338 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 15339 ac_status=$? 15340 $EGREP -v '^ *\+' conftest.er1 >conftest.err 15341 rm -f conftest.er1 15342 cat conftest.err >&5 15343 echo "$as_me:15340: \$? = $ac_status" >&5 15344 (exit "$ac_status"); } >/dev/null; then 15345 if test -s conftest.err; then 15346 ac_cpp_err=$ac_c_preproc_warn_flag 15347 else 15348 ac_cpp_err= 15349 fi 15350else 15351 ac_cpp_err=yes 15352fi 15353if test -z "$ac_cpp_err"; then 15354 ac_cv_header_pthread_h=yes 15355else 15356 echo "$as_me: failed program was:" >&5 15357 cat "conftest.$ac_ext" >&5 15358 ac_cv_header_pthread_h=no 15359fi 15360rm -f conftest.err "conftest.$ac_ext" 15361fi 15362echo "$as_me:15359: result: $ac_cv_header_pthread_h" >&5 15363echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 15364if test "$ac_cv_header_pthread_h" = yes; then 15365 15366cat >>confdefs.h <<\EOF 15367#define HAVE_PTHREADS_H 1 15368EOF 15369 15370 for cf_lib_pthread in pthread c_r 15371 do 15372 echo "$as_me:15369: checking if we can link with the $cf_lib_pthread library" >&5 15373echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6 15374 cf_save_LIBS="$LIBS" 15375 15376cf_add_libs="$LIBS" 15377# reverse order 15378cf_add_0lib= 15379for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15380# filter duplicates 15381for cf_add_1lib in $cf_add_0lib; do 15382 for cf_add_2lib in $cf_add_libs; do 15383 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15384 cf_add_1lib= 15385 break 15386 fi 15387 done 15388 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15389done 15390LIBS="$cf_add_libs" 15391 15392 cat >"conftest.$ac_ext" <<_ACEOF 15393#line 15390 "configure" 15394#include "confdefs.h" 15395 15396#include <pthread.h> 15397 15398int 15399main (void) 15400{ 15401 15402 int rc = pthread_create(0,0,0,0); 15403 int r2 = pthread_mutexattr_settype(0, 0); 15404 15405 ; 15406 return 0; 15407} 15408_ACEOF 15409rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15410if { (eval echo "$as_me:15407: \"$ac_link\"") >&5 15411 (eval $ac_link) 2>&5 15412 ac_status=$? 15413 echo "$as_me:15410: \$? = $ac_status" >&5 15414 (exit "$ac_status"); } && 15415 { ac_try='test -s "conftest$ac_exeext"' 15416 { (eval echo "$as_me:15413: \"$ac_try\"") >&5 15417 (eval $ac_try) 2>&5 15418 ac_status=$? 15419 echo "$as_me:15416: \$? = $ac_status" >&5 15420 (exit "$ac_status"); }; }; then 15421 with_pthread=yes 15422else 15423 echo "$as_me: failed program was:" >&5 15424cat "conftest.$ac_ext" >&5 15425with_pthread=no 15426fi 15427rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15428 LIBS="$cf_save_LIBS" 15429 echo "$as_me:15426: result: $with_pthread" >&5 15430echo "${ECHO_T}$with_pthread" >&6 15431 test "$with_pthread" = yes && break 15432 done 15433 15434 if test "$with_pthread" = yes ; then 15435 15436cf_add_libs="$LIBS" 15437# reverse order 15438cf_add_0lib= 15439for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15440# filter duplicates 15441for cf_add_1lib in $cf_add_0lib; do 15442 for cf_add_2lib in $cf_add_libs; do 15443 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15444 cf_add_1lib= 15445 break 15446 fi 15447 done 15448 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15449done 15450LIBS="$cf_add_libs" 15451 15452cat >>confdefs.h <<\EOF 15453#define HAVE_LIBPTHREADS 1 15454EOF 15455 15456 else 15457 { { echo "$as_me:15454: error: Cannot link with pthread library" >&5 15458echo "$as_me: error: Cannot link with pthread library" >&2;} 15459 { (exit 1); exit 1; }; } 15460 fi 15461 15462fi 15463 15464fi 15465 15466if test "x$with_pthread" != xno; then 15467 echo "$as_me:15464: checking for pthread_kill" >&5 15468echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6 15469if test "${ac_cv_func_pthread_kill+set}" = set; then 15470 echo $ECHO_N "(cached) $ECHO_C" >&6 15471else 15472 cat >"conftest.$ac_ext" <<_ACEOF 15473#line 15470 "configure" 15474#include "confdefs.h" 15475#define pthread_kill autoconf_temporary 15476#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 15477#undef pthread_kill 15478 15479#ifdef __cplusplus 15480extern "C" 15481#endif 15482 15483/* We use char because int might match the return type of a gcc2 15484 builtin and then its argument prototype would still apply. */ 15485char pthread_kill (void); 15486 15487int 15488main (void) 15489{ 15490 15491/* The GNU C library defines stubs for functions which it implements 15492 to always fail with ENOSYS. Some functions are actually named 15493 something starting with __ and the normal name is an alias. */ 15494#if defined (__stub_pthread_kill) || defined (__stub___pthread_kill) 15495#error found stub for pthread_kill 15496#endif 15497 15498 return pthread_kill (); 15499 ; 15500 return 0; 15501} 15502_ACEOF 15503rm -f "conftest.$ac_objext" "conftest$ac_exeext" 15504if { (eval echo "$as_me:15501: \"$ac_link\"") >&5 15505 (eval $ac_link) 2>&5 15506 ac_status=$? 15507 echo "$as_me:15504: \$? = $ac_status" >&5 15508 (exit "$ac_status"); } && 15509 { ac_try='test -s "conftest$ac_exeext"' 15510 { (eval echo "$as_me:15507: \"$ac_try\"") >&5 15511 (eval $ac_try) 2>&5 15512 ac_status=$? 15513 echo "$as_me:15510: \$? = $ac_status" >&5 15514 (exit "$ac_status"); }; }; then 15515 ac_cv_func_pthread_kill=yes 15516else 15517 echo "$as_me: failed program was:" >&5 15518cat "conftest.$ac_ext" >&5 15519ac_cv_func_pthread_kill=no 15520fi 15521rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 15522fi 15523echo "$as_me:15520: result: $ac_cv_func_pthread_kill" >&5 15524echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6 15525if test "$ac_cv_func_pthread_kill" = yes; then 15526 15527 echo "$as_me:15524: checking if you want to allow EINTR in wgetch with pthreads" >&5 15528echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6 15529 15530# Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given. 15531if test "${enable_pthreads_eintr+set}" = set; then 15532 enableval="$enable_pthreads_eintr" 15533 use_pthreads_eintr=$enableval 15534else 15535 use_pthreads_eintr=no 15536fi; 15537 echo "$as_me:15534: result: $use_pthreads_eintr" >&5 15538echo "${ECHO_T}$use_pthreads_eintr" >&6 15539 if test "x$use_pthreads_eintr" = xyes ; then 15540 15541cat >>confdefs.h <<\EOF 15542#define USE_PTHREADS_EINTR 1 15543EOF 15544 15545 fi 15546fi 15547 15548 echo "$as_me:15545: checking if you want to use weak-symbols for pthreads" >&5 15549echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6 15550 15551# Check whether --enable-weak-symbols or --disable-weak-symbols was given. 15552if test "${enable_weak_symbols+set}" = set; then 15553 enableval="$enable_weak_symbols" 15554 use_weak_symbols=$enableval 15555else 15556 use_weak_symbols=no 15557fi; 15558 echo "$as_me:15555: result: $use_weak_symbols" >&5 15559echo "${ECHO_T}$use_weak_symbols" >&6 15560 if test "x$use_weak_symbols" = xyes ; then 15561 15562echo "$as_me:15559: checking if $CC supports weak symbols" >&5 15563echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6 15564if test "${cf_cv_weak_symbols+set}" = set; then 15565 echo $ECHO_N "(cached) $ECHO_C" >&6 15566else 15567 15568cat >"conftest.$ac_ext" <<_ACEOF 15569#line 15566 "configure" 15570#include "confdefs.h" 15571 15572#include <stdio.h> 15573int 15574main (void) 15575{ 15576 15577#if defined(__GNUC__) 15578# if defined __USE_ISOC99 15579# define _cat_pragma(exp) _Pragma(#exp) 15580# define _weak_pragma(exp) _cat_pragma(weak name) 15581# else 15582# define _weak_pragma(exp) 15583# endif 15584# define _declare(name) __extension__ extern __typeof__(name) name 15585# define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak)) 15586#endif 15587 15588weak_symbol(fopen); 15589 15590 ; 15591 return 0; 15592} 15593_ACEOF 15594rm -f "conftest.$ac_objext" 15595if { (eval echo "$as_me:15592: \"$ac_compile\"") >&5 15596 (eval $ac_compile) 2>&5 15597 ac_status=$? 15598 echo "$as_me:15595: \$? = $ac_status" >&5 15599 (exit "$ac_status"); } && 15600 { ac_try='test -s "conftest.$ac_objext"' 15601 { (eval echo "$as_me:15598: \"$ac_try\"") >&5 15602 (eval $ac_try) 2>&5 15603 ac_status=$? 15604 echo "$as_me:15601: \$? = $ac_status" >&5 15605 (exit "$ac_status"); }; }; then 15606 cf_cv_weak_symbols=yes 15607else 15608 echo "$as_me: failed program was:" >&5 15609cat "conftest.$ac_ext" >&5 15610cf_cv_weak_symbols=no 15611fi 15612rm -f "conftest.$ac_objext" "conftest.$ac_ext" 15613 15614fi 15615echo "$as_me:15612: result: $cf_cv_weak_symbols" >&5 15616echo "${ECHO_T}$cf_cv_weak_symbols" >&6 15617 15618 else 15619 cf_cv_weak_symbols=no 15620 fi 15621 15622 if test "x$cf_cv_weak_symbols" = xyes ; then 15623 15624cat >>confdefs.h <<\EOF 15625#define USE_WEAK_SYMBOLS 1 15626EOF 15627 15628 fi 15629fi 15630 15631PTHREAD= 15632if test "x$with_pthread" = "xyes" ; then 15633 15634cat >>confdefs.h <<\EOF 15635#define USE_PTHREADS 1 15636EOF 15637 15638 enable_reentrant=yes 15639 if test "x$cf_cv_weak_symbols" = xyes ; then 15640 PTHREAD=-lpthread 15641 15642cf_add_libs="$PRIVATE_LIBS" 15643# reverse order 15644cf_add_0lib= 15645for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15646# filter duplicates 15647for cf_add_1lib in $cf_add_0lib; do 15648 for cf_add_2lib in $cf_add_libs; do 15649 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15650 cf_add_1lib= 15651 break 15652 fi 15653 done 15654 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15655done 15656PRIVATE_LIBS="$cf_add_libs" 15657 15658 fi 15659fi 15660 15661# Reentrant code has to be opaque; there's little advantage to making ncurses 15662# opaque outside of that, so there is no --enable-opaque option. We can use 15663# this option without --with-pthreads, but this will be always set for 15664# pthreads. 15665echo "$as_me:15662: checking if you want reentrant code" >&5 15666echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6 15667 15668# Check whether --enable-reentrant or --disable-reentrant was given. 15669if test "${enable_reentrant+set}" = set; then 15670 enableval="$enable_reentrant" 15671 with_reentrant=$enableval 15672else 15673 with_reentrant=no 15674fi; 15675echo "$as_me:15672: result: $with_reentrant" >&5 15676echo "${ECHO_T}$with_reentrant" >&6 15677if test "x$with_reentrant" = xyes ; then 15678 cf_cv_enable_reentrant=1 15679 cf_cv_enable_opaque="NCURSES_INTERNALS" 15680 NCURSES_SIZE_T=int 15681 if test "x$cf_cv_weak_symbols" = xyes ; then 15682 15683# remove pthread library from $LIBS 15684LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'` 15685 15686cf_add_libs="$TEST_LIBS" 15687# reverse order 15688cf_add_0lib= 15689for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15690# filter duplicates 15691for cf_add_1lib in $cf_add_0lib; do 15692 for cf_add_2lib in $cf_add_libs; do 15693 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15694 cf_add_1lib= 15695 break 15696 fi 15697 done 15698 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15699done 15700TEST_LIBS="$cf_add_libs" 15701 15702cf_add_libs="$TEST_LIBS2" 15703# reverse order 15704cf_add_0lib= 15705for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15706# filter duplicates 15707for cf_add_1lib in $cf_add_0lib; do 15708 for cf_add_2lib in $cf_add_libs; do 15709 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15710 cf_add_1lib= 15711 break 15712 fi 15713 done 15714 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15715done 15716TEST_LIBS2="$cf_add_libs" 15717 15718cf_add_libs="$PRIVATE_LIBS" 15719# reverse order 15720cf_add_0lib= 15721for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 15722# filter duplicates 15723for cf_add_1lib in $cf_add_0lib; do 15724 for cf_add_2lib in $cf_add_libs; do 15725 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 15726 cf_add_1lib= 15727 break 15728 fi 15729 done 15730 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 15731done 15732PRIVATE_LIBS="$cf_add_libs" 15733 15734 else 15735 # when not using weak symbols but with_reentrant, 15736 # add 't' to the library suffix on all platforms 15737 # except cygwin, where we only do that if ALSO 15738 # compiling with full thread support. 15739 case "$host" in 15740 (*cygwin* | *msys*) 15741 if test "$with_pthread" = "yes" ; then 15742 if test "x$disable_lib_suffixes" = "xno" ; then 15743 LIB_SUFFIX="t${LIB_SUFFIX}" 15744 fi 15745 fi ;; 15746 (*) 15747 if test "x$disable_lib_suffixes" = "xno" ; then 15748 LIB_SUFFIX="t${LIB_SUFFIX}" 15749 fi 15750 ;; 15751 esac 15752 fi 15753 15754cat >>confdefs.h <<\EOF 15755#define USE_REENTRANT 1 15756EOF 15757 15758if test "${with_abi_version+set}" != set; then 15759 case "$cf_cv_rel_version" in 15760 (5.*) 15761 cf_cv_rel_version=6.0 15762 cf_cv_abi_version=6 15763 { echo "$as_me:15760: WARNING: overriding ABI version to $cf_cv_abi_version" >&5 15764echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;} 15765 ;; 15766 esac 15767fi 15768 15769else 15770 cf_cv_enable_reentrant=0 15771 cf_cv_enable_opaque="NCURSES_OPAQUE" 15772 NCURSES_SIZE_T=short 15773fi 15774 15775echo "$as_me:15772: checking if you want opaque curses-library structures" >&5 15776echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6 15777 15778# Check whether --enable-opaque-curses or --disable-opaque-curses was given. 15779if test "${enable_opaque_curses+set}" = set; then 15780 enableval="$enable_opaque_curses" 15781 test "$enableval" != yes && enableval=no 15782 if test "$enableval" != "no" ; then 15783 enable_opaque_curses=yes 15784 else 15785 15786 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes 15787 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no 15788 15789 fi 15790else 15791 enableval=no 15792 15793 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes 15794 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no 15795 15796fi; 15797echo "$as_me:15794: result: $enable_opaque_curses" >&5 15798echo "${ECHO_T}$enable_opaque_curses" >&6 15799 15800test "$cf_cv_enable_reentrant" = 1 && \ 15801test "$enable_opaque_curses" = no && \ 15802{ { echo "$as_me:15799: error: reentrant configuration requires opaque library" >&5 15803echo "$as_me: error: reentrant configuration requires opaque library" >&2;} 15804 { (exit 1); exit 1; }; } 15805 15806echo "$as_me:15803: checking if you want opaque form-library structures" >&5 15807echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6 15808 15809# Check whether --enable-opaque-form or --disable-opaque-form was given. 15810if test "${enable_opaque_form+set}" = set; then 15811 enableval="$enable_opaque_form" 15812 enable_opaque_form=yes 15813else 15814 enable_opaque_form=no 15815fi; 15816echo "$as_me:15813: result: $enable_opaque_form" >&5 15817echo "${ECHO_T}$enable_opaque_form" >&6 15818 15819echo "$as_me:15816: checking if you want opaque menu-library structures" >&5 15820echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6 15821 15822# Check whether --enable-opaque-menu or --disable-opaque-menu was given. 15823if test "${enable_opaque_menu+set}" = set; then 15824 enableval="$enable_opaque_menu" 15825 enable_opaque_menu=yes 15826else 15827 enable_opaque_menu=no 15828fi; 15829echo "$as_me:15826: result: $enable_opaque_menu" >&5 15830echo "${ECHO_T}$enable_opaque_menu" >&6 15831 15832echo "$as_me:15829: checking if you want opaque panel-library structures" >&5 15833echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6 15834 15835# Check whether --enable-opaque-panel or --disable-opaque-panel was given. 15836if test "${enable_opaque_panel+set}" = set; then 15837 enableval="$enable_opaque_panel" 15838 enable_opaque_panel=yes 15839else 15840 enable_opaque_panel=no 15841fi; 15842echo "$as_me:15839: result: $enable_opaque_panel" >&5 15843echo "${ECHO_T}$enable_opaque_panel" >&6 15844 15845NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1 15846NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1 15847NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1 15848NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1 15849 15850### Allow using a different wrap-prefix 15851if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then 15852 echo "$as_me:15849: checking for prefix used to wrap public variables" >&5 15853echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6 15854 15855# Check whether --with-wrap-prefix or --without-wrap-prefix was given. 15856if test "${with_wrap_prefix+set}" = set; then 15857 withval="$with_wrap_prefix" 15858 NCURSES_WRAP_PREFIX=$withval 15859else 15860 NCURSES_WRAP_PREFIX=_nc_ 15861fi; 15862 echo "$as_me:15859: result: $NCURSES_WRAP_PREFIX" >&5 15863echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6 15864else 15865 NCURSES_WRAP_PREFIX=_nc_ 15866fi 15867 15868cat >>confdefs.h <<EOF 15869#define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX" 15870EOF 15871 15872############################################################################### 15873# These options are relatively safe to experiment with. 15874 15875echo "$as_me:15872: checking if you want all development code" >&5 15876echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6 15877 15878# Check whether --with-develop or --without-develop was given. 15879if test "${with_develop+set}" = set; then 15880 withval="$with_develop" 15881 with_develop=$withval 15882else 15883 with_develop=no 15884fi; 15885echo "$as_me:15882: result: $with_develop" >&5 15886echo "${ECHO_T}$with_develop" >&6 15887 15888### use option --enable-hard-tabs to turn on use of hard-tabs optimize 15889echo "$as_me:15886: checking if you want hard-tabs code" >&5 15890echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6 15891 15892# Check whether --enable-hard-tabs or --disable-hard-tabs was given. 15893if test "${enable_hard_tabs+set}" = set; then 15894 enableval="$enable_hard_tabs" 15895 15896else 15897 enable_hard_tabs=$with_develop 15898fi; 15899echo "$as_me:15896: result: $enable_hard_tabs" >&5 15900echo "${ECHO_T}$enable_hard_tabs" >&6 15901test "x$enable_hard_tabs" = xyes && 15902cat >>confdefs.h <<\EOF 15903#define USE_HARD_TABS 1 15904EOF 15905 15906### use option --enable-xmc-glitch to turn on use of magic-cookie optimize 15907echo "$as_me:15904: checking if you want limited support for xmc" >&5 15908echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6 15909 15910# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given. 15911if test "${enable_xmc_glitch+set}" = set; then 15912 enableval="$enable_xmc_glitch" 15913 15914else 15915 enable_xmc_glitch=$with_develop 15916fi; 15917echo "$as_me:15914: result: $enable_xmc_glitch" >&5 15918echo "${ECHO_T}$enable_xmc_glitch" >&6 15919test "x$enable_xmc_glitch" = xyes && 15920cat >>confdefs.h <<\EOF 15921#define USE_XMC_SUPPORT 1 15922EOF 15923 15924############################################################################### 15925# These are just experimental, probably should not be in a package: 15926 15927echo "$as_me:15924: checking if you do not want to assume colors are white-on-black" >&5 15928echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6 15929 15930# Check whether --enable-assumed-color or --disable-assumed-color was given. 15931if test "${enable_assumed_color+set}" = set; then 15932 enableval="$enable_assumed_color" 15933 with_assumed_color=$enableval 15934else 15935 with_assumed_color=yes 15936fi; 15937echo "$as_me:15934: result: $with_assumed_color" >&5 15938echo "${ECHO_T}$with_assumed_color" >&6 15939test "x$with_assumed_color" = xyes && 15940cat >>confdefs.h <<\EOF 15941#define USE_ASSUMED_COLOR 1 15942EOF 15943 15944### use option --enable-hashmap to turn on use of hashmap scrolling logic 15945echo "$as_me:15942: checking if you want hashmap scrolling-optimization code" >&5 15946echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6 15947 15948# Check whether --enable-hashmap or --disable-hashmap was given. 15949if test "${enable_hashmap+set}" = set; then 15950 enableval="$enable_hashmap" 15951 with_hashmap=$enableval 15952else 15953 with_hashmap=yes 15954fi; 15955echo "$as_me:15952: result: $with_hashmap" >&5 15956echo "${ECHO_T}$with_hashmap" >&6 15957test "x$with_hashmap" = xyes && 15958cat >>confdefs.h <<\EOF 15959#define USE_HASHMAP 1 15960EOF 15961 15962### use option --enable-colorfgbg to turn on use of $COLORFGBG environment 15963echo "$as_me:15960: checking if you want colorfgbg code" >&5 15964echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6 15965 15966# Check whether --enable-colorfgbg or --disable-colorfgbg was given. 15967if test "${enable_colorfgbg+set}" = set; then 15968 enableval="$enable_colorfgbg" 15969 with_colorfgbg=$enableval 15970else 15971 with_colorfgbg=no 15972fi; 15973echo "$as_me:15970: result: $with_colorfgbg" >&5 15974echo "${ECHO_T}$with_colorfgbg" >&6 15975test "x$with_colorfgbg" = xyes && 15976cat >>confdefs.h <<\EOF 15977#define USE_COLORFGBG 1 15978EOF 15979 15980### use option --enable-fvisibility to turn on use of gcc-specific feature 15981echo "$as_me:15978: checking if you want to use gcc -fvisibility option" >&5 15982echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6 15983 15984# Check whether --enable-fvisibility or --disable-fvisibility was given. 15985if test "${enable_fvisibility+set}" = set; then 15986 enableval="$enable_fvisibility" 15987 cf_with_fvisibility=$enableval 15988else 15989 cf_with_fvisibility=no 15990fi; 15991echo "$as_me:15988: result: $cf_with_fvisibility" >&5 15992echo "${ECHO_T}$cf_with_fvisibility" >&6 15993 15994NCURSES_IMPEXP= 15995NCURSES_CXX_IMPEXP= 15996if test "x$cf_with_fvisibility" = xyes; then 15997 15998echo "$as_me:15995: checking if $CC -fvisibility=hidden option works" >&5 15999echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6 16000if test "${cf_cv_fvisibility_hidden+set}" = set; then 16001 echo $ECHO_N "(cached) $ECHO_C" >&6 16002else 16003 16004 cf_save_cflags="$CFLAGS" 16005 CFLAGS="$CFLAGS -fvisibility=hidden" 16006 cat >"conftest.$ac_ext" <<_ACEOF 16007#line 16004 "configure" 16008#include "confdefs.h" 16009 16010__attribute__ ((visibility("default"))) int somefunc() {return 42;} 16011 16012int 16013main (void) 16014{ 16015 16016 if (somefunc()) return 1; 16017 16018 ; 16019 return 0; 16020} 16021_ACEOF 16022rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16023if { (eval echo "$as_me:16020: \"$ac_link\"") >&5 16024 (eval $ac_link) 2>&5 16025 ac_status=$? 16026 echo "$as_me:16023: \$? = $ac_status" >&5 16027 (exit "$ac_status"); } && 16028 { ac_try='test -s "conftest$ac_exeext"' 16029 { (eval echo "$as_me:16026: \"$ac_try\"") >&5 16030 (eval $ac_try) 2>&5 16031 ac_status=$? 16032 echo "$as_me:16029: \$? = $ac_status" >&5 16033 (exit "$ac_status"); }; }; then 16034 cf_cv_fvisibility_hidden=yes 16035else 16036 echo "$as_me: failed program was:" >&5 16037cat "conftest.$ac_ext" >&5 16038cf_cv_fvisibility_hidden=no 16039fi 16040rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16041 CFLAGS=$cf_save_cflags 16042 16043fi 16044echo "$as_me:16041: result: $cf_cv_fvisibility_hidden" >&5 16045echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6 16046 16047 if test "x$cf_cv_fvisibility_hidden" = xyes 16048 then 16049 16050cf_fix_cppflags=no 16051cf_new_cflags= 16052cf_new_cppflags= 16053cf_new_extra_cppflags= 16054 16055for cf_add_cflags in -fvisibility=hidden 16056do 16057case "$cf_fix_cppflags" in 16058(no) 16059 case "$cf_add_cflags" in 16060 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 16061 case "$cf_add_cflags" in 16062 (-D*) 16063 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 16064 16065 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16066 && test -z "${cf_tst_cflags}" \ 16067 && cf_fix_cppflags=yes 16068 16069 if test "$cf_fix_cppflags" = yes ; then 16070 16071 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16072 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16073 16074 continue 16075 elif test "${cf_tst_cflags}" = "\"'" ; then 16076 16077 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16078 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16079 16080 continue 16081 fi 16082 ;; 16083 esac 16084 case "$CPPFLAGS" in 16085 (*$cf_add_cflags) 16086 ;; 16087 (*) 16088 case "$cf_add_cflags" in 16089 (-D*) 16090 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 16091 16092CPPFLAGS=`echo "$CPPFLAGS" | \ 16093 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 16094 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 16095 16096 ;; 16097 esac 16098 16099 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 16100 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 16101 16102 ;; 16103 esac 16104 ;; 16105 (*) 16106 16107 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 16108 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 16109 16110 ;; 16111 esac 16112 ;; 16113(yes) 16114 16115 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16116 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16117 16118 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 16119 16120 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16121 && test -z "${cf_tst_cflags}" \ 16122 && cf_fix_cppflags=no 16123 ;; 16124esac 16125done 16126 16127if test -n "$cf_new_cflags" ; then 16128 16129 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 16130 CFLAGS="${CFLAGS}$cf_new_cflags" 16131 16132fi 16133 16134if test -n "$cf_new_cppflags" ; then 16135 16136 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16137 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 16138 16139fi 16140 16141if test -n "$cf_new_extra_cppflags" ; then 16142 16143 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 16144 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 16145 16146fi 16147 16148 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))" 16149 fi 16150 if test -n "$CXX" 16151 then 16152 ac_ext=cc 16153ac_cpp='$CXXCPP $CPPFLAGS' 16154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 16155ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 16156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16157ac_main_return="return" 16158 16159echo "$as_me:16156: checking if $CXX -fvisibility=hidden option works" >&5 16160echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6 16161if test "${cf_cv_fvisibility_hidden2+set}" = set; then 16162 echo $ECHO_N "(cached) $ECHO_C" >&6 16163else 16164 16165 cf_save_cflags="$CXXFLAGS" 16166 CXXFLAGS="$CXXFLAGS -fvisibility=hidden" 16167 cat >"conftest.$ac_ext" <<_ACEOF 16168#line 16165 "configure" 16169#include "confdefs.h" 16170 16171__attribute__ ((visibility("default"))) int somefunc() {return 42;} 16172 16173int 16174main (void) 16175{ 16176 16177 if (somefunc()) return 1; 16178 16179 ; 16180 return 0; 16181} 16182_ACEOF 16183rm -f "conftest.$ac_objext" "conftest$ac_exeext" 16184if { (eval echo "$as_me:16181: \"$ac_link\"") >&5 16185 (eval $ac_link) 2>&5 16186 ac_status=$? 16187 echo "$as_me:16184: \$? = $ac_status" >&5 16188 (exit "$ac_status"); } && 16189 { ac_try='test -s "conftest$ac_exeext"' 16190 { (eval echo "$as_me:16187: \"$ac_try\"") >&5 16191 (eval $ac_try) 2>&5 16192 ac_status=$? 16193 echo "$as_me:16190: \$? = $ac_status" >&5 16194 (exit "$ac_status"); }; }; then 16195 cf_cv_fvisibility_hidden2=yes 16196else 16197 echo "$as_me: failed program was:" >&5 16198cat "conftest.$ac_ext" >&5 16199cf_cv_fvisibility_hidden2=no 16200fi 16201rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 16202 CXXFLAGS=$cf_save_cflags 16203 16204fi 16205echo "$as_me:16202: result: $cf_cv_fvisibility_hidden2" >&5 16206echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6 16207 16208 if test "x$cf_cv_fvisibility_hidden2" = xyes 16209 then 16210 16211cf_save_CXXFLAGS="$CFLAGS" 16212CFLAGS="$CXXFLAGS" 16213 16214cf_fix_cppflags=no 16215cf_new_cflags= 16216cf_new_cppflags= 16217cf_new_extra_cppflags= 16218 16219for cf_add_cflags in -fvisibility=hidden 16220do 16221case "$cf_fix_cppflags" in 16222(no) 16223 case "$cf_add_cflags" in 16224 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 16225 case "$cf_add_cflags" in 16226 (-D*) 16227 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 16228 16229 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16230 && test -z "${cf_tst_cflags}" \ 16231 && cf_fix_cppflags=yes 16232 16233 if test "$cf_fix_cppflags" = yes ; then 16234 16235 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16236 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16237 16238 continue 16239 elif test "${cf_tst_cflags}" = "\"'" ; then 16240 16241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16243 16244 continue 16245 fi 16246 ;; 16247 esac 16248 case "$CPPFLAGS" in 16249 (*$cf_add_cflags) 16250 ;; 16251 (*) 16252 case "$cf_add_cflags" in 16253 (-D*) 16254 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 16255 16256CPPFLAGS=`echo "$CPPFLAGS" | \ 16257 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 16258 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 16259 16260 ;; 16261 esac 16262 16263 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 16264 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 16265 16266 ;; 16267 esac 16268 ;; 16269 (*) 16270 16271 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 16272 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 16273 16274 ;; 16275 esac 16276 ;; 16277(yes) 16278 16279 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 16280 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 16281 16282 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 16283 16284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 16285 && test -z "${cf_tst_cflags}" \ 16286 && cf_fix_cppflags=no 16287 ;; 16288esac 16289done 16290 16291if test -n "$cf_new_cflags" ; then 16292 16293 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 16294 CFLAGS="${CFLAGS}$cf_new_cflags" 16295 16296fi 16297 16298if test -n "$cf_new_cppflags" ; then 16299 16300 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16301 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 16302 16303fi 16304 16305if test -n "$cf_new_extra_cppflags" ; then 16306 16307 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 16308 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 16309 16310fi 16311 16312CXXFLAGS="$CFLAGS" 16313CFLAGS="$cf_save_CXXFLAGS" 16314 16315 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))" 16316 fi 16317 ac_ext=c 16318ac_cpp='$CPP $CPPFLAGS' 16319ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 16320ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 16321ac_compiler_gnu=$ac_cv_c_compiler_gnu 16322ac_main_return="return" 16323 16324 fi 16325fi 16326 16327### use option --enable-interop to turn on use of bindings used for interop 16328echo "$as_me:16325: checking if you want interop bindings" >&5 16329echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6 16330 16331# Check whether --enable-interop or --disable-interop was given. 16332if test "${enable_interop+set}" = set; then 16333 enableval="$enable_interop" 16334 with_exp_interop=$enableval 16335else 16336 with_exp_interop=$cf_dft_interop 16337fi; 16338echo "$as_me:16335: result: $with_exp_interop" >&5 16339echo "${ECHO_T}$with_exp_interop" >&6 16340 16341NCURSES_INTEROP_FUNCS=0 16342test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1 16343 16344echo "$as_me:16341: checking if you want experimental safe-sprintf code" >&5 16345echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6 16346 16347# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given. 16348if test "${enable_safe_sprintf+set}" = set; then 16349 enableval="$enable_safe_sprintf" 16350 with_safe_sprintf=$enableval 16351else 16352 with_safe_sprintf=no 16353fi; 16354echo "$as_me:16351: result: $with_safe_sprintf" >&5 16355echo "${ECHO_T}$with_safe_sprintf" >&6 16356 16357### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic 16358# when hashmap is used scroll hints are useless 16359if test "$with_hashmap" = no ; then 16360echo "$as_me:16357: checking if you want to experiment without scrolling-hints code" >&5 16361echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6 16362 16363# Check whether --enable-scroll-hints or --disable-scroll-hints was given. 16364if test "${enable_scroll_hints+set}" = set; then 16365 enableval="$enable_scroll_hints" 16366 with_scroll_hints=$enableval 16367else 16368 with_scroll_hints=yes 16369fi; 16370echo "$as_me:16367: result: $with_scroll_hints" >&5 16371echo "${ECHO_T}$with_scroll_hints" >&6 16372test "x$with_scroll_hints" = xyes && 16373cat >>confdefs.h <<\EOF 16374#define USE_SCROLL_HINTS 1 16375EOF 16376 16377fi 16378 16379echo "$as_me:16376: checking if you want wgetch-events code" >&5 16380echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6 16381 16382# Check whether --enable-wgetch-events or --disable-wgetch-events was given. 16383if test "${enable_wgetch_events+set}" = set; then 16384 enableval="$enable_wgetch_events" 16385 with_wgetch_events=$enableval 16386else 16387 with_wgetch_events=no 16388fi; 16389echo "$as_me:16386: result: $with_wgetch_events" >&5 16390echo "${ECHO_T}$with_wgetch_events" >&6 16391if test "x$with_wgetch_events" = xyes ; then 16392 16393cat >>confdefs.h <<\EOF 16394#define NCURSES_WGETCH_EVENTS 1 16395EOF 16396 16397 NCURSES_WGETCH_EVENTS=1 16398else 16399 NCURSES_WGETCH_EVENTS=0 16400fi 16401 16402case "$cf_cv_system_name" in 16403(*mingw32*|*mingw64*|*-msvc*) 16404 echo "$as_me:16401: checking if you want experimental-Windows driver" >&5 16405echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6 16406 16407# Check whether --enable-exp-win32 or --disable-exp-win32 was given. 16408if test "${enable_exp_win32+set}" = set; then 16409 enableval="$enable_exp_win32" 16410 with_exp_win32=$enableval 16411else 16412 with_exp_win32=no 16413fi; 16414 echo "$as_me:16411: result: $with_exp_win32" >&5 16415echo "${ECHO_T}$with_exp_win32" >&6 16416 if test "x$with_exp_win32" = xyes 16417 then 16418 16419cat >>confdefs.h <<\EOF 16420#define EXP_WIN32_DRIVER 1 16421EOF 16422 16423 EXP_WIN32_DRIVER=1 16424 INTERNALS_HDR='$(INCDIR)/nc_win32.h' 16425 else 16426 INTERNALS_HDR='$(INCDIR)/nc_mingw.h' 16427 EXP_WIN32_DRIVER=0 16428 fi 16429 ;; 16430(*) 16431 EXP_WIN32_DRIVER=0 16432 INTERNALS_HDR= 16433 ;; 16434esac 16435 16436############################################################################### 16437 16438### use option --disable-echo to suppress full display compiling commands 16439 16440echo "$as_me:16437: checking if you want to see long compiling messages" >&5 16441echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 16442 16443# Check whether --enable-echo or --disable-echo was given. 16444if test "${enable_echo+set}" = set; then 16445 enableval="$enable_echo" 16446 test "$enableval" != no && enableval=yes 16447 if test "$enableval" != "yes" ; then 16448 16449 ECHO_LT='--silent' 16450 ECHO_LD='@echo linking $@;' 16451 RULE_CC='@echo compiling $<' 16452 SHOW_CC='@echo compiling $@' 16453 ECHO_CC='@' 16454 16455 else 16456 16457 ECHO_LT='' 16458 ECHO_LD='' 16459 RULE_CC='' 16460 SHOW_CC='' 16461 ECHO_CC='' 16462 16463 fi 16464else 16465 enableval=yes 16466 16467 ECHO_LT='' 16468 ECHO_LD='' 16469 RULE_CC='' 16470 SHOW_CC='' 16471 ECHO_CC='' 16472 16473fi; 16474echo "$as_me:16471: result: $enableval" >&5 16475echo "${ECHO_T}$enableval" >&6 16476 16477if test "x$enable_echo" = xyes; then 16478 ECHO_LINK= 16479else 16480 ECHO_LINK='@ echo linking $@ ... ;' 16481 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent" 16482 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent" 16483fi 16484 16485# --disable-stripping is used for debugging 16486 16487echo "$as_me:16484: checking if you want to install stripped executables" >&5 16488echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6 16489 16490# Check whether --enable-stripping or --disable-stripping was given. 16491if test "${enable_stripping+set}" = set; then 16492 enableval="$enable_stripping" 16493 test "$enableval" != no && enableval=yes 16494 if test "$enableval" != "yes" ; then 16495 enable_stripping=no 16496 else 16497 enable_stripping=yes 16498 fi 16499else 16500 enableval=yes 16501 enable_stripping=yes 16502 16503fi; 16504echo "$as_me:16501: result: $enable_stripping" >&5 16505echo "${ECHO_T}$enable_stripping" >&6 16506 16507if test "$enable_stripping" = yes 16508then 16509 INSTALL_OPT_S="-s" 16510else 16511 INSTALL_OPT_S= 16512fi 16513 16514: "${INSTALL:=install}" 16515echo "$as_me:16512: checking if install accepts -p option" >&5 16516echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6 16517if test "${cf_cv_install_p+set}" = set; then 16518 echo $ECHO_N "(cached) $ECHO_C" >&6 16519else 16520 16521 rm -rf ./conftest* 16522 date >conftest.in 16523 mkdir conftest.out 16524 sleep 3 16525 if $INSTALL -p conftest.in conftest.out 2>/dev/null 16526 then 16527 if test -f conftest.out/conftest.in 16528 then 16529 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \ 16530 test conftest.out/conftest.in -nt conftest.in 2>conftest.err 16531 if test -s conftest.err 16532 then 16533 cf_cv_install_p=no 16534 else 16535 cf_cv_install_p=yes 16536 fi 16537 else 16538 cf_cv_install_p=no 16539 fi 16540 else 16541 cf_cv_install_p=no 16542 fi 16543 rm -rf ./conftest* 16544 16545fi 16546echo "$as_me:16543: result: $cf_cv_install_p" >&5 16547echo "${ECHO_T}$cf_cv_install_p" >&6 16548 16549echo "$as_me:16546: checking if install needs to be told about ownership" >&5 16550echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6 16551case `$ac_config_guess` in 16552(*minix) 16553 with_install_o=yes 16554 ;; 16555(*) 16556 with_install_o=no 16557 ;; 16558esac 16559 16560echo "$as_me:16557: result: $with_install_o" >&5 16561echo "${ECHO_T}$with_install_o" >&6 16562if test "x$with_install_o" = xyes 16563then 16564 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'`" 16565else 16566 INSTALL_OPT_O= 16567fi 16568 16569# If we're avoiding relinking of shared libraries during install, that is to 16570# avoid modifying the build-tree. For the same reason, avoid doing ranlib if 16571# the install program has "-p" (for preserving timestamps). 16572cf_cv_do_reranlib=yes 16573if test "x$cf_cv_install_p" = xyes 16574then 16575 if test "x$cf_cv_do_relink" != xyes 16576 then 16577 cf_cv_do_reranlib=no 16578 INSTALL_OPT_P="-p" 16579 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P" 16580 fi 16581fi 16582 16583### use option --enable-warnings to turn on all gcc warnings 16584 16585echo "$as_me:16582: checking if you want to use C11 _Noreturn feature" >&5 16586echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6 16587 16588# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given. 16589if test "${enable_stdnoreturn+set}" = set; then 16590 enableval="$enable_stdnoreturn" 16591 test "$enableval" != yes && enableval=no 16592 if test "$enableval" != "no" ; then 16593 enable_stdnoreturn=yes 16594 else 16595 enable_stdnoreturn=no 16596 fi 16597else 16598 enableval=no 16599 enable_stdnoreturn=no 16600 16601fi; 16602echo "$as_me:16599: result: $enable_stdnoreturn" >&5 16603echo "${ECHO_T}$enable_stdnoreturn" >&6 16604 16605if test $enable_stdnoreturn = yes; then 16606echo "$as_me:16603: checking for C11 _Noreturn feature" >&5 16607echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6 16608if test "${cf_cv_c11_noreturn+set}" = set; then 16609 echo $ECHO_N "(cached) $ECHO_C" >&6 16610else 16611 cat >"conftest.$ac_ext" <<_ACEOF 16612#line 16609 "configure" 16613#include "confdefs.h" 16614 16615#include <stdio.h> 16616#include <stdlib.h> 16617#include <stdnoreturn.h> 16618static _Noreturn void giveup(void) { exit(0); } 16619 16620int 16621main (void) 16622{ 16623if (feof(stdin)) giveup() 16624 ; 16625 return 0; 16626} 16627_ACEOF 16628rm -f "conftest.$ac_objext" 16629if { (eval echo "$as_me:16626: \"$ac_compile\"") >&5 16630 (eval $ac_compile) 2>&5 16631 ac_status=$? 16632 echo "$as_me:16629: \$? = $ac_status" >&5 16633 (exit "$ac_status"); } && 16634 { ac_try='test -s "conftest.$ac_objext"' 16635 { (eval echo "$as_me:16632: \"$ac_try\"") >&5 16636 (eval $ac_try) 2>&5 16637 ac_status=$? 16638 echo "$as_me:16635: \$? = $ac_status" >&5 16639 (exit "$ac_status"); }; }; then 16640 cf_cv_c11_noreturn=yes 16641else 16642 echo "$as_me: failed program was:" >&5 16643cat "conftest.$ac_ext" >&5 16644cf_cv_c11_noreturn=no 16645fi 16646rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16647 16648fi 16649echo "$as_me:16646: result: $cf_cv_c11_noreturn" >&5 16650echo "${ECHO_T}$cf_cv_c11_noreturn" >&6 16651else 16652 cf_cv_c11_noreturn=no, 16653fi 16654 16655if test "$cf_cv_c11_noreturn" = yes; then 16656 16657cat >>confdefs.h <<\EOF 16658#define HAVE_STDNORETURN_H 1 16659EOF 16660 16661cat >>confdefs.h <<EOF 16662#define STDC_NORETURN _Noreturn 16663EOF 16664 16665 HAVE_STDNORETURN_H=1 16666else 16667 HAVE_STDNORETURN_H=0 16668fi 16669 16670if test "$GCC" = yes || test "$GXX" = yes 16671then 16672 16673if test "$GCC" = yes || test "$GXX" = yes 16674then 16675 case $CFLAGS in 16676 (*-Werror=*) 16677 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6 16678 16679echo "${as_me:-configure}:16676: testing repairing CFLAGS: $CFLAGS ..." 1>&5 16680 16681 cf_temp_flags= 16682 for cf_temp_scan in $CFLAGS 16683 do 16684 case "x$cf_temp_scan" in 16685 (x-Werror=*) 16686 16687 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16688 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16689 16690 ;; 16691 (*) 16692 16693 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16694 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16695 16696 ;; 16697 esac 16698 done 16699 CFLAGS="$cf_temp_flags" 16700 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6 16701 16702echo "${as_me:-configure}:16699: testing ... fixed $CFLAGS ..." 1>&5 16703 16704 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16705 16706echo "${as_me:-configure}:16703: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16707 16708 ;; 16709 esac 16710fi 16711 16712if test "$GCC" = yes || test "$GXX" = yes 16713then 16714 case $CPPFLAGS in 16715 (*-Werror=*) 16716 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6 16717 16718echo "${as_me:-configure}:16715: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5 16719 16720 cf_temp_flags= 16721 for cf_temp_scan in $CPPFLAGS 16722 do 16723 case "x$cf_temp_scan" in 16724 (x-Werror=*) 16725 16726 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16727 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16728 16729 ;; 16730 (*) 16731 16732 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16733 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16734 16735 ;; 16736 esac 16737 done 16738 CPPFLAGS="$cf_temp_flags" 16739 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6 16740 16741echo "${as_me:-configure}:16738: testing ... fixed $CPPFLAGS ..." 1>&5 16742 16743 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16744 16745echo "${as_me:-configure}:16742: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16746 16747 ;; 16748 esac 16749fi 16750 16751if test "$GCC" = yes || test "$GXX" = yes 16752then 16753 case $LDFLAGS in 16754 (*-Werror=*) 16755 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6 16756 16757echo "${as_me:-configure}:16754: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5 16758 16759 cf_temp_flags= 16760 for cf_temp_scan in $LDFLAGS 16761 do 16762 case "x$cf_temp_scan" in 16763 (x-Werror=*) 16764 16765 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS " 16766 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan" 16767 16768 ;; 16769 (*) 16770 16771 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags " 16772 cf_temp_flags="${cf_temp_flags}$cf_temp_scan" 16773 16774 ;; 16775 esac 16776 done 16777 LDFLAGS="$cf_temp_flags" 16778 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6 16779 16780echo "${as_me:-configure}:16777: testing ... fixed $LDFLAGS ..." 1>&5 16781 16782 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6 16783 16784echo "${as_me:-configure}:16781: testing ... extra $EXTRA_CFLAGS ..." 1>&5 16785 16786 ;; 16787 esac 16788fi 16789 16790echo "$as_me:16787: checking if you want to turn on gcc warnings" >&5 16791echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 16792 16793# Check whether --enable-warnings or --disable-warnings was given. 16794if test "${enable_warnings+set}" = set; then 16795 enableval="$enable_warnings" 16796 test "$enableval" != yes && enableval=no 16797 if test "$enableval" != "no" ; then 16798 enable_warnings=yes 16799 else 16800 enable_warnings=no 16801 fi 16802else 16803 enableval=no 16804 enable_warnings=no 16805 16806fi; 16807echo "$as_me:16804: result: $enable_warnings" >&5 16808echo "${ECHO_T}$enable_warnings" >&6 16809if test "$enable_warnings" = "yes" 16810then 16811 16812if test "x$have_x" = xyes; then 16813 16814cf_save_LIBS_CF_CONST_X_STRING="$LIBS" 16815cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS" 16816cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS" 16817LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}" 16818for cf_X_CFLAGS in $X_CFLAGS 16819do 16820 case "x$cf_X_CFLAGS" in 16821 x-[IUD]*) 16822 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS" 16823 ;; 16824 *) 16825 CFLAGS="$CFLAGS $cf_X_CFLAGS" 16826 ;; 16827 esac 16828done 16829 16830cat >"conftest.$ac_ext" <<_ACEOF 16831#line 16828 "configure" 16832#include "confdefs.h" 16833 16834#include <stdlib.h> 16835#include <X11/Intrinsic.h> 16836 16837int 16838main (void) 16839{ 16840String foo = malloc(1); free((void*)foo) 16841 ; 16842 return 0; 16843} 16844_ACEOF 16845rm -f "conftest.$ac_objext" 16846if { (eval echo "$as_me:16843: \"$ac_compile\"") >&5 16847 (eval $ac_compile) 2>&5 16848 ac_status=$? 16849 echo "$as_me:16846: \$? = $ac_status" >&5 16850 (exit "$ac_status"); } && 16851 { ac_try='test -s "conftest.$ac_objext"' 16852 { (eval echo "$as_me:16849: \"$ac_try\"") >&5 16853 (eval $ac_try) 2>&5 16854 ac_status=$? 16855 echo "$as_me:16852: \$? = $ac_status" >&5 16856 (exit "$ac_status"); }; }; then 16857 16858echo "$as_me:16855: checking for X11/Xt const-feature" >&5 16859echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6 16860if test "${cf_cv_const_x_string+set}" = set; then 16861 echo $ECHO_N "(cached) $ECHO_C" >&6 16862else 16863 16864 cat >"conftest.$ac_ext" <<_ACEOF 16865#line 16862 "configure" 16866#include "confdefs.h" 16867 16868#define _CONST_X_STRING /* X11R7.8 (perhaps) */ 16869#undef XTSTRINGDEFINES /* X11R5 and later */ 16870#include <stdlib.h> 16871#include <X11/Intrinsic.h> 16872 16873int 16874main (void) 16875{ 16876String foo = malloc(1); *foo = 0 16877 ; 16878 return 0; 16879} 16880_ACEOF 16881rm -f "conftest.$ac_objext" 16882if { (eval echo "$as_me:16879: \"$ac_compile\"") >&5 16883 (eval $ac_compile) 2>&5 16884 ac_status=$? 16885 echo "$as_me:16882: \$? = $ac_status" >&5 16886 (exit "$ac_status"); } && 16887 { ac_try='test -s "conftest.$ac_objext"' 16888 { (eval echo "$as_me:16885: \"$ac_try\"") >&5 16889 (eval $ac_try) 2>&5 16890 ac_status=$? 16891 echo "$as_me:16888: \$? = $ac_status" >&5 16892 (exit "$ac_status"); }; }; then 16893 16894 cf_cv_const_x_string=no 16895 16896else 16897 echo "$as_me: failed program was:" >&5 16898cat "conftest.$ac_ext" >&5 16899 16900 cf_cv_const_x_string=yes 16901 16902fi 16903rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16904 16905fi 16906echo "$as_me:16903: result: $cf_cv_const_x_string" >&5 16907echo "${ECHO_T}$cf_cv_const_x_string" >&6 16908 16909LIBS="$cf_save_LIBS_CF_CONST_X_STRING" 16910CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING" 16911CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING" 16912 16913case "$cf_cv_const_x_string" in 16914(no) 16915 16916 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16917 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 16918 16919 ;; 16920(*) 16921 16922 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 16923 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING" 16924 16925 ;; 16926esac 16927 16928else 16929 echo "$as_me: failed program was:" >&5 16930cat "conftest.$ac_ext" >&5 16931fi 16932rm -f "conftest.$ac_objext" "conftest.$ac_ext" 16933 fi 16934cat > "conftest.$ac_ext" <<EOF 16935#line 16932 "${as_me:-configure}" 16936int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 16937EOF 16938if test "$INTEL_COMPILER" = yes 16939then 16940# The "-wdXXX" options suppress warnings: 16941# remark #1419: external declaration in primary source file 16942# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 16943# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 16944# remark #193: zero used for undefined preprocessing identifier 16945# remark #593: variable "curs_sb_left_arrow" was set but never used 16946# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 16947# remark #869: parameter "tw" was never referenced 16948# remark #981: operands are evaluated in unspecified order 16949# warning #279: controlling expression is constant 16950 16951 { echo "$as_me:16948: checking for $CC warning options..." >&5 16952echo "$as_me: checking for $CC warning options..." >&6;} 16953 cf_save_CFLAGS="$CFLAGS" 16954 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 16955 for cf_opt in \ 16956 wd1419 \ 16957 wd1683 \ 16958 wd1684 \ 16959 wd193 \ 16960 wd593 \ 16961 wd279 \ 16962 wd810 \ 16963 wd869 \ 16964 wd981 16965 do 16966 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 16967 if { (eval echo "$as_me:16964: \"$ac_compile\"") >&5 16968 (eval $ac_compile) 2>&5 16969 ac_status=$? 16970 echo "$as_me:16967: \$? = $ac_status" >&5 16971 (exit "$ac_status"); }; then 16972 test -n "$verbose" && echo "$as_me:16969: result: ... -$cf_opt" >&5 16973echo "${ECHO_T}... -$cf_opt" >&6 16974 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 16975 fi 16976 done 16977 CFLAGS="$cf_save_CFLAGS" 16978elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown" 16979then 16980 { echo "$as_me:16977: checking for $CC warning options..." >&5 16981echo "$as_me: checking for $CC warning options..." >&6;} 16982 cf_save_CFLAGS="$CFLAGS" 16983 cf_warn_CONST="" 16984 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 16985 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 16986 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 16987 for cf_opt in W Wall \ 16988 Wbad-function-cast \ 16989 Wcast-align \ 16990 Wcast-qual \ 16991 Wdeclaration-after-statement \ 16992 Wextra \ 16993 Winline \ 16994 Wmissing-declarations \ 16995 Wmissing-prototypes \ 16996 Wnested-externs \ 16997 Wpointer-arith \ 16998 Wshadow \ 16999 Wstrict-prototypes \ 17000 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum 17001 do 17002 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 17003 if { (eval echo "$as_me:17000: \"$ac_compile\"") >&5 17004 (eval $ac_compile) 2>&5 17005 ac_status=$? 17006 echo "$as_me:17003: \$? = $ac_status" >&5 17007 (exit "$ac_status"); }; then 17008 test -n "$verbose" && echo "$as_me:17005: result: ... -$cf_opt" >&5 17009echo "${ECHO_T}... -$cf_opt" >&6 17010 case "$cf_opt" in 17011 (Winline) 17012 case "$GCC_VERSION" in 17013 ([34].*) 17014 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 17015 17016echo "${as_me:-configure}:17013: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 17017 17018 continue;; 17019 esac 17020 ;; 17021 (Wpointer-arith) 17022 case "$GCC_VERSION" in 17023 ([12].*) 17024 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 17025 17026echo "${as_me:-configure}:17023: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 17027 17028 continue;; 17029 esac 17030 ;; 17031 esac 17032 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 17033 fi 17034 done 17035 CFLAGS="$cf_save_CFLAGS" 17036fi 17037rm -rf ./conftest* 17038 17039fi 17040 17041if test "$GCC" = yes || test "$GXX" = yes 17042then 17043cat > conftest.i <<EOF 17044#ifndef GCC_PRINTF 17045#define GCC_PRINTF 0 17046#endif 17047#ifndef GCC_SCANF 17048#define GCC_SCANF 0 17049#endif 17050#ifndef GCC_NORETURN 17051#define GCC_NORETURN /* nothing */ 17052#endif 17053#ifndef GCC_UNUSED 17054#define GCC_UNUSED /* nothing */ 17055#endif 17056EOF 17057if test "$GCC" = yes 17058then 17059 { echo "$as_me:17056: checking for $CC __attribute__ directives..." >&5 17060echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 17061cat > "conftest.$ac_ext" <<EOF 17062#line 17059 "${as_me:-configure}" 17063#include "confdefs.h" 17064#include "conftest.h" 17065#include "conftest.i" 17066#if GCC_PRINTF 17067#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 17068#else 17069#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 17070#endif 17071#if GCC_SCANF 17072#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 17073#else 17074#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 17075#endif 17076extern void wow(char *,...) GCC_SCANFLIKE(1,2); 17077extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2); 17078extern GCC_NORETURN void foo(void); 17079int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; } 17080EOF 17081 cf_printf_attribute=no 17082 cf_scanf_attribute=no 17083 for cf_attribute in scanf printf unused noreturn 17084 do 17085 17086cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 17087 17088 cf_directive="__attribute__(($cf_attribute))" 17089 echo "checking for $CC $cf_directive" 1>&5 17090 17091 case "$cf_attribute" in 17092 (printf) 17093 cf_printf_attribute=yes 17094 cat >conftest.h <<EOF 17095#define GCC_$cf_ATTRIBUTE 1 17096EOF 17097 ;; 17098 (scanf) 17099 cf_scanf_attribute=yes 17100 cat >conftest.h <<EOF 17101#define GCC_$cf_ATTRIBUTE 1 17102EOF 17103 ;; 17104 (*) 17105 cat >conftest.h <<EOF 17106#define GCC_$cf_ATTRIBUTE $cf_directive 17107EOF 17108 ;; 17109 esac 17110 17111 if { (eval echo "$as_me:17108: \"$ac_compile\"") >&5 17112 (eval $ac_compile) 2>&5 17113 ac_status=$? 17114 echo "$as_me:17111: \$? = $ac_status" >&5 17115 (exit "$ac_status"); }; then 17116 test -n "$verbose" && echo "$as_me:17113: result: ... $cf_attribute" >&5 17117echo "${ECHO_T}... $cf_attribute" >&6 17118 cat conftest.h >>confdefs.h 17119 case "$cf_attribute" in 17120 (noreturn) 17121 17122cat >>confdefs.h <<EOF 17123#define GCC_NORETURN $cf_directive 17124EOF 17125 17126 ;; 17127 (printf) 17128 cf_value='/* nothing */' 17129 if test "$cf_printf_attribute" != no ; then 17130 cf_value='__attribute__((format(printf,fmt,var)))' 17131 17132cat >>confdefs.h <<\EOF 17133#define GCC_PRINTF 1 17134EOF 17135 17136 fi 17137 17138cat >>confdefs.h <<EOF 17139#define GCC_PRINTFLIKE(fmt,var) $cf_value 17140EOF 17141 17142 ;; 17143 (scanf) 17144 cf_value='/* nothing */' 17145 if test "$cf_scanf_attribute" != no ; then 17146 cf_value='__attribute__((format(scanf,fmt,var)))' 17147 17148cat >>confdefs.h <<\EOF 17149#define GCC_SCANF 1 17150EOF 17151 17152 fi 17153 17154cat >>confdefs.h <<EOF 17155#define GCC_SCANFLIKE(fmt,var) $cf_value 17156EOF 17157 17158 ;; 17159 (unused) 17160 17161cat >>confdefs.h <<EOF 17162#define GCC_UNUSED $cf_directive 17163EOF 17164 17165 ;; 17166 esac 17167 fi 17168 done 17169else 17170 ${FGREP-fgrep} define conftest.i >>confdefs.h 17171fi 17172rm -rf ./conftest* 17173fi 17174 17175fi 17176 17177if test "x$enable_warnings" = "xyes"; then 17178 17179 ADAFLAGS="$ADAFLAGS -gnatg" 17180 17181 if test "x$cf_with_cxx" = xyes ; then 17182 17183INTEL_CPLUSPLUS=no 17184 17185if test "$GCC" = yes ; then 17186 case "$host_os" in 17187 (linux*|gnu*) 17188 echo "$as_me:17185: checking if this is really Intel C++ compiler" >&5 17189echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6 17190 cf_save_CFLAGS="$CXXFLAGS" 17191 CXXFLAGS="$CXXFLAGS -no-gcc" 17192 cat >"conftest.$ac_ext" <<_ACEOF 17193#line 17190 "configure" 17194#include "confdefs.h" 17195 17196int 17197main (void) 17198{ 17199 17200#ifdef __INTEL_COMPILER 17201#else 17202make an error 17203#endif 17204 17205 ; 17206 return 0; 17207} 17208_ACEOF 17209rm -f "conftest.$ac_objext" 17210if { (eval echo "$as_me:17207: \"$ac_compile\"") >&5 17211 (eval $ac_compile) 2>&5 17212 ac_status=$? 17213 echo "$as_me:17210: \$? = $ac_status" >&5 17214 (exit "$ac_status"); } && 17215 { ac_try='test -s "conftest.$ac_objext"' 17216 { (eval echo "$as_me:17213: \"$ac_try\"") >&5 17217 (eval $ac_try) 2>&5 17218 ac_status=$? 17219 echo "$as_me:17216: \$? = $ac_status" >&5 17220 (exit "$ac_status"); }; }; then 17221 INTEL_CPLUSPLUS=yes 17222cf_save_CFLAGS="$cf_save_CFLAGS -we147" 17223 17224else 17225 echo "$as_me: failed program was:" >&5 17226cat "conftest.$ac_ext" >&5 17227fi 17228rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17229 CXXFLAGS="$cf_save_CFLAGS" 17230 echo "$as_me:17227: result: $INTEL_CPLUSPLUS" >&5 17231echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6 17232 ;; 17233 esac 17234fi 17235 17236CLANG_CPLUSPLUS=no 17237 17238if test "$GCC" = yes ; then 17239 echo "$as_me:17236: checking if this is really Clang C++ compiler" >&5 17240echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6 17241 cf_save_CFLAGS="$CXXFLAGS" 17242 cat >"conftest.$ac_ext" <<_ACEOF 17243#line 17240 "configure" 17244#include "confdefs.h" 17245 17246int 17247main (void) 17248{ 17249 17250#ifdef __clang__ 17251#else 17252make an error 17253#endif 17254 17255 ; 17256 return 0; 17257} 17258_ACEOF 17259rm -f "conftest.$ac_objext" 17260if { (eval echo "$as_me:17257: \"$ac_compile\"") >&5 17261 (eval $ac_compile) 2>&5 17262 ac_status=$? 17263 echo "$as_me:17260: \$? = $ac_status" >&5 17264 (exit "$ac_status"); } && 17265 { ac_try='test -s "conftest.$ac_objext"' 17266 { (eval echo "$as_me:17263: \"$ac_try\"") >&5 17267 (eval $ac_try) 2>&5 17268 ac_status=$? 17269 echo "$as_me:17266: \$? = $ac_status" >&5 17270 (exit "$ac_status"); }; }; then 17271 CLANG_CPLUSPLUS=yes 17272 17273else 17274 echo "$as_me: failed program was:" >&5 17275cat "conftest.$ac_ext" >&5 17276fi 17277rm -f "conftest.$ac_objext" "conftest.$ac_ext" 17278 CXXFLAGS="$cf_save_CFLAGS" 17279 echo "$as_me:17276: result: $CLANG_CPLUSPLUS" >&5 17280echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6 17281fi 17282 17283CLANG_VERSION=none 17284 17285if test "x$CLANG_CPLUSPLUS" = "xyes" ; then 17286 case "$CC" in 17287 (c[1-9][0-9]|*/c[1-9][0-9]) 17288 { echo "$as_me:17285: WARNING: replacing broken compiler alias $CC" >&5 17289echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} 17290 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" 17291 CC=clang 17292 ;; 17293 esac 17294 17295 echo "$as_me:17292: checking version of $CC" >&5 17296echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 17297 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.].*//'`" 17298 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown 17299 echo "$as_me:17296: result: $CLANG_VERSION" >&5 17300echo "${ECHO_T}$CLANG_VERSION" >&6 17301 17302 for cf_clang_opt in \ 17303 -Qunused-arguments \ 17304 -Wno-error=implicit-function-declaration 17305 do 17306 echo "$as_me:17303: checking if option $cf_clang_opt works" >&5 17307echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 17308 cf_save_CFLAGS="$CFLAGS" 17309 CFLAGS="$CFLAGS $cf_clang_opt" 17310 cat >"conftest.$ac_ext" <<_ACEOF 17311#line 17308 "configure" 17312#include "confdefs.h" 17313 17314 #include <stdio.h> 17315int 17316main (void) 17317{ 17318 17319 printf("hello!\\n"); 17320 ; 17321 return 0; 17322} 17323_ACEOF 17324rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17325if { (eval echo "$as_me:17322: \"$ac_link\"") >&5 17326 (eval $ac_link) 2>&5 17327 ac_status=$? 17328 echo "$as_me:17325: \$? = $ac_status" >&5 17329 (exit "$ac_status"); } && 17330 { ac_try='test -s "conftest$ac_exeext"' 17331 { (eval echo "$as_me:17328: \"$ac_try\"") >&5 17332 (eval $ac_try) 2>&5 17333 ac_status=$? 17334 echo "$as_me:17331: \$? = $ac_status" >&5 17335 (exit "$ac_status"); }; }; then 17336 17337 cf_clang_optok=yes 17338else 17339 echo "$as_me: failed program was:" >&5 17340cat "conftest.$ac_ext" >&5 17341 17342 cf_clang_optok=no 17343fi 17344rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17345 echo "$as_me:17342: result: $cf_clang_optok" >&5 17346echo "${ECHO_T}$cf_clang_optok" >&6 17347 CFLAGS="$cf_save_CFLAGS" 17348 if test "$cf_clang_optok" = yes; then 17349 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6 17350 17351echo "${as_me:-configure}:17348: testing adding option $cf_clang_opt ..." 1>&5 17352 17353 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17354 CFLAGS="${CFLAGS}$cf_clang_opt" 17355 17356 fi 17357 done 17358fi 17359 17360ac_ext=cc 17361ac_cpp='$CXXCPP $CPPFLAGS' 17362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 17363ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 17364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17365ac_main_return="return" 17366 17367cat > conftest.$ac_ext <<EOF 17368#line 17365 "configure" 17369int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 17370EOF 17371 17372if test "$INTEL_CPLUSPLUS" = yes 17373then 17374# The "-wdXXX" options suppress warnings: 17375# remark #1419: external declaration in primary source file 17376# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 17377# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 17378# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 17379# remark #193: zero used for undefined preprocessing identifier 17380# remark #593: variable "curs_sb_left_arrow" was set but never used 17381# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 17382# remark #869: parameter "tw" was never referenced 17383# remark #981: operands are evaluated in unspecified order 17384# warning #269: invalid format string conversion 17385 17386 { echo "$as_me:17383: checking for $CC warning options..." >&5 17387echo "$as_me: checking for $CC warning options..." >&6;} 17388 cf_save_CXXFLAGS="$CXXFLAGS" 17389 EXTRA_CXXFLAGS="-Wall" 17390 for cf_opt in \ 17391 wd1419 \ 17392 wd1682 \ 17393 wd1683 \ 17394 wd1684 \ 17395 wd193 \ 17396 wd279 \ 17397 wd593 \ 17398 wd810 \ 17399 wd869 \ 17400 wd981 17401 do 17402 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt" 17403 if { (eval echo "$as_me:17400: \"$ac_compile\"") >&5 17404 (eval $ac_compile) 2>&5 17405 ac_status=$? 17406 echo "$as_me:17403: \$? = $ac_status" >&5 17407 (exit "$ac_status"); }; then 17408 test -n "$verbose" && echo "$as_me:17405: result: ... -$cf_opt" >&5 17409echo "${ECHO_T}... -$cf_opt" >&6 17410 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 17411 fi 17412 done 17413 CXXFLAGS="$cf_save_CXXFLAGS" 17414 17415elif test "$GXX" = yes 17416then 17417 { echo "$as_me:17414: checking for $CXX warning options..." >&5 17418echo "$as_me: checking for $CXX warning options..." >&6;} 17419 cf_save_CXXFLAGS="$CXXFLAGS" 17420 EXTRA_CXXFLAGS="-W -Wall" 17421 cf_gxx_extra_warnings="" 17422 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings" 17423 case "$GXX_VERSION" in 17424 ([1-2].*) 17425 ;; 17426 (*) 17427 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++" 17428 ;; 17429 esac 17430 for cf_opt in \ 17431 Wabi \ 17432 fabi-version=0 \ 17433 Wextra \ 17434 Wignored-qualifiers \ 17435 Wlogical-op \ 17436 Woverloaded-virtual \ 17437 Wsign-promo \ 17438 Wsynth \ 17439 Wold-style-cast \ 17440 Wcast-align \ 17441 Wcast-qual \ 17442 Wpointer-arith \ 17443 Wshadow \ 17444 Wundef $cf_gxx_extra_warnings Wno-unused 17445 do 17446 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt" 17447 if { (eval echo "$as_me:17444: \"$ac_compile\"") >&5 17448 (eval $ac_compile) 2>&5 17449 ac_status=$? 17450 echo "$as_me:17447: \$? = $ac_status" >&5 17451 (exit "$ac_status"); }; then 17452 test -n "$verbose" && echo "$as_me:17449: result: ... -$cf_opt" >&5 17453echo "${ECHO_T}... -$cf_opt" >&6 17454 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt" 17455 else 17456 test -n "$verbose" && echo "$as_me:17453: result: ... no -$cf_opt" >&5 17457echo "${ECHO_T}... no -$cf_opt" >&6 17458 fi 17459 done 17460 CXXFLAGS="$cf_save_CXXFLAGS" 17461fi 17462 17463rm -rf ./conftest* 17464ac_ext=c 17465ac_cpp='$CPP $CPPFLAGS' 17466ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 17467ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 17468ac_compiler_gnu=$ac_cv_c_compiler_gnu 17469ac_main_return="return" 17470 17471 fi 17472fi 17473 17474echo "$as_me:17471: checking if you want to work around bogus compiler/loader warnings" >&5 17475echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6 17476 17477# Check whether --enable-string-hacks or --disable-string-hacks was given. 17478if test "${enable_string_hacks+set}" = set; then 17479 enableval="$enable_string_hacks" 17480 enable_string_hacks=$enableval 17481else 17482 enable_string_hacks=no 17483fi; 17484echo "$as_me:17481: result: $enable_string_hacks" >&5 17485echo "${ECHO_T}$enable_string_hacks" >&6 17486 17487if test "x$enable_string_hacks" = "xyes"; then 17488 17489cat >>confdefs.h <<\EOF 17490#define USE_STRING_HACKS 1 17491EOF 17492 17493 { echo "$as_me:17490: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5 17494echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;} 17495 echo "$as_me:17492: checking for strlcat" >&5 17496echo $ECHO_N "checking for strlcat... $ECHO_C" >&6 17497if test "${ac_cv_func_strlcat+set}" = set; then 17498 echo $ECHO_N "(cached) $ECHO_C" >&6 17499else 17500 cat >"conftest.$ac_ext" <<_ACEOF 17501#line 17498 "configure" 17502#include "confdefs.h" 17503#define strlcat autoconf_temporary 17504#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17505#undef strlcat 17506 17507#ifdef __cplusplus 17508extern "C" 17509#endif 17510 17511/* We use char because int might match the return type of a gcc2 17512 builtin and then its argument prototype would still apply. */ 17513char strlcat (void); 17514 17515int 17516main (void) 17517{ 17518 17519/* The GNU C library defines stubs for functions which it implements 17520 to always fail with ENOSYS. Some functions are actually named 17521 something starting with __ and the normal name is an alias. */ 17522#if defined (__stub_strlcat) || defined (__stub___strlcat) 17523#error found stub for strlcat 17524#endif 17525 17526 return strlcat (); 17527 ; 17528 return 0; 17529} 17530_ACEOF 17531rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17532if { (eval echo "$as_me:17529: \"$ac_link\"") >&5 17533 (eval $ac_link) 2>&5 17534 ac_status=$? 17535 echo "$as_me:17532: \$? = $ac_status" >&5 17536 (exit "$ac_status"); } && 17537 { ac_try='test -s "conftest$ac_exeext"' 17538 { (eval echo "$as_me:17535: \"$ac_try\"") >&5 17539 (eval $ac_try) 2>&5 17540 ac_status=$? 17541 echo "$as_me:17538: \$? = $ac_status" >&5 17542 (exit "$ac_status"); }; }; then 17543 ac_cv_func_strlcat=yes 17544else 17545 echo "$as_me: failed program was:" >&5 17546cat "conftest.$ac_ext" >&5 17547ac_cv_func_strlcat=no 17548fi 17549rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17550fi 17551echo "$as_me:17548: result: $ac_cv_func_strlcat" >&5 17552echo "${ECHO_T}$ac_cv_func_strlcat" >&6 17553if test "$ac_cv_func_strlcat" = yes; then 17554 17555cat >>confdefs.h <<\EOF 17556#define HAVE_STRLCAT 1 17557EOF 17558 17559else 17560 17561 echo "$as_me:17558: checking for strlcat in -lbsd" >&5 17562echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6 17563if test "${ac_cv_lib_bsd_strlcat+set}" = set; then 17564 echo $ECHO_N "(cached) $ECHO_C" >&6 17565else 17566 ac_check_lib_save_LIBS=$LIBS 17567LIBS="-lbsd $LIBS" 17568cat >"conftest.$ac_ext" <<_ACEOF 17569#line 17566 "configure" 17570#include "confdefs.h" 17571 17572/* Override any gcc2 internal prototype to avoid an error. */ 17573#ifdef __cplusplus 17574extern "C" 17575#endif 17576/* We use char because int might match the return type of a gcc2 17577 builtin and then its argument prototype would still apply. */ 17578char strlcat (); 17579int 17580main (void) 17581{ 17582strlcat (); 17583 ; 17584 return 0; 17585} 17586_ACEOF 17587rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17588if { (eval echo "$as_me:17585: \"$ac_link\"") >&5 17589 (eval $ac_link) 2>&5 17590 ac_status=$? 17591 echo "$as_me:17588: \$? = $ac_status" >&5 17592 (exit "$ac_status"); } && 17593 { ac_try='test -s "conftest$ac_exeext"' 17594 { (eval echo "$as_me:17591: \"$ac_try\"") >&5 17595 (eval $ac_try) 2>&5 17596 ac_status=$? 17597 echo "$as_me:17594: \$? = $ac_status" >&5 17598 (exit "$ac_status"); }; }; then 17599 ac_cv_lib_bsd_strlcat=yes 17600else 17601 echo "$as_me: failed program was:" >&5 17602cat "conftest.$ac_ext" >&5 17603ac_cv_lib_bsd_strlcat=no 17604fi 17605rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17606LIBS=$ac_check_lib_save_LIBS 17607fi 17608echo "$as_me:17605: result: $ac_cv_lib_bsd_strlcat" >&5 17609echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6 17610if test "$ac_cv_lib_bsd_strlcat" = yes; then 17611 17612cf_add_libs="$LIBS" 17613# reverse order 17614cf_add_0lib= 17615for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 17616# filter duplicates 17617for cf_add_1lib in $cf_add_0lib; do 17618 for cf_add_2lib in $cf_add_libs; do 17619 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 17620 cf_add_1lib= 17621 break 17622 fi 17623 done 17624 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 17625done 17626LIBS="$cf_add_libs" 17627 17628for ac_header in bsd/string.h 17629do 17630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17631echo "$as_me:17628: checking for $ac_header" >&5 17632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17633if eval "test \"\${$as_ac_Header+set}\" = set"; then 17634 echo $ECHO_N "(cached) $ECHO_C" >&6 17635else 17636 cat >"conftest.$ac_ext" <<_ACEOF 17637#line 17634 "configure" 17638#include "confdefs.h" 17639#include <$ac_header> 17640_ACEOF 17641if { (eval echo "$as_me:17638: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17642 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17643 ac_status=$? 17644 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17645 rm -f conftest.er1 17646 cat conftest.err >&5 17647 echo "$as_me:17644: \$? = $ac_status" >&5 17648 (exit "$ac_status"); } >/dev/null; then 17649 if test -s conftest.err; then 17650 ac_cpp_err=$ac_c_preproc_warn_flag 17651 else 17652 ac_cpp_err= 17653 fi 17654else 17655 ac_cpp_err=yes 17656fi 17657if test -z "$ac_cpp_err"; then 17658 eval "$as_ac_Header=yes" 17659else 17660 echo "$as_me: failed program was:" >&5 17661 cat "conftest.$ac_ext" >&5 17662 eval "$as_ac_Header=no" 17663fi 17664rm -f conftest.err "conftest.$ac_ext" 17665fi 17666echo "$as_me:17663: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 17667echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 17668if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 17669 cat >>confdefs.h <<EOF 17670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17671EOF 17672 17673fi 17674done 17675 17676cat >>confdefs.h <<\EOF 17677#define HAVE_STRLCAT 1 17678EOF 17679 17680fi 17681 17682fi 17683 17684for ac_func in strlcpy snprintf 17685do 17686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17687echo "$as_me:17684: checking for $ac_func" >&5 17688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17689if eval "test \"\${$as_ac_var+set}\" = set"; then 17690 echo $ECHO_N "(cached) $ECHO_C" >&6 17691else 17692 cat >"conftest.$ac_ext" <<_ACEOF 17693#line 17690 "configure" 17694#include "confdefs.h" 17695#define $ac_func autoconf_temporary 17696#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 17697#undef $ac_func 17698 17699#ifdef __cplusplus 17700extern "C" 17701#endif 17702 17703/* We use char because int might match the return type of a gcc2 17704 builtin and then its argument prototype would still apply. */ 17705char $ac_func (void); 17706 17707int 17708main (void) 17709{ 17710 17711/* The GNU C library defines stubs for functions which it implements 17712 to always fail with ENOSYS. Some functions are actually named 17713 something starting with __ and the normal name is an alias. */ 17714#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17715#error found stub for $ac_func 17716#endif 17717 17718 return $ac_func (); 17719 ; 17720 return 0; 17721} 17722_ACEOF 17723rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17724if { (eval echo "$as_me:17721: \"$ac_link\"") >&5 17725 (eval $ac_link) 2>&5 17726 ac_status=$? 17727 echo "$as_me:17724: \$? = $ac_status" >&5 17728 (exit "$ac_status"); } && 17729 { ac_try='test -s "conftest$ac_exeext"' 17730 { (eval echo "$as_me:17727: \"$ac_try\"") >&5 17731 (eval $ac_try) 2>&5 17732 ac_status=$? 17733 echo "$as_me:17730: \$? = $ac_status" >&5 17734 (exit "$ac_status"); }; }; then 17735 eval "$as_ac_var=yes" 17736else 17737 echo "$as_me: failed program was:" >&5 17738cat "conftest.$ac_ext" >&5 17739eval "$as_ac_var=no" 17740fi 17741rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 17742fi 17743echo "$as_me:17740: result: `eval echo '${'"$as_ac_var"'}'`" >&5 17744echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 17745if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 17746 cat >>confdefs.h <<EOF 17747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17748EOF 17749 17750fi 17751done 17752 17753fi 17754 17755### use option --enable-assertions to turn on generation of assertion code 17756echo "$as_me:17753: checking if you want to enable runtime assertions" >&5 17757echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6 17758 17759# Check whether --enable-assertions or --disable-assertions was given. 17760if test "${enable_assertions+set}" = set; then 17761 enableval="$enable_assertions" 17762 with_assertions=$enableval 17763else 17764 with_assertions=no 17765fi; 17766echo "$as_me:17763: result: $with_assertions" >&5 17767echo "${ECHO_T}$with_assertions" >&6 17768if test -n "$GCC" 17769then 17770 if test "$with_assertions" = no 17771 then 17772 CPPFLAGS="$CPPFLAGS -DNDEBUG" 17773 else 17774 17775 ADAFLAGS="$ADAFLAGS -gnata" 17776 17777 fi 17778fi 17779 17780### use option --disable-leaks to suppress "permanent" leaks, for testing 17781 17782echo "$as_me:17779: checking if you want to use dmalloc for testing" >&5 17783echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 17784 17785# Check whether --with-dmalloc or --without-dmalloc was given. 17786if test "${with_dmalloc+set}" = set; then 17787 withval="$with_dmalloc" 17788 case "x$withval" in 17789 (x|xno) ;; 17790 (*) 17791 : "${with_cflags:=-g}" 17792 : "${enable_leaks:=no}" 17793 with_dmalloc=yes 17794 17795cat >>confdefs.h <<EOF 17796#define USE_DMALLOC 1 17797EOF 17798 17799 ;; 17800 esac 17801else 17802 with_dmalloc= 17803fi; 17804echo "$as_me:17801: result: ${with_dmalloc:-no}" >&5 17805echo "${ECHO_T}${with_dmalloc:-no}" >&6 17806 17807case ".$with_cflags" in 17808(.*-g*) 17809 case .$CFLAGS in 17810 (.*-g*) 17811 ;; 17812 (*) 17813 17814cf_fix_cppflags=no 17815cf_new_cflags= 17816cf_new_cppflags= 17817cf_new_extra_cppflags= 17818 17819for cf_add_cflags in -g 17820do 17821case "$cf_fix_cppflags" in 17822(no) 17823 case "$cf_add_cflags" in 17824 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 17825 case "$cf_add_cflags" in 17826 (-D*) 17827 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 17828 17829 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17830 && test -z "${cf_tst_cflags}" \ 17831 && cf_fix_cppflags=yes 17832 17833 if test "$cf_fix_cppflags" = yes ; then 17834 17835 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17836 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17837 17838 continue 17839 elif test "${cf_tst_cflags}" = "\"'" ; then 17840 17841 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17842 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17843 17844 continue 17845 fi 17846 ;; 17847 esac 17848 case "$CPPFLAGS" in 17849 (*$cf_add_cflags) 17850 ;; 17851 (*) 17852 case "$cf_add_cflags" in 17853 (-D*) 17854 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 17855 17856CPPFLAGS=`echo "$CPPFLAGS" | \ 17857 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 17858 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 17859 17860 ;; 17861 esac 17862 17863 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 17864 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 17865 17866 ;; 17867 esac 17868 ;; 17869 (*) 17870 17871 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 17872 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 17873 17874 ;; 17875 esac 17876 ;; 17877(yes) 17878 17879 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 17880 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 17881 17882 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 17883 17884 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 17885 && test -z "${cf_tst_cflags}" \ 17886 && cf_fix_cppflags=no 17887 ;; 17888esac 17889done 17890 17891if test -n "$cf_new_cflags" ; then 17892 17893 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 17894 CFLAGS="${CFLAGS}$cf_new_cflags" 17895 17896fi 17897 17898if test -n "$cf_new_cppflags" ; then 17899 17900 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 17901 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 17902 17903fi 17904 17905if test -n "$cf_new_extra_cppflags" ; then 17906 17907 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 17908 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 17909 17910fi 17911 17912 ;; 17913 esac 17914 ;; 17915esac 17916 17917if test "$with_dmalloc" = yes ; then 17918 echo "$as_me:17915: checking for dmalloc.h" >&5 17919echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 17920if test "${ac_cv_header_dmalloc_h+set}" = set; then 17921 echo $ECHO_N "(cached) $ECHO_C" >&6 17922else 17923 cat >"conftest.$ac_ext" <<_ACEOF 17924#line 17921 "configure" 17925#include "confdefs.h" 17926#include <dmalloc.h> 17927_ACEOF 17928if { (eval echo "$as_me:17925: \"$ac_cpp "conftest.$ac_ext"\"") >&5 17929 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 17930 ac_status=$? 17931 $EGREP -v '^ *\+' conftest.er1 >conftest.err 17932 rm -f conftest.er1 17933 cat conftest.err >&5 17934 echo "$as_me:17931: \$? = $ac_status" >&5 17935 (exit "$ac_status"); } >/dev/null; then 17936 if test -s conftest.err; then 17937 ac_cpp_err=$ac_c_preproc_warn_flag 17938 else 17939 ac_cpp_err= 17940 fi 17941else 17942 ac_cpp_err=yes 17943fi 17944if test -z "$ac_cpp_err"; then 17945 ac_cv_header_dmalloc_h=yes 17946else 17947 echo "$as_me: failed program was:" >&5 17948 cat "conftest.$ac_ext" >&5 17949 ac_cv_header_dmalloc_h=no 17950fi 17951rm -f conftest.err "conftest.$ac_ext" 17952fi 17953echo "$as_me:17950: result: $ac_cv_header_dmalloc_h" >&5 17954echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 17955if test "$ac_cv_header_dmalloc_h" = yes; then 17956 17957echo "$as_me:17954: checking for dmalloc_debug in -ldmalloc" >&5 17958echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 17959if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 17960 echo $ECHO_N "(cached) $ECHO_C" >&6 17961else 17962 ac_check_lib_save_LIBS=$LIBS 17963LIBS="-ldmalloc $LIBS" 17964cat >"conftest.$ac_ext" <<_ACEOF 17965#line 17962 "configure" 17966#include "confdefs.h" 17967 17968/* Override any gcc2 internal prototype to avoid an error. */ 17969#ifdef __cplusplus 17970extern "C" 17971#endif 17972/* We use char because int might match the return type of a gcc2 17973 builtin and then its argument prototype would still apply. */ 17974char dmalloc_debug (); 17975int 17976main (void) 17977{ 17978dmalloc_debug (); 17979 ; 17980 return 0; 17981} 17982_ACEOF 17983rm -f "conftest.$ac_objext" "conftest$ac_exeext" 17984if { (eval echo "$as_me:17981: \"$ac_link\"") >&5 17985 (eval $ac_link) 2>&5 17986 ac_status=$? 17987 echo "$as_me:17984: \$? = $ac_status" >&5 17988 (exit "$ac_status"); } && 17989 { ac_try='test -s "conftest$ac_exeext"' 17990 { (eval echo "$as_me:17987: \"$ac_try\"") >&5 17991 (eval $ac_try) 2>&5 17992 ac_status=$? 17993 echo "$as_me:17990: \$? = $ac_status" >&5 17994 (exit "$ac_status"); }; }; then 17995 ac_cv_lib_dmalloc_dmalloc_debug=yes 17996else 17997 echo "$as_me: failed program was:" >&5 17998cat "conftest.$ac_ext" >&5 17999ac_cv_lib_dmalloc_dmalloc_debug=no 18000fi 18001rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18002LIBS=$ac_check_lib_save_LIBS 18003fi 18004echo "$as_me:18001: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 18005echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 18006if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then 18007 cat >>confdefs.h <<EOF 18008#define HAVE_LIBDMALLOC 1 18009EOF 18010 18011 LIBS="-ldmalloc $LIBS" 18012 18013fi 18014 18015fi 18016 18017fi 18018 18019echo "$as_me:18016: checking if you want to use dbmalloc for testing" >&5 18020echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 18021 18022# Check whether --with-dbmalloc or --without-dbmalloc was given. 18023if test "${with_dbmalloc+set}" = set; then 18024 withval="$with_dbmalloc" 18025 case "x$withval" in 18026 (x|xno) ;; 18027 (*) 18028 : "${with_cflags:=-g}" 18029 : "${enable_leaks:=no}" 18030 with_dbmalloc=yes 18031 18032cat >>confdefs.h <<EOF 18033#define USE_DBMALLOC 1 18034EOF 18035 18036 ;; 18037 esac 18038else 18039 with_dbmalloc= 18040fi; 18041echo "$as_me:18038: result: ${with_dbmalloc:-no}" >&5 18042echo "${ECHO_T}${with_dbmalloc:-no}" >&6 18043 18044case ".$with_cflags" in 18045(.*-g*) 18046 case .$CFLAGS in 18047 (.*-g*) 18048 ;; 18049 (*) 18050 18051cf_fix_cppflags=no 18052cf_new_cflags= 18053cf_new_cppflags= 18054cf_new_extra_cppflags= 18055 18056for cf_add_cflags in -g 18057do 18058case "$cf_fix_cppflags" in 18059(no) 18060 case "$cf_add_cflags" in 18061 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18062 case "$cf_add_cflags" in 18063 (-D*) 18064 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18065 18066 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18067 && test -z "${cf_tst_cflags}" \ 18068 && cf_fix_cppflags=yes 18069 18070 if test "$cf_fix_cppflags" = yes ; then 18071 18072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18074 18075 continue 18076 elif test "${cf_tst_cflags}" = "\"'" ; then 18077 18078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18080 18081 continue 18082 fi 18083 ;; 18084 esac 18085 case "$CPPFLAGS" in 18086 (*$cf_add_cflags) 18087 ;; 18088 (*) 18089 case "$cf_add_cflags" in 18090 (-D*) 18091 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18092 18093CPPFLAGS=`echo "$CPPFLAGS" | \ 18094 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18095 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18096 18097 ;; 18098 esac 18099 18100 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18101 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18102 18103 ;; 18104 esac 18105 ;; 18106 (*) 18107 18108 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18109 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18110 18111 ;; 18112 esac 18113 ;; 18114(yes) 18115 18116 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18117 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18118 18119 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18120 18121 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18122 && test -z "${cf_tst_cflags}" \ 18123 && cf_fix_cppflags=no 18124 ;; 18125esac 18126done 18127 18128if test -n "$cf_new_cflags" ; then 18129 18130 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18131 CFLAGS="${CFLAGS}$cf_new_cflags" 18132 18133fi 18134 18135if test -n "$cf_new_cppflags" ; then 18136 18137 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18138 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18139 18140fi 18141 18142if test -n "$cf_new_extra_cppflags" ; then 18143 18144 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18145 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18146 18147fi 18148 18149 ;; 18150 esac 18151 ;; 18152esac 18153 18154if test "$with_dbmalloc" = yes ; then 18155 echo "$as_me:18152: checking for dbmalloc.h" >&5 18156echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 18157if test "${ac_cv_header_dbmalloc_h+set}" = set; then 18158 echo $ECHO_N "(cached) $ECHO_C" >&6 18159else 18160 cat >"conftest.$ac_ext" <<_ACEOF 18161#line 18158 "configure" 18162#include "confdefs.h" 18163#include <dbmalloc.h> 18164_ACEOF 18165if { (eval echo "$as_me:18162: \"$ac_cpp "conftest.$ac_ext"\"") >&5 18166 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 18167 ac_status=$? 18168 $EGREP -v '^ *\+' conftest.er1 >conftest.err 18169 rm -f conftest.er1 18170 cat conftest.err >&5 18171 echo "$as_me:18168: \$? = $ac_status" >&5 18172 (exit "$ac_status"); } >/dev/null; then 18173 if test -s conftest.err; then 18174 ac_cpp_err=$ac_c_preproc_warn_flag 18175 else 18176 ac_cpp_err= 18177 fi 18178else 18179 ac_cpp_err=yes 18180fi 18181if test -z "$ac_cpp_err"; then 18182 ac_cv_header_dbmalloc_h=yes 18183else 18184 echo "$as_me: failed program was:" >&5 18185 cat "conftest.$ac_ext" >&5 18186 ac_cv_header_dbmalloc_h=no 18187fi 18188rm -f conftest.err "conftest.$ac_ext" 18189fi 18190echo "$as_me:18187: result: $ac_cv_header_dbmalloc_h" >&5 18191echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 18192if test "$ac_cv_header_dbmalloc_h" = yes; then 18193 18194echo "$as_me:18191: checking for debug_malloc in -ldbmalloc" >&5 18195echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 18196if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 18197 echo $ECHO_N "(cached) $ECHO_C" >&6 18198else 18199 ac_check_lib_save_LIBS=$LIBS 18200LIBS="-ldbmalloc $LIBS" 18201cat >"conftest.$ac_ext" <<_ACEOF 18202#line 18199 "configure" 18203#include "confdefs.h" 18204 18205/* Override any gcc2 internal prototype to avoid an error. */ 18206#ifdef __cplusplus 18207extern "C" 18208#endif 18209/* We use char because int might match the return type of a gcc2 18210 builtin and then its argument prototype would still apply. */ 18211char debug_malloc (); 18212int 18213main (void) 18214{ 18215debug_malloc (); 18216 ; 18217 return 0; 18218} 18219_ACEOF 18220rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18221if { (eval echo "$as_me:18218: \"$ac_link\"") >&5 18222 (eval $ac_link) 2>&5 18223 ac_status=$? 18224 echo "$as_me:18221: \$? = $ac_status" >&5 18225 (exit "$ac_status"); } && 18226 { ac_try='test -s "conftest$ac_exeext"' 18227 { (eval echo "$as_me:18224: \"$ac_try\"") >&5 18228 (eval $ac_try) 2>&5 18229 ac_status=$? 18230 echo "$as_me:18227: \$? = $ac_status" >&5 18231 (exit "$ac_status"); }; }; then 18232 ac_cv_lib_dbmalloc_debug_malloc=yes 18233else 18234 echo "$as_me: failed program was:" >&5 18235cat "conftest.$ac_ext" >&5 18236ac_cv_lib_dbmalloc_debug_malloc=no 18237fi 18238rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18239LIBS=$ac_check_lib_save_LIBS 18240fi 18241echo "$as_me:18238: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 18242echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 18243if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then 18244 cat >>confdefs.h <<EOF 18245#define HAVE_LIBDBMALLOC 1 18246EOF 18247 18248 LIBS="-ldbmalloc $LIBS" 18249 18250fi 18251 18252fi 18253 18254fi 18255 18256echo "$as_me:18253: checking if you want to use valgrind for testing" >&5 18257echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 18258 18259# Check whether --with-valgrind or --without-valgrind was given. 18260if test "${with_valgrind+set}" = set; then 18261 withval="$with_valgrind" 18262 case "x$withval" in 18263 (x|xno) ;; 18264 (*) 18265 : "${with_cflags:=-g}" 18266 : "${enable_leaks:=no}" 18267 with_valgrind=yes 18268 18269cat >>confdefs.h <<EOF 18270#define USE_VALGRIND 1 18271EOF 18272 18273 ;; 18274 esac 18275else 18276 with_valgrind= 18277fi; 18278echo "$as_me:18275: result: ${with_valgrind:-no}" >&5 18279echo "${ECHO_T}${with_valgrind:-no}" >&6 18280 18281case ".$with_cflags" in 18282(.*-g*) 18283 case .$CFLAGS in 18284 (.*-g*) 18285 ;; 18286 (*) 18287 18288cf_fix_cppflags=no 18289cf_new_cflags= 18290cf_new_cppflags= 18291cf_new_extra_cppflags= 18292 18293for cf_add_cflags in -g 18294do 18295case "$cf_fix_cppflags" in 18296(no) 18297 case "$cf_add_cflags" in 18298 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18299 case "$cf_add_cflags" in 18300 (-D*) 18301 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18302 18303 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18304 && test -z "${cf_tst_cflags}" \ 18305 && cf_fix_cppflags=yes 18306 18307 if test "$cf_fix_cppflags" = yes ; then 18308 18309 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18310 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18311 18312 continue 18313 elif test "${cf_tst_cflags}" = "\"'" ; then 18314 18315 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18316 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18317 18318 continue 18319 fi 18320 ;; 18321 esac 18322 case "$CPPFLAGS" in 18323 (*$cf_add_cflags) 18324 ;; 18325 (*) 18326 case "$cf_add_cflags" in 18327 (-D*) 18328 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18329 18330CPPFLAGS=`echo "$CPPFLAGS" | \ 18331 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18332 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18333 18334 ;; 18335 esac 18336 18337 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18338 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18339 18340 ;; 18341 esac 18342 ;; 18343 (*) 18344 18345 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18346 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18347 18348 ;; 18349 esac 18350 ;; 18351(yes) 18352 18353 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18354 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18355 18356 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18357 18358 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18359 && test -z "${cf_tst_cflags}" \ 18360 && cf_fix_cppflags=no 18361 ;; 18362esac 18363done 18364 18365if test -n "$cf_new_cflags" ; then 18366 18367 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18368 CFLAGS="${CFLAGS}$cf_new_cflags" 18369 18370fi 18371 18372if test -n "$cf_new_cppflags" ; then 18373 18374 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18375 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18376 18377fi 18378 18379if test -n "$cf_new_extra_cppflags" ; then 18380 18381 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18382 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18383 18384fi 18385 18386 ;; 18387 esac 18388 ;; 18389esac 18390 18391echo "$as_me:18388: checking if you want to perform memory-leak testing" >&5 18392echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 18393 18394# Check whether --enable-leaks or --disable-leaks was given. 18395if test "${enable_leaks+set}" = set; then 18396 enableval="$enable_leaks" 18397 enable_leaks=$enableval 18398else 18399 enable_leaks=yes 18400fi; 18401if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 18402echo "$as_me:18399: result: $with_no_leaks" >&5 18403echo "${ECHO_T}$with_no_leaks" >&6 18404 18405if test "$enable_leaks" = no ; then 18406 18407cat >>confdefs.h <<\EOF 18408#define NO_LEAKS 1 18409EOF 18410 18411cat >>confdefs.h <<\EOF 18412#define YY_NO_LEAKS 1 18413EOF 18414 18415fi 18416 18417cat >>confdefs.h <<\EOF 18418#define HAVE_NC_ALLOC_H 1 18419EOF 18420 18421### use option --enable-expanded to generate certain macros as functions 18422 18423# Check whether --enable-expanded or --disable-expanded was given. 18424if test "${enable_expanded+set}" = set; then 18425 enableval="$enable_expanded" 18426 test "x$enableval" = xyes && 18427cat >>confdefs.h <<\EOF 18428#define NCURSES_EXPANDED 1 18429EOF 18430 18431fi; 18432 18433### use option --disable-macros to suppress macros in favor of functions 18434 18435# Check whether --enable-macros or --disable-macros was given. 18436if test "${enable_macros+set}" = set; then 18437 enableval="$enable_macros" 18438 test "$enableval" = no && 18439cat >>confdefs.h <<\EOF 18440#define NCURSES_NOMACROS 1 18441EOF 18442 18443fi; 18444 18445# Normally we only add trace() to the debug-library. Allow this to be 18446# extended to all models of the ncurses library: 18447cf_all_traces=no 18448case "$CFLAGS $CPPFLAGS" in 18449(*-DTRACE*) 18450 cf_all_traces=yes 18451 ;; 18452esac 18453 18454echo "$as_me:18451: checking whether to add trace feature to all models" >&5 18455echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6 18456 18457# Check whether --with-trace or --without-trace was given. 18458if test "${with_trace+set}" = set; then 18459 withval="$with_trace" 18460 cf_with_trace=$withval 18461else 18462 cf_with_trace=$cf_all_traces 18463fi; 18464echo "$as_me:18461: result: $cf_with_trace" >&5 18465echo "${ECHO_T}$cf_with_trace" >&6 18466 18467if test "x$cf_with_trace" = xyes ; then 18468 LIB_TRACING=all 18469 ADA_TRACE=TRUE 18470 18471cf_fix_cppflags=no 18472cf_new_cflags= 18473cf_new_cppflags= 18474cf_new_extra_cppflags= 18475 18476for cf_add_cflags in -DTRACE 18477do 18478case "$cf_fix_cppflags" in 18479(no) 18480 case "$cf_add_cflags" in 18481 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 18482 case "$cf_add_cflags" in 18483 (-D*) 18484 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 18485 18486 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18487 && test -z "${cf_tst_cflags}" \ 18488 && cf_fix_cppflags=yes 18489 18490 if test "$cf_fix_cppflags" = yes ; then 18491 18492 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18493 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18494 18495 continue 18496 elif test "${cf_tst_cflags}" = "\"'" ; then 18497 18498 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18499 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18500 18501 continue 18502 fi 18503 ;; 18504 esac 18505 case "$CPPFLAGS" in 18506 (*$cf_add_cflags) 18507 ;; 18508 (*) 18509 case "$cf_add_cflags" in 18510 (-D*) 18511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 18512 18513CPPFLAGS=`echo "$CPPFLAGS" | \ 18514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 18515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 18516 18517 ;; 18518 esac 18519 18520 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 18521 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 18522 18523 ;; 18524 esac 18525 ;; 18526 (*) 18527 18528 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 18529 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 18530 18531 ;; 18532 esac 18533 ;; 18534(yes) 18535 18536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 18537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 18538 18539 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 18540 18541 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 18542 && test -z "${cf_tst_cflags}" \ 18543 && cf_fix_cppflags=no 18544 ;; 18545esac 18546done 18547 18548if test -n "$cf_new_cflags" ; then 18549 18550 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 18551 CFLAGS="${CFLAGS}$cf_new_cflags" 18552 18553fi 18554 18555if test -n "$cf_new_cppflags" ; then 18556 18557 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 18558 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 18559 18560fi 18561 18562if test -n "$cf_new_extra_cppflags" ; then 18563 18564 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 18565 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 18566 18567fi 18568 18569cat >>confdefs.h <<\EOF 18570#define HAVE__TRACEF 1 18571EOF 18572 18573else 18574 LIB_TRACING=DEBUG 18575 ADA_TRACE=FALSE 18576fi 18577 18578echo "$as_me:18575: checking if we want to use GNAT projects" >&5 18579echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6 18580 18581# Check whether --enable-gnat-projects or --disable-gnat-projects was given. 18582if test "${enable_gnat_projects+set}" = set; then 18583 enableval="$enable_gnat_projects" 18584 test "$enableval" != no && enableval=yes 18585 if test "$enableval" != "yes" ; then 18586 enable_gnat_projects=no 18587 else 18588 enable_gnat_projects=yes 18589 fi 18590else 18591 enableval=yes 18592 enable_gnat_projects=yes 18593 18594fi; 18595echo "$as_me:18592: result: $enable_gnat_projects" >&5 18596echo "${ECHO_T}$enable_gnat_projects" >&6 18597 18598### Checks for libraries. 18599case "$cf_cv_system_name" in 18600(*mingw32*|*mingw64*) 18601 if test "x$with_exp_win32" = xyes ; then 18602 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN" 18603 else 18604 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN" 18605 fi 18606 # Note: WINVER may be a problem with Windows 10 18607 ;; 18608(*) 18609echo "$as_me:18606: checking for gettimeofday" >&5 18610echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 18611if test "${ac_cv_func_gettimeofday+set}" = set; then 18612 echo $ECHO_N "(cached) $ECHO_C" >&6 18613else 18614 cat >"conftest.$ac_ext" <<_ACEOF 18615#line 18612 "configure" 18616#include "confdefs.h" 18617#define gettimeofday autoconf_temporary 18618#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 18619#undef gettimeofday 18620 18621#ifdef __cplusplus 18622extern "C" 18623#endif 18624 18625/* We use char because int might match the return type of a gcc2 18626 builtin and then its argument prototype would still apply. */ 18627char gettimeofday (void); 18628 18629int 18630main (void) 18631{ 18632 18633/* The GNU C library defines stubs for functions which it implements 18634 to always fail with ENOSYS. Some functions are actually named 18635 something starting with __ and the normal name is an alias. */ 18636#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 18637#error found stub for gettimeofday 18638#endif 18639 18640 return gettimeofday (); 18641 ; 18642 return 0; 18643} 18644_ACEOF 18645rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18646if { (eval echo "$as_me:18643: \"$ac_link\"") >&5 18647 (eval $ac_link) 2>&5 18648 ac_status=$? 18649 echo "$as_me:18646: \$? = $ac_status" >&5 18650 (exit "$ac_status"); } && 18651 { ac_try='test -s "conftest$ac_exeext"' 18652 { (eval echo "$as_me:18649: \"$ac_try\"") >&5 18653 (eval $ac_try) 2>&5 18654 ac_status=$? 18655 echo "$as_me:18652: \$? = $ac_status" >&5 18656 (exit "$ac_status"); }; }; then 18657 ac_cv_func_gettimeofday=yes 18658else 18659 echo "$as_me: failed program was:" >&5 18660cat "conftest.$ac_ext" >&5 18661ac_cv_func_gettimeofday=no 18662fi 18663rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18664fi 18665echo "$as_me:18662: result: $ac_cv_func_gettimeofday" >&5 18666echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 18667if test "$ac_cv_func_gettimeofday" = yes; then 18668 18669cat >>confdefs.h <<\EOF 18670#define HAVE_GETTIMEOFDAY 1 18671EOF 18672 18673else 18674 18675echo "$as_me:18672: checking for gettimeofday in -lbsd" >&5 18676echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 18677if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 18678 echo $ECHO_N "(cached) $ECHO_C" >&6 18679else 18680 ac_check_lib_save_LIBS=$LIBS 18681LIBS="-lbsd $LIBS" 18682cat >"conftest.$ac_ext" <<_ACEOF 18683#line 18680 "configure" 18684#include "confdefs.h" 18685 18686/* Override any gcc2 internal prototype to avoid an error. */ 18687#ifdef __cplusplus 18688extern "C" 18689#endif 18690/* We use char because int might match the return type of a gcc2 18691 builtin and then its argument prototype would still apply. */ 18692char gettimeofday (); 18693int 18694main (void) 18695{ 18696gettimeofday (); 18697 ; 18698 return 0; 18699} 18700_ACEOF 18701rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18702if { (eval echo "$as_me:18699: \"$ac_link\"") >&5 18703 (eval $ac_link) 2>&5 18704 ac_status=$? 18705 echo "$as_me:18702: \$? = $ac_status" >&5 18706 (exit "$ac_status"); } && 18707 { ac_try='test -s "conftest$ac_exeext"' 18708 { (eval echo "$as_me:18705: \"$ac_try\"") >&5 18709 (eval $ac_try) 2>&5 18710 ac_status=$? 18711 echo "$as_me:18708: \$? = $ac_status" >&5 18712 (exit "$ac_status"); }; }; then 18713 ac_cv_lib_bsd_gettimeofday=yes 18714else 18715 echo "$as_me: failed program was:" >&5 18716cat "conftest.$ac_ext" >&5 18717ac_cv_lib_bsd_gettimeofday=no 18718fi 18719rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18720LIBS=$ac_check_lib_save_LIBS 18721fi 18722echo "$as_me:18719: result: $ac_cv_lib_bsd_gettimeofday" >&5 18723echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 18724if test "$ac_cv_lib_bsd_gettimeofday" = yes; then 18725 18726cat >>confdefs.h <<\EOF 18727#define HAVE_GETTIMEOFDAY 1 18728EOF 18729 18730cf_add_libs="$LIBS" 18731# reverse order 18732cf_add_0lib= 18733for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 18734# filter duplicates 18735for cf_add_1lib in $cf_add_0lib; do 18736 for cf_add_2lib in $cf_add_libs; do 18737 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 18738 cf_add_1lib= 18739 break 18740 fi 18741 done 18742 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 18743done 18744LIBS="$cf_add_libs" 18745 18746fi 18747 18748fi 18749 ;; 18750esac 18751 18752echo "$as_me:18749: checking if -lm needed for math functions" >&5 18753echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6 18754if test "${cf_cv_need_libm+set}" = set; then 18755 echo $ECHO_N "(cached) $ECHO_C" >&6 18756else 18757 18758 cat >"conftest.$ac_ext" <<_ACEOF 18759#line 18756 "configure" 18760#include "confdefs.h" 18761 18762 #include <stdio.h> 18763 #include <stdlib.h> 18764 #include <math.h> 18765 18766int 18767main (void) 18768{ 18769double x = rand(); printf("result = %g\\n", pow(sin(x),x)) 18770 ; 18771 return 0; 18772} 18773_ACEOF 18774rm -f "conftest.$ac_objext" "conftest$ac_exeext" 18775if { (eval echo "$as_me:18772: \"$ac_link\"") >&5 18776 (eval $ac_link) 2>&5 18777 ac_status=$? 18778 echo "$as_me:18775: \$? = $ac_status" >&5 18779 (exit "$ac_status"); } && 18780 { ac_try='test -s "conftest$ac_exeext"' 18781 { (eval echo "$as_me:18778: \"$ac_try\"") >&5 18782 (eval $ac_try) 2>&5 18783 ac_status=$? 18784 echo "$as_me:18781: \$? = $ac_status" >&5 18785 (exit "$ac_status"); }; }; then 18786 cf_cv_need_libm=no 18787else 18788 echo "$as_me: failed program was:" >&5 18789cat "conftest.$ac_ext" >&5 18790cf_cv_need_libm=yes 18791fi 18792rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 18793fi 18794echo "$as_me:18791: result: $cf_cv_need_libm" >&5 18795echo "${ECHO_T}$cf_cv_need_libm" >&6 18796if test "$cf_cv_need_libm" = yes 18797then 18798MATH_LIB=-lm 18799fi 18800 18801### Checks for header files. 18802echo "$as_me:18799: checking for ANSI C header files" >&5 18803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18804if test "${ac_cv_header_stdc+set}" = set; then 18805 echo $ECHO_N "(cached) $ECHO_C" >&6 18806else 18807 cat >"conftest.$ac_ext" <<_ACEOF 18808#line 18805 "configure" 18809#include "confdefs.h" 18810#include <stdlib.h> 18811#include <stdarg.h> 18812#include <string.h> 18813#include <float.h> 18814 18815_ACEOF 18816if { (eval echo "$as_me:18813: \"$ac_cpp "conftest.$ac_ext"\"") >&5 18817 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 18818 ac_status=$? 18819 $EGREP -v '^ *\+' conftest.er1 >conftest.err 18820 rm -f conftest.er1 18821 cat conftest.err >&5 18822 echo "$as_me:18819: \$? = $ac_status" >&5 18823 (exit "$ac_status"); } >/dev/null; then 18824 if test -s conftest.err; then 18825 ac_cpp_err=$ac_c_preproc_warn_flag 18826 else 18827 ac_cpp_err= 18828 fi 18829else 18830 ac_cpp_err=yes 18831fi 18832if test -z "$ac_cpp_err"; then 18833 ac_cv_header_stdc=yes 18834else 18835 echo "$as_me: failed program was:" >&5 18836 cat "conftest.$ac_ext" >&5 18837 ac_cv_header_stdc=no 18838fi 18839rm -f conftest.err "conftest.$ac_ext" 18840 18841if test $ac_cv_header_stdc = yes; then 18842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18843 cat >"conftest.$ac_ext" <<_ACEOF 18844#line 18841 "configure" 18845#include "confdefs.h" 18846#include <string.h> 18847 18848_ACEOF 18849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18850 $EGREP "memchr" >/dev/null 2>&1; then 18851 : 18852else 18853 ac_cv_header_stdc=no 18854fi 18855rm -rf conftest* 18856 18857fi 18858 18859if test $ac_cv_header_stdc = yes; then 18860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18861 cat >"conftest.$ac_ext" <<_ACEOF 18862#line 18859 "configure" 18863#include "confdefs.h" 18864#include <stdlib.h> 18865 18866_ACEOF 18867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18868 $EGREP "free" >/dev/null 2>&1; then 18869 : 18870else 18871 ac_cv_header_stdc=no 18872fi 18873rm -rf conftest* 18874 18875fi 18876 18877if test $ac_cv_header_stdc = yes; then 18878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18879 if test "$cross_compiling" = yes; then 18880 : 18881else 18882 cat >"conftest.$ac_ext" <<_ACEOF 18883#line 18880 "configure" 18884#include "confdefs.h" 18885#include <ctype.h> 18886#if ((' ' & 0x0FF) == 0x020) 18887# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18888# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18889#else 18890# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 18891 || ('j' <= (c) && (c) <= 'r') \ 18892 || ('s' <= (c) && (c) <= 'z')) 18893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18894#endif 18895 18896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18897int 18898main (void) 18899{ 18900 int i; 18901 for (i = 0; i < 256; i++) 18902 if (XOR (islower (i), ISLOWER (i)) 18903 || toupper (i) != TOUPPER (i)) 18904 $ac_main_return(2); 18905 $ac_main_return (0); 18906} 18907_ACEOF 18908rm -f "conftest$ac_exeext" 18909if { (eval echo "$as_me:18906: \"$ac_link\"") >&5 18910 (eval $ac_link) 2>&5 18911 ac_status=$? 18912 echo "$as_me:18909: \$? = $ac_status" >&5 18913 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 18914 { (eval echo "$as_me:18911: \"$ac_try\"") >&5 18915 (eval $ac_try) 2>&5 18916 ac_status=$? 18917 echo "$as_me:18914: \$? = $ac_status" >&5 18918 (exit "$ac_status"); }; }; then 18919 : 18920else 18921 echo "$as_me: program exited with status $ac_status" >&5 18922echo "$as_me: failed program was:" >&5 18923cat "conftest.$ac_ext" >&5 18924ac_cv_header_stdc=no 18925fi 18926rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 18927fi 18928fi 18929fi 18930echo "$as_me:18927: result: $ac_cv_header_stdc" >&5 18931echo "${ECHO_T}$ac_cv_header_stdc" >&6 18932if test $ac_cv_header_stdc = yes; then 18933 18934cat >>confdefs.h <<\EOF 18935#define STDC_HEADERS 1 18936EOF 18937 18938fi 18939 18940ac_header_dirent=no 18941for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18942 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18943echo "$as_me:18940: checking for $ac_hdr that defines DIR" >&5 18944echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 18945if eval "test \"\${$as_ac_Header+set}\" = set"; then 18946 echo $ECHO_N "(cached) $ECHO_C" >&6 18947else 18948 cat >"conftest.$ac_ext" <<_ACEOF 18949#line 18946 "configure" 18950#include "confdefs.h" 18951#include <sys/types.h> 18952#include <$ac_hdr> 18953 18954int 18955main (void) 18956{ 18957if ((DIR *) 0) 18958return 0; 18959 ; 18960 return 0; 18961} 18962_ACEOF 18963rm -f "conftest.$ac_objext" 18964if { (eval echo "$as_me:18961: \"$ac_compile\"") >&5 18965 (eval $ac_compile) 2>&5 18966 ac_status=$? 18967 echo "$as_me:18964: \$? = $ac_status" >&5 18968 (exit "$ac_status"); } && 18969 { ac_try='test -s "conftest.$ac_objext"' 18970 { (eval echo "$as_me:18967: \"$ac_try\"") >&5 18971 (eval $ac_try) 2>&5 18972 ac_status=$? 18973 echo "$as_me:18970: \$? = $ac_status" >&5 18974 (exit "$ac_status"); }; }; then 18975 eval "$as_ac_Header=yes" 18976else 18977 echo "$as_me: failed program was:" >&5 18978cat "conftest.$ac_ext" >&5 18979eval "$as_ac_Header=no" 18980fi 18981rm -f "conftest.$ac_objext" "conftest.$ac_ext" 18982fi 18983echo "$as_me:18980: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 18984echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 18985if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 18986 cat >>confdefs.h <<EOF 18987#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18988EOF 18989 18990ac_header_dirent=$ac_hdr; break 18991fi 18992 18993done 18994# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18995if test $ac_header_dirent = dirent.h; then 18996 echo "$as_me:18993: checking for opendir in -ldir" >&5 18997echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 18998if test "${ac_cv_lib_dir_opendir+set}" = set; then 18999 echo $ECHO_N "(cached) $ECHO_C" >&6 19000else 19001 ac_check_lib_save_LIBS=$LIBS 19002LIBS="-ldir $LIBS" 19003cat >"conftest.$ac_ext" <<_ACEOF 19004#line 19001 "configure" 19005#include "confdefs.h" 19006 19007/* Override any gcc2 internal prototype to avoid an error. */ 19008#ifdef __cplusplus 19009extern "C" 19010#endif 19011/* We use char because int might match the return type of a gcc2 19012 builtin and then its argument prototype would still apply. */ 19013char opendir (); 19014int 19015main (void) 19016{ 19017opendir (); 19018 ; 19019 return 0; 19020} 19021_ACEOF 19022rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19023if { (eval echo "$as_me:19020: \"$ac_link\"") >&5 19024 (eval $ac_link) 2>&5 19025 ac_status=$? 19026 echo "$as_me:19023: \$? = $ac_status" >&5 19027 (exit "$ac_status"); } && 19028 { ac_try='test -s "conftest$ac_exeext"' 19029 { (eval echo "$as_me:19026: \"$ac_try\"") >&5 19030 (eval $ac_try) 2>&5 19031 ac_status=$? 19032 echo "$as_me:19029: \$? = $ac_status" >&5 19033 (exit "$ac_status"); }; }; then 19034 ac_cv_lib_dir_opendir=yes 19035else 19036 echo "$as_me: failed program was:" >&5 19037cat "conftest.$ac_ext" >&5 19038ac_cv_lib_dir_opendir=no 19039fi 19040rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19041LIBS=$ac_check_lib_save_LIBS 19042fi 19043echo "$as_me:19040: result: $ac_cv_lib_dir_opendir" >&5 19044echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 19045if test "$ac_cv_lib_dir_opendir" = yes; then 19046 LIBS="$LIBS -ldir" 19047fi 19048 19049else 19050 echo "$as_me:19047: checking for opendir in -lx" >&5 19051echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 19052if test "${ac_cv_lib_x_opendir+set}" = set; then 19053 echo $ECHO_N "(cached) $ECHO_C" >&6 19054else 19055 ac_check_lib_save_LIBS=$LIBS 19056LIBS="-lx $LIBS" 19057cat >"conftest.$ac_ext" <<_ACEOF 19058#line 19055 "configure" 19059#include "confdefs.h" 19060 19061/* Override any gcc2 internal prototype to avoid an error. */ 19062#ifdef __cplusplus 19063extern "C" 19064#endif 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 opendir (); 19068int 19069main (void) 19070{ 19071opendir (); 19072 ; 19073 return 0; 19074} 19075_ACEOF 19076rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19077if { (eval echo "$as_me:19074: \"$ac_link\"") >&5 19078 (eval $ac_link) 2>&5 19079 ac_status=$? 19080 echo "$as_me:19077: \$? = $ac_status" >&5 19081 (exit "$ac_status"); } && 19082 { ac_try='test -s "conftest$ac_exeext"' 19083 { (eval echo "$as_me:19080: \"$ac_try\"") >&5 19084 (eval $ac_try) 2>&5 19085 ac_status=$? 19086 echo "$as_me:19083: \$? = $ac_status" >&5 19087 (exit "$ac_status"); }; }; then 19088 ac_cv_lib_x_opendir=yes 19089else 19090 echo "$as_me: failed program was:" >&5 19091cat "conftest.$ac_ext" >&5 19092ac_cv_lib_x_opendir=no 19093fi 19094rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19095LIBS=$ac_check_lib_save_LIBS 19096fi 19097echo "$as_me:19094: result: $ac_cv_lib_x_opendir" >&5 19098echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 19099if test "$ac_cv_lib_x_opendir" = yes; then 19100 LIBS="$LIBS -lx" 19101fi 19102 19103fi 19104 19105echo "$as_me:19102: checking whether time.h and sys/time.h may both be included" >&5 19106echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 19107if test "${ac_cv_header_time+set}" = set; then 19108 echo $ECHO_N "(cached) $ECHO_C" >&6 19109else 19110 cat >"conftest.$ac_ext" <<_ACEOF 19111#line 19108 "configure" 19112#include "confdefs.h" 19113#include <sys/types.h> 19114#include <sys/time.h> 19115#include <time.h> 19116 19117int 19118main (void) 19119{ 19120if ((struct tm *) 0) 19121return 0; 19122 ; 19123 return 0; 19124} 19125_ACEOF 19126rm -f "conftest.$ac_objext" 19127if { (eval echo "$as_me:19124: \"$ac_compile\"") >&5 19128 (eval $ac_compile) 2>&5 19129 ac_status=$? 19130 echo "$as_me:19127: \$? = $ac_status" >&5 19131 (exit "$ac_status"); } && 19132 { ac_try='test -s "conftest.$ac_objext"' 19133 { (eval echo "$as_me:19130: \"$ac_try\"") >&5 19134 (eval $ac_try) 2>&5 19135 ac_status=$? 19136 echo "$as_me:19133: \$? = $ac_status" >&5 19137 (exit "$ac_status"); }; }; then 19138 ac_cv_header_time=yes 19139else 19140 echo "$as_me: failed program was:" >&5 19141cat "conftest.$ac_ext" >&5 19142ac_cv_header_time=no 19143fi 19144rm -f "conftest.$ac_objext" "conftest.$ac_ext" 19145fi 19146echo "$as_me:19143: result: $ac_cv_header_time" >&5 19147echo "${ECHO_T}$ac_cv_header_time" >&6 19148if test $ac_cv_header_time = yes; then 19149 19150cat >>confdefs.h <<\EOF 19151#define TIME_WITH_SYS_TIME 1 19152EOF 19153 19154fi 19155 19156cf_regex_func=no 19157cf_regex_libs= 19158case "$host_os" in 19159(mingw*) 19160 # -lsystre -ltre -lintl -liconv 19161 echo "$as_me:19158: checking for regcomp in -lsystre" >&5 19162echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6 19163if test "${ac_cv_lib_systre_regcomp+set}" = set; then 19164 echo $ECHO_N "(cached) $ECHO_C" >&6 19165else 19166 ac_check_lib_save_LIBS=$LIBS 19167LIBS="-lsystre $LIBS" 19168cat >"conftest.$ac_ext" <<_ACEOF 19169#line 19166 "configure" 19170#include "confdefs.h" 19171 19172/* Override any gcc2 internal prototype to avoid an error. */ 19173#ifdef __cplusplus 19174extern "C" 19175#endif 19176/* We use char because int might match the return type of a gcc2 19177 builtin and then its argument prototype would still apply. */ 19178char regcomp (); 19179int 19180main (void) 19181{ 19182regcomp (); 19183 ; 19184 return 0; 19185} 19186_ACEOF 19187rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19188if { (eval echo "$as_me:19185: \"$ac_link\"") >&5 19189 (eval $ac_link) 2>&5 19190 ac_status=$? 19191 echo "$as_me:19188: \$? = $ac_status" >&5 19192 (exit "$ac_status"); } && 19193 { ac_try='test -s "conftest$ac_exeext"' 19194 { (eval echo "$as_me:19191: \"$ac_try\"") >&5 19195 (eval $ac_try) 2>&5 19196 ac_status=$? 19197 echo "$as_me:19194: \$? = $ac_status" >&5 19198 (exit "$ac_status"); }; }; then 19199 ac_cv_lib_systre_regcomp=yes 19200else 19201 echo "$as_me: failed program was:" >&5 19202cat "conftest.$ac_ext" >&5 19203ac_cv_lib_systre_regcomp=no 19204fi 19205rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19206LIBS=$ac_check_lib_save_LIBS 19207fi 19208echo "$as_me:19205: result: $ac_cv_lib_systre_regcomp" >&5 19209echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6 19210if test "$ac_cv_lib_systre_regcomp" = yes; then 19211 19212 echo "$as_me:19209: checking for libiconv_open in -liconv" >&5 19213echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 19214if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 19215 echo $ECHO_N "(cached) $ECHO_C" >&6 19216else 19217 ac_check_lib_save_LIBS=$LIBS 19218LIBS="-liconv $LIBS" 19219cat >"conftest.$ac_ext" <<_ACEOF 19220#line 19217 "configure" 19221#include "confdefs.h" 19222 19223/* Override any gcc2 internal prototype to avoid an error. */ 19224#ifdef __cplusplus 19225extern "C" 19226#endif 19227/* We use char because int might match the return type of a gcc2 19228 builtin and then its argument prototype would still apply. */ 19229char libiconv_open (); 19230int 19231main (void) 19232{ 19233libiconv_open (); 19234 ; 19235 return 0; 19236} 19237_ACEOF 19238rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19239if { (eval echo "$as_me:19236: \"$ac_link\"") >&5 19240 (eval $ac_link) 2>&5 19241 ac_status=$? 19242 echo "$as_me:19239: \$? = $ac_status" >&5 19243 (exit "$ac_status"); } && 19244 { ac_try='test -s "conftest$ac_exeext"' 19245 { (eval echo "$as_me:19242: \"$ac_try\"") >&5 19246 (eval $ac_try) 2>&5 19247 ac_status=$? 19248 echo "$as_me:19245: \$? = $ac_status" >&5 19249 (exit "$ac_status"); }; }; then 19250 ac_cv_lib_iconv_libiconv_open=yes 19251else 19252 echo "$as_me: failed program was:" >&5 19253cat "conftest.$ac_ext" >&5 19254ac_cv_lib_iconv_libiconv_open=no 19255fi 19256rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19257LIBS=$ac_check_lib_save_LIBS 19258fi 19259echo "$as_me:19256: result: $ac_cv_lib_iconv_libiconv_open" >&5 19260echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 19261if test "$ac_cv_lib_iconv_libiconv_open" = yes; then 19262 19263cf_add_libs="$LIBS" 19264# reverse order 19265cf_add_0lib= 19266for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19267# filter duplicates 19268for cf_add_1lib in $cf_add_0lib; do 19269 for cf_add_2lib in $cf_add_libs; do 19270 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19271 cf_add_1lib= 19272 break 19273 fi 19274 done 19275 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19276done 19277LIBS="$cf_add_libs" 19278 19279fi 19280 19281 echo "$as_me:19278: checking for libintl_gettext in -lintl" >&5 19282echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6 19283if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then 19284 echo $ECHO_N "(cached) $ECHO_C" >&6 19285else 19286 ac_check_lib_save_LIBS=$LIBS 19287LIBS="-lintl $LIBS" 19288cat >"conftest.$ac_ext" <<_ACEOF 19289#line 19286 "configure" 19290#include "confdefs.h" 19291 19292/* Override any gcc2 internal prototype to avoid an error. */ 19293#ifdef __cplusplus 19294extern "C" 19295#endif 19296/* We use char because int might match the return type of a gcc2 19297 builtin and then its argument prototype would still apply. */ 19298char libintl_gettext (); 19299int 19300main (void) 19301{ 19302libintl_gettext (); 19303 ; 19304 return 0; 19305} 19306_ACEOF 19307rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19308if { (eval echo "$as_me:19305: \"$ac_link\"") >&5 19309 (eval $ac_link) 2>&5 19310 ac_status=$? 19311 echo "$as_me:19308: \$? = $ac_status" >&5 19312 (exit "$ac_status"); } && 19313 { ac_try='test -s "conftest$ac_exeext"' 19314 { (eval echo "$as_me:19311: \"$ac_try\"") >&5 19315 (eval $ac_try) 2>&5 19316 ac_status=$? 19317 echo "$as_me:19314: \$? = $ac_status" >&5 19318 (exit "$ac_status"); }; }; then 19319 ac_cv_lib_intl_libintl_gettext=yes 19320else 19321 echo "$as_me: failed program was:" >&5 19322cat "conftest.$ac_ext" >&5 19323ac_cv_lib_intl_libintl_gettext=no 19324fi 19325rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19326LIBS=$ac_check_lib_save_LIBS 19327fi 19328echo "$as_me:19325: result: $ac_cv_lib_intl_libintl_gettext" >&5 19329echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6 19330if test "$ac_cv_lib_intl_libintl_gettext" = yes; then 19331 19332cf_add_libs="$LIBS" 19333# reverse order 19334cf_add_0lib= 19335for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19336# filter duplicates 19337for cf_add_1lib in $cf_add_0lib; do 19338 for cf_add_2lib in $cf_add_libs; do 19339 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19340 cf_add_1lib= 19341 break 19342 fi 19343 done 19344 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19345done 19346LIBS="$cf_add_libs" 19347 19348fi 19349 19350 echo "$as_me:19347: checking for tre_regcomp in -ltre" >&5 19351echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6 19352if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then 19353 echo $ECHO_N "(cached) $ECHO_C" >&6 19354else 19355 ac_check_lib_save_LIBS=$LIBS 19356LIBS="-ltre $LIBS" 19357cat >"conftest.$ac_ext" <<_ACEOF 19358#line 19355 "configure" 19359#include "confdefs.h" 19360 19361/* Override any gcc2 internal prototype to avoid an error. */ 19362#ifdef __cplusplus 19363extern "C" 19364#endif 19365/* We use char because int might match the return type of a gcc2 19366 builtin and then its argument prototype would still apply. */ 19367char tre_regcomp (); 19368int 19369main (void) 19370{ 19371tre_regcomp (); 19372 ; 19373 return 0; 19374} 19375_ACEOF 19376rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19377if { (eval echo "$as_me:19374: \"$ac_link\"") >&5 19378 (eval $ac_link) 2>&5 19379 ac_status=$? 19380 echo "$as_me:19377: \$? = $ac_status" >&5 19381 (exit "$ac_status"); } && 19382 { ac_try='test -s "conftest$ac_exeext"' 19383 { (eval echo "$as_me:19380: \"$ac_try\"") >&5 19384 (eval $ac_try) 2>&5 19385 ac_status=$? 19386 echo "$as_me:19383: \$? = $ac_status" >&5 19387 (exit "$ac_status"); }; }; then 19388 ac_cv_lib_tre_tre_regcomp=yes 19389else 19390 echo "$as_me: failed program was:" >&5 19391cat "conftest.$ac_ext" >&5 19392ac_cv_lib_tre_tre_regcomp=no 19393fi 19394rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19395LIBS=$ac_check_lib_save_LIBS 19396fi 19397echo "$as_me:19394: result: $ac_cv_lib_tre_tre_regcomp" >&5 19398echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6 19399if test "$ac_cv_lib_tre_tre_regcomp" = yes; then 19400 19401cf_add_libs="$LIBS" 19402# reverse order 19403cf_add_0lib= 19404for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19405# filter duplicates 19406for cf_add_1lib in $cf_add_0lib; do 19407 for cf_add_2lib in $cf_add_libs; do 19408 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19409 cf_add_1lib= 19410 break 19411 fi 19412 done 19413 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19414done 19415LIBS="$cf_add_libs" 19416 19417fi 19418 19419cf_add_libs="$LIBS" 19420# reverse order 19421cf_add_0lib= 19422for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19423# filter duplicates 19424for cf_add_1lib in $cf_add_0lib; do 19425 for cf_add_2lib in $cf_add_libs; do 19426 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19427 cf_add_1lib= 19428 break 19429 fi 19430 done 19431 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19432done 19433LIBS="$cf_add_libs" 19434 19435 cf_regex_func=regcomp 19436 19437else 19438 19439 echo "$as_me:19436: checking for regcomp in -lgnurx" >&5 19440echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6 19441if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then 19442 echo $ECHO_N "(cached) $ECHO_C" >&6 19443else 19444 ac_check_lib_save_LIBS=$LIBS 19445LIBS="-lgnurx $LIBS" 19446cat >"conftest.$ac_ext" <<_ACEOF 19447#line 19444 "configure" 19448#include "confdefs.h" 19449 19450/* Override any gcc2 internal prototype to avoid an error. */ 19451#ifdef __cplusplus 19452extern "C" 19453#endif 19454/* We use char because int might match the return type of a gcc2 19455 builtin and then its argument prototype would still apply. */ 19456char regcomp (); 19457int 19458main (void) 19459{ 19460regcomp (); 19461 ; 19462 return 0; 19463} 19464_ACEOF 19465rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19466if { (eval echo "$as_me:19463: \"$ac_link\"") >&5 19467 (eval $ac_link) 2>&5 19468 ac_status=$? 19469 echo "$as_me:19466: \$? = $ac_status" >&5 19470 (exit "$ac_status"); } && 19471 { ac_try='test -s "conftest$ac_exeext"' 19472 { (eval echo "$as_me:19469: \"$ac_try\"") >&5 19473 (eval $ac_try) 2>&5 19474 ac_status=$? 19475 echo "$as_me:19472: \$? = $ac_status" >&5 19476 (exit "$ac_status"); }; }; then 19477 ac_cv_lib_gnurx_regcomp=yes 19478else 19479 echo "$as_me: failed program was:" >&5 19480cat "conftest.$ac_ext" >&5 19481ac_cv_lib_gnurx_regcomp=no 19482fi 19483rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19484LIBS=$ac_check_lib_save_LIBS 19485fi 19486echo "$as_me:19483: result: $ac_cv_lib_gnurx_regcomp" >&5 19487echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6 19488if test "$ac_cv_lib_gnurx_regcomp" = yes; then 19489 19490cf_add_libs="$LIBS" 19491# reverse order 19492cf_add_0lib= 19493for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19494# filter duplicates 19495for cf_add_1lib in $cf_add_0lib; do 19496 for cf_add_2lib in $cf_add_libs; do 19497 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19498 cf_add_1lib= 19499 break 19500 fi 19501 done 19502 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19503done 19504LIBS="$cf_add_libs" 19505 19506 cf_regex_func=regcomp 19507fi 19508 19509fi 19510 19511 ;; 19512(*) 19513 cf_regex_libs="regex re" 19514 echo "$as_me:19511: checking for regcomp" >&5 19515echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 19516if test "${ac_cv_func_regcomp+set}" = set; then 19517 echo $ECHO_N "(cached) $ECHO_C" >&6 19518else 19519 cat >"conftest.$ac_ext" <<_ACEOF 19520#line 19517 "configure" 19521#include "confdefs.h" 19522#define regcomp autoconf_temporary 19523#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19524#undef regcomp 19525 19526#ifdef __cplusplus 19527extern "C" 19528#endif 19529 19530/* We use char because int might match the return type of a gcc2 19531 builtin and then its argument prototype would still apply. */ 19532char regcomp (void); 19533 19534int 19535main (void) 19536{ 19537 19538/* The GNU C library defines stubs for functions which it implements 19539 to always fail with ENOSYS. Some functions are actually named 19540 something starting with __ and the normal name is an alias. */ 19541#if defined (__stub_regcomp) || defined (__stub___regcomp) 19542#error found stub for regcomp 19543#endif 19544 19545 return regcomp (); 19546 ; 19547 return 0; 19548} 19549_ACEOF 19550rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19551if { (eval echo "$as_me:19548: \"$ac_link\"") >&5 19552 (eval $ac_link) 2>&5 19553 ac_status=$? 19554 echo "$as_me:19551: \$? = $ac_status" >&5 19555 (exit "$ac_status"); } && 19556 { ac_try='test -s "conftest$ac_exeext"' 19557 { (eval echo "$as_me:19554: \"$ac_try\"") >&5 19558 (eval $ac_try) 2>&5 19559 ac_status=$? 19560 echo "$as_me:19557: \$? = $ac_status" >&5 19561 (exit "$ac_status"); }; }; then 19562 ac_cv_func_regcomp=yes 19563else 19564 echo "$as_me: failed program was:" >&5 19565cat "conftest.$ac_ext" >&5 19566ac_cv_func_regcomp=no 19567fi 19568rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19569fi 19570echo "$as_me:19567: result: $ac_cv_func_regcomp" >&5 19571echo "${ECHO_T}$ac_cv_func_regcomp" >&6 19572if test "$ac_cv_func_regcomp" = yes; then 19573 cf_regex_func=regcomp 19574else 19575 19576 for cf_regex_lib in $cf_regex_libs 19577 do 19578 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 19579echo "$as_me:19576: checking for regcomp in -l$cf_regex_lib" >&5 19580echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 19581if eval "test \"\${$as_ac_Lib+set}\" = set"; then 19582 echo $ECHO_N "(cached) $ECHO_C" >&6 19583else 19584 ac_check_lib_save_LIBS=$LIBS 19585LIBS="-l$cf_regex_lib $LIBS" 19586cat >"conftest.$ac_ext" <<_ACEOF 19587#line 19584 "configure" 19588#include "confdefs.h" 19589 19590/* Override any gcc2 internal prototype to avoid an error. */ 19591#ifdef __cplusplus 19592extern "C" 19593#endif 19594/* We use char because int might match the return type of a gcc2 19595 builtin and then its argument prototype would still apply. */ 19596char regcomp (); 19597int 19598main (void) 19599{ 19600regcomp (); 19601 ; 19602 return 0; 19603} 19604_ACEOF 19605rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19606if { (eval echo "$as_me:19603: \"$ac_link\"") >&5 19607 (eval $ac_link) 2>&5 19608 ac_status=$? 19609 echo "$as_me:19606: \$? = $ac_status" >&5 19610 (exit "$ac_status"); } && 19611 { ac_try='test -s "conftest$ac_exeext"' 19612 { (eval echo "$as_me:19609: \"$ac_try\"") >&5 19613 (eval $ac_try) 2>&5 19614 ac_status=$? 19615 echo "$as_me:19612: \$? = $ac_status" >&5 19616 (exit "$ac_status"); }; }; then 19617 eval "$as_ac_Lib=yes" 19618else 19619 echo "$as_me: failed program was:" >&5 19620cat "conftest.$ac_ext" >&5 19621eval "$as_ac_Lib=no" 19622fi 19623rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19624LIBS=$ac_check_lib_save_LIBS 19625fi 19626echo "$as_me:19623: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5 19627echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6 19628if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then 19629 19630cf_add_libs="$LIBS" 19631# reverse order 19632cf_add_0lib= 19633for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19634# filter duplicates 19635for cf_add_1lib in $cf_add_0lib; do 19636 for cf_add_2lib in $cf_add_libs; do 19637 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19638 cf_add_1lib= 19639 break 19640 fi 19641 done 19642 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19643done 19644LIBS="$cf_add_libs" 19645 19646 cf_regex_func=regcomp 19647 break 19648fi 19649 19650 done 19651 19652fi 19653 19654 ;; 19655esac 19656 19657if test "$cf_regex_func" = no ; then 19658 echo "$as_me:19655: checking for compile" >&5 19659echo $ECHO_N "checking for compile... $ECHO_C" >&6 19660if test "${ac_cv_func_compile+set}" = set; then 19661 echo $ECHO_N "(cached) $ECHO_C" >&6 19662else 19663 cat >"conftest.$ac_ext" <<_ACEOF 19664#line 19661 "configure" 19665#include "confdefs.h" 19666#define compile autoconf_temporary 19667#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 19668#undef compile 19669 19670#ifdef __cplusplus 19671extern "C" 19672#endif 19673 19674/* We use char because int might match the return type of a gcc2 19675 builtin and then its argument prototype would still apply. */ 19676char compile (void); 19677 19678int 19679main (void) 19680{ 19681 19682/* The GNU C library defines stubs for functions which it implements 19683 to always fail with ENOSYS. Some functions are actually named 19684 something starting with __ and the normal name is an alias. */ 19685#if defined (__stub_compile) || defined (__stub___compile) 19686#error found stub for compile 19687#endif 19688 19689 return compile (); 19690 ; 19691 return 0; 19692} 19693_ACEOF 19694rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19695if { (eval echo "$as_me:19692: \"$ac_link\"") >&5 19696 (eval $ac_link) 2>&5 19697 ac_status=$? 19698 echo "$as_me:19695: \$? = $ac_status" >&5 19699 (exit "$ac_status"); } && 19700 { ac_try='test -s "conftest$ac_exeext"' 19701 { (eval echo "$as_me:19698: \"$ac_try\"") >&5 19702 (eval $ac_try) 2>&5 19703 ac_status=$? 19704 echo "$as_me:19701: \$? = $ac_status" >&5 19705 (exit "$ac_status"); }; }; then 19706 ac_cv_func_compile=yes 19707else 19708 echo "$as_me: failed program was:" >&5 19709cat "conftest.$ac_ext" >&5 19710ac_cv_func_compile=no 19711fi 19712rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19713fi 19714echo "$as_me:19711: result: $ac_cv_func_compile" >&5 19715echo "${ECHO_T}$ac_cv_func_compile" >&6 19716if test "$ac_cv_func_compile" = yes; then 19717 cf_regex_func=compile 19718else 19719 19720 echo "$as_me:19717: checking for compile in -lgen" >&5 19721echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 19722if test "${ac_cv_lib_gen_compile+set}" = set; then 19723 echo $ECHO_N "(cached) $ECHO_C" >&6 19724else 19725 ac_check_lib_save_LIBS=$LIBS 19726LIBS="-lgen $LIBS" 19727cat >"conftest.$ac_ext" <<_ACEOF 19728#line 19725 "configure" 19729#include "confdefs.h" 19730 19731/* Override any gcc2 internal prototype to avoid an error. */ 19732#ifdef __cplusplus 19733extern "C" 19734#endif 19735/* We use char because int might match the return type of a gcc2 19736 builtin and then its argument prototype would still apply. */ 19737char compile (); 19738int 19739main (void) 19740{ 19741compile (); 19742 ; 19743 return 0; 19744} 19745_ACEOF 19746rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19747if { (eval echo "$as_me:19744: \"$ac_link\"") >&5 19748 (eval $ac_link) 2>&5 19749 ac_status=$? 19750 echo "$as_me:19747: \$? = $ac_status" >&5 19751 (exit "$ac_status"); } && 19752 { ac_try='test -s "conftest$ac_exeext"' 19753 { (eval echo "$as_me:19750: \"$ac_try\"") >&5 19754 (eval $ac_try) 2>&5 19755 ac_status=$? 19756 echo "$as_me:19753: \$? = $ac_status" >&5 19757 (exit "$ac_status"); }; }; then 19758 ac_cv_lib_gen_compile=yes 19759else 19760 echo "$as_me: failed program was:" >&5 19761cat "conftest.$ac_ext" >&5 19762ac_cv_lib_gen_compile=no 19763fi 19764rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19765LIBS=$ac_check_lib_save_LIBS 19766fi 19767echo "$as_me:19764: result: $ac_cv_lib_gen_compile" >&5 19768echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 19769if test "$ac_cv_lib_gen_compile" = yes; then 19770 19771cf_add_libs="$LIBS" 19772# reverse order 19773cf_add_0lib= 19774for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 19775# filter duplicates 19776for cf_add_1lib in $cf_add_0lib; do 19777 for cf_add_2lib in $cf_add_libs; do 19778 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 19779 cf_add_1lib= 19780 break 19781 fi 19782 done 19783 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 19784done 19785LIBS="$cf_add_libs" 19786 19787 cf_regex_func=compile 19788fi 19789 19790fi 19791 19792fi 19793 19794if test "$cf_regex_func" = no ; then 19795 { echo "$as_me:19792: WARNING: cannot find regular expression library" >&5 19796echo "$as_me: WARNING: cannot find regular expression library" >&2;} 19797fi 19798 19799echo "$as_me:19796: checking for regular-expression headers" >&5 19800echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 19801if test "${cf_cv_regex_hdrs+set}" = set; then 19802 echo $ECHO_N "(cached) $ECHO_C" >&6 19803else 19804 19805cf_cv_regex_hdrs=no 19806case "$cf_regex_func" in 19807(compile) 19808 for cf_regex_hdr in regexp.h regexpr.h 19809 do 19810 cat >"conftest.$ac_ext" <<_ACEOF 19811#line 19808 "configure" 19812#include "confdefs.h" 19813#include <$cf_regex_hdr> 19814int 19815main (void) 19816{ 19817 19818 char *p = compile("", "", "", 0); 19819 int x = step("", ""); 19820 (void)p; 19821 (void)x; 19822 19823 ; 19824 return 0; 19825} 19826_ACEOF 19827rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19828if { (eval echo "$as_me:19825: \"$ac_link\"") >&5 19829 (eval $ac_link) 2>&5 19830 ac_status=$? 19831 echo "$as_me:19828: \$? = $ac_status" >&5 19832 (exit "$ac_status"); } && 19833 { ac_try='test -s "conftest$ac_exeext"' 19834 { (eval echo "$as_me:19831: \"$ac_try\"") >&5 19835 (eval $ac_try) 2>&5 19836 ac_status=$? 19837 echo "$as_me:19834: \$? = $ac_status" >&5 19838 (exit "$ac_status"); }; }; then 19839 19840 cf_cv_regex_hdrs=$cf_regex_hdr 19841 break 19842 19843else 19844 echo "$as_me: failed program was:" >&5 19845cat "conftest.$ac_ext" >&5 19846fi 19847rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19848 done 19849 ;; 19850(*) 19851 for cf_regex_hdr in regex.h 19852 do 19853 cat >"conftest.$ac_ext" <<_ACEOF 19854#line 19851 "configure" 19855#include "confdefs.h" 19856#include <sys/types.h> 19857#include <$cf_regex_hdr> 19858int 19859main (void) 19860{ 19861 19862 regex_t *p = 0; 19863 int x = regcomp(p, "", 0); 19864 int y = regexec(p, "", 0, 0, 0); 19865 (void)x; 19866 (void)y; 19867 regfree(p); 19868 19869 ; 19870 return 0; 19871} 19872_ACEOF 19873rm -f "conftest.$ac_objext" "conftest$ac_exeext" 19874if { (eval echo "$as_me:19871: \"$ac_link\"") >&5 19875 (eval $ac_link) 2>&5 19876 ac_status=$? 19877 echo "$as_me:19874: \$? = $ac_status" >&5 19878 (exit "$ac_status"); } && 19879 { ac_try='test -s "conftest$ac_exeext"' 19880 { (eval echo "$as_me:19877: \"$ac_try\"") >&5 19881 (eval $ac_try) 2>&5 19882 ac_status=$? 19883 echo "$as_me:19880: \$? = $ac_status" >&5 19884 (exit "$ac_status"); }; }; then 19885 19886 cf_cv_regex_hdrs=$cf_regex_hdr 19887 break 19888 19889else 19890 echo "$as_me: failed program was:" >&5 19891cat "conftest.$ac_ext" >&5 19892fi 19893rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 19894 done 19895 ;; 19896esac 19897 19898fi 19899echo "$as_me:19896: result: $cf_cv_regex_hdrs" >&5 19900echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 19901 19902case "$cf_cv_regex_hdrs" in 19903 (no) { echo "$as_me:19900: WARNING: no regular expression header found" >&5 19904echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 19905 (regex.h) 19906cat >>confdefs.h <<\EOF 19907#define HAVE_REGEX_H_FUNCS 1 19908EOF 19909 ;; 19910 (regexp.h) 19911cat >>confdefs.h <<\EOF 19912#define HAVE_REGEXP_H_FUNCS 1 19913EOF 19914 ;; 19915 (regexpr.h) 19916cat >>confdefs.h <<\EOF 19917#define HAVE_REGEXPR_H_FUNCS 1 19918EOF 19919 ;; 19920esac 19921 19922for ac_header in \ 19923fcntl.h \ 19924getopt.h \ 19925limits.h \ 19926locale.h \ 19927math.h \ 19928poll.h \ 19929sys/ioctl.h \ 19930sys/param.h \ 19931sys/poll.h \ 19932sys/select.h \ 19933sys/time.h \ 19934sys/times.h \ 19935ttyent.h \ 19936unistd.h \ 19937wctype.h \ 19938 19939do 19940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19941echo "$as_me:19938: checking for $ac_header" >&5 19942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19943if eval "test \"\${$as_ac_Header+set}\" = set"; then 19944 echo $ECHO_N "(cached) $ECHO_C" >&6 19945else 19946 cat >"conftest.$ac_ext" <<_ACEOF 19947#line 19944 "configure" 19948#include "confdefs.h" 19949#include <$ac_header> 19950_ACEOF 19951if { (eval echo "$as_me:19948: \"$ac_cpp "conftest.$ac_ext"\"") >&5 19952 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 19953 ac_status=$? 19954 $EGREP -v '^ *\+' conftest.er1 >conftest.err 19955 rm -f conftest.er1 19956 cat conftest.err >&5 19957 echo "$as_me:19954: \$? = $ac_status" >&5 19958 (exit "$ac_status"); } >/dev/null; then 19959 if test -s conftest.err; then 19960 ac_cpp_err=$ac_c_preproc_warn_flag 19961 else 19962 ac_cpp_err= 19963 fi 19964else 19965 ac_cpp_err=yes 19966fi 19967if test -z "$ac_cpp_err"; then 19968 eval "$as_ac_Header=yes" 19969else 19970 echo "$as_me: failed program was:" >&5 19971 cat "conftest.$ac_ext" >&5 19972 eval "$as_ac_Header=no" 19973fi 19974rm -f conftest.err "conftest.$ac_ext" 19975fi 19976echo "$as_me:19973: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 19977echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 19978if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 19979 cat >>confdefs.h <<EOF 19980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19981EOF 19982 19983fi 19984done 19985 19986for ac_header in unistd.h getopt.h 19987do 19988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19989echo "$as_me:19986: checking for $ac_header" >&5 19990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19991if eval "test \"\${$as_ac_Header+set}\" = set"; then 19992 echo $ECHO_N "(cached) $ECHO_C" >&6 19993else 19994 cat >"conftest.$ac_ext" <<_ACEOF 19995#line 19992 "configure" 19996#include "confdefs.h" 19997#include <$ac_header> 19998_ACEOF 19999if { (eval echo "$as_me:19996: \"$ac_cpp "conftest.$ac_ext"\"") >&5 20000 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 20001 ac_status=$? 20002 $EGREP -v '^ *\+' conftest.er1 >conftest.err 20003 rm -f conftest.er1 20004 cat conftest.err >&5 20005 echo "$as_me:20002: \$? = $ac_status" >&5 20006 (exit "$ac_status"); } >/dev/null; then 20007 if test -s conftest.err; then 20008 ac_cpp_err=$ac_c_preproc_warn_flag 20009 else 20010 ac_cpp_err= 20011 fi 20012else 20013 ac_cpp_err=yes 20014fi 20015if test -z "$ac_cpp_err"; then 20016 eval "$as_ac_Header=yes" 20017else 20018 echo "$as_me: failed program was:" >&5 20019 cat "conftest.$ac_ext" >&5 20020 eval "$as_ac_Header=no" 20021fi 20022rm -f conftest.err "conftest.$ac_ext" 20023fi 20024echo "$as_me:20021: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 20025echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 20026if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 20027 cat >>confdefs.h <<EOF 20028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20029EOF 20030 20031fi 20032done 20033 20034echo "$as_me:20031: checking for header declaring getopt variables" >&5 20035echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6 20036if test "${cf_cv_getopt_header+set}" = set; then 20037 echo $ECHO_N "(cached) $ECHO_C" >&6 20038else 20039 20040cf_cv_getopt_header=none 20041for cf_header in stdio.h stdlib.h unistd.h getopt.h 20042do 20043cat >"conftest.$ac_ext" <<_ACEOF 20044#line 20041 "configure" 20045#include "confdefs.h" 20046 20047#include <$cf_header> 20048int 20049main (void) 20050{ 20051int x = optind; char *y = optarg; (void)x; (void)y 20052 ; 20053 return 0; 20054} 20055_ACEOF 20056rm -f "conftest.$ac_objext" 20057if { (eval echo "$as_me:20054: \"$ac_compile\"") >&5 20058 (eval $ac_compile) 2>&5 20059 ac_status=$? 20060 echo "$as_me:20057: \$? = $ac_status" >&5 20061 (exit "$ac_status"); } && 20062 { ac_try='test -s "conftest.$ac_objext"' 20063 { (eval echo "$as_me:20060: \"$ac_try\"") >&5 20064 (eval $ac_try) 2>&5 20065 ac_status=$? 20066 echo "$as_me:20063: \$? = $ac_status" >&5 20067 (exit "$ac_status"); }; }; then 20068 cf_cv_getopt_header=$cf_header 20069 break 20070else 20071 echo "$as_me: failed program was:" >&5 20072cat "conftest.$ac_ext" >&5 20073fi 20074rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20075done 20076 20077fi 20078echo "$as_me:20075: result: $cf_cv_getopt_header" >&5 20079echo "${ECHO_T}$cf_cv_getopt_header" >&6 20080if test "$cf_cv_getopt_header" != none ; then 20081 20082cat >>confdefs.h <<\EOF 20083#define HAVE_GETOPT_HEADER 1 20084EOF 20085 20086fi 20087if test "$cf_cv_getopt_header" = getopt.h ; then 20088 20089cat >>confdefs.h <<\EOF 20090#define NEED_GETOPT_H 1 20091EOF 20092 20093fi 20094 20095echo "$as_me:20092: checking if external environ is declared" >&5 20096echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6 20097if test "${cf_cv_dcl_environ+set}" = set; then 20098 echo $ECHO_N "(cached) $ECHO_C" >&6 20099else 20100 20101 cat >"conftest.$ac_ext" <<_ACEOF 20102#line 20099 "configure" 20103#include "confdefs.h" 20104 20105#ifdef HAVE_STDLIB_H 20106#include <stdlib.h> 20107#endif 20108#include <unistd.h> 20109int 20110main (void) 20111{ 20112int x = (int) environ 20113 ; 20114 return 0; 20115} 20116_ACEOF 20117rm -f "conftest.$ac_objext" 20118if { (eval echo "$as_me:20115: \"$ac_compile\"") >&5 20119 (eval $ac_compile) 2>&5 20120 ac_status=$? 20121 echo "$as_me:20118: \$? = $ac_status" >&5 20122 (exit "$ac_status"); } && 20123 { ac_try='test -s "conftest.$ac_objext"' 20124 { (eval echo "$as_me:20121: \"$ac_try\"") >&5 20125 (eval $ac_try) 2>&5 20126 ac_status=$? 20127 echo "$as_me:20124: \$? = $ac_status" >&5 20128 (exit "$ac_status"); }; }; then 20129 cf_cv_dcl_environ=yes 20130else 20131 echo "$as_me: failed program was:" >&5 20132cat "conftest.$ac_ext" >&5 20133cf_cv_dcl_environ=no 20134fi 20135rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20136 20137fi 20138echo "$as_me:20135: result: $cf_cv_dcl_environ" >&5 20139echo "${ECHO_T}$cf_cv_dcl_environ" >&6 20140 20141if test "$cf_cv_dcl_environ" = no ; then 20142 20143cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20144 20145 cat >>confdefs.h <<EOF 20146#define $cf_result 1 20147EOF 20148 20149fi 20150 20151# It's possible (for near-UNIX clones) that the data doesn't exist 20152 20153echo "$as_me:20150: checking if external environ exists" >&5 20154echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6 20155if test "${cf_cv_have_environ+set}" = set; then 20156 echo $ECHO_N "(cached) $ECHO_C" >&6 20157else 20158 20159 cat >"conftest.$ac_ext" <<_ACEOF 20160#line 20157 "configure" 20161#include "confdefs.h" 20162 20163#undef environ 20164extern int environ; 20165 20166int 20167main (void) 20168{ 20169environ = 2 20170 ; 20171 return 0; 20172} 20173_ACEOF 20174rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20175if { (eval echo "$as_me:20172: \"$ac_link\"") >&5 20176 (eval $ac_link) 2>&5 20177 ac_status=$? 20178 echo "$as_me:20175: \$? = $ac_status" >&5 20179 (exit "$ac_status"); } && 20180 { ac_try='test -s "conftest$ac_exeext"' 20181 { (eval echo "$as_me:20178: \"$ac_try\"") >&5 20182 (eval $ac_try) 2>&5 20183 ac_status=$? 20184 echo "$as_me:20181: \$? = $ac_status" >&5 20185 (exit "$ac_status"); }; }; then 20186 cf_cv_have_environ=yes 20187else 20188 echo "$as_me: failed program was:" >&5 20189cat "conftest.$ac_ext" >&5 20190cf_cv_have_environ=no 20191fi 20192rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20193 20194fi 20195echo "$as_me:20192: result: $cf_cv_have_environ" >&5 20196echo "${ECHO_T}$cf_cv_have_environ" >&6 20197 20198if test "$cf_cv_have_environ" = yes ; then 20199 20200cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 20201 20202 cat >>confdefs.h <<EOF 20203#define $cf_result 1 20204EOF 20205 20206fi 20207 20208echo "$as_me:20205: checking for getenv" >&5 20209echo $ECHO_N "checking for getenv... $ECHO_C" >&6 20210if test "${ac_cv_func_getenv+set}" = set; then 20211 echo $ECHO_N "(cached) $ECHO_C" >&6 20212else 20213 cat >"conftest.$ac_ext" <<_ACEOF 20214#line 20211 "configure" 20215#include "confdefs.h" 20216#define getenv autoconf_temporary 20217#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 20218#undef getenv 20219 20220#ifdef __cplusplus 20221extern "C" 20222#endif 20223 20224/* We use char because int might match the return type of a gcc2 20225 builtin and then its argument prototype would still apply. */ 20226char getenv (void); 20227 20228int 20229main (void) 20230{ 20231 20232/* The GNU C library defines stubs for functions which it implements 20233 to always fail with ENOSYS. Some functions are actually named 20234 something starting with __ and the normal name is an alias. */ 20235#if defined (__stub_getenv) || defined (__stub___getenv) 20236#error found stub for getenv 20237#endif 20238 20239 return getenv (); 20240 ; 20241 return 0; 20242} 20243_ACEOF 20244rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20245if { (eval echo "$as_me:20242: \"$ac_link\"") >&5 20246 (eval $ac_link) 2>&5 20247 ac_status=$? 20248 echo "$as_me:20245: \$? = $ac_status" >&5 20249 (exit "$ac_status"); } && 20250 { ac_try='test -s "conftest$ac_exeext"' 20251 { (eval echo "$as_me:20248: \"$ac_try\"") >&5 20252 (eval $ac_try) 2>&5 20253 ac_status=$? 20254 echo "$as_me:20251: \$? = $ac_status" >&5 20255 (exit "$ac_status"); }; }; then 20256 ac_cv_func_getenv=yes 20257else 20258 echo "$as_me: failed program was:" >&5 20259cat "conftest.$ac_ext" >&5 20260ac_cv_func_getenv=no 20261fi 20262rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20263fi 20264echo "$as_me:20261: result: $ac_cv_func_getenv" >&5 20265echo "${ECHO_T}$ac_cv_func_getenv" >&6 20266 20267for ac_func in putenv setenv strdup 20268do 20269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20270echo "$as_me:20267: checking for $ac_func" >&5 20271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20272if eval "test \"\${$as_ac_var+set}\" = set"; then 20273 echo $ECHO_N "(cached) $ECHO_C" >&6 20274else 20275 cat >"conftest.$ac_ext" <<_ACEOF 20276#line 20273 "configure" 20277#include "confdefs.h" 20278#define $ac_func autoconf_temporary 20279#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 20280#undef $ac_func 20281 20282#ifdef __cplusplus 20283extern "C" 20284#endif 20285 20286/* We use char because int might match the return type of a gcc2 20287 builtin and then its argument prototype would still apply. */ 20288char $ac_func (void); 20289 20290int 20291main (void) 20292{ 20293 20294/* The GNU C library defines stubs for functions which it implements 20295 to always fail with ENOSYS. Some functions are actually named 20296 something starting with __ and the normal name is an alias. */ 20297#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20298#error found stub for $ac_func 20299#endif 20300 20301 return $ac_func (); 20302 ; 20303 return 0; 20304} 20305_ACEOF 20306rm -f "conftest.$ac_objext" "conftest$ac_exeext" 20307if { (eval echo "$as_me:20304: \"$ac_link\"") >&5 20308 (eval $ac_link) 2>&5 20309 ac_status=$? 20310 echo "$as_me:20307: \$? = $ac_status" >&5 20311 (exit "$ac_status"); } && 20312 { ac_try='test -s "conftest$ac_exeext"' 20313 { (eval echo "$as_me:20310: \"$ac_try\"") >&5 20314 (eval $ac_try) 2>&5 20315 ac_status=$? 20316 echo "$as_me:20313: \$? = $ac_status" >&5 20317 (exit "$ac_status"); }; }; then 20318 eval "$as_ac_var=yes" 20319else 20320 echo "$as_me: failed program was:" >&5 20321cat "conftest.$ac_ext" >&5 20322eval "$as_ac_var=no" 20323fi 20324rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 20325fi 20326echo "$as_me:20323: result: `eval echo '${'"$as_ac_var"'}'`" >&5 20327echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 20328if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 20329 cat >>confdefs.h <<EOF 20330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20331EOF 20332 20333fi 20334done 20335 20336echo "$as_me:20333: checking if getenv returns consistent values" >&5 20337echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6 20338if test "${cf_cv_consistent_getenv+set}" = set; then 20339 echo $ECHO_N "(cached) $ECHO_C" >&6 20340else 20341 20342if test "$cross_compiling" = yes; then 20343 cf_cv_consistent_getenv=unknown 20344else 20345 cat >"conftest.$ac_ext" <<_ACEOF 20346#line 20343 "configure" 20347#include "confdefs.h" 20348 20349#include <stdlib.h> 20350#include <unistd.h> 20351#include <stdio.h> 20352#include <string.h> 20353#include <sys/types.h> 20354 20355#if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ) 20356extern char **environ; /* POSIX, but some systems are not... */ 20357#endif 20358 20359#if defined(HAVE_STRDUP) 20360#define str_alloc(s) strdup(s) 20361#else 20362#define str_alloc(s) strcpy(malloc(strlen(s) + 1, s)) 20363#endif 20364 20365static void set_value(const char *name, const char *value) 20366{ 20367#if defined(HAVE_SETENV) 20368 setenv(name, value, 1); 20369#elif defined(HAVE_PUTENV) 20370 char buffer[1024]; 20371 sprintf(buffer, "%s=%s", name, value); 20372 putenv(str_alloc(buffer)); 20373#else 20374#error neither putenv/setenv found 20375#endif 20376} 20377int main(void) 20378{ 20379 int pass; 20380 size_t numenv, limit, j; 20381 char **mynames; 20382 char **myvalues; 20383 char **mypointer; 20384 char *equals; 20385 for (numenv = 0; environ[numenv]; ++numenv) ; 20386 limit = numenv + 10; 20387 mynames = (char **) calloc(limit + 1, sizeof(char *)); 20388 myvalues = (char **) calloc(limit + 1, sizeof(char *)); 20389 mypointer = (char **) calloc(limit + 1, sizeof(char *)); 20390#if defined(HAVE_ENVIRON) 20391 for (j = 0; environ[j]; ++j) { 20392 mynames[j] = str_alloc(environ[j]); 20393 equals = strchr(mynames[j], '='); 20394 if (equals != 0) { 20395 *equals++ = '\\0'; 20396 myvalues[j] = str_alloc(equals); 20397 } else { 20398 myvalues[j] = str_alloc(""); 20399 } 20400 } 20401#endif 20402 for (j = numenv; j < limit; ++j) { 20403 char name[80]; 20404 char value[80]; 20405 size_t found; 20406 size_t k = 0; 20407 do { 20408 size_t jk; 20409 found = 0; 20410 sprintf(name, "TERM%lu", (unsigned long) k); 20411 for (jk = 0; jk < j; ++jk) { 20412 if (!strcmp(name, mynames[jk])) { 20413 found = 1; 20414 ++k; 20415 break; 20416 } 20417 } 20418 } while (found); 20419 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]); 20420 set_value(name, value); 20421 mynames[j] = str_alloc(name); 20422 myvalues[j] = str_alloc(value); 20423 } 20424 for (pass = 0; pass < 3; ++pass) { 20425 for (j = 0; j < limit; ++j) { 20426 char *value = getenv(mynames[j]); 20427 if (pass) { 20428 if (value == 0) { 20429 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]); 20430 ${cf_cv_main_return:-return}(1); 20431 } else if (value != mypointer[j]) { 20432 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]); 20433 ${cf_cv_main_return:-return}(1); 20434 } else if (strcmp(value, myvalues[j])) { 20435 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]); 20436 ${cf_cv_main_return:-return}(1); 20437 } 20438 } else { 20439 size_t k; 20440 mypointer[j] = value; 20441 for (k = 0; k < j; ++k) { 20442 if (mypointer[j] == mypointer[k]) { 20443 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]); 20444 ${cf_cv_main_return:-return}(1); 20445 } 20446 } 20447 } 20448 } 20449 } 20450 ${cf_cv_main_return:-return}(0); 20451} 20452 20453_ACEOF 20454rm -f "conftest$ac_exeext" 20455if { (eval echo "$as_me:20452: \"$ac_link\"") >&5 20456 (eval $ac_link) 2>&5 20457 ac_status=$? 20458 echo "$as_me:20455: \$? = $ac_status" >&5 20459 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 20460 { (eval echo "$as_me:20457: \"$ac_try\"") >&5 20461 (eval $ac_try) 2>&5 20462 ac_status=$? 20463 echo "$as_me:20460: \$? = $ac_status" >&5 20464 (exit "$ac_status"); }; }; then 20465 cf_cv_consistent_getenv=yes 20466else 20467 echo "$as_me: program exited with status $ac_status" >&5 20468echo "$as_me: failed program was:" >&5 20469cat "conftest.$ac_ext" >&5 20470cf_cv_consistent_getenv=no 20471fi 20472rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 20473fi 20474 20475fi 20476echo "$as_me:20473: result: $cf_cv_consistent_getenv" >&5 20477echo "${ECHO_T}$cf_cv_consistent_getenv" >&6 20478 20479if test "x$cf_cv_consistent_getenv" = xno 20480then 20481 20482cat >>confdefs.h <<\EOF 20483#define HAVE_CONSISTENT_GETENV 1 20484EOF 20485 20486fi 20487 20488if test "x$cf_cv_consistent_getenv" = xno && \ 20489 test "x$cf_with_trace" = xyes 20490then 20491 { echo "$as_me:20488: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5 20492echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;} 20493fi 20494 20495echo "$as_me:20492: checking if sys/time.h works with sys/select.h" >&5 20496echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6 20497if test "${cf_cv_sys_time_select+set}" = set; then 20498 echo $ECHO_N "(cached) $ECHO_C" >&6 20499else 20500 20501cat >"conftest.$ac_ext" <<_ACEOF 20502#line 20499 "configure" 20503#include "confdefs.h" 20504 20505#include <sys/types.h> 20506#ifdef HAVE_SYS_TIME_H 20507#include <sys/time.h> 20508#endif 20509#ifdef HAVE_SYS_SELECT_H 20510#include <sys/select.h> 20511#endif 20512 20513int 20514main (void) 20515{ 20516 20517 ; 20518 return 0; 20519} 20520_ACEOF 20521rm -f "conftest.$ac_objext" 20522if { (eval echo "$as_me:20519: \"$ac_compile\"") >&5 20523 (eval $ac_compile) 2>&5 20524 ac_status=$? 20525 echo "$as_me:20522: \$? = $ac_status" >&5 20526 (exit "$ac_status"); } && 20527 { ac_try='test -s "conftest.$ac_objext"' 20528 { (eval echo "$as_me:20525: \"$ac_try\"") >&5 20529 (eval $ac_try) 2>&5 20530 ac_status=$? 20531 echo "$as_me:20528: \$? = $ac_status" >&5 20532 (exit "$ac_status"); }; }; then 20533 cf_cv_sys_time_select=yes 20534else 20535 echo "$as_me: failed program was:" >&5 20536cat "conftest.$ac_ext" >&5 20537cf_cv_sys_time_select=no 20538fi 20539rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20540 20541fi 20542 20543echo "$as_me:20540: result: $cf_cv_sys_time_select" >&5 20544echo "${ECHO_T}$cf_cv_sys_time_select" >&6 20545test "$cf_cv_sys_time_select" = yes && 20546cat >>confdefs.h <<\EOF 20547#define HAVE_SYS_TIME_SELECT 1 20548EOF 20549 20550### checks for compiler characteristics 20551ac_ext=c 20552ac_cpp='$CPP $CPPFLAGS' 20553ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 20554ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 20555ac_compiler_gnu=$ac_cv_c_compiler_gnu 20556ac_main_return="return" 20557 20558echo "$as_me:20555: checking for an ANSI C-conforming const" >&5 20559echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20560if test "${ac_cv_c_const+set}" = set; then 20561 echo $ECHO_N "(cached) $ECHO_C" >&6 20562else 20563 cat >"conftest.$ac_ext" <<_ACEOF 20564#line 20561 "configure" 20565#include "confdefs.h" 20566 20567int 20568main (void) 20569{ 20570/* FIXME: Include the comments suggested by Paul. */ 20571#ifndef __cplusplus 20572 /* Ultrix mips cc rejects this. */ 20573 typedef int charset[2]; 20574 const charset x; 20575 /* SunOS 4.1.1 cc rejects this. */ 20576 char const *const *ccp; 20577 char **p; 20578 /* NEC SVR4.0.2 mips cc rejects this. */ 20579 struct point {int x, y;}; 20580 static struct point const zero = {0,0}; 20581 /* AIX XL C 1.02.0.0 rejects this. 20582 It does not let you subtract one const X* pointer from another in 20583 an arm of an if-expression whose if-part is not a constant 20584 expression */ 20585 const char *g = "string"; 20586 ccp = &g + (g ? g-g : 0); 20587 /* HPUX 7.0 cc rejects these. */ 20588 ++ccp; 20589 p = (char**) ccp; 20590 ccp = (char const *const *) p; 20591 { /* SCO 3.2v4 cc rejects this. */ 20592 char *t; 20593 char const *s = 0 ? (char *) 0 : (char const *) 0; 20594 20595 *t++ = 0; 20596 } 20597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20598 int x[] = {25, 17}; 20599 const int *foo = &x[0]; 20600 ++foo; 20601 } 20602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20603 typedef const int *iptr; 20604 iptr p = 0; 20605 ++p; 20606 } 20607 { /* AIX XL C 1.02.0.0 rejects this saying 20608 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20609 struct s { int j; const int *ap[3]; }; 20610 struct s *b; b->j = 5; 20611 } 20612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20613 const int foo = 10; 20614 } 20615#endif 20616 20617 ; 20618 return 0; 20619} 20620_ACEOF 20621rm -f "conftest.$ac_objext" 20622if { (eval echo "$as_me:20619: \"$ac_compile\"") >&5 20623 (eval $ac_compile) 2>&5 20624 ac_status=$? 20625 echo "$as_me:20622: \$? = $ac_status" >&5 20626 (exit "$ac_status"); } && 20627 { ac_try='test -s "conftest.$ac_objext"' 20628 { (eval echo "$as_me:20625: \"$ac_try\"") >&5 20629 (eval $ac_try) 2>&5 20630 ac_status=$? 20631 echo "$as_me:20628: \$? = $ac_status" >&5 20632 (exit "$ac_status"); }; }; then 20633 ac_cv_c_const=yes 20634else 20635 echo "$as_me: failed program was:" >&5 20636cat "conftest.$ac_ext" >&5 20637ac_cv_c_const=no 20638fi 20639rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20640fi 20641echo "$as_me:20638: result: $ac_cv_c_const" >&5 20642echo "${ECHO_T}$ac_cv_c_const" >&6 20643if test $ac_cv_c_const = no; then 20644 20645cat >>confdefs.h <<\EOF 20646#define const 20647EOF 20648 20649fi 20650 20651echo "$as_me:20648: checking for inline" >&5 20652echo $ECHO_N "checking for inline... $ECHO_C" >&6 20653if test "${ac_cv_c_inline+set}" = set; then 20654 echo $ECHO_N "(cached) $ECHO_C" >&6 20655else 20656 ac_cv_c_inline=no 20657for ac_kw in inline __inline__ __inline; do 20658 cat >"conftest.$ac_ext" <<_ACEOF 20659#line 20656 "configure" 20660#include "confdefs.h" 20661#ifndef __cplusplus 20662static $ac_kw int static_foo () {return 0; } 20663$ac_kw int foo () {return 0; } 20664#endif 20665 20666_ACEOF 20667rm -f "conftest.$ac_objext" 20668if { (eval echo "$as_me:20665: \"$ac_compile\"") >&5 20669 (eval $ac_compile) 2>&5 20670 ac_status=$? 20671 echo "$as_me:20668: \$? = $ac_status" >&5 20672 (exit "$ac_status"); } && 20673 { ac_try='test -s "conftest.$ac_objext"' 20674 { (eval echo "$as_me:20671: \"$ac_try\"") >&5 20675 (eval $ac_try) 2>&5 20676 ac_status=$? 20677 echo "$as_me:20674: \$? = $ac_status" >&5 20678 (exit "$ac_status"); }; }; then 20679 ac_cv_c_inline=$ac_kw; break 20680else 20681 echo "$as_me: failed program was:" >&5 20682cat "conftest.$ac_ext" >&5 20683fi 20684rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20685done 20686 20687fi 20688echo "$as_me:20685: result: $ac_cv_c_inline" >&5 20689echo "${ECHO_T}$ac_cv_c_inline" >&6 20690case $ac_cv_c_inline in 20691 inline | yes) ;; 20692 no) 20693cat >>confdefs.h <<\EOF 20694#define inline 20695EOF 20696 ;; 20697 *) cat >>confdefs.h <<EOF 20698#define inline $ac_cv_c_inline 20699EOF 20700 ;; 20701esac 20702 20703NCURSES_INLINE= 20704if test "$ac_cv_c_inline" != no ; then 20705 NCURSES_INLINE=inline 20706 if test "$INTEL_COMPILER" = yes 20707 then 20708 : 20709 elif test "$CLANG_COMPILER" = yes 20710 then 20711 : 20712 elif test "$GCC" = yes 20713 then 20714 echo "$as_me:20711: checking if $CC supports options to tune inlining" >&5 20715echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6 20716if test "${cf_cv_gcc_inline+set}" = set; then 20717 echo $ECHO_N "(cached) $ECHO_C" >&6 20718else 20719 20720 cf_save_CFLAGS=$CFLAGS 20721 CFLAGS="$CFLAGS --param max-inline-insns-single=1200" 20722 cat >"conftest.$ac_ext" <<_ACEOF 20723#line 20720 "configure" 20724#include "confdefs.h" 20725inline int foo(void) { return 1; } 20726int 20727main (void) 20728{ 20729${cf_cv_main_return:-return} foo() 20730 ; 20731 return 0; 20732} 20733_ACEOF 20734rm -f "conftest.$ac_objext" 20735if { (eval echo "$as_me:20732: \"$ac_compile\"") >&5 20736 (eval $ac_compile) 2>&5 20737 ac_status=$? 20738 echo "$as_me:20735: \$? = $ac_status" >&5 20739 (exit "$ac_status"); } && 20740 { ac_try='test -s "conftest.$ac_objext"' 20741 { (eval echo "$as_me:20738: \"$ac_try\"") >&5 20742 (eval $ac_try) 2>&5 20743 ac_status=$? 20744 echo "$as_me:20741: \$? = $ac_status" >&5 20745 (exit "$ac_status"); }; }; then 20746 cf_cv_gcc_inline=yes 20747else 20748 echo "$as_me: failed program was:" >&5 20749cat "conftest.$ac_ext" >&5 20750cf_cv_gcc_inline=no 20751fi 20752rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20753 CFLAGS=$cf_save_CFLAGS 20754 20755fi 20756echo "$as_me:20753: result: $cf_cv_gcc_inline" >&5 20757echo "${ECHO_T}$cf_cv_gcc_inline" >&6 20758 if test "$cf_cv_gcc_inline" = yes ; then 20759 20760cf_fix_cppflags=no 20761cf_new_cflags= 20762cf_new_cppflags= 20763cf_new_extra_cppflags= 20764 20765for cf_add_cflags in --param max-inline-insns-single=1200 20766do 20767case "$cf_fix_cppflags" in 20768(no) 20769 case "$cf_add_cflags" in 20770 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 20771 case "$cf_add_cflags" in 20772 (-D*) 20773 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 20774 20775 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20776 && test -z "${cf_tst_cflags}" \ 20777 && cf_fix_cppflags=yes 20778 20779 if test "$cf_fix_cppflags" = yes ; then 20780 20781 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20782 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20783 20784 continue 20785 elif test "${cf_tst_cflags}" = "\"'" ; then 20786 20787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20789 20790 continue 20791 fi 20792 ;; 20793 esac 20794 case "$CPPFLAGS" in 20795 (*$cf_add_cflags) 20796 ;; 20797 (*) 20798 case "$cf_add_cflags" in 20799 (-D*) 20800 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 20801 20802CPPFLAGS=`echo "$CPPFLAGS" | \ 20803 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 20804 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 20805 20806 ;; 20807 esac 20808 20809 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 20810 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 20811 20812 ;; 20813 esac 20814 ;; 20815 (*) 20816 20817 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 20818 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 20819 20820 ;; 20821 esac 20822 ;; 20823(yes) 20824 20825 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 20826 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 20827 20828 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'` 20829 20830 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 20831 && test -z "${cf_tst_cflags}" \ 20832 && cf_fix_cppflags=no 20833 ;; 20834esac 20835done 20836 20837if test -n "$cf_new_cflags" ; then 20838 20839 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 20840 CFLAGS="${CFLAGS}$cf_new_cflags" 20841 20842fi 20843 20844if test -n "$cf_new_cppflags" ; then 20845 20846 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 20847 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 20848 20849fi 20850 20851if test -n "$cf_new_extra_cppflags" ; then 20852 20853 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 20854 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 20855 20856fi 20857 20858 fi 20859 fi 20860fi 20861 20862echo "$as_me:20859: checking for signal global datatype" >&5 20863echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 20864if test "${cf_cv_sig_atomic_t+set}" = set; then 20865 echo $ECHO_N "(cached) $ECHO_C" >&6 20866else 20867 20868 for cf_type in \ 20869 "volatile sig_atomic_t" \ 20870 "sig_atomic_t" \ 20871 "int" 20872 do 20873 cat >"conftest.$ac_ext" <<_ACEOF 20874#line 20871 "configure" 20875#include "confdefs.h" 20876 20877#include <sys/types.h> 20878#include <signal.h> 20879#include <stdio.h> 20880 20881extern $cf_type x; 20882$cf_type x; 20883static void handler(int sig) 20884{ 20885 (void)sig; 20886 x = 5; 20887} 20888int 20889main (void) 20890{ 20891signal(SIGINT, handler); 20892 x = 1 20893 ; 20894 return 0; 20895} 20896_ACEOF 20897rm -f "conftest.$ac_objext" 20898if { (eval echo "$as_me:20895: \"$ac_compile\"") >&5 20899 (eval $ac_compile) 2>&5 20900 ac_status=$? 20901 echo "$as_me:20898: \$? = $ac_status" >&5 20902 (exit "$ac_status"); } && 20903 { ac_try='test -s "conftest.$ac_objext"' 20904 { (eval echo "$as_me:20901: \"$ac_try\"") >&5 20905 (eval $ac_try) 2>&5 20906 ac_status=$? 20907 echo "$as_me:20904: \$? = $ac_status" >&5 20908 (exit "$ac_status"); }; }; then 20909 cf_cv_sig_atomic_t=$cf_type 20910else 20911 echo "$as_me: failed program was:" >&5 20912cat "conftest.$ac_ext" >&5 20913cf_cv_sig_atomic_t=no 20914fi 20915rm -f "conftest.$ac_objext" "conftest.$ac_ext" 20916 test "$cf_cv_sig_atomic_t" != no && break 20917 done 20918 20919fi 20920 20921echo "$as_me:20918: result: $cf_cv_sig_atomic_t" >&5 20922echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 20923test "$cf_cv_sig_atomic_t" != no && 20924cat >>confdefs.h <<EOF 20925#define SIG_ATOMIC_T $cf_cv_sig_atomic_t 20926EOF 20927 20928if test "$NCURSES_CHTYPE" = auto ; then 20929 20930echo "$as_me:20927: checking for type of chtype" >&5 20931echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6 20932if test "${cf_cv_typeof_chtype+set}" = set; then 20933 echo $ECHO_N "(cached) $ECHO_C" >&6 20934else 20935 20936 if test "$cross_compiling" = yes; then 20937 cf_cv_typeof_chtype=long 20938else 20939 cat >"conftest.$ac_ext" <<_ACEOF 20940#line 20937 "configure" 20941#include "confdefs.h" 20942 20943#define WANT_BITS 31 20944#include <stdio.h> 20945int main(void) 20946{ 20947 FILE *fp = fopen("cf_test.out", "w"); 20948 if (fp != 0) { 20949 char *result = "long"; 20950 if (sizeof(unsigned long) > sizeof(unsigned int)) { 20951 int n; 20952 unsigned int x, y; 20953 for (n = 0; n < WANT_BITS; n++) { 20954 x = (1 << n); 20955 y = (x >> n); 20956 if (y != 1 || x == 0) { 20957 x = 0; 20958 break; 20959 } 20960 } 20961 /* 20962 * If x is nonzero, an int is big enough for the bits 20963 * that we want. 20964 */ 20965 result = (x != 0) ? "int" : "long"; 20966 } 20967 fputs(result, fp); 20968 fclose(fp); 20969 } 20970 ${cf_cv_main_return:-return}(0); 20971} 20972 20973_ACEOF 20974rm -f "conftest$ac_exeext" 20975if { (eval echo "$as_me:20972: \"$ac_link\"") >&5 20976 (eval $ac_link) 2>&5 20977 ac_status=$? 20978 echo "$as_me:20975: \$? = $ac_status" >&5 20979 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 20980 { (eval echo "$as_me:20977: \"$ac_try\"") >&5 20981 (eval $ac_try) 2>&5 20982 ac_status=$? 20983 echo "$as_me:20980: \$? = $ac_status" >&5 20984 (exit "$ac_status"); }; }; then 20985 cf_cv_typeof_chtype=`cat cf_test.out` 20986else 20987 echo "$as_me: program exited with status $ac_status" >&5 20988echo "$as_me: failed program was:" >&5 20989cat "conftest.$ac_ext" >&5 20990cf_cv_typeof_chtype=long 20991fi 20992rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 20993fi 20994 rm -f cf_test.out 20995 20996fi 20997 20998echo "$as_me:20995: result: $cf_cv_typeof_chtype" >&5 20999echo "${ECHO_T}$cf_cv_typeof_chtype" >&6 21000 21001cat >>confdefs.h <<EOF 21002#define TYPEOF_CHTYPE $cf_cv_typeof_chtype 21003EOF 21004 21005else 21006 cf_cv_typeof_chtype=$NCURSES_CHTYPE 21007fi 21008test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype="" 21009 21010echo "$as_me:21007: checking if unsigned literals are legal" >&5 21011echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6 21012if test "${cf_cv_unsigned_literals+set}" = set; then 21013 echo $ECHO_N "(cached) $ECHO_C" >&6 21014else 21015 21016 cat >"conftest.$ac_ext" <<_ACEOF 21017#line 21014 "configure" 21018#include "confdefs.h" 21019 21020int 21021main (void) 21022{ 21023long x = 1L + 1UL + 1U + 1 21024 ; 21025 return 0; 21026} 21027_ACEOF 21028rm -f "conftest.$ac_objext" 21029if { (eval echo "$as_me:21026: \"$ac_compile\"") >&5 21030 (eval $ac_compile) 2>&5 21031 ac_status=$? 21032 echo "$as_me:21029: \$? = $ac_status" >&5 21033 (exit "$ac_status"); } && 21034 { ac_try='test -s "conftest.$ac_objext"' 21035 { (eval echo "$as_me:21032: \"$ac_try\"") >&5 21036 (eval $ac_try) 2>&5 21037 ac_status=$? 21038 echo "$as_me:21035: \$? = $ac_status" >&5 21039 (exit "$ac_status"); }; }; then 21040 cf_cv_unsigned_literals=yes 21041else 21042 echo "$as_me: failed program was:" >&5 21043cat "conftest.$ac_ext" >&5 21044cf_cv_unsigned_literals=no 21045fi 21046rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21047 21048fi 21049 21050echo "$as_me:21047: result: $cf_cv_unsigned_literals" >&5 21051echo "${ECHO_T}$cf_cv_unsigned_literals" >&6 21052 21053cf_cv_1UL="1" 21054test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U" 21055test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L" 21056 21057if test "$NCURSES_MMASK_T" = auto ; then 21058 cf_cv_typeof_mmask_t=long 21059else 21060 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T 21061fi 21062test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t="" 21063 21064### Checks for external-data 21065 21066echo "$as_me:21063: checking if external errno is declared" >&5 21067echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 21068if test "${cf_cv_dcl_errno+set}" = set; then 21069 echo $ECHO_N "(cached) $ECHO_C" >&6 21070else 21071 21072 cat >"conftest.$ac_ext" <<_ACEOF 21073#line 21070 "configure" 21074#include "confdefs.h" 21075 21076#ifdef HAVE_STDLIB_H 21077#include <stdlib.h> 21078#endif 21079#include <stdio.h> 21080#include <sys/types.h> 21081#include <errno.h> 21082int 21083main (void) 21084{ 21085int x = (int) errno; (void)x 21086 ; 21087 return 0; 21088} 21089_ACEOF 21090rm -f "conftest.$ac_objext" 21091if { (eval echo "$as_me:21088: \"$ac_compile\"") >&5 21092 (eval $ac_compile) 2>&5 21093 ac_status=$? 21094 echo "$as_me:21091: \$? = $ac_status" >&5 21095 (exit "$ac_status"); } && 21096 { ac_try='test -s "conftest.$ac_objext"' 21097 { (eval echo "$as_me:21094: \"$ac_try\"") >&5 21098 (eval $ac_try) 2>&5 21099 ac_status=$? 21100 echo "$as_me:21097: \$? = $ac_status" >&5 21101 (exit "$ac_status"); }; }; then 21102 cf_cv_dcl_errno=yes 21103else 21104 echo "$as_me: failed program was:" >&5 21105cat "conftest.$ac_ext" >&5 21106cf_cv_dcl_errno=no 21107fi 21108rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21109 21110fi 21111echo "$as_me:21108: result: $cf_cv_dcl_errno" >&5 21112echo "${ECHO_T}$cf_cv_dcl_errno" >&6 21113 21114if test "$cf_cv_dcl_errno" = no ; then 21115 21116cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 21117 21118 cat >>confdefs.h <<EOF 21119#define $cf_result 1 21120EOF 21121 21122fi 21123 21124# It's possible (for near-UNIX clones) that the data doesn't exist 21125 21126echo "$as_me:21123: checking if external errno exists" >&5 21127echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 21128if test "${cf_cv_have_errno+set}" = set; then 21129 echo $ECHO_N "(cached) $ECHO_C" >&6 21130else 21131 21132 cat >"conftest.$ac_ext" <<_ACEOF 21133#line 21130 "configure" 21134#include "confdefs.h" 21135 21136#undef errno 21137extern int errno; 21138 21139int 21140main (void) 21141{ 21142errno = 2 21143 ; 21144 return 0; 21145} 21146_ACEOF 21147rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21148if { (eval echo "$as_me:21145: \"$ac_link\"") >&5 21149 (eval $ac_link) 2>&5 21150 ac_status=$? 21151 echo "$as_me:21148: \$? = $ac_status" >&5 21152 (exit "$ac_status"); } && 21153 { ac_try='test -s "conftest$ac_exeext"' 21154 { (eval echo "$as_me:21151: \"$ac_try\"") >&5 21155 (eval $ac_try) 2>&5 21156 ac_status=$? 21157 echo "$as_me:21154: \$? = $ac_status" >&5 21158 (exit "$ac_status"); }; }; then 21159 cf_cv_have_errno=yes 21160else 21161 echo "$as_me: failed program was:" >&5 21162cat "conftest.$ac_ext" >&5 21163cf_cv_have_errno=no 21164fi 21165rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21166 21167fi 21168echo "$as_me:21165: result: $cf_cv_have_errno" >&5 21169echo "${ECHO_T}$cf_cv_have_errno" >&6 21170 21171if test "$cf_cv_have_errno" = yes ; then 21172 21173cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 21174 21175 cat >>confdefs.h <<EOF 21176#define $cf_result 1 21177EOF 21178 21179fi 21180 21181echo "$as_me:21178: checking if data-only library module links" >&5 21182echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6 21183if test "${cf_cv_link_dataonly+set}" = set; then 21184 echo $ECHO_N "(cached) $ECHO_C" >&6 21185else 21186 21187 rm -f conftest.a 21188 cat >conftest.$ac_ext <<EOF 21189#line 21186 "configure" 21190int testdata[3] = { 123, 456, 789 }; 21191EOF 21192 if { (eval echo "$as_me:21189: \"$ac_compile\"") >&5 21193 (eval $ac_compile) 2>&5 21194 ac_status=$? 21195 echo "$as_me:21192: \$? = $ac_status" >&5 21196 (exit "$ac_status"); } ; then 21197 mv conftest.o data.o && \ 21198 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null 21199 fi 21200 rm -f conftest.$ac_ext data.o 21201 cat >conftest.$ac_ext <<EOF 21202#line 21199 "configure" 21203int testfunc(void) 21204{ 21205#if defined(NeXT) 21206 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */ 21207#else 21208 extern int testdata[3]; 21209 return testdata[0] == 123 21210 && testdata[1] == 456 21211 && testdata[2] == 789; 21212#endif 21213} 21214EOF 21215 if { (eval echo "$as_me:21212: \"$ac_compile\"") >&5 21216 (eval $ac_compile) 2>&5 21217 ac_status=$? 21218 echo "$as_me:21215: \$? = $ac_status" >&5 21219 (exit "$ac_status"); }; then 21220 mv conftest.o func.o && \ 21221 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null 21222 fi 21223 rm -f conftest.$ac_ext func.o 21224 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null 21225 cf_saveLIBS="$LIBS" 21226 LIBS="conftest.a $LIBS" 21227 if test "$cross_compiling" = yes; then 21228 cf_cv_link_dataonly=unknown 21229else 21230 cat >"conftest.$ac_ext" <<_ACEOF 21231#line 21228 "configure" 21232#include "confdefs.h" 21233 21234 int main(void) 21235 { 21236 extern int testfunc(); 21237 ${cf_cv_main_return:-return} (!testfunc()); 21238 } 21239 21240_ACEOF 21241rm -f "conftest$ac_exeext" 21242if { (eval echo "$as_me:21239: \"$ac_link\"") >&5 21243 (eval $ac_link) 2>&5 21244 ac_status=$? 21245 echo "$as_me:21242: \$? = $ac_status" >&5 21246 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 21247 { (eval echo "$as_me:21244: \"$ac_try\"") >&5 21248 (eval $ac_try) 2>&5 21249 ac_status=$? 21250 echo "$as_me:21247: \$? = $ac_status" >&5 21251 (exit "$ac_status"); }; }; then 21252 cf_cv_link_dataonly=yes 21253else 21254 echo "$as_me: program exited with status $ac_status" >&5 21255echo "$as_me: failed program was:" >&5 21256cat "conftest.$ac_ext" >&5 21257cf_cv_link_dataonly=no 21258fi 21259rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 21260fi 21261 LIBS="$cf_saveLIBS" 21262 21263fi 21264 21265echo "$as_me:21262: result: $cf_cv_link_dataonly" >&5 21266echo "${ECHO_T}$cf_cv_link_dataonly" >&6 21267 21268if test "$cf_cv_link_dataonly" = no ; then 21269 21270cat >>confdefs.h <<\EOF 21271#define BROKEN_LINKER 1 21272EOF 21273 21274 BROKEN_LINKER=1 21275fi 21276 21277### Checks for library functions. 21278 21279for ac_func in \ 21280getcwd \ 21281getegid \ 21282geteuid \ 21283getopt \ 21284getttynam \ 21285issetugid \ 21286localeconv \ 21287poll \ 21288putenv \ 21289remove \ 21290select \ 21291setbuf \ 21292setbuffer \ 21293setenv \ 21294setfsuid \ 21295setvbuf \ 21296sigaction \ 21297sigvec \ 21298snprintf \ 21299strdup \ 21300strstr \ 21301sysconf \ 21302tcgetpgrp \ 21303times \ 21304tsearch \ 21305vsnprintf \ 21306 21307do 21308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21309echo "$as_me:21306: checking for $ac_func" >&5 21310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21311if eval "test \"\${$as_ac_var+set}\" = set"; then 21312 echo $ECHO_N "(cached) $ECHO_C" >&6 21313else 21314 cat >"conftest.$ac_ext" <<_ACEOF 21315#line 21312 "configure" 21316#include "confdefs.h" 21317#define $ac_func autoconf_temporary 21318#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 21319#undef $ac_func 21320 21321#ifdef __cplusplus 21322extern "C" 21323#endif 21324 21325/* We use char because int might match the return type of a gcc2 21326 builtin and then its argument prototype would still apply. */ 21327char $ac_func (void); 21328 21329int 21330main (void) 21331{ 21332 21333/* The GNU C library defines stubs for functions which it implements 21334 to always fail with ENOSYS. Some functions are actually named 21335 something starting with __ and the normal name is an alias. */ 21336#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21337#error found stub for $ac_func 21338#endif 21339 21340 return $ac_func (); 21341 ; 21342 return 0; 21343} 21344_ACEOF 21345rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21346if { (eval echo "$as_me:21343: \"$ac_link\"") >&5 21347 (eval $ac_link) 2>&5 21348 ac_status=$? 21349 echo "$as_me:21346: \$? = $ac_status" >&5 21350 (exit "$ac_status"); } && 21351 { ac_try='test -s "conftest$ac_exeext"' 21352 { (eval echo "$as_me:21349: \"$ac_try\"") >&5 21353 (eval $ac_try) 2>&5 21354 ac_status=$? 21355 echo "$as_me:21352: \$? = $ac_status" >&5 21356 (exit "$ac_status"); }; }; then 21357 eval "$as_ac_var=yes" 21358else 21359 echo "$as_me: failed program was:" >&5 21360cat "conftest.$ac_ext" >&5 21361eval "$as_ac_var=no" 21362fi 21363rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21364fi 21365echo "$as_me:21362: result: `eval echo '${'"$as_ac_var"'}'`" >&5 21366echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 21367if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 21368 cat >>confdefs.h <<EOF 21369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21370EOF 21371 21372fi 21373done 21374 21375if test "x$ac_cv_func_getopt" = xno && \ 21376 test "x$cf_with_progs$cf_with_tests" != xnono; then 21377 { { echo "$as_me:21374: error: getopt is required for building programs" >&5 21378echo "$as_me: error: getopt is required for building programs" >&2;} 21379 { (exit 1); exit 1; }; } 21380fi 21381 21382if test "x$with_safe_sprintf" = xyes 21383then 21384 if test "x$ac_cv_func_vsnprintf" = xyes 21385 then 21386 { echo "$as_me:21383: WARNING: will use vsnprintf instead of safe-sprintf option" >&5 21387echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;} 21388 else 21389 21390cat >>confdefs.h <<\EOF 21391#define USE_SAFE_SPRINTF 1 21392EOF 21393 21394 fi 21395fi 21396 21397if test "x$with_getcap" = "xyes" ; then 21398 21399echo "$as_me:21396: checking for terminal-capability database functions" >&5 21400echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6 21401if test "${cf_cv_cgetent+set}" = set; then 21402 echo $ECHO_N "(cached) $ECHO_C" >&6 21403else 21404 21405cat >"conftest.$ac_ext" <<_ACEOF 21406#line 21403 "configure" 21407#include "confdefs.h" 21408 21409#include <stdlib.h> 21410int 21411main (void) 21412{ 21413 21414 char temp[128]; 21415 char *buf = temp; 21416 char *db_array = temp; 21417 cgetent(&buf, &db_array, "vt100"); 21418 cgetcap(buf, "tc", '='); 21419 cgetmatch(buf, "tc"); 21420 21421 ; 21422 return 0; 21423} 21424_ACEOF 21425rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21426if { (eval echo "$as_me:21423: \"$ac_link\"") >&5 21427 (eval $ac_link) 2>&5 21428 ac_status=$? 21429 echo "$as_me:21426: \$? = $ac_status" >&5 21430 (exit "$ac_status"); } && 21431 { ac_try='test -s "conftest$ac_exeext"' 21432 { (eval echo "$as_me:21429: \"$ac_try\"") >&5 21433 (eval $ac_try) 2>&5 21434 ac_status=$? 21435 echo "$as_me:21432: \$? = $ac_status" >&5 21436 (exit "$ac_status"); }; }; then 21437 cf_cv_cgetent=yes 21438else 21439 echo "$as_me: failed program was:" >&5 21440cat "conftest.$ac_ext" >&5 21441cf_cv_cgetent=no 21442fi 21443rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21444 21445fi 21446echo "$as_me:21443: result: $cf_cv_cgetent" >&5 21447echo "${ECHO_T}$cf_cv_cgetent" >&6 21448 21449if test "$cf_cv_cgetent" = yes 21450then 21451 21452cat >>confdefs.h <<\EOF 21453#define HAVE_BSD_CGETENT 1 21454EOF 21455 21456echo "$as_me:21453: checking if cgetent uses const parameter" >&5 21457echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6 21458if test "${cf_cv_cgetent_const+set}" = set; then 21459 echo $ECHO_N "(cached) $ECHO_C" >&6 21460else 21461 21462cat >"conftest.$ac_ext" <<_ACEOF 21463#line 21460 "configure" 21464#include "confdefs.h" 21465 21466#pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers" 21467#include <stdlib.h> 21468int 21469main (void) 21470{ 21471 21472 char temp[128]; 21473 char *buf = temp; 21474#ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */ 21475 const char *db_array = temp; 21476 cgetent(&buf, &db_array, "vt100"); 21477#endif 21478 cgetcap(buf, "tc", '='); 21479 cgetmatch(buf, "tc"); 21480 21481 ; 21482 return 0; 21483} 21484_ACEOF 21485rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21486if { (eval echo "$as_me:21483: \"$ac_link\"") >&5 21487 (eval $ac_link) 2>&5 21488 ac_status=$? 21489 echo "$as_me:21486: \$? = $ac_status" >&5 21490 (exit "$ac_status"); } && 21491 { ac_try='test -s "conftest$ac_exeext"' 21492 { (eval echo "$as_me:21489: \"$ac_try\"") >&5 21493 (eval $ac_try) 2>&5 21494 ac_status=$? 21495 echo "$as_me:21492: \$? = $ac_status" >&5 21496 (exit "$ac_status"); }; }; then 21497 cf_cv_cgetent_const=yes 21498else 21499 echo "$as_me: failed program was:" >&5 21500cat "conftest.$ac_ext" >&5 21501cf_cv_cgetent_const=no 21502fi 21503rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21504 21505fi 21506echo "$as_me:21503: result: $cf_cv_cgetent_const" >&5 21507echo "${ECHO_T}$cf_cv_cgetent_const" >&6 21508 if test "$cf_cv_cgetent_const" = yes 21509 then 21510 21511cat >>confdefs.h <<EOF 21512#define CGETENT_CONST const 21513EOF 21514 21515 fi 21516fi 21517 21518fi 21519 21520echo "$as_me:21517: checking for isascii" >&5 21521echo $ECHO_N "checking for isascii... $ECHO_C" >&6 21522if test "${cf_cv_have_isascii+set}" = set; then 21523 echo $ECHO_N "(cached) $ECHO_C" >&6 21524else 21525 21526 cat >"conftest.$ac_ext" <<_ACEOF 21527#line 21524 "configure" 21528#include "confdefs.h" 21529#include <ctype.h> 21530int 21531main (void) 21532{ 21533int x = isascii(' ') 21534 ; 21535 return 0; 21536} 21537_ACEOF 21538rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21539if { (eval echo "$as_me:21536: \"$ac_link\"") >&5 21540 (eval $ac_link) 2>&5 21541 ac_status=$? 21542 echo "$as_me:21539: \$? = $ac_status" >&5 21543 (exit "$ac_status"); } && 21544 { ac_try='test -s "conftest$ac_exeext"' 21545 { (eval echo "$as_me:21542: \"$ac_try\"") >&5 21546 (eval $ac_try) 2>&5 21547 ac_status=$? 21548 echo "$as_me:21545: \$? = $ac_status" >&5 21549 (exit "$ac_status"); }; }; then 21550 cf_cv_have_isascii=yes 21551else 21552 echo "$as_me: failed program was:" >&5 21553cat "conftest.$ac_ext" >&5 21554cf_cv_have_isascii=no 21555fi 21556rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21557 21558fi 21559echo "$as_me:21556: result: $cf_cv_have_isascii" >&5 21560echo "${ECHO_T}$cf_cv_have_isascii" >&6 21561test "$cf_cv_have_isascii" = yes && 21562cat >>confdefs.h <<\EOF 21563#define HAVE_ISASCII 1 21564EOF 21565 21566if test "$ac_cv_func_sigaction" = yes; then 21567echo "$as_me:21564: checking whether sigaction needs _POSIX_SOURCE" >&5 21568echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6 21569cat >"conftest.$ac_ext" <<_ACEOF 21570#line 21567 "configure" 21571#include "confdefs.h" 21572 21573#include <sys/types.h> 21574#include <signal.h> 21575int 21576main (void) 21577{ 21578struct sigaction act 21579 ; 21580 return 0; 21581} 21582_ACEOF 21583rm -f "conftest.$ac_objext" 21584if { (eval echo "$as_me:21581: \"$ac_compile\"") >&5 21585 (eval $ac_compile) 2>&5 21586 ac_status=$? 21587 echo "$as_me:21584: \$? = $ac_status" >&5 21588 (exit "$ac_status"); } && 21589 { ac_try='test -s "conftest.$ac_objext"' 21590 { (eval echo "$as_me:21587: \"$ac_try\"") >&5 21591 (eval $ac_try) 2>&5 21592 ac_status=$? 21593 echo "$as_me:21590: \$? = $ac_status" >&5 21594 (exit "$ac_status"); }; }; then 21595 sigact_bad=no 21596else 21597 echo "$as_me: failed program was:" >&5 21598cat "conftest.$ac_ext" >&5 21599 21600cat >"conftest.$ac_ext" <<_ACEOF 21601#line 21598 "configure" 21602#include "confdefs.h" 21603 21604#define _POSIX_SOURCE 21605#include <sys/types.h> 21606#include <signal.h> 21607int 21608main (void) 21609{ 21610struct sigaction act 21611 ; 21612 return 0; 21613} 21614_ACEOF 21615rm -f "conftest.$ac_objext" 21616if { (eval echo "$as_me:21613: \"$ac_compile\"") >&5 21617 (eval $ac_compile) 2>&5 21618 ac_status=$? 21619 echo "$as_me:21616: \$? = $ac_status" >&5 21620 (exit "$ac_status"); } && 21621 { ac_try='test -s "conftest.$ac_objext"' 21622 { (eval echo "$as_me:21619: \"$ac_try\"") >&5 21623 (eval $ac_try) 2>&5 21624 ac_status=$? 21625 echo "$as_me:21622: \$? = $ac_status" >&5 21626 (exit "$ac_status"); }; }; then 21627 sigact_bad=yes 21628 21629cat >>confdefs.h <<\EOF 21630#define _POSIX_SOURCE 1 21631EOF 21632 21633else 21634 echo "$as_me: failed program was:" >&5 21635cat "conftest.$ac_ext" >&5 21636sigact_bad=unknown 21637fi 21638rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21639fi 21640rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21641echo "$as_me:21638: result: $sigact_bad" >&5 21642echo "${ECHO_T}$sigact_bad" >&6 21643fi 21644 21645echo "$as_me:21642: checking if nanosleep really works" >&5 21646echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6 21647if test "${cf_cv_func_nanosleep+set}" = set; then 21648 echo $ECHO_N "(cached) $ECHO_C" >&6 21649else 21650 21651if test "$cross_compiling" = yes; then 21652 cf_cv_func_nanosleep=unknown 21653else 21654 cat >"conftest.$ac_ext" <<_ACEOF 21655#line 21652 "configure" 21656#include "confdefs.h" 21657 21658#include <stdio.h> 21659#include <errno.h> 21660#include <time.h> 21661 21662#ifdef HAVE_SYS_TIME_H 21663#include <sys/time.h> 21664#endif 21665 21666int main(void) { 21667 struct timespec ts1, ts2; 21668 int code; 21669 ts1.tv_sec = 0; 21670 ts1.tv_nsec = 750000000; 21671 ts2.tv_sec = 0; 21672 ts2.tv_nsec = 0; 21673 errno = 0; 21674 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */ 21675 ${cf_cv_main_return:-return}(code != 0); 21676} 21677 21678_ACEOF 21679rm -f "conftest$ac_exeext" 21680if { (eval echo "$as_me:21677: \"$ac_link\"") >&5 21681 (eval $ac_link) 2>&5 21682 ac_status=$? 21683 echo "$as_me:21680: \$? = $ac_status" >&5 21684 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 21685 { (eval echo "$as_me:21682: \"$ac_try\"") >&5 21686 (eval $ac_try) 2>&5 21687 ac_status=$? 21688 echo "$as_me:21685: \$? = $ac_status" >&5 21689 (exit "$ac_status"); }; }; then 21690 cf_cv_func_nanosleep=yes 21691else 21692 echo "$as_me: program exited with status $ac_status" >&5 21693echo "$as_me: failed program was:" >&5 21694cat "conftest.$ac_ext" >&5 21695cf_cv_func_nanosleep=no 21696fi 21697rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 21698fi 21699fi 21700echo "$as_me:21697: result: $cf_cv_func_nanosleep" >&5 21701echo "${ECHO_T}$cf_cv_func_nanosleep" >&6 21702 21703test "$cf_cv_func_nanosleep" = "yes" && 21704cat >>confdefs.h <<\EOF 21705#define HAVE_NANOSLEEP 1 21706EOF 21707 21708for ac_header in \ 21709termio.h \ 21710termios.h \ 21711unistd.h \ 21712sys/ioctl.h \ 21713sys/termio.h \ 21714 21715do 21716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21717echo "$as_me:21714: checking for $ac_header" >&5 21718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21719if eval "test \"\${$as_ac_Header+set}\" = set"; then 21720 echo $ECHO_N "(cached) $ECHO_C" >&6 21721else 21722 cat >"conftest.$ac_ext" <<_ACEOF 21723#line 21720 "configure" 21724#include "confdefs.h" 21725#include <$ac_header> 21726_ACEOF 21727if { (eval echo "$as_me:21724: \"$ac_cpp "conftest.$ac_ext"\"") >&5 21728 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 21729 ac_status=$? 21730 $EGREP -v '^ *\+' conftest.er1 >conftest.err 21731 rm -f conftest.er1 21732 cat conftest.err >&5 21733 echo "$as_me:21730: \$? = $ac_status" >&5 21734 (exit "$ac_status"); } >/dev/null; then 21735 if test -s conftest.err; then 21736 ac_cpp_err=$ac_c_preproc_warn_flag 21737 else 21738 ac_cpp_err= 21739 fi 21740else 21741 ac_cpp_err=yes 21742fi 21743if test -z "$ac_cpp_err"; then 21744 eval "$as_ac_Header=yes" 21745else 21746 echo "$as_me: failed program was:" >&5 21747 cat "conftest.$ac_ext" >&5 21748 eval "$as_ac_Header=no" 21749fi 21750rm -f conftest.err "conftest.$ac_ext" 21751fi 21752echo "$as_me:21749: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 21753echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 21754if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 21755 cat >>confdefs.h <<EOF 21756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21757EOF 21758 21759fi 21760done 21761 21762if test "$ac_cv_header_termios_h" = yes ; then 21763 case "$CFLAGS $CPPFLAGS" in 21764 (*-D_POSIX_SOURCE*) 21765 termios_bad=dunno ;; 21766 (*) termios_bad=maybe ;; 21767 esac 21768 if test "$termios_bad" = maybe ; then 21769 echo "$as_me:21766: checking whether termios.h needs _POSIX_SOURCE" >&5 21770echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6 21771 cat >"conftest.$ac_ext" <<_ACEOF 21772#line 21769 "configure" 21773#include "confdefs.h" 21774#include <termios.h> 21775int 21776main (void) 21777{ 21778struct termios foo; int x = foo.c_iflag = 1; (void)x 21779 ; 21780 return 0; 21781} 21782_ACEOF 21783rm -f "conftest.$ac_objext" 21784if { (eval echo "$as_me:21781: \"$ac_compile\"") >&5 21785 (eval $ac_compile) 2>&5 21786 ac_status=$? 21787 echo "$as_me:21784: \$? = $ac_status" >&5 21788 (exit "$ac_status"); } && 21789 { ac_try='test -s "conftest.$ac_objext"' 21790 { (eval echo "$as_me:21787: \"$ac_try\"") >&5 21791 (eval $ac_try) 2>&5 21792 ac_status=$? 21793 echo "$as_me:21790: \$? = $ac_status" >&5 21794 (exit "$ac_status"); }; }; then 21795 termios_bad=no 21796else 21797 echo "$as_me: failed program was:" >&5 21798cat "conftest.$ac_ext" >&5 21799 21800 cat >"conftest.$ac_ext" <<_ACEOF 21801#line 21798 "configure" 21802#include "confdefs.h" 21803 21804#define _POSIX_SOURCE 21805#include <termios.h> 21806int 21807main (void) 21808{ 21809struct termios foo; int x = foo.c_iflag = 2; (void)x 21810 ; 21811 return 0; 21812} 21813_ACEOF 21814rm -f "conftest.$ac_objext" 21815if { (eval echo "$as_me:21812: \"$ac_compile\"") >&5 21816 (eval $ac_compile) 2>&5 21817 ac_status=$? 21818 echo "$as_me:21815: \$? = $ac_status" >&5 21819 (exit "$ac_status"); } && 21820 { ac_try='test -s "conftest.$ac_objext"' 21821 { (eval echo "$as_me:21818: \"$ac_try\"") >&5 21822 (eval $ac_try) 2>&5 21823 ac_status=$? 21824 echo "$as_me:21821: \$? = $ac_status" >&5 21825 (exit "$ac_status"); }; }; then 21826 termios_bad=unknown 21827else 21828 echo "$as_me: failed program was:" >&5 21829cat "conftest.$ac_ext" >&5 21830termios_bad=yes 21831cat >>confdefs.h <<\EOF 21832#define _POSIX_SOURCE 1 21833EOF 21834 21835fi 21836rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21837 21838fi 21839rm -f "conftest.$ac_objext" "conftest.$ac_ext" 21840 echo "$as_me:21837: result: $termios_bad" >&5 21841echo "${ECHO_T}$termios_bad" >&6 21842 fi 21843fi 21844 21845echo "$as_me:21842: checking for tcgetattr" >&5 21846echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6 21847if test "${cf_cv_have_tcgetattr+set}" = set; then 21848 echo $ECHO_N "(cached) $ECHO_C" >&6 21849else 21850 21851cat >"conftest.$ac_ext" <<_ACEOF 21852#line 21849 "configure" 21853#include "confdefs.h" 21854 21855#include <sys/types.h> 21856#ifdef HAVE_UNISTD_H 21857#include <unistd.h> 21858#endif 21859#ifdef HAVE_TERMIOS_H 21860#include <termios.h> 21861#define TTY struct termios 21862#else 21863#ifdef HAVE_TERMIO_H 21864#include <termio.h> 21865#define TTY struct termio 21866#endif 21867#endif 21868 21869int 21870main (void) 21871{ 21872 21873TTY foo; 21874tcgetattr(1, &foo); 21875 ; 21876 return 0; 21877} 21878_ACEOF 21879rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21880if { (eval echo "$as_me:21877: \"$ac_link\"") >&5 21881 (eval $ac_link) 2>&5 21882 ac_status=$? 21883 echo "$as_me:21880: \$? = $ac_status" >&5 21884 (exit "$ac_status"); } && 21885 { ac_try='test -s "conftest$ac_exeext"' 21886 { (eval echo "$as_me:21883: \"$ac_try\"") >&5 21887 (eval $ac_try) 2>&5 21888 ac_status=$? 21889 echo "$as_me:21886: \$? = $ac_status" >&5 21890 (exit "$ac_status"); }; }; then 21891 cf_cv_have_tcgetattr=yes 21892else 21893 echo "$as_me: failed program was:" >&5 21894cat "conftest.$ac_ext" >&5 21895cf_cv_have_tcgetattr=no 21896fi 21897rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 21898fi 21899echo "$as_me:21896: result: $cf_cv_have_tcgetattr" >&5 21900echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6 21901test "$cf_cv_have_tcgetattr" = yes && 21902cat >>confdefs.h <<\EOF 21903#define HAVE_TCGETATTR 1 21904EOF 21905 21906echo "$as_me:21903: checking for vsscanf function or workaround" >&5 21907echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6 21908if test "${cf_cv_func_vsscanf+set}" = set; then 21909 echo $ECHO_N "(cached) $ECHO_C" >&6 21910else 21911 21912cat >"conftest.$ac_ext" <<_ACEOF 21913#line 21910 "configure" 21914#include "confdefs.h" 21915 21916#include <stdarg.h> 21917#include <stdio.h> 21918int 21919main (void) 21920{ 21921 21922 va_list ap; 21923 vsscanf("from", "%d", ap) 21924 ; 21925 return 0; 21926} 21927_ACEOF 21928rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21929if { (eval echo "$as_me:21926: \"$ac_link\"") >&5 21930 (eval $ac_link) 2>&5 21931 ac_status=$? 21932 echo "$as_me:21929: \$? = $ac_status" >&5 21933 (exit "$ac_status"); } && 21934 { ac_try='test -s "conftest$ac_exeext"' 21935 { (eval echo "$as_me:21932: \"$ac_try\"") >&5 21936 (eval $ac_try) 2>&5 21937 ac_status=$? 21938 echo "$as_me:21935: \$? = $ac_status" >&5 21939 (exit "$ac_status"); }; }; then 21940 cf_cv_func_vsscanf=vsscanf 21941else 21942 echo "$as_me: failed program was:" >&5 21943cat "conftest.$ac_ext" >&5 21944 21945cat >"conftest.$ac_ext" <<_ACEOF 21946#line 21943 "configure" 21947#include "confdefs.h" 21948 21949#include <stdarg.h> 21950#include <stdio.h> 21951int 21952main (void) 21953{ 21954 21955 FILE strbuf; 21956 char *str = "from"; 21957 21958 strbuf._flag = _IOREAD; 21959 strbuf._ptr = strbuf._base = (unsigned char *) str; 21960 strbuf._cnt = strlen(str); 21961 strbuf._file = _NFILE; 21962 return (vfscanf(&strbuf, "%d", ap)) 21963 ; 21964 return 0; 21965} 21966_ACEOF 21967rm -f "conftest.$ac_objext" "conftest$ac_exeext" 21968if { (eval echo "$as_me:21965: \"$ac_link\"") >&5 21969 (eval $ac_link) 2>&5 21970 ac_status=$? 21971 echo "$as_me:21968: \$? = $ac_status" >&5 21972 (exit "$ac_status"); } && 21973 { ac_try='test -s "conftest$ac_exeext"' 21974 { (eval echo "$as_me:21971: \"$ac_try\"") >&5 21975 (eval $ac_try) 2>&5 21976 ac_status=$? 21977 echo "$as_me:21974: \$? = $ac_status" >&5 21978 (exit "$ac_status"); }; }; then 21979 cf_cv_func_vsscanf=vfscanf 21980else 21981 echo "$as_me: failed program was:" >&5 21982cat "conftest.$ac_ext" >&5 21983 21984cat >"conftest.$ac_ext" <<_ACEOF 21985#line 21982 "configure" 21986#include "confdefs.h" 21987 21988#include <stdarg.h> 21989#include <stdio.h> 21990int 21991main (void) 21992{ 21993 21994 FILE strbuf; 21995 char *str = "from"; 21996 21997 strbuf._flag = _IOREAD; 21998 strbuf._ptr = strbuf._base = (unsigned char *) str; 21999 strbuf._cnt = strlen(str); 22000 strbuf._file = _NFILE; 22001 return (_doscan(&strbuf, "%d", ap)) 22002 ; 22003 return 0; 22004} 22005_ACEOF 22006rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22007if { (eval echo "$as_me:22004: \"$ac_link\"") >&5 22008 (eval $ac_link) 2>&5 22009 ac_status=$? 22010 echo "$as_me:22007: \$? = $ac_status" >&5 22011 (exit "$ac_status"); } && 22012 { ac_try='test -s "conftest$ac_exeext"' 22013 { (eval echo "$as_me:22010: \"$ac_try\"") >&5 22014 (eval $ac_try) 2>&5 22015 ac_status=$? 22016 echo "$as_me:22013: \$? = $ac_status" >&5 22017 (exit "$ac_status"); }; }; then 22018 cf_cv_func_vsscanf=_doscan 22019else 22020 echo "$as_me: failed program was:" >&5 22021cat "conftest.$ac_ext" >&5 22022 22023cf_cv_func_vsscanf=no 22024fi 22025rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22026fi 22027rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22028fi 22029rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22030fi 22031echo "$as_me:22028: result: $cf_cv_func_vsscanf" >&5 22032echo "${ECHO_T}$cf_cv_func_vsscanf" >&6 22033 22034case "$cf_cv_func_vsscanf" in 22035(vsscanf) 22036cat >>confdefs.h <<\EOF 22037#define HAVE_VSSCANF 1 22038EOF 22039;; 22040(vfscanf) 22041cat >>confdefs.h <<\EOF 22042#define HAVE_VFSCANF 1 22043EOF 22044;; 22045(_doscan) 22046cat >>confdefs.h <<\EOF 22047#define HAVE__DOSCAN 1 22048EOF 22049;; 22050esac 22051 22052for ac_header in \ 22053unistd.h \ 22054 22055do 22056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22057echo "$as_me:22054: checking for $ac_header" >&5 22058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22059if eval "test \"\${$as_ac_Header+set}\" = set"; then 22060 echo $ECHO_N "(cached) $ECHO_C" >&6 22061else 22062 cat >"conftest.$ac_ext" <<_ACEOF 22063#line 22060 "configure" 22064#include "confdefs.h" 22065#include <$ac_header> 22066_ACEOF 22067if { (eval echo "$as_me:22064: \"$ac_cpp "conftest.$ac_ext"\"") >&5 22068 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 22069 ac_status=$? 22070 $EGREP -v '^ *\+' conftest.er1 >conftest.err 22071 rm -f conftest.er1 22072 cat conftest.err >&5 22073 echo "$as_me:22070: \$? = $ac_status" >&5 22074 (exit "$ac_status"); } >/dev/null; then 22075 if test -s conftest.err; then 22076 ac_cpp_err=$ac_c_preproc_warn_flag 22077 else 22078 ac_cpp_err= 22079 fi 22080else 22081 ac_cpp_err=yes 22082fi 22083if test -z "$ac_cpp_err"; then 22084 eval "$as_ac_Header=yes" 22085else 22086 echo "$as_me: failed program was:" >&5 22087 cat "conftest.$ac_ext" >&5 22088 eval "$as_ac_Header=no" 22089fi 22090rm -f conftest.err "conftest.$ac_ext" 22091fi 22092echo "$as_me:22089: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 22093echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 22094if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 22095 cat >>confdefs.h <<EOF 22096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22097EOF 22098 22099fi 22100done 22101 22102echo "$as_me:22099: checking for working mkstemp" >&5 22103echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 22104if test "${cf_cv_func_mkstemp+set}" = set; then 22105 echo $ECHO_N "(cached) $ECHO_C" >&6 22106else 22107 22108rm -rf ./conftest* 22109if test "$cross_compiling" = yes; then 22110 cf_cv_func_mkstemp=maybe 22111else 22112 cat >"conftest.$ac_ext" <<_ACEOF 22113#line 22110 "configure" 22114#include "confdefs.h" 22115 22116#include <sys/types.h> 22117#ifdef HAVE_UNISTD_H 22118#include <unistd.h> 22119#endif 22120#include <stdlib.h> 22121#include <stdio.h> 22122#include <string.h> 22123#include <sys/stat.h> 22124int main(void) 22125{ 22126 char *tmpl = "conftestXXXXXX"; 22127 char name[2][80]; 22128 int n; 22129 int result = 0; 22130 int fd; 22131 struct stat sb; 22132 22133 umask(077); 22134 for (n = 0; n < 2; ++n) { 22135 strcpy(name[n], tmpl); 22136 if ((fd = mkstemp(name[n])) >= 0) { 22137 if (!strcmp(name[n], tmpl) 22138 || stat(name[n], &sb) != 0 22139 || (sb.st_mode & S_IFMT) != S_IFREG 22140 || (sb.st_mode & 077) != 0) { 22141 result = 1; 22142 } 22143 close(fd); 22144 } 22145 } 22146 if (result == 0 22147 && !strcmp(name[0], name[1])) 22148 result = 1; 22149 ${cf_cv_main_return:-return}(result); 22150} 22151 22152_ACEOF 22153rm -f "conftest$ac_exeext" 22154if { (eval echo "$as_me:22151: \"$ac_link\"") >&5 22155 (eval $ac_link) 2>&5 22156 ac_status=$? 22157 echo "$as_me:22154: \$? = $ac_status" >&5 22158 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22159 { (eval echo "$as_me:22156: \"$ac_try\"") >&5 22160 (eval $ac_try) 2>&5 22161 ac_status=$? 22162 echo "$as_me:22159: \$? = $ac_status" >&5 22163 (exit "$ac_status"); }; }; then 22164 cf_cv_func_mkstemp=yes 22165 22166else 22167 echo "$as_me: program exited with status $ac_status" >&5 22168echo "$as_me: failed program was:" >&5 22169cat "conftest.$ac_ext" >&5 22170cf_cv_func_mkstemp=no 22171 22172fi 22173rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22174fi 22175 22176fi 22177echo "$as_me:22174: result: $cf_cv_func_mkstemp" >&5 22178echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 22179if test "x$cf_cv_func_mkstemp" = xmaybe ; then 22180 echo "$as_me:22177: checking for mkstemp" >&5 22181echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 22182if test "${ac_cv_func_mkstemp+set}" = set; then 22183 echo $ECHO_N "(cached) $ECHO_C" >&6 22184else 22185 cat >"conftest.$ac_ext" <<_ACEOF 22186#line 22183 "configure" 22187#include "confdefs.h" 22188#define mkstemp autoconf_temporary 22189#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22190#undef mkstemp 22191 22192#ifdef __cplusplus 22193extern "C" 22194#endif 22195 22196/* We use char because int might match the return type of a gcc2 22197 builtin and then its argument prototype would still apply. */ 22198char mkstemp (void); 22199 22200int 22201main (void) 22202{ 22203 22204/* The GNU C library defines stubs for functions which it implements 22205 to always fail with ENOSYS. Some functions are actually named 22206 something starting with __ and the normal name is an alias. */ 22207#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 22208#error found stub for mkstemp 22209#endif 22210 22211 return mkstemp (); 22212 ; 22213 return 0; 22214} 22215_ACEOF 22216rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22217if { (eval echo "$as_me:22214: \"$ac_link\"") >&5 22218 (eval $ac_link) 2>&5 22219 ac_status=$? 22220 echo "$as_me:22217: \$? = $ac_status" >&5 22221 (exit "$ac_status"); } && 22222 { ac_try='test -s "conftest$ac_exeext"' 22223 { (eval echo "$as_me:22220: \"$ac_try\"") >&5 22224 (eval $ac_try) 2>&5 22225 ac_status=$? 22226 echo "$as_me:22223: \$? = $ac_status" >&5 22227 (exit "$ac_status"); }; }; then 22228 ac_cv_func_mkstemp=yes 22229else 22230 echo "$as_me: failed program was:" >&5 22231cat "conftest.$ac_ext" >&5 22232ac_cv_func_mkstemp=no 22233fi 22234rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22235fi 22236echo "$as_me:22233: result: $ac_cv_func_mkstemp" >&5 22237echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 22238 22239fi 22240if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 22241 22242cat >>confdefs.h <<\EOF 22243#define HAVE_MKSTEMP 1 22244EOF 22245 22246fi 22247 22248# setup for prototype of fallback for vsscanf() 22249 22250if test "$cf_cv_func_vsscanf" = vsscanf ; then 22251 HAVE_VSSCANF=1 22252else 22253 HAVE_VSSCANF=0 22254fi 22255 22256if test "x$cross_compiling" = xyes ; then 22257 { echo "$as_me:22254: WARNING: cross compiling: assume setvbuf params not reversed" >&5 22258echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;} 22259else 22260 echo "$as_me:22257: checking whether setvbuf arguments are reversed" >&5 22261echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 22262if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 22263 echo $ECHO_N "(cached) $ECHO_C" >&6 22264else 22265 if test "$cross_compiling" = yes; then 22266 { { echo "$as_me:22263: error: cannot run test program while cross compiling" >&5 22267echo "$as_me: error: cannot run test program while cross compiling" >&2;} 22268 { (exit 1); exit 1; }; } 22269else 22270 cat >"conftest.$ac_ext" <<_ACEOF 22271#line 22268 "configure" 22272#include "confdefs.h" 22273#include <stdio.h> 22274/* If setvbuf has the reversed format, exit 0. */ 22275int 22276main (void) 22277{ 22278 /* This call has the arguments reversed. 22279 A reversed system may check and see that the address of main 22280 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 22281 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 22282 $ac_main_return(1); 22283 putc('\r', stdout); 22284 $ac_main_return(0); /* Non-reversed systems segv here. */ 22285} 22286_ACEOF 22287rm -f "conftest$ac_exeext" 22288if { (eval echo "$as_me:22285: \"$ac_link\"") >&5 22289 (eval $ac_link) 2>&5 22290 ac_status=$? 22291 echo "$as_me:22288: \$? = $ac_status" >&5 22292 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22293 { (eval echo "$as_me:22290: \"$ac_try\"") >&5 22294 (eval $ac_try) 2>&5 22295 ac_status=$? 22296 echo "$as_me:22293: \$? = $ac_status" >&5 22297 (exit "$ac_status"); }; }; then 22298 ac_cv_func_setvbuf_reversed=yes 22299else 22300 echo "$as_me: program exited with status $ac_status" >&5 22301echo "$as_me: failed program was:" >&5 22302cat "conftest.$ac_ext" >&5 22303ac_cv_func_setvbuf_reversed=no 22304fi 22305rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22306fi 22307rm -f core ./core.* ./*.core 22308fi 22309echo "$as_me:22306: result: $ac_cv_func_setvbuf_reversed" >&5 22310echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 22311if test $ac_cv_func_setvbuf_reversed = yes; then 22312 22313cat >>confdefs.h <<\EOF 22314#define SETVBUF_REVERSED 1 22315EOF 22316 22317fi 22318 22319fi 22320echo "$as_me:22317: checking for intptr_t" >&5 22321echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 22322if test "${ac_cv_type_intptr_t+set}" = set; then 22323 echo $ECHO_N "(cached) $ECHO_C" >&6 22324else 22325 cat >"conftest.$ac_ext" <<_ACEOF 22326#line 22323 "configure" 22327#include "confdefs.h" 22328$ac_includes_default 22329int 22330main (void) 22331{ 22332if ((intptr_t *) 0) 22333 return 0; 22334if (sizeof (intptr_t)) 22335 return 0; 22336 ; 22337 return 0; 22338} 22339_ACEOF 22340rm -f "conftest.$ac_objext" 22341if { (eval echo "$as_me:22338: \"$ac_compile\"") >&5 22342 (eval $ac_compile) 2>&5 22343 ac_status=$? 22344 echo "$as_me:22341: \$? = $ac_status" >&5 22345 (exit "$ac_status"); } && 22346 { ac_try='test -s "conftest.$ac_objext"' 22347 { (eval echo "$as_me:22344: \"$ac_try\"") >&5 22348 (eval $ac_try) 2>&5 22349 ac_status=$? 22350 echo "$as_me:22347: \$? = $ac_status" >&5 22351 (exit "$ac_status"); }; }; then 22352 ac_cv_type_intptr_t=yes 22353else 22354 echo "$as_me: failed program was:" >&5 22355cat "conftest.$ac_ext" >&5 22356ac_cv_type_intptr_t=no 22357fi 22358rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22359fi 22360echo "$as_me:22357: result: $ac_cv_type_intptr_t" >&5 22361echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 22362if test "$ac_cv_type_intptr_t" = yes; then 22363 : 22364else 22365 22366cat >>confdefs.h <<EOF 22367#define intptr_t long 22368EOF 22369 22370fi 22371 22372echo "$as_me:22369: checking for ssize_t" >&5 22373echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 22374if test "${ac_cv_type_ssize_t+set}" = set; then 22375 echo $ECHO_N "(cached) $ECHO_C" >&6 22376else 22377 cat >"conftest.$ac_ext" <<_ACEOF 22378#line 22375 "configure" 22379#include "confdefs.h" 22380$ac_includes_default 22381int 22382main (void) 22383{ 22384if ((ssize_t *) 0) 22385 return 0; 22386if (sizeof (ssize_t)) 22387 return 0; 22388 ; 22389 return 0; 22390} 22391_ACEOF 22392rm -f "conftest.$ac_objext" 22393if { (eval echo "$as_me:22390: \"$ac_compile\"") >&5 22394 (eval $ac_compile) 2>&5 22395 ac_status=$? 22396 echo "$as_me:22393: \$? = $ac_status" >&5 22397 (exit "$ac_status"); } && 22398 { ac_try='test -s "conftest.$ac_objext"' 22399 { (eval echo "$as_me:22396: \"$ac_try\"") >&5 22400 (eval $ac_try) 2>&5 22401 ac_status=$? 22402 echo "$as_me:22399: \$? = $ac_status" >&5 22403 (exit "$ac_status"); }; }; then 22404 ac_cv_type_ssize_t=yes 22405else 22406 echo "$as_me: failed program was:" >&5 22407cat "conftest.$ac_ext" >&5 22408ac_cv_type_ssize_t=no 22409fi 22410rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22411fi 22412echo "$as_me:22409: result: $ac_cv_type_ssize_t" >&5 22413echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 22414if test "$ac_cv_type_ssize_t" = yes; then 22415 : 22416else 22417 22418cat >>confdefs.h <<EOF 22419#define ssize_t int 22420EOF 22421 22422fi 22423 22424echo "$as_me:22421: checking for type sigaction_t" >&5 22425echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6 22426if test "${cf_cv_type_sigaction+set}" = set; then 22427 echo $ECHO_N "(cached) $ECHO_C" >&6 22428else 22429 22430 cat >"conftest.$ac_ext" <<_ACEOF 22431#line 22428 "configure" 22432#include "confdefs.h" 22433 22434#include <signal.h> 22435int 22436main (void) 22437{ 22438sigaction_t x 22439 ; 22440 return 0; 22441} 22442_ACEOF 22443rm -f "conftest.$ac_objext" 22444if { (eval echo "$as_me:22441: \"$ac_compile\"") >&5 22445 (eval $ac_compile) 2>&5 22446 ac_status=$? 22447 echo "$as_me:22444: \$? = $ac_status" >&5 22448 (exit "$ac_status"); } && 22449 { ac_try='test -s "conftest.$ac_objext"' 22450 { (eval echo "$as_me:22447: \"$ac_try\"") >&5 22451 (eval $ac_try) 2>&5 22452 ac_status=$? 22453 echo "$as_me:22450: \$? = $ac_status" >&5 22454 (exit "$ac_status"); }; }; then 22455 cf_cv_type_sigaction=yes 22456else 22457 echo "$as_me: failed program was:" >&5 22458cat "conftest.$ac_ext" >&5 22459cf_cv_type_sigaction=no 22460fi 22461rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22462fi 22463 22464echo "$as_me:22461: result: $cf_cv_type_sigaction" >&5 22465echo "${ECHO_T}$cf_cv_type_sigaction" >&6 22466test "$cf_cv_type_sigaction" = yes && 22467cat >>confdefs.h <<\EOF 22468#define HAVE_TYPE_SIGACTION 1 22469EOF 22470 22471echo "$as_me:22468: checking declaration of size-change" >&5 22472echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6 22473if test "${cf_cv_sizechange+set}" = set; then 22474 echo $ECHO_N "(cached) $ECHO_C" >&6 22475else 22476 22477 cf_cv_sizechange=unknown 22478 cf_save_CPPFLAGS="$CPPFLAGS" 22479 22480for cf_opts in "" "NEED_PTEM_H" 22481do 22482 22483 CPPFLAGS="$cf_save_CPPFLAGS" 22484 if test -n "$cf_opts" 22485 then 22486 22487 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 22488 CPPFLAGS="${CPPFLAGS}-D$cf_opts" 22489 22490 fi 22491 cat >"conftest.$ac_ext" <<_ACEOF 22492#line 22489 "configure" 22493#include "confdefs.h" 22494#include <sys/types.h> 22495#ifdef HAVE_TERMIOS_H 22496#include <termios.h> 22497#else 22498#ifdef HAVE_TERMIO_H 22499#include <termio.h> 22500#endif 22501#endif 22502 22503#ifdef NEED_PTEM_H 22504/* This is a workaround for SCO: they neglected to define struct winsize in 22505 * termios.h -- it is only in termio.h and ptem.h 22506 */ 22507#include <sys/stream.h> 22508#include <sys/ptem.h> 22509#endif 22510 22511#ifdef HAVE_SYS_IOCTL_H 22512#include <sys/ioctl.h> 22513#endif 22514 22515int 22516main (void) 22517{ 22518 22519#ifdef TIOCGSIZE 22520 struct ttysize win; /* SunOS 3.0... */ 22521 int y = win.ts_lines = 2; 22522 int x = win.ts_cols = 1; 22523 (void)y; 22524 (void)x; 22525#else 22526#ifdef TIOCGWINSZ 22527 struct winsize win; /* everything else */ 22528 int y = win.ws_row = 2; 22529 int x = win.ws_col = 1; 22530 (void)y; 22531 (void)x; 22532#else 22533 no TIOCGSIZE or TIOCGWINSZ 22534#endif /* TIOCGWINSZ */ 22535#endif /* TIOCGSIZE */ 22536 22537 ; 22538 return 0; 22539} 22540_ACEOF 22541rm -f "conftest.$ac_objext" 22542if { (eval echo "$as_me:22539: \"$ac_compile\"") >&5 22543 (eval $ac_compile) 2>&5 22544 ac_status=$? 22545 echo "$as_me:22542: \$? = $ac_status" >&5 22546 (exit "$ac_status"); } && 22547 { ac_try='test -s "conftest.$ac_objext"' 22548 { (eval echo "$as_me:22545: \"$ac_try\"") >&5 22549 (eval $ac_try) 2>&5 22550 ac_status=$? 22551 echo "$as_me:22548: \$? = $ac_status" >&5 22552 (exit "$ac_status"); }; }; then 22553 cf_cv_sizechange=yes 22554else 22555 echo "$as_me: failed program was:" >&5 22556cat "conftest.$ac_ext" >&5 22557cf_cv_sizechange=no 22558fi 22559rm -f "conftest.$ac_objext" "conftest.$ac_ext" 22560 22561 CPPFLAGS="$cf_save_CPPFLAGS" 22562 if test "$cf_cv_sizechange" = yes ; then 22563 echo "size-change succeeded ($cf_opts)" >&5 22564 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts" 22565 break 22566 fi 22567done 22568 22569fi 22570echo "$as_me:22567: result: $cf_cv_sizechange" >&5 22571echo "${ECHO_T}$cf_cv_sizechange" >&6 22572if test "$cf_cv_sizechange" != no ; then 22573 22574cat >>confdefs.h <<\EOF 22575#define HAVE_SIZECHANGE 1 22576EOF 22577 22578 case "$cf_cv_sizechange" in 22579 (NEED*) 22580 cat >>confdefs.h <<EOF 22581#define $cf_cv_sizechange 1 22582EOF 22583 22584 ;; 22585 esac 22586fi 22587 22588echo "$as_me:22585: checking for memmove" >&5 22589echo $ECHO_N "checking for memmove... $ECHO_C" >&6 22590if test "${ac_cv_func_memmove+set}" = set; then 22591 echo $ECHO_N "(cached) $ECHO_C" >&6 22592else 22593 cat >"conftest.$ac_ext" <<_ACEOF 22594#line 22591 "configure" 22595#include "confdefs.h" 22596#define memmove autoconf_temporary 22597#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22598#undef memmove 22599 22600#ifdef __cplusplus 22601extern "C" 22602#endif 22603 22604/* We use char because int might match the return type of a gcc2 22605 builtin and then its argument prototype would still apply. */ 22606char memmove (void); 22607 22608int 22609main (void) 22610{ 22611 22612/* The GNU C library defines stubs for functions which it implements 22613 to always fail with ENOSYS. Some functions are actually named 22614 something starting with __ and the normal name is an alias. */ 22615#if defined (__stub_memmove) || defined (__stub___memmove) 22616#error found stub for memmove 22617#endif 22618 22619 return memmove (); 22620 ; 22621 return 0; 22622} 22623_ACEOF 22624rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22625if { (eval echo "$as_me:22622: \"$ac_link\"") >&5 22626 (eval $ac_link) 2>&5 22627 ac_status=$? 22628 echo "$as_me:22625: \$? = $ac_status" >&5 22629 (exit "$ac_status"); } && 22630 { ac_try='test -s "conftest$ac_exeext"' 22631 { (eval echo "$as_me:22628: \"$ac_try\"") >&5 22632 (eval $ac_try) 2>&5 22633 ac_status=$? 22634 echo "$as_me:22631: \$? = $ac_status" >&5 22635 (exit "$ac_status"); }; }; then 22636 ac_cv_func_memmove=yes 22637else 22638 echo "$as_me: failed program was:" >&5 22639cat "conftest.$ac_ext" >&5 22640ac_cv_func_memmove=no 22641fi 22642rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22643fi 22644echo "$as_me:22641: result: $ac_cv_func_memmove" >&5 22645echo "${ECHO_T}$ac_cv_func_memmove" >&6 22646if test "$ac_cv_func_memmove" = yes; then 22647 : 22648else 22649 22650echo "$as_me:22647: checking for bcopy" >&5 22651echo $ECHO_N "checking for bcopy... $ECHO_C" >&6 22652if test "${ac_cv_func_bcopy+set}" = set; then 22653 echo $ECHO_N "(cached) $ECHO_C" >&6 22654else 22655 cat >"conftest.$ac_ext" <<_ACEOF 22656#line 22653 "configure" 22657#include "confdefs.h" 22658#define bcopy autoconf_temporary 22659#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22660#undef bcopy 22661 22662#ifdef __cplusplus 22663extern "C" 22664#endif 22665 22666/* We use char because int might match the return type of a gcc2 22667 builtin and then its argument prototype would still apply. */ 22668char bcopy (void); 22669 22670int 22671main (void) 22672{ 22673 22674/* The GNU C library defines stubs for functions which it implements 22675 to always fail with ENOSYS. Some functions are actually named 22676 something starting with __ and the normal name is an alias. */ 22677#if defined (__stub_bcopy) || defined (__stub___bcopy) 22678#error found stub for bcopy 22679#endif 22680 22681 return bcopy (); 22682 ; 22683 return 0; 22684} 22685_ACEOF 22686rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22687if { (eval echo "$as_me:22684: \"$ac_link\"") >&5 22688 (eval $ac_link) 2>&5 22689 ac_status=$? 22690 echo "$as_me:22687: \$? = $ac_status" >&5 22691 (exit "$ac_status"); } && 22692 { ac_try='test -s "conftest$ac_exeext"' 22693 { (eval echo "$as_me:22690: \"$ac_try\"") >&5 22694 (eval $ac_try) 2>&5 22695 ac_status=$? 22696 echo "$as_me:22693: \$? = $ac_status" >&5 22697 (exit "$ac_status"); }; }; then 22698 ac_cv_func_bcopy=yes 22699else 22700 echo "$as_me: failed program was:" >&5 22701cat "conftest.$ac_ext" >&5 22702ac_cv_func_bcopy=no 22703fi 22704rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22705fi 22706echo "$as_me:22703: result: $ac_cv_func_bcopy" >&5 22707echo "${ECHO_T}$ac_cv_func_bcopy" >&6 22708if test "$ac_cv_func_bcopy" = yes; then 22709 22710 echo "$as_me:22707: checking if bcopy does overlapping moves" >&5 22711echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6 22712if test "${cf_cv_good_bcopy+set}" = set; then 22713 echo $ECHO_N "(cached) $ECHO_C" >&6 22714else 22715 22716 if test "$cross_compiling" = yes; then 22717 cf_cv_good_bcopy=unknown 22718else 22719 cat >"conftest.$ac_ext" <<_ACEOF 22720#line 22717 "configure" 22721#include "confdefs.h" 22722 22723int main(void) { 22724 static char data[] = "abcdefghijklmnopqrstuwwxyz"; 22725 char temp[40]; 22726 bcopy(data, temp, sizeof(data)); 22727 bcopy(temp+10, temp, 15); 22728 bcopy(temp+5, temp+15, 10); 22729 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz")); 22730} 22731 22732_ACEOF 22733rm -f "conftest$ac_exeext" 22734if { (eval echo "$as_me:22731: \"$ac_link\"") >&5 22735 (eval $ac_link) 2>&5 22736 ac_status=$? 22737 echo "$as_me:22734: \$? = $ac_status" >&5 22738 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22739 { (eval echo "$as_me:22736: \"$ac_try\"") >&5 22740 (eval $ac_try) 2>&5 22741 ac_status=$? 22742 echo "$as_me:22739: \$? = $ac_status" >&5 22743 (exit "$ac_status"); }; }; then 22744 cf_cv_good_bcopy=yes 22745else 22746 echo "$as_me: program exited with status $ac_status" >&5 22747echo "$as_me: failed program was:" >&5 22748cat "conftest.$ac_ext" >&5 22749cf_cv_good_bcopy=no 22750fi 22751rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22752fi 22753 22754fi 22755echo "$as_me:22752: result: $cf_cv_good_bcopy" >&5 22756echo "${ECHO_T}$cf_cv_good_bcopy" >&6 22757 22758else 22759 cf_cv_good_bcopy=no 22760fi 22761 22762 if test "$cf_cv_good_bcopy" = yes ; then 22763 22764cat >>confdefs.h <<\EOF 22765#define USE_OK_BCOPY 1 22766EOF 22767 22768 else 22769 22770cat >>confdefs.h <<\EOF 22771#define USE_MY_MEMMOVE 1 22772EOF 22773 22774 fi 22775 22776fi 22777 22778tty >/dev/null 2>&1 || { 22779for ac_func in posix_openpt 22780do 22781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22782echo "$as_me:22779: checking for $ac_func" >&5 22783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22784if eval "test \"\${$as_ac_var+set}\" = set"; then 22785 echo $ECHO_N "(cached) $ECHO_C" >&6 22786else 22787 cat >"conftest.$ac_ext" <<_ACEOF 22788#line 22785 "configure" 22789#include "confdefs.h" 22790#define $ac_func autoconf_temporary 22791#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 22792#undef $ac_func 22793 22794#ifdef __cplusplus 22795extern "C" 22796#endif 22797 22798/* We use char because int might match the return type of a gcc2 22799 builtin and then its argument prototype would still apply. */ 22800char $ac_func (void); 22801 22802int 22803main (void) 22804{ 22805 22806/* The GNU C library defines stubs for functions which it implements 22807 to always fail with ENOSYS. Some functions are actually named 22808 something starting with __ and the normal name is an alias. */ 22809#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22810#error found stub for $ac_func 22811#endif 22812 22813 return $ac_func (); 22814 ; 22815 return 0; 22816} 22817_ACEOF 22818rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22819if { (eval echo "$as_me:22816: \"$ac_link\"") >&5 22820 (eval $ac_link) 2>&5 22821 ac_status=$? 22822 echo "$as_me:22819: \$? = $ac_status" >&5 22823 (exit "$ac_status"); } && 22824 { ac_try='test -s "conftest$ac_exeext"' 22825 { (eval echo "$as_me:22822: \"$ac_try\"") >&5 22826 (eval $ac_try) 2>&5 22827 ac_status=$? 22828 echo "$as_me:22825: \$? = $ac_status" >&5 22829 (exit "$ac_status"); }; }; then 22830 eval "$as_ac_var=yes" 22831else 22832 echo "$as_me: failed program was:" >&5 22833cat "conftest.$ac_ext" >&5 22834eval "$as_ac_var=no" 22835fi 22836rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22837fi 22838echo "$as_me:22835: result: `eval echo '${'"$as_ac_var"'}'`" >&5 22839echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 22840if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 22841 cat >>confdefs.h <<EOF 22842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22843EOF 22844 22845fi 22846done 22847 } 22848echo "$as_me:22845: checking if poll really works" >&5 22849echo $ECHO_N "checking if poll really works... $ECHO_C" >&6 22850if test "${cf_cv_working_poll+set}" = set; then 22851 echo $ECHO_N "(cached) $ECHO_C" >&6 22852else 22853 22854if test "$cross_compiling" = yes; then 22855 cf_cv_working_poll=unknown 22856else 22857 cat >"conftest.$ac_ext" <<_ACEOF 22858#line 22855 "configure" 22859#include "confdefs.h" 22860 22861#include <stdlib.h> 22862#include <stdio.h> 22863#include <unistd.h> 22864#include <fcntl.h> 22865#ifdef HAVE_POLL_H 22866#include <poll.h> 22867#else 22868#include <sys/poll.h> 22869#endif 22870int main(void) { 22871 struct pollfd myfds; 22872 int ret; 22873 22874 /* check for Darwin bug with respect to "devices" */ 22875 myfds.fd = open("/dev/null", 1); /* O_WRONLY */ 22876 if (myfds.fd < 0) 22877 myfds.fd = 0; 22878 myfds.events = POLLIN; 22879 myfds.revents = 0; 22880 22881 ret = poll(&myfds, 1, 100); 22882 22883 if (ret < 0 || (myfds.revents & POLLNVAL)) { 22884 ret = -1; 22885 } else { 22886 int fd = 0; 22887 if (!isatty(fd)) { 22888 fd = open("/dev/tty", 2); /* O_RDWR */ 22889 } 22890#ifdef HAVE_POSIX_OPENPT 22891 if (fd < 0) { 22892 fd = posix_openpt(O_RDWR); 22893 } 22894#endif 22895 22896 if (fd >= 0) { 22897 /* also check with standard input */ 22898 myfds.fd = fd; 22899 myfds.events = POLLIN; 22900 myfds.revents = 0; 22901 ret = poll(&myfds, 1, 100); 22902 } else { 22903 ret = -1; 22904 } 22905 } 22906 ${cf_cv_main_return:-return}(ret < 0); 22907} 22908_ACEOF 22909rm -f "conftest$ac_exeext" 22910if { (eval echo "$as_me:22907: \"$ac_link\"") >&5 22911 (eval $ac_link) 2>&5 22912 ac_status=$? 22913 echo "$as_me:22910: \$? = $ac_status" >&5 22914 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 22915 { (eval echo "$as_me:22912: \"$ac_try\"") >&5 22916 (eval $ac_try) 2>&5 22917 ac_status=$? 22918 echo "$as_me:22915: \$? = $ac_status" >&5 22919 (exit "$ac_status"); }; }; then 22920 cf_cv_working_poll=yes 22921else 22922 echo "$as_me: program exited with status $ac_status" >&5 22923echo "$as_me: failed program was:" >&5 22924cat "conftest.$ac_ext" >&5 22925cf_cv_working_poll=no 22926fi 22927rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 22928fi 22929fi 22930echo "$as_me:22927: result: $cf_cv_working_poll" >&5 22931echo "${ECHO_T}$cf_cv_working_poll" >&6 22932test "$cf_cv_working_poll" = "yes" && 22933cat >>confdefs.h <<\EOF 22934#define HAVE_WORKING_POLL 1 22935EOF 22936 22937echo "$as_me:22934: checking for va_copy" >&5 22938echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 22939if test "${cf_cv_have_va_copy+set}" = set; then 22940 echo $ECHO_N "(cached) $ECHO_C" >&6 22941else 22942 22943cat >"conftest.$ac_ext" <<_ACEOF 22944#line 22941 "configure" 22945#include "confdefs.h" 22946 22947#include <stdarg.h> 22948 22949int 22950main (void) 22951{ 22952 22953 static va_list dst; 22954 static va_list src; 22955 va_copy(dst, src) 22956 ; 22957 return 0; 22958} 22959_ACEOF 22960rm -f "conftest.$ac_objext" "conftest$ac_exeext" 22961if { (eval echo "$as_me:22958: \"$ac_link\"") >&5 22962 (eval $ac_link) 2>&5 22963 ac_status=$? 22964 echo "$as_me:22961: \$? = $ac_status" >&5 22965 (exit "$ac_status"); } && 22966 { ac_try='test -s "conftest$ac_exeext"' 22967 { (eval echo "$as_me:22964: \"$ac_try\"") >&5 22968 (eval $ac_try) 2>&5 22969 ac_status=$? 22970 echo "$as_me:22967: \$? = $ac_status" >&5 22971 (exit "$ac_status"); }; }; then 22972 cf_cv_have_va_copy=yes 22973else 22974 echo "$as_me: failed program was:" >&5 22975cat "conftest.$ac_ext" >&5 22976cf_cv_have_va_copy=no 22977fi 22978rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 22979fi 22980echo "$as_me:22977: result: $cf_cv_have_va_copy" >&5 22981echo "${ECHO_T}$cf_cv_have_va_copy" >&6 22982 22983if test "$cf_cv_have_va_copy" = yes; 22984then 22985 22986cat >>confdefs.h <<\EOF 22987#define HAVE_VA_COPY 1 22988EOF 22989 22990else # !cf_cv_have_va_copy 22991 22992echo "$as_me:22989: checking for __va_copy" >&5 22993echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 22994if test "${cf_cv_have___va_copy+set}" = set; then 22995 echo $ECHO_N "(cached) $ECHO_C" >&6 22996else 22997 22998cat >"conftest.$ac_ext" <<_ACEOF 22999#line 22996 "configure" 23000#include "confdefs.h" 23001 23002#include <stdarg.h> 23003 23004int 23005main (void) 23006{ 23007 23008 static va_list dst; 23009 static va_list src; 23010 __va_copy(dst, src) 23011 ; 23012 return 0; 23013} 23014_ACEOF 23015rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23016if { (eval echo "$as_me:23013: \"$ac_link\"") >&5 23017 (eval $ac_link) 2>&5 23018 ac_status=$? 23019 echo "$as_me:23016: \$? = $ac_status" >&5 23020 (exit "$ac_status"); } && 23021 { ac_try='test -s "conftest$ac_exeext"' 23022 { (eval echo "$as_me:23019: \"$ac_try\"") >&5 23023 (eval $ac_try) 2>&5 23024 ac_status=$? 23025 echo "$as_me:23022: \$? = $ac_status" >&5 23026 (exit "$ac_status"); }; }; then 23027 cf_cv_have___va_copy=yes 23028else 23029 echo "$as_me: failed program was:" >&5 23030cat "conftest.$ac_ext" >&5 23031cf_cv_have___va_copy=no 23032fi 23033rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23034fi 23035echo "$as_me:23032: result: $cf_cv_have___va_copy" >&5 23036echo "${ECHO_T}$cf_cv_have___va_copy" >&6 23037 23038if test "$cf_cv_have___va_copy" = yes 23039then 23040 23041cat >>confdefs.h <<\EOF 23042#define HAVE___VA_COPY 1 23043EOF 23044 23045else # !cf_cv_have___va_copy 23046 23047echo "$as_me:23044: checking for __builtin_va_copy" >&5 23048echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6 23049if test "${cf_cv_have___builtin_va_copy+set}" = set; then 23050 echo $ECHO_N "(cached) $ECHO_C" >&6 23051else 23052 23053cat >"conftest.$ac_ext" <<_ACEOF 23054#line 23051 "configure" 23055#include "confdefs.h" 23056 23057#include <stdarg.h> 23058 23059int 23060main (void) 23061{ 23062 23063 static va_list dst; 23064 static va_list src; 23065 __builtin_va_copy(dst, src) 23066 ; 23067 return 0; 23068} 23069_ACEOF 23070rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23071if { (eval echo "$as_me:23068: \"$ac_link\"") >&5 23072 (eval $ac_link) 2>&5 23073 ac_status=$? 23074 echo "$as_me:23071: \$? = $ac_status" >&5 23075 (exit "$ac_status"); } && 23076 { ac_try='test -s "conftest$ac_exeext"' 23077 { (eval echo "$as_me:23074: \"$ac_try\"") >&5 23078 (eval $ac_try) 2>&5 23079 ac_status=$? 23080 echo "$as_me:23077: \$? = $ac_status" >&5 23081 (exit "$ac_status"); }; }; then 23082 cf_cv_have___builtin_va_copy=yes 23083else 23084 echo "$as_me: failed program was:" >&5 23085cat "conftest.$ac_ext" >&5 23086cf_cv_have___builtin_va_copy=no 23087fi 23088rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23089fi 23090echo "$as_me:23087: result: $cf_cv_have___builtin_va_copy" >&5 23091echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6 23092 23093test "$cf_cv_have___builtin_va_copy" = yes && 23094 23095cat >>confdefs.h <<\EOF 23096#define HAVE___BUILTIN_VA_COPY 1 23097EOF 23098 23099fi # cf_cv_have___va_copy 23100 23101fi # cf_cv_have_va_copy 23102 23103case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in 23104(*yes*) 23105 ;; 23106 23107(*) 23108 echo "$as_me:23105: checking if we can simply copy va_list" >&5 23109echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6 23110if test "${cf_cv_pointer_va_list+set}" = set; then 23111 echo $ECHO_N "(cached) $ECHO_C" >&6 23112else 23113 23114cat >"conftest.$ac_ext" <<_ACEOF 23115#line 23112 "configure" 23116#include "confdefs.h" 23117 23118#include <stdarg.h> 23119 23120int 23121main (void) 23122{ 23123 23124 va_list dst; 23125 va_list src; 23126 dst = src 23127 ; 23128 return 0; 23129} 23130_ACEOF 23131rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23132if { (eval echo "$as_me:23129: \"$ac_link\"") >&5 23133 (eval $ac_link) 2>&5 23134 ac_status=$? 23135 echo "$as_me:23132: \$? = $ac_status" >&5 23136 (exit "$ac_status"); } && 23137 { ac_try='test -s "conftest$ac_exeext"' 23138 { (eval echo "$as_me:23135: \"$ac_try\"") >&5 23139 (eval $ac_try) 2>&5 23140 ac_status=$? 23141 echo "$as_me:23138: \$? = $ac_status" >&5 23142 (exit "$ac_status"); }; }; then 23143 cf_cv_pointer_va_list=yes 23144else 23145 echo "$as_me: failed program was:" >&5 23146cat "conftest.$ac_ext" >&5 23147cf_cv_pointer_va_list=no 23148fi 23149rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23150fi 23151echo "$as_me:23148: result: $cf_cv_pointer_va_list" >&5 23152echo "${ECHO_T}$cf_cv_pointer_va_list" >&6 23153 23154 if test "$cf_cv_pointer_va_list" = no 23155 then 23156 echo "$as_me:23153: checking if we can copy va_list indirectly" >&5 23157echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6 23158if test "${cf_cv_array_va_list+set}" = set; then 23159 echo $ECHO_N "(cached) $ECHO_C" >&6 23160else 23161 23162cat >"conftest.$ac_ext" <<_ACEOF 23163#line 23160 "configure" 23164#include "confdefs.h" 23165 23166#include <stdarg.h> 23167 23168int 23169main (void) 23170{ 23171 23172 va_list dst; 23173 va_list src; 23174 *dst = *src 23175 ; 23176 return 0; 23177} 23178_ACEOF 23179rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23180if { (eval echo "$as_me:23177: \"$ac_link\"") >&5 23181 (eval $ac_link) 2>&5 23182 ac_status=$? 23183 echo "$as_me:23180: \$? = $ac_status" >&5 23184 (exit "$ac_status"); } && 23185 { ac_try='test -s "conftest$ac_exeext"' 23186 { (eval echo "$as_me:23183: \"$ac_try\"") >&5 23187 (eval $ac_try) 2>&5 23188 ac_status=$? 23189 echo "$as_me:23186: \$? = $ac_status" >&5 23190 (exit "$ac_status"); }; }; then 23191 cf_cv_array_va_list=yes 23192else 23193 echo "$as_me: failed program was:" >&5 23194cat "conftest.$ac_ext" >&5 23195cf_cv_array_va_list=no 23196fi 23197rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23198fi 23199echo "$as_me:23196: result: $cf_cv_array_va_list" >&5 23200echo "${ECHO_T}$cf_cv_array_va_list" >&6 23201 test "$cf_cv_array_va_list" = yes && 23202cat >>confdefs.h <<\EOF 23203#define ARRAY_VA_LIST 1 23204EOF 23205 23206 fi 23207 ;; 23208esac 23209 23210echo "$as_me:23207: checking for pid_t" >&5 23211echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 23212if test "${ac_cv_type_pid_t+set}" = set; then 23213 echo $ECHO_N "(cached) $ECHO_C" >&6 23214else 23215 cat >"conftest.$ac_ext" <<_ACEOF 23216#line 23213 "configure" 23217#include "confdefs.h" 23218$ac_includes_default 23219int 23220main (void) 23221{ 23222if ((pid_t *) 0) 23223 return 0; 23224if (sizeof (pid_t)) 23225 return 0; 23226 ; 23227 return 0; 23228} 23229_ACEOF 23230rm -f "conftest.$ac_objext" 23231if { (eval echo "$as_me:23228: \"$ac_compile\"") >&5 23232 (eval $ac_compile) 2>&5 23233 ac_status=$? 23234 echo "$as_me:23231: \$? = $ac_status" >&5 23235 (exit "$ac_status"); } && 23236 { ac_try='test -s "conftest.$ac_objext"' 23237 { (eval echo "$as_me:23234: \"$ac_try\"") >&5 23238 (eval $ac_try) 2>&5 23239 ac_status=$? 23240 echo "$as_me:23237: \$? = $ac_status" >&5 23241 (exit "$ac_status"); }; }; then 23242 ac_cv_type_pid_t=yes 23243else 23244 echo "$as_me: failed program was:" >&5 23245cat "conftest.$ac_ext" >&5 23246ac_cv_type_pid_t=no 23247fi 23248rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23249fi 23250echo "$as_me:23247: result: $ac_cv_type_pid_t" >&5 23251echo "${ECHO_T}$ac_cv_type_pid_t" >&6 23252if test "$ac_cv_type_pid_t" = yes; then 23253 : 23254else 23255 23256cat >>confdefs.h <<EOF 23257#define pid_t int 23258EOF 23259 23260fi 23261 23262for ac_header in unistd.h vfork.h 23263do 23264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23265echo "$as_me:23262: checking for $ac_header" >&5 23266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23267if eval "test \"\${$as_ac_Header+set}\" = set"; then 23268 echo $ECHO_N "(cached) $ECHO_C" >&6 23269else 23270 cat >"conftest.$ac_ext" <<_ACEOF 23271#line 23268 "configure" 23272#include "confdefs.h" 23273#include <$ac_header> 23274_ACEOF 23275if { (eval echo "$as_me:23272: \"$ac_cpp "conftest.$ac_ext"\"") >&5 23276 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 23277 ac_status=$? 23278 $EGREP -v '^ *\+' conftest.er1 >conftest.err 23279 rm -f conftest.er1 23280 cat conftest.err >&5 23281 echo "$as_me:23278: \$? = $ac_status" >&5 23282 (exit "$ac_status"); } >/dev/null; then 23283 if test -s conftest.err; then 23284 ac_cpp_err=$ac_c_preproc_warn_flag 23285 else 23286 ac_cpp_err= 23287 fi 23288else 23289 ac_cpp_err=yes 23290fi 23291if test -z "$ac_cpp_err"; then 23292 eval "$as_ac_Header=yes" 23293else 23294 echo "$as_me: failed program was:" >&5 23295 cat "conftest.$ac_ext" >&5 23296 eval "$as_ac_Header=no" 23297fi 23298rm -f conftest.err "conftest.$ac_ext" 23299fi 23300echo "$as_me:23297: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 23301echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 23302if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 23303 cat >>confdefs.h <<EOF 23304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23305EOF 23306 23307fi 23308done 23309 23310for ac_func in fork vfork 23311do 23312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23313echo "$as_me:23310: checking for $ac_func" >&5 23314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23315if eval "test \"\${$as_ac_var+set}\" = set"; then 23316 echo $ECHO_N "(cached) $ECHO_C" >&6 23317else 23318 cat >"conftest.$ac_ext" <<_ACEOF 23319#line 23316 "configure" 23320#include "confdefs.h" 23321#define $ac_func autoconf_temporary 23322#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 23323#undef $ac_func 23324 23325#ifdef __cplusplus 23326extern "C" 23327#endif 23328 23329/* We use char because int might match the return type of a gcc2 23330 builtin and then its argument prototype would still apply. */ 23331char $ac_func (void); 23332 23333int 23334main (void) 23335{ 23336 23337/* The GNU C library defines stubs for functions which it implements 23338 to always fail with ENOSYS. Some functions are actually named 23339 something starting with __ and the normal name is an alias. */ 23340#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23341#error found stub for $ac_func 23342#endif 23343 23344 return $ac_func (); 23345 ; 23346 return 0; 23347} 23348_ACEOF 23349rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23350if { (eval echo "$as_me:23347: \"$ac_link\"") >&5 23351 (eval $ac_link) 2>&5 23352 ac_status=$? 23353 echo "$as_me:23350: \$? = $ac_status" >&5 23354 (exit "$ac_status"); } && 23355 { ac_try='test -s "conftest$ac_exeext"' 23356 { (eval echo "$as_me:23353: \"$ac_try\"") >&5 23357 (eval $ac_try) 2>&5 23358 ac_status=$? 23359 echo "$as_me:23356: \$? = $ac_status" >&5 23360 (exit "$ac_status"); }; }; then 23361 eval "$as_ac_var=yes" 23362else 23363 echo "$as_me: failed program was:" >&5 23364cat "conftest.$ac_ext" >&5 23365eval "$as_ac_var=no" 23366fi 23367rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23368fi 23369echo "$as_me:23366: result: `eval echo '${'"$as_ac_var"'}'`" >&5 23370echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 23371if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then 23372 cat >>confdefs.h <<EOF 23373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23374EOF 23375 23376fi 23377done 23378 23379ac_cv_func_fork_works=$ac_cv_func_fork 23380if test "x$ac_cv_func_fork" = xyes; then 23381 echo "$as_me:23378: checking for working fork" >&5 23382echo $ECHO_N "checking for working fork... $ECHO_C" >&6 23383if test "${ac_cv_func_fork_works+set}" = set; then 23384 echo $ECHO_N "(cached) $ECHO_C" >&6 23385else 23386 if test "$cross_compiling" = yes; then 23387 ac_cv_func_fork_works=cross 23388else 23389 cat >"conftest.$ac_ext" <<_ACEOF 23390/* By Rüdiger Kuhlmann. */ 23391 #include <sys/types.h> 23392 #if HAVE_UNISTD_H 23393 # include <unistd.h> 23394 #endif 23395 /* Some systems only have a dummy stub for fork() */ 23396 int main (void) 23397 { 23398 if (fork() < 0) 23399 $ac_main_return (1); 23400 $ac_main_return (0); 23401 } 23402_ACEOF 23403rm -f "conftest$ac_exeext" 23404if { (eval echo "$as_me:23401: \"$ac_link\"") >&5 23405 (eval $ac_link) 2>&5 23406 ac_status=$? 23407 echo "$as_me:23404: \$? = $ac_status" >&5 23408 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 23409 { (eval echo "$as_me:23406: \"$ac_try\"") >&5 23410 (eval $ac_try) 2>&5 23411 ac_status=$? 23412 echo "$as_me:23409: \$? = $ac_status" >&5 23413 (exit "$ac_status"); }; }; then 23414 ac_cv_func_fork_works=yes 23415else 23416 echo "$as_me: program exited with status $ac_status" >&5 23417echo "$as_me: failed program was:" >&5 23418cat "conftest.$ac_ext" >&5 23419ac_cv_func_fork_works=no 23420fi 23421rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 23422fi 23423fi 23424echo "$as_me:23421: result: $ac_cv_func_fork_works" >&5 23425echo "${ECHO_T}$ac_cv_func_fork_works" >&6 23426 23427fi 23428if test "x$ac_cv_func_fork_works" = xcross; then 23429 case $host in 23430 *-*-amigaos* | *-*-msdosdjgpp*) 23431 # Override, as these systems have only a dummy fork() stub 23432 ac_cv_func_fork_works=no 23433 ;; 23434 *) 23435 ac_cv_func_fork_works=yes 23436 ;; 23437 esac 23438 { echo "$as_me:23435: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 23439echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} 23440fi 23441ac_cv_func_vfork_works=$ac_cv_func_vfork 23442if test "x$ac_cv_func_vfork" = xyes; then 23443 echo "$as_me:23440: checking for working vfork" >&5 23444echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 23445if test "${ac_cv_func_vfork_works+set}" = set; then 23446 echo $ECHO_N "(cached) $ECHO_C" >&6 23447else 23448 if test "$cross_compiling" = yes; then 23449 ac_cv_func_vfork_works=cross 23450else 23451 cat >"conftest.$ac_ext" <<_ACEOF 23452#line 23449 "configure" 23453#include "confdefs.h" 23454/* Thanks to Paul Eggert for this test. */ 23455#include <stdio.h> 23456#include <sys/types.h> 23457#include <sys/stat.h> 23458#if HAVE_UNISTD_H 23459# include <unistd.h> 23460#endif 23461#if HAVE_VFORK_H 23462# include <vfork.h> 23463#endif 23464/* On some sparc systems, changes by the child to local and incoming 23465 argument registers are propagated back to the parent. The compiler 23466 is told about this with #include <vfork.h>, but some compilers 23467 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23468 static variable whose address is put into a register that is 23469 clobbered by the vfork. */ 23470static 23471#ifdef __cplusplus 23472sparc_address_test (int arg) 23473# else 23474sparc_address_test (arg) int arg; 23475#endif 23476{ 23477 static pid_t child; 23478 if (!child) { 23479 child = vfork (); 23480 if (child < 0) { 23481 perror ("vfork"); 23482 _exit(2); 23483 } 23484 if (!child) { 23485 arg = getpid(); 23486 write(-1, "", 0); 23487 _exit (arg); 23488 } 23489 } 23490} 23491 23492int 23493main (void) 23494{ 23495 pid_t parent = getpid (); 23496 pid_t child; 23497 23498 sparc_address_test (); 23499 23500 child = vfork (); 23501 23502 if (child == 0) { 23503 /* Here is another test for sparc vfork register problems. This 23504 test uses lots of local variables, at least as many local 23505 variables as main has allocated so far including compiler 23506 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23507 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23508 reuse the register of parent for one of the local variables, 23509 since it will think that parent can't possibly be used any more 23510 in this routine. Assigning to the local variable will thus 23511 munge parent in the parent process. */ 23512 pid_t 23513 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23514 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23515 /* Convince the compiler that p..p7 are live; otherwise, it might 23516 use the same hardware register for all 8 local variables. */ 23517 if (p != p1 || p != p2 || p != p3 || p != p4 23518 || p != p5 || p != p6 || p != p7) 23519 _exit(1); 23520 23521 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23522 from child file descriptors. If the child closes a descriptor 23523 before it execs or exits, this munges the parent's descriptor 23524 as well. Test for this by closing stdout in the child. */ 23525 _exit(close(fileno(stdout)) != 0); 23526 } else { 23527 int status; 23528 struct stat st; 23529 23530 while (wait(&status) != child) 23531 ; 23532 $ac_main_return( 23533 /* Was there some problem with vforking? */ 23534 child < 0 23535 23536 /* Did the child fail? (This shouldn't happen.) */ 23537 || status 23538 23539 /* Did the vfork/compiler bug occur? */ 23540 || parent != getpid() 23541 23542 /* Did the file descriptor bug occur? */ 23543 || fstat(fileno(stdout), &st) != 0 23544 ); 23545 } 23546} 23547_ACEOF 23548rm -f "conftest$ac_exeext" 23549if { (eval echo "$as_me:23546: \"$ac_link\"") >&5 23550 (eval $ac_link) 2>&5 23551 ac_status=$? 23552 echo "$as_me:23549: \$? = $ac_status" >&5 23553 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 23554 { (eval echo "$as_me:23551: \"$ac_try\"") >&5 23555 (eval $ac_try) 2>&5 23556 ac_status=$? 23557 echo "$as_me:23554: \$? = $ac_status" >&5 23558 (exit "$ac_status"); }; }; then 23559 ac_cv_func_vfork_works=yes 23560else 23561 echo "$as_me: program exited with status $ac_status" >&5 23562echo "$as_me: failed program was:" >&5 23563cat "conftest.$ac_ext" >&5 23564ac_cv_func_vfork_works=no 23565fi 23566rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 23567fi 23568fi 23569echo "$as_me:23566: result: $ac_cv_func_vfork_works" >&5 23570echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 23571 23572fi; 23573if test "x$ac_cv_func_fork_works" = xcross; then 23574 ac_cv_func_vfork_works=ac_cv_func_vfork 23575 { echo "$as_me:23572: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 23576echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} 23577fi 23578 23579if test "x$ac_cv_func_vfork_works" = xyes; then 23580 23581cat >>confdefs.h <<\EOF 23582#define HAVE_WORKING_VFORK 1 23583EOF 23584 23585else 23586 23587cat >>confdefs.h <<\EOF 23588#define vfork fork 23589EOF 23590 23591fi 23592if test "x$ac_cv_func_fork_works" = xyes; then 23593 23594cat >>confdefs.h <<\EOF 23595#define HAVE_WORKING_FORK 1 23596EOF 23597 23598fi 23599 23600echo "$as_me:23597: checking if fopen accepts explicit binary mode" >&5 23601echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6 23602if test "${cf_cv_fopen_bin_r+set}" = set; then 23603 echo $ECHO_N "(cached) $ECHO_C" >&6 23604else 23605 23606 if test "$cross_compiling" = yes; then 23607 cf_cv_fopen_bin_r=unknown 23608else 23609 cat >"conftest.$ac_ext" <<_ACEOF 23610#line 23607 "configure" 23611#include "confdefs.h" 23612 23613#include <stdio.h> 23614int main(void) { 23615 FILE *fp = fopen("conftest.tmp", "wb"); 23616 int rc = 0; 23617 if (fp != 0) { 23618 int p, q; 23619 for (p = 0; p < 256; ++p) { 23620 fputc(p, fp); 23621 } 23622 fclose(fp); 23623 fp = fopen("conftest.tmp", "rb"); 23624 if (fp != 0) { 23625 for (p = 0; p < 256; ++p) { 23626 q = fgetc(fp); 23627 if (q != p) { 23628 rc = 1; 23629 break; 23630 } 23631 } 23632 } else { 23633 rc = 1; 23634 } 23635 } else { 23636 rc = 1; 23637 } 23638 ${cf_cv_main_return:-return} (rc); 23639} 23640 23641_ACEOF 23642rm -f "conftest$ac_exeext" 23643if { (eval echo "$as_me:23640: \"$ac_link\"") >&5 23644 (eval $ac_link) 2>&5 23645 ac_status=$? 23646 echo "$as_me:23643: \$? = $ac_status" >&5 23647 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 23648 { (eval echo "$as_me:23645: \"$ac_try\"") >&5 23649 (eval $ac_try) 2>&5 23650 ac_status=$? 23651 echo "$as_me:23648: \$? = $ac_status" >&5 23652 (exit "$ac_status"); }; }; then 23653 cf_cv_fopen_bin_r=yes 23654else 23655 echo "$as_me: program exited with status $ac_status" >&5 23656echo "$as_me: failed program was:" >&5 23657cat "conftest.$ac_ext" >&5 23658cf_cv_fopen_bin_r=no 23659fi 23660rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 23661fi 23662 23663fi 23664echo "$as_me:23661: result: $cf_cv_fopen_bin_r" >&5 23665echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6 23666test "x$cf_cv_fopen_bin_r" != xno && 23667cat >>confdefs.h <<\EOF 23668#define USE_FOPEN_BIN_R 1 23669EOF 23670 23671# special check for test/ditto.c 23672 23673echo "$as_me:23670: checking for openpty in -lutil" >&5 23674echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 23675if test "${ac_cv_lib_util_openpty+set}" = set; then 23676 echo $ECHO_N "(cached) $ECHO_C" >&6 23677else 23678 ac_check_lib_save_LIBS=$LIBS 23679LIBS="-lutil $LIBS" 23680cat >"conftest.$ac_ext" <<_ACEOF 23681#line 23678 "configure" 23682#include "confdefs.h" 23683 23684/* Override any gcc2 internal prototype to avoid an error. */ 23685#ifdef __cplusplus 23686extern "C" 23687#endif 23688/* We use char because int might match the return type of a gcc2 23689 builtin and then its argument prototype would still apply. */ 23690char openpty (); 23691int 23692main (void) 23693{ 23694openpty (); 23695 ; 23696 return 0; 23697} 23698_ACEOF 23699rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23700if { (eval echo "$as_me:23697: \"$ac_link\"") >&5 23701 (eval $ac_link) 2>&5 23702 ac_status=$? 23703 echo "$as_me:23700: \$? = $ac_status" >&5 23704 (exit "$ac_status"); } && 23705 { ac_try='test -s "conftest$ac_exeext"' 23706 { (eval echo "$as_me:23703: \"$ac_try\"") >&5 23707 (eval $ac_try) 2>&5 23708 ac_status=$? 23709 echo "$as_me:23706: \$? = $ac_status" >&5 23710 (exit "$ac_status"); }; }; then 23711 ac_cv_lib_util_openpty=yes 23712else 23713 echo "$as_me: failed program was:" >&5 23714cat "conftest.$ac_ext" >&5 23715ac_cv_lib_util_openpty=no 23716fi 23717rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23718LIBS=$ac_check_lib_save_LIBS 23719fi 23720echo "$as_me:23717: result: $ac_cv_lib_util_openpty" >&5 23721echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 23722if test "$ac_cv_lib_util_openpty" = yes; then 23723 cf_cv_lib_util=yes 23724else 23725 cf_cv_lib_util=no 23726fi 23727 23728echo "$as_me:23725: checking for openpty header" >&5 23729echo $ECHO_N "checking for openpty header... $ECHO_C" >&6 23730if test "${cf_cv_func_openpty+set}" = set; then 23731 echo $ECHO_N "(cached) $ECHO_C" >&6 23732else 23733 23734 cf_save_LIBS="$LIBS" 23735 test "$cf_cv_lib_util" = yes && { 23736cf_add_libs="$LIBS" 23737# reverse order 23738cf_add_0lib= 23739for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23740# filter duplicates 23741for cf_add_1lib in $cf_add_0lib; do 23742 for cf_add_2lib in $cf_add_libs; do 23743 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23744 cf_add_1lib= 23745 break 23746 fi 23747 done 23748 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23749done 23750LIBS="$cf_add_libs" 23751 } 23752 for cf_header in pty.h libutil.h util.h 23753 do 23754 cat >"conftest.$ac_ext" <<_ACEOF 23755#line 23752 "configure" 23756#include "confdefs.h" 23757 23758#include <$cf_header> 23759 23760int 23761main (void) 23762{ 23763 23764 int x = openpty((int *)0, (int *)0, (char *)0, 23765 (struct termios *)0, (struct winsize *)0); 23766 23767 ; 23768 return 0; 23769} 23770_ACEOF 23771rm -f "conftest.$ac_objext" "conftest$ac_exeext" 23772if { (eval echo "$as_me:23769: \"$ac_link\"") >&5 23773 (eval $ac_link) 2>&5 23774 ac_status=$? 23775 echo "$as_me:23772: \$? = $ac_status" >&5 23776 (exit "$ac_status"); } && 23777 { ac_try='test -s "conftest$ac_exeext"' 23778 { (eval echo "$as_me:23775: \"$ac_try\"") >&5 23779 (eval $ac_try) 2>&5 23780 ac_status=$? 23781 echo "$as_me:23778: \$? = $ac_status" >&5 23782 (exit "$ac_status"); }; }; then 23783 23784 cf_cv_func_openpty=$cf_header 23785 break 23786 23787else 23788 echo "$as_me: failed program was:" >&5 23789cat "conftest.$ac_ext" >&5 23790 23791 cf_cv_func_openpty=no 23792 23793fi 23794rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 23795 done 23796 LIBS="$cf_save_LIBS" 23797 23798fi 23799echo "$as_me:23796: result: $cf_cv_func_openpty" >&5 23800echo "${ECHO_T}$cf_cv_func_openpty" >&6 23801 23802if test "$cf_cv_func_openpty" != no ; then 23803 23804cat >>confdefs.h <<EOF 23805#define USE_OPENPTY_HEADER <$cf_cv_func_openpty> 23806EOF 23807 23808cat >>confdefs.h <<\EOF 23809#define USE_XTERM_PTY 1 23810EOF 23811 23812 if test "x$cf_cv_lib_util" = xyes ; then 23813 23814cf_add_libs="$TEST_LIBS" 23815# reverse order 23816cf_add_0lib= 23817for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 23818# filter duplicates 23819for cf_add_1lib in $cf_add_0lib; do 23820 for cf_add_2lib in $cf_add_libs; do 23821 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 23822 cf_add_1lib= 23823 break 23824 fi 23825 done 23826 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 23827done 23828TEST_LIBS="$cf_add_libs" 23829 23830 fi 23831fi 23832 23833if test "$with_hashed_db" != no ; then 23834 23835cat >>confdefs.h <<\EOF 23836#define USE_HASHED_DB 1 23837EOF 23838 23839case $with_hashed_db in 23840(yes|*able*) 23841 ;; 23842(*) 23843 if test -d "$with_hashed_db" ; then 23844 23845if test -n "$with_hashed_db/include" ; then 23846 for cf_add_incdir in $with_hashed_db/include 23847 do 23848 while test "$cf_add_incdir" != /usr/include 23849 do 23850 if test -d "$cf_add_incdir" 23851 then 23852 cf_have_incdir=no 23853 if test -n "$CFLAGS$CPPFLAGS" ; then 23854 # a loop is needed to ensure we can add subdirs of existing dirs 23855 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 23856 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 23857 cf_have_incdir=yes; break 23858 fi 23859 done 23860 fi 23861 23862 if test "$cf_have_incdir" = no ; then 23863 if test "$cf_add_incdir" = /usr/local/include ; then 23864 if test "$GCC" = yes 23865 then 23866 cf_save_CPPFLAGS=$CPPFLAGS 23867 23868 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 23869 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 23870 23871 cat >"conftest.$ac_ext" <<_ACEOF 23872#line 23869 "configure" 23873#include "confdefs.h" 23874#include <stdio.h> 23875int 23876main (void) 23877{ 23878printf("Hello") 23879 ; 23880 return 0; 23881} 23882_ACEOF 23883rm -f "conftest.$ac_objext" 23884if { (eval echo "$as_me:23881: \"$ac_compile\"") >&5 23885 (eval $ac_compile) 2>&5 23886 ac_status=$? 23887 echo "$as_me:23884: \$? = $ac_status" >&5 23888 (exit "$ac_status"); } && 23889 { ac_try='test -s "conftest.$ac_objext"' 23890 { (eval echo "$as_me:23887: \"$ac_try\"") >&5 23891 (eval $ac_try) 2>&5 23892 ac_status=$? 23893 echo "$as_me:23890: \$? = $ac_status" >&5 23894 (exit "$ac_status"); }; }; then 23895 : 23896else 23897 echo "$as_me: failed program was:" >&5 23898cat "conftest.$ac_ext" >&5 23899cf_have_incdir=yes 23900fi 23901rm -f "conftest.$ac_objext" "conftest.$ac_ext" 23902 CPPFLAGS=$cf_save_CPPFLAGS 23903 fi 23904 fi 23905 fi 23906 23907 if test "$cf_have_incdir" = no ; then 23908 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 23909 23910echo "${as_me:-configure}:23907: testing adding $cf_add_incdir to include-path ..." 1>&5 23911 23912 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 23913 23914 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 23915 test "$cf_top_incdir" = "$cf_add_incdir" && break 23916 cf_add_incdir="$cf_top_incdir" 23917 else 23918 break 23919 fi 23920 else 23921 break 23922 fi 23923 done 23924 done 23925fi 23926 23927if test -n "$with_hashed_db/lib" ; then 23928 for cf_add_libdir in $with_hashed_db/lib 23929 do 23930 if test "$cf_add_libdir" = /usr/lib ; then 23931 : 23932 elif test -d "$cf_add_libdir" 23933 then 23934 cf_have_libdir=no 23935 if test -n "$LDFLAGS$LIBS" ; then 23936 # a loop is needed to ensure we can add subdirs of existing dirs 23937 for cf_test_libdir in $LDFLAGS $LIBS ; do 23938 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 23939 cf_have_libdir=yes; break 23940 fi 23941 done 23942 fi 23943 if test "$cf_have_libdir" = no ; then 23944 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 23945 23946echo "${as_me:-configure}:23943: testing adding $cf_add_libdir to library-path ..." 1>&5 23947 23948 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 23949 fi 23950 fi 23951 done 23952fi 23953 23954 else 23955 case "$with_hashed_db" in 23956 (./*|../*|/*) 23957 { echo "$as_me:23954: WARNING: no such directory $with_hashed_db" >&5 23958echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;} 23959 ;; 23960 (*) 23961 23962cf_search= 23963 23964test "x$prefix" != "xNONE" && \ 23965test -d "$prefix" && \ 23966 { 23967 test -n "$verbose" && echo " ... testing for include-directories under $prefix" 23968 test -d "$prefix/include" && cf_search="$cf_search $prefix/include" 23969 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db" 23970 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include" 23971 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include" 23972 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db" 23973} 23974 23975for cf_subdir_prefix in \ 23976 /usr \ 23977 /usr/local \ 23978 /usr/pkg \ 23979 /opt \ 23980 /opt/local \ 23981 $HOME 23982do 23983 23984test "x$cf_subdir_prefix" != "x$prefix" && \ 23985test -d "$cf_subdir_prefix" && \ 23986{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 23987 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix" 23988 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include" 23989 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db" 23990 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include" 23991 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include" 23992 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" 23993} 23994 23995done 23996 23997 for cf_item in $cf_search 23998 do 23999 case "$cf_item" in 24000 (*/$with_hashed_db) 24001 24002if test -n "$cf_item" ; then 24003 for cf_add_incdir in $cf_item 24004 do 24005 while test "$cf_add_incdir" != /usr/include 24006 do 24007 if test -d "$cf_add_incdir" 24008 then 24009 cf_have_incdir=no 24010 if test -n "$CFLAGS$CPPFLAGS" ; then 24011 # a loop is needed to ensure we can add subdirs of existing dirs 24012 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do 24013 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then 24014 cf_have_incdir=yes; break 24015 fi 24016 done 24017 fi 24018 24019 if test "$cf_have_incdir" = no ; then 24020 if test "$cf_add_incdir" = /usr/local/include ; then 24021 if test "$GCC" = yes 24022 then 24023 cf_save_CPPFLAGS=$CPPFLAGS 24024 24025 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 24026 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir" 24027 24028 cat >"conftest.$ac_ext" <<_ACEOF 24029#line 24026 "configure" 24030#include "confdefs.h" 24031#include <stdio.h> 24032int 24033main (void) 24034{ 24035printf("Hello") 24036 ; 24037 return 0; 24038} 24039_ACEOF 24040rm -f "conftest.$ac_objext" 24041if { (eval echo "$as_me:24038: \"$ac_compile\"") >&5 24042 (eval $ac_compile) 2>&5 24043 ac_status=$? 24044 echo "$as_me:24041: \$? = $ac_status" >&5 24045 (exit "$ac_status"); } && 24046 { ac_try='test -s "conftest.$ac_objext"' 24047 { (eval echo "$as_me:24044: \"$ac_try\"") >&5 24048 (eval $ac_try) 2>&5 24049 ac_status=$? 24050 echo "$as_me:24047: \$? = $ac_status" >&5 24051 (exit "$ac_status"); }; }; then 24052 : 24053else 24054 echo "$as_me: failed program was:" >&5 24055cat "conftest.$ac_ext" >&5 24056cf_have_incdir=yes 24057fi 24058rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24059 CPPFLAGS=$cf_save_CPPFLAGS 24060 fi 24061 fi 24062 fi 24063 24064 if test "$cf_have_incdir" = no ; then 24065 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6 24066 24067echo "${as_me:-configure}:24064: testing adding $cf_add_incdir to include-path ..." 1>&5 24068 24069 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir" 24070 24071 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'` 24072 test "$cf_top_incdir" = "$cf_add_incdir" && break 24073 cf_add_incdir="$cf_top_incdir" 24074 else 24075 break 24076 fi 24077 else 24078 break 24079 fi 24080 done 24081 done 24082fi 24083 24084 ;; 24085 esac 24086 done 24087 24088cf_search= 24089 24090test "x$prefix" != "xNONE" && \ 24091test -d "$prefix" && \ 24092 { 24093 test -n "$verbose" && echo " ... testing for lib-directories under $prefix" 24094 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib" 24095 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db" 24096 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib" 24097 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib" 24098 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db" 24099} 24100 24101for cf_subdir_prefix in \ 24102 /usr \ 24103 /usr/local \ 24104 /usr/pkg \ 24105 /opt \ 24106 /opt/local \ 24107 $HOME 24108do 24109 24110test "x$cf_subdir_prefix" != "x$prefix" && \ 24111test -d "$cf_subdir_prefix" && \ 24112{ test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && { 24113 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix" 24114 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib" 24115 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db" 24116 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib" 24117 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib" 24118 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" 24119} 24120 24121done 24122 24123 for cf_item in $cf_search 24124 do 24125 case "$cf_item" in 24126 (*/$with_hashed_db) 24127 24128if test -n "$cf_item" ; then 24129 for cf_add_libdir in $cf_item 24130 do 24131 if test "$cf_add_libdir" = /usr/lib ; then 24132 : 24133 elif test -d "$cf_add_libdir" 24134 then 24135 cf_have_libdir=no 24136 if test -n "$LDFLAGS$LIBS" ; then 24137 # a loop is needed to ensure we can add subdirs of existing dirs 24138 for cf_test_libdir in $LDFLAGS $LIBS ; do 24139 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then 24140 cf_have_libdir=yes; break 24141 fi 24142 done 24143 fi 24144 if test "$cf_have_libdir" = no ; then 24145 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 24146 24147echo "${as_me:-configure}:24144: testing adding $cf_add_libdir to library-path ..." 1>&5 24148 24149 LDFLAGS="-L$cf_add_libdir $LDFLAGS" 24150 fi 24151 fi 24152 done 24153fi 24154 24155 ;; 24156 esac 24157 done 24158 24159 ;; 24160 esac 24161 fi 24162esac 24163 24164echo "$as_me:24161: checking for db.h" >&5 24165echo $ECHO_N "checking for db.h... $ECHO_C" >&6 24166if test "${ac_cv_header_db_h+set}" = set; then 24167 echo $ECHO_N "(cached) $ECHO_C" >&6 24168else 24169 cat >"conftest.$ac_ext" <<_ACEOF 24170#line 24167 "configure" 24171#include "confdefs.h" 24172#include <db.h> 24173_ACEOF 24174if { (eval echo "$as_me:24171: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24175 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24176 ac_status=$? 24177 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24178 rm -f conftest.er1 24179 cat conftest.err >&5 24180 echo "$as_me:24177: \$? = $ac_status" >&5 24181 (exit "$ac_status"); } >/dev/null; then 24182 if test -s conftest.err; then 24183 ac_cpp_err=$ac_c_preproc_warn_flag 24184 else 24185 ac_cpp_err= 24186 fi 24187else 24188 ac_cpp_err=yes 24189fi 24190if test -z "$ac_cpp_err"; then 24191 ac_cv_header_db_h=yes 24192else 24193 echo "$as_me: failed program was:" >&5 24194 cat "conftest.$ac_ext" >&5 24195 ac_cv_header_db_h=no 24196fi 24197rm -f conftest.err "conftest.$ac_ext" 24198fi 24199echo "$as_me:24196: result: $ac_cv_header_db_h" >&5 24200echo "${ECHO_T}$ac_cv_header_db_h" >&6 24201if test "$ac_cv_header_db_h" = yes; then 24202 24203echo "$as_me:24200: checking for version of db" >&5 24204echo $ECHO_N "checking for version of db... $ECHO_C" >&6 24205if test "${cf_cv_hashed_db_version+set}" = set; then 24206 echo $ECHO_N "(cached) $ECHO_C" >&6 24207else 24208 24209cf_cv_hashed_db_version=unknown 24210 24211for cf_db_version in 1 2 3 4 5 6 24212do 24213 24214echo "${as_me:-configure}:24211: testing checking for db version $cf_db_version ..." 1>&5 24215 24216 cat >"conftest.$ac_ext" <<_ACEOF 24217#line 24214 "configure" 24218#include "confdefs.h" 24219 24220$ac_includes_default 24221#include <db.h> 24222 24223#ifdef DB_VERSION_MAJOR 24224 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */ 24225#if $cf_db_version == DB_VERSION_MAJOR 24226 /* ok */ 24227#else 24228 make an error 24229#endif 24230#else 24231#if $cf_db_version == 1 24232 /* ok: assuming this is DB 1.8.5 */ 24233#else 24234 make an error 24235#endif 24236#endif 24237 24238int 24239main (void) 24240{ 24241DBT *foo = 0 24242 ; 24243 return 0; 24244} 24245_ACEOF 24246rm -f "conftest.$ac_objext" 24247if { (eval echo "$as_me:24244: \"$ac_compile\"") >&5 24248 (eval $ac_compile) 2>&5 24249 ac_status=$? 24250 echo "$as_me:24247: \$? = $ac_status" >&5 24251 (exit "$ac_status"); } && 24252 { ac_try='test -s "conftest.$ac_objext"' 24253 { (eval echo "$as_me:24250: \"$ac_try\"") >&5 24254 (eval $ac_try) 2>&5 24255 ac_status=$? 24256 echo "$as_me:24253: \$? = $ac_status" >&5 24257 (exit "$ac_status"); }; }; then 24258 24259 cf_cv_hashed_db_version=$cf_db_version 24260 break 24261 24262else 24263 echo "$as_me: failed program was:" >&5 24264cat "conftest.$ac_ext" >&5 24265fi 24266rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24267done 24268 24269fi 24270echo "$as_me:24267: result: $cf_cv_hashed_db_version" >&5 24271echo "${ECHO_T}$cf_cv_hashed_db_version" >&6 24272 24273if test "$cf_cv_hashed_db_version" = unknown ; then 24274 { { echo "$as_me:24271: error: Cannot determine version of db" >&5 24275echo "$as_me: error: Cannot determine version of db" >&2;} 24276 { (exit 1); exit 1; }; } 24277else 24278 24279echo "$as_me:24276: checking for db libraries" >&5 24280echo $ECHO_N "checking for db libraries... $ECHO_C" >&6 24281if test "${cf_cv_hashed_db_libs+set}" = set; then 24282 echo $ECHO_N "(cached) $ECHO_C" >&6 24283else 24284 24285cf_cv_hashed_db_libs=unknown 24286for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db '' 24287do 24288 cf_save_libs="$LIBS" 24289 if test -n "$cf_db_libs"; then 24290 24291cf_add_libs="$LIBS" 24292# reverse order 24293cf_add_0lib= 24294for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24295# filter duplicates 24296for cf_add_1lib in $cf_add_0lib; do 24297 for cf_add_2lib in $cf_add_libs; do 24298 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24299 cf_add_1lib= 24300 break 24301 fi 24302 done 24303 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24304done 24305LIBS="$cf_add_libs" 24306 24307 fi 24308 24309echo "${as_me:-configure}:24306: testing checking for library $cf_db_libs ..." 1>&5 24310 24311 cat >"conftest.$ac_ext" <<_ACEOF 24312#line 24309 "configure" 24313#include "confdefs.h" 24314 24315$ac_includes_default 24316#include <db.h> 24317 24318int 24319main (void) 24320{ 24321 24322 char *path = "/tmp/foo"; 24323#ifdef DB_VERSION_MAJOR 24324#if DB_VERSION_MAJOR >= 4 24325 DB *result = 0; 24326 db_create(&result, NULL, 0); 24327 result->open(result, 24328 NULL, 24329 path, 24330 path, 24331 DB_HASH, 24332 DB_CREATE, 24333 0644); 24334#elif DB_VERSION_MAJOR >= 3 24335 DB *result = 0; 24336 db_create(&result, NULL, 0); 24337 result->open(result, 24338 path, 24339 path, 24340 DB_HASH, 24341 DB_CREATE, 24342 0644); 24343#elif DB_VERSION_MAJOR >= 2 24344 DB *result = 0; 24345 db_open(path, 24346 DB_HASH, 24347 DB_CREATE, 24348 0644, 24349 (DB_ENV *) 0, 24350 (DB_INFO *) 0, 24351 &result); 24352#endif /* DB_VERSION_MAJOR */ 24353#else 24354 DB *result = dbopen(path, 24355 2, 24356 0644, 24357 DB_HASH, 24358 0); 24359#endif 24360 ${cf_cv_main_return:-return}(result != 0) 24361 24362 ; 24363 return 0; 24364} 24365_ACEOF 24366rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24367if { (eval echo "$as_me:24364: \"$ac_link\"") >&5 24368 (eval $ac_link) 2>&5 24369 ac_status=$? 24370 echo "$as_me:24367: \$? = $ac_status" >&5 24371 (exit "$ac_status"); } && 24372 { ac_try='test -s "conftest$ac_exeext"' 24373 { (eval echo "$as_me:24370: \"$ac_try\"") >&5 24374 (eval $ac_try) 2>&5 24375 ac_status=$? 24376 echo "$as_me:24373: \$? = $ac_status" >&5 24377 (exit "$ac_status"); }; }; then 24378 24379 if test -n "$cf_db_libs" ; then 24380 cf_cv_hashed_db_libs=$cf_db_libs 24381 else 24382 cf_cv_hashed_db_libs=default 24383 fi 24384 LIBS="$cf_save_libs" 24385 break 24386 24387else 24388 echo "$as_me: failed program was:" >&5 24389cat "conftest.$ac_ext" >&5 24390fi 24391rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24392 LIBS="$cf_save_libs" 24393done 24394 24395fi 24396echo "$as_me:24393: result: $cf_cv_hashed_db_libs" >&5 24397echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6 24398 24399 if test "$cf_cv_hashed_db_libs" = unknown ; then 24400 { { echo "$as_me:24397: error: Cannot determine library for db" >&5 24401echo "$as_me: error: Cannot determine library for db" >&2;} 24402 { (exit 1); exit 1; }; } 24403 elif test "$cf_cv_hashed_db_libs" != default ; then 24404 24405cf_add_libs="$LIBS" 24406# reverse order 24407cf_add_0lib= 24408for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24409# filter duplicates 24410for cf_add_1lib in $cf_add_0lib; do 24411 for cf_add_2lib in $cf_add_libs; do 24412 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24413 cf_add_1lib= 24414 break 24415 fi 24416 done 24417 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24418done 24419LIBS="$cf_add_libs" 24420 24421 fi 24422fi 24423 24424else 24425 24426 { { echo "$as_me:24423: error: Cannot find db.h" >&5 24427echo "$as_me: error: Cannot find db.h" >&2;} 24428 { (exit 1); exit 1; }; } 24429 24430fi 24431 24432fi 24433 24434if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then 24435 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'` 24436 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'` 24437fi 24438 24439# Just in case, check if the C compiler has a bool type. 24440 24441echo "$as_me:24438: checking if we should include stdbool.h" >&5 24442echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 24443 24444if test "${cf_cv_header_stdbool_h+set}" = set; then 24445 echo $ECHO_N "(cached) $ECHO_C" >&6 24446else 24447 24448 cat >"conftest.$ac_ext" <<_ACEOF 24449#line 24446 "configure" 24450#include "confdefs.h" 24451 24452int 24453main (void) 24454{ 24455bool foo = false 24456 ; 24457 return 0; 24458} 24459_ACEOF 24460rm -f "conftest.$ac_objext" 24461if { (eval echo "$as_me:24458: \"$ac_compile\"") >&5 24462 (eval $ac_compile) 2>&5 24463 ac_status=$? 24464 echo "$as_me:24461: \$? = $ac_status" >&5 24465 (exit "$ac_status"); } && 24466 { ac_try='test -s "conftest.$ac_objext"' 24467 { (eval echo "$as_me:24464: \"$ac_try\"") >&5 24468 (eval $ac_try) 2>&5 24469 ac_status=$? 24470 echo "$as_me:24467: \$? = $ac_status" >&5 24471 (exit "$ac_status"); }; }; then 24472 cf_cv_header_stdbool_h=0 24473else 24474 echo "$as_me: failed program was:" >&5 24475cat "conftest.$ac_ext" >&5 24476cat >"conftest.$ac_ext" <<_ACEOF 24477#line 24474 "configure" 24478#include "confdefs.h" 24479 24480#ifndef __BEOS__ 24481#include <stdbool.h> 24482#endif 24483 24484int 24485main (void) 24486{ 24487bool foo = false 24488 ; 24489 return 0; 24490} 24491_ACEOF 24492rm -f "conftest.$ac_objext" 24493if { (eval echo "$as_me:24490: \"$ac_compile\"") >&5 24494 (eval $ac_compile) 2>&5 24495 ac_status=$? 24496 echo "$as_me:24493: \$? = $ac_status" >&5 24497 (exit "$ac_status"); } && 24498 { ac_try='test -s "conftest.$ac_objext"' 24499 { (eval echo "$as_me:24496: \"$ac_try\"") >&5 24500 (eval $ac_try) 2>&5 24501 ac_status=$? 24502 echo "$as_me:24499: \$? = $ac_status" >&5 24503 (exit "$ac_status"); }; }; then 24504 cf_cv_header_stdbool_h=1 24505else 24506 echo "$as_me: failed program was:" >&5 24507cat "conftest.$ac_ext" >&5 24508cf_cv_header_stdbool_h=0 24509fi 24510rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24511fi 24512rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24513fi 24514 24515if test "$cf_cv_header_stdbool_h" = 1 24516then echo "$as_me:24513: result: yes" >&5 24517echo "${ECHO_T}yes" >&6 24518else echo "$as_me:24515: result: no" >&5 24519echo "${ECHO_T}no" >&6 24520fi 24521 24522echo "$as_me:24519: checking for builtin bool type" >&5 24523echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 24524 24525if test "${cf_cv_cc_bool_type+set}" = set; then 24526 echo $ECHO_N "(cached) $ECHO_C" >&6 24527else 24528 24529 cat >"conftest.$ac_ext" <<_ACEOF 24530#line 24527 "configure" 24531#include "confdefs.h" 24532 24533#include <stdio.h> 24534#include <sys/types.h> 24535 24536int 24537main (void) 24538{ 24539bool x = false 24540 ; 24541 return 0; 24542} 24543_ACEOF 24544rm -f "conftest.$ac_objext" 24545if { (eval echo "$as_me:24542: \"$ac_compile\"") >&5 24546 (eval $ac_compile) 2>&5 24547 ac_status=$? 24548 echo "$as_me:24545: \$? = $ac_status" >&5 24549 (exit "$ac_status"); } && 24550 { ac_try='test -s "conftest.$ac_objext"' 24551 { (eval echo "$as_me:24548: \"$ac_try\"") >&5 24552 (eval $ac_try) 2>&5 24553 ac_status=$? 24554 echo "$as_me:24551: \$? = $ac_status" >&5 24555 (exit "$ac_status"); }; }; then 24556 cf_cv_cc_bool_type=1 24557else 24558 echo "$as_me: failed program was:" >&5 24559cat "conftest.$ac_ext" >&5 24560cf_cv_cc_bool_type=0 24561fi 24562rm -f "conftest.$ac_objext" "conftest.$ac_ext" 24563 24564fi 24565 24566if test "$cf_cv_cc_bool_type" = 1 24567then echo "$as_me:24564: result: yes" >&5 24568echo "${ECHO_T}yes" >&6 24569else echo "$as_me:24566: result: no" >&5 24570echo "${ECHO_T}no" >&6 24571fi 24572 24573# Check for C++ compiler characteristics (and ensure that it's there!) 24574if test -n "$CXX" ; then 24575 ac_ext=cc 24576ac_cpp='$CXXCPP $CPPFLAGS' 24577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 24578ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 24579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24580ac_main_return="return" 24581 24582if test -n "$GXX" ; then 24583 24584 cf_save="$LIBS" 24585 LIBS="$LIBS $CXXLIBS" 24586 echo "$as_me:24583: checking if we already have C++ library" >&5 24587echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6 24588 cat >"conftest.$ac_ext" <<_ACEOF 24589#line 24586 "configure" 24590#include "confdefs.h" 24591 24592 #include <iostream> 24593int 24594main (void) 24595{ 24596 24597 std::cout << "Hello World!" << std::endl; 24598 ; 24599 return 0; 24600} 24601_ACEOF 24602rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24603if { (eval echo "$as_me:24600: \"$ac_link\"") >&5 24604 (eval $ac_link) 2>&5 24605 ac_status=$? 24606 echo "$as_me:24603: \$? = $ac_status" >&5 24607 (exit "$ac_status"); } && 24608 { ac_try='test -s "conftest$ac_exeext"' 24609 { (eval echo "$as_me:24606: \"$ac_try\"") >&5 24610 (eval $ac_try) 2>&5 24611 ac_status=$? 24612 echo "$as_me:24609: \$? = $ac_status" >&5 24613 (exit "$ac_status"); }; }; then 24614 cf_have_libstdcpp=yes 24615else 24616 echo "$as_me: failed program was:" >&5 24617cat "conftest.$ac_ext" >&5 24618cf_have_libstdcpp=no 24619fi 24620rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24621 echo "$as_me:24618: result: $cf_have_libstdcpp" >&5 24622echo "${ECHO_T}$cf_have_libstdcpp" >&6 24623 LIBS="$cf_save" 24624 24625 if test "$cf_have_libstdcpp" != yes 24626 then 24627 case "$cf_cv_system_name" in 24628 (os2*) 24629 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then 24630 cf_stdcpp_libname=stdcpp 24631 else 24632 cf_stdcpp_libname=stdc++ 24633 fi 24634 ;; 24635 (*) 24636 cf_stdcpp_libname=stdc++ 24637 ;; 24638 esac 24639 24640 echo "$as_me:24637: checking for library $cf_stdcpp_libname" >&5 24641echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6 24642if test "${cf_cv_libstdcpp+set}" = set; then 24643 echo $ECHO_N "(cached) $ECHO_C" >&6 24644else 24645 24646 cf_save="$LIBS" 24647 LIBS="$LIBS $CXXLIBS" 24648 24649cf_add_libs="$LIBS" 24650# reverse order 24651cf_add_0lib= 24652for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24653# filter duplicates 24654for cf_add_1lib in $cf_add_0lib; do 24655 for cf_add_2lib in $cf_add_libs; do 24656 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24657 cf_add_1lib= 24658 break 24659 fi 24660 done 24661 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24662done 24663LIBS="$cf_add_libs" 24664 24665 cat >"conftest.$ac_ext" <<_ACEOF 24666#line 24663 "configure" 24667#include "confdefs.h" 24668 24669 #include <iostream> 24670int 24671main (void) 24672{ 24673 24674 std::cout << "Hello World!" << std::endl; 24675 ; 24676 return 0; 24677} 24678_ACEOF 24679rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24680if { (eval echo "$as_me:24677: \"$ac_link\"") >&5 24681 (eval $ac_link) 2>&5 24682 ac_status=$? 24683 echo "$as_me:24680: \$? = $ac_status" >&5 24684 (exit "$ac_status"); } && 24685 { ac_try='test -s "conftest$ac_exeext"' 24686 { (eval echo "$as_me:24683: \"$ac_try\"") >&5 24687 (eval $ac_try) 2>&5 24688 ac_status=$? 24689 echo "$as_me:24686: \$? = $ac_status" >&5 24690 (exit "$ac_status"); }; }; then 24691 cf_cv_libstdcpp=yes 24692else 24693 echo "$as_me: failed program was:" >&5 24694cat "conftest.$ac_ext" >&5 24695cf_cv_libstdcpp=no 24696fi 24697rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24698 LIBS="$cf_save" 24699 24700fi 24701echo "$as_me:24698: result: $cf_cv_libstdcpp" >&5 24702echo "${ECHO_T}$cf_cv_libstdcpp" >&6 24703 test "$cf_cv_libstdcpp" = yes && { 24704cf_add_libs="$CXXLIBS" 24705# reverse order 24706cf_add_0lib= 24707for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24708# filter duplicates 24709for cf_add_1lib in $cf_add_0lib; do 24710 for cf_add_2lib in $cf_add_libs; do 24711 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24712 cf_add_1lib= 24713 break 24714 fi 24715 done 24716 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24717done 24718CXXLIBS="$cf_add_libs" 24719 } 24720 fi 24721fi 24722 24723 echo "$as_me:24720: checking whether $CXX understands -c and -o together" >&5 24724echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6 24725if test "${cf_cv_prog_CXX_c_o+set}" = set; then 24726 echo $ECHO_N "(cached) $ECHO_C" >&6 24727else 24728 24729cat > conftest.$ac_ext <<CF_EOF 24730int main(void) 24731{ 24732 ${cf_cv_main_return:-return}(0); 24733} 24734CF_EOF 24735# We do the test twice because some compilers refuse to overwrite an 24736# existing .o file with -o, though they will create one. 24737ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 24738if { (eval echo "$as_me:24735: \"$ac_try\"") >&5 24739 (eval $ac_try) 2>&5 24740 ac_status=$? 24741 echo "$as_me:24738: \$? = $ac_status" >&5 24742 (exit "$ac_status"); } && 24743 test -f conftest2.$ac_objext && { (eval echo "$as_me:24740: \"$ac_try\"") >&5 24744 (eval $ac_try) 2>&5 24745 ac_status=$? 24746 echo "$as_me:24743: \$? = $ac_status" >&5 24747 (exit "$ac_status"); }; 24748then 24749 eval cf_cv_prog_CXX_c_o=yes 24750else 24751 eval cf_cv_prog_CXX_c_o=no 24752fi 24753rm -rf ./conftest* 24754 24755fi 24756if test "$cf_cv_prog_CXX_c_o" = yes; then 24757 echo "$as_me:24754: result: yes" >&5 24758echo "${ECHO_T}yes" >&6 24759else 24760 echo "$as_me:24757: result: no" >&5 24761echo "${ECHO_T}no" >&6 24762fi 24763 24764 case "$GXX_VERSION" in 24765 (1.*|2.[0-6]*|[1-9][0-9].*) 24766 cf_cxx_library=yes 24767 ;; 24768 (*-2.7*|2.7*) 24769 24770cf_cxx_library=unknown 24771case "$cf_cv_system_name" in 24772(os2*) 24773 cf_gpp_libname=gpp 24774 ;; 24775(*) 24776 cf_gpp_libname=g++ 24777 ;; 24778esac 24779if test "$GXX" = yes; then 24780 echo "$as_me:24777: checking for lib$cf_gpp_libname" >&5 24781echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6 24782 cf_save="$LIBS" 24783 24784cf_add_libs="$LIBS" 24785# reverse order 24786cf_add_0lib= 24787for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24788# filter duplicates 24789for cf_add_1lib in $cf_add_0lib; do 24790 for cf_add_2lib in $cf_add_libs; do 24791 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24792 cf_add_1lib= 24793 break 24794 fi 24795 done 24796 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24797done 24798LIBS="$cf_add_libs" 24799 24800 cat >"conftest.$ac_ext" <<_ACEOF 24801#line 24798 "configure" 24802#include "confdefs.h" 24803 24804#include <$cf_gpp_libname/builtin.h> 24805 24806int 24807main (void) 24808{ 24809two_arg_error_handler_t foo2 = lib_error_handler 24810 ; 24811 return 0; 24812} 24813_ACEOF 24814rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24815if { (eval echo "$as_me:24812: \"$ac_link\"") >&5 24816 (eval $ac_link) 2>&5 24817 ac_status=$? 24818 echo "$as_me:24815: \$? = $ac_status" >&5 24819 (exit "$ac_status"); } && 24820 { ac_try='test -s "conftest$ac_exeext"' 24821 { (eval echo "$as_me:24818: \"$ac_try\"") >&5 24822 (eval $ac_try) 2>&5 24823 ac_status=$? 24824 echo "$as_me:24821: \$? = $ac_status" >&5 24825 (exit "$ac_status"); }; }; then 24826 cf_cxx_library=yes 24827 24828cf_add_libs="$CXXLIBS" 24829# reverse order 24830cf_add_0lib= 24831for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24832# filter duplicates 24833for cf_add_1lib in $cf_add_0lib; do 24834 for cf_add_2lib in $cf_add_libs; do 24835 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24836 cf_add_1lib= 24837 break 24838 fi 24839 done 24840 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24841done 24842CXXLIBS="$cf_add_libs" 24843 24844 if test "$cf_gpp_libname" = cpp ; then 24845 24846cat >>confdefs.h <<\EOF 24847#define HAVE_GPP_BUILTIN_H 1 24848EOF 24849 24850 else 24851 24852cat >>confdefs.h <<\EOF 24853#define HAVE_GXX_BUILTIN_H 1 24854EOF 24855 24856 fi 24857else 24858 echo "$as_me: failed program was:" >&5 24859cat "conftest.$ac_ext" >&5 24860cat >"conftest.$ac_ext" <<_ACEOF 24861#line 24858 "configure" 24862#include "confdefs.h" 24863 24864#include <builtin.h> 24865 24866int 24867main (void) 24868{ 24869two_arg_error_handler_t foo2 = lib_error_handler 24870 ; 24871 return 0; 24872} 24873_ACEOF 24874rm -f "conftest.$ac_objext" "conftest$ac_exeext" 24875if { (eval echo "$as_me:24872: \"$ac_link\"") >&5 24876 (eval $ac_link) 2>&5 24877 ac_status=$? 24878 echo "$as_me:24875: \$? = $ac_status" >&5 24879 (exit "$ac_status"); } && 24880 { ac_try='test -s "conftest$ac_exeext"' 24881 { (eval echo "$as_me:24878: \"$ac_try\"") >&5 24882 (eval $ac_try) 2>&5 24883 ac_status=$? 24884 echo "$as_me:24881: \$? = $ac_status" >&5 24885 (exit "$ac_status"); }; }; then 24886 cf_cxx_library=yes 24887 24888cf_add_libs="$CXXLIBS" 24889# reverse order 24890cf_add_0lib= 24891for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done 24892# filter duplicates 24893for cf_add_1lib in $cf_add_0lib; do 24894 for cf_add_2lib in $cf_add_libs; do 24895 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then 24896 cf_add_1lib= 24897 break 24898 fi 24899 done 24900 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" 24901done 24902CXXLIBS="$cf_add_libs" 24903 24904cat >>confdefs.h <<\EOF 24905#define HAVE_BUILTIN_H 1 24906EOF 24907 24908else 24909 echo "$as_me: failed program was:" >&5 24910cat "conftest.$ac_ext" >&5 24911cf_cxx_library=no 24912fi 24913rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24914fi 24915rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 24916 LIBS="$cf_save" 24917 echo "$as_me:24914: result: $cf_cxx_library" >&5 24918echo "${ECHO_T}$cf_cxx_library" >&6 24919fi 24920 24921 ;; 24922 (*) 24923 cf_cxx_library=no 24924 ;; 24925 esac 24926 24927 ac_ext=cc 24928ac_cpp='$CXXCPP $CPPFLAGS' 24929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 24930ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 24931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24932ac_main_return="return" 24933echo "$as_me:24930: checking how to run the C++ preprocessor" >&5 24934echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 24935if test -z "$CXXCPP"; then 24936 if test "${ac_cv_prog_CXXCPP+set}" = set; then 24937 echo $ECHO_N "(cached) $ECHO_C" >&6 24938else 24939 # Double quotes because CXXCPP needs to be expanded 24940 for CXXCPP in "$CXX -E" "/lib/cpp" 24941 do 24942 ac_preproc_ok=false 24943for ac_cxx_preproc_warn_flag in '' yes 24944do 24945 # Use a header file that comes with gcc, so configuring glibc 24946 # with a fresh cross-compiler works. 24947 # On the NeXT, cc -E runs the code through the compiler's parser, 24948 # not just through cpp. "Syntax error" is here to catch this case. 24949 cat >"conftest.$ac_ext" <<_ACEOF 24950#line 24947 "configure" 24951#include "confdefs.h" 24952#include <assert.h> 24953 Syntax error 24954_ACEOF 24955if { (eval echo "$as_me:24952: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24956 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24957 ac_status=$? 24958 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24959 rm -f conftest.er1 24960 cat conftest.err >&5 24961 echo "$as_me:24958: \$? = $ac_status" >&5 24962 (exit "$ac_status"); } >/dev/null; then 24963 if test -s conftest.err; then 24964 ac_cpp_err=$ac_cxx_preproc_warn_flag 24965 else 24966 ac_cpp_err= 24967 fi 24968else 24969 ac_cpp_err=yes 24970fi 24971if test -z "$ac_cpp_err"; then 24972 : 24973else 24974 echo "$as_me: failed program was:" >&5 24975 cat "conftest.$ac_ext" >&5 24976 # Broken: fails on valid input. 24977continue 24978fi 24979rm -f conftest.err "conftest.$ac_ext" 24980 24981 # OK, works on sane cases. Now check whether non-existent headers 24982 # can be detected and how. 24983 cat >"conftest.$ac_ext" <<_ACEOF 24984#line 24981 "configure" 24985#include "confdefs.h" 24986#include <ac_nonexistent.h> 24987_ACEOF 24988if { (eval echo "$as_me:24985: \"$ac_cpp "conftest.$ac_ext"\"") >&5 24989 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 24990 ac_status=$? 24991 $EGREP -v '^ *\+' conftest.er1 >conftest.err 24992 rm -f conftest.er1 24993 cat conftest.err >&5 24994 echo "$as_me:24991: \$? = $ac_status" >&5 24995 (exit "$ac_status"); } >/dev/null; then 24996 if test -s conftest.err; then 24997 ac_cpp_err=$ac_cxx_preproc_warn_flag 24998 else 24999 ac_cpp_err= 25000 fi 25001else 25002 ac_cpp_err=yes 25003fi 25004if test -z "$ac_cpp_err"; then 25005 # Broken: success on invalid input. 25006continue 25007else 25008 echo "$as_me: failed program was:" >&5 25009 cat "conftest.$ac_ext" >&5 25010 # Passes both tests. 25011ac_preproc_ok=: 25012break 25013fi 25014rm -f conftest.err "conftest.$ac_ext" 25015 25016done 25017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 25018rm -f conftest.err "conftest.$ac_ext" 25019if $ac_preproc_ok; then 25020 break 25021fi 25022 25023 done 25024 ac_cv_prog_CXXCPP=$CXXCPP 25025 25026fi 25027 CXXCPP=$ac_cv_prog_CXXCPP 25028else 25029 ac_cv_prog_CXXCPP=$CXXCPP 25030fi 25031echo "$as_me:25028: result: $CXXCPP" >&5 25032echo "${ECHO_T}$CXXCPP" >&6 25033ac_preproc_ok=false 25034for ac_cxx_preproc_warn_flag in '' yes 25035do 25036 # Use a header file that comes with gcc, so configuring glibc 25037 # with a fresh cross-compiler works. 25038 # On the NeXT, cc -E runs the code through the compiler's parser, 25039 # not just through cpp. "Syntax error" is here to catch this case. 25040 cat >"conftest.$ac_ext" <<_ACEOF 25041#line 25038 "configure" 25042#include "confdefs.h" 25043#include <assert.h> 25044 Syntax error 25045_ACEOF 25046if { (eval echo "$as_me:25043: \"$ac_cpp "conftest.$ac_ext"\"") >&5 25047 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 25048 ac_status=$? 25049 $EGREP -v '^ *\+' conftest.er1 >conftest.err 25050 rm -f conftest.er1 25051 cat conftest.err >&5 25052 echo "$as_me:25049: \$? = $ac_status" >&5 25053 (exit "$ac_status"); } >/dev/null; then 25054 if test -s conftest.err; then 25055 ac_cpp_err=$ac_cxx_preproc_warn_flag 25056 else 25057 ac_cpp_err= 25058 fi 25059else 25060 ac_cpp_err=yes 25061fi 25062if test -z "$ac_cpp_err"; then 25063 : 25064else 25065 echo "$as_me: failed program was:" >&5 25066 cat "conftest.$ac_ext" >&5 25067 # Broken: fails on valid input. 25068continue 25069fi 25070rm -f conftest.err "conftest.$ac_ext" 25071 25072 # OK, works on sane cases. Now check whether non-existent headers 25073 # can be detected and how. 25074 cat >"conftest.$ac_ext" <<_ACEOF 25075#line 25072 "configure" 25076#include "confdefs.h" 25077#include <ac_nonexistent.h> 25078_ACEOF 25079if { (eval echo "$as_me:25076: \"$ac_cpp "conftest.$ac_ext"\"") >&5 25080 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 25081 ac_status=$? 25082 $EGREP -v '^ *\+' conftest.er1 >conftest.err 25083 rm -f conftest.er1 25084 cat conftest.err >&5 25085 echo "$as_me:25082: \$? = $ac_status" >&5 25086 (exit "$ac_status"); } >/dev/null; then 25087 if test -s conftest.err; then 25088 ac_cpp_err=$ac_cxx_preproc_warn_flag 25089 else 25090 ac_cpp_err= 25091 fi 25092else 25093 ac_cpp_err=yes 25094fi 25095if test -z "$ac_cpp_err"; then 25096 # Broken: success on invalid input. 25097continue 25098else 25099 echo "$as_me: failed program was:" >&5 25100 cat "conftest.$ac_ext" >&5 25101 # Passes both tests. 25102ac_preproc_ok=: 25103break 25104fi 25105rm -f conftest.err "conftest.$ac_ext" 25106 25107done 25108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 25109rm -f conftest.err "conftest.$ac_ext" 25110if $ac_preproc_ok; then 25111 : 25112else 25113 { { echo "$as_me:25110: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 25114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 25115 { (exit 1); exit 1; }; } 25116fi 25117 25118ac_ext=cc 25119ac_cpp='$CXXCPP $CPPFLAGS' 25120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25121ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25123ac_main_return="return" 25124 25125for ac_header in typeinfo 25126do 25127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25128echo "$as_me:25125: checking for $ac_header" >&5 25129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25130if eval "test \"\${$as_ac_Header+set}\" = set"; then 25131 echo $ECHO_N "(cached) $ECHO_C" >&6 25132else 25133 cat >"conftest.$ac_ext" <<_ACEOF 25134#line 25131 "configure" 25135#include "confdefs.h" 25136#include <$ac_header> 25137_ACEOF 25138if { (eval echo "$as_me:25135: \"$ac_cpp "conftest.$ac_ext"\"") >&5 25139 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 25140 ac_status=$? 25141 $EGREP -v '^ *\+' conftest.er1 >conftest.err 25142 rm -f conftest.er1 25143 cat conftest.err >&5 25144 echo "$as_me:25141: \$? = $ac_status" >&5 25145 (exit "$ac_status"); } >/dev/null; then 25146 if test -s conftest.err; then 25147 ac_cpp_err=$ac_cxx_preproc_warn_flag 25148 else 25149 ac_cpp_err= 25150 fi 25151else 25152 ac_cpp_err=yes 25153fi 25154if test -z "$ac_cpp_err"; then 25155 eval "$as_ac_Header=yes" 25156else 25157 echo "$as_me: failed program was:" >&5 25158 cat "conftest.$ac_ext" >&5 25159 eval "$as_ac_Header=no" 25160fi 25161rm -f conftest.err "conftest.$ac_ext" 25162fi 25163echo "$as_me:25160: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 25164echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 25165if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 25166 cat >>confdefs.h <<EOF 25167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25168EOF 25169 25170fi 25171done 25172 25173for ac_header in iostream 25174do 25175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25176echo "$as_me:25173: checking for $ac_header" >&5 25177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25178if eval "test \"\${$as_ac_Header+set}\" = set"; then 25179 echo $ECHO_N "(cached) $ECHO_C" >&6 25180else 25181 cat >"conftest.$ac_ext" <<_ACEOF 25182#line 25179 "configure" 25183#include "confdefs.h" 25184#include <$ac_header> 25185_ACEOF 25186if { (eval echo "$as_me:25183: \"$ac_cpp "conftest.$ac_ext"\"") >&5 25187 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 25188 ac_status=$? 25189 $EGREP -v '^ *\+' conftest.er1 >conftest.err 25190 rm -f conftest.er1 25191 cat conftest.err >&5 25192 echo "$as_me:25189: \$? = $ac_status" >&5 25193 (exit "$ac_status"); } >/dev/null; then 25194 if test -s conftest.err; then 25195 ac_cpp_err=$ac_cxx_preproc_warn_flag 25196 else 25197 ac_cpp_err= 25198 fi 25199else 25200 ac_cpp_err=yes 25201fi 25202if test -z "$ac_cpp_err"; then 25203 eval "$as_ac_Header=yes" 25204else 25205 echo "$as_me: failed program was:" >&5 25206 cat "conftest.$ac_ext" >&5 25207 eval "$as_ac_Header=no" 25208fi 25209rm -f conftest.err "conftest.$ac_ext" 25210fi 25211echo "$as_me:25208: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 25212echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 25213if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then 25214 cat >>confdefs.h <<EOF 25215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25216EOF 25217 25218fi 25219done 25220 25221if test x"$ac_cv_header_iostream" = xyes ; then 25222 echo "$as_me:25219: checking if iostream uses std-namespace" >&5 25223echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6 25224 cat >"conftest.$ac_ext" <<_ACEOF 25225#line 25222 "configure" 25226#include "confdefs.h" 25227 25228#include <iostream> 25229using std::endl; 25230using std::cerr; 25231int 25232main (void) 25233{ 25234 25235cerr << "testing" << endl; 25236 25237 ; 25238 return 0; 25239} 25240_ACEOF 25241rm -f "conftest.$ac_objext" 25242if { (eval echo "$as_me:25239: \"$ac_compile\"") >&5 25243 (eval $ac_compile) 2>&5 25244 ac_status=$? 25245 echo "$as_me:25242: \$? = $ac_status" >&5 25246 (exit "$ac_status"); } && 25247 { ac_try='test -s "conftest.$ac_objext"' 25248 { (eval echo "$as_me:25245: \"$ac_try\"") >&5 25249 (eval $ac_try) 2>&5 25250 ac_status=$? 25251 echo "$as_me:25248: \$? = $ac_status" >&5 25252 (exit "$ac_status"); }; }; then 25253 cf_iostream_namespace=yes 25254else 25255 echo "$as_me: failed program was:" >&5 25256cat "conftest.$ac_ext" >&5 25257cf_iostream_namespace=no 25258fi 25259rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25260 echo "$as_me:25257: result: $cf_iostream_namespace" >&5 25261echo "${ECHO_T}$cf_iostream_namespace" >&6 25262 if test "$cf_iostream_namespace" = yes ; then 25263 25264cat >>confdefs.h <<\EOF 25265#define IOSTREAM_NAMESPACE 1 25266EOF 25267 25268 fi 25269fi 25270 25271echo "$as_me:25268: checking if we should include stdbool.h" >&5 25272echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6 25273 25274if test "${cf_cv_header_stdbool_h+set}" = set; then 25275 echo $ECHO_N "(cached) $ECHO_C" >&6 25276else 25277 25278 cat >"conftest.$ac_ext" <<_ACEOF 25279#line 25276 "configure" 25280#include "confdefs.h" 25281 25282int 25283main (void) 25284{ 25285bool foo = false 25286 ; 25287 return 0; 25288} 25289_ACEOF 25290rm -f "conftest.$ac_objext" 25291if { (eval echo "$as_me:25288: \"$ac_compile\"") >&5 25292 (eval $ac_compile) 2>&5 25293 ac_status=$? 25294 echo "$as_me:25291: \$? = $ac_status" >&5 25295 (exit "$ac_status"); } && 25296 { ac_try='test -s "conftest.$ac_objext"' 25297 { (eval echo "$as_me:25294: \"$ac_try\"") >&5 25298 (eval $ac_try) 2>&5 25299 ac_status=$? 25300 echo "$as_me:25297: \$? = $ac_status" >&5 25301 (exit "$ac_status"); }; }; then 25302 cf_cv_header_stdbool_h=0 25303else 25304 echo "$as_me: failed program was:" >&5 25305cat "conftest.$ac_ext" >&5 25306cat >"conftest.$ac_ext" <<_ACEOF 25307#line 25304 "configure" 25308#include "confdefs.h" 25309 25310#ifndef __BEOS__ 25311#include <stdbool.h> 25312#endif 25313 25314int 25315main (void) 25316{ 25317bool foo = false 25318 ; 25319 return 0; 25320} 25321_ACEOF 25322rm -f "conftest.$ac_objext" 25323if { (eval echo "$as_me:25320: \"$ac_compile\"") >&5 25324 (eval $ac_compile) 2>&5 25325 ac_status=$? 25326 echo "$as_me:25323: \$? = $ac_status" >&5 25327 (exit "$ac_status"); } && 25328 { ac_try='test -s "conftest.$ac_objext"' 25329 { (eval echo "$as_me:25326: \"$ac_try\"") >&5 25330 (eval $ac_try) 2>&5 25331 ac_status=$? 25332 echo "$as_me:25329: \$? = $ac_status" >&5 25333 (exit "$ac_status"); }; }; then 25334 cf_cv_header_stdbool_h=1 25335else 25336 echo "$as_me: failed program was:" >&5 25337cat "conftest.$ac_ext" >&5 25338cf_cv_header_stdbool_h=0 25339fi 25340rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25341fi 25342rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25343fi 25344 25345if test "$cf_cv_header_stdbool_h" = 1 25346then echo "$as_me:25343: result: yes" >&5 25347echo "${ECHO_T}yes" >&6 25348else echo "$as_me:25345: result: no" >&5 25349echo "${ECHO_T}no" >&6 25350fi 25351 25352echo "$as_me:25349: checking for builtin bool type" >&5 25353echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6 25354 25355if test "${cf_cv_builtin_bool+set}" = set; then 25356 echo $ECHO_N "(cached) $ECHO_C" >&6 25357else 25358 25359 cat >"conftest.$ac_ext" <<_ACEOF 25360#line 25357 "configure" 25361#include "confdefs.h" 25362 25363#include <stdio.h> 25364#include <sys/types.h> 25365 25366int 25367main (void) 25368{ 25369bool x = false 25370 ; 25371 return 0; 25372} 25373_ACEOF 25374rm -f "conftest.$ac_objext" 25375if { (eval echo "$as_me:25372: \"$ac_compile\"") >&5 25376 (eval $ac_compile) 2>&5 25377 ac_status=$? 25378 echo "$as_me:25375: \$? = $ac_status" >&5 25379 (exit "$ac_status"); } && 25380 { ac_try='test -s "conftest.$ac_objext"' 25381 { (eval echo "$as_me:25378: \"$ac_try\"") >&5 25382 (eval $ac_try) 2>&5 25383 ac_status=$? 25384 echo "$as_me:25381: \$? = $ac_status" >&5 25385 (exit "$ac_status"); }; }; then 25386 cf_cv_builtin_bool=1 25387else 25388 echo "$as_me: failed program was:" >&5 25389cat "conftest.$ac_ext" >&5 25390cf_cv_builtin_bool=0 25391fi 25392rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25393 25394fi 25395 25396if test "$cf_cv_builtin_bool" = 1 25397then echo "$as_me:25394: result: yes" >&5 25398echo "${ECHO_T}yes" >&6 25399else echo "$as_me:25396: result: no" >&5 25400echo "${ECHO_T}no" >&6 25401fi 25402 25403echo "$as_me:25400: checking for bool" >&5 25404echo $ECHO_N "checking for bool... $ECHO_C" >&6 25405if test "${ac_cv_type_bool+set}" = set; then 25406 echo $ECHO_N "(cached) $ECHO_C" >&6 25407else 25408 cat >"conftest.$ac_ext" <<_ACEOF 25409#line 25406 "configure" 25410#include "confdefs.h" 25411 25412#include <stdlib.h> 25413#include <stdio.h> 25414 25415#if defined(__cplusplus) 25416 25417#ifdef HAVE_GXX_BUILTIN_H 25418#include <g++/builtin.h> 25419#elif HAVE_GPP_BUILTIN_H 25420#include <gpp/builtin.h> 25421#elif HAVE_BUILTIN_H 25422#include <builtin.h> 25423#endif 25424 25425#else 25426 25427#if $cf_cv_header_stdbool_h 25428#include <stdbool.h> 25429#endif 25430 25431#endif 25432 25433int 25434main (void) 25435{ 25436if ((bool *) 0) 25437 return 0; 25438if (sizeof (bool)) 25439 return 0; 25440 ; 25441 return 0; 25442} 25443_ACEOF 25444rm -f "conftest.$ac_objext" 25445if { (eval echo "$as_me:25442: \"$ac_compile\"") >&5 25446 (eval $ac_compile) 2>&5 25447 ac_status=$? 25448 echo "$as_me:25445: \$? = $ac_status" >&5 25449 (exit "$ac_status"); } && 25450 { ac_try='test -s "conftest.$ac_objext"' 25451 { (eval echo "$as_me:25448: \"$ac_try\"") >&5 25452 (eval $ac_try) 2>&5 25453 ac_status=$? 25454 echo "$as_me:25451: \$? = $ac_status" >&5 25455 (exit "$ac_status"); }; }; then 25456 ac_cv_type_bool=yes 25457else 25458 echo "$as_me: failed program was:" >&5 25459cat "conftest.$ac_ext" >&5 25460ac_cv_type_bool=no 25461fi 25462rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25463fi 25464echo "$as_me:25461: result: $ac_cv_type_bool" >&5 25465echo "${ECHO_T}$ac_cv_type_bool" >&6 25466 25467echo "$as_me:25464: checking size of bool" >&5 25468echo $ECHO_N "checking size of bool... $ECHO_C" >&6 25469if test "${ac_cv_sizeof_bool+set}" = set; then 25470 echo $ECHO_N "(cached) $ECHO_C" >&6 25471else 25472 if test "$ac_cv_type_bool" = yes; then 25473 if test "$cross_compiling" = yes; then 25474 # Depending upon the size, compute the lo and hi bounds. 25475cat >"conftest.$ac_ext" <<_ACEOF 25476#line 25473 "configure" 25477#include "confdefs.h" 25478 25479#include <stdlib.h> 25480#include <stdio.h> 25481 25482#if defined(__cplusplus) 25483 25484#ifdef HAVE_GXX_BUILTIN_H 25485#include <g++/builtin.h> 25486#elif HAVE_GPP_BUILTIN_H 25487#include <gpp/builtin.h> 25488#elif HAVE_BUILTIN_H 25489#include <builtin.h> 25490#endif 25491 25492#else 25493 25494#if $cf_cv_header_stdbool_h 25495#include <stdbool.h> 25496#endif 25497 25498#endif 25499 25500int 25501main (void) 25502{ 25503int _array_ [1 - 2 * !((sizeof (bool)) >= 0)] 25504 ; 25505 return 0; 25506} 25507_ACEOF 25508rm -f "conftest.$ac_objext" 25509if { (eval echo "$as_me:25506: \"$ac_compile\"") >&5 25510 (eval $ac_compile) 2>&5 25511 ac_status=$? 25512 echo "$as_me:25509: \$? = $ac_status" >&5 25513 (exit "$ac_status"); } && 25514 { ac_try='test -s "conftest.$ac_objext"' 25515 { (eval echo "$as_me:25512: \"$ac_try\"") >&5 25516 (eval $ac_try) 2>&5 25517 ac_status=$? 25518 echo "$as_me:25515: \$? = $ac_status" >&5 25519 (exit "$ac_status"); }; }; then 25520 ac_lo=0 ac_mid=0 25521 while :; do 25522 cat >"conftest.$ac_ext" <<_ACEOF 25523#line 25520 "configure" 25524#include "confdefs.h" 25525 25526#include <stdlib.h> 25527#include <stdio.h> 25528 25529#if defined(__cplusplus) 25530 25531#ifdef HAVE_GXX_BUILTIN_H 25532#include <g++/builtin.h> 25533#elif HAVE_GPP_BUILTIN_H 25534#include <gpp/builtin.h> 25535#elif HAVE_BUILTIN_H 25536#include <builtin.h> 25537#endif 25538 25539#else 25540 25541#if $cf_cv_header_stdbool_h 25542#include <stdbool.h> 25543#endif 25544 25545#endif 25546 25547int 25548main (void) 25549{ 25550int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25551 ; 25552 return 0; 25553} 25554_ACEOF 25555rm -f "conftest.$ac_objext" 25556if { (eval echo "$as_me:25553: \"$ac_compile\"") >&5 25557 (eval $ac_compile) 2>&5 25558 ac_status=$? 25559 echo "$as_me:25556: \$? = $ac_status" >&5 25560 (exit "$ac_status"); } && 25561 { ac_try='test -s "conftest.$ac_objext"' 25562 { (eval echo "$as_me:25559: \"$ac_try\"") >&5 25563 (eval $ac_try) 2>&5 25564 ac_status=$? 25565 echo "$as_me:25562: \$? = $ac_status" >&5 25566 (exit "$ac_status"); }; }; then 25567 ac_hi=$ac_mid; break 25568else 25569 echo "$as_me: failed program was:" >&5 25570cat "conftest.$ac_ext" >&5 25571ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 25572fi 25573rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25574 done 25575else 25576 echo "$as_me: failed program was:" >&5 25577cat "conftest.$ac_ext" >&5 25578ac_hi=-1 ac_mid=-1 25579 while :; do 25580 cat >"conftest.$ac_ext" <<_ACEOF 25581#line 25578 "configure" 25582#include "confdefs.h" 25583 25584#include <stdlib.h> 25585#include <stdio.h> 25586 25587#if defined(__cplusplus) 25588 25589#ifdef HAVE_GXX_BUILTIN_H 25590#include <g++/builtin.h> 25591#elif HAVE_GPP_BUILTIN_H 25592#include <gpp/builtin.h> 25593#elif HAVE_BUILTIN_H 25594#include <builtin.h> 25595#endif 25596 25597#else 25598 25599#if $cf_cv_header_stdbool_h 25600#include <stdbool.h> 25601#endif 25602 25603#endif 25604 25605int 25606main (void) 25607{ 25608int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)] 25609 ; 25610 return 0; 25611} 25612_ACEOF 25613rm -f "conftest.$ac_objext" 25614if { (eval echo "$as_me:25611: \"$ac_compile\"") >&5 25615 (eval $ac_compile) 2>&5 25616 ac_status=$? 25617 echo "$as_me:25614: \$? = $ac_status" >&5 25618 (exit "$ac_status"); } && 25619 { ac_try='test -s "conftest.$ac_objext"' 25620 { (eval echo "$as_me:25617: \"$ac_try\"") >&5 25621 (eval $ac_try) 2>&5 25622 ac_status=$? 25623 echo "$as_me:25620: \$? = $ac_status" >&5 25624 (exit "$ac_status"); }; }; then 25625 ac_lo=$ac_mid; break 25626else 25627 echo "$as_me: failed program was:" >&5 25628cat "conftest.$ac_ext" >&5 25629ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 25630fi 25631rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25632 done 25633fi 25634rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25635# Binary search between lo and hi bounds. 25636while test "x$ac_lo" != "x$ac_hi"; do 25637 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 25638 cat >"conftest.$ac_ext" <<_ACEOF 25639#line 25636 "configure" 25640#include "confdefs.h" 25641 25642#include <stdlib.h> 25643#include <stdio.h> 25644 25645#if defined(__cplusplus) 25646 25647#ifdef HAVE_GXX_BUILTIN_H 25648#include <g++/builtin.h> 25649#elif HAVE_GPP_BUILTIN_H 25650#include <gpp/builtin.h> 25651#elif HAVE_BUILTIN_H 25652#include <builtin.h> 25653#endif 25654 25655#else 25656 25657#if $cf_cv_header_stdbool_h 25658#include <stdbool.h> 25659#endif 25660 25661#endif 25662 25663int 25664main (void) 25665{ 25666int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 25667 ; 25668 return 0; 25669} 25670_ACEOF 25671rm -f "conftest.$ac_objext" 25672if { (eval echo "$as_me:25669: \"$ac_compile\"") >&5 25673 (eval $ac_compile) 2>&5 25674 ac_status=$? 25675 echo "$as_me:25672: \$? = $ac_status" >&5 25676 (exit "$ac_status"); } && 25677 { ac_try='test -s "conftest.$ac_objext"' 25678 { (eval echo "$as_me:25675: \"$ac_try\"") >&5 25679 (eval $ac_try) 2>&5 25680 ac_status=$? 25681 echo "$as_me:25678: \$? = $ac_status" >&5 25682 (exit "$ac_status"); }; }; then 25683 ac_hi=$ac_mid 25684else 25685 echo "$as_me: failed program was:" >&5 25686cat "conftest.$ac_ext" >&5 25687ac_lo=`expr "$ac_mid" + 1` 25688fi 25689rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25690done 25691ac_cv_sizeof_bool=$ac_lo 25692else 25693 if test "$cross_compiling" = yes; then 25694 { { echo "$as_me:25691: error: cannot run test program while cross compiling" >&5 25695echo "$as_me: error: cannot run test program while cross compiling" >&2;} 25696 { (exit 1); exit 1; }; } 25697else 25698 cat >"conftest.$ac_ext" <<_ACEOF 25699#line 25696 "configure" 25700#include "confdefs.h" 25701 25702#include <stdlib.h> 25703#include <stdio.h> 25704 25705#if defined(__cplusplus) 25706 25707#ifdef HAVE_GXX_BUILTIN_H 25708#include <g++/builtin.h> 25709#elif HAVE_GPP_BUILTIN_H 25710#include <gpp/builtin.h> 25711#elif HAVE_BUILTIN_H 25712#include <builtin.h> 25713#endif 25714 25715#else 25716 25717#if $cf_cv_header_stdbool_h 25718#include <stdbool.h> 25719#endif 25720 25721#endif 25722 25723int 25724main (void) 25725{ 25726FILE *f = fopen ("conftest.val", "w"); 25727if (!f) 25728 $ac_main_return (1); 25729fprintf (f, "%ld", (long)(sizeof (bool))); 25730fclose (f); 25731 ; 25732 return 0; 25733} 25734_ACEOF 25735rm -f "conftest$ac_exeext" 25736if { (eval echo "$as_me:25733: \"$ac_link\"") >&5 25737 (eval $ac_link) 2>&5 25738 ac_status=$? 25739 echo "$as_me:25736: \$? = $ac_status" >&5 25740 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25741 { (eval echo "$as_me:25738: \"$ac_try\"") >&5 25742 (eval $ac_try) 2>&5 25743 ac_status=$? 25744 echo "$as_me:25741: \$? = $ac_status" >&5 25745 (exit "$ac_status"); }; }; then 25746 ac_cv_sizeof_bool=`cat conftest.val` 25747else 25748 echo "$as_me: program exited with status $ac_status" >&5 25749echo "$as_me: failed program was:" >&5 25750cat "conftest.$ac_ext" >&5 25751fi 25752rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25753fi 25754fi 25755rm -f conftest.val 25756else 25757 ac_cv_sizeof_bool=0 25758fi 25759fi 25760echo "$as_me:25757: result: $ac_cv_sizeof_bool" >&5 25761echo "${ECHO_T}$ac_cv_sizeof_bool" >&6 25762cat >>confdefs.h <<EOF 25763#define SIZEOF_BOOL $ac_cv_sizeof_bool 25764EOF 25765 25766echo "$as_me:25763: checking for type of bool" >&5 25767echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 25768if test "${cf_cv_type_of_bool+set}" = set; then 25769 echo $ECHO_N "(cached) $ECHO_C" >&6 25770else 25771 25772 rm -f cf_test.out 25773 if test "$cross_compiling" = yes; then 25774 25775 case x$ac_cv_sizeof_bool in 25776 (x1) cf_cv_type_of_bool="unsigned char";; 25777 (x2) cf_cv_type_of_bool="unsigned short";; 25778 (x4) cf_cv_type_of_bool="unsigned int";; 25779 (x8) cf_cv_type_of_bool="unsigned long";; 25780 (*) cf_cv_type_of_bool=unknown;; 25781 esac 25782 25783else 25784 cat >"conftest.$ac_ext" <<_ACEOF 25785#line 25782 "configure" 25786#include "confdefs.h" 25787 25788#include <stdlib.h> 25789#include <stdio.h> 25790 25791#if defined(__cplusplus) 25792 25793#ifdef HAVE_GXX_BUILTIN_H 25794#include <g++/builtin.h> 25795#elif HAVE_GPP_BUILTIN_H 25796#include <gpp/builtin.h> 25797#elif HAVE_BUILTIN_H 25798#include <builtin.h> 25799#endif 25800 25801#else 25802 25803#if $cf_cv_header_stdbool_h 25804#include <stdbool.h> 25805#endif 25806 25807#endif 25808 25809int main(void) 25810{ 25811 FILE *fp = fopen("cf_test.out", "w"); 25812 if (fp != 0) { 25813 bool x = true; 25814 if ((bool)(-x) >= 0) 25815 fputs("unsigned ", fp); 25816 if (sizeof(x) == sizeof(int)) fputs("int", fp); 25817 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 25818 else if (sizeof(x) == sizeof(short))fputs("short",fp); 25819 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 25820 fclose(fp); 25821 } 25822 ${cf_cv_main_return:-return}(0); 25823} 25824 25825_ACEOF 25826rm -f "conftest$ac_exeext" 25827if { (eval echo "$as_me:25824: \"$ac_link\"") >&5 25828 (eval $ac_link) 2>&5 25829 ac_status=$? 25830 echo "$as_me:25827: \$? = $ac_status" >&5 25831 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25832 { (eval echo "$as_me:25829: \"$ac_try\"") >&5 25833 (eval $ac_try) 2>&5 25834 ac_status=$? 25835 echo "$as_me:25832: \$? = $ac_status" >&5 25836 (exit "$ac_status"); }; }; then 25837 cf_cv_type_of_bool=`cat cf_test.out` 25838 if test -z "$cf_cv_type_of_bool"; then 25839 cf_cv_type_of_bool=unknown 25840 fi 25841else 25842 echo "$as_me: program exited with status $ac_status" >&5 25843echo "$as_me: failed program was:" >&5 25844cat "conftest.$ac_ext" >&5 25845cf_cv_type_of_bool=unknown 25846fi 25847rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25848fi 25849 rm -f cf_test.out 25850 25851fi 25852echo "$as_me:25849: result: $cf_cv_type_of_bool" >&5 25853echo "${ECHO_T}$cf_cv_type_of_bool" >&6 25854 25855if test "$cf_cv_type_of_bool" = unknown ; then 25856 case .$NCURSES_BOOL in 25857 (.auto|.) NCURSES_BOOL=unsigned;; 25858 esac 25859 { echo "$as_me:25856: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 25860echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 25861 cf_cv_type_of_bool=$NCURSES_BOOL 25862fi 25863 25864echo "$as_me:25861: checking for special defines needed for etip.h" >&5 25865echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6 25866cf_save_CXXFLAGS="$CXXFLAGS" 25867cf_result="none" 25868 25869# etip.h includes ncurses.h which includes ncurses_dll.h 25870# But ncurses_dll.h is generated - fix here. 25871test -d include || mkdir include 25872test -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 25873 25874for cf_math in "" MATH_H 25875do 25876for cf_excp in "" MATH_EXCEPTION 25877do 25878 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include" 25879 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}" 25880 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}" 25881cat >"conftest.$ac_ext" <<_ACEOF 25882#line 25879 "configure" 25883#include "confdefs.h" 25884 25885#include <etip.h.in> 25886 25887int 25888main (void) 25889{ 25890 25891 ; 25892 return 0; 25893} 25894_ACEOF 25895rm -f "conftest.$ac_objext" 25896if { (eval echo "$as_me:25893: \"$ac_compile\"") >&5 25897 (eval $ac_compile) 2>&5 25898 ac_status=$? 25899 echo "$as_me:25896: \$? = $ac_status" >&5 25900 (exit "$ac_status"); } && 25901 { ac_try='test -s "conftest.$ac_objext"' 25902 { (eval echo "$as_me:25899: \"$ac_try\"") >&5 25903 (eval $ac_try) 2>&5 25904 ac_status=$? 25905 echo "$as_me:25902: \$? = $ac_status" >&5 25906 (exit "$ac_status"); }; }; then 25907 25908 test -n "$cf_math" && cat >>confdefs.h <<EOF 25909#define ETIP_NEEDS_${cf_math} 1 25910EOF 25911 25912 test -n "$cf_excp" && cat >>confdefs.h <<EOF 25913#define ETIP_NEEDS_${cf_excp} 1 25914EOF 25915 25916 cf_result="$cf_math $cf_excp" 25917 break 2 25918 25919else 25920 echo "$as_me: failed program was:" >&5 25921cat "conftest.$ac_ext" >&5 25922fi 25923rm -f "conftest.$ac_objext" "conftest.$ac_ext" 25924done 25925done 25926echo "$as_me:25923: result: $cf_result" >&5 25927echo "${ECHO_T}$cf_result" >&6 25928CXXFLAGS="$cf_save_CXXFLAGS" 25929 25930if test -n "$CXX"; then 25931echo "$as_me:25928: checking if $CXX accepts parameter initialization" >&5 25932echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6 25933if test "${cf_cv_cpp_param_init+set}" = set; then 25934 echo $ECHO_N "(cached) $ECHO_C" >&6 25935else 25936 25937 ac_ext=cc 25938ac_cpp='$CXXCPP $CPPFLAGS' 25939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25940ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25942ac_main_return="return" 25943 25944 if test "$cross_compiling" = yes; then 25945 cf_cv_cpp_param_init=unknown 25946else 25947 cat >"conftest.$ac_ext" <<_ACEOF 25948#line 25945 "configure" 25949#include "confdefs.h" 25950 25951class TEST { 25952private: 25953 int value; 25954public: 25955 TEST(int x = 1); 25956 ~TEST(); 25957}; 25958 25959TEST::TEST(int x = 1) // some compilers do not like second initializer 25960{ 25961 value = x; 25962} 25963int main(void) { } 25964 25965_ACEOF 25966rm -f "conftest$ac_exeext" 25967if { (eval echo "$as_me:25964: \"$ac_link\"") >&5 25968 (eval $ac_link) 2>&5 25969 ac_status=$? 25970 echo "$as_me:25967: \$? = $ac_status" >&5 25971 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 25972 { (eval echo "$as_me:25969: \"$ac_try\"") >&5 25973 (eval $ac_try) 2>&5 25974 ac_status=$? 25975 echo "$as_me:25972: \$? = $ac_status" >&5 25976 (exit "$ac_status"); }; }; then 25977 cf_cv_cpp_param_init=yes 25978else 25979 echo "$as_me: program exited with status $ac_status" >&5 25980echo "$as_me: failed program was:" >&5 25981cat "conftest.$ac_ext" >&5 25982cf_cv_cpp_param_init=no 25983fi 25984rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 25985fi 25986 ac_ext=cc 25987ac_cpp='$CXXCPP $CPPFLAGS' 25988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 25989ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 25990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25991ac_main_return="return" 25992 25993fi 25994echo "$as_me:25991: result: $cf_cv_cpp_param_init" >&5 25995echo "${ECHO_T}$cf_cv_cpp_param_init" >&6 25996fi 25997test "$cf_cv_cpp_param_init" = yes && 25998cat >>confdefs.h <<\EOF 25999#define CPP_HAS_PARAM_INIT 1 26000EOF 26001 26002if test -n "$CXX"; then 26003 26004echo "$as_me:26001: checking if $CXX accepts static_cast" >&5 26005echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6 26006if test "${cf_cv_cpp_static_cast+set}" = set; then 26007 echo $ECHO_N "(cached) $ECHO_C" >&6 26008else 26009 26010 ac_ext=cc 26011ac_cpp='$CXXCPP $CPPFLAGS' 26012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 26013ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 26014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26015ac_main_return="return" 26016 26017 cat >"conftest.$ac_ext" <<_ACEOF 26018#line 26015 "configure" 26019#include "confdefs.h" 26020 26021class NCursesPanel 26022{ 26023public: 26024 NCursesPanel(int nlines, 26025 int ncols, 26026 int begin_y = 0, 26027 int begin_x = 0) 26028 { 26029 } 26030 NCursesPanel(); 26031 ~NCursesPanel(); 26032}; 26033 26034template<class T> class NCursesUserPanel : public NCursesPanel 26035{ 26036public: 26037 NCursesUserPanel (int nlines, 26038 int ncols, 26039 int begin_y = 0, 26040 int begin_x = 0, 26041 const T* p_UserData = static_cast<T*>(0)) 26042 : NCursesPanel (nlines, ncols, begin_y, begin_x) 26043 { 26044 }; 26045 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel() 26046 { 26047 }; 26048 26049 virtual ~NCursesUserPanel() {}; 26050}; 26051 26052int 26053main (void) 26054{ 26055 26056 const char* p_UserData = static_cast<char*>(0) 26057 ; 26058 return 0; 26059} 26060_ACEOF 26061rm -f "conftest.$ac_objext" 26062if { (eval echo "$as_me:26059: \"$ac_compile\"") >&5 26063 (eval $ac_compile) 2>&5 26064 ac_status=$? 26065 echo "$as_me:26062: \$? = $ac_status" >&5 26066 (exit "$ac_status"); } && 26067 { ac_try='test -s "conftest.$ac_objext"' 26068 { (eval echo "$as_me:26065: \"$ac_try\"") >&5 26069 (eval $ac_try) 2>&5 26070 ac_status=$? 26071 echo "$as_me:26068: \$? = $ac_status" >&5 26072 (exit "$ac_status"); }; }; then 26073 cf_cv_cpp_static_cast=yes 26074else 26075 echo "$as_me: failed program was:" >&5 26076cat "conftest.$ac_ext" >&5 26077cf_cv_cpp_static_cast=no 26078fi 26079rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26080 26081 ac_ext=cc 26082ac_cpp='$CXXCPP $CPPFLAGS' 26083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' 26084ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5' 26085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26086ac_main_return="return" 26087 26088fi 26089echo "$as_me:26086: result: $cf_cv_cpp_static_cast" >&5 26090echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6 26091 26092fi 26093 26094test "$cf_cv_cpp_static_cast" = yes && 26095cat >>confdefs.h <<\EOF 26096#define CPP_HAS_STATIC_CAST 1 26097EOF 26098 26099 CXX_AR='$(AR)' 26100 CXX_ARFLAGS='$(ARFLAGS)' 26101 case "$cf_cv_system_name" in 26102 (irix*) 26103 if test "$GXX" != yes ; then 26104 CXX_AR='$(CXX)' 26105 CXX_ARFLAGS='-ar -o' 26106 fi 26107 ;; 26108 (sco3.2v5*) 26109 CXXLDFLAGS="-u main" 26110 ;; 26111 (solaris2*) 26112 if test "$GXX" != yes ; then 26113 CXX_AR='$(CXX)' 26114 CXX_ARFLAGS='-xar -o' 26115 fi 26116 ;; 26117 esac 26118 26119else 26120 cf_cxx_library=no 26121 cf_cv_builtin_bool=1 26122 26123 # Just because we are not configuring against C++ right now does not 26124 # mean that a user will not want to use C++. Some distributors disable 26125 # the C++ portion of this configuration as a shortcut (or just to avoid 26126 # compiling the demo in the c++ directory). So we need a reasonable 26127 # default for the 'bool' type. 26128 # 26129 # Caveat: since the storage of the bool type is not standardized, it 26130 # may change. 26131 26132 if test "$NCURSES_BOOL" != auto ; then 26133 cf_cv_type_of_bool=$NCURSES_BOOL 26134 cf_cv_header_stdbool_h=0 26135 else 26136 if test "$cf_cv_header_stdbool_h" = 1 ; then 26137 26138echo "$as_me:26135: checking for bool" >&5 26139echo $ECHO_N "checking for bool... $ECHO_C" >&6 26140if test "${ac_cv_type_bool+set}" = set; then 26141 echo $ECHO_N "(cached) $ECHO_C" >&6 26142else 26143 cat >"conftest.$ac_ext" <<_ACEOF 26144#line 26141 "configure" 26145#include "confdefs.h" 26146 26147#include <stdlib.h> 26148#include <stdio.h> 26149 26150#if defined(__cplusplus) 26151 26152#ifdef HAVE_GXX_BUILTIN_H 26153#include <g++/builtin.h> 26154#elif HAVE_GPP_BUILTIN_H 26155#include <gpp/builtin.h> 26156#elif HAVE_BUILTIN_H 26157#include <builtin.h> 26158#endif 26159 26160#else 26161 26162#if $cf_cv_header_stdbool_h 26163#include <stdbool.h> 26164#endif 26165 26166#endif 26167 26168int 26169main (void) 26170{ 26171if ((bool *) 0) 26172 return 0; 26173if (sizeof (bool)) 26174 return 0; 26175 ; 26176 return 0; 26177} 26178_ACEOF 26179rm -f "conftest.$ac_objext" 26180if { (eval echo "$as_me:26177: \"$ac_compile\"") >&5 26181 (eval $ac_compile) 2>&5 26182 ac_status=$? 26183 echo "$as_me:26180: \$? = $ac_status" >&5 26184 (exit "$ac_status"); } && 26185 { ac_try='test -s "conftest.$ac_objext"' 26186 { (eval echo "$as_me:26183: \"$ac_try\"") >&5 26187 (eval $ac_try) 2>&5 26188 ac_status=$? 26189 echo "$as_me:26186: \$? = $ac_status" >&5 26190 (exit "$ac_status"); }; }; then 26191 ac_cv_type_bool=yes 26192else 26193 echo "$as_me: failed program was:" >&5 26194cat "conftest.$ac_ext" >&5 26195ac_cv_type_bool=no 26196fi 26197rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26198fi 26199echo "$as_me:26196: result: $ac_cv_type_bool" >&5 26200echo "${ECHO_T}$ac_cv_type_bool" >&6 26201 26202echo "$as_me:26199: checking size of bool" >&5 26203echo $ECHO_N "checking size of bool... $ECHO_C" >&6 26204if test "${ac_cv_sizeof_bool+set}" = set; then 26205 echo $ECHO_N "(cached) $ECHO_C" >&6 26206else 26207 if test "$ac_cv_type_bool" = yes; then 26208 if test "$cross_compiling" = yes; then 26209 # Depending upon the size, compute the lo and hi bounds. 26210cat >"conftest.$ac_ext" <<_ACEOF 26211#line 26208 "configure" 26212#include "confdefs.h" 26213 26214#include <stdlib.h> 26215#include <stdio.h> 26216 26217#if defined(__cplusplus) 26218 26219#ifdef HAVE_GXX_BUILTIN_H 26220#include <g++/builtin.h> 26221#elif HAVE_GPP_BUILTIN_H 26222#include <gpp/builtin.h> 26223#elif HAVE_BUILTIN_H 26224#include <builtin.h> 26225#endif 26226 26227#else 26228 26229#if $cf_cv_header_stdbool_h 26230#include <stdbool.h> 26231#endif 26232 26233#endif 26234 26235int 26236main (void) 26237{ 26238int _array_ [1 - 2 * !((sizeof (bool)) >= 0)] 26239 ; 26240 return 0; 26241} 26242_ACEOF 26243rm -f "conftest.$ac_objext" 26244if { (eval echo "$as_me:26241: \"$ac_compile\"") >&5 26245 (eval $ac_compile) 2>&5 26246 ac_status=$? 26247 echo "$as_me:26244: \$? = $ac_status" >&5 26248 (exit "$ac_status"); } && 26249 { ac_try='test -s "conftest.$ac_objext"' 26250 { (eval echo "$as_me:26247: \"$ac_try\"") >&5 26251 (eval $ac_try) 2>&5 26252 ac_status=$? 26253 echo "$as_me:26250: \$? = $ac_status" >&5 26254 (exit "$ac_status"); }; }; then 26255 ac_lo=0 ac_mid=0 26256 while :; do 26257 cat >"conftest.$ac_ext" <<_ACEOF 26258#line 26255 "configure" 26259#include "confdefs.h" 26260 26261#include <stdlib.h> 26262#include <stdio.h> 26263 26264#if defined(__cplusplus) 26265 26266#ifdef HAVE_GXX_BUILTIN_H 26267#include <g++/builtin.h> 26268#elif HAVE_GPP_BUILTIN_H 26269#include <gpp/builtin.h> 26270#elif HAVE_BUILTIN_H 26271#include <builtin.h> 26272#endif 26273 26274#else 26275 26276#if $cf_cv_header_stdbool_h 26277#include <stdbool.h> 26278#endif 26279 26280#endif 26281 26282int 26283main (void) 26284{ 26285int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 26286 ; 26287 return 0; 26288} 26289_ACEOF 26290rm -f "conftest.$ac_objext" 26291if { (eval echo "$as_me:26288: \"$ac_compile\"") >&5 26292 (eval $ac_compile) 2>&5 26293 ac_status=$? 26294 echo "$as_me:26291: \$? = $ac_status" >&5 26295 (exit "$ac_status"); } && 26296 { ac_try='test -s "conftest.$ac_objext"' 26297 { (eval echo "$as_me:26294: \"$ac_try\"") >&5 26298 (eval $ac_try) 2>&5 26299 ac_status=$? 26300 echo "$as_me:26297: \$? = $ac_status" >&5 26301 (exit "$ac_status"); }; }; then 26302 ac_hi=$ac_mid; break 26303else 26304 echo "$as_me: failed program was:" >&5 26305cat "conftest.$ac_ext" >&5 26306ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 26307fi 26308rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26309 done 26310else 26311 echo "$as_me: failed program was:" >&5 26312cat "conftest.$ac_ext" >&5 26313ac_hi=-1 ac_mid=-1 26314 while :; do 26315 cat >"conftest.$ac_ext" <<_ACEOF 26316#line 26313 "configure" 26317#include "confdefs.h" 26318 26319#include <stdlib.h> 26320#include <stdio.h> 26321 26322#if defined(__cplusplus) 26323 26324#ifdef HAVE_GXX_BUILTIN_H 26325#include <g++/builtin.h> 26326#elif HAVE_GPP_BUILTIN_H 26327#include <gpp/builtin.h> 26328#elif HAVE_BUILTIN_H 26329#include <builtin.h> 26330#endif 26331 26332#else 26333 26334#if $cf_cv_header_stdbool_h 26335#include <stdbool.h> 26336#endif 26337 26338#endif 26339 26340int 26341main (void) 26342{ 26343int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)] 26344 ; 26345 return 0; 26346} 26347_ACEOF 26348rm -f "conftest.$ac_objext" 26349if { (eval echo "$as_me:26346: \"$ac_compile\"") >&5 26350 (eval $ac_compile) 2>&5 26351 ac_status=$? 26352 echo "$as_me:26349: \$? = $ac_status" >&5 26353 (exit "$ac_status"); } && 26354 { ac_try='test -s "conftest.$ac_objext"' 26355 { (eval echo "$as_me:26352: \"$ac_try\"") >&5 26356 (eval $ac_try) 2>&5 26357 ac_status=$? 26358 echo "$as_me:26355: \$? = $ac_status" >&5 26359 (exit "$ac_status"); }; }; then 26360 ac_lo=$ac_mid; break 26361else 26362 echo "$as_me: failed program was:" >&5 26363cat "conftest.$ac_ext" >&5 26364ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 26365fi 26366rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26367 done 26368fi 26369rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26370# Binary search between lo and hi bounds. 26371while test "x$ac_lo" != "x$ac_hi"; do 26372 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 26373 cat >"conftest.$ac_ext" <<_ACEOF 26374#line 26371 "configure" 26375#include "confdefs.h" 26376 26377#include <stdlib.h> 26378#include <stdio.h> 26379 26380#if defined(__cplusplus) 26381 26382#ifdef HAVE_GXX_BUILTIN_H 26383#include <g++/builtin.h> 26384#elif HAVE_GPP_BUILTIN_H 26385#include <gpp/builtin.h> 26386#elif HAVE_BUILTIN_H 26387#include <builtin.h> 26388#endif 26389 26390#else 26391 26392#if $cf_cv_header_stdbool_h 26393#include <stdbool.h> 26394#endif 26395 26396#endif 26397 26398int 26399main (void) 26400{ 26401int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)] 26402 ; 26403 return 0; 26404} 26405_ACEOF 26406rm -f "conftest.$ac_objext" 26407if { (eval echo "$as_me:26404: \"$ac_compile\"") >&5 26408 (eval $ac_compile) 2>&5 26409 ac_status=$? 26410 echo "$as_me:26407: \$? = $ac_status" >&5 26411 (exit "$ac_status"); } && 26412 { ac_try='test -s "conftest.$ac_objext"' 26413 { (eval echo "$as_me:26410: \"$ac_try\"") >&5 26414 (eval $ac_try) 2>&5 26415 ac_status=$? 26416 echo "$as_me:26413: \$? = $ac_status" >&5 26417 (exit "$ac_status"); }; }; then 26418 ac_hi=$ac_mid 26419else 26420 echo "$as_me: failed program was:" >&5 26421cat "conftest.$ac_ext" >&5 26422ac_lo=`expr "$ac_mid" + 1` 26423fi 26424rm -f "conftest.$ac_objext" "conftest.$ac_ext" 26425done 26426ac_cv_sizeof_bool=$ac_lo 26427else 26428 if test "$cross_compiling" = yes; then 26429 { { echo "$as_me:26426: error: cannot run test program while cross compiling" >&5 26430echo "$as_me: error: cannot run test program while cross compiling" >&2;} 26431 { (exit 1); exit 1; }; } 26432else 26433 cat >"conftest.$ac_ext" <<_ACEOF 26434#line 26431 "configure" 26435#include "confdefs.h" 26436 26437#include <stdlib.h> 26438#include <stdio.h> 26439 26440#if defined(__cplusplus) 26441 26442#ifdef HAVE_GXX_BUILTIN_H 26443#include <g++/builtin.h> 26444#elif HAVE_GPP_BUILTIN_H 26445#include <gpp/builtin.h> 26446#elif HAVE_BUILTIN_H 26447#include <builtin.h> 26448#endif 26449 26450#else 26451 26452#if $cf_cv_header_stdbool_h 26453#include <stdbool.h> 26454#endif 26455 26456#endif 26457 26458int 26459main (void) 26460{ 26461FILE *f = fopen ("conftest.val", "w"); 26462if (!f) 26463 $ac_main_return (1); 26464fprintf (f, "%ld", (long)(sizeof (bool))); 26465fclose (f); 26466 ; 26467 return 0; 26468} 26469_ACEOF 26470rm -f "conftest$ac_exeext" 26471if { (eval echo "$as_me:26468: \"$ac_link\"") >&5 26472 (eval $ac_link) 2>&5 26473 ac_status=$? 26474 echo "$as_me:26471: \$? = $ac_status" >&5 26475 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 26476 { (eval echo "$as_me:26473: \"$ac_try\"") >&5 26477 (eval $ac_try) 2>&5 26478 ac_status=$? 26479 echo "$as_me:26476: \$? = $ac_status" >&5 26480 (exit "$ac_status"); }; }; then 26481 ac_cv_sizeof_bool=`cat conftest.val` 26482else 26483 echo "$as_me: program exited with status $ac_status" >&5 26484echo "$as_me: failed program was:" >&5 26485cat "conftest.$ac_ext" >&5 26486fi 26487rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 26488fi 26489fi 26490rm -f conftest.val 26491else 26492 ac_cv_sizeof_bool=0 26493fi 26494fi 26495echo "$as_me:26492: result: $ac_cv_sizeof_bool" >&5 26496echo "${ECHO_T}$ac_cv_sizeof_bool" >&6 26497cat >>confdefs.h <<EOF 26498#define SIZEOF_BOOL $ac_cv_sizeof_bool 26499EOF 26500 26501echo "$as_me:26498: checking for type of bool" >&5 26502echo $ECHO_N "checking for type of bool... $ECHO_C" >&6 26503if test "${cf_cv_type_of_bool+set}" = set; then 26504 echo $ECHO_N "(cached) $ECHO_C" >&6 26505else 26506 26507 rm -f cf_test.out 26508 if test "$cross_compiling" = yes; then 26509 26510 case x$ac_cv_sizeof_bool in 26511 (x1) cf_cv_type_of_bool="unsigned char";; 26512 (x2) cf_cv_type_of_bool="unsigned short";; 26513 (x4) cf_cv_type_of_bool="unsigned int";; 26514 (x8) cf_cv_type_of_bool="unsigned long";; 26515 (*) cf_cv_type_of_bool=unknown;; 26516 esac 26517 26518else 26519 cat >"conftest.$ac_ext" <<_ACEOF 26520#line 26517 "configure" 26521#include "confdefs.h" 26522 26523#include <stdlib.h> 26524#include <stdio.h> 26525 26526#if defined(__cplusplus) 26527 26528#ifdef HAVE_GXX_BUILTIN_H 26529#include <g++/builtin.h> 26530#elif HAVE_GPP_BUILTIN_H 26531#include <gpp/builtin.h> 26532#elif HAVE_BUILTIN_H 26533#include <builtin.h> 26534#endif 26535 26536#else 26537 26538#if $cf_cv_header_stdbool_h 26539#include <stdbool.h> 26540#endif 26541 26542#endif 26543 26544int main(void) 26545{ 26546 FILE *fp = fopen("cf_test.out", "w"); 26547 if (fp != 0) { 26548 bool x = true; 26549 if ((bool)(-x) >= 0) 26550 fputs("unsigned ", fp); 26551 if (sizeof(x) == sizeof(int)) fputs("int", fp); 26552 else if (sizeof(x) == sizeof(char)) fputs("char", fp); 26553 else if (sizeof(x) == sizeof(short))fputs("short",fp); 26554 else if (sizeof(x) == sizeof(long)) fputs("long", fp); 26555 fclose(fp); 26556 } 26557 ${cf_cv_main_return:-return}(0); 26558} 26559 26560_ACEOF 26561rm -f "conftest$ac_exeext" 26562if { (eval echo "$as_me:26559: \"$ac_link\"") >&5 26563 (eval $ac_link) 2>&5 26564 ac_status=$? 26565 echo "$as_me:26562: \$? = $ac_status" >&5 26566 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 26567 { (eval echo "$as_me:26564: \"$ac_try\"") >&5 26568 (eval $ac_try) 2>&5 26569 ac_status=$? 26570 echo "$as_me:26567: \$? = $ac_status" >&5 26571 (exit "$ac_status"); }; }; then 26572 cf_cv_type_of_bool=`cat cf_test.out` 26573 if test -z "$cf_cv_type_of_bool"; then 26574 cf_cv_type_of_bool=unknown 26575 fi 26576else 26577 echo "$as_me: program exited with status $ac_status" >&5 26578echo "$as_me: failed program was:" >&5 26579cat "conftest.$ac_ext" >&5 26580cf_cv_type_of_bool=unknown 26581fi 26582rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 26583fi 26584 rm -f cf_test.out 26585 26586fi 26587echo "$as_me:26584: result: $cf_cv_type_of_bool" >&5 26588echo "${ECHO_T}$cf_cv_type_of_bool" >&6 26589 26590if test "$cf_cv_type_of_bool" = unknown ; then 26591 case .$NCURSES_BOOL in 26592 (.auto|.) NCURSES_BOOL=unsigned;; 26593 esac 26594 { echo "$as_me:26591: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5 26595echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;} 26596 cf_cv_type_of_bool=$NCURSES_BOOL 26597fi 26598 26599 else 26600 echo "$as_me:26597: checking for fallback type of bool" >&5 26601echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6 26602 case "$host_cpu" in 26603 (i?86) cf_cv_type_of_bool=char ;; 26604 (*) cf_cv_type_of_bool=int ;; 26605 esac 26606 echo "$as_me:26603: result: $cf_cv_type_of_bool" >&5 26607echo "${ECHO_T}$cf_cv_type_of_bool" >&6 26608 fi 26609 fi 26610fi 26611 26612# If the C compiler did not declare bool, and we did not determine that the C++ 26613# compiler does not declare bool, turn on an ifdef in curses.h that makes the 26614# ncurses library use the same type as C++ bool. Note that this allows one to 26615# specify the type of bool in a configure-script option and postpone 26616# integration with the C++ compiler provided that the types are compatible. 26617USE_CXX_BOOL=1 26618if test "$cf_cv_cc_bool_type" = 1 26619then 26620 # oops: C has a bool. Unlikely, but C++ could differ. 26621 USE_CXX_BOOL=0 26622elif test "$cf_cv_builtin_bool" = 0 26623then 26624 # C++ has no bool 26625 USE_CXX_BOOL=0 26626else 26627 # this is the normal case 26628 USE_CXX_BOOL='defined(__cplusplus)' 26629fi 26630 26631if test -f "${srcdir}/Ada95/Makefile.in" ; then 26632 26633 if test "$cf_with_ada" != "no" ; then 26634 if test "$with_libtool" != "no"; then 26635 { echo "$as_me:26632: WARNING: libtool does not support Ada - disabling feature" >&5 26636echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;} 26637 cf_with_ada=no 26638 fi 26639 fi 26640 26641 if test "$cf_with_ada" != "no" ; then 26642 26643for cf_prog_gnat in gnat gnatmake gprconfig gprbuild 26644do 26645 26646cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 26647 26648 unset ac_cv_path_cf_TEMP_gnat 26649 unset cf_TEMP_gnat 26650 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args. 26651set dummy $cf_prog_gnat; ac_word=$2 26652echo "$as_me:26649: checking for $ac_word" >&5 26653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 26654if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then 26655 echo $ECHO_N "(cached) $ECHO_C" >&6 26656else 26657 case $cf_TEMP_gnat in 26658 [\\/]* | ?:[\\/]*) 26659 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path. 26660 ;; 26661 *) 26662 ac_save_IFS=$IFS; IFS=$ac_path_separator 26663ac_dummy="$PATH" 26664for ac_dir in $ac_dummy; do 26665 IFS=$ac_save_IFS 26666 test -z "$ac_dir" && ac_dir=. 26667 if $as_executable_p "$ac_dir/$ac_word"; then 26668 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word" 26669 echo "$as_me:26666: found $ac_dir/$ac_word" >&5 26670 break 26671fi 26672done 26673 26674 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no" 26675 ;; 26676esac 26677fi 26678cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat 26679 26680if test -n "$cf_TEMP_gnat"; then 26681 echo "$as_me:26678: result: $cf_TEMP_gnat" >&5 26682echo "${ECHO_T}$cf_TEMP_gnat" >&6 26683else 26684 echo "$as_me:26681: result: no" >&5 26685echo "${ECHO_T}no" >&6 26686fi 26687 26688 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat" 26689 26690 if test "x$cf_TEMP_gnat" != xno; then 26691 unset cf_cv_gnat_version 26692 unset cf_TEMP_gnat 26693 26694echo "$as_me:26691: checking for $cf_prog_gnat version" >&5 26695echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6 26696if test "${cf_cv_gnat_version+set}" = set; then 26697 echo $ECHO_N "(cached) $ECHO_C" >&6 26698else 26699 26700cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \ 26701 grep '[0-9].[0-9][0-9]*' |\ 26702 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'` 26703 26704fi 26705echo "$as_me:26702: result: $cf_cv_gnat_version" >&5 26706echo "${ECHO_T}$cf_cv_gnat_version" >&6 26707test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no 26708eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version 26709 26710 fi 26711 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat" 26712 26713 unset cf_TEMP_gnat 26714 unset cf_cv_gnat_version 26715 unset ac_cv_path_cf_TEMP_gnat 26716done 26717 26718if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then 26719 cf_ada_make= 26720 cf_cv_prog_gnat_correct=no 26721else 26722 cf_ada_make=gnatmake 26723 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then 26724 # gprconfig is newer than gnatmake; we can continue... 26725 cf_ada_config="##" 26726 else 26727 rm -rf ./conftest* ./*~conftest* 26728 if mkdir conftest.src 26729 then 26730 cf_ada_config="" 26731 cd conftest.src 26732 for cf_gprconfig in Ada C 26733 do 26734 echo "$as_me:26731: checking for gprconfig name for $cf_gprconfig" >&5 26735echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6 26736 if test "$cf_gprconfig" = C 26737 then 26738 for cf_gprconfig_param in \ 26739 "$cf_gprconfig,,,,GNATGCC" \ 26740 "$cf_gprconfig,,,,GCC" \ 26741 "$cf_gprconfig" 26742 do 26743 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1` 26744 test -n "$cf_gprconfig_value" && break 26745 done 26746 else 26747 cf_gprconfig_param=$cf_gprconfig 26748 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1` 26749 fi 26750 if test -n "$cf_gprconfig_value" 26751 then 26752 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value" 26753 echo "$as_me:26750: result: $cf_gprconfig_value" >&5 26754echo "${ECHO_T}$cf_gprconfig_value" >&6 26755 else 26756 echo "$as_me:26753: result: missing" >&5 26757echo "${ECHO_T}missing" >&6 26758 cf_ada_config="#" 26759 break 26760 fi 26761 done 26762 cd .. 26763 rm -rf ./conftest* ./*~conftest* 26764 fi 26765 fi 26766 if test "x$cf_ada_config" != "x#" 26767 then 26768 26769echo "$as_me:26766: checking for gnat version" >&5 26770echo $ECHO_N "checking for gnat version... $ECHO_C" >&6 26771if test "${cf_cv_gnat_version+set}" = set; then 26772 echo $ECHO_N "(cached) $ECHO_C" >&6 26773else 26774 26775cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \ 26776 grep '[0-9].[0-9][0-9]*' |\ 26777 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'` 26778 26779fi 26780echo "$as_me:26777: result: $cf_cv_gnat_version" >&5 26781echo "${ECHO_T}$cf_cv_gnat_version" >&6 26782test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no 26783 26784case "$cf_cv_gnat_version" in 26785(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9]) 26786 cf_cv_prog_gnat_correct=yes 26787 ;; 26788(*) 26789 { echo "$as_me:26786: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5 26790echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;} 26791 cf_cv_prog_gnat_correct=no 26792 ;; 26793esac 26794 26795 # Extract the first word of "m4", so it can be a program name with args. 26796set dummy m4; ac_word=$2 26797echo "$as_me:26794: checking for $ac_word" >&5 26798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 26799if test "${ac_cv_prog_M4_exists+set}" = set; then 26800 echo $ECHO_N "(cached) $ECHO_C" >&6 26801else 26802 if test -n "$M4_exists"; then 26803 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test. 26804else 26805 ac_save_IFS=$IFS; IFS=$ac_path_separator 26806ac_dummy="$PATH" 26807for ac_dir in $ac_dummy; do 26808 IFS=$ac_save_IFS 26809 test -z "$ac_dir" && ac_dir=. 26810 $as_executable_p "$ac_dir/$ac_word" || continue 26811ac_cv_prog_M4_exists="yes" 26812echo "$as_me:26809: found $ac_dir/$ac_word" >&5 26813break 26814done 26815 26816 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no" 26817fi 26818fi 26819M4_exists=$ac_cv_prog_M4_exists 26820if test -n "$M4_exists"; then 26821 echo "$as_me:26818: result: $M4_exists" >&5 26822echo "${ECHO_T}$M4_exists" >&6 26823else 26824 echo "$as_me:26821: result: no" >&5 26825echo "${ECHO_T}no" >&6 26826fi 26827 26828 if test "$ac_cv_prog_M4_exists" = no; then 26829 cf_cv_prog_gnat_correct=no 26830 { echo "$as_me:26827: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5 26831echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;} 26832 fi 26833 if test "$cf_cv_prog_gnat_correct" = yes; then 26834 echo "$as_me:26831: checking if GNAT works" >&5 26835echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6 26836 26837rm -rf ./conftest* ./*~conftest* 26838cat >>conftest.ads <<CF_EOF 26839procedure conftest; 26840CF_EOF 26841cat >>conftest.adb <<CF_EOF 26842with Text_IO; 26843with GNAT.OS_Lib; 26844procedure conftest is 26845begin 26846 Text_IO.Put ("Hello World"); 26847 Text_IO.New_Line; 26848 GNAT.OS_Lib.OS_Exit (0); 26849end conftest; 26850CF_EOF 26851if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then 26852 if ( ./conftest 1>&5 2>&1 ) ; then 26853 cf_cv_prog_gnat_correct=yes 26854 else 26855 cf_cv_prog_gnat_correct=no 26856 fi 26857else 26858 cf_cv_prog_gnat_correct=no 26859fi 26860rm -rf ./conftest* ./*~conftest* 26861 26862 echo "$as_me:26859: result: $cf_cv_prog_gnat_correct" >&5 26863echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6 26864 fi 26865 else 26866 cf_cv_prog_gnat_correct=no 26867 fi 26868fi 26869 26870 if test "x$cf_cv_prog_gnat_correct" = xyes; then 26871 26872 ADAFLAGS="$ADAFLAGS -gnatpn" 26873 26874 echo "$as_me:26871: checking optimization options for ADAFLAGS" >&5 26875echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6 26876 case "$CFLAGS" in 26877 (*-g*) 26878 26879 ADAFLAGS="$ADAFLAGS -g" 26880 26881 ;; 26882 esac 26883 case "$CFLAGS" in 26884 (*-O*) 26885 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'` 26886 26887 ADAFLAGS="$ADAFLAGS $cf_O_flag" 26888 26889 ;; 26890 esac 26891 echo "$as_me:26888: result: $ADAFLAGS" >&5 26892echo "${ECHO_T}$ADAFLAGS" >&6 26893 26894echo "$as_me:26891: checking if GNATPREP supports -T option" >&5 26895echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6 26896if test "${cf_cv_gnatprep_opt_t+set}" = set; then 26897 echo $ECHO_N "(cached) $ECHO_C" >&6 26898else 26899 26900cf_cv_gnatprep_opt_t=no 26901gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes 26902 26903fi 26904echo "$as_me:26901: result: $cf_cv_gnatprep_opt_t" >&5 26905echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6 26906test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS" 26907 26908echo "$as_me:26905: checking if GNAT supports generics" >&5 26909echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6 26910case "$cf_cv_gnat_version" in 26911(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9]) 26912 cf_gnat_generics=yes 26913 ;; 26914(*) 26915 cf_gnat_generics=no 26916 ;; 26917esac 26918echo "$as_me:26915: result: $cf_gnat_generics" >&5 26919echo "${ECHO_T}$cf_gnat_generics" >&6 26920 26921if test "$cf_gnat_generics" = yes 26922then 26923 cf_compile_generics=generics 26924 cf_generic_objects="\${GENOBJS}" 26925else 26926 cf_compile_generics= 26927 cf_generic_objects= 26928fi 26929 26930echo "$as_me:26927: checking if GNAT supports SIGINT" >&5 26931echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6 26932if test "${cf_cv_gnat_sigint+set}" = set; then 26933 echo $ECHO_N "(cached) $ECHO_C" >&6 26934else 26935 26936rm -rf ./conftest* ./*~conftest* 26937cat >>conftest.ads <<CF_EOF 26938with Ada.Interrupts.Names; 26939 26940package ConfTest is 26941 26942 pragma Warnings (Off); -- the next pragma exists since 3.11p 26943 pragma Unreserve_All_Interrupts; 26944 pragma Warnings (On); 26945 26946 protected Process is 26947 procedure Stop; 26948 function Continue return Boolean; 26949 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT); 26950 private 26951 Done : Boolean := False; 26952 end Process; 26953 26954end ConfTest; 26955CF_EOF 26956cat >>conftest.adb <<CF_EOF 26957package body ConfTest is 26958 protected body Process is 26959 procedure Stop is 26960 begin 26961 Done := True; 26962 end Stop; 26963 function Continue return Boolean is 26964 begin 26965 return not Done; 26966 end Continue; 26967 end Process; 26968end ConfTest; 26969CF_EOF 26970if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then 26971 cf_cv_gnat_sigint=yes 26972else 26973 cf_cv_gnat_sigint=no 26974fi 26975rm -rf ./conftest* ./*~conftest* 26976 26977fi 26978echo "$as_me:26975: result: $cf_cv_gnat_sigint" >&5 26979echo "${ECHO_T}$cf_cv_gnat_sigint" >&6 26980 26981if test "$cf_cv_gnat_sigint" = yes ; then 26982 USE_GNAT_SIGINT="" 26983else 26984 USE_GNAT_SIGINT="#" 26985fi 26986 26987cf_gnat_libraries=no 26988cf_gnat_projects=no 26989 26990if test "$enable_gnat_projects" != no ; then 26991echo "$as_me:26988: checking if GNAT supports project files" >&5 26992echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6 26993case "$cf_cv_gnat_version" in 26994(3.[0-9]*) 26995 ;; 26996(*) 26997 case "$cf_cv_system_name" in 26998 (cygwin*|msys*) 26999 ;; 27000 (*) 27001 rm -rf ./conftest* ./*~conftest* 27002 if mkdir conftest.src conftest.bin conftest.lib 27003 then 27004 cd conftest.src 27005 rm -rf ./conftest* ./*~conftest* 27006 cat >>library.gpr <<CF_EOF 27007project Library is 27008 Kind := External ("LIB_KIND"); 27009 for Library_Name use "ConfTest"; 27010 for Object_Dir use "."; 27011 for Library_ALI_Dir use External("LIBRARY_DIR"); 27012 for Library_Version use External ("SONAME"); 27013 for Library_Kind use Kind; 27014 for Library_Dir use External("BUILD_DIR"); 27015 Source_Dir := External ("SOURCE_DIR"); 27016 for Source_Dirs use (Source_Dir); 27017end Library; 27018CF_EOF 27019 cat >>confpackage.ads <<CF_EOF 27020package ConfPackage is 27021 procedure conftest; 27022end ConfPackage; 27023CF_EOF 27024 cat >>confpackage.adb <<CF_EOF 27025with Text_IO; 27026package body ConfPackage is 27027 procedure conftest is 27028 begin 27029 Text_IO.Put ("Hello World"); 27030 Text_IO.New_Line; 27031 end conftest; 27032end ConfPackage; 27033CF_EOF 27034 if ( "$cf_ada_make" $ADAFLAGS \ 27035 -Plibrary.gpr \ 27036 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \ 27037 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \ 27038 -XSOURCE_DIR="`pwd`" \ 27039 -XSONAME=libConfTest.so.1 \ 27040 -XLIB_KIND=static 1>&5 2>&1 ) ; then 27041 cf_gnat_projects=yes 27042 fi 27043 cd .. 27044 fi 27045 if test -f conftest.lib/confpackage.ali 27046 then 27047 cf_gnat_libraries=yes 27048 fi 27049 rm -rf ./conftest* ./*~conftest* 27050 ;; 27051 esac 27052 ;; 27053esac 27054echo "$as_me:27051: result: $cf_gnat_projects" >&5 27055echo "${ECHO_T}$cf_gnat_projects" >&6 27056fi # enable_gnat_projects 27057 27058if test "$cf_gnat_projects" = yes 27059then 27060 echo "$as_me:27057: checking if GNAT supports libraries" >&5 27061echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6 27062 echo "$as_me:27059: result: $cf_gnat_libraries" >&5 27063echo "${ECHO_T}$cf_gnat_libraries" >&6 27064fi 27065 27066USE_OLD_MAKERULES="" 27067USE_GNAT_PROJECTS="#" 27068USE_GNAT_MAKE_GPR="#" 27069USE_GNAT_GPRBUILD="#" 27070 27071if test "$cf_gnat_projects" = yes 27072then 27073 USE_OLD_MAKERULES="#" 27074 USE_GNAT_PROJECTS="" 27075 if test "$cf_cv_VERSION_GPRBUILD" != no 27076 then 27077 USE_GNAT_GPRBUILD="" 27078 elif test "$cf_cv_VERSION_GNATMAKE" != no 27079 then 27080 USE_GNAT_MAKE_GPR="" 27081 else 27082 { echo "$as_me:27079: WARNING: use old makefile rules since tools are missing" >&5 27083echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;} 27084 fi 27085fi 27086 27087if test "$cf_gnat_libraries" = yes 27088then 27089 USE_GNAT_LIBRARIES="" 27090else 27091 USE_GNAT_LIBRARIES="#" 27092fi 27093 27094echo "$as_me:27091: checking for ada-compiler" >&5 27095echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6 27096 27097# Check whether --with-ada-compiler or --without-ada-compiler was given. 27098if test "${with_ada_compiler+set}" = set; then 27099 withval="$with_ada_compiler" 27100 cf_ada_compiler=$withval 27101else 27102 cf_ada_compiler=gnatmake 27103fi; 27104 27105echo "$as_me:27102: result: $cf_ada_compiler" >&5 27106echo "${ECHO_T}$cf_ada_compiler" >&6 27107 27108 cf_ada_package=terminal_interface 27109 27110echo "$as_me:27107: checking for ada-include" >&5 27111echo $ECHO_N "checking for ada-include... $ECHO_C" >&6 27112 27113# Check whether --with-ada-include or --without-ada-include was given. 27114if test "${with_ada_include+set}" = set; then 27115 withval="$with_ada_include" 27116 27117else 27118 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}" 27119fi; if test -n "$prefix/share/ada/adainclude" ; then 27120 27121if test "x$prefix" != xNONE; then 27122 cf_path_syntax="$prefix" 27123else 27124 cf_path_syntax="$ac_default_prefix" 27125fi 27126 27127case ".$withval" in 27128(.\$\(*\)*|.\'*\'*) 27129 ;; 27130(..|./*|.\\*) 27131 ;; 27132(.[a-zA-Z]:[\\/]*) # OS/2 EMX 27133 ;; 27134(.\$\{*prefix\}*|.\$\{*dir\}*) 27135 eval withval="$withval" 27136 case ".$withval" in 27137 (.NONE/*) 27138 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 27139 ;; 27140 esac 27141 ;; 27142(.no|.NONE/*) 27143 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 27144 ;; 27145(*) 27146 { { echo "$as_me:27143: error: expected a pathname, not \"$withval\"" >&5 27147echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 27148 { (exit 1); exit 1; }; } 27149 ;; 27150esac 27151 27152fi 27153eval ADA_INCLUDE="$withval" 27154 27155echo "$as_me:27152: result: $ADA_INCLUDE" >&5 27156echo "${ECHO_T}$ADA_INCLUDE" >&6 27157 27158echo "$as_me:27155: checking for ada-objects" >&5 27159echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6 27160 27161# Check whether --with-ada-objects or --without-ada-objects was given. 27162if test "${with_ada_objects+set}" = set; then 27163 withval="$with_ada_objects" 27164 27165else 27166 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}" 27167fi; if test -n "$prefix/lib/ada/adalib" ; then 27168 27169if test "x$prefix" != xNONE; then 27170 cf_path_syntax="$prefix" 27171else 27172 cf_path_syntax="$ac_default_prefix" 27173fi 27174 27175case ".$withval" in 27176(.\$\(*\)*|.\'*\'*) 27177 ;; 27178(..|./*|.\\*) 27179 ;; 27180(.[a-zA-Z]:[\\/]*) # OS/2 EMX 27181 ;; 27182(.\$\{*prefix\}*|.\$\{*dir\}*) 27183 eval withval="$withval" 27184 case ".$withval" in 27185 (.NONE/*) 27186 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 27187 ;; 27188 esac 27189 ;; 27190(.no|.NONE/*) 27191 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%` 27192 ;; 27193(*) 27194 { { echo "$as_me:27191: error: expected a pathname, not \"$withval\"" >&5 27195echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;} 27196 { (exit 1); exit 1; }; } 27197 ;; 27198esac 27199 27200fi 27201eval ADA_OBJECTS="$withval" 27202 27203echo "$as_me:27200: result: $ADA_OBJECTS" >&5 27204echo "${ECHO_T}$ADA_OBJECTS" >&6 27205 27206echo "$as_me:27203: checking if an Ada95 shared-library should be built" >&5 27207echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6 27208 27209# Check whether --with-ada-sharedlib or --without-ada-sharedlib was given. 27210if test "${with_ada_sharedlib+set}" = set; then 27211 withval="$with_ada_sharedlib" 27212 with_ada_sharedlib=$withval 27213else 27214 with_ada_sharedlib=no 27215fi; 27216echo "$as_me:27213: result: $with_ada_sharedlib" >&5 27217echo "${ECHO_T}$with_ada_sharedlib" >&6 27218 27219if test "x$with_ada_sharedlib" != xno 27220then 27221 if test "x$cf_gnat_projects" != xyes 27222 then 27223 { echo "$as_me:27220: WARNING: disabling shared-library since GNAT projects are not supported" >&5 27224echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;} 27225 with_ada_sharedlib=no 27226 fi 27227fi 27228 27229ADA_SHAREDLIB='lib$(LIB_NAME).so.1' 27230MAKE_ADA_SHAREDLIB="#" 27231 27232if test "x$with_ada_sharedlib" != xno 27233then 27234 MAKE_ADA_SHAREDLIB= 27235 if test "x$with_ada_sharedlib" != xyes 27236 then 27237 ADA_SHAREDLIB="$with_ada_sharedlib" 27238 fi 27239fi 27240 27241 # allow the Ada binding to be renamed 27242 27243echo "$as_me:27240: checking for ada-libname" >&5 27244echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6 27245 27246# Check whether --with-ada-libname or --without-ada-libname was given. 27247if test "${with_ada_libname+set}" = set; then 27248 withval="$with_ada_libname" 27249 ADA_LIBNAME=$withval 27250else 27251 ADA_LIBNAME=AdaCurses 27252fi; 27253case "x$ADA_LIBNAME" in 27254(x|xyes|xno) 27255 ADA_LIBNAME=AdaCurses 27256 ;; 27257esac 27258 27259echo "$as_me:27256: result: $ADA_LIBNAME" >&5 27260echo "${ECHO_T}$ADA_LIBNAME" >&6 27261 27262 fi 27263 fi 27264else 27265 cf_with_ada=no 27266fi 27267 27268# do this "late" to avoid conflict with header-checks 27269if test "x$with_widec" = xyes ; then 27270 echo "$as_me:27267: checking for wchar_t" >&5 27271echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 27272if test "${ac_cv_type_wchar_t+set}" = set; then 27273 echo $ECHO_N "(cached) $ECHO_C" >&6 27274else 27275 cat >"conftest.$ac_ext" <<_ACEOF 27276#line 27273 "configure" 27277#include "confdefs.h" 27278$ac_includes_default 27279int 27280main (void) 27281{ 27282if ((wchar_t *) 0) 27283 return 0; 27284if (sizeof (wchar_t)) 27285 return 0; 27286 ; 27287 return 0; 27288} 27289_ACEOF 27290rm -f "conftest.$ac_objext" 27291if { (eval echo "$as_me:27288: \"$ac_compile\"") >&5 27292 (eval $ac_compile) 2>&5 27293 ac_status=$? 27294 echo "$as_me:27291: \$? = $ac_status" >&5 27295 (exit "$ac_status"); } && 27296 { ac_try='test -s "conftest.$ac_objext"' 27297 { (eval echo "$as_me:27294: \"$ac_try\"") >&5 27298 (eval $ac_try) 2>&5 27299 ac_status=$? 27300 echo "$as_me:27297: \$? = $ac_status" >&5 27301 (exit "$ac_status"); }; }; then 27302 ac_cv_type_wchar_t=yes 27303else 27304 echo "$as_me: failed program was:" >&5 27305cat "conftest.$ac_ext" >&5 27306ac_cv_type_wchar_t=no 27307fi 27308rm -f "conftest.$ac_objext" "conftest.$ac_ext" 27309fi 27310echo "$as_me:27307: result: $ac_cv_type_wchar_t" >&5 27311echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 27312 27313echo "$as_me:27310: checking size of wchar_t" >&5 27314echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 27315if test "${ac_cv_sizeof_wchar_t+set}" = set; then 27316 echo $ECHO_N "(cached) $ECHO_C" >&6 27317else 27318 if test "$ac_cv_type_wchar_t" = yes; then 27319 if test "$cross_compiling" = yes; then 27320 # Depending upon the size, compute the lo and hi bounds. 27321cat >"conftest.$ac_ext" <<_ACEOF 27322#line 27319 "configure" 27323#include "confdefs.h" 27324$ac_includes_default 27325int 27326main (void) 27327{ 27328int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)] 27329 ; 27330 return 0; 27331} 27332_ACEOF 27333rm -f "conftest.$ac_objext" 27334if { (eval echo "$as_me:27331: \"$ac_compile\"") >&5 27335 (eval $ac_compile) 2>&5 27336 ac_status=$? 27337 echo "$as_me:27334: \$? = $ac_status" >&5 27338 (exit "$ac_status"); } && 27339 { ac_try='test -s "conftest.$ac_objext"' 27340 { (eval echo "$as_me:27337: \"$ac_try\"") >&5 27341 (eval $ac_try) 2>&5 27342 ac_status=$? 27343 echo "$as_me:27340: \$? = $ac_status" >&5 27344 (exit "$ac_status"); }; }; then 27345 ac_lo=0 ac_mid=0 27346 while :; do 27347 cat >"conftest.$ac_ext" <<_ACEOF 27348#line 27345 "configure" 27349#include "confdefs.h" 27350$ac_includes_default 27351int 27352main (void) 27353{ 27354int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)] 27355 ; 27356 return 0; 27357} 27358_ACEOF 27359rm -f "conftest.$ac_objext" 27360if { (eval echo "$as_me:27357: \"$ac_compile\"") >&5 27361 (eval $ac_compile) 2>&5 27362 ac_status=$? 27363 echo "$as_me:27360: \$? = $ac_status" >&5 27364 (exit "$ac_status"); } && 27365 { ac_try='test -s "conftest.$ac_objext"' 27366 { (eval echo "$as_me:27363: \"$ac_try\"") >&5 27367 (eval $ac_try) 2>&5 27368 ac_status=$? 27369 echo "$as_me:27366: \$? = $ac_status" >&5 27370 (exit "$ac_status"); }; }; then 27371 ac_hi=$ac_mid; break 27372else 27373 echo "$as_me: failed program was:" >&5 27374cat "conftest.$ac_ext" >&5 27375ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1` 27376fi 27377rm -f "conftest.$ac_objext" "conftest.$ac_ext" 27378 done 27379else 27380 echo "$as_me: failed program was:" >&5 27381cat "conftest.$ac_ext" >&5 27382ac_hi=-1 ac_mid=-1 27383 while :; do 27384 cat >"conftest.$ac_ext" <<_ACEOF 27385#line 27382 "configure" 27386#include "confdefs.h" 27387$ac_includes_default 27388int 27389main (void) 27390{ 27391int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)] 27392 ; 27393 return 0; 27394} 27395_ACEOF 27396rm -f "conftest.$ac_objext" 27397if { (eval echo "$as_me:27394: \"$ac_compile\"") >&5 27398 (eval $ac_compile) 2>&5 27399 ac_status=$? 27400 echo "$as_me:27397: \$? = $ac_status" >&5 27401 (exit "$ac_status"); } && 27402 { ac_try='test -s "conftest.$ac_objext"' 27403 { (eval echo "$as_me:27400: \"$ac_try\"") >&5 27404 (eval $ac_try) 2>&5 27405 ac_status=$? 27406 echo "$as_me:27403: \$? = $ac_status" >&5 27407 (exit "$ac_status"); }; }; then 27408 ac_lo=$ac_mid; break 27409else 27410 echo "$as_me: failed program was:" >&5 27411cat "conftest.$ac_ext" >&5 27412ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"` 27413fi 27414rm -f "conftest.$ac_objext" "conftest.$ac_ext" 27415 done 27416fi 27417rm -f "conftest.$ac_objext" "conftest.$ac_ext" 27418# Binary search between lo and hi bounds. 27419while test "x$ac_lo" != "x$ac_hi"; do 27420 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"` 27421 cat >"conftest.$ac_ext" <<_ACEOF 27422#line 27419 "configure" 27423#include "confdefs.h" 27424$ac_includes_default 27425int 27426main (void) 27427{ 27428int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)] 27429 ; 27430 return 0; 27431} 27432_ACEOF 27433rm -f "conftest.$ac_objext" 27434if { (eval echo "$as_me:27431: \"$ac_compile\"") >&5 27435 (eval $ac_compile) 2>&5 27436 ac_status=$? 27437 echo "$as_me:27434: \$? = $ac_status" >&5 27438 (exit "$ac_status"); } && 27439 { ac_try='test -s "conftest.$ac_objext"' 27440 { (eval echo "$as_me:27437: \"$ac_try\"") >&5 27441 (eval $ac_try) 2>&5 27442 ac_status=$? 27443 echo "$as_me:27440: \$? = $ac_status" >&5 27444 (exit "$ac_status"); }; }; then 27445 ac_hi=$ac_mid 27446else 27447 echo "$as_me: failed program was:" >&5 27448cat "conftest.$ac_ext" >&5 27449ac_lo=`expr "$ac_mid" + 1` 27450fi 27451rm -f "conftest.$ac_objext" "conftest.$ac_ext" 27452done 27453ac_cv_sizeof_wchar_t=$ac_lo 27454else 27455 if test "$cross_compiling" = yes; then 27456 { { echo "$as_me:27453: error: cannot run test program while cross compiling" >&5 27457echo "$as_me: error: cannot run test program while cross compiling" >&2;} 27458 { (exit 1); exit 1; }; } 27459else 27460 cat >"conftest.$ac_ext" <<_ACEOF 27461#line 27458 "configure" 27462#include "confdefs.h" 27463$ac_includes_default 27464int 27465main (void) 27466{ 27467FILE *f = fopen ("conftest.val", "w"); 27468if (!f) 27469 $ac_main_return (1); 27470fprintf (f, "%ld", (long)(sizeof (wchar_t))); 27471fclose (f); 27472 ; 27473 return 0; 27474} 27475_ACEOF 27476rm -f "conftest$ac_exeext" 27477if { (eval echo "$as_me:27474: \"$ac_link\"") >&5 27478 (eval $ac_link) 2>&5 27479 ac_status=$? 27480 echo "$as_me:27477: \$? = $ac_status" >&5 27481 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' 27482 { (eval echo "$as_me:27479: \"$ac_try\"") >&5 27483 (eval $ac_try) 2>&5 27484 ac_status=$? 27485 echo "$as_me:27482: \$? = $ac_status" >&5 27486 (exit "$ac_status"); }; }; then 27487 ac_cv_sizeof_wchar_t=`cat conftest.val` 27488else 27489 echo "$as_me: program exited with status $ac_status" >&5 27490echo "$as_me: failed program was:" >&5 27491cat "conftest.$ac_ext" >&5 27492fi 27493rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext" 27494fi 27495fi 27496rm -f conftest.val 27497else 27498 ac_cv_sizeof_wchar_t=0 27499fi 27500fi 27501echo "$as_me:27498: result: $ac_cv_sizeof_wchar_t" >&5 27502echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 27503cat >>confdefs.h <<EOF 27504#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 27505EOF 27506 27507 # cross-compiling to mingw can run into the problem that attempting to 27508 # link with the regex library fails, causing the test to not set this to 27509 # a number. "recent" autoconf does not address this problem either -TD 27510 if test -z "$ac_cv_sizeof_wchar_t" 27511 then 27512 test -n "$verbose" && echo " test failed (assume 2)" 1>&6 27513 27514echo "${as_me:-configure}:27511: testing test failed (assume 2) ..." 1>&5 27515 27516 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp 27517 mv confdefs.tmp confdefs.h 27518 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h 27519 fi 27520fi 27521 27522### Construct the ncurses library-subsets, if any, from this set of keywords: 27523### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar 27524### 27525### ticlib modules may be a separate library, otherwise contained in termlib. 27526### termlib modules may be a separate library, otherwise contained in ncurses. 27527### 27528### The of "+" or " " between the tokens controls the way the script 27529### chooses to split module lists into libraries. 27530### 27531### (see CF_LIB_RULES). 27532echo "$as_me:27529: checking for library subsets" >&5 27533echo $ECHO_N "checking for library subsets... $ECHO_C" >&6 27534LIB_SUBSETS= 27535 27536if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then 27537 LIB_SUBSETS="${LIB_SUBSETS}ticlib" 27538 if test "$with_ticlib" != no ; then 27539 LIB_SUBSETS="${LIB_SUBSETS} " 27540 else 27541 LIB_SUBSETS="${LIB_SUBSETS}+" 27542 fi 27543fi 27544 27545LIB_SUBSETS="${LIB_SUBSETS}termlib" 27546test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo" 27547 27548if test "$with_termlib" != no ; then 27549 LIB_SUBSETS="${LIB_SUBSETS} " 27550else 27551 LIB_SUBSETS="${LIB_SUBSETS}+" 27552fi 27553 27554LIB_SUBSETS="${LIB_SUBSETS}base" 27555 27556# Most term-driver calls are to tinfo, but some like init_pair are to the 27557# base library (so it resides in base). 27558if test "$with_term_driver" != no ; then 27559 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers" 27560 case "$cf_cv_system_name" in 27561 (*mingw32*|*mingw64*) 27562 if test "x$with_exp_win32" = xyes ; then 27563 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32" 27564 else 27565 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con" 27566 fi 27567 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER" 27568 ;; 27569 (*) 27570 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo" 27571 ;; 27572 esac 27573elif test "x$with_exp_win32" = xyes ; then 27574 case "$cf_cv_system_name" in 27575 (*mingw32*|*mingw64*) 27576 LIB_SUBSETS="${LIB_SUBSETS}+port_win32" 27577 ;; 27578 (*) 27579 ;; 27580 esac 27581fi 27582 27583test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar" 27584test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs" 27585 27586echo "$as_me:27583: result: $LIB_SUBSETS" >&5 27587echo "${ECHO_T}$LIB_SUBSETS" >&6 27588 27589### Construct the list of include-directories to be generated 27590 27591if test "$srcdir" != "."; then 27592 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS" 27593fi 27594CPPFLAGS="-I../include $CPPFLAGS" 27595if test "$srcdir" != "."; then 27596 CPPFLAGS="-I\${srcdir} $CPPFLAGS" 27597fi 27598CPPFLAGS="-I. $CPPFLAGS" 27599 27600ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS" 27601if test "$srcdir" != "."; then 27602 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS" 27603fi 27604if test "$GCC" != yes; then 27605 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27606elif test "$includedir" != "/usr/include"; then 27607 if test "$includedir" = '${prefix}/include' ; then 27608 if test x$prefix != x/usr ; then 27609 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27610 fi 27611 else 27612 ACPPFLAGS="$ACPPFLAGS -I\${includedir}" 27613 fi 27614fi 27615 27616### Build up pieces for makefile rules 27617echo "$as_me:27614: checking default library suffix" >&5 27618echo $ECHO_N "checking default library suffix... $ECHO_C" >&6 27619 27620 case $DFT_LWR_MODEL in 27621 (libtool) DFT_ARG_SUFFIX='' ;; 27622 (normal) DFT_ARG_SUFFIX='' ;; 27623 (debug) DFT_ARG_SUFFIX='_g' ;; 27624 (profile) DFT_ARG_SUFFIX='_p' ;; 27625 (shared) DFT_ARG_SUFFIX='' ;; 27626 esac 27627 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}" 27628echo "$as_me:27625: result: $DFT_ARG_SUFFIX" >&5 27629echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6 27630 27631echo "$as_me:27628: checking default library-dependency suffix" >&5 27632echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6 27633 27634 case X$DFT_LWR_MODEL in 27635 (Xlibtool) 27636 DFT_LIB_SUFFIX='.la' 27637 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27638 ;; 27639 (Xdebug) 27640 case "$cf_cv_system_name" in 27641 (*-msvc*) 27642 DFT_LIB_SUFFIX='_g.lib' 27643 ;; 27644 (*) 27645 DFT_LIB_SUFFIX='_g.a' 27646 ;; 27647 esac 27648 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27649 ;; 27650 (Xprofile) 27651 case "$cf_cv_system_name" in 27652 (*-msvc*) 27653 DFT_LIB_SUFFIX='_p.lib' 27654 ;; 27655 (*) 27656 DFT_LIB_SUFFIX='_p.a' 27657 ;; 27658 esac 27659 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27660 ;; 27661 (Xshared) 27662 case "$cf_cv_system_name" in 27663 (aix[5-7]*) 27664 DFT_LIB_SUFFIX='.so' 27665 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27666 ;; 27667 (*-msvc*) 27668 DFT_LIB_SUFFIX='.dll' 27669 DFT_DEP_SUFFIX='.dll.lib' 27670 ;; 27671 (cygwin*|msys*|mingw*) 27672 DFT_LIB_SUFFIX='.dll' 27673 DFT_DEP_SUFFIX='.dll.a' 27674 ;; 27675 (darwin*) 27676 DFT_LIB_SUFFIX='.dylib' 27677 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27678 ;; 27679 (hpux*) 27680 case "$target" in 27681 (ia64*) 27682 DFT_LIB_SUFFIX='.so' 27683 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27684 ;; 27685 (*) 27686 DFT_LIB_SUFFIX='.sl' 27687 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27688 ;; 27689 esac 27690 ;; 27691 (*) 27692 DFT_LIB_SUFFIX='.so' 27693 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27694 ;; 27695 esac 27696 ;; 27697 (*) 27698 case "$target" in 27699 (*-msvc*) 27700 DFT_LIB_SUFFIX='.lib' 27701 ;; 27702 (*) 27703 DFT_LIB_SUFFIX='.a' 27704 ;; 27705 esac 27706 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX 27707 ;; 27708 esac 27709 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 27710 then 27711 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}" 27712 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}" 27713 fi 27714echo "$as_me:27711: result: $DFT_DEP_SUFFIX" >&5 27715echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6 27716 27717echo "$as_me:27714: checking default object directory" >&5 27718echo $ECHO_N "checking default object directory... $ECHO_C" >&6 27719 27720 case $DFT_LWR_MODEL in 27721 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;; 27722 (normal) DFT_OBJ_SUBDIR='objects' ;; 27723 (debug) DFT_OBJ_SUBDIR='obj_g' ;; 27724 (profile) DFT_OBJ_SUBDIR='obj_p' ;; 27725 (shared) 27726 case "$cf_cv_system_name" in 27727 (cygwin|msys) 27728 DFT_OBJ_SUBDIR='objects' ;; 27729 (*) 27730 DFT_OBJ_SUBDIR='obj_s' ;; 27731 esac 27732 esac 27733echo "$as_me:27730: result: $DFT_OBJ_SUBDIR" >&5 27734echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6 27735 27736if test "x$cf_with_cxx" = xyes ; then 27737echo "$as_me:27734: checking c++ library-dependency suffix" >&5 27738echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6 27739if test "$with_libtool" != "no"; then 27740 # libtool thinks it can make c++ shared libraries (perhaps only g++) 27741 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 27742elif test "$with_shared_cxx" != "no"; then 27743 # also for g++ users... 27744 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX 27745else 27746 # we normally make a static library because C/C++ library rules differ 27747 27748 case Xnormal in 27749 (Xlibtool) 27750 CXX_LIB_SUFFIX='.la' 27751 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27752 ;; 27753 (Xdebug) 27754 case "$cf_cv_system_name" in 27755 (*-msvc*) 27756 CXX_LIB_SUFFIX='_g.lib' 27757 ;; 27758 (*) 27759 CXX_LIB_SUFFIX='_g.a' 27760 ;; 27761 esac 27762 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27763 ;; 27764 (Xprofile) 27765 case "$cf_cv_system_name" in 27766 (*-msvc*) 27767 CXX_LIB_SUFFIX='_p.lib' 27768 ;; 27769 (*) 27770 CXX_LIB_SUFFIX='_p.a' 27771 ;; 27772 esac 27773 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27774 ;; 27775 (Xshared) 27776 case "$cf_cv_system_name" in 27777 (aix[5-7]*) 27778 CXX_LIB_SUFFIX='.so' 27779 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27780 ;; 27781 (*-msvc*) 27782 CXX_LIB_SUFFIX='.dll' 27783 CXX_DEP_SUFFIX='.dll.lib' 27784 ;; 27785 (cygwin*|msys*|mingw*) 27786 CXX_LIB_SUFFIX='.dll' 27787 CXX_DEP_SUFFIX='.dll.a' 27788 ;; 27789 (darwin*) 27790 CXX_LIB_SUFFIX='.dylib' 27791 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27792 ;; 27793 (hpux*) 27794 case "$target" in 27795 (ia64*) 27796 CXX_LIB_SUFFIX='.so' 27797 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27798 ;; 27799 (*) 27800 CXX_LIB_SUFFIX='.sl' 27801 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27802 ;; 27803 esac 27804 ;; 27805 (*) 27806 CXX_LIB_SUFFIX='.so' 27807 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27808 ;; 27809 esac 27810 ;; 27811 (*) 27812 case "$target" in 27813 (*-msvc*) 27814 CXX_LIB_SUFFIX='.lib' 27815 ;; 27816 (*) 27817 CXX_LIB_SUFFIX='.a' 27818 ;; 27819 esac 27820 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX 27821 ;; 27822 esac 27823 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 27824 then 27825 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}" 27826 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}" 27827 fi 27828 27829fi 27830echo "$as_me:27827: result: $CXX_LIB_SUFFIX" >&5 27831echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6 27832 27833fi 27834 27835# do not want -ldl in build except as needed for -lncurses dependency 27836if test "x$with_dlsym" = xyes ; then 27837if test "$DFT_LWR_MODEL" = shared || \ 27838 test "$DFT_LWR_MODEL" = libtool ; then 27839 27840# remove dl library from $LIBS 27841LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27842 27843fi 27844fi 27845### Set up low-level terminfo dependencies for makefiles. 27846 27847# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but 27848# do not need libdl 27849TICS_LIST= 27850if test "x$with_dlsym" = xyes ; then 27851 27852# remove dl library from $SHLIB_LIST 27853TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27854 27855fi 27856 27857USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}" 27858USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}" 27859USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version} 27860if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}" 27861then 27862 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}" 27863fi 27864 27865if test "$with_ticlib" != no ; then 27866 27867 if test "x$with_ticlib" != xyes ; then 27868 TICS_NAME=$with_ticlib 27869 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`" 27870 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27871 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27872 TICS_LIB_SUFFIX="${with_ticlib}" 27873 else 27874 TICS_SUFFIX=${DFT_LIB_SUFFIX} 27875 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}" 27876 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}" 27877 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}" 27878 fi 27879 TICS_LDFLAGS="-L${LIB_DIR}" 27880 TICS_LIBS="-l${TICS_ARG_SUFFIX}" 27881else 27882 TICS_SUFFIX=${DFT_LIB_SUFFIX} 27883 TICS_LDFLAGS="-L${LIB_DIR}" 27884 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}" 27885fi 27886 27887if test "$with_termlib" != no ; then 27888 27889 if test "x$with_termlib" != xyes ; then 27890 TINFO_NAME=$with_termlib 27891 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`" 27892 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27893 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`" 27894 TINFO_LIB_SUFFIX="${with_termlib}" 27895 else 27896 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 27897 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}" 27898 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}" 27899 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}" 27900 fi 27901 27902 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 27903 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}" 27904 if test "$DFT_LWR_MODEL" = "libtool"; then 27905 TEST_ARGS="${TEST_DEPS}" 27906 TEST_ARG2="${TEST_DEP2}" 27907 TINFO_LDFLAGS="-L${LIB_DIR}" 27908 TINFO_LIBS="$TEST_ARGS" 27909 TICS_LIST="$SHLIB_LIST $TEST_ARGS" 27910 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS" 27911 else 27912 TEST_ARGS="-l${TINFO_ARG_SUFFIX}" 27913 TEST_ARG2="-l${TINFO_ARG_SUFFIX}" 27914 if test "x$with_term_driver" != xno ; then 27915 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}" 27916 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}" 27917 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS" 27918 else 27919 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 27920 TINFO_LIBS="$TEST_ARGS" 27921 fi 27922 TINFO_LDFLAGS="-L${LIB_DIR}" 27923 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}" 27924 fi 27925else 27926 # the next lines are needed for linking libtic over libncurses 27927 TINFO_NAME=${LIB_NAME} 27928 TINFO_SUFFIX=${DFT_LIB_SUFFIX} 27929 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX} 27930 if test "x$with_tic_depends" = xyes ; then 27931 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}" 27932 else 27933 TICS_LIST="$SHLIB_LIST" 27934 fi 27935 27936 TINFO_LDFLAGS="-L${LIB_DIR}" 27937 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}" 27938fi 27939 27940if test "$DFT_LWR_MODEL" = shared ; then 27941 case "$cf_cv_system_name" in 27942 (cygwin*|msys*) 27943 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll" 27944 TINFO_SUFFIX=.dll 27945 ;; 27946 esac 27947fi 27948 27949if test "x$with_dlsym" = xyes ; then 27950 27951# remove dl library from $TICS_LIST 27952TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` 27953 27954fi 27955 27956if test "$DFT_LWR_MODEL" = "libtool"; then 27957 OBJEXT=lo 27958fi 27959 27960# needed for Ada95 27961TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'` 27962 27963case "$DFT_LWR_MODEL" in 27964(normal|debug|profile) 27965 27966if test "$GCC" = yes ; then 27967 case "$cf_cv_system_name" in 27968 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) 27969 LDFLAGS_STATIC= 27970 LDFLAGS_SHARED= 27971 ;; 27972 (*) # normally, except when broken 27973 LDFLAGS_STATIC=-static 27974 LDFLAGS_SHARED=-dynamic 27975 ;; 27976 esac 27977else 27978 case "$cf_cv_system_name" in 27979 (aix[4-7]*) # from ld manpage 27980 LDFLAGS_STATIC=-bstatic 27981 LDFLAGS_SHARED=-bdynamic 27982 ;; 27983 (hpux*) # from ld manpage for hpux10.20, hpux11.11 27984 # We could also use just "archive" and "shared". 27985 LDFLAGS_STATIC=-Wl,-a,archive_shared 27986 LDFLAGS_SHARED=-Wl,-a,shared_archive 27987 ;; 27988 (irix*) # from ld manpage IRIX64 27989 LDFLAGS_STATIC=-Bstatic 27990 LDFLAGS_SHARED=-Bdynamic 27991 ;; 27992 (osf[45]*) # from ld manpage osf4.0d, osf5.1 27993 # alternative "-oldstyle_liblookup" (not in cc manpage) 27994 LDFLAGS_STATIC=-noso 27995 LDFLAGS_SHARED=-so_archive 27996 ;; 27997 (solaris2*) 27998 LDFLAGS_STATIC=-Bstatic 27999 LDFLAGS_SHARED=-Bdynamic 28000 ;; 28001 esac 28002fi 28003 28004if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED" 28005then 28006 echo "$as_me:28003: checking if linker supports switching between static/dynamic" >&5 28007echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6 28008 28009 rm -f libconftest.a 28010 cat >conftest.$ac_ext <<EOF 28011#line 28008 "configure" 28012#include <stdio.h> 28013int cf_ldflags_static(FILE *fp) { return fflush(fp); } 28014EOF 28015 if { (eval echo "$as_me:28012: \"$ac_compile\"") >&5 28016 (eval $ac_compile) 2>&5 28017 ac_status=$? 28018 echo "$as_me:28015: \$? = $ac_status" >&5 28019 (exit "$ac_status"); } ; then 28020 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null 28021 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null 28022 fi 28023 rm -f conftest.* 28024 28025 cf_save_LIBS="$LIBS" 28026 28027 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS" 28028 cat >"conftest.$ac_ext" <<_ACEOF 28029#line 28026 "configure" 28030#include "confdefs.h" 28031 28032#line 28029 "configure" 28033#include <stdio.h> 28034int cf_ldflags_static(FILE *fp); 28035 28036int 28037main (void) 28038{ 28039 28040 return cf_ldflags_static(stdin); 28041 28042 ; 28043 return 0; 28044} 28045_ACEOF 28046rm -f "conftest.$ac_objext" "conftest$ac_exeext" 28047if { (eval echo "$as_me:28044: \"$ac_link\"") >&5 28048 (eval $ac_link) 2>&5 28049 ac_status=$? 28050 echo "$as_me:28047: \$? = $ac_status" >&5 28051 (exit "$ac_status"); } && 28052 { ac_try='test -s "conftest$ac_exeext"' 28053 { (eval echo "$as_me:28050: \"$ac_try\"") >&5 28054 (eval $ac_try) 2>&5 28055 ac_status=$? 28056 echo "$as_me:28053: \$? = $ac_status" >&5 28057 (exit "$ac_status"); }; }; then 28058 28059 # some linkers simply ignore the -dynamic 28060 case x`file "conftest$ac_exeext" 2>/dev/null` in 28061 (*static*) 28062 cf_ldflags_static=no 28063 ;; 28064 (*) 28065 cf_ldflags_static=yes 28066 ;; 28067 esac 28068 28069else 28070 echo "$as_me: failed program was:" >&5 28071cat "conftest.$ac_ext" >&5 28072cf_ldflags_static=no 28073fi 28074rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" 28075 28076 rm -f libconftest.* 28077 LIBS="$cf_save_LIBS" 28078 28079 echo "$as_me:28076: result: $cf_ldflags_static" >&5 28080echo "${ECHO_T}$cf_ldflags_static" >&6 28081 28082 if test "$cf_ldflags_static" != yes 28083 then 28084 LDFLAGS_STATIC= 28085 LDFLAGS_SHARED= 28086 fi 28087else 28088 LDFLAGS_STATIC= 28089 LDFLAGS_SHARED= 28090fi 28091 28092 ;; 28093esac 28094 28095echo "$as_me:28092: checking where we will install curses.h" >&5 28096echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6 28097 28098includesubdir= 28099if test "$with_overwrite" = no && \ 28100 { test "x$includedir" = 'x${prefix}/include' || \ 28101 test "x$includedir" = "x${prefix}/include"; } 28102then 28103 includesubdir="/ncurses${USE_LIB_SUFFIX}" 28104fi 28105echo "$as_me:28102: result: ${includedir}${includesubdir}" >&5 28106echo "${ECHO_T}${includedir}${includesubdir}" >&6 28107 28108### Resolve a conflict between normal and wide-curses by forcing applications 28109### that will need libutf8 to add it to their configure script. 28110if test "$with_overwrite" != no ; then 28111if test "$NCURSES_LIBUTF8" = 1 ; then 28112 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)' 28113 { echo "$as_me:28110: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5 28114echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;} 28115fi 28116fi 28117WITH_OVERWRITE=$with_overwrite 28118 28119### At least on MinGW a shared library build without libtool 28120### requires adding the additional libs to the link list. 28121case "$cf_cv_system_name" in 28122(*mingw32*|*mingw64*) 28123 if test "$DFT_LWR_MODEL" != "libtool"; then 28124 SHLIB_LIST="$SHLIB_LIST ${LIBS}" 28125 fi 28126 ;; 28127*) ;; 28128esac 28129 28130# used to separate tack out of the tree 28131NCURSES_TREE= 28132 28133### predefined stuff for the test programs 28134 28135cat >>confdefs.h <<\EOF 28136#define HAVE_SLK_COLOR 1 28137EOF 28138 28139# pkgsrc uses these 28140 28141echo "$as_me:28138: checking for desired basename for form library" >&5 28142echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6 28143 28144# Check whether --with-form-libname or --without-form-libname was given. 28145if test "${with_form_libname+set}" = set; then 28146 withval="$with_form_libname" 28147 with_lib_basename=$withval 28148else 28149 with_lib_basename=form 28150fi; 28151FORM_NAME="$with_lib_basename" 28152 28153case "x$FORM_NAME" in 28154(x|xno|xnone|xyes) 28155 FORM_NAME=form 28156 ;; 28157(*) 28158 ;; 28159esac 28160 28161echo "$as_me:28158: result: $FORM_NAME" >&5 28162echo "${ECHO_T}$FORM_NAME" >&6 28163 28164echo "$as_me:28161: checking for desired basename for menu library" >&5 28165echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6 28166 28167# Check whether --with-menu-libname or --without-menu-libname was given. 28168if test "${with_menu_libname+set}" = set; then 28169 withval="$with_menu_libname" 28170 with_lib_basename=$withval 28171else 28172 with_lib_basename=menu 28173fi; 28174MENU_NAME="$with_lib_basename" 28175 28176case "x$MENU_NAME" in 28177(x|xno|xnone|xyes) 28178 MENU_NAME=menu 28179 ;; 28180(*) 28181 ;; 28182esac 28183 28184echo "$as_me:28181: result: $MENU_NAME" >&5 28185echo "${ECHO_T}$MENU_NAME" >&6 28186 28187echo "$as_me:28184: checking for desired basename for panel library" >&5 28188echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6 28189 28190# Check whether --with-panel-libname or --without-panel-libname was given. 28191if test "${with_panel_libname+set}" = set; then 28192 withval="$with_panel_libname" 28193 with_lib_basename=$withval 28194else 28195 with_lib_basename=panel 28196fi; 28197PANEL_NAME="$with_lib_basename" 28198 28199case "x$PANEL_NAME" in 28200(x|xno|xnone|xyes) 28201 PANEL_NAME=panel 28202 ;; 28203(*) 28204 ;; 28205esac 28206 28207echo "$as_me:28204: result: $PANEL_NAME" >&5 28208echo "${ECHO_T}$PANEL_NAME" >&6 28209 28210echo "$as_me:28207: checking for desired basename for cxx library" >&5 28211echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6 28212 28213# Check whether --with-cxx-libname or --without-cxx-libname was given. 28214if test "${with_cxx_libname+set}" = set; then 28215 withval="$with_cxx_libname" 28216 with_lib_basename=$withval 28217else 28218 with_lib_basename=ncurses++ 28219fi; 28220CXX_NAME="$with_lib_basename" 28221 28222case "x$CXX_NAME" in 28223(x|xno|xnone|xyes) 28224 CXX_NAME=ncurses++ 28225 ;; 28226(*) 28227 ;; 28228esac 28229 28230echo "$as_me:28227: result: $CXX_NAME" >&5 28231echo "${ECHO_T}$CXX_NAME" >&6 28232 28233### Construct the list of subdirectories for which we'll customize makefiles 28234### with the appropriate compile-rules. 28235 28236echo "$as_me:28233: checking for src modules" >&5 28237echo $ECHO_N "checking for src modules... $ECHO_C" >&6 28238 28239# dependencies and linker-arguments for test-programs 28240TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS" 28241TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2" 28242if test "$DFT_LWR_MODEL" = "libtool"; then 28243 TEST_ARGS="${TEST_DEPS}" 28244 TEST_ARG2="${TEST_DEP2}" 28245else 28246 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS" 28247 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2" 28248fi 28249 28250PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}" 28251cf_cv_src_modules= 28252for cf_dir in $modules_to_build 28253do 28254 if test -f "$srcdir/$cf_dir/modules" ; then 28255 28256 # We may/may not have tack in the distribution, though the 28257 # makefile is. 28258 if test "$cf_dir" = tack ; then 28259 if test "x$cf_with_tack" != "xyes"; then 28260 continue 28261 fi 28262 fi 28263 28264 if test -z "$cf_cv_src_modules"; then 28265 cf_cv_src_modules=$cf_dir 28266 else 28267 cf_cv_src_modules="$cf_cv_src_modules $cf_dir" 28268 fi 28269 28270 # Make the ncurses_cfg.h file record the library interface files as 28271 # well. These are header files that are the same name as their 28272 # directory. Ncurses is the only library that does not follow 28273 # that pattern. 28274 if test "$cf_dir" = tack ; then 28275 continue 28276 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then 28277 28278cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 28279 28280 cat >>confdefs.h <<EOF 28281#define HAVE_${cf_have_include}_H 1 28282EOF 28283 28284 cat >>confdefs.h <<EOF 28285#define HAVE_LIB${cf_have_include} 1 28286EOF 28287 28288cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 28289 28290eval TEST_ROOT="\$${cf_map_lib_basename}_NAME" 28291 28292 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS" 28293 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2" 28294 if test "$DFT_LWR_MODEL" = "libtool"; then 28295 TEST_ARGS="${TEST_DEPS}" 28296 TEST_ARG2="${TEST_DEP2}" 28297 else 28298 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS" 28299 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2" 28300 fi 28301 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}" 28302 fi 28303 fi 28304done 28305echo "$as_me:28302: result: $cf_cv_src_modules" >&5 28306echo "${ECHO_T}$cf_cv_src_modules" >&6 28307 28308TEST_ARGS="-L${LIB_DIR} $TEST_ARGS" 28309TEST_ARG2="-L${LIB_2ND} $TEST_ARG2" 28310 28311SRC_SUBDIRS= 28312if test "x$cf_with_manpages" != xno ; then 28313 SRC_SUBDIRS="$SRC_SUBDIRS man" 28314fi 28315SRC_SUBDIRS="$SRC_SUBDIRS include" 28316for cf_dir in $cf_cv_src_modules 28317do 28318 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir" 28319done 28320if test "x$cf_with_tests" != "xno" ; then 28321 SRC_SUBDIRS="$SRC_SUBDIRS test" 28322fi 28323# always make this, to install the ncurses-config script 28324SRC_SUBDIRS="$SRC_SUBDIRS misc" 28325if test "$cf_with_cxx_binding" != no; then 28326 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}" 28327 SRC_SUBDIRS="$SRC_SUBDIRS c++" 28328fi 28329 28330test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX" 28331test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX" 28332 28333ADA_SUBDIRS= 28334if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then 28335 SRC_SUBDIRS="$SRC_SUBDIRS Ada95" 28336 ADA_SUBDIRS="gen src" 28337 if test "x$cf_with_tests" != "xno" ; then 28338 ADA_SUBDIRS="$ADA_SUBDIRS samples" 28339 fi 28340fi 28341 28342SUB_MAKEFILES= 28343for cf_dir in $SRC_SUBDIRS 28344do 28345 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile" 28346done 28347 28348if test -n "$ADA_SUBDIRS"; then 28349 for cf_dir in $ADA_SUBDIRS 28350 do 28351 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile" 28352 done 28353 28354fi 28355 28356if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 28357 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in" 28358 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in" 28359 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in" 28360fi 28361 28362DIRS_TO_MAKE="lib" 28363for cf_item in $cf_list_models 28364do 28365 28366 case $cf_item in 28367 (libtool) cf_subdir='obj_lo' ;; 28368 (normal) cf_subdir='objects' ;; 28369 (debug) cf_subdir='obj_g' ;; 28370 (profile) cf_subdir='obj_p' ;; 28371 (shared) 28372 case "$cf_cv_system_name" in 28373 (cygwin|msys) 28374 cf_subdir='objects' ;; 28375 (*) 28376 cf_subdir='obj_s' ;; 28377 esac 28378 esac 28379 28380 for cf_item2 in $DIRS_TO_MAKE 28381 do 28382 test "$cf_item2" = "$cf_subdir" && break 28383 done 28384 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir" 28385done 28386for cf_dir in $DIRS_TO_MAKE 28387do 28388 test ! -d "$cf_dir" && mkdir "$cf_dir" 28389done 28390 28391# symbols that differ when compiling Ada95 by itself. 28392NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib' 28393 28394# values to use as strings 28395 28396cat >>confdefs.h <<EOF 28397#define NCURSES_PATHSEP '$PATH_SEPARATOR' 28398EOF 28399 28400cat >>confdefs.h <<EOF 28401#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}" 28402EOF 28403 28404### Define substitutions for header files to avoid name-pollution 28405 28406if test "x$cf_cv_have_tcgetattr" = xyes ; then 28407 HAVE_TCGETATTR=1 28408else 28409 HAVE_TCGETATTR=0 28410fi 28411 28412if test "x$ac_cv_header_stdint_h" = xyes ; then 28413 HAVE_STDINT_H=1 28414else 28415 HAVE_STDINT_H=0 28416fi 28417 28418if test "x$ac_cv_header_termio_h" = xyes ; then 28419 HAVE_TERMIO_H=1 28420else 28421 HAVE_TERMIO_H=0 28422fi 28423 28424if test "x$ac_cv_header_termios_h" = xyes ; then 28425 HAVE_TERMIOS_H=1 28426else 28427 HAVE_TERMIOS_H=0 28428fi 28429 28430################################################################################ 28431test "x$use_database" = xyes && \ 28432SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in" 28433 28434SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in" 28435SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in" 28436 28437if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then 28438SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in" 28439fi 28440 28441if test "x$cf_with_tests" != xno ; then 28442 MAKE_TESTS= 28443else 28444 MAKE_TESTS="#" 28445fi 28446 28447ADAHTML_DIR=../../doc/html/ada 28448 28449# workaround for OS/2 (20151017) 28450case "$cf_cv_system_name" in 28451(os2*) 28452 LIBTOOL_OPTS_CXX="-os2dllname ncurs++" 28453 ;; 28454(*) 28455 LIBTOOL_OPTS_CXX= 28456 ;; 28457esac 28458 28459# workaround for g++ versus Solaris (20131116) 28460case "$cf_cv_system_name" in 28461(solaris2*) 28462 case "x$CPPFLAGS" in 28463 (*-D_XOPEN_SOURCE_EXTENDED*) 28464 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6 28465 28466echo "${as_me:-configure}:28463: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5 28467 28468 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" 28469 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'` 28470 ;; 28471 esac 28472 ;; 28473esac 28474 28475# Help to automatically enable the extended curses features when using either 28476# the *-config or the ".pc" files by adding defines. 28477echo "$as_me:28474: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5 28478echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6 28479PKG_CFLAGS= 28480for cf_loop1 in $CPPFLAGS_after_XOPEN 28481do 28482 cf_found=no 28483 for cf_loop2 in $CPPFLAGS_before_XOPEN 28484 do 28485 if test "x$cf_loop1" = "x$cf_loop2" 28486 then 28487 cf_found=yes 28488 break 28489 fi 28490 done 28491 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1" 28492done 28493echo "$as_me:28490: result: $PKG_CFLAGS" >&5 28494echo "${ECHO_T}$PKG_CFLAGS" >&6 28495 28496# AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this. 28497case "x$NCURSES_OSPEED" in 28498(*short*) 28499 cf_compatible=1 28500 ;; 28501(*) 28502 cf_compatible=0 28503 ;; 28504esac 28505 28506cat >>confdefs.h <<EOF 28507#define NCURSES_OSPEED_COMPAT $cf_compatible 28508EOF 28509 28510case "x$cf_cv_typeof_chtype" in 28511(xshort|xint|xlong) 28512 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype" 28513 ;; 28514esac 28515 28516case "x$cf_cv_typeof_mmask_t" in 28517(xshort|xint|xlong) 28518 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t" 28519 ;; 28520esac 28521 28522# substitute into misc/Makefile to suppress 28523# (un)install.data from the 28524# (un)install rules. 28525if test "x$cf_with_db_install" = "xno"; then 28526 MISC_INSTALL_DATA= 28527 MISC_UNINSTALL_DATA= 28528else 28529 MISC_INSTALL_DATA=install.data 28530 MISC_UNINSTALL_DATA=uninstall.data 28531fi 28532 28533if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then 28534 MAKE_DATABASE="#" 28535else 28536 MAKE_DATABASE="$MAKE_TERMINFO" 28537fi 28538 28539if test -n "$PACKAGE" 28540then 28541 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}" 28542 export PACKAGE 28543 echo "package: $PACKAGE" 28544fi 28545 28546UNALTERED_SYMS= 28547cf_filter_syms=no 28548 28549if test -n "$RESULTING_SYMS" 28550then 28551 cf_filter_syms=$cf_dft_filter_syms 28552 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6 28553 28554echo "${as_me:-configure}:28551: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5 28555 28556fi 28557 28558if test "x$WILDCARD_SYMS" = xno 28559then 28560 cf_filter_syms=yes 28561fi 28562 28563test "x$cf_with_trace" = xyes && NCURSES_INLINE= 28564 28565UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'` 28566if test "$cf_filter_syms" = yes 28567then 28568 RESULTING_SYMS=resulting.map 28569fi 28570 28571if test "x$cross_compiling" = xyes ; then 28572 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)' 28573 CHECK_BUILD="#" 28574else 28575 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)' 28576 CHECK_BUILD= 28577fi 28578 28579# This is used for the *-config script and *.pc data files. 28580 28581echo "$as_me:28578: checking for linker search path" >&5 28582echo $ECHO_N "checking for linker search path... $ECHO_C" >&6 28583if test "${cf_cv_ld_searchpath+set}" = set; then 28584 echo $ECHO_N "(cached) $ECHO_C" >&6 28585else 28586 28587if test "$cross_compiling" != yes ; then 28588 28589# GNU binutils' ld does not involve permissions which may stop ldconfig. 28590cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u` 28591 28592# The -NX options tell newer versions of Linux ldconfig to not attempt to 28593# update the cache, which makes it run faster. 28594test -z "$cf_pathlist" && \ 28595 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u` 28596 28597test -z "$cf_pathlist" && 28598 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u` 28599 28600# This works with OpenBSD 6.5, which lists only filenames 28601test -z "$cf_pathlist" && 28602 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u` 28603 28604if test -z "$cf_pathlist" 28605then 28606 # dyld default path with MacOS 28607 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin 28608 then 28609 # do this to bypass check 28610 cf_cv_ld_searchpath='$HOME/lib' 28611 cf_pathlist="/usr/local/lib /lib /usr/lib" 28612 fi 28613fi 28614 28615if test -z "$cf_pathlist" 28616then 28617 # Solaris is "SunOS" 28618 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS 28619 then 28620 case x`(isainfo -b)` in 28621 (x64) 28622 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64" 28623 ;; 28624 (x32) 28625 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib" 28626 cf_pathlist="$cf_pathlist /lib /usr/lib" 28627 ;; 28628 (*) 28629 { echo "$as_me:28626: WARNING: problem with Solaris architecture" >&5 28630echo "$as_me: WARNING: problem with Solaris architecture" >&2;} 28631 ;; 28632 esac 28633 fi 28634fi 28635 28636if test -z "$cf_pathlist" 28637then 28638 # HP-UX 28639 if test x"`uname -s`" = xHP-UX 28640 then 28641 case x`getconf LONG_BIT` in 28642 (x64) 28643 cf_pathlist="/usr/lib/hpux64" 28644 ;; 28645 (x*) 28646 cf_pathlist="/usr/lib/hpux32" 28647 ;; 28648 esac 28649 fi 28650fi 28651 28652fi 28653 28654# If nothing else, assume it is conventional 28655test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib" 28656 28657# Finally, check that this is only directories 28658for cf_path in $0 $cf_pathlist 28659do 28660 if test -d "$cf_path"; then 28661 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} " 28662 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}" 28663 fi 28664done 28665 28666# Ensure that it is nonempty 28667test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib 28668 28669fi 28670echo "$as_me:28667: result: $cf_cv_ld_searchpath" >&5 28671echo "${ECHO_T}$cf_cv_ld_searchpath" >&6 28672 28673LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'` 28674 28675cat >>confdefs.h <<\EOF 28676#define HAVE_CURSES_DATA_BOOLNAMES 1 28677EOF 28678 28679ac_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" 28680ac_config_commands="$ac_config_commands default" 28681cat >confcache <<\_ACEOF 28682# This file is a shell script that caches the results of configure 28683# tests run on this system so they can be shared between configure 28684# scripts and configure runs, see configure's option --config-cache. 28685# It is not useful on other systems. If it contains results you don't 28686# want to keep, you may remove or edit it. 28687# 28688# config.status only pays attention to the cache file if you give it 28689# the --recheck option to rerun configure. 28690# 28691# `ac_cv_env_foo' variables (set or unset) will be overriden when 28692# loading this file, other *unset* `ac_cv_foo' will be assigned the 28693# following values. 28694 28695_ACEOF 28696 28697# The following way of writing the cache mishandles newlines in values, 28698# but we know of no workaround that is simple, portable, and efficient. 28699# So, don't put newlines in cache variables' values. 28700# Ultrix sh set writes to stderr and can't be redirected directly, 28701# and sets the high bit in the cache file unless we assign to the vars. 28702{ 28703 (set) 2>&1 | 28704 case `(ac_space=' '; set | grep ac_space) 2>&1` in 28705 *ac_space=\ *) 28706 # `set' does not quote correctly, so add quotes (double-quote 28707 # substitution turns \\\\ into \\, and sed turns \\ into \). 28708 sed -n \ 28709 "s/'/'\\\\''/g; 28710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28711 ;; 28712 *) 28713 # `set' quotes correctly as required by POSIX, so do not add quotes. 28714 sed -n \ 28715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 28716 ;; 28717 esac; 28718} | 28719 sed ' 28720 t clear 28721 : clear 28722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 28723 t end 28724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28725 : end' >>confcache 28726if cmp -s $cache_file confcache; then :; else 28727 if test -w $cache_file; then 28728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 28729 cat confcache >$cache_file 28730 else 28731 echo "not updating unwritable cache $cache_file" 28732 fi 28733fi 28734rm -f confcache 28735 28736test "x$prefix" = xNONE && prefix=$ac_default_prefix 28737# Let make expand exec_prefix. 28738test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28739 28740# VPATH may cause trouble with some makes, so we remove $(srcdir), 28741# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28742# trailing colons and then remove the whole line if VPATH becomes empty 28743# (actually we leave an empty line to preserve line numbers). 28744if test "x$srcdir" = x.; then 28745 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28746s/:*\$(srcdir):*/:/; 28747s/:*\${srcdir}:*/:/; 28748s/:*@srcdir@:*/:/; 28749s/^\([^=]*=[ ]*\):*/\1/; 28750s/:*$//; 28751s/^[^=]*=[ ]*$//; 28752}' 28753fi 28754 28755DEFS=-DHAVE_CONFIG_H 28756 28757: "${CONFIG_STATUS=./config.status}" 28758ac_clean_files_save=$ac_clean_files 28759ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28760{ echo "$as_me:28757: creating $CONFIG_STATUS" >&5 28761echo "$as_me: creating $CONFIG_STATUS" >&6;} 28762cat >"$CONFIG_STATUS" <<_ACEOF 28763#! $SHELL 28764# Generated automatically by configure. 28765# Run this file to recreate the current configuration. 28766# Compiler output produced by configure, useful for debugging 28767# configure, is in config.log if it exists. 28768 28769debug=false 28770SHELL=\${CONFIG_SHELL-$SHELL} 28771ac_cs_invocation="\$0 \$@" 28772 28773CLICOLOR_FORCE= GREP_OPTIONS= 28774unset CLICOLOR_FORCE GREP_OPTIONS 28775_ACEOF 28776 28777cat >>"$CONFIG_STATUS" <<\_ACEOF 28778# Be Bourne compatible 28779if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28780 emulate sh 28781 NULLCMD=: 28782elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28783 set -o posix 28784fi 28785 28786# Name of the executable. 28787as_me=`echo "$0" |sed 's,.*[\\/],,'` 28788 28789if expr a : '\(a\)' >/dev/null 2>&1; then 28790 as_expr=expr 28791else 28792 as_expr=false 28793fi 28794 28795rm -f conf$$ conf$$.exe conf$$.file 28796echo >conf$$.file 28797if ln -s conf$$.file conf$$ 2>/dev/null; then 28798 # We could just check for DJGPP; but this test a) works b) is more generic 28799 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 28800 if test -f conf$$.exe; then 28801 # Don't use ln at all; we don't have any links 28802 as_ln_s='cp -p' 28803 else 28804 as_ln_s='ln -s' 28805 fi 28806elif ln conf$$.file conf$$ 2>/dev/null; then 28807 as_ln_s=ln 28808else 28809 as_ln_s='cp -p' 28810fi 28811rm -f conf$$ conf$$.exe conf$$.file 28812 28813as_executable_p="test -f" 28814 28815# Support unset when possible. 28816if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28817 as_unset="unset" 28818else 28819 as_unset="false" 28820fi 28821 28822# NLS nuisances. 28823$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 28824$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 28825$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 28826$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 28827$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 28828$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 28829$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 28830$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 28831 28832# IFS 28833# We need space, tab and new line, in precisely that order. 28834as_nl=' 28835' 28836IFS=" $as_nl" 28837 28838# CDPATH. 28839$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 28840 28841exec 6>&1 28842 28843_ACEOF 28844 28845# Files that config.status was made for. 28846if test -n "$ac_config_files"; then 28847 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS" 28848fi 28849 28850if test -n "$ac_config_headers"; then 28851 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS" 28852fi 28853 28854if test -n "$ac_config_links"; then 28855 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS" 28856fi 28857 28858if test -n "$ac_config_commands"; then 28859 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS" 28860fi 28861 28862cat >>"$CONFIG_STATUS" <<\EOF 28863 28864ac_cs_usage="\ 28865\`$as_me' instantiates files from templates according to the 28866current configuration. 28867 28868Usage: $0 [OPTIONS] [FILE]... 28869 28870 -h, --help print this help, then exit 28871 -V, --version print version number, then exit 28872 -d, --debug don't remove temporary files 28873 --recheck update $as_me by reconfiguring in the same conditions 28874 --file=FILE[:TEMPLATE] 28875 instantiate the configuration file FILE 28876 --header=FILE[:TEMPLATE] 28877 instantiate the configuration header FILE 28878 28879Configuration files: 28880$config_files 28881 28882Configuration headers: 28883$config_headers 28884 28885Configuration commands: 28886$config_commands 28887 28888Report bugs to <dickey@invisible-island.net>." 28889EOF 28890 28891cat >>"$CONFIG_STATUS" <<EOF 28892ac_cs_version="\\ 28893config.status 28894configured by $0, generated by GNU Autoconf 2.52.20210509, 28895 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 28896 28897Copyright 2003-2020,2021 Thomas E. Dickey 28898Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 28899Free Software Foundation, Inc. 28900This config.status script is free software; the Free Software Foundation 28901gives unlimited permission to copy, distribute and modify it." 28902srcdir="$srcdir" 28903INSTALL="$INSTALL" 28904EOF 28905 28906cat >>"$CONFIG_STATUS" <<\EOF 28907# If no file are specified by the user, then we need to provide default 28908# value. By we need to know if files were specified by the user. 28909ac_need_defaults=: 28910while test $# != 0 28911do 28912 case $1 in 28913 --*=*) 28914 ac_option=`expr "x$1" : 'x\([^=]*\)='` 28915 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 28916 shift 28917 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 28918 shift 28919 ;; 28920 -*);; 28921 *) # This is not an option, so the user has probably given explicit 28922 # arguments. 28923 ac_need_defaults=false;; 28924 esac 28925 28926 case $1 in 28927 # Handling of the options. 28928EOF 28929cat >>"$CONFIG_STATUS" <<EOF 28930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28931 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 28932 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 28933EOF 28934cat >>"$CONFIG_STATUS" <<\EOF 28935 --version | --vers* | -V ) 28936 echo "$ac_cs_version"; exit 0 ;; 28937 --he | --h) 28938 # Conflict between --help and --header 28939 { { echo "$as_me:28936: error: ambiguous option: $1 28940Try \`$0 --help' for more information." >&5 28941echo "$as_me: error: ambiguous option: $1 28942Try \`$0 --help' for more information." >&2;} 28943 { (exit 1); exit 1; }; };; 28944 --help | --hel | -h ) 28945 echo "$ac_cs_usage"; exit 0 ;; 28946 --debug | --d* | -d ) 28947 debug=: ;; 28948 --file | --fil | --fi | --f ) 28949 shift 28950 CONFIG_FILES="$CONFIG_FILES $1" 28951 ac_need_defaults=false;; 28952 --header | --heade | --head | --hea ) 28953 shift 28954 CONFIG_HEADERS="$CONFIG_HEADERS $1" 28955 ac_need_defaults=false;; 28956 28957 # This is an error. 28958 -*) { { echo "$as_me:28955: error: unrecognized option: $1 28959Try \`$0 --help' for more information." >&5 28960echo "$as_me: error: unrecognized option: $1 28961Try \`$0 --help' for more information." >&2;} 28962 { (exit 1); exit 1; }; } ;; 28963 28964 *) ac_config_targets="$ac_config_targets $1" ;; 28965 28966 esac 28967 shift 28968done 28969 28970exec 5>>config.log 28971cat >&5 << _ACEOF 28972 28973## ----------------------- ## 28974## Running config.status. ## 28975## ----------------------- ## 28976 28977This file was extended by $as_me 2.52.20210509, executed with 28978 CONFIG_FILES = $CONFIG_FILES 28979 CONFIG_HEADERS = $CONFIG_HEADERS 28980 CONFIG_LINKS = $CONFIG_LINKS 28981 CONFIG_COMMANDS = $CONFIG_COMMANDS 28982 > "$ac_cs_invocation" 28983on `(hostname || uname -n) 2>/dev/null | sed 1q` 28984 28985_ACEOF 28986EOF 28987 28988cat >>"$CONFIG_STATUS" <<EOF 28989# 28990# INIT-COMMANDS section. 28991# 28992 28993### Special initialization commands, used to pass information from the 28994### configuration-run into config.status 28995 28996ALTERNATE_SYMS="$ALTERNATE_SYMS" 28997AWK="$AWK" 28998CXX_NAME="$CXX_NAME" 28999DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX" 29000DFT_LWR_MODEL="$DFT_LWR_MODEL" 29001ECHO_LD="$ECHO_LD" 29002EXTRA_SUFFIX="$EXTRA_SUFFIX" 29003FORM_NAME="$FORM_NAME" 29004LDCONFIG="$LDCONFIG" 29005LIBTOOL_VERSION="$LIBTOOL_VERSION" 29006LIB_NAME="$LIB_NAME" 29007LIB_PREFIX="$LIB_PREFIX" 29008LIB_SUBSETS="$LIB_SUBSETS" 29009LIB_SUFFIX="$LIB_SUFFIX" 29010LIB_TRACING="$LIB_TRACING" 29011LN_S="$LN_S" 29012MAKE_TERMINFO="$MAKE_TERMINFO" 29013MENU_NAME="$MENU_NAME" 29014NCURSES_MAJOR="$NCURSES_MAJOR" 29015NCURSES_MINOR="$NCURSES_MINOR" 29016NCURSES_OSPEED="$NCURSES_OSPEED" 29017NCURSES_PATCH="$NCURSES_PATCH" 29018PANEL_NAME="$PANEL_NAME" 29019SRC_SUBDIRS="$SRC_SUBDIRS" 29020TERMINFO="$TERMINFO" 29021TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX" 29022TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX" 29023TICS_NAME="$TICS_NAME" 29024TICS_SUFFIX="$TICS_SUFFIX" 29025TIC_PATH="$TIC_PATH" 29026TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX" 29027TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX" 29028TINFO_NAME="$TINFO_NAME" 29029TINFO_SUFFIX="$TINFO_SUFFIX" 29030UNALTERED_SYMS="$UNALTERED_SYMS" 29031USE_ARG_SUFFIX="$USE_ARG_SUFFIX" 29032USE_CFG_SUFFIX="$USE_CFG_SUFFIX" 29033USE_LIB_SUFFIX="$USE_LIB_SUFFIX" 29034USE_OLD_MAKERULES="$USE_OLD_MAKERULES" 29035WILDCARD_SYMS="$WILDCARD_SYMS" 29036WITH_CURSES_H="$with_curses_h" 29037WITH_ECHO="${enable_echo:=yes}" 29038WITH_OVERWRITE="$with_overwrite" 29039cf_LIST_MODELS="$cf_list_models" 29040cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE 29041cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD 29042cf_cv_abi_version="$cf_cv_abi_version" 29043cf_cv_do_relink="$cf_cv_do_relink" 29044cf_cv_do_reranlib="$cf_cv_do_reranlib" 29045cf_cv_do_symlinks="$cf_cv_do_symlinks" 29046cf_cv_enable_lp64="$cf_cv_enable_lp64" 29047cf_cv_enable_opaque="$cf_cv_enable_opaque" 29048cf_cv_make_PHONY="$cf_cv_make_PHONY" 29049cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o 29050cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o 29051cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct 29052cf_cv_rel_version="$cf_cv_rel_version" 29053cf_cv_rm_so_locs="$cf_cv_rm_so_locs" 29054cf_cv_shared_soname='$cf_cv_shared_soname' 29055cf_cv_shlib_version="$cf_cv_shlib_version" 29056cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix" 29057cf_cv_system_name="$cf_cv_system_name" 29058cf_cv_term_driver="$with_term_driver" 29059cf_with_ada="$cf_with_ada" 29060cf_with_cxx_binding="$cf_with_cxx_binding" 29061cf_with_db_install="$cf_with_db_install" 29062cf_with_manpages="$cf_with_manpages" 29063cf_with_tests="$cf_with_tests" 29064host="$host" 29065target="$target" 29066with_shared_cxx="$with_shared_cxx" 29067 29068EOF 29069 29070cat >>"$CONFIG_STATUS" <<\EOF 29071for ac_config_target in $ac_config_targets 29072do 29073 case "$ac_config_target" in 29074 # Handling of arguments. 29075 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;; 29076 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;; 29077 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;; 29078 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;; 29079 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;; 29080 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;; 29081 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29082 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 29083 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;; 29084 *) { { echo "$as_me:29081: error: invalid argument: $ac_config_target" >&5 29085echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 29086 { (exit 1); exit 1; }; };; 29087 esac 29088done 29089 29090# If the user did not use the arguments to specify the items to instantiate, 29091# then the envvar interface is used. Set only those that are not. 29092# We use the long form for the default assignment because of an extremely 29093# bizarre bug on SunOS 4.1.3. 29094if "$ac_need_defaults"; then 29095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 29098fi 29099 29100# Create a temporary directory, and hook for its removal unless debugging. 29101$debug || 29102{ 29103 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 29104 trap '{ (exit 1); exit 1; }' 1 2 13 15 29105} 29106 29107# Create a (secure) tmp directory for tmp files. 29108: ${TMPDIR=/tmp} 29109{ 29110 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 29111 test -n "$tmp" && test -d "$tmp" 29112} || 29113{ 29114 tmp=$TMPDIR/cs$$-$RANDOM 29115 (umask 077 && mkdir $tmp) 29116} || 29117{ 29118 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 29119 { (exit 1); exit 1; } 29120} 29121 29122EOF 29123 29124cat >>"$CONFIG_STATUS" <<EOF 29125 29126# 29127# CONFIG_FILES section. 29128# 29129 29130# No need to generate the scripts if there are no CONFIG_FILES. 29131# This happens for instance when ./config.status config.h 29132if test -n "\$CONFIG_FILES"; then 29133 # Protect against being on the right side of a sed subst in config.status. 29134 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 29135 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 29136s,@SHELL@,$SHELL,;t t 29137s,@exec_prefix@,$exec_prefix,;t t 29138s,@prefix@,$prefix,;t t 29139s,@program_transform_name@,$program_transform_name,;t t 29140s,@bindir@,$bindir,;t t 29141s,@sbindir@,$sbindir,;t t 29142s,@libexecdir@,$libexecdir,;t t 29143s,@datarootdir@,$datarootdir,;t t 29144s,@datadir@,$datadir,;t t 29145s,@sysconfdir@,$sysconfdir,;t t 29146s,@sharedstatedir@,$sharedstatedir,;t t 29147s,@localstatedir@,$localstatedir,;t t 29148s,@runstatedir@,$runstatedir,;t t 29149s,@libdir@,$libdir,;t t 29150s,@includedir@,$includedir,;t t 29151s,@oldincludedir@,$oldincludedir,;t t 29152s,@infodir@,$infodir,;t t 29153s,@mandir@,$mandir,;t t 29154s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 29155s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 29156s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 29157s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 29158s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 29159s,@build_alias@,$build_alias,;t t 29160s,@host_alias@,$host_alias,;t t 29161s,@target_alias@,$target_alias,;t t 29162s,@ECHO_C@,$ECHO_C,;t t 29163s,@ECHO_N@,$ECHO_N,;t t 29164s,@ECHO_T@,$ECHO_T,;t t 29165s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 29166s,@DEFS@,$DEFS,;t t 29167s,@LIBS@,$LIBS,;t t 29168s,@top_builddir@,$top_builddir,;t t 29169s,@GREP@,$GREP,;t t 29170s,@EGREP@,$EGREP,;t t 29171s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t 29172s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t 29173s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t 29174s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t 29175s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t 29176s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t 29177s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t 29178s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t 29179s,@VERSION@,$VERSION,;t t 29180s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t 29181s,@VERSION_MINOR@,$VERSION_MINOR,;t t 29182s,@VERSION_PATCH@,$VERSION_PATCH,;t t 29183s,@PACKAGE@,$PACKAGE,;t t 29184s,@build@,$build,;t t 29185s,@build_cpu@,$build_cpu,;t t 29186s,@build_vendor@,$build_vendor,;t t 29187s,@build_os@,$build_os,;t t 29188s,@host@,$host,;t t 29189s,@host_cpu@,$host_cpu,;t t 29190s,@host_vendor@,$host_vendor,;t t 29191s,@host_os@,$host_os,;t t 29192s,@target@,$target,;t t 29193s,@target_cpu@,$target_cpu,;t t 29194s,@target_vendor@,$target_vendor,;t t 29195s,@target_os@,$target_os,;t t 29196s,@FGREP@,$FGREP,;t t 29197s,@CC@,$CC,;t t 29198s,@CFLAGS@,$CFLAGS,;t t 29199s,@LDFLAGS@,$LDFLAGS,;t t 29200s,@CPPFLAGS@,$CPPFLAGS,;t t 29201s,@ac_ct_CC@,$ac_ct_CC,;t t 29202s,@EXEEXT@,$EXEEXT,;t t 29203s,@OBJEXT@,$OBJEXT,;t t 29204s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 29205s,@CPP@,$CPP,;t t 29206s,@LDCONFIG@,$LDCONFIG,;t t 29207s,@CXX@,$CXX,;t t 29208s,@CXXFLAGS@,$CXXFLAGS,;t t 29209s,@ac_ct_CXX@,$ac_ct_CXX,;t t 29210s,@AWK@,$AWK,;t t 29211s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 29212s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 29213s,@INSTALL_DATA@,$INSTALL_DATA,;t t 29214s,@LINT@,$LINT,;t t 29215s,@LINT_OPTS@,$LINT_OPTS,;t t 29216s,@LN_S@,$LN_S,;t t 29217s,@cf_config_suffix@,$cf_config_suffix,;t t 29218s,@PKG_CONFIG@,$PKG_CONFIG,;t t 29219s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 29220s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t 29221s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t 29222s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t 29223s,@SET_MAKE@,$SET_MAKE,;t t 29224s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t 29225s,@MAKE_PHONY@,$MAKE_PHONY,;t t 29226s,@CTAGS@,$CTAGS,;t t 29227s,@ETAGS@,$ETAGS,;t t 29228s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 29229s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 29230s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 29231s,@RANLIB@,$RANLIB,;t t 29232s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 29233s,@LD@,$LD,;t t 29234s,@ac_ct_LD@,$ac_ct_LD,;t t 29235s,@AR@,$AR,;t t 29236s,@ac_ct_AR@,$ac_ct_AR,;t t 29237s,@NM@,$NM,;t t 29238s,@ac_ct_NM@,$ac_ct_NM,;t t 29239s,@ARFLAGS@,$ARFLAGS,;t t 29240s,@DESTDIR@,$DESTDIR,;t t 29241s,@BUILD_CC@,$BUILD_CC,;t t 29242s,@BUILD_CPP@,$BUILD_CPP,;t t 29243s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 29244s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t 29245s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t 29246s,@BUILD_LIBS@,$BUILD_LIBS,;t t 29247s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 29248s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t 29249s,@cf_list_models@,$cf_list_models,;t t 29250s,@ABI_VERSION@,$ABI_VERSION,;t t 29251s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t 29252s,@LIBTOOL@,$LIBTOOL,;t t 29253s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t 29254s,@LT_UNDEF@,$LT_UNDEF,;t t 29255s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t 29256s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t 29257s,@LIB_CREATE@,$LIB_CREATE,;t t 29258s,@LIB_OBJECT@,$LIB_OBJECT,;t t 29259s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t 29260s,@LIB_PREP@,$LIB_PREP,;t t 29261s,@LIB_CLEAN@,$LIB_CLEAN,;t t 29262s,@LIB_COMPILE@,$LIB_COMPILE,;t t 29263s,@LIB_LINK@,$LIB_LINK,;t t 29264s,@LIB_INSTALL@,$LIB_INSTALL,;t t 29265s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t 29266s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t 29267s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t 29268s,@TICS_NAME@,$TICS_NAME,;t t 29269s,@TINFO_NAME@,$TINFO_NAME,;t t 29270s,@LIB_NAME@,$LIB_NAME,;t t 29271s,@LIB_PREFIX@,$LIB_PREFIX,;t t 29272s,@CC_G_OPT@,$CC_G_OPT,;t t 29273s,@CXX_G_OPT@,$CXX_G_OPT,;t t 29274s,@LD_MODEL@,$LD_MODEL,;t t 29275s,@shlibdir@,$shlibdir,;t t 29276s,@MAKE_DLLS@,$MAKE_DLLS,;t t 29277s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t 29278s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t 29279s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t 29280s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t 29281s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t 29282s,@LINK_PROGS@,$LINK_PROGS,;t t 29283s,@LINK_TESTS@,$LINK_TESTS,;t t 29284s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t 29285s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t 29286s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t 29287s,@INSTALL_LIB@,$INSTALL_LIB,;t t 29288s,@RPATH_LIST@,$RPATH_LIST,;t t 29289s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t 29290s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t 29291s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t 29292s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t 29293s,@cf_ldd_prog@,$cf_ldd_prog,;t t 29294s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t 29295s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t 29296s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t 29297s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t 29298s,@TIC@,$TIC,;t t 29299s,@ac_ct_TIC@,$ac_ct_TIC,;t t 29300s,@INFOCMP@,$INFOCMP,;t t 29301s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t 29302s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t 29303s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t 29304s,@WHICH_XTERM@,$WHICH_XTERM,;t t 29305s,@XTERM_KBS@,$XTERM_KBS,;t t 29306s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t 29307s,@TERMINFO@,$TERMINFO,;t t 29308s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t 29309s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t 29310s,@TERMPATH@,$TERMPATH,;t t 29311s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t 29312s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t 29313s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t 29314s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t 29315s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t 29316s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t 29317s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t 29318s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t 29319s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t 29320s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t 29321s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t 29322s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t 29323s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t 29324s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t 29325s,@RGB_PATH@,$RGB_PATH,;t t 29326s,@no_x11_rgb@,$no_x11_rgb,;t t 29327s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t 29328s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t 29329s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t 29330s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t 29331s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t 29332s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t 29333s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t 29334s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t 29335s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t 29336s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t 29337s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t 29338s,@NCURSES_CONST@,$NCURSES_CONST,;t t 29339s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t 29340s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t 29341s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t 29342s,@PTHREAD@,$PTHREAD,;t t 29343s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t 29344s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t 29345s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t 29346s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t 29347s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t 29348s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t 29349s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t 29350s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t 29351s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t 29352s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t 29353s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t 29354s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t 29355s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t 29356s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t 29357s,@ECHO_LT@,$ECHO_LT,;t t 29358s,@ECHO_LD@,$ECHO_LD,;t t 29359s,@RULE_CC@,$RULE_CC,;t t 29360s,@SHOW_CC@,$SHOW_CC,;t t 29361s,@ECHO_CC@,$ECHO_CC,;t t 29362s,@ECHO_LINK@,$ECHO_LINK,;t t 29363s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t 29364s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t 29365s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t 29366s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 29367s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t 29368s,@STDC_NORETURN@,$STDC_NORETURN,;t t 29369s,@ADAFLAGS@,$ADAFLAGS,;t t 29370s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t 29371s,@ADA_TRACE@,$ADA_TRACE,;t t 29372s,@MATH_LIB@,$MATH_LIB,;t t 29373s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t 29374s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t 29375s,@cf_cv_1UL@,$cf_cv_1UL,;t t 29376s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t 29377s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t 29378s,@TEST_LIBS@,$TEST_LIBS,;t t 29379s,@TEST_LIBS2@,$TEST_LIBS2,;t t 29380s,@CXXCPP@,$CXXCPP,;t t 29381s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t 29382s,@CXX_AR@,$CXX_AR,;t t 29383s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t 29384s,@CXXLIBS@,$CXXLIBS,;t t 29385s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t 29386s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t 29387s,@M4_exists@,$M4_exists,;t t 29388s,@cf_ada_make@,$cf_ada_make,;t t 29389s,@cf_ada_config@,$cf_ada_config,;t t 29390s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t 29391s,@cf_ada_config_C@,$cf_ada_config_C,;t t 29392s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t 29393s,@cf_compile_generics@,$cf_compile_generics,;t t 29394s,@cf_generic_objects@,$cf_generic_objects,;t t 29395s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t 29396s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t 29397s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t 29398s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t 29399s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t 29400s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t 29401s,@cf_ada_compiler@,$cf_ada_compiler,;t t 29402s,@cf_ada_package@,$cf_ada_package,;t t 29403s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t 29404s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t 29405s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t 29406s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t 29407s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t 29408s,@ACPPFLAGS@,$ACPPFLAGS,;t t 29409s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t 29410s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t 29411s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t 29412s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t 29413s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t 29414s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t 29415s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t 29416s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t 29417s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t 29418s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t 29419s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t 29420s,@TICS_LIBS@,$TICS_LIBS,;t t 29421s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t 29422s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t 29423s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t 29424s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t 29425s,@TINFO_LIBS@,$TINFO_LIBS,;t t 29426s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t 29427s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t 29428s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t 29429s,@includesubdir@,$includesubdir,;t t 29430s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t 29431s,@TICS_LIST@,$TICS_LIST,;t t 29432s,@TINFO_LIST@,$TINFO_LIST,;t t 29433s,@SHLIB_LIST@,$SHLIB_LIST,;t t 29434s,@NCURSES_TREE@,$NCURSES_TREE,;t t 29435s,@FORM_NAME@,$FORM_NAME,;t t 29436s,@MENU_NAME@,$MENU_NAME,;t t 29437s,@PANEL_NAME@,$PANEL_NAME,;t t 29438s,@CXX_NAME@,$CXX_NAME,;t t 29439s,@TEST_ARGS@,$TEST_ARGS,;t t 29440s,@TEST_DEPS@,$TEST_DEPS,;t t 29441s,@TEST_ARG2@,$TEST_ARG2,;t t 29442s,@TEST_DEP2@,$TEST_DEP2,;t t 29443s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t 29444s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t 29445s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t 29446s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t 29447s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t 29448s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t 29449s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t 29450s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t 29451s,@cross_compiling@,$cross_compiling,;t t 29452s,@MAKE_TESTS@,$MAKE_TESTS,;t t 29453s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t 29454s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t 29455s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t 29456s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t 29457s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t 29458s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t 29459s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t 29460s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t 29461s,@CHECK_BUILD@,$CHECK_BUILD,;t t 29462s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t 29463s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t 29464CEOF 29465 29466EOF 29467 29468 cat >>"$CONFIG_STATUS" <<\EOF 29469 # Split the substitutions into bite-sized pieces for seds with 29470 # small command number limits, like on Digital OSF/1 and HP-UX. 29471 ac_max_sed_lines=48 29472 ac_sed_frag=1 # Number of current file. 29473 ac_beg=1 # First line for current file. 29474 ac_end=$ac_max_sed_lines # Line after last line for current file. 29475 ac_more_lines=: 29476 ac_sed_cmds= 29477 while "$ac_more_lines"; do 29478 if test "$ac_beg" -gt 1; then 29479 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 29480 else 29481 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 29482 fi 29483 if test ! -s $tmp/subs.frag; then 29484 ac_more_lines=false 29485 else 29486 # The purpose of the label and of the branching condition is to 29487 # speed up the sed processing (if there are no `@' at all, there 29488 # is no need to browse any of the substitutions). 29489 # These are the two extra sed commands mentioned above. 29490 (echo ':t 29491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 29492 # It is possible to make a multiline substitution using escaped newlines. 29493 # Ensure that we do not split the substitution between script fragments. 29494 ac_BEG=$ac_end 29495 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"` 29496 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 29497 if test -s $tmp/subs.next; then 29498 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 29499 if test ! -s $tmp/subs.edit; then 29500 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 29501 if test ! -s $tmp/subs.edit; then 29502 if test "$ac_beg" -gt 1; then 29503 ac_end=`expr "$ac_end" - 1` 29504 continue 29505 fi 29506 fi 29507 fi 29508 fi 29509 29510 if test -z "$ac_sed_cmds"; then 29511 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 29512 else 29513 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 29514 fi 29515 ac_sed_frag=`expr "$ac_sed_frag" + 1` 29516 ac_beg=$ac_end 29517 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"` 29518 fi 29519 done 29520 if test -z "$ac_sed_cmds"; then 29521 ac_sed_cmds=cat 29522 fi 29523fi # test -n "$CONFIG_FILES" 29524 29525EOF 29526cat >>"$CONFIG_STATUS" <<\EOF 29527for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 29528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 29529 case "$ac_file" in 29530 - | *:- | *:-:* ) # input from stdin 29531 cat >$tmp/stdin 29532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29536 * ) ac_file_in=$ac_file.in ;; 29537 esac 29538 29539 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 29540 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29541 X"$ac_file" : 'X\(//\)[^/]' \| \ 29542 X"$ac_file" : 'X\(//\)$' \| \ 29543 X"$ac_file" : 'X\(/\)' \| \ 29544 . : '\(.\)' 2>/dev/null || 29545echo X"$ac_file" | 29546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29547 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29548 /^X\(\/\/\)$/{ s//\1/; q; } 29549 /^X\(\/\).*/{ s//\1/; q; } 29550 s/.*/./; q'` 29551 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 29552 { case "$ac_dir" in 29553 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 29554 *) as_incr_dir=.;; 29555esac 29556as_dummy="$ac_dir" 29557for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 29558 case $as_mkdir_dir in 29559 # Skip DOS drivespec 29560 ?:) as_incr_dir=$as_mkdir_dir ;; 29561 *) 29562 as_incr_dir=$as_incr_dir/$as_mkdir_dir 29563 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 29564 ;; 29565 esac 29566done; } 29567 29568 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 29569 # A "../" for each directory in $ac_dir_suffix. 29570 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 29571 else 29572 ac_dir_suffix= ac_dots= 29573 fi 29574 29575 case "$srcdir" in 29576 .) ac_srcdir=. 29577 if test -z "$ac_dots"; then 29578 ac_top_srcdir=. 29579 else 29580 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'` 29581 fi ;; 29582 [\\/]* | ?:[\\/]* ) 29583 ac_srcdir="$srcdir$ac_dir_suffix"; 29584 ac_top_srcdir="$srcdir" ;; 29585 *) # Relative path. 29586 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix" 29587 ac_top_srcdir="$ac_dots$srcdir" ;; 29588 esac 29589 29590 case $INSTALL in 29591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 29592 *) ac_INSTALL=$ac_dots$INSTALL ;; 29593 esac 29594 29595 if test x"$ac_file" != x-; then 29596 { echo "$as_me:29593: creating $ac_file" >&5 29597echo "$as_me: creating $ac_file" >&6;} 29598 rm -f "$ac_file" 29599 fi 29600 # Let's still pretend it is `configure' which instantiates (i.e., don't 29601 # use $as_me), people would be surprised to read: 29602 # /* config.h. Generated automatically by config.status. */ 29603 configure_input="Generated automatically from `echo $ac_file_in | 29604 sed 's,.*/,,'` by configure." 29605 29606 # First look for the input files in the build tree, otherwise in the 29607 # src tree. 29608 ac_file_inputs=`IFS=: 29609 for f in $ac_file_in; do 29610 case $f in 29611 -) echo $tmp/stdin ;; 29612 [\\/$]*) 29613 # Absolute (can't be DOS-style, as IFS=:) 29614 test -f "$f" || { { echo "$as_me:29611: error: cannot find input file: $f" >&5 29615echo "$as_me: error: cannot find input file: $f" >&2;} 29616 { (exit 1); exit 1; }; } 29617 echo $f;; 29618 *) # Relative 29619 if test -f "$f"; then 29620 # Build tree 29621 echo $f 29622 elif test -f "$srcdir/$f"; then 29623 # Source tree 29624 echo "$srcdir/$f" 29625 else 29626 # /dev/null tree 29627 { { echo "$as_me:29624: error: cannot find input file: $f" >&5 29628echo "$as_me: error: cannot find input file: $f" >&2;} 29629 { (exit 1); exit 1; }; } 29630 fi;; 29631 esac 29632 done` || { (exit 1); exit 1; } 29633EOF 29634cat >>"$CONFIG_STATUS" <<\EOF 29635 ac_warn_datarootdir=no 29636 if test x"$ac_file" != x-; then 29637 for ac_item in $ac_file_inputs 29638 do 29639 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"` 29640 if test -n "$ac_seen"; then 29641 ac_used=`grep '@datarootdir@' "$ac_item"` 29642 if test -z "$ac_used"; then 29643 { echo "$as_me:29640: WARNING: datarootdir was used implicitly but not set: 29644$ac_seen" >&5 29645echo "$as_me: WARNING: datarootdir was used implicitly but not set: 29646$ac_seen" >&2;} 29647 ac_warn_datarootdir=yes 29648 fi 29649 fi 29650 ac_seen=`grep '${datarootdir}' "$ac_item"` 29651 if test -n "$ac_seen"; then 29652 { echo "$as_me:29649: WARNING: datarootdir was used explicitly but not set: 29653$ac_seen" >&5 29654echo "$as_me: WARNING: datarootdir was used explicitly but not set: 29655$ac_seen" >&2;} 29656 ac_warn_datarootdir=yes 29657 fi 29658 done 29659 fi 29660 29661if test "x$ac_warn_datarootdir" = xyes; then 29662 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 29663fi 29664 29665EOF 29666cat >>"$CONFIG_STATUS" <<EOF 29667 sed "$ac_vpsub 29668$extrasub 29669EOF 29670cat >>"$CONFIG_STATUS" <<\EOF 29671:t 29672/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 29673s,@configure_input@,$configure_input,;t t 29674s,@srcdir@,$ac_srcdir,;t t 29675s,@top_srcdir@,$ac_top_srcdir,;t t 29676s,@INSTALL@,$ac_INSTALL,;t t 29677" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 29678 rm -f $tmp/stdin 29679 if test x"$ac_file" != x-; then 29680 cp "$tmp/out" "$ac_file" 29681 29682 for ac_name in prefix exec_prefix datarootdir 29683 do 29684 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"` 29685 if test -n "$ac_seen"; then 29686 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"` 29687 if test -z "$ac_init"; then 29688 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 29689 { echo "$as_me:29686: WARNING: Variable $ac_name is used but was not set: 29690$ac_seen" >&5 29691echo "$as_me: WARNING: Variable $ac_name is used but was not set: 29692$ac_seen" >&2;} 29693 fi 29694 fi 29695 done 29696 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out 29697 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out 29698 if test -s $tmp/out; then 29699 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 29700 { echo "$as_me:29697: WARNING: Some variables may not be substituted: 29701$ac_seen" >&5 29702echo "$as_me: WARNING: Some variables may not be substituted: 29703$ac_seen" >&2;} 29704 fi 29705 else 29706 cat $tmp/out 29707 fi 29708 rm -f $tmp/out 29709 29710done 29711EOF 29712cat >>"$CONFIG_STATUS" <<\EOF 29713 29714# 29715# CONFIG_HEADER section. 29716# 29717 29718# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 29719# NAME is the cpp macro being defined and VALUE is the value it is being given. 29720# 29721# ac_d sets the value in "#define NAME VALUE" lines. 29722ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 29723ac_dB='[ ].*$,\1#\2' 29724ac_dC=' ' 29725ac_dD=',;t' 29726# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 29727ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29728ac_iB='\([ ]\),\1#\2define\3' 29729ac_iC=' ' 29730ac_iD='\4,;t' 29731# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 29732ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 29733ac_uB='$,\1#\2define\3' 29734ac_uC=' ' 29735ac_uD=',;t' 29736 29737for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 29738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 29739 case "$ac_file" in 29740 - | *:- | *:-:* ) # input from stdin 29741 cat >$tmp/stdin 29742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 29745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 29746 * ) ac_file_in=$ac_file.in ;; 29747 esac 29748 29749 test x"$ac_file" != x- && { echo "$as_me:29746: creating $ac_file" >&5 29750echo "$as_me: creating $ac_file" >&6;} 29751 29752 # First look for the input files in the build tree, otherwise in the 29753 # src tree. 29754 ac_file_inputs=`IFS=: 29755 for f in $ac_file_in; do 29756 case $f in 29757 -) echo $tmp/stdin ;; 29758 [\\/$]*) 29759 # Absolute (can't be DOS-style, as IFS=:) 29760 test -f "$f" || { { echo "$as_me:29757: error: cannot find input file: $f" >&5 29761echo "$as_me: error: cannot find input file: $f" >&2;} 29762 { (exit 1); exit 1; }; } 29763 echo $f;; 29764 *) # Relative 29765 if test -f "$f"; then 29766 # Build tree 29767 echo $f 29768 elif test -f "$srcdir/$f"; then 29769 # Source tree 29770 echo "$srcdir/$f" 29771 else 29772 # /dev/null tree 29773 { { echo "$as_me:29770: error: cannot find input file: $f" >&5 29774echo "$as_me: error: cannot find input file: $f" >&2;} 29775 { (exit 1); exit 1; }; } 29776 fi;; 29777 esac 29778 done` || { (exit 1); exit 1; } 29779 # Remove the trailing spaces. 29780 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 29781 29782EOF 29783 29784# Transform confdefs.h into a list of #define's. We won't use it as a sed 29785# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 29786# be either 'cat' or 'sort'. 29787cat confdefs.h | uniq >conftest.vals 29788 29789# Break up conftest.vals because some shells have a limit on 29790# the size of here documents, and old seds have small limits too. 29791 29792rm -f conftest.tail 29793echo ' rm -f conftest.frag' >> "$CONFIG_STATUS" 29794while grep . conftest.vals >/dev/null 29795do 29796 # Write chunks of a limited-size here document to conftest.frag. 29797 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS" 29798 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS" 29799 echo 'CEOF' >> "$CONFIG_STATUS" 29800 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail 29801 rm -f conftest.vals 29802 mv conftest.tail conftest.vals 29803done 29804rm -f conftest.vals 29805 29806# Run sed to substitute the contents of conftest.frag into $tmp/in at the 29807# marker @DEFS@. 29808echo ' cat >> conftest.edit <<CEOF 29809/@DEFS@/r conftest.frag 29810/@DEFS@/d 29811CEOF 29812sed -f conftest.edit $tmp/in > $tmp/out 29813rm -f $tmp/in 29814mv $tmp/out $tmp/in 29815rm -f conftest.edit conftest.frag 29816' >> "$CONFIG_STATUS" 29817 29818cat >>"$CONFIG_STATUS" <<\EOF 29819 # Let's still pretend it is `configure' which instantiates (i.e., don't 29820 # use $as_me), people would be surprised to read: 29821 # /* config.h. Generated automatically by config.status. */ 29822 if test x"$ac_file" = x-; then 29823 echo "/* Generated automatically by configure. */" >$tmp/config.h 29824 else 29825 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 29826 fi 29827 cat $tmp/in >>$tmp/config.h 29828 rm -f $tmp/in 29829 if test x"$ac_file" != x-; then 29830 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then 29831 { echo "$as_me:29828: $ac_file is unchanged" >&5 29832echo "$as_me: $ac_file is unchanged" >&6;} 29833 else 29834 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29835 X"$ac_file" : 'X\(//\)[^/]' \| \ 29836 X"$ac_file" : 'X\(//\)$' \| \ 29837 X"$ac_file" : 'X\(/\)' \| \ 29838 . : '\(.\)' 2>/dev/null || 29839echo X"$ac_file" | 29840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 29841 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 29842 /^X\(\/\/\)$/{ s//\1/; q; } 29843 /^X\(\/\).*/{ s//\1/; q; } 29844 s/.*/./; q'` 29845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 29846 { case "$ac_dir" in 29847 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 29848 *) as_incr_dir=.;; 29849esac 29850as_dummy="$ac_dir" 29851for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 29852 case $as_mkdir_dir in 29853 # Skip DOS drivespec 29854 ?:) as_incr_dir=$as_mkdir_dir ;; 29855 *) 29856 as_incr_dir=$as_incr_dir/$as_mkdir_dir 29857 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 29858 ;; 29859 esac 29860done; } 29861 29862 fi 29863 rm -f "$ac_file" 29864 mv "$tmp/config.h" "$ac_file" 29865 fi 29866 else 29867 cat $tmp/config.h 29868 rm -f $tmp/config.h 29869 fi 29870done 29871EOF 29872cat >>"$CONFIG_STATUS" <<\EOF 29873# 29874# CONFIG_COMMANDS section. 29875# 29876for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 29877 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 29878 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 29879 29880 case "$ac_dest" in 29881 default ) 29882if test "x$cf_with_tests" != xno ; then 29883 29884for cf_dir in test 29885do 29886 if test ! -d "$srcdir/$cf_dir" ; then 29887 continue 29888 elif test -f "$srcdir/$cf_dir/programs" ; then 29889 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile 29890 fi 29891done 29892 29893fi 29894 29895cf_prefix=$LIB_PREFIX 29896 29897case "$cf_cv_shlib_version" in 29898(cygdll|msysdll|mingw|msvcdll) 29899 TINFO_NAME=$TINFO_ARG_SUFFIX 29900 TINFO_SUFFIX=.dll 29901 ;; 29902esac 29903 29904if test -n "$TINFO_SUFFIX" ; then 29905 case "$TINFO_SUFFIX" in 29906 (tw*) 29907 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}" 29908 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'` 29909 ;; 29910 (t*) 29911 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}" 29912 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'` 29913 ;; 29914 (w*) 29915 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}" 29916 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'` 29917 ;; 29918 esac 29919fi 29920 29921for cf_dir in $SRC_SUBDIRS 29922do 29923 if test ! -d "$srcdir/$cf_dir" ; then 29924 continue 29925 elif test -f "$srcdir/$cf_dir/modules" ; then 29926 29927 SHARED_LIB= 29928 Libs_To_Make= 29929 cf_awk_program= 29930 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5" 29931 then 29932 cf_awk_program="$cf_awk_program\ 29933/deprecated in ABI${cf_cv_abi_version}/ { next; }\ 29934{ sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\ 29935" 29936 fi 29937 29938 if test "x$WILDCARD_SYMS" = xno 29939 then 29940 cf_awk_program="$cf_awk_program\ 29941/[ ]_\\*;/ { skip=1; next; }\ 29942" 29943 fi 29944 29945 if test "x$cf_awk_program" != "x" 29946 then 29947 cat >>$cf_dir/Makefile <<CF_EOF 29948 29949# Generated by CF_LIB_RULES 29950resulting.map: $UNALTERED_SYMS 29951 $AWK 'BEGIN { skip = 1; last=""; } \ 29952$cf_awk_program \ 29953{ if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\ 29954 skip = 0; last = \$\$0; } \ 29955END { print last; }' < "$UNALTERED_SYMS" >\$@ 29956 29957distclean:: 29958 rm -f resulting.map 29959CF_EOF 29960 fi 29961 29962 for cf_item in $cf_LIST_MODELS 29963 do 29964 29965 case X$cf_item in 29966 (Xlibtool) 29967 cf_suffix='.la' 29968 cf_depsuf=$cf_suffix 29969 ;; 29970 (Xdebug) 29971 case "$cf_cv_system_name" in 29972 (*-msvc*) 29973 cf_suffix='_g.lib' 29974 ;; 29975 (*) 29976 cf_suffix='_g.a' 29977 ;; 29978 esac 29979 cf_depsuf=$cf_suffix 29980 ;; 29981 (Xprofile) 29982 case "$cf_cv_system_name" in 29983 (*-msvc*) 29984 cf_suffix='_p.lib' 29985 ;; 29986 (*) 29987 cf_suffix='_p.a' 29988 ;; 29989 esac 29990 cf_depsuf=$cf_suffix 29991 ;; 29992 (Xshared) 29993 case "$cf_cv_system_name" in 29994 (aix[5-7]*) 29995 cf_suffix='.so' 29996 cf_depsuf=$cf_suffix 29997 ;; 29998 (*-msvc*) 29999 cf_suffix='.dll' 30000 cf_depsuf='.dll.lib' 30001 ;; 30002 (cygwin*|msys*|mingw*) 30003 cf_suffix='.dll' 30004 cf_depsuf='.dll.a' 30005 ;; 30006 (darwin*) 30007 cf_suffix='.dylib' 30008 cf_depsuf=$cf_suffix 30009 ;; 30010 (hpux*) 30011 case "$target" in 30012 (ia64*) 30013 cf_suffix='.so' 30014 cf_depsuf=$cf_suffix 30015 ;; 30016 (*) 30017 cf_suffix='.sl' 30018 cf_depsuf=$cf_suffix 30019 ;; 30020 esac 30021 ;; 30022 (*) 30023 cf_suffix='.so' 30024 cf_depsuf=$cf_suffix 30025 ;; 30026 esac 30027 ;; 30028 (*) 30029 case "$target" in 30030 (*-msvc*) 30031 cf_suffix='.lib' 30032 ;; 30033 (*) 30034 cf_suffix='.a' 30035 ;; 30036 esac 30037 cf_depsuf=$cf_suffix 30038 ;; 30039 esac 30040 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 30041 then 30042 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}" 30043 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}" 30044 fi 30045 30046 if test "$cf_dir" = "c++" 30047 then 30048 30049cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 30050 30051eval cf_libname="\$${cf_map_lib_basename}_NAME" 30052 30053 else 30054 30055cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 30056 30057eval cf_libname="\$${cf_map_lib_basename}_NAME" 30058 30059 fi 30060 test -z "$cf_libname" && cf_libname="$cf_dir" 30061 if test "$cf_item" = shared ; then 30062 if test -n "${LIB_SUFFIX}" 30063 then 30064 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'` 30065 else 30066 cf_shared_suffix="$cf_suffix" 30067 fi 30068 if test "$cf_cv_do_symlinks" = yes ; then 30069 cf_version_name= 30070 30071 case "$cf_cv_shlib_version" in 30072 (rel) 30073 cf_version_name=REL_VERSION 30074 ;; 30075 (abi) 30076 cf_version_name=ABI_VERSION 30077 ;; 30078 esac 30079 30080 if test -n "$cf_version_name" 30081 then 30082 case "$cf_cv_system_name" in 30083 (darwin*) 30084 # "w", etc? 30085 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix" 30086 ;; 30087 (*) 30088 cf_suffix="$cf_suffix"'.${'$cf_version_name'}' 30089 ;; 30090 esac 30091 fi 30092 if test -n "${USE_LIB_SUFFIX}" 30093 then 30094 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'` 30095 else 30096 cf_shared_suffix="$cf_suffix" 30097 fi 30098 fi 30099 # cygwin needs import library, and has unique naming convention 30100 # use autodetected ${cf_prefix} for import lib and static lib, but 30101 # use 'cyg' prefix for shared lib. 30102 case "$cf_cv_shlib_version" in 30103 (cygdll) 30104 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 30105 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}" 30106 ;; 30107 (msysdll) 30108 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 30109 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}" 30110 ;; 30111 (mingw) 30112 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 30113 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}" 30114 ;; 30115 (msvcdll) 30116 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 30117 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}" 30118 ;; 30119 (*) 30120 cf_add_lib= 30121 ;; 30122 esac 30123 if test -n "$cf_add_lib" 30124 then 30125 Libs_To_Make="$Libs_To_Make $cf_add_lib" 30126 continue 30127 fi 30128 fi 30129 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}" 30130 Libs_To_Make="$Libs_To_Make $cf_add_lib" 30131 done 30132 30133 if test "$cf_dir" = ncurses ; then 30134 cf_subsets="$LIB_SUBSETS" 30135 cf_r_parts="$cf_subsets" 30136 cf_liblist="$Libs_To_Make" 30137 30138 while test -n "$cf_r_parts" 30139 do 30140 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'` 30141 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'` 30142 if test "$cf_l_parts" != "$cf_r_parts" ; then 30143 cf_add_lib= 30144 case "$cf_l_parts" in 30145 (*termlib*) 30146 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g` 30147 ;; 30148 (*ticlib*) 30149 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g` 30150 ;; 30151 (*) 30152 break 30153 ;; 30154 esac 30155 if test -n "$cf_add_lib"; then 30156 Libs_To_Make="$cf_add_lib $Libs_To_Make" 30157 fi 30158 else 30159 break 30160 fi 30161 done 30162 else 30163 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'` 30164 fi 30165 30166 if test "$cf_dir" = c++; then 30167 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then 30168 cf_list= 30169 for cf_item in $Libs_To_Make 30170 do 30171 case "$cf_item" in 30172 (*.a) 30173 ;; 30174 (*) 30175 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"` 30176 ;; 30177 esac 30178 for cf_test in $cf_list 30179 do 30180 if test "$cf_test" = "$cf_item" 30181 then 30182 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'` 30183 cf_item= 30184 break 30185 fi 30186 done 30187 test -n "$cf_item" && cf_list="$cf_list $cf_item" 30188 done 30189 Libs_To_Make="$cf_list" 30190 fi 30191 fi 30192 30193 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \ 30194 -e "s%@SHARED_LIB@%$SHARED_LIB%" \ 30195 "$cf_dir/Makefile" >$cf_dir/Makefile.out 30196 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile" 30197 30198 $AWK -f "$srcdir/mk-0th.awk" \ 30199 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \ 30200 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 30201 30202 for cf_subset in $cf_subsets 30203 do 30204 cf_subdirs= 30205 for cf_item in $cf_LIST_MODELS 30206 do 30207 30208 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})" 30209 30210cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 30211 30212 CXX_MODEL=$cf_ITEM 30213 if test "$CXX_MODEL" = SHARED; then 30214 case "$cf_cv_shlib_version" in 30215 (cygdll|msysdll|mingw|msvcdll) 30216 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6 30217 30218echo "${as_me:-configure}:30215: testing overriding CXX_MODEL to SHARED ..." 1>&5 30219 30220 with_shared_cxx=yes 30221 ;; 30222 (*) 30223 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL 30224 ;; 30225 esac 30226 fi 30227 30228 case X$cf_item in 30229 (Xlibtool) 30230 cf_suffix='.la' 30231 cf_depsuf=$cf_suffix 30232 ;; 30233 (Xdebug) 30234 case "$cf_cv_system_name" in 30235 (*-msvc*) 30236 cf_suffix='_g.lib' 30237 ;; 30238 (*) 30239 cf_suffix='_g.a' 30240 ;; 30241 esac 30242 cf_depsuf=$cf_suffix 30243 ;; 30244 (Xprofile) 30245 case "$cf_cv_system_name" in 30246 (*-msvc*) 30247 cf_suffix='_p.lib' 30248 ;; 30249 (*) 30250 cf_suffix='_p.a' 30251 ;; 30252 esac 30253 cf_depsuf=$cf_suffix 30254 ;; 30255 (Xshared) 30256 case "$cf_cv_system_name" in 30257 (aix[5-7]*) 30258 cf_suffix='.so' 30259 cf_depsuf=$cf_suffix 30260 ;; 30261 (*-msvc*) 30262 cf_suffix='.dll' 30263 cf_depsuf='.dll.lib' 30264 ;; 30265 (cygwin*|msys*|mingw*) 30266 cf_suffix='.dll' 30267 cf_depsuf='.dll.a' 30268 ;; 30269 (darwin*) 30270 cf_suffix='.dylib' 30271 cf_depsuf=$cf_suffix 30272 ;; 30273 (hpux*) 30274 case "$target" in 30275 (ia64*) 30276 cf_suffix='.so' 30277 cf_depsuf=$cf_suffix 30278 ;; 30279 (*) 30280 cf_suffix='.sl' 30281 cf_depsuf=$cf_suffix 30282 ;; 30283 esac 30284 ;; 30285 (*) 30286 cf_suffix='.so' 30287 cf_depsuf=$cf_suffix 30288 ;; 30289 esac 30290 ;; 30291 (*) 30292 case "$target" in 30293 (*-msvc*) 30294 cf_suffix='.lib' 30295 ;; 30296 (*) 30297 cf_suffix='.a' 30298 ;; 30299 esac 30300 cf_depsuf=$cf_suffix 30301 ;; 30302 esac 30303 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}" 30304 then 30305 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}" 30306 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}" 30307 fi 30308 30309 case $cf_item in 30310 (libtool) cf_subdir='obj_lo' ;; 30311 (normal) cf_subdir='objects' ;; 30312 (debug) cf_subdir='obj_g' ;; 30313 (profile) cf_subdir='obj_p' ;; 30314 (shared) 30315 case "$cf_cv_system_name" in 30316 (cygwin|msys) 30317 cf_subdir='objects' ;; 30318 (*) 30319 cf_subdir='obj_s' ;; 30320 esac 30321 esac 30322 30323 # Test for case where we build libtinfo with a different name. 30324 cf_libname=$cf_dir 30325 if test "$cf_dir" = ncurses ; then 30326 case "$cf_subset" in 30327 (*base*) 30328 cf_libname=${cf_libname}$USE_LIB_SUFFIX 30329 ;; 30330 (*termlib*) 30331 cf_libname=$TINFO_LIB_SUFFIX 30332 ;; 30333 (ticlib*) 30334 cf_libname=$TICS_LIB_SUFFIX 30335 ;; 30336 esac 30337 elif test "$cf_dir" = c++ ; then 30338 30339cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 30340 30341eval cf_libname="\$${cf_map_lib_basename}_NAME" 30342 30343 cf_libname=${cf_libname}$USE_LIB_SUFFIX 30344 else 30345 30346cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 30347 30348eval cf_libname="\$${cf_map_lib_basename}_NAME" 30349 30350 cf_libname=${cf_libname}$USE_LIB_SUFFIX 30351 fi 30352 if test -n "${USE_ARG_SUFFIX}" ; then 30353 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX 30354 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"` 30355 fi 30356 30357 # These dependencies really are for development, not 30358 # builds, but they are useful in porting, too. 30359 cf_depend="../include/ncurses_cfg.h" 30360 if test "$srcdir" = "."; then 30361 cf_reldir="." 30362 else 30363 cf_reldir="\${srcdir}" 30364 fi 30365 30366 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then 30367 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h" 30368 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then 30369 cf_depend="$cf_depend $cf_reldir/curses.priv.h" 30370 fi 30371 30372 cf_dir_suffix= 30373 old_cf_suffix="$cf_suffix" 30374 if test "$cf_cv_shlib_version_infix" = yes ; then 30375 if test -n "$USE_LIB_SUFFIX" ; then 30376 case "$USE_LIB_SUFFIX" in 30377 (tw*) 30378 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'` 30379 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'` 30380 cf_dir_suffix=tw$EXTRA_SUFFIX 30381 ;; 30382 (t*) 30383 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'` 30384 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'` 30385 cf_dir_suffix=t$EXTRA_SUFFIX 30386 ;; 30387 (w*) 30388 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'` 30389 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'` 30390 cf_dir_suffix=w$EXTRA_SUFFIX 30391 ;; 30392 (*) 30393 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'` 30394 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'` 30395 cf_dir_suffix=$EXTRA_SUFFIX 30396 ;; 30397 esac 30398 fi 30399 fi 30400 30401 $AWK -f "$srcdir/mk-1st.awk" \ 30402 name=${cf_libname}${cf_dir_suffix} \ 30403 traces=$LIB_TRACING \ 30404 MODEL=$cf_ITEM \ 30405 CXX_MODEL=$CXX_MODEL \ 30406 LIB_SUFFIX=$LIB_SUFFIX \ 30407 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \ 30408 make_phony="${cf_cv_make_PHONY:-no}" \ 30409 model=$cf_subdir \ 30410 prefix=$cf_prefix \ 30411 suffix=$cf_suffix \ 30412 subset=$cf_subset \ 30413 driver=$cf_cv_term_driver \ 30414 SymLink="$LN_S" \ 30415 TermlibRoot=$TINFO_NAME \ 30416 TermlibSuffix=$TINFO_SUFFIX \ 30417 ShlibVer=$cf_cv_shlib_version \ 30418 ShlibVerInfix=$cf_cv_shlib_version_infix \ 30419 ReLink=${cf_cv_do_relink:-no} \ 30420 ReRanlib=${cf_cv_do_reranlib:-yes} \ 30421 DoLinks=$cf_cv_do_symlinks \ 30422 rmSoLocs=$cf_cv_rm_so_locs \ 30423 ldconfig="$LDCONFIG" \ 30424 overwrite=$WITH_OVERWRITE \ 30425 depend="$cf_depend" \ 30426 host="$host" \ 30427 libtool_version="$LIBTOOL_VERSION" \ 30428 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 30429 30430 cf_suffix="$old_cf_suffix" 30431 30432 for cf_subdir2 in $cf_subdirs lib 30433 do 30434 test "$cf_subdir" = "$cf_subdir2" && break 30435 done 30436 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \ 30437 $AWK -f "$srcdir/mk-2nd.awk" \ 30438 name=$cf_dir \ 30439 traces=$LIB_TRACING \ 30440 MODEL=$cf_ITEM \ 30441 model=$cf_subdir \ 30442 subset=$cf_subset \ 30443 srcdir=$srcdir \ 30444 echo=$WITH_ECHO \ 30445 crenames=$cf_cv_prog_CC_c_o \ 30446 cxxrenames=$cf_cv_prog_CXX_c_o \ 30447 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile 30448 cf_subdirs="$cf_subdirs $cf_subdir" 30449 done 30450 done 30451 fi 30452 30453 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile 30454done 30455 30456echo >> Makefile 30457echo '# generated by CF_LIB_RULES' >> Makefile 30458 30459if test "x$cf_cv_make_PHONY" = xyes ; then 30460 cat >> Makefile <<-CF_EOF 30461 30462 .PHONY : libs 30463 .PHONY : lintlib 30464 .PHONY : install.includes 30465 .PHONY : uninstall.includes 30466 .PHONY : install.libs 30467 .PHONY : uninstall.libs 30468CF_EOF 30469fi 30470 30471for cf_dir in $SRC_SUBDIRS 30472do 30473 if test ! -d "$srcdir/$cf_dir" ; then 30474 continue 30475 fi 30476 30477 if test -f "$cf_dir/Makefile" ; then 30478 case "$cf_dir" in 30479 (Ada95) 30480 echo 'libs \' >> Makefile 30481 echo 'install.libs \' >> Makefile 30482 echo 'uninstall.libs ::' >> Makefile 30483 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile 30484 ;; 30485 esac 30486 fi 30487 30488 if test -f "$srcdir/$cf_dir/modules" ; then 30489 30490 if test "x$cf_cv_make_PHONY" = xyes ; then 30491 cat >> Makefile <<-CF_EOF 30492 30493 .PHONY : install.$cf_dir 30494 .PHONY : uninstall.$cf_dir 30495CF_EOF 30496 fi 30497 30498 echo >> Makefile 30499 if test -f "$srcdir/$cf_dir/headers" ; then 30500cat >> Makefile <<CF_EOF 30501install.includes \\ 30502uninstall.includes \\ 30503CF_EOF 30504 fi 30505 30506cat >> Makefile <<CF_EOF 30507lint \\ 30508libs \\ 30509lintlib \\ 30510install.libs \\ 30511uninstall.libs \\ 30512install.$cf_dir \\ 30513uninstall.$cf_dir :: 30514 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) 30515CF_EOF 30516 elif test -f "$srcdir/$cf_dir/headers" ; then 30517cat >> Makefile <<CF_EOF 30518 30519libs \\ 30520install.libs \\ 30521uninstall.libs \\ 30522install.includes \\ 30523uninstall.includes :: 30524 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ ) 30525CF_EOF 30526fi 30527done 30528 30529if test "x$cf_cv_make_PHONY" = xyes ; then 30530 cat >> Makefile <<-CF_EOF 30531 30532 .PHONY : install.data 30533 .PHONY : uninstall.data 30534CF_EOF 30535fi 30536 30537if test "x$cf_with_db_install" = xyes; then 30538cat >> Makefile <<CF_EOF 30539 30540install.libs uninstall.libs \\ 30541install.data uninstall.data :: 30542$MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) 30543CF_EOF 30544else 30545cat >> Makefile <<CF_EOF 30546 30547install.libs uninstall.libs :: 30548 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ ) 30549CF_EOF 30550fi 30551 30552if test "x$cf_with_manpages" = xyes; then 30553 30554if test "x$cf_cv_make_PHONY" = xyes ; then 30555 cat >> Makefile <<-CF_EOF 30556 30557 .PHONY : install.man 30558 .PHONY : uninstall.man 30559CF_EOF 30560fi 30561 30562cat >> Makefile <<CF_EOF 30563 30564install.man \\ 30565uninstall.man :: 30566 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ ) 30567CF_EOF 30568fi 30569 30570cat >> Makefile <<CF_EOF 30571 30572distclean :: 30573 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h 30574 rm -f headers.sh headers.sed mk_shared_lib.sh 30575 rm -f edit_man.* man_alias.* 30576 rm -rf \${DIRS_TO_MAKE} 30577CF_EOF 30578 30579# Special case: tack's manpage lives in its own directory. 30580if test "x$cf_with_manpages" = xyes; then 30581if test "x$cf_with_tack" = "xyes"; then 30582cat >> Makefile <<CF_EOF 30583 30584install.man \\ 30585uninstall.man :: 30586 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ ) 30587CF_EOF 30588fi 30589fi 30590 30591rm -f headers.sed headers.sh 30592 30593echo creating headers.sh 30594cat >headers.sh <<CF_EOF 30595#! $SHELL 30596# This shell script is generated by the 'configure' script. It is invoked in a 30597# subdirectory of the build tree. It generates a sed-script in the parent 30598# directory that is used to adjust includes for header files that reside in a 30599# subdirectory of /usr/include, etc. 30600PRG="" 30601while test \$# != 3 30602do 30603PRG="\$PRG \$1"; shift 30604done 30605DST=\$1 30606REF=\$2 30607SRC=\$3 30608TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$ 30609TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$ 30610echo installing \$SRC in \$DST 30611CF_EOF 30612 30613if test "$WITH_CURSES_H" = yes; then 30614 cat >>headers.sh <<CF_EOF 30615case \$DST in 30616(/*/include/*) 30617 END=\`basename \$DST\` 30618 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\` 30619 do 30620 NAME=\`basename \$i\` 30621 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 30622 done 30623 ;; 30624(*) 30625 echo "" >> \$TMPSED 30626 ;; 30627esac 30628CF_EOF 30629 30630else 30631 cat >>headers.sh <<CF_EOF 30632case \$DST in 30633(/*/include/*) 30634 END=\`basename \$DST\` 30635 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\` 30636 do 30637 NAME=\`basename \$i\` 30638 if test "\$NAME" = "curses.h" 30639 then 30640 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 30641 NAME=ncurses.h 30642 fi 30643 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 30644 done 30645 ;; 30646(*) 30647 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 30648 ;; 30649esac 30650CF_EOF 30651fi 30652cat >>headers.sh <<CF_EOF 30653rm -f \$TMPSRC 30654sed -f \$TMPSED \$SRC > \$TMPSRC 30655NAME=\`basename \$SRC\` 30656CF_EOF 30657if test "$WITH_CURSES_H" != yes; then 30658 cat >>headers.sh <<CF_EOF 30659test "\$NAME" = "curses.h" && NAME=ncurses.h 30660CF_EOF 30661fi 30662cat >>headers.sh <<CF_EOF 30663# Just in case someone gzip'd manpages, remove the conflicting copy. 30664test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz 30665 30666eval \$PRG \$TMPSRC \$DST/\$NAME 30667rm -f \$TMPSRC \$TMPSED 30668CF_EOF 30669 30670chmod 0755 headers.sh 30671 30672for cf_dir in $SRC_SUBDIRS 30673do 30674 if test ! -d "$srcdir/$cf_dir" ; then 30675 continue 30676 fi 30677 30678 if test -f "$srcdir/$cf_dir/headers" ; then 30679 $AWK -f "$srcdir/mk-hdr.awk" \ 30680 subset="$LIB_SUBSETS" \ 30681 compat="$WITH_CURSES_H" \ 30682 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile 30683 fi 30684 30685 if test -f "$srcdir/$cf_dir/modules" ; then 30686 if test "$cf_dir" != "c++" ; then 30687 if test "x$cf_cv_make_PHONY" = xyes ; then 30688 cat >> $cf_dir/Makefile <<-CF_EOF 30689 30690 .PHONY : depend 30691CF_EOF 30692 fi 30693 30694 cat >>$cf_dir/Makefile <<"CF_EOF" 30695depend : ${AUTO_SRC} 30696 makedepend -- ${CPPFLAGS} -- ${C_SRC} 30697 30698# DO NOT DELETE THIS LINE -- make depend depends on it. 30699CF_EOF 30700 fi 30701 fi 30702done 30703 30704if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then 30705if test -z "$USE_OLD_MAKERULES" ; then 30706 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile 30707fi 30708fi 30709 ;; 30710 esac 30711done 30712EOF 30713 30714cat >>"$CONFIG_STATUS" <<\EOF 30715 30716{ (exit 0); exit 0; } 30717EOF 30718chmod +x "$CONFIG_STATUS" 30719ac_clean_files=$ac_clean_files_save 30720 30721# configure is writing to config.log, and then calls config.status. 30722# config.status does its own redirection, appending to config.log. 30723# Unfortunately, on DOS this fails, as config.log is still kept open 30724# by configure, so config.status won't be able to write to it; its 30725# output is simply discarded. So we exec the FD to /dev/null, 30726# effectively closing config.log, so it can be properly (re)opened and 30727# appended to by config.status. When coming back to configure, we 30728# need to make the FD available again. 30729if test "$no_create" != yes; then 30730 ac_cs_success=: 30731 exec 5>/dev/null 30732 $SHELL "$CONFIG_STATUS" || ac_cs_success=false 30733 exec 5>>config.log 30734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30735 # would make configure fail if this is the last instruction. 30736 "$ac_cs_success" || { (exit 1); exit 1; } 30737fi 30738${MAKE:-make} preinstall 30739