1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="shared_mem.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CPP EGREP LIB ARCH LOCK S_TO_O LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833_ACEOF 834fi 835 836if test -n "$ac_init_help"; then 837 838 cat <<\_ACEOF 839 840Some influential environment variables: 841 CC C compiler command 842 CFLAGS C compiler flags 843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 844 nonstandard directory <lib dir> 845 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 846 headers in a nonstandard directory <include dir> 847 CPP C preprocessor 848 849Use these variables to override the choices made by `configure' or to help 850it to find libraries and programs with nonstandard names/locations. 851 852_ACEOF 853fi 854 855if test "$ac_init_help" = "recursive"; then 856 # If there are subdirs, report their specific --help. 857 ac_popdir=`pwd` 858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 859 test -d $ac_dir || continue 860 ac_builddir=. 861 862if test "$ac_dir" != .; then 863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 864 # A "../" for each directory in $ac_dir_suffix. 865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 866else 867 ac_dir_suffix= ac_top_builddir= 868fi 869 870case $srcdir in 871 .) # No --srcdir option. We are building in place. 872 ac_srcdir=. 873 if test -z "$ac_top_builddir"; then 874 ac_top_srcdir=. 875 else 876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 877 fi ;; 878 [\\/]* | ?:[\\/]* ) # Absolute path. 879 ac_srcdir=$srcdir$ac_dir_suffix; 880 ac_top_srcdir=$srcdir ;; 881 *) # Relative path. 882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 883 ac_top_srcdir=$ac_top_builddir$srcdir ;; 884esac 885 886# Do not use `cd foo && pwd` to compute absolute paths, because 887# the directories may not exist. 888case `pwd` in 889.) ac_abs_builddir="$ac_dir";; 890*) 891 case "$ac_dir" in 892 .) ac_abs_builddir=`pwd`;; 893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 894 *) ac_abs_builddir=`pwd`/"$ac_dir";; 895 esac;; 896esac 897case $ac_abs_builddir in 898.) ac_abs_top_builddir=${ac_top_builddir}.;; 899*) 900 case ${ac_top_builddir}. in 901 .) ac_abs_top_builddir=$ac_abs_builddir;; 902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 904 esac;; 905esac 906case $ac_abs_builddir in 907.) ac_abs_srcdir=$ac_srcdir;; 908*) 909 case $ac_srcdir in 910 .) ac_abs_srcdir=$ac_abs_builddir;; 911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 913 esac;; 914esac 915case $ac_abs_builddir in 916.) ac_abs_top_srcdir=$ac_top_srcdir;; 917*) 918 case $ac_top_srcdir in 919 .) ac_abs_top_srcdir=$ac_abs_builddir;; 920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 922 esac;; 923esac 924 925 cd $ac_dir 926 # Check for guested configure; otherwise get Cygnus style configure. 927 if test -f $ac_srcdir/configure.gnu; then 928 echo 929 $SHELL $ac_srcdir/configure.gnu --help=recursive 930 elif test -f $ac_srcdir/configure; then 931 echo 932 $SHELL $ac_srcdir/configure --help=recursive 933 elif test -f $ac_srcdir/configure.ac || 934 test -f $ac_srcdir/configure.in; then 935 echo 936 $ac_configure --help 937 else 938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 939 fi 940 cd $ac_popdir 941 done 942fi 943 944test -n "$ac_init_help" && exit 0 945if $ac_init_version; then 946 cat <<\_ACEOF 947 948Copyright (C) 2003 Free Software Foundation, Inc. 949This configure script is free software; the Free Software Foundation 950gives unlimited permission to copy, distribute and modify it. 951_ACEOF 952 exit 0 953fi 954exec 5>config.log 955cat >&5 <<_ACEOF 956This file contains any messages produced by compilers while 957running configure, to aid debugging if configure makes a mistake. 958 959It was created by $as_me, which was 960generated by GNU Autoconf 2.59. Invocation command line was 961 962 $ $0 $@ 963 964_ACEOF 965{ 966cat <<_ASUNAME 967## --------- ## 968## Platform. ## 969## --------- ## 970 971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 972uname -m = `(uname -m) 2>/dev/null || echo unknown` 973uname -r = `(uname -r) 2>/dev/null || echo unknown` 974uname -s = `(uname -s) 2>/dev/null || echo unknown` 975uname -v = `(uname -v) 2>/dev/null || echo unknown` 976 977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 979 980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 983hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 987 988_ASUNAME 989 990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 991for as_dir in $PATH 992do 993 IFS=$as_save_IFS 994 test -z "$as_dir" && as_dir=. 995 echo "PATH: $as_dir" 996done 997 998} >&5 999 1000cat >&5 <<_ACEOF 1001 1002 1003## ----------- ## 1004## Core tests. ## 1005## ----------- ## 1006 1007_ACEOF 1008 1009 1010# Keep a trace of the command line. 1011# Strip out --no-create and --no-recursion so they do not pile up. 1012# Strip out --silent because we don't want to record it for future runs. 1013# Also quote any args containing shell meta-characters. 1014# Make two passes to allow for proper duplicate-argument suppression. 1015ac_configure_args= 1016ac_configure_args0= 1017ac_configure_args1= 1018ac_sep= 1019ac_must_keep_next=false 1020for ac_pass in 1 2 1021do 1022 for ac_arg 1023 do 1024 case $ac_arg in 1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1027 | -silent | --silent | --silen | --sile | --sil) 1028 continue ;; 1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1031 esac 1032 case $ac_pass in 1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1034 2) 1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1036 if test $ac_must_keep_next = true; then 1037 ac_must_keep_next=false # Got value, back to normal. 1038 else 1039 case $ac_arg in 1040 *=* | --config-cache | -C | -disable-* | --disable-* \ 1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1043 | -with-* | --with-* | -without-* | --without-* | --x) 1044 case "$ac_configure_args0 " in 1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1046 esac 1047 ;; 1048 -* ) ac_must_keep_next=true ;; 1049 esac 1050 fi 1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1052 # Get rid of the leading space. 1053 ac_sep=" " 1054 ;; 1055 esac 1056 done 1057done 1058$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1059$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1060 1061# When interrupted or exit'd, cleanup temporary files, and complete 1062# config.log. We remove comments because anyway the quotes in there 1063# would cause problems or look ugly. 1064# WARNING: Be sure not to use single quotes in there, as some shells, 1065# such as our DU 5.0 friend, will then `close' the trap. 1066trap 'exit_status=$? 1067 # Save into config.log some information that might help in debugging. 1068 { 1069 echo 1070 1071 cat <<\_ASBOX 1072## ---------------- ## 1073## Cache variables. ## 1074## ---------------- ## 1075_ASBOX 1076 echo 1077 # The following way of writing the cache mishandles newlines in values, 1078{ 1079 (set) 2>&1 | 1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1081 *ac_space=\ *) 1082 sed -n \ 1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1085 ;; 1086 *) 1087 sed -n \ 1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1089 ;; 1090 esac; 1091} 1092 echo 1093 1094 cat <<\_ASBOX 1095## ----------------- ## 1096## Output variables. ## 1097## ----------------- ## 1098_ASBOX 1099 echo 1100 for ac_var in $ac_subst_vars 1101 do 1102 eval ac_val=$`echo $ac_var` 1103 echo "$ac_var='"'"'$ac_val'"'"'" 1104 done | sort 1105 echo 1106 1107 if test -n "$ac_subst_files"; then 1108 cat <<\_ASBOX 1109## ------------- ## 1110## Output files. ## 1111## ------------- ## 1112_ASBOX 1113 echo 1114 for ac_var in $ac_subst_files 1115 do 1116 eval ac_val=$`echo $ac_var` 1117 echo "$ac_var='"'"'$ac_val'"'"'" 1118 done | sort 1119 echo 1120 fi 1121 1122 if test -s confdefs.h; then 1123 cat <<\_ASBOX 1124## ----------- ## 1125## confdefs.h. ## 1126## ----------- ## 1127_ASBOX 1128 echo 1129 sed "/^$/d" confdefs.h | sort 1130 echo 1131 fi 1132 test "$ac_signal" != 0 && 1133 echo "$as_me: caught signal $ac_signal" 1134 echo "$as_me: exit $exit_status" 1135 } >&5 1136 rm -f core *.core && 1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1138 exit $exit_status 1139 ' 0 1140for ac_signal in 1 2 13 15; do 1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1142done 1143ac_signal=0 1144 1145# confdefs.h avoids OS command line length limits that DEFS can exceed. 1146rm -rf conftest* confdefs.h 1147# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1148echo >confdefs.h 1149 1150# Predefined preprocessor variables. 1151 1152cat >>confdefs.h <<_ACEOF 1153#define PACKAGE_NAME "$PACKAGE_NAME" 1154_ACEOF 1155 1156 1157cat >>confdefs.h <<_ACEOF 1158#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1159_ACEOF 1160 1161 1162cat >>confdefs.h <<_ACEOF 1163#define PACKAGE_VERSION "$PACKAGE_VERSION" 1164_ACEOF 1165 1166 1167cat >>confdefs.h <<_ACEOF 1168#define PACKAGE_STRING "$PACKAGE_STRING" 1169_ACEOF 1170 1171 1172cat >>confdefs.h <<_ACEOF 1173#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1174_ACEOF 1175 1176 1177# Let the site file select an alternate cache file if it wants to. 1178# Prefer explicitly selected file to automatically selected ones. 1179if test -z "$CONFIG_SITE"; then 1180 if test "x$prefix" != xNONE; then 1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1182 else 1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1184 fi 1185fi 1186for ac_site_file in $CONFIG_SITE; do 1187 if test -r "$ac_site_file"; then 1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1189echo "$as_me: loading site script $ac_site_file" >&6;} 1190 sed 's/^/| /' "$ac_site_file" >&5 1191 . "$ac_site_file" 1192 fi 1193done 1194 1195if test -r "$cache_file"; then 1196 # Some versions of bash will fail to source /dev/null (special 1197 # files actually), so we avoid doing that. 1198 if test -f "$cache_file"; then 1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1200echo "$as_me: loading cache $cache_file" >&6;} 1201 case $cache_file in 1202 [\\/]* | ?:[\\/]* ) . $cache_file;; 1203 *) . ./$cache_file;; 1204 esac 1205 fi 1206else 1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1208echo "$as_me: creating cache $cache_file" >&6;} 1209 >$cache_file 1210fi 1211 1212# Check that the precious variables saved in the cache have kept the same 1213# value. 1214ac_cache_corrupted=false 1215for ac_var in `(set) 2>&1 | 1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1218 eval ac_new_set=\$ac_env_${ac_var}_set 1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1220 eval ac_new_val="\$ac_env_${ac_var}_value" 1221 case $ac_old_set,$ac_new_set in 1222 set,) 1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1224echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1225 ac_cache_corrupted=: ;; 1226 ,set) 1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1228echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1229 ac_cache_corrupted=: ;; 1230 ,);; 1231 *) 1232 if test "x$ac_old_val" != "x$ac_new_val"; then 1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1234echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1236echo "$as_me: former value: $ac_old_val" >&2;} 1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1238echo "$as_me: current value: $ac_new_val" >&2;} 1239 ac_cache_corrupted=: 1240 fi;; 1241 esac 1242 # Pass precious variables to config.status. 1243 if test "$ac_new_set" = set; then 1244 case $ac_new_val in 1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1247 *) ac_arg=$ac_var=$ac_new_val ;; 1248 esac 1249 case " $ac_configure_args " in 1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1252 esac 1253 fi 1254done 1255if $ac_cache_corrupted; then 1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1257echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1259echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1260 { (exit 1); exit 1; }; } 1261fi 1262 1263ac_ext=c 1264ac_cpp='$CPP $CPPFLAGS' 1265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1267ac_compiler_gnu=$ac_cv_c_compiler_gnu 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 ac_config_headers="$ac_config_headers config.h" 1288 1289 1290# 1291# UNIX variants 1292# 1293 1294ac_ext=c 1295ac_cpp='$CPP $CPPFLAGS' 1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1298ac_compiler_gnu=$ac_cv_c_compiler_gnu 1299if test -n "$ac_tool_prefix"; then 1300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1301set dummy ${ac_tool_prefix}gcc; ac_word=$2 1302echo "$as_me:$LINENO: checking for $ac_word" >&5 1303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1304if test "${ac_cv_prog_CC+set}" = set; then 1305 echo $ECHO_N "(cached) $ECHO_C" >&6 1306else 1307 if test -n "$CC"; then 1308 ac_cv_prog_CC="$CC" # Let the user override the test. 1309else 1310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1311for as_dir in $PATH 1312do 1313 IFS=$as_save_IFS 1314 test -z "$as_dir" && as_dir=. 1315 for ac_exec_ext in '' $ac_executable_extensions; do 1316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1317 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1319 break 2 1320 fi 1321done 1322done 1323 1324fi 1325fi 1326CC=$ac_cv_prog_CC 1327if test -n "$CC"; then 1328 echo "$as_me:$LINENO: result: $CC" >&5 1329echo "${ECHO_T}$CC" >&6 1330else 1331 echo "$as_me:$LINENO: result: no" >&5 1332echo "${ECHO_T}no" >&6 1333fi 1334 1335fi 1336if test -z "$ac_cv_prog_CC"; then 1337 ac_ct_CC=$CC 1338 # Extract the first word of "gcc", so it can be a program name with args. 1339set dummy gcc; ac_word=$2 1340echo "$as_me:$LINENO: checking for $ac_word" >&5 1341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1342if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1343 echo $ECHO_N "(cached) $ECHO_C" >&6 1344else 1345 if test -n "$ac_ct_CC"; then 1346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1347else 1348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1349for as_dir in $PATH 1350do 1351 IFS=$as_save_IFS 1352 test -z "$as_dir" && as_dir=. 1353 for ac_exec_ext in '' $ac_executable_extensions; do 1354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1355 ac_cv_prog_ac_ct_CC="gcc" 1356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1357 break 2 1358 fi 1359done 1360done 1361 1362fi 1363fi 1364ac_ct_CC=$ac_cv_prog_ac_ct_CC 1365if test -n "$ac_ct_CC"; then 1366 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1367echo "${ECHO_T}$ac_ct_CC" >&6 1368else 1369 echo "$as_me:$LINENO: result: no" >&5 1370echo "${ECHO_T}no" >&6 1371fi 1372 1373 CC=$ac_ct_CC 1374else 1375 CC="$ac_cv_prog_CC" 1376fi 1377 1378if test -z "$CC"; then 1379 if test -n "$ac_tool_prefix"; then 1380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1381set dummy ${ac_tool_prefix}cc; ac_word=$2 1382echo "$as_me:$LINENO: checking for $ac_word" >&5 1383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1384if test "${ac_cv_prog_CC+set}" = set; then 1385 echo $ECHO_N "(cached) $ECHO_C" >&6 1386else 1387 if test -n "$CC"; then 1388 ac_cv_prog_CC="$CC" # Let the user override the test. 1389else 1390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1391for as_dir in $PATH 1392do 1393 IFS=$as_save_IFS 1394 test -z "$as_dir" && as_dir=. 1395 for ac_exec_ext in '' $ac_executable_extensions; do 1396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1397 ac_cv_prog_CC="${ac_tool_prefix}cc" 1398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1399 break 2 1400 fi 1401done 1402done 1403 1404fi 1405fi 1406CC=$ac_cv_prog_CC 1407if test -n "$CC"; then 1408 echo "$as_me:$LINENO: result: $CC" >&5 1409echo "${ECHO_T}$CC" >&6 1410else 1411 echo "$as_me:$LINENO: result: no" >&5 1412echo "${ECHO_T}no" >&6 1413fi 1414 1415fi 1416if test -z "$ac_cv_prog_CC"; then 1417 ac_ct_CC=$CC 1418 # Extract the first word of "cc", so it can be a program name with args. 1419set dummy cc; ac_word=$2 1420echo "$as_me:$LINENO: checking for $ac_word" >&5 1421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1423 echo $ECHO_N "(cached) $ECHO_C" >&6 1424else 1425 if test -n "$ac_ct_CC"; then 1426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1427else 1428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1429for as_dir in $PATH 1430do 1431 IFS=$as_save_IFS 1432 test -z "$as_dir" && as_dir=. 1433 for ac_exec_ext in '' $ac_executable_extensions; do 1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1435 ac_cv_prog_ac_ct_CC="cc" 1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1437 break 2 1438 fi 1439done 1440done 1441 1442fi 1443fi 1444ac_ct_CC=$ac_cv_prog_ac_ct_CC 1445if test -n "$ac_ct_CC"; then 1446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1447echo "${ECHO_T}$ac_ct_CC" >&6 1448else 1449 echo "$as_me:$LINENO: result: no" >&5 1450echo "${ECHO_T}no" >&6 1451fi 1452 1453 CC=$ac_ct_CC 1454else 1455 CC="$ac_cv_prog_CC" 1456fi 1457 1458fi 1459if test -z "$CC"; then 1460 # Extract the first word of "cc", so it can be a program name with args. 1461set dummy cc; ac_word=$2 1462echo "$as_me:$LINENO: checking for $ac_word" >&5 1463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1464if test "${ac_cv_prog_CC+set}" = set; then 1465 echo $ECHO_N "(cached) $ECHO_C" >&6 1466else 1467 if test -n "$CC"; then 1468 ac_cv_prog_CC="$CC" # Let the user override the test. 1469else 1470 ac_prog_rejected=no 1471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1472for as_dir in $PATH 1473do 1474 IFS=$as_save_IFS 1475 test -z "$as_dir" && as_dir=. 1476 for ac_exec_ext in '' $ac_executable_extensions; do 1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1479 ac_prog_rejected=yes 1480 continue 1481 fi 1482 ac_cv_prog_CC="cc" 1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1484 break 2 1485 fi 1486done 1487done 1488 1489if test $ac_prog_rejected = yes; then 1490 # We found a bogon in the path, so make sure we never use it. 1491 set dummy $ac_cv_prog_CC 1492 shift 1493 if test $# != 0; then 1494 # We chose a different compiler from the bogus one. 1495 # However, it has the same basename, so the bogon will be chosen 1496 # first if we set CC to just the basename; use the full file name. 1497 shift 1498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1499 fi 1500fi 1501fi 1502fi 1503CC=$ac_cv_prog_CC 1504if test -n "$CC"; then 1505 echo "$as_me:$LINENO: result: $CC" >&5 1506echo "${ECHO_T}$CC" >&6 1507else 1508 echo "$as_me:$LINENO: result: no" >&5 1509echo "${ECHO_T}no" >&6 1510fi 1511 1512fi 1513if test -z "$CC"; then 1514 if test -n "$ac_tool_prefix"; then 1515 for ac_prog in cl 1516 do 1517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1518set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1519echo "$as_me:$LINENO: checking for $ac_word" >&5 1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1521if test "${ac_cv_prog_CC+set}" = set; then 1522 echo $ECHO_N "(cached) $ECHO_C" >&6 1523else 1524 if test -n "$CC"; then 1525 ac_cv_prog_CC="$CC" # Let the user override the test. 1526else 1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1528for as_dir in $PATH 1529do 1530 IFS=$as_save_IFS 1531 test -z "$as_dir" && as_dir=. 1532 for ac_exec_ext in '' $ac_executable_extensions; do 1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1536 break 2 1537 fi 1538done 1539done 1540 1541fi 1542fi 1543CC=$ac_cv_prog_CC 1544if test -n "$CC"; then 1545 echo "$as_me:$LINENO: result: $CC" >&5 1546echo "${ECHO_T}$CC" >&6 1547else 1548 echo "$as_me:$LINENO: result: no" >&5 1549echo "${ECHO_T}no" >&6 1550fi 1551 1552 test -n "$CC" && break 1553 done 1554fi 1555if test -z "$CC"; then 1556 ac_ct_CC=$CC 1557 for ac_prog in cl 1558do 1559 # Extract the first word of "$ac_prog", so it can be a program name with args. 1560set dummy $ac_prog; ac_word=$2 1561echo "$as_me:$LINENO: checking for $ac_word" >&5 1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1564 echo $ECHO_N "(cached) $ECHO_C" >&6 1565else 1566 if test -n "$ac_ct_CC"; then 1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1568else 1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1570for as_dir in $PATH 1571do 1572 IFS=$as_save_IFS 1573 test -z "$as_dir" && as_dir=. 1574 for ac_exec_ext in '' $ac_executable_extensions; do 1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1576 ac_cv_prog_ac_ct_CC="$ac_prog" 1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1578 break 2 1579 fi 1580done 1581done 1582 1583fi 1584fi 1585ac_ct_CC=$ac_cv_prog_ac_ct_CC 1586if test -n "$ac_ct_CC"; then 1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1588echo "${ECHO_T}$ac_ct_CC" >&6 1589else 1590 echo "$as_me:$LINENO: result: no" >&5 1591echo "${ECHO_T}no" >&6 1592fi 1593 1594 test -n "$ac_ct_CC" && break 1595done 1596 1597 CC=$ac_ct_CC 1598fi 1599 1600fi 1601 1602 1603test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1604See \`config.log' for more details." >&5 1605echo "$as_me: error: no acceptable C compiler found in \$PATH 1606See \`config.log' for more details." >&2;} 1607 { (exit 1); exit 1; }; } 1608 1609# Provide some information about the compiler. 1610echo "$as_me:$LINENO:" \ 1611 "checking for C compiler version" >&5 1612ac_compiler=`set X $ac_compile; echo $2` 1613{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1614 (eval $ac_compiler --version </dev/null >&5) 2>&5 1615 ac_status=$? 1616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1617 (exit $ac_status); } 1618{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1619 (eval $ac_compiler -v </dev/null >&5) 2>&5 1620 ac_status=$? 1621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1622 (exit $ac_status); } 1623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1624 (eval $ac_compiler -V </dev/null >&5) 2>&5 1625 ac_status=$? 1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1627 (exit $ac_status); } 1628 1629cat >conftest.$ac_ext <<_ACEOF 1630/* confdefs.h. */ 1631_ACEOF 1632cat confdefs.h >>conftest.$ac_ext 1633cat >>conftest.$ac_ext <<_ACEOF 1634/* end confdefs.h. */ 1635 1636int 1637main () 1638{ 1639 1640 ; 1641 return 0; 1642} 1643_ACEOF 1644ac_clean_files_save=$ac_clean_files 1645ac_clean_files="$ac_clean_files a.out a.exe b.out" 1646# Try to create an executable without -o first, disregard a.out. 1647# It will help us diagnose broken compilers, and finding out an intuition 1648# of exeext. 1649echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1650echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1651ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1652if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1653 (eval $ac_link_default) 2>&5 1654 ac_status=$? 1655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1656 (exit $ac_status); }; then 1657 # Find the output, starting from the most likely. This scheme is 1658# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1659# resort. 1660 1661# Be careful to initialize this variable, since it used to be cached. 1662# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1663ac_cv_exeext= 1664# b.out is created by i960 compilers. 1665for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1666do 1667 test -f "$ac_file" || continue 1668 case $ac_file in 1669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1670 ;; 1671 conftest.$ac_ext ) 1672 # This is the source file. 1673 ;; 1674 [ab].out ) 1675 # We found the default executable, but exeext='' is most 1676 # certainly right. 1677 break;; 1678 *.* ) 1679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1680 # FIXME: I believe we export ac_cv_exeext for Libtool, 1681 # but it would be cool to find out if it's true. Does anybody 1682 # maintain Libtool? --akim. 1683 export ac_cv_exeext 1684 break;; 1685 * ) 1686 break;; 1687 esac 1688done 1689else 1690 echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1694See \`config.log' for more details." >&5 1695echo "$as_me: error: C compiler cannot create executables 1696See \`config.log' for more details." >&2;} 1697 { (exit 77); exit 77; }; } 1698fi 1699 1700ac_exeext=$ac_cv_exeext 1701echo "$as_me:$LINENO: result: $ac_file" >&5 1702echo "${ECHO_T}$ac_file" >&6 1703 1704# Check the compiler produces executables we can run. If not, either 1705# the compiler is broken, or we cross compile. 1706echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1707echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1708# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1709# If not cross compiling, check that we can run a simple program. 1710if test "$cross_compiling" != yes; then 1711 if { ac_try='./$ac_file' 1712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1713 (eval $ac_try) 2>&5 1714 ac_status=$? 1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1716 (exit $ac_status); }; }; then 1717 cross_compiling=no 1718 else 1719 if test "$cross_compiling" = maybe; then 1720 cross_compiling=yes 1721 else 1722 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1723If you meant to cross compile, use \`--host'. 1724See \`config.log' for more details." >&5 1725echo "$as_me: error: cannot run C compiled programs. 1726If you meant to cross compile, use \`--host'. 1727See \`config.log' for more details." >&2;} 1728 { (exit 1); exit 1; }; } 1729 fi 1730 fi 1731fi 1732echo "$as_me:$LINENO: result: yes" >&5 1733echo "${ECHO_T}yes" >&6 1734 1735rm -f a.out a.exe conftest$ac_cv_exeext b.out 1736ac_clean_files=$ac_clean_files_save 1737# Check the compiler produces executables we can run. If not, either 1738# the compiler is broken, or we cross compile. 1739echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1740echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1741echo "$as_me:$LINENO: result: $cross_compiling" >&5 1742echo "${ECHO_T}$cross_compiling" >&6 1743 1744echo "$as_me:$LINENO: checking for suffix of executables" >&5 1745echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1747 (eval $ac_link) 2>&5 1748 ac_status=$? 1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1750 (exit $ac_status); }; then 1751 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1752# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1753# work properly (i.e., refer to `conftest.exe'), while it won't with 1754# `rm'. 1755for ac_file in conftest.exe conftest conftest.*; do 1756 test -f "$ac_file" || continue 1757 case $ac_file in 1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1760 export ac_cv_exeext 1761 break;; 1762 * ) break;; 1763 esac 1764done 1765else 1766 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1767See \`config.log' for more details." >&5 1768echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1769See \`config.log' for more details." >&2;} 1770 { (exit 1); exit 1; }; } 1771fi 1772 1773rm -f conftest$ac_cv_exeext 1774echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1775echo "${ECHO_T}$ac_cv_exeext" >&6 1776 1777rm -f conftest.$ac_ext 1778EXEEXT=$ac_cv_exeext 1779ac_exeext=$EXEEXT 1780echo "$as_me:$LINENO: checking for suffix of object files" >&5 1781echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1782if test "${ac_cv_objext+set}" = set; then 1783 echo $ECHO_N "(cached) $ECHO_C" >&6 1784else 1785 cat >conftest.$ac_ext <<_ACEOF 1786/* confdefs.h. */ 1787_ACEOF 1788cat confdefs.h >>conftest.$ac_ext 1789cat >>conftest.$ac_ext <<_ACEOF 1790/* end confdefs.h. */ 1791 1792int 1793main () 1794{ 1795 1796 ; 1797 return 0; 1798} 1799_ACEOF 1800rm -f conftest.o conftest.obj 1801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1802 (eval $ac_compile) 2>&5 1803 ac_status=$? 1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1805 (exit $ac_status); }; then 1806 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1807 case $ac_file in 1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1810 break;; 1811 esac 1812done 1813else 1814 echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1818See \`config.log' for more details." >&5 1819echo "$as_me: error: cannot compute suffix of object files: cannot compile 1820See \`config.log' for more details." >&2;} 1821 { (exit 1); exit 1; }; } 1822fi 1823 1824rm -f conftest.$ac_cv_objext conftest.$ac_ext 1825fi 1826echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1827echo "${ECHO_T}$ac_cv_objext" >&6 1828OBJEXT=$ac_cv_objext 1829ac_objext=$OBJEXT 1830echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1831echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1832if test "${ac_cv_c_compiler_gnu+set}" = set; then 1833 echo $ECHO_N "(cached) $ECHO_C" >&6 1834else 1835 cat >conftest.$ac_ext <<_ACEOF 1836/* confdefs.h. */ 1837_ACEOF 1838cat confdefs.h >>conftest.$ac_ext 1839cat >>conftest.$ac_ext <<_ACEOF 1840/* end confdefs.h. */ 1841 1842int 1843main () 1844{ 1845#ifndef __GNUC__ 1846 choke me 1847#endif 1848 1849 ; 1850 return 0; 1851} 1852_ACEOF 1853rm -f conftest.$ac_objext 1854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1855 (eval $ac_compile) 2>conftest.er1 1856 ac_status=$? 1857 grep -v '^ *+' conftest.er1 >conftest.err 1858 rm -f conftest.er1 1859 cat conftest.err >&5 1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1861 (exit $ac_status); } && 1862 { ac_try='test -z "$ac_c_werror_flag" 1863 || test ! -s conftest.err' 1864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1865 (eval $ac_try) 2>&5 1866 ac_status=$? 1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1868 (exit $ac_status); }; } && 1869 { ac_try='test -s conftest.$ac_objext' 1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1871 (eval $ac_try) 2>&5 1872 ac_status=$? 1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1874 (exit $ac_status); }; }; then 1875 ac_compiler_gnu=yes 1876else 1877 echo "$as_me: failed program was:" >&5 1878sed 's/^/| /' conftest.$ac_ext >&5 1879 1880ac_compiler_gnu=no 1881fi 1882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1883ac_cv_c_compiler_gnu=$ac_compiler_gnu 1884 1885fi 1886echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1887echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1888GCC=`test $ac_compiler_gnu = yes && echo yes` 1889ac_test_CFLAGS=${CFLAGS+set} 1890ac_save_CFLAGS=$CFLAGS 1891CFLAGS="-g" 1892echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1893echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1894if test "${ac_cv_prog_cc_g+set}" = set; then 1895 echo $ECHO_N "(cached) $ECHO_C" >&6 1896else 1897 cat >conftest.$ac_ext <<_ACEOF 1898/* confdefs.h. */ 1899_ACEOF 1900cat confdefs.h >>conftest.$ac_ext 1901cat >>conftest.$ac_ext <<_ACEOF 1902/* end confdefs.h. */ 1903 1904int 1905main () 1906{ 1907 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912rm -f conftest.$ac_objext 1913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1914 (eval $ac_compile) 2>conftest.er1 1915 ac_status=$? 1916 grep -v '^ *+' conftest.er1 >conftest.err 1917 rm -f conftest.er1 1918 cat conftest.err >&5 1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1920 (exit $ac_status); } && 1921 { ac_try='test -z "$ac_c_werror_flag" 1922 || test ! -s conftest.err' 1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1924 (eval $ac_try) 2>&5 1925 ac_status=$? 1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1927 (exit $ac_status); }; } && 1928 { ac_try='test -s conftest.$ac_objext' 1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1930 (eval $ac_try) 2>&5 1931 ac_status=$? 1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1933 (exit $ac_status); }; }; then 1934 ac_cv_prog_cc_g=yes 1935else 1936 echo "$as_me: failed program was:" >&5 1937sed 's/^/| /' conftest.$ac_ext >&5 1938 1939ac_cv_prog_cc_g=no 1940fi 1941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1942fi 1943echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1944echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1945if test "$ac_test_CFLAGS" = set; then 1946 CFLAGS=$ac_save_CFLAGS 1947elif test $ac_cv_prog_cc_g = yes; then 1948 if test "$GCC" = yes; then 1949 CFLAGS="-g -O2" 1950 else 1951 CFLAGS="-g" 1952 fi 1953else 1954 if test "$GCC" = yes; then 1955 CFLAGS="-O2" 1956 else 1957 CFLAGS= 1958 fi 1959fi 1960echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1961echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1962if test "${ac_cv_prog_cc_stdc+set}" = set; then 1963 echo $ECHO_N "(cached) $ECHO_C" >&6 1964else 1965 ac_cv_prog_cc_stdc=no 1966ac_save_CC=$CC 1967cat >conftest.$ac_ext <<_ACEOF 1968/* confdefs.h. */ 1969_ACEOF 1970cat confdefs.h >>conftest.$ac_ext 1971cat >>conftest.$ac_ext <<_ACEOF 1972/* end confdefs.h. */ 1973#include <stdarg.h> 1974#include <stdio.h> 1975#include <sys/types.h> 1976#include <sys/stat.h> 1977/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1978struct buf { int x; }; 1979FILE * (*rcsopen) (struct buf *, struct stat *, int); 1980static char *e (p, i) 1981 char **p; 1982 int i; 1983{ 1984 return p[i]; 1985} 1986static char *f (char * (*g) (char **, int), char **p, ...) 1987{ 1988 char *s; 1989 va_list v; 1990 va_start (v,p); 1991 s = g (p, va_arg (v,int)); 1992 va_end (v); 1993 return s; 1994} 1995 1996/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 1997 function prototypes and stuff, but not '\xHH' hex character constants. 1998 These don't provoke an error unfortunately, instead are silently treated 1999 as 'x'. The following induces an error, until -std1 is added to get 2000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2001 array size at least. It's necessary to write '\x00'==0 to get something 2002 that's true only with -std1. */ 2003int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2004 2005int test (int i, double x); 2006struct s1 {int (*f) (int a);}; 2007struct s2 {int (*f) (double a);}; 2008int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2009int argc; 2010char **argv; 2011int 2012main () 2013{ 2014return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2015 ; 2016 return 0; 2017} 2018_ACEOF 2019# Don't try gcc -ansi; that turns off useful extensions and 2020# breaks some systems' header files. 2021# AIX -qlanglvl=ansi 2022# Ultrix and OSF/1 -std1 2023# HP-UX 10.20 and later -Ae 2024# HP-UX older versions -Aa -D_HPUX_SOURCE 2025# SVR4 -Xc -D__EXTENSIONS__ 2026for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2027do 2028 CC="$ac_save_CC $ac_arg" 2029 rm -f conftest.$ac_objext 2030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2031 (eval $ac_compile) 2>conftest.er1 2032 ac_status=$? 2033 grep -v '^ *+' conftest.er1 >conftest.err 2034 rm -f conftest.er1 2035 cat conftest.err >&5 2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2037 (exit $ac_status); } && 2038 { ac_try='test -z "$ac_c_werror_flag" 2039 || test ! -s conftest.err' 2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2041 (eval $ac_try) 2>&5 2042 ac_status=$? 2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2044 (exit $ac_status); }; } && 2045 { ac_try='test -s conftest.$ac_objext' 2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2047 (eval $ac_try) 2>&5 2048 ac_status=$? 2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2050 (exit $ac_status); }; }; then 2051 ac_cv_prog_cc_stdc=$ac_arg 2052break 2053else 2054 echo "$as_me: failed program was:" >&5 2055sed 's/^/| /' conftest.$ac_ext >&5 2056 2057fi 2058rm -f conftest.err conftest.$ac_objext 2059done 2060rm -f conftest.$ac_ext conftest.$ac_objext 2061CC=$ac_save_CC 2062 2063fi 2064 2065case "x$ac_cv_prog_cc_stdc" in 2066 x|xno) 2067 echo "$as_me:$LINENO: result: none needed" >&5 2068echo "${ECHO_T}none needed" >&6 ;; 2069 *) 2070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2071echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2072 CC="$CC $ac_cv_prog_cc_stdc" ;; 2073esac 2074 2075# Some people use a C++ compiler to compile C. Since we use `exit', 2076# in C++ we need to declare it. In case someone uses the same compiler 2077# for both compiling C and C++ we need to have the C++ compiler decide 2078# the declaration of exit, since it's the most demanding environment. 2079cat >conftest.$ac_ext <<_ACEOF 2080#ifndef __cplusplus 2081 choke me 2082#endif 2083_ACEOF 2084rm -f conftest.$ac_objext 2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2086 (eval $ac_compile) 2>conftest.er1 2087 ac_status=$? 2088 grep -v '^ *+' conftest.er1 >conftest.err 2089 rm -f conftest.er1 2090 cat conftest.err >&5 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); } && 2093 { ac_try='test -z "$ac_c_werror_flag" 2094 || test ! -s conftest.err' 2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2096 (eval $ac_try) 2>&5 2097 ac_status=$? 2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2099 (exit $ac_status); }; } && 2100 { ac_try='test -s conftest.$ac_objext' 2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2102 (eval $ac_try) 2>&5 2103 ac_status=$? 2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2105 (exit $ac_status); }; }; then 2106 for ac_declaration in \ 2107 '' \ 2108 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2109 'extern "C" void std::exit (int); using std::exit;' \ 2110 'extern "C" void exit (int) throw ();' \ 2111 'extern "C" void exit (int);' \ 2112 'void exit (int);' 2113do 2114 cat >conftest.$ac_ext <<_ACEOF 2115/* confdefs.h. */ 2116_ACEOF 2117cat confdefs.h >>conftest.$ac_ext 2118cat >>conftest.$ac_ext <<_ACEOF 2119/* end confdefs.h. */ 2120$ac_declaration 2121#include <stdlib.h> 2122int 2123main () 2124{ 2125exit (42); 2126 ; 2127 return 0; 2128} 2129_ACEOF 2130rm -f conftest.$ac_objext 2131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2132 (eval $ac_compile) 2>conftest.er1 2133 ac_status=$? 2134 grep -v '^ *+' conftest.er1 >conftest.err 2135 rm -f conftest.er1 2136 cat conftest.err >&5 2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2138 (exit $ac_status); } && 2139 { ac_try='test -z "$ac_c_werror_flag" 2140 || test ! -s conftest.err' 2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2142 (eval $ac_try) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); }; } && 2146 { ac_try='test -s conftest.$ac_objext' 2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2148 (eval $ac_try) 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); }; }; then 2152 : 2153else 2154 echo "$as_me: failed program was:" >&5 2155sed 's/^/| /' conftest.$ac_ext >&5 2156 2157continue 2158fi 2159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2160 cat >conftest.$ac_ext <<_ACEOF 2161/* confdefs.h. */ 2162_ACEOF 2163cat confdefs.h >>conftest.$ac_ext 2164cat >>conftest.$ac_ext <<_ACEOF 2165/* end confdefs.h. */ 2166$ac_declaration 2167int 2168main () 2169{ 2170exit (42); 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175rm -f conftest.$ac_objext 2176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2177 (eval $ac_compile) 2>conftest.er1 2178 ac_status=$? 2179 grep -v '^ *+' conftest.er1 >conftest.err 2180 rm -f conftest.er1 2181 cat conftest.err >&5 2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2183 (exit $ac_status); } && 2184 { ac_try='test -z "$ac_c_werror_flag" 2185 || test ! -s conftest.err' 2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2187 (eval $ac_try) 2>&5 2188 ac_status=$? 2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190 (exit $ac_status); }; } && 2191 { ac_try='test -s conftest.$ac_objext' 2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2193 (eval $ac_try) 2>&5 2194 ac_status=$? 2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2196 (exit $ac_status); }; }; then 2197 break 2198else 2199 echo "$as_me: failed program was:" >&5 2200sed 's/^/| /' conftest.$ac_ext >&5 2201 2202fi 2203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2204done 2205rm -f conftest* 2206if test -n "$ac_declaration"; then 2207 echo '#ifdef __cplusplus' >>confdefs.h 2208 echo $ac_declaration >>confdefs.h 2209 echo '#endif' >>confdefs.h 2210fi 2211 2212else 2213 echo "$as_me: failed program was:" >&5 2214sed 's/^/| /' conftest.$ac_ext >&5 2215 2216fi 2217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2218ac_ext=c 2219ac_cpp='$CPP $CPPFLAGS' 2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2222ac_compiler_gnu=$ac_cv_c_compiler_gnu 2223 2224CFLAGS="-O" 2225LOCK="" 2226 2227case "$ARCH" in 2228 sun3) 2229 LOCK="lock.o" 2230 ;; 2231 sun4) 2232 CC=gcc 2233 LOCK="lock.o" 2234 ;; 2235 supersparc_sunos4) 2236 CC=gcc 2237 CFLAGS="-msupersparc -O2" 2238 LOCK="lock.o" 2239 ;; 2240 sparc_svr4) 2241 cat >>confdefs.h <<\_ACEOF 2242#define SVR4 1 2243_ACEOF 2244 2245 LOCK="lock.o" 2246 ;; 2247 sparc_sunos5) 2248 CC=gcc 2249 CFLAGS="-O2" 2250 cat >>confdefs.h <<\_ACEOF 2251#define SVR4 1 2252_ACEOF 2253 2254 LOCK="lock.o" 2255 ;; 2256 sparc_sunos5_cc) 2257 cat >>confdefs.h <<\_ACEOF 2258#define SVR4 1 2259_ACEOF 2260 2261 LOCK="lock.o" 2262 ;; 2263 supersparc_sunos5) 2264 CC=gcc 2265 CFLAGS="-msupersparc -O2" 2266 cat >>confdefs.h <<\_ACEOF 2267#define SVR4 1 2268_ACEOF 2269 2270 LOCK="lock.o" 2271 ;; 2272 i386_sunos5) 2273 cat >>confdefs.h <<\_ACEOF 2274#define SVR4 1 2275_ACEOF 2276 2277 CFLAGS="-m32 -fPIC -O2" 2278 LOCK="lock.o" 2279 ;; 2280 x86_64_sunos5) 2281 CFLAGS="-m64 -fPIC -O2" 2282 cat >>confdefs.h <<\_ACEOF 2283#define SVR4 1 2284_ACEOF 2285 2286 LOCK="lock.o" 2287 ;; 2288 i386_linux|x86_64_linux) 2289 CFLAGS="-fPIC" 2290 2291 2292echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 2293echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 2294if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 ac_check_lib_save_LIBS=$LIBS 2298LIBS="-lieee $LIBS" 2299cat >conftest.$ac_ext <<_ACEOF 2300/* confdefs.h. */ 2301_ACEOF 2302cat confdefs.h >>conftest.$ac_ext 2303cat >>conftest.$ac_ext <<_ACEOF 2304/* end confdefs.h. */ 2305 2306/* Override any gcc2 internal prototype to avoid an error. */ 2307#ifdef __cplusplus 2308extern "C" 2309#endif 2310/* We use char because int might match the return type of a gcc2 2311 builtin and then its argument prototype would still apply. */ 2312char __fpu_control (); 2313int 2314main () 2315{ 2316__fpu_control (); 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321rm -f conftest.$ac_objext conftest$ac_exeext 2322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2323 (eval $ac_link) 2>conftest.er1 2324 ac_status=$? 2325 grep -v '^ *+' conftest.er1 >conftest.err 2326 rm -f conftest.er1 2327 cat conftest.err >&5 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); } && 2330 { ac_try='test -z "$ac_c_werror_flag" 2331 || test ! -s conftest.err' 2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2333 (eval $ac_try) 2>&5 2334 ac_status=$? 2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2336 (exit $ac_status); }; } && 2337 { ac_try='test -s conftest$ac_exeext' 2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2339 (eval $ac_try) 2>&5 2340 ac_status=$? 2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2342 (exit $ac_status); }; }; then 2343 ac_cv_lib_ieee___fpu_control=yes 2344else 2345 echo "$as_me: failed program was:" >&5 2346sed 's/^/| /' conftest.$ac_ext >&5 2347 2348ac_cv_lib_ieee___fpu_control=no 2349fi 2350rm -f conftest.err conftest.$ac_objext \ 2351 conftest$ac_exeext conftest.$ac_ext 2352LIBS=$ac_check_lib_save_LIBS 2353fi 2354echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 2355echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 2356if test $ac_cv_lib_ieee___fpu_control = yes; then 2357 cat >>confdefs.h <<_ACEOF 2358#define HAVE_LIBIEEE 1 2359_ACEOF 2360 2361 LIBS="-lieee $LIBS" 2362 2363fi 2364 2365 LOCK="lock.o" 2366 ;; 2367 i386_nt) 2368 LOCK="lock.o" 2369 ;; 2370 rs_aix32) 2371 CC=gcc 2372 CFLAGS="-fsigned-char -O2" 2373 ;; 2374 rs_aix32_cc) 2375 CC=cc 2376 CFLAGS="-qchars=signed -O" 2377 ;; 2378 rs_aix41) 2379 CC=gcc 2380 CFLAGS="-fsigned-char -O2" 2381 ;; 2382 hp700_ux90) 2383 CC=gcc 2384 LOCK="lock.o" 2385 ;; 2386 spp_ux90) 2387 CC=gcc 2388 LOCK="lock.o" 2389 ;; 2390 sgi_irix52) 2391 cat >>confdefs.h <<\_ACEOF 2392#define SVR4 1 2393_ACEOF 2394 2395 LOCK="lock.o" 2396 ;; 2397 next_mach) 2398 LOCK="lock.o" 2399 ;; 2400 m88k_svr4) 2401 cat >>confdefs.h <<\_ACEOF 2402#define SVR4 1 2403_ACEOF 2404 2405 LOCK="lock.o" 2406 ;; 2407 alpha_osf32) 2408 CC=gcc 2409 ;; 2410 alpha_linux) 2411 LOCK="lock.o" 2412 ;; 2413 ppc_macosx) 2414 ;; 2415 *) 2416 echo Unknown architecture 2417 exit 2418 ;; 2419esac 2420 2421ac_ext=c 2422ac_cpp='$CPP $CPPFLAGS' 2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2425ac_compiler_gnu=$ac_cv_c_compiler_gnu 2426if test -n "$ac_tool_prefix"; then 2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2428set dummy ${ac_tool_prefix}gcc; ac_word=$2 2429echo "$as_me:$LINENO: checking for $ac_word" >&5 2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2431if test "${ac_cv_prog_CC+set}" = set; then 2432 echo $ECHO_N "(cached) $ECHO_C" >&6 2433else 2434 if test -n "$CC"; then 2435 ac_cv_prog_CC="$CC" # Let the user override the test. 2436else 2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438for as_dir in $PATH 2439do 2440 IFS=$as_save_IFS 2441 test -z "$as_dir" && as_dir=. 2442 for ac_exec_ext in '' $ac_executable_extensions; do 2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2444 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2446 break 2 2447 fi 2448done 2449done 2450 2451fi 2452fi 2453CC=$ac_cv_prog_CC 2454if test -n "$CC"; then 2455 echo "$as_me:$LINENO: result: $CC" >&5 2456echo "${ECHO_T}$CC" >&6 2457else 2458 echo "$as_me:$LINENO: result: no" >&5 2459echo "${ECHO_T}no" >&6 2460fi 2461 2462fi 2463if test -z "$ac_cv_prog_CC"; then 2464 ac_ct_CC=$CC 2465 # Extract the first word of "gcc", so it can be a program name with args. 2466set dummy gcc; ac_word=$2 2467echo "$as_me:$LINENO: checking for $ac_word" >&5 2468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2469if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2470 echo $ECHO_N "(cached) $ECHO_C" >&6 2471else 2472 if test -n "$ac_ct_CC"; then 2473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2474else 2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476for as_dir in $PATH 2477do 2478 IFS=$as_save_IFS 2479 test -z "$as_dir" && as_dir=. 2480 for ac_exec_ext in '' $ac_executable_extensions; do 2481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2482 ac_cv_prog_ac_ct_CC="gcc" 2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2484 break 2 2485 fi 2486done 2487done 2488 2489fi 2490fi 2491ac_ct_CC=$ac_cv_prog_ac_ct_CC 2492if test -n "$ac_ct_CC"; then 2493 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2494echo "${ECHO_T}$ac_ct_CC" >&6 2495else 2496 echo "$as_me:$LINENO: result: no" >&5 2497echo "${ECHO_T}no" >&6 2498fi 2499 2500 CC=$ac_ct_CC 2501else 2502 CC="$ac_cv_prog_CC" 2503fi 2504 2505if test -z "$CC"; then 2506 if test -n "$ac_tool_prefix"; then 2507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2508set dummy ${ac_tool_prefix}cc; ac_word=$2 2509echo "$as_me:$LINENO: checking for $ac_word" >&5 2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2511if test "${ac_cv_prog_CC+set}" = set; then 2512 echo $ECHO_N "(cached) $ECHO_C" >&6 2513else 2514 if test -n "$CC"; then 2515 ac_cv_prog_CC="$CC" # Let the user override the test. 2516else 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2518for as_dir in $PATH 2519do 2520 IFS=$as_save_IFS 2521 test -z "$as_dir" && as_dir=. 2522 for ac_exec_ext in '' $ac_executable_extensions; do 2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2524 ac_cv_prog_CC="${ac_tool_prefix}cc" 2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2526 break 2 2527 fi 2528done 2529done 2530 2531fi 2532fi 2533CC=$ac_cv_prog_CC 2534if test -n "$CC"; then 2535 echo "$as_me:$LINENO: result: $CC" >&5 2536echo "${ECHO_T}$CC" >&6 2537else 2538 echo "$as_me:$LINENO: result: no" >&5 2539echo "${ECHO_T}no" >&6 2540fi 2541 2542fi 2543if test -z "$ac_cv_prog_CC"; then 2544 ac_ct_CC=$CC 2545 # Extract the first word of "cc", so it can be a program name with args. 2546set dummy cc; ac_word=$2 2547echo "$as_me:$LINENO: checking for $ac_word" >&5 2548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2549if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2550 echo $ECHO_N "(cached) $ECHO_C" >&6 2551else 2552 if test -n "$ac_ct_CC"; then 2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2554else 2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2556for as_dir in $PATH 2557do 2558 IFS=$as_save_IFS 2559 test -z "$as_dir" && as_dir=. 2560 for ac_exec_ext in '' $ac_executable_extensions; do 2561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2562 ac_cv_prog_ac_ct_CC="cc" 2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2564 break 2 2565 fi 2566done 2567done 2568 2569fi 2570fi 2571ac_ct_CC=$ac_cv_prog_ac_ct_CC 2572if test -n "$ac_ct_CC"; then 2573 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2574echo "${ECHO_T}$ac_ct_CC" >&6 2575else 2576 echo "$as_me:$LINENO: result: no" >&5 2577echo "${ECHO_T}no" >&6 2578fi 2579 2580 CC=$ac_ct_CC 2581else 2582 CC="$ac_cv_prog_CC" 2583fi 2584 2585fi 2586if test -z "$CC"; then 2587 # Extract the first word of "cc", so it can be a program name with args. 2588set dummy cc; ac_word=$2 2589echo "$as_me:$LINENO: checking for $ac_word" >&5 2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2591if test "${ac_cv_prog_CC+set}" = set; then 2592 echo $ECHO_N "(cached) $ECHO_C" >&6 2593else 2594 if test -n "$CC"; then 2595 ac_cv_prog_CC="$CC" # Let the user override the test. 2596else 2597 ac_prog_rejected=no 2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_exec_ext in '' $ac_executable_extensions; do 2604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2606 ac_prog_rejected=yes 2607 continue 2608 fi 2609 ac_cv_prog_CC="cc" 2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2611 break 2 2612 fi 2613done 2614done 2615 2616if test $ac_prog_rejected = yes; then 2617 # We found a bogon in the path, so make sure we never use it. 2618 set dummy $ac_cv_prog_CC 2619 shift 2620 if test $# != 0; then 2621 # We chose a different compiler from the bogus one. 2622 # However, it has the same basename, so the bogon will be chosen 2623 # first if we set CC to just the basename; use the full file name. 2624 shift 2625 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2626 fi 2627fi 2628fi 2629fi 2630CC=$ac_cv_prog_CC 2631if test -n "$CC"; then 2632 echo "$as_me:$LINENO: result: $CC" >&5 2633echo "${ECHO_T}$CC" >&6 2634else 2635 echo "$as_me:$LINENO: result: no" >&5 2636echo "${ECHO_T}no" >&6 2637fi 2638 2639fi 2640if test -z "$CC"; then 2641 if test -n "$ac_tool_prefix"; then 2642 for ac_prog in cl 2643 do 2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2645set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2646echo "$as_me:$LINENO: checking for $ac_word" >&5 2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2648if test "${ac_cv_prog_CC+set}" = set; then 2649 echo $ECHO_N "(cached) $ECHO_C" >&6 2650else 2651 if test -n "$CC"; then 2652 ac_cv_prog_CC="$CC" # Let the user override the test. 2653else 2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2663 break 2 2664 fi 2665done 2666done 2667 2668fi 2669fi 2670CC=$ac_cv_prog_CC 2671if test -n "$CC"; then 2672 echo "$as_me:$LINENO: result: $CC" >&5 2673echo "${ECHO_T}$CC" >&6 2674else 2675 echo "$as_me:$LINENO: result: no" >&5 2676echo "${ECHO_T}no" >&6 2677fi 2678 2679 test -n "$CC" && break 2680 done 2681fi 2682if test -z "$CC"; then 2683 ac_ct_CC=$CC 2684 for ac_prog in cl 2685do 2686 # Extract the first word of "$ac_prog", so it can be a program name with args. 2687set dummy $ac_prog; ac_word=$2 2688echo "$as_me:$LINENO: checking for $ac_word" >&5 2689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2691 echo $ECHO_N "(cached) $ECHO_C" >&6 2692else 2693 if test -n "$ac_ct_CC"; then 2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2703 ac_cv_prog_ac_ct_CC="$ac_prog" 2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708done 2709 2710fi 2711fi 2712ac_ct_CC=$ac_cv_prog_ac_ct_CC 2713if test -n "$ac_ct_CC"; then 2714 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2715echo "${ECHO_T}$ac_ct_CC" >&6 2716else 2717 echo "$as_me:$LINENO: result: no" >&5 2718echo "${ECHO_T}no" >&6 2719fi 2720 2721 test -n "$ac_ct_CC" && break 2722done 2723 2724 CC=$ac_ct_CC 2725fi 2726 2727fi 2728 2729 2730test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2731See \`config.log' for more details." >&5 2732echo "$as_me: error: no acceptable C compiler found in \$PATH 2733See \`config.log' for more details." >&2;} 2734 { (exit 1); exit 1; }; } 2735 2736# Provide some information about the compiler. 2737echo "$as_me:$LINENO:" \ 2738 "checking for C compiler version" >&5 2739ac_compiler=`set X $ac_compile; echo $2` 2740{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2741 (eval $ac_compiler --version </dev/null >&5) 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); } 2745{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2746 (eval $ac_compiler -v </dev/null >&5) 2>&5 2747 ac_status=$? 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2749 (exit $ac_status); } 2750{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2751 (eval $ac_compiler -V </dev/null >&5) 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); } 2755 2756echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2757echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2758if test "${ac_cv_c_compiler_gnu+set}" = set; then 2759 echo $ECHO_N "(cached) $ECHO_C" >&6 2760else 2761 cat >conftest.$ac_ext <<_ACEOF 2762/* confdefs.h. */ 2763_ACEOF 2764cat confdefs.h >>conftest.$ac_ext 2765cat >>conftest.$ac_ext <<_ACEOF 2766/* end confdefs.h. */ 2767 2768int 2769main () 2770{ 2771#ifndef __GNUC__ 2772 choke me 2773#endif 2774 2775 ; 2776 return 0; 2777} 2778_ACEOF 2779rm -f conftest.$ac_objext 2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2781 (eval $ac_compile) 2>conftest.er1 2782 ac_status=$? 2783 grep -v '^ *+' conftest.er1 >conftest.err 2784 rm -f conftest.er1 2785 cat conftest.err >&5 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } && 2788 { ac_try='test -z "$ac_c_werror_flag" 2789 || test ! -s conftest.err' 2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2791 (eval $ac_try) 2>&5 2792 ac_status=$? 2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2794 (exit $ac_status); }; } && 2795 { ac_try='test -s conftest.$ac_objext' 2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2797 (eval $ac_try) 2>&5 2798 ac_status=$? 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); }; }; then 2801 ac_compiler_gnu=yes 2802else 2803 echo "$as_me: failed program was:" >&5 2804sed 's/^/| /' conftest.$ac_ext >&5 2805 2806ac_compiler_gnu=no 2807fi 2808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2809ac_cv_c_compiler_gnu=$ac_compiler_gnu 2810 2811fi 2812echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2813echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2814GCC=`test $ac_compiler_gnu = yes && echo yes` 2815ac_test_CFLAGS=${CFLAGS+set} 2816ac_save_CFLAGS=$CFLAGS 2817CFLAGS="-g" 2818echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2819echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2820if test "${ac_cv_prog_cc_g+set}" = set; then 2821 echo $ECHO_N "(cached) $ECHO_C" >&6 2822else 2823 cat >conftest.$ac_ext <<_ACEOF 2824/* confdefs.h. */ 2825_ACEOF 2826cat confdefs.h >>conftest.$ac_ext 2827cat >>conftest.$ac_ext <<_ACEOF 2828/* end confdefs.h. */ 2829 2830int 2831main () 2832{ 2833 2834 ; 2835 return 0; 2836} 2837_ACEOF 2838rm -f conftest.$ac_objext 2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2840 (eval $ac_compile) 2>conftest.er1 2841 ac_status=$? 2842 grep -v '^ *+' conftest.er1 >conftest.err 2843 rm -f conftest.er1 2844 cat conftest.err >&5 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } && 2847 { ac_try='test -z "$ac_c_werror_flag" 2848 || test ! -s conftest.err' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; } && 2854 { ac_try='test -s conftest.$ac_objext' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; }; then 2860 ac_cv_prog_cc_g=yes 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865ac_cv_prog_cc_g=no 2866fi 2867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2868fi 2869echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2870echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2871if test "$ac_test_CFLAGS" = set; then 2872 CFLAGS=$ac_save_CFLAGS 2873elif test $ac_cv_prog_cc_g = yes; then 2874 if test "$GCC" = yes; then 2875 CFLAGS="-g -O2" 2876 else 2877 CFLAGS="-g" 2878 fi 2879else 2880 if test "$GCC" = yes; then 2881 CFLAGS="-O2" 2882 else 2883 CFLAGS= 2884 fi 2885fi 2886echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2887echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2888if test "${ac_cv_prog_cc_stdc+set}" = set; then 2889 echo $ECHO_N "(cached) $ECHO_C" >&6 2890else 2891 ac_cv_prog_cc_stdc=no 2892ac_save_CC=$CC 2893cat >conftest.$ac_ext <<_ACEOF 2894/* confdefs.h. */ 2895_ACEOF 2896cat confdefs.h >>conftest.$ac_ext 2897cat >>conftest.$ac_ext <<_ACEOF 2898/* end confdefs.h. */ 2899#include <stdarg.h> 2900#include <stdio.h> 2901#include <sys/types.h> 2902#include <sys/stat.h> 2903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2904struct buf { int x; }; 2905FILE * (*rcsopen) (struct buf *, struct stat *, int); 2906static char *e (p, i) 2907 char **p; 2908 int i; 2909{ 2910 return p[i]; 2911} 2912static char *f (char * (*g) (char **, int), char **p, ...) 2913{ 2914 char *s; 2915 va_list v; 2916 va_start (v,p); 2917 s = g (p, va_arg (v,int)); 2918 va_end (v); 2919 return s; 2920} 2921 2922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2923 function prototypes and stuff, but not '\xHH' hex character constants. 2924 These don't provoke an error unfortunately, instead are silently treated 2925 as 'x'. The following induces an error, until -std1 is added to get 2926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2927 array size at least. It's necessary to write '\x00'==0 to get something 2928 that's true only with -std1. */ 2929int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2930 2931int test (int i, double x); 2932struct s1 {int (*f) (int a);}; 2933struct s2 {int (*f) (double a);}; 2934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2935int argc; 2936char **argv; 2937int 2938main () 2939{ 2940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2941 ; 2942 return 0; 2943} 2944_ACEOF 2945# Don't try gcc -ansi; that turns off useful extensions and 2946# breaks some systems' header files. 2947# AIX -qlanglvl=ansi 2948# Ultrix and OSF/1 -std1 2949# HP-UX 10.20 and later -Ae 2950# HP-UX older versions -Aa -D_HPUX_SOURCE 2951# SVR4 -Xc -D__EXTENSIONS__ 2952for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2953do 2954 CC="$ac_save_CC $ac_arg" 2955 rm -f conftest.$ac_objext 2956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2957 (eval $ac_compile) 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } && 2964 { ac_try='test -z "$ac_c_werror_flag" 2965 || test ! -s conftest.err' 2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; } && 2971 { ac_try='test -s conftest.$ac_objext' 2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2973 (eval $ac_try) 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); }; }; then 2977 ac_cv_prog_cc_stdc=$ac_arg 2978break 2979else 2980 echo "$as_me: failed program was:" >&5 2981sed 's/^/| /' conftest.$ac_ext >&5 2982 2983fi 2984rm -f conftest.err conftest.$ac_objext 2985done 2986rm -f conftest.$ac_ext conftest.$ac_objext 2987CC=$ac_save_CC 2988 2989fi 2990 2991case "x$ac_cv_prog_cc_stdc" in 2992 x|xno) 2993 echo "$as_me:$LINENO: result: none needed" >&5 2994echo "${ECHO_T}none needed" >&6 ;; 2995 *) 2996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2997echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2998 CC="$CC $ac_cv_prog_cc_stdc" ;; 2999esac 3000 3001# Some people use a C++ compiler to compile C. Since we use `exit', 3002# in C++ we need to declare it. In case someone uses the same compiler 3003# for both compiling C and C++ we need to have the C++ compiler decide 3004# the declaration of exit, since it's the most demanding environment. 3005cat >conftest.$ac_ext <<_ACEOF 3006#ifndef __cplusplus 3007 choke me 3008#endif 3009_ACEOF 3010rm -f conftest.$ac_objext 3011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3012 (eval $ac_compile) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } && 3019 { ac_try='test -z "$ac_c_werror_flag" 3020 || test ! -s conftest.err' 3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3022 (eval $ac_try) 2>&5 3023 ac_status=$? 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3025 (exit $ac_status); }; } && 3026 { ac_try='test -s conftest.$ac_objext' 3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3028 (eval $ac_try) 2>&5 3029 ac_status=$? 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); }; }; then 3032 for ac_declaration in \ 3033 '' \ 3034 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3035 'extern "C" void std::exit (int); using std::exit;' \ 3036 'extern "C" void exit (int) throw ();' \ 3037 'extern "C" void exit (int);' \ 3038 'void exit (int);' 3039do 3040 cat >conftest.$ac_ext <<_ACEOF 3041/* confdefs.h. */ 3042_ACEOF 3043cat confdefs.h >>conftest.$ac_ext 3044cat >>conftest.$ac_ext <<_ACEOF 3045/* end confdefs.h. */ 3046$ac_declaration 3047#include <stdlib.h> 3048int 3049main () 3050{ 3051exit (42); 3052 ; 3053 return 0; 3054} 3055_ACEOF 3056rm -f conftest.$ac_objext 3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3058 (eval $ac_compile) 2>conftest.er1 3059 ac_status=$? 3060 grep -v '^ *+' conftest.er1 >conftest.err 3061 rm -f conftest.er1 3062 cat conftest.err >&5 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); } && 3065 { ac_try='test -z "$ac_c_werror_flag" 3066 || test ! -s conftest.err' 3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3068 (eval $ac_try) 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; } && 3072 { ac_try='test -s conftest.$ac_objext' 3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3074 (eval $ac_try) 2>&5 3075 ac_status=$? 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); }; }; then 3078 : 3079else 3080 echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083continue 3084fi 3085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3086 cat >conftest.$ac_ext <<_ACEOF 3087/* confdefs.h. */ 3088_ACEOF 3089cat confdefs.h >>conftest.$ac_ext 3090cat >>conftest.$ac_ext <<_ACEOF 3091/* end confdefs.h. */ 3092$ac_declaration 3093int 3094main () 3095{ 3096exit (42); 3097 ; 3098 return 0; 3099} 3100_ACEOF 3101rm -f conftest.$ac_objext 3102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3103 (eval $ac_compile) 2>conftest.er1 3104 ac_status=$? 3105 grep -v '^ *+' conftest.er1 >conftest.err 3106 rm -f conftest.er1 3107 cat conftest.err >&5 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } && 3110 { ac_try='test -z "$ac_c_werror_flag" 3111 || test ! -s conftest.err' 3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3113 (eval $ac_try) 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); }; } && 3117 { ac_try='test -s conftest.$ac_objext' 3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3119 (eval $ac_try) 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; }; then 3123 break 3124else 3125 echo "$as_me: failed program was:" >&5 3126sed 's/^/| /' conftest.$ac_ext >&5 3127 3128fi 3129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3130done 3131rm -f conftest* 3132if test -n "$ac_declaration"; then 3133 echo '#ifdef __cplusplus' >>confdefs.h 3134 echo $ac_declaration >>confdefs.h 3135 echo '#endif' >>confdefs.h 3136fi 3137 3138else 3139 echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142fi 3143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3144ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149 3150if test -n "$ac_tool_prefix"; then 3151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3152set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3153echo "$as_me:$LINENO: checking for $ac_word" >&5 3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3155if test "${ac_cv_prog_RANLIB+set}" = set; then 3156 echo $ECHO_N "(cached) $ECHO_C" >&6 3157else 3158 if test -n "$RANLIB"; then 3159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3160else 3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3162for as_dir in $PATH 3163do 3164 IFS=$as_save_IFS 3165 test -z "$as_dir" && as_dir=. 3166 for ac_exec_ext in '' $ac_executable_extensions; do 3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3170 break 2 3171 fi 3172done 3173done 3174 3175fi 3176fi 3177RANLIB=$ac_cv_prog_RANLIB 3178if test -n "$RANLIB"; then 3179 echo "$as_me:$LINENO: result: $RANLIB" >&5 3180echo "${ECHO_T}$RANLIB" >&6 3181else 3182 echo "$as_me:$LINENO: result: no" >&5 3183echo "${ECHO_T}no" >&6 3184fi 3185 3186fi 3187if test -z "$ac_cv_prog_RANLIB"; then 3188 ac_ct_RANLIB=$RANLIB 3189 # Extract the first word of "ranlib", so it can be a program name with args. 3190set dummy ranlib; ac_word=$2 3191echo "$as_me:$LINENO: checking for $ac_word" >&5 3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3193if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3194 echo $ECHO_N "(cached) $ECHO_C" >&6 3195else 3196 if test -n "$ac_ct_RANLIB"; then 3197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3198else 3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3200for as_dir in $PATH 3201do 3202 IFS=$as_save_IFS 3203 test -z "$as_dir" && as_dir=. 3204 for ac_exec_ext in '' $ac_executable_extensions; do 3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3206 ac_cv_prog_ac_ct_RANLIB="ranlib" 3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3208 break 2 3209 fi 3210done 3211done 3212 3213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3214fi 3215fi 3216ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3217if test -n "$ac_ct_RANLIB"; then 3218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3219echo "${ECHO_T}$ac_ct_RANLIB" >&6 3220else 3221 echo "$as_me:$LINENO: result: no" >&5 3222echo "${ECHO_T}no" >&6 3223fi 3224 3225 RANLIB=$ac_ct_RANLIB 3226else 3227 RANLIB="$ac_cv_prog_RANLIB" 3228fi 3229 3230 3231 3232ac_ext=c 3233ac_cpp='$CPP $CPPFLAGS' 3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3236ac_compiler_gnu=$ac_cv_c_compiler_gnu 3237echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3238echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3239# On Suns, sometimes $CPP names a directory. 3240if test -n "$CPP" && test -d "$CPP"; then 3241 CPP= 3242fi 3243if test -z "$CPP"; then 3244 if test "${ac_cv_prog_CPP+set}" = set; then 3245 echo $ECHO_N "(cached) $ECHO_C" >&6 3246else 3247 # Double quotes because CPP needs to be expanded 3248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3249 do 3250 ac_preproc_ok=false 3251for ac_c_preproc_warn_flag in '' yes 3252do 3253 # Use a header file that comes with gcc, so configuring glibc 3254 # with a fresh cross-compiler works. 3255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3256 # <limits.h> exists even on freestanding compilers. 3257 # On the NeXT, cc -E runs the code through the compiler's parser, 3258 # not just through cpp. "Syntax error" is here to catch this case. 3259 cat >conftest.$ac_ext <<_ACEOF 3260/* confdefs.h. */ 3261_ACEOF 3262cat confdefs.h >>conftest.$ac_ext 3263cat >>conftest.$ac_ext <<_ACEOF 3264/* end confdefs.h. */ 3265#ifdef __STDC__ 3266# include <limits.h> 3267#else 3268# include <assert.h> 3269#endif 3270 Syntax error 3271_ACEOF 3272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3274 ac_status=$? 3275 grep -v '^ *+' conftest.er1 >conftest.err 3276 rm -f conftest.er1 3277 cat conftest.err >&5 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3279 (exit $ac_status); } >/dev/null; then 3280 if test -s conftest.err; then 3281 ac_cpp_err=$ac_c_preproc_warn_flag 3282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3283 else 3284 ac_cpp_err= 3285 fi 3286else 3287 ac_cpp_err=yes 3288fi 3289if test -z "$ac_cpp_err"; then 3290 : 3291else 3292 echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295 # Broken: fails on valid input. 3296continue 3297fi 3298rm -f conftest.err conftest.$ac_ext 3299 3300 # OK, works on sane cases. Now check whether non-existent headers 3301 # can be detected and how. 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308#include <ac_nonexistent.h> 3309_ACEOF 3310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3312 ac_status=$? 3313 grep -v '^ *+' conftest.er1 >conftest.err 3314 rm -f conftest.er1 3315 cat conftest.err >&5 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); } >/dev/null; then 3318 if test -s conftest.err; then 3319 ac_cpp_err=$ac_c_preproc_warn_flag 3320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3321 else 3322 ac_cpp_err= 3323 fi 3324else 3325 ac_cpp_err=yes 3326fi 3327if test -z "$ac_cpp_err"; then 3328 # Broken: success on invalid input. 3329continue 3330else 3331 echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334 # Passes both tests. 3335ac_preproc_ok=: 3336break 3337fi 3338rm -f conftest.err conftest.$ac_ext 3339 3340done 3341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3342rm -f conftest.err conftest.$ac_ext 3343if $ac_preproc_ok; then 3344 break 3345fi 3346 3347 done 3348 ac_cv_prog_CPP=$CPP 3349 3350fi 3351 CPP=$ac_cv_prog_CPP 3352else 3353 ac_cv_prog_CPP=$CPP 3354fi 3355echo "$as_me:$LINENO: result: $CPP" >&5 3356echo "${ECHO_T}$CPP" >&6 3357ac_preproc_ok=false 3358for ac_c_preproc_warn_flag in '' yes 3359do 3360 # Use a header file that comes with gcc, so configuring glibc 3361 # with a fresh cross-compiler works. 3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3363 # <limits.h> exists even on freestanding compilers. 3364 # On the NeXT, cc -E runs the code through the compiler's parser, 3365 # not just through cpp. "Syntax error" is here to catch this case. 3366 cat >conftest.$ac_ext <<_ACEOF 3367/* confdefs.h. */ 3368_ACEOF 3369cat confdefs.h >>conftest.$ac_ext 3370cat >>conftest.$ac_ext <<_ACEOF 3371/* end confdefs.h. */ 3372#ifdef __STDC__ 3373# include <limits.h> 3374#else 3375# include <assert.h> 3376#endif 3377 Syntax error 3378_ACEOF 3379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3381 ac_status=$? 3382 grep -v '^ *+' conftest.er1 >conftest.err 3383 rm -f conftest.er1 3384 cat conftest.err >&5 3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); } >/dev/null; then 3387 if test -s conftest.err; then 3388 ac_cpp_err=$ac_c_preproc_warn_flag 3389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3390 else 3391 ac_cpp_err= 3392 fi 3393else 3394 ac_cpp_err=yes 3395fi 3396if test -z "$ac_cpp_err"; then 3397 : 3398else 3399 echo "$as_me: failed program was:" >&5 3400sed 's/^/| /' conftest.$ac_ext >&5 3401 3402 # Broken: fails on valid input. 3403continue 3404fi 3405rm -f conftest.err conftest.$ac_ext 3406 3407 # OK, works on sane cases. Now check whether non-existent headers 3408 # can be detected and how. 3409 cat >conftest.$ac_ext <<_ACEOF 3410/* confdefs.h. */ 3411_ACEOF 3412cat confdefs.h >>conftest.$ac_ext 3413cat >>conftest.$ac_ext <<_ACEOF 3414/* end confdefs.h. */ 3415#include <ac_nonexistent.h> 3416_ACEOF 3417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } >/dev/null; then 3425 if test -s conftest.err; then 3426 ac_cpp_err=$ac_c_preproc_warn_flag 3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3428 else 3429 ac_cpp_err= 3430 fi 3431else 3432 ac_cpp_err=yes 3433fi 3434if test -z "$ac_cpp_err"; then 3435 # Broken: success on invalid input. 3436continue 3437else 3438 echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 # Passes both tests. 3442ac_preproc_ok=: 3443break 3444fi 3445rm -f conftest.err conftest.$ac_ext 3446 3447done 3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3449rm -f conftest.err conftest.$ac_ext 3450if $ac_preproc_ok; then 3451 : 3452else 3453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3454See \`config.log' for more details." >&5 3455echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3456See \`config.log' for more details." >&2;} 3457 { (exit 1); exit 1; }; } 3458fi 3459 3460ac_ext=c 3461ac_cpp='$CPP $CPPFLAGS' 3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3464ac_compiler_gnu=$ac_cv_c_compiler_gnu 3465 3466 3467echo "$as_me:$LINENO: checking for egrep" >&5 3468echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3469if test "${ac_cv_prog_egrep+set}" = set; then 3470 echo $ECHO_N "(cached) $ECHO_C" >&6 3471else 3472 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3473 then ac_cv_prog_egrep='grep -E' 3474 else ac_cv_prog_egrep='egrep' 3475 fi 3476fi 3477echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3478echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3479 EGREP=$ac_cv_prog_egrep 3480 3481 3482echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3483echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3484if test "${ac_cv_header_stdc+set}" = set; then 3485 echo $ECHO_N "(cached) $ECHO_C" >&6 3486else 3487 cat >conftest.$ac_ext <<_ACEOF 3488/* confdefs.h. */ 3489_ACEOF 3490cat confdefs.h >>conftest.$ac_ext 3491cat >>conftest.$ac_ext <<_ACEOF 3492/* end confdefs.h. */ 3493#include <stdlib.h> 3494#include <stdarg.h> 3495#include <string.h> 3496#include <float.h> 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506rm -f conftest.$ac_objext 3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3508 (eval $ac_compile) 2>conftest.er1 3509 ac_status=$? 3510 grep -v '^ *+' conftest.er1 >conftest.err 3511 rm -f conftest.er1 3512 cat conftest.err >&5 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3514 (exit $ac_status); } && 3515 { ac_try='test -z "$ac_c_werror_flag" 3516 || test ! -s conftest.err' 3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3518 (eval $ac_try) 2>&5 3519 ac_status=$? 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); }; } && 3522 { ac_try='test -s conftest.$ac_objext' 3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3524 (eval $ac_try) 2>&5 3525 ac_status=$? 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); }; }; then 3528 ac_cv_header_stdc=yes 3529else 3530 echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533ac_cv_header_stdc=no 3534fi 3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3536 3537if test $ac_cv_header_stdc = yes; then 3538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3539 cat >conftest.$ac_ext <<_ACEOF 3540/* confdefs.h. */ 3541_ACEOF 3542cat confdefs.h >>conftest.$ac_ext 3543cat >>conftest.$ac_ext <<_ACEOF 3544/* end confdefs.h. */ 3545#include <string.h> 3546 3547_ACEOF 3548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3549 $EGREP "memchr" >/dev/null 2>&1; then 3550 : 3551else 3552 ac_cv_header_stdc=no 3553fi 3554rm -f conftest* 3555 3556fi 3557 3558if test $ac_cv_header_stdc = yes; then 3559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566#include <stdlib.h> 3567 3568_ACEOF 3569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3570 $EGREP "free" >/dev/null 2>&1; then 3571 : 3572else 3573 ac_cv_header_stdc=no 3574fi 3575rm -f conftest* 3576 3577fi 3578 3579if test $ac_cv_header_stdc = yes; then 3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3581 if test "$cross_compiling" = yes; then 3582 : 3583else 3584 cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590#include <ctype.h> 3591#if ((' ' & 0x0FF) == 0x020) 3592# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3593# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3594#else 3595# define ISLOWER(c) \ 3596 (('a' <= (c) && (c) <= 'i') \ 3597 || ('j' <= (c) && (c) <= 'r') \ 3598 || ('s' <= (c) && (c) <= 'z')) 3599# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3600#endif 3601 3602#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3603int 3604main () 3605{ 3606 int i; 3607 for (i = 0; i < 256; i++) 3608 if (XOR (islower (i), ISLOWER (i)) 3609 || toupper (i) != TOUPPER (i)) 3610 exit(2); 3611 exit (0); 3612} 3613_ACEOF 3614rm -f conftest$ac_exeext 3615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3616 (eval $ac_link) 2>&5 3617 ac_status=$? 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3621 (eval $ac_try) 2>&5 3622 ac_status=$? 3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3624 (exit $ac_status); }; }; then 3625 : 3626else 3627 echo "$as_me: program exited with status $ac_status" >&5 3628echo "$as_me: failed program was:" >&5 3629sed 's/^/| /' conftest.$ac_ext >&5 3630 3631( exit $ac_status ) 3632ac_cv_header_stdc=no 3633fi 3634rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3635fi 3636fi 3637fi 3638echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3639echo "${ECHO_T}$ac_cv_header_stdc" >&6 3640if test $ac_cv_header_stdc = yes; then 3641 3642cat >>confdefs.h <<\_ACEOF 3643#define STDC_HEADERS 1 3644_ACEOF 3645 3646fi 3647 3648# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3659 inttypes.h stdint.h unistd.h 3660do 3661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3662echo "$as_me:$LINENO: checking for $ac_header" >&5 3663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3664if eval "test \"\${$as_ac_Header+set}\" = set"; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 cat >conftest.$ac_ext <<_ACEOF 3668/* confdefs.h. */ 3669_ACEOF 3670cat confdefs.h >>conftest.$ac_ext 3671cat >>conftest.$ac_ext <<_ACEOF 3672/* end confdefs.h. */ 3673$ac_includes_default 3674 3675#include <$ac_header> 3676_ACEOF 3677rm -f conftest.$ac_objext 3678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3679 (eval $ac_compile) 2>conftest.er1 3680 ac_status=$? 3681 grep -v '^ *+' conftest.er1 >conftest.err 3682 rm -f conftest.er1 3683 cat conftest.err >&5 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); } && 3686 { ac_try='test -z "$ac_c_werror_flag" 3687 || test ! -s conftest.err' 3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3689 (eval $ac_try) 2>&5 3690 ac_status=$? 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); }; } && 3693 { ac_try='test -s conftest.$ac_objext' 3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3695 (eval $ac_try) 2>&5 3696 ac_status=$? 3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3698 (exit $ac_status); }; }; then 3699 eval "$as_ac_Header=yes" 3700else 3701 echo "$as_me: failed program was:" >&5 3702sed 's/^/| /' conftest.$ac_ext >&5 3703 3704eval "$as_ac_Header=no" 3705fi 3706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3707fi 3708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3710if test `eval echo '${'$as_ac_Header'}'` = yes; then 3711 cat >>confdefs.h <<_ACEOF 3712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3713_ACEOF 3714 3715fi 3716 3717done 3718 3719 3720 3721 3722 3723 3724 3725 3726for ac_header in fcntl.h limits.h unistd.h string.h windows.h stdlib.h 3727do 3728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3729if eval "test \"\${$as_ac_Header+set}\" = set"; then 3730 echo "$as_me:$LINENO: checking for $ac_header" >&5 3731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3732if eval "test \"\${$as_ac_Header+set}\" = set"; then 3733 echo $ECHO_N "(cached) $ECHO_C" >&6 3734fi 3735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3737else 3738 # Is the header compilable? 3739echo "$as_me:$LINENO: checking $ac_header usability" >&5 3740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3741cat >conftest.$ac_ext <<_ACEOF 3742/* confdefs.h. */ 3743_ACEOF 3744cat confdefs.h >>conftest.$ac_ext 3745cat >>conftest.$ac_ext <<_ACEOF 3746/* end confdefs.h. */ 3747$ac_includes_default 3748#include <$ac_header> 3749_ACEOF 3750rm -f conftest.$ac_objext 3751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3752 (eval $ac_compile) 2>conftest.er1 3753 ac_status=$? 3754 grep -v '^ *+' conftest.er1 >conftest.err 3755 rm -f conftest.er1 3756 cat conftest.err >&5 3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); } && 3759 { ac_try='test -z "$ac_c_werror_flag" 3760 || test ! -s conftest.err' 3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3762 (eval $ac_try) 2>&5 3763 ac_status=$? 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); }; } && 3766 { ac_try='test -s conftest.$ac_objext' 3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3768 (eval $ac_try) 2>&5 3769 ac_status=$? 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 (exit $ac_status); }; }; then 3772 ac_header_compiler=yes 3773else 3774 echo "$as_me: failed program was:" >&5 3775sed 's/^/| /' conftest.$ac_ext >&5 3776 3777ac_header_compiler=no 3778fi 3779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3781echo "${ECHO_T}$ac_header_compiler" >&6 3782 3783# Is the header present? 3784echo "$as_me:$LINENO: checking $ac_header presence" >&5 3785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3786cat >conftest.$ac_ext <<_ACEOF 3787/* confdefs.h. */ 3788_ACEOF 3789cat confdefs.h >>conftest.$ac_ext 3790cat >>conftest.$ac_ext <<_ACEOF 3791/* end confdefs.h. */ 3792#include <$ac_header> 3793_ACEOF 3794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3796 ac_status=$? 3797 grep -v '^ *+' conftest.er1 >conftest.err 3798 rm -f conftest.er1 3799 cat conftest.err >&5 3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3801 (exit $ac_status); } >/dev/null; then 3802 if test -s conftest.err; then 3803 ac_cpp_err=$ac_c_preproc_warn_flag 3804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3805 else 3806 ac_cpp_err= 3807 fi 3808else 3809 ac_cpp_err=yes 3810fi 3811if test -z "$ac_cpp_err"; then 3812 ac_header_preproc=yes 3813else 3814 echo "$as_me: failed program was:" >&5 3815sed 's/^/| /' conftest.$ac_ext >&5 3816 3817 ac_header_preproc=no 3818fi 3819rm -f conftest.err conftest.$ac_ext 3820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3821echo "${ECHO_T}$ac_header_preproc" >&6 3822 3823# So? What about this header? 3824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3825 yes:no: ) 3826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3830 ac_header_preproc=yes 3831 ;; 3832 no:yes:* ) 3833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3845 ( 3846 cat <<\_ASBOX 3847## ------------------------------------------ ## 3848## Report this to the AC_PACKAGE_NAME lists. ## 3849## ------------------------------------------ ## 3850_ASBOX 3851 ) | 3852 sed "s/^/$as_me: WARNING: /" >&2 3853 ;; 3854esac 3855echo "$as_me:$LINENO: checking for $ac_header" >&5 3856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3857if eval "test \"\${$as_ac_Header+set}\" = set"; then 3858 echo $ECHO_N "(cached) $ECHO_C" >&6 3859else 3860 eval "$as_ac_Header=\$ac_header_preproc" 3861fi 3862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3864 3865fi 3866if test `eval echo '${'$as_ac_Header'}'` = yes; then 3867 cat >>confdefs.h <<_ACEOF 3868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3869_ACEOF 3870 3871fi 3872 3873done 3874 3875cat >conftest.$ac_ext <<_ACEOF 3876/* confdefs.h. */ 3877_ACEOF 3878cat confdefs.h >>conftest.$ac_ext 3879cat >>conftest.$ac_ext <<_ACEOF 3880/* end confdefs.h. */ 3881#include <string.h> 3882 3883_ACEOF 3884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3885 $EGREP "memcpy" >/dev/null 2>&1; then 3886 cat >>confdefs.h <<\_ACEOF 3887#define MEMCPY_STRING 1 3888_ACEOF 3889 3890else 3891 cat >conftest.$ac_ext <<_ACEOF 3892/* confdefs.h. */ 3893_ACEOF 3894cat confdefs.h >>conftest.$ac_ext 3895cat >>conftest.$ac_ext <<_ACEOF 3896/* end confdefs.h. */ 3897#include <memory.h> 3898 3899_ACEOF 3900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3901 $EGREP "memcpy" >/dev/null 2>&1; then 3902 cat >>confdefs.h <<\_ACEOF 3903#define MEMCPY_MEMORY 1 3904_ACEOF 3905 3906fi 3907rm -f conftest* 3908 3909fi 3910rm -f conftest* 3911 3912cat >conftest.$ac_ext <<_ACEOF 3913/* confdefs.h. */ 3914_ACEOF 3915cat confdefs.h >>conftest.$ac_ext 3916cat >>conftest.$ac_ext <<_ACEOF 3917/* end confdefs.h. */ 3918#include <limits.h> 3919 3920_ACEOF 3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3922 $EGREP "PATH_MAX" >/dev/null 2>&1; then 3923 cat >>confdefs.h <<\_ACEOF 3924#define PATH_IN_LIMITS 1 3925_ACEOF 3926 3927fi 3928rm -f conftest* 3929 3930cat >conftest.$ac_ext <<_ACEOF 3931/* confdefs.h. */ 3932_ACEOF 3933cat confdefs.h >>conftest.$ac_ext 3934cat >>conftest.$ac_ext <<_ACEOF 3935/* end confdefs.h. */ 3936#include <unistd.h> 3937 3938_ACEOF 3939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3940 $EGREP "sbrk" >/dev/null 2>&1; then 3941 : 3942else 3943 cat >>confdefs.h <<\_ACEOF 3944#define SBRK_UNDEF 1 3945_ACEOF 3946 3947fi 3948rm -f conftest* 3949 3950 3951echo "$as_me:$LINENO: checking for off_t" >&5 3952echo $ECHO_N "checking for off_t... $ECHO_C" >&6 3953if test "${ac_cv_type_off_t+set}" = set; then 3954 echo $ECHO_N "(cached) $ECHO_C" >&6 3955else 3956 cat >conftest.$ac_ext <<_ACEOF 3957/* confdefs.h. */ 3958_ACEOF 3959cat confdefs.h >>conftest.$ac_ext 3960cat >>conftest.$ac_ext <<_ACEOF 3961/* end confdefs.h. */ 3962$ac_includes_default 3963int 3964main () 3965{ 3966if ((off_t *) 0) 3967 return 0; 3968if (sizeof (off_t)) 3969 return 0; 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974rm -f conftest.$ac_objext 3975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3976 (eval $ac_compile) 2>conftest.er1 3977 ac_status=$? 3978 grep -v '^ *+' conftest.er1 >conftest.err 3979 rm -f conftest.er1 3980 cat conftest.err >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); } && 3983 { ac_try='test -z "$ac_c_werror_flag" 3984 || test ! -s conftest.err' 3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3986 (eval $ac_try) 2>&5 3987 ac_status=$? 3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3989 (exit $ac_status); }; } && 3990 { ac_try='test -s conftest.$ac_objext' 3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3992 (eval $ac_try) 2>&5 3993 ac_status=$? 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); }; }; then 3996 ac_cv_type_off_t=yes 3997else 3998 echo "$as_me: failed program was:" >&5 3999sed 's/^/| /' conftest.$ac_ext >&5 4000 4001ac_cv_type_off_t=no 4002fi 4003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4004fi 4005echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4006echo "${ECHO_T}$ac_cv_type_off_t" >&6 4007if test $ac_cv_type_off_t = yes; then 4008 : 4009else 4010 4011cat >>confdefs.h <<_ACEOF 4012#define off_t long 4013_ACEOF 4014 4015fi 4016 4017echo "$as_me:$LINENO: checking for int" >&5 4018echo $ECHO_N "checking for int... $ECHO_C" >&6 4019if test "${ac_cv_type_int+set}" = set; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 cat >conftest.$ac_ext <<_ACEOF 4023/* confdefs.h. */ 4024_ACEOF 4025cat confdefs.h >>conftest.$ac_ext 4026cat >>conftest.$ac_ext <<_ACEOF 4027/* end confdefs.h. */ 4028$ac_includes_default 4029int 4030main () 4031{ 4032if ((int *) 0) 4033 return 0; 4034if (sizeof (int)) 4035 return 0; 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040rm -f conftest.$ac_objext 4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4042 (eval $ac_compile) 2>conftest.er1 4043 ac_status=$? 4044 grep -v '^ *+' conftest.er1 >conftest.err 4045 rm -f conftest.er1 4046 cat conftest.err >&5 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); } && 4049 { ac_try='test -z "$ac_c_werror_flag" 4050 || test ! -s conftest.err' 4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4052 (eval $ac_try) 2>&5 4053 ac_status=$? 4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4055 (exit $ac_status); }; } && 4056 { ac_try='test -s conftest.$ac_objext' 4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4058 (eval $ac_try) 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); }; }; then 4062 ac_cv_type_int=yes 4063else 4064 echo "$as_me: failed program was:" >&5 4065sed 's/^/| /' conftest.$ac_ext >&5 4066 4067ac_cv_type_int=no 4068fi 4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4070fi 4071echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 4072echo "${ECHO_T}$ac_cv_type_int" >&6 4073 4074echo "$as_me:$LINENO: checking size of int" >&5 4075echo $ECHO_N "checking size of int... $ECHO_C" >&6 4076if test "${ac_cv_sizeof_int+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 if test "$ac_cv_type_int" = yes; then 4080 # The cast to unsigned long works around a bug in the HP C Compiler 4081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4083 # This bug is HP SR number 8606223364. 4084 if test "$cross_compiling" = yes; then 4085 # Depending upon the size, compute the lo and hi bounds. 4086cat >conftest.$ac_ext <<_ACEOF 4087/* confdefs.h. */ 4088_ACEOF 4089cat confdefs.h >>conftest.$ac_ext 4090cat >>conftest.$ac_ext <<_ACEOF 4091/* end confdefs.h. */ 4092$ac_includes_default 4093int 4094main () 4095{ 4096static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4097test_array [0] = 0 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103rm -f conftest.$ac_objext 4104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4105 (eval $ac_compile) 2>conftest.er1 4106 ac_status=$? 4107 grep -v '^ *+' conftest.er1 >conftest.err 4108 rm -f conftest.er1 4109 cat conftest.err >&5 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4111 (exit $ac_status); } && 4112 { ac_try='test -z "$ac_c_werror_flag" 4113 || test ! -s conftest.err' 4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4115 (eval $ac_try) 2>&5 4116 ac_status=$? 4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4118 (exit $ac_status); }; } && 4119 { ac_try='test -s conftest.$ac_objext' 4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4121 (eval $ac_try) 2>&5 4122 ac_status=$? 4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4124 (exit $ac_status); }; }; then 4125 ac_lo=0 ac_mid=0 4126 while :; do 4127 cat >conftest.$ac_ext <<_ACEOF 4128/* confdefs.h. */ 4129_ACEOF 4130cat confdefs.h >>conftest.$ac_ext 4131cat >>conftest.$ac_ext <<_ACEOF 4132/* end confdefs.h. */ 4133$ac_includes_default 4134int 4135main () 4136{ 4137static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4138test_array [0] = 0 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4146 (eval $ac_compile) 2>conftest.er1 4147 ac_status=$? 4148 grep -v '^ *+' conftest.er1 >conftest.err 4149 rm -f conftest.er1 4150 cat conftest.err >&5 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); } && 4153 { ac_try='test -z "$ac_c_werror_flag" 4154 || test ! -s conftest.err' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; } && 4160 { ac_try='test -s conftest.$ac_objext' 4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4162 (eval $ac_try) 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; }; then 4166 ac_hi=$ac_mid; break 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171ac_lo=`expr $ac_mid + 1` 4172 if test $ac_lo -le $ac_mid; then 4173 ac_lo= ac_hi= 4174 break 4175 fi 4176 ac_mid=`expr 2 '*' $ac_mid + 1` 4177fi 4178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4179 done 4180else 4181 echo "$as_me: failed program was:" >&5 4182sed 's/^/| /' conftest.$ac_ext >&5 4183 4184cat >conftest.$ac_ext <<_ACEOF 4185/* confdefs.h. */ 4186_ACEOF 4187cat confdefs.h >>conftest.$ac_ext 4188cat >>conftest.$ac_ext <<_ACEOF 4189/* end confdefs.h. */ 4190$ac_includes_default 4191int 4192main () 4193{ 4194static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4195test_array [0] = 0 4196 4197 ; 4198 return 0; 4199} 4200_ACEOF 4201rm -f conftest.$ac_objext 4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4203 (eval $ac_compile) 2>conftest.er1 4204 ac_status=$? 4205 grep -v '^ *+' conftest.er1 >conftest.err 4206 rm -f conftest.er1 4207 cat conftest.err >&5 4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4209 (exit $ac_status); } && 4210 { ac_try='test -z "$ac_c_werror_flag" 4211 || test ! -s conftest.err' 4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4213 (eval $ac_try) 2>&5 4214 ac_status=$? 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); }; } && 4217 { ac_try='test -s conftest.$ac_objext' 4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4219 (eval $ac_try) 2>&5 4220 ac_status=$? 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 (exit $ac_status); }; }; then 4223 ac_hi=-1 ac_mid=-1 4224 while :; do 4225 cat >conftest.$ac_ext <<_ACEOF 4226/* confdefs.h. */ 4227_ACEOF 4228cat confdefs.h >>conftest.$ac_ext 4229cat >>conftest.$ac_ext <<_ACEOF 4230/* end confdefs.h. */ 4231$ac_includes_default 4232int 4233main () 4234{ 4235static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 4236test_array [0] = 0 4237 4238 ; 4239 return 0; 4240} 4241_ACEOF 4242rm -f conftest.$ac_objext 4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4244 (eval $ac_compile) 2>conftest.er1 4245 ac_status=$? 4246 grep -v '^ *+' conftest.er1 >conftest.err 4247 rm -f conftest.er1 4248 cat conftest.err >&5 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); } && 4251 { ac_try='test -z "$ac_c_werror_flag" 4252 || test ! -s conftest.err' 4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4254 (eval $ac_try) 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); }; } && 4258 { ac_try='test -s conftest.$ac_objext' 4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4260 (eval $ac_try) 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); }; }; then 4264 ac_lo=$ac_mid; break 4265else 4266 echo "$as_me: failed program was:" >&5 4267sed 's/^/| /' conftest.$ac_ext >&5 4268 4269ac_hi=`expr '(' $ac_mid ')' - 1` 4270 if test $ac_mid -le $ac_hi; then 4271 ac_lo= ac_hi= 4272 break 4273 fi 4274 ac_mid=`expr 2 '*' $ac_mid` 4275fi 4276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4277 done 4278else 4279 echo "$as_me: failed program was:" >&5 4280sed 's/^/| /' conftest.$ac_ext >&5 4281 4282ac_lo= ac_hi= 4283fi 4284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4285fi 4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4287# Binary search between lo and hi bounds. 4288while test "x$ac_lo" != "x$ac_hi"; do 4289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4290 cat >conftest.$ac_ext <<_ACEOF 4291/* confdefs.h. */ 4292_ACEOF 4293cat confdefs.h >>conftest.$ac_ext 4294cat >>conftest.$ac_ext <<_ACEOF 4295/* end confdefs.h. */ 4296$ac_includes_default 4297int 4298main () 4299{ 4300static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4301test_array [0] = 0 4302 4303 ; 4304 return 0; 4305} 4306_ACEOF 4307rm -f conftest.$ac_objext 4308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4309 (eval $ac_compile) 2>conftest.er1 4310 ac_status=$? 4311 grep -v '^ *+' conftest.er1 >conftest.err 4312 rm -f conftest.er1 4313 cat conftest.err >&5 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); } && 4316 { ac_try='test -z "$ac_c_werror_flag" 4317 || test ! -s conftest.err' 4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4319 (eval $ac_try) 2>&5 4320 ac_status=$? 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); }; } && 4323 { ac_try='test -s conftest.$ac_objext' 4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4325 (eval $ac_try) 2>&5 4326 ac_status=$? 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); }; }; then 4329 ac_hi=$ac_mid 4330else 4331 echo "$as_me: failed program was:" >&5 4332sed 's/^/| /' conftest.$ac_ext >&5 4333 4334ac_lo=`expr '(' $ac_mid ')' + 1` 4335fi 4336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4337done 4338case $ac_lo in 4339?*) ac_cv_sizeof_int=$ac_lo;; 4340'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4341See \`config.log' for more details." >&5 4342echo "$as_me: error: cannot compute sizeof (int), 77 4343See \`config.log' for more details." >&2;} 4344 { (exit 1); exit 1; }; } ;; 4345esac 4346else 4347 if test "$cross_compiling" = yes; then 4348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4349See \`config.log' for more details." >&5 4350echo "$as_me: error: cannot run test program while cross compiling 4351See \`config.log' for more details." >&2;} 4352 { (exit 1); exit 1; }; } 4353else 4354 cat >conftest.$ac_ext <<_ACEOF 4355/* confdefs.h. */ 4356_ACEOF 4357cat confdefs.h >>conftest.$ac_ext 4358cat >>conftest.$ac_ext <<_ACEOF 4359/* end confdefs.h. */ 4360$ac_includes_default 4361long longval () { return (long) (sizeof (int)); } 4362unsigned long ulongval () { return (long) (sizeof (int)); } 4363#include <stdio.h> 4364#include <stdlib.h> 4365int 4366main () 4367{ 4368 4369 FILE *f = fopen ("conftest.val", "w"); 4370 if (! f) 4371 exit (1); 4372 if (((long) (sizeof (int))) < 0) 4373 { 4374 long i = longval (); 4375 if (i != ((long) (sizeof (int)))) 4376 exit (1); 4377 fprintf (f, "%ld\n", i); 4378 } 4379 else 4380 { 4381 unsigned long i = ulongval (); 4382 if (i != ((long) (sizeof (int)))) 4383 exit (1); 4384 fprintf (f, "%lu\n", i); 4385 } 4386 exit (ferror (f) || fclose (f) != 0); 4387 4388 ; 4389 return 0; 4390} 4391_ACEOF 4392rm -f conftest$ac_exeext 4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4394 (eval $ac_link) 2>&5 4395 ac_status=$? 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4399 (eval $ac_try) 2>&5 4400 ac_status=$? 4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4402 (exit $ac_status); }; }; then 4403 ac_cv_sizeof_int=`cat conftest.val` 4404else 4405 echo "$as_me: program exited with status $ac_status" >&5 4406echo "$as_me: failed program was:" >&5 4407sed 's/^/| /' conftest.$ac_ext >&5 4408 4409( exit $ac_status ) 4410{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4411See \`config.log' for more details." >&5 4412echo "$as_me: error: cannot compute sizeof (int), 77 4413See \`config.log' for more details." >&2;} 4414 { (exit 1); exit 1; }; } 4415fi 4416rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4417fi 4418fi 4419rm -f conftest.val 4420else 4421 ac_cv_sizeof_int=0 4422fi 4423fi 4424echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 4425echo "${ECHO_T}$ac_cv_sizeof_int" >&6 4426cat >>confdefs.h <<_ACEOF 4427#define SIZEOF_INT $ac_cv_sizeof_int 4428_ACEOF 4429 4430 4431echo "$as_me:$LINENO: checking for long" >&5 4432echo $ECHO_N "checking for long... $ECHO_C" >&6 4433if test "${ac_cv_type_long+set}" = set; then 4434 echo $ECHO_N "(cached) $ECHO_C" >&6 4435else 4436 cat >conftest.$ac_ext <<_ACEOF 4437/* confdefs.h. */ 4438_ACEOF 4439cat confdefs.h >>conftest.$ac_ext 4440cat >>conftest.$ac_ext <<_ACEOF 4441/* end confdefs.h. */ 4442$ac_includes_default 4443int 4444main () 4445{ 4446if ((long *) 0) 4447 return 0; 4448if (sizeof (long)) 4449 return 0; 4450 ; 4451 return 0; 4452} 4453_ACEOF 4454rm -f conftest.$ac_objext 4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4456 (eval $ac_compile) 2>conftest.er1 4457 ac_status=$? 4458 grep -v '^ *+' conftest.er1 >conftest.err 4459 rm -f conftest.er1 4460 cat conftest.err >&5 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); } && 4463 { ac_try='test -z "$ac_c_werror_flag" 4464 || test ! -s conftest.err' 4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4466 (eval $ac_try) 2>&5 4467 ac_status=$? 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); }; } && 4470 { ac_try='test -s conftest.$ac_objext' 4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4472 (eval $ac_try) 2>&5 4473 ac_status=$? 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); }; }; then 4476 ac_cv_type_long=yes 4477else 4478 echo "$as_me: failed program was:" >&5 4479sed 's/^/| /' conftest.$ac_ext >&5 4480 4481ac_cv_type_long=no 4482fi 4483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4484fi 4485echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 4486echo "${ECHO_T}$ac_cv_type_long" >&6 4487 4488echo "$as_me:$LINENO: checking size of long" >&5 4489echo $ECHO_N "checking size of long... $ECHO_C" >&6 4490if test "${ac_cv_sizeof_long+set}" = set; then 4491 echo $ECHO_N "(cached) $ECHO_C" >&6 4492else 4493 if test "$ac_cv_type_long" = yes; then 4494 # The cast to unsigned long works around a bug in the HP C Compiler 4495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4497 # This bug is HP SR number 8606223364. 4498 if test "$cross_compiling" = yes; then 4499 # Depending upon the size, compute the lo and hi bounds. 4500cat >conftest.$ac_ext <<_ACEOF 4501/* confdefs.h. */ 4502_ACEOF 4503cat confdefs.h >>conftest.$ac_ext 4504cat >>conftest.$ac_ext <<_ACEOF 4505/* end confdefs.h. */ 4506$ac_includes_default 4507int 4508main () 4509{ 4510static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 4511test_array [0] = 0 4512 4513 ; 4514 return 0; 4515} 4516_ACEOF 4517rm -f conftest.$ac_objext 4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4519 (eval $ac_compile) 2>conftest.er1 4520 ac_status=$? 4521 grep -v '^ *+' conftest.er1 >conftest.err 4522 rm -f conftest.er1 4523 cat conftest.err >&5 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } && 4526 { ac_try='test -z "$ac_c_werror_flag" 4527 || test ! -s conftest.err' 4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4529 (eval $ac_try) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); }; } && 4533 { ac_try='test -s conftest.$ac_objext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 ac_lo=0 ac_mid=0 4540 while :; do 4541 cat >conftest.$ac_ext <<_ACEOF 4542/* confdefs.h. */ 4543_ACEOF 4544cat confdefs.h >>conftest.$ac_ext 4545cat >>conftest.$ac_ext <<_ACEOF 4546/* end confdefs.h. */ 4547$ac_includes_default 4548int 4549main () 4550{ 4551static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4552test_array [0] = 0 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558rm -f conftest.$ac_objext 4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4560 (eval $ac_compile) 2>conftest.er1 4561 ac_status=$? 4562 grep -v '^ *+' conftest.er1 >conftest.err 4563 rm -f conftest.er1 4564 cat conftest.err >&5 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } && 4567 { ac_try='test -z "$ac_c_werror_flag" 4568 || test ! -s conftest.err' 4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4570 (eval $ac_try) 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; } && 4574 { ac_try='test -s conftest.$ac_objext' 4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4576 (eval $ac_try) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); }; }; then 4580 ac_hi=$ac_mid; break 4581else 4582 echo "$as_me: failed program was:" >&5 4583sed 's/^/| /' conftest.$ac_ext >&5 4584 4585ac_lo=`expr $ac_mid + 1` 4586 if test $ac_lo -le $ac_mid; then 4587 ac_lo= ac_hi= 4588 break 4589 fi 4590 ac_mid=`expr 2 '*' $ac_mid + 1` 4591fi 4592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4593 done 4594else 4595 echo "$as_me: failed program was:" >&5 4596sed 's/^/| /' conftest.$ac_ext >&5 4597 4598cat >conftest.$ac_ext <<_ACEOF 4599/* confdefs.h. */ 4600_ACEOF 4601cat confdefs.h >>conftest.$ac_ext 4602cat >>conftest.$ac_ext <<_ACEOF 4603/* end confdefs.h. */ 4604$ac_includes_default 4605int 4606main () 4607{ 4608static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 4609test_array [0] = 0 4610 4611 ; 4612 return 0; 4613} 4614_ACEOF 4615rm -f conftest.$ac_objext 4616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4617 (eval $ac_compile) 2>conftest.er1 4618 ac_status=$? 4619 grep -v '^ *+' conftest.er1 >conftest.err 4620 rm -f conftest.er1 4621 cat conftest.err >&5 4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4623 (exit $ac_status); } && 4624 { ac_try='test -z "$ac_c_werror_flag" 4625 || test ! -s conftest.err' 4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4627 (eval $ac_try) 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; } && 4631 { ac_try='test -s conftest.$ac_objext' 4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4633 (eval $ac_try) 2>&5 4634 ac_status=$? 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); }; }; then 4637 ac_hi=-1 ac_mid=-1 4638 while :; do 4639 cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645$ac_includes_default 4646int 4647main () 4648{ 4649static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 4650test_array [0] = 0 4651 4652 ; 4653 return 0; 4654} 4655_ACEOF 4656rm -f conftest.$ac_objext 4657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4658 (eval $ac_compile) 2>conftest.er1 4659 ac_status=$? 4660 grep -v '^ *+' conftest.er1 >conftest.err 4661 rm -f conftest.er1 4662 cat conftest.err >&5 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); } && 4665 { ac_try='test -z "$ac_c_werror_flag" 4666 || test ! -s conftest.err' 4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4668 (eval $ac_try) 2>&5 4669 ac_status=$? 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); }; } && 4672 { ac_try='test -s conftest.$ac_objext' 4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4674 (eval $ac_try) 2>&5 4675 ac_status=$? 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); }; }; then 4678 ac_lo=$ac_mid; break 4679else 4680 echo "$as_me: failed program was:" >&5 4681sed 's/^/| /' conftest.$ac_ext >&5 4682 4683ac_hi=`expr '(' $ac_mid ')' - 1` 4684 if test $ac_mid -le $ac_hi; then 4685 ac_lo= ac_hi= 4686 break 4687 fi 4688 ac_mid=`expr 2 '*' $ac_mid` 4689fi 4690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4691 done 4692else 4693 echo "$as_me: failed program was:" >&5 4694sed 's/^/| /' conftest.$ac_ext >&5 4695 4696ac_lo= ac_hi= 4697fi 4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4699fi 4700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4701# Binary search between lo and hi bounds. 4702while test "x$ac_lo" != "x$ac_hi"; do 4703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4704 cat >conftest.$ac_ext <<_ACEOF 4705/* confdefs.h. */ 4706_ACEOF 4707cat confdefs.h >>conftest.$ac_ext 4708cat >>conftest.$ac_ext <<_ACEOF 4709/* end confdefs.h. */ 4710$ac_includes_default 4711int 4712main () 4713{ 4714static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4715test_array [0] = 0 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721rm -f conftest.$ac_objext 4722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4723 (eval $ac_compile) 2>conftest.er1 4724 ac_status=$? 4725 grep -v '^ *+' conftest.er1 >conftest.err 4726 rm -f conftest.er1 4727 cat conftest.err >&5 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } && 4730 { ac_try='test -z "$ac_c_werror_flag" 4731 || test ! -s conftest.err' 4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4733 (eval $ac_try) 2>&5 4734 ac_status=$? 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); }; } && 4737 { ac_try='test -s conftest.$ac_objext' 4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4739 (eval $ac_try) 2>&5 4740 ac_status=$? 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); }; }; then 4743 ac_hi=$ac_mid 4744else 4745 echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748ac_lo=`expr '(' $ac_mid ')' + 1` 4749fi 4750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4751done 4752case $ac_lo in 4753?*) ac_cv_sizeof_long=$ac_lo;; 4754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4755See \`config.log' for more details." >&5 4756echo "$as_me: error: cannot compute sizeof (long), 77 4757See \`config.log' for more details." >&2;} 4758 { (exit 1); exit 1; }; } ;; 4759esac 4760else 4761 if test "$cross_compiling" = yes; then 4762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4763See \`config.log' for more details." >&5 4764echo "$as_me: error: cannot run test program while cross compiling 4765See \`config.log' for more details." >&2;} 4766 { (exit 1); exit 1; }; } 4767else 4768 cat >conftest.$ac_ext <<_ACEOF 4769/* confdefs.h. */ 4770_ACEOF 4771cat confdefs.h >>conftest.$ac_ext 4772cat >>conftest.$ac_ext <<_ACEOF 4773/* end confdefs.h. */ 4774$ac_includes_default 4775long longval () { return (long) (sizeof (long)); } 4776unsigned long ulongval () { return (long) (sizeof (long)); } 4777#include <stdio.h> 4778#include <stdlib.h> 4779int 4780main () 4781{ 4782 4783 FILE *f = fopen ("conftest.val", "w"); 4784 if (! f) 4785 exit (1); 4786 if (((long) (sizeof (long))) < 0) 4787 { 4788 long i = longval (); 4789 if (i != ((long) (sizeof (long)))) 4790 exit (1); 4791 fprintf (f, "%ld\n", i); 4792 } 4793 else 4794 { 4795 unsigned long i = ulongval (); 4796 if (i != ((long) (sizeof (long)))) 4797 exit (1); 4798 fprintf (f, "%lu\n", i); 4799 } 4800 exit (ferror (f) || fclose (f) != 0); 4801 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806rm -f conftest$ac_exeext 4807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4808 (eval $ac_link) 2>&5 4809 ac_status=$? 4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4813 (eval $ac_try) 2>&5 4814 ac_status=$? 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); }; }; then 4817 ac_cv_sizeof_long=`cat conftest.val` 4818else 4819 echo "$as_me: program exited with status $ac_status" >&5 4820echo "$as_me: failed program was:" >&5 4821sed 's/^/| /' conftest.$ac_ext >&5 4822 4823( exit $ac_status ) 4824{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4825See \`config.log' for more details." >&5 4826echo "$as_me: error: cannot compute sizeof (long), 77 4827See \`config.log' for more details." >&2;} 4828 { (exit 1); exit 1; }; } 4829fi 4830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4831fi 4832fi 4833rm -f conftest.val 4834else 4835 ac_cv_sizeof_long=0 4836fi 4837fi 4838echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 4839echo "${ECHO_T}$ac_cv_sizeof_long" >&6 4840cat >>confdefs.h <<_ACEOF 4841#define SIZEOF_LONG $ac_cv_sizeof_long 4842_ACEOF 4843 4844 4845echo "$as_me:$LINENO: checking for char *" >&5 4846echo $ECHO_N "checking for char *... $ECHO_C" >&6 4847if test "${ac_cv_type_char_p+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849else 4850 cat >conftest.$ac_ext <<_ACEOF 4851/* confdefs.h. */ 4852_ACEOF 4853cat confdefs.h >>conftest.$ac_ext 4854cat >>conftest.$ac_ext <<_ACEOF 4855/* end confdefs.h. */ 4856$ac_includes_default 4857int 4858main () 4859{ 4860if ((char * *) 0) 4861 return 0; 4862if (sizeof (char *)) 4863 return 0; 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest.$ac_objext 4869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4870 (eval $ac_compile) 2>conftest.er1 4871 ac_status=$? 4872 grep -v '^ *+' conftest.er1 >conftest.err 4873 rm -f conftest.er1 4874 cat conftest.err >&5 4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4876 (exit $ac_status); } && 4877 { ac_try='test -z "$ac_c_werror_flag" 4878 || test ! -s conftest.err' 4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4880 (eval $ac_try) 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); }; } && 4884 { ac_try='test -s conftest.$ac_objext' 4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4886 (eval $ac_try) 2>&5 4887 ac_status=$? 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4889 (exit $ac_status); }; }; then 4890 ac_cv_type_char_p=yes 4891else 4892 echo "$as_me: failed program was:" >&5 4893sed 's/^/| /' conftest.$ac_ext >&5 4894 4895ac_cv_type_char_p=no 4896fi 4897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4898fi 4899echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5 4900echo "${ECHO_T}$ac_cv_type_char_p" >&6 4901 4902echo "$as_me:$LINENO: checking size of char *" >&5 4903echo $ECHO_N "checking size of char *... $ECHO_C" >&6 4904if test "${ac_cv_sizeof_char_p+set}" = set; then 4905 echo $ECHO_N "(cached) $ECHO_C" >&6 4906else 4907 if test "$ac_cv_type_char_p" = yes; then 4908 # The cast to unsigned long works around a bug in the HP C Compiler 4909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4911 # This bug is HP SR number 8606223364. 4912 if test "$cross_compiling" = yes; then 4913 # Depending upon the size, compute the lo and hi bounds. 4914cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920$ac_includes_default 4921int 4922main () 4923{ 4924static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)]; 4925test_array [0] = 0 4926 4927 ; 4928 return 0; 4929} 4930_ACEOF 4931rm -f conftest.$ac_objext 4932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4933 (eval $ac_compile) 2>conftest.er1 4934 ac_status=$? 4935 grep -v '^ *+' conftest.er1 >conftest.err 4936 rm -f conftest.er1 4937 cat conftest.err >&5 4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4939 (exit $ac_status); } && 4940 { ac_try='test -z "$ac_c_werror_flag" 4941 || test ! -s conftest.err' 4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4943 (eval $ac_try) 2>&5 4944 ac_status=$? 4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4946 (exit $ac_status); }; } && 4947 { ac_try='test -s conftest.$ac_objext' 4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4949 (eval $ac_try) 2>&5 4950 ac_status=$? 4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); }; }; then 4953 ac_lo=0 ac_mid=0 4954 while :; do 4955 cat >conftest.$ac_ext <<_ACEOF 4956/* confdefs.h. */ 4957_ACEOF 4958cat confdefs.h >>conftest.$ac_ext 4959cat >>conftest.$ac_ext <<_ACEOF 4960/* end confdefs.h. */ 4961$ac_includes_default 4962int 4963main () 4964{ 4965static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; 4966test_array [0] = 0 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972rm -f conftest.$ac_objext 4973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4974 (eval $ac_compile) 2>conftest.er1 4975 ac_status=$? 4976 grep -v '^ *+' conftest.er1 >conftest.err 4977 rm -f conftest.er1 4978 cat conftest.err >&5 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); } && 4981 { ac_try='test -z "$ac_c_werror_flag" 4982 || test ! -s conftest.err' 4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4984 (eval $ac_try) 2>&5 4985 ac_status=$? 4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4987 (exit $ac_status); }; } && 4988 { ac_try='test -s conftest.$ac_objext' 4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 (eval $ac_try) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; }; then 4994 ac_hi=$ac_mid; break 4995else 4996 echo "$as_me: failed program was:" >&5 4997sed 's/^/| /' conftest.$ac_ext >&5 4998 4999ac_lo=`expr $ac_mid + 1` 5000 if test $ac_lo -le $ac_mid; then 5001 ac_lo= ac_hi= 5002 break 5003 fi 5004 ac_mid=`expr 2 '*' $ac_mid + 1` 5005fi 5006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5007 done 5008else 5009 echo "$as_me: failed program was:" >&5 5010sed 's/^/| /' conftest.$ac_ext >&5 5011 5012cat >conftest.$ac_ext <<_ACEOF 5013/* confdefs.h. */ 5014_ACEOF 5015cat confdefs.h >>conftest.$ac_ext 5016cat >>conftest.$ac_ext <<_ACEOF 5017/* end confdefs.h. */ 5018$ac_includes_default 5019int 5020main () 5021{ 5022static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)]; 5023test_array [0] = 0 5024 5025 ; 5026 return 0; 5027} 5028_ACEOF 5029rm -f conftest.$ac_objext 5030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5031 (eval $ac_compile) 2>conftest.er1 5032 ac_status=$? 5033 grep -v '^ *+' conftest.er1 >conftest.err 5034 rm -f conftest.er1 5035 cat conftest.err >&5 5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); } && 5038 { ac_try='test -z "$ac_c_werror_flag" 5039 || test ! -s conftest.err' 5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5041 (eval $ac_try) 2>&5 5042 ac_status=$? 5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5044 (exit $ac_status); }; } && 5045 { ac_try='test -s conftest.$ac_objext' 5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5047 (eval $ac_try) 2>&5 5048 ac_status=$? 5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); }; }; then 5051 ac_hi=-1 ac_mid=-1 5052 while :; do 5053 cat >conftest.$ac_ext <<_ACEOF 5054/* confdefs.h. */ 5055_ACEOF 5056cat confdefs.h >>conftest.$ac_ext 5057cat >>conftest.$ac_ext <<_ACEOF 5058/* end confdefs.h. */ 5059$ac_includes_default 5060int 5061main () 5062{ 5063static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)]; 5064test_array [0] = 0 5065 5066 ; 5067 return 0; 5068} 5069_ACEOF 5070rm -f conftest.$ac_objext 5071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5072 (eval $ac_compile) 2>conftest.er1 5073 ac_status=$? 5074 grep -v '^ *+' conftest.er1 >conftest.err 5075 rm -f conftest.er1 5076 cat conftest.err >&5 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); } && 5079 { ac_try='test -z "$ac_c_werror_flag" 5080 || test ! -s conftest.err' 5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5082 (eval $ac_try) 2>&5 5083 ac_status=$? 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); }; } && 5086 { ac_try='test -s conftest.$ac_objext' 5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5088 (eval $ac_try) 2>&5 5089 ac_status=$? 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); }; }; then 5092 ac_lo=$ac_mid; break 5093else 5094 echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097ac_hi=`expr '(' $ac_mid ')' - 1` 5098 if test $ac_mid -le $ac_hi; then 5099 ac_lo= ac_hi= 5100 break 5101 fi 5102 ac_mid=`expr 2 '*' $ac_mid` 5103fi 5104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5105 done 5106else 5107 echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 5109 5110ac_lo= ac_hi= 5111fi 5112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5113fi 5114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5115# Binary search between lo and hi bounds. 5116while test "x$ac_lo" != "x$ac_hi"; do 5117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5118 cat >conftest.$ac_ext <<_ACEOF 5119/* confdefs.h. */ 5120_ACEOF 5121cat confdefs.h >>conftest.$ac_ext 5122cat >>conftest.$ac_ext <<_ACEOF 5123/* end confdefs.h. */ 5124$ac_includes_default 5125int 5126main () 5127{ 5128static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)]; 5129test_array [0] = 0 5130 5131 ; 5132 return 0; 5133} 5134_ACEOF 5135rm -f conftest.$ac_objext 5136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5137 (eval $ac_compile) 2>conftest.er1 5138 ac_status=$? 5139 grep -v '^ *+' conftest.er1 >conftest.err 5140 rm -f conftest.er1 5141 cat conftest.err >&5 5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); } && 5144 { ac_try='test -z "$ac_c_werror_flag" 5145 || test ! -s conftest.err' 5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5147 (eval $ac_try) 2>&5 5148 ac_status=$? 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); }; } && 5151 { ac_try='test -s conftest.$ac_objext' 5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5153 (eval $ac_try) 2>&5 5154 ac_status=$? 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); }; }; then 5157 ac_hi=$ac_mid 5158else 5159 echo "$as_me: failed program was:" >&5 5160sed 's/^/| /' conftest.$ac_ext >&5 5161 5162ac_lo=`expr '(' $ac_mid ')' + 1` 5163fi 5164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5165done 5166case $ac_lo in 5167?*) ac_cv_sizeof_char_p=$ac_lo;; 5168'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 5169See \`config.log' for more details." >&5 5170echo "$as_me: error: cannot compute sizeof (char *), 77 5171See \`config.log' for more details." >&2;} 5172 { (exit 1); exit 1; }; } ;; 5173esac 5174else 5175 if test "$cross_compiling" = yes; then 5176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5177See \`config.log' for more details." >&5 5178echo "$as_me: error: cannot run test program while cross compiling 5179See \`config.log' for more details." >&2;} 5180 { (exit 1); exit 1; }; } 5181else 5182 cat >conftest.$ac_ext <<_ACEOF 5183/* confdefs.h. */ 5184_ACEOF 5185cat confdefs.h >>conftest.$ac_ext 5186cat >>conftest.$ac_ext <<_ACEOF 5187/* end confdefs.h. */ 5188$ac_includes_default 5189long longval () { return (long) (sizeof (char *)); } 5190unsigned long ulongval () { return (long) (sizeof (char *)); } 5191#include <stdio.h> 5192#include <stdlib.h> 5193int 5194main () 5195{ 5196 5197 FILE *f = fopen ("conftest.val", "w"); 5198 if (! f) 5199 exit (1); 5200 if (((long) (sizeof (char *))) < 0) 5201 { 5202 long i = longval (); 5203 if (i != ((long) (sizeof (char *)))) 5204 exit (1); 5205 fprintf (f, "%ld\n", i); 5206 } 5207 else 5208 { 5209 unsigned long i = ulongval (); 5210 if (i != ((long) (sizeof (char *)))) 5211 exit (1); 5212 fprintf (f, "%lu\n", i); 5213 } 5214 exit (ferror (f) || fclose (f) != 0); 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220rm -f conftest$ac_exeext 5221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5222 (eval $ac_link) 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5227 (eval $ac_try) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); }; }; then 5231 ac_cv_sizeof_char_p=`cat conftest.val` 5232else 5233 echo "$as_me: program exited with status $ac_status" >&5 5234echo "$as_me: failed program was:" >&5 5235sed 's/^/| /' conftest.$ac_ext >&5 5236 5237( exit $ac_status ) 5238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77 5239See \`config.log' for more details." >&5 5240echo "$as_me: error: cannot compute sizeof (char *), 77 5241See \`config.log' for more details." >&2;} 5242 { (exit 1); exit 1; }; } 5243fi 5244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5245fi 5246fi 5247rm -f conftest.val 5248else 5249 ac_cv_sizeof_char_p=0 5250fi 5251fi 5252echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 5253echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6 5254cat >>confdefs.h <<_ACEOF 5255#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 5256_ACEOF 5257 5258 5259cat >conftest.$ac_ext <<_ACEOF 5260/* confdefs.h. */ 5261_ACEOF 5262cat confdefs.h >>conftest.$ac_ext 5263cat >>conftest.$ac_ext <<_ACEOF 5264/* end confdefs.h. */ 5265 5266int 5267main () 5268{ 5269void *p; 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274rm -f conftest.$ac_objext 5275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5276 (eval $ac_compile) 2>conftest.er1 5277 ac_status=$? 5278 grep -v '^ *+' conftest.er1 >conftest.err 5279 rm -f conftest.er1 5280 cat conftest.err >&5 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } && 5283 { ac_try='test -z "$ac_c_werror_flag" 5284 || test ! -s conftest.err' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; } && 5290 { ac_try='test -s conftest.$ac_objext' 5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5292 (eval $ac_try) 2>&5 5293 ac_status=$? 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5295 (exit $ac_status); }; }; then 5296 : 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301cat >>confdefs.h <<\_ACEOF 5302#define HAVE_NO_VOID_PTR 1 5303_ACEOF 5304 5305fi 5306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5307 5308 5309 5310for ac_header in stdlib.h unistd.h 5311do 5312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5313if eval "test \"\${$as_ac_Header+set}\" = set"; then 5314 echo "$as_me:$LINENO: checking for $ac_header" >&5 5315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5316if eval "test \"\${$as_ac_Header+set}\" = set"; then 5317 echo $ECHO_N "(cached) $ECHO_C" >&6 5318fi 5319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5321else 5322 # Is the header compilable? 5323echo "$as_me:$LINENO: checking $ac_header usability" >&5 5324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5325cat >conftest.$ac_ext <<_ACEOF 5326/* confdefs.h. */ 5327_ACEOF 5328cat confdefs.h >>conftest.$ac_ext 5329cat >>conftest.$ac_ext <<_ACEOF 5330/* end confdefs.h. */ 5331$ac_includes_default 5332#include <$ac_header> 5333_ACEOF 5334rm -f conftest.$ac_objext 5335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5336 (eval $ac_compile) 2>conftest.er1 5337 ac_status=$? 5338 grep -v '^ *+' conftest.er1 >conftest.err 5339 rm -f conftest.er1 5340 cat conftest.err >&5 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); } && 5343 { ac_try='test -z "$ac_c_werror_flag" 5344 || test ! -s conftest.err' 5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5346 (eval $ac_try) 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); }; } && 5350 { ac_try='test -s conftest.$ac_objext' 5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5352 (eval $ac_try) 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); }; }; then 5356 ac_header_compiler=yes 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361ac_header_compiler=no 5362fi 5363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5365echo "${ECHO_T}$ac_header_compiler" >&6 5366 5367# Is the header present? 5368echo "$as_me:$LINENO: checking $ac_header presence" >&5 5369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5370cat >conftest.$ac_ext <<_ACEOF 5371/* confdefs.h. */ 5372_ACEOF 5373cat confdefs.h >>conftest.$ac_ext 5374cat >>conftest.$ac_ext <<_ACEOF 5375/* end confdefs.h. */ 5376#include <$ac_header> 5377_ACEOF 5378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5380 ac_status=$? 5381 grep -v '^ *+' conftest.er1 >conftest.err 5382 rm -f conftest.er1 5383 cat conftest.err >&5 5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5385 (exit $ac_status); } >/dev/null; then 5386 if test -s conftest.err; then 5387 ac_cpp_err=$ac_c_preproc_warn_flag 5388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5389 else 5390 ac_cpp_err= 5391 fi 5392else 5393 ac_cpp_err=yes 5394fi 5395if test -z "$ac_cpp_err"; then 5396 ac_header_preproc=yes 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401 ac_header_preproc=no 5402fi 5403rm -f conftest.err conftest.$ac_ext 5404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5405echo "${ECHO_T}$ac_header_preproc" >&6 5406 5407# So? What about this header? 5408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5409 yes:no: ) 5410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5413echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5414 ac_header_preproc=yes 5415 ;; 5416 no:yes:* ) 5417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5418echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5420echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5422echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5424echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5428echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5429 ( 5430 cat <<\_ASBOX 5431## ------------------------------------------ ## 5432## Report this to the AC_PACKAGE_NAME lists. ## 5433## ------------------------------------------ ## 5434_ASBOX 5435 ) | 5436 sed "s/^/$as_me: WARNING: /" >&2 5437 ;; 5438esac 5439echo "$as_me:$LINENO: checking for $ac_header" >&5 5440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5441if eval "test \"\${$as_ac_Header+set}\" = set"; then 5442 echo $ECHO_N "(cached) $ECHO_C" >&6 5443else 5444 eval "$as_ac_Header=\$ac_header_preproc" 5445fi 5446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5448 5449fi 5450if test `eval echo '${'$as_ac_Header'}'` = yes; then 5451 cat >>confdefs.h <<_ACEOF 5452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5453_ACEOF 5454 5455fi 5456 5457done 5458 5459 5460for ac_func in getpagesize 5461do 5462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5463echo "$as_me:$LINENO: checking for $ac_func" >&5 5464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5465if eval "test \"\${$as_ac_var+set}\" = set"; then 5466 echo $ECHO_N "(cached) $ECHO_C" >&6 5467else 5468 cat >conftest.$ac_ext <<_ACEOF 5469/* confdefs.h. */ 5470_ACEOF 5471cat confdefs.h >>conftest.$ac_ext 5472cat >>conftest.$ac_ext <<_ACEOF 5473/* end confdefs.h. */ 5474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5475 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5476#define $ac_func innocuous_$ac_func 5477 5478/* System header to define __stub macros and hopefully few prototypes, 5479 which can conflict with char $ac_func (); below. 5480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5481 <limits.h> exists even on freestanding compilers. */ 5482 5483#ifdef __STDC__ 5484# include <limits.h> 5485#else 5486# include <assert.h> 5487#endif 5488 5489#undef $ac_func 5490 5491/* Override any gcc2 internal prototype to avoid an error. */ 5492#ifdef __cplusplus 5493extern "C" 5494{ 5495#endif 5496/* We use char because int might match the return type of a gcc2 5497 builtin and then its argument prototype would still apply. */ 5498char $ac_func (); 5499/* The GNU C library defines this for functions which it implements 5500 to always fail with ENOSYS. Some functions are actually named 5501 something starting with __ and the normal name is an alias. */ 5502#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5503choke me 5504#else 5505char (*f) () = $ac_func; 5506#endif 5507#ifdef __cplusplus 5508} 5509#endif 5510 5511int 5512main () 5513{ 5514return f != $ac_func; 5515 ; 5516 return 0; 5517} 5518_ACEOF 5519rm -f conftest.$ac_objext conftest$ac_exeext 5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5521 (eval $ac_link) 2>conftest.er1 5522 ac_status=$? 5523 grep -v '^ *+' conftest.er1 >conftest.err 5524 rm -f conftest.er1 5525 cat conftest.err >&5 5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5527 (exit $ac_status); } && 5528 { ac_try='test -z "$ac_c_werror_flag" 5529 || test ! -s conftest.err' 5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5531 (eval $ac_try) 2>&5 5532 ac_status=$? 5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5534 (exit $ac_status); }; } && 5535 { ac_try='test -s conftest$ac_exeext' 5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5537 (eval $ac_try) 2>&5 5538 ac_status=$? 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); }; }; then 5541 eval "$as_ac_var=yes" 5542else 5543 echo "$as_me: failed program was:" >&5 5544sed 's/^/| /' conftest.$ac_ext >&5 5545 5546eval "$as_ac_var=no" 5547fi 5548rm -f conftest.err conftest.$ac_objext \ 5549 conftest$ac_exeext conftest.$ac_ext 5550fi 5551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5553if test `eval echo '${'$as_ac_var'}'` = yes; then 5554 cat >>confdefs.h <<_ACEOF 5555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5556_ACEOF 5557 5558fi 5559done 5560 5561echo "$as_me:$LINENO: checking for working mmap" >&5 5562echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5563if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5564 echo $ECHO_N "(cached) $ECHO_C" >&6 5565else 5566 if test "$cross_compiling" = yes; then 5567 ac_cv_func_mmap_fixed_mapped=no 5568else 5569 cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575$ac_includes_default 5576/* malloc might have been renamed as rpl_malloc. */ 5577#undef malloc 5578 5579/* Thanks to Mike Haertel and Jim Avera for this test. 5580 Here is a matrix of mmap possibilities: 5581 mmap private not fixed 5582 mmap private fixed at somewhere currently unmapped 5583 mmap private fixed at somewhere already mapped 5584 mmap shared not fixed 5585 mmap shared fixed at somewhere currently unmapped 5586 mmap shared fixed at somewhere already mapped 5587 For private mappings, we should verify that changes cannot be read() 5588 back from the file, nor mmap's back from the file at a different 5589 address. (There have been systems where private was not correctly 5590 implemented like the infamous i386 svr4.0, and systems where the 5591 VM page cache was not coherent with the file system buffer cache 5592 like early versions of FreeBSD and possibly contemporary NetBSD.) 5593 For shared mappings, we should conversely verify that changes get 5594 propagated back to all the places they're supposed to be. 5595 5596 Grep wants private fixed already mapped. 5597 The main things grep needs to know about mmap are: 5598 * does it exist and is it safe to write into the mmap'd area 5599 * how to use it (BSD variants) */ 5600 5601#include <fcntl.h> 5602#include <sys/mman.h> 5603 5604#if !STDC_HEADERS && !HAVE_STDLIB_H 5605char *malloc (); 5606#endif 5607 5608/* This mess was copied from the GNU getpagesize.h. */ 5609#if !HAVE_GETPAGESIZE 5610/* Assume that all systems that can run configure have sys/param.h. */ 5611# if !HAVE_SYS_PARAM_H 5612# define HAVE_SYS_PARAM_H 1 5613# endif 5614 5615# ifdef _SC_PAGESIZE 5616# define getpagesize() sysconf(_SC_PAGESIZE) 5617# else /* no _SC_PAGESIZE */ 5618# if HAVE_SYS_PARAM_H 5619# include <sys/param.h> 5620# ifdef EXEC_PAGESIZE 5621# define getpagesize() EXEC_PAGESIZE 5622# else /* no EXEC_PAGESIZE */ 5623# ifdef NBPG 5624# define getpagesize() NBPG * CLSIZE 5625# ifndef CLSIZE 5626# define CLSIZE 1 5627# endif /* no CLSIZE */ 5628# else /* no NBPG */ 5629# ifdef NBPC 5630# define getpagesize() NBPC 5631# else /* no NBPC */ 5632# ifdef PAGESIZE 5633# define getpagesize() PAGESIZE 5634# endif /* PAGESIZE */ 5635# endif /* no NBPC */ 5636# endif /* no NBPG */ 5637# endif /* no EXEC_PAGESIZE */ 5638# else /* no HAVE_SYS_PARAM_H */ 5639# define getpagesize() 8192 /* punt totally */ 5640# endif /* no HAVE_SYS_PARAM_H */ 5641# endif /* no _SC_PAGESIZE */ 5642 5643#endif /* no HAVE_GETPAGESIZE */ 5644 5645int 5646main () 5647{ 5648 char *data, *data2, *data3; 5649 int i, pagesize; 5650 int fd; 5651 5652 pagesize = getpagesize (); 5653 5654 /* First, make a file with some known garbage in it. */ 5655 data = (char *) malloc (pagesize); 5656 if (!data) 5657 exit (1); 5658 for (i = 0; i < pagesize; ++i) 5659 *(data + i) = rand (); 5660 umask (0); 5661 fd = creat ("conftest.mmap", 0600); 5662 if (fd < 0) 5663 exit (1); 5664 if (write (fd, data, pagesize) != pagesize) 5665 exit (1); 5666 close (fd); 5667 5668 /* Next, try to mmap the file at a fixed address which already has 5669 something else allocated at it. If we can, also make sure that 5670 we see the same garbage. */ 5671 fd = open ("conftest.mmap", O_RDWR); 5672 if (fd < 0) 5673 exit (1); 5674 data2 = (char *) malloc (2 * pagesize); 5675 if (!data2) 5676 exit (1); 5677 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 5678 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5679 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5680 exit (1); 5681 for (i = 0; i < pagesize; ++i) 5682 if (*(data + i) != *(data2 + i)) 5683 exit (1); 5684 5685 /* Finally, make sure that changes to the mapped area do not 5686 percolate back to the file as seen by read(). (This is a bug on 5687 some variants of i386 svr4.0.) */ 5688 for (i = 0; i < pagesize; ++i) 5689 *(data2 + i) = *(data2 + i) + 1; 5690 data3 = (char *) malloc (pagesize); 5691 if (!data3) 5692 exit (1); 5693 if (read (fd, data3, pagesize) != pagesize) 5694 exit (1); 5695 for (i = 0; i < pagesize; ++i) 5696 if (*(data + i) != *(data3 + i)) 5697 exit (1); 5698 close (fd); 5699 exit (0); 5700} 5701_ACEOF 5702rm -f conftest$ac_exeext 5703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5704 (eval $ac_link) 2>&5 5705 ac_status=$? 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5709 (eval $ac_try) 2>&5 5710 ac_status=$? 5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); }; }; then 5713 ac_cv_func_mmap_fixed_mapped=yes 5714else 5715 echo "$as_me: program exited with status $ac_status" >&5 5716echo "$as_me: failed program was:" >&5 5717sed 's/^/| /' conftest.$ac_ext >&5 5718 5719( exit $ac_status ) 5720ac_cv_func_mmap_fixed_mapped=no 5721fi 5722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5723fi 5724fi 5725echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5726echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5727if test $ac_cv_func_mmap_fixed_mapped = yes; then 5728 5729cat >>confdefs.h <<\_ACEOF 5730#define HAVE_MMAP 1 5731_ACEOF 5732 5733fi 5734rm -f conftest.mmap 5735 5736 5737echo checking how to process .S files 5738rm -f conftest* 5739cat > conftest.S <<EOF 5740#include "confdefs.h" 5741l: 5742EOF 5743/bin/cp conftest.S conftest1.S 5744err=`eval "($CC -c -I. -I../include conftest.S >/dev/null) 2>&1"` 5745if test -z "$err" && test -f conftest.o; then 5746 S_TO_O='$(CC) $(CPPFLAGS) $(CFLAGS) -c $<' 5747else 5748 rm -f conftest.o 5749 /bin/cp conftest1.S conftest.S 5750 err=`eval "(/lib/cpp -P -I. -I../include conftest.S >conftest.s;$CC -c conftest.s) 2>&1"` 5751 if test -z "$err"; then 5752 S_TO_O='/lib/cpp $(CPPFLAGS) -P $< > $*.s; $(CC) $(CFLAGS) -c $*.s' 5753 else 5754 rm -f conftest.o 5755 err=`eval "($CC -E -P -I. -I../include conftest.S >conftest.s; $CC -c conftest.s) 2>&1"` 5756 if test -z "$err"; then 5757 S_TO_O='$(CC) $(CPPFLAGS) -E -P $< > $*.s; $(CC) $(CFLAGS) -c $*.s' 5758 else 5759 rm -f conftest.o 5760 err=`eval "($CC -E -I. -I../include conftest.S >conftest.s; $CC -c conftest.s) 2>&1"` 5761 if test -z "$err"; then 5762 S_TO_O='$(CC) $(CPPFLAGS) -E $< > $*.s; $(CC) $(CFLAGS) -c $*.s' 5763 else 5764 echo "...I have found no way to process the .S files" 5765 fi 5766 fi 5767 fi 5768fi 5769rm -f conftest* 5770test -n "$verbose" && echo " .S will be processed by $S_TO_O" 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 ac_config_files="$ac_config_files Makefile" 5781cat >confcache <<\_ACEOF 5782# This file is a shell script that caches the results of configure 5783# tests run on this system so they can be shared between configure 5784# scripts and configure runs, see configure's option --config-cache. 5785# It is not useful on other systems. If it contains results you don't 5786# want to keep, you may remove or edit it. 5787# 5788# config.status only pays attention to the cache file if you give it 5789# the --recheck option to rerun configure. 5790# 5791# `ac_cv_env_foo' variables (set or unset) will be overridden when 5792# loading this file, other *unset* `ac_cv_foo' will be assigned the 5793# following values. 5794 5795_ACEOF 5796 5797# The following way of writing the cache mishandles newlines in values, 5798# but we know of no workaround that is simple, portable, and efficient. 5799# So, don't put newlines in cache variables' values. 5800# Ultrix sh set writes to stderr and can't be redirected directly, 5801# and sets the high bit in the cache file unless we assign to the vars. 5802{ 5803 (set) 2>&1 | 5804 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5805 *ac_space=\ *) 5806 # `set' does not quote correctly, so add quotes (double-quote 5807 # substitution turns \\\\ into \\, and sed turns \\ into \). 5808 sed -n \ 5809 "s/'/'\\\\''/g; 5810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5811 ;; 5812 *) 5813 # `set' quotes correctly as required by POSIX, so do not add quotes. 5814 sed -n \ 5815 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5816 ;; 5817 esac; 5818} | 5819 sed ' 5820 t clear 5821 : clear 5822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5823 t end 5824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5825 : end' >>confcache 5826if diff $cache_file confcache >/dev/null 2>&1; then :; else 5827 if test -w $cache_file; then 5828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5829 cat confcache >$cache_file 5830 else 5831 echo "not updating unwritable cache $cache_file" 5832 fi 5833fi 5834rm -f confcache 5835 5836test "x$prefix" = xNONE && prefix=$ac_default_prefix 5837# Let make expand exec_prefix. 5838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5839 5840# VPATH may cause trouble with some makes, so we remove $(srcdir), 5841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5842# trailing colons and then remove the whole line if VPATH becomes empty 5843# (actually we leave an empty line to preserve line numbers). 5844if test "x$srcdir" = x.; then 5845 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5846s/:*\$(srcdir):*/:/; 5847s/:*\${srcdir}:*/:/; 5848s/:*@srcdir@:*/:/; 5849s/^\([^=]*=[ ]*\):*/\1/; 5850s/:*$//; 5851s/^[^=]*=[ ]*$//; 5852}' 5853fi 5854 5855DEFS=-DHAVE_CONFIG_H 5856 5857ac_libobjs= 5858ac_ltlibobjs= 5859for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5860 # 1. Remove the extension, and $U if already installed. 5861 ac_i=`echo "$ac_i" | 5862 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5863 # 2. Add them. 5864 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5865 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5866done 5867LIBOBJS=$ac_libobjs 5868 5869LTLIBOBJS=$ac_ltlibobjs 5870 5871 5872 5873: ${CONFIG_STATUS=./config.status} 5874ac_clean_files_save=$ac_clean_files 5875ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5876{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5877echo "$as_me: creating $CONFIG_STATUS" >&6;} 5878cat >$CONFIG_STATUS <<_ACEOF 5879#! $SHELL 5880# Generated by $as_me. 5881# Run this file to recreate the current configuration. 5882# Compiler output produced by configure, useful for debugging 5883# configure, is in config.log if it exists. 5884 5885debug=false 5886ac_cs_recheck=false 5887ac_cs_silent=false 5888SHELL=\${CONFIG_SHELL-$SHELL} 5889_ACEOF 5890 5891cat >>$CONFIG_STATUS <<\_ACEOF 5892## --------------------- ## 5893## M4sh Initialization. ## 5894## --------------------- ## 5895 5896# Be Bourne compatible 5897if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5898 emulate sh 5899 NULLCMD=: 5900 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5901 # is contrary to our usage. Disable this feature. 5902 alias -g '${1+"$@"}'='"$@"' 5903elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5904 set -o posix 5905fi 5906DUALCASE=1; export DUALCASE # for MKS sh 5907 5908# Support unset when possible. 5909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5910 as_unset=unset 5911else 5912 as_unset=false 5913fi 5914 5915 5916# Work around bugs in pre-3.0 UWIN ksh. 5917$as_unset ENV MAIL MAILPATH 5918PS1='$ ' 5919PS2='> ' 5920PS4='+ ' 5921 5922# NLS nuisances. 5923for as_var in \ 5924 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5925 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5926 LC_TELEPHONE LC_TIME 5927do 5928 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5929 eval $as_var=C; export $as_var 5930 else 5931 $as_unset $as_var 5932 fi 5933done 5934 5935# Required to use basename. 5936if expr a : '\(a\)' >/dev/null 2>&1; then 5937 as_expr=expr 5938else 5939 as_expr=false 5940fi 5941 5942if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5943 as_basename=basename 5944else 5945 as_basename=false 5946fi 5947 5948 5949# Name of the executable. 5950as_me=`$as_basename "$0" || 5951$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5952 X"$0" : 'X\(//\)$' \| \ 5953 X"$0" : 'X\(/\)$' \| \ 5954 . : '\(.\)' 2>/dev/null || 5955echo X/"$0" | 5956 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5957 /^X\/\(\/\/\)$/{ s//\1/; q; } 5958 /^X\/\(\/\).*/{ s//\1/; q; } 5959 s/.*/./; q'` 5960 5961 5962# PATH needs CR, and LINENO needs CR and PATH. 5963# Avoid depending upon Character Ranges. 5964as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5965as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5966as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5967as_cr_digits='0123456789' 5968as_cr_alnum=$as_cr_Letters$as_cr_digits 5969 5970# The user is always right. 5971if test "${PATH_SEPARATOR+set}" != set; then 5972 echo "#! /bin/sh" >conf$$.sh 5973 echo "exit 0" >>conf$$.sh 5974 chmod +x conf$$.sh 5975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5976 PATH_SEPARATOR=';' 5977 else 5978 PATH_SEPARATOR=: 5979 fi 5980 rm -f conf$$.sh 5981fi 5982 5983 5984 as_lineno_1=$LINENO 5985 as_lineno_2=$LINENO 5986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5987 test "x$as_lineno_1" != "x$as_lineno_2" && 5988 test "x$as_lineno_3" = "x$as_lineno_2" || { 5989 # Find who we are. Look in the path if we contain no path at all 5990 # relative or not. 5991 case $0 in 5992 *[\\/]* ) as_myself=$0 ;; 5993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994for as_dir in $PATH 5995do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5999done 6000 6001 ;; 6002 esac 6003 # We did not find ourselves, most probably we were run as `sh COMMAND' 6004 # in which case we are not to be found in the path. 6005 if test "x$as_myself" = x; then 6006 as_myself=$0 6007 fi 6008 if test ! -f "$as_myself"; then 6009 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6010echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6011 { (exit 1); exit 1; }; } 6012 fi 6013 case $CONFIG_SHELL in 6014 '') 6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6016for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6017do 6018 IFS=$as_save_IFS 6019 test -z "$as_dir" && as_dir=. 6020 for as_base in sh bash ksh sh5; do 6021 case $as_dir in 6022 /*) 6023 if ("$as_dir/$as_base" -c ' 6024 as_lineno_1=$LINENO 6025 as_lineno_2=$LINENO 6026 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6027 test "x$as_lineno_1" != "x$as_lineno_2" && 6028 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6029 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6030 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6031 CONFIG_SHELL=$as_dir/$as_base 6032 export CONFIG_SHELL 6033 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6034 fi;; 6035 esac 6036 done 6037done 6038;; 6039 esac 6040 6041 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6042 # uniformly replaced by the line number. The first 'sed' inserts a 6043 # line-number line before each line; the second 'sed' does the real 6044 # work. The second script uses 'N' to pair each line-number line 6045 # with the numbered line, and appends trailing '-' during 6046 # substitution so that $LINENO is not a special case at line end. 6047 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6048 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6049 sed '=' <$as_myself | 6050 sed ' 6051 N 6052 s,$,-, 6053 : loop 6054 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6055 t loop 6056 s,-$,, 6057 s,^['$as_cr_digits']*\n,, 6058 ' >$as_me.lineno && 6059 chmod +x $as_me.lineno || 6060 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6061echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6062 { (exit 1); exit 1; }; } 6063 6064 # Don't try to exec as it changes $[0], causing all sort of problems 6065 # (the dirname of $[0] is not the place where we might find the 6066 # original and so on. Autoconf is especially sensible to this). 6067 . ./$as_me.lineno 6068 # Exit status is that of the last command. 6069 exit 6070} 6071 6072 6073case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6074 *c*,-n*) ECHO_N= ECHO_C=' 6075' ECHO_T=' ' ;; 6076 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6077 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6078esac 6079 6080if expr a : '\(a\)' >/dev/null 2>&1; then 6081 as_expr=expr 6082else 6083 as_expr=false 6084fi 6085 6086rm -f conf$$ conf$$.exe conf$$.file 6087echo >conf$$.file 6088if ln -s conf$$.file conf$$ 2>/dev/null; then 6089 # We could just check for DJGPP; but this test a) works b) is more generic 6090 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6091 if test -f conf$$.exe; then 6092 # Don't use ln at all; we don't have any links 6093 as_ln_s='cp -p' 6094 else 6095 as_ln_s='ln -s' 6096 fi 6097elif ln conf$$.file conf$$ 2>/dev/null; then 6098 as_ln_s=ln 6099else 6100 as_ln_s='cp -p' 6101fi 6102rm -f conf$$ conf$$.exe conf$$.file 6103 6104if mkdir -p . 2>/dev/null; then 6105 as_mkdir_p=: 6106else 6107 test -d ./-p && rmdir ./-p 6108 as_mkdir_p=false 6109fi 6110 6111as_executable_p="test -f" 6112 6113# Sed expression to map a string onto a valid CPP name. 6114as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6115 6116# Sed expression to map a string onto a valid variable name. 6117as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6118 6119 6120# IFS 6121# We need space, tab and new line, in precisely that order. 6122as_nl=' 6123' 6124IFS=" $as_nl" 6125 6126# CDPATH. 6127$as_unset CDPATH 6128 6129exec 6>&1 6130 6131# Open the log real soon, to keep \$[0] and so on meaningful, and to 6132# report actual input values of CONFIG_FILES etc. instead of their 6133# values after options handling. Logging --version etc. is OK. 6134exec 5>>config.log 6135{ 6136 echo 6137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6138## Running $as_me. ## 6139_ASBOX 6140} >&5 6141cat >&5 <<_CSEOF 6142 6143This file was extended by $as_me, which was 6144generated by GNU Autoconf 2.59. Invocation command line was 6145 6146 CONFIG_FILES = $CONFIG_FILES 6147 CONFIG_HEADERS = $CONFIG_HEADERS 6148 CONFIG_LINKS = $CONFIG_LINKS 6149 CONFIG_COMMANDS = $CONFIG_COMMANDS 6150 $ $0 $@ 6151 6152_CSEOF 6153echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6154echo >&5 6155_ACEOF 6156 6157# Files that config.status was made for. 6158if test -n "$ac_config_files"; then 6159 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6160fi 6161 6162if test -n "$ac_config_headers"; then 6163 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6164fi 6165 6166if test -n "$ac_config_links"; then 6167 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6168fi 6169 6170if test -n "$ac_config_commands"; then 6171 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6172fi 6173 6174cat >>$CONFIG_STATUS <<\_ACEOF 6175 6176ac_cs_usage="\ 6177\`$as_me' instantiates files from templates according to the 6178current configuration. 6179 6180Usage: $0 [OPTIONS] [FILE]... 6181 6182 -h, --help print this help, then exit 6183 -V, --version print version number, then exit 6184 -q, --quiet do not print progress messages 6185 -d, --debug don't remove temporary files 6186 --recheck update $as_me by reconfiguring in the same conditions 6187 --file=FILE[:TEMPLATE] 6188 instantiate the configuration file FILE 6189 --header=FILE[:TEMPLATE] 6190 instantiate the configuration header FILE 6191 6192Configuration files: 6193$config_files 6194 6195Configuration headers: 6196$config_headers 6197 6198Report bugs to <bug-autoconf@gnu.org>." 6199_ACEOF 6200 6201cat >>$CONFIG_STATUS <<_ACEOF 6202ac_cs_version="\\ 6203config.status 6204configured by $0, generated by GNU Autoconf 2.59, 6205 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6206 6207Copyright (C) 2003 Free Software Foundation, Inc. 6208This config.status script is free software; the Free Software Foundation 6209gives unlimited permission to copy, distribute and modify it." 6210srcdir=$srcdir 6211_ACEOF 6212 6213cat >>$CONFIG_STATUS <<\_ACEOF 6214# If no file are specified by the user, then we need to provide default 6215# value. By we need to know if files were specified by the user. 6216ac_need_defaults=: 6217while test $# != 0 6218do 6219 case $1 in 6220 --*=*) 6221 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6222 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6223 ac_shift=: 6224 ;; 6225 -*) 6226 ac_option=$1 6227 ac_optarg=$2 6228 ac_shift=shift 6229 ;; 6230 *) # This is not an option, so the user has probably given explicit 6231 # arguments. 6232 ac_option=$1 6233 ac_need_defaults=false;; 6234 esac 6235 6236 case $ac_option in 6237 # Handling of the options. 6238_ACEOF 6239cat >>$CONFIG_STATUS <<\_ACEOF 6240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6241 ac_cs_recheck=: ;; 6242 --version | --vers* | -V ) 6243 echo "$ac_cs_version"; exit 0 ;; 6244 --he | --h) 6245 # Conflict between --help and --header 6246 { { echo "$as_me:$LINENO: error: ambiguous option: $1 6247Try \`$0 --help' for more information." >&5 6248echo "$as_me: error: ambiguous option: $1 6249Try \`$0 --help' for more information." >&2;} 6250 { (exit 1); exit 1; }; };; 6251 --help | --hel | -h ) 6252 echo "$ac_cs_usage"; exit 0 ;; 6253 --debug | --d* | -d ) 6254 debug=: ;; 6255 --file | --fil | --fi | --f ) 6256 $ac_shift 6257 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6258 ac_need_defaults=false;; 6259 --header | --heade | --head | --hea ) 6260 $ac_shift 6261 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6262 ac_need_defaults=false;; 6263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6264 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6265 ac_cs_silent=: ;; 6266 6267 # This is an error. 6268 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 6269Try \`$0 --help' for more information." >&5 6270echo "$as_me: error: unrecognized option: $1 6271Try \`$0 --help' for more information." >&2;} 6272 { (exit 1); exit 1; }; } ;; 6273 6274 *) ac_config_targets="$ac_config_targets $1" ;; 6275 6276 esac 6277 shift 6278done 6279 6280ac_configure_extra_args= 6281 6282if $ac_cs_silent; then 6283 exec 6>/dev/null 6284 ac_configure_extra_args="$ac_configure_extra_args --silent" 6285fi 6286 6287_ACEOF 6288cat >>$CONFIG_STATUS <<_ACEOF 6289if \$ac_cs_recheck; then 6290 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6291 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6292fi 6293 6294_ACEOF 6295 6296 6297 6298 6299 6300cat >>$CONFIG_STATUS <<\_ACEOF 6301for ac_config_target in $ac_config_targets 6302do 6303 case "$ac_config_target" in 6304 # Handling of arguments. 6305 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6306 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6307 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6308echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6309 { (exit 1); exit 1; }; };; 6310 esac 6311done 6312 6313# If the user did not use the arguments to specify the items to instantiate, 6314# then the envvar interface is used. Set only those that are not. 6315# We use the long form for the default assignment because of an extremely 6316# bizarre bug on SunOS 4.1.3. 6317if $ac_need_defaults; then 6318 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6319 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6320fi 6321 6322# Have a temporary directory for convenience. Make it in the build tree 6323# simply because there is no reason to put it here, and in addition, 6324# creating and moving files from /tmp can sometimes cause problems. 6325# Create a temporary directory, and hook for its removal unless debugging. 6326$debug || 6327{ 6328 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 6329 trap '{ (exit 1); exit 1; }' 1 2 13 15 6330} 6331 6332# Create a (secure) tmp directory for tmp files. 6333 6334{ 6335 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 6336 test -n "$tmp" && test -d "$tmp" 6337} || 6338{ 6339 tmp=./confstat$$-$RANDOM 6340 (umask 077 && mkdir $tmp) 6341} || 6342{ 6343 echo "$me: cannot create a temporary directory in ." >&2 6344 { (exit 1); exit 1; } 6345} 6346 6347_ACEOF 6348 6349cat >>$CONFIG_STATUS <<_ACEOF 6350 6351# 6352# CONFIG_FILES section. 6353# 6354 6355# No need to generate the scripts if there are no CONFIG_FILES. 6356# This happens for instance when ./config.status config.h 6357if test -n "\$CONFIG_FILES"; then 6358 # Protect against being on the right side of a sed subst in config.status. 6359 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 6360 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 6361s,@SHELL@,$SHELL,;t t 6362s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6363s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6364s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6365s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6366s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6367s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6368s,@exec_prefix@,$exec_prefix,;t t 6369s,@prefix@,$prefix,;t t 6370s,@program_transform_name@,$program_transform_name,;t t 6371s,@bindir@,$bindir,;t t 6372s,@sbindir@,$sbindir,;t t 6373s,@libexecdir@,$libexecdir,;t t 6374s,@datadir@,$datadir,;t t 6375s,@sysconfdir@,$sysconfdir,;t t 6376s,@sharedstatedir@,$sharedstatedir,;t t 6377s,@localstatedir@,$localstatedir,;t t 6378s,@libdir@,$libdir,;t t 6379s,@includedir@,$includedir,;t t 6380s,@oldincludedir@,$oldincludedir,;t t 6381s,@infodir@,$infodir,;t t 6382s,@mandir@,$mandir,;t t 6383s,@build_alias@,$build_alias,;t t 6384s,@host_alias@,$host_alias,;t t 6385s,@target_alias@,$target_alias,;t t 6386s,@DEFS@,$DEFS,;t t 6387s,@ECHO_C@,$ECHO_C,;t t 6388s,@ECHO_N@,$ECHO_N,;t t 6389s,@ECHO_T@,$ECHO_T,;t t 6390s,@LIBS@,$LIBS,;t t 6391s,@CC@,$CC,;t t 6392s,@CFLAGS@,$CFLAGS,;t t 6393s,@LDFLAGS@,$LDFLAGS,;t t 6394s,@CPPFLAGS@,$CPPFLAGS,;t t 6395s,@ac_ct_CC@,$ac_ct_CC,;t t 6396s,@EXEEXT@,$EXEEXT,;t t 6397s,@OBJEXT@,$OBJEXT,;t t 6398s,@RANLIB@,$RANLIB,;t t 6399s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 6400s,@CPP@,$CPP,;t t 6401s,@EGREP@,$EGREP,;t t 6402s,@LIB@,$LIB,;t t 6403s,@ARCH@,$ARCH,;t t 6404s,@LOCK@,$LOCK,;t t 6405s,@S_TO_O@,$S_TO_O,;t t 6406s,@LIBOBJS@,$LIBOBJS,;t t 6407s,@LTLIBOBJS@,$LTLIBOBJS,;t t 6408CEOF 6409 6410_ACEOF 6411 6412 cat >>$CONFIG_STATUS <<\_ACEOF 6413 # Split the substitutions into bite-sized pieces for seds with 6414 # small command number limits, like on Digital OSF/1 and HP-UX. 6415 ac_max_sed_lines=48 6416 ac_sed_frag=1 # Number of current file. 6417 ac_beg=1 # First line for current file. 6418 ac_end=$ac_max_sed_lines # Line after last line for current file. 6419 ac_more_lines=: 6420 ac_sed_cmds= 6421 while $ac_more_lines; do 6422 if test $ac_beg -gt 1; then 6423 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6424 else 6425 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6426 fi 6427 if test ! -s $tmp/subs.frag; then 6428 ac_more_lines=false 6429 else 6430 # The purpose of the label and of the branching condition is to 6431 # speed up the sed processing (if there are no `@' at all, there 6432 # is no need to browse any of the substitutions). 6433 # These are the two extra sed commands mentioned above. 6434 (echo ':t 6435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 6436 if test -z "$ac_sed_cmds"; then 6437 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 6438 else 6439 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 6440 fi 6441 ac_sed_frag=`expr $ac_sed_frag + 1` 6442 ac_beg=$ac_end 6443 ac_end=`expr $ac_end + $ac_max_sed_lines` 6444 fi 6445 done 6446 if test -z "$ac_sed_cmds"; then 6447 ac_sed_cmds=cat 6448 fi 6449fi # test -n "$CONFIG_FILES" 6450 6451_ACEOF 6452cat >>$CONFIG_STATUS <<\_ACEOF 6453for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 6454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6455 case $ac_file in 6456 - | *:- | *:-:* ) # input from stdin 6457 cat >$tmp/stdin 6458 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6459 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6460 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6462 * ) ac_file_in=$ac_file.in ;; 6463 esac 6464 6465 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 6466 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6467$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6468 X"$ac_file" : 'X\(//\)[^/]' \| \ 6469 X"$ac_file" : 'X\(//\)$' \| \ 6470 X"$ac_file" : 'X\(/\)' \| \ 6471 . : '\(.\)' 2>/dev/null || 6472echo X"$ac_file" | 6473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6474 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6475 /^X\(\/\/\)$/{ s//\1/; q; } 6476 /^X\(\/\).*/{ s//\1/; q; } 6477 s/.*/./; q'` 6478 { if $as_mkdir_p; then 6479 mkdir -p "$ac_dir" 6480 else 6481 as_dir="$ac_dir" 6482 as_dirs= 6483 while test ! -d "$as_dir"; do 6484 as_dirs="$as_dir $as_dirs" 6485 as_dir=`(dirname "$as_dir") 2>/dev/null || 6486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6487 X"$as_dir" : 'X\(//\)[^/]' \| \ 6488 X"$as_dir" : 'X\(//\)$' \| \ 6489 X"$as_dir" : 'X\(/\)' \| \ 6490 . : '\(.\)' 2>/dev/null || 6491echo X"$as_dir" | 6492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6493 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6494 /^X\(\/\/\)$/{ s//\1/; q; } 6495 /^X\(\/\).*/{ s//\1/; q; } 6496 s/.*/./; q'` 6497 done 6498 test ! -n "$as_dirs" || mkdir $as_dirs 6499 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6500echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6501 { (exit 1); exit 1; }; }; } 6502 6503 ac_builddir=. 6504 6505if test "$ac_dir" != .; then 6506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6507 # A "../" for each directory in $ac_dir_suffix. 6508 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6509else 6510 ac_dir_suffix= ac_top_builddir= 6511fi 6512 6513case $srcdir in 6514 .) # No --srcdir option. We are building in place. 6515 ac_srcdir=. 6516 if test -z "$ac_top_builddir"; then 6517 ac_top_srcdir=. 6518 else 6519 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6520 fi ;; 6521 [\\/]* | ?:[\\/]* ) # Absolute path. 6522 ac_srcdir=$srcdir$ac_dir_suffix; 6523 ac_top_srcdir=$srcdir ;; 6524 *) # Relative path. 6525 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6526 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6527esac 6528 6529# Do not use `cd foo && pwd` to compute absolute paths, because 6530# the directories may not exist. 6531case `pwd` in 6532.) ac_abs_builddir="$ac_dir";; 6533*) 6534 case "$ac_dir" in 6535 .) ac_abs_builddir=`pwd`;; 6536 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6537 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6538 esac;; 6539esac 6540case $ac_abs_builddir in 6541.) ac_abs_top_builddir=${ac_top_builddir}.;; 6542*) 6543 case ${ac_top_builddir}. in 6544 .) ac_abs_top_builddir=$ac_abs_builddir;; 6545 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6546 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6547 esac;; 6548esac 6549case $ac_abs_builddir in 6550.) ac_abs_srcdir=$ac_srcdir;; 6551*) 6552 case $ac_srcdir in 6553 .) ac_abs_srcdir=$ac_abs_builddir;; 6554 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6555 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6556 esac;; 6557esac 6558case $ac_abs_builddir in 6559.) ac_abs_top_srcdir=$ac_top_srcdir;; 6560*) 6561 case $ac_top_srcdir in 6562 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6563 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6564 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6565 esac;; 6566esac 6567 6568 6569 6570 if test x"$ac_file" != x-; then 6571 { echo "$as_me:$LINENO: creating $ac_file" >&5 6572echo "$as_me: creating $ac_file" >&6;} 6573 rm -f "$ac_file" 6574 fi 6575 # Let's still pretend it is `configure' which instantiates (i.e., don't 6576 # use $as_me), people would be surprised to read: 6577 # /* config.h. Generated by config.status. */ 6578 if test x"$ac_file" = x-; then 6579 configure_input= 6580 else 6581 configure_input="$ac_file. " 6582 fi 6583 configure_input=$configure_input"Generated from `echo $ac_file_in | 6584 sed 's,.*/,,'` by configure." 6585 6586 # First look for the input files in the build tree, otherwise in the 6587 # src tree. 6588 ac_file_inputs=`IFS=: 6589 for f in $ac_file_in; do 6590 case $f in 6591 -) echo $tmp/stdin ;; 6592 [\\/$]*) 6593 # Absolute (can't be DOS-style, as IFS=:) 6594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6595echo "$as_me: error: cannot find input file: $f" >&2;} 6596 { (exit 1); exit 1; }; } 6597 echo "$f";; 6598 *) # Relative 6599 if test -f "$f"; then 6600 # Build tree 6601 echo "$f" 6602 elif test -f "$srcdir/$f"; then 6603 # Source tree 6604 echo "$srcdir/$f" 6605 else 6606 # /dev/null tree 6607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6608echo "$as_me: error: cannot find input file: $f" >&2;} 6609 { (exit 1); exit 1; }; } 6610 fi;; 6611 esac 6612 done` || { (exit 1); exit 1; } 6613_ACEOF 6614cat >>$CONFIG_STATUS <<_ACEOF 6615 sed "$ac_vpsub 6616$extrasub 6617_ACEOF 6618cat >>$CONFIG_STATUS <<\_ACEOF 6619:t 6620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6621s,@configure_input@,$configure_input,;t t 6622s,@srcdir@,$ac_srcdir,;t t 6623s,@abs_srcdir@,$ac_abs_srcdir,;t t 6624s,@top_srcdir@,$ac_top_srcdir,;t t 6625s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6626s,@builddir@,$ac_builddir,;t t 6627s,@abs_builddir@,$ac_abs_builddir,;t t 6628s,@top_builddir@,$ac_top_builddir,;t t 6629s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6630" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6631 rm -f $tmp/stdin 6632 if test x"$ac_file" != x-; then 6633 mv $tmp/out $ac_file 6634 else 6635 cat $tmp/out 6636 rm -f $tmp/out 6637 fi 6638 6639done 6640_ACEOF 6641cat >>$CONFIG_STATUS <<\_ACEOF 6642 6643# 6644# CONFIG_HEADER section. 6645# 6646 6647# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6648# NAME is the cpp macro being defined and VALUE is the value it is being given. 6649# 6650# ac_d sets the value in "#define NAME VALUE" lines. 6651ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6652ac_dB='[ ].*$,\1#\2' 6653ac_dC=' ' 6654ac_dD=',;t' 6655# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6656ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6657ac_uB='$,\1#\2define\3' 6658ac_uC=' ' 6659ac_uD=',;t' 6660 6661for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6663 case $ac_file in 6664 - | *:- | *:-:* ) # input from stdin 6665 cat >$tmp/stdin 6666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6670 * ) ac_file_in=$ac_file.in ;; 6671 esac 6672 6673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6674echo "$as_me: creating $ac_file" >&6;} 6675 6676 # First look for the input files in the build tree, otherwise in the 6677 # src tree. 6678 ac_file_inputs=`IFS=: 6679 for f in $ac_file_in; do 6680 case $f in 6681 -) echo $tmp/stdin ;; 6682 [\\/$]*) 6683 # Absolute (can't be DOS-style, as IFS=:) 6684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6685echo "$as_me: error: cannot find input file: $f" >&2;} 6686 { (exit 1); exit 1; }; } 6687 # Do quote $f, to prevent DOS paths from being IFS'd. 6688 echo "$f";; 6689 *) # Relative 6690 if test -f "$f"; then 6691 # Build tree 6692 echo "$f" 6693 elif test -f "$srcdir/$f"; then 6694 # Source tree 6695 echo "$srcdir/$f" 6696 else 6697 # /dev/null tree 6698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6699echo "$as_me: error: cannot find input file: $f" >&2;} 6700 { (exit 1); exit 1; }; } 6701 fi;; 6702 esac 6703 done` || { (exit 1); exit 1; } 6704 # Remove the trailing spaces. 6705 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6706 6707_ACEOF 6708 6709# Transform confdefs.h into two sed scripts, `conftest.defines' and 6710# `conftest.undefs', that substitutes the proper values into 6711# config.h.in to produce config.h. The first handles `#define' 6712# templates, and the second `#undef' templates. 6713# And first: Protect against being on the right side of a sed subst in 6714# config.status. Protect against being in an unquoted here document 6715# in config.status. 6716rm -f conftest.defines conftest.undefs 6717# Using a here document instead of a string reduces the quoting nightmare. 6718# Putting comments in sed scripts is not portable. 6719# 6720# `end' is used to avoid that the second main sed command (meant for 6721# 0-ary CPP macros) applies to n-ary macro definitions. 6722# See the Autoconf documentation for `clear'. 6723cat >confdef2sed.sed <<\_ACEOF 6724s/[\\&,]/\\&/g 6725s,[\\$`],\\&,g 6726t clear 6727: clear 6728s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6729t end 6730s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6731: end 6732_ACEOF 6733# If some macros were called several times there might be several times 6734# the same #defines, which is useless. Nevertheless, we may not want to 6735# sort them, since we want the *last* AC-DEFINE to be honored. 6736uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6737sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6738rm -f confdef2sed.sed 6739 6740# This sed command replaces #undef with comments. This is necessary, for 6741# example, in the case of _POSIX_SOURCE, which is predefined and required 6742# on some systems where configure will not decide to define it. 6743cat >>conftest.undefs <<\_ACEOF 6744s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6745_ACEOF 6746 6747# Break up conftest.defines because some shells have a limit on the size 6748# of here documents, and old seds have small limits too (100 cmds). 6749echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6750echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6751echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6752echo ' :' >>$CONFIG_STATUS 6753rm -f conftest.tail 6754while grep . conftest.defines >/dev/null 6755do 6756 # Write a limited-size here document to $tmp/defines.sed. 6757 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6758 # Speed up: don't consider the non `#define' lines. 6759 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6760 # Work around the forget-to-reset-the-flag bug. 6761 echo 't clr' >>$CONFIG_STATUS 6762 echo ': clr' >>$CONFIG_STATUS 6763 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6764 echo 'CEOF 6765 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6766 rm -f $tmp/in 6767 mv $tmp/out $tmp/in 6768' >>$CONFIG_STATUS 6769 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6770 rm -f conftest.defines 6771 mv conftest.tail conftest.defines 6772done 6773rm -f conftest.defines 6774echo ' fi # grep' >>$CONFIG_STATUS 6775echo >>$CONFIG_STATUS 6776 6777# Break up conftest.undefs because some shells have a limit on the size 6778# of here documents, and old seds have small limits too (100 cmds). 6779echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6780rm -f conftest.tail 6781while grep . conftest.undefs >/dev/null 6782do 6783 # Write a limited-size here document to $tmp/undefs.sed. 6784 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6785 # Speed up: don't consider the non `#undef' 6786 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6787 # Work around the forget-to-reset-the-flag bug. 6788 echo 't clr' >>$CONFIG_STATUS 6789 echo ': clr' >>$CONFIG_STATUS 6790 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6791 echo 'CEOF 6792 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6793 rm -f $tmp/in 6794 mv $tmp/out $tmp/in 6795' >>$CONFIG_STATUS 6796 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6797 rm -f conftest.undefs 6798 mv conftest.tail conftest.undefs 6799done 6800rm -f conftest.undefs 6801 6802cat >>$CONFIG_STATUS <<\_ACEOF 6803 # Let's still pretend it is `configure' which instantiates (i.e., don't 6804 # use $as_me), people would be surprised to read: 6805 # /* config.h. Generated by config.status. */ 6806 if test x"$ac_file" = x-; then 6807 echo "/* Generated by configure. */" >$tmp/config.h 6808 else 6809 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6810 fi 6811 cat $tmp/in >>$tmp/config.h 6812 rm -f $tmp/in 6813 if test x"$ac_file" != x-; then 6814 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6815 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6816echo "$as_me: $ac_file is unchanged" >&6;} 6817 else 6818 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6820 X"$ac_file" : 'X\(//\)[^/]' \| \ 6821 X"$ac_file" : 'X\(//\)$' \| \ 6822 X"$ac_file" : 'X\(/\)' \| \ 6823 . : '\(.\)' 2>/dev/null || 6824echo X"$ac_file" | 6825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6826 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6827 /^X\(\/\/\)$/{ s//\1/; q; } 6828 /^X\(\/\).*/{ s//\1/; q; } 6829 s/.*/./; q'` 6830 { if $as_mkdir_p; then 6831 mkdir -p "$ac_dir" 6832 else 6833 as_dir="$ac_dir" 6834 as_dirs= 6835 while test ! -d "$as_dir"; do 6836 as_dirs="$as_dir $as_dirs" 6837 as_dir=`(dirname "$as_dir") 2>/dev/null || 6838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6839 X"$as_dir" : 'X\(//\)[^/]' \| \ 6840 X"$as_dir" : 'X\(//\)$' \| \ 6841 X"$as_dir" : 'X\(/\)' \| \ 6842 . : '\(.\)' 2>/dev/null || 6843echo X"$as_dir" | 6844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6845 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6846 /^X\(\/\/\)$/{ s//\1/; q; } 6847 /^X\(\/\).*/{ s//\1/; q; } 6848 s/.*/./; q'` 6849 done 6850 test ! -n "$as_dirs" || mkdir $as_dirs 6851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6853 { (exit 1); exit 1; }; }; } 6854 6855 rm -f $ac_file 6856 mv $tmp/config.h $ac_file 6857 fi 6858 else 6859 cat $tmp/config.h 6860 rm -f $tmp/config.h 6861 fi 6862done 6863_ACEOF 6864 6865cat >>$CONFIG_STATUS <<\_ACEOF 6866 6867{ (exit 0); exit 0; } 6868_ACEOF 6869chmod +x $CONFIG_STATUS 6870ac_clean_files=$ac_clean_files_save 6871 6872 6873# configure is writing to config.log, and then calls config.status. 6874# config.status does its own redirection, appending to config.log. 6875# Unfortunately, on DOS this fails, as config.log is still kept open 6876# by configure, so config.status won't be able to write to it; its 6877# output is simply discarded. So we exec the FD to /dev/null, 6878# effectively closing config.log, so it can be properly (re)opened and 6879# appended to by config.status. When coming back to configure, we 6880# need to make the FD available again. 6881if test "$no_create" != yes; then 6882 ac_cs_success=: 6883 ac_config_status_args= 6884 test "$silent" = yes && 6885 ac_config_status_args="$ac_config_status_args --quiet" 6886 exec 5>/dev/null 6887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6888 exec 5>>config.log 6889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6890 # would make configure fail if this is the last instruction. 6891 $ac_cs_success || { (exit 1); exit 1; } 6892fi 6893 6894