1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52.20181006. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="mawk.h" 108 109# Initialize some variables set by options. 110ac_init_help= 111ac_init_version=false 112# The variables have the same names as the options, with 113# dashes changed to underlines. 114cache_file=/dev/null 115exec_prefix=NONE 116no_create= 117no_recursion= 118prefix=NONE 119program_prefix=NONE 120program_suffix=NONE 121program_transform_name=s,x,x, 122silent= 123site= 124srcdir= 125verbose= 126x_includes=NONE 127x_libraries=NONE 128 129# Installation directory options. 130# These are left unexpanded so users can "make install exec_prefix=/foo" 131# and all the variables that are supposed to be based on exec_prefix 132# by default will actually change. 133# Use braces instead of parens because sh, perl, etc. also accept them. 134bindir='${exec_prefix}/bin' 135sbindir='${exec_prefix}/sbin' 136libexecdir='${exec_prefix}/libexec' 137datarootdir='${prefix}/share' 138datadir='${datarootdir}' 139sysconfdir='${prefix}/etc' 140sharedstatedir='${prefix}/com' 141localstatedir='${prefix}/var' 142runstatedir='${localstatedir}/run' 143libdir='${exec_prefix}/lib' 144includedir='${prefix}/include' 145oldincludedir='/usr/include' 146infodir='${datarootdir}/info' 147mandir='${datarootdir}/man' 148 149# Identity of this package. 150PACKAGE_NAME= 151PACKAGE_TARNAME= 152PACKAGE_VERSION= 153PACKAGE_STRING= 154PACKAGE_BUGREPORT= 155 156ac_prev= 157for ac_option 158do 159 # If the previous option needs an argument, assign it. 160 if test -n "$ac_prev"; then 161 eval "$ac_prev=\$ac_option" 162 ac_prev= 163 continue 164 fi 165 166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 167 168 # Accept the important Cygnus configure options, so we can diagnose typos. 169 170 case $ac_option in 171 172 -bindir | --bindir | --bindi | --bind | --bin | --bi) 173 ac_prev=bindir ;; 174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 175 bindir=$ac_optarg ;; 176 177 -build | --build | --buil | --bui | --bu) 178 ac_prev=build_alias ;; 179 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 180 build_alias=$ac_optarg ;; 181 182 -cache-file | --cache-file | --cache-fil | --cache-fi \ 183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 184 ac_prev=cache_file ;; 185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 187 cache_file=$ac_optarg ;; 188 189 --config-cache | -C) 190 cache_file=config.cache ;; 191 192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 193 ac_prev=datadir ;; 194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 195 | --da=*) 196 datadir=$ac_optarg ;; 197 198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 199 | --dataroo | --dataro | --datar) 200 ac_prev=datarootdir ;; 201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 203 datarootdir=$ac_optarg ;; 204 205 -disable-* | --disable-*) 206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 207 # Reject names that are not valid shell variable names. 208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 210 { (exit 1); exit 1; }; } 211 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 212 eval "enable_$ac_feature=no" ;; 213 214 -enable-* | --enable-*) 215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 216 # Reject names that are not valid shell variable names. 217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 219 { (exit 1); exit 1; }; } 220 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 221 case $ac_option in 222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 223 *) ac_optarg=yes ;; 224 esac 225 eval "enable_$ac_feature='$ac_optarg'" ;; 226 227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 229 | --exec | --exe | --ex) 230 ac_prev=exec_prefix ;; 231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 233 | --exec=* | --exe=* | --ex=*) 234 exec_prefix=$ac_optarg ;; 235 236 -gas | --gas | --ga | --g) 237 # Obsolete; use --with-gas. 238 with_gas=yes ;; 239 240 -help | --help | --hel | --he | -h) 241 ac_init_help=long ;; 242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 243 ac_init_help=recursive ;; 244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 245 ac_init_help=short ;; 246 247 -host | --host | --hos | --ho) 248 ac_prev=host_alias ;; 249 -host=* | --host=* | --hos=* | --ho=*) 250 host_alias=$ac_optarg ;; 251 252 -includedir | --includedir | --includedi | --included | --include \ 253 | --includ | --inclu | --incl | --inc) 254 ac_prev=includedir ;; 255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 256 | --includ=* | --inclu=* | --incl=* | --inc=*) 257 includedir=$ac_optarg ;; 258 259 -infodir | --infodir | --infodi | --infod | --info | --inf) 260 ac_prev=infodir ;; 261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 262 infodir=$ac_optarg ;; 263 264 -libdir | --libdir | --libdi | --libd) 265 ac_prev=libdir ;; 266 -libdir=* | --libdir=* | --libdi=* | --libd=*) 267 libdir=$ac_optarg ;; 268 269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 270 | --libexe | --libex | --libe) 271 ac_prev=libexecdir ;; 272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 273 | --libexe=* | --libex=* | --libe=*) 274 libexecdir=$ac_optarg ;; 275 276 -localstatedir | --localstatedir | --localstatedi | --localstated \ 277 | --localstate | --localstat | --localsta | --localst \ 278 | --locals | --local | --loca | --loc | --lo) 279 ac_prev=localstatedir ;; 280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 283 localstatedir=$ac_optarg ;; 284 285 -runstatedir | --runstatedir | --runstatedi | --runstated \ 286 | --runstate | --runstat | --runsta | --runst \ 287 | --runs | --run | --ru) 288 ac_prev=runstatedir ;; 289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 290 | --runstate=* | --runstat=* | --runsta=* | --runst=* \ 291 | --runs=* | --run=* | --ru=*) 292 runstatedir=$ac_optarg ;; 293 294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 295 ac_prev=mandir ;; 296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 297 mandir=$ac_optarg ;; 298 299 -nfp | --nfp | --nf) 300 # Obsolete; use --without-fp. 301 with_fp=no ;; 302 303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 304 | --no-cr | --no-c) 305 no_create=yes ;; 306 307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 309 no_recursion=yes ;; 310 311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 313 | --oldin | --oldi | --old | --ol | --o) 314 ac_prev=oldincludedir ;; 315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 318 oldincludedir=$ac_optarg ;; 319 320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 321 ac_prev=prefix ;; 322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 323 prefix=$ac_optarg ;; 324 325 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 326 | --program-pre | --program-pr | --program-p) 327 ac_prev=program_prefix ;; 328 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 330 program_prefix=$ac_optarg ;; 331 332 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 333 | --program-suf | --program-su | --program-s) 334 ac_prev=program_suffix ;; 335 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 337 program_suffix=$ac_optarg ;; 338 339 -program-transform-name | --program-transform-name \ 340 | --program-transform-nam | --program-transform-na \ 341 | --program-transform-n | --program-transform- \ 342 | --program-transform | --program-transfor \ 343 | --program-transfo | --program-transf \ 344 | --program-trans | --program-tran \ 345 | --progr-tra | --program-tr | --program-t) 346 ac_prev=program_transform_name ;; 347 -program-transform-name=* | --program-transform-name=* \ 348 | --program-transform-nam=* | --program-transform-na=* \ 349 | --program-transform-n=* | --program-transform-=* \ 350 | --program-transform=* | --program-transfor=* \ 351 | --program-transfo=* | --program-transf=* \ 352 | --program-trans=* | --program-tran=* \ 353 | --progr-tra=* | --program-tr=* | --program-t=*) 354 program_transform_name=$ac_optarg ;; 355 356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 357 | -silent | --silent | --silen | --sile | --sil) 358 silent=yes ;; 359 360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 361 ac_prev=sbindir ;; 362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 363 | --sbi=* | --sb=*) 364 sbindir=$ac_optarg ;; 365 366 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 368 | --sharedst | --shareds | --shared | --share | --shar \ 369 | --sha | --sh) 370 ac_prev=sharedstatedir ;; 371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 374 | --sha=* | --sh=*) 375 sharedstatedir=$ac_optarg ;; 376 377 -site | --site | --sit) 378 ac_prev=site ;; 379 -site=* | --site=* | --sit=*) 380 site=$ac_optarg ;; 381 382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 383 ac_prev=srcdir ;; 384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 385 srcdir=$ac_optarg ;; 386 387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 388 | --syscon | --sysco | --sysc | --sys | --sy) 389 ac_prev=sysconfdir ;; 390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 392 sysconfdir=$ac_optarg ;; 393 394 -target | --target | --targe | --targ | --tar | --ta | --t) 395 ac_prev=target_alias ;; 396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 397 target_alias=$ac_optarg ;; 398 399 -v | -verbose | --verbose | --verbos | --verbo | --verb) 400 verbose=yes ;; 401 402 -version | --version | --versio | --versi | --vers | -V) 403 ac_init_version=: ;; 404 405 -with-* | --with-*) 406 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid package name: $ac_package" >&2 410 { (exit 1); exit 1; }; } 411 ac_package=`echo $ac_package| sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "with_$ac_package='$ac_optarg'" ;; 417 418 -without-* | --without-*) 419 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 420 # Reject names that are not valid shell variable names. 421 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 422 { echo "$as_me: error: invalid package name: $ac_package" >&2 423 { (exit 1); exit 1; }; } 424 ac_package=`echo $ac_package | sed 's/-/_/g'` 425 eval "with_$ac_package=no" ;; 426 427 --x) 428 # Obsolete; use --with-x. 429 with_x=yes ;; 430 431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 432 | --x-incl | --x-inc | --x-in | --x-i) 433 ac_prev=x_includes ;; 434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 436 x_includes=$ac_optarg ;; 437 438 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 440 ac_prev=x_libraries ;; 441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 443 x_libraries=$ac_optarg ;; 444 445 -*) { echo "$as_me: error: unrecognized option: $ac_option 446Try \`$0 --help' for more information." >&2 447 { (exit 1); exit 1; }; } 448 ;; 449 450 *=*) 451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 452 # Reject names that are not valid shell variable names. 453 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 454 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 455 { (exit 1); exit 1; }; } 456 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 457 eval "$ac_envvar='$ac_optarg'" 458 export $ac_envvar ;; 459 460 *) 461 # FIXME: should be removed in autoconf 3.0. 462 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 464 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 465 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 466 ;; 467 468 esac 469done 470 471if test -n "$ac_prev"; then 472 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 473 { echo "$as_me: error: missing argument to $ac_option" >&2 474 { (exit 1); exit 1; }; } 475fi 476 477# Be sure to have absolute paths. 478for ac_var in exec_prefix prefix 479do 480 eval ac_val=$`echo $ac_var` 481 case $ac_val in 482 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 483 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 484 { (exit 1); exit 1; }; };; 485 esac 486done 487 488# Be sure to have absolute paths. 489for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 490 localstatedir libdir includedir oldincludedir infodir mandir 491do 492 eval ac_val=$`echo $ac_var` 493 case $ac_val in 494 [\\/$]* | ?:[\\/]* ) ;; 495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 496 { (exit 1); exit 1; }; };; 497 esac 498done 499 500# There might be people who depend on the old broken behavior: `$host' 501# used to hold the argument of --host etc. 502build=$build_alias 503host=$host_alias 504target=$target_alias 505 506# FIXME: should be removed in autoconf 3.0. 507if test "x$host_alias" != x; then 508 if test "x$build_alias" = x; then 509 cross_compiling=maybe 510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 511 If a cross compiler is detected then cross compile mode will be used." >&2 512 elif test "x$build_alias" != "x$host_alias"; then 513 cross_compiling=yes 514 fi 515fi 516 517ac_tool_prefix= 518test -n "$host_alias" && ac_tool_prefix=$host_alias- 519 520test "$silent" = yes && exec 6>/dev/null 521 522# Find the source files, if location was not specified. 523if test -z "$srcdir"; then 524 ac_srcdir_defaulted=yes 525 # Try the directory containing this script, then its parent. 526 ac_prog=$0 527 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 529 srcdir=$ac_confdir 530 if test ! -r $srcdir/$ac_unique_file; then 531 srcdir=.. 532 fi 533else 534 ac_srcdir_defaulted=no 535fi 536if test ! -r $srcdir/$ac_unique_file; then 537 if test "$ac_srcdir_defaulted" = yes; then 538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 539 { (exit 1); exit 1; }; } 540 else 541 { echo "$as_me: error: cannot find sources in $srcdir" >&2 542 { (exit 1); exit 1; }; } 543 fi 544fi 545srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 546ac_env_build_alias_set=${build_alias+set} 547ac_env_build_alias_value=$build_alias 548ac_cv_env_build_alias_set=${build_alias+set} 549ac_cv_env_build_alias_value=$build_alias 550ac_env_host_alias_set=${host_alias+set} 551ac_env_host_alias_value=$host_alias 552ac_cv_env_host_alias_set=${host_alias+set} 553ac_cv_env_host_alias_value=$host_alias 554ac_env_target_alias_set=${target_alias+set} 555ac_env_target_alias_value=$target_alias 556ac_cv_env_target_alias_set=${target_alias+set} 557ac_cv_env_target_alias_value=$target_alias 558ac_env_CC_set=${CC+set} 559ac_env_CC_value=$CC 560ac_cv_env_CC_set=${CC+set} 561ac_cv_env_CC_value=$CC 562ac_env_CFLAGS_set=${CFLAGS+set} 563ac_env_CFLAGS_value=$CFLAGS 564ac_cv_env_CFLAGS_set=${CFLAGS+set} 565ac_cv_env_CFLAGS_value=$CFLAGS 566ac_env_LDFLAGS_set=${LDFLAGS+set} 567ac_env_LDFLAGS_value=$LDFLAGS 568ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 569ac_cv_env_LDFLAGS_value=$LDFLAGS 570ac_env_CPPFLAGS_set=${CPPFLAGS+set} 571ac_env_CPPFLAGS_value=$CPPFLAGS 572ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 573ac_cv_env_CPPFLAGS_value=$CPPFLAGS 574ac_env_CPP_set=${CPP+set} 575ac_env_CPP_value=$CPP 576ac_cv_env_CPP_set=${CPP+set} 577ac_cv_env_CPP_value=$CPP 578 579# 580# Report the --help message. 581# 582if test "$ac_init_help" = "long"; then 583 # Omit some internal or obsolete options to make the list less imposing. 584 # This message is too long to be a string in the A/UX 3.1 sh. 585 cat <<EOF 586\`configure' configures this package to adapt to many kinds of systems. 587 588Usage: $0 [OPTION]... [VAR=VALUE]... 589 590To assign environment variables (e.g., CC, CFLAGS...), specify them as 591VAR=VALUE. See below for descriptions of some of the useful variables. 592 593Defaults for the options are specified in brackets. 594 595Configuration: 596 -h, --help display this help and exit 597 --help=short display options specific to this package 598 --help=recursive display the short help of all the included packages 599 -V, --version display version information and exit 600 -q, --quiet, --silent do not print \`checking...' messages 601 --cache-file=FILE cache test results in FILE [disabled] 602 -C, --config-cache alias for \`--cache-file=config.cache' 603 -n, --no-create do not create output files 604 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 605 606EOF 607 608 cat <<EOF 609Installation directories: 610 --prefix=PREFIX install architecture-independent files in PREFIX 611 [$ac_default_prefix] 612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 613 [PREFIX] 614 615By default, \`make install' will install all the files in 616\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 617an installation prefix other than \`$ac_default_prefix' using \`--prefix', 618for instance \`--prefix=\$HOME'. 619 620For better control, use the options below. 621 622Fine tuning of the installation directories: 623 --bindir=DIR user executables [EPREFIX/bin] 624 --sbindir=DIR system admin executables [EPREFIX/sbin] 625 --libexecdir=DIR program executables [EPREFIX/libexec] 626 --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 630 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 631 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run] 632 --libdir=DIR object code libraries [EPREFIX/lib] 633 --includedir=DIR C header files [PREFIX/include] 634 --oldincludedir=DIR C header files for non-gcc [/usr/include] 635 --infodir=DIR info documentation [DATAROOTDIR/info] 636 --mandir=DIR man documentation [DATAROOTDIR/man] 637EOF 638 639 cat <<\EOF 640 641Program names: 642 --program-prefix=PREFIX prepend PREFIX to installed program names 643 --program-suffix=SUFFIX append SUFFIX to installed program names 644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 645 646System types: 647 --build=BUILD configure for building on BUILD [guessed] 648 --host=HOST build programs to run on HOST [BUILD] 649EOF 650fi 651 652if test -n "$ac_init_help"; then 653 654 cat <<\EOF 655 656Optional Packages: 657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 659 660Optional Features: 661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 663 664Cross-compiling 665 --with-build-cc=XXX the build C compiler ($BUILD_CC) 666 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP) 667 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS) 668 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS) 669 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS) 670 --with-build-libs=XXX the build libraries (${BUILD_LIBS}) 671Miscellaneous options 672 --disable-echo do not display "compiling" commands 673 --enable-warnings test: turn on gcc compiler warnings 674 --with-man2html=XXX use XXX rather than groff 675 --without-builtin-regex do not use mawk's own regular-expressions engine 676 --enable-builtin-srand use mawk's own srand/rand functions 677 --disable-init-srand suppress automatic initialization of random numbers 678 --disable-largefile omit support for large files 679Testing-options 680 --with-dmalloc test: use Gray Watson's dmalloc library 681 --with-dbmalloc test: use Conor Cahill's dbmalloc library 682 --with-valgrind test: use valgrind 683 --disable-leaks test: free permanent memory, analyze leaks 684 --enable-trace test: turn on debug-tracing 685 686Some influential environment variables: 687 CC C compiler command 688 CFLAGS C compiler flags 689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 690 nonstandard directory <lib dir> 691 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 692 headers in a nonstandard directory <include dir> 693 CPP C preprocessor 694 695Use these variables to override the choices made by `configure' or to help 696it to find libraries and programs with nonstandard names/locations. 697 698EOF 699fi 700 701if test "$ac_init_help" = "recursive"; then 702 # If there are subdirs, report their specific --help. 703 ac_popdir=`pwd` 704 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 705 cd $ac_subdir 706 # A "../" for each directory in /$ac_subdir. 707 ac_dots=`echo $ac_subdir | 708 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 709 710 case $srcdir in 711 .) # No --srcdir option. We are building in place. 712 ac_sub_srcdir=$srcdir ;; 713 [\\/]* | ?:[\\/]* ) # Absolute path. 714 ac_sub_srcdir=$srcdir/$ac_subdir ;; 715 *) # Relative path. 716 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 717 esac 718 719 # Check for guested configure; otherwise get Cygnus style configure. 720 if test -f $ac_sub_srcdir/configure.gnu; then 721 echo 722 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 723 elif test -f $ac_sub_srcdir/configure; then 724 echo 725 $SHELL $ac_sub_srcdir/configure --help=recursive 726 elif test -f $ac_sub_srcdir/configure.ac || 727 test -f $ac_sub_srcdir/configure.in; then 728 echo 729 $ac_configure --help 730 else 731 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 732 fi 733 cd $ac_popdir 734 done 735fi 736 737test -n "$ac_init_help" && exit 0 738if $ac_init_version; then 739 cat <<\EOF 740 741Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 742Free Software Foundation, Inc. 743This configure script is free software; the Free Software Foundation 744gives unlimited permission to copy, distribute and modify it. 745EOF 746 exit 0 747fi 748exec 5>config.log 749cat >&5 <<EOF 750This file contains any messages produced by compilers while 751running configure, to aid debugging if configure makes a mistake. 752 753It was created by $as_me, which was 754generated by GNU Autoconf 2.52.20181006. Invocation command line was 755 756 $ $0 $@ 757 758EOF 759{ 760cat <<_ASUNAME 761## ---------- ## 762## Platform. ## 763## ---------- ## 764 765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 766uname -m = `(uname -m) 2>/dev/null || echo unknown` 767uname -r = `(uname -r) 2>/dev/null || echo unknown` 768uname -s = `(uname -s) 2>/dev/null || echo unknown` 769uname -v = `(uname -v) 2>/dev/null || echo unknown` 770 771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 772/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 773 774/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 775/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 777hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 778/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 779/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 780/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 781 782PATH = $PATH 783 784_ASUNAME 785} >&5 786 787cat >&5 <<EOF 788## ------------ ## 789## Core tests. ## 790## ------------ ## 791 792EOF 793 794# Keep a trace of the command line. 795# Strip out --no-create and --no-recursion so they do not pile up. 796# Also quote any args containing shell meta-characters. 797ac_configure_args= 798ac_sep= 799for ac_arg 800do 801 case $ac_arg in 802 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 803 | --no-cr | --no-c) ;; 804 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 805 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 806 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 807 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 808 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 809 ac_sep=" " ;; 810 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 811 ac_sep=" " ;; 812 esac 813 # Get rid of the leading space. 814done 815 816# When interrupted or exit'd, cleanup temporary files, and complete 817# config.log. We remove comments because anyway the quotes in there 818# would cause problems or look ugly. 819trap 'exit_status=$? 820 # Save into config.log some information that might help in debugging. 821 echo >&5 822 echo "## ----------------- ##" >&5 823 echo "## Cache variables. ##" >&5 824 echo "## ----------------- ##" >&5 825 echo >&5 826 # The following way of writing the cache mishandles newlines in values, 827{ 828 (set) 2>&1 | 829 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 830 *ac_space=\ *) 831 sed -n \ 832 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 834 ;; 835 *) 836 sed -n \ 837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 838 ;; 839 esac; 840} >&5 841 sed "/^$/d" confdefs.h >conftest.log 842 if test -s conftest.log; then 843 echo >&5 844 echo "## ------------ ##" >&5 845 echo "## confdefs.h. ##" >&5 846 echo "## ------------ ##" >&5 847 echo >&5 848 cat conftest.log >&5 849 fi 850 (echo; echo) >&5 851 test "$ac_signal" != 0 && 852 echo "$as_me: caught signal $ac_signal" >&5 853 echo "$as_me: exit $exit_status" >&5 854 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 855 exit $exit_status 856 ' 0 857for ac_signal in 1 2 13 15; do 858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 859done 860ac_signal=0 861 862# confdefs.h avoids OS command line length limits that DEFS can exceed. 863rm -rf conftest* confdefs.h 864# AIX cpp loses on an empty file, so make sure it contains at least a newline. 865echo >confdefs.h 866 867# Let the site file select an alternate cache file if it wants to. 868# Prefer explicitly selected file to automatically selected ones. 869if test -z "$CONFIG_SITE"; then 870 if test "x$prefix" != xNONE; then 871 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 872 else 873 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 874 fi 875fi 876for ac_site_file in $CONFIG_SITE; do 877 if test -r "$ac_site_file"; then 878 { echo "$as_me:878: loading site script $ac_site_file" >&5 879echo "$as_me: loading site script $ac_site_file" >&6;} 880 cat "$ac_site_file" >&5 881 . "$ac_site_file" 882 fi 883done 884 885if test -r "$cache_file"; then 886 # Some versions of bash will fail to source /dev/null (special 887 # files actually), so we avoid doing that. 888 if test -f "$cache_file"; then 889 { echo "$as_me:889: loading cache $cache_file" >&5 890echo "$as_me: loading cache $cache_file" >&6;} 891 case $cache_file in 892 [\\/]* | ?:[\\/]* ) . $cache_file;; 893 *) . ./$cache_file;; 894 esac 895 fi 896else 897 { echo "$as_me:897: creating cache $cache_file" >&5 898echo "$as_me: creating cache $cache_file" >&6;} 899 >$cache_file 900fi 901 902# Check that the precious variables saved in the cache have kept the same 903# value. 904ac_cache_corrupted=false 905for ac_var in `(set) 2>&1 | 906 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 907 eval ac_old_set=\$ac_cv_env_${ac_var}_set 908 eval ac_new_set=\$ac_env_${ac_var}_set 909 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 910 eval ac_new_val="\$ac_env_${ac_var}_value" 911 case $ac_old_set,$ac_new_set in 912 set,) 913 { echo "$as_me:913: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 914echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 915 ac_cache_corrupted=: ;; 916 ,set) 917 { echo "$as_me:917: error: \`$ac_var' was not set in the previous run" >&5 918echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 919 ac_cache_corrupted=: ;; 920 ,);; 921 *) 922 if test "x$ac_old_val" != "x$ac_new_val"; then 923 { echo "$as_me:923: error: \`$ac_var' has changed since the previous run:" >&5 924echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 925 { echo "$as_me:925: former value: $ac_old_val" >&5 926echo "$as_me: former value: $ac_old_val" >&2;} 927 { echo "$as_me:927: current value: $ac_new_val" >&5 928echo "$as_me: current value: $ac_new_val" >&2;} 929 ac_cache_corrupted=: 930 fi;; 931 esac 932 # Pass precious variables to config.status. It doesn't matter if 933 # we pass some twice (in addition to the command line arguments). 934 if test "$ac_new_set" = set; then 935 case $ac_new_val in 936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 937 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 938 ac_configure_args="$ac_configure_args '$ac_arg'" 939 ;; 940 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 941 ;; 942 esac 943 fi 944done 945if $ac_cache_corrupted; then 946 { echo "$as_me:946: error: changes in the environment can compromise the build" >&5 947echo "$as_me: error: changes in the environment can compromise the build" >&2;} 948 { { echo "$as_me:948: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 949echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 950 { (exit 1); exit 1; }; } 951fi 952 953ac_ext=c 954ac_cpp='$CPP $CPPFLAGS' 955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 957ac_compiler_gnu=$ac_cv_c_compiler_gnu 958ac_main_return=return 959 960case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 961 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 962 ECHO_T=' ' ;; 963 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 964 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 965esac 966echo "#! $SHELL" >conftest.sh 967echo "exit 0" >>conftest.sh 968chmod +x conftest.sh 969if { (echo "$as_me:969: PATH=\".;.\"; conftest.sh") >&5 970 (PATH=".;."; conftest.sh) 2>&5 971 ac_status=$? 972 echo "$as_me:972: \$? = $ac_status" >&5 973 (exit $ac_status); }; then 974 ac_path_separator=';' 975else 976 ac_path_separator=: 977fi 978PATH_SEPARATOR="$ac_path_separator" 979rm -f conftest.sh 980 981ac_config_headers="$ac_config_headers config.h:config_h.in" 982 983ac_aux_dir= 984for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 985 if test -f $ac_dir/install-sh; then 986 ac_aux_dir=$ac_dir 987 ac_install_sh="$ac_aux_dir/install-sh -c" 988 break 989 elif test -f $ac_dir/install.sh; then 990 ac_aux_dir=$ac_dir 991 ac_install_sh="$ac_aux_dir/install.sh -c" 992 break 993 elif test -f $ac_dir/shtool; then 994 ac_aux_dir=$ac_dir 995 ac_install_sh="$ac_aux_dir/shtool install -c" 996 break 997 fi 998done 999if test -z "$ac_aux_dir"; then 1000 { { echo "$as_me:1000: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1001echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1002 { (exit 1); exit 1; }; } 1003fi 1004ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1005ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1006ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1007 1008# Make sure we can run config.sub. 1009$ac_config_sub sun4 >/dev/null 2>&1 || 1010 { { echo "$as_me:1010: error: cannot run $ac_config_sub" >&5 1011echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1012 { (exit 1); exit 1; }; } 1013 1014echo "$as_me:1014: checking build system type" >&5 1015echo $ECHO_N "checking build system type... $ECHO_C" >&6 1016if test "${ac_cv_build+set}" = set; then 1017 echo $ECHO_N "(cached) $ECHO_C" >&6 1018else 1019 ac_cv_build_alias=$build_alias 1020test -z "$ac_cv_build_alias" && 1021 ac_cv_build_alias=`$ac_config_guess` 1022test -z "$ac_cv_build_alias" && 1023 { { echo "$as_me:1023: error: cannot guess build type; you must specify one" >&5 1024echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1025 { (exit 1); exit 1; }; } 1026ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1027 { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1028echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1029 { (exit 1); exit 1; }; } 1030 1031fi 1032echo "$as_me:1032: result: $ac_cv_build" >&5 1033echo "${ECHO_T}$ac_cv_build" >&6 1034build=$ac_cv_build 1035build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1036build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1037build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1038 1039if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1040 echo "$as_me:1040: checking host system type" >&5 1041echo $ECHO_N "checking host system type... $ECHO_C" >&6 1042if test "${ac_cv_host+set}" = set; then 1043 echo $ECHO_N "(cached) $ECHO_C" >&6 1044else 1045 ac_cv_host_alias=$host_alias 1046test -z "$ac_cv_host_alias" && 1047 ac_cv_host_alias=$ac_cv_build_alias 1048ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1049 { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1050echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1051 { (exit 1); exit 1; }; } 1052 1053fi 1054echo "$as_me:1054: result: $ac_cv_host" >&5 1055echo "${ECHO_T}$ac_cv_host" >&6 1056host=$ac_cv_host 1057host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1058host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1059host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1060 1061 system_name="$host_os" 1062else 1063 system_name="`(uname -s -r) 2>/dev/null`" 1064 if test -z "$system_name" ; then 1065 system_name="`(hostname) 2>/dev/null`" 1066 fi 1067fi 1068test -n "$system_name" && 1069cat >>confdefs.h <<EOF 1070#define SYSTEM_NAME "$system_name" 1071EOF 1072 1073if test "${cf_cv_system_name+set}" = set; then 1074 echo $ECHO_N "(cached) $ECHO_C" >&6 1075else 1076 cf_cv_system_name="$system_name" 1077fi 1078 1079test -z "$system_name" && system_name="$cf_cv_system_name" 1080test -n "$cf_cv_system_name" && echo "$as_me:1080: result: Configuring for $cf_cv_system_name" >&5 1081echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1082 1083if test ".$system_name" != ".$cf_cv_system_name" ; then 1084 echo "$as_me:1084: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1085echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1086 { { echo "$as_me:1086: error: \"Please remove config.cache and try again.\"" >&5 1087echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1088 { (exit 1); exit 1; }; } 1089fi 1090 1091test "$program_prefix" != NONE && 1092 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1093# Use a double $ so make ignores it. 1094test "$program_suffix" != NONE && 1095 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1096# Double any \ or $. echo might interpret backslashes. 1097# By default was `s,x,x', remove it if useless. 1098cat <<\_ACEOF >conftest.sed 1099s/[\\$]/&&/g;s/;s,x,x,$// 1100_ACEOF 1101program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1102rm conftest.sed 1103 1104ac_ext=c 1105ac_cpp='$CPP $CPPFLAGS' 1106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1108ac_compiler_gnu=$ac_cv_c_compiler_gnu 1109ac_main_return=return 1110if test -n "$ac_tool_prefix"; then 1111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1112set dummy ${ac_tool_prefix}gcc; ac_word=$2 1113echo "$as_me:1113: checking for $ac_word" >&5 1114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1115if test "${ac_cv_prog_CC+set}" = set; then 1116 echo $ECHO_N "(cached) $ECHO_C" >&6 1117else 1118 if test -n "$CC"; then 1119 ac_cv_prog_CC="$CC" # Let the user override the test. 1120else 1121 ac_save_IFS=$IFS; IFS=$ac_path_separator 1122ac_dummy="$PATH" 1123for ac_dir in $ac_dummy; do 1124 IFS=$ac_save_IFS 1125 test -z "$ac_dir" && ac_dir=. 1126 $as_executable_p "$ac_dir/$ac_word" || continue 1127ac_cv_prog_CC="${ac_tool_prefix}gcc" 1128echo "$as_me:1128: found $ac_dir/$ac_word" >&5 1129break 1130done 1131 1132fi 1133fi 1134CC=$ac_cv_prog_CC 1135if test -n "$CC"; then 1136 echo "$as_me:1136: result: $CC" >&5 1137echo "${ECHO_T}$CC" >&6 1138else 1139 echo "$as_me:1139: result: no" >&5 1140echo "${ECHO_T}no" >&6 1141fi 1142 1143fi 1144if test -z "$ac_cv_prog_CC"; then 1145 ac_ct_CC=$CC 1146 # Extract the first word of "gcc", so it can be a program name with args. 1147set dummy gcc; ac_word=$2 1148echo "$as_me:1148: checking for $ac_word" >&5 1149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1150if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1151 echo $ECHO_N "(cached) $ECHO_C" >&6 1152else 1153 if test -n "$ac_ct_CC"; then 1154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1155else 1156 ac_save_IFS=$IFS; IFS=$ac_path_separator 1157ac_dummy="$PATH" 1158for ac_dir in $ac_dummy; do 1159 IFS=$ac_save_IFS 1160 test -z "$ac_dir" && ac_dir=. 1161 $as_executable_p "$ac_dir/$ac_word" || continue 1162ac_cv_prog_ac_ct_CC="gcc" 1163echo "$as_me:1163: found $ac_dir/$ac_word" >&5 1164break 1165done 1166 1167fi 1168fi 1169ac_ct_CC=$ac_cv_prog_ac_ct_CC 1170if test -n "$ac_ct_CC"; then 1171 echo "$as_me:1171: result: $ac_ct_CC" >&5 1172echo "${ECHO_T}$ac_ct_CC" >&6 1173else 1174 echo "$as_me:1174: result: no" >&5 1175echo "${ECHO_T}no" >&6 1176fi 1177 1178 CC=$ac_ct_CC 1179else 1180 CC="$ac_cv_prog_CC" 1181fi 1182 1183if test -z "$CC"; then 1184 if test -n "$ac_tool_prefix"; then 1185 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1186set dummy ${ac_tool_prefix}cc; ac_word=$2 1187echo "$as_me:1187: checking for $ac_word" >&5 1188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1189if test "${ac_cv_prog_CC+set}" = set; then 1190 echo $ECHO_N "(cached) $ECHO_C" >&6 1191else 1192 if test -n "$CC"; then 1193 ac_cv_prog_CC="$CC" # Let the user override the test. 1194else 1195 ac_save_IFS=$IFS; IFS=$ac_path_separator 1196ac_dummy="$PATH" 1197for ac_dir in $ac_dummy; do 1198 IFS=$ac_save_IFS 1199 test -z "$ac_dir" && ac_dir=. 1200 $as_executable_p "$ac_dir/$ac_word" || continue 1201ac_cv_prog_CC="${ac_tool_prefix}cc" 1202echo "$as_me:1202: found $ac_dir/$ac_word" >&5 1203break 1204done 1205 1206fi 1207fi 1208CC=$ac_cv_prog_CC 1209if test -n "$CC"; then 1210 echo "$as_me:1210: result: $CC" >&5 1211echo "${ECHO_T}$CC" >&6 1212else 1213 echo "$as_me:1213: result: no" >&5 1214echo "${ECHO_T}no" >&6 1215fi 1216 1217fi 1218if test -z "$ac_cv_prog_CC"; then 1219 ac_ct_CC=$CC 1220 # Extract the first word of "cc", so it can be a program name with args. 1221set dummy cc; ac_word=$2 1222echo "$as_me:1222: checking for $ac_word" >&5 1223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1225 echo $ECHO_N "(cached) $ECHO_C" >&6 1226else 1227 if test -n "$ac_ct_CC"; then 1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1229else 1230 ac_save_IFS=$IFS; IFS=$ac_path_separator 1231ac_dummy="$PATH" 1232for ac_dir in $ac_dummy; do 1233 IFS=$ac_save_IFS 1234 test -z "$ac_dir" && ac_dir=. 1235 $as_executable_p "$ac_dir/$ac_word" || continue 1236ac_cv_prog_ac_ct_CC="cc" 1237echo "$as_me:1237: found $ac_dir/$ac_word" >&5 1238break 1239done 1240 1241fi 1242fi 1243ac_ct_CC=$ac_cv_prog_ac_ct_CC 1244if test -n "$ac_ct_CC"; then 1245 echo "$as_me:1245: result: $ac_ct_CC" >&5 1246echo "${ECHO_T}$ac_ct_CC" >&6 1247else 1248 echo "$as_me:1248: result: no" >&5 1249echo "${ECHO_T}no" >&6 1250fi 1251 1252 CC=$ac_ct_CC 1253else 1254 CC="$ac_cv_prog_CC" 1255fi 1256 1257fi 1258if test -z "$CC"; then 1259 # Extract the first word of "cc", so it can be a program name with args. 1260set dummy cc; ac_word=$2 1261echo "$as_me:1261: checking for $ac_word" >&5 1262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1263if test "${ac_cv_prog_CC+set}" = set; then 1264 echo $ECHO_N "(cached) $ECHO_C" >&6 1265else 1266 if test -n "$CC"; then 1267 ac_cv_prog_CC="$CC" # Let the user override the test. 1268else 1269 ac_prog_rejected=no 1270 ac_save_IFS=$IFS; IFS=$ac_path_separator 1271ac_dummy="$PATH" 1272for ac_dir in $ac_dummy; do 1273 IFS=$ac_save_IFS 1274 test -z "$ac_dir" && ac_dir=. 1275 $as_executable_p "$ac_dir/$ac_word" || continue 1276if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1277 ac_prog_rejected=yes 1278 continue 1279fi 1280ac_cv_prog_CC="cc" 1281echo "$as_me:1281: found $ac_dir/$ac_word" >&5 1282break 1283done 1284 1285if test $ac_prog_rejected = yes; then 1286 # We found a bogon in the path, so make sure we never use it. 1287 set dummy $ac_cv_prog_CC 1288 shift 1289 if test $# != 0; then 1290 # We chose a different compiler from the bogus one. 1291 # However, it has the same basename, so the bogon will be chosen 1292 # first if we set CC to just the basename; use the full file name. 1293 shift 1294 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1295 shift 1296 ac_cv_prog_CC="$@" 1297 fi 1298fi 1299fi 1300fi 1301CC=$ac_cv_prog_CC 1302if test -n "$CC"; then 1303 echo "$as_me:1303: result: $CC" >&5 1304echo "${ECHO_T}$CC" >&6 1305else 1306 echo "$as_me:1306: result: no" >&5 1307echo "${ECHO_T}no" >&6 1308fi 1309 1310fi 1311if test -z "$CC"; then 1312 if test -n "$ac_tool_prefix"; then 1313 for ac_prog in cl 1314 do 1315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1317echo "$as_me:1317: checking for $ac_word" >&5 1318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1319if test "${ac_cv_prog_CC+set}" = set; then 1320 echo $ECHO_N "(cached) $ECHO_C" >&6 1321else 1322 if test -n "$CC"; then 1323 ac_cv_prog_CC="$CC" # Let the user override the test. 1324else 1325 ac_save_IFS=$IFS; IFS=$ac_path_separator 1326ac_dummy="$PATH" 1327for ac_dir in $ac_dummy; do 1328 IFS=$ac_save_IFS 1329 test -z "$ac_dir" && ac_dir=. 1330 $as_executable_p "$ac_dir/$ac_word" || continue 1331ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1332echo "$as_me:1332: found $ac_dir/$ac_word" >&5 1333break 1334done 1335 1336fi 1337fi 1338CC=$ac_cv_prog_CC 1339if test -n "$CC"; then 1340 echo "$as_me:1340: result: $CC" >&5 1341echo "${ECHO_T}$CC" >&6 1342else 1343 echo "$as_me:1343: result: no" >&5 1344echo "${ECHO_T}no" >&6 1345fi 1346 1347 test -n "$CC" && break 1348 done 1349fi 1350if test -z "$CC"; then 1351 ac_ct_CC=$CC 1352 for ac_prog in cl 1353do 1354 # Extract the first word of "$ac_prog", so it can be a program name with args. 1355set dummy $ac_prog; ac_word=$2 1356echo "$as_me:1356: checking for $ac_word" >&5 1357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1359 echo $ECHO_N "(cached) $ECHO_C" >&6 1360else 1361 if test -n "$ac_ct_CC"; then 1362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1363else 1364 ac_save_IFS=$IFS; IFS=$ac_path_separator 1365ac_dummy="$PATH" 1366for ac_dir in $ac_dummy; do 1367 IFS=$ac_save_IFS 1368 test -z "$ac_dir" && ac_dir=. 1369 $as_executable_p "$ac_dir/$ac_word" || continue 1370ac_cv_prog_ac_ct_CC="$ac_prog" 1371echo "$as_me:1371: found $ac_dir/$ac_word" >&5 1372break 1373done 1374 1375fi 1376fi 1377ac_ct_CC=$ac_cv_prog_ac_ct_CC 1378if test -n "$ac_ct_CC"; then 1379 echo "$as_me:1379: result: $ac_ct_CC" >&5 1380echo "${ECHO_T}$ac_ct_CC" >&6 1381else 1382 echo "$as_me:1382: result: no" >&5 1383echo "${ECHO_T}no" >&6 1384fi 1385 1386 test -n "$ac_ct_CC" && break 1387done 1388 1389 CC=$ac_ct_CC 1390fi 1391 1392fi 1393 1394test -z "$CC" && { { echo "$as_me:1394: error: no acceptable cc found in \$PATH" >&5 1395echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1396 { (exit 1); exit 1; }; } 1397 1398# Provide some information about the compiler. 1399echo "$as_me:1399:" \ 1400 "checking for C compiler version" >&5 1401ac_compiler=`set X $ac_compile; echo $2` 1402{ (eval echo "$as_me:1402: \"$ac_compiler --version </dev/null >&5\"") >&5 1403 (eval $ac_compiler --version </dev/null >&5) 2>&5 1404 ac_status=$? 1405 echo "$as_me:1405: \$? = $ac_status" >&5 1406 (exit $ac_status); } 1407{ (eval echo "$as_me:1407: \"$ac_compiler -v </dev/null >&5\"") >&5 1408 (eval $ac_compiler -v </dev/null >&5) 2>&5 1409 ac_status=$? 1410 echo "$as_me:1410: \$? = $ac_status" >&5 1411 (exit $ac_status); } 1412{ (eval echo "$as_me:1412: \"$ac_compiler -V </dev/null >&5\"") >&5 1413 (eval $ac_compiler -V </dev/null >&5) 2>&5 1414 ac_status=$? 1415 echo "$as_me:1415: \$? = $ac_status" >&5 1416 (exit $ac_status); } 1417 1418cat >conftest.$ac_ext <<_ACEOF 1419#line 1419 "configure" 1420#include "confdefs.h" 1421 1422int 1423main (void) 1424{ 1425 1426 ; 1427 return 0; 1428} 1429_ACEOF 1430ac_clean_files_save=$ac_clean_files 1431ac_clean_files="$ac_clean_files a.out a.exe" 1432# Try to create an executable without -o first, disregard a.out. 1433# It will help us diagnose broken compilers, and finding out an intuition 1434# of exeext. 1435echo "$as_me:1435: checking for C compiler default output" >&5 1436echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1437ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1438if { (eval echo "$as_me:1438: \"$ac_link_default\"") >&5 1439 (eval $ac_link_default) 2>&5 1440 ac_status=$? 1441 echo "$as_me:1441: \$? = $ac_status" >&5 1442 (exit $ac_status); }; then 1443 # Find the output, starting from the most likely. This scheme is 1444# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1445# resort. 1446for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1447 ls a.out conftest 2>/dev/null; 1448 ls a.* conftest.* 2>/dev/null`; do 1449 case $ac_file in 1450 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1451 a.out ) # We found the default executable, but exeext='' is most 1452 # certainly right. 1453 break;; 1454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1455 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1456 export ac_cv_exeext 1457 break;; 1458 * ) break;; 1459 esac 1460done 1461else 1462 echo "$as_me: failed program was:" >&5 1463cat conftest.$ac_ext >&5 1464{ { echo "$as_me:1464: error: C compiler cannot create executables" >&5 1465echo "$as_me: error: C compiler cannot create executables" >&2;} 1466 { (exit 77); exit 77; }; } 1467fi 1468 1469ac_exeext=$ac_cv_exeext 1470echo "$as_me:1470: result: $ac_file" >&5 1471echo "${ECHO_T}$ac_file" >&6 1472 1473# Check the compiler produces executables we can run. If not, either 1474# the compiler is broken, or we cross compile. 1475echo "$as_me:1475: checking whether the C compiler works" >&5 1476echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1478# If not cross compiling, check that we can run a simple program. 1479if test "$cross_compiling" != yes; then 1480 if { ac_try='./$ac_file' 1481 { (eval echo "$as_me:1481: \"$ac_try\"") >&5 1482 (eval $ac_try) 2>&5 1483 ac_status=$? 1484 echo "$as_me:1484: \$? = $ac_status" >&5 1485 (exit $ac_status); }; }; then 1486 cross_compiling=no 1487 else 1488 if test "$cross_compiling" = maybe; then 1489 cross_compiling=yes 1490 else 1491 { { echo "$as_me:1491: error: cannot run C compiled programs. 1492If you meant to cross compile, use \`--host'." >&5 1493echo "$as_me: error: cannot run C compiled programs. 1494If you meant to cross compile, use \`--host'." >&2;} 1495 { (exit 1); exit 1; }; } 1496 fi 1497 fi 1498fi 1499echo "$as_me:1499: result: yes" >&5 1500echo "${ECHO_T}yes" >&6 1501 1502rm -f a.out a.exe conftest$ac_cv_exeext 1503ac_clean_files=$ac_clean_files_save 1504# Check the compiler produces executables we can run. If not, either 1505# the compiler is broken, or we cross compile. 1506echo "$as_me:1506: checking whether we are cross compiling" >&5 1507echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1508echo "$as_me:1508: result: $cross_compiling" >&5 1509echo "${ECHO_T}$cross_compiling" >&6 1510 1511echo "$as_me:1511: checking for executable suffix" >&5 1512echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1513if { (eval echo "$as_me:1513: \"$ac_link\"") >&5 1514 (eval $ac_link) 2>&5 1515 ac_status=$? 1516 echo "$as_me:1516: \$? = $ac_status" >&5 1517 (exit $ac_status); }; then 1518 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1520# work properly (i.e., refer to `conftest.exe'), while it won't with 1521# `rm'. 1522for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1523 case $ac_file in 1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1526 export ac_cv_exeext 1527 break;; 1528 * ) break;; 1529 esac 1530done 1531else 1532 { { echo "$as_me:1532: error: cannot compute EXEEXT: cannot compile and link" >&5 1533echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1534 { (exit 1); exit 1; }; } 1535fi 1536 1537rm -f conftest$ac_cv_exeext 1538echo "$as_me:1538: result: $ac_cv_exeext" >&5 1539echo "${ECHO_T}$ac_cv_exeext" >&6 1540 1541rm -f conftest.$ac_ext 1542EXEEXT=$ac_cv_exeext 1543ac_exeext=$EXEEXT 1544echo "$as_me:1544: checking for object suffix" >&5 1545echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1546if test "${ac_cv_objext+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548else 1549 cat >conftest.$ac_ext <<_ACEOF 1550#line 1550 "configure" 1551#include "confdefs.h" 1552 1553int 1554main (void) 1555{ 1556 1557 ; 1558 return 0; 1559} 1560_ACEOF 1561rm -f conftest.o conftest.obj 1562if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5 1563 (eval $ac_compile) 2>&5 1564 ac_status=$? 1565 echo "$as_me:1565: \$? = $ac_status" >&5 1566 (exit $ac_status); }; then 1567 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1568 case $ac_file in 1569 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1571 break;; 1572 esac 1573done 1574else 1575 echo "$as_me: failed program was:" >&5 1576cat conftest.$ac_ext >&5 1577{ { echo "$as_me:1577: error: cannot compute OBJEXT: cannot compile" >&5 1578echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1579 { (exit 1); exit 1; }; } 1580fi 1581 1582rm -f conftest.$ac_cv_objext conftest.$ac_ext 1583fi 1584echo "$as_me:1584: result: $ac_cv_objext" >&5 1585echo "${ECHO_T}$ac_cv_objext" >&6 1586OBJEXT=$ac_cv_objext 1587ac_objext=$OBJEXT 1588echo "$as_me:1588: checking whether we are using the GNU C compiler" >&5 1589echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1590if test "${ac_cv_c_compiler_gnu+set}" = set; then 1591 echo $ECHO_N "(cached) $ECHO_C" >&6 1592else 1593 cat >conftest.$ac_ext <<_ACEOF 1594#line 1594 "configure" 1595#include "confdefs.h" 1596 1597int 1598main (void) 1599{ 1600#ifndef __GNUC__ 1601 choke me 1602#endif 1603 1604 ; 1605 return 0; 1606} 1607_ACEOF 1608rm -f conftest.$ac_objext 1609if { (eval echo "$as_me:1609: \"$ac_compile\"") >&5 1610 (eval $ac_compile) 2>&5 1611 ac_status=$? 1612 echo "$as_me:1612: \$? = $ac_status" >&5 1613 (exit $ac_status); } && 1614 { ac_try='test -s conftest.$ac_objext' 1615 { (eval echo "$as_me:1615: \"$ac_try\"") >&5 1616 (eval $ac_try) 2>&5 1617 ac_status=$? 1618 echo "$as_me:1618: \$? = $ac_status" >&5 1619 (exit $ac_status); }; }; then 1620 ac_compiler_gnu=yes 1621else 1622 echo "$as_me: failed program was:" >&5 1623cat conftest.$ac_ext >&5 1624ac_compiler_gnu=no 1625fi 1626rm -f conftest.$ac_objext conftest.$ac_ext 1627ac_cv_c_compiler_gnu=$ac_compiler_gnu 1628 1629fi 1630echo "$as_me:1630: result: $ac_cv_c_compiler_gnu" >&5 1631echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1632GCC=`test $ac_compiler_gnu = yes && echo yes` 1633ac_test_CFLAGS=${CFLAGS+set} 1634ac_save_CFLAGS=$CFLAGS 1635CFLAGS="-g" 1636echo "$as_me:1636: checking whether $CC accepts -g" >&5 1637echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1638if test "${ac_cv_prog_cc_g+set}" = set; then 1639 echo $ECHO_N "(cached) $ECHO_C" >&6 1640else 1641 cat >conftest.$ac_ext <<_ACEOF 1642#line 1642 "configure" 1643#include "confdefs.h" 1644 1645int 1646main (void) 1647{ 1648 1649 ; 1650 return 0; 1651} 1652_ACEOF 1653rm -f conftest.$ac_objext 1654if { (eval echo "$as_me:1654: \"$ac_compile\"") >&5 1655 (eval $ac_compile) 2>&5 1656 ac_status=$? 1657 echo "$as_me:1657: \$? = $ac_status" >&5 1658 (exit $ac_status); } && 1659 { ac_try='test -s conftest.$ac_objext' 1660 { (eval echo "$as_me:1660: \"$ac_try\"") >&5 1661 (eval $ac_try) 2>&5 1662 ac_status=$? 1663 echo "$as_me:1663: \$? = $ac_status" >&5 1664 (exit $ac_status); }; }; then 1665 ac_cv_prog_cc_g=yes 1666else 1667 echo "$as_me: failed program was:" >&5 1668cat conftest.$ac_ext >&5 1669ac_cv_prog_cc_g=no 1670fi 1671rm -f conftest.$ac_objext conftest.$ac_ext 1672fi 1673echo "$as_me:1673: result: $ac_cv_prog_cc_g" >&5 1674echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1675if test "$ac_test_CFLAGS" = set; then 1676 CFLAGS=$ac_save_CFLAGS 1677elif test $ac_cv_prog_cc_g = yes; then 1678 if test "$GCC" = yes; then 1679 CFLAGS="-g -O2" 1680 else 1681 CFLAGS="-g" 1682 fi 1683else 1684 if test "$GCC" = yes; then 1685 CFLAGS="-O2" 1686 else 1687 CFLAGS= 1688 fi 1689fi 1690# Some people use a C++ compiler to compile C. Since we use `exit', 1691# in C++ we need to declare it. In case someone uses the same compiler 1692# for both compiling C and C++ we need to have the C++ compiler decide 1693# the declaration of exit, since it's the most demanding environment. 1694cat >conftest.$ac_ext <<_ACEOF 1695#ifndef __cplusplus 1696 choke me 1697#endif 1698_ACEOF 1699rm -f conftest.$ac_objext 1700if { (eval echo "$as_me:1700: \"$ac_compile\"") >&5 1701 (eval $ac_compile) 2>&5 1702 ac_status=$? 1703 echo "$as_me:1703: \$? = $ac_status" >&5 1704 (exit $ac_status); } && 1705 { ac_try='test -s conftest.$ac_objext' 1706 { (eval echo "$as_me:1706: \"$ac_try\"") >&5 1707 (eval $ac_try) 2>&5 1708 ac_status=$? 1709 echo "$as_me:1709: \$? = $ac_status" >&5 1710 (exit $ac_status); }; }; then 1711 for ac_declaration in \ 1712 ''\ 1713 '#include <stdlib.h>' \ 1714 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1715 'extern "C" void std::exit (int); using std::exit;' \ 1716 'extern "C" void exit (int) throw ();' \ 1717 'extern "C" void exit (int);' \ 1718 'void exit (int);' 1719do 1720 cat >conftest.$ac_ext <<_ACEOF 1721#line 1721 "configure" 1722#include "confdefs.h" 1723#include <stdlib.h> 1724$ac_declaration 1725int 1726main (void) 1727{ 1728exit (42); 1729 ; 1730 return 0; 1731} 1732_ACEOF 1733rm -f conftest.$ac_objext 1734if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5 1735 (eval $ac_compile) 2>&5 1736 ac_status=$? 1737 echo "$as_me:1737: \$? = $ac_status" >&5 1738 (exit $ac_status); } && 1739 { ac_try='test -s conftest.$ac_objext' 1740 { (eval echo "$as_me:1740: \"$ac_try\"") >&5 1741 (eval $ac_try) 2>&5 1742 ac_status=$? 1743 echo "$as_me:1743: \$? = $ac_status" >&5 1744 (exit $ac_status); }; }; then 1745 : 1746else 1747 echo "$as_me: failed program was:" >&5 1748cat conftest.$ac_ext >&5 1749continue 1750fi 1751rm -f conftest.$ac_objext conftest.$ac_ext 1752 cat >conftest.$ac_ext <<_ACEOF 1753#line 1753 "configure" 1754#include "confdefs.h" 1755$ac_declaration 1756int 1757main (void) 1758{ 1759exit (42); 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764rm -f conftest.$ac_objext 1765if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5 1766 (eval $ac_compile) 2>&5 1767 ac_status=$? 1768 echo "$as_me:1768: \$? = $ac_status" >&5 1769 (exit $ac_status); } && 1770 { ac_try='test -s conftest.$ac_objext' 1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5 1772 (eval $ac_try) 2>&5 1773 ac_status=$? 1774 echo "$as_me:1774: \$? = $ac_status" >&5 1775 (exit $ac_status); }; }; then 1776 break 1777else 1778 echo "$as_me: failed program was:" >&5 1779cat conftest.$ac_ext >&5 1780fi 1781rm -f conftest.$ac_objext conftest.$ac_ext 1782done 1783rm -rf conftest* 1784if test -n "$ac_declaration"; then 1785 echo '#ifdef __cplusplus' >>confdefs.h 1786 echo $ac_declaration >>confdefs.h 1787 echo '#endif' >>confdefs.h 1788fi 1789 1790else 1791 echo "$as_me: failed program was:" >&5 1792cat conftest.$ac_ext >&5 1793fi 1794rm -f conftest.$ac_objext conftest.$ac_ext 1795ac_ext=c 1796ac_cpp='$CPP $CPPFLAGS' 1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1799ac_compiler_gnu=$ac_cv_c_compiler_gnu 1800ac_main_return=return 1801 1802GCC_VERSION=none 1803if test "$GCC" = yes ; then 1804 echo "$as_me:1804: checking version of $CC" >&5 1805echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 1806 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.].*//'`" 1807 test -z "$GCC_VERSION" && GCC_VERSION=unknown 1808 echo "$as_me:1808: result: $GCC_VERSION" >&5 1809echo "${ECHO_T}$GCC_VERSION" >&6 1810fi 1811 1812echo "$as_me:1812: checking for $CC option to accept ANSI C" >&5 1813echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1814if test "${ac_cv_prog_cc_stdc+set}" = set; then 1815 echo $ECHO_N "(cached) $ECHO_C" >&6 1816else 1817 ac_cv_prog_cc_stdc=no 1818ac_save_CC=$CC 1819cat >conftest.$ac_ext <<_ACEOF 1820#line 1820 "configure" 1821#include "confdefs.h" 1822#include <stdarg.h> 1823#include <stdio.h> 1824#include <sys/types.h> 1825#include <sys/stat.h> 1826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1827struct buf { int x; }; 1828FILE * (*rcsopen) (struct buf *, struct stat *, int); 1829static char *e (p, i) 1830 char **p; 1831 int i; 1832{ 1833 return p[i]; 1834} 1835static char *f (char * (*g) (char **, int), char **p, ...) 1836{ 1837 char *s; 1838 va_list v; 1839 va_start (v,p); 1840 s = g (p, va_arg (v,int)); 1841 va_end (v); 1842 return s; 1843} 1844int test (int i, double x); 1845struct s1 {int (*f) (int a);}; 1846struct s2 {int (*f) (double a);}; 1847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1848int argc; 1849char **argv; 1850int 1851main (void) 1852{ 1853return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1854 ; 1855 return 0; 1856} 1857_ACEOF 1858# Don't try gcc -ansi; that turns off useful extensions and 1859# breaks some systems' header files. 1860# AIX -qlanglvl=ansi 1861# Ultrix and OSF/1 -std1 1862# HP-UX 10.20 and later -Ae 1863# HP-UX older versions -Aa -D_HPUX_SOURCE 1864# SVR4 -Xc -D__EXTENSIONS__ 1865for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1866do 1867 CC="$ac_save_CC $ac_arg" 1868 rm -f conftest.$ac_objext 1869if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5 1870 (eval $ac_compile) 2>&5 1871 ac_status=$? 1872 echo "$as_me:1872: \$? = $ac_status" >&5 1873 (exit $ac_status); } && 1874 { ac_try='test -s conftest.$ac_objext' 1875 { (eval echo "$as_me:1875: \"$ac_try\"") >&5 1876 (eval $ac_try) 2>&5 1877 ac_status=$? 1878 echo "$as_me:1878: \$? = $ac_status" >&5 1879 (exit $ac_status); }; }; then 1880 ac_cv_prog_cc_stdc=$ac_arg 1881break 1882else 1883 echo "$as_me: failed program was:" >&5 1884cat conftest.$ac_ext >&5 1885fi 1886rm -f conftest.$ac_objext 1887done 1888rm -f conftest.$ac_ext conftest.$ac_objext 1889CC=$ac_save_CC 1890 1891fi 1892 1893case "x$ac_cv_prog_cc_stdc" in 1894 x|xno) 1895 echo "$as_me:1895: result: none needed" >&5 1896echo "${ECHO_T}none needed" >&6 ;; 1897 *) 1898 echo "$as_me:1898: result: $ac_cv_prog_cc_stdc" >&5 1899echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1900 CC="$CC $ac_cv_prog_cc_stdc" ;; 1901esac 1902 1903# This should have been defined by AC_PROG_CC 1904: ${CC:=cc} 1905 1906echo "$as_me:1906: checking \$CFLAGS variable" >&5 1907echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 1908case "x$CFLAGS" in 1909(*-[IUD]*) 1910 echo "$as_me:1910: result: broken" >&5 1911echo "${ECHO_T}broken" >&6 1912 { echo "$as_me:1912: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5 1913echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;} 1914 cf_flags="$CFLAGS" 1915 CFLAGS= 1916 for cf_arg in $cf_flags 1917 do 1918 1919cf_fix_cppflags=no 1920cf_new_cflags= 1921cf_new_cppflags= 1922cf_new_extra_cppflags= 1923 1924for cf_add_cflags in $cf_arg 1925do 1926case $cf_fix_cppflags in 1927(no) 1928 case $cf_add_cflags in 1929 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 1930 case $cf_add_cflags in 1931 (-D*) 1932 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1933 1934 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1935 && test -z "${cf_tst_cflags}" \ 1936 && cf_fix_cppflags=yes 1937 1938 if test $cf_fix_cppflags = yes ; then 1939 1940 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1941 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1942 1943 continue 1944 elif test "${cf_tst_cflags}" = "\"'" ; then 1945 1946 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1947 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1948 1949 continue 1950 fi 1951 ;; 1952 esac 1953 case "$CPPFLAGS" in 1954 (*$cf_add_cflags) 1955 ;; 1956 (*) 1957 case $cf_add_cflags in 1958 (-D*) 1959 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 1960 1961CPPFLAGS=`echo "$CPPFLAGS" | \ 1962 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 1963 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 1964 1965 ;; 1966 esac 1967 1968 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 1969 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 1970 1971 ;; 1972 esac 1973 ;; 1974 (*) 1975 1976 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 1977 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 1978 1979 ;; 1980 esac 1981 ;; 1982(yes) 1983 1984 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 1985 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 1986 1987 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 1988 1989 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1990 && test -z "${cf_tst_cflags}" \ 1991 && cf_fix_cppflags=no 1992 ;; 1993esac 1994done 1995 1996if test -n "$cf_new_cflags" ; then 1997 1998 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 1999 CFLAGS="${CFLAGS}$cf_new_cflags" 2000 2001fi 2002 2003if test -n "$cf_new_cppflags" ; then 2004 2005 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2006 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2007 2008fi 2009 2010if test -n "$cf_new_extra_cppflags" ; then 2011 2012 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2013 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2014 2015fi 2016 2017 done 2018 ;; 2019(*) 2020 echo "$as_me:2020: result: ok" >&5 2021echo "${ECHO_T}ok" >&6 2022 ;; 2023esac 2024 2025echo "$as_me:2025: checking \$CC variable" >&5 2026echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2027case "$CC" in 2028(*[\ \ ]-*) 2029 echo "$as_me:2029: result: broken" >&5 2030echo "${ECHO_T}broken" >&6 2031 { echo "$as_me:2031: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2032echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2033 # humor him... 2034 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'` 2035 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'` 2036 CC="$cf_prog" 2037 for cf_arg in $cf_flags 2038 do 2039 case "x$cf_arg" in 2040 (x-[IUDfgOW]*) 2041 2042cf_fix_cppflags=no 2043cf_new_cflags= 2044cf_new_cppflags= 2045cf_new_extra_cppflags= 2046 2047for cf_add_cflags in $cf_arg 2048do 2049case $cf_fix_cppflags in 2050(no) 2051 case $cf_add_cflags in 2052 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2053 case $cf_add_cflags in 2054 (-D*) 2055 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2056 2057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2058 && test -z "${cf_tst_cflags}" \ 2059 && cf_fix_cppflags=yes 2060 2061 if test $cf_fix_cppflags = yes ; then 2062 2063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2065 2066 continue 2067 elif test "${cf_tst_cflags}" = "\"'" ; then 2068 2069 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2070 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2071 2072 continue 2073 fi 2074 ;; 2075 esac 2076 case "$CPPFLAGS" in 2077 (*$cf_add_cflags) 2078 ;; 2079 (*) 2080 case $cf_add_cflags in 2081 (-D*) 2082 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2083 2084CPPFLAGS=`echo "$CPPFLAGS" | \ 2085 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2086 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2087 2088 ;; 2089 esac 2090 2091 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 2092 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 2093 2094 ;; 2095 esac 2096 ;; 2097 (*) 2098 2099 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 2100 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 2101 2102 ;; 2103 esac 2104 ;; 2105(yes) 2106 2107 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 2108 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 2109 2110 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2111 2112 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2113 && test -z "${cf_tst_cflags}" \ 2114 && cf_fix_cppflags=no 2115 ;; 2116esac 2117done 2118 2119if test -n "$cf_new_cflags" ; then 2120 2121 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 2122 CFLAGS="${CFLAGS}$cf_new_cflags" 2123 2124fi 2125 2126if test -n "$cf_new_cppflags" ; then 2127 2128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 2129 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 2130 2131fi 2132 2133if test -n "$cf_new_extra_cppflags" ; then 2134 2135 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 2136 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 2137 2138fi 2139 2140 ;; 2141 (*) 2142 CC="$CC $cf_arg" 2143 ;; 2144 esac 2145 done 2146 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2147 2148echo "${as_me:-configure}:2148: testing resulting CC: '$CC' ..." 1>&5 2149 2150 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2151 2152echo "${as_me:-configure}:2152: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2153 2154 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2155 2156echo "${as_me:-configure}:2156: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2157 2158 ;; 2159(*) 2160 echo "$as_me:2160: result: ok" >&5 2161echo "${ECHO_T}ok" >&6 2162 ;; 2163esac 2164 2165echo "$as_me:2165: checking whether ${MAKE-make} sets \${MAKE}" >&5 2166echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2167set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2168if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170else 2171 cat >conftest.make <<\EOF 2172all: 2173 @echo 'ac_maketemp="${MAKE}"' 2174EOF 2175# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2176eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2177if test -n "$ac_maketemp"; then 2178 eval ac_cv_prog_make_${ac_make}_set=yes 2179else 2180 eval ac_cv_prog_make_${ac_make}_set=no 2181fi 2182rm -f conftest.make 2183fi 2184if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2185 echo "$as_me:2185: result: yes" >&5 2186echo "${ECHO_T}yes" >&6 2187 SET_MAKE= 2188else 2189 echo "$as_me:2189: result: no" >&5 2190echo "${ECHO_T}no" >&6 2191 SET_MAKE="MAKE=${MAKE-make}" 2192fi 2193 2194echo "$as_me:2194: checking for makeflags variable" >&5 2195echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6 2196if test "${cf_cv_makeflags+set}" = set; then 2197 echo $ECHO_N "(cached) $ECHO_C" >&6 2198else 2199 2200 cf_cv_makeflags='' 2201 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}' 2202 do 2203 cat >cf_makeflags.tmp <<CF_EOF 2204SHELL = $SHELL 2205all : 2206 @ echo '.$cf_option' 2207CF_EOF 2208 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'` 2209 case "$cf_result" in 2210 (.*k|.*kw) 2211 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null` 2212 case "$cf_result" in 2213 (.*CC=*) cf_cv_makeflags= 2214 ;; 2215 (*) cf_cv_makeflags=$cf_option 2216 ;; 2217 esac 2218 break 2219 ;; 2220 (.-) 2221 ;; 2222 (*) 2223 2224echo "${as_me:-configure}:2224: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5 2225 2226 ;; 2227 esac 2228 done 2229 rm -f cf_makeflags.tmp 2230 2231fi 2232echo "$as_me:2232: result: $cf_cv_makeflags" >&5 2233echo "${ECHO_T}$cf_cv_makeflags" >&6 2234 2235ac_ext=c 2236ac_cpp='$CPP $CPPFLAGS' 2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2239ac_compiler_gnu=$ac_cv_c_compiler_gnu 2240ac_main_return=return 2241echo "$as_me:2241: checking how to run the C preprocessor" >&5 2242echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2243# On Suns, sometimes $CPP names a directory. 2244if test -n "$CPP" && test -d "$CPP"; then 2245 CPP= 2246fi 2247if test -z "$CPP"; then 2248 if test "${ac_cv_prog_CPP+set}" = set; then 2249 echo $ECHO_N "(cached) $ECHO_C" >&6 2250else 2251 # Double quotes because CPP needs to be expanded 2252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2253 do 2254 ac_preproc_ok=false 2255for ac_c_preproc_warn_flag in '' yes 2256do 2257 # Use a header file that comes with gcc, so configuring glibc 2258 # with a fresh cross-compiler works. 2259 # On the NeXT, cc -E runs the code through the compiler's parser, 2260 # not just through cpp. "Syntax error" is here to catch this case. 2261 cat >conftest.$ac_ext <<_ACEOF 2262#line 2262 "configure" 2263#include "confdefs.h" 2264#include <assert.h> 2265 Syntax error 2266_ACEOF 2267if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5 2268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2269 ac_status=$? 2270 egrep -v '^ *\+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:2273: \$? = $ac_status" >&5 2274 (exit $ac_status); } >/dev/null; then 2275 if test -s conftest.err; then 2276 ac_cpp_err=$ac_c_preproc_warn_flag 2277 else 2278 ac_cpp_err= 2279 fi 2280else 2281 ac_cpp_err=yes 2282fi 2283if test -z "$ac_cpp_err"; then 2284 : 2285else 2286 echo "$as_me: failed program was:" >&5 2287 cat conftest.$ac_ext >&5 2288 # Broken: fails on valid input. 2289continue 2290fi 2291rm -f conftest.err conftest.$ac_ext 2292 2293 # OK, works on sane cases. Now check whether non-existent headers 2294 # can be detected and how. 2295 cat >conftest.$ac_ext <<_ACEOF 2296#line 2296 "configure" 2297#include "confdefs.h" 2298#include <ac_nonexistent.h> 2299_ACEOF 2300if { (eval echo "$as_me:2300: \"$ac_cpp conftest.$ac_ext\"") >&5 2301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2302 ac_status=$? 2303 egrep -v '^ *\+' conftest.er1 >conftest.err 2304 rm -f conftest.er1 2305 cat conftest.err >&5 2306 echo "$as_me:2306: \$? = $ac_status" >&5 2307 (exit $ac_status); } >/dev/null; then 2308 if test -s conftest.err; then 2309 ac_cpp_err=$ac_c_preproc_warn_flag 2310 else 2311 ac_cpp_err= 2312 fi 2313else 2314 ac_cpp_err=yes 2315fi 2316if test -z "$ac_cpp_err"; then 2317 # Broken: success on invalid input. 2318continue 2319else 2320 echo "$as_me: failed program was:" >&5 2321 cat conftest.$ac_ext >&5 2322 # Passes both tests. 2323ac_preproc_ok=: 2324break 2325fi 2326rm -f conftest.err conftest.$ac_ext 2327 2328done 2329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2330rm -f conftest.err conftest.$ac_ext 2331if $ac_preproc_ok; then 2332 break 2333fi 2334 2335 done 2336 ac_cv_prog_CPP=$CPP 2337 2338fi 2339 CPP=$ac_cv_prog_CPP 2340else 2341 ac_cv_prog_CPP=$CPP 2342fi 2343echo "$as_me:2343: result: $CPP" >&5 2344echo "${ECHO_T}$CPP" >&6 2345ac_preproc_ok=false 2346for ac_c_preproc_warn_flag in '' yes 2347do 2348 # Use a header file that comes with gcc, so configuring glibc 2349 # with a fresh cross-compiler works. 2350 # On the NeXT, cc -E runs the code through the compiler's parser, 2351 # not just through cpp. "Syntax error" is here to catch this case. 2352 cat >conftest.$ac_ext <<_ACEOF 2353#line 2353 "configure" 2354#include "confdefs.h" 2355#include <assert.h> 2356 Syntax error 2357_ACEOF 2358if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5 2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2360 ac_status=$? 2361 egrep -v '^ *\+' conftest.er1 >conftest.err 2362 rm -f conftest.er1 2363 cat conftest.err >&5 2364 echo "$as_me:2364: \$? = $ac_status" >&5 2365 (exit $ac_status); } >/dev/null; then 2366 if test -s conftest.err; then 2367 ac_cpp_err=$ac_c_preproc_warn_flag 2368 else 2369 ac_cpp_err= 2370 fi 2371else 2372 ac_cpp_err=yes 2373fi 2374if test -z "$ac_cpp_err"; then 2375 : 2376else 2377 echo "$as_me: failed program was:" >&5 2378 cat conftest.$ac_ext >&5 2379 # Broken: fails on valid input. 2380continue 2381fi 2382rm -f conftest.err conftest.$ac_ext 2383 2384 # OK, works on sane cases. Now check whether non-existent headers 2385 # can be detected and how. 2386 cat >conftest.$ac_ext <<_ACEOF 2387#line 2387 "configure" 2388#include "confdefs.h" 2389#include <ac_nonexistent.h> 2390_ACEOF 2391if { (eval echo "$as_me:2391: \"$ac_cpp conftest.$ac_ext\"") >&5 2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2393 ac_status=$? 2394 egrep -v '^ *\+' conftest.er1 >conftest.err 2395 rm -f conftest.er1 2396 cat conftest.err >&5 2397 echo "$as_me:2397: \$? = $ac_status" >&5 2398 (exit $ac_status); } >/dev/null; then 2399 if test -s conftest.err; then 2400 ac_cpp_err=$ac_c_preproc_warn_flag 2401 else 2402 ac_cpp_err= 2403 fi 2404else 2405 ac_cpp_err=yes 2406fi 2407if test -z "$ac_cpp_err"; then 2408 # Broken: success on invalid input. 2409continue 2410else 2411 echo "$as_me: failed program was:" >&5 2412 cat conftest.$ac_ext >&5 2413 # Passes both tests. 2414ac_preproc_ok=: 2415break 2416fi 2417rm -f conftest.err conftest.$ac_ext 2418 2419done 2420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2421rm -f conftest.err conftest.$ac_ext 2422if $ac_preproc_ok; then 2423 : 2424else 2425 { { echo "$as_me:2425: error: C preprocessor \"$CPP\" fails sanity check" >&5 2426echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2427 { (exit 1); exit 1; }; } 2428fi 2429 2430ac_ext=c 2431ac_cpp='$CPP $CPPFLAGS' 2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2434ac_compiler_gnu=$ac_cv_c_compiler_gnu 2435ac_main_return=return 2436 2437# Find a good install program. We prefer a C program (faster), 2438# so one script is as good as another. But avoid the broken or 2439# incompatible versions: 2440# SysV /etc/install, /usr/sbin/install 2441# SunOS /usr/etc/install 2442# IRIX /sbin/install 2443# AIX /bin/install 2444# AmigaOS /C/install, which installs bootblocks on floppy discs 2445# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2446# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2447# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2448# ./install, which can be erroneously created by make from ./install.sh. 2449echo "$as_me:2449: checking for a BSD compatible install" >&5 2450echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2451if test -z "$INSTALL"; then 2452if test "${ac_cv_path_install+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 ac_save_IFS=$IFS; IFS=$ac_path_separator 2456 for ac_dir in $PATH; do 2457 IFS=$ac_save_IFS 2458 # Account for people who put trailing slashes in PATH elements. 2459 case $ac_dir/ in 2460 / | ./ | .// | /cC/* \ 2461 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2462 | /usr/ucb/* ) ;; 2463 *) 2464 # OSF1 and SCO ODT 3.0 have their own names for install. 2465 # Don't use installbsd from OSF since it installs stuff as root 2466 # by default. 2467 for ac_prog in ginstall scoinst install; do 2468 if $as_executable_p "$ac_dir/$ac_prog"; then 2469 if test $ac_prog = install && 2470 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2471 # AIX install. It has an incompatible calling convention. 2472 : 2473 elif test $ac_prog = install && 2474 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2475 # program-specific install script used by HP pwplus--don't use. 2476 : 2477 else 2478 ac_cv_path_install="$ac_dir/$ac_prog -c" 2479 break 2 2480 fi 2481 fi 2482 done 2483 ;; 2484 esac 2485 done 2486 2487fi 2488 if test "${ac_cv_path_install+set}" = set; then 2489 INSTALL=$ac_cv_path_install 2490 else 2491 # As a last resort, use the slow shell script. We don't cache a 2492 # path for INSTALL within a source directory, because that will 2493 # break other packages using the cache if that directory is 2494 # removed, or if the path is relative. 2495 INSTALL=$ac_install_sh 2496 fi 2497fi 2498echo "$as_me:2498: result: $INSTALL" >&5 2499echo "${ECHO_T}$INSTALL" >&6 2500 2501# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2502# It thinks the first close brace ends the variable substitution. 2503test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2504 2505test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2506 2507test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2508 2509if test "$cross_compiling" = yes ; then 2510 2511 # defaults that we might want to override 2512 : ${BUILD_CFLAGS:=''} 2513 : ${BUILD_CPPFLAGS:=''} 2514 : ${BUILD_LDFLAGS:=''} 2515 : ${BUILD_LIBS:=''} 2516 : ${BUILD_EXEEXT:='$x'} 2517 : ${BUILD_OBJEXT:='o'} 2518 2519# Check whether --with-build-cc or --without-build-cc was given. 2520if test "${with_build_cc+set}" = set; then 2521 withval="$with_build_cc" 2522 BUILD_CC="$withval" 2523else 2524 for ac_prog in gcc clang c99 c89 cc cl 2525do 2526 # Extract the first word of "$ac_prog", so it can be a program name with args. 2527set dummy $ac_prog; ac_word=$2 2528echo "$as_me:2528: checking for $ac_word" >&5 2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2530if test "${ac_cv_prog_BUILD_CC+set}" = set; then 2531 echo $ECHO_N "(cached) $ECHO_C" >&6 2532else 2533 if test -n "$BUILD_CC"; then 2534 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 2535else 2536 ac_save_IFS=$IFS; IFS=$ac_path_separator 2537ac_dummy="$PATH" 2538for ac_dir in $ac_dummy; do 2539 IFS=$ac_save_IFS 2540 test -z "$ac_dir" && ac_dir=. 2541 $as_executable_p "$ac_dir/$ac_word" || continue 2542ac_cv_prog_BUILD_CC="$ac_prog" 2543echo "$as_me:2543: found $ac_dir/$ac_word" >&5 2544break 2545done 2546 2547fi 2548fi 2549BUILD_CC=$ac_cv_prog_BUILD_CC 2550if test -n "$BUILD_CC"; then 2551 echo "$as_me:2551: result: $BUILD_CC" >&5 2552echo "${ECHO_T}$BUILD_CC" >&6 2553else 2554 echo "$as_me:2554: result: no" >&5 2555echo "${ECHO_T}no" >&6 2556fi 2557 2558 test -n "$BUILD_CC" && break 2559done 2560test -n "$BUILD_CC" || BUILD_CC="none" 2561 2562fi; 2563 echo "$as_me:2563: checking for native build C compiler" >&5 2564echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6 2565 echo "$as_me:2565: result: $BUILD_CC" >&5 2566echo "${ECHO_T}$BUILD_CC" >&6 2567 2568 echo "$as_me:2568: checking for native build C preprocessor" >&5 2569echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6 2570 2571# Check whether --with-build-cpp or --without-build-cpp was given. 2572if test "${with_build_cpp+set}" = set; then 2573 withval="$with_build_cpp" 2574 BUILD_CPP="$withval" 2575else 2576 BUILD_CPP='${BUILD_CC} -E' 2577fi; 2578 echo "$as_me:2578: result: $BUILD_CPP" >&5 2579echo "${ECHO_T}$BUILD_CPP" >&6 2580 2581 echo "$as_me:2581: checking for native build C flags" >&5 2582echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6 2583 2584# Check whether --with-build-cflags or --without-build-cflags was given. 2585if test "${with_build_cflags+set}" = set; then 2586 withval="$with_build_cflags" 2587 BUILD_CFLAGS="$withval" 2588fi; 2589 echo "$as_me:2589: result: $BUILD_CFLAGS" >&5 2590echo "${ECHO_T}$BUILD_CFLAGS" >&6 2591 2592 echo "$as_me:2592: checking for native build C preprocessor-flags" >&5 2593echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6 2594 2595# Check whether --with-build-cppflags or --without-build-cppflags was given. 2596if test "${with_build_cppflags+set}" = set; then 2597 withval="$with_build_cppflags" 2598 BUILD_CPPFLAGS="$withval" 2599fi; 2600 echo "$as_me:2600: result: $BUILD_CPPFLAGS" >&5 2601echo "${ECHO_T}$BUILD_CPPFLAGS" >&6 2602 2603 echo "$as_me:2603: checking for native build linker-flags" >&5 2604echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6 2605 2606# Check whether --with-build-ldflags or --without-build-ldflags was given. 2607if test "${with_build_ldflags+set}" = set; then 2608 withval="$with_build_ldflags" 2609 BUILD_LDFLAGS="$withval" 2610fi; 2611 echo "$as_me:2611: result: $BUILD_LDFLAGS" >&5 2612echo "${ECHO_T}$BUILD_LDFLAGS" >&6 2613 2614 echo "$as_me:2614: checking for native build linker-libraries" >&5 2615echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6 2616 2617# Check whether --with-build-libs or --without-build-libs was given. 2618if test "${with_build_libs+set}" = set; then 2619 withval="$with_build_libs" 2620 BUILD_LIBS="$withval" 2621fi; 2622 echo "$as_me:2622: result: $BUILD_LIBS" >&5 2623echo "${ECHO_T}$BUILD_LIBS" >&6 2624 2625 # this assumes we're on Unix. 2626 BUILD_EXEEXT= 2627 BUILD_OBJEXT=o 2628 2629 : ${BUILD_CC:='${CC}'} 2630 2631 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then 2632 { { echo "$as_me:2632: error: Cross-build requires two compilers. 2633Use --with-build-cc to specify the native compiler." >&5 2634echo "$as_me: error: Cross-build requires two compilers. 2635Use --with-build-cc to specify the native compiler." >&2;} 2636 { (exit 1); exit 1; }; } 2637 fi 2638 2639else 2640 : ${BUILD_CC:='${CC}'} 2641 : ${BUILD_CPP:='${CPP}'} 2642 : ${BUILD_CFLAGS:='${CFLAGS}'} 2643 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'} 2644 : ${BUILD_LDFLAGS:='${LDFLAGS}'} 2645 : ${BUILD_LIBS:='${LIBS}'} 2646 : ${BUILD_EXEEXT:='$x'} 2647 : ${BUILD_OBJEXT:='o'} 2648fi 2649 2650if test "${MATHLIB+set}" != set ; then 2651echo "$as_me:2651: checking for log in -lm" >&5 2652echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 2653if test "${ac_cv_lib_m_log+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 ac_check_lib_save_LIBS=$LIBS 2657LIBS="-lm $LIBS" 2658cat >conftest.$ac_ext <<_ACEOF 2659#line 2659 "configure" 2660#include "confdefs.h" 2661 2662/* Override any gcc2 internal prototype to avoid an error. */ 2663#ifdef __cplusplus 2664extern "C" 2665#endif 2666/* We use char because int might match the return type of a gcc2 2667 builtin and then its argument prototype would still apply. */ 2668char log (); 2669int 2670main (void) 2671{ 2672log (); 2673 ; 2674 return 0; 2675} 2676_ACEOF 2677rm -f conftest.$ac_objext conftest$ac_exeext 2678if { (eval echo "$as_me:2678: \"$ac_link\"") >&5 2679 (eval $ac_link) 2>&5 2680 ac_status=$? 2681 echo "$as_me:2681: \$? = $ac_status" >&5 2682 (exit $ac_status); } && 2683 { ac_try='test -s conftest$ac_exeext' 2684 { (eval echo "$as_me:2684: \"$ac_try\"") >&5 2685 (eval $ac_try) 2>&5 2686 ac_status=$? 2687 echo "$as_me:2687: \$? = $ac_status" >&5 2688 (exit $ac_status); }; }; then 2689 ac_cv_lib_m_log=yes 2690else 2691 echo "$as_me: failed program was:" >&5 2692cat conftest.$ac_ext >&5 2693ac_cv_lib_m_log=no 2694fi 2695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2696LIBS=$ac_check_lib_save_LIBS 2697fi 2698echo "$as_me:2698: result: $ac_cv_lib_m_log" >&5 2699echo "${ECHO_T}$ac_cv_lib_m_log" >&6 2700if test $ac_cv_lib_m_log = yes; then 2701 MATHLIB=-lm ; LIBS="-lm $LIBS" 2702else 2703 # maybe don't need separate math library 2704echo "$as_me:2704: checking for log" >&5 2705echo $ECHO_N "checking for log... $ECHO_C" >&6 2706if test "${ac_cv_func_log+set}" = set; then 2707 echo $ECHO_N "(cached) $ECHO_C" >&6 2708else 2709 cat >conftest.$ac_ext <<_ACEOF 2710#line 2710 "configure" 2711#include "confdefs.h" 2712#define log autoconf_temporary 2713#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 2714#undef log 2715 2716#ifdef __cplusplus 2717extern "C" 2718#endif 2719 2720/* We use char because int might match the return type of a gcc2 2721 builtin and then its argument prototype would still apply. */ 2722char log (void); 2723 2724int 2725main (void) 2726{ 2727 2728/* The GNU C library defines stubs for functions which it implements 2729 to always fail with ENOSYS. Some functions are actually named 2730 something starting with __ and the normal name is an alias. */ 2731#if defined (__stub_log) || defined (__stub___log) 2732#error found stub for log 2733#endif 2734 2735 return log (); 2736 ; 2737 return 0; 2738} 2739_ACEOF 2740rm -f conftest.$ac_objext conftest$ac_exeext 2741if { (eval echo "$as_me:2741: \"$ac_link\"") >&5 2742 (eval $ac_link) 2>&5 2743 ac_status=$? 2744 echo "$as_me:2744: \$? = $ac_status" >&5 2745 (exit $ac_status); } && 2746 { ac_try='test -s conftest$ac_exeext' 2747 { (eval echo "$as_me:2747: \"$ac_try\"") >&5 2748 (eval $ac_try) 2>&5 2749 ac_status=$? 2750 echo "$as_me:2750: \$? = $ac_status" >&5 2751 (exit $ac_status); }; }; then 2752 ac_cv_func_log=yes 2753else 2754 echo "$as_me: failed program was:" >&5 2755cat conftest.$ac_ext >&5 2756ac_cv_func_log=no 2757fi 2758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2759fi 2760echo "$as_me:2760: result: $ac_cv_func_log" >&5 2761echo "${ECHO_T}$ac_cv_func_log" >&6 2762if test $ac_cv_func_log = yes; then 2763 log=yes 2764fi 2765 2766if test "$log" = yes 2767then 2768 MATHLIB='' # evidently don't need one 2769else 2770 { { echo "$as_me:2770: error: Cannot find a math library. You need to set MATHLIB in config.user" >&5 2771echo "$as_me: error: Cannot find a math library. You need to set MATHLIB in config.user" >&2;} 2772 { (exit 1); exit 1; }; } 2773fi 2774fi 2775fi 2776 2777echo "$as_me:2777: checking if you want to see long compiling messages" >&5 2778echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 2779 2780# Check whether --enable-echo or --disable-echo was given. 2781if test "${enable_echo+set}" = set; then 2782 enableval="$enable_echo" 2783 test "$enableval" != no && enableval=yes 2784 if test "$enableval" != "yes" ; then 2785 2786 ECHO_LT='--silent' 2787 ECHO_LD='@echo linking $@;' 2788 RULE_CC='@echo compiling $<' 2789 SHOW_CC='@echo compiling $@' 2790 ECHO_CC='@' 2791 2792 else 2793 2794 ECHO_LT='' 2795 ECHO_LD='' 2796 RULE_CC='' 2797 SHOW_CC='' 2798 ECHO_CC='' 2799 2800 fi 2801else 2802 enableval=yes 2803 2804 ECHO_LT='' 2805 ECHO_LD='' 2806 RULE_CC='' 2807 SHOW_CC='' 2808 ECHO_CC='' 2809 2810fi; 2811echo "$as_me:2811: result: $enableval" >&5 2812echo "${ECHO_T}$enableval" >&6 2813 2814if ( test "$GCC" = yes || test "$GXX" = yes ) 2815then 2816echo "$as_me:2816: checking if you want to turn on gcc warnings" >&5 2817echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6 2818 2819# Check whether --enable-warnings or --disable-warnings was given. 2820if test "${enable_warnings+set}" = set; then 2821 enableval="$enable_warnings" 2822 test "$enableval" != yes && enableval=no 2823 if test "$enableval" != "no" ; then 2824 with_warnings=yes 2825 else 2826 with_warnings=no 2827 fi 2828else 2829 enableval=no 2830 with_warnings=no 2831 2832fi; 2833echo "$as_me:2833: result: $with_warnings" >&5 2834echo "${ECHO_T}$with_warnings" >&6 2835if test "$with_warnings" = "yes" 2836then 2837 2838if test "$GCC" = yes 2839then 2840cat > conftest.i <<EOF 2841#ifndef GCC_PRINTF 2842#define GCC_PRINTF 0 2843#endif 2844#ifndef GCC_SCANF 2845#define GCC_SCANF 0 2846#endif 2847#ifndef GCC_NORETURN 2848#define GCC_NORETURN /* nothing */ 2849#endif 2850#ifndef GCC_UNUSED 2851#define GCC_UNUSED /* nothing */ 2852#endif 2853EOF 2854if test "$GCC" = yes 2855then 2856 { echo "$as_me:2856: checking for $CC __attribute__ directives..." >&5 2857echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 2858cat > conftest.$ac_ext <<EOF 2859#line 2859 "${as_me:-configure}" 2860#include "confdefs.h" 2861#include "conftest.h" 2862#include "conftest.i" 2863#if GCC_PRINTF 2864#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 2865#else 2866#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 2867#endif 2868#if GCC_SCANF 2869#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 2870#else 2871#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 2872#endif 2873extern void wow(char *,...) GCC_SCANFLIKE(1,2); 2874extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 2875extern void foo(void) GCC_NORETURN; 2876int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 2877EOF 2878 cf_printf_attribute=no 2879 cf_scanf_attribute=no 2880 for cf_attribute in scanf printf unused noreturn 2881 do 2882 2883cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 2884 2885 cf_directive="__attribute__(($cf_attribute))" 2886 echo "checking for $CC $cf_directive" 1>&5 2887 2888 case $cf_attribute in 2889 (printf) 2890 cf_printf_attribute=yes 2891 cat >conftest.h <<EOF 2892#define GCC_$cf_ATTRIBUTE 1 2893EOF 2894 ;; 2895 (scanf) 2896 cf_scanf_attribute=yes 2897 cat >conftest.h <<EOF 2898#define GCC_$cf_ATTRIBUTE 1 2899EOF 2900 ;; 2901 (*) 2902 cat >conftest.h <<EOF 2903#define GCC_$cf_ATTRIBUTE $cf_directive 2904EOF 2905 ;; 2906 esac 2907 2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5 2909 (eval $ac_compile) 2>&5 2910 ac_status=$? 2911 echo "$as_me:2911: \$? = $ac_status" >&5 2912 (exit $ac_status); }; then 2913 test -n "$verbose" && echo "$as_me:2913: result: ... $cf_attribute" >&5 2914echo "${ECHO_T}... $cf_attribute" >&6 2915 cat conftest.h >>confdefs.h 2916 case $cf_attribute in 2917 (noreturn) 2918 2919cat >>confdefs.h <<EOF 2920#define GCC_NORETURN $cf_directive 2921EOF 2922 2923 ;; 2924 (printf) 2925 cf_value='/* nothing */' 2926 if test "$cf_printf_attribute" != no ; then 2927 cf_value='__attribute__((format(printf,fmt,var)))' 2928 2929cat >>confdefs.h <<\EOF 2930#define GCC_PRINTF 1 2931EOF 2932 2933 fi 2934 2935cat >>confdefs.h <<EOF 2936#define GCC_PRINTFLIKE(fmt,var) $cf_value 2937EOF 2938 2939 ;; 2940 (scanf) 2941 cf_value='/* nothing */' 2942 if test "$cf_scanf_attribute" != no ; then 2943 cf_value='__attribute__((format(scanf,fmt,var)))' 2944 2945cat >>confdefs.h <<\EOF 2946#define GCC_SCANF 1 2947EOF 2948 2949 fi 2950 2951cat >>confdefs.h <<EOF 2952#define GCC_SCANFLIKE(fmt,var) $cf_value 2953EOF 2954 2955 ;; 2956 (unused) 2957 2958cat >>confdefs.h <<EOF 2959#define GCC_UNUSED $cf_directive 2960EOF 2961 2962 ;; 2963 esac 2964 fi 2965 done 2966else 2967 fgrep define conftest.i >>confdefs.h 2968fi 2969rm -rf conftest* 2970fi 2971 2972INTEL_COMPILER=no 2973 2974if test "$GCC" = yes ; then 2975 case $host_os in 2976 (linux*|gnu*) 2977 echo "$as_me:2977: checking if this is really Intel C compiler" >&5 2978echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 2979 cf_save_CFLAGS="$CFLAGS" 2980 CFLAGS="$CFLAGS -no-gcc" 2981 cat >conftest.$ac_ext <<_ACEOF 2982#line 2982 "configure" 2983#include "confdefs.h" 2984 2985int 2986main (void) 2987{ 2988 2989#ifdef __INTEL_COMPILER 2990#else 2991make an error 2992#endif 2993 2994 ; 2995 return 0; 2996} 2997_ACEOF 2998rm -f conftest.$ac_objext 2999if { (eval echo "$as_me:2999: \"$ac_compile\"") >&5 3000 (eval $ac_compile) 2>&5 3001 ac_status=$? 3002 echo "$as_me:3002: \$? = $ac_status" >&5 3003 (exit $ac_status); } && 3004 { ac_try='test -s conftest.$ac_objext' 3005 { (eval echo "$as_me:3005: \"$ac_try\"") >&5 3006 (eval $ac_try) 2>&5 3007 ac_status=$? 3008 echo "$as_me:3008: \$? = $ac_status" >&5 3009 (exit $ac_status); }; }; then 3010 INTEL_COMPILER=yes 3011cf_save_CFLAGS="$cf_save_CFLAGS -we147" 3012 3013else 3014 echo "$as_me: failed program was:" >&5 3015cat conftest.$ac_ext >&5 3016fi 3017rm -f conftest.$ac_objext conftest.$ac_ext 3018 CFLAGS="$cf_save_CFLAGS" 3019 echo "$as_me:3019: result: $INTEL_COMPILER" >&5 3020echo "${ECHO_T}$INTEL_COMPILER" >&6 3021 ;; 3022 esac 3023fi 3024 3025CLANG_COMPILER=no 3026 3027if test "$GCC" = yes ; then 3028 echo "$as_me:3028: checking if this is really Clang C compiler" >&5 3029echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 3030 cf_save_CFLAGS="$CFLAGS" 3031 CFLAGS="$CFLAGS -Qunused-arguments" 3032 cat >conftest.$ac_ext <<_ACEOF 3033#line 3033 "configure" 3034#include "confdefs.h" 3035 3036int 3037main (void) 3038{ 3039 3040#ifdef __clang__ 3041#else 3042make an error 3043#endif 3044 3045 ; 3046 return 0; 3047} 3048_ACEOF 3049rm -f conftest.$ac_objext 3050if { (eval echo "$as_me:3050: \"$ac_compile\"") >&5 3051 (eval $ac_compile) 2>&5 3052 ac_status=$? 3053 echo "$as_me:3053: \$? = $ac_status" >&5 3054 (exit $ac_status); } && 3055 { ac_try='test -s conftest.$ac_objext' 3056 { (eval echo "$as_me:3056: \"$ac_try\"") >&5 3057 (eval $ac_try) 2>&5 3058 ac_status=$? 3059 echo "$as_me:3059: \$? = $ac_status" >&5 3060 (exit $ac_status); }; }; then 3061 CLANG_COMPILER=yes 3062cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 3063 3064else 3065 echo "$as_me: failed program was:" >&5 3066cat conftest.$ac_ext >&5 3067fi 3068rm -f conftest.$ac_objext conftest.$ac_ext 3069 CFLAGS="$cf_save_CFLAGS" 3070 echo "$as_me:3070: result: $CLANG_COMPILER" >&5 3071echo "${ECHO_T}$CLANG_COMPILER" >&6 3072fi 3073 3074cat > conftest.$ac_ext <<EOF 3075#line 3075 "${as_me:-configure}" 3076int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 3077EOF 3078 3079if test "$INTEL_COMPILER" = yes 3080then 3081# The "-wdXXX" options suppress warnings: 3082# remark #1419: external declaration in primary source file 3083# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 3084# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 3085# remark #193: zero used for undefined preprocessing identifier 3086# remark #593: variable "curs_sb_left_arrow" was set but never used 3087# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 3088# remark #869: parameter "tw" was never referenced 3089# remark #981: operands are evaluated in unspecified order 3090# warning #279: controlling expression is constant 3091 3092 { echo "$as_me:3092: checking for $CC warning options..." >&5 3093echo "$as_me: checking for $CC warning options..." >&6;} 3094 cf_save_CFLAGS="$CFLAGS" 3095 EXTRA_CFLAGS="-Wall" 3096 for cf_opt in \ 3097 wd1419 \ 3098 wd1683 \ 3099 wd1684 \ 3100 wd193 \ 3101 wd593 \ 3102 wd279 \ 3103 wd810 \ 3104 wd869 \ 3105 wd981 3106 do 3107 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 3108 if { (eval echo "$as_me:3108: \"$ac_compile\"") >&5 3109 (eval $ac_compile) 2>&5 3110 ac_status=$? 3111 echo "$as_me:3111: \$? = $ac_status" >&5 3112 (exit $ac_status); }; then 3113 test -n "$verbose" && echo "$as_me:3113: result: ... -$cf_opt" >&5 3114echo "${ECHO_T}... -$cf_opt" >&6 3115 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 3116 fi 3117 done 3118 CFLAGS="$cf_save_CFLAGS" 3119 3120elif test "$GCC" = yes 3121then 3122 { echo "$as_me:3122: checking for $CC warning options..." >&5 3123echo "$as_me: checking for $CC warning options..." >&6;} 3124 cf_save_CFLAGS="$CFLAGS" 3125 EXTRA_CFLAGS= 3126 cf_warn_CONST="" 3127 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 3128 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 3129 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 3130 for cf_opt in W Wall \ 3131 Wbad-function-cast \ 3132 Wcast-align \ 3133 Wcast-qual \ 3134 Wdeclaration-after-statement \ 3135 Wextra \ 3136 Winline \ 3137 Wmissing-declarations \ 3138 Wmissing-prototypes \ 3139 Wnested-externs \ 3140 Wpointer-arith \ 3141 Wshadow \ 3142 Wstrict-prototypes \ 3143 Wundef $cf_gcc_warnings $cf_warn_CONST 3144 do 3145 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 3146 if { (eval echo "$as_me:3146: \"$ac_compile\"") >&5 3147 (eval $ac_compile) 2>&5 3148 ac_status=$? 3149 echo "$as_me:3149: \$? = $ac_status" >&5 3150 (exit $ac_status); }; then 3151 test -n "$verbose" && echo "$as_me:3151: result: ... -$cf_opt" >&5 3152echo "${ECHO_T}... -$cf_opt" >&6 3153 case $cf_opt in 3154 (Wcast-qual) 3155 3156 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 3157 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES" 3158 3159 ;; 3160 (Winline) 3161 case $GCC_VERSION in 3162 ([34].*) 3163 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 3164 3165echo "${as_me:-configure}:3165: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 3166 3167 continue;; 3168 esac 3169 ;; 3170 (Wpointer-arith) 3171 case $GCC_VERSION in 3172 ([12].*) 3173 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 3174 3175echo "${as_me:-configure}:3175: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 3176 3177 continue;; 3178 esac 3179 ;; 3180 esac 3181 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 3182 fi 3183 done 3184 CFLAGS="$cf_save_CFLAGS" 3185fi 3186rm -rf conftest* 3187 3188fi 3189fi 3190 3191# Extract the first word of "groff", so it can be a program name with args. 3192set dummy groff; ac_word=$2 3193echo "$as_me:3193: checking for $ac_word" >&5 3194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3195if test "${ac_cv_path_GROFF_PATH+set}" = set; then 3196 echo $ECHO_N "(cached) $ECHO_C" >&6 3197else 3198 case $GROFF_PATH in 3199 [\\/]* | ?:[\\/]*) 3200 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 3201 ;; 3202 *) 3203 ac_save_IFS=$IFS; IFS=$ac_path_separator 3204ac_dummy="$PATH" 3205for ac_dir in $ac_dummy; do 3206 IFS=$ac_save_IFS 3207 test -z "$ac_dir" && ac_dir=. 3208 if $as_executable_p "$ac_dir/$ac_word"; then 3209 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 3210 echo "$as_me:3210: found $ac_dir/$ac_word" >&5 3211 break 3212fi 3213done 3214 3215 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 3216 ;; 3217esac 3218fi 3219GROFF_PATH=$ac_cv_path_GROFF_PATH 3220 3221if test -n "$GROFF_PATH"; then 3222 echo "$as_me:3222: result: $GROFF_PATH" >&5 3223echo "${ECHO_T}$GROFF_PATH" >&6 3224else 3225 echo "$as_me:3225: result: no" >&5 3226echo "${ECHO_T}no" >&6 3227fi 3228 3229for ac_prog in nroff mandoc 3230do 3231 # Extract the first word of "$ac_prog", so it can be a program name with args. 3232set dummy $ac_prog; ac_word=$2 3233echo "$as_me:3233: checking for $ac_word" >&5 3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3235if test "${ac_cv_path_NROFF_PATH+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 case $NROFF_PATH in 3239 [\\/]* | ?:[\\/]*) 3240 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 3241 ;; 3242 *) 3243 ac_save_IFS=$IFS; IFS=$ac_path_separator 3244ac_dummy="$PATH" 3245for ac_dir in $ac_dummy; do 3246 IFS=$ac_save_IFS 3247 test -z "$ac_dir" && ac_dir=. 3248 if $as_executable_p "$ac_dir/$ac_word"; then 3249 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 3250 echo "$as_me:3250: found $ac_dir/$ac_word" >&5 3251 break 3252fi 3253done 3254 3255 ;; 3256esac 3257fi 3258NROFF_PATH=$ac_cv_path_NROFF_PATH 3259 3260if test -n "$NROFF_PATH"; then 3261 echo "$as_me:3261: result: $NROFF_PATH" >&5 3262echo "${ECHO_T}$NROFF_PATH" >&6 3263else 3264 echo "$as_me:3264: result: no" >&5 3265echo "${ECHO_T}no" >&6 3266fi 3267 3268 test -n "$NROFF_PATH" && break 3269done 3270test -n "$NROFF_PATH" || NROFF_PATH="no" 3271 3272# Extract the first word of "tbl", so it can be a program name with args. 3273set dummy tbl; ac_word=$2 3274echo "$as_me:3274: checking for $ac_word" >&5 3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3276if test "${ac_cv_path_TBL_PATH+set}" = set; then 3277 echo $ECHO_N "(cached) $ECHO_C" >&6 3278else 3279 case $TBL_PATH in 3280 [\\/]* | ?:[\\/]*) 3281 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path. 3282 ;; 3283 *) 3284 ac_save_IFS=$IFS; IFS=$ac_path_separator 3285ac_dummy="$PATH" 3286for ac_dir in $ac_dummy; do 3287 IFS=$ac_save_IFS 3288 test -z "$ac_dir" && ac_dir=. 3289 if $as_executable_p "$ac_dir/$ac_word"; then 3290 ac_cv_path_TBL_PATH="$ac_dir/$ac_word" 3291 echo "$as_me:3291: found $ac_dir/$ac_word" >&5 3292 break 3293fi 3294done 3295 3296 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat" 3297 ;; 3298esac 3299fi 3300TBL_PATH=$ac_cv_path_TBL_PATH 3301 3302if test -n "$TBL_PATH"; then 3303 echo "$as_me:3303: result: $TBL_PATH" >&5 3304echo "${ECHO_T}$TBL_PATH" >&6 3305else 3306 echo "$as_me:3306: result: no" >&5 3307echo "${ECHO_T}no" >&6 3308fi 3309 3310if test "x$GROFF_PATH" = xno 3311then 3312 NROFF_NOTE= 3313 GROFF_NOTE="#" 3314else 3315 NROFF_NOTE="#" 3316 GROFF_NOTE= 3317fi 3318 3319case "x${with_man2html}" in 3320(xno) 3321 cf_man2html=no 3322 ;; 3323(x|xyes) 3324 # Extract the first word of "man2html", so it can be a program name with args. 3325set dummy man2html; ac_word=$2 3326echo "$as_me:3326: checking for $ac_word" >&5 3327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3328if test "${ac_cv_path_cf_man2html+set}" = set; then 3329 echo $ECHO_N "(cached) $ECHO_C" >&6 3330else 3331 case $cf_man2html in 3332 [\\/]* | ?:[\\/]*) 3333 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 3334 ;; 3335 *) 3336 ac_save_IFS=$IFS; IFS=$ac_path_separator 3337ac_dummy="$PATH" 3338for ac_dir in $ac_dummy; do 3339 IFS=$ac_save_IFS 3340 test -z "$ac_dir" && ac_dir=. 3341 if $as_executable_p "$ac_dir/$ac_word"; then 3342 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 3343 echo "$as_me:3343: found $ac_dir/$ac_word" >&5 3344 break 3345fi 3346done 3347 3348 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 3349 ;; 3350esac 3351fi 3352cf_man2html=$ac_cv_path_cf_man2html 3353 3354if test -n "$cf_man2html"; then 3355 echo "$as_me:3355: result: $cf_man2html" >&5 3356echo "${ECHO_T}$cf_man2html" >&6 3357else 3358 echo "$as_me:3358: result: no" >&5 3359echo "${ECHO_T}no" >&6 3360fi 3361 3362 case "x$cf_man2html" in 3363 (x/*) 3364 echo "$as_me:3364: checking for the modified Earl Hood script" >&5 3365echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6 3366 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null ) 3367 then 3368 cf_man2html_ok=yes 3369 else 3370 cf_man2html=no 3371 cf_man2html_ok=no 3372 fi 3373 echo "$as_me:3373: result: $cf_man2html_ok" >&5 3374echo "${ECHO_T}$cf_man2html_ok" >&6 3375 ;; 3376 (*) 3377 cf_man2html=no 3378 ;; 3379 esac 3380esac 3381 3382echo "$as_me:3382: checking for program to convert manpage to html" >&5 3383echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 3384 3385# Check whether --with-man2html or --without-man2html was given. 3386if test "${with_man2html+set}" = set; then 3387 withval="$with_man2html" 3388 cf_man2html=$withval 3389else 3390 cf_man2html=$cf_man2html 3391fi; 3392 3393cf_with_groff=no 3394 3395case $cf_man2html in 3396(yes) 3397 echo "$as_me:3397: result: man2html" >&5 3398echo "${ECHO_T}man2html" >&6 3399 # Extract the first word of "man2html", so it can be a program name with args. 3400set dummy man2html; ac_word=$2 3401echo "$as_me:3401: checking for $ac_word" >&5 3402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3403if test "${ac_cv_path_cf_man2html+set}" = set; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 case $cf_man2html in 3407 [\\/]* | ?:[\\/]*) 3408 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 3409 ;; 3410 *) 3411 ac_save_IFS=$IFS; IFS=$ac_path_separator 3412ac_dummy="$PATH" 3413for ac_dir in $ac_dummy; do 3414 IFS=$ac_save_IFS 3415 test -z "$ac_dir" && ac_dir=. 3416 if $as_executable_p "$ac_dir/$ac_word"; then 3417 ac_cv_path_cf_man2html="$ac_dir/$ac_word" 3418 echo "$as_me:3418: found $ac_dir/$ac_word" >&5 3419 break 3420fi 3421done 3422 3423 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 3424 ;; 3425esac 3426fi 3427cf_man2html=$ac_cv_path_cf_man2html 3428 3429if test -n "$cf_man2html"; then 3430 echo "$as_me:3430: result: $cf_man2html" >&5 3431echo "${ECHO_T}$cf_man2html" >&6 3432else 3433 echo "$as_me:3433: result: no" >&5 3434echo "${ECHO_T}no" >&6 3435fi 3436 3437 ;; 3438(no|groff|*/groff*) 3439 cf_with_groff=yes 3440 cf_man2html=$GROFF_PATH 3441 echo "$as_me:3441: result: $cf_man2html" >&5 3442echo "${ECHO_T}$cf_man2html" >&6 3443 ;; 3444(*) 3445 echo "$as_me:3445: result: $cf_man2html" >&5 3446echo "${ECHO_T}$cf_man2html" >&6 3447 ;; 3448esac 3449 3450MAN2HTML_TEMP="man2html.tmp" 3451 cat >$MAN2HTML_TEMP <<CF_EOF 3452#!$SHELL 3453# Temporary script generated by CF_WITH_MAN2HTML 3454# Convert inputs to html, sending result to standard output. 3455# 3456# Parameters: 3457# \${1} = rootname of file to convert 3458# \${2} = suffix of file to convert, e.g., "1" 3459# \${3} = macros to use, e.g., "man" 3460# 3461ROOT=\$1 3462TYPE=\$2 3463MACS=\$3 3464 3465unset LANG 3466unset LC_ALL 3467unset LC_CTYPE 3468unset LANGUAGE 3469GROFF_NO_SGR=stupid 3470export GROFF_NO_SGR 3471 3472CF_EOF 3473 3474if test "x$cf_with_groff" = xyes 3475then 3476 MAN2HTML_NOTE="$GROFF_NOTE" 3477 MAN2HTML_PATH="$GROFF_PATH" 3478 cat >>$MAN2HTML_TEMP <<CF_EOF 3479$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 3480CF_EOF 3481else 3482 MAN2HTML_NOTE="" 3483 3484if test "x$prefix" != xNONE; then 3485 cf_path_syntax="$prefix" 3486else 3487 cf_path_syntax="$ac_default_prefix" 3488fi 3489 3490case ".$cf_man2html" in 3491(.\$\(*\)*|.\'*\'*) 3492 ;; 3493(..|./*|.\\*) 3494 ;; 3495(.[a-zA-Z]:[\\/]*) # OS/2 EMX 3496 ;; 3497(.\${*prefix}*|.\${*dir}*) 3498 eval cf_man2html="$cf_man2html" 3499 case ".$cf_man2html" in 3500 (.NONE/*) 3501 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 3502 ;; 3503 esac 3504 ;; 3505(.no|.NONE/*) 3506 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 3507 ;; 3508(*) 3509 { { echo "$as_me:3509: error: expected a pathname, not \"$cf_man2html\"" >&5 3510echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 3511 { (exit 1); exit 1; }; } 3512 ;; 3513esac 3514 3515 MAN2HTML_PATH="$cf_man2html" 3516 echo "$as_me:3516: checking for $cf_man2html top/bottom margins" >&5 3517echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 3518 3519 # for this example, expect 3 lines of content, the remainder is head/foot 3520 cat >conftest.in <<CF_EOF 3521.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 3522.SH SECTION 3523MARKER 3524CF_EOF 3525 3526 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 3527 3528 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 3529 cf_man2html_top=`expr $cf_man2html_1st - 2` 3530 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'` 3531 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top` 3532 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 3533 3534 echo "$as_me:3534: result: $cf_man2html_top_bot" >&5 3535echo "${ECHO_T}$cf_man2html_top_bot" >&6 3536 3537 echo "$as_me:3537: checking for pagesize to use" >&5 3538echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 3539 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3540 do 3541 cat >>conftest.in <<CF_EOF 3542.nf 35430 35441 35452 35463 35474 35485 35496 35507 35518 35529 3553CF_EOF 3554 done 3555 3556 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out 3557 cf_man2html_page=`fgrep -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 3558 test -z "$cf_man2html_page" && cf_man2html_page=99999 3559 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 3560 3561 rm -rf conftest* 3562 echo "$as_me:3562: result: $cf_man2html_page" >&5 3563echo "${ECHO_T}$cf_man2html_page" >&6 3564 3565 cat >>$MAN2HTML_TEMP <<CF_EOF 3566: \${MAN2HTML_PATH=$MAN2HTML_PATH} 3567MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page" 3568case \${TYPE} in 3569(ms) 3570 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 3571 ;; 3572(*) 3573 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 3574 ;; 3575esac 3576CF_EOF 3577fi 3578 3579chmod 700 $MAN2HTML_TEMP 3580 3581############################################################################### 3582echo "$as_me:3582: checking if you want to use mawk's own regular-expressions engine" >&5 3583echo $ECHO_N "checking if you want to use mawk's own regular-expressions engine... $ECHO_C" >&6 3584 3585# Check whether --with-builtin-regex or --without-builtin-regex was given. 3586if test "${with_builtin_regex+set}" = set; then 3587 withval="$with_builtin_regex" 3588 3589 with_builtin_regex=$withval 3590 3591fi; 3592if test "x${with_builtin_regex}" != xno; then 3593 with_builtin_regex=yes 3594 CPPFLAGS="$CPPFLAGS -DLOCAL_REGEXP" 3595fi 3596echo "$as_me:3596: result: $with_builtin_regex" >&5 3597echo "${ECHO_T}$with_builtin_regex" >&6 3598 3599if test "x${with_builtin_regex}" = xno; then 3600 3601cf_regex_func=no 3602 3603cf_regex_libs="regex re" 3604case $host_os in 3605(mingw*) 3606 cf_regex_libs="gnurx $cf_regex_libs" 3607 ;; 3608esac 3609 3610echo "$as_me:3610: checking for regcomp" >&5 3611echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 3612if test "${ac_cv_func_regcomp+set}" = set; then 3613 echo $ECHO_N "(cached) $ECHO_C" >&6 3614else 3615 cat >conftest.$ac_ext <<_ACEOF 3616#line 3616 "configure" 3617#include "confdefs.h" 3618#define regcomp autoconf_temporary 3619#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 3620#undef regcomp 3621 3622#ifdef __cplusplus 3623extern "C" 3624#endif 3625 3626/* We use char because int might match the return type of a gcc2 3627 builtin and then its argument prototype would still apply. */ 3628char regcomp (void); 3629 3630int 3631main (void) 3632{ 3633 3634/* The GNU C library defines stubs for functions which it implements 3635 to always fail with ENOSYS. Some functions are actually named 3636 something starting with __ and the normal name is an alias. */ 3637#if defined (__stub_regcomp) || defined (__stub___regcomp) 3638#error found stub for regcomp 3639#endif 3640 3641 return regcomp (); 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646rm -f conftest.$ac_objext conftest$ac_exeext 3647if { (eval echo "$as_me:3647: \"$ac_link\"") >&5 3648 (eval $ac_link) 2>&5 3649 ac_status=$? 3650 echo "$as_me:3650: \$? = $ac_status" >&5 3651 (exit $ac_status); } && 3652 { ac_try='test -s conftest$ac_exeext' 3653 { (eval echo "$as_me:3653: \"$ac_try\"") >&5 3654 (eval $ac_try) 2>&5 3655 ac_status=$? 3656 echo "$as_me:3656: \$? = $ac_status" >&5 3657 (exit $ac_status); }; }; then 3658 ac_cv_func_regcomp=yes 3659else 3660 echo "$as_me: failed program was:" >&5 3661cat conftest.$ac_ext >&5 3662ac_cv_func_regcomp=no 3663fi 3664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3665fi 3666echo "$as_me:3666: result: $ac_cv_func_regcomp" >&5 3667echo "${ECHO_T}$ac_cv_func_regcomp" >&6 3668if test $ac_cv_func_regcomp = yes; then 3669 cf_regex_func=regcomp 3670else 3671 3672 for cf_regex_lib in $cf_regex_libs 3673 do 3674 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh` 3675echo "$as_me:3675: checking for regcomp in -l$cf_regex_lib" >&5 3676echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6 3677if eval "test \"\${$as_ac_Lib+set}\" = set"; then 3678 echo $ECHO_N "(cached) $ECHO_C" >&6 3679else 3680 ac_check_lib_save_LIBS=$LIBS 3681LIBS="-l$cf_regex_lib $LIBS" 3682cat >conftest.$ac_ext <<_ACEOF 3683#line 3683 "configure" 3684#include "confdefs.h" 3685 3686/* Override any gcc2 internal prototype to avoid an error. */ 3687#ifdef __cplusplus 3688extern "C" 3689#endif 3690/* We use char because int might match the return type of a gcc2 3691 builtin and then its argument prototype would still apply. */ 3692char regcomp (); 3693int 3694main (void) 3695{ 3696regcomp (); 3697 ; 3698 return 0; 3699} 3700_ACEOF 3701rm -f conftest.$ac_objext conftest$ac_exeext 3702if { (eval echo "$as_me:3702: \"$ac_link\"") >&5 3703 (eval $ac_link) 2>&5 3704 ac_status=$? 3705 echo "$as_me:3705: \$? = $ac_status" >&5 3706 (exit $ac_status); } && 3707 { ac_try='test -s conftest$ac_exeext' 3708 { (eval echo "$as_me:3708: \"$ac_try\"") >&5 3709 (eval $ac_try) 2>&5 3710 ac_status=$? 3711 echo "$as_me:3711: \$? = $ac_status" >&5 3712 (exit $ac_status); }; }; then 3713 eval "$as_ac_Lib=yes" 3714else 3715 echo "$as_me: failed program was:" >&5 3716cat conftest.$ac_ext >&5 3717eval "$as_ac_Lib=no" 3718fi 3719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3720LIBS=$ac_check_lib_save_LIBS 3721fi 3722echo "$as_me:3722: result: `eval echo '${'$as_ac_Lib'}'`" >&5 3723echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 3724if test `eval echo '${'$as_ac_Lib'}'` = yes; then 3725 3726cf_add_libs="-l$cf_regex_lib" 3727# Filter out duplicates - this happens with badly-designed ".pc" files... 3728for cf_add_1lib in $LIBS 3729do 3730 for cf_add_2lib in $cf_add_libs 3731 do 3732 if test "x$cf_add_1lib" = "x$cf_add_2lib" 3733 then 3734 cf_add_1lib= 3735 break 3736 fi 3737 done 3738 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 3739done 3740LIBS="$cf_add_libs" 3741 3742 cf_regex_func=regcomp 3743 break 3744fi 3745 3746 done 3747 3748fi 3749 3750if test "$cf_regex_func" = no ; then 3751 echo "$as_me:3751: checking for compile" >&5 3752echo $ECHO_N "checking for compile... $ECHO_C" >&6 3753if test "${ac_cv_func_compile+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 cat >conftest.$ac_ext <<_ACEOF 3757#line 3757 "configure" 3758#include "confdefs.h" 3759#define compile autoconf_temporary 3760#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 3761#undef compile 3762 3763#ifdef __cplusplus 3764extern "C" 3765#endif 3766 3767/* We use char because int might match the return type of a gcc2 3768 builtin and then its argument prototype would still apply. */ 3769char compile (void); 3770 3771int 3772main (void) 3773{ 3774 3775/* The GNU C library defines stubs for functions which it implements 3776 to always fail with ENOSYS. Some functions are actually named 3777 something starting with __ and the normal name is an alias. */ 3778#if defined (__stub_compile) || defined (__stub___compile) 3779#error found stub for compile 3780#endif 3781 3782 return compile (); 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787rm -f conftest.$ac_objext conftest$ac_exeext 3788if { (eval echo "$as_me:3788: \"$ac_link\"") >&5 3789 (eval $ac_link) 2>&5 3790 ac_status=$? 3791 echo "$as_me:3791: \$? = $ac_status" >&5 3792 (exit $ac_status); } && 3793 { ac_try='test -s conftest$ac_exeext' 3794 { (eval echo "$as_me:3794: \"$ac_try\"") >&5 3795 (eval $ac_try) 2>&5 3796 ac_status=$? 3797 echo "$as_me:3797: \$? = $ac_status" >&5 3798 (exit $ac_status); }; }; then 3799 ac_cv_func_compile=yes 3800else 3801 echo "$as_me: failed program was:" >&5 3802cat conftest.$ac_ext >&5 3803ac_cv_func_compile=no 3804fi 3805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3806fi 3807echo "$as_me:3807: result: $ac_cv_func_compile" >&5 3808echo "${ECHO_T}$ac_cv_func_compile" >&6 3809if test $ac_cv_func_compile = yes; then 3810 cf_regex_func=compile 3811else 3812 3813 echo "$as_me:3813: checking for compile in -lgen" >&5 3814echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6 3815if test "${ac_cv_lib_gen_compile+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817else 3818 ac_check_lib_save_LIBS=$LIBS 3819LIBS="-lgen $LIBS" 3820cat >conftest.$ac_ext <<_ACEOF 3821#line 3821 "configure" 3822#include "confdefs.h" 3823 3824/* Override any gcc2 internal prototype to avoid an error. */ 3825#ifdef __cplusplus 3826extern "C" 3827#endif 3828/* We use char because int might match the return type of a gcc2 3829 builtin and then its argument prototype would still apply. */ 3830char compile (); 3831int 3832main (void) 3833{ 3834compile (); 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839rm -f conftest.$ac_objext conftest$ac_exeext 3840if { (eval echo "$as_me:3840: \"$ac_link\"") >&5 3841 (eval $ac_link) 2>&5 3842 ac_status=$? 3843 echo "$as_me:3843: \$? = $ac_status" >&5 3844 (exit $ac_status); } && 3845 { ac_try='test -s conftest$ac_exeext' 3846 { (eval echo "$as_me:3846: \"$ac_try\"") >&5 3847 (eval $ac_try) 2>&5 3848 ac_status=$? 3849 echo "$as_me:3849: \$? = $ac_status" >&5 3850 (exit $ac_status); }; }; then 3851 ac_cv_lib_gen_compile=yes 3852else 3853 echo "$as_me: failed program was:" >&5 3854cat conftest.$ac_ext >&5 3855ac_cv_lib_gen_compile=no 3856fi 3857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3858LIBS=$ac_check_lib_save_LIBS 3859fi 3860echo "$as_me:3860: result: $ac_cv_lib_gen_compile" >&5 3861echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6 3862if test $ac_cv_lib_gen_compile = yes; then 3863 3864cf_add_libs="-lgen" 3865# Filter out duplicates - this happens with badly-designed ".pc" files... 3866for cf_add_1lib in $LIBS 3867do 3868 for cf_add_2lib in $cf_add_libs 3869 do 3870 if test "x$cf_add_1lib" = "x$cf_add_2lib" 3871 then 3872 cf_add_1lib= 3873 break 3874 fi 3875 done 3876 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib" 3877done 3878LIBS="$cf_add_libs" 3879 3880 cf_regex_func=compile 3881fi 3882 3883fi 3884 3885fi 3886 3887if test "$cf_regex_func" = no ; then 3888 { echo "$as_me:3888: WARNING: cannot find regular expression library" >&5 3889echo "$as_me: WARNING: cannot find regular expression library" >&2;} 3890fi 3891 3892echo "$as_me:3892: checking for regular-expression headers" >&5 3893echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6 3894if test "${cf_cv_regex_hdrs+set}" = set; then 3895 echo $ECHO_N "(cached) $ECHO_C" >&6 3896else 3897 3898cf_cv_regex_hdrs=no 3899case $cf_regex_func in 3900(compile) 3901 for cf_regex_hdr in regexp.h regexpr.h 3902 do 3903 cat >conftest.$ac_ext <<_ACEOF 3904#line 3904 "configure" 3905#include "confdefs.h" 3906#include <$cf_regex_hdr> 3907int 3908main (void) 3909{ 3910 3911 char *p = compile("", "", "", 0); 3912 int x = step("", ""); 3913 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918rm -f conftest.$ac_objext conftest$ac_exeext 3919if { (eval echo "$as_me:3919: \"$ac_link\"") >&5 3920 (eval $ac_link) 2>&5 3921 ac_status=$? 3922 echo "$as_me:3922: \$? = $ac_status" >&5 3923 (exit $ac_status); } && 3924 { ac_try='test -s conftest$ac_exeext' 3925 { (eval echo "$as_me:3925: \"$ac_try\"") >&5 3926 (eval $ac_try) 2>&5 3927 ac_status=$? 3928 echo "$as_me:3928: \$? = $ac_status" >&5 3929 (exit $ac_status); }; }; then 3930 3931 cf_cv_regex_hdrs=$cf_regex_hdr 3932 break 3933 3934else 3935 echo "$as_me: failed program was:" >&5 3936cat conftest.$ac_ext >&5 3937fi 3938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3939 done 3940 ;; 3941(*) 3942 for cf_regex_hdr in regex.h 3943 do 3944 cat >conftest.$ac_ext <<_ACEOF 3945#line 3945 "configure" 3946#include "confdefs.h" 3947#include <sys/types.h> 3948#include <$cf_regex_hdr> 3949int 3950main (void) 3951{ 3952 3953 regex_t *p; 3954 int x = regcomp(p, "", 0); 3955 int y = regexec(p, "", 0, 0, 0); 3956 regfree(p); 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962rm -f conftest.$ac_objext conftest$ac_exeext 3963if { (eval echo "$as_me:3963: \"$ac_link\"") >&5 3964 (eval $ac_link) 2>&5 3965 ac_status=$? 3966 echo "$as_me:3966: \$? = $ac_status" >&5 3967 (exit $ac_status); } && 3968 { ac_try='test -s conftest$ac_exeext' 3969 { (eval echo "$as_me:3969: \"$ac_try\"") >&5 3970 (eval $ac_try) 2>&5 3971 ac_status=$? 3972 echo "$as_me:3972: \$? = $ac_status" >&5 3973 (exit $ac_status); }; }; then 3974 3975 cf_cv_regex_hdrs=$cf_regex_hdr 3976 break 3977 3978else 3979 echo "$as_me: failed program was:" >&5 3980cat conftest.$ac_ext >&5 3981fi 3982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3983 done 3984 ;; 3985esac 3986 3987fi 3988echo "$as_me:3988: result: $cf_cv_regex_hdrs" >&5 3989echo "${ECHO_T}$cf_cv_regex_hdrs" >&6 3990 3991case $cf_cv_regex_hdrs in 3992 (no) { echo "$as_me:3992: WARNING: no regular expression header found" >&5 3993echo "$as_me: WARNING: no regular expression header found" >&2;} ;; 3994 (regex.h) 3995cat >>confdefs.h <<\EOF 3996#define HAVE_REGEX_H_FUNCS 1 3997EOF 3998 ;; 3999 (regexp.h) 4000cat >>confdefs.h <<\EOF 4001#define HAVE_REGEXP_H_FUNCS 1 4002EOF 4003 ;; 4004 (regexpr.h) 4005cat >>confdefs.h <<\EOF 4006#define HAVE_REGEXPR_H_FUNCS 1 4007EOF 4008 ;; 4009esac 4010 4011fi 4012 4013############################################################################### 4014echo "$as_me:4014: checking if you want to use mawk's own srand/rand functions" >&5 4015echo $ECHO_N "checking if you want to use mawk's own srand/rand functions... $ECHO_C" >&6 4016 4017# Check whether --enable-builtin-srand or --disable-builtin-srand was given. 4018if test "${enable_builtin_srand+set}" = set; then 4019 enableval="$enable_builtin_srand" 4020 test "$enableval" != yes && enableval=no 4021 if test "$enableval" != "no" ; then 4022 with_builtin_srand=yes 4023 else 4024 with_builtin_srand=no 4025 fi 4026else 4027 enableval=no 4028 with_builtin_srand=no 4029 4030fi; 4031if test "x${with_builtin_srand}" != xno; then 4032 with_builtin_srand=yes 4033fi 4034echo "$as_me:4034: result: $with_builtin_srand" >&5 4035echo "${ECHO_T}$with_builtin_srand" >&6 4036 4037if test "x${with_builtin_srand}" = xno; then 4038 4039echo "$as_me:4039: checking for random-integer functions" >&5 4040echo $ECHO_N "checking for random-integer functions... $ECHO_C" >&6 4041if test "${cf_cv_srand_func+set}" = set; then 4042 echo $ECHO_N "(cached) $ECHO_C" >&6 4043else 4044 4045cf_cv_srand_func=unknown 4046for cf_func in arc4random_push/arc4random arc4random_stir/arc4random srandom/random srand48/lrand48 srand/rand 4047do 4048 4049 cf_srand_func=`echo $cf_func | sed -e 's%/.*%%'` 4050 cf_rand_func=`echo $cf_func | sed -e 's%.*/%%'` 4051 4052 case $cf_srand_func in 4053 (arc4random_stir) 4054 cf_srand_func='(void)' 4055 ;; 4056 esac 4057 4058cat >conftest.$ac_ext <<_ACEOF 4059#line 4059 "configure" 4060#include "confdefs.h" 4061 4062#ifdef HAVE_STDLIB_H 4063#include <stdlib.h> 4064#endif 4065#ifdef HAVE_LIMITS_H 4066#include <limits.h> 4067#endif 4068 4069int 4070main (void) 4071{ 4072long seed = 1; $cf_srand_func(seed); seed = $cf_rand_func() 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077rm -f conftest.$ac_objext conftest$ac_exeext 4078if { (eval echo "$as_me:4078: \"$ac_link\"") >&5 4079 (eval $ac_link) 2>&5 4080 ac_status=$? 4081 echo "$as_me:4081: \$? = $ac_status" >&5 4082 (exit $ac_status); } && 4083 { ac_try='test -s conftest$ac_exeext' 4084 { (eval echo "$as_me:4084: \"$ac_try\"") >&5 4085 (eval $ac_try) 2>&5 4086 ac_status=$? 4087 echo "$as_me:4087: \$? = $ac_status" >&5 4088 (exit $ac_status); }; }; then 4089 cf_cv_srand_func=$cf_func 4090 break 4091else 4092 echo "$as_me: failed program was:" >&5 4093cat conftest.$ac_ext >&5 4094fi 4095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4096done 4097 4098fi 4099echo "$as_me:4099: result: $cf_cv_srand_func" >&5 4100echo "${ECHO_T}$cf_cv_srand_func" >&6 4101if test "$cf_cv_srand_func" != unknown ; then 4102 echo "$as_me:4102: checking for range of random-integers" >&5 4103echo $ECHO_N "checking for range of random-integers... $ECHO_C" >&6 4104if test "${cf_cv_rand_max+set}" = set; then 4105 echo $ECHO_N "(cached) $ECHO_C" >&6 4106else 4107 4108 case $cf_cv_srand_func in 4109 (srand/rand) 4110 cf_cv_rand_max=RAND_MAX 4111 cf_rand_max=16 4112 ;; 4113 (*/arc4random) 4114 cf_cv_rand_max=0xFFFFFFFFUL 4115 cf_rand_max=32 4116 ;; 4117 (*) 4118 cf_cv_rand_max=INT_MAX 4119 cf_rand_max=31 4120 ;; 4121 esac 4122 cat >conftest.$ac_ext <<_ACEOF 4123#line 4123 "configure" 4124#include "confdefs.h" 4125 4126#ifdef HAVE_STDLIB_H 4127#include <stdlib.h> 4128#endif 4129#ifdef HAVE_LIMITS_H 4130#include <limits.h> 4131#endif 4132 4133int 4134main (void) 4135{ 4136long x = $cf_cv_rand_max 4137 ; 4138 return 0; 4139} 4140_ACEOF 4141rm -f conftest.$ac_objext 4142if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5 4143 (eval $ac_compile) 2>&5 4144 ac_status=$? 4145 echo "$as_me:4145: \$? = $ac_status" >&5 4146 (exit $ac_status); } && 4147 { ac_try='test -s conftest.$ac_objext' 4148 { (eval echo "$as_me:4148: \"$ac_try\"") >&5 4149 (eval $ac_try) 2>&5 4150 ac_status=$? 4151 echo "$as_me:4151: \$? = $ac_status" >&5 4152 (exit $ac_status); }; }; then 4153 : 4154else 4155 echo "$as_me: failed program was:" >&5 4156cat conftest.$ac_ext >&5 4157cf_cv_rand_max="(1UL<<$cf_rand_max)-1" 4158fi 4159rm -f conftest.$ac_objext conftest.$ac_ext 4160 4161fi 4162echo "$as_me:4162: result: $cf_cv_rand_max" >&5 4163echo "${ECHO_T}$cf_cv_rand_max" >&6 4164 4165 case $cf_cv_srand_func in 4166 (*/arc4random) 4167 echo "$as_me:4167: checking if <bsd/stdlib.h> should be included" >&5 4168echo $ECHO_N "checking if <bsd/stdlib.h> should be included... $ECHO_C" >&6 4169 cat >conftest.$ac_ext <<_ACEOF 4170#line 4170 "configure" 4171#include "confdefs.h" 4172#include <bsd/stdlib.h> 4173int 4174main (void) 4175{ 4176void *arc4random(int); 4177 void *x = arc4random(1) 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182rm -f conftest.$ac_objext 4183if { (eval echo "$as_me:4183: \"$ac_compile\"") >&5 4184 (eval $ac_compile) 2>&5 4185 ac_status=$? 4186 echo "$as_me:4186: \$? = $ac_status" >&5 4187 (exit $ac_status); } && 4188 { ac_try='test -s conftest.$ac_objext' 4189 { (eval echo "$as_me:4189: \"$ac_try\"") >&5 4190 (eval $ac_try) 2>&5 4191 ac_status=$? 4192 echo "$as_me:4192: \$? = $ac_status" >&5 4193 (exit $ac_status); }; }; then 4194 cf_bsd_stdlib_h=no 4195else 4196 echo "$as_me: failed program was:" >&5 4197cat conftest.$ac_ext >&5 4198cat >conftest.$ac_ext <<_ACEOF 4199#line 4199 "configure" 4200#include "confdefs.h" 4201#include <bsd/stdlib.h> 4202int 4203main (void) 4204{ 4205unsigned x = arc4random() 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210rm -f conftest.$ac_objext 4211if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5 4212 (eval $ac_compile) 2>&5 4213 ac_status=$? 4214 echo "$as_me:4214: \$? = $ac_status" >&5 4215 (exit $ac_status); } && 4216 { ac_try='test -s conftest.$ac_objext' 4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5 4218 (eval $ac_try) 2>&5 4219 ac_status=$? 4220 echo "$as_me:4220: \$? = $ac_status" >&5 4221 (exit $ac_status); }; }; then 4222 cf_bsd_stdlib_h=yes 4223else 4224 echo "$as_me: failed program was:" >&5 4225cat conftest.$ac_ext >&5 4226cf_bsd_stdlib_h=no 4227fi 4228rm -f conftest.$ac_objext conftest.$ac_ext 4229fi 4230rm -f conftest.$ac_objext conftest.$ac_ext 4231 echo "$as_me:4231: result: $cf_bsd_stdlib_h" >&5 4232echo "${ECHO_T}$cf_bsd_stdlib_h" >&6 4233 if test "$cf_bsd_stdlib_h" = yes 4234 then 4235 4236cat >>confdefs.h <<\EOF 4237#define HAVE_BSD_STDLIB_H 1 4238EOF 4239 4240 else 4241 echo "$as_me:4241: checking if <bsd/random.h> should be included" >&5 4242echo $ECHO_N "checking if <bsd/random.h> should be included... $ECHO_C" >&6 4243 cat >conftest.$ac_ext <<_ACEOF 4244#line 4244 "configure" 4245#include "confdefs.h" 4246#include <bsd/random.h> 4247int 4248main (void) 4249{ 4250void *arc4random(int); 4251 void *x = arc4random(1) 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256rm -f conftest.$ac_objext 4257if { (eval echo "$as_me:4257: \"$ac_compile\"") >&5 4258 (eval $ac_compile) 2>&5 4259 ac_status=$? 4260 echo "$as_me:4260: \$? = $ac_status" >&5 4261 (exit $ac_status); } && 4262 { ac_try='test -s conftest.$ac_objext' 4263 { (eval echo "$as_me:4263: \"$ac_try\"") >&5 4264 (eval $ac_try) 2>&5 4265 ac_status=$? 4266 echo "$as_me:4266: \$? = $ac_status" >&5 4267 (exit $ac_status); }; }; then 4268 cf_bsd_random_h=no 4269else 4270 echo "$as_me: failed program was:" >&5 4271cat conftest.$ac_ext >&5 4272cat >conftest.$ac_ext <<_ACEOF 4273#line 4273 "configure" 4274#include "confdefs.h" 4275#include <bsd/random.h> 4276int 4277main (void) 4278{ 4279unsigned x = arc4random() 4280 ; 4281 return 0; 4282} 4283_ACEOF 4284rm -f conftest.$ac_objext 4285if { (eval echo "$as_me:4285: \"$ac_compile\"") >&5 4286 (eval $ac_compile) 2>&5 4287 ac_status=$? 4288 echo "$as_me:4288: \$? = $ac_status" >&5 4289 (exit $ac_status); } && 4290 { ac_try='test -s conftest.$ac_objext' 4291 { (eval echo "$as_me:4291: \"$ac_try\"") >&5 4292 (eval $ac_try) 2>&5 4293 ac_status=$? 4294 echo "$as_me:4294: \$? = $ac_status" >&5 4295 (exit $ac_status); }; }; then 4296 cf_bsd_random_h=yes 4297else 4298 echo "$as_me: failed program was:" >&5 4299cat conftest.$ac_ext >&5 4300cf_bsd_random_h=no 4301fi 4302rm -f conftest.$ac_objext conftest.$ac_ext 4303fi 4304rm -f conftest.$ac_objext conftest.$ac_ext 4305 echo "$as_me:4305: result: $cf_bsd_random_h" >&5 4306echo "${ECHO_T}$cf_bsd_random_h" >&6 4307 if test "$cf_bsd_random_h" = yes 4308 then 4309 4310cat >>confdefs.h <<\EOF 4311#define HAVE_BSD_RANDOM_H 1 4312EOF 4313 4314 else 4315 { echo "$as_me:4315: WARNING: no header file found for arc4random" >&5 4316echo "$as_me: WARNING: no header file found for arc4random" >&2;} 4317 fi 4318 fi 4319 ;; 4320 esac 4321 4322 cf_srand_func=`echo $cf_func | sed -e 's%/.*%%'` 4323 cf_rand_func=`echo $cf_func | sed -e 's%.*/%%'` 4324 4325 case $cf_srand_func in 4326 (arc4random_stir) 4327 cf_srand_func='(void)' 4328 ;; 4329 esac 4330 4331cf_rand_max=`echo "mawk_rand_max" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4332 4333cat >>confdefs.h <<EOF 4334#define mawk_srand $cf_srand_func 4335EOF 4336 4337cat >>confdefs.h <<EOF 4338#define mawk_rand $cf_rand_func 4339EOF 4340 4341cat >>confdefs.h <<EOF 4342#define $cf_rand_max $cf_cv_rand_max 4343EOF 4344 4345fi 4346 4347 cat >>confdefs.h <<EOF 4348#define NAME_RANDOM "$cf_cv_srand_func" 4349EOF 4350 4351fi 4352############################################################################### 4353echo "$as_me:4353: checking if you want mawk to initialize random numbers at startup" >&5 4354echo $ECHO_N "checking if you want mawk to initialize random numbers at startup... $ECHO_C" >&6 4355 4356# Check whether --enable-init-srand or --disable-init-srand was given. 4357if test "${enable_init_srand+set}" = set; then 4358 enableval="$enable_init_srand" 4359 test "$enableval" != no && enableval=yes 4360 if test "$enableval" != "yes" ; then 4361 with_init_srand=no 4362 else 4363 with_init_srand=yes 4364 fi 4365else 4366 enableval=yes 4367 with_init_srand=yes 4368 4369fi; 4370if test "x${with_init_srand}" != xno; then 4371 with_init_srand=yes 4372else 4373 CPPFLAGS="$CPPFLAGS -DNO_INIT_SRAND" 4374fi 4375echo "$as_me:4375: result: $with_init_srand" >&5 4376echo "${ECHO_T}$with_init_srand" >&6 4377 4378############################################################################### 4379 4380for ac_prog in 'bison -y' byacc 4381do 4382 # Extract the first word of "$ac_prog", so it can be a program name with args. 4383set dummy $ac_prog; ac_word=$2 4384echo "$as_me:4384: checking for $ac_word" >&5 4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4386if test "${ac_cv_prog_YACC+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 if test -n "$YACC"; then 4390 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4391else 4392 ac_save_IFS=$IFS; IFS=$ac_path_separator 4393ac_dummy="$PATH" 4394for ac_dir in $ac_dummy; do 4395 IFS=$ac_save_IFS 4396 test -z "$ac_dir" && ac_dir=. 4397 $as_executable_p "$ac_dir/$ac_word" || continue 4398ac_cv_prog_YACC="$ac_prog" 4399echo "$as_me:4399: found $ac_dir/$ac_word" >&5 4400break 4401done 4402 4403fi 4404fi 4405YACC=$ac_cv_prog_YACC 4406if test -n "$YACC"; then 4407 echo "$as_me:4407: result: $YACC" >&5 4408echo "${ECHO_T}$YACC" >&6 4409else 4410 echo "$as_me:4410: result: no" >&5 4411echo "${ECHO_T}no" >&6 4412fi 4413 4414 test -n "$YACC" && break 4415done 4416test -n "$YACC" || YACC="yacc" 4417 4418for ac_prog in lint cppcheck splint 4419do 4420 # Extract the first word of "$ac_prog", so it can be a program name with args. 4421set dummy $ac_prog; ac_word=$2 4422echo "$as_me:4422: checking for $ac_word" >&5 4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4424if test "${ac_cv_prog_LINT+set}" = set; then 4425 echo $ECHO_N "(cached) $ECHO_C" >&6 4426else 4427 if test -n "$LINT"; then 4428 ac_cv_prog_LINT="$LINT" # Let the user override the test. 4429else 4430 ac_save_IFS=$IFS; IFS=$ac_path_separator 4431ac_dummy="$PATH" 4432for ac_dir in $ac_dummy; do 4433 IFS=$ac_save_IFS 4434 test -z "$ac_dir" && ac_dir=. 4435 $as_executable_p "$ac_dir/$ac_word" || continue 4436ac_cv_prog_LINT="$ac_prog" 4437echo "$as_me:4437: found $ac_dir/$ac_word" >&5 4438break 4439done 4440 4441fi 4442fi 4443LINT=$ac_cv_prog_LINT 4444if test -n "$LINT"; then 4445 echo "$as_me:4445: result: $LINT" >&5 4446echo "${ECHO_T}$LINT" >&6 4447else 4448 echo "$as_me:4448: result: no" >&5 4449echo "${ECHO_T}no" >&6 4450fi 4451 4452 test -n "$LINT" && break 4453done 4454 4455echo "$as_me:4455: checking if filesystem supports mixed-case filenames" >&5 4456echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 4457if test "${cf_cv_mixedcase+set}" = set; then 4458 echo $ECHO_N "(cached) $ECHO_C" >&6 4459else 4460 4461if test "$cross_compiling" = yes ; then 4462 case $target_alias in 4463 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) 4464 cf_cv_mixedcase=no 4465 ;; 4466 (*) 4467 cf_cv_mixedcase=yes 4468 ;; 4469 esac 4470else 4471 rm -f conftest CONFTEST 4472 echo test >conftest 4473 if test -f CONFTEST ; then 4474 cf_cv_mixedcase=no 4475 else 4476 cf_cv_mixedcase=yes 4477 fi 4478 rm -f conftest CONFTEST 4479fi 4480 4481fi 4482echo "$as_me:4482: result: $cf_cv_mixedcase" >&5 4483echo "${ECHO_T}$cf_cv_mixedcase" >&6 4484test "$cf_cv_mixedcase" = yes && 4485cat >>confdefs.h <<\EOF 4486#define MIXEDCASE_FILENAMES 1 4487EOF 4488 4489for ac_prog in exctags ctags 4490do 4491 # Extract the first word of "$ac_prog", so it can be a program name with args. 4492set dummy $ac_prog; ac_word=$2 4493echo "$as_me:4493: checking for $ac_word" >&5 4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4495if test "${ac_cv_prog_CTAGS+set}" = set; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497else 4498 if test -n "$CTAGS"; then 4499 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 4500else 4501 ac_save_IFS=$IFS; IFS=$ac_path_separator 4502ac_dummy="$PATH" 4503for ac_dir in $ac_dummy; do 4504 IFS=$ac_save_IFS 4505 test -z "$ac_dir" && ac_dir=. 4506 $as_executable_p "$ac_dir/$ac_word" || continue 4507ac_cv_prog_CTAGS="$ac_prog" 4508echo "$as_me:4508: found $ac_dir/$ac_word" >&5 4509break 4510done 4511 4512fi 4513fi 4514CTAGS=$ac_cv_prog_CTAGS 4515if test -n "$CTAGS"; then 4516 echo "$as_me:4516: result: $CTAGS" >&5 4517echo "${ECHO_T}$CTAGS" >&6 4518else 4519 echo "$as_me:4519: result: no" >&5 4520echo "${ECHO_T}no" >&6 4521fi 4522 4523 test -n "$CTAGS" && break 4524done 4525 4526for ac_prog in exetags etags 4527do 4528 # Extract the first word of "$ac_prog", so it can be a program name with args. 4529set dummy $ac_prog; ac_word=$2 4530echo "$as_me:4530: checking for $ac_word" >&5 4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4532if test "${ac_cv_prog_ETAGS+set}" = set; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 if test -n "$ETAGS"; then 4536 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 4537else 4538 ac_save_IFS=$IFS; IFS=$ac_path_separator 4539ac_dummy="$PATH" 4540for ac_dir in $ac_dummy; do 4541 IFS=$ac_save_IFS 4542 test -z "$ac_dir" && ac_dir=. 4543 $as_executable_p "$ac_dir/$ac_word" || continue 4544ac_cv_prog_ETAGS="$ac_prog" 4545echo "$as_me:4545: found $ac_dir/$ac_word" >&5 4546break 4547done 4548 4549fi 4550fi 4551ETAGS=$ac_cv_prog_ETAGS 4552if test -n "$ETAGS"; then 4553 echo "$as_me:4553: result: $ETAGS" >&5 4554echo "${ECHO_T}$ETAGS" >&6 4555else 4556 echo "$as_me:4556: result: no" >&5 4557echo "${ECHO_T}no" >&6 4558fi 4559 4560 test -n "$ETAGS" && break 4561done 4562 4563# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 4564set dummy ${CTAGS:-ctags}; ac_word=$2 4565echo "$as_me:4565: checking for $ac_word" >&5 4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4567if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 4568 echo $ECHO_N "(cached) $ECHO_C" >&6 4569else 4570 if test -n "$MAKE_LOWER_TAGS"; then 4571 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 4572else 4573 ac_save_IFS=$IFS; IFS=$ac_path_separator 4574ac_dummy="$PATH" 4575for ac_dir in $ac_dummy; do 4576 IFS=$ac_save_IFS 4577 test -z "$ac_dir" && ac_dir=. 4578 $as_executable_p "$ac_dir/$ac_word" || continue 4579ac_cv_prog_MAKE_LOWER_TAGS="yes" 4580echo "$as_me:4580: found $ac_dir/$ac_word" >&5 4581break 4582done 4583 4584 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 4585fi 4586fi 4587MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 4588if test -n "$MAKE_LOWER_TAGS"; then 4589 echo "$as_me:4589: result: $MAKE_LOWER_TAGS" >&5 4590echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 4591else 4592 echo "$as_me:4592: result: no" >&5 4593echo "${ECHO_T}no" >&6 4594fi 4595 4596if test "$cf_cv_mixedcase" = yes ; then 4597 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 4598set dummy ${ETAGS:-etags}; ac_word=$2 4599echo "$as_me:4599: checking for $ac_word" >&5 4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4601if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 4602 echo $ECHO_N "(cached) $ECHO_C" >&6 4603else 4604 if test -n "$MAKE_UPPER_TAGS"; then 4605 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 4606else 4607 ac_save_IFS=$IFS; IFS=$ac_path_separator 4608ac_dummy="$PATH" 4609for ac_dir in $ac_dummy; do 4610 IFS=$ac_save_IFS 4611 test -z "$ac_dir" && ac_dir=. 4612 $as_executable_p "$ac_dir/$ac_word" || continue 4613ac_cv_prog_MAKE_UPPER_TAGS="yes" 4614echo "$as_me:4614: found $ac_dir/$ac_word" >&5 4615break 4616done 4617 4618 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 4619fi 4620fi 4621MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 4622if test -n "$MAKE_UPPER_TAGS"; then 4623 echo "$as_me:4623: result: $MAKE_UPPER_TAGS" >&5 4624echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 4625else 4626 echo "$as_me:4626: result: no" >&5 4627echo "${ECHO_T}no" >&6 4628fi 4629 4630else 4631 MAKE_UPPER_TAGS=no 4632fi 4633 4634if test "$MAKE_UPPER_TAGS" = yes ; then 4635 MAKE_UPPER_TAGS= 4636else 4637 MAKE_UPPER_TAGS="#" 4638fi 4639 4640if test "$MAKE_LOWER_TAGS" = yes ; then 4641 MAKE_LOWER_TAGS= 4642else 4643 MAKE_LOWER_TAGS="#" 4644fi 4645 4646echo "$as_me:4646: checking if the POSIX test-macros are already defined" >&5 4647echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 4648if test "${cf_cv_posix_visible+set}" = set; then 4649 echo $ECHO_N "(cached) $ECHO_C" >&6 4650else 4651 4652cat >conftest.$ac_ext <<_ACEOF 4653#line 4653 "configure" 4654#include "confdefs.h" 4655#include <stdio.h> 4656int 4657main (void) 4658{ 4659 4660#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ 4661 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ 4662 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ 4663 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) 4664#error conflicting symbols found 4665#endif 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671rm -f conftest.$ac_objext 4672if { (eval echo "$as_me:4672: \"$ac_compile\"") >&5 4673 (eval $ac_compile) 2>&5 4674 ac_status=$? 4675 echo "$as_me:4675: \$? = $ac_status" >&5 4676 (exit $ac_status); } && 4677 { ac_try='test -s conftest.$ac_objext' 4678 { (eval echo "$as_me:4678: \"$ac_try\"") >&5 4679 (eval $ac_try) 2>&5 4680 ac_status=$? 4681 echo "$as_me:4681: \$? = $ac_status" >&5 4682 (exit $ac_status); }; }; then 4683 cf_cv_posix_visible=no 4684else 4685 echo "$as_me: failed program was:" >&5 4686cat conftest.$ac_ext >&5 4687cf_cv_posix_visible=yes 4688fi 4689rm -f conftest.$ac_objext conftest.$ac_ext 4690 4691fi 4692echo "$as_me:4692: result: $cf_cv_posix_visible" >&5 4693echo "${ECHO_T}$cf_cv_posix_visible" >&6 4694 4695if test "$cf_cv_posix_visible" = no; then 4696 4697cf_XOPEN_SOURCE=500 4698cf_POSIX_C_SOURCE=199506L 4699cf_xopen_source= 4700 4701case $host_os in 4702(aix[4-7]*) 4703 cf_xopen_source="-D_ALL_SOURCE" 4704 ;; 4705(msys) 4706 cf_XOPEN_SOURCE=600 4707 ;; 4708(darwin[0-8].*) 4709 cf_xopen_source="-D_APPLE_C_SOURCE" 4710 ;; 4711(darwin*) 4712 cf_xopen_source="-D_DARWIN_C_SOURCE" 4713 cf_XOPEN_SOURCE= 4714 ;; 4715(freebsd*|dragonfly*|midnightbsd*) 4716 # 5.x headers associate 4717 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 4718 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 4719 cf_POSIX_C_SOURCE=200112L 4720 cf_XOPEN_SOURCE=600 4721 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 4722 ;; 4723(hpux11*) 4724 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 4725 ;; 4726(hpux*) 4727 cf_xopen_source="-D_HPUX_SOURCE" 4728 ;; 4729(irix[56].*) 4730 cf_xopen_source="-D_SGI_SOURCE" 4731 cf_XOPEN_SOURCE= 4732 ;; 4733(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 4734 4735cf_gnu_xopen_source=$cf_XOPEN_SOURCE 4736 4737echo "$as_me:4737: checking if this is the GNU C library" >&5 4738echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 4739if test "${cf_cv_gnu_library+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741else 4742 4743cat >conftest.$ac_ext <<_ACEOF 4744#line 4744 "configure" 4745#include "confdefs.h" 4746#include <sys/types.h> 4747int 4748main (void) 4749{ 4750 4751 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 4752 return 0; 4753 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 4754 return 0; 4755 #else 4756 # error not GNU C library 4757 #endif 4758 ; 4759 return 0; 4760} 4761_ACEOF 4762rm -f conftest.$ac_objext 4763if { (eval echo "$as_me:4763: \"$ac_compile\"") >&5 4764 (eval $ac_compile) 2>&5 4765 ac_status=$? 4766 echo "$as_me:4766: \$? = $ac_status" >&5 4767 (exit $ac_status); } && 4768 { ac_try='test -s conftest.$ac_objext' 4769 { (eval echo "$as_me:4769: \"$ac_try\"") >&5 4770 (eval $ac_try) 2>&5 4771 ac_status=$? 4772 echo "$as_me:4772: \$? = $ac_status" >&5 4773 (exit $ac_status); }; }; then 4774 cf_cv_gnu_library=yes 4775else 4776 echo "$as_me: failed program was:" >&5 4777cat conftest.$ac_ext >&5 4778cf_cv_gnu_library=no 4779fi 4780rm -f conftest.$ac_objext conftest.$ac_ext 4781 4782fi 4783echo "$as_me:4783: result: $cf_cv_gnu_library" >&5 4784echo "${ECHO_T}$cf_cv_gnu_library" >&6 4785 4786if test x$cf_cv_gnu_library = xyes; then 4787 4788 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE 4789 # was changed to help a little. newlib incorporated the change about 4 4790 # years later. 4791 echo "$as_me:4791: checking if _DEFAULT_SOURCE can be used as a basis" >&5 4792echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 4793if test "${cf_cv_gnu_library_219+set}" = set; then 4794 echo $ECHO_N "(cached) $ECHO_C" >&6 4795else 4796 4797 cf_save="$CPPFLAGS" 4798 4799 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4800 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 4801 4802 cat >conftest.$ac_ext <<_ACEOF 4803#line 4803 "configure" 4804#include "confdefs.h" 4805#include <sys/types.h> 4806int 4807main (void) 4808{ 4809 4810 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2) 4811 return 0; 4812 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3) 4813 return 0; 4814 #else 4815 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old 4816 #endif 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821rm -f conftest.$ac_objext 4822if { (eval echo "$as_me:4822: \"$ac_compile\"") >&5 4823 (eval $ac_compile) 2>&5 4824 ac_status=$? 4825 echo "$as_me:4825: \$? = $ac_status" >&5 4826 (exit $ac_status); } && 4827 { ac_try='test -s conftest.$ac_objext' 4828 { (eval echo "$as_me:4828: \"$ac_try\"") >&5 4829 (eval $ac_try) 2>&5 4830 ac_status=$? 4831 echo "$as_me:4831: \$? = $ac_status" >&5 4832 (exit $ac_status); }; }; then 4833 cf_cv_gnu_library_219=yes 4834else 4835 echo "$as_me: failed program was:" >&5 4836cat conftest.$ac_ext >&5 4837cf_cv_gnu_library_219=no 4838fi 4839rm -f conftest.$ac_objext conftest.$ac_ext 4840 CPPFLAGS="$cf_save" 4841 4842fi 4843echo "$as_me:4843: result: $cf_cv_gnu_library_219" >&5 4844echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 4845 4846 if test "x$cf_cv_gnu_library_219" = xyes; then 4847 cf_save="$CPPFLAGS" 4848 echo "$as_me:4848: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 4849echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6 4850if test "${cf_cv_gnu_dftsrc_219+set}" = set; then 4851 echo $ECHO_N "(cached) $ECHO_C" >&6 4852else 4853 4854cf_fix_cppflags=no 4855cf_new_cflags= 4856cf_new_cppflags= 4857cf_new_extra_cppflags= 4858 4859for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source 4860do 4861case $cf_fix_cppflags in 4862(no) 4863 case $cf_add_cflags in 4864 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4865 case $cf_add_cflags in 4866 (-D*) 4867 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4868 4869 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4870 && test -z "${cf_tst_cflags}" \ 4871 && cf_fix_cppflags=yes 4872 4873 if test $cf_fix_cppflags = yes ; then 4874 4875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4877 4878 continue 4879 elif test "${cf_tst_cflags}" = "\"'" ; then 4880 4881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4883 4884 continue 4885 fi 4886 ;; 4887 esac 4888 case "$CPPFLAGS" in 4889 (*$cf_add_cflags) 4890 ;; 4891 (*) 4892 case $cf_add_cflags in 4893 (-D*) 4894 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4895 4896CPPFLAGS=`echo "$CPPFLAGS" | \ 4897 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4898 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4899 4900 ;; 4901 esac 4902 4903 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 4904 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 4905 4906 ;; 4907 esac 4908 ;; 4909 (*) 4910 4911 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 4912 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 4913 4914 ;; 4915 esac 4916 ;; 4917(yes) 4918 4919 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 4920 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 4921 4922 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4923 4924 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4925 && test -z "${cf_tst_cflags}" \ 4926 && cf_fix_cppflags=no 4927 ;; 4928esac 4929done 4930 4931if test -n "$cf_new_cflags" ; then 4932 4933 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 4934 CFLAGS="${CFLAGS}$cf_new_cflags" 4935 4936fi 4937 4938if test -n "$cf_new_cppflags" ; then 4939 4940 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 4941 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 4942 4943fi 4944 4945if test -n "$cf_new_extra_cppflags" ; then 4946 4947 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 4948 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 4949 4950fi 4951 4952 cat >conftest.$ac_ext <<_ACEOF 4953#line 4953 "configure" 4954#include "confdefs.h" 4955 4956 #include <limits.h> 4957 #include <sys/types.h> 4958 4959int 4960main (void) 4961{ 4962 4963 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1) 4964 return 0; 4965 #else 4966 # error GNU C library is too old 4967 #endif 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972rm -f conftest.$ac_objext 4973if { (eval echo "$as_me:4973: \"$ac_compile\"") >&5 4974 (eval $ac_compile) 2>&5 4975 ac_status=$? 4976 echo "$as_me:4976: \$? = $ac_status" >&5 4977 (exit $ac_status); } && 4978 { ac_try='test -s conftest.$ac_objext' 4979 { (eval echo "$as_me:4979: \"$ac_try\"") >&5 4980 (eval $ac_try) 2>&5 4981 ac_status=$? 4982 echo "$as_me:4982: \$? = $ac_status" >&5 4983 (exit $ac_status); }; }; then 4984 cf_cv_gnu_dftsrc_219=yes 4985else 4986 echo "$as_me: failed program was:" >&5 4987cat conftest.$ac_ext >&5 4988cf_cv_gnu_dftsrc_219=no 4989fi 4990rm -f conftest.$ac_objext conftest.$ac_ext 4991 4992fi 4993echo "$as_me:4993: result: $cf_cv_gnu_dftsrc_219" >&5 4994echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 4995 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" 4996 else 4997 cf_cv_gnu_dftsrc_219=maybe 4998 fi 4999 5000 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then 5001 5002 echo "$as_me:5002: checking if we must define _GNU_SOURCE" >&5 5003echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 5004if test "${cf_cv_gnu_source+set}" = set; then 5005 echo $ECHO_N "(cached) $ECHO_C" >&6 5006else 5007 5008 cat >conftest.$ac_ext <<_ACEOF 5009#line 5009 "configure" 5010#include "confdefs.h" 5011#include <sys/types.h> 5012int 5013main (void) 5014{ 5015 5016 #ifndef _XOPEN_SOURCE 5017 #error expected _XOPEN_SOURCE to be defined 5018 #endif 5019 ; 5020 return 0; 5021} 5022_ACEOF 5023rm -f conftest.$ac_objext 5024if { (eval echo "$as_me:5024: \"$ac_compile\"") >&5 5025 (eval $ac_compile) 2>&5 5026 ac_status=$? 5027 echo "$as_me:5027: \$? = $ac_status" >&5 5028 (exit $ac_status); } && 5029 { ac_try='test -s conftest.$ac_objext' 5030 { (eval echo "$as_me:5030: \"$ac_try\"") >&5 5031 (eval $ac_try) 2>&5 5032 ac_status=$? 5033 echo "$as_me:5033: \$? = $ac_status" >&5 5034 (exit $ac_status); }; }; then 5035 cf_cv_gnu_source=no 5036else 5037 echo "$as_me: failed program was:" >&5 5038cat conftest.$ac_ext >&5 5039cf_save="$CPPFLAGS" 5040 5041cf_fix_cppflags=no 5042cf_new_cflags= 5043cf_new_cppflags= 5044cf_new_extra_cppflags= 5045 5046for cf_add_cflags in -D_GNU_SOURCE 5047do 5048case $cf_fix_cppflags in 5049(no) 5050 case $cf_add_cflags in 5051 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5052 case $cf_add_cflags in 5053 (-D*) 5054 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5055 5056 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5057 && test -z "${cf_tst_cflags}" \ 5058 && cf_fix_cppflags=yes 5059 5060 if test $cf_fix_cppflags = yes ; then 5061 5062 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5063 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5064 5065 continue 5066 elif test "${cf_tst_cflags}" = "\"'" ; then 5067 5068 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5069 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5070 5071 continue 5072 fi 5073 ;; 5074 esac 5075 case "$CPPFLAGS" in 5076 (*$cf_add_cflags) 5077 ;; 5078 (*) 5079 case $cf_add_cflags in 5080 (-D*) 5081 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5082 5083CPPFLAGS=`echo "$CPPFLAGS" | \ 5084 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5085 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5086 5087 ;; 5088 esac 5089 5090 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5091 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5092 5093 ;; 5094 esac 5095 ;; 5096 (*) 5097 5098 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5099 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5100 5101 ;; 5102 esac 5103 ;; 5104(yes) 5105 5106 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5107 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5108 5109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5110 5111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5112 && test -z "${cf_tst_cflags}" \ 5113 && cf_fix_cppflags=no 5114 ;; 5115esac 5116done 5117 5118if test -n "$cf_new_cflags" ; then 5119 5120 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5121 CFLAGS="${CFLAGS}$cf_new_cflags" 5122 5123fi 5124 5125if test -n "$cf_new_cppflags" ; then 5126 5127 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5128 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5129 5130fi 5131 5132if test -n "$cf_new_extra_cppflags" ; then 5133 5134 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5135 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5136 5137fi 5138 5139 cat >conftest.$ac_ext <<_ACEOF 5140#line 5140 "configure" 5141#include "confdefs.h" 5142#include <sys/types.h> 5143int 5144main (void) 5145{ 5146 5147 #ifdef _XOPEN_SOURCE 5148 #error expected _XOPEN_SOURCE to be undefined 5149 #endif 5150 ; 5151 return 0; 5152} 5153_ACEOF 5154rm -f conftest.$ac_objext 5155if { (eval echo "$as_me:5155: \"$ac_compile\"") >&5 5156 (eval $ac_compile) 2>&5 5157 ac_status=$? 5158 echo "$as_me:5158: \$? = $ac_status" >&5 5159 (exit $ac_status); } && 5160 { ac_try='test -s conftest.$ac_objext' 5161 { (eval echo "$as_me:5161: \"$ac_try\"") >&5 5162 (eval $ac_try) 2>&5 5163 ac_status=$? 5164 echo "$as_me:5164: \$? = $ac_status" >&5 5165 (exit $ac_status); }; }; then 5166 cf_cv_gnu_source=no 5167else 5168 echo "$as_me: failed program was:" >&5 5169cat conftest.$ac_ext >&5 5170cf_cv_gnu_source=yes 5171fi 5172rm -f conftest.$ac_objext conftest.$ac_ext 5173 CPPFLAGS="$cf_save" 5174 5175fi 5176rm -f conftest.$ac_objext conftest.$ac_ext 5177 5178fi 5179echo "$as_me:5179: result: $cf_cv_gnu_source" >&5 5180echo "${ECHO_T}$cf_cv_gnu_source" >&6 5181 5182 if test "$cf_cv_gnu_source" = yes 5183 then 5184 echo "$as_me:5184: checking if we should also define _DEFAULT_SOURCE" >&5 5185echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 5186if test "${cf_cv_default_source+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 5190 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5191 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" 5192 5193 cat >conftest.$ac_ext <<_ACEOF 5194#line 5194 "configure" 5195#include "confdefs.h" 5196#include <sys/types.h> 5197int 5198main (void) 5199{ 5200 5201 #ifdef _DEFAULT_SOURCE 5202 #error expected _DEFAULT_SOURCE to be undefined 5203 #endif 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208rm -f conftest.$ac_objext 5209if { (eval echo "$as_me:5209: \"$ac_compile\"") >&5 5210 (eval $ac_compile) 2>&5 5211 ac_status=$? 5212 echo "$as_me:5212: \$? = $ac_status" >&5 5213 (exit $ac_status); } && 5214 { ac_try='test -s conftest.$ac_objext' 5215 { (eval echo "$as_me:5215: \"$ac_try\"") >&5 5216 (eval $ac_try) 2>&5 5217 ac_status=$? 5218 echo "$as_me:5218: \$? = $ac_status" >&5 5219 (exit $ac_status); }; }; then 5220 cf_cv_default_source=no 5221else 5222 echo "$as_me: failed program was:" >&5 5223cat conftest.$ac_ext >&5 5224cf_cv_default_source=yes 5225fi 5226rm -f conftest.$ac_objext conftest.$ac_ext 5227 5228fi 5229echo "$as_me:5229: result: $cf_cv_default_source" >&5 5230echo "${ECHO_T}$cf_cv_default_source" >&6 5231 if test "$cf_cv_default_source" = yes 5232 then 5233 5234 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5235 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" 5236 5237 fi 5238 fi 5239 fi 5240 5241fi 5242 5243 ;; 5244(minix*) 5245 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 5246 ;; 5247(mirbsd*) 5248 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 5249 cf_XOPEN_SOURCE= 5250 5251if test "$cf_cv_posix_visible" = no; then 5252 5253cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 5254 5255cf_save_CFLAGS="$CFLAGS" 5256cf_save_CPPFLAGS="$CPPFLAGS" 5257 5258cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 5259 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5260 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 5261 5262cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 5263 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5264 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 5265 5266echo "$as_me:5266: checking if we should define _POSIX_C_SOURCE" >&5 5267echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 5268if test "${cf_cv_posix_c_source+set}" = set; then 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5270else 5271 5272echo "${as_me:-configure}:5272: testing if the symbol is already defined go no further ..." 1>&5 5273 5274 cat >conftest.$ac_ext <<_ACEOF 5275#line 5275 "configure" 5276#include "confdefs.h" 5277#include <sys/types.h> 5278int 5279main (void) 5280{ 5281 5282#ifndef _POSIX_C_SOURCE 5283make an error 5284#endif 5285 ; 5286 return 0; 5287} 5288_ACEOF 5289rm -f conftest.$ac_objext 5290if { (eval echo "$as_me:5290: \"$ac_compile\"") >&5 5291 (eval $ac_compile) 2>&5 5292 ac_status=$? 5293 echo "$as_me:5293: \$? = $ac_status" >&5 5294 (exit $ac_status); } && 5295 { ac_try='test -s conftest.$ac_objext' 5296 { (eval echo "$as_me:5296: \"$ac_try\"") >&5 5297 (eval $ac_try) 2>&5 5298 ac_status=$? 5299 echo "$as_me:5299: \$? = $ac_status" >&5 5300 (exit $ac_status); }; }; then 5301 cf_cv_posix_c_source=no 5302else 5303 echo "$as_me: failed program was:" >&5 5304cat conftest.$ac_ext >&5 5305cf_want_posix_source=no 5306 case .$cf_POSIX_C_SOURCE in 5307 (.[12]??*) 5308 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 5309 ;; 5310 (.2) 5311 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 5312 cf_want_posix_source=yes 5313 ;; 5314 (.*) 5315 cf_want_posix_source=yes 5316 ;; 5317 esac 5318 if test "$cf_want_posix_source" = yes ; then 5319 cat >conftest.$ac_ext <<_ACEOF 5320#line 5320 "configure" 5321#include "confdefs.h" 5322#include <sys/types.h> 5323int 5324main (void) 5325{ 5326 5327#ifdef _POSIX_SOURCE 5328make an error 5329#endif 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334rm -f conftest.$ac_objext 5335if { (eval echo "$as_me:5335: \"$ac_compile\"") >&5 5336 (eval $ac_compile) 2>&5 5337 ac_status=$? 5338 echo "$as_me:5338: \$? = $ac_status" >&5 5339 (exit $ac_status); } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (eval echo "$as_me:5341: \"$ac_try\"") >&5 5342 (eval $ac_try) 2>&5 5343 ac_status=$? 5344 echo "$as_me:5344: \$? = $ac_status" >&5 5345 (exit $ac_status); }; }; then 5346 : 5347else 5348 echo "$as_me: failed program was:" >&5 5349cat conftest.$ac_ext >&5 5350cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 5351fi 5352rm -f conftest.$ac_objext conftest.$ac_ext 5353 fi 5354 5355echo "${as_me:-configure}:5355: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 5356 5357 CFLAGS="$cf_trim_CFLAGS" 5358 CPPFLAGS="$cf_trim_CPPFLAGS" 5359 5360 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5361 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 5362 5363echo "${as_me:-configure}:5363: testing if the second compile does not leave our definition intact error ..." 1>&5 5364 5365 cat >conftest.$ac_ext <<_ACEOF 5366#line 5366 "configure" 5367#include "confdefs.h" 5368#include <sys/types.h> 5369int 5370main (void) 5371{ 5372 5373#ifndef _POSIX_C_SOURCE 5374make an error 5375#endif 5376 ; 5377 return 0; 5378} 5379_ACEOF 5380rm -f conftest.$ac_objext 5381if { (eval echo "$as_me:5381: \"$ac_compile\"") >&5 5382 (eval $ac_compile) 2>&5 5383 ac_status=$? 5384 echo "$as_me:5384: \$? = $ac_status" >&5 5385 (exit $ac_status); } && 5386 { ac_try='test -s conftest.$ac_objext' 5387 { (eval echo "$as_me:5387: \"$ac_try\"") >&5 5388 (eval $ac_try) 2>&5 5389 ac_status=$? 5390 echo "$as_me:5390: \$? = $ac_status" >&5 5391 (exit $ac_status); }; }; then 5392 : 5393else 5394 echo "$as_me: failed program was:" >&5 5395cat conftest.$ac_ext >&5 5396cf_cv_posix_c_source=no 5397fi 5398rm -f conftest.$ac_objext conftest.$ac_ext 5399 CFLAGS="$cf_save_CFLAGS" 5400 CPPFLAGS="$cf_save_CPPFLAGS" 5401 5402fi 5403rm -f conftest.$ac_objext conftest.$ac_ext 5404 5405fi 5406echo "$as_me:5406: result: $cf_cv_posix_c_source" >&5 5407echo "${ECHO_T}$cf_cv_posix_c_source" >&6 5408 5409if test "$cf_cv_posix_c_source" != no ; then 5410 CFLAGS="$cf_trim_CFLAGS" 5411 CPPFLAGS="$cf_trim_CPPFLAGS" 5412 5413cf_fix_cppflags=no 5414cf_new_cflags= 5415cf_new_cppflags= 5416cf_new_extra_cppflags= 5417 5418for cf_add_cflags in $cf_cv_posix_c_source 5419do 5420case $cf_fix_cppflags in 5421(no) 5422 case $cf_add_cflags in 5423 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5424 case $cf_add_cflags in 5425 (-D*) 5426 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5427 5428 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5429 && test -z "${cf_tst_cflags}" \ 5430 && cf_fix_cppflags=yes 5431 5432 if test $cf_fix_cppflags = yes ; then 5433 5434 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5435 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5436 5437 continue 5438 elif test "${cf_tst_cflags}" = "\"'" ; then 5439 5440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5442 5443 continue 5444 fi 5445 ;; 5446 esac 5447 case "$CPPFLAGS" in 5448 (*$cf_add_cflags) 5449 ;; 5450 (*) 5451 case $cf_add_cflags in 5452 (-D*) 5453 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5454 5455CPPFLAGS=`echo "$CPPFLAGS" | \ 5456 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5457 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5458 5459 ;; 5460 esac 5461 5462 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5463 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5464 5465 ;; 5466 esac 5467 ;; 5468 (*) 5469 5470 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5471 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5472 5473 ;; 5474 esac 5475 ;; 5476(yes) 5477 5478 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5479 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5480 5481 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5482 5483 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5484 && test -z "${cf_tst_cflags}" \ 5485 && cf_fix_cppflags=no 5486 ;; 5487esac 5488done 5489 5490if test -n "$cf_new_cflags" ; then 5491 5492 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5493 CFLAGS="${CFLAGS}$cf_new_cflags" 5494 5495fi 5496 5497if test -n "$cf_new_cppflags" ; then 5498 5499 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5500 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5501 5502fi 5503 5504if test -n "$cf_new_extra_cppflags" ; then 5505 5506 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5507 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5508 5509fi 5510 5511fi 5512 5513fi # cf_cv_posix_visible 5514 5515 ;; 5516(netbsd*) 5517 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 5518 ;; 5519(openbsd[4-9]*) 5520 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 5521 cf_xopen_source="-D_BSD_SOURCE" 5522 cf_XOPEN_SOURCE=600 5523 ;; 5524(openbsd*) 5525 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 5526 ;; 5527(osf[45]*) 5528 cf_xopen_source="-D_OSF_SOURCE" 5529 ;; 5530(nto-qnx*) 5531 cf_xopen_source="-D_QNX_SOURCE" 5532 ;; 5533(sco*) 5534 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 5535 ;; 5536(solaris2.*) 5537 cf_xopen_source="-D__EXTENSIONS__" 5538 cf_cv_xopen_source=broken 5539 ;; 5540(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 5541 cf_XOPEN_SOURCE= 5542 cf_POSIX_C_SOURCE= 5543 ;; 5544(*) 5545 5546echo "$as_me:5546: checking if we should define _XOPEN_SOURCE" >&5 5547echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 5548if test "${cf_cv_xopen_source+set}" = set; then 5549 echo $ECHO_N "(cached) $ECHO_C" >&6 5550else 5551 5552 cat >conftest.$ac_ext <<_ACEOF 5553#line 5553 "configure" 5554#include "confdefs.h" 5555 5556#include <stdlib.h> 5557#include <string.h> 5558#include <sys/types.h> 5559 5560int 5561main (void) 5562{ 5563 5564#ifndef _XOPEN_SOURCE 5565make an error 5566#endif 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571rm -f conftest.$ac_objext 5572if { (eval echo "$as_me:5572: \"$ac_compile\"") >&5 5573 (eval $ac_compile) 2>&5 5574 ac_status=$? 5575 echo "$as_me:5575: \$? = $ac_status" >&5 5576 (exit $ac_status); } && 5577 { ac_try='test -s conftest.$ac_objext' 5578 { (eval echo "$as_me:5578: \"$ac_try\"") >&5 5579 (eval $ac_try) 2>&5 5580 ac_status=$? 5581 echo "$as_me:5581: \$? = $ac_status" >&5 5582 (exit $ac_status); }; }; then 5583 cf_cv_xopen_source=no 5584else 5585 echo "$as_me: failed program was:" >&5 5586cat conftest.$ac_ext >&5 5587cf_save="$CPPFLAGS" 5588 5589 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5590 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 5591 5592 cat >conftest.$ac_ext <<_ACEOF 5593#line 5593 "configure" 5594#include "confdefs.h" 5595 5596#include <stdlib.h> 5597#include <string.h> 5598#include <sys/types.h> 5599 5600int 5601main (void) 5602{ 5603 5604#ifdef _XOPEN_SOURCE 5605make an error 5606#endif 5607 ; 5608 return 0; 5609} 5610_ACEOF 5611rm -f conftest.$ac_objext 5612if { (eval echo "$as_me:5612: \"$ac_compile\"") >&5 5613 (eval $ac_compile) 2>&5 5614 ac_status=$? 5615 echo "$as_me:5615: \$? = $ac_status" >&5 5616 (exit $ac_status); } && 5617 { ac_try='test -s conftest.$ac_objext' 5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5 5619 (eval $ac_try) 2>&5 5620 ac_status=$? 5621 echo "$as_me:5621: \$? = $ac_status" >&5 5622 (exit $ac_status); }; }; then 5623 cf_cv_xopen_source=no 5624else 5625 echo "$as_me: failed program was:" >&5 5626cat conftest.$ac_ext >&5 5627cf_cv_xopen_source=$cf_XOPEN_SOURCE 5628fi 5629rm -f conftest.$ac_objext conftest.$ac_ext 5630 CPPFLAGS="$cf_save" 5631 5632fi 5633rm -f conftest.$ac_objext conftest.$ac_ext 5634 5635fi 5636echo "$as_me:5636: result: $cf_cv_xopen_source" >&5 5637echo "${ECHO_T}$cf_cv_xopen_source" >&6 5638 5639if test "$cf_cv_xopen_source" != no ; then 5640 5641CFLAGS=`echo "$CFLAGS" | \ 5642 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5643 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 5644 5645CPPFLAGS=`echo "$CPPFLAGS" | \ 5646 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5647 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 5648 5649 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 5650 5651cf_fix_cppflags=no 5652cf_new_cflags= 5653cf_new_cppflags= 5654cf_new_extra_cppflags= 5655 5656for cf_add_cflags in $cf_temp_xopen_source 5657do 5658case $cf_fix_cppflags in 5659(no) 5660 case $cf_add_cflags in 5661 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5662 case $cf_add_cflags in 5663 (-D*) 5664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5665 5666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5667 && test -z "${cf_tst_cflags}" \ 5668 && cf_fix_cppflags=yes 5669 5670 if test $cf_fix_cppflags = yes ; then 5671 5672 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5673 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5674 5675 continue 5676 elif test "${cf_tst_cflags}" = "\"'" ; then 5677 5678 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5679 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5680 5681 continue 5682 fi 5683 ;; 5684 esac 5685 case "$CPPFLAGS" in 5686 (*$cf_add_cflags) 5687 ;; 5688 (*) 5689 case $cf_add_cflags in 5690 (-D*) 5691 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5692 5693CPPFLAGS=`echo "$CPPFLAGS" | \ 5694 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5695 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5696 5697 ;; 5698 esac 5699 5700 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5701 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5702 5703 ;; 5704 esac 5705 ;; 5706 (*) 5707 5708 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5709 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5710 5711 ;; 5712 esac 5713 ;; 5714(yes) 5715 5716 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5717 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5718 5719 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5720 5721 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5722 && test -z "${cf_tst_cflags}" \ 5723 && cf_fix_cppflags=no 5724 ;; 5725esac 5726done 5727 5728if test -n "$cf_new_cflags" ; then 5729 5730 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5731 CFLAGS="${CFLAGS}$cf_new_cflags" 5732 5733fi 5734 5735if test -n "$cf_new_cppflags" ; then 5736 5737 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5738 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 5739 5740fi 5741 5742if test -n "$cf_new_extra_cppflags" ; then 5743 5744 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 5745 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 5746 5747fi 5748 5749fi 5750 5751if test "$cf_cv_posix_visible" = no; then 5752 5753cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 5754 5755cf_save_CFLAGS="$CFLAGS" 5756cf_save_CPPFLAGS="$CPPFLAGS" 5757 5758cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 5759 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5760 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 5761 5762cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 5763 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 5764 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 5765 5766echo "$as_me:5766: checking if we should define _POSIX_C_SOURCE" >&5 5767echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 5768if test "${cf_cv_posix_c_source+set}" = set; then 5769 echo $ECHO_N "(cached) $ECHO_C" >&6 5770else 5771 5772echo "${as_me:-configure}:5772: testing if the symbol is already defined go no further ..." 1>&5 5773 5774 cat >conftest.$ac_ext <<_ACEOF 5775#line 5775 "configure" 5776#include "confdefs.h" 5777#include <sys/types.h> 5778int 5779main (void) 5780{ 5781 5782#ifndef _POSIX_C_SOURCE 5783make an error 5784#endif 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789rm -f conftest.$ac_objext 5790if { (eval echo "$as_me:5790: \"$ac_compile\"") >&5 5791 (eval $ac_compile) 2>&5 5792 ac_status=$? 5793 echo "$as_me:5793: \$? = $ac_status" >&5 5794 (exit $ac_status); } && 5795 { ac_try='test -s conftest.$ac_objext' 5796 { (eval echo "$as_me:5796: \"$ac_try\"") >&5 5797 (eval $ac_try) 2>&5 5798 ac_status=$? 5799 echo "$as_me:5799: \$? = $ac_status" >&5 5800 (exit $ac_status); }; }; then 5801 cf_cv_posix_c_source=no 5802else 5803 echo "$as_me: failed program was:" >&5 5804cat conftest.$ac_ext >&5 5805cf_want_posix_source=no 5806 case .$cf_POSIX_C_SOURCE in 5807 (.[12]??*) 5808 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 5809 ;; 5810 (.2) 5811 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 5812 cf_want_posix_source=yes 5813 ;; 5814 (.*) 5815 cf_want_posix_source=yes 5816 ;; 5817 esac 5818 if test "$cf_want_posix_source" = yes ; then 5819 cat >conftest.$ac_ext <<_ACEOF 5820#line 5820 "configure" 5821#include "confdefs.h" 5822#include <sys/types.h> 5823int 5824main (void) 5825{ 5826 5827#ifdef _POSIX_SOURCE 5828make an error 5829#endif 5830 ; 5831 return 0; 5832} 5833_ACEOF 5834rm -f conftest.$ac_objext 5835if { (eval echo "$as_me:5835: \"$ac_compile\"") >&5 5836 (eval $ac_compile) 2>&5 5837 ac_status=$? 5838 echo "$as_me:5838: \$? = $ac_status" >&5 5839 (exit $ac_status); } && 5840 { ac_try='test -s conftest.$ac_objext' 5841 { (eval echo "$as_me:5841: \"$ac_try\"") >&5 5842 (eval $ac_try) 2>&5 5843 ac_status=$? 5844 echo "$as_me:5844: \$? = $ac_status" >&5 5845 (exit $ac_status); }; }; then 5846 : 5847else 5848 echo "$as_me: failed program was:" >&5 5849cat conftest.$ac_ext >&5 5850cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 5851fi 5852rm -f conftest.$ac_objext conftest.$ac_ext 5853 fi 5854 5855echo "${as_me:-configure}:5855: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 5856 5857 CFLAGS="$cf_trim_CFLAGS" 5858 CPPFLAGS="$cf_trim_CPPFLAGS" 5859 5860 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 5861 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" 5862 5863echo "${as_me:-configure}:5863: testing if the second compile does not leave our definition intact error ..." 1>&5 5864 5865 cat >conftest.$ac_ext <<_ACEOF 5866#line 5866 "configure" 5867#include "confdefs.h" 5868#include <sys/types.h> 5869int 5870main (void) 5871{ 5872 5873#ifndef _POSIX_C_SOURCE 5874make an error 5875#endif 5876 ; 5877 return 0; 5878} 5879_ACEOF 5880rm -f conftest.$ac_objext 5881if { (eval echo "$as_me:5881: \"$ac_compile\"") >&5 5882 (eval $ac_compile) 2>&5 5883 ac_status=$? 5884 echo "$as_me:5884: \$? = $ac_status" >&5 5885 (exit $ac_status); } && 5886 { ac_try='test -s conftest.$ac_objext' 5887 { (eval echo "$as_me:5887: \"$ac_try\"") >&5 5888 (eval $ac_try) 2>&5 5889 ac_status=$? 5890 echo "$as_me:5890: \$? = $ac_status" >&5 5891 (exit $ac_status); }; }; then 5892 : 5893else 5894 echo "$as_me: failed program was:" >&5 5895cat conftest.$ac_ext >&5 5896cf_cv_posix_c_source=no 5897fi 5898rm -f conftest.$ac_objext conftest.$ac_ext 5899 CFLAGS="$cf_save_CFLAGS" 5900 CPPFLAGS="$cf_save_CPPFLAGS" 5901 5902fi 5903rm -f conftest.$ac_objext conftest.$ac_ext 5904 5905fi 5906echo "$as_me:5906: result: $cf_cv_posix_c_source" >&5 5907echo "${ECHO_T}$cf_cv_posix_c_source" >&6 5908 5909if test "$cf_cv_posix_c_source" != no ; then 5910 CFLAGS="$cf_trim_CFLAGS" 5911 CPPFLAGS="$cf_trim_CPPFLAGS" 5912 5913cf_fix_cppflags=no 5914cf_new_cflags= 5915cf_new_cppflags= 5916cf_new_extra_cppflags= 5917 5918for cf_add_cflags in $cf_cv_posix_c_source 5919do 5920case $cf_fix_cppflags in 5921(no) 5922 case $cf_add_cflags in 5923 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5924 case $cf_add_cflags in 5925 (-D*) 5926 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5927 5928 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5929 && test -z "${cf_tst_cflags}" \ 5930 && cf_fix_cppflags=yes 5931 5932 if test $cf_fix_cppflags = yes ; then 5933 5934 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5935 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5936 5937 continue 5938 elif test "${cf_tst_cflags}" = "\"'" ; then 5939 5940 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5941 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5942 5943 continue 5944 fi 5945 ;; 5946 esac 5947 case "$CPPFLAGS" in 5948 (*$cf_add_cflags) 5949 ;; 5950 (*) 5951 case $cf_add_cflags in 5952 (-D*) 5953 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5954 5955CPPFLAGS=`echo "$CPPFLAGS" | \ 5956 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5957 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5958 5959 ;; 5960 esac 5961 5962 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 5963 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 5964 5965 ;; 5966 esac 5967 ;; 5968 (*) 5969 5970 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 5971 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 5972 5973 ;; 5974 esac 5975 ;; 5976(yes) 5977 5978 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 5979 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 5980 5981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5982 5983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5984 && test -z "${cf_tst_cflags}" \ 5985 && cf_fix_cppflags=no 5986 ;; 5987esac 5988done 5989 5990if test -n "$cf_new_cflags" ; then 5991 5992 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 5993 CFLAGS="${CFLAGS}$cf_new_cflags" 5994 5995fi 5996 5997if test -n "$cf_new_cppflags" ; then 5998 5999 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6000 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 6001 6002fi 6003 6004if test -n "$cf_new_extra_cppflags" ; then 6005 6006 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 6007 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 6008 6009fi 6010 6011fi 6012 6013fi # cf_cv_posix_visible 6014 6015 ;; 6016esac 6017 6018if test -n "$cf_xopen_source" ; then 6019 6020cf_fix_cppflags=no 6021cf_new_cflags= 6022cf_new_cppflags= 6023cf_new_extra_cppflags= 6024 6025for cf_add_cflags in $cf_xopen_source 6026do 6027case $cf_fix_cppflags in 6028(no) 6029 case $cf_add_cflags in 6030 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 6031 case $cf_add_cflags in 6032 (-D*) 6033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 6034 6035 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 6036 && test -z "${cf_tst_cflags}" \ 6037 && cf_fix_cppflags=yes 6038 6039 if test $cf_fix_cppflags = yes ; then 6040 6041 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6042 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6043 6044 continue 6045 elif test "${cf_tst_cflags}" = "\"'" ; then 6046 6047 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6048 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6049 6050 continue 6051 fi 6052 ;; 6053 esac 6054 case "$CPPFLAGS" in 6055 (*$cf_add_cflags) 6056 ;; 6057 (*) 6058 case $cf_add_cflags in 6059 (-D*) 6060 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 6061 6062CPPFLAGS=`echo "$CPPFLAGS" | \ 6063 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 6064 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 6065 6066 ;; 6067 esac 6068 6069 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 6070 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 6071 6072 ;; 6073 esac 6074 ;; 6075 (*) 6076 6077 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 6078 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 6079 6080 ;; 6081 esac 6082 ;; 6083(yes) 6084 6085 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6086 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6087 6088 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 6089 6090 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 6091 && test -z "${cf_tst_cflags}" \ 6092 && cf_fix_cppflags=no 6093 ;; 6094esac 6095done 6096 6097if test -n "$cf_new_cflags" ; then 6098 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 6099 6100echo "${as_me:-configure}:6100: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 6101 6102 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 6103 CFLAGS="${CFLAGS}$cf_new_cflags" 6104 6105fi 6106 6107if test -n "$cf_new_cppflags" ; then 6108 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 6109 6110echo "${as_me:-configure}:6110: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 6111 6112 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6113 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 6114 6115fi 6116 6117if test -n "$cf_new_extra_cppflags" ; then 6118 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 6119 6120echo "${as_me:-configure}:6120: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 6121 6122 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 6123 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 6124 6125fi 6126 6127fi 6128 6129if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 6130 echo "$as_me:6130: checking if _XOPEN_SOURCE really is set" >&5 6131echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 6132 cat >conftest.$ac_ext <<_ACEOF 6133#line 6133 "configure" 6134#include "confdefs.h" 6135#include <stdlib.h> 6136int 6137main (void) 6138{ 6139 6140#ifndef _XOPEN_SOURCE 6141make an error 6142#endif 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147rm -f conftest.$ac_objext 6148if { (eval echo "$as_me:6148: \"$ac_compile\"") >&5 6149 (eval $ac_compile) 2>&5 6150 ac_status=$? 6151 echo "$as_me:6151: \$? = $ac_status" >&5 6152 (exit $ac_status); } && 6153 { ac_try='test -s conftest.$ac_objext' 6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:6157: \$? = $ac_status" >&5 6158 (exit $ac_status); }; }; then 6159 cf_XOPEN_SOURCE_set=yes 6160else 6161 echo "$as_me: failed program was:" >&5 6162cat conftest.$ac_ext >&5 6163cf_XOPEN_SOURCE_set=no 6164fi 6165rm -f conftest.$ac_objext conftest.$ac_ext 6166 echo "$as_me:6166: result: $cf_XOPEN_SOURCE_set" >&5 6167echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 6168 if test $cf_XOPEN_SOURCE_set = yes 6169 then 6170 cat >conftest.$ac_ext <<_ACEOF 6171#line 6171 "configure" 6172#include "confdefs.h" 6173#include <stdlib.h> 6174int 6175main (void) 6176{ 6177 6178#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 6179make an error 6180#endif 6181 ; 6182 return 0; 6183} 6184_ACEOF 6185rm -f conftest.$ac_objext 6186if { (eval echo "$as_me:6186: \"$ac_compile\"") >&5 6187 (eval $ac_compile) 2>&5 6188 ac_status=$? 6189 echo "$as_me:6189: \$? = $ac_status" >&5 6190 (exit $ac_status); } && 6191 { ac_try='test -s conftest.$ac_objext' 6192 { (eval echo "$as_me:6192: \"$ac_try\"") >&5 6193 (eval $ac_try) 2>&5 6194 ac_status=$? 6195 echo "$as_me:6195: \$? = $ac_status" >&5 6196 (exit $ac_status); }; }; then 6197 cf_XOPEN_SOURCE_set_ok=yes 6198else 6199 echo "$as_me: failed program was:" >&5 6200cat conftest.$ac_ext >&5 6201cf_XOPEN_SOURCE_set_ok=no 6202fi 6203rm -f conftest.$ac_objext conftest.$ac_ext 6204 if test $cf_XOPEN_SOURCE_set_ok = no 6205 then 6206 { echo "$as_me:6206: WARNING: _XOPEN_SOURCE is lower than requested" >&5 6207echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 6208 fi 6209 else 6210 6211echo "$as_me:6211: checking if we should define _XOPEN_SOURCE" >&5 6212echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 6213if test "${cf_cv_xopen_source+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 6217 cat >conftest.$ac_ext <<_ACEOF 6218#line 6218 "configure" 6219#include "confdefs.h" 6220 6221#include <stdlib.h> 6222#include <string.h> 6223#include <sys/types.h> 6224 6225int 6226main (void) 6227{ 6228 6229#ifndef _XOPEN_SOURCE 6230make an error 6231#endif 6232 ; 6233 return 0; 6234} 6235_ACEOF 6236rm -f conftest.$ac_objext 6237if { (eval echo "$as_me:6237: \"$ac_compile\"") >&5 6238 (eval $ac_compile) 2>&5 6239 ac_status=$? 6240 echo "$as_me:6240: \$? = $ac_status" >&5 6241 (exit $ac_status); } && 6242 { ac_try='test -s conftest.$ac_objext' 6243 { (eval echo "$as_me:6243: \"$ac_try\"") >&5 6244 (eval $ac_try) 2>&5 6245 ac_status=$? 6246 echo "$as_me:6246: \$? = $ac_status" >&5 6247 (exit $ac_status); }; }; then 6248 cf_cv_xopen_source=no 6249else 6250 echo "$as_me: failed program was:" >&5 6251cat conftest.$ac_ext >&5 6252cf_save="$CPPFLAGS" 6253 6254 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6255 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 6256 6257 cat >conftest.$ac_ext <<_ACEOF 6258#line 6258 "configure" 6259#include "confdefs.h" 6260 6261#include <stdlib.h> 6262#include <string.h> 6263#include <sys/types.h> 6264 6265int 6266main (void) 6267{ 6268 6269#ifdef _XOPEN_SOURCE 6270make an error 6271#endif 6272 ; 6273 return 0; 6274} 6275_ACEOF 6276rm -f conftest.$ac_objext 6277if { (eval echo "$as_me:6277: \"$ac_compile\"") >&5 6278 (eval $ac_compile) 2>&5 6279 ac_status=$? 6280 echo "$as_me:6280: \$? = $ac_status" >&5 6281 (exit $ac_status); } && 6282 { ac_try='test -s conftest.$ac_objext' 6283 { (eval echo "$as_me:6283: \"$ac_try\"") >&5 6284 (eval $ac_try) 2>&5 6285 ac_status=$? 6286 echo "$as_me:6286: \$? = $ac_status" >&5 6287 (exit $ac_status); }; }; then 6288 cf_cv_xopen_source=no 6289else 6290 echo "$as_me: failed program was:" >&5 6291cat conftest.$ac_ext >&5 6292cf_cv_xopen_source=$cf_XOPEN_SOURCE 6293fi 6294rm -f conftest.$ac_objext conftest.$ac_ext 6295 CPPFLAGS="$cf_save" 6296 6297fi 6298rm -f conftest.$ac_objext conftest.$ac_ext 6299 6300fi 6301echo "$as_me:6301: result: $cf_cv_xopen_source" >&5 6302echo "${ECHO_T}$cf_cv_xopen_source" >&6 6303 6304if test "$cf_cv_xopen_source" != no ; then 6305 6306CFLAGS=`echo "$CFLAGS" | \ 6307 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 6308 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 6309 6310CPPFLAGS=`echo "$CPPFLAGS" | \ 6311 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 6312 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 6313 6314 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 6315 6316cf_fix_cppflags=no 6317cf_new_cflags= 6318cf_new_cppflags= 6319cf_new_extra_cppflags= 6320 6321for cf_add_cflags in $cf_temp_xopen_source 6322do 6323case $cf_fix_cppflags in 6324(no) 6325 case $cf_add_cflags in 6326 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 6327 case $cf_add_cflags in 6328 (-D*) 6329 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 6330 6331 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 6332 && test -z "${cf_tst_cflags}" \ 6333 && cf_fix_cppflags=yes 6334 6335 if test $cf_fix_cppflags = yes ; then 6336 6337 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6338 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6339 6340 continue 6341 elif test "${cf_tst_cflags}" = "\"'" ; then 6342 6343 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6344 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6345 6346 continue 6347 fi 6348 ;; 6349 esac 6350 case "$CPPFLAGS" in 6351 (*$cf_add_cflags) 6352 ;; 6353 (*) 6354 case $cf_add_cflags in 6355 (-D*) 6356 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 6357 6358CPPFLAGS=`echo "$CPPFLAGS" | \ 6359 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 6360 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 6361 6362 ;; 6363 esac 6364 6365 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 6366 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 6367 6368 ;; 6369 esac 6370 ;; 6371 (*) 6372 6373 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 6374 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 6375 6376 ;; 6377 esac 6378 ;; 6379(yes) 6380 6381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6382 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6383 6384 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 6385 6386 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 6387 && test -z "${cf_tst_cflags}" \ 6388 && cf_fix_cppflags=no 6389 ;; 6390esac 6391done 6392 6393if test -n "$cf_new_cflags" ; then 6394 6395 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 6396 CFLAGS="${CFLAGS}$cf_new_cflags" 6397 6398fi 6399 6400if test -n "$cf_new_cppflags" ; then 6401 6402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6403 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 6404 6405fi 6406 6407if test -n "$cf_new_extra_cppflags" ; then 6408 6409 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 6410 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 6411 6412fi 6413 6414fi 6415 6416 fi 6417fi 6418fi # cf_cv_posix_visible 6419 6420# Check whether --enable-largefile or --disable-largefile was given. 6421if test "${enable_largefile+set}" = set; then 6422 enableval="$enable_largefile" 6423 6424fi; 6425if test "$enable_largefile" != no; then 6426 6427 echo "$as_me:6427: checking for special C compiler options needed for large files" >&5 6428echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 6429if test "${ac_cv_sys_largefile_CC+set}" = set; then 6430 echo $ECHO_N "(cached) $ECHO_C" >&6 6431else 6432 ac_cv_sys_largefile_CC=no 6433 if test "$GCC" != yes; then 6434 ac_save_CC=$CC 6435 while :; do 6436 # IRIX 6.2 and later do not support large files by default, 6437 # so use the C compiler's -n32 option if that helps. 6438 cat >conftest.$ac_ext <<_ACEOF 6439#line 6439 "configure" 6440#include "confdefs.h" 6441#include <sys/types.h> 6442 /* Check that off_t can represent 2**63 - 1 correctly. 6443 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6444 since some C++ compilers masquerading as C compilers 6445 incorrectly reject 9223372036854775807. */ 6446#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6448 && LARGE_OFF_T % 2147483647 == 1) 6449 ? 1 : -1]; 6450int 6451main (void) 6452{ 6453 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458 rm -f conftest.$ac_objext 6459if { (eval echo "$as_me:6459: \"$ac_compile\"") >&5 6460 (eval $ac_compile) 2>&5 6461 ac_status=$? 6462 echo "$as_me:6462: \$? = $ac_status" >&5 6463 (exit $ac_status); } && 6464 { ac_try='test -s conftest.$ac_objext' 6465 { (eval echo "$as_me:6465: \"$ac_try\"") >&5 6466 (eval $ac_try) 2>&5 6467 ac_status=$? 6468 echo "$as_me:6468: \$? = $ac_status" >&5 6469 (exit $ac_status); }; }; then 6470 break 6471else 6472 echo "$as_me: failed program was:" >&5 6473cat conftest.$ac_ext >&5 6474fi 6475rm -f conftest.$ac_objext 6476 CC="$CC -n32" 6477 rm -f conftest.$ac_objext 6478if { (eval echo "$as_me:6478: \"$ac_compile\"") >&5 6479 (eval $ac_compile) 2>&5 6480 ac_status=$? 6481 echo "$as_me:6481: \$? = $ac_status" >&5 6482 (exit $ac_status); } && 6483 { ac_try='test -s conftest.$ac_objext' 6484 { (eval echo "$as_me:6484: \"$ac_try\"") >&5 6485 (eval $ac_try) 2>&5 6486 ac_status=$? 6487 echo "$as_me:6487: \$? = $ac_status" >&5 6488 (exit $ac_status); }; }; then 6489 ac_cv_sys_largefile_CC=' -n32'; break 6490else 6491 echo "$as_me: failed program was:" >&5 6492cat conftest.$ac_ext >&5 6493fi 6494rm -f conftest.$ac_objext 6495 break 6496 done 6497 CC=$ac_save_CC 6498 rm -f conftest.$ac_ext 6499 fi 6500fi 6501echo "$as_me:6501: result: $ac_cv_sys_largefile_CC" >&5 6502echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 6503 if test "$ac_cv_sys_largefile_CC" != no; then 6504 CC=$CC$ac_cv_sys_largefile_CC 6505 fi 6506 6507 echo "$as_me:6507: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6508echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 6509if test "${ac_cv_sys_file_offset_bits+set}" = set; then 6510 echo $ECHO_N "(cached) $ECHO_C" >&6 6511else 6512 while :; do 6513 ac_cv_sys_file_offset_bits=no 6514 cat >conftest.$ac_ext <<_ACEOF 6515#line 6515 "configure" 6516#include "confdefs.h" 6517#include <sys/types.h> 6518 /* Check that off_t can represent 2**63 - 1 correctly. 6519 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6520 since some C++ compilers masquerading as C compilers 6521 incorrectly reject 9223372036854775807. */ 6522#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6524 && LARGE_OFF_T % 2147483647 == 1) 6525 ? 1 : -1]; 6526int 6527main (void) 6528{ 6529 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534rm -f conftest.$ac_objext 6535if { (eval echo "$as_me:6535: \"$ac_compile\"") >&5 6536 (eval $ac_compile) 2>&5 6537 ac_status=$? 6538 echo "$as_me:6538: \$? = $ac_status" >&5 6539 (exit $ac_status); } && 6540 { ac_try='test -s conftest.$ac_objext' 6541 { (eval echo "$as_me:6541: \"$ac_try\"") >&5 6542 (eval $ac_try) 2>&5 6543 ac_status=$? 6544 echo "$as_me:6544: \$? = $ac_status" >&5 6545 (exit $ac_status); }; }; then 6546 break 6547else 6548 echo "$as_me: failed program was:" >&5 6549cat conftest.$ac_ext >&5 6550fi 6551rm -f conftest.$ac_objext conftest.$ac_ext 6552 cat >conftest.$ac_ext <<_ACEOF 6553#line 6553 "configure" 6554#include "confdefs.h" 6555#define _FILE_OFFSET_BITS 64 6556#include <sys/types.h> 6557 /* Check that off_t can represent 2**63 - 1 correctly. 6558 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6559 since some C++ compilers masquerading as C compilers 6560 incorrectly reject 9223372036854775807. */ 6561#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6563 && LARGE_OFF_T % 2147483647 == 1) 6564 ? 1 : -1]; 6565int 6566main (void) 6567{ 6568 6569 ; 6570 return 0; 6571} 6572_ACEOF 6573rm -f conftest.$ac_objext 6574if { (eval echo "$as_me:6574: \"$ac_compile\"") >&5 6575 (eval $ac_compile) 2>&5 6576 ac_status=$? 6577 echo "$as_me:6577: \$? = $ac_status" >&5 6578 (exit $ac_status); } && 6579 { ac_try='test -s conftest.$ac_objext' 6580 { (eval echo "$as_me:6580: \"$ac_try\"") >&5 6581 (eval $ac_try) 2>&5 6582 ac_status=$? 6583 echo "$as_me:6583: \$? = $ac_status" >&5 6584 (exit $ac_status); }; }; then 6585 ac_cv_sys_file_offset_bits=64; break 6586else 6587 echo "$as_me: failed program was:" >&5 6588cat conftest.$ac_ext >&5 6589fi 6590rm -f conftest.$ac_objext conftest.$ac_ext 6591 break 6592done 6593fi 6594echo "$as_me:6594: result: $ac_cv_sys_file_offset_bits" >&5 6595echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 6596if test "$ac_cv_sys_file_offset_bits" != no; then 6597 6598cat >>confdefs.h <<EOF 6599#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6600EOF 6601 6602fi 6603rm -rf conftest* 6604 echo "$as_me:6604: checking for _LARGE_FILES value needed for large files" >&5 6605echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 6606if test "${ac_cv_sys_large_files+set}" = set; then 6607 echo $ECHO_N "(cached) $ECHO_C" >&6 6608else 6609 while :; do 6610 ac_cv_sys_large_files=no 6611 cat >conftest.$ac_ext <<_ACEOF 6612#line 6612 "configure" 6613#include "confdefs.h" 6614#include <sys/types.h> 6615 /* Check that off_t can represent 2**63 - 1 correctly. 6616 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6617 since some C++ compilers masquerading as C compilers 6618 incorrectly reject 9223372036854775807. */ 6619#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6621 && LARGE_OFF_T % 2147483647 == 1) 6622 ? 1 : -1]; 6623int 6624main (void) 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631rm -f conftest.$ac_objext 6632if { (eval echo "$as_me:6632: \"$ac_compile\"") >&5 6633 (eval $ac_compile) 2>&5 6634 ac_status=$? 6635 echo "$as_me:6635: \$? = $ac_status" >&5 6636 (exit $ac_status); } && 6637 { ac_try='test -s conftest.$ac_objext' 6638 { (eval echo "$as_me:6638: \"$ac_try\"") >&5 6639 (eval $ac_try) 2>&5 6640 ac_status=$? 6641 echo "$as_me:6641: \$? = $ac_status" >&5 6642 (exit $ac_status); }; }; then 6643 break 6644else 6645 echo "$as_me: failed program was:" >&5 6646cat conftest.$ac_ext >&5 6647fi 6648rm -f conftest.$ac_objext conftest.$ac_ext 6649 cat >conftest.$ac_ext <<_ACEOF 6650#line 6650 "configure" 6651#include "confdefs.h" 6652#define _LARGE_FILES 1 6653#include <sys/types.h> 6654 /* Check that off_t can represent 2**63 - 1 correctly. 6655 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6656 since some C++ compilers masquerading as C compilers 6657 incorrectly reject 9223372036854775807. */ 6658#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6660 && LARGE_OFF_T % 2147483647 == 1) 6661 ? 1 : -1]; 6662int 6663main (void) 6664{ 6665 6666 ; 6667 return 0; 6668} 6669_ACEOF 6670rm -f conftest.$ac_objext 6671if { (eval echo "$as_me:6671: \"$ac_compile\"") >&5 6672 (eval $ac_compile) 2>&5 6673 ac_status=$? 6674 echo "$as_me:6674: \$? = $ac_status" >&5 6675 (exit $ac_status); } && 6676 { ac_try='test -s conftest.$ac_objext' 6677 { (eval echo "$as_me:6677: \"$ac_try\"") >&5 6678 (eval $ac_try) 2>&5 6679 ac_status=$? 6680 echo "$as_me:6680: \$? = $ac_status" >&5 6681 (exit $ac_status); }; }; then 6682 ac_cv_sys_large_files=1; break 6683else 6684 echo "$as_me: failed program was:" >&5 6685cat conftest.$ac_ext >&5 6686fi 6687rm -f conftest.$ac_objext conftest.$ac_ext 6688 break 6689done 6690fi 6691echo "$as_me:6691: result: $ac_cv_sys_large_files" >&5 6692echo "${ECHO_T}$ac_cv_sys_large_files" >&6 6693if test "$ac_cv_sys_large_files" != no; then 6694 6695cat >>confdefs.h <<EOF 6696#define _LARGE_FILES $ac_cv_sys_large_files 6697EOF 6698 6699fi 6700rm -rf conftest* 6701fi 6702 6703 if test "$enable_largefile" != no ; then 6704 echo "$as_me:6704: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6705echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 6706if test "${ac_cv_sys_largefile_source+set}" = set; then 6707 echo $ECHO_N "(cached) $ECHO_C" >&6 6708else 6709 while :; do 6710 ac_cv_sys_largefile_source=no 6711 cat >conftest.$ac_ext <<_ACEOF 6712#line 6712 "configure" 6713#include "confdefs.h" 6714#include <stdio.h> 6715int 6716main (void) 6717{ 6718return !fseeko; 6719 ; 6720 return 0; 6721} 6722_ACEOF 6723rm -f conftest.$ac_objext 6724if { (eval echo "$as_me:6724: \"$ac_compile\"") >&5 6725 (eval $ac_compile) 2>&5 6726 ac_status=$? 6727 echo "$as_me:6727: \$? = $ac_status" >&5 6728 (exit $ac_status); } && 6729 { ac_try='test -s conftest.$ac_objext' 6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5 6731 (eval $ac_try) 2>&5 6732 ac_status=$? 6733 echo "$as_me:6733: \$? = $ac_status" >&5 6734 (exit $ac_status); }; }; then 6735 break 6736else 6737 echo "$as_me: failed program was:" >&5 6738cat conftest.$ac_ext >&5 6739fi 6740rm -f conftest.$ac_objext conftest.$ac_ext 6741 cat >conftest.$ac_ext <<_ACEOF 6742#line 6742 "configure" 6743#include "confdefs.h" 6744#define _LARGEFILE_SOURCE 1 6745#include <stdio.h> 6746int 6747main (void) 6748{ 6749return !fseeko; 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754rm -f conftest.$ac_objext 6755if { (eval echo "$as_me:6755: \"$ac_compile\"") >&5 6756 (eval $ac_compile) 2>&5 6757 ac_status=$? 6758 echo "$as_me:6758: \$? = $ac_status" >&5 6759 (exit $ac_status); } && 6760 { ac_try='test -s conftest.$ac_objext' 6761 { (eval echo "$as_me:6761: \"$ac_try\"") >&5 6762 (eval $ac_try) 2>&5 6763 ac_status=$? 6764 echo "$as_me:6764: \$? = $ac_status" >&5 6765 (exit $ac_status); }; }; then 6766 ac_cv_sys_largefile_source=1; break 6767else 6768 echo "$as_me: failed program was:" >&5 6769cat conftest.$ac_ext >&5 6770fi 6771rm -f conftest.$ac_objext conftest.$ac_ext 6772 break 6773done 6774fi 6775echo "$as_me:6775: result: $ac_cv_sys_largefile_source" >&5 6776echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 6777if test "$ac_cv_sys_largefile_source" != no; then 6778 6779cat >>confdefs.h <<EOF 6780#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6781EOF 6782 6783fi 6784rm -rf conftest* 6785 6786# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6787# in glibc 2.1.3, but that breaks too many other things. 6788# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6789echo "$as_me:6789: checking for fseeko" >&5 6790echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 6791if test "${ac_cv_func_fseeko+set}" = set; then 6792 echo $ECHO_N "(cached) $ECHO_C" >&6 6793else 6794 cat >conftest.$ac_ext <<_ACEOF 6795#line 6795 "configure" 6796#include "confdefs.h" 6797#include <stdio.h> 6798int 6799main (void) 6800{ 6801return fseeko && fseeko (stdin, 0, 0); 6802 ; 6803 return 0; 6804} 6805_ACEOF 6806rm -f conftest.$ac_objext conftest$ac_exeext 6807if { (eval echo "$as_me:6807: \"$ac_link\"") >&5 6808 (eval $ac_link) 2>&5 6809 ac_status=$? 6810 echo "$as_me:6810: \$? = $ac_status" >&5 6811 (exit $ac_status); } && 6812 { ac_try='test -s conftest$ac_exeext' 6813 { (eval echo "$as_me:6813: \"$ac_try\"") >&5 6814 (eval $ac_try) 2>&5 6815 ac_status=$? 6816 echo "$as_me:6816: \$? = $ac_status" >&5 6817 (exit $ac_status); }; }; then 6818 ac_cv_func_fseeko=yes 6819else 6820 echo "$as_me: failed program was:" >&5 6821cat conftest.$ac_ext >&5 6822ac_cv_func_fseeko=no 6823fi 6824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6825fi 6826echo "$as_me:6826: result: $ac_cv_func_fseeko" >&5 6827echo "${ECHO_T}$ac_cv_func_fseeko" >&6 6828if test $ac_cv_func_fseeko = yes; then 6829 6830cat >>confdefs.h <<\EOF 6831#define HAVE_FSEEKO 1 6832EOF 6833 6834fi 6835 6836 # Normally we would collect these definitions in the config.h, 6837 # but (like _XOPEN_SOURCE), some environments rely on having these 6838 # defined before any of the system headers are included. Another 6839 # case comes up with C++, e.g., on AIX the compiler compiles the 6840 # header files by themselves before looking at the body files it is 6841 # told to compile. For ncurses, those header files do not include 6842 # the config.h 6843 if test "$ac_cv_sys_large_files" != no 6844 then 6845 6846 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6847 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES" 6848 6849 fi 6850 if test "$ac_cv_sys_largefile_source" != no 6851 then 6852 6853 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6854 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE" 6855 6856 fi 6857 if test "$ac_cv_sys_file_offset_bits" != no 6858 then 6859 6860 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 6861 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 6862 6863 fi 6864 6865 echo "$as_me:6865: checking whether to use struct dirent64" >&5 6866echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6 6867if test "${cf_cv_struct_dirent64+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869else 6870 6871 cat >conftest.$ac_ext <<_ACEOF 6872#line 6872 "configure" 6873#include "confdefs.h" 6874 6875#pragma GCC diagnostic error "-Wincompatible-pointer-types" 6876#include <sys/types.h> 6877#include <dirent.h> 6878 6879int 6880main (void) 6881{ 6882 6883 /* if transitional largefile support is setup, this is true */ 6884 extern struct dirent64 * readdir(DIR *); 6885 struct dirent64 *x = readdir((DIR *)0); 6886 struct dirent *y = readdir((DIR *)0); 6887 int z = x - y; 6888 6889 ; 6890 return 0; 6891} 6892_ACEOF 6893rm -f conftest.$ac_objext 6894if { (eval echo "$as_me:6894: \"$ac_compile\"") >&5 6895 (eval $ac_compile) 2>&5 6896 ac_status=$? 6897 echo "$as_me:6897: \$? = $ac_status" >&5 6898 (exit $ac_status); } && 6899 { ac_try='test -s conftest.$ac_objext' 6900 { (eval echo "$as_me:6900: \"$ac_try\"") >&5 6901 (eval $ac_try) 2>&5 6902 ac_status=$? 6903 echo "$as_me:6903: \$? = $ac_status" >&5 6904 (exit $ac_status); }; }; then 6905 cf_cv_struct_dirent64=yes 6906else 6907 echo "$as_me: failed program was:" >&5 6908cat conftest.$ac_ext >&5 6909cf_cv_struct_dirent64=no 6910fi 6911rm -f conftest.$ac_objext conftest.$ac_ext 6912 6913fi 6914echo "$as_me:6914: result: $cf_cv_struct_dirent64" >&5 6915echo "${ECHO_T}$cf_cv_struct_dirent64" >&6 6916 test "$cf_cv_struct_dirent64" = yes && 6917cat >>confdefs.h <<\EOF 6918#define HAVE_STRUCT_DIRENT64 1 6919EOF 6920 6921 fi 6922 6923echo "$as_me:6923: checking if you want to use dmalloc for testing" >&5 6924echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 6925 6926# Check whether --with-dmalloc or --without-dmalloc was given. 6927if test "${with_dmalloc+set}" = set; then 6928 withval="$with_dmalloc" 6929 6930cat >>confdefs.h <<EOF 6931#define USE_DMALLOC 1 6932EOF 6933 6934 : ${with_cflags:=-g} 6935 : ${with_no_leaks:=yes} 6936 with_dmalloc=yes 6937else 6938 with_dmalloc= 6939fi; 6940echo "$as_me:6940: result: ${with_dmalloc:-no}" >&5 6941echo "${ECHO_T}${with_dmalloc:-no}" >&6 6942 6943case .$with_cflags in 6944(.*-g*) 6945 case .$CFLAGS in 6946 (.*-g*) 6947 ;; 6948 (*) 6949 6950cf_fix_cppflags=no 6951cf_new_cflags= 6952cf_new_cppflags= 6953cf_new_extra_cppflags= 6954 6955for cf_add_cflags in -g 6956do 6957case $cf_fix_cppflags in 6958(no) 6959 case $cf_add_cflags in 6960 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 6961 case $cf_add_cflags in 6962 (-D*) 6963 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 6964 6965 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 6966 && test -z "${cf_tst_cflags}" \ 6967 && cf_fix_cppflags=yes 6968 6969 if test $cf_fix_cppflags = yes ; then 6970 6971 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6972 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6973 6974 continue 6975 elif test "${cf_tst_cflags}" = "\"'" ; then 6976 6977 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 6978 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 6979 6980 continue 6981 fi 6982 ;; 6983 esac 6984 case "$CPPFLAGS" in 6985 (*$cf_add_cflags) 6986 ;; 6987 (*) 6988 case $cf_add_cflags in 6989 (-D*) 6990 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 6991 6992CPPFLAGS=`echo "$CPPFLAGS" | \ 6993 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 6994 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 6995 6996 ;; 6997 esac 6998 6999 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 7000 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 7001 7002 ;; 7003 esac 7004 ;; 7005 (*) 7006 7007 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 7008 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 7009 7010 ;; 7011 esac 7012 ;; 7013(yes) 7014 7015 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7016 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7017 7018 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7019 7020 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7021 && test -z "${cf_tst_cflags}" \ 7022 && cf_fix_cppflags=no 7023 ;; 7024esac 7025done 7026 7027if test -n "$cf_new_cflags" ; then 7028 7029 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 7030 CFLAGS="${CFLAGS}$cf_new_cflags" 7031 7032fi 7033 7034if test -n "$cf_new_cppflags" ; then 7035 7036 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 7037 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 7038 7039fi 7040 7041if test -n "$cf_new_extra_cppflags" ; then 7042 7043 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 7044 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 7045 7046fi 7047 7048 ;; 7049 esac 7050 ;; 7051esac 7052 7053if test "$with_dmalloc" = yes ; then 7054 echo "$as_me:7054: checking for dmalloc.h" >&5 7055echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 7056if test "${ac_cv_header_dmalloc_h+set}" = set; then 7057 echo $ECHO_N "(cached) $ECHO_C" >&6 7058else 7059 cat >conftest.$ac_ext <<_ACEOF 7060#line 7060 "configure" 7061#include "confdefs.h" 7062#include <dmalloc.h> 7063_ACEOF 7064if { (eval echo "$as_me:7064: \"$ac_cpp conftest.$ac_ext\"") >&5 7065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7066 ac_status=$? 7067 egrep -v '^ *\+' conftest.er1 >conftest.err 7068 rm -f conftest.er1 7069 cat conftest.err >&5 7070 echo "$as_me:7070: \$? = $ac_status" >&5 7071 (exit $ac_status); } >/dev/null; then 7072 if test -s conftest.err; then 7073 ac_cpp_err=$ac_c_preproc_warn_flag 7074 else 7075 ac_cpp_err= 7076 fi 7077else 7078 ac_cpp_err=yes 7079fi 7080if test -z "$ac_cpp_err"; then 7081 ac_cv_header_dmalloc_h=yes 7082else 7083 echo "$as_me: failed program was:" >&5 7084 cat conftest.$ac_ext >&5 7085 ac_cv_header_dmalloc_h=no 7086fi 7087rm -f conftest.err conftest.$ac_ext 7088fi 7089echo "$as_me:7089: result: $ac_cv_header_dmalloc_h" >&5 7090echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 7091if test $ac_cv_header_dmalloc_h = yes; then 7092 7093echo "$as_me:7093: checking for dmalloc_debug in -ldmalloc" >&5 7094echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 7095if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 7096 echo $ECHO_N "(cached) $ECHO_C" >&6 7097else 7098 ac_check_lib_save_LIBS=$LIBS 7099LIBS="-ldmalloc $LIBS" 7100cat >conftest.$ac_ext <<_ACEOF 7101#line 7101 "configure" 7102#include "confdefs.h" 7103 7104/* Override any gcc2 internal prototype to avoid an error. */ 7105#ifdef __cplusplus 7106extern "C" 7107#endif 7108/* We use char because int might match the return type of a gcc2 7109 builtin and then its argument prototype would still apply. */ 7110char dmalloc_debug (); 7111int 7112main (void) 7113{ 7114dmalloc_debug (); 7115 ; 7116 return 0; 7117} 7118_ACEOF 7119rm -f conftest.$ac_objext conftest$ac_exeext 7120if { (eval echo "$as_me:7120: \"$ac_link\"") >&5 7121 (eval $ac_link) 2>&5 7122 ac_status=$? 7123 echo "$as_me:7123: \$? = $ac_status" >&5 7124 (exit $ac_status); } && 7125 { ac_try='test -s conftest$ac_exeext' 7126 { (eval echo "$as_me:7126: \"$ac_try\"") >&5 7127 (eval $ac_try) 2>&5 7128 ac_status=$? 7129 echo "$as_me:7129: \$? = $ac_status" >&5 7130 (exit $ac_status); }; }; then 7131 ac_cv_lib_dmalloc_dmalloc_debug=yes 7132else 7133 echo "$as_me: failed program was:" >&5 7134cat conftest.$ac_ext >&5 7135ac_cv_lib_dmalloc_dmalloc_debug=no 7136fi 7137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7138LIBS=$ac_check_lib_save_LIBS 7139fi 7140echo "$as_me:7140: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 7141echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 7142if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 7143 cat >>confdefs.h <<EOF 7144#define HAVE_LIBDMALLOC 1 7145EOF 7146 7147 LIBS="-ldmalloc $LIBS" 7148 7149fi 7150 7151fi 7152 7153fi 7154 7155echo "$as_me:7155: checking if you want to use dbmalloc for testing" >&5 7156echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 7157 7158# Check whether --with-dbmalloc or --without-dbmalloc was given. 7159if test "${with_dbmalloc+set}" = set; then 7160 withval="$with_dbmalloc" 7161 7162cat >>confdefs.h <<EOF 7163#define USE_DBMALLOC 1 7164EOF 7165 7166 : ${with_cflags:=-g} 7167 : ${with_no_leaks:=yes} 7168 with_dbmalloc=yes 7169else 7170 with_dbmalloc= 7171fi; 7172echo "$as_me:7172: result: ${with_dbmalloc:-no}" >&5 7173echo "${ECHO_T}${with_dbmalloc:-no}" >&6 7174 7175case .$with_cflags in 7176(.*-g*) 7177 case .$CFLAGS in 7178 (.*-g*) 7179 ;; 7180 (*) 7181 7182cf_fix_cppflags=no 7183cf_new_cflags= 7184cf_new_cppflags= 7185cf_new_extra_cppflags= 7186 7187for cf_add_cflags in -g 7188do 7189case $cf_fix_cppflags in 7190(no) 7191 case $cf_add_cflags in 7192 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 7193 case $cf_add_cflags in 7194 (-D*) 7195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7196 7197 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7198 && test -z "${cf_tst_cflags}" \ 7199 && cf_fix_cppflags=yes 7200 7201 if test $cf_fix_cppflags = yes ; then 7202 7203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7205 7206 continue 7207 elif test "${cf_tst_cflags}" = "\"'" ; then 7208 7209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7211 7212 continue 7213 fi 7214 ;; 7215 esac 7216 case "$CPPFLAGS" in 7217 (*$cf_add_cflags) 7218 ;; 7219 (*) 7220 case $cf_add_cflags in 7221 (-D*) 7222 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7223 7224CPPFLAGS=`echo "$CPPFLAGS" | \ 7225 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7226 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7227 7228 ;; 7229 esac 7230 7231 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 7232 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 7233 7234 ;; 7235 esac 7236 ;; 7237 (*) 7238 7239 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 7240 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 7241 7242 ;; 7243 esac 7244 ;; 7245(yes) 7246 7247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7249 7250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7251 7252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7253 && test -z "${cf_tst_cflags}" \ 7254 && cf_fix_cppflags=no 7255 ;; 7256esac 7257done 7258 7259if test -n "$cf_new_cflags" ; then 7260 7261 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 7262 CFLAGS="${CFLAGS}$cf_new_cflags" 7263 7264fi 7265 7266if test -n "$cf_new_cppflags" ; then 7267 7268 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 7269 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 7270 7271fi 7272 7273if test -n "$cf_new_extra_cppflags" ; then 7274 7275 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 7276 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 7277 7278fi 7279 7280 ;; 7281 esac 7282 ;; 7283esac 7284 7285if test "$with_dbmalloc" = yes ; then 7286 echo "$as_me:7286: checking for dbmalloc.h" >&5 7287echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 7288if test "${ac_cv_header_dbmalloc_h+set}" = set; then 7289 echo $ECHO_N "(cached) $ECHO_C" >&6 7290else 7291 cat >conftest.$ac_ext <<_ACEOF 7292#line 7292 "configure" 7293#include "confdefs.h" 7294#include <dbmalloc.h> 7295_ACEOF 7296if { (eval echo "$as_me:7296: \"$ac_cpp conftest.$ac_ext\"") >&5 7297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7298 ac_status=$? 7299 egrep -v '^ *\+' conftest.er1 >conftest.err 7300 rm -f conftest.er1 7301 cat conftest.err >&5 7302 echo "$as_me:7302: \$? = $ac_status" >&5 7303 (exit $ac_status); } >/dev/null; then 7304 if test -s conftest.err; then 7305 ac_cpp_err=$ac_c_preproc_warn_flag 7306 else 7307 ac_cpp_err= 7308 fi 7309else 7310 ac_cpp_err=yes 7311fi 7312if test -z "$ac_cpp_err"; then 7313 ac_cv_header_dbmalloc_h=yes 7314else 7315 echo "$as_me: failed program was:" >&5 7316 cat conftest.$ac_ext >&5 7317 ac_cv_header_dbmalloc_h=no 7318fi 7319rm -f conftest.err conftest.$ac_ext 7320fi 7321echo "$as_me:7321: result: $ac_cv_header_dbmalloc_h" >&5 7322echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 7323if test $ac_cv_header_dbmalloc_h = yes; then 7324 7325echo "$as_me:7325: checking for debug_malloc in -ldbmalloc" >&5 7326echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 7327if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 7328 echo $ECHO_N "(cached) $ECHO_C" >&6 7329else 7330 ac_check_lib_save_LIBS=$LIBS 7331LIBS="-ldbmalloc $LIBS" 7332cat >conftest.$ac_ext <<_ACEOF 7333#line 7333 "configure" 7334#include "confdefs.h" 7335 7336/* Override any gcc2 internal prototype to avoid an error. */ 7337#ifdef __cplusplus 7338extern "C" 7339#endif 7340/* We use char because int might match the return type of a gcc2 7341 builtin and then its argument prototype would still apply. */ 7342char debug_malloc (); 7343int 7344main (void) 7345{ 7346debug_malloc (); 7347 ; 7348 return 0; 7349} 7350_ACEOF 7351rm -f conftest.$ac_objext conftest$ac_exeext 7352if { (eval echo "$as_me:7352: \"$ac_link\"") >&5 7353 (eval $ac_link) 2>&5 7354 ac_status=$? 7355 echo "$as_me:7355: \$? = $ac_status" >&5 7356 (exit $ac_status); } && 7357 { ac_try='test -s conftest$ac_exeext' 7358 { (eval echo "$as_me:7358: \"$ac_try\"") >&5 7359 (eval $ac_try) 2>&5 7360 ac_status=$? 7361 echo "$as_me:7361: \$? = $ac_status" >&5 7362 (exit $ac_status); }; }; then 7363 ac_cv_lib_dbmalloc_debug_malloc=yes 7364else 7365 echo "$as_me: failed program was:" >&5 7366cat conftest.$ac_ext >&5 7367ac_cv_lib_dbmalloc_debug_malloc=no 7368fi 7369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7370LIBS=$ac_check_lib_save_LIBS 7371fi 7372echo "$as_me:7372: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 7373echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 7374if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 7375 cat >>confdefs.h <<EOF 7376#define HAVE_LIBDBMALLOC 1 7377EOF 7378 7379 LIBS="-ldbmalloc $LIBS" 7380 7381fi 7382 7383fi 7384 7385fi 7386 7387echo "$as_me:7387: checking if you want to use valgrind for testing" >&5 7388echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 7389 7390# Check whether --with-valgrind or --without-valgrind was given. 7391if test "${with_valgrind+set}" = set; then 7392 withval="$with_valgrind" 7393 7394cat >>confdefs.h <<EOF 7395#define USE_VALGRIND 1 7396EOF 7397 7398 : ${with_cflags:=-g} 7399 : ${with_no_leaks:=yes} 7400 with_valgrind=yes 7401else 7402 with_valgrind= 7403fi; 7404echo "$as_me:7404: result: ${with_valgrind:-no}" >&5 7405echo "${ECHO_T}${with_valgrind:-no}" >&6 7406 7407case .$with_cflags in 7408(.*-g*) 7409 case .$CFLAGS in 7410 (.*-g*) 7411 ;; 7412 (*) 7413 7414cf_fix_cppflags=no 7415cf_new_cflags= 7416cf_new_cppflags= 7417cf_new_extra_cppflags= 7418 7419for cf_add_cflags in -g 7420do 7421case $cf_fix_cppflags in 7422(no) 7423 case $cf_add_cflags in 7424 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 7425 case $cf_add_cflags in 7426 (-D*) 7427 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 7428 7429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7430 && test -z "${cf_tst_cflags}" \ 7431 && cf_fix_cppflags=yes 7432 7433 if test $cf_fix_cppflags = yes ; then 7434 7435 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7436 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7437 7438 continue 7439 elif test "${cf_tst_cflags}" = "\"'" ; then 7440 7441 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7442 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7443 7444 continue 7445 fi 7446 ;; 7447 esac 7448 case "$CPPFLAGS" in 7449 (*$cf_add_cflags) 7450 ;; 7451 (*) 7452 case $cf_add_cflags in 7453 (-D*) 7454 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 7455 7456CPPFLAGS=`echo "$CPPFLAGS" | \ 7457 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 7458 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 7459 7460 ;; 7461 esac 7462 7463 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags " 7464 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags" 7465 7466 ;; 7467 esac 7468 ;; 7469 (*) 7470 7471 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags " 7472 cf_new_cflags="${cf_new_cflags}$cf_add_cflags" 7473 7474 ;; 7475 esac 7476 ;; 7477(yes) 7478 7479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags " 7480 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags" 7481 7482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 7483 7484 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 7485 && test -z "${cf_tst_cflags}" \ 7486 && cf_fix_cppflags=no 7487 ;; 7488esac 7489done 7490 7491if test -n "$cf_new_cflags" ; then 7492 7493 test -n "$CFLAGS" && CFLAGS="$CFLAGS " 7494 CFLAGS="${CFLAGS}$cf_new_cflags" 7495 7496fi 7497 7498if test -n "$cf_new_cppflags" ; then 7499 7500 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " 7501 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" 7502 7503fi 7504 7505if test -n "$cf_new_extra_cppflags" ; then 7506 7507 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " 7508 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" 7509 7510fi 7511 7512 ;; 7513 esac 7514 ;; 7515esac 7516 7517echo "$as_me:7517: checking if you want to perform memory-leak testing" >&5 7518echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 7519 7520# Check whether --enable-leaks or --disable-leaks was given. 7521if test "${enable_leaks+set}" = set; then 7522 enableval="$enable_leaks" 7523 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 7524else 7525 : ${with_no_leaks:=no} 7526fi; 7527echo "$as_me:7527: result: $with_no_leaks" >&5 7528echo "${ECHO_T}$with_no_leaks" >&6 7529 7530if test "$with_no_leaks" = yes ; then 7531 7532cat >>confdefs.h <<\EOF 7533#define NO_LEAKS 1 7534EOF 7535 7536cat >>confdefs.h <<\EOF 7537#define YY_NO_LEAKS 1 7538EOF 7539 7540fi 7541 7542echo "$as_me:7542: checking if you want to enable debugging trace" >&5 7543echo $ECHO_N "checking if you want to enable debugging trace... $ECHO_C" >&6 7544 7545# Check whether --enable-trace or --disable-trace was given. 7546if test "${enable_trace+set}" = set; then 7547 enableval="$enable_trace" 7548 test "$enableval" != yes && enableval=no 7549 if test "$enableval" != "no" ; then 7550 with_trace=yes 7551 else 7552 with_trace=no 7553 fi 7554else 7555 enableval=no 7556 with_trace=no 7557 7558fi; 7559echo "$as_me:7559: result: $with_trace" >&5 7560echo "${ECHO_T}$with_trace" >&6 7561if test "$with_trace" = "yes" 7562then 7563 7564cat >>confdefs.h <<\EOF 7565#define OPT_TRACE 1 7566EOF 7567 7568fi 7569 7570if test "x$with_trace" = xyes 7571then 7572 EXTRAOBJS="$EXTRAOBJS trace\$o" 7573fi 7574 7575if test "x$cf_mawk_check_size_t" != xyes ; then 7576 7577if test "${cf_cv_size_t_SIZE_T_STDDEF_H+set}" = set; then 7578 echo $ECHO_N "(cached) $ECHO_C" >&6 7579else 7580 7581 echo "$as_me:7581: checking for stddef.h" >&5 7582echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 7583if test "${ac_cv_header_stddef_h+set}" = set; then 7584 echo $ECHO_N "(cached) $ECHO_C" >&6 7585else 7586 cat >conftest.$ac_ext <<_ACEOF 7587#line 7587 "configure" 7588#include "confdefs.h" 7589#include <stddef.h> 7590_ACEOF 7591if { (eval echo "$as_me:7591: \"$ac_cpp conftest.$ac_ext\"") >&5 7592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7593 ac_status=$? 7594 egrep -v '^ *\+' conftest.er1 >conftest.err 7595 rm -f conftest.er1 7596 cat conftest.err >&5 7597 echo "$as_me:7597: \$? = $ac_status" >&5 7598 (exit $ac_status); } >/dev/null; then 7599 if test -s conftest.err; then 7600 ac_cpp_err=$ac_c_preproc_warn_flag 7601 else 7602 ac_cpp_err= 7603 fi 7604else 7605 ac_cpp_err=yes 7606fi 7607if test -z "$ac_cpp_err"; then 7608 ac_cv_header_stddef_h=yes 7609else 7610 echo "$as_me: failed program was:" >&5 7611 cat conftest.$ac_ext >&5 7612 ac_cv_header_stddef_h=no 7613fi 7614rm -f conftest.err conftest.$ac_ext 7615fi 7616echo "$as_me:7616: result: $ac_cv_header_stddef_h" >&5 7617echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 7618if test $ac_cv_header_stddef_h = yes; then 7619 cf_mawk_check_size=ok 7620fi 7621 7622 if test "x$cf_mawk_check_size" = xok ; then 7623 echo "$as_me:7623: checking if size_t is declared in stddef.h" >&5 7624echo $ECHO_N "checking if size_t is declared in stddef.h... $ECHO_C" >&6 7625if test "${cf_cv_size_t_SIZE_T_STDDEF_H+set}" = set; then 7626 echo $ECHO_N "(cached) $ECHO_C" >&6 7627else 7628 7629 cat >conftest.$ac_ext <<_ACEOF 7630#line 7630 "configure" 7631#include "confdefs.h" 7632#include <stddef.h> 7633int 7634main (void) 7635{ 7636size_t *n 7637 ; 7638 return 0; 7639} 7640_ACEOF 7641rm -f conftest.$ac_objext 7642if { (eval echo "$as_me:7642: \"$ac_compile\"") >&5 7643 (eval $ac_compile) 2>&5 7644 ac_status=$? 7645 echo "$as_me:7645: \$? = $ac_status" >&5 7646 (exit $ac_status); } && 7647 { ac_try='test -s conftest.$ac_objext' 7648 { (eval echo "$as_me:7648: \"$ac_try\"") >&5 7649 (eval $ac_try) 2>&5 7650 ac_status=$? 7651 echo "$as_me:7651: \$? = $ac_status" >&5 7652 (exit $ac_status); }; }; then 7653 cf_cv_size_t_SIZE_T_STDDEF_H=yes 7654else 7655 echo "$as_me: failed program was:" >&5 7656cat conftest.$ac_ext >&5 7657cf_cv_size_t_SIZE_T_STDDEF_H=no 7658fi 7659rm -f conftest.$ac_objext conftest.$ac_ext 7660fi 7661echo "$as_me:7661: result: $cf_cv_size_t_SIZE_T_STDDEF_H" >&5 7662echo "${ECHO_T}$cf_cv_size_t_SIZE_T_STDDEF_H" >&6 7663 fi 7664 7665fi 7666 7667 if test "x$cf_cv_size_t_SIZE_T_STDDEF_H" = xyes ; then 7668 7669cat >>confdefs.h <<EOF 7670#define SIZE_T_STDDEF_H 1 7671EOF 7672 7673 cf_mawk_check_size_t=yes 7674 fi 7675fi 7676 7677if test "x$cf_mawk_check_size_t" != xyes ; then 7678 7679if test "${cf_cv_size_t_SIZE_T_TYPES_H+set}" = set; then 7680 echo $ECHO_N "(cached) $ECHO_C" >&6 7681else 7682 7683 echo "$as_me:7683: checking for sys/types.h" >&5 7684echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 7685if test "${ac_cv_header_sys_types_h+set}" = set; then 7686 echo $ECHO_N "(cached) $ECHO_C" >&6 7687else 7688 cat >conftest.$ac_ext <<_ACEOF 7689#line 7689 "configure" 7690#include "confdefs.h" 7691#include <sys/types.h> 7692_ACEOF 7693if { (eval echo "$as_me:7693: \"$ac_cpp conftest.$ac_ext\"") >&5 7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7695 ac_status=$? 7696 egrep -v '^ *\+' conftest.er1 >conftest.err 7697 rm -f conftest.er1 7698 cat conftest.err >&5 7699 echo "$as_me:7699: \$? = $ac_status" >&5 7700 (exit $ac_status); } >/dev/null; then 7701 if test -s conftest.err; then 7702 ac_cpp_err=$ac_c_preproc_warn_flag 7703 else 7704 ac_cpp_err= 7705 fi 7706else 7707 ac_cpp_err=yes 7708fi 7709if test -z "$ac_cpp_err"; then 7710 ac_cv_header_sys_types_h=yes 7711else 7712 echo "$as_me: failed program was:" >&5 7713 cat conftest.$ac_ext >&5 7714 ac_cv_header_sys_types_h=no 7715fi 7716rm -f conftest.err conftest.$ac_ext 7717fi 7718echo "$as_me:7718: result: $ac_cv_header_sys_types_h" >&5 7719echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 7720if test $ac_cv_header_sys_types_h = yes; then 7721 cf_mawk_check_size=ok 7722fi 7723 7724 if test "x$cf_mawk_check_size" = xok ; then 7725 echo "$as_me:7725: checking if size_t is declared in sys/types.h" >&5 7726echo $ECHO_N "checking if size_t is declared in sys/types.h... $ECHO_C" >&6 7727if test "${cf_cv_size_t_SIZE_T_TYPES_H+set}" = set; then 7728 echo $ECHO_N "(cached) $ECHO_C" >&6 7729else 7730 7731 cat >conftest.$ac_ext <<_ACEOF 7732#line 7732 "configure" 7733#include "confdefs.h" 7734#include <sys/types.h> 7735int 7736main (void) 7737{ 7738size_t *n 7739 ; 7740 return 0; 7741} 7742_ACEOF 7743rm -f conftest.$ac_objext 7744if { (eval echo "$as_me:7744: \"$ac_compile\"") >&5 7745 (eval $ac_compile) 2>&5 7746 ac_status=$? 7747 echo "$as_me:7747: \$? = $ac_status" >&5 7748 (exit $ac_status); } && 7749 { ac_try='test -s conftest.$ac_objext' 7750 { (eval echo "$as_me:7750: \"$ac_try\"") >&5 7751 (eval $ac_try) 2>&5 7752 ac_status=$? 7753 echo "$as_me:7753: \$? = $ac_status" >&5 7754 (exit $ac_status); }; }; then 7755 cf_cv_size_t_SIZE_T_TYPES_H=yes 7756else 7757 echo "$as_me: failed program was:" >&5 7758cat conftest.$ac_ext >&5 7759cf_cv_size_t_SIZE_T_TYPES_H=no 7760fi 7761rm -f conftest.$ac_objext conftest.$ac_ext 7762fi 7763echo "$as_me:7763: result: $cf_cv_size_t_SIZE_T_TYPES_H" >&5 7764echo "${ECHO_T}$cf_cv_size_t_SIZE_T_TYPES_H" >&6 7765 fi 7766 7767fi 7768 7769 if test "x$cf_cv_size_t_SIZE_T_TYPES_H" = xyes ; then 7770 7771cat >>confdefs.h <<EOF 7772#define SIZE_T_TYPES_H 1 7773EOF 7774 7775 cf_mawk_check_size_t=yes 7776 fi 7777fi 7778 7779echo "$as_me:7779: checking for setlocale()" >&5 7780echo $ECHO_N "checking for setlocale()... $ECHO_C" >&6 7781if test "${cf_cv_locale+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 7785cat >conftest.$ac_ext <<_ACEOF 7786#line 7786 "configure" 7787#include "confdefs.h" 7788#include <locale.h> 7789int 7790main (void) 7791{ 7792setlocale(LC_ALL, "") 7793 ; 7794 return 0; 7795} 7796_ACEOF 7797rm -f conftest.$ac_objext conftest$ac_exeext 7798if { (eval echo "$as_me:7798: \"$ac_link\"") >&5 7799 (eval $ac_link) 2>&5 7800 ac_status=$? 7801 echo "$as_me:7801: \$? = $ac_status" >&5 7802 (exit $ac_status); } && 7803 { ac_try='test -s conftest$ac_exeext' 7804 { (eval echo "$as_me:7804: \"$ac_try\"") >&5 7805 (eval $ac_try) 2>&5 7806 ac_status=$? 7807 echo "$as_me:7807: \$? = $ac_status" >&5 7808 (exit $ac_status); }; }; then 7809 cf_cv_locale=yes 7810else 7811 echo "$as_me: failed program was:" >&5 7812cat conftest.$ac_ext >&5 7813cf_cv_locale=no 7814fi 7815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7816 7817fi 7818 7819echo "$as_me:7819: result: $cf_cv_locale" >&5 7820echo "${ECHO_T}$cf_cv_locale" >&6 7821test $cf_cv_locale = yes && { 7822cat >>confdefs.h <<\EOF 7823#define LOCALE 1 7824EOF 7825 } 7826 7827echo "$as_me:7827: checking if external environ is declared" >&5 7828echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6 7829if test "${cf_cv_dcl_environ+set}" = set; then 7830 echo $ECHO_N "(cached) $ECHO_C" >&6 7831else 7832 7833 cat >conftest.$ac_ext <<_ACEOF 7834#line 7834 "configure" 7835#include "confdefs.h" 7836 7837#ifdef HAVE_STDLIB_H 7838#include <stdlib.h> 7839#endif 7840#include <unistd.h> 7841int 7842main (void) 7843{ 7844int x = (int) environ 7845 ; 7846 return 0; 7847} 7848_ACEOF 7849rm -f conftest.$ac_objext 7850if { (eval echo "$as_me:7850: \"$ac_compile\"") >&5 7851 (eval $ac_compile) 2>&5 7852 ac_status=$? 7853 echo "$as_me:7853: \$? = $ac_status" >&5 7854 (exit $ac_status); } && 7855 { ac_try='test -s conftest.$ac_objext' 7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5 7857 (eval $ac_try) 2>&5 7858 ac_status=$? 7859 echo "$as_me:7859: \$? = $ac_status" >&5 7860 (exit $ac_status); }; }; then 7861 cf_cv_dcl_environ=yes 7862else 7863 echo "$as_me: failed program was:" >&5 7864cat conftest.$ac_ext >&5 7865cf_cv_dcl_environ=no 7866fi 7867rm -f conftest.$ac_objext conftest.$ac_ext 7868 7869fi 7870echo "$as_me:7870: result: $cf_cv_dcl_environ" >&5 7871echo "${ECHO_T}$cf_cv_dcl_environ" >&6 7872 7873if test "$cf_cv_dcl_environ" = no ; then 7874 7875cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7876 7877 cat >>confdefs.h <<EOF 7878#define $cf_result 1 7879EOF 7880 7881fi 7882 7883# It's possible (for near-UNIX clones) that the data doesn't exist 7884 7885echo "$as_me:7885: checking if external environ exists" >&5 7886echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6 7887if test "${cf_cv_have_environ+set}" = set; then 7888 echo $ECHO_N "(cached) $ECHO_C" >&6 7889else 7890 7891 cat >conftest.$ac_ext <<_ACEOF 7892#line 7892 "configure" 7893#include "confdefs.h" 7894 7895#undef environ 7896extern int environ; 7897 7898int 7899main (void) 7900{ 7901environ = 2 7902 ; 7903 return 0; 7904} 7905_ACEOF 7906rm -f conftest.$ac_objext conftest$ac_exeext 7907if { (eval echo "$as_me:7907: \"$ac_link\"") >&5 7908 (eval $ac_link) 2>&5 7909 ac_status=$? 7910 echo "$as_me:7910: \$? = $ac_status" >&5 7911 (exit $ac_status); } && 7912 { ac_try='test -s conftest$ac_exeext' 7913 { (eval echo "$as_me:7913: \"$ac_try\"") >&5 7914 (eval $ac_try) 2>&5 7915 ac_status=$? 7916 echo "$as_me:7916: \$? = $ac_status" >&5 7917 (exit $ac_status); }; }; then 7918 cf_cv_have_environ=yes 7919else 7920 echo "$as_me: failed program was:" >&5 7921cat conftest.$ac_ext >&5 7922cf_cv_have_environ=no 7923fi 7924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7925 7926fi 7927echo "$as_me:7927: result: $cf_cv_have_environ" >&5 7928echo "${ECHO_T}$cf_cv_have_environ" >&6 7929 7930if test "$cf_cv_have_environ" = yes ; then 7931 7932cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 7933 7934 cat >>confdefs.h <<EOF 7935#define $cf_result 1 7936EOF 7937 7938fi 7939 7940for ac_func in fork gettimeofday matherr mktime pipe strftime tdestroy tsearch wait 7941do 7942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7943echo "$as_me:7943: checking for $ac_func" >&5 7944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7945if eval "test \"\${$as_ac_var+set}\" = set"; then 7946 echo $ECHO_N "(cached) $ECHO_C" >&6 7947else 7948 cat >conftest.$ac_ext <<_ACEOF 7949#line 7949 "configure" 7950#include "confdefs.h" 7951#define $ac_func autoconf_temporary 7952#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 7953#undef $ac_func 7954 7955#ifdef __cplusplus 7956extern "C" 7957#endif 7958 7959/* We use char because int might match the return type of a gcc2 7960 builtin and then its argument prototype would still apply. */ 7961char $ac_func (void); 7962 7963int 7964main (void) 7965{ 7966 7967/* The GNU C library defines stubs for functions which it implements 7968 to always fail with ENOSYS. Some functions are actually named 7969 something starting with __ and the normal name is an alias. */ 7970#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7971#error found stub for $ac_func 7972#endif 7973 7974 return $ac_func (); 7975 ; 7976 return 0; 7977} 7978_ACEOF 7979rm -f conftest.$ac_objext conftest$ac_exeext 7980if { (eval echo "$as_me:7980: \"$ac_link\"") >&5 7981 (eval $ac_link) 2>&5 7982 ac_status=$? 7983 echo "$as_me:7983: \$? = $ac_status" >&5 7984 (exit $ac_status); } && 7985 { ac_try='test -s conftest$ac_exeext' 7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5 7987 (eval $ac_try) 2>&5 7988 ac_status=$? 7989 echo "$as_me:7989: \$? = $ac_status" >&5 7990 (exit $ac_status); }; }; then 7991 eval "$as_ac_var=yes" 7992else 7993 echo "$as_me: failed program was:" >&5 7994cat conftest.$ac_ext >&5 7995eval "$as_ac_var=no" 7996fi 7997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7998fi 7999echo "$as_me:7999: result: `eval echo '${'$as_ac_var'}'`" >&5 8000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8001if test `eval echo '${'$as_ac_var'}'` = yes; then 8002 cat >>confdefs.h <<EOF 8003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8004EOF 8005 8006fi 8007done 8008 8009### Checks for libraries. 8010case $cf_cv_system_name in 8011(*mingw32*) 8012 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501" 8013# LIBS=" -lpsapi $LIBS" 8014 ;; 8015esac 8016 8017test "$ac_cv_func_fork" = yes && \ 8018test "$ac_cv_func_pipe" = yes && \ 8019test "$ac_cv_func_wait" = yes && \ 8020 8021cat >>confdefs.h <<\EOF 8022#define HAVE_REAL_PIPES 1 8023EOF 8024 8025for ac_header in errno.h fcntl.h unistd.h sys/wait.h 8026do 8027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8028echo "$as_me:8028: checking for $ac_header" >&5 8029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8030if eval "test \"\${$as_ac_Header+set}\" = set"; then 8031 echo $ECHO_N "(cached) $ECHO_C" >&6 8032else 8033 cat >conftest.$ac_ext <<_ACEOF 8034#line 8034 "configure" 8035#include "confdefs.h" 8036#include <$ac_header> 8037_ACEOF 8038if { (eval echo "$as_me:8038: \"$ac_cpp conftest.$ac_ext\"") >&5 8039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8040 ac_status=$? 8041 egrep -v '^ *\+' conftest.er1 >conftest.err 8042 rm -f conftest.er1 8043 cat conftest.err >&5 8044 echo "$as_me:8044: \$? = $ac_status" >&5 8045 (exit $ac_status); } >/dev/null; then 8046 if test -s conftest.err; then 8047 ac_cpp_err=$ac_c_preproc_warn_flag 8048 else 8049 ac_cpp_err= 8050 fi 8051else 8052 ac_cpp_err=yes 8053fi 8054if test -z "$ac_cpp_err"; then 8055 eval "$as_ac_Header=yes" 8056else 8057 echo "$as_me: failed program was:" >&5 8058 cat conftest.$ac_ext >&5 8059 eval "$as_ac_Header=no" 8060fi 8061rm -f conftest.err conftest.$ac_ext 8062fi 8063echo "$as_me:8063: result: `eval echo '${'$as_ac_Header'}'`" >&5 8064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8065if test `eval echo '${'$as_ac_Header'}'` = yes; then 8066 cat >>confdefs.h <<EOF 8067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8068EOF 8069 8070fi 8071done 8072 8073echo "$as_me:8073: checking if math.h declares _LIB_VERSION" >&5 8074echo $ECHO_N "checking if math.h declares _LIB_VERSION... $ECHO_C" >&6 8075if test "${cf_cv_get_math_lib_version+set}" = set; then 8076 echo $ECHO_N "(cached) $ECHO_C" >&6 8077else 8078 8079cat >conftest.$ac_ext <<_ACEOF 8080#line 8080 "configure" 8081#include "confdefs.h" 8082 8083#include <math.h> 8084int 8085main (void) 8086{ 8087int foo = _LIB_VERSION 8088 ; 8089 return 0; 8090} 8091_ACEOF 8092rm -f conftest.$ac_objext conftest$ac_exeext 8093if { (eval echo "$as_me:8093: \"$ac_link\"") >&5 8094 (eval $ac_link) 2>&5 8095 ac_status=$? 8096 echo "$as_me:8096: \$? = $ac_status" >&5 8097 (exit $ac_status); } && 8098 { ac_try='test -s conftest$ac_exeext' 8099 { (eval echo "$as_me:8099: \"$ac_try\"") >&5 8100 (eval $ac_try) 2>&5 8101 ac_status=$? 8102 echo "$as_me:8102: \$? = $ac_status" >&5 8103 (exit $ac_status); }; }; then 8104 cf_cv_get_math_lib_version=yes 8105else 8106 echo "$as_me: failed program was:" >&5 8107cat conftest.$ac_ext >&5 8108cf_cv_get_math_lib_version=no 8109fi 8110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8111 8112fi 8113echo "$as_me:8113: result: $cf_cv_get_math_lib_version" >&5 8114echo "${ECHO_T}$cf_cv_get_math_lib_version" >&6 8115 8116if test "x$cf_cv_get_math_lib_version" = xyes 8117then 8118 echo "$as_me:8118: checking if we can update _LIB_VERSION" >&5 8119echo $ECHO_N "checking if we can update _LIB_VERSION... $ECHO_C" >&6 8120if test "${cf_cv_set_math_lib_version+set}" = set; then 8121 echo $ECHO_N "(cached) $ECHO_C" >&6 8122else 8123 8124 cat >conftest.$ac_ext <<_ACEOF 8125#line 8125 "configure" 8126#include "confdefs.h" 8127 8128#include <math.h> 8129int 8130main (void) 8131{ 8132_LIB_VERSION = _IEEE_ 8133 ; 8134 return 0; 8135} 8136_ACEOF 8137rm -f conftest.$ac_objext conftest$ac_exeext 8138if { (eval echo "$as_me:8138: \"$ac_link\"") >&5 8139 (eval $ac_link) 2>&5 8140 ac_status=$? 8141 echo "$as_me:8141: \$? = $ac_status" >&5 8142 (exit $ac_status); } && 8143 { ac_try='test -s conftest$ac_exeext' 8144 { (eval echo "$as_me:8144: \"$ac_try\"") >&5 8145 (eval $ac_try) 2>&5 8146 ac_status=$? 8147 echo "$as_me:8147: \$? = $ac_status" >&5 8148 (exit $ac_status); }; }; then 8149 cf_cv_set_math_lib_version=yes 8150else 8151 echo "$as_me: failed program was:" >&5 8152cat conftest.$ac_ext >&5 8153cf_cv_set_math_lib_version=no 8154fi 8155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8156 8157fi 8158echo "$as_me:8158: result: $cf_cv_set_math_lib_version" >&5 8159echo "${ECHO_T}$cf_cv_set_math_lib_version" >&6 8160 if test "x$cf_cv_set_math_lib_version" = xyes 8161 then 8162 8163cat >>confdefs.h <<\EOF 8164#define HAVE_MATH__LIB_VERSION 1 8165EOF 8166 8167 else 8168 { echo "$as_me:8168: WARNING: this is probably due to a defect in your system headers" >&5 8169echo "$as_me: WARNING: this is probably due to a defect in your system headers" >&2;} 8170 fi 8171fi 8172 8173echo "$as_me:8173: checking for limits.h" >&5 8174echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 8175if test "${ac_cv_header_limits_h+set}" = set; then 8176 echo $ECHO_N "(cached) $ECHO_C" >&6 8177else 8178 cat >conftest.$ac_ext <<_ACEOF 8179#line 8179 "configure" 8180#include "confdefs.h" 8181#include <limits.h> 8182_ACEOF 8183if { (eval echo "$as_me:8183: \"$ac_cpp conftest.$ac_ext\"") >&5 8184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8185 ac_status=$? 8186 egrep -v '^ *\+' conftest.er1 >conftest.err 8187 rm -f conftest.er1 8188 cat conftest.err >&5 8189 echo "$as_me:8189: \$? = $ac_status" >&5 8190 (exit $ac_status); } >/dev/null; then 8191 if test -s conftest.err; then 8192 ac_cpp_err=$ac_c_preproc_warn_flag 8193 else 8194 ac_cpp_err= 8195 fi 8196else 8197 ac_cpp_err=yes 8198fi 8199if test -z "$ac_cpp_err"; then 8200 ac_cv_header_limits_h=yes 8201else 8202 echo "$as_me: failed program was:" >&5 8203 cat conftest.$ac_ext >&5 8204 ac_cv_header_limits_h=no 8205fi 8206rm -f conftest.err conftest.$ac_ext 8207fi 8208echo "$as_me:8208: result: $ac_cv_header_limits_h" >&5 8209echo "${ECHO_T}$ac_cv_header_limits_h" >&6 8210if test $ac_cv_header_limits_h = yes; then 8211 cf_limits_h=yes 8212fi 8213 8214if test "$cf_limits_h" = yes ; then : 8215else 8216echo "$as_me:8216: checking for values.h" >&5 8217echo $ECHO_N "checking for values.h... $ECHO_C" >&6 8218if test "${ac_cv_header_values_h+set}" = set; then 8219 echo $ECHO_N "(cached) $ECHO_C" >&6 8220else 8221 cat >conftest.$ac_ext <<_ACEOF 8222#line 8222 "configure" 8223#include "confdefs.h" 8224#include <values.h> 8225_ACEOF 8226if { (eval echo "$as_me:8226: \"$ac_cpp conftest.$ac_ext\"") >&5 8227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8228 ac_status=$? 8229 egrep -v '^ *\+' conftest.er1 >conftest.err 8230 rm -f conftest.er1 8231 cat conftest.err >&5 8232 echo "$as_me:8232: \$? = $ac_status" >&5 8233 (exit $ac_status); } >/dev/null; then 8234 if test -s conftest.err; then 8235 ac_cpp_err=$ac_c_preproc_warn_flag 8236 else 8237 ac_cpp_err= 8238 fi 8239else 8240 ac_cpp_err=yes 8241fi 8242if test -z "$ac_cpp_err"; then 8243 ac_cv_header_values_h=yes 8244else 8245 echo "$as_me: failed program was:" >&5 8246 cat conftest.$ac_ext >&5 8247 ac_cv_header_values_h=no 8248fi 8249rm -f conftest.err conftest.$ac_ext 8250fi 8251echo "$as_me:8251: result: $ac_cv_header_values_h" >&5 8252echo "${ECHO_T}$ac_cv_header_values_h" >&6 8253if test $ac_cv_header_values_h = yes; then 8254 cf_values_h=yes 8255fi 8256 8257 if test "$cf_values_h" = yes ; then 8258 if test "$cross_compiling" = yes; then 8259 { { echo "$as_me:8259: error: cannot run test program while cross compiling" >&5 8260echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8261 { (exit 1); exit 1; }; } 8262else 8263 cat >conftest.$ac_ext <<_ACEOF 8264#line 8264 "configure" 8265#include "confdefs.h" 8266#include <values.h> 8267#include <stdio.h> 8268int main(void) 8269{ FILE *out = fopen("conftest.out", "w") ; 8270 unsigned max_uint = 0; 8271 if ( ! out ) exit(1) ; 8272 fprintf(out, "MAX__INT 0x%x\n", MAXINT) ; 8273 fprintf(out, "MAX__LONG 0x%lx\n", MAXLONG) ; 8274#ifdef MAXUINT 8275 max_uint = MAXUINT; /* not likely (SunOS/Solaris lacks it) */ 8276#else 8277 max_uint = MAXINT; 8278 max_uint <<= 1; 8279 max_uint |= 1; 8280#endif 8281 fprintf(out, "MAX__UINT 0x%lx\n", max_uint) ; 8282 exit(0) ; return(0) ; 8283} 8284 8285_ACEOF 8286rm -f conftest$ac_exeext 8287if { (eval echo "$as_me:8287: \"$ac_link\"") >&5 8288 (eval $ac_link) 2>&5 8289 ac_status=$? 8290 echo "$as_me:8290: \$? = $ac_status" >&5 8291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8292 { (eval echo "$as_me:8292: \"$ac_try\"") >&5 8293 (eval $ac_try) 2>&5 8294 ac_status=$? 8295 echo "$as_me:8295: \$? = $ac_status" >&5 8296 (exit $ac_status); }; }; then 8297 cf_maxint_set=yes 8298else 8299 echo "$as_me: program exited with status $ac_status" >&5 8300echo "$as_me: failed program was:" >&5 8301cat conftest.$ac_ext >&5 8302{ { echo "$as_me:8302: error: C program to compute maxint and maxlong failed. 8303Please send bug report to dickey@invisible-island.net." >&5 8304echo "$as_me: error: C program to compute maxint and maxlong failed. 8305Please send bug report to dickey@invisible-island.net." >&2;} 8306 { (exit 1); exit 1; }; } 8307fi 8308rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8309fi 8310 fi 8311if test "x$cf_maxint_set" != xyes ; then 8312# compute it -- assumes two's complement 8313if test "$cross_compiling" = yes; then 8314 { { echo "$as_me:8314: error: cannot run test program while cross compiling" >&5 8315echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8316 { (exit 1); exit 1; }; } 8317else 8318 cat >conftest.$ac_ext <<_ACEOF 8319#line 8319 "configure" 8320#include "confdefs.h" 8321#include <stdio.h> 8322int main(void) 8323{ int y ; unsigned yu; long yy ; 8324 FILE *out ; 8325 8326 if ( !(out = fopen("conftest.out","w")) ) exit(1) ; 8327 /* find max int and max long */ 8328 y = 0x1000 ; 8329 while ( y > 0 ) { yu = y; y *= 2 ; } 8330 fprintf(out,"MAX__INT 0x%x\n", y-1) ; 8331 8332 yu = yu - 1; 8333 yu <<= 1; 8334 yu |= 1; 8335 fprintf(out,"MAX__UINT 0x%x\n", y-1) ; 8336 8337 yy = 0x1000 ; 8338 while ( yy > 0 ) yy *= 2 ; 8339 fprintf(out,"MAX__LONG 0x%lx\n", yy-1) ; 8340 exit(0) ; 8341 return 0 ; 8342 } 8343_ACEOF 8344rm -f conftest$ac_exeext 8345if { (eval echo "$as_me:8345: \"$ac_link\"") >&5 8346 (eval $ac_link) 2>&5 8347 ac_status=$? 8348 echo "$as_me:8348: \$? = $ac_status" >&5 8349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8350 { (eval echo "$as_me:8350: \"$ac_try\"") >&5 8351 (eval $ac_try) 2>&5 8352 ac_status=$? 8353 echo "$as_me:8353: \$? = $ac_status" >&5 8354 (exit $ac_status); }; }; then 8355 : 8356else 8357 echo "$as_me: program exited with status $ac_status" >&5 8358echo "$as_me: failed program was:" >&5 8359cat conftest.$ac_ext >&5 8360{ { echo "$as_me:8360: error: C program to compute maxint and maxlong failed. 8361Please send bug report to dickey@invisible-island.net." >&5 8362echo "$as_me: error: C program to compute maxint and maxlong failed. 8363Please send bug report to dickey@invisible-island.net." >&2;} 8364 { (exit 1); exit 1; }; } 8365fi 8366rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8367fi 8368fi 8369cat conftest.out | while true 8370do 8371 read name value 8372 test -z "$name" && break 8373 cat >>confdefs.h <<EOF 8374#define $name $value 8375EOF 8376 8377done 8378rm -f conftest.out 8379fi 8380 8381for ac_func in isnan sigaction 8382do 8383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8384echo "$as_me:8384: checking for $ac_func" >&5 8385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8386if eval "test \"\${$as_ac_var+set}\" = set"; then 8387 echo $ECHO_N "(cached) $ECHO_C" >&6 8388else 8389 cat >conftest.$ac_ext <<_ACEOF 8390#line 8390 "configure" 8391#include "confdefs.h" 8392#define $ac_func autoconf_temporary 8393#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8394#undef $ac_func 8395 8396#ifdef __cplusplus 8397extern "C" 8398#endif 8399 8400/* We use char because int might match the return type of a gcc2 8401 builtin and then its argument prototype would still apply. */ 8402char $ac_func (void); 8403 8404int 8405main (void) 8406{ 8407 8408/* The GNU C library defines stubs for functions which it implements 8409 to always fail with ENOSYS. Some functions are actually named 8410 something starting with __ and the normal name is an alias. */ 8411#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8412#error found stub for $ac_func 8413#endif 8414 8415 return $ac_func (); 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420rm -f conftest.$ac_objext conftest$ac_exeext 8421if { (eval echo "$as_me:8421: \"$ac_link\"") >&5 8422 (eval $ac_link) 2>&5 8423 ac_status=$? 8424 echo "$as_me:8424: \$? = $ac_status" >&5 8425 (exit $ac_status); } && 8426 { ac_try='test -s conftest$ac_exeext' 8427 { (eval echo "$as_me:8427: \"$ac_try\"") >&5 8428 (eval $ac_try) 2>&5 8429 ac_status=$? 8430 echo "$as_me:8430: \$? = $ac_status" >&5 8431 (exit $ac_status); }; }; then 8432 eval "$as_ac_var=yes" 8433else 8434 echo "$as_me: failed program was:" >&5 8435cat conftest.$ac_ext >&5 8436eval "$as_ac_var=no" 8437fi 8438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8439fi 8440echo "$as_me:8440: result: `eval echo '${'$as_ac_var'}'`" >&5 8441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8442if test `eval echo '${'$as_ac_var'}'` = yes; then 8443 cat >>confdefs.h <<EOF 8444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8445EOF 8446 8447fi 8448done 8449 8450test "$ac_cv_func_sigaction" = yes && sigaction=1 8451 8452for ac_header in siginfo.h 8453do 8454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8455echo "$as_me:8455: checking for $ac_header" >&5 8456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8457if eval "test \"\${$as_ac_Header+set}\" = set"; then 8458 echo $ECHO_N "(cached) $ECHO_C" >&6 8459else 8460 cat >conftest.$ac_ext <<_ACEOF 8461#line 8461 "configure" 8462#include "confdefs.h" 8463#include <$ac_header> 8464_ACEOF 8465if { (eval echo "$as_me:8465: \"$ac_cpp conftest.$ac_ext\"") >&5 8466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8467 ac_status=$? 8468 egrep -v '^ *\+' conftest.er1 >conftest.err 8469 rm -f conftest.er1 8470 cat conftest.err >&5 8471 echo "$as_me:8471: \$? = $ac_status" >&5 8472 (exit $ac_status); } >/dev/null; then 8473 if test -s conftest.err; then 8474 ac_cpp_err=$ac_c_preproc_warn_flag 8475 else 8476 ac_cpp_err= 8477 fi 8478else 8479 ac_cpp_err=yes 8480fi 8481if test -z "$ac_cpp_err"; then 8482 eval "$as_ac_Header=yes" 8483else 8484 echo "$as_me: failed program was:" >&5 8485 cat conftest.$ac_ext >&5 8486 eval "$as_ac_Header=no" 8487fi 8488rm -f conftest.err conftest.$ac_ext 8489fi 8490echo "$as_me:8490: result: `eval echo '${'$as_ac_Header'}'`" >&5 8491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8492if test `eval echo '${'$as_ac_Header'}'` = yes; then 8493 cat >>confdefs.h <<EOF 8494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8495EOF 8496 8497fi 8498done 8499 8500test "$ac_cv_header_siginfo_h" = yes && siginfo_h=1 8501 8502echo "$as_me:8502: checking if we should use siginfo" >&5 8503echo $ECHO_N "checking if we should use siginfo... $ECHO_C" >&6 8504if test "${cf_cv_use_sv_siginfo+set}" = set; then 8505 echo $ECHO_N "(cached) $ECHO_C" >&6 8506else 8507 8508if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then 8509 cf_cv_use_sv_siginfo=yes 8510else 8511 cf_cv_use_sv_siginfo=no 8512fi 8513 8514fi 8515echo "$as_me:8515: result: $cf_cv_use_sv_siginfo" >&5 8516echo "${ECHO_T}$cf_cv_use_sv_siginfo" >&6 8517 8518echo "$as_me:8518: checking return type of signal handlers" >&5 8519echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 8520if test "${ac_cv_type_signal+set}" = set; then 8521 echo $ECHO_N "(cached) $ECHO_C" >&6 8522else 8523 cat >conftest.$ac_ext <<_ACEOF 8524#line 8524 "configure" 8525#include "confdefs.h" 8526#include <sys/types.h> 8527#include <signal.h> 8528#ifdef signal 8529# undef signal 8530#endif 8531#ifdef __cplusplus 8532extern "C" void (*signal (int, void (*)(int)))(int); 8533#else 8534void (*signal ()) (); 8535#endif 8536 8537int 8538main (void) 8539{ 8540int i; 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545rm -f conftest.$ac_objext 8546if { (eval echo "$as_me:8546: \"$ac_compile\"") >&5 8547 (eval $ac_compile) 2>&5 8548 ac_status=$? 8549 echo "$as_me:8549: \$? = $ac_status" >&5 8550 (exit $ac_status); } && 8551 { ac_try='test -s conftest.$ac_objext' 8552 { (eval echo "$as_me:8552: \"$ac_try\"") >&5 8553 (eval $ac_try) 2>&5 8554 ac_status=$? 8555 echo "$as_me:8555: \$? = $ac_status" >&5 8556 (exit $ac_status); }; }; then 8557 ac_cv_type_signal=void 8558else 8559 echo "$as_me: failed program was:" >&5 8560cat conftest.$ac_ext >&5 8561ac_cv_type_signal=int 8562fi 8563rm -f conftest.$ac_objext conftest.$ac_ext 8564fi 8565echo "$as_me:8565: result: $ac_cv_type_signal" >&5 8566echo "${ECHO_T}$ac_cv_type_signal" >&6 8567 8568cat >>confdefs.h <<EOF 8569#define RETSIGTYPE $ac_cv_type_signal 8570EOF 8571 8572echo "$as_me:8572: checking if we should use sigaction.sa_sigaction" >&5 8573echo $ECHO_N "checking if we should use sigaction.sa_sigaction... $ECHO_C" >&6 8574if test "${cf_cv_use_sa_sigaction+set}" = set; then 8575 echo $ECHO_N "(cached) $ECHO_C" >&6 8576else 8577 8578cf_cv_use_sa_sigaction=no 8579if test "$ac_cv_func_sigaction" = yes 8580then 8581 cat >conftest.$ac_ext <<_ACEOF 8582#line 8582 "configure" 8583#include "confdefs.h" 8584#include <signal.h> 8585int 8586main (void) 8587{ 8588 8589 struct sigaction foo; 8590 foo.sa_sigaction = 0; 8591 8592 ; 8593 return 0; 8594} 8595_ACEOF 8596rm -f conftest.$ac_objext 8597if { (eval echo "$as_me:8597: \"$ac_compile\"") >&5 8598 (eval $ac_compile) 2>&5 8599 ac_status=$? 8600 echo "$as_me:8600: \$? = $ac_status" >&5 8601 (exit $ac_status); } && 8602 { ac_try='test -s conftest.$ac_objext' 8603 { (eval echo "$as_me:8603: \"$ac_try\"") >&5 8604 (eval $ac_try) 2>&5 8605 ac_status=$? 8606 echo "$as_me:8606: \$? = $ac_status" >&5 8607 (exit $ac_status); }; }; then 8608 cf_cv_use_sa_sigaction=yes 8609else 8610 echo "$as_me: failed program was:" >&5 8611cat conftest.$ac_ext >&5 8612fi 8613rm -f conftest.$ac_objext conftest.$ac_ext 8614fi 8615 8616fi 8617echo "$as_me:8617: result: $cf_cv_use_sa_sigaction" >&5 8618echo "${ECHO_T}$cf_cv_use_sa_sigaction" >&6 8619 8620test "$cf_cv_use_sa_sigaction" = yes && 8621cat >>confdefs.h <<\EOF 8622#define HAVE_SIGACTION_SA_SIGACTION 1 8623EOF 8624 8625cf_FPE_DEFS="$CPPFLAGS" 8626cf_FPE_LIBS="$LIBS" 8627cf_FPE_SRCS="$srcdir/fpe_check.c" 8628 8629CPPFLAGS="$CPPFLAGS -I. -DRETSIGTYPE=$ac_cv_type_signal" 8630test "$ac_cv_func_isnan" = yes && CPPFLAGS="$CPPFLAGS -DHAVE_ISNAN" 8631test "$ac_cv_func_nanf" = yes && CPPFLAGS="$CPPFLAGS -DHAVE_NANF" 8632test "$ac_cv_func_sigaction" = yes && CPPFLAGS="$CPPFLAGS -DHAVE_SIGACTION" 8633test "$ac_cv_header_siginfo_h" = yes && CPPFLAGS="$CPPFLAGS -DHAVE_SIGINFO_H" 8634test "$cf_cv_use_sa_sigaction" = yes && CPPFLAGS="$CPPFLAGS -DHAVE_SIGACTION_SA_SIGACTION" 8635 8636LIBS="$MATHLIB $LIBS" 8637 8638echo checking handling of floating point exceptions 8639 8640cat >conftest.$ac_ext <<CF_EOF 8641#include <$cf_FPE_SRCS> 8642CF_EOF 8643 8644rm -f conftest$ac_exeext 8645 8646if { (eval echo "$as_me:8646: \"$ac_link\"") >&5 8647 (eval $ac_link) 2>&5 8648 ac_status=$? 8649 echo "$as_me:8649: \$? = $ac_status" >&5 8650 (exit $ac_status); }; then 8651 echo "FPE_CHECK 1:check_fpe_traps" >&5 8652 ./conftest 2>/dev/null 8653 cf_status=$? 8654else 8655 echo "$cf_FPE_SRCS failed to compile" 1>&2 8656 cf_status=100 8657fi 8658 8659echo "FPE_CHECK status=$cf_status" >&5 8660case $cf_status in 8661 (0) ;; # good news do nothing 8662 (3) # reasonably good news 8663 8664cat >>confdefs.h <<\EOF 8665#define FPE_TRAPS_ON 1 8666EOF 8667 8668if test "x$cf_cv_use_sv_siginfo" = "xno" 8669then 8670 echo "$as_me:8670: checking for sigvec" >&5 8671echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 8672if test "${ac_cv_func_sigvec+set}" = set; then 8673 echo $ECHO_N "(cached) $ECHO_C" >&6 8674else 8675 cat >conftest.$ac_ext <<_ACEOF 8676#line 8676 "configure" 8677#include "confdefs.h" 8678#define sigvec autoconf_temporary 8679#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8680#undef sigvec 8681 8682#ifdef __cplusplus 8683extern "C" 8684#endif 8685 8686/* We use char because int might match the return type of a gcc2 8687 builtin and then its argument prototype would still apply. */ 8688char sigvec (void); 8689 8690int 8691main (void) 8692{ 8693 8694/* The GNU C library defines stubs for functions which it implements 8695 to always fail with ENOSYS. Some functions are actually named 8696 something starting with __ and the normal name is an alias. */ 8697#if defined (__stub_sigvec) || defined (__stub___sigvec) 8698#error found stub for sigvec 8699#endif 8700 8701 return sigvec (); 8702 ; 8703 return 0; 8704} 8705_ACEOF 8706rm -f conftest.$ac_objext conftest$ac_exeext 8707if { (eval echo "$as_me:8707: \"$ac_link\"") >&5 8708 (eval $ac_link) 2>&5 8709 ac_status=$? 8710 echo "$as_me:8710: \$? = $ac_status" >&5 8711 (exit $ac_status); } && 8712 { ac_try='test -s conftest$ac_exeext' 8713 { (eval echo "$as_me:8713: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:8716: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_cv_func_sigvec=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721cat conftest.$ac_ext >&5 8722ac_cv_func_sigvec=no 8723fi 8724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8725fi 8726echo "$as_me:8726: result: $ac_cv_func_sigvec" >&5 8727echo "${ECHO_T}$ac_cv_func_sigvec" >&6 8728if test $ac_cv_func_sigvec = yes; then 8729 cf_have_sigvec=1 8730fi 8731 8732 echo "FPE_CHECK 2:get_fpe_codes" >&5 8733 if test "$cf_have_sigvec" = 1 && ./fpe_check$ac_exeext phoney_arg >> defines.out ; then 8734 : 8735 else 8736 8737cat >>confdefs.h <<\EOF 8738#define NOINFO_SIGFPE 1 8739EOF 8740 8741 fi 8742fi ;; 8743 8744 (1|2|4) # bad news have to turn off traps 8745 # only know how to do this on systemV and solaris 8746 echo "$as_me:8746: checking for ieeefp.h" >&5 8747echo $ECHO_N "checking for ieeefp.h... $ECHO_C" >&6 8748if test "${ac_cv_header_ieeefp_h+set}" = set; then 8749 echo $ECHO_N "(cached) $ECHO_C" >&6 8750else 8751 cat >conftest.$ac_ext <<_ACEOF 8752#line 8752 "configure" 8753#include "confdefs.h" 8754#include <ieeefp.h> 8755_ACEOF 8756if { (eval echo "$as_me:8756: \"$ac_cpp conftest.$ac_ext\"") >&5 8757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8758 ac_status=$? 8759 egrep -v '^ *\+' conftest.er1 >conftest.err 8760 rm -f conftest.er1 8761 cat conftest.err >&5 8762 echo "$as_me:8762: \$? = $ac_status" >&5 8763 (exit $ac_status); } >/dev/null; then 8764 if test -s conftest.err; then 8765 ac_cpp_err=$ac_c_preproc_warn_flag 8766 else 8767 ac_cpp_err= 8768 fi 8769else 8770 ac_cpp_err=yes 8771fi 8772if test -z "$ac_cpp_err"; then 8773 ac_cv_header_ieeefp_h=yes 8774else 8775 echo "$as_me: failed program was:" >&5 8776 cat conftest.$ac_ext >&5 8777 ac_cv_header_ieeefp_h=no 8778fi 8779rm -f conftest.err conftest.$ac_ext 8780fi 8781echo "$as_me:8781: result: $ac_cv_header_ieeefp_h" >&5 8782echo "${ECHO_T}$ac_cv_header_ieeefp_h" >&6 8783if test $ac_cv_header_ieeefp_h = yes; then 8784 cf_have_ieeefp_h=1 8785fi 8786 8787 echo "$as_me:8787: checking for fpsetmask" >&5 8788echo $ECHO_N "checking for fpsetmask... $ECHO_C" >&6 8789if test "${ac_cv_func_fpsetmask+set}" = set; then 8790 echo $ECHO_N "(cached) $ECHO_C" >&6 8791else 8792 cat >conftest.$ac_ext <<_ACEOF 8793#line 8793 "configure" 8794#include "confdefs.h" 8795#define fpsetmask autoconf_temporary 8796#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8797#undef fpsetmask 8798 8799#ifdef __cplusplus 8800extern "C" 8801#endif 8802 8803/* We use char because int might match the return type of a gcc2 8804 builtin and then its argument prototype would still apply. */ 8805char fpsetmask (void); 8806 8807int 8808main (void) 8809{ 8810 8811/* The GNU C library defines stubs for functions which it implements 8812 to always fail with ENOSYS. Some functions are actually named 8813 something starting with __ and the normal name is an alias. */ 8814#if defined (__stub_fpsetmask) || defined (__stub___fpsetmask) 8815#error found stub for fpsetmask 8816#endif 8817 8818 return fpsetmask (); 8819 ; 8820 return 0; 8821} 8822_ACEOF 8823rm -f conftest.$ac_objext conftest$ac_exeext 8824if { (eval echo "$as_me:8824: \"$ac_link\"") >&5 8825 (eval $ac_link) 2>&5 8826 ac_status=$? 8827 echo "$as_me:8827: \$? = $ac_status" >&5 8828 (exit $ac_status); } && 8829 { ac_try='test -s conftest$ac_exeext' 8830 { (eval echo "$as_me:8830: \"$ac_try\"") >&5 8831 (eval $ac_try) 2>&5 8832 ac_status=$? 8833 echo "$as_me:8833: \$? = $ac_status" >&5 8834 (exit $ac_status); }; }; then 8835 ac_cv_func_fpsetmask=yes 8836else 8837 echo "$as_me: failed program was:" >&5 8838cat conftest.$ac_ext >&5 8839ac_cv_func_fpsetmask=no 8840fi 8841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8842fi 8843echo "$as_me:8843: result: $ac_cv_func_fpsetmask" >&5 8844echo "${ECHO_T}$ac_cv_func_fpsetmask" >&6 8845if test $ac_cv_func_fpsetmask = yes; then 8846 cf_have_fpsetmask=1 8847fi 8848 8849 if test "$cf_have_ieeefp_h" = 1 && test "$cf_have_fpsetmask" = 1 ; then 8850 cat >>confdefs.h <<\EOF 8851#define FPE_TRAPS_ON 1 8852EOF 8853 8854cat >>confdefs.h <<\EOF 8855#define USE_IEEEFP_H 1 8856EOF 8857 8858cat >>confdefs.h <<EOF 8859#define TURN_ON_FPE_TRAPS fpsetmask(fpgetmask() | (FP_X_DZ|FP_X_OFL)) 8860EOF 8861 8862cat >>confdefs.h <<EOF 8863#define TURN_OFF_FPE_TRAPS fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_OFL)) 8864EOF 8865 8866if test "x$cf_cv_use_sv_siginfo" = "xno" 8867then 8868 echo "$as_me:8868: checking for sigvec" >&5 8869echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 8870if test "${ac_cv_func_sigvec+set}" = set; then 8871 echo $ECHO_N "(cached) $ECHO_C" >&6 8872else 8873 cat >conftest.$ac_ext <<_ACEOF 8874#line 8874 "configure" 8875#include "confdefs.h" 8876#define sigvec autoconf_temporary 8877#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8878#undef sigvec 8879 8880#ifdef __cplusplus 8881extern "C" 8882#endif 8883 8884/* We use char because int might match the return type of a gcc2 8885 builtin and then its argument prototype would still apply. */ 8886char sigvec (void); 8887 8888int 8889main (void) 8890{ 8891 8892/* The GNU C library defines stubs for functions which it implements 8893 to always fail with ENOSYS. Some functions are actually named 8894 something starting with __ and the normal name is an alias. */ 8895#if defined (__stub_sigvec) || defined (__stub___sigvec) 8896#error found stub for sigvec 8897#endif 8898 8899 return sigvec (); 8900 ; 8901 return 0; 8902} 8903_ACEOF 8904rm -f conftest.$ac_objext conftest$ac_exeext 8905if { (eval echo "$as_me:8905: \"$ac_link\"") >&5 8906 (eval $ac_link) 2>&5 8907 ac_status=$? 8908 echo "$as_me:8908: \$? = $ac_status" >&5 8909 (exit $ac_status); } && 8910 { ac_try='test -s conftest$ac_exeext' 8911 { (eval echo "$as_me:8911: \"$ac_try\"") >&5 8912 (eval $ac_try) 2>&5 8913 ac_status=$? 8914 echo "$as_me:8914: \$? = $ac_status" >&5 8915 (exit $ac_status); }; }; then 8916 ac_cv_func_sigvec=yes 8917else 8918 echo "$as_me: failed program was:" >&5 8919cat conftest.$ac_ext >&5 8920ac_cv_func_sigvec=no 8921fi 8922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8923fi 8924echo "$as_me:8924: result: $ac_cv_func_sigvec" >&5 8925echo "${ECHO_T}$ac_cv_func_sigvec" >&6 8926if test $ac_cv_func_sigvec = yes; then 8927 cf_have_sigvec=1 8928fi 8929 8930 echo "FPE_CHECK 2:get_fpe_codes" >&5 8931 if test "$cf_have_sigvec" = 1 && ./fpe_check$ac_exeext phoney_arg >> defines.out ; then 8932 : 8933 else 8934 8935cat >>confdefs.h <<\EOF 8936#define NOINFO_SIGFPE 1 8937EOF 8938 8939 fi 8940fi 8941 8942 # look for strtod overflow bug 8943 echo "$as_me:8943: checking strtod bug on overflow" >&5 8944echo $ECHO_N "checking strtod bug on overflow... $ECHO_C" >&6 8945 8946 rm -f conftest$ac_exeext 8947 CPPFLAGS="$CPPFLAGS -DUSE_IEEEFP_H" 8948 8949 cat >conftest.$ac_ext <<CF_EOF 8950#include <$cf_FPE_SRCS> 8951CF_EOF 8952 8953 if { (eval echo "$as_me:8953: \"$ac_link\"") >&5 8954 (eval $ac_link) 2>&5 8955 ac_status=$? 8956 echo "$as_me:8956: \$? = $ac_status" >&5 8957 (exit $ac_status); }; then 8958 echo "FPE_CHECK 3:check_strtod_ovf" >&5 8959 if ./conftest phoney_arg phoney_arg 2>/dev/null 8960 then 8961 echo "$as_me:8961: result: no bug" >&5 8962echo "${ECHO_T}no bug" >&6 8963 else 8964 echo "$as_me:8964: result: buggy -- will use work around" >&5 8965echo "${ECHO_T}buggy -- will use work around" >&6 8966 8967cat >>confdefs.h <<EOF 8968#define HAVE_STRTOD_OVF_BUG 1 8969EOF 8970 8971 fi 8972 else 8973 echo "$as_me:8973: result: $cf_FPE_SRCS failed to compile" >&5 8974echo "${ECHO_T}$cf_FPE_SRCS failed to compile" >&6 8975 fi 8976 else 8977 if test $cf_status != 4 ; then 8978 cat >>confdefs.h <<\EOF 8979#define FPE_TRAPS_ON 1 8980EOF 8981 8982if test "x$cf_cv_use_sv_siginfo" = "xno" 8983then 8984 echo "$as_me:8984: checking for sigvec" >&5 8985echo $ECHO_N "checking for sigvec... $ECHO_C" >&6 8986if test "${ac_cv_func_sigvec+set}" = set; then 8987 echo $ECHO_N "(cached) $ECHO_C" >&6 8988else 8989 cat >conftest.$ac_ext <<_ACEOF 8990#line 8990 "configure" 8991#include "confdefs.h" 8992#define sigvec autoconf_temporary 8993#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ 8994#undef sigvec 8995 8996#ifdef __cplusplus 8997extern "C" 8998#endif 8999 9000/* We use char because int might match the return type of a gcc2 9001 builtin and then its argument prototype would still apply. */ 9002char sigvec (void); 9003 9004int 9005main (void) 9006{ 9007 9008/* The GNU C library defines stubs for functions which it implements 9009 to always fail with ENOSYS. Some functions are actually named 9010 something starting with __ and the normal name is an alias. */ 9011#if defined (__stub_sigvec) || defined (__stub___sigvec) 9012#error found stub for sigvec 9013#endif 9014 9015 return sigvec (); 9016 ; 9017 return 0; 9018} 9019_ACEOF 9020rm -f conftest.$ac_objext conftest$ac_exeext 9021if { (eval echo "$as_me:9021: \"$ac_link\"") >&5 9022 (eval $ac_link) 2>&5 9023 ac_status=$? 9024 echo "$as_me:9024: \$? = $ac_status" >&5 9025 (exit $ac_status); } && 9026 { ac_try='test -s conftest$ac_exeext' 9027 { (eval echo "$as_me:9027: \"$ac_try\"") >&5 9028 (eval $ac_try) 2>&5 9029 ac_status=$? 9030 echo "$as_me:9030: \$? = $ac_status" >&5 9031 (exit $ac_status); }; }; then 9032 ac_cv_func_sigvec=yes 9033else 9034 echo "$as_me: failed program was:" >&5 9035cat conftest.$ac_ext >&5 9036ac_cv_func_sigvec=no 9037fi 9038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9039fi 9040echo "$as_me:9040: result: $ac_cv_func_sigvec" >&5 9041echo "${ECHO_T}$ac_cv_func_sigvec" >&6 9042if test $ac_cv_func_sigvec = yes; then 9043 cf_have_sigvec=1 9044fi 9045 9046 echo "FPE_CHECK 2:get_fpe_codes" >&5 9047 if test "$cf_have_sigvec" = 1 && ./fpe_check$ac_exeext phoney_arg >> defines.out ; then 9048 : 9049 else 9050 9051cat >>confdefs.h <<\EOF 9052#define NOINFO_SIGFPE 1 9053EOF 9054 9055 fi 9056fi 9057 fi 9058 9059 case $cf_status in 9060 (1) 9061 cat 1>&2 <<-'EOF' 9062 Warning: Your system defaults generate floating point exception 9063 on divide by zero but not on overflow. You need to 9064 #define TURN_ON_FPE_TRAPS to handle overflow. 9065EOF 9066 ;; 9067 (2) 9068 cat 1>&2 <<-'EOF' 9069 Warning: Your system defaults generate floating point exception 9070 on overflow but not on divide by zero. You need to 9071 #define TURN_ON_FPE_TRAPS to handle divide by zero. 9072EOF 9073 ;; 9074 (4) 9075 cat 1>&2 <<-'EOF' 9076 Warning: Your system defaults do not generate floating point 9077 exceptions, but your math library does not support this behavior. 9078 You need to 9079 #define TURN_ON_FPE_TRAPS to use fp exceptions for consistency. 9080EOF 9081 ;; 9082 esac 9083 cat 1>&2 <<-'EOF' 9084 Please report this so I can fix this script to do it automatically. 9085 dickey@invisible-island.net 9086 You can continue with the build and the resulting mawk will be 9087 useable, but getting FPE_TRAPS_ON correct eventually is best. 9088EOF 9089fi 9090 ;; 9091 9092 (*) # some sort of disaster 9093 if test "x$cross_compiling" = xno 9094 then 9095 cat 1>&2 <<-EOF 9096 The program \`fpe_check' compiled from $cf_FPE_SRCS seems to have 9097 unexpectly blown up. Please report this to dickey@invisible-island.net 9098EOF 9099 # quit or not ??? 9100 else 9101 cat 1>&2 <<-EOF 9102 The program \`fpe_check' will not work for cross-compiling. 9103 You can continue with the build and the resulting mawk will be 9104 useable, but getting FPE_TRAPS_ON correct eventually is best. 9105EOF 9106 fi 9107 ;; 9108esac 9109 9110CPPFLAGS="$cf_FPE_DEFS" 9111LIBS="$cf_FPE_LIBS" 9112 9113rm -f conftest.$ac_ext fpe_check$ac_exeext # whew!! 9114 9115ac_config_files="$ac_config_files Makefile man/Makefile" 9116cat >confcache <<\_ACEOF 9117# This file is a shell script that caches the results of configure 9118# tests run on this system so they can be shared between configure 9119# scripts and configure runs, see configure's option --config-cache. 9120# It is not useful on other systems. If it contains results you don't 9121# want to keep, you may remove or edit it. 9122# 9123# config.status only pays attention to the cache file if you give it 9124# the --recheck option to rerun configure. 9125# 9126# `ac_cv_env_foo' variables (set or unset) will be overriden when 9127# loading this file, other *unset* `ac_cv_foo' will be assigned the 9128# following values. 9129 9130_ACEOF 9131 9132# The following way of writing the cache mishandles newlines in values, 9133# but we know of no workaround that is simple, portable, and efficient. 9134# So, don't put newlines in cache variables' values. 9135# Ultrix sh set writes to stderr and can't be redirected directly, 9136# and sets the high bit in the cache file unless we assign to the vars. 9137{ 9138 (set) 2>&1 | 9139 case `(ac_space=' '; set | grep ac_space) 2>&1` in 9140 *ac_space=\ *) 9141 # `set' does not quote correctly, so add quotes (double-quote 9142 # substitution turns \\\\ into \\, and sed turns \\ into \). 9143 sed -n \ 9144 "s/'/'\\\\''/g; 9145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9146 ;; 9147 *) 9148 # `set' quotes correctly as required by POSIX, so do not add quotes. 9149 sed -n \ 9150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 9151 ;; 9152 esac; 9153} | 9154 sed ' 9155 t clear 9156 : clear 9157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9158 t end 9159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9160 : end' >>confcache 9161if cmp -s $cache_file confcache; then :; else 9162 if test -w $cache_file; then 9163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 9164 cat confcache >$cache_file 9165 else 9166 echo "not updating unwritable cache $cache_file" 9167 fi 9168fi 9169rm -f confcache 9170 9171test "x$prefix" = xNONE && prefix=$ac_default_prefix 9172# Let make expand exec_prefix. 9173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9174 9175# VPATH may cause trouble with some makes, so we remove $(srcdir), 9176# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9177# trailing colons and then remove the whole line if VPATH becomes empty 9178# (actually we leave an empty line to preserve line numbers). 9179if test "x$srcdir" = x.; then 9180 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9181s/:*\$(srcdir):*/:/; 9182s/:*\${srcdir}:*/:/; 9183s/:*@srcdir@:*/:/; 9184s/^\([^=]*=[ ]*\):*/\1/; 9185s/:*$//; 9186s/^[^=]*=[ ]*$//; 9187}' 9188fi 9189 9190DEFS=-DHAVE_CONFIG_H 9191 9192: ${CONFIG_STATUS=./config.status} 9193ac_clean_files_save=$ac_clean_files 9194ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9195{ echo "$as_me:9195: creating $CONFIG_STATUS" >&5 9196echo "$as_me: creating $CONFIG_STATUS" >&6;} 9197cat >$CONFIG_STATUS <<_ACEOF 9198#! $SHELL 9199# Generated automatically by configure. 9200# Run this file to recreate the current configuration. 9201# Compiler output produced by configure, useful for debugging 9202# configure, is in config.log if it exists. 9203 9204debug=false 9205SHELL=\${CONFIG_SHELL-$SHELL} 9206ac_cs_invocation="\$0 \$@" 9207 9208_ACEOF 9209 9210cat >>$CONFIG_STATUS <<\_ACEOF 9211# Be Bourne compatible 9212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9213 emulate sh 9214 NULLCMD=: 9215elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 9216 set -o posix 9217fi 9218 9219# Name of the executable. 9220as_me=`echo "$0" |sed 's,.*[\\/],,'` 9221 9222if expr a : '\(a\)' >/dev/null 2>&1; then 9223 as_expr=expr 9224else 9225 as_expr=false 9226fi 9227 9228rm -f conf$$ conf$$.exe conf$$.file 9229echo >conf$$.file 9230if ln -s conf$$.file conf$$ 2>/dev/null; then 9231 # We could just check for DJGPP; but this test a) works b) is more generic 9232 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 9233 if test -f conf$$.exe; then 9234 # Don't use ln at all; we don't have any links 9235 as_ln_s='cp -p' 9236 else 9237 as_ln_s='ln -s' 9238 fi 9239elif ln conf$$.file conf$$ 2>/dev/null; then 9240 as_ln_s=ln 9241else 9242 as_ln_s='cp -p' 9243fi 9244rm -f conf$$ conf$$.exe conf$$.file 9245 9246as_executable_p="test -f" 9247 9248# Support unset when possible. 9249if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 9250 as_unset=unset 9251else 9252 as_unset=false 9253fi 9254 9255# NLS nuisances. 9256$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 9257$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 9258$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 9259$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 9260$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 9261$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 9262$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 9263$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 9264 9265# IFS 9266# We need space, tab and new line, in precisely that order. 9267as_nl=' 9268' 9269IFS=" $as_nl" 9270 9271# CDPATH. 9272$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 9273 9274exec 6>&1 9275 9276_ACEOF 9277 9278# Files that config.status was made for. 9279if test -n "$ac_config_files"; then 9280 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 9281fi 9282 9283if test -n "$ac_config_headers"; then 9284 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 9285fi 9286 9287if test -n "$ac_config_links"; then 9288 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 9289fi 9290 9291if test -n "$ac_config_commands"; then 9292 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 9293fi 9294 9295cat >>$CONFIG_STATUS <<\EOF 9296 9297ac_cs_usage="\ 9298\`$as_me' instantiates files from templates according to the 9299current configuration. 9300 9301Usage: $0 [OPTIONS] [FILE]... 9302 9303 -h, --help print this help, then exit 9304 -V, --version print version number, then exit 9305 -d, --debug don't remove temporary files 9306 --recheck update $as_me by reconfiguring in the same conditions 9307 --file=FILE[:TEMPLATE] 9308 instantiate the configuration file FILE 9309 --header=FILE[:TEMPLATE] 9310 instantiate the configuration header FILE 9311 9312Configuration files: 9313$config_files 9314 9315Configuration headers: 9316$config_headers 9317 9318Report bugs to <dickey@invisible-island.net>." 9319EOF 9320 9321cat >>$CONFIG_STATUS <<EOF 9322ac_cs_version="\\ 9323config.status 9324configured by $0, generated by GNU Autoconf 2.52.20181006, 9325 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 9326 9327Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 9328Free Software Foundation, Inc. 9329This config.status script is free software; the Free Software Foundation 9330gives unlimited permission to copy, distribute and modify it." 9331srcdir=$srcdir 9332INSTALL="$INSTALL" 9333EOF 9334 9335cat >>$CONFIG_STATUS <<\EOF 9336# If no file are specified by the user, then we need to provide default 9337# value. By we need to know if files were specified by the user. 9338ac_need_defaults=: 9339while test $# != 0 9340do 9341 case $1 in 9342 --*=*) 9343 ac_option=`expr "x$1" : 'x\([^=]*\)='` 9344 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 9345 shift 9346 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 9347 shift 9348 ;; 9349 -*);; 9350 *) # This is not an option, so the user has probably given explicit 9351 # arguments. 9352 ac_need_defaults=false;; 9353 esac 9354 9355 case $1 in 9356 # Handling of the options. 9357EOF 9358cat >>$CONFIG_STATUS <<EOF 9359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9360 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 9361 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 9362EOF 9363cat >>$CONFIG_STATUS <<\EOF 9364 --version | --vers* | -V ) 9365 echo "$ac_cs_version"; exit 0 ;; 9366 --he | --h) 9367 # Conflict between --help and --header 9368 { { echo "$as_me:9368: error: ambiguous option: $1 9369Try \`$0 --help' for more information." >&5 9370echo "$as_me: error: ambiguous option: $1 9371Try \`$0 --help' for more information." >&2;} 9372 { (exit 1); exit 1; }; };; 9373 --help | --hel | -h ) 9374 echo "$ac_cs_usage"; exit 0 ;; 9375 --debug | --d* | -d ) 9376 debug=: ;; 9377 --file | --fil | --fi | --f ) 9378 shift 9379 CONFIG_FILES="$CONFIG_FILES $1" 9380 ac_need_defaults=false;; 9381 --header | --heade | --head | --hea ) 9382 shift 9383 CONFIG_HEADERS="$CONFIG_HEADERS $1" 9384 ac_need_defaults=false;; 9385 9386 # This is an error. 9387 -*) { { echo "$as_me:9387: error: unrecognized option: $1 9388Try \`$0 --help' for more information." >&5 9389echo "$as_me: error: unrecognized option: $1 9390Try \`$0 --help' for more information." >&2;} 9391 { (exit 1); exit 1; }; } ;; 9392 9393 *) ac_config_targets="$ac_config_targets $1" ;; 9394 9395 esac 9396 shift 9397done 9398 9399exec 5>>config.log 9400cat >&5 << _ACEOF 9401 9402## ----------------------- ## 9403## Running config.status. ## 9404## ----------------------- ## 9405 9406This file was extended by $as_me 2.52.20181006, executed with 9407 CONFIG_FILES = $CONFIG_FILES 9408 CONFIG_HEADERS = $CONFIG_HEADERS 9409 CONFIG_LINKS = $CONFIG_LINKS 9410 CONFIG_COMMANDS = $CONFIG_COMMANDS 9411 > $ac_cs_invocation 9412on `(hostname || uname -n) 2>/dev/null | sed 1q` 9413 9414_ACEOF 9415EOF 9416 9417cat >>$CONFIG_STATUS <<\EOF 9418for ac_config_target in $ac_config_targets 9419do 9420 case "$ac_config_target" in 9421 # Handling of arguments. 9422 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9423 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 9424 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 9425 *) { { echo "$as_me:9425: error: invalid argument: $ac_config_target" >&5 9426echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9427 { (exit 1); exit 1; }; };; 9428 esac 9429done 9430 9431# If the user did not use the arguments to specify the items to instantiate, 9432# then the envvar interface is used. Set only those that are not. 9433# We use the long form for the default assignment because of an extremely 9434# bizarre bug on SunOS 4.1.3. 9435if $ac_need_defaults; then 9436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9438fi 9439 9440# Create a temporary directory, and hook for its removal unless debugging. 9441$debug || 9442{ 9443 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 9444 trap '{ (exit 1); exit 1; }' 1 2 13 15 9445} 9446 9447# Create a (secure) tmp directory for tmp files. 9448: ${TMPDIR=/tmp} 9449{ 9450 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 9451 test -n "$tmp" && test -d "$tmp" 9452} || 9453{ 9454 tmp=$TMPDIR/cs$$-$RANDOM 9455 (umask 077 && mkdir $tmp) 9456} || 9457{ 9458 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 9459 { (exit 1); exit 1; } 9460} 9461 9462EOF 9463 9464cat >>$CONFIG_STATUS <<EOF 9465 9466# 9467# CONFIG_FILES section. 9468# 9469 9470# No need to generate the scripts if there are no CONFIG_FILES. 9471# This happens for instance when ./config.status config.h 9472if test -n "\$CONFIG_FILES"; then 9473 # Protect against being on the right side of a sed subst in config.status. 9474 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 9475 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 9476s,@SHELL@,$SHELL,;t t 9477s,@exec_prefix@,$exec_prefix,;t t 9478s,@prefix@,$prefix,;t t 9479s,@program_transform_name@,$program_transform_name,;t t 9480s,@bindir@,$bindir,;t t 9481s,@sbindir@,$sbindir,;t t 9482s,@libexecdir@,$libexecdir,;t t 9483s,@datarootdir@,$datarootdir,;t t 9484s,@datadir@,$datadir,;t t 9485s,@sysconfdir@,$sysconfdir,;t t 9486s,@sharedstatedir@,$sharedstatedir,;t t 9487s,@localstatedir@,$localstatedir,;t t 9488s,@runstatedir@,$runstatedir,;t t 9489s,@libdir@,$libdir,;t t 9490s,@includedir@,$includedir,;t t 9491s,@oldincludedir@,$oldincludedir,;t t 9492s,@infodir@,$infodir,;t t 9493s,@mandir@,$mandir,;t t 9494s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 9495s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 9496s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 9497s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 9498s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 9499s,@build_alias@,$build_alias,;t t 9500s,@host_alias@,$host_alias,;t t 9501s,@target_alias@,$target_alias,;t t 9502s,@ECHO_C@,$ECHO_C,;t t 9503s,@ECHO_N@,$ECHO_N,;t t 9504s,@ECHO_T@,$ECHO_T,;t t 9505s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 9506s,@DEFS@,$DEFS,;t t 9507s,@LIBS@,$LIBS,;t t 9508s,@build@,$build,;t t 9509s,@build_cpu@,$build_cpu,;t t 9510s,@build_vendor@,$build_vendor,;t t 9511s,@build_os@,$build_os,;t t 9512s,@host@,$host,;t t 9513s,@host_cpu@,$host_cpu,;t t 9514s,@host_vendor@,$host_vendor,;t t 9515s,@host_os@,$host_os,;t t 9516s,@CC@,$CC,;t t 9517s,@CFLAGS@,$CFLAGS,;t t 9518s,@LDFLAGS@,$LDFLAGS,;t t 9519s,@CPPFLAGS@,$CPPFLAGS,;t t 9520s,@ac_ct_CC@,$ac_ct_CC,;t t 9521s,@EXEEXT@,$EXEEXT,;t t 9522s,@OBJEXT@,$OBJEXT,;t t 9523s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 9524s,@SET_MAKE@,$SET_MAKE,;t t 9525s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t 9526s,@CPP@,$CPP,;t t 9527s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 9528s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 9529s,@INSTALL_DATA@,$INSTALL_DATA,;t t 9530s,@BUILD_CC@,$BUILD_CC,;t t 9531s,@BUILD_CPP@,$BUILD_CPP,;t t 9532s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 9533s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t 9534s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t 9535s,@BUILD_LIBS@,$BUILD_LIBS,;t t 9536s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t 9537s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t 9538s,@MATHLIB@,$MATHLIB,;t t 9539s,@ECHO_LT@,$ECHO_LT,;t t 9540s,@ECHO_LD@,$ECHO_LD,;t t 9541s,@RULE_CC@,$RULE_CC,;t t 9542s,@SHOW_CC@,$SHOW_CC,;t t 9543s,@ECHO_CC@,$ECHO_CC,;t t 9544s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 9545s,@GROFF_PATH@,$GROFF_PATH,;t t 9546s,@NROFF_PATH@,$NROFF_PATH,;t t 9547s,@TBL_PATH@,$TBL_PATH,;t t 9548s,@GROFF_NOTE@,$GROFF_NOTE,;t t 9549s,@NROFF_NOTE@,$NROFF_NOTE,;t t 9550s,@cf_man2html@,$cf_man2html,;t t 9551s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 9552s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 9553s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 9554s,@YACC@,$YACC,;t t 9555s,@LINT@,$LINT,;t t 9556s,@LINT_OPTS@,$LINT_OPTS,;t t 9557s,@CTAGS@,$CTAGS,;t t 9558s,@ETAGS@,$ETAGS,;t t 9559s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 9560s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 9561s,@EXTRAOBJS@,$EXTRAOBJS,;t t 9562CEOF 9563 9564EOF 9565 9566 cat >>$CONFIG_STATUS <<\EOF 9567 # Split the substitutions into bite-sized pieces for seds with 9568 # small command number limits, like on Digital OSF/1 and HP-UX. 9569 ac_max_sed_lines=48 9570 ac_sed_frag=1 # Number of current file. 9571 ac_beg=1 # First line for current file. 9572 ac_end=$ac_max_sed_lines # Line after last line for current file. 9573 ac_more_lines=: 9574 ac_sed_cmds= 9575 while $ac_more_lines; do 9576 if test $ac_beg -gt 1; then 9577 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9578 else 9579 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9580 fi 9581 if test ! -s $tmp/subs.frag; then 9582 ac_more_lines=false 9583 else 9584 # The purpose of the label and of the branching condition is to 9585 # speed up the sed processing (if there are no `@' at all, there 9586 # is no need to browse any of the substitutions). 9587 # These are the two extra sed commands mentioned above. 9588 (echo ':t 9589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9590 # It is possible to make a multiline substitution using escaped newlines. 9591 # Ensure that we do not split the substitution between script fragments. 9592 ac_BEG=$ac_end 9593 ac_END=`expr $ac_end + $ac_max_sed_lines` 9594 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 9595 if test -s $tmp/subs.next; then 9596 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 9597 if test ! -s $tmp/subs.edit; then 9598 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 9599 if test ! -s $tmp/subs.edit; then 9600 if test $ac_beg -gt 1; then 9601 ac_end=`expr $ac_end - 1` 9602 continue 9603 fi 9604 fi 9605 fi 9606 fi 9607 9608 if test -z "$ac_sed_cmds"; then 9609 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9610 else 9611 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9612 fi 9613 ac_sed_frag=`expr $ac_sed_frag + 1` 9614 ac_beg=$ac_end 9615 ac_end=`expr $ac_end + $ac_max_sed_lines` 9616 fi 9617 done 9618 if test -z "$ac_sed_cmds"; then 9619 ac_sed_cmds=cat 9620 fi 9621fi # test -n "$CONFIG_FILES" 9622 9623EOF 9624cat >>$CONFIG_STATUS <<\EOF 9625for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 9626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9627 case $ac_file in 9628 - | *:- | *:-:* ) # input from stdin 9629 cat >$tmp/stdin 9630 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9632 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9634 * ) ac_file_in=$ac_file.in ;; 9635 esac 9636 9637 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9638 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9639 X"$ac_file" : 'X\(//\)[^/]' \| \ 9640 X"$ac_file" : 'X\(//\)$' \| \ 9641 X"$ac_file" : 'X\(/\)' \| \ 9642 . : '\(.\)' 2>/dev/null || 9643echo X"$ac_file" | 9644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9645 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9646 /^X\(\/\/\)$/{ s//\1/; q; } 9647 /^X\(\/\).*/{ s//\1/; q; } 9648 s/.*/./; q'` 9649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 9650 { case "$ac_dir" in 9651 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 9652 *) as_incr_dir=.;; 9653esac 9654as_dummy="$ac_dir" 9655for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 9656 case $as_mkdir_dir in 9657 # Skip DOS drivespec 9658 ?:) as_incr_dir=$as_mkdir_dir ;; 9659 *) 9660 as_incr_dir=$as_incr_dir/$as_mkdir_dir 9661 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 9662 ;; 9663 esac 9664done; } 9665 9666 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 9667 # A "../" for each directory in $ac_dir_suffix. 9668 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 9669 else 9670 ac_dir_suffix= ac_dots= 9671 fi 9672 9673 case $srcdir in 9674 .) ac_srcdir=. 9675 if test -z "$ac_dots"; then 9676 ac_top_srcdir=. 9677 else 9678 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 9679 fi ;; 9680 [\\/]* | ?:[\\/]* ) 9681 ac_srcdir=$srcdir$ac_dir_suffix; 9682 ac_top_srcdir=$srcdir ;; 9683 *) # Relative path. 9684 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 9685 ac_top_srcdir=$ac_dots$srcdir ;; 9686 esac 9687 9688 case $INSTALL in 9689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9690 *) ac_INSTALL=$ac_dots$INSTALL ;; 9691 esac 9692 9693 if test x"$ac_file" != x-; then 9694 { echo "$as_me:9694: creating $ac_file" >&5 9695echo "$as_me: creating $ac_file" >&6;} 9696 rm -f "$ac_file" 9697 fi 9698 # Let's still pretend it is `configure' which instantiates (i.e., don't 9699 # use $as_me), people would be surprised to read: 9700 # /* config.h. Generated automatically by config.status. */ 9701 configure_input="Generated automatically from `echo $ac_file_in | 9702 sed 's,.*/,,'` by configure." 9703 9704 # First look for the input files in the build tree, otherwise in the 9705 # src tree. 9706 ac_file_inputs=`IFS=: 9707 for f in $ac_file_in; do 9708 case $f in 9709 -) echo $tmp/stdin ;; 9710 [\\/$]*) 9711 # Absolute (can't be DOS-style, as IFS=:) 9712 test -f "$f" || { { echo "$as_me:9712: error: cannot find input file: $f" >&5 9713echo "$as_me: error: cannot find input file: $f" >&2;} 9714 { (exit 1); exit 1; }; } 9715 echo $f;; 9716 *) # Relative 9717 if test -f "$f"; then 9718 # Build tree 9719 echo $f 9720 elif test -f "$srcdir/$f"; then 9721 # Source tree 9722 echo $srcdir/$f 9723 else 9724 # /dev/null tree 9725 { { echo "$as_me:9725: error: cannot find input file: $f" >&5 9726echo "$as_me: error: cannot find input file: $f" >&2;} 9727 { (exit 1); exit 1; }; } 9728 fi;; 9729 esac 9730 done` || { (exit 1); exit 1; } 9731EOF 9732cat >>$CONFIG_STATUS <<\EOF 9733 ac_warn_datarootdir=no 9734 if test x"$ac_file" != x-; then 9735 for ac_item in $ac_file_inputs 9736 do 9737 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 9738 if test -n "$ac_seen"; then 9739 ac_used=`grep '@datarootdir@' $ac_item` 9740 if test -z "$ac_used"; then 9741 { echo "$as_me:9741: WARNING: datarootdir was used implicitly but not set: 9742$ac_seen" >&5 9743echo "$as_me: WARNING: datarootdir was used implicitly but not set: 9744$ac_seen" >&2;} 9745 ac_warn_datarootdir=yes 9746 fi 9747 fi 9748 ac_seen=`grep '${datarootdir}' $ac_item` 9749 if test -n "$ac_seen"; then 9750 { echo "$as_me:9750: WARNING: datarootdir was used explicitly but not set: 9751$ac_seen" >&5 9752echo "$as_me: WARNING: datarootdir was used explicitly but not set: 9753$ac_seen" >&2;} 9754 ac_warn_datarootdir=yes 9755 fi 9756 done 9757 fi 9758 9759if test "x$ac_warn_datarootdir" = xyes; then 9760 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 9761fi 9762 9763EOF 9764cat >>$CONFIG_STATUS <<EOF 9765 sed "$ac_vpsub 9766$extrasub 9767EOF 9768cat >>$CONFIG_STATUS <<\EOF 9769:t 9770/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9771s,@configure_input@,$configure_input,;t t 9772s,@srcdir@,$ac_srcdir,;t t 9773s,@top_srcdir@,$ac_top_srcdir,;t t 9774s,@INSTALL@,$ac_INSTALL,;t t 9775" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9776 rm -f $tmp/stdin 9777 if test x"$ac_file" != x-; then 9778 cp $tmp/out $ac_file 9779 9780 for ac_name in prefix exec_prefix datarootdir 9781 do 9782 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 9783 if test -n "$ac_seen"; then 9784 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 9785 if test -z "$ac_init"; then 9786 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 9787 { echo "$as_me:9787: WARNING: Variable $ac_name is used but was not set: 9788$ac_seen" >&5 9789echo "$as_me: WARNING: Variable $ac_name is used but was not set: 9790$ac_seen" >&2;} 9791 fi 9792 fi 9793 done 9794 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 9795 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 9796 if test -s $tmp/out; then 9797 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 9798 { echo "$as_me:9798: WARNING: Some variables may not be substituted: 9799$ac_seen" >&5 9800echo "$as_me: WARNING: Some variables may not be substituted: 9801$ac_seen" >&2;} 9802 fi 9803 else 9804 cat $tmp/out 9805 fi 9806 rm -f $tmp/out 9807 9808done 9809EOF 9810cat >>$CONFIG_STATUS <<\EOF 9811 9812# 9813# CONFIG_HEADER section. 9814# 9815 9816# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9817# NAME is the cpp macro being defined and VALUE is the value it is being given. 9818# 9819# ac_d sets the value in "#define NAME VALUE" lines. 9820ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9821ac_dB='[ ].*$,\1#\2' 9822ac_dC=' ' 9823ac_dD=',;t' 9824# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 9825ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9826ac_iB='\([ ]\),\1#\2define\3' 9827ac_iC=' ' 9828ac_iD='\4,;t' 9829# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9830ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9831ac_uB='$,\1#\2define\3' 9832ac_uC=' ' 9833ac_uD=',;t' 9834 9835for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9837 case $ac_file in 9838 - | *:- | *:-:* ) # input from stdin 9839 cat >$tmp/stdin 9840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9844 * ) ac_file_in=$ac_file.in ;; 9845 esac 9846 9847 test x"$ac_file" != x- && { echo "$as_me:9847: creating $ac_file" >&5 9848echo "$as_me: creating $ac_file" >&6;} 9849 9850 # First look for the input files in the build tree, otherwise in the 9851 # src tree. 9852 ac_file_inputs=`IFS=: 9853 for f in $ac_file_in; do 9854 case $f in 9855 -) echo $tmp/stdin ;; 9856 [\\/$]*) 9857 # Absolute (can't be DOS-style, as IFS=:) 9858 test -f "$f" || { { echo "$as_me:9858: error: cannot find input file: $f" >&5 9859echo "$as_me: error: cannot find input file: $f" >&2;} 9860 { (exit 1); exit 1; }; } 9861 echo $f;; 9862 *) # Relative 9863 if test -f "$f"; then 9864 # Build tree 9865 echo $f 9866 elif test -f "$srcdir/$f"; then 9867 # Source tree 9868 echo $srcdir/$f 9869 else 9870 # /dev/null tree 9871 { { echo "$as_me:9871: error: cannot find input file: $f" >&5 9872echo "$as_me: error: cannot find input file: $f" >&2;} 9873 { (exit 1); exit 1; }; } 9874 fi;; 9875 esac 9876 done` || { (exit 1); exit 1; } 9877 # Remove the trailing spaces. 9878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9879 9880EOF 9881 9882# Transform confdefs.h into two sed scripts, `conftest.defines' and 9883# `conftest.undefs', that substitutes the proper values into 9884# config.h.in to produce config.h. The first handles `#define' 9885# templates, and the second `#undef' templates. 9886# And first: Protect against being on the right side of a sed subst in 9887# config.status. Protect against being in an unquoted here document 9888# in config.status. 9889rm -f conftest.defines conftest.undefs 9890# Using a here document instead of a string reduces the quoting nightmare. 9891# Putting comments in sed scripts is not portable. 9892# 9893# `end' is used to avoid that the second main sed command (meant for 9894# 0-ary CPP macros) applies to n-ary macro definitions. 9895# See the Autoconf documentation for `clear'. 9896cat >confdef2sed.sed <<\EOF 9897s/[\\&,]/\\&/g 9898s,[\\$`],\\&,g 9899t clear 9900: clear 9901s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 9902t end 9903s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9904: end 9905EOF 9906# If some macros were called several times there might be several times 9907# the same #defines, which is useless. Nevertheless, we may not want to 9908# sort them, since we want the *last* AC-DEFINE to be honored. 9909uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9910sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9911sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 9912rm -f confdef2sed.sed 9913 9914# This sed command replaces #undef with comments. This is necessary, for 9915# example, in the case of _POSIX_SOURCE, which is predefined and required 9916# on some systems where configure will not decide to define it. 9917cat >>conftest.undefs <<\EOF 9918s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9919EOF 9920 9921# Break up conftest.defines because some shells have a limit on the size 9922# of here documents, and old seds have small limits too (100 cmds). 9923echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9924echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9925echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9926echo ' :' >>$CONFIG_STATUS 9927rm -f conftest.tail 9928while grep . conftest.defines >/dev/null 9929do 9930 # Write a limited-size here document to $tmp/defines.sed. 9931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9932 # Speed up: don't consider the non `#define' lines. 9933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9934 # Work around the forget-to-reset-the-flag bug. 9935 echo 't clr' >>$CONFIG_STATUS 9936 echo ': clr' >>$CONFIG_STATUS 9937 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9938 echo 'CEOF 9939 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9940 rm -f $tmp/in 9941 mv $tmp/out $tmp/in 9942' >>$CONFIG_STATUS 9943 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9944 rm -f conftest.defines 9945 mv conftest.tail conftest.defines 9946done 9947rm -f conftest.defines 9948echo ' fi # egrep' >>$CONFIG_STATUS 9949echo >>$CONFIG_STATUS 9950 9951# Break up conftest.undefs because some shells have a limit on the size 9952# of here documents, and old seds have small limits too (100 cmds). 9953echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9954rm -f conftest.tail 9955while grep . conftest.undefs >/dev/null 9956do 9957 # Write a limited-size here document to $tmp/undefs.sed. 9958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9959 # Speed up: don't consider the non `#undef' 9960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9961 # Work around the forget-to-reset-the-flag bug. 9962 echo 't clr' >>$CONFIG_STATUS 9963 echo ': clr' >>$CONFIG_STATUS 9964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9965 echo 'CEOF 9966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9967 rm -f $tmp/in 9968 mv $tmp/out $tmp/in 9969' >>$CONFIG_STATUS 9970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9971 rm -f conftest.undefs 9972 mv conftest.tail conftest.undefs 9973done 9974rm -f conftest.undefs 9975 9976cat >>$CONFIG_STATUS <<\EOF 9977 # Let's still pretend it is `configure' which instantiates (i.e., don't 9978 # use $as_me), people would be surprised to read: 9979 # /* config.h. Generated automatically by config.status. */ 9980 if test x"$ac_file" = x-; then 9981 echo "/* Generated automatically by configure. */" >$tmp/config.h 9982 else 9983 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 9984 fi 9985 cat $tmp/in >>$tmp/config.h 9986 rm -f $tmp/in 9987 if test x"$ac_file" != x-; then 9988 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 9989 { echo "$as_me:9989: $ac_file is unchanged" >&5 9990echo "$as_me: $ac_file is unchanged" >&6;} 9991 else 9992 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9993 X"$ac_file" : 'X\(//\)[^/]' \| \ 9994 X"$ac_file" : 'X\(//\)$' \| \ 9995 X"$ac_file" : 'X\(/\)' \| \ 9996 . : '\(.\)' 2>/dev/null || 9997echo X"$ac_file" | 9998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9999 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10000 /^X\(\/\/\)$/{ s//\1/; q; } 10001 /^X\(\/\).*/{ s//\1/; q; } 10002 s/.*/./; q'` 10003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 10004 { case "$ac_dir" in 10005 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 10006 *) as_incr_dir=.;; 10007esac 10008as_dummy="$ac_dir" 10009for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 10010 case $as_mkdir_dir in 10011 # Skip DOS drivespec 10012 ?:) as_incr_dir=$as_mkdir_dir ;; 10013 *) 10014 as_incr_dir=$as_incr_dir/$as_mkdir_dir 10015 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 10016 ;; 10017 esac 10018done; } 10019 10020 fi 10021 rm -f $ac_file 10022 mv $tmp/config.h $ac_file 10023 fi 10024 else 10025 cat $tmp/config.h 10026 rm -f $tmp/config.h 10027 fi 10028done 10029EOF 10030 10031cat >>$CONFIG_STATUS <<\EOF 10032 10033{ (exit 0); exit 0; } 10034EOF 10035chmod +x $CONFIG_STATUS 10036ac_clean_files=$ac_clean_files_save 10037 10038# configure is writing to config.log, and then calls config.status. 10039# config.status does its own redirection, appending to config.log. 10040# Unfortunately, on DOS this fails, as config.log is still kept open 10041# by configure, so config.status won't be able to write to it; its 10042# output is simply discarded. So we exec the FD to /dev/null, 10043# effectively closing config.log, so it can be properly (re)opened and 10044# appended to by config.status. When coming back to configure, we 10045# need to make the FD available again. 10046if test "$no_create" != yes; then 10047 ac_cs_success=: 10048 exec 5>/dev/null 10049 $SHELL $CONFIG_STATUS || ac_cs_success=false 10050 exec 5>>config.log 10051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10052 # would make configure fail if this is the last instruction. 10053 $ac_cs_success || { (exit 1); exit 1; } 10054fi 10055 10056