1#! /bin/sh 2# From configure.in Revision: 1.10 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52.20101002. 5# 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10 11# Avoid depending upon Character Ranges. 12as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15as_cr_digits='0123456789' 16as_cr_alnum=$as_cr_Letters$as_cr_digits 17 18# Sed expression to map a string onto a valid variable name. 19as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20 21# Sed expression to map a string onto a valid CPP name. 22as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23 24# Be Bourne compatible 25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26 emulate sh 27 NULLCMD=: 28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29 set -o posix 30fi 31 32# Name of the executable. 33as_me=`echo "$0" |sed 's,.*[\\/],,'` 34 35if expr a : '\(a\)' >/dev/null 2>&1; then 36 as_expr=expr 37else 38 as_expr=false 39fi 40 41rm -f conf$$ conf$$.exe conf$$.file 42echo >conf$$.file 43if ln -s conf$$.file conf$$ 2>/dev/null; then 44 # We could just check for DJGPP; but this test a) works b) is more generic 45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46 if test -f conf$$.exe; then 47 # Don't use ln at all; we don't have any links 48 as_ln_s='cp -p' 49 else 50 as_ln_s='ln -s' 51 fi 52elif ln conf$$.file conf$$ 2>/dev/null; then 53 as_ln_s=ln 54else 55 as_ln_s='cp -p' 56fi 57rm -f conf$$ conf$$.exe conf$$.file 58 59as_executable_p="test -f" 60 61# Support unset when possible. 62if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63 as_unset=unset 64else 65 as_unset=false 66fi 67 68# NLS nuisances. 69$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77 78# IFS 79# We need space, tab and new line, in precisely that order. 80as_nl=' 81' 82IFS=" $as_nl" 83 84# CDPATH. 85$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86 87# Name of the host. 88# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89# so uname gets run too. 90ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91 92exec 6>&1 93 94# 95# Initializations. 96# 97ac_default_prefix=/usr/local 98cross_compiling=no 99subdirs= 100MFLAGS= MAKEFLAGS= 101SHELL=${CONFIG_SHELL-/bin/sh} 102 103# Maximum number of lines to put in a shell here document. 104# This variable seems obsolete. It should probably be removed, and 105# only ac_max_sed_lines should be used. 106: ${ac_max_here_lines=38} 107 108ac_unique_file="main.c" 109 110# Initialize some variables set by options. 111ac_init_help= 112ac_init_version=false 113# The variables have the same names as the options, with 114# dashes changed to underlines. 115cache_file=/dev/null 116exec_prefix=NONE 117no_create= 118no_recursion= 119prefix=NONE 120program_prefix=NONE 121program_suffix=NONE 122program_transform_name=s,x,x, 123silent= 124site= 125srcdir= 126verbose= 127x_includes=NONE 128x_libraries=NONE 129 130# Installation directory options. 131# These are left unexpanded so users can "make install exec_prefix=/foo" 132# and all the variables that are supposed to be based on exec_prefix 133# by default will actually change. 134# Use braces instead of parens because sh, perl, etc. also accept them. 135bindir='${exec_prefix}/bin' 136sbindir='${exec_prefix}/sbin' 137libexecdir='${exec_prefix}/libexec' 138datadir='${prefix}/share' 139sysconfdir='${prefix}/etc' 140sharedstatedir='${prefix}/com' 141localstatedir='${prefix}/var' 142libdir='${exec_prefix}/lib' 143includedir='${prefix}/include' 144oldincludedir='/usr/include' 145infodir='${prefix}/info' 146mandir='${prefix}/man' 147 148# Identity of this package. 149PACKAGE_NAME= 150PACKAGE_TARNAME= 151PACKAGE_VERSION= 152PACKAGE_STRING= 153PACKAGE_BUGREPORT= 154 155ac_prev= 156for ac_option 157do 158 # If the previous option needs an argument, assign it. 159 if test -n "$ac_prev"; then 160 eval "$ac_prev=\$ac_option" 161 ac_prev= 162 continue 163 fi 164 165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 166 167 # Accept the important Cygnus configure options, so we can diagnose typos. 168 169 case $ac_option in 170 171 -bindir | --bindir | --bindi | --bind | --bin | --bi) 172 ac_prev=bindir ;; 173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 174 bindir=$ac_optarg ;; 175 176 -build | --build | --buil | --bui | --bu) 177 ac_prev=build_alias ;; 178 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 179 build_alias=$ac_optarg ;; 180 181 -cache-file | --cache-file | --cache-fil | --cache-fi \ 182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 183 ac_prev=cache_file ;; 184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 186 cache_file=$ac_optarg ;; 187 188 --config-cache | -C) 189 cache_file=config.cache ;; 190 191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 192 ac_prev=datadir ;; 193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 194 | --da=*) 195 datadir=$ac_optarg ;; 196 197 -disable-* | --disable-*) 198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 199 # Reject names that are not valid shell variable names. 200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 202 { (exit 1); exit 1; }; } 203 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 204 eval "enable_$ac_feature=no" ;; 205 206 -enable-* | --enable-*) 207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 208 # Reject names that are not valid shell variable names. 209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 211 { (exit 1); exit 1; }; } 212 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 213 case $ac_option in 214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 215 *) ac_optarg=yes ;; 216 esac 217 eval "enable_$ac_feature='$ac_optarg'" ;; 218 219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 221 | --exec | --exe | --ex) 222 ac_prev=exec_prefix ;; 223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 225 | --exec=* | --exe=* | --ex=*) 226 exec_prefix=$ac_optarg ;; 227 228 -gas | --gas | --ga | --g) 229 # Obsolete; use --with-gas. 230 with_gas=yes ;; 231 232 -help | --help | --hel | --he | -h) 233 ac_init_help=long ;; 234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 235 ac_init_help=recursive ;; 236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 237 ac_init_help=short ;; 238 239 -host | --host | --hos | --ho) 240 ac_prev=host_alias ;; 241 -host=* | --host=* | --hos=* | --ho=*) 242 host_alias=$ac_optarg ;; 243 244 -includedir | --includedir | --includedi | --included | --include \ 245 | --includ | --inclu | --incl | --inc) 246 ac_prev=includedir ;; 247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 248 | --includ=* | --inclu=* | --incl=* | --inc=*) 249 includedir=$ac_optarg ;; 250 251 -infodir | --infodir | --infodi | --infod | --info | --inf) 252 ac_prev=infodir ;; 253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 254 infodir=$ac_optarg ;; 255 256 -libdir | --libdir | --libdi | --libd) 257 ac_prev=libdir ;; 258 -libdir=* | --libdir=* | --libdi=* | --libd=*) 259 libdir=$ac_optarg ;; 260 261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 262 | --libexe | --libex | --libe) 263 ac_prev=libexecdir ;; 264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 265 | --libexe=* | --libex=* | --libe=*) 266 libexecdir=$ac_optarg ;; 267 268 -localstatedir | --localstatedir | --localstatedi | --localstated \ 269 | --localstate | --localstat | --localsta | --localst \ 270 | --locals | --local | --loca | --loc | --lo) 271 ac_prev=localstatedir ;; 272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 275 localstatedir=$ac_optarg ;; 276 277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 278 ac_prev=mandir ;; 279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 280 mandir=$ac_optarg ;; 281 282 -nfp | --nfp | --nf) 283 # Obsolete; use --without-fp. 284 with_fp=no ;; 285 286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 287 | --no-cr | --no-c) 288 no_create=yes ;; 289 290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 292 no_recursion=yes ;; 293 294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 296 | --oldin | --oldi | --old | --ol | --o) 297 ac_prev=oldincludedir ;; 298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 301 oldincludedir=$ac_optarg ;; 302 303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 304 ac_prev=prefix ;; 305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 306 prefix=$ac_optarg ;; 307 308 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 309 | --program-pre | --program-pr | --program-p) 310 ac_prev=program_prefix ;; 311 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 313 program_prefix=$ac_optarg ;; 314 315 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 316 | --program-suf | --program-su | --program-s) 317 ac_prev=program_suffix ;; 318 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 320 program_suffix=$ac_optarg ;; 321 322 -program-transform-name | --program-transform-name \ 323 | --program-transform-nam | --program-transform-na \ 324 | --program-transform-n | --program-transform- \ 325 | --program-transform | --program-transfor \ 326 | --program-transfo | --program-transf \ 327 | --program-trans | --program-tran \ 328 | --progr-tra | --program-tr | --program-t) 329 ac_prev=program_transform_name ;; 330 -program-transform-name=* | --program-transform-name=* \ 331 | --program-transform-nam=* | --program-transform-na=* \ 332 | --program-transform-n=* | --program-transform-=* \ 333 | --program-transform=* | --program-transfor=* \ 334 | --program-transfo=* | --program-transf=* \ 335 | --program-trans=* | --program-tran=* \ 336 | --progr-tra=* | --program-tr=* | --program-t=*) 337 program_transform_name=$ac_optarg ;; 338 339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 340 | -silent | --silent | --silen | --sile | --sil) 341 silent=yes ;; 342 343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 344 ac_prev=sbindir ;; 345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 346 | --sbi=* | --sb=*) 347 sbindir=$ac_optarg ;; 348 349 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 351 | --sharedst | --shareds | --shared | --share | --shar \ 352 | --sha | --sh) 353 ac_prev=sharedstatedir ;; 354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 357 | --sha=* | --sh=*) 358 sharedstatedir=$ac_optarg ;; 359 360 -site | --site | --sit) 361 ac_prev=site ;; 362 -site=* | --site=* | --sit=*) 363 site=$ac_optarg ;; 364 365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 366 ac_prev=srcdir ;; 367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 368 srcdir=$ac_optarg ;; 369 370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 371 | --syscon | --sysco | --sysc | --sys | --sy) 372 ac_prev=sysconfdir ;; 373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 375 sysconfdir=$ac_optarg ;; 376 377 -target | --target | --targe | --targ | --tar | --ta | --t) 378 ac_prev=target_alias ;; 379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 380 target_alias=$ac_optarg ;; 381 382 -v | -verbose | --verbose | --verbos | --verbo | --verb) 383 verbose=yes ;; 384 385 -version | --version | --versio | --versi | --vers | -V) 386 ac_init_version=: ;; 387 388 -with-* | --with-*) 389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 390 # Reject names that are not valid shell variable names. 391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 392 { echo "$as_me: error: invalid package name: $ac_package" >&2 393 { (exit 1); exit 1; }; } 394 ac_package=`echo $ac_package| sed 's/-/_/g'` 395 case $ac_option in 396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 397 *) ac_optarg=yes ;; 398 esac 399 eval "with_$ac_package='$ac_optarg'" ;; 400 401 -without-* | --without-*) 402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 403 # Reject names that are not valid shell variable names. 404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 405 { echo "$as_me: error: invalid package name: $ac_package" >&2 406 { (exit 1); exit 1; }; } 407 ac_package=`echo $ac_package | sed 's/-/_/g'` 408 eval "with_$ac_package=no" ;; 409 410 --x) 411 # Obsolete; use --with-x. 412 with_x=yes ;; 413 414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 415 | --x-incl | --x-inc | --x-in | --x-i) 416 ac_prev=x_includes ;; 417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 419 x_includes=$ac_optarg ;; 420 421 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 423 ac_prev=x_libraries ;; 424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 426 x_libraries=$ac_optarg ;; 427 428 -*) { echo "$as_me: error: unrecognized option: $ac_option 429Try \`$0 --help' for more information." >&2 430 { (exit 1); exit 1; }; } 431 ;; 432 433 *=*) 434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 435 # Reject names that are not valid shell variable names. 436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 438 { (exit 1); exit 1; }; } 439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 440 eval "$ac_envvar='$ac_optarg'" 441 export $ac_envvar ;; 442 443 *) 444 # FIXME: should be removed in autoconf 3.0. 445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 449 ;; 450 451 esac 452done 453 454if test -n "$ac_prev"; then 455 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 456 { echo "$as_me: error: missing argument to $ac_option" >&2 457 { (exit 1); exit 1; }; } 458fi 459 460# Be sure to have absolute paths. 461for ac_var in exec_prefix prefix 462do 463 eval ac_val=$`echo $ac_var` 464 case $ac_val in 465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 467 { (exit 1); exit 1; }; };; 468 esac 469done 470 471# Be sure to have absolute paths. 472for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 473 localstatedir libdir includedir oldincludedir infodir mandir 474do 475 eval ac_val=$`echo $ac_var` 476 case $ac_val in 477 [\\/$]* | ?:[\\/]* ) ;; 478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 479 { (exit 1); exit 1; }; };; 480 esac 481done 482 483# There might be people who depend on the old broken behavior: `$host' 484# used to hold the argument of --host etc. 485build=$build_alias 486host=$host_alias 487target=$target_alias 488 489# FIXME: should be removed in autoconf 3.0. 490if test "x$host_alias" != x; then 491 if test "x$build_alias" = x; then 492 cross_compiling=maybe 493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 494 If a cross compiler is detected then cross compile mode will be used." >&2 495 elif test "x$build_alias" != "x$host_alias"; then 496 cross_compiling=yes 497 fi 498fi 499 500ac_tool_prefix= 501test -n "$host_alias" && ac_tool_prefix=$host_alias- 502 503test "$silent" = yes && exec 6>/dev/null 504 505# Find the source files, if location was not specified. 506if test -z "$srcdir"; then 507 ac_srcdir_defaulted=yes 508 # Try the directory containing this script, then its parent. 509 ac_prog=$0 510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 512 srcdir=$ac_confdir 513 if test ! -r $srcdir/$ac_unique_file; then 514 srcdir=.. 515 fi 516else 517 ac_srcdir_defaulted=no 518fi 519if test ! -r $srcdir/$ac_unique_file; then 520 if test "$ac_srcdir_defaulted" = yes; then 521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 522 { (exit 1); exit 1; }; } 523 else 524 { echo "$as_me: error: cannot find sources in $srcdir" >&2 525 { (exit 1); exit 1; }; } 526 fi 527fi 528srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 529ac_env_build_alias_set=${build_alias+set} 530ac_env_build_alias_value=$build_alias 531ac_cv_env_build_alias_set=${build_alias+set} 532ac_cv_env_build_alias_value=$build_alias 533ac_env_host_alias_set=${host_alias+set} 534ac_env_host_alias_value=$host_alias 535ac_cv_env_host_alias_set=${host_alias+set} 536ac_cv_env_host_alias_value=$host_alias 537ac_env_target_alias_set=${target_alias+set} 538ac_env_target_alias_value=$target_alias 539ac_cv_env_target_alias_set=${target_alias+set} 540ac_cv_env_target_alias_value=$target_alias 541ac_env_CC_set=${CC+set} 542ac_env_CC_value=$CC 543ac_cv_env_CC_set=${CC+set} 544ac_cv_env_CC_value=$CC 545ac_env_CFLAGS_set=${CFLAGS+set} 546ac_env_CFLAGS_value=$CFLAGS 547ac_cv_env_CFLAGS_set=${CFLAGS+set} 548ac_cv_env_CFLAGS_value=$CFLAGS 549ac_env_LDFLAGS_set=${LDFLAGS+set} 550ac_env_LDFLAGS_value=$LDFLAGS 551ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 552ac_cv_env_LDFLAGS_value=$LDFLAGS 553ac_env_CPPFLAGS_set=${CPPFLAGS+set} 554ac_env_CPPFLAGS_value=$CPPFLAGS 555ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 556ac_cv_env_CPPFLAGS_value=$CPPFLAGS 557ac_env_CPP_set=${CPP+set} 558ac_env_CPP_value=$CPP 559ac_cv_env_CPP_set=${CPP+set} 560ac_cv_env_CPP_value=$CPP 561 562# 563# Report the --help message. 564# 565if test "$ac_init_help" = "long"; then 566 # Omit some internal or obsolete options to make the list less imposing. 567 # This message is too long to be a string in the A/UX 3.1 sh. 568 cat <<EOF 569\`configure' configures this package to adapt to many kinds of systems. 570 571Usage: $0 [OPTION]... [VAR=VALUE]... 572 573To assign environment variables (e.g., CC, CFLAGS...), specify them as 574VAR=VALUE. See below for descriptions of some of the useful variables. 575 576Defaults for the options are specified in brackets. 577 578Configuration: 579 -h, --help display this help and exit 580 --help=short display options specific to this package 581 --help=recursive display the short help of all the included packages 582 -V, --version display version information and exit 583 -q, --quiet, --silent do not print \`checking...' messages 584 --cache-file=FILE cache test results in FILE [disabled] 585 -C, --config-cache alias for \`--cache-file=config.cache' 586 -n, --no-create do not create output files 587 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 588 589EOF 590 591 cat <<EOF 592Installation directories: 593 --prefix=PREFIX install architecture-independent files in PREFIX 594 [$ac_default_prefix] 595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 596 [PREFIX] 597 598By default, \`make install' will install all the files in 599\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 600an installation prefix other than \`$ac_default_prefix' using \`--prefix', 601for instance \`--prefix=\$HOME'. 602 603For better control, use the options below. 604 605Fine tuning of the installation directories: 606 --bindir=DIR user executables [EPREFIX/bin] 607 --sbindir=DIR system admin executables [EPREFIX/sbin] 608 --libexecdir=DIR program executables [EPREFIX/libexec] 609 --datadir=DIR read-only architecture-independent data [PREFIX/share] 610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 612 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 613 --libdir=DIR object code libraries [EPREFIX/lib] 614 --includedir=DIR C header files [PREFIX/include] 615 --oldincludedir=DIR C header files for non-gcc [/usr/include] 616 --infodir=DIR info documentation [PREFIX/info] 617 --mandir=DIR man documentation [PREFIX/man] 618EOF 619 620 cat <<\EOF 621 622Program names: 623 --program-prefix=PREFIX prepend PREFIX to installed program names 624 --program-suffix=SUFFIX append SUFFIX to installed program names 625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 626 627System types: 628 --build=BUILD configure for building on BUILD [guessed] 629 --host=HOST build programs to run on HOST [BUILD] 630 --target=TARGET configure for building compilers for TARGET [HOST] 631EOF 632fi 633 634if test -n "$ac_init_help"; then 635 636 cat <<\EOF 637 638Optional Packages: 639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 641 642Optional Features: 643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 645 646 --with-warnings test: turn on gcc warnings 647 --disable-echo display "compiling" commands 648 --with-dmalloc test: use Gray Watson's dmalloc library 649 --with-dbmalloc test: use Conor Cahill's dbmalloc library 650 --with-valgrind test: use valgrind 651 --disable-leaks test: free permanent memory, analyze leaks 652 653Some influential environment variables: 654 CC C compiler command 655 CFLAGS C compiler flags 656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 657 nonstandard directory <lib dir> 658 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 659 headers in a nonstandard directory <include dir> 660 CPP C preprocessor 661 662Use these variables to override the choices made by `configure' or to help 663it to find libraries and programs with nonstandard names/locations. 664 665EOF 666fi 667 668if test "$ac_init_help" = "recursive"; then 669 # If there are subdirs, report their specific --help. 670 ac_popdir=`pwd` 671 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 672 cd $ac_subdir 673 # A "../" for each directory in /$ac_subdir. 674 ac_dots=`echo $ac_subdir | 675 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 676 677 case $srcdir in 678 .) # No --srcdir option. We are building in place. 679 ac_sub_srcdir=$srcdir ;; 680 [\\/]* | ?:[\\/]* ) # Absolute path. 681 ac_sub_srcdir=$srcdir/$ac_subdir ;; 682 *) # Relative path. 683 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 684 esac 685 686 # Check for guested configure; otherwise get Cygnus style configure. 687 if test -f $ac_sub_srcdir/configure.gnu; then 688 echo 689 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 690 elif test -f $ac_sub_srcdir/configure; then 691 echo 692 $SHELL $ac_sub_srcdir/configure --help=recursive 693 elif test -f $ac_sub_srcdir/configure.ac || 694 test -f $ac_sub_srcdir/configure.in; then 695 echo 696 $ac_configure --help 697 else 698 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 699 fi 700 cd $ac_popdir 701 done 702fi 703 704test -n "$ac_init_help" && exit 0 705if $ac_init_version; then 706 cat <<\EOF 707 708Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 709Free Software Foundation, Inc. 710This configure script is free software; the Free Software Foundation 711gives unlimited permission to copy, distribute and modify it. 712EOF 713 exit 0 714fi 715exec 5>config.log 716cat >&5 <<EOF 717This file contains any messages produced by compilers while 718running configure, to aid debugging if configure makes a mistake. 719 720It was created by $as_me, which was 721generated by GNU Autoconf 2.52.20101002. Invocation command line was 722 723 $ $0 $@ 724 725EOF 726{ 727cat <<_ASUNAME 728## ---------- ## 729## Platform. ## 730## ---------- ## 731 732hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 733uname -m = `(uname -m) 2>/dev/null || echo unknown` 734uname -r = `(uname -r) 2>/dev/null || echo unknown` 735uname -s = `(uname -s) 2>/dev/null || echo unknown` 736uname -v = `(uname -v) 2>/dev/null || echo unknown` 737 738/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 739/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 740 741/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 742/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 743/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 744hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 745/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 746/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 747/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 748 749PATH = $PATH 750 751_ASUNAME 752} >&5 753 754cat >&5 <<EOF 755## ------------ ## 756## Core tests. ## 757## ------------ ## 758 759EOF 760 761# Keep a trace of the command line. 762# Strip out --no-create and --no-recursion so they do not pile up. 763# Also quote any args containing shell meta-characters. 764ac_configure_args= 765ac_sep= 766for ac_arg 767do 768 case $ac_arg in 769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 770 | --no-cr | --no-c) ;; 771 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 772 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 773 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 774 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 775 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 776 ac_sep=" " ;; 777 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 778 ac_sep=" " ;; 779 esac 780 # Get rid of the leading space. 781done 782 783# When interrupted or exit'd, cleanup temporary files, and complete 784# config.log. We remove comments because anyway the quotes in there 785# would cause problems or look ugly. 786trap 'exit_status=$? 787 # Save into config.log some information that might help in debugging. 788 echo >&5 789 echo "## ----------------- ##" >&5 790 echo "## Cache variables. ##" >&5 791 echo "## ----------------- ##" >&5 792 echo >&5 793 # The following way of writing the cache mishandles newlines in values, 794{ 795 (set) 2>&1 | 796 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 797 *ac_space=\ *) 798 sed -n \ 799 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 801 ;; 802 *) 803 sed -n \ 804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 805 ;; 806 esac; 807} >&5 808 sed "/^$/d" confdefs.h >conftest.log 809 if test -s conftest.log; then 810 echo >&5 811 echo "## ------------ ##" >&5 812 echo "## confdefs.h. ##" >&5 813 echo "## ------------ ##" >&5 814 echo >&5 815 cat conftest.log >&5 816 fi 817 (echo; echo) >&5 818 test "$ac_signal" != 0 && 819 echo "$as_me: caught signal $ac_signal" >&5 820 echo "$as_me: exit $exit_status" >&5 821 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 822 exit $exit_status 823 ' 0 824for ac_signal in 1 2 13 15; do 825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 826done 827ac_signal=0 828 829# confdefs.h avoids OS command line length limits that DEFS can exceed. 830rm -rf conftest* confdefs.h 831# AIX cpp loses on an empty file, so make sure it contains at least a newline. 832echo >confdefs.h 833 834# Let the site file select an alternate cache file if it wants to. 835# Prefer explicitly selected file to automatically selected ones. 836if test -z "$CONFIG_SITE"; then 837 if test "x$prefix" != xNONE; then 838 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 839 else 840 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 841 fi 842fi 843for ac_site_file in $CONFIG_SITE; do 844 if test -r "$ac_site_file"; then 845 { echo "$as_me:845: loading site script $ac_site_file" >&5 846echo "$as_me: loading site script $ac_site_file" >&6;} 847 cat "$ac_site_file" >&5 848 . "$ac_site_file" 849 fi 850done 851 852if test -r "$cache_file"; then 853 # Some versions of bash will fail to source /dev/null (special 854 # files actually), so we avoid doing that. 855 if test -f "$cache_file"; then 856 { echo "$as_me:856: loading cache $cache_file" >&5 857echo "$as_me: loading cache $cache_file" >&6;} 858 case $cache_file in 859 [\\/]* | ?:[\\/]* ) . $cache_file;; 860 *) . ./$cache_file;; 861 esac 862 fi 863else 864 { echo "$as_me:864: creating cache $cache_file" >&5 865echo "$as_me: creating cache $cache_file" >&6;} 866 >$cache_file 867fi 868 869# Check that the precious variables saved in the cache have kept the same 870# value. 871ac_cache_corrupted=false 872for ac_var in `(set) 2>&1 | 873 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 874 eval ac_old_set=\$ac_cv_env_${ac_var}_set 875 eval ac_new_set=\$ac_env_${ac_var}_set 876 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 877 eval ac_new_val="\$ac_env_${ac_var}_value" 878 case $ac_old_set,$ac_new_set in 879 set,) 880 { echo "$as_me:880: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 881echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 882 ac_cache_corrupted=: ;; 883 ,set) 884 { echo "$as_me:884: error: \`$ac_var' was not set in the previous run" >&5 885echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 886 ac_cache_corrupted=: ;; 887 ,);; 888 *) 889 if test "x$ac_old_val" != "x$ac_new_val"; then 890 { echo "$as_me:890: error: \`$ac_var' has changed since the previous run:" >&5 891echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 892 { echo "$as_me:892: former value: $ac_old_val" >&5 893echo "$as_me: former value: $ac_old_val" >&2;} 894 { echo "$as_me:894: current value: $ac_new_val" >&5 895echo "$as_me: current value: $ac_new_val" >&2;} 896 ac_cache_corrupted=: 897 fi;; 898 esac 899 # Pass precious variables to config.status. It doesn't matter if 900 # we pass some twice (in addition to the command line arguments). 901 if test "$ac_new_set" = set; then 902 case $ac_new_val in 903 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 904 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 905 ac_configure_args="$ac_configure_args '$ac_arg'" 906 ;; 907 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 908 ;; 909 esac 910 fi 911done 912if $ac_cache_corrupted; then 913 { echo "$as_me:913: error: changes in the environment can compromise the build" >&5 914echo "$as_me: error: changes in the environment can compromise the build" >&2;} 915 { { echo "$as_me:915: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 916echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 917 { (exit 1); exit 1; }; } 918fi 919 920ac_ext=c 921ac_cpp='$CPP $CPPFLAGS' 922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 924ac_compiler_gnu=$ac_cv_c_compiler_gnu 925ac_main_return=return 926 927case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 928 *c*,-n*) ECHO_N= ECHO_C=' 929' ECHO_T=' ' ;; 930 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 931 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 932esac 933echo "#! $SHELL" >conftest.sh 934echo "exit 0" >>conftest.sh 935chmod +x conftest.sh 936if { (echo "$as_me:936: PATH=\".;.\"; conftest.sh") >&5 937 (PATH=".;."; conftest.sh) 2>&5 938 ac_status=$? 939 echo "$as_me:939: \$? = $ac_status" >&5 940 (exit $ac_status); }; then 941 ac_path_separator=';' 942else 943 ac_path_separator=: 944fi 945PATH_SEPARATOR="$ac_path_separator" 946rm -f conftest.sh 947 948ac_config_headers="$ac_config_headers config.h:config_h.in" 949 950ac_aux_dir= 951for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 952 if test -f $ac_dir/install-sh; then 953 ac_aux_dir=$ac_dir 954 ac_install_sh="$ac_aux_dir/install-sh -c" 955 break 956 elif test -f $ac_dir/install.sh; then 957 ac_aux_dir=$ac_dir 958 ac_install_sh="$ac_aux_dir/install.sh -c" 959 break 960 elif test -f $ac_dir/shtool; then 961 ac_aux_dir=$ac_dir 962 ac_install_sh="$ac_aux_dir/shtool install -c" 963 break 964 fi 965done 966if test -z "$ac_aux_dir"; then 967 { { echo "$as_me:967: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 968echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 969 { (exit 1); exit 1; }; } 970fi 971ac_config_guess="$SHELL $ac_aux_dir/config.guess" 972ac_config_sub="$SHELL $ac_aux_dir/config.sub" 973ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 974 975# Make sure we can run config.sub. 976$ac_config_sub sun4 >/dev/null 2>&1 || 977 { { echo "$as_me:977: error: cannot run $ac_config_sub" >&5 978echo "$as_me: error: cannot run $ac_config_sub" >&2;} 979 { (exit 1); exit 1; }; } 980 981echo "$as_me:981: checking build system type" >&5 982echo $ECHO_N "checking build system type... $ECHO_C" >&6 983if test "${ac_cv_build+set}" = set; then 984 echo $ECHO_N "(cached) $ECHO_C" >&6 985else 986 ac_cv_build_alias=$build_alias 987test -z "$ac_cv_build_alias" && 988 ac_cv_build_alias=`$ac_config_guess` 989test -z "$ac_cv_build_alias" && 990 { { echo "$as_me:990: error: cannot guess build type; you must specify one" >&5 991echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 992 { (exit 1); exit 1; }; } 993ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 994 { { echo "$as_me:994: error: $ac_config_sub $ac_cv_build_alias failed." >&5 995echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 996 { (exit 1); exit 1; }; } 997 998fi 999echo "$as_me:999: result: $ac_cv_build" >&5 1000echo "${ECHO_T}$ac_cv_build" >&6 1001build=$ac_cv_build 1002build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1003build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1004build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1005 1006echo "$as_me:1006: checking host system type" >&5 1007echo $ECHO_N "checking host system type... $ECHO_C" >&6 1008if test "${ac_cv_host+set}" = set; then 1009 echo $ECHO_N "(cached) $ECHO_C" >&6 1010else 1011 ac_cv_host_alias=$host_alias 1012test -z "$ac_cv_host_alias" && 1013 ac_cv_host_alias=$ac_cv_build_alias 1014ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1015 { { echo "$as_me:1015: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1016echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1017 { (exit 1); exit 1; }; } 1018 1019fi 1020echo "$as_me:1020: result: $ac_cv_host" >&5 1021echo "${ECHO_T}$ac_cv_host" >&6 1022host=$ac_cv_host 1023host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1024host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1025host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1026 1027if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1028 echo "$as_me:1028: checking target system type" >&5 1029echo $ECHO_N "checking target system type... $ECHO_C" >&6 1030if test "${ac_cv_target+set}" = set; then 1031 echo $ECHO_N "(cached) $ECHO_C" >&6 1032else 1033 ac_cv_target_alias=$target_alias 1034test "x$ac_cv_target_alias" = "x" && 1035 ac_cv_target_alias=$ac_cv_host_alias 1036ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1037 { { echo "$as_me:1037: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1038echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1039 { (exit 1); exit 1; }; } 1040 1041fi 1042echo "$as_me:1042: result: $ac_cv_target" >&5 1043echo "${ECHO_T}$ac_cv_target" >&6 1044target=$ac_cv_target 1045target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1046target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1047target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1048 1049# The aliases save the names the user supplied, while $host etc. 1050# will get canonicalized. 1051test -n "$target_alias" && 1052 test "$program_prefix$program_suffix$program_transform_name" = \ 1053 NONENONEs,x,x, && 1054 program_prefix=${target_alias}- 1055 system_name="$host_os" 1056else 1057 system_name="`(uname -s -r) 2>/dev/null`" 1058 if test -z "$system_name" ; then 1059 system_name="`(hostname) 2>/dev/null`" 1060 fi 1061fi 1062test -n "$system_name" && cat >>confdefs.h <<EOF 1063#define SYSTEM_NAME "$system_name" 1064EOF 1065 1066if test "${cf_cv_system_name+set}" = set; then 1067 echo $ECHO_N "(cached) $ECHO_C" >&6 1068else 1069 cf_cv_system_name="$system_name" 1070fi 1071 1072test -z "$system_name" && system_name="$cf_cv_system_name" 1073test -n "$cf_cv_system_name" && echo "$as_me:1073: result: Configuring for $cf_cv_system_name" >&5 1074echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1075 1076if test ".$system_name" != ".$cf_cv_system_name" ; then 1077 echo "$as_me:1077: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1078echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1079 { { echo "$as_me:1079: error: \"Please remove config.cache and try again.\"" >&5 1080echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1081 { (exit 1); exit 1; }; } 1082fi 1083 1084test "$program_prefix" != NONE && 1085 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1086# Use a double $ so make ignores it. 1087test "$program_suffix" != NONE && 1088 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1089# Double any \ or $. echo might interpret backslashes. 1090# By default was `s,x,x', remove it if useless. 1091cat <<\_ACEOF >conftest.sed 1092s/[\\$]/&&/g;s/;s,x,x,$// 1093_ACEOF 1094program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1095rm conftest.sed 1096 1097ac_ext=c 1098ac_cpp='$CPP $CPPFLAGS' 1099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1101ac_compiler_gnu=$ac_cv_c_compiler_gnu 1102ac_main_return=return 1103if test -n "$ac_tool_prefix"; then 1104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1105set dummy ${ac_tool_prefix}gcc; ac_word=$2 1106echo "$as_me:1106: checking for $ac_word" >&5 1107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1108if test "${ac_cv_prog_CC+set}" = set; then 1109 echo $ECHO_N "(cached) $ECHO_C" >&6 1110else 1111 if test -n "$CC"; then 1112 ac_cv_prog_CC="$CC" # Let the user override the test. 1113else 1114 ac_save_IFS=$IFS; IFS=$ac_path_separator 1115ac_dummy="$PATH" 1116for ac_dir in $ac_dummy; do 1117 IFS=$ac_save_IFS 1118 test -z "$ac_dir" && ac_dir=. 1119 $as_executable_p "$ac_dir/$ac_word" || continue 1120ac_cv_prog_CC="${ac_tool_prefix}gcc" 1121echo "$as_me:1121: found $ac_dir/$ac_word" >&5 1122break 1123done 1124 1125fi 1126fi 1127CC=$ac_cv_prog_CC 1128if test -n "$CC"; then 1129 echo "$as_me:1129: result: $CC" >&5 1130echo "${ECHO_T}$CC" >&6 1131else 1132 echo "$as_me:1132: result: no" >&5 1133echo "${ECHO_T}no" >&6 1134fi 1135 1136fi 1137if test -z "$ac_cv_prog_CC"; then 1138 ac_ct_CC=$CC 1139 # Extract the first word of "gcc", so it can be a program name with args. 1140set dummy gcc; ac_word=$2 1141echo "$as_me:1141: checking for $ac_word" >&5 1142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1144 echo $ECHO_N "(cached) $ECHO_C" >&6 1145else 1146 if test -n "$ac_ct_CC"; then 1147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1148else 1149 ac_save_IFS=$IFS; IFS=$ac_path_separator 1150ac_dummy="$PATH" 1151for ac_dir in $ac_dummy; do 1152 IFS=$ac_save_IFS 1153 test -z "$ac_dir" && ac_dir=. 1154 $as_executable_p "$ac_dir/$ac_word" || continue 1155ac_cv_prog_ac_ct_CC="gcc" 1156echo "$as_me:1156: found $ac_dir/$ac_word" >&5 1157break 1158done 1159 1160fi 1161fi 1162ac_ct_CC=$ac_cv_prog_ac_ct_CC 1163if test -n "$ac_ct_CC"; then 1164 echo "$as_me:1164: result: $ac_ct_CC" >&5 1165echo "${ECHO_T}$ac_ct_CC" >&6 1166else 1167 echo "$as_me:1167: result: no" >&5 1168echo "${ECHO_T}no" >&6 1169fi 1170 1171 CC=$ac_ct_CC 1172else 1173 CC="$ac_cv_prog_CC" 1174fi 1175 1176if test -z "$CC"; then 1177 if test -n "$ac_tool_prefix"; then 1178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1179set dummy ${ac_tool_prefix}cc; ac_word=$2 1180echo "$as_me:1180: checking for $ac_word" >&5 1181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1182if test "${ac_cv_prog_CC+set}" = set; then 1183 echo $ECHO_N "(cached) $ECHO_C" >&6 1184else 1185 if test -n "$CC"; then 1186 ac_cv_prog_CC="$CC" # Let the user override the test. 1187else 1188 ac_save_IFS=$IFS; IFS=$ac_path_separator 1189ac_dummy="$PATH" 1190for ac_dir in $ac_dummy; do 1191 IFS=$ac_save_IFS 1192 test -z "$ac_dir" && ac_dir=. 1193 $as_executable_p "$ac_dir/$ac_word" || continue 1194ac_cv_prog_CC="${ac_tool_prefix}cc" 1195echo "$as_me:1195: found $ac_dir/$ac_word" >&5 1196break 1197done 1198 1199fi 1200fi 1201CC=$ac_cv_prog_CC 1202if test -n "$CC"; then 1203 echo "$as_me:1203: result: $CC" >&5 1204echo "${ECHO_T}$CC" >&6 1205else 1206 echo "$as_me:1206: result: no" >&5 1207echo "${ECHO_T}no" >&6 1208fi 1209 1210fi 1211if test -z "$ac_cv_prog_CC"; then 1212 ac_ct_CC=$CC 1213 # Extract the first word of "cc", so it can be a program name with args. 1214set dummy cc; ac_word=$2 1215echo "$as_me:1215: checking for $ac_word" >&5 1216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1218 echo $ECHO_N "(cached) $ECHO_C" >&6 1219else 1220 if test -n "$ac_ct_CC"; then 1221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1222else 1223 ac_save_IFS=$IFS; IFS=$ac_path_separator 1224ac_dummy="$PATH" 1225for ac_dir in $ac_dummy; do 1226 IFS=$ac_save_IFS 1227 test -z "$ac_dir" && ac_dir=. 1228 $as_executable_p "$ac_dir/$ac_word" || continue 1229ac_cv_prog_ac_ct_CC="cc" 1230echo "$as_me:1230: found $ac_dir/$ac_word" >&5 1231break 1232done 1233 1234fi 1235fi 1236ac_ct_CC=$ac_cv_prog_ac_ct_CC 1237if test -n "$ac_ct_CC"; then 1238 echo "$as_me:1238: result: $ac_ct_CC" >&5 1239echo "${ECHO_T}$ac_ct_CC" >&6 1240else 1241 echo "$as_me:1241: result: no" >&5 1242echo "${ECHO_T}no" >&6 1243fi 1244 1245 CC=$ac_ct_CC 1246else 1247 CC="$ac_cv_prog_CC" 1248fi 1249 1250fi 1251if test -z "$CC"; then 1252 # Extract the first word of "cc", so it can be a program name with args. 1253set dummy cc; ac_word=$2 1254echo "$as_me:1254: checking for $ac_word" >&5 1255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1256if test "${ac_cv_prog_CC+set}" = set; then 1257 echo $ECHO_N "(cached) $ECHO_C" >&6 1258else 1259 if test -n "$CC"; then 1260 ac_cv_prog_CC="$CC" # Let the user override the test. 1261else 1262 ac_prog_rejected=no 1263 ac_save_IFS=$IFS; IFS=$ac_path_separator 1264ac_dummy="$PATH" 1265for ac_dir in $ac_dummy; do 1266 IFS=$ac_save_IFS 1267 test -z "$ac_dir" && ac_dir=. 1268 $as_executable_p "$ac_dir/$ac_word" || continue 1269if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1270 ac_prog_rejected=yes 1271 continue 1272fi 1273ac_cv_prog_CC="cc" 1274echo "$as_me:1274: found $ac_dir/$ac_word" >&5 1275break 1276done 1277 1278if test $ac_prog_rejected = yes; then 1279 # We found a bogon in the path, so make sure we never use it. 1280 set dummy $ac_cv_prog_CC 1281 shift 1282 if test $# != 0; then 1283 # We chose a different compiler from the bogus one. 1284 # However, it has the same basename, so the bogon will be chosen 1285 # first if we set CC to just the basename; use the full file name. 1286 shift 1287 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1288 shift 1289 ac_cv_prog_CC="$@" 1290 fi 1291fi 1292fi 1293fi 1294CC=$ac_cv_prog_CC 1295if test -n "$CC"; then 1296 echo "$as_me:1296: result: $CC" >&5 1297echo "${ECHO_T}$CC" >&6 1298else 1299 echo "$as_me:1299: result: no" >&5 1300echo "${ECHO_T}no" >&6 1301fi 1302 1303fi 1304if test -z "$CC"; then 1305 if test -n "$ac_tool_prefix"; then 1306 for ac_prog in cl 1307 do 1308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1310echo "$as_me:1310: checking for $ac_word" >&5 1311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1312if test "${ac_cv_prog_CC+set}" = set; then 1313 echo $ECHO_N "(cached) $ECHO_C" >&6 1314else 1315 if test -n "$CC"; then 1316 ac_cv_prog_CC="$CC" # Let the user override the test. 1317else 1318 ac_save_IFS=$IFS; IFS=$ac_path_separator 1319ac_dummy="$PATH" 1320for ac_dir in $ac_dummy; do 1321 IFS=$ac_save_IFS 1322 test -z "$ac_dir" && ac_dir=. 1323 $as_executable_p "$ac_dir/$ac_word" || continue 1324ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1325echo "$as_me:1325: found $ac_dir/$ac_word" >&5 1326break 1327done 1328 1329fi 1330fi 1331CC=$ac_cv_prog_CC 1332if test -n "$CC"; then 1333 echo "$as_me:1333: result: $CC" >&5 1334echo "${ECHO_T}$CC" >&6 1335else 1336 echo "$as_me:1336: result: no" >&5 1337echo "${ECHO_T}no" >&6 1338fi 1339 1340 test -n "$CC" && break 1341 done 1342fi 1343if test -z "$CC"; then 1344 ac_ct_CC=$CC 1345 for ac_prog in cl 1346do 1347 # Extract the first word of "$ac_prog", so it can be a program name with args. 1348set dummy $ac_prog; ac_word=$2 1349echo "$as_me:1349: checking for $ac_word" >&5 1350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1352 echo $ECHO_N "(cached) $ECHO_C" >&6 1353else 1354 if test -n "$ac_ct_CC"; then 1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1356else 1357 ac_save_IFS=$IFS; IFS=$ac_path_separator 1358ac_dummy="$PATH" 1359for ac_dir in $ac_dummy; do 1360 IFS=$ac_save_IFS 1361 test -z "$ac_dir" && ac_dir=. 1362 $as_executable_p "$ac_dir/$ac_word" || continue 1363ac_cv_prog_ac_ct_CC="$ac_prog" 1364echo "$as_me:1364: found $ac_dir/$ac_word" >&5 1365break 1366done 1367 1368fi 1369fi 1370ac_ct_CC=$ac_cv_prog_ac_ct_CC 1371if test -n "$ac_ct_CC"; then 1372 echo "$as_me:1372: result: $ac_ct_CC" >&5 1373echo "${ECHO_T}$ac_ct_CC" >&6 1374else 1375 echo "$as_me:1375: result: no" >&5 1376echo "${ECHO_T}no" >&6 1377fi 1378 1379 test -n "$ac_ct_CC" && break 1380done 1381 1382 CC=$ac_ct_CC 1383fi 1384 1385fi 1386 1387test -z "$CC" && { { echo "$as_me:1387: error: no acceptable cc found in \$PATH" >&5 1388echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1389 { (exit 1); exit 1; }; } 1390 1391# Provide some information about the compiler. 1392echo "$as_me:1392:" \ 1393 "checking for C compiler version" >&5 1394ac_compiler=`set X $ac_compile; echo $2` 1395{ (eval echo "$as_me:1395: \"$ac_compiler --version </dev/null >&5\"") >&5 1396 (eval $ac_compiler --version </dev/null >&5) 2>&5 1397 ac_status=$? 1398 echo "$as_me:1398: \$? = $ac_status" >&5 1399 (exit $ac_status); } 1400{ (eval echo "$as_me:1400: \"$ac_compiler -v </dev/null >&5\"") >&5 1401 (eval $ac_compiler -v </dev/null >&5) 2>&5 1402 ac_status=$? 1403 echo "$as_me:1403: \$? = $ac_status" >&5 1404 (exit $ac_status); } 1405{ (eval echo "$as_me:1405: \"$ac_compiler -V </dev/null >&5\"") >&5 1406 (eval $ac_compiler -V </dev/null >&5) 2>&5 1407 ac_status=$? 1408 echo "$as_me:1408: \$? = $ac_status" >&5 1409 (exit $ac_status); } 1410 1411cat >conftest.$ac_ext <<_ACEOF 1412#line 1412 "configure" 1413#include "confdefs.h" 1414 1415int 1416main () 1417{ 1418 1419 ; 1420 return 0; 1421} 1422_ACEOF 1423ac_clean_files_save=$ac_clean_files 1424ac_clean_files="$ac_clean_files a.out a.exe" 1425# Try to create an executable without -o first, disregard a.out. 1426# It will help us diagnose broken compilers, and finding out an intuition 1427# of exeext. 1428echo "$as_me:1428: checking for C compiler default output" >&5 1429echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1430ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1431if { (eval echo "$as_me:1431: \"$ac_link_default\"") >&5 1432 (eval $ac_link_default) 2>&5 1433 ac_status=$? 1434 echo "$as_me:1434: \$? = $ac_status" >&5 1435 (exit $ac_status); }; then 1436 # Find the output, starting from the most likely. This scheme is 1437# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1438# resort. 1439for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1440 ls a.out conftest 2>/dev/null; 1441 ls a.* conftest.* 2>/dev/null`; do 1442 case $ac_file in 1443 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1444 a.out ) # We found the default executable, but exeext='' is most 1445 # certainly right. 1446 break;; 1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1448 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1449 export ac_cv_exeext 1450 break;; 1451 * ) break;; 1452 esac 1453done 1454else 1455 echo "$as_me: failed program was:" >&5 1456cat conftest.$ac_ext >&5 1457{ { echo "$as_me:1457: error: C compiler cannot create executables" >&5 1458echo "$as_me: error: C compiler cannot create executables" >&2;} 1459 { (exit 77); exit 77; }; } 1460fi 1461 1462ac_exeext=$ac_cv_exeext 1463echo "$as_me:1463: result: $ac_file" >&5 1464echo "${ECHO_T}$ac_file" >&6 1465 1466# Check the compiler produces executables we can run. If not, either 1467# the compiler is broken, or we cross compile. 1468echo "$as_me:1468: checking whether the C compiler works" >&5 1469echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1470# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1471# If not cross compiling, check that we can run a simple program. 1472if test "$cross_compiling" != yes; then 1473 if { ac_try='./$ac_file' 1474 { (eval echo "$as_me:1474: \"$ac_try\"") >&5 1475 (eval $ac_try) 2>&5 1476 ac_status=$? 1477 echo "$as_me:1477: \$? = $ac_status" >&5 1478 (exit $ac_status); }; }; then 1479 cross_compiling=no 1480 else 1481 if test "$cross_compiling" = maybe; then 1482 cross_compiling=yes 1483 else 1484 { { echo "$as_me:1484: error: cannot run C compiled programs. 1485If you meant to cross compile, use \`--host'." >&5 1486echo "$as_me: error: cannot run C compiled programs. 1487If you meant to cross compile, use \`--host'." >&2;} 1488 { (exit 1); exit 1; }; } 1489 fi 1490 fi 1491fi 1492echo "$as_me:1492: result: yes" >&5 1493echo "${ECHO_T}yes" >&6 1494 1495rm -f a.out a.exe conftest$ac_cv_exeext 1496ac_clean_files=$ac_clean_files_save 1497# Check the compiler produces executables we can run. If not, either 1498# the compiler is broken, or we cross compile. 1499echo "$as_me:1499: checking whether we are cross compiling" >&5 1500echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1501echo "$as_me:1501: result: $cross_compiling" >&5 1502echo "${ECHO_T}$cross_compiling" >&6 1503 1504echo "$as_me:1504: checking for executable suffix" >&5 1505echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1506if { (eval echo "$as_me:1506: \"$ac_link\"") >&5 1507 (eval $ac_link) 2>&5 1508 ac_status=$? 1509 echo "$as_me:1509: \$? = $ac_status" >&5 1510 (exit $ac_status); }; then 1511 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1512# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1513# work properly (i.e., refer to `conftest.exe'), while it won't with 1514# `rm'. 1515for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1516 case $ac_file in 1517 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1519 export ac_cv_exeext 1520 break;; 1521 * ) break;; 1522 esac 1523done 1524else 1525 { { echo "$as_me:1525: error: cannot compute EXEEXT: cannot compile and link" >&5 1526echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1527 { (exit 1); exit 1; }; } 1528fi 1529 1530rm -f conftest$ac_cv_exeext 1531echo "$as_me:1531: result: $ac_cv_exeext" >&5 1532echo "${ECHO_T}$ac_cv_exeext" >&6 1533 1534rm -f conftest.$ac_ext 1535EXEEXT=$ac_cv_exeext 1536ac_exeext=$EXEEXT 1537echo "$as_me:1537: checking for object suffix" >&5 1538echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1539if test "${ac_cv_objext+set}" = set; then 1540 echo $ECHO_N "(cached) $ECHO_C" >&6 1541else 1542 cat >conftest.$ac_ext <<_ACEOF 1543#line 1543 "configure" 1544#include "confdefs.h" 1545 1546int 1547main () 1548{ 1549 1550 ; 1551 return 0; 1552} 1553_ACEOF 1554rm -f conftest.o conftest.obj 1555if { (eval echo "$as_me:1555: \"$ac_compile\"") >&5 1556 (eval $ac_compile) 2>&5 1557 ac_status=$? 1558 echo "$as_me:1558: \$? = $ac_status" >&5 1559 (exit $ac_status); }; then 1560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1561 case $ac_file in 1562 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1564 break;; 1565 esac 1566done 1567else 1568 echo "$as_me: failed program was:" >&5 1569cat conftest.$ac_ext >&5 1570{ { echo "$as_me:1570: error: cannot compute OBJEXT: cannot compile" >&5 1571echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1572 { (exit 1); exit 1; }; } 1573fi 1574 1575rm -f conftest.$ac_cv_objext conftest.$ac_ext 1576fi 1577echo "$as_me:1577: result: $ac_cv_objext" >&5 1578echo "${ECHO_T}$ac_cv_objext" >&6 1579OBJEXT=$ac_cv_objext 1580ac_objext=$OBJEXT 1581echo "$as_me:1581: checking whether we are using the GNU C compiler" >&5 1582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1583if test "${ac_cv_c_compiler_gnu+set}" = set; then 1584 echo $ECHO_N "(cached) $ECHO_C" >&6 1585else 1586 cat >conftest.$ac_ext <<_ACEOF 1587#line 1587 "configure" 1588#include "confdefs.h" 1589 1590int 1591main () 1592{ 1593#ifndef __GNUC__ 1594 choke me 1595#endif 1596 1597 ; 1598 return 0; 1599} 1600_ACEOF 1601rm -f conftest.$ac_objext 1602if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5 1603 (eval $ac_compile) 2>&5 1604 ac_status=$? 1605 echo "$as_me:1605: \$? = $ac_status" >&5 1606 (exit $ac_status); } && 1607 { ac_try='test -s conftest.$ac_objext' 1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5 1609 (eval $ac_try) 2>&5 1610 ac_status=$? 1611 echo "$as_me:1611: \$? = $ac_status" >&5 1612 (exit $ac_status); }; }; then 1613 ac_compiler_gnu=yes 1614else 1615 echo "$as_me: failed program was:" >&5 1616cat conftest.$ac_ext >&5 1617ac_compiler_gnu=no 1618fi 1619rm -f conftest.$ac_objext conftest.$ac_ext 1620ac_cv_c_compiler_gnu=$ac_compiler_gnu 1621 1622fi 1623echo "$as_me:1623: result: $ac_cv_c_compiler_gnu" >&5 1624echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1625GCC=`test $ac_compiler_gnu = yes && echo yes` 1626ac_test_CFLAGS=${CFLAGS+set} 1627ac_save_CFLAGS=$CFLAGS 1628CFLAGS="-g" 1629echo "$as_me:1629: checking whether $CC accepts -g" >&5 1630echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1631if test "${ac_cv_prog_cc_g+set}" = set; then 1632 echo $ECHO_N "(cached) $ECHO_C" >&6 1633else 1634 cat >conftest.$ac_ext <<_ACEOF 1635#line 1635 "configure" 1636#include "confdefs.h" 1637 1638int 1639main () 1640{ 1641 1642 ; 1643 return 0; 1644} 1645_ACEOF 1646rm -f conftest.$ac_objext 1647if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5 1648 (eval $ac_compile) 2>&5 1649 ac_status=$? 1650 echo "$as_me:1650: \$? = $ac_status" >&5 1651 (exit $ac_status); } && 1652 { ac_try='test -s conftest.$ac_objext' 1653 { (eval echo "$as_me:1653: \"$ac_try\"") >&5 1654 (eval $ac_try) 2>&5 1655 ac_status=$? 1656 echo "$as_me:1656: \$? = $ac_status" >&5 1657 (exit $ac_status); }; }; then 1658 ac_cv_prog_cc_g=yes 1659else 1660 echo "$as_me: failed program was:" >&5 1661cat conftest.$ac_ext >&5 1662ac_cv_prog_cc_g=no 1663fi 1664rm -f conftest.$ac_objext conftest.$ac_ext 1665fi 1666echo "$as_me:1666: result: $ac_cv_prog_cc_g" >&5 1667echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1668if test "$ac_test_CFLAGS" = set; then 1669 CFLAGS=$ac_save_CFLAGS 1670elif test $ac_cv_prog_cc_g = yes; then 1671 if test "$GCC" = yes; then 1672 CFLAGS="-g -O2" 1673 else 1674 CFLAGS="-g" 1675 fi 1676else 1677 if test "$GCC" = yes; then 1678 CFLAGS="-O2" 1679 else 1680 CFLAGS= 1681 fi 1682fi 1683# Some people use a C++ compiler to compile C. Since we use `exit', 1684# in C++ we need to declare it. In case someone uses the same compiler 1685# for both compiling C and C++ we need to have the C++ compiler decide 1686# the declaration of exit, since it's the most demanding environment. 1687cat >conftest.$ac_ext <<_ACEOF 1688#ifndef __cplusplus 1689 choke me 1690#endif 1691_ACEOF 1692rm -f conftest.$ac_objext 1693if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5 1694 (eval $ac_compile) 2>&5 1695 ac_status=$? 1696 echo "$as_me:1696: \$? = $ac_status" >&5 1697 (exit $ac_status); } && 1698 { ac_try='test -s conftest.$ac_objext' 1699 { (eval echo "$as_me:1699: \"$ac_try\"") >&5 1700 (eval $ac_try) 2>&5 1701 ac_status=$? 1702 echo "$as_me:1702: \$? = $ac_status" >&5 1703 (exit $ac_status); }; }; then 1704 for ac_declaration in \ 1705 ''\ 1706 '#include <stdlib.h>' \ 1707 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1708 'extern "C" void std::exit (int); using std::exit;' \ 1709 'extern "C" void exit (int) throw ();' \ 1710 'extern "C" void exit (int);' \ 1711 'void exit (int);' 1712do 1713 cat >conftest.$ac_ext <<_ACEOF 1714#line 1714 "configure" 1715#include "confdefs.h" 1716#include <stdlib.h> 1717$ac_declaration 1718int 1719main () 1720{ 1721exit (42); 1722 ; 1723 return 0; 1724} 1725_ACEOF 1726rm -f conftest.$ac_objext 1727if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5 1728 (eval $ac_compile) 2>&5 1729 ac_status=$? 1730 echo "$as_me:1730: \$? = $ac_status" >&5 1731 (exit $ac_status); } && 1732 { ac_try='test -s conftest.$ac_objext' 1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5 1734 (eval $ac_try) 2>&5 1735 ac_status=$? 1736 echo "$as_me:1736: \$? = $ac_status" >&5 1737 (exit $ac_status); }; }; then 1738 : 1739else 1740 echo "$as_me: failed program was:" >&5 1741cat conftest.$ac_ext >&5 1742continue 1743fi 1744rm -f conftest.$ac_objext conftest.$ac_ext 1745 cat >conftest.$ac_ext <<_ACEOF 1746#line 1746 "configure" 1747#include "confdefs.h" 1748$ac_declaration 1749int 1750main () 1751{ 1752exit (42); 1753 ; 1754 return 0; 1755} 1756_ACEOF 1757rm -f conftest.$ac_objext 1758if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5 1759 (eval $ac_compile) 2>&5 1760 ac_status=$? 1761 echo "$as_me:1761: \$? = $ac_status" >&5 1762 (exit $ac_status); } && 1763 { ac_try='test -s conftest.$ac_objext' 1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5 1765 (eval $ac_try) 2>&5 1766 ac_status=$? 1767 echo "$as_me:1767: \$? = $ac_status" >&5 1768 (exit $ac_status); }; }; then 1769 break 1770else 1771 echo "$as_me: failed program was:" >&5 1772cat conftest.$ac_ext >&5 1773fi 1774rm -f conftest.$ac_objext conftest.$ac_ext 1775done 1776rm -rf conftest* 1777if test -n "$ac_declaration"; then 1778 echo '#ifdef __cplusplus' >>confdefs.h 1779 echo $ac_declaration >>confdefs.h 1780 echo '#endif' >>confdefs.h 1781fi 1782 1783else 1784 echo "$as_me: failed program was:" >&5 1785cat conftest.$ac_ext >&5 1786fi 1787rm -f conftest.$ac_objext conftest.$ac_ext 1788ac_ext=c 1789ac_cpp='$CPP $CPPFLAGS' 1790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1792ac_compiler_gnu=$ac_cv_c_compiler_gnu 1793ac_main_return=return 1794 1795echo "$as_me:1795: checking for $CC option to accept ANSI C" >&5 1796echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1797if test "${ac_cv_prog_cc_stdc+set}" = set; then 1798 echo $ECHO_N "(cached) $ECHO_C" >&6 1799else 1800 ac_cv_prog_cc_stdc=no 1801ac_save_CC=$CC 1802cat >conftest.$ac_ext <<_ACEOF 1803#line 1803 "configure" 1804#include "confdefs.h" 1805#include <stdarg.h> 1806#include <stdio.h> 1807#include <sys/types.h> 1808#include <sys/stat.h> 1809/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1810struct buf { int x; }; 1811FILE * (*rcsopen) (struct buf *, struct stat *, int); 1812static char *e (p, i) 1813 char **p; 1814 int i; 1815{ 1816 return p[i]; 1817} 1818static char *f (char * (*g) (char **, int), char **p, ...) 1819{ 1820 char *s; 1821 va_list v; 1822 va_start (v,p); 1823 s = g (p, va_arg (v,int)); 1824 va_end (v); 1825 return s; 1826} 1827int test (int i, double x); 1828struct s1 {int (*f) (int a);}; 1829struct s2 {int (*f) (double a);}; 1830int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1831int argc; 1832char **argv; 1833int 1834main () 1835{ 1836return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841# Don't try gcc -ansi; that turns off useful extensions and 1842# breaks some systems' header files. 1843# AIX -qlanglvl=ansi 1844# Ultrix and OSF/1 -std1 1845# HP-UX 10.20 and later -Ae 1846# HP-UX older versions -Aa -D_HPUX_SOURCE 1847# SVR4 -Xc -D__EXTENSIONS__ 1848for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1849do 1850 CC="$ac_save_CC $ac_arg" 1851 rm -f conftest.$ac_objext 1852if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5 1853 (eval $ac_compile) 2>&5 1854 ac_status=$? 1855 echo "$as_me:1855: \$? = $ac_status" >&5 1856 (exit $ac_status); } && 1857 { ac_try='test -s conftest.$ac_objext' 1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5 1859 (eval $ac_try) 2>&5 1860 ac_status=$? 1861 echo "$as_me:1861: \$? = $ac_status" >&5 1862 (exit $ac_status); }; }; then 1863 ac_cv_prog_cc_stdc=$ac_arg 1864break 1865else 1866 echo "$as_me: failed program was:" >&5 1867cat conftest.$ac_ext >&5 1868fi 1869rm -f conftest.$ac_objext 1870done 1871rm -f conftest.$ac_ext conftest.$ac_objext 1872CC=$ac_save_CC 1873 1874fi 1875 1876case "x$ac_cv_prog_cc_stdc" in 1877 x|xno) 1878 echo "$as_me:1878: result: none needed" >&5 1879echo "${ECHO_T}none needed" >&6 ;; 1880 *) 1881 echo "$as_me:1881: result: $ac_cv_prog_cc_stdc" >&5 1882echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1883 CC="$CC $ac_cv_prog_cc_stdc" ;; 1884esac 1885 1886echo "$as_me:1886: checking for an ANSI C-conforming const" >&5 1887echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 1888if test "${ac_cv_c_const+set}" = set; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 cat >conftest.$ac_ext <<_ACEOF 1892#line 1892 "configure" 1893#include "confdefs.h" 1894 1895int 1896main () 1897{ 1898/* FIXME: Include the comments suggested by Paul. */ 1899#ifndef __cplusplus 1900 /* Ultrix mips cc rejects this. */ 1901 typedef int charset[2]; 1902 const charset x; 1903 /* SunOS 4.1.1 cc rejects this. */ 1904 char const *const *ccp; 1905 char **p; 1906 /* NEC SVR4.0.2 mips cc rejects this. */ 1907 struct point {int x, y;}; 1908 static struct point const zero = {0,0}; 1909 /* AIX XL C 1.02.0.0 rejects this. 1910 It does not let you subtract one const X* pointer from another in 1911 an arm of an if-expression whose if-part is not a constant 1912 expression */ 1913 const char *g = "string"; 1914 ccp = &g + (g ? g-g : 0); 1915 /* HPUX 7.0 cc rejects these. */ 1916 ++ccp; 1917 p = (char**) ccp; 1918 ccp = (char const *const *) p; 1919 { /* SCO 3.2v4 cc rejects this. */ 1920 char *t; 1921 char const *s = 0 ? (char *) 0 : (char const *) 0; 1922 1923 *t++ = 0; 1924 } 1925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1926 int x[] = {25, 17}; 1927 const int *foo = &x[0]; 1928 ++foo; 1929 } 1930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1931 typedef const int *iptr; 1932 iptr p = 0; 1933 ++p; 1934 } 1935 { /* AIX XL C 1.02.0.0 rejects this saying 1936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1937 struct s { int j; const int *ap[3]; }; 1938 struct s *b; b->j = 5; 1939 } 1940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1941 const int foo = 10; 1942 } 1943#endif 1944 1945 ; 1946 return 0; 1947} 1948_ACEOF 1949rm -f conftest.$ac_objext 1950if { (eval echo "$as_me:1950: \"$ac_compile\"") >&5 1951 (eval $ac_compile) 2>&5 1952 ac_status=$? 1953 echo "$as_me:1953: \$? = $ac_status" >&5 1954 (exit $ac_status); } && 1955 { ac_try='test -s conftest.$ac_objext' 1956 { (eval echo "$as_me:1956: \"$ac_try\"") >&5 1957 (eval $ac_try) 2>&5 1958 ac_status=$? 1959 echo "$as_me:1959: \$? = $ac_status" >&5 1960 (exit $ac_status); }; }; then 1961 ac_cv_c_const=yes 1962else 1963 echo "$as_me: failed program was:" >&5 1964cat conftest.$ac_ext >&5 1965ac_cv_c_const=no 1966fi 1967rm -f conftest.$ac_objext conftest.$ac_ext 1968fi 1969echo "$as_me:1969: result: $ac_cv_c_const" >&5 1970echo "${ECHO_T}$ac_cv_c_const" >&6 1971if test $ac_cv_c_const = no; then 1972 1973cat >>confdefs.h <<\EOF 1974#define const 1975EOF 1976 1977fi 1978 1979echo "$as_me:1979: checking whether ${MAKE-make} sets \${MAKE}" >&5 1980echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1981set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1982if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 cat >conftest.make <<\EOF 1986all: 1987 @echo 'ac_maketemp="${MAKE}"' 1988EOF 1989# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1990eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1991if test -n "$ac_maketemp"; then 1992 eval ac_cv_prog_make_${ac_make}_set=yes 1993else 1994 eval ac_cv_prog_make_${ac_make}_set=no 1995fi 1996rm -f conftest.make 1997fi 1998if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1999 echo "$as_me:1999: result: yes" >&5 2000echo "${ECHO_T}yes" >&6 2001 SET_MAKE= 2002else 2003 echo "$as_me:2003: result: no" >&5 2004echo "${ECHO_T}no" >&6 2005 SET_MAKE="MAKE=${MAKE-make}" 2006fi 2007 2008# Find a good install program. We prefer a C program (faster), 2009# so one script is as good as another. But avoid the broken or 2010# incompatible versions: 2011# SysV /etc/install, /usr/sbin/install 2012# SunOS /usr/etc/install 2013# IRIX /sbin/install 2014# AIX /bin/install 2015# AmigaOS /C/install, which installs bootblocks on floppy discs 2016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2017# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2019# ./install, which can be erroneously created by make from ./install.sh. 2020echo "$as_me:2020: checking for a BSD compatible install" >&5 2021echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2022if test -z "$INSTALL"; then 2023if test "${ac_cv_path_install+set}" = set; then 2024 echo $ECHO_N "(cached) $ECHO_C" >&6 2025else 2026 ac_save_IFS=$IFS; IFS=$ac_path_separator 2027 for ac_dir in $PATH; do 2028 IFS=$ac_save_IFS 2029 # Account for people who put trailing slashes in PATH elements. 2030 case $ac_dir/ in 2031 / | ./ | .// | /cC/* \ 2032 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2033 | /usr/ucb/* ) ;; 2034 *) 2035 # OSF1 and SCO ODT 3.0 have their own names for install. 2036 # Don't use installbsd from OSF since it installs stuff as root 2037 # by default. 2038 for ac_prog in ginstall scoinst install; do 2039 if $as_executable_p "$ac_dir/$ac_prog"; then 2040 if test $ac_prog = install && 2041 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2042 # AIX install. It has an incompatible calling convention. 2043 : 2044 elif test $ac_prog = install && 2045 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2046 # program-specific install script used by HP pwplus--don't use. 2047 : 2048 else 2049 ac_cv_path_install="$ac_dir/$ac_prog -c" 2050 break 2 2051 fi 2052 fi 2053 done 2054 ;; 2055 esac 2056 done 2057 2058fi 2059 if test "${ac_cv_path_install+set}" = set; then 2060 INSTALL=$ac_cv_path_install 2061 else 2062 # As a last resort, use the slow shell script. We don't cache a 2063 # path for INSTALL within a source directory, because that will 2064 # break other packages using the cache if that directory is 2065 # removed, or if the path is relative. 2066 INSTALL=$ac_install_sh 2067 fi 2068fi 2069echo "$as_me:2069: result: $INSTALL" >&5 2070echo "${ECHO_T}$INSTALL" >&6 2071 2072# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2073# It thinks the first close brace ends the variable substitution. 2074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2075 2076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2077 2078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2079 2080echo "$as_me:2080: checking if filesystem supports mixed-case filenames" >&5 2081echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2082if test "${cf_cv_mixedcase+set}" = set; then 2083 echo $ECHO_N "(cached) $ECHO_C" >&6 2084else 2085 2086if test "$cross_compiling" = yes ; then 2087 case $target_alias in #(vi 2088 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi 2089 cf_cv_mixedcase=no 2090 ;; 2091 *) 2092 cf_cv_mixedcase=yes 2093 ;; 2094 esac 2095else 2096 rm -f conftest CONFTEST 2097 echo test >conftest 2098 if test -f CONFTEST ; then 2099 cf_cv_mixedcase=no 2100 else 2101 cf_cv_mixedcase=yes 2102 fi 2103 rm -f conftest CONFTEST 2104fi 2105 2106fi 2107echo "$as_me:2107: result: $cf_cv_mixedcase" >&5 2108echo "${ECHO_T}$cf_cv_mixedcase" >&6 2109test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF 2110#define MIXEDCASE_FILENAMES 1 2111EOF 2112 2113for ac_prog in exctags ctags 2114do 2115 # Extract the first word of "$ac_prog", so it can be a program name with args. 2116set dummy $ac_prog; ac_word=$2 2117echo "$as_me:2117: checking for $ac_word" >&5 2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2119if test "${ac_cv_prog_CTAGS+set}" = set; then 2120 echo $ECHO_N "(cached) $ECHO_C" >&6 2121else 2122 if test -n "$CTAGS"; then 2123 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2124else 2125 ac_save_IFS=$IFS; IFS=$ac_path_separator 2126ac_dummy="$PATH" 2127for ac_dir in $ac_dummy; do 2128 IFS=$ac_save_IFS 2129 test -z "$ac_dir" && ac_dir=. 2130 $as_executable_p "$ac_dir/$ac_word" || continue 2131ac_cv_prog_CTAGS="$ac_prog" 2132echo "$as_me:2132: found $ac_dir/$ac_word" >&5 2133break 2134done 2135 2136fi 2137fi 2138CTAGS=$ac_cv_prog_CTAGS 2139if test -n "$CTAGS"; then 2140 echo "$as_me:2140: result: $CTAGS" >&5 2141echo "${ECHO_T}$CTAGS" >&6 2142else 2143 echo "$as_me:2143: result: no" >&5 2144echo "${ECHO_T}no" >&6 2145fi 2146 2147 test -n "$CTAGS" && break 2148done 2149 2150for ac_prog in exetags etags 2151do 2152 # Extract the first word of "$ac_prog", so it can be a program name with args. 2153set dummy $ac_prog; ac_word=$2 2154echo "$as_me:2154: checking for $ac_word" >&5 2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2156if test "${ac_cv_prog_ETAGS+set}" = set; then 2157 echo $ECHO_N "(cached) $ECHO_C" >&6 2158else 2159 if test -n "$ETAGS"; then 2160 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2161else 2162 ac_save_IFS=$IFS; IFS=$ac_path_separator 2163ac_dummy="$PATH" 2164for ac_dir in $ac_dummy; do 2165 IFS=$ac_save_IFS 2166 test -z "$ac_dir" && ac_dir=. 2167 $as_executable_p "$ac_dir/$ac_word" || continue 2168ac_cv_prog_ETAGS="$ac_prog" 2169echo "$as_me:2169: found $ac_dir/$ac_word" >&5 2170break 2171done 2172 2173fi 2174fi 2175ETAGS=$ac_cv_prog_ETAGS 2176if test -n "$ETAGS"; then 2177 echo "$as_me:2177: result: $ETAGS" >&5 2178echo "${ECHO_T}$ETAGS" >&6 2179else 2180 echo "$as_me:2180: result: no" >&5 2181echo "${ECHO_T}no" >&6 2182fi 2183 2184 test -n "$ETAGS" && break 2185done 2186 2187# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2188set dummy ${CTAGS:-ctags}; ac_word=$2 2189echo "$as_me:2189: checking for $ac_word" >&5 2190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2191if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2192 echo $ECHO_N "(cached) $ECHO_C" >&6 2193else 2194 if test -n "$MAKE_LOWER_TAGS"; then 2195 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2196else 2197 ac_save_IFS=$IFS; IFS=$ac_path_separator 2198ac_dummy="$PATH" 2199for ac_dir in $ac_dummy; do 2200 IFS=$ac_save_IFS 2201 test -z "$ac_dir" && ac_dir=. 2202 $as_executable_p "$ac_dir/$ac_word" || continue 2203ac_cv_prog_MAKE_LOWER_TAGS="yes" 2204echo "$as_me:2204: found $ac_dir/$ac_word" >&5 2205break 2206done 2207 2208 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2209fi 2210fi 2211MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2212if test -n "$MAKE_LOWER_TAGS"; then 2213 echo "$as_me:2213: result: $MAKE_LOWER_TAGS" >&5 2214echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2215else 2216 echo "$as_me:2216: result: no" >&5 2217echo "${ECHO_T}no" >&6 2218fi 2219 2220if test "$cf_cv_mixedcase" = yes ; then 2221 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2222set dummy ${ETAGS:-etags}; ac_word=$2 2223echo "$as_me:2223: checking for $ac_word" >&5 2224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2225if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 if test -n "$MAKE_UPPER_TAGS"; then 2229 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2230else 2231 ac_save_IFS=$IFS; IFS=$ac_path_separator 2232ac_dummy="$PATH" 2233for ac_dir in $ac_dummy; do 2234 IFS=$ac_save_IFS 2235 test -z "$ac_dir" && ac_dir=. 2236 $as_executable_p "$ac_dir/$ac_word" || continue 2237ac_cv_prog_MAKE_UPPER_TAGS="yes" 2238echo "$as_me:2238: found $ac_dir/$ac_word" >&5 2239break 2240done 2241 2242 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2243fi 2244fi 2245MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2246if test -n "$MAKE_UPPER_TAGS"; then 2247 echo "$as_me:2247: result: $MAKE_UPPER_TAGS" >&5 2248echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2249else 2250 echo "$as_me:2250: result: no" >&5 2251echo "${ECHO_T}no" >&6 2252fi 2253 2254else 2255 MAKE_UPPER_TAGS=no 2256fi 2257 2258if test "$MAKE_UPPER_TAGS" = yes ; then 2259 MAKE_UPPER_TAGS= 2260else 2261 MAKE_UPPER_TAGS="#" 2262fi 2263 2264if test "$MAKE_LOWER_TAGS" = yes ; then 2265 MAKE_LOWER_TAGS= 2266else 2267 MAKE_LOWER_TAGS="#" 2268fi 2269 2270for ac_prog in tdlint lint alint splint lclint 2271do 2272 # Extract the first word of "$ac_prog", so it can be a program name with args. 2273set dummy $ac_prog; ac_word=$2 2274echo "$as_me:2274: checking for $ac_word" >&5 2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2276if test "${ac_cv_prog_LINT+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 if test -n "$LINT"; then 2280 ac_cv_prog_LINT="$LINT" # Let the user override the test. 2281else 2282 ac_save_IFS=$IFS; IFS=$ac_path_separator 2283ac_dummy="$PATH" 2284for ac_dir in $ac_dummy; do 2285 IFS=$ac_save_IFS 2286 test -z "$ac_dir" && ac_dir=. 2287 $as_executable_p "$ac_dir/$ac_word" || continue 2288ac_cv_prog_LINT="$ac_prog" 2289echo "$as_me:2289: found $ac_dir/$ac_word" >&5 2290break 2291done 2292 2293fi 2294fi 2295LINT=$ac_cv_prog_LINT 2296if test -n "$LINT"; then 2297 echo "$as_me:2297: result: $LINT" >&5 2298echo "${ECHO_T}$LINT" >&6 2299else 2300 echo "$as_me:2300: result: no" >&5 2301echo "${ECHO_T}no" >&6 2302fi 2303 2304 test -n "$LINT" && break 2305done 2306 2307# This should have been defined by AC_PROG_CC 2308: ${CC:=cc} 2309 2310# Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content 2311# into CC. This will not help with broken scripts that wrap the compiler with 2312# options, but eliminates a more common category of user confusion. 2313echo "$as_me:2313: checking \$CC variable" >&5 2314echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 2315case "$CC" in #(vi 2316*[\ \ ]-[IUD]*) 2317 echo "$as_me:2317: result: broken" >&5 2318echo "${ECHO_T}broken" >&6 2319 { echo "$as_me:2319: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 2320echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 2321 # humor him... 2322 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 2323 CC=`echo "$CC" | sed -e 's/[ ].*//'` 2324 2325cf_fix_cppflags=no 2326cf_new_cflags= 2327cf_new_cppflags= 2328cf_new_extra_cppflags= 2329 2330for cf_add_cflags in $cf_flags 2331do 2332case $cf_fix_cppflags in 2333no) 2334 case $cf_add_cflags in #(vi 2335 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2336 case $cf_add_cflags in 2337 -D*) 2338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2339 2340 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2341 && test -z "${cf_tst_cflags}" \ 2342 && cf_fix_cppflags=yes 2343 2344 if test $cf_fix_cppflags = yes ; then 2345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2346 continue 2347 elif test "${cf_tst_cflags}" = "\"'" ; then 2348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2349 continue 2350 fi 2351 ;; 2352 esac 2353 case "$CPPFLAGS" in 2354 *$cf_add_cflags) #(vi 2355 ;; 2356 *) #(vi 2357 case $cf_add_cflags in #(vi 2358 -D*) 2359 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2360 2361CPPFLAGS=`echo "$CPPFLAGS" | \ 2362 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2363 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2364 2365 ;; 2366 esac 2367 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2368 ;; 2369 esac 2370 ;; 2371 *) 2372 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2373 ;; 2374 esac 2375 ;; 2376yes) 2377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2378 2379 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2380 2381 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2382 && test -z "${cf_tst_cflags}" \ 2383 && cf_fix_cppflags=no 2384 ;; 2385esac 2386done 2387 2388if test -n "$cf_new_cflags" ; then 2389 2390 CFLAGS="$CFLAGS $cf_new_cflags" 2391fi 2392 2393if test -n "$cf_new_cppflags" ; then 2394 2395 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2396fi 2397 2398if test -n "$cf_new_extra_cppflags" ; then 2399 2400 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2401fi 2402 2403 ;; 2404*) 2405 echo "$as_me:2405: result: ok" >&5 2406echo "${ECHO_T}ok" >&6 2407 ;; 2408esac 2409 2410echo "$as_me:2410: checking for ${CC:-cc} option to accept ANSI C" >&5 2411echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6 2412if test "${cf_cv_ansi_cc+set}" = set; then 2413 echo $ECHO_N "(cached) $ECHO_C" >&6 2414else 2415 2416cf_cv_ansi_cc=no 2417cf_save_CFLAGS="$CFLAGS" 2418cf_save_CPPFLAGS="$CPPFLAGS" 2419# Don't try gcc -ansi; that turns off useful extensions and 2420# breaks some systems' header files. 2421# AIX -qlanglvl=ansi 2422# Ultrix and OSF/1 -std1 2423# HP-UX -Aa -D_HPUX_SOURCE 2424# SVR4 -Xc 2425# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes) 2426for cf_arg in "-DCC_HAS_PROTOS" \ 2427 "" \ 2428 -qlanglvl=ansi \ 2429 -std1 \ 2430 -Ae \ 2431 "-Aa -D_HPUX_SOURCE" \ 2432 -Xc 2433do 2434 2435cf_fix_cppflags=no 2436cf_new_cflags= 2437cf_new_cppflags= 2438cf_new_extra_cppflags= 2439 2440for cf_add_cflags in $cf_arg 2441do 2442case $cf_fix_cppflags in 2443no) 2444 case $cf_add_cflags in #(vi 2445 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2446 case $cf_add_cflags in 2447 -D*) 2448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2449 2450 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2451 && test -z "${cf_tst_cflags}" \ 2452 && cf_fix_cppflags=yes 2453 2454 if test $cf_fix_cppflags = yes ; then 2455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2456 continue 2457 elif test "${cf_tst_cflags}" = "\"'" ; then 2458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2459 continue 2460 fi 2461 ;; 2462 esac 2463 case "$CPPFLAGS" in 2464 *$cf_add_cflags) #(vi 2465 ;; 2466 *) #(vi 2467 case $cf_add_cflags in #(vi 2468 -D*) 2469 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2470 2471CPPFLAGS=`echo "$CPPFLAGS" | \ 2472 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2473 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2474 2475 ;; 2476 esac 2477 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2478 ;; 2479 esac 2480 ;; 2481 *) 2482 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2483 ;; 2484 esac 2485 ;; 2486yes) 2487 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2488 2489 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2490 2491 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2492 && test -z "${cf_tst_cflags}" \ 2493 && cf_fix_cppflags=no 2494 ;; 2495esac 2496done 2497 2498if test -n "$cf_new_cflags" ; then 2499 2500 CFLAGS="$CFLAGS $cf_new_cflags" 2501fi 2502 2503if test -n "$cf_new_cppflags" ; then 2504 2505 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2506fi 2507 2508if test -n "$cf_new_extra_cppflags" ; then 2509 2510 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2511fi 2512 2513 cat >conftest.$ac_ext <<_ACEOF 2514#line 2514 "configure" 2515#include "confdefs.h" 2516 2517#ifndef CC_HAS_PROTOS 2518#if !defined(__STDC__) || (__STDC__ != 1) 2519choke me 2520#endif 2521#endif 2522 2523int 2524main () 2525{ 2526 2527 int test (int i, double x); 2528 struct s1 {int (*f) (int a);}; 2529 struct s2 {int (*f) (double a);}; 2530 ; 2531 return 0; 2532} 2533_ACEOF 2534rm -f conftest.$ac_objext 2535if { (eval echo "$as_me:2535: \"$ac_compile\"") >&5 2536 (eval $ac_compile) 2>&5 2537 ac_status=$? 2538 echo "$as_me:2538: \$? = $ac_status" >&5 2539 (exit $ac_status); } && 2540 { ac_try='test -s conftest.$ac_objext' 2541 { (eval echo "$as_me:2541: \"$ac_try\"") >&5 2542 (eval $ac_try) 2>&5 2543 ac_status=$? 2544 echo "$as_me:2544: \$? = $ac_status" >&5 2545 (exit $ac_status); }; }; then 2546 cf_cv_ansi_cc="$cf_arg"; break 2547else 2548 echo "$as_me: failed program was:" >&5 2549cat conftest.$ac_ext >&5 2550fi 2551rm -f conftest.$ac_objext conftest.$ac_ext 2552done 2553CFLAGS="$cf_save_CFLAGS" 2554CPPFLAGS="$cf_save_CPPFLAGS" 2555 2556fi 2557echo "$as_me:2557: result: $cf_cv_ansi_cc" >&5 2558echo "${ECHO_T}$cf_cv_ansi_cc" >&6 2559 2560if test "$cf_cv_ansi_cc" != "no"; then 2561if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then 2562 2563cf_fix_cppflags=no 2564cf_new_cflags= 2565cf_new_cppflags= 2566cf_new_extra_cppflags= 2567 2568for cf_add_cflags in $cf_cv_ansi_cc 2569do 2570case $cf_fix_cppflags in 2571no) 2572 case $cf_add_cflags in #(vi 2573 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2574 case $cf_add_cflags in 2575 -D*) 2576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2577 2578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2579 && test -z "${cf_tst_cflags}" \ 2580 && cf_fix_cppflags=yes 2581 2582 if test $cf_fix_cppflags = yes ; then 2583 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2584 continue 2585 elif test "${cf_tst_cflags}" = "\"'" ; then 2586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2587 continue 2588 fi 2589 ;; 2590 esac 2591 case "$CPPFLAGS" in 2592 *$cf_add_cflags) #(vi 2593 ;; 2594 *) #(vi 2595 case $cf_add_cflags in #(vi 2596 -D*) 2597 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2598 2599CPPFLAGS=`echo "$CPPFLAGS" | \ 2600 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2601 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2602 2603 ;; 2604 esac 2605 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2606 ;; 2607 esac 2608 ;; 2609 *) 2610 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2611 ;; 2612 esac 2613 ;; 2614yes) 2615 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2616 2617 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2618 2619 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2620 && test -z "${cf_tst_cflags}" \ 2621 && cf_fix_cppflags=no 2622 ;; 2623esac 2624done 2625 2626if test -n "$cf_new_cflags" ; then 2627 2628 CFLAGS="$CFLAGS $cf_new_cflags" 2629fi 2630 2631if test -n "$cf_new_cppflags" ; then 2632 2633 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2634fi 2635 2636if test -n "$cf_new_extra_cppflags" ; then 2637 2638 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2639fi 2640 2641else 2642 cat >>confdefs.h <<\EOF 2643#define CC_HAS_PROTOS 1 2644EOF 2645 2646fi 2647fi 2648 2649if test "$cf_cv_ansi_cc" = "no"; then 2650 { { echo "$as_me:2650: error: Your compiler does not appear to recognize prototypes. 2651You have the following choices: 2652 a. adjust your compiler options 2653 b. get an up-to-date compiler 2654 c. use a wrapper such as unproto" >&5 2655echo "$as_me: error: Your compiler does not appear to recognize prototypes. 2656You have the following choices: 2657 a. adjust your compiler options 2658 b. get an up-to-date compiler 2659 c. use a wrapper such as unproto" >&2;} 2660 { (exit 1); exit 1; }; } 2661fi 2662 2663cf_XOPEN_SOURCE=500 2664cf_POSIX_C_SOURCE=199506L 2665cf_xopen_source= 2666 2667case $host_os in #(vi 2668aix[4-7]*) #(vi 2669 cf_xopen_source="-D_ALL_SOURCE" 2670 ;; 2671cygwin) #(vi 2672 cf_XOPEN_SOURCE=600 2673 ;; 2674darwin[0-8].*) #(vi 2675 cf_xopen_source="-D_APPLE_C_SOURCE" 2676 ;; 2677darwin*) #(vi 2678 cf_xopen_source="-D_DARWIN_C_SOURCE" 2679 ;; 2680freebsd*|dragonfly*) #(vi 2681 # 5.x headers associate 2682 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2683 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2684 cf_POSIX_C_SOURCE=200112L 2685 cf_XOPEN_SOURCE=600 2686 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2687 ;; 2688hpux11*) #(vi 2689 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2690 ;; 2691hpux*) #(vi 2692 cf_xopen_source="-D_HPUX_SOURCE" 2693 ;; 2694irix[56].*) #(vi 2695 cf_xopen_source="-D_SGI_SOURCE" 2696 ;; 2697linux*|gnu*|mint*|k*bsd*-gnu) #(vi 2698 2699echo "$as_me:2699: checking if we must define _GNU_SOURCE" >&5 2700echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2701if test "${cf_cv_gnu_source+set}" = set; then 2702 echo $ECHO_N "(cached) $ECHO_C" >&6 2703else 2704 2705cat >conftest.$ac_ext <<_ACEOF 2706#line 2706 "configure" 2707#include "confdefs.h" 2708#include <sys/types.h> 2709int 2710main () 2711{ 2712 2713#ifndef _XOPEN_SOURCE 2714make an error 2715#endif 2716 ; 2717 return 0; 2718} 2719_ACEOF 2720rm -f conftest.$ac_objext 2721if { (eval echo "$as_me:2721: \"$ac_compile\"") >&5 2722 (eval $ac_compile) 2>&5 2723 ac_status=$? 2724 echo "$as_me:2724: \$? = $ac_status" >&5 2725 (exit $ac_status); } && 2726 { ac_try='test -s conftest.$ac_objext' 2727 { (eval echo "$as_me:2727: \"$ac_try\"") >&5 2728 (eval $ac_try) 2>&5 2729 ac_status=$? 2730 echo "$as_me:2730: \$? = $ac_status" >&5 2731 (exit $ac_status); }; }; then 2732 cf_cv_gnu_source=no 2733else 2734 echo "$as_me: failed program was:" >&5 2735cat conftest.$ac_ext >&5 2736cf_save="$CPPFLAGS" 2737 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2738 cat >conftest.$ac_ext <<_ACEOF 2739#line 2739 "configure" 2740#include "confdefs.h" 2741#include <sys/types.h> 2742int 2743main () 2744{ 2745 2746#ifdef _XOPEN_SOURCE 2747make an error 2748#endif 2749 ; 2750 return 0; 2751} 2752_ACEOF 2753rm -f conftest.$ac_objext 2754if { (eval echo "$as_me:2754: \"$ac_compile\"") >&5 2755 (eval $ac_compile) 2>&5 2756 ac_status=$? 2757 echo "$as_me:2757: \$? = $ac_status" >&5 2758 (exit $ac_status); } && 2759 { ac_try='test -s conftest.$ac_objext' 2760 { (eval echo "$as_me:2760: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:2763: \$? = $ac_status" >&5 2764 (exit $ac_status); }; }; then 2765 cf_cv_gnu_source=no 2766else 2767 echo "$as_me: failed program was:" >&5 2768cat conftest.$ac_ext >&5 2769cf_cv_gnu_source=yes 2770fi 2771rm -f conftest.$ac_objext conftest.$ac_ext 2772 CPPFLAGS="$cf_save" 2773 2774fi 2775rm -f conftest.$ac_objext conftest.$ac_ext 2776 2777fi 2778echo "$as_me:2778: result: $cf_cv_gnu_source" >&5 2779echo "${ECHO_T}$cf_cv_gnu_source" >&6 2780test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2781 2782 ;; 2783mirbsd*) #(vi 2784 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h> 2785 ;; 2786netbsd*) #(vi 2787 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2788 ;; 2789openbsd*) #(vi 2790 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2791 ;; 2792osf[45]*) #(vi 2793 cf_xopen_source="-D_OSF_SOURCE" 2794 ;; 2795nto-qnx*) #(vi 2796 cf_xopen_source="-D_QNX_SOURCE" 2797 ;; 2798sco*) #(vi 2799 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2800 ;; 2801solaris2.1[0-9]) #(vi 2802 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2803 ;; 2804solaris2.[1-9]) #(vi 2805 cf_xopen_source="-D__EXTENSIONS__" 2806 ;; 2807*) 2808 echo "$as_me:2808: checking if we should define _XOPEN_SOURCE" >&5 2809echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2810if test "${cf_cv_xopen_source+set}" = set; then 2811 echo $ECHO_N "(cached) $ECHO_C" >&6 2812else 2813 2814 cat >conftest.$ac_ext <<_ACEOF 2815#line 2815 "configure" 2816#include "confdefs.h" 2817#include <sys/types.h> 2818int 2819main () 2820{ 2821 2822#ifndef _XOPEN_SOURCE 2823make an error 2824#endif 2825 ; 2826 return 0; 2827} 2828_ACEOF 2829rm -f conftest.$ac_objext 2830if { (eval echo "$as_me:2830: \"$ac_compile\"") >&5 2831 (eval $ac_compile) 2>&5 2832 ac_status=$? 2833 echo "$as_me:2833: \$? = $ac_status" >&5 2834 (exit $ac_status); } && 2835 { ac_try='test -s conftest.$ac_objext' 2836 { (eval echo "$as_me:2836: \"$ac_try\"") >&5 2837 (eval $ac_try) 2>&5 2838 ac_status=$? 2839 echo "$as_me:2839: \$? = $ac_status" >&5 2840 (exit $ac_status); }; }; then 2841 cf_cv_xopen_source=no 2842else 2843 echo "$as_me: failed program was:" >&5 2844cat conftest.$ac_ext >&5 2845cf_save="$CPPFLAGS" 2846 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2847 cat >conftest.$ac_ext <<_ACEOF 2848#line 2848 "configure" 2849#include "confdefs.h" 2850#include <sys/types.h> 2851int 2852main () 2853{ 2854 2855#ifdef _XOPEN_SOURCE 2856make an error 2857#endif 2858 ; 2859 return 0; 2860} 2861_ACEOF 2862rm -f conftest.$ac_objext 2863if { (eval echo "$as_me:2863: \"$ac_compile\"") >&5 2864 (eval $ac_compile) 2>&5 2865 ac_status=$? 2866 echo "$as_me:2866: \$? = $ac_status" >&5 2867 (exit $ac_status); } && 2868 { ac_try='test -s conftest.$ac_objext' 2869 { (eval echo "$as_me:2869: \"$ac_try\"") >&5 2870 (eval $ac_try) 2>&5 2871 ac_status=$? 2872 echo "$as_me:2872: \$? = $ac_status" >&5 2873 (exit $ac_status); }; }; then 2874 cf_cv_xopen_source=no 2875else 2876 echo "$as_me: failed program was:" >&5 2877cat conftest.$ac_ext >&5 2878cf_cv_xopen_source=$cf_XOPEN_SOURCE 2879fi 2880rm -f conftest.$ac_objext conftest.$ac_ext 2881 CPPFLAGS="$cf_save" 2882 2883fi 2884rm -f conftest.$ac_objext conftest.$ac_ext 2885 2886fi 2887echo "$as_me:2887: result: $cf_cv_xopen_source" >&5 2888echo "${ECHO_T}$cf_cv_xopen_source" >&6 2889 if test "$cf_cv_xopen_source" != no ; then 2890 2891CFLAGS=`echo "$CFLAGS" | \ 2892 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2893 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2894 2895CPPFLAGS=`echo "$CPPFLAGS" | \ 2896 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2897 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2898 2899 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 2900 2901cf_fix_cppflags=no 2902cf_new_cflags= 2903cf_new_cppflags= 2904cf_new_extra_cppflags= 2905 2906for cf_add_cflags in $cf_temp_xopen_source 2907do 2908case $cf_fix_cppflags in 2909no) 2910 case $cf_add_cflags in #(vi 2911 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2912 case $cf_add_cflags in 2913 -D*) 2914 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2915 2916 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2917 && test -z "${cf_tst_cflags}" \ 2918 && cf_fix_cppflags=yes 2919 2920 if test $cf_fix_cppflags = yes ; then 2921 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2922 continue 2923 elif test "${cf_tst_cflags}" = "\"'" ; then 2924 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2925 continue 2926 fi 2927 ;; 2928 esac 2929 case "$CPPFLAGS" in 2930 *$cf_add_cflags) #(vi 2931 ;; 2932 *) #(vi 2933 case $cf_add_cflags in #(vi 2934 -D*) 2935 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2936 2937CPPFLAGS=`echo "$CPPFLAGS" | \ 2938 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2939 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2940 2941 ;; 2942 esac 2943 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2944 ;; 2945 esac 2946 ;; 2947 *) 2948 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2949 ;; 2950 esac 2951 ;; 2952yes) 2953 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2954 2955 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2956 2957 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2958 && test -z "${cf_tst_cflags}" \ 2959 && cf_fix_cppflags=no 2960 ;; 2961esac 2962done 2963 2964if test -n "$cf_new_cflags" ; then 2965 2966 CFLAGS="$CFLAGS $cf_new_cflags" 2967fi 2968 2969if test -n "$cf_new_cppflags" ; then 2970 2971 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2972fi 2973 2974if test -n "$cf_new_extra_cppflags" ; then 2975 2976 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2977fi 2978 2979 fi 2980 2981cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2982 2983cf_save_CFLAGS="$CFLAGS" 2984cf_save_CPPFLAGS="$CPPFLAGS" 2985 2986cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2987 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2988 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2989 2990cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2991 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2992 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2993 2994echo "$as_me:2994: checking if we should define _POSIX_C_SOURCE" >&5 2995echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2996if test "${cf_cv_posix_c_source+set}" = set; then 2997 echo $ECHO_N "(cached) $ECHO_C" >&6 2998else 2999 3000echo "${as_me:-configure}:3000: testing if the symbol is already defined go no further ..." 1>&5 3001 3002 cat >conftest.$ac_ext <<_ACEOF 3003#line 3003 "configure" 3004#include "confdefs.h" 3005#include <sys/types.h> 3006int 3007main () 3008{ 3009 3010#ifndef _POSIX_C_SOURCE 3011make an error 3012#endif 3013 ; 3014 return 0; 3015} 3016_ACEOF 3017rm -f conftest.$ac_objext 3018if { (eval echo "$as_me:3018: \"$ac_compile\"") >&5 3019 (eval $ac_compile) 2>&5 3020 ac_status=$? 3021 echo "$as_me:3021: \$? = $ac_status" >&5 3022 (exit $ac_status); } && 3023 { ac_try='test -s conftest.$ac_objext' 3024 { (eval echo "$as_me:3024: \"$ac_try\"") >&5 3025 (eval $ac_try) 2>&5 3026 ac_status=$? 3027 echo "$as_me:3027: \$? = $ac_status" >&5 3028 (exit $ac_status); }; }; then 3029 cf_cv_posix_c_source=no 3030else 3031 echo "$as_me: failed program was:" >&5 3032cat conftest.$ac_ext >&5 3033cf_want_posix_source=no 3034 case .$cf_POSIX_C_SOURCE in #(vi 3035 .[12]??*) #(vi 3036 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3037 ;; 3038 .2) #(vi 3039 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3040 cf_want_posix_source=yes 3041 ;; 3042 .*) 3043 cf_want_posix_source=yes 3044 ;; 3045 esac 3046 if test "$cf_want_posix_source" = yes ; then 3047 cat >conftest.$ac_ext <<_ACEOF 3048#line 3048 "configure" 3049#include "confdefs.h" 3050#include <sys/types.h> 3051int 3052main () 3053{ 3054 3055#ifdef _POSIX_SOURCE 3056make an error 3057#endif 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062rm -f conftest.$ac_objext 3063if { (eval echo "$as_me:3063: \"$ac_compile\"") >&5 3064 (eval $ac_compile) 2>&5 3065 ac_status=$? 3066 echo "$as_me:3066: \$? = $ac_status" >&5 3067 (exit $ac_status); } && 3068 { ac_try='test -s conftest.$ac_objext' 3069 { (eval echo "$as_me:3069: \"$ac_try\"") >&5 3070 (eval $ac_try) 2>&5 3071 ac_status=$? 3072 echo "$as_me:3072: \$? = $ac_status" >&5 3073 (exit $ac_status); }; }; then 3074 : 3075else 3076 echo "$as_me: failed program was:" >&5 3077cat conftest.$ac_ext >&5 3078cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3079fi 3080rm -f conftest.$ac_objext conftest.$ac_ext 3081 fi 3082 3083echo "${as_me:-configure}:3083: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3084 3085 CFLAGS="$cf_trim_CFLAGS" 3086 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3087 3088echo "${as_me:-configure}:3088: testing if the second compile does not leave our definition intact error ..." 1>&5 3089 3090 cat >conftest.$ac_ext <<_ACEOF 3091#line 3091 "configure" 3092#include "confdefs.h" 3093#include <sys/types.h> 3094int 3095main () 3096{ 3097 3098#ifndef _POSIX_C_SOURCE 3099make an error 3100#endif 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105rm -f conftest.$ac_objext 3106if { (eval echo "$as_me:3106: \"$ac_compile\"") >&5 3107 (eval $ac_compile) 2>&5 3108 ac_status=$? 3109 echo "$as_me:3109: \$? = $ac_status" >&5 3110 (exit $ac_status); } && 3111 { ac_try='test -s conftest.$ac_objext' 3112 { (eval echo "$as_me:3112: \"$ac_try\"") >&5 3113 (eval $ac_try) 2>&5 3114 ac_status=$? 3115 echo "$as_me:3115: \$? = $ac_status" >&5 3116 (exit $ac_status); }; }; then 3117 : 3118else 3119 echo "$as_me: failed program was:" >&5 3120cat conftest.$ac_ext >&5 3121cf_cv_posix_c_source=no 3122fi 3123rm -f conftest.$ac_objext conftest.$ac_ext 3124 CFLAGS="$cf_save_CFLAGS" 3125 CPPFLAGS="$cf_save_CPPFLAGS" 3126 3127fi 3128rm -f conftest.$ac_objext conftest.$ac_ext 3129 3130fi 3131echo "$as_me:3131: result: $cf_cv_posix_c_source" >&5 3132echo "${ECHO_T}$cf_cv_posix_c_source" >&6 3133 3134if test "$cf_cv_posix_c_source" != no ; then 3135 CFLAGS="$cf_trim_CFLAGS" 3136 CPPFLAGS="$cf_trim_CPPFLAGS" 3137 3138cf_fix_cppflags=no 3139cf_new_cflags= 3140cf_new_cppflags= 3141cf_new_extra_cppflags= 3142 3143for cf_add_cflags in $cf_cv_posix_c_source 3144do 3145case $cf_fix_cppflags in 3146no) 3147 case $cf_add_cflags in #(vi 3148 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3149 case $cf_add_cflags in 3150 -D*) 3151 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3152 3153 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3154 && test -z "${cf_tst_cflags}" \ 3155 && cf_fix_cppflags=yes 3156 3157 if test $cf_fix_cppflags = yes ; then 3158 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3159 continue 3160 elif test "${cf_tst_cflags}" = "\"'" ; then 3161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3162 continue 3163 fi 3164 ;; 3165 esac 3166 case "$CPPFLAGS" in 3167 *$cf_add_cflags) #(vi 3168 ;; 3169 *) #(vi 3170 case $cf_add_cflags in #(vi 3171 -D*) 3172 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3173 3174CPPFLAGS=`echo "$CPPFLAGS" | \ 3175 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3176 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3177 3178 ;; 3179 esac 3180 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3181 ;; 3182 esac 3183 ;; 3184 *) 3185 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3186 ;; 3187 esac 3188 ;; 3189yes) 3190 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3191 3192 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3193 3194 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3195 && test -z "${cf_tst_cflags}" \ 3196 && cf_fix_cppflags=no 3197 ;; 3198esac 3199done 3200 3201if test -n "$cf_new_cflags" ; then 3202 3203 CFLAGS="$CFLAGS $cf_new_cflags" 3204fi 3205 3206if test -n "$cf_new_cppflags" ; then 3207 3208 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3209fi 3210 3211if test -n "$cf_new_extra_cppflags" ; then 3212 3213 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3214fi 3215 3216fi 3217 3218 ;; 3219esac 3220 3221if test -n "$cf_xopen_source" ; then 3222 3223cf_fix_cppflags=no 3224cf_new_cflags= 3225cf_new_cppflags= 3226cf_new_extra_cppflags= 3227 3228for cf_add_cflags in $cf_xopen_source 3229do 3230case $cf_fix_cppflags in 3231no) 3232 case $cf_add_cflags in #(vi 3233 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3234 case $cf_add_cflags in 3235 -D*) 3236 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3237 3238 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3239 && test -z "${cf_tst_cflags}" \ 3240 && cf_fix_cppflags=yes 3241 3242 if test $cf_fix_cppflags = yes ; then 3243 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3244 continue 3245 elif test "${cf_tst_cflags}" = "\"'" ; then 3246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3247 continue 3248 fi 3249 ;; 3250 esac 3251 case "$CPPFLAGS" in 3252 *$cf_add_cflags) #(vi 3253 ;; 3254 *) #(vi 3255 case $cf_add_cflags in #(vi 3256 -D*) 3257 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3258 3259CPPFLAGS=`echo "$CPPFLAGS" | \ 3260 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3261 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3262 3263 ;; 3264 esac 3265 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3266 ;; 3267 esac 3268 ;; 3269 *) 3270 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3271 ;; 3272 esac 3273 ;; 3274yes) 3275 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3276 3277 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3278 3279 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3280 && test -z "${cf_tst_cflags}" \ 3281 && cf_fix_cppflags=no 3282 ;; 3283esac 3284done 3285 3286if test -n "$cf_new_cflags" ; then 3287 3288 CFLAGS="$CFLAGS $cf_new_cflags" 3289fi 3290 3291if test -n "$cf_new_cppflags" ; then 3292 3293 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3294fi 3295 3296if test -n "$cf_new_extra_cppflags" ; then 3297 3298 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3299fi 3300 3301fi 3302 3303ac_ext=c 3304ac_cpp='$CPP $CPPFLAGS' 3305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3307ac_compiler_gnu=$ac_cv_c_compiler_gnu 3308ac_main_return=return 3309echo "$as_me:3309: checking how to run the C preprocessor" >&5 3310echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3311# On Suns, sometimes $CPP names a directory. 3312if test -n "$CPP" && test -d "$CPP"; then 3313 CPP= 3314fi 3315if test -z "$CPP"; then 3316 if test "${ac_cv_prog_CPP+set}" = set; then 3317 echo $ECHO_N "(cached) $ECHO_C" >&6 3318else 3319 # Double quotes because CPP needs to be expanded 3320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3321 do 3322 ac_preproc_ok=false 3323for ac_c_preproc_warn_flag in '' yes 3324do 3325 # Use a header file that comes with gcc, so configuring glibc 3326 # with a fresh cross-compiler works. 3327 # On the NeXT, cc -E runs the code through the compiler's parser, 3328 # not just through cpp. "Syntax error" is here to catch this case. 3329 cat >conftest.$ac_ext <<_ACEOF 3330#line 3330 "configure" 3331#include "confdefs.h" 3332#include <assert.h> 3333 Syntax error 3334_ACEOF 3335if { (eval echo "$as_me:3335: \"$ac_cpp conftest.$ac_ext\"") >&5 3336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3337 ac_status=$? 3338 egrep -v '^ *\+' conftest.er1 >conftest.err 3339 rm -f conftest.er1 3340 cat conftest.err >&5 3341 echo "$as_me:3341: \$? = $ac_status" >&5 3342 (exit $ac_status); } >/dev/null; then 3343 if test -s conftest.err; then 3344 ac_cpp_err=$ac_c_preproc_warn_flag 3345 else 3346 ac_cpp_err= 3347 fi 3348else 3349 ac_cpp_err=yes 3350fi 3351if test -z "$ac_cpp_err"; then 3352 : 3353else 3354 echo "$as_me: failed program was:" >&5 3355 cat conftest.$ac_ext >&5 3356 # Broken: fails on valid input. 3357continue 3358fi 3359rm -f conftest.err conftest.$ac_ext 3360 3361 # OK, works on sane cases. Now check whether non-existent headers 3362 # can be detected and how. 3363 cat >conftest.$ac_ext <<_ACEOF 3364#line 3364 "configure" 3365#include "confdefs.h" 3366#include <ac_nonexistent.h> 3367_ACEOF 3368if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5 3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3370 ac_status=$? 3371 egrep -v '^ *\+' conftest.er1 >conftest.err 3372 rm -f conftest.er1 3373 cat conftest.err >&5 3374 echo "$as_me:3374: \$? = $ac_status" >&5 3375 (exit $ac_status); } >/dev/null; then 3376 if test -s conftest.err; then 3377 ac_cpp_err=$ac_c_preproc_warn_flag 3378 else 3379 ac_cpp_err= 3380 fi 3381else 3382 ac_cpp_err=yes 3383fi 3384if test -z "$ac_cpp_err"; then 3385 # Broken: success on invalid input. 3386continue 3387else 3388 echo "$as_me: failed program was:" >&5 3389 cat conftest.$ac_ext >&5 3390 # Passes both tests. 3391ac_preproc_ok=: 3392break 3393fi 3394rm -f conftest.err conftest.$ac_ext 3395 3396done 3397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3398rm -f conftest.err conftest.$ac_ext 3399if $ac_preproc_ok; then 3400 break 3401fi 3402 3403 done 3404 ac_cv_prog_CPP=$CPP 3405 3406fi 3407 CPP=$ac_cv_prog_CPP 3408else 3409 ac_cv_prog_CPP=$CPP 3410fi 3411echo "$as_me:3411: result: $CPP" >&5 3412echo "${ECHO_T}$CPP" >&6 3413ac_preproc_ok=false 3414for ac_c_preproc_warn_flag in '' yes 3415do 3416 # Use a header file that comes with gcc, so configuring glibc 3417 # with a fresh cross-compiler works. 3418 # On the NeXT, cc -E runs the code through the compiler's parser, 3419 # not just through cpp. "Syntax error" is here to catch this case. 3420 cat >conftest.$ac_ext <<_ACEOF 3421#line 3421 "configure" 3422#include "confdefs.h" 3423#include <assert.h> 3424 Syntax error 3425_ACEOF 3426if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5 3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3428 ac_status=$? 3429 egrep -v '^ *\+' conftest.er1 >conftest.err 3430 rm -f conftest.er1 3431 cat conftest.err >&5 3432 echo "$as_me:3432: \$? = $ac_status" >&5 3433 (exit $ac_status); } >/dev/null; then 3434 if test -s conftest.err; then 3435 ac_cpp_err=$ac_c_preproc_warn_flag 3436 else 3437 ac_cpp_err= 3438 fi 3439else 3440 ac_cpp_err=yes 3441fi 3442if test -z "$ac_cpp_err"; then 3443 : 3444else 3445 echo "$as_me: failed program was:" >&5 3446 cat conftest.$ac_ext >&5 3447 # Broken: fails on valid input. 3448continue 3449fi 3450rm -f conftest.err conftest.$ac_ext 3451 3452 # OK, works on sane cases. Now check whether non-existent headers 3453 # can be detected and how. 3454 cat >conftest.$ac_ext <<_ACEOF 3455#line 3455 "configure" 3456#include "confdefs.h" 3457#include <ac_nonexistent.h> 3458_ACEOF 3459if { (eval echo "$as_me:3459: \"$ac_cpp conftest.$ac_ext\"") >&5 3460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3461 ac_status=$? 3462 egrep -v '^ *\+' conftest.er1 >conftest.err 3463 rm -f conftest.er1 3464 cat conftest.err >&5 3465 echo "$as_me:3465: \$? = $ac_status" >&5 3466 (exit $ac_status); } >/dev/null; then 3467 if test -s conftest.err; then 3468 ac_cpp_err=$ac_c_preproc_warn_flag 3469 else 3470 ac_cpp_err= 3471 fi 3472else 3473 ac_cpp_err=yes 3474fi 3475if test -z "$ac_cpp_err"; then 3476 # Broken: success on invalid input. 3477continue 3478else 3479 echo "$as_me: failed program was:" >&5 3480 cat conftest.$ac_ext >&5 3481 # Passes both tests. 3482ac_preproc_ok=: 3483break 3484fi 3485rm -f conftest.err conftest.$ac_ext 3486 3487done 3488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3489rm -f conftest.err conftest.$ac_ext 3490if $ac_preproc_ok; then 3491 : 3492else 3493 { { echo "$as_me:3493: error: C preprocessor \"$CPP\" fails sanity check" >&5 3494echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3495 { (exit 1); exit 1; }; } 3496fi 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503ac_main_return=return 3504 3505for ac_header in fcntl.h 3506do 3507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3508echo "$as_me:3508: checking for $ac_header" >&5 3509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3510if eval "test \"\${$as_ac_Header+set}\" = set"; then 3511 echo $ECHO_N "(cached) $ECHO_C" >&6 3512else 3513 cat >conftest.$ac_ext <<_ACEOF 3514#line 3514 "configure" 3515#include "confdefs.h" 3516#include <$ac_header> 3517_ACEOF 3518if { (eval echo "$as_me:3518: \"$ac_cpp conftest.$ac_ext\"") >&5 3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3520 ac_status=$? 3521 egrep -v '^ *\+' conftest.er1 >conftest.err 3522 rm -f conftest.er1 3523 cat conftest.err >&5 3524 echo "$as_me:3524: \$? = $ac_status" >&5 3525 (exit $ac_status); } >/dev/null; then 3526 if test -s conftest.err; then 3527 ac_cpp_err=$ac_c_preproc_warn_flag 3528 else 3529 ac_cpp_err= 3530 fi 3531else 3532 ac_cpp_err=yes 3533fi 3534if test -z "$ac_cpp_err"; then 3535 eval "$as_ac_Header=yes" 3536else 3537 echo "$as_me: failed program was:" >&5 3538 cat conftest.$ac_ext >&5 3539 eval "$as_ac_Header=no" 3540fi 3541rm -f conftest.err conftest.$ac_ext 3542fi 3543echo "$as_me:3543: result: `eval echo '${'$as_ac_Header'}'`" >&5 3544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3545if test `eval echo '${'$as_ac_Header'}'` = yes; then 3546 cat >>confdefs.h <<EOF 3547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3548EOF 3549 3550fi 3551done 3552 3553for ac_func in atexit 3554do 3555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3556echo "$as_me:3556: checking for $ac_func" >&5 3557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3558if eval "test \"\${$as_ac_var+set}\" = set"; then 3559 echo $ECHO_N "(cached) $ECHO_C" >&6 3560else 3561 cat >conftest.$ac_ext <<_ACEOF 3562#line 3562 "configure" 3563#include "confdefs.h" 3564/* System header to define __stub macros and hopefully few prototypes, 3565 which can conflict with char $ac_func (); below. */ 3566#include <assert.h> 3567/* Override any gcc2 internal prototype to avoid an error. */ 3568#ifdef __cplusplus 3569extern "C" 3570#endif 3571/* We use char because int might match the return type of a gcc2 3572 builtin and then its argument prototype would still apply. */ 3573char $ac_func (); 3574char (*f) (); 3575 3576int 3577main () 3578{ 3579/* The GNU C library defines this for functions which it implements 3580 to always fail with ENOSYS. Some functions are actually named 3581 something starting with __ and the normal name is an alias. */ 3582#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3583choke me 3584#else 3585f = $ac_func; 3586#endif 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592rm -f conftest.$ac_objext conftest$ac_exeext 3593if { (eval echo "$as_me:3593: \"$ac_link\"") >&5 3594 (eval $ac_link) 2>&5 3595 ac_status=$? 3596 echo "$as_me:3596: \$? = $ac_status" >&5 3597 (exit $ac_status); } && 3598 { ac_try='test -s conftest$ac_exeext' 3599 { (eval echo "$as_me:3599: \"$ac_try\"") >&5 3600 (eval $ac_try) 2>&5 3601 ac_status=$? 3602 echo "$as_me:3602: \$? = $ac_status" >&5 3603 (exit $ac_status); }; }; then 3604 eval "$as_ac_var=yes" 3605else 3606 echo "$as_me: failed program was:" >&5 3607cat conftest.$ac_ext >&5 3608eval "$as_ac_var=no" 3609fi 3610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3611fi 3612echo "$as_me:3612: result: `eval echo '${'$as_ac_var'}'`" >&5 3613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3614if test `eval echo '${'$as_ac_var'}'` = yes; then 3615 cat >>confdefs.h <<EOF 3616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3617EOF 3618 3619fi 3620done 3621 3622echo "$as_me:3622: checking for working mkstemp" >&5 3623echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 3624if test "${cf_cv_func_mkstemp+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626else 3627 3628rm -rf conftest* 3629if test "$cross_compiling" = yes; then 3630 echo "$as_me:3630: checking for mkstemp" >&5 3631echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 3632if test "${ac_cv_func_mkstemp+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 cat >conftest.$ac_ext <<_ACEOF 3636#line 3636 "configure" 3637#include "confdefs.h" 3638/* System header to define __stub macros and hopefully few prototypes, 3639 which can conflict with char mkstemp (); below. */ 3640#include <assert.h> 3641/* Override any gcc2 internal prototype to avoid an error. */ 3642#ifdef __cplusplus 3643extern "C" 3644#endif 3645/* We use char because int might match the return type of a gcc2 3646 builtin and then its argument prototype would still apply. */ 3647char mkstemp (); 3648char (*f) (); 3649 3650int 3651main () 3652{ 3653/* The GNU C library defines this for functions which it implements 3654 to always fail with ENOSYS. Some functions are actually named 3655 something starting with __ and the normal name is an alias. */ 3656#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 3657choke me 3658#else 3659f = mkstemp; 3660#endif 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666rm -f conftest.$ac_objext conftest$ac_exeext 3667if { (eval echo "$as_me:3667: \"$ac_link\"") >&5 3668 (eval $ac_link) 2>&5 3669 ac_status=$? 3670 echo "$as_me:3670: \$? = $ac_status" >&5 3671 (exit $ac_status); } && 3672 { ac_try='test -s conftest$ac_exeext' 3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5 3674 (eval $ac_try) 2>&5 3675 ac_status=$? 3676 echo "$as_me:3676: \$? = $ac_status" >&5 3677 (exit $ac_status); }; }; then 3678 ac_cv_func_mkstemp=yes 3679else 3680 echo "$as_me: failed program was:" >&5 3681cat conftest.$ac_ext >&5 3682ac_cv_func_mkstemp=no 3683fi 3684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3685fi 3686echo "$as_me:3686: result: $ac_cv_func_mkstemp" >&5 3687echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 3688 3689else 3690 cat >conftest.$ac_ext <<_ACEOF 3691#line 3691 "configure" 3692#include "confdefs.h" 3693 3694#include <sys/types.h> 3695#include <stdlib.h> 3696#include <stdio.h> 3697#include <string.h> 3698#include <sys/stat.h> 3699int main() 3700{ 3701 char *tmpl = "conftestXXXXXX"; 3702 char name[2][80]; 3703 int n; 3704 int result = 0; 3705 int fd; 3706 struct stat sb; 3707 3708 umask(077); 3709 for (n = 0; n < 2; ++n) { 3710 strcpy(name[n], tmpl); 3711 if ((fd = mkstemp(name[n])) >= 0) { 3712 if (!strcmp(name[n], tmpl) 3713 || stat(name[n], &sb) != 0 3714 || (sb.st_mode & S_IFMT) != S_IFREG 3715 || (sb.st_mode & 077) != 0) { 3716 result = 1; 3717 } 3718 close(fd); 3719 } 3720 } 3721 if (result == 0 3722 && !strcmp(name[0], name[1])) 3723 result = 1; 3724 ${cf_cv_main_return:-return}(result); 3725} 3726 3727_ACEOF 3728rm -f conftest$ac_exeext 3729if { (eval echo "$as_me:3729: \"$ac_link\"") >&5 3730 (eval $ac_link) 2>&5 3731 ac_status=$? 3732 echo "$as_me:3732: \$? = $ac_status" >&5 3733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3734 { (eval echo "$as_me:3734: \"$ac_try\"") >&5 3735 (eval $ac_try) 2>&5 3736 ac_status=$? 3737 echo "$as_me:3737: \$? = $ac_status" >&5 3738 (exit $ac_status); }; }; then 3739 cf_cv_func_mkstemp=yes 3740 3741else 3742 echo "$as_me: program exited with status $ac_status" >&5 3743echo "$as_me: failed program was:" >&5 3744cat conftest.$ac_ext >&5 3745cf_cv_func_mkstemp=no 3746 3747fi 3748rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3749fi 3750 3751fi 3752echo "$as_me:3752: result: $cf_cv_func_mkstemp" >&5 3753echo "${ECHO_T}$cf_cv_func_mkstemp" >&6 3754if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 3755 cat >>confdefs.h <<\EOF 3756#define HAVE_MKSTEMP 1 3757EOF 3758 3759fi 3760 3761GCC_VERSION=none 3762if test "$GCC" = yes ; then 3763 echo "$as_me:3763: checking version of $CC" >&5 3764echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 3765 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 3766 test -z "$GCC_VERSION" && GCC_VERSION=unknown 3767 echo "$as_me:3767: result: $GCC_VERSION" >&5 3768echo "${ECHO_T}$GCC_VERSION" >&6 3769fi 3770 3771if ( test "$GCC" = yes || test "$GXX" = yes ) 3772then 3773echo "$as_me:3773: checking if you want to check for gcc warnings" >&5 3774echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 3775 3776# Check whether --with-warnings or --without-warnings was given. 3777if test "${with_warnings+set}" = set; then 3778 withval="$with_warnings" 3779 cf_opt_with_warnings=$withval 3780else 3781 cf_opt_with_warnings=no 3782fi; 3783echo "$as_me:3783: result: $cf_opt_with_warnings" >&5 3784echo "${ECHO_T}$cf_opt_with_warnings" >&6 3785if test "$cf_opt_with_warnings" != no ; then 3786 3787if test "$GCC" = yes 3788then 3789cat > conftest.i <<EOF 3790#ifndef GCC_PRINTF 3791#define GCC_PRINTF 0 3792#endif 3793#ifndef GCC_SCANF 3794#define GCC_SCANF 0 3795#endif 3796#ifndef GCC_NORETURN 3797#define GCC_NORETURN /* nothing */ 3798#endif 3799#ifndef GCC_UNUSED 3800#define GCC_UNUSED /* nothing */ 3801#endif 3802EOF 3803if test "$GCC" = yes 3804then 3805 { echo "$as_me:3805: checking for $CC __attribute__ directives..." >&5 3806echo "$as_me: checking for $CC __attribute__ directives..." >&6;} 3807cat > conftest.$ac_ext <<EOF 3808#line 3808 "${as_me:-configure}" 3809#include "confdefs.h" 3810#include "conftest.h" 3811#include "conftest.i" 3812#if GCC_PRINTF 3813#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 3814#else 3815#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 3816#endif 3817#if GCC_SCANF 3818#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 3819#else 3820#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 3821#endif 3822extern void wow(char *,...) GCC_SCANFLIKE(1,2); 3823extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 3824extern void foo(void) GCC_NORETURN; 3825int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 3826EOF 3827 cf_printf_attribute=no 3828 cf_scanf_attribute=no 3829 for cf_attribute in scanf printf unused noreturn 3830 do 3831 3832cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 3833 3834 cf_directive="__attribute__(($cf_attribute))" 3835 echo "checking for $CC $cf_directive" 1>&5 3836 3837 case $cf_attribute in #(vi 3838 printf) #(vi 3839 cf_printf_attribute=yes 3840 cat >conftest.h <<EOF 3841#define GCC_$cf_ATTRIBUTE 1 3842EOF 3843 ;; 3844 scanf) #(vi 3845 cf_scanf_attribute=yes 3846 cat >conftest.h <<EOF 3847#define GCC_$cf_ATTRIBUTE 1 3848EOF 3849 ;; 3850 *) #(vi 3851 cat >conftest.h <<EOF 3852#define GCC_$cf_ATTRIBUTE $cf_directive 3853EOF 3854 ;; 3855 esac 3856 3857 if { (eval echo "$as_me:3857: \"$ac_compile\"") >&5 3858 (eval $ac_compile) 2>&5 3859 ac_status=$? 3860 echo "$as_me:3860: \$? = $ac_status" >&5 3861 (exit $ac_status); }; then 3862 test -n "$verbose" && echo "$as_me:3862: result: ... $cf_attribute" >&5 3863echo "${ECHO_T}... $cf_attribute" >&6 3864 cat conftest.h >>confdefs.h 3865 case $cf_attribute in #(vi 3866 printf) #(vi 3867 if test "$cf_printf_attribute" = no ; then 3868 cat >>confdefs.h <<EOF 3869#define GCC_PRINTFLIKE(fmt,var) /* nothing */ 3870EOF 3871 else 3872 cat >>confdefs.h <<EOF 3873#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 3874EOF 3875 fi 3876 ;; 3877 scanf) #(vi 3878 if test "$cf_scanf_attribute" = no ; then 3879 cat >>confdefs.h <<EOF 3880#define GCC_SCANFLIKE(fmt,var) /* nothing */ 3881EOF 3882 else 3883 cat >>confdefs.h <<EOF 3884#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 3885EOF 3886 fi 3887 ;; 3888 esac 3889 fi 3890 done 3891else 3892 fgrep define conftest.i >>confdefs.h 3893fi 3894rm -rf conftest* 3895fi 3896 3897INTEL_COMPILER=no 3898 3899if test "$GCC" = yes ; then 3900 case $host_os in 3901 linux*|gnu*) 3902 echo "$as_me:3902: checking if this is really Intel C compiler" >&5 3903echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 3904 cf_save_CFLAGS="$CFLAGS" 3905 CFLAGS="$CFLAGS -no-gcc" 3906 cat >conftest.$ac_ext <<_ACEOF 3907#line 3907 "configure" 3908#include "confdefs.h" 3909 3910int 3911main () 3912{ 3913 3914#ifdef __INTEL_COMPILER 3915#else 3916make an error 3917#endif 3918 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923rm -f conftest.$ac_objext 3924if { (eval echo "$as_me:3924: \"$ac_compile\"") >&5 3925 (eval $ac_compile) 2>&5 3926 ac_status=$? 3927 echo "$as_me:3927: \$? = $ac_status" >&5 3928 (exit $ac_status); } && 3929 { ac_try='test -s conftest.$ac_objext' 3930 { (eval echo "$as_me:3930: \"$ac_try\"") >&5 3931 (eval $ac_try) 2>&5 3932 ac_status=$? 3933 echo "$as_me:3933: \$? = $ac_status" >&5 3934 (exit $ac_status); }; }; then 3935 INTEL_COMPILER=yes 3936cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc" 3937 3938else 3939 echo "$as_me: failed program was:" >&5 3940cat conftest.$ac_ext >&5 3941fi 3942rm -f conftest.$ac_objext conftest.$ac_ext 3943 CFLAGS="$cf_save_CFLAGS" 3944 echo "$as_me:3944: result: $INTEL_COMPILER" >&5 3945echo "${ECHO_T}$INTEL_COMPILER" >&6 3946 ;; 3947 esac 3948fi 3949 3950cat > conftest.$ac_ext <<EOF 3951#line 3951 "${as_me:-configure}" 3952int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 3953EOF 3954 3955if test "$INTEL_COMPILER" = yes 3956then 3957# The "-wdXXX" options suppress warnings: 3958# remark #1419: external declaration in primary source file 3959# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 3960# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 3961# remark #193: zero used for undefined preprocessing identifier 3962# remark #593: variable "curs_sb_left_arrow" was set but never used 3963# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 3964# remark #869: parameter "tw" was never referenced 3965# remark #981: operands are evaluated in unspecified order 3966# warning #279: controlling expression is constant 3967 3968 { echo "$as_me:3968: checking for $CC warning options..." >&5 3969echo "$as_me: checking for $CC warning options..." >&6;} 3970 cf_save_CFLAGS="$CFLAGS" 3971 EXTRA_CFLAGS="-Wall" 3972 for cf_opt in \ 3973 wd1419 \ 3974 wd1683 \ 3975 wd1684 \ 3976 wd193 \ 3977 wd593 \ 3978 wd279 \ 3979 wd810 \ 3980 wd869 \ 3981 wd981 3982 do 3983 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 3984 if { (eval echo "$as_me:3984: \"$ac_compile\"") >&5 3985 (eval $ac_compile) 2>&5 3986 ac_status=$? 3987 echo "$as_me:3987: \$? = $ac_status" >&5 3988 (exit $ac_status); }; then 3989 test -n "$verbose" && echo "$as_me:3989: result: ... -$cf_opt" >&5 3990echo "${ECHO_T}... -$cf_opt" >&6 3991 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 3992 fi 3993 done 3994 CFLAGS="$cf_save_CFLAGS" 3995 3996elif test "$GCC" = yes 3997then 3998 { echo "$as_me:3998: checking for $CC warning options..." >&5 3999echo "$as_me: checking for $CC warning options..." >&6;} 4000 cf_save_CFLAGS="$CFLAGS" 4001 EXTRA_CFLAGS= 4002 cf_warn_CONST="" 4003 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4004 for cf_opt in W Wall \ 4005 Wbad-function-cast \ 4006 Wcast-align \ 4007 Wcast-qual \ 4008 Winline \ 4009 Wmissing-declarations \ 4010 Wmissing-prototypes \ 4011 Wnested-externs \ 4012 Wpointer-arith \ 4013 Wshadow \ 4014 Wstrict-prototypes \ 4015 Wundef $cf_warn_CONST Wwrite-strings 4016 do 4017 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4018 if { (eval echo "$as_me:4018: \"$ac_compile\"") >&5 4019 (eval $ac_compile) 2>&5 4020 ac_status=$? 4021 echo "$as_me:4021: \$? = $ac_status" >&5 4022 (exit $ac_status); }; then 4023 test -n "$verbose" && echo "$as_me:4023: result: ... -$cf_opt" >&5 4024echo "${ECHO_T}... -$cf_opt" >&6 4025 case $cf_opt in #(vi 4026 Wcast-qual) #(vi 4027 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4028 ;; 4029 Winline) #(vi 4030 case $GCC_VERSION in 4031 [34].*) 4032 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4033 4034echo "${as_me:-configure}:4034: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4035 4036 continue;; 4037 esac 4038 ;; 4039 esac 4040 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4041 fi 4042 done 4043 CFLAGS="$cf_save_CFLAGS" 4044fi 4045rm -rf conftest* 4046 4047fi 4048fi 4049 4050echo "$as_me:4050: checking if you want to see long compiling messages" >&5 4051echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 4052 4053# Check whether --enable-echo or --disable-echo was given. 4054if test "${enable_echo+set}" = set; then 4055 enableval="$enable_echo" 4056 test "$enableval" != no && enableval=yes 4057 if test "$enableval" != "yes" ; then 4058 4059 ECHO_LT='--silent' 4060 ECHO_LD='@echo linking $@;' 4061 RULE_CC='@echo compiling $<' 4062 SHOW_CC='@echo compiling $@' 4063 ECHO_CC='@' 4064 4065 else 4066 4067 ECHO_LT='' 4068 ECHO_LD='' 4069 RULE_CC='' 4070 SHOW_CC='' 4071 ECHO_CC='' 4072 4073 fi 4074else 4075 enableval=yes 4076 4077 ECHO_LT='' 4078 ECHO_LD='' 4079 RULE_CC='' 4080 SHOW_CC='' 4081 ECHO_CC='' 4082 4083fi; 4084echo "$as_me:4084: result: $enableval" >&5 4085echo "${ECHO_T}$enableval" >&6 4086 4087case $cf_cv_system_name in 4088os2*) 4089 CFLAGS="$CFLAGS -Zmt" 4090 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__" 4091 CXXFLAGS="$CXXFLAGS -Zmt" 4092 # autoconf's macro sets -Zexe and suffix both, which conflict:w 4093 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll" 4094 ac_cv_exeext=.exe 4095 ;; 4096esac 4097 4098PROG_EXT="$EXEEXT" 4099 4100test -n "$PROG_EXT" && cat >>confdefs.h <<EOF 4101#define PROG_EXT "$PROG_EXT" 4102EOF 4103 4104echo "$as_me:4104: checking if you want to use dmalloc for testing" >&5 4105echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 4106 4107# Check whether --with-dmalloc or --without-dmalloc was given. 4108if test "${with_dmalloc+set}" = set; then 4109 withval="$with_dmalloc" 4110 cat >>confdefs.h <<\EOF 4111#define USE_DMALLOC 1 4112EOF 4113 4114 : ${with_cflags:=-g} 4115 : ${with_no_leaks:=yes} 4116 with_dmalloc=yes 4117else 4118 with_dmalloc= 4119fi; 4120echo "$as_me:4120: result: ${with_dmalloc:-no}" >&5 4121echo "${ECHO_T}${with_dmalloc:-no}" >&6 4122 4123case .$with_cflags in #(vi 4124.*-g*) 4125 case .$CFLAGS in #(vi 4126 .*-g*) #(vi 4127 ;; 4128 *) 4129 4130cf_fix_cppflags=no 4131cf_new_cflags= 4132cf_new_cppflags= 4133cf_new_extra_cppflags= 4134 4135for cf_add_cflags in -g 4136do 4137case $cf_fix_cppflags in 4138no) 4139 case $cf_add_cflags in #(vi 4140 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4141 case $cf_add_cflags in 4142 -D*) 4143 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4144 4145 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4146 && test -z "${cf_tst_cflags}" \ 4147 && cf_fix_cppflags=yes 4148 4149 if test $cf_fix_cppflags = yes ; then 4150 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4151 continue 4152 elif test "${cf_tst_cflags}" = "\"'" ; then 4153 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4154 continue 4155 fi 4156 ;; 4157 esac 4158 case "$CPPFLAGS" in 4159 *$cf_add_cflags) #(vi 4160 ;; 4161 *) #(vi 4162 case $cf_add_cflags in #(vi 4163 -D*) 4164 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4165 4166CPPFLAGS=`echo "$CPPFLAGS" | \ 4167 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4168 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4169 4170 ;; 4171 esac 4172 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4173 ;; 4174 esac 4175 ;; 4176 *) 4177 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4178 ;; 4179 esac 4180 ;; 4181yes) 4182 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4183 4184 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4185 4186 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4187 && test -z "${cf_tst_cflags}" \ 4188 && cf_fix_cppflags=no 4189 ;; 4190esac 4191done 4192 4193if test -n "$cf_new_cflags" ; then 4194 4195 CFLAGS="$CFLAGS $cf_new_cflags" 4196fi 4197 4198if test -n "$cf_new_cppflags" ; then 4199 4200 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4201fi 4202 4203if test -n "$cf_new_extra_cppflags" ; then 4204 4205 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4206fi 4207 4208 ;; 4209 esac 4210 ;; 4211esac 4212 4213if test "$with_dmalloc" = yes ; then 4214 echo "$as_me:4214: checking for dmalloc.h" >&5 4215echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 4216if test "${ac_cv_header_dmalloc_h+set}" = set; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218else 4219 cat >conftest.$ac_ext <<_ACEOF 4220#line 4220 "configure" 4221#include "confdefs.h" 4222#include <dmalloc.h> 4223_ACEOF 4224if { (eval echo "$as_me:4224: \"$ac_cpp conftest.$ac_ext\"") >&5 4225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4226 ac_status=$? 4227 egrep -v '^ *\+' conftest.er1 >conftest.err 4228 rm -f conftest.er1 4229 cat conftest.err >&5 4230 echo "$as_me:4230: \$? = $ac_status" >&5 4231 (exit $ac_status); } >/dev/null; then 4232 if test -s conftest.err; then 4233 ac_cpp_err=$ac_c_preproc_warn_flag 4234 else 4235 ac_cpp_err= 4236 fi 4237else 4238 ac_cpp_err=yes 4239fi 4240if test -z "$ac_cpp_err"; then 4241 ac_cv_header_dmalloc_h=yes 4242else 4243 echo "$as_me: failed program was:" >&5 4244 cat conftest.$ac_ext >&5 4245 ac_cv_header_dmalloc_h=no 4246fi 4247rm -f conftest.err conftest.$ac_ext 4248fi 4249echo "$as_me:4249: result: $ac_cv_header_dmalloc_h" >&5 4250echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 4251if test $ac_cv_header_dmalloc_h = yes; then 4252 4253echo "$as_me:4253: checking for dmalloc_debug in -ldmalloc" >&5 4254echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 4255if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 4256 echo $ECHO_N "(cached) $ECHO_C" >&6 4257else 4258 ac_check_lib_save_LIBS=$LIBS 4259LIBS="-ldmalloc $LIBS" 4260cat >conftest.$ac_ext <<_ACEOF 4261#line 4261 "configure" 4262#include "confdefs.h" 4263 4264/* Override any gcc2 internal prototype to avoid an error. */ 4265#ifdef __cplusplus 4266extern "C" 4267#endif 4268/* We use char because int might match the return type of a gcc2 4269 builtin and then its argument prototype would still apply. */ 4270char dmalloc_debug (); 4271int 4272main () 4273{ 4274dmalloc_debug (); 4275 ; 4276 return 0; 4277} 4278_ACEOF 4279rm -f conftest.$ac_objext conftest$ac_exeext 4280if { (eval echo "$as_me:4280: \"$ac_link\"") >&5 4281 (eval $ac_link) 2>&5 4282 ac_status=$? 4283 echo "$as_me:4283: \$? = $ac_status" >&5 4284 (exit $ac_status); } && 4285 { ac_try='test -s conftest$ac_exeext' 4286 { (eval echo "$as_me:4286: \"$ac_try\"") >&5 4287 (eval $ac_try) 2>&5 4288 ac_status=$? 4289 echo "$as_me:4289: \$? = $ac_status" >&5 4290 (exit $ac_status); }; }; then 4291 ac_cv_lib_dmalloc_dmalloc_debug=yes 4292else 4293 echo "$as_me: failed program was:" >&5 4294cat conftest.$ac_ext >&5 4295ac_cv_lib_dmalloc_dmalloc_debug=no 4296fi 4297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4298LIBS=$ac_check_lib_save_LIBS 4299fi 4300echo "$as_me:4300: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 4301echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 4302if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 4303 cat >>confdefs.h <<EOF 4304#define HAVE_LIBDMALLOC 1 4305EOF 4306 4307 LIBS="-ldmalloc $LIBS" 4308 4309fi 4310 4311fi 4312 4313fi 4314 4315echo "$as_me:4315: checking if you want to use dbmalloc for testing" >&5 4316echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 4317 4318# Check whether --with-dbmalloc or --without-dbmalloc was given. 4319if test "${with_dbmalloc+set}" = set; then 4320 withval="$with_dbmalloc" 4321 cat >>confdefs.h <<\EOF 4322#define USE_DBMALLOC 1 4323EOF 4324 4325 : ${with_cflags:=-g} 4326 : ${with_no_leaks:=yes} 4327 with_dbmalloc=yes 4328else 4329 with_dbmalloc= 4330fi; 4331echo "$as_me:4331: result: ${with_dbmalloc:-no}" >&5 4332echo "${ECHO_T}${with_dbmalloc:-no}" >&6 4333 4334case .$with_cflags in #(vi 4335.*-g*) 4336 case .$CFLAGS in #(vi 4337 .*-g*) #(vi 4338 ;; 4339 *) 4340 4341cf_fix_cppflags=no 4342cf_new_cflags= 4343cf_new_cppflags= 4344cf_new_extra_cppflags= 4345 4346for cf_add_cflags in -g 4347do 4348case $cf_fix_cppflags in 4349no) 4350 case $cf_add_cflags in #(vi 4351 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4352 case $cf_add_cflags in 4353 -D*) 4354 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4355 4356 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4357 && test -z "${cf_tst_cflags}" \ 4358 && cf_fix_cppflags=yes 4359 4360 if test $cf_fix_cppflags = yes ; then 4361 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4362 continue 4363 elif test "${cf_tst_cflags}" = "\"'" ; then 4364 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4365 continue 4366 fi 4367 ;; 4368 esac 4369 case "$CPPFLAGS" in 4370 *$cf_add_cflags) #(vi 4371 ;; 4372 *) #(vi 4373 case $cf_add_cflags in #(vi 4374 -D*) 4375 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4376 4377CPPFLAGS=`echo "$CPPFLAGS" | \ 4378 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4379 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4380 4381 ;; 4382 esac 4383 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4384 ;; 4385 esac 4386 ;; 4387 *) 4388 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4389 ;; 4390 esac 4391 ;; 4392yes) 4393 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4394 4395 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4396 4397 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4398 && test -z "${cf_tst_cflags}" \ 4399 && cf_fix_cppflags=no 4400 ;; 4401esac 4402done 4403 4404if test -n "$cf_new_cflags" ; then 4405 4406 CFLAGS="$CFLAGS $cf_new_cflags" 4407fi 4408 4409if test -n "$cf_new_cppflags" ; then 4410 4411 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4412fi 4413 4414if test -n "$cf_new_extra_cppflags" ; then 4415 4416 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4417fi 4418 4419 ;; 4420 esac 4421 ;; 4422esac 4423 4424if test "$with_dbmalloc" = yes ; then 4425 echo "$as_me:4425: checking for dbmalloc.h" >&5 4426echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 4427if test "${ac_cv_header_dbmalloc_h+set}" = set; then 4428 echo $ECHO_N "(cached) $ECHO_C" >&6 4429else 4430 cat >conftest.$ac_ext <<_ACEOF 4431#line 4431 "configure" 4432#include "confdefs.h" 4433#include <dbmalloc.h> 4434_ACEOF 4435if { (eval echo "$as_me:4435: \"$ac_cpp conftest.$ac_ext\"") >&5 4436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4437 ac_status=$? 4438 egrep -v '^ *\+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:4441: \$? = $ac_status" >&5 4442 (exit $ac_status); } >/dev/null; then 4443 if test -s conftest.err; then 4444 ac_cpp_err=$ac_c_preproc_warn_flag 4445 else 4446 ac_cpp_err= 4447 fi 4448else 4449 ac_cpp_err=yes 4450fi 4451if test -z "$ac_cpp_err"; then 4452 ac_cv_header_dbmalloc_h=yes 4453else 4454 echo "$as_me: failed program was:" >&5 4455 cat conftest.$ac_ext >&5 4456 ac_cv_header_dbmalloc_h=no 4457fi 4458rm -f conftest.err conftest.$ac_ext 4459fi 4460echo "$as_me:4460: result: $ac_cv_header_dbmalloc_h" >&5 4461echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 4462if test $ac_cv_header_dbmalloc_h = yes; then 4463 4464echo "$as_me:4464: checking for debug_malloc in -ldbmalloc" >&5 4465echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 4466if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468else 4469 ac_check_lib_save_LIBS=$LIBS 4470LIBS="-ldbmalloc $LIBS" 4471cat >conftest.$ac_ext <<_ACEOF 4472#line 4472 "configure" 4473#include "confdefs.h" 4474 4475/* Override any gcc2 internal prototype to avoid an error. */ 4476#ifdef __cplusplus 4477extern "C" 4478#endif 4479/* We use char because int might match the return type of a gcc2 4480 builtin and then its argument prototype would still apply. */ 4481char debug_malloc (); 4482int 4483main () 4484{ 4485debug_malloc (); 4486 ; 4487 return 0; 4488} 4489_ACEOF 4490rm -f conftest.$ac_objext conftest$ac_exeext 4491if { (eval echo "$as_me:4491: \"$ac_link\"") >&5 4492 (eval $ac_link) 2>&5 4493 ac_status=$? 4494 echo "$as_me:4494: \$? = $ac_status" >&5 4495 (exit $ac_status); } && 4496 { ac_try='test -s conftest$ac_exeext' 4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5 4498 (eval $ac_try) 2>&5 4499 ac_status=$? 4500 echo "$as_me:4500: \$? = $ac_status" >&5 4501 (exit $ac_status); }; }; then 4502 ac_cv_lib_dbmalloc_debug_malloc=yes 4503else 4504 echo "$as_me: failed program was:" >&5 4505cat conftest.$ac_ext >&5 4506ac_cv_lib_dbmalloc_debug_malloc=no 4507fi 4508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4509LIBS=$ac_check_lib_save_LIBS 4510fi 4511echo "$as_me:4511: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 4512echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 4513if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 4514 cat >>confdefs.h <<EOF 4515#define HAVE_LIBDBMALLOC 1 4516EOF 4517 4518 LIBS="-ldbmalloc $LIBS" 4519 4520fi 4521 4522fi 4523 4524fi 4525 4526echo "$as_me:4526: checking if you want to use valgrind for testing" >&5 4527echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 4528 4529# Check whether --with-valgrind or --without-valgrind was given. 4530if test "${with_valgrind+set}" = set; then 4531 withval="$with_valgrind" 4532 cat >>confdefs.h <<\EOF 4533#define USE_VALGRIND 1 4534EOF 4535 4536 : ${with_cflags:=-g} 4537 : ${with_no_leaks:=yes} 4538 with_valgrind=yes 4539else 4540 with_valgrind= 4541fi; 4542echo "$as_me:4542: result: ${with_valgrind:-no}" >&5 4543echo "${ECHO_T}${with_valgrind:-no}" >&6 4544 4545case .$with_cflags in #(vi 4546.*-g*) 4547 case .$CFLAGS in #(vi 4548 .*-g*) #(vi 4549 ;; 4550 *) 4551 4552cf_fix_cppflags=no 4553cf_new_cflags= 4554cf_new_cppflags= 4555cf_new_extra_cppflags= 4556 4557for cf_add_cflags in -g 4558do 4559case $cf_fix_cppflags in 4560no) 4561 case $cf_add_cflags in #(vi 4562 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4563 case $cf_add_cflags in 4564 -D*) 4565 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4566 4567 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4568 && test -z "${cf_tst_cflags}" \ 4569 && cf_fix_cppflags=yes 4570 4571 if test $cf_fix_cppflags = yes ; then 4572 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4573 continue 4574 elif test "${cf_tst_cflags}" = "\"'" ; then 4575 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4576 continue 4577 fi 4578 ;; 4579 esac 4580 case "$CPPFLAGS" in 4581 *$cf_add_cflags) #(vi 4582 ;; 4583 *) #(vi 4584 case $cf_add_cflags in #(vi 4585 -D*) 4586 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4587 4588CPPFLAGS=`echo "$CPPFLAGS" | \ 4589 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4590 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4591 4592 ;; 4593 esac 4594 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4595 ;; 4596 esac 4597 ;; 4598 *) 4599 cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4600 ;; 4601 esac 4602 ;; 4603yes) 4604 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4605 4606 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4607 4608 test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4609 && test -z "${cf_tst_cflags}" \ 4610 && cf_fix_cppflags=no 4611 ;; 4612esac 4613done 4614 4615if test -n "$cf_new_cflags" ; then 4616 4617 CFLAGS="$CFLAGS $cf_new_cflags" 4618fi 4619 4620if test -n "$cf_new_cppflags" ; then 4621 4622 CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4623fi 4624 4625if test -n "$cf_new_extra_cppflags" ; then 4626 4627 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4628fi 4629 4630 ;; 4631 esac 4632 ;; 4633esac 4634 4635echo "$as_me:4635: checking if you want to perform memory-leak testing" >&5 4636echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 4637 4638# Check whether --enable-leaks or --disable-leaks was given. 4639if test "${enable_leaks+set}" = set; then 4640 enableval="$enable_leaks" 4641 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 4642else 4643 : ${with_no_leaks:=no} 4644fi; 4645echo "$as_me:4645: result: $with_no_leaks" >&5 4646echo "${ECHO_T}$with_no_leaks" >&6 4647 4648if test "$with_no_leaks" = yes ; then 4649 cat >>confdefs.h <<\EOF 4650#define NO_LEAKS 1 4651EOF 4652 4653 cat >>confdefs.h <<\EOF 4654#define YY_NO_LEAKS 1 4655EOF 4656 4657fi 4658 4659### output makefile 4660ac_config_files="$ac_config_files makefile" 4661ac_config_commands="$ac_config_commands default" 4662cat >confcache <<\_ACEOF 4663# This file is a shell script that caches the results of configure 4664# tests run on this system so they can be shared between configure 4665# scripts and configure runs, see configure's option --config-cache. 4666# It is not useful on other systems. If it contains results you don't 4667# want to keep, you may remove or edit it. 4668# 4669# config.status only pays attention to the cache file if you give it 4670# the --recheck option to rerun configure. 4671# 4672# `ac_cv_env_foo' variables (set or unset) will be overriden when 4673# loading this file, other *unset* `ac_cv_foo' will be assigned the 4674# following values. 4675 4676_ACEOF 4677 4678# The following way of writing the cache mishandles newlines in values, 4679# but we know of no workaround that is simple, portable, and efficient. 4680# So, don't put newlines in cache variables' values. 4681# Ultrix sh set writes to stderr and can't be redirected directly, 4682# and sets the high bit in the cache file unless we assign to the vars. 4683{ 4684 (set) 2>&1 | 4685 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4686 *ac_space=\ *) 4687 # `set' does not quote correctly, so add quotes (double-quote 4688 # substitution turns \\\\ into \\, and sed turns \\ into \). 4689 sed -n \ 4690 "s/'/'\\\\''/g; 4691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4692 ;; 4693 *) 4694 # `set' quotes correctly as required by POSIX, so do not add quotes. 4695 sed -n \ 4696 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4697 ;; 4698 esac; 4699} | 4700 sed ' 4701 t clear 4702 : clear 4703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4704 t end 4705 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4706 : end' >>confcache 4707if cmp -s $cache_file confcache; then :; else 4708 if test -w $cache_file; then 4709 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4710 cat confcache >$cache_file 4711 else 4712 echo "not updating unwritable cache $cache_file" 4713 fi 4714fi 4715rm -f confcache 4716 4717test "x$prefix" = xNONE && prefix=$ac_default_prefix 4718# Let make expand exec_prefix. 4719test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4720 4721# VPATH may cause trouble with some makes, so we remove $(srcdir), 4722# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4723# trailing colons and then remove the whole line if VPATH becomes empty 4724# (actually we leave an empty line to preserve line numbers). 4725if test "x$srcdir" = x.; then 4726 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4727s/:*\$(srcdir):*/:/; 4728s/:*\${srcdir}:*/:/; 4729s/:*@srcdir@:*/:/; 4730s/^\([^=]*=[ ]*\):*/\1/; 4731s/:*$//; 4732s/^[^=]*=[ ]*$//; 4733}' 4734fi 4735 4736DEFS=-DHAVE_CONFIG_H 4737 4738: ${CONFIG_STATUS=./config.status} 4739ac_clean_files_save=$ac_clean_files 4740ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4741{ echo "$as_me:4741: creating $CONFIG_STATUS" >&5 4742echo "$as_me: creating $CONFIG_STATUS" >&6;} 4743cat >$CONFIG_STATUS <<_ACEOF 4744#! $SHELL 4745# Generated automatically by configure. 4746# Run this file to recreate the current configuration. 4747# Compiler output produced by configure, useful for debugging 4748# configure, is in config.log if it exists. 4749 4750debug=false 4751SHELL=\${CONFIG_SHELL-$SHELL} 4752ac_cs_invocation="\$0 \$@" 4753 4754_ACEOF 4755 4756cat >>$CONFIG_STATUS <<\_ACEOF 4757# Be Bourne compatible 4758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4759 emulate sh 4760 NULLCMD=: 4761elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4762 set -o posix 4763fi 4764 4765# Name of the executable. 4766as_me=`echo "$0" |sed 's,.*[\\/],,'` 4767 4768if expr a : '\(a\)' >/dev/null 2>&1; then 4769 as_expr=expr 4770else 4771 as_expr=false 4772fi 4773 4774rm -f conf$$ conf$$.exe conf$$.file 4775echo >conf$$.file 4776if ln -s conf$$.file conf$$ 2>/dev/null; then 4777 # We could just check for DJGPP; but this test a) works b) is more generic 4778 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4779 if test -f conf$$.exe; then 4780 # Don't use ln at all; we don't have any links 4781 as_ln_s='cp -p' 4782 else 4783 as_ln_s='ln -s' 4784 fi 4785elif ln conf$$.file conf$$ 2>/dev/null; then 4786 as_ln_s=ln 4787else 4788 as_ln_s='cp -p' 4789fi 4790rm -f conf$$ conf$$.exe conf$$.file 4791 4792as_executable_p="test -f" 4793 4794# Support unset when possible. 4795if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4796 as_unset=unset 4797else 4798 as_unset=false 4799fi 4800 4801# NLS nuisances. 4802$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4803$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4804$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4805$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4806$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4807$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4808$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4809$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 4810 4811# IFS 4812# We need space, tab and new line, in precisely that order. 4813as_nl=' 4814' 4815IFS=" $as_nl" 4816 4817# CDPATH. 4818$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 4819 4820exec 6>&1 4821 4822_ACEOF 4823 4824# Files that config.status was made for. 4825if test -n "$ac_config_files"; then 4826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4827fi 4828 4829if test -n "$ac_config_headers"; then 4830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4831fi 4832 4833if test -n "$ac_config_links"; then 4834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4835fi 4836 4837if test -n "$ac_config_commands"; then 4838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4839fi 4840 4841cat >>$CONFIG_STATUS <<\EOF 4842 4843ac_cs_usage="\ 4844\`$as_me' instantiates files from templates according to the 4845current configuration. 4846 4847Usage: $0 [OPTIONS] [FILE]... 4848 4849 -h, --help print this help, then exit 4850 -V, --version print version number, then exit 4851 -d, --debug don't remove temporary files 4852 --recheck update $as_me by reconfiguring in the same conditions 4853 --file=FILE[:TEMPLATE] 4854 instantiate the configuration file FILE 4855 --header=FILE[:TEMPLATE] 4856 instantiate the configuration header FILE 4857 4858Configuration files: 4859$config_files 4860 4861Configuration headers: 4862$config_headers 4863 4864Configuration commands: 4865$config_commands 4866 4867Report bugs to <dickey@invisible-island.net>." 4868EOF 4869 4870cat >>$CONFIG_STATUS <<EOF 4871ac_cs_version="\\ 4872config.status 4873configured by $0, generated by GNU Autoconf 2.52.20101002, 4874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4875 4876Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4877Free Software Foundation, Inc. 4878This config.status script is free software; the Free Software Foundation 4879gives unlimited permission to copy, distribute and modify it." 4880srcdir=$srcdir 4881INSTALL="$INSTALL" 4882EOF 4883 4884cat >>$CONFIG_STATUS <<\EOF 4885# If no file are specified by the user, then we need to provide default 4886# value. By we need to know if files were specified by the user. 4887ac_need_defaults=: 4888while test $# != 0 4889do 4890 case $1 in 4891 --*=*) 4892 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4893 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4894 shift 4895 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 4896 shift 4897 ;; 4898 -*);; 4899 *) # This is not an option, so the user has probably given explicit 4900 # arguments. 4901 ac_need_defaults=false;; 4902 esac 4903 4904 case $1 in 4905 # Handling of the options. 4906EOF 4907cat >>$CONFIG_STATUS <<EOF 4908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4909 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 4910 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 4911EOF 4912cat >>$CONFIG_STATUS <<\EOF 4913 --version | --vers* | -V ) 4914 echo "$ac_cs_version"; exit 0 ;; 4915 --he | --h) 4916 # Conflict between --help and --header 4917 { { echo "$as_me:4917: error: ambiguous option: $1 4918Try \`$0 --help' for more information." >&5 4919echo "$as_me: error: ambiguous option: $1 4920Try \`$0 --help' for more information." >&2;} 4921 { (exit 1); exit 1; }; };; 4922 --help | --hel | -h ) 4923 echo "$ac_cs_usage"; exit 0 ;; 4924 --debug | --d* | -d ) 4925 debug=: ;; 4926 --file | --fil | --fi | --f ) 4927 shift 4928 CONFIG_FILES="$CONFIG_FILES $1" 4929 ac_need_defaults=false;; 4930 --header | --heade | --head | --hea ) 4931 shift 4932 CONFIG_HEADERS="$CONFIG_HEADERS $1" 4933 ac_need_defaults=false;; 4934 4935 # This is an error. 4936 -*) { { echo "$as_me:4936: error: unrecognized option: $1 4937Try \`$0 --help' for more information." >&5 4938echo "$as_me: error: unrecognized option: $1 4939Try \`$0 --help' for more information." >&2;} 4940 { (exit 1); exit 1; }; } ;; 4941 4942 *) ac_config_targets="$ac_config_targets $1" ;; 4943 4944 esac 4945 shift 4946done 4947 4948exec 5>>config.log 4949cat >&5 << _ACEOF 4950 4951## ----------------------- ## 4952## Running config.status. ## 4953## ----------------------- ## 4954 4955This file was extended by $as_me 2.52.20101002, executed with 4956 CONFIG_FILES = $CONFIG_FILES 4957 CONFIG_HEADERS = $CONFIG_HEADERS 4958 CONFIG_LINKS = $CONFIG_LINKS 4959 CONFIG_COMMANDS = $CONFIG_COMMANDS 4960 > $ac_cs_invocation 4961on `(hostname || uname -n) 2>/dev/null | sed 1q` 4962 4963_ACEOF 4964EOF 4965 4966cat >>$CONFIG_STATUS <<\EOF 4967for ac_config_target in $ac_config_targets 4968do 4969 case "$ac_config_target" in 4970 # Handling of arguments. 4971 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 4972 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 4973 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 4974 *) { { echo "$as_me:4974: error: invalid argument: $ac_config_target" >&5 4975echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4976 { (exit 1); exit 1; }; };; 4977 esac 4978done 4979 4980# If the user did not use the arguments to specify the items to instantiate, 4981# then the envvar interface is used. Set only those that are not. 4982# We use the long form for the default assignment because of an extremely 4983# bizarre bug on SunOS 4.1.3. 4984if $ac_need_defaults; then 4985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4987 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 4988fi 4989 4990# Create a temporary directory, and hook for its removal unless debugging. 4991$debug || 4992{ 4993 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4994 trap '{ (exit 1); exit 1; }' 1 2 13 15 4995} 4996 4997# Create a (secure) tmp directory for tmp files. 4998: ${TMPDIR=/tmp} 4999{ 5000 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5001 test -n "$tmp" && test -d "$tmp" 5002} || 5003{ 5004 tmp=$TMPDIR/cs$$-$RANDOM 5005 (umask 077 && mkdir $tmp) 5006} || 5007{ 5008 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5009 { (exit 1); exit 1; } 5010} 5011 5012EOF 5013 5014cat >>$CONFIG_STATUS <<EOF 5015 5016# 5017# CONFIG_FILES section. 5018# 5019 5020# No need to generate the scripts if there are no CONFIG_FILES. 5021# This happens for instance when ./config.status config.h 5022if test -n "\$CONFIG_FILES"; then 5023 # Protect against being on the right side of a sed subst in config.status. 5024 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5025 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5026s,@SHELL@,$SHELL,;t t 5027s,@exec_prefix@,$exec_prefix,;t t 5028s,@prefix@,$prefix,;t t 5029s,@program_transform_name@,$program_transform_name,;t t 5030s,@bindir@,$bindir,;t t 5031s,@sbindir@,$sbindir,;t t 5032s,@libexecdir@,$libexecdir,;t t 5033s,@datadir@,$datadir,;t t 5034s,@sysconfdir@,$sysconfdir,;t t 5035s,@sharedstatedir@,$sharedstatedir,;t t 5036s,@localstatedir@,$localstatedir,;t t 5037s,@libdir@,$libdir,;t t 5038s,@includedir@,$includedir,;t t 5039s,@oldincludedir@,$oldincludedir,;t t 5040s,@infodir@,$infodir,;t t 5041s,@mandir@,$mandir,;t t 5042s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5043s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5044s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5045s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5046s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5047s,@build_alias@,$build_alias,;t t 5048s,@host_alias@,$host_alias,;t t 5049s,@target_alias@,$target_alias,;t t 5050s,@ECHO_C@,$ECHO_C,;t t 5051s,@ECHO_N@,$ECHO_N,;t t 5052s,@ECHO_T@,$ECHO_T,;t t 5053s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5054s,@DEFS@,$DEFS,;t t 5055s,@LIBS@,$LIBS,;t t 5056s,@build@,$build,;t t 5057s,@build_cpu@,$build_cpu,;t t 5058s,@build_vendor@,$build_vendor,;t t 5059s,@build_os@,$build_os,;t t 5060s,@host@,$host,;t t 5061s,@host_cpu@,$host_cpu,;t t 5062s,@host_vendor@,$host_vendor,;t t 5063s,@host_os@,$host_os,;t t 5064s,@target@,$target,;t t 5065s,@target_cpu@,$target_cpu,;t t 5066s,@target_vendor@,$target_vendor,;t t 5067s,@target_os@,$target_os,;t t 5068s,@CC@,$CC,;t t 5069s,@CFLAGS@,$CFLAGS,;t t 5070s,@LDFLAGS@,$LDFLAGS,;t t 5071s,@CPPFLAGS@,$CPPFLAGS,;t t 5072s,@ac_ct_CC@,$ac_ct_CC,;t t 5073s,@EXEEXT@,$EXEEXT,;t t 5074s,@OBJEXT@,$OBJEXT,;t t 5075s,@SET_MAKE@,$SET_MAKE,;t t 5076s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5077s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5078s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5079s,@CTAGS@,$CTAGS,;t t 5080s,@ETAGS@,$ETAGS,;t t 5081s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 5082s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 5083s,@LINT@,$LINT,;t t 5084s,@LINT_OPTS@,$LINT_OPTS,;t t 5085s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 5086s,@CPP@,$CPP,;t t 5087s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 5088s,@ECHO_LT@,$ECHO_LT,;t t 5089s,@ECHO_LD@,$ECHO_LD,;t t 5090s,@RULE_CC@,$RULE_CC,;t t 5091s,@SHOW_CC@,$SHOW_CC,;t t 5092s,@ECHO_CC@,$ECHO_CC,;t t 5093s,@PROG_EXT@,$PROG_EXT,;t t 5094CEOF 5095 5096EOF 5097 5098 cat >>$CONFIG_STATUS <<\EOF 5099 # Split the substitutions into bite-sized pieces for seds with 5100 # small command number limits, like on Digital OSF/1 and HP-UX. 5101 ac_max_sed_lines=48 5102 ac_sed_frag=1 # Number of current file. 5103 ac_beg=1 # First line for current file. 5104 ac_end=$ac_max_sed_lines # Line after last line for current file. 5105 ac_more_lines=: 5106 ac_sed_cmds= 5107 while $ac_more_lines; do 5108 if test $ac_beg -gt 1; then 5109 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5110 else 5111 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5112 fi 5113 if test ! -s $tmp/subs.frag; then 5114 ac_more_lines=false 5115 else 5116 # The purpose of the label and of the branching condition is to 5117 # speed up the sed processing (if there are no `@' at all, there 5118 # is no need to browse any of the substitutions). 5119 # These are the two extra sed commands mentioned above. 5120 (echo ':t 5121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5122 if test -z "$ac_sed_cmds"; then 5123 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5124 else 5125 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5126 fi 5127 ac_sed_frag=`expr $ac_sed_frag + 1` 5128 ac_beg=$ac_end 5129 ac_end=`expr $ac_end + $ac_max_sed_lines` 5130 fi 5131 done 5132 if test -z "$ac_sed_cmds"; then 5133 ac_sed_cmds=cat 5134 fi 5135fi # test -n "$CONFIG_FILES" 5136 5137EOF 5138cat >>$CONFIG_STATUS <<\EOF 5139for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5141 case $ac_file in 5142 - | *:- | *:-:* ) # input from stdin 5143 cat >$tmp/stdin 5144 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5146 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5148 * ) ac_file_in=$ac_file.in ;; 5149 esac 5150 5151 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5152 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5153 X"$ac_file" : 'X\(//\)[^/]' \| \ 5154 X"$ac_file" : 'X\(//\)$' \| \ 5155 X"$ac_file" : 'X\(/\)' \| \ 5156 . : '\(.\)' 2>/dev/null || 5157echo X"$ac_file" | 5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5159 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5160 /^X\(\/\/\)$/{ s//\1/; q; } 5161 /^X\(\/\).*/{ s//\1/; q; } 5162 s/.*/./; q'` 5163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5164 { case "$ac_dir" in 5165 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5166 *) as_incr_dir=.;; 5167esac 5168as_dummy="$ac_dir" 5169for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5170 case $as_mkdir_dir in 5171 # Skip DOS drivespec 5172 ?:) as_incr_dir=$as_mkdir_dir ;; 5173 *) 5174 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5175 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5176 ;; 5177 esac 5178done; } 5179 5180 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5181 # A "../" for each directory in $ac_dir_suffix. 5182 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5183 else 5184 ac_dir_suffix= ac_dots= 5185 fi 5186 5187 case $srcdir in 5188 .) ac_srcdir=. 5189 if test -z "$ac_dots"; then 5190 ac_top_srcdir=. 5191 else 5192 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5193 fi ;; 5194 [\\/]* | ?:[\\/]* ) 5195 ac_srcdir=$srcdir$ac_dir_suffix; 5196 ac_top_srcdir=$srcdir ;; 5197 *) # Relative path. 5198 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5199 ac_top_srcdir=$ac_dots$srcdir ;; 5200 esac 5201 5202 case $INSTALL in 5203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5204 *) ac_INSTALL=$ac_dots$INSTALL ;; 5205 esac 5206 5207 if test x"$ac_file" != x-; then 5208 { echo "$as_me:5208: creating $ac_file" >&5 5209echo "$as_me: creating $ac_file" >&6;} 5210 rm -f "$ac_file" 5211 fi 5212 # Let's still pretend it is `configure' which instantiates (i.e., don't 5213 # use $as_me), people would be surprised to read: 5214 # /* config.h. Generated automatically by config.status. */ 5215 configure_input="Generated automatically from `echo $ac_file_in | 5216 sed 's,.*/,,'` by configure." 5217 5218 # First look for the input files in the build tree, otherwise in the 5219 # src tree. 5220 ac_file_inputs=`IFS=: 5221 for f in $ac_file_in; do 5222 case $f in 5223 -) echo $tmp/stdin ;; 5224 [\\/$]*) 5225 # Absolute (can't be DOS-style, as IFS=:) 5226 test -f "$f" || { { echo "$as_me:5226: error: cannot find input file: $f" >&5 5227echo "$as_me: error: cannot find input file: $f" >&2;} 5228 { (exit 1); exit 1; }; } 5229 echo $f;; 5230 *) # Relative 5231 if test -f "$f"; then 5232 # Build tree 5233 echo $f 5234 elif test -f "$srcdir/$f"; then 5235 # Source tree 5236 echo $srcdir/$f 5237 else 5238 # /dev/null tree 5239 { { echo "$as_me:5239: error: cannot find input file: $f" >&5 5240echo "$as_me: error: cannot find input file: $f" >&2;} 5241 { (exit 1); exit 1; }; } 5242 fi;; 5243 esac 5244 done` || { (exit 1); exit 1; } 5245EOF 5246cat >>$CONFIG_STATUS <<EOF 5247 sed "$ac_vpsub 5248$extrasub 5249EOF 5250cat >>$CONFIG_STATUS <<\EOF 5251:t 5252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5253s,@configure_input@,$configure_input,;t t 5254s,@srcdir@,$ac_srcdir,;t t 5255s,@top_srcdir@,$ac_top_srcdir,;t t 5256s,@INSTALL@,$ac_INSTALL,;t t 5257" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5258 rm -f $tmp/stdin 5259 if test x"$ac_file" != x-; then 5260 mv $tmp/out $ac_file 5261 else 5262 cat $tmp/out 5263 rm -f $tmp/out 5264 fi 5265 5266done 5267EOF 5268cat >>$CONFIG_STATUS <<\EOF 5269 5270# 5271# CONFIG_HEADER section. 5272# 5273 5274# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5275# NAME is the cpp macro being defined and VALUE is the value it is being given. 5276# 5277# ac_d sets the value in "#define NAME VALUE" lines. 5278ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5279ac_dB='[ ].*$,\1#\2' 5280ac_dC=' ' 5281ac_dD=',;t' 5282# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5283ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5284ac_iB='\([ ]\),\1#\2define\3' 5285ac_iC=' ' 5286ac_iD='\4,;t' 5287# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5288ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5289ac_uB='$,\1#\2define\3' 5290ac_uC=' ' 5291ac_uD=',;t' 5292 5293for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5295 case $ac_file in 5296 - | *:- | *:-:* ) # input from stdin 5297 cat >$tmp/stdin 5298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5302 * ) ac_file_in=$ac_file.in ;; 5303 esac 5304 5305 test x"$ac_file" != x- && { echo "$as_me:5305: creating $ac_file" >&5 5306echo "$as_me: creating $ac_file" >&6;} 5307 5308 # First look for the input files in the build tree, otherwise in the 5309 # src tree. 5310 ac_file_inputs=`IFS=: 5311 for f in $ac_file_in; do 5312 case $f in 5313 -) echo $tmp/stdin ;; 5314 [\\/$]*) 5315 # Absolute (can't be DOS-style, as IFS=:) 5316 test -f "$f" || { { echo "$as_me:5316: error: cannot find input file: $f" >&5 5317echo "$as_me: error: cannot find input file: $f" >&2;} 5318 { (exit 1); exit 1; }; } 5319 echo $f;; 5320 *) # Relative 5321 if test -f "$f"; then 5322 # Build tree 5323 echo $f 5324 elif test -f "$srcdir/$f"; then 5325 # Source tree 5326 echo $srcdir/$f 5327 else 5328 # /dev/null tree 5329 { { echo "$as_me:5329: error: cannot find input file: $f" >&5 5330echo "$as_me: error: cannot find input file: $f" >&2;} 5331 { (exit 1); exit 1; }; } 5332 fi;; 5333 esac 5334 done` || { (exit 1); exit 1; } 5335 # Remove the trailing spaces. 5336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5337 5338EOF 5339 5340# Transform confdefs.h into a list of #define's. We won't use it as a sed 5341# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to 5342# be either 'cat' or 'sort'. 5343cat confdefs.h | uniq >conftest.vals 5344 5345# Break up conftest.vals because some shells have a limit on 5346# the size of here documents, and old seds have small limits too. 5347 5348rm -f conftest.tail 5349echo ' rm -f conftest.frag' >> $CONFIG_STATUS 5350while grep . conftest.vals >/dev/null 5351do 5352 # Write chunks of a limited-size here document to conftest.frag. 5353 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS 5354 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS 5355 echo 'CEOF' >> $CONFIG_STATUS 5356 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 5357 rm -f conftest.vals 5358 mv conftest.tail conftest.vals 5359done 5360rm -f conftest.vals 5361 5362# Run sed to substitute the contents of conftest.frag into $tmp/in at the 5363# marker @DEFS@. 5364echo ' cat >> conftest.edit <<CEOF 5365/@DEFS@/r conftest.frag 5366/@DEFS@/d 5367CEOF 5368sed -f conftest.edit $tmp/in > $tmp/out 5369rm -f $tmp/in 5370mv $tmp/out $tmp/in 5371rm -f conftest.edit conftest.frag 5372' >> $CONFIG_STATUS 5373 5374cat >>$CONFIG_STATUS <<\EOF 5375 # Let's still pretend it is `configure' which instantiates (i.e., don't 5376 # use $as_me), people would be surprised to read: 5377 # /* config.h. Generated automatically by config.status. */ 5378 if test x"$ac_file" = x-; then 5379 echo "/* Generated automatically by configure. */" >$tmp/config.h 5380 else 5381 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5382 fi 5383 cat $tmp/in >>$tmp/config.h 5384 rm -f $tmp/in 5385 if test x"$ac_file" != x-; then 5386 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5387 { echo "$as_me:5387: $ac_file is unchanged" >&5 5388echo "$as_me: $ac_file is unchanged" >&6;} 5389 else 5390 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5391 X"$ac_file" : 'X\(//\)[^/]' \| \ 5392 X"$ac_file" : 'X\(//\)$' \| \ 5393 X"$ac_file" : 'X\(/\)' \| \ 5394 . : '\(.\)' 2>/dev/null || 5395echo X"$ac_file" | 5396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5397 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5398 /^X\(\/\/\)$/{ s//\1/; q; } 5399 /^X\(\/\).*/{ s//\1/; q; } 5400 s/.*/./; q'` 5401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5402 { case "$ac_dir" in 5403 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5404 *) as_incr_dir=.;; 5405esac 5406as_dummy="$ac_dir" 5407for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5408 case $as_mkdir_dir in 5409 # Skip DOS drivespec 5410 ?:) as_incr_dir=$as_mkdir_dir ;; 5411 *) 5412 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5413 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5414 ;; 5415 esac 5416done; } 5417 5418 fi 5419 rm -f $ac_file 5420 mv $tmp/config.h $ac_file 5421 fi 5422 else 5423 cat $tmp/config.h 5424 rm -f $tmp/config.h 5425 fi 5426done 5427EOF 5428 5429cat >>$CONFIG_STATUS <<\EOF 5430 5431{ (exit 0); exit 0; } 5432EOF 5433chmod +x $CONFIG_STATUS 5434ac_clean_files=$ac_clean_files_save 5435 5436# configure is writing to config.log, and then calls config.status. 5437# config.status does its own redirection, appending to config.log. 5438# Unfortunately, on DOS this fails, as config.log is still kept open 5439# by configure, so config.status won't be able to write to it; its 5440# output is simply discarded. So we exec the FD to /dev/null, 5441# effectively closing config.log, so it can be properly (re)opened and 5442# appended to by config.status. When coming back to configure, we 5443# need to make the FD available again. 5444if test "$no_create" != yes; then 5445 ac_cs_success=: 5446 exec 5>/dev/null 5447 $SHELL $CONFIG_STATUS || ac_cs_success=false 5448 exec 5>>config.log 5449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5450 # would make configure fail if this is the last instruction. 5451 $ac_cs_success || { (exit 1); exit 1; } 5452fi 5453 5454