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="hashtbl.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 RM AR SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS EXTRA_DEFS STRIP 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 840Optional Features: 841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 843 --disable-largefile omit support for large files 844 --enable-debug compile with runtime diagnostics enabled 845 846Optional Packages: 847 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 848 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 849 --with-install=INSTALL manually specify a BSD-compatable install program 850 --with-leakfind=DIR compile with Boehm gc runtime memory-leak debugging (for developers) 851 852Some influential environment variables: 853 CC C compiler command 854 CFLAGS C compiler flags 855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 856 nonstandard directory <lib dir> 857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 858 headers in a nonstandard directory <include dir> 859 CPP C preprocessor 860 861Use these variables to override the choices made by `configure' or to help 862it to find libraries and programs with nonstandard names/locations. 863 864_ACEOF 865fi 866 867if test "$ac_init_help" = "recursive"; then 868 # If there are subdirs, report their specific --help. 869 ac_popdir=`pwd` 870 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 871 test -d $ac_dir || continue 872 ac_builddir=. 873 874if test "$ac_dir" != .; then 875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 876 # A "../" for each directory in $ac_dir_suffix. 877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 878else 879 ac_dir_suffix= ac_top_builddir= 880fi 881 882case $srcdir in 883 .) # No --srcdir option. We are building in place. 884 ac_srcdir=. 885 if test -z "$ac_top_builddir"; then 886 ac_top_srcdir=. 887 else 888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 889 fi ;; 890 [\\/]* | ?:[\\/]* ) # Absolute path. 891 ac_srcdir=$srcdir$ac_dir_suffix; 892 ac_top_srcdir=$srcdir ;; 893 *) # Relative path. 894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 895 ac_top_srcdir=$ac_top_builddir$srcdir ;; 896esac 897 898# Do not use `cd foo && pwd` to compute absolute paths, because 899# the directories may not exist. 900case `pwd` in 901.) ac_abs_builddir="$ac_dir";; 902*) 903 case "$ac_dir" in 904 .) ac_abs_builddir=`pwd`;; 905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 906 *) ac_abs_builddir=`pwd`/"$ac_dir";; 907 esac;; 908esac 909case $ac_abs_builddir in 910.) ac_abs_top_builddir=${ac_top_builddir}.;; 911*) 912 case ${ac_top_builddir}. in 913 .) ac_abs_top_builddir=$ac_abs_builddir;; 914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 916 esac;; 917esac 918case $ac_abs_builddir in 919.) ac_abs_srcdir=$ac_srcdir;; 920*) 921 case $ac_srcdir in 922 .) ac_abs_srcdir=$ac_abs_builddir;; 923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 925 esac;; 926esac 927case $ac_abs_builddir in 928.) ac_abs_top_srcdir=$ac_top_srcdir;; 929*) 930 case $ac_top_srcdir in 931 .) ac_abs_top_srcdir=$ac_abs_builddir;; 932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 934 esac;; 935esac 936 937 cd $ac_dir 938 # Check for guested configure; otherwise get Cygnus style configure. 939 if test -f $ac_srcdir/configure.gnu; then 940 echo 941 $SHELL $ac_srcdir/configure.gnu --help=recursive 942 elif test -f $ac_srcdir/configure; then 943 echo 944 $SHELL $ac_srcdir/configure --help=recursive 945 elif test -f $ac_srcdir/configure.ac || 946 test -f $ac_srcdir/configure.in; then 947 echo 948 $ac_configure --help 949 else 950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 951 fi 952 cd $ac_popdir 953 done 954fi 955 956test -n "$ac_init_help" && exit 0 957if $ac_init_version; then 958 cat <<\_ACEOF 959 960Copyright (C) 2003 Free Software Foundation, Inc. 961This configure script is free software; the Free Software Foundation 962gives unlimited permission to copy, distribute and modify it. 963_ACEOF 964 exit 0 965fi 966exec 5>config.log 967cat >&5 <<_ACEOF 968This file contains any messages produced by compilers while 969running configure, to aid debugging if configure makes a mistake. 970 971It was created by $as_me, which was 972generated by GNU Autoconf 2.59. Invocation command line was 973 974 $ $0 $@ 975 976_ACEOF 977{ 978cat <<_ASUNAME 979## --------- ## 980## Platform. ## 981## --------- ## 982 983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 984uname -m = `(uname -m) 2>/dev/null || echo unknown` 985uname -r = `(uname -r) 2>/dev/null || echo unknown` 986uname -s = `(uname -s) 2>/dev/null || echo unknown` 987uname -v = `(uname -v) 2>/dev/null || echo unknown` 988 989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 990/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 991 992/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 993/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 995hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 996/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 997/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 998/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 999 1000_ASUNAME 1001 1002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1003for as_dir in $PATH 1004do 1005 IFS=$as_save_IFS 1006 test -z "$as_dir" && as_dir=. 1007 echo "PATH: $as_dir" 1008done 1009 1010} >&5 1011 1012cat >&5 <<_ACEOF 1013 1014 1015## ----------- ## 1016## Core tests. ## 1017## ----------- ## 1018 1019_ACEOF 1020 1021 1022# Keep a trace of the command line. 1023# Strip out --no-create and --no-recursion so they do not pile up. 1024# Strip out --silent because we don't want to record it for future runs. 1025# Also quote any args containing shell meta-characters. 1026# Make two passes to allow for proper duplicate-argument suppression. 1027ac_configure_args= 1028ac_configure_args0= 1029ac_configure_args1= 1030ac_sep= 1031ac_must_keep_next=false 1032for ac_pass in 1 2 1033do 1034 for ac_arg 1035 do 1036 case $ac_arg in 1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1039 | -silent | --silent | --silen | --sile | --sil) 1040 continue ;; 1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1043 esac 1044 case $ac_pass in 1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1046 2) 1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1048 if test $ac_must_keep_next = true; then 1049 ac_must_keep_next=false # Got value, back to normal. 1050 else 1051 case $ac_arg in 1052 *=* | --config-cache | -C | -disable-* | --disable-* \ 1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1055 | -with-* | --with-* | -without-* | --without-* | --x) 1056 case "$ac_configure_args0 " in 1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1058 esac 1059 ;; 1060 -* ) ac_must_keep_next=true ;; 1061 esac 1062 fi 1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1064 # Get rid of the leading space. 1065 ac_sep=" " 1066 ;; 1067 esac 1068 done 1069done 1070$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1071$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1072 1073# When interrupted or exit'd, cleanup temporary files, and complete 1074# config.log. We remove comments because anyway the quotes in there 1075# would cause problems or look ugly. 1076# WARNING: Be sure not to use single quotes in there, as some shells, 1077# such as our DU 5.0 friend, will then `close' the trap. 1078trap 'exit_status=$? 1079 # Save into config.log some information that might help in debugging. 1080 { 1081 echo 1082 1083 cat <<\_ASBOX 1084## ---------------- ## 1085## Cache variables. ## 1086## ---------------- ## 1087_ASBOX 1088 echo 1089 # The following way of writing the cache mishandles newlines in values, 1090{ 1091 (set) 2>&1 | 1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1093 *ac_space=\ *) 1094 sed -n \ 1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1097 ;; 1098 *) 1099 sed -n \ 1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1101 ;; 1102 esac; 1103} 1104 echo 1105 1106 cat <<\_ASBOX 1107## ----------------- ## 1108## Output variables. ## 1109## ----------------- ## 1110_ASBOX 1111 echo 1112 for ac_var in $ac_subst_vars 1113 do 1114 eval ac_val=$`echo $ac_var` 1115 echo "$ac_var='"'"'$ac_val'"'"'" 1116 done | sort 1117 echo 1118 1119 if test -n "$ac_subst_files"; then 1120 cat <<\_ASBOX 1121## ------------- ## 1122## Output files. ## 1123## ------------- ## 1124_ASBOX 1125 echo 1126 for ac_var in $ac_subst_files 1127 do 1128 eval ac_val=$`echo $ac_var` 1129 echo "$ac_var='"'"'$ac_val'"'"'" 1130 done | sort 1131 echo 1132 fi 1133 1134 if test -s confdefs.h; then 1135 cat <<\_ASBOX 1136## ----------- ## 1137## confdefs.h. ## 1138## ----------- ## 1139_ASBOX 1140 echo 1141 sed "/^$/d" confdefs.h | sort 1142 echo 1143 fi 1144 test "$ac_signal" != 0 && 1145 echo "$as_me: caught signal $ac_signal" 1146 echo "$as_me: exit $exit_status" 1147 } >&5 1148 rm -f core *.core && 1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1150 exit $exit_status 1151 ' 0 1152for ac_signal in 1 2 13 15; do 1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1154done 1155ac_signal=0 1156 1157# confdefs.h avoids OS command line length limits that DEFS can exceed. 1158rm -rf conftest* confdefs.h 1159# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1160echo >confdefs.h 1161 1162# Predefined preprocessor variables. 1163 1164cat >>confdefs.h <<_ACEOF 1165#define PACKAGE_NAME "$PACKAGE_NAME" 1166_ACEOF 1167 1168 1169cat >>confdefs.h <<_ACEOF 1170#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1171_ACEOF 1172 1173 1174cat >>confdefs.h <<_ACEOF 1175#define PACKAGE_VERSION "$PACKAGE_VERSION" 1176_ACEOF 1177 1178 1179cat >>confdefs.h <<_ACEOF 1180#define PACKAGE_STRING "$PACKAGE_STRING" 1181_ACEOF 1182 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1186_ACEOF 1187 1188 1189# Let the site file select an alternate cache file if it wants to. 1190# Prefer explicitly selected file to automatically selected ones. 1191if test -z "$CONFIG_SITE"; then 1192 if test "x$prefix" != xNONE; then 1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1194 else 1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1196 fi 1197fi 1198for ac_site_file in $CONFIG_SITE; do 1199 if test -r "$ac_site_file"; then 1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1201echo "$as_me: loading site script $ac_site_file" >&6;} 1202 sed 's/^/| /' "$ac_site_file" >&5 1203 . "$ac_site_file" 1204 fi 1205done 1206 1207if test -r "$cache_file"; then 1208 # Some versions of bash will fail to source /dev/null (special 1209 # files actually), so we avoid doing that. 1210 if test -f "$cache_file"; then 1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1212echo "$as_me: loading cache $cache_file" >&6;} 1213 case $cache_file in 1214 [\\/]* | ?:[\\/]* ) . $cache_file;; 1215 *) . ./$cache_file;; 1216 esac 1217 fi 1218else 1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1220echo "$as_me: creating cache $cache_file" >&6;} 1221 >$cache_file 1222fi 1223 1224# Check that the precious variables saved in the cache have kept the same 1225# value. 1226ac_cache_corrupted=false 1227for ac_var in `(set) 2>&1 | 1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1230 eval ac_new_set=\$ac_env_${ac_var}_set 1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1232 eval ac_new_val="\$ac_env_${ac_var}_value" 1233 case $ac_old_set,$ac_new_set in 1234 set,) 1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1236echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1237 ac_cache_corrupted=: ;; 1238 ,set) 1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1240echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1241 ac_cache_corrupted=: ;; 1242 ,);; 1243 *) 1244 if test "x$ac_old_val" != "x$ac_new_val"; then 1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1246echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1248echo "$as_me: former value: $ac_old_val" >&2;} 1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1250echo "$as_me: current value: $ac_new_val" >&2;} 1251 ac_cache_corrupted=: 1252 fi;; 1253 esac 1254 # Pass precious variables to config.status. 1255 if test "$ac_new_set" = set; then 1256 case $ac_new_val in 1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1259 *) ac_arg=$ac_var=$ac_new_val ;; 1260 esac 1261 case " $ac_configure_args " in 1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1264 esac 1265 fi 1266done 1267if $ac_cache_corrupted; then 1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1269echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1271echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1272 { (exit 1); exit 1; }; } 1273fi 1274 1275ac_ext=c 1276ac_cpp='$CPP $CPPFLAGS' 1277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1279ac_compiler_gnu=$ac_cv_c_compiler_gnu 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 ac_config_headers="$ac_config_headers config.h" 1300 1301 1302 1303# ----- you can override these values by setting environment variables 1304# CC=my-compiler ./configure 1305CC=${CC:-"gcc"} 1306# CFLAGS="-g foo -x bar" ./configure 1307CFLAGS=${CFLAGS:-"-g -Wall -O2"} 1308STATIC=${STATIC:-"-static"} 1309 1310ac_ext=c 1311ac_cpp='$CPP $CPPFLAGS' 1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1314ac_compiler_gnu=$ac_cv_c_compiler_gnu 1315if test -n "$ac_tool_prefix"; then 1316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1317set dummy ${ac_tool_prefix}gcc; ac_word=$2 1318echo "$as_me:$LINENO: checking for $ac_word" >&5 1319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1320if test "${ac_cv_prog_CC+set}" = set; then 1321 echo $ECHO_N "(cached) $ECHO_C" >&6 1322else 1323 if test -n "$CC"; then 1324 ac_cv_prog_CC="$CC" # Let the user override the test. 1325else 1326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1327for as_dir in $PATH 1328do 1329 IFS=$as_save_IFS 1330 test -z "$as_dir" && as_dir=. 1331 for ac_exec_ext in '' $ac_executable_extensions; do 1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1333 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1335 break 2 1336 fi 1337done 1338done 1339 1340fi 1341fi 1342CC=$ac_cv_prog_CC 1343if test -n "$CC"; then 1344 echo "$as_me:$LINENO: result: $CC" >&5 1345echo "${ECHO_T}$CC" >&6 1346else 1347 echo "$as_me:$LINENO: result: no" >&5 1348echo "${ECHO_T}no" >&6 1349fi 1350 1351fi 1352if test -z "$ac_cv_prog_CC"; then 1353 ac_ct_CC=$CC 1354 # Extract the first word of "gcc", so it can be a program name with args. 1355set dummy gcc; ac_word=$2 1356echo "$as_me:$LINENO: checking for $ac_word" >&5 1357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1359 echo $ECHO_N "(cached) $ECHO_C" >&6 1360else 1361 if test -n "$ac_ct_CC"; then 1362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1363else 1364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1365for as_dir in $PATH 1366do 1367 IFS=$as_save_IFS 1368 test -z "$as_dir" && as_dir=. 1369 for ac_exec_ext in '' $ac_executable_extensions; do 1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1371 ac_cv_prog_ac_ct_CC="gcc" 1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1373 break 2 1374 fi 1375done 1376done 1377 1378fi 1379fi 1380ac_ct_CC=$ac_cv_prog_ac_ct_CC 1381if test -n "$ac_ct_CC"; then 1382 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1383echo "${ECHO_T}$ac_ct_CC" >&6 1384else 1385 echo "$as_me:$LINENO: result: no" >&5 1386echo "${ECHO_T}no" >&6 1387fi 1388 1389 CC=$ac_ct_CC 1390else 1391 CC="$ac_cv_prog_CC" 1392fi 1393 1394if test -z "$CC"; then 1395 if test -n "$ac_tool_prefix"; then 1396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1397set dummy ${ac_tool_prefix}cc; ac_word=$2 1398echo "$as_me:$LINENO: checking for $ac_word" >&5 1399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1400if test "${ac_cv_prog_CC+set}" = set; then 1401 echo $ECHO_N "(cached) $ECHO_C" >&6 1402else 1403 if test -n "$CC"; then 1404 ac_cv_prog_CC="$CC" # Let the user override the test. 1405else 1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1407for as_dir in $PATH 1408do 1409 IFS=$as_save_IFS 1410 test -z "$as_dir" && as_dir=. 1411 for ac_exec_ext in '' $ac_executable_extensions; do 1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1413 ac_cv_prog_CC="${ac_tool_prefix}cc" 1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1415 break 2 1416 fi 1417done 1418done 1419 1420fi 1421fi 1422CC=$ac_cv_prog_CC 1423if test -n "$CC"; then 1424 echo "$as_me:$LINENO: result: $CC" >&5 1425echo "${ECHO_T}$CC" >&6 1426else 1427 echo "$as_me:$LINENO: result: no" >&5 1428echo "${ECHO_T}no" >&6 1429fi 1430 1431fi 1432if test -z "$ac_cv_prog_CC"; then 1433 ac_ct_CC=$CC 1434 # Extract the first word of "cc", so it can be a program name with args. 1435set dummy cc; ac_word=$2 1436echo "$as_me:$LINENO: checking for $ac_word" >&5 1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1439 echo $ECHO_N "(cached) $ECHO_C" >&6 1440else 1441 if test -n "$ac_ct_CC"; then 1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1443else 1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1445for as_dir in $PATH 1446do 1447 IFS=$as_save_IFS 1448 test -z "$as_dir" && as_dir=. 1449 for ac_exec_ext in '' $ac_executable_extensions; do 1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1451 ac_cv_prog_ac_ct_CC="cc" 1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1453 break 2 1454 fi 1455done 1456done 1457 1458fi 1459fi 1460ac_ct_CC=$ac_cv_prog_ac_ct_CC 1461if test -n "$ac_ct_CC"; then 1462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1463echo "${ECHO_T}$ac_ct_CC" >&6 1464else 1465 echo "$as_me:$LINENO: result: no" >&5 1466echo "${ECHO_T}no" >&6 1467fi 1468 1469 CC=$ac_ct_CC 1470else 1471 CC="$ac_cv_prog_CC" 1472fi 1473 1474fi 1475if test -z "$CC"; then 1476 # Extract the first word of "cc", so it can be a program name with args. 1477set dummy cc; ac_word=$2 1478echo "$as_me:$LINENO: checking for $ac_word" >&5 1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1480if test "${ac_cv_prog_CC+set}" = set; then 1481 echo $ECHO_N "(cached) $ECHO_C" >&6 1482else 1483 if test -n "$CC"; then 1484 ac_cv_prog_CC="$CC" # Let the user override the test. 1485else 1486 ac_prog_rejected=no 1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1488for as_dir in $PATH 1489do 1490 IFS=$as_save_IFS 1491 test -z "$as_dir" && as_dir=. 1492 for ac_exec_ext in '' $ac_executable_extensions; do 1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1495 ac_prog_rejected=yes 1496 continue 1497 fi 1498 ac_cv_prog_CC="cc" 1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1500 break 2 1501 fi 1502done 1503done 1504 1505if test $ac_prog_rejected = yes; then 1506 # We found a bogon in the path, so make sure we never use it. 1507 set dummy $ac_cv_prog_CC 1508 shift 1509 if test $# != 0; then 1510 # We chose a different compiler from the bogus one. 1511 # However, it has the same basename, so the bogon will be chosen 1512 # first if we set CC to just the basename; use the full file name. 1513 shift 1514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1515 fi 1516fi 1517fi 1518fi 1519CC=$ac_cv_prog_CC 1520if test -n "$CC"; then 1521 echo "$as_me:$LINENO: result: $CC" >&5 1522echo "${ECHO_T}$CC" >&6 1523else 1524 echo "$as_me:$LINENO: result: no" >&5 1525echo "${ECHO_T}no" >&6 1526fi 1527 1528fi 1529if test -z "$CC"; then 1530 if test -n "$ac_tool_prefix"; then 1531 for ac_prog in cl 1532 do 1533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1534set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1535echo "$as_me:$LINENO: checking for $ac_word" >&5 1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1537if test "${ac_cv_prog_CC+set}" = set; then 1538 echo $ECHO_N "(cached) $ECHO_C" >&6 1539else 1540 if test -n "$CC"; then 1541 ac_cv_prog_CC="$CC" # Let the user override the test. 1542else 1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1544for as_dir in $PATH 1545do 1546 IFS=$as_save_IFS 1547 test -z "$as_dir" && as_dir=. 1548 for ac_exec_ext in '' $ac_executable_extensions; do 1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1552 break 2 1553 fi 1554done 1555done 1556 1557fi 1558fi 1559CC=$ac_cv_prog_CC 1560if test -n "$CC"; then 1561 echo "$as_me:$LINENO: result: $CC" >&5 1562echo "${ECHO_T}$CC" >&6 1563else 1564 echo "$as_me:$LINENO: result: no" >&5 1565echo "${ECHO_T}no" >&6 1566fi 1567 1568 test -n "$CC" && break 1569 done 1570fi 1571if test -z "$CC"; then 1572 ac_ct_CC=$CC 1573 for ac_prog in cl 1574do 1575 # Extract the first word of "$ac_prog", so it can be a program name with args. 1576set dummy $ac_prog; ac_word=$2 1577echo "$as_me:$LINENO: checking for $ac_word" >&5 1578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1579if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1580 echo $ECHO_N "(cached) $ECHO_C" >&6 1581else 1582 if test -n "$ac_ct_CC"; then 1583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1584else 1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1586for as_dir in $PATH 1587do 1588 IFS=$as_save_IFS 1589 test -z "$as_dir" && as_dir=. 1590 for ac_exec_ext in '' $ac_executable_extensions; do 1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1592 ac_cv_prog_ac_ct_CC="$ac_prog" 1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1594 break 2 1595 fi 1596done 1597done 1598 1599fi 1600fi 1601ac_ct_CC=$ac_cv_prog_ac_ct_CC 1602if test -n "$ac_ct_CC"; then 1603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1604echo "${ECHO_T}$ac_ct_CC" >&6 1605else 1606 echo "$as_me:$LINENO: result: no" >&5 1607echo "${ECHO_T}no" >&6 1608fi 1609 1610 test -n "$ac_ct_CC" && break 1611done 1612 1613 CC=$ac_ct_CC 1614fi 1615 1616fi 1617 1618 1619test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1620See \`config.log' for more details." >&5 1621echo "$as_me: error: no acceptable C compiler found in \$PATH 1622See \`config.log' for more details." >&2;} 1623 { (exit 1); exit 1; }; } 1624 1625# Provide some information about the compiler. 1626echo "$as_me:$LINENO:" \ 1627 "checking for C compiler version" >&5 1628ac_compiler=`set X $ac_compile; echo $2` 1629{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1630 (eval $ac_compiler --version </dev/null >&5) 2>&5 1631 ac_status=$? 1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1633 (exit $ac_status); } 1634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1635 (eval $ac_compiler -v </dev/null >&5) 2>&5 1636 ac_status=$? 1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1638 (exit $ac_status); } 1639{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1640 (eval $ac_compiler -V </dev/null >&5) 2>&5 1641 ac_status=$? 1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1643 (exit $ac_status); } 1644 1645cat >conftest.$ac_ext <<_ACEOF 1646/* confdefs.h. */ 1647_ACEOF 1648cat confdefs.h >>conftest.$ac_ext 1649cat >>conftest.$ac_ext <<_ACEOF 1650/* end confdefs.h. */ 1651 1652int 1653main () 1654{ 1655 1656 ; 1657 return 0; 1658} 1659_ACEOF 1660ac_clean_files_save=$ac_clean_files 1661ac_clean_files="$ac_clean_files a.out a.exe b.out" 1662# Try to create an executable without -o first, disregard a.out. 1663# It will help us diagnose broken compilers, and finding out an intuition 1664# of exeext. 1665echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1666echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1667ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1668if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1669 (eval $ac_link_default) 2>&5 1670 ac_status=$? 1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1672 (exit $ac_status); }; then 1673 # Find the output, starting from the most likely. This scheme is 1674# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1675# resort. 1676 1677# Be careful to initialize this variable, since it used to be cached. 1678# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1679ac_cv_exeext= 1680# b.out is created by i960 compilers. 1681for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1682do 1683 test -f "$ac_file" || continue 1684 case $ac_file in 1685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1686 ;; 1687 conftest.$ac_ext ) 1688 # This is the source file. 1689 ;; 1690 [ab].out ) 1691 # We found the default executable, but exeext='' is most 1692 # certainly right. 1693 break;; 1694 *.* ) 1695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1696 # FIXME: I believe we export ac_cv_exeext for Libtool, 1697 # but it would be cool to find out if it's true. Does anybody 1698 # maintain Libtool? --akim. 1699 export ac_cv_exeext 1700 break;; 1701 * ) 1702 break;; 1703 esac 1704done 1705else 1706 echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1710See \`config.log' for more details." >&5 1711echo "$as_me: error: C compiler cannot create executables 1712See \`config.log' for more details." >&2;} 1713 { (exit 77); exit 77; }; } 1714fi 1715 1716ac_exeext=$ac_cv_exeext 1717echo "$as_me:$LINENO: result: $ac_file" >&5 1718echo "${ECHO_T}$ac_file" >&6 1719 1720# Check the compiler produces executables we can run. If not, either 1721# the compiler is broken, or we cross compile. 1722echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1723echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1724# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1725# If not cross compiling, check that we can run a simple program. 1726if test "$cross_compiling" != yes; then 1727 if { ac_try='./$ac_file' 1728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1729 (eval $ac_try) 2>&5 1730 ac_status=$? 1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1732 (exit $ac_status); }; }; then 1733 cross_compiling=no 1734 else 1735 if test "$cross_compiling" = maybe; then 1736 cross_compiling=yes 1737 else 1738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1739If you meant to cross compile, use \`--host'. 1740See \`config.log' for more details." >&5 1741echo "$as_me: error: cannot run C compiled programs. 1742If you meant to cross compile, use \`--host'. 1743See \`config.log' for more details." >&2;} 1744 { (exit 1); exit 1; }; } 1745 fi 1746 fi 1747fi 1748echo "$as_me:$LINENO: result: yes" >&5 1749echo "${ECHO_T}yes" >&6 1750 1751rm -f a.out a.exe conftest$ac_cv_exeext b.out 1752ac_clean_files=$ac_clean_files_save 1753# Check the compiler produces executables we can run. If not, either 1754# the compiler is broken, or we cross compile. 1755echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1756echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1757echo "$as_me:$LINENO: result: $cross_compiling" >&5 1758echo "${ECHO_T}$cross_compiling" >&6 1759 1760echo "$as_me:$LINENO: checking for suffix of executables" >&5 1761echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1763 (eval $ac_link) 2>&5 1764 ac_status=$? 1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1766 (exit $ac_status); }; then 1767 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1768# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1769# work properly (i.e., refer to `conftest.exe'), while it won't with 1770# `rm'. 1771for ac_file in conftest.exe conftest conftest.*; do 1772 test -f "$ac_file" || continue 1773 case $ac_file in 1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1776 export ac_cv_exeext 1777 break;; 1778 * ) break;; 1779 esac 1780done 1781else 1782 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1783See \`config.log' for more details." >&5 1784echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1785See \`config.log' for more details." >&2;} 1786 { (exit 1); exit 1; }; } 1787fi 1788 1789rm -f conftest$ac_cv_exeext 1790echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1791echo "${ECHO_T}$ac_cv_exeext" >&6 1792 1793rm -f conftest.$ac_ext 1794EXEEXT=$ac_cv_exeext 1795ac_exeext=$EXEEXT 1796echo "$as_me:$LINENO: checking for suffix of object files" >&5 1797echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1798if test "${ac_cv_objext+set}" = set; then 1799 echo $ECHO_N "(cached) $ECHO_C" >&6 1800else 1801 cat >conftest.$ac_ext <<_ACEOF 1802/* confdefs.h. */ 1803_ACEOF 1804cat confdefs.h >>conftest.$ac_ext 1805cat >>conftest.$ac_ext <<_ACEOF 1806/* end confdefs.h. */ 1807 1808int 1809main () 1810{ 1811 1812 ; 1813 return 0; 1814} 1815_ACEOF 1816rm -f conftest.o conftest.obj 1817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1818 (eval $ac_compile) 2>&5 1819 ac_status=$? 1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1821 (exit $ac_status); }; then 1822 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1823 case $ac_file in 1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1826 break;; 1827 esac 1828done 1829else 1830 echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1834See \`config.log' for more details." >&5 1835echo "$as_me: error: cannot compute suffix of object files: cannot compile 1836See \`config.log' for more details." >&2;} 1837 { (exit 1); exit 1; }; } 1838fi 1839 1840rm -f conftest.$ac_cv_objext conftest.$ac_ext 1841fi 1842echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1843echo "${ECHO_T}$ac_cv_objext" >&6 1844OBJEXT=$ac_cv_objext 1845ac_objext=$OBJEXT 1846echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1847echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1848if test "${ac_cv_c_compiler_gnu+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 cat >conftest.$ac_ext <<_ACEOF 1852/* confdefs.h. */ 1853_ACEOF 1854cat confdefs.h >>conftest.$ac_ext 1855cat >>conftest.$ac_ext <<_ACEOF 1856/* end confdefs.h. */ 1857 1858int 1859main () 1860{ 1861#ifndef __GNUC__ 1862 choke me 1863#endif 1864 1865 ; 1866 return 0; 1867} 1868_ACEOF 1869rm -f conftest.$ac_objext 1870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1871 (eval $ac_compile) 2>conftest.er1 1872 ac_status=$? 1873 grep -v '^ *+' conftest.er1 >conftest.err 1874 rm -f conftest.er1 1875 cat conftest.err >&5 1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1877 (exit $ac_status); } && 1878 { ac_try='test -z "$ac_c_werror_flag" 1879 || test ! -s conftest.err' 1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1881 (eval $ac_try) 2>&5 1882 ac_status=$? 1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1884 (exit $ac_status); }; } && 1885 { ac_try='test -s conftest.$ac_objext' 1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1887 (eval $ac_try) 2>&5 1888 ac_status=$? 1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1890 (exit $ac_status); }; }; then 1891 ac_compiler_gnu=yes 1892else 1893 echo "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896ac_compiler_gnu=no 1897fi 1898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1899ac_cv_c_compiler_gnu=$ac_compiler_gnu 1900 1901fi 1902echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1903echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1904GCC=`test $ac_compiler_gnu = yes && echo yes` 1905ac_test_CFLAGS=${CFLAGS+set} 1906ac_save_CFLAGS=$CFLAGS 1907CFLAGS="-g" 1908echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1909echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1910if test "${ac_cv_prog_cc_g+set}" = set; then 1911 echo $ECHO_N "(cached) $ECHO_C" >&6 1912else 1913 cat >conftest.$ac_ext <<_ACEOF 1914/* confdefs.h. */ 1915_ACEOF 1916cat confdefs.h >>conftest.$ac_ext 1917cat >>conftest.$ac_ext <<_ACEOF 1918/* end confdefs.h. */ 1919 1920int 1921main () 1922{ 1923 1924 ; 1925 return 0; 1926} 1927_ACEOF 1928rm -f conftest.$ac_objext 1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1930 (eval $ac_compile) 2>conftest.er1 1931 ac_status=$? 1932 grep -v '^ *+' conftest.er1 >conftest.err 1933 rm -f conftest.er1 1934 cat conftest.err >&5 1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1936 (exit $ac_status); } && 1937 { ac_try='test -z "$ac_c_werror_flag" 1938 || test ! -s conftest.err' 1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1940 (eval $ac_try) 2>&5 1941 ac_status=$? 1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1943 (exit $ac_status); }; } && 1944 { ac_try='test -s conftest.$ac_objext' 1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1946 (eval $ac_try) 2>&5 1947 ac_status=$? 1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1949 (exit $ac_status); }; }; then 1950 ac_cv_prog_cc_g=yes 1951else 1952 echo "$as_me: failed program was:" >&5 1953sed 's/^/| /' conftest.$ac_ext >&5 1954 1955ac_cv_prog_cc_g=no 1956fi 1957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1958fi 1959echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1960echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1961if test "$ac_test_CFLAGS" = set; then 1962 CFLAGS=$ac_save_CFLAGS 1963elif test $ac_cv_prog_cc_g = yes; then 1964 if test "$GCC" = yes; then 1965 CFLAGS="-g -O2" 1966 else 1967 CFLAGS="-g" 1968 fi 1969else 1970 if test "$GCC" = yes; then 1971 CFLAGS="-O2" 1972 else 1973 CFLAGS= 1974 fi 1975fi 1976echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1977echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1978if test "${ac_cv_prog_cc_stdc+set}" = set; then 1979 echo $ECHO_N "(cached) $ECHO_C" >&6 1980else 1981 ac_cv_prog_cc_stdc=no 1982ac_save_CC=$CC 1983cat >conftest.$ac_ext <<_ACEOF 1984/* confdefs.h. */ 1985_ACEOF 1986cat confdefs.h >>conftest.$ac_ext 1987cat >>conftest.$ac_ext <<_ACEOF 1988/* end confdefs.h. */ 1989#include <stdarg.h> 1990#include <stdio.h> 1991#include <sys/types.h> 1992#include <sys/stat.h> 1993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1994struct buf { int x; }; 1995FILE * (*rcsopen) (struct buf *, struct stat *, int); 1996static char *e (p, i) 1997 char **p; 1998 int i; 1999{ 2000 return p[i]; 2001} 2002static char *f (char * (*g) (char **, int), char **p, ...) 2003{ 2004 char *s; 2005 va_list v; 2006 va_start (v,p); 2007 s = g (p, va_arg (v,int)); 2008 va_end (v); 2009 return s; 2010} 2011 2012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2013 function prototypes and stuff, but not '\xHH' hex character constants. 2014 These don't provoke an error unfortunately, instead are silently treated 2015 as 'x'. The following induces an error, until -std1 is added to get 2016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2017 array size at least. It's necessary to write '\x00'==0 to get something 2018 that's true only with -std1. */ 2019int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2020 2021int test (int i, double x); 2022struct s1 {int (*f) (int a);}; 2023struct s2 {int (*f) (double a);}; 2024int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2025int argc; 2026char **argv; 2027int 2028main () 2029{ 2030return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035# Don't try gcc -ansi; that turns off useful extensions and 2036# breaks some systems' header files. 2037# AIX -qlanglvl=ansi 2038# Ultrix and OSF/1 -std1 2039# HP-UX 10.20 and later -Ae 2040# HP-UX older versions -Aa -D_HPUX_SOURCE 2041# SVR4 -Xc -D__EXTENSIONS__ 2042for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2043do 2044 CC="$ac_save_CC $ac_arg" 2045 rm -f conftest.$ac_objext 2046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2047 (eval $ac_compile) 2>conftest.er1 2048 ac_status=$? 2049 grep -v '^ *+' conftest.er1 >conftest.err 2050 rm -f conftest.er1 2051 cat conftest.err >&5 2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2053 (exit $ac_status); } && 2054 { ac_try='test -z "$ac_c_werror_flag" 2055 || test ! -s conftest.err' 2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2057 (eval $ac_try) 2>&5 2058 ac_status=$? 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2060 (exit $ac_status); }; } && 2061 { ac_try='test -s conftest.$ac_objext' 2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2063 (eval $ac_try) 2>&5 2064 ac_status=$? 2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2066 (exit $ac_status); }; }; then 2067 ac_cv_prog_cc_stdc=$ac_arg 2068break 2069else 2070 echo "$as_me: failed program was:" >&5 2071sed 's/^/| /' conftest.$ac_ext >&5 2072 2073fi 2074rm -f conftest.err conftest.$ac_objext 2075done 2076rm -f conftest.$ac_ext conftest.$ac_objext 2077CC=$ac_save_CC 2078 2079fi 2080 2081case "x$ac_cv_prog_cc_stdc" in 2082 x|xno) 2083 echo "$as_me:$LINENO: result: none needed" >&5 2084echo "${ECHO_T}none needed" >&6 ;; 2085 *) 2086 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2087echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2088 CC="$CC $ac_cv_prog_cc_stdc" ;; 2089esac 2090 2091# Some people use a C++ compiler to compile C. Since we use `exit', 2092# in C++ we need to declare it. In case someone uses the same compiler 2093# for both compiling C and C++ we need to have the C++ compiler decide 2094# the declaration of exit, since it's the most demanding environment. 2095cat >conftest.$ac_ext <<_ACEOF 2096#ifndef __cplusplus 2097 choke me 2098#endif 2099_ACEOF 2100rm -f conftest.$ac_objext 2101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2102 (eval $ac_compile) 2>conftest.er1 2103 ac_status=$? 2104 grep -v '^ *+' conftest.er1 >conftest.err 2105 rm -f conftest.er1 2106 cat conftest.err >&5 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 (exit $ac_status); } && 2109 { ac_try='test -z "$ac_c_werror_flag" 2110 || test ! -s conftest.err' 2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2112 (eval $ac_try) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; } && 2116 { ac_try='test -s conftest.$ac_objext' 2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2118 (eval $ac_try) 2>&5 2119 ac_status=$? 2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2121 (exit $ac_status); }; }; then 2122 for ac_declaration in \ 2123 '' \ 2124 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2125 'extern "C" void std::exit (int); using std::exit;' \ 2126 'extern "C" void exit (int) throw ();' \ 2127 'extern "C" void exit (int);' \ 2128 'void exit (int);' 2129do 2130 cat >conftest.$ac_ext <<_ACEOF 2131/* confdefs.h. */ 2132_ACEOF 2133cat confdefs.h >>conftest.$ac_ext 2134cat >>conftest.$ac_ext <<_ACEOF 2135/* end confdefs.h. */ 2136$ac_declaration 2137#include <stdlib.h> 2138int 2139main () 2140{ 2141exit (42); 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146rm -f conftest.$ac_objext 2147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2148 (eval $ac_compile) 2>conftest.er1 2149 ac_status=$? 2150 grep -v '^ *+' conftest.er1 >conftest.err 2151 rm -f conftest.er1 2152 cat conftest.err >&5 2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2154 (exit $ac_status); } && 2155 { ac_try='test -z "$ac_c_werror_flag" 2156 || test ! -s conftest.err' 2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2158 (eval $ac_try) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); }; } && 2162 { ac_try='test -s conftest.$ac_objext' 2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2164 (eval $ac_try) 2>&5 2165 ac_status=$? 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2167 (exit $ac_status); }; }; then 2168 : 2169else 2170 echo "$as_me: failed program was:" >&5 2171sed 's/^/| /' conftest.$ac_ext >&5 2172 2173continue 2174fi 2175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2176 cat >conftest.$ac_ext <<_ACEOF 2177/* confdefs.h. */ 2178_ACEOF 2179cat confdefs.h >>conftest.$ac_ext 2180cat >>conftest.$ac_ext <<_ACEOF 2181/* end confdefs.h. */ 2182$ac_declaration 2183int 2184main () 2185{ 2186exit (42); 2187 ; 2188 return 0; 2189} 2190_ACEOF 2191rm -f conftest.$ac_objext 2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2193 (eval $ac_compile) 2>conftest.er1 2194 ac_status=$? 2195 grep -v '^ *+' conftest.er1 >conftest.err 2196 rm -f conftest.er1 2197 cat conftest.err >&5 2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2199 (exit $ac_status); } && 2200 { ac_try='test -z "$ac_c_werror_flag" 2201 || test ! -s conftest.err' 2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2203 (eval $ac_try) 2>&5 2204 ac_status=$? 2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2206 (exit $ac_status); }; } && 2207 { ac_try='test -s conftest.$ac_objext' 2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2209 (eval $ac_try) 2>&5 2210 ac_status=$? 2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2212 (exit $ac_status); }; }; then 2213 break 2214else 2215 echo "$as_me: failed program was:" >&5 2216sed 's/^/| /' conftest.$ac_ext >&5 2217 2218fi 2219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2220done 2221rm -f conftest* 2222if test -n "$ac_declaration"; then 2223 echo '#ifdef __cplusplus' >>confdefs.h 2224 echo $ac_declaration >>confdefs.h 2225 echo '#endif' >>confdefs.h 2226fi 2227 2228else 2229 echo "$as_me: failed program was:" >&5 2230sed 's/^/| /' conftest.$ac_ext >&5 2231 2232fi 2233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2234ac_ext=c 2235ac_cpp='$CPP $CPPFLAGS' 2236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2238ac_compiler_gnu=$ac_cv_c_compiler_gnu 2239 2240# Extract the first word of "rm ", so it can be a program name with args. 2241set dummy rm ; ac_word=$2 2242echo "$as_me:$LINENO: checking for $ac_word" >&5 2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2244if test "${ac_cv_path_RM+set}" = set; then 2245 echo $ECHO_N "(cached) $ECHO_C" >&6 2246else 2247 case $RM in 2248 [\\/]* | ?:[\\/]*) 2249 ac_cv_path_RM="$RM" # Let the user override the test with a path. 2250 ;; 2251 *) 2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2261 break 2 2262 fi 2263done 2264done 2265 2266 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 2267 ;; 2268esac 2269fi 2270RM=$ac_cv_path_RM 2271 2272if test -n "$RM"; then 2273 echo "$as_me:$LINENO: result: $RM" >&5 2274echo "${ECHO_T}$RM" >&6 2275else 2276 echo "$as_me:$LINENO: result: no" >&5 2277echo "${ECHO_T}no" >&6 2278fi 2279 2280# Extract the first word of "ar", so it can be a program name with args. 2281set dummy ar; ac_word=$2 2282echo "$as_me:$LINENO: checking for $ac_word" >&5 2283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2284if test "${ac_cv_path_AR+set}" = set; then 2285 echo $ECHO_N "(cached) $ECHO_C" >&6 2286else 2287 case $AR in 2288 [\\/]* | ?:[\\/]*) 2289 ac_cv_path_AR="$AR" # Let the user override the test with a path. 2290 ;; 2291 *) 2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 for ac_exec_ext in '' $ac_executable_extensions; do 2298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2299 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2301 break 2 2302 fi 2303done 2304done 2305 2306 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" 2307 ;; 2308esac 2309fi 2310AR=$ac_cv_path_AR 2311 2312if test -n "$AR"; then 2313 echo "$as_me:$LINENO: result: $AR" >&5 2314echo "${ECHO_T}$AR" >&6 2315else 2316 echo "$as_me:$LINENO: result: no" >&5 2317echo "${ECHO_T}no" >&6 2318fi 2319 2320echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2322set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2323if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 cat >conftest.make <<\_ACEOF 2327all: 2328 @echo 'ac_maketemp="$(MAKE)"' 2329_ACEOF 2330# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2331eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2332if test -n "$ac_maketemp"; then 2333 eval ac_cv_prog_make_${ac_make}_set=yes 2334else 2335 eval ac_cv_prog_make_${ac_make}_set=no 2336fi 2337rm -f conftest.make 2338fi 2339if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2340 echo "$as_me:$LINENO: result: yes" >&5 2341echo "${ECHO_T}yes" >&6 2342 SET_MAKE= 2343else 2344 echo "$as_me:$LINENO: result: no" >&5 2345echo "${ECHO_T}no" >&6 2346 SET_MAKE="MAKE=${MAKE-make}" 2347fi 2348 2349if test -n "$ac_tool_prefix"; then 2350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2351set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2352echo "$as_me:$LINENO: checking for $ac_word" >&5 2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2354if test "${ac_cv_prog_RANLIB+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 if test -n "$RANLIB"; then 2358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372done 2373 2374fi 2375fi 2376RANLIB=$ac_cv_prog_RANLIB 2377if test -n "$RANLIB"; then 2378 echo "$as_me:$LINENO: result: $RANLIB" >&5 2379echo "${ECHO_T}$RANLIB" >&6 2380else 2381 echo "$as_me:$LINENO: result: no" >&5 2382echo "${ECHO_T}no" >&6 2383fi 2384 2385fi 2386if test -z "$ac_cv_prog_RANLIB"; then 2387 ac_ct_RANLIB=$RANLIB 2388 # Extract the first word of "ranlib", so it can be a program name with args. 2389set dummy ranlib; ac_word=$2 2390echo "$as_me:$LINENO: checking for $ac_word" >&5 2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2392if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2393 echo $ECHO_N "(cached) $ECHO_C" >&6 2394else 2395 if test -n "$ac_ct_RANLIB"; then 2396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2397else 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2405 ac_cv_prog_ac_ct_RANLIB="ranlib" 2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410done 2411 2412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2413fi 2414fi 2415ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2416if test -n "$ac_ct_RANLIB"; then 2417 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2418echo "${ECHO_T}$ac_ct_RANLIB" >&6 2419else 2420 echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6 2422fi 2423 2424 RANLIB=$ac_ct_RANLIB 2425else 2426 RANLIB="$ac_cv_prog_RANLIB" 2427fi 2428 2429 2430echo "$as_me:$LINENO: checking for __FUNCTION__ symbol" >&5 2431echo $ECHO_N "checking for __FUNCTION__ symbol... $ECHO_C" >&6 2432 2433cat >conftest.$ac_ext <<_ACEOF 2434/* confdefs.h. */ 2435_ACEOF 2436cat confdefs.h >>conftest.$ac_ext 2437cat >>conftest.$ac_ext <<_ACEOF 2438/* end confdefs.h. */ 2439#include <stdio.h> 2440int 2441main () 2442{ 2443printf ("%s\n", __FUNCTION__); 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448rm -f conftest.$ac_objext 2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2450 (eval $ac_compile) 2>conftest.er1 2451 ac_status=$? 2452 grep -v '^ *+' conftest.er1 >conftest.err 2453 rm -f conftest.er1 2454 cat conftest.err >&5 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2456 (exit $ac_status); } && 2457 { ac_try='test -z "$ac_c_werror_flag" 2458 || test ! -s conftest.err' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; } && 2464 { ac_try='test -s conftest.$ac_objext' 2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2466 (eval $ac_try) 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); }; }; then 2470 HAVE__FUNCTION__=1 2471 echo "$as_me:$LINENO: result: yes" >&5 2472echo "${ECHO_T}yes" >&6 2473else 2474 echo "$as_me: failed program was:" >&5 2475sed 's/^/| /' conftest.$ac_ext >&5 2476 2477echo "$as_me:$LINENO: result: no" >&5 2478echo "${ECHO_T}no" >&6 2479 CFLAGS="$CFLAGS -D__FUNCTION__=__FILE__" 2480 HAVE__FUNCTION__=0 2481fi 2482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2483 2484echo "$as_me:$LINENO: checking for inline" >&5 2485echo $ECHO_N "checking for inline... $ECHO_C" >&6 2486if test "${ac_cv_c_inline+set}" = set; then 2487 echo $ECHO_N "(cached) $ECHO_C" >&6 2488else 2489 ac_cv_c_inline=no 2490for ac_kw in inline __inline__ __inline; do 2491 cat >conftest.$ac_ext <<_ACEOF 2492/* confdefs.h. */ 2493_ACEOF 2494cat confdefs.h >>conftest.$ac_ext 2495cat >>conftest.$ac_ext <<_ACEOF 2496/* end confdefs.h. */ 2497#ifndef __cplusplus 2498typedef int foo_t; 2499static $ac_kw foo_t static_foo () {return 0; } 2500$ac_kw foo_t foo () {return 0; } 2501#endif 2502 2503_ACEOF 2504rm -f conftest.$ac_objext 2505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2506 (eval $ac_compile) 2>conftest.er1 2507 ac_status=$? 2508 grep -v '^ *+' conftest.er1 >conftest.err 2509 rm -f conftest.er1 2510 cat conftest.err >&5 2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2512 (exit $ac_status); } && 2513 { ac_try='test -z "$ac_c_werror_flag" 2514 || test ! -s conftest.err' 2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2516 (eval $ac_try) 2>&5 2517 ac_status=$? 2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2519 (exit $ac_status); }; } && 2520 { ac_try='test -s conftest.$ac_objext' 2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2522 (eval $ac_try) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; }; then 2526 ac_cv_c_inline=$ac_kw; break 2527else 2528 echo "$as_me: failed program was:" >&5 2529sed 's/^/| /' conftest.$ac_ext >&5 2530 2531fi 2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2533done 2534 2535fi 2536echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 2537echo "${ECHO_T}$ac_cv_c_inline" >&6 2538 2539 2540case $ac_cv_c_inline in 2541 inline | yes) ;; 2542 *) 2543 case $ac_cv_c_inline in 2544 no) ac_val=;; 2545 *) ac_val=$ac_cv_c_inline;; 2546 esac 2547 cat >>confdefs.h <<_ACEOF 2548#ifndef __cplusplus 2549#define inline $ac_val 2550#endif 2551_ACEOF 2552 ;; 2553esac 2554 2555 2556 2557# Check whether --with-install or --without-install was given. 2558if test "${with_install+set}" = set; then 2559 withval="$with_install" 2560 2561fi; 2562if test "$with_install" != ""; then 2563 if test "`echo $with_install | sed 's/\(.\).*/\1/'`" != "/"; then 2564 echo configure Error: install program '"'$with_install'"' is not a full path 1>&2 2565 exit 1 2566 fi 2567 echo setting install program with $with_install 2568 INSTALL=$with_install 2569else 2570 ac_aux_dir= 2571for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2572 if test -f $ac_dir/install-sh; then 2573 ac_aux_dir=$ac_dir 2574 ac_install_sh="$ac_aux_dir/install-sh -c" 2575 break 2576 elif test -f $ac_dir/install.sh; then 2577 ac_aux_dir=$ac_dir 2578 ac_install_sh="$ac_aux_dir/install.sh -c" 2579 break 2580 elif test -f $ac_dir/shtool; then 2581 ac_aux_dir=$ac_dir 2582 ac_install_sh="$ac_aux_dir/shtool install -c" 2583 break 2584 fi 2585done 2586if test -z "$ac_aux_dir"; then 2587 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2588echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2589 { (exit 1); exit 1; }; } 2590fi 2591ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2592ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2593ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2594 2595# Find a good install program. We prefer a C program (faster), 2596# so one script is as good as another. But avoid the broken or 2597# incompatible versions: 2598# SysV /etc/install, /usr/sbin/install 2599# SunOS /usr/etc/install 2600# IRIX /sbin/install 2601# AIX /bin/install 2602# AmigaOS /C/install, which installs bootblocks on floppy discs 2603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2604# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2606# OS/2's system install, which has a completely different semantic 2607# ./install, which can be erroneously created by make from ./install.sh. 2608echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2609echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2610if test -z "$INSTALL"; then 2611if test "${ac_cv_path_install+set}" = set; then 2612 echo $ECHO_N "(cached) $ECHO_C" >&6 2613else 2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH 2616do 2617 IFS=$as_save_IFS 2618 test -z "$as_dir" && as_dir=. 2619 # Account for people who put trailing slashes in PATH elements. 2620case $as_dir/ in 2621 ./ | .// | /cC/* | \ 2622 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2623 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2624 /usr/ucb/* ) ;; 2625 *) 2626 # OSF1 and SCO ODT 3.0 have their own names for install. 2627 # Don't use installbsd from OSF since it installs stuff as root 2628 # by default. 2629 for ac_prog in ginstall scoinst install; do 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2632 if test $ac_prog = install && 2633 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2634 # AIX install. It has an incompatible calling convention. 2635 : 2636 elif test $ac_prog = install && 2637 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2638 # program-specific install script used by HP pwplus--don't use. 2639 : 2640 else 2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2642 break 3 2643 fi 2644 fi 2645 done 2646 done 2647 ;; 2648esac 2649done 2650 2651 2652fi 2653 if test "${ac_cv_path_install+set}" = set; then 2654 INSTALL=$ac_cv_path_install 2655 else 2656 # As a last resort, use the slow shell script. We don't cache a 2657 # path for INSTALL within a source directory, because that will 2658 # break other packages using the cache if that directory is 2659 # removed, or if the path is relative. 2660 INSTALL=$ac_install_sh 2661 fi 2662fi 2663echo "$as_me:$LINENO: result: $INSTALL" >&5 2664echo "${ECHO_T}$INSTALL" >&6 2665 2666# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2667# It thinks the first close brace ends the variable substitution. 2668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2669 2670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2671 2672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2673 2674fi 2675 2676 2677ac_ext=c 2678ac_cpp='$CPP $CPPFLAGS' 2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2681ac_compiler_gnu=$ac_cv_c_compiler_gnu 2682echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2683echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2684# On Suns, sometimes $CPP names a directory. 2685if test -n "$CPP" && test -d "$CPP"; then 2686 CPP= 2687fi 2688if test -z "$CPP"; then 2689 if test "${ac_cv_prog_CPP+set}" = set; then 2690 echo $ECHO_N "(cached) $ECHO_C" >&6 2691else 2692 # Double quotes because CPP needs to be expanded 2693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2694 do 2695 ac_preproc_ok=false 2696for ac_c_preproc_warn_flag in '' yes 2697do 2698 # Use a header file that comes with gcc, so configuring glibc 2699 # with a fresh cross-compiler works. 2700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2701 # <limits.h> exists even on freestanding compilers. 2702 # On the NeXT, cc -E runs the code through the compiler's parser, 2703 # not just through cpp. "Syntax error" is here to catch this case. 2704 cat >conftest.$ac_ext <<_ACEOF 2705/* confdefs.h. */ 2706_ACEOF 2707cat confdefs.h >>conftest.$ac_ext 2708cat >>conftest.$ac_ext <<_ACEOF 2709/* end confdefs.h. */ 2710#ifdef __STDC__ 2711# include <limits.h> 2712#else 2713# include <assert.h> 2714#endif 2715 Syntax error 2716_ACEOF 2717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2719 ac_status=$? 2720 grep -v '^ *+' conftest.er1 >conftest.err 2721 rm -f conftest.er1 2722 cat conftest.err >&5 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); } >/dev/null; then 2725 if test -s conftest.err; then 2726 ac_cpp_err=$ac_c_preproc_warn_flag 2727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2728 else 2729 ac_cpp_err= 2730 fi 2731else 2732 ac_cpp_err=yes 2733fi 2734if test -z "$ac_cpp_err"; then 2735 : 2736else 2737 echo "$as_me: failed program was:" >&5 2738sed 's/^/| /' conftest.$ac_ext >&5 2739 2740 # Broken: fails on valid input. 2741continue 2742fi 2743rm -f conftest.err conftest.$ac_ext 2744 2745 # OK, works on sane cases. Now check whether non-existent headers 2746 # can be detected and how. 2747 cat >conftest.$ac_ext <<_ACEOF 2748/* confdefs.h. */ 2749_ACEOF 2750cat confdefs.h >>conftest.$ac_ext 2751cat >>conftest.$ac_ext <<_ACEOF 2752/* end confdefs.h. */ 2753#include <ac_nonexistent.h> 2754_ACEOF 2755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } >/dev/null; then 2763 if test -s conftest.err; then 2764 ac_cpp_err=$ac_c_preproc_warn_flag 2765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2766 else 2767 ac_cpp_err= 2768 fi 2769else 2770 ac_cpp_err=yes 2771fi 2772if test -z "$ac_cpp_err"; then 2773 # Broken: success on invalid input. 2774continue 2775else 2776 echo "$as_me: failed program was:" >&5 2777sed 's/^/| /' conftest.$ac_ext >&5 2778 2779 # Passes both tests. 2780ac_preproc_ok=: 2781break 2782fi 2783rm -f conftest.err conftest.$ac_ext 2784 2785done 2786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2787rm -f conftest.err conftest.$ac_ext 2788if $ac_preproc_ok; then 2789 break 2790fi 2791 2792 done 2793 ac_cv_prog_CPP=$CPP 2794 2795fi 2796 CPP=$ac_cv_prog_CPP 2797else 2798 ac_cv_prog_CPP=$CPP 2799fi 2800echo "$as_me:$LINENO: result: $CPP" >&5 2801echo "${ECHO_T}$CPP" >&6 2802ac_preproc_ok=false 2803for ac_c_preproc_warn_flag in '' yes 2804do 2805 # Use a header file that comes with gcc, so configuring glibc 2806 # with a fresh cross-compiler works. 2807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2808 # <limits.h> exists even on freestanding compilers. 2809 # On the NeXT, cc -E runs the code through the compiler's parser, 2810 # not just through cpp. "Syntax error" is here to catch this case. 2811 cat >conftest.$ac_ext <<_ACEOF 2812/* confdefs.h. */ 2813_ACEOF 2814cat confdefs.h >>conftest.$ac_ext 2815cat >>conftest.$ac_ext <<_ACEOF 2816/* end confdefs.h. */ 2817#ifdef __STDC__ 2818# include <limits.h> 2819#else 2820# include <assert.h> 2821#endif 2822 Syntax error 2823_ACEOF 2824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2826 ac_status=$? 2827 grep -v '^ *+' conftest.er1 >conftest.err 2828 rm -f conftest.er1 2829 cat conftest.err >&5 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); } >/dev/null; then 2832 if test -s conftest.err; then 2833 ac_cpp_err=$ac_c_preproc_warn_flag 2834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2835 else 2836 ac_cpp_err= 2837 fi 2838else 2839 ac_cpp_err=yes 2840fi 2841if test -z "$ac_cpp_err"; then 2842 : 2843else 2844 echo "$as_me: failed program was:" >&5 2845sed 's/^/| /' conftest.$ac_ext >&5 2846 2847 # Broken: fails on valid input. 2848continue 2849fi 2850rm -f conftest.err conftest.$ac_ext 2851 2852 # OK, works on sane cases. Now check whether non-existent headers 2853 # can be detected and how. 2854 cat >conftest.$ac_ext <<_ACEOF 2855/* confdefs.h. */ 2856_ACEOF 2857cat confdefs.h >>conftest.$ac_ext 2858cat >>conftest.$ac_ext <<_ACEOF 2859/* end confdefs.h. */ 2860#include <ac_nonexistent.h> 2861_ACEOF 2862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2864 ac_status=$? 2865 grep -v '^ *+' conftest.er1 >conftest.err 2866 rm -f conftest.er1 2867 cat conftest.err >&5 2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2869 (exit $ac_status); } >/dev/null; then 2870 if test -s conftest.err; then 2871 ac_cpp_err=$ac_c_preproc_warn_flag 2872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2873 else 2874 ac_cpp_err= 2875 fi 2876else 2877 ac_cpp_err=yes 2878fi 2879if test -z "$ac_cpp_err"; then 2880 # Broken: success on invalid input. 2881continue 2882else 2883 echo "$as_me: failed program was:" >&5 2884sed 's/^/| /' conftest.$ac_ext >&5 2885 2886 # Passes both tests. 2887ac_preproc_ok=: 2888break 2889fi 2890rm -f conftest.err conftest.$ac_ext 2891 2892done 2893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2894rm -f conftest.err conftest.$ac_ext 2895if $ac_preproc_ok; then 2896 : 2897else 2898 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2899See \`config.log' for more details." >&5 2900echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2901See \`config.log' for more details." >&2;} 2902 { (exit 1); exit 1; }; } 2903fi 2904 2905ac_ext=c 2906ac_cpp='$CPP $CPPFLAGS' 2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2909ac_compiler_gnu=$ac_cv_c_compiler_gnu 2910 2911 2912echo "$as_me:$LINENO: checking for egrep" >&5 2913echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2914if test "${ac_cv_prog_egrep+set}" = set; then 2915 echo $ECHO_N "(cached) $ECHO_C" >&6 2916else 2917 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2918 then ac_cv_prog_egrep='grep -E' 2919 else ac_cv_prog_egrep='egrep' 2920 fi 2921fi 2922echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2923echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2924 EGREP=$ac_cv_prog_egrep 2925 2926 2927echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2928echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2929if test "${ac_cv_header_stdc+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 2931else 2932 cat >conftest.$ac_ext <<_ACEOF 2933/* confdefs.h. */ 2934_ACEOF 2935cat confdefs.h >>conftest.$ac_ext 2936cat >>conftest.$ac_ext <<_ACEOF 2937/* end confdefs.h. */ 2938#include <stdlib.h> 2939#include <stdarg.h> 2940#include <string.h> 2941#include <float.h> 2942 2943int 2944main () 2945{ 2946 2947 ; 2948 return 0; 2949} 2950_ACEOF 2951rm -f conftest.$ac_objext 2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2953 (eval $ac_compile) 2>conftest.er1 2954 ac_status=$? 2955 grep -v '^ *+' conftest.er1 >conftest.err 2956 rm -f conftest.er1 2957 cat conftest.err >&5 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } && 2960 { ac_try='test -z "$ac_c_werror_flag" 2961 || test ! -s conftest.err' 2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2963 (eval $ac_try) 2>&5 2964 ac_status=$? 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); }; } && 2967 { ac_try='test -s conftest.$ac_objext' 2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2969 (eval $ac_try) 2>&5 2970 ac_status=$? 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; }; then 2973 ac_cv_header_stdc=yes 2974else 2975 echo "$as_me: failed program was:" >&5 2976sed 's/^/| /' conftest.$ac_ext >&5 2977 2978ac_cv_header_stdc=no 2979fi 2980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2981 2982if test $ac_cv_header_stdc = yes; then 2983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2984 cat >conftest.$ac_ext <<_ACEOF 2985/* confdefs.h. */ 2986_ACEOF 2987cat confdefs.h >>conftest.$ac_ext 2988cat >>conftest.$ac_ext <<_ACEOF 2989/* end confdefs.h. */ 2990#include <string.h> 2991 2992_ACEOF 2993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2994 $EGREP "memchr" >/dev/null 2>&1; then 2995 : 2996else 2997 ac_cv_header_stdc=no 2998fi 2999rm -f conftest* 3000 3001fi 3002 3003if test $ac_cv_header_stdc = yes; then 3004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3005 cat >conftest.$ac_ext <<_ACEOF 3006/* confdefs.h. */ 3007_ACEOF 3008cat confdefs.h >>conftest.$ac_ext 3009cat >>conftest.$ac_ext <<_ACEOF 3010/* end confdefs.h. */ 3011#include <stdlib.h> 3012 3013_ACEOF 3014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3015 $EGREP "free" >/dev/null 2>&1; then 3016 : 3017else 3018 ac_cv_header_stdc=no 3019fi 3020rm -f conftest* 3021 3022fi 3023 3024if test $ac_cv_header_stdc = yes; then 3025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3026 if test "$cross_compiling" = yes; then 3027 : 3028else 3029 cat >conftest.$ac_ext <<_ACEOF 3030/* confdefs.h. */ 3031_ACEOF 3032cat confdefs.h >>conftest.$ac_ext 3033cat >>conftest.$ac_ext <<_ACEOF 3034/* end confdefs.h. */ 3035#include <ctype.h> 3036#if ((' ' & 0x0FF) == 0x020) 3037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3039#else 3040# define ISLOWER(c) \ 3041 (('a' <= (c) && (c) <= 'i') \ 3042 || ('j' <= (c) && (c) <= 'r') \ 3043 || ('s' <= (c) && (c) <= 'z')) 3044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3045#endif 3046 3047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3048int 3049main () 3050{ 3051 int i; 3052 for (i = 0; i < 256; i++) 3053 if (XOR (islower (i), ISLOWER (i)) 3054 || toupper (i) != TOUPPER (i)) 3055 exit(2); 3056 exit (0); 3057} 3058_ACEOF 3059rm -f conftest$ac_exeext 3060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3061 (eval $ac_link) 2>&5 3062 ac_status=$? 3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3066 (eval $ac_try) 2>&5 3067 ac_status=$? 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; }; then 3070 : 3071else 3072 echo "$as_me: program exited with status $ac_status" >&5 3073echo "$as_me: failed program was:" >&5 3074sed 's/^/| /' conftest.$ac_ext >&5 3075 3076( exit $ac_status ) 3077ac_cv_header_stdc=no 3078fi 3079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3080fi 3081fi 3082fi 3083echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3084echo "${ECHO_T}$ac_cv_header_stdc" >&6 3085if test $ac_cv_header_stdc = yes; then 3086 3087cat >>confdefs.h <<\_ACEOF 3088#define STDC_HEADERS 1 3089_ACEOF 3090 3091fi 3092 3093# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3104 inttypes.h stdint.h unistd.h 3105do 3106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3107echo "$as_me:$LINENO: checking for $ac_header" >&5 3108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3109if eval "test \"\${$as_ac_Header+set}\" = set"; then 3110 echo $ECHO_N "(cached) $ECHO_C" >&6 3111else 3112 cat >conftest.$ac_ext <<_ACEOF 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118$ac_includes_default 3119 3120#include <$ac_header> 3121_ACEOF 3122rm -f conftest.$ac_objext 3123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3124 (eval $ac_compile) 2>conftest.er1 3125 ac_status=$? 3126 grep -v '^ *+' conftest.er1 >conftest.err 3127 rm -f conftest.er1 3128 cat conftest.err >&5 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); } && 3131 { ac_try='test -z "$ac_c_werror_flag" 3132 || test ! -s conftest.err' 3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3134 (eval $ac_try) 2>&5 3135 ac_status=$? 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); }; } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3140 (eval $ac_try) 2>&5 3141 ac_status=$? 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); }; }; then 3144 eval "$as_ac_Header=yes" 3145else 3146 echo "$as_me: failed program was:" >&5 3147sed 's/^/| /' conftest.$ac_ext >&5 3148 3149eval "$as_ac_Header=no" 3150fi 3151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3152fi 3153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3155if test `eval echo '${'$as_ac_Header'}'` = yes; then 3156 cat >>confdefs.h <<_ACEOF 3157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3158_ACEOF 3159 3160fi 3161 3162done 3163 3164 3165 3166 3167for ac_header in unistd.h limits.h 3168do 3169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3170if eval "test \"\${$as_ac_Header+set}\" = set"; then 3171 echo "$as_me:$LINENO: checking for $ac_header" >&5 3172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3173if eval "test \"\${$as_ac_Header+set}\" = set"; then 3174 echo $ECHO_N "(cached) $ECHO_C" >&6 3175fi 3176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3178else 3179 # Is the header compilable? 3180echo "$as_me:$LINENO: checking $ac_header usability" >&5 3181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3182cat >conftest.$ac_ext <<_ACEOF 3183/* confdefs.h. */ 3184_ACEOF 3185cat confdefs.h >>conftest.$ac_ext 3186cat >>conftest.$ac_ext <<_ACEOF 3187/* end confdefs.h. */ 3188$ac_includes_default 3189#include <$ac_header> 3190_ACEOF 3191rm -f conftest.$ac_objext 3192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3193 (eval $ac_compile) 2>conftest.er1 3194 ac_status=$? 3195 grep -v '^ *+' conftest.er1 >conftest.err 3196 rm -f conftest.er1 3197 cat conftest.err >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3199 (exit $ac_status); } && 3200 { ac_try='test -z "$ac_c_werror_flag" 3201 || test ! -s conftest.err' 3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3203 (eval $ac_try) 2>&5 3204 ac_status=$? 3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; } && 3207 { ac_try='test -s conftest.$ac_objext' 3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3209 (eval $ac_try) 2>&5 3210 ac_status=$? 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); }; }; then 3213 ac_header_compiler=yes 3214else 3215 echo "$as_me: failed program was:" >&5 3216sed 's/^/| /' conftest.$ac_ext >&5 3217 3218ac_header_compiler=no 3219fi 3220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3222echo "${ECHO_T}$ac_header_compiler" >&6 3223 3224# Is the header present? 3225echo "$as_me:$LINENO: checking $ac_header presence" >&5 3226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3227cat >conftest.$ac_ext <<_ACEOF 3228/* confdefs.h. */ 3229_ACEOF 3230cat confdefs.h >>conftest.$ac_ext 3231cat >>conftest.$ac_ext <<_ACEOF 3232/* end confdefs.h. */ 3233#include <$ac_header> 3234_ACEOF 3235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3237 ac_status=$? 3238 grep -v '^ *+' conftest.er1 >conftest.err 3239 rm -f conftest.er1 3240 cat conftest.err >&5 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3242 (exit $ac_status); } >/dev/null; then 3243 if test -s conftest.err; then 3244 ac_cpp_err=$ac_c_preproc_warn_flag 3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3246 else 3247 ac_cpp_err= 3248 fi 3249else 3250 ac_cpp_err=yes 3251fi 3252if test -z "$ac_cpp_err"; then 3253 ac_header_preproc=yes 3254else 3255 echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258 ac_header_preproc=no 3259fi 3260rm -f conftest.err conftest.$ac_ext 3261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3262echo "${ECHO_T}$ac_header_preproc" >&6 3263 3264# So? What about this header? 3265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3266 yes:no: ) 3267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3271 ac_header_preproc=yes 3272 ;; 3273 no:yes:* ) 3274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3286 ( 3287 cat <<\_ASBOX 3288## ------------------------------------------ ## 3289## Report this to the AC_PACKAGE_NAME lists. ## 3290## ------------------------------------------ ## 3291_ASBOX 3292 ) | 3293 sed "s/^/$as_me: WARNING: /" >&2 3294 ;; 3295esac 3296echo "$as_me:$LINENO: checking for $ac_header" >&5 3297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3298if eval "test \"\${$as_ac_Header+set}\" = set"; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 eval "$as_ac_Header=\$ac_header_preproc" 3302fi 3303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3305 3306fi 3307if test `eval echo '${'$as_ac_Header'}'` = yes; then 3308 cat >>confdefs.h <<_ACEOF 3309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3310_ACEOF 3311 3312fi 3313 3314done 3315 3316 3317 3318for ac_header in stdint.h inttypes.h 3319do 3320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3321if eval "test \"\${$as_ac_Header+set}\" = set"; then 3322 echo "$as_me:$LINENO: checking for $ac_header" >&5 3323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3324if eval "test \"\${$as_ac_Header+set}\" = set"; then 3325 echo $ECHO_N "(cached) $ECHO_C" >&6 3326fi 3327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3329else 3330 # Is the header compilable? 3331echo "$as_me:$LINENO: checking $ac_header usability" >&5 3332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3333cat >conftest.$ac_ext <<_ACEOF 3334/* confdefs.h. */ 3335_ACEOF 3336cat confdefs.h >>conftest.$ac_ext 3337cat >>conftest.$ac_ext <<_ACEOF 3338/* end confdefs.h. */ 3339$ac_includes_default 3340#include <$ac_header> 3341_ACEOF 3342rm -f conftest.$ac_objext 3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3344 (eval $ac_compile) 2>conftest.er1 3345 ac_status=$? 3346 grep -v '^ *+' conftest.er1 >conftest.err 3347 rm -f conftest.er1 3348 cat conftest.err >&5 3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3350 (exit $ac_status); } && 3351 { ac_try='test -z "$ac_c_werror_flag" 3352 || test ! -s conftest.err' 3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3354 (eval $ac_try) 2>&5 3355 ac_status=$? 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); }; } && 3358 { ac_try='test -s conftest.$ac_objext' 3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3360 (eval $ac_try) 2>&5 3361 ac_status=$? 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3363 (exit $ac_status); }; }; then 3364 ac_header_compiler=yes 3365else 3366 echo "$as_me: failed program was:" >&5 3367sed 's/^/| /' conftest.$ac_ext >&5 3368 3369ac_header_compiler=no 3370fi 3371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3373echo "${ECHO_T}$ac_header_compiler" >&6 3374 3375# Is the header present? 3376echo "$as_me:$LINENO: checking $ac_header presence" >&5 3377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3378cat >conftest.$ac_ext <<_ACEOF 3379/* confdefs.h. */ 3380_ACEOF 3381cat confdefs.h >>conftest.$ac_ext 3382cat >>conftest.$ac_ext <<_ACEOF 3383/* end confdefs.h. */ 3384#include <$ac_header> 3385_ACEOF 3386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } >/dev/null; then 3394 if test -s conftest.err; then 3395 ac_cpp_err=$ac_c_preproc_warn_flag 3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3397 else 3398 ac_cpp_err= 3399 fi 3400else 3401 ac_cpp_err=yes 3402fi 3403if test -z "$ac_cpp_err"; then 3404 ac_header_preproc=yes 3405else 3406 echo "$as_me: failed program was:" >&5 3407sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 ac_header_preproc=no 3410fi 3411rm -f conftest.err conftest.$ac_ext 3412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3413echo "${ECHO_T}$ac_header_preproc" >&6 3414 3415# So? What about this header? 3416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3417 yes:no: ) 3418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3422 ac_header_preproc=yes 3423 ;; 3424 no:yes:* ) 3425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3437 ( 3438 cat <<\_ASBOX 3439## ------------------------------------------ ## 3440## Report this to the AC_PACKAGE_NAME lists. ## 3441## ------------------------------------------ ## 3442_ASBOX 3443 ) | 3444 sed "s/^/$as_me: WARNING: /" >&2 3445 ;; 3446esac 3447echo "$as_me:$LINENO: checking for $ac_header" >&5 3448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3449if eval "test \"\${$as_ac_Header+set}\" = set"; then 3450 echo $ECHO_N "(cached) $ECHO_C" >&6 3451else 3452 eval "$as_ac_Header=\$ac_header_preproc" 3453fi 3454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3456 3457fi 3458if test `eval echo '${'$as_ac_Header'}'` = yes; then 3459 cat >>confdefs.h <<_ACEOF 3460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3461_ACEOF 3462 3463fi 3464 3465done 3466 3467 3468echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3469echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3470if test "${ac_cv_c_const+set}" = set; then 3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3472else 3473 cat >conftest.$ac_ext <<_ACEOF 3474/* confdefs.h. */ 3475_ACEOF 3476cat confdefs.h >>conftest.$ac_ext 3477cat >>conftest.$ac_ext <<_ACEOF 3478/* end confdefs.h. */ 3479 3480int 3481main () 3482{ 3483/* FIXME: Include the comments suggested by Paul. */ 3484#ifndef __cplusplus 3485 /* Ultrix mips cc rejects this. */ 3486 typedef int charset[2]; 3487 const charset x; 3488 /* SunOS 4.1.1 cc rejects this. */ 3489 char const *const *ccp; 3490 char **p; 3491 /* NEC SVR4.0.2 mips cc rejects this. */ 3492 struct point {int x, y;}; 3493 static struct point const zero = {0,0}; 3494 /* AIX XL C 1.02.0.0 rejects this. 3495 It does not let you subtract one const X* pointer from another in 3496 an arm of an if-expression whose if-part is not a constant 3497 expression */ 3498 const char *g = "string"; 3499 ccp = &g + (g ? g-g : 0); 3500 /* HPUX 7.0 cc rejects these. */ 3501 ++ccp; 3502 p = (char**) ccp; 3503 ccp = (char const *const *) p; 3504 { /* SCO 3.2v4 cc rejects this. */ 3505 char *t; 3506 char const *s = 0 ? (char *) 0 : (char const *) 0; 3507 3508 *t++ = 0; 3509 } 3510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3511 int x[] = {25, 17}; 3512 const int *foo = &x[0]; 3513 ++foo; 3514 } 3515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3516 typedef const int *iptr; 3517 iptr p = 0; 3518 ++p; 3519 } 3520 { /* AIX XL C 1.02.0.0 rejects this saying 3521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3522 struct s { int j; const int *ap[3]; }; 3523 struct s *b; b->j = 5; 3524 } 3525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3526 const int foo = 10; 3527 } 3528#endif 3529 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534rm -f conftest.$ac_objext 3535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3536 (eval $ac_compile) 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -z "$ac_c_werror_flag" 3544 || test ! -s conftest.err' 3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3546 (eval $ac_try) 2>&5 3547 ac_status=$? 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); }; } && 3550 { ac_try='test -s conftest.$ac_objext' 3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3552 (eval $ac_try) 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; }; then 3556 ac_cv_c_const=yes 3557else 3558 echo "$as_me: failed program was:" >&5 3559sed 's/^/| /' conftest.$ac_ext >&5 3560 3561ac_cv_c_const=no 3562fi 3563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3564fi 3565echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3566echo "${ECHO_T}$ac_cv_c_const" >&6 3567if test $ac_cv_c_const = no; then 3568 3569cat >>confdefs.h <<\_ACEOF 3570#define const 3571_ACEOF 3572 3573fi 3574 3575echo "$as_me:$LINENO: checking for size_t" >&5 3576echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3577if test "${ac_cv_type_size_t+set}" = set; then 3578 echo $ECHO_N "(cached) $ECHO_C" >&6 3579else 3580 cat >conftest.$ac_ext <<_ACEOF 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586$ac_includes_default 3587int 3588main () 3589{ 3590if ((size_t *) 0) 3591 return 0; 3592if (sizeof (size_t)) 3593 return 0; 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598rm -f conftest.$ac_objext 3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3600 (eval $ac_compile) 2>conftest.er1 3601 ac_status=$? 3602 grep -v '^ *+' conftest.er1 >conftest.err 3603 rm -f conftest.er1 3604 cat conftest.err >&5 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); } && 3607 { ac_try='test -z "$ac_c_werror_flag" 3608 || test ! -s conftest.err' 3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3610 (eval $ac_try) 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); }; } && 3614 { ac_try='test -s conftest.$ac_objext' 3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3616 (eval $ac_try) 2>&5 3617 ac_status=$? 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); }; }; then 3620 ac_cv_type_size_t=yes 3621else 3622 echo "$as_me: failed program was:" >&5 3623sed 's/^/| /' conftest.$ac_ext >&5 3624 3625ac_cv_type_size_t=no 3626fi 3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3628fi 3629echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3630echo "${ECHO_T}$ac_cv_type_size_t" >&6 3631if test $ac_cv_type_size_t = yes; then 3632 : 3633else 3634 3635cat >>confdefs.h <<_ACEOF 3636#define size_t unsigned 3637_ACEOF 3638 3639fi 3640 3641 3642echo "$as_me:$LINENO: checking for unsigned short" >&5 3643echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6 3644if test "${ac_cv_type_unsigned_short+set}" = set; then 3645 echo $ECHO_N "(cached) $ECHO_C" >&6 3646else 3647 cat >conftest.$ac_ext <<_ACEOF 3648/* confdefs.h. */ 3649_ACEOF 3650cat confdefs.h >>conftest.$ac_ext 3651cat >>conftest.$ac_ext <<_ACEOF 3652/* end confdefs.h. */ 3653$ac_includes_default 3654int 3655main () 3656{ 3657if ((unsigned short *) 0) 3658 return 0; 3659if (sizeof (unsigned short)) 3660 return 0; 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665rm -f conftest.$ac_objext 3666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3667 (eval $ac_compile) 2>conftest.er1 3668 ac_status=$? 3669 grep -v '^ *+' conftest.er1 >conftest.err 3670 rm -f conftest.er1 3671 cat conftest.err >&5 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 (exit $ac_status); } && 3674 { ac_try='test -z "$ac_c_werror_flag" 3675 || test ! -s conftest.err' 3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3677 (eval $ac_try) 2>&5 3678 ac_status=$? 3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3680 (exit $ac_status); }; } && 3681 { ac_try='test -s conftest.$ac_objext' 3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3683 (eval $ac_try) 2>&5 3684 ac_status=$? 3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 (exit $ac_status); }; }; then 3687 ac_cv_type_unsigned_short=yes 3688else 3689 echo "$as_me: failed program was:" >&5 3690sed 's/^/| /' conftest.$ac_ext >&5 3691 3692ac_cv_type_unsigned_short=no 3693fi 3694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3695fi 3696echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5 3697echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6 3698 3699echo "$as_me:$LINENO: checking size of unsigned short" >&5 3700echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6 3701if test "${ac_cv_sizeof_unsigned_short+set}" = set; then 3702 echo $ECHO_N "(cached) $ECHO_C" >&6 3703else 3704 if test "$ac_cv_type_unsigned_short" = yes; then 3705 # The cast to unsigned long works around a bug in the HP C Compiler 3706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3708 # This bug is HP SR number 8606223364. 3709 if test "$cross_compiling" = yes; then 3710 # Depending upon the size, compute the lo and hi bounds. 3711cat >conftest.$ac_ext <<_ACEOF 3712/* confdefs.h. */ 3713_ACEOF 3714cat confdefs.h >>conftest.$ac_ext 3715cat >>conftest.$ac_ext <<_ACEOF 3716/* end confdefs.h. */ 3717$ac_includes_default 3718int 3719main () 3720{ 3721static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)]; 3722test_array [0] = 0 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728rm -f conftest.$ac_objext 3729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3730 (eval $ac_compile) 2>conftest.er1 3731 ac_status=$? 3732 grep -v '^ *+' conftest.er1 >conftest.err 3733 rm -f conftest.er1 3734 cat conftest.err >&5 3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3736 (exit $ac_status); } && 3737 { ac_try='test -z "$ac_c_werror_flag" 3738 || test ! -s conftest.err' 3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3740 (eval $ac_try) 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; } && 3744 { ac_try='test -s conftest.$ac_objext' 3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3746 (eval $ac_try) 2>&5 3747 ac_status=$? 3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); }; }; then 3750 ac_lo=0 ac_mid=0 3751 while :; do 3752 cat >conftest.$ac_ext <<_ACEOF 3753/* confdefs.h. */ 3754_ACEOF 3755cat confdefs.h >>conftest.$ac_ext 3756cat >>conftest.$ac_ext <<_ACEOF 3757/* end confdefs.h. */ 3758$ac_includes_default 3759int 3760main () 3761{ 3762static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)]; 3763test_array [0] = 0 3764 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769rm -f conftest.$ac_objext 3770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3771 (eval $ac_compile) 2>conftest.er1 3772 ac_status=$? 3773 grep -v '^ *+' conftest.er1 >conftest.err 3774 rm -f conftest.er1 3775 cat conftest.err >&5 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); } && 3778 { ac_try='test -z "$ac_c_werror_flag" 3779 || test ! -s conftest.err' 3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3781 (eval $ac_try) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); }; } && 3785 { ac_try='test -s conftest.$ac_objext' 3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3787 (eval $ac_try) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; }; then 3791 ac_hi=$ac_mid; break 3792else 3793 echo "$as_me: failed program was:" >&5 3794sed 's/^/| /' conftest.$ac_ext >&5 3795 3796ac_lo=`expr $ac_mid + 1` 3797 if test $ac_lo -le $ac_mid; then 3798 ac_lo= ac_hi= 3799 break 3800 fi 3801 ac_mid=`expr 2 '*' $ac_mid + 1` 3802fi 3803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3804 done 3805else 3806 echo "$as_me: failed program was:" >&5 3807sed 's/^/| /' conftest.$ac_ext >&5 3808 3809cat >conftest.$ac_ext <<_ACEOF 3810/* confdefs.h. */ 3811_ACEOF 3812cat confdefs.h >>conftest.$ac_ext 3813cat >>conftest.$ac_ext <<_ACEOF 3814/* end confdefs.h. */ 3815$ac_includes_default 3816int 3817main () 3818{ 3819static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)]; 3820test_array [0] = 0 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826rm -f conftest.$ac_objext 3827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3828 (eval $ac_compile) 2>conftest.er1 3829 ac_status=$? 3830 grep -v '^ *+' conftest.er1 >conftest.err 3831 rm -f conftest.er1 3832 cat conftest.err >&5 3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3834 (exit $ac_status); } && 3835 { ac_try='test -z "$ac_c_werror_flag" 3836 || test ! -s conftest.err' 3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3838 (eval $ac_try) 2>&5 3839 ac_status=$? 3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3841 (exit $ac_status); }; } && 3842 { ac_try='test -s conftest.$ac_objext' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; }; then 3848 ac_hi=-1 ac_mid=-1 3849 while :; do 3850 cat >conftest.$ac_ext <<_ACEOF 3851/* confdefs.h. */ 3852_ACEOF 3853cat confdefs.h >>conftest.$ac_ext 3854cat >>conftest.$ac_ext <<_ACEOF 3855/* end confdefs.h. */ 3856$ac_includes_default 3857int 3858main () 3859{ 3860static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)]; 3861test_array [0] = 0 3862 3863 ; 3864 return 0; 3865} 3866_ACEOF 3867rm -f conftest.$ac_objext 3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3869 (eval $ac_compile) 2>conftest.er1 3870 ac_status=$? 3871 grep -v '^ *+' conftest.er1 >conftest.err 3872 rm -f conftest.er1 3873 cat conftest.err >&5 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); } && 3876 { ac_try='test -z "$ac_c_werror_flag" 3877 || test ! -s conftest.err' 3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3879 (eval $ac_try) 2>&5 3880 ac_status=$? 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); }; } && 3883 { ac_try='test -s conftest.$ac_objext' 3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3885 (eval $ac_try) 2>&5 3886 ac_status=$? 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); }; }; then 3889 ac_lo=$ac_mid; break 3890else 3891 echo "$as_me: failed program was:" >&5 3892sed 's/^/| /' conftest.$ac_ext >&5 3893 3894ac_hi=`expr '(' $ac_mid ')' - 1` 3895 if test $ac_mid -le $ac_hi; then 3896 ac_lo= ac_hi= 3897 break 3898 fi 3899 ac_mid=`expr 2 '*' $ac_mid` 3900fi 3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3902 done 3903else 3904 echo "$as_me: failed program was:" >&5 3905sed 's/^/| /' conftest.$ac_ext >&5 3906 3907ac_lo= ac_hi= 3908fi 3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3910fi 3911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3912# Binary search between lo and hi bounds. 3913while test "x$ac_lo" != "x$ac_hi"; do 3914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3915 cat >conftest.$ac_ext <<_ACEOF 3916/* confdefs.h. */ 3917_ACEOF 3918cat confdefs.h >>conftest.$ac_ext 3919cat >>conftest.$ac_ext <<_ACEOF 3920/* end confdefs.h. */ 3921$ac_includes_default 3922int 3923main () 3924{ 3925static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)]; 3926test_array [0] = 0 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.$ac_objext 3933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3934 (eval $ac_compile) 2>conftest.er1 3935 ac_status=$? 3936 grep -v '^ *+' conftest.er1 >conftest.err 3937 rm -f conftest.er1 3938 cat conftest.err >&5 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 (exit $ac_status); } && 3941 { ac_try='test -z "$ac_c_werror_flag" 3942 || test ! -s conftest.err' 3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3944 (eval $ac_try) 2>&5 3945 ac_status=$? 3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3947 (exit $ac_status); }; } && 3948 { ac_try='test -s conftest.$ac_objext' 3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3950 (eval $ac_try) 2>&5 3951 ac_status=$? 3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3953 (exit $ac_status); }; }; then 3954 ac_hi=$ac_mid 3955else 3956 echo "$as_me: failed program was:" >&5 3957sed 's/^/| /' conftest.$ac_ext >&5 3958 3959ac_lo=`expr '(' $ac_mid ')' + 1` 3960fi 3961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3962done 3963case $ac_lo in 3964?*) ac_cv_sizeof_unsigned_short=$ac_lo;; 3965'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77 3966See \`config.log' for more details." >&5 3967echo "$as_me: error: cannot compute sizeof (unsigned short), 77 3968See \`config.log' for more details." >&2;} 3969 { (exit 1); exit 1; }; } ;; 3970esac 3971else 3972 if test "$cross_compiling" = yes; then 3973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3974See \`config.log' for more details." >&5 3975echo "$as_me: error: cannot run test program while cross compiling 3976See \`config.log' for more details." >&2;} 3977 { (exit 1); exit 1; }; } 3978else 3979 cat >conftest.$ac_ext <<_ACEOF 3980/* confdefs.h. */ 3981_ACEOF 3982cat confdefs.h >>conftest.$ac_ext 3983cat >>conftest.$ac_ext <<_ACEOF 3984/* end confdefs.h. */ 3985$ac_includes_default 3986long longval () { return (long) (sizeof (unsigned short)); } 3987unsigned long ulongval () { return (long) (sizeof (unsigned short)); } 3988#include <stdio.h> 3989#include <stdlib.h> 3990int 3991main () 3992{ 3993 3994 FILE *f = fopen ("conftest.val", "w"); 3995 if (! f) 3996 exit (1); 3997 if (((long) (sizeof (unsigned short))) < 0) 3998 { 3999 long i = longval (); 4000 if (i != ((long) (sizeof (unsigned short)))) 4001 exit (1); 4002 fprintf (f, "%ld\n", i); 4003 } 4004 else 4005 { 4006 unsigned long i = ulongval (); 4007 if (i != ((long) (sizeof (unsigned short)))) 4008 exit (1); 4009 fprintf (f, "%lu\n", i); 4010 } 4011 exit (ferror (f) || fclose (f) != 0); 4012 4013 ; 4014 return 0; 4015} 4016_ACEOF 4017rm -f conftest$ac_exeext 4018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4019 (eval $ac_link) 2>&5 4020 ac_status=$? 4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4024 (eval $ac_try) 2>&5 4025 ac_status=$? 4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4027 (exit $ac_status); }; }; then 4028 ac_cv_sizeof_unsigned_short=`cat conftest.val` 4029else 4030 echo "$as_me: program exited with status $ac_status" >&5 4031echo "$as_me: failed program was:" >&5 4032sed 's/^/| /' conftest.$ac_ext >&5 4033 4034( exit $ac_status ) 4035{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77 4036See \`config.log' for more details." >&5 4037echo "$as_me: error: cannot compute sizeof (unsigned short), 77 4038See \`config.log' for more details." >&2;} 4039 { (exit 1); exit 1; }; } 4040fi 4041rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4042fi 4043fi 4044rm -f conftest.val 4045else 4046 ac_cv_sizeof_unsigned_short=0 4047fi 4048fi 4049echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 4050echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6 4051cat >>confdefs.h <<_ACEOF 4052#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 4053_ACEOF 4054 4055 4056echo "$as_me:$LINENO: checking for unsigned int" >&5 4057echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6 4058if test "${ac_cv_type_unsigned_int+set}" = set; then 4059 echo $ECHO_N "(cached) $ECHO_C" >&6 4060else 4061 cat >conftest.$ac_ext <<_ACEOF 4062/* confdefs.h. */ 4063_ACEOF 4064cat confdefs.h >>conftest.$ac_ext 4065cat >>conftest.$ac_ext <<_ACEOF 4066/* end confdefs.h. */ 4067$ac_includes_default 4068int 4069main () 4070{ 4071if ((unsigned int *) 0) 4072 return 0; 4073if (sizeof (unsigned int)) 4074 return 0; 4075 ; 4076 return 0; 4077} 4078_ACEOF 4079rm -f conftest.$ac_objext 4080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4081 (eval $ac_compile) 2>conftest.er1 4082 ac_status=$? 4083 grep -v '^ *+' conftest.er1 >conftest.err 4084 rm -f conftest.er1 4085 cat conftest.err >&5 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); } && 4088 { ac_try='test -z "$ac_c_werror_flag" 4089 || test ! -s conftest.err' 4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4091 (eval $ac_try) 2>&5 4092 ac_status=$? 4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); }; } && 4095 { ac_try='test -s conftest.$ac_objext' 4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4097 (eval $ac_try) 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; }; then 4101 ac_cv_type_unsigned_int=yes 4102else 4103 echo "$as_me: failed program was:" >&5 4104sed 's/^/| /' conftest.$ac_ext >&5 4105 4106ac_cv_type_unsigned_int=no 4107fi 4108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4109fi 4110echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 4111echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6 4112 4113echo "$as_me:$LINENO: checking size of unsigned int" >&5 4114echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6 4115if test "${ac_cv_sizeof_unsigned_int+set}" = set; then 4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4117else 4118 if test "$ac_cv_type_unsigned_int" = yes; then 4119 # The cast to unsigned long works around a bug in the HP C Compiler 4120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4122 # This bug is HP SR number 8606223364. 4123 if test "$cross_compiling" = yes; then 4124 # Depending upon the size, compute the lo and hi bounds. 4125cat >conftest.$ac_ext <<_ACEOF 4126/* confdefs.h. */ 4127_ACEOF 4128cat confdefs.h >>conftest.$ac_ext 4129cat >>conftest.$ac_ext <<_ACEOF 4130/* end confdefs.h. */ 4131$ac_includes_default 4132int 4133main () 4134{ 4135static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)]; 4136test_array [0] = 0 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142rm -f conftest.$ac_objext 4143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4144 (eval $ac_compile) 2>conftest.er1 4145 ac_status=$? 4146 grep -v '^ *+' conftest.er1 >conftest.err 4147 rm -f conftest.er1 4148 cat conftest.err >&5 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); } && 4151 { ac_try='test -z "$ac_c_werror_flag" 4152 || test ! -s conftest.err' 4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4154 (eval $ac_try) 2>&5 4155 ac_status=$? 4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4157 (exit $ac_status); }; } && 4158 { ac_try='test -s conftest.$ac_objext' 4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4160 (eval $ac_try) 2>&5 4161 ac_status=$? 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); }; }; then 4164 ac_lo=0 ac_mid=0 4165 while :; do 4166 cat >conftest.$ac_ext <<_ACEOF 4167/* confdefs.h. */ 4168_ACEOF 4169cat confdefs.h >>conftest.$ac_ext 4170cat >>conftest.$ac_ext <<_ACEOF 4171/* end confdefs.h. */ 4172$ac_includes_default 4173int 4174main () 4175{ 4176static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; 4177test_array [0] = 0 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183rm -f conftest.$ac_objext 4184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4185 (eval $ac_compile) 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && 4192 { ac_try='test -z "$ac_c_werror_flag" 4193 || test ! -s conftest.err' 4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4195 (eval $ac_try) 2>&5 4196 ac_status=$? 4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4198 (exit $ac_status); }; } && 4199 { ac_try='test -s conftest.$ac_objext' 4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4201 (eval $ac_try) 2>&5 4202 ac_status=$? 4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4204 (exit $ac_status); }; }; then 4205 ac_hi=$ac_mid; break 4206else 4207 echo "$as_me: failed program was:" >&5 4208sed 's/^/| /' conftest.$ac_ext >&5 4209 4210ac_lo=`expr $ac_mid + 1` 4211 if test $ac_lo -le $ac_mid; then 4212 ac_lo= ac_hi= 4213 break 4214 fi 4215 ac_mid=`expr 2 '*' $ac_mid + 1` 4216fi 4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4218 done 4219else 4220 echo "$as_me: failed program was:" >&5 4221sed 's/^/| /' conftest.$ac_ext >&5 4222 4223cat >conftest.$ac_ext <<_ACEOF 4224/* confdefs.h. */ 4225_ACEOF 4226cat confdefs.h >>conftest.$ac_ext 4227cat >>conftest.$ac_ext <<_ACEOF 4228/* end confdefs.h. */ 4229$ac_includes_default 4230int 4231main () 4232{ 4233static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)]; 4234test_array [0] = 0 4235 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240rm -f conftest.$ac_objext 4241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4242 (eval $ac_compile) 2>conftest.er1 4243 ac_status=$? 4244 grep -v '^ *+' conftest.er1 >conftest.err 4245 rm -f conftest.er1 4246 cat conftest.err >&5 4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4248 (exit $ac_status); } && 4249 { ac_try='test -z "$ac_c_werror_flag" 4250 || test ! -s conftest.err' 4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4252 (eval $ac_try) 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; } && 4256 { ac_try='test -s conftest.$ac_objext' 4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4258 (eval $ac_try) 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); }; }; then 4262 ac_hi=-1 ac_mid=-1 4263 while :; do 4264 cat >conftest.$ac_ext <<_ACEOF 4265/* confdefs.h. */ 4266_ACEOF 4267cat confdefs.h >>conftest.$ac_ext 4268cat >>conftest.$ac_ext <<_ACEOF 4269/* end confdefs.h. */ 4270$ac_includes_default 4271int 4272main () 4273{ 4274static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)]; 4275test_array [0] = 0 4276 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281rm -f conftest.$ac_objext 4282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4283 (eval $ac_compile) 2>conftest.er1 4284 ac_status=$? 4285 grep -v '^ *+' conftest.er1 >conftest.err 4286 rm -f conftest.er1 4287 cat conftest.err >&5 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); } && 4290 { ac_try='test -z "$ac_c_werror_flag" 4291 || test ! -s conftest.err' 4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4293 (eval $ac_try) 2>&5 4294 ac_status=$? 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); }; } && 4297 { ac_try='test -s conftest.$ac_objext' 4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4299 (eval $ac_try) 2>&5 4300 ac_status=$? 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4302 (exit $ac_status); }; }; then 4303 ac_lo=$ac_mid; break 4304else 4305 echo "$as_me: failed program was:" >&5 4306sed 's/^/| /' conftest.$ac_ext >&5 4307 4308ac_hi=`expr '(' $ac_mid ')' - 1` 4309 if test $ac_mid -le $ac_hi; then 4310 ac_lo= ac_hi= 4311 break 4312 fi 4313 ac_mid=`expr 2 '*' $ac_mid` 4314fi 4315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4316 done 4317else 4318 echo "$as_me: failed program was:" >&5 4319sed 's/^/| /' conftest.$ac_ext >&5 4320 4321ac_lo= ac_hi= 4322fi 4323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4324fi 4325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4326# Binary search between lo and hi bounds. 4327while test "x$ac_lo" != "x$ac_hi"; do 4328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4329 cat >conftest.$ac_ext <<_ACEOF 4330/* confdefs.h. */ 4331_ACEOF 4332cat confdefs.h >>conftest.$ac_ext 4333cat >>conftest.$ac_ext <<_ACEOF 4334/* end confdefs.h. */ 4335$ac_includes_default 4336int 4337main () 4338{ 4339static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; 4340test_array [0] = 0 4341 4342 ; 4343 return 0; 4344} 4345_ACEOF 4346rm -f conftest.$ac_objext 4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4348 (eval $ac_compile) 2>conftest.er1 4349 ac_status=$? 4350 grep -v '^ *+' conftest.er1 >conftest.err 4351 rm -f conftest.er1 4352 cat conftest.err >&5 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); } && 4355 { ac_try='test -z "$ac_c_werror_flag" 4356 || test ! -s conftest.err' 4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4358 (eval $ac_try) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; } && 4362 { ac_try='test -s conftest.$ac_objext' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; }; then 4368 ac_hi=$ac_mid 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373ac_lo=`expr '(' $ac_mid ')' + 1` 4374fi 4375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4376done 4377case $ac_lo in 4378?*) ac_cv_sizeof_unsigned_int=$ac_lo;; 4379'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 4380See \`config.log' for more details." >&5 4381echo "$as_me: error: cannot compute sizeof (unsigned int), 77 4382See \`config.log' for more details." >&2;} 4383 { (exit 1); exit 1; }; } ;; 4384esac 4385else 4386 if test "$cross_compiling" = yes; then 4387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4388See \`config.log' for more details." >&5 4389echo "$as_me: error: cannot run test program while cross compiling 4390See \`config.log' for more details." >&2;} 4391 { (exit 1); exit 1; }; } 4392else 4393 cat >conftest.$ac_ext <<_ACEOF 4394/* confdefs.h. */ 4395_ACEOF 4396cat confdefs.h >>conftest.$ac_ext 4397cat >>conftest.$ac_ext <<_ACEOF 4398/* end confdefs.h. */ 4399$ac_includes_default 4400long longval () { return (long) (sizeof (unsigned int)); } 4401unsigned long ulongval () { return (long) (sizeof (unsigned int)); } 4402#include <stdio.h> 4403#include <stdlib.h> 4404int 4405main () 4406{ 4407 4408 FILE *f = fopen ("conftest.val", "w"); 4409 if (! f) 4410 exit (1); 4411 if (((long) (sizeof (unsigned int))) < 0) 4412 { 4413 long i = longval (); 4414 if (i != ((long) (sizeof (unsigned int)))) 4415 exit (1); 4416 fprintf (f, "%ld\n", i); 4417 } 4418 else 4419 { 4420 unsigned long i = ulongval (); 4421 if (i != ((long) (sizeof (unsigned int)))) 4422 exit (1); 4423 fprintf (f, "%lu\n", i); 4424 } 4425 exit (ferror (f) || fclose (f) != 0); 4426 4427 ; 4428 return 0; 4429} 4430_ACEOF 4431rm -f conftest$ac_exeext 4432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4433 (eval $ac_link) 2>&5 4434 ac_status=$? 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4438 (eval $ac_try) 2>&5 4439 ac_status=$? 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); }; }; then 4442 ac_cv_sizeof_unsigned_int=`cat conftest.val` 4443else 4444 echo "$as_me: program exited with status $ac_status" >&5 4445echo "$as_me: failed program was:" >&5 4446sed 's/^/| /' conftest.$ac_ext >&5 4447 4448( exit $ac_status ) 4449{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 4450See \`config.log' for more details." >&5 4451echo "$as_me: error: cannot compute sizeof (unsigned int), 77 4452See \`config.log' for more details." >&2;} 4453 { (exit 1); exit 1; }; } 4454fi 4455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4456fi 4457fi 4458rm -f conftest.val 4459else 4460 ac_cv_sizeof_unsigned_int=0 4461fi 4462fi 4463echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 4464echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6 4465cat >>confdefs.h <<_ACEOF 4466#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 4467_ACEOF 4468 4469 4470echo "$as_me:$LINENO: checking for unsigned long" >&5 4471echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 4472if test "${ac_cv_type_unsigned_long+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474else 4475 cat >conftest.$ac_ext <<_ACEOF 4476/* confdefs.h. */ 4477_ACEOF 4478cat confdefs.h >>conftest.$ac_ext 4479cat >>conftest.$ac_ext <<_ACEOF 4480/* end confdefs.h. */ 4481$ac_includes_default 4482int 4483main () 4484{ 4485if ((unsigned long *) 0) 4486 return 0; 4487if (sizeof (unsigned long)) 4488 return 0; 4489 ; 4490 return 0; 4491} 4492_ACEOF 4493rm -f conftest.$ac_objext 4494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && 4502 { ac_try='test -z "$ac_c_werror_flag" 4503 || test ! -s conftest.err' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; } && 4509 { ac_try='test -s conftest.$ac_objext' 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); }; }; then 4515 ac_cv_type_unsigned_long=yes 4516else 4517 echo "$as_me: failed program was:" >&5 4518sed 's/^/| /' conftest.$ac_ext >&5 4519 4520ac_cv_type_unsigned_long=no 4521fi 4522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4523fi 4524echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 4525echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 4526 4527echo "$as_me:$LINENO: checking size of unsigned long" >&5 4528echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 4529if test "${ac_cv_sizeof_unsigned_long+set}" = set; then 4530 echo $ECHO_N "(cached) $ECHO_C" >&6 4531else 4532 if test "$ac_cv_type_unsigned_long" = yes; then 4533 # The cast to unsigned long works around a bug in the HP C Compiler 4534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4536 # This bug is HP SR number 8606223364. 4537 if test "$cross_compiling" = yes; then 4538 # Depending upon the size, compute the lo and hi bounds. 4539cat >conftest.$ac_ext <<_ACEOF 4540/* confdefs.h. */ 4541_ACEOF 4542cat confdefs.h >>conftest.$ac_ext 4543cat >>conftest.$ac_ext <<_ACEOF 4544/* end confdefs.h. */ 4545$ac_includes_default 4546int 4547main () 4548{ 4549static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)]; 4550test_array [0] = 0 4551 4552 ; 4553 return 0; 4554} 4555_ACEOF 4556rm -f conftest.$ac_objext 4557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4558 (eval $ac_compile) 2>conftest.er1 4559 ac_status=$? 4560 grep -v '^ *+' conftest.er1 >conftest.err 4561 rm -f conftest.er1 4562 cat conftest.err >&5 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); } && 4565 { ac_try='test -z "$ac_c_werror_flag" 4566 || test ! -s conftest.err' 4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4568 (eval $ac_try) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; } && 4572 { ac_try='test -s conftest.$ac_objext' 4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4574 (eval $ac_try) 2>&5 4575 ac_status=$? 4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4577 (exit $ac_status); }; }; then 4578 ac_lo=0 ac_mid=0 4579 while :; do 4580 cat >conftest.$ac_ext <<_ACEOF 4581/* confdefs.h. */ 4582_ACEOF 4583cat confdefs.h >>conftest.$ac_ext 4584cat >>conftest.$ac_ext <<_ACEOF 4585/* end confdefs.h. */ 4586$ac_includes_default 4587int 4588main () 4589{ 4590static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 4591test_array [0] = 0 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597rm -f conftest.$ac_objext 4598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4599 (eval $ac_compile) 2>conftest.er1 4600 ac_status=$? 4601 grep -v '^ *+' conftest.er1 >conftest.err 4602 rm -f conftest.er1 4603 cat conftest.err >&5 4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4605 (exit $ac_status); } && 4606 { ac_try='test -z "$ac_c_werror_flag" 4607 || test ! -s conftest.err' 4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4609 (eval $ac_try) 2>&5 4610 ac_status=$? 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); }; } && 4613 { ac_try='test -s conftest.$ac_objext' 4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4615 (eval $ac_try) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); }; }; then 4619 ac_hi=$ac_mid; break 4620else 4621 echo "$as_me: failed program was:" >&5 4622sed 's/^/| /' conftest.$ac_ext >&5 4623 4624ac_lo=`expr $ac_mid + 1` 4625 if test $ac_lo -le $ac_mid; then 4626 ac_lo= ac_hi= 4627 break 4628 fi 4629 ac_mid=`expr 2 '*' $ac_mid + 1` 4630fi 4631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4632 done 4633else 4634 echo "$as_me: failed program was:" >&5 4635sed 's/^/| /' conftest.$ac_ext >&5 4636 4637cat >conftest.$ac_ext <<_ACEOF 4638/* confdefs.h. */ 4639_ACEOF 4640cat confdefs.h >>conftest.$ac_ext 4641cat >>conftest.$ac_ext <<_ACEOF 4642/* end confdefs.h. */ 4643$ac_includes_default 4644int 4645main () 4646{ 4647static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)]; 4648test_array [0] = 0 4649 4650 ; 4651 return 0; 4652} 4653_ACEOF 4654rm -f conftest.$ac_objext 4655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4656 (eval $ac_compile) 2>conftest.er1 4657 ac_status=$? 4658 grep -v '^ *+' conftest.er1 >conftest.err 4659 rm -f conftest.er1 4660 cat conftest.err >&5 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } && 4663 { ac_try='test -z "$ac_c_werror_flag" 4664 || test ! -s conftest.err' 4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4666 (eval $ac_try) 2>&5 4667 ac_status=$? 4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4669 (exit $ac_status); }; } && 4670 { ac_try='test -s conftest.$ac_objext' 4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4672 (eval $ac_try) 2>&5 4673 ac_status=$? 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); }; }; then 4676 ac_hi=-1 ac_mid=-1 4677 while :; do 4678 cat >conftest.$ac_ext <<_ACEOF 4679/* confdefs.h. */ 4680_ACEOF 4681cat confdefs.h >>conftest.$ac_ext 4682cat >>conftest.$ac_ext <<_ACEOF 4683/* end confdefs.h. */ 4684$ac_includes_default 4685int 4686main () 4687{ 4688static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)]; 4689test_array [0] = 0 4690 4691 ; 4692 return 0; 4693} 4694_ACEOF 4695rm -f conftest.$ac_objext 4696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4697 (eval $ac_compile) 2>conftest.er1 4698 ac_status=$? 4699 grep -v '^ *+' conftest.er1 >conftest.err 4700 rm -f conftest.er1 4701 cat conftest.err >&5 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4703 (exit $ac_status); } && 4704 { ac_try='test -z "$ac_c_werror_flag" 4705 || test ! -s conftest.err' 4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4707 (eval $ac_try) 2>&5 4708 ac_status=$? 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); }; } && 4711 { ac_try='test -s conftest.$ac_objext' 4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4713 (eval $ac_try) 2>&5 4714 ac_status=$? 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); }; }; then 4717 ac_lo=$ac_mid; break 4718else 4719 echo "$as_me: failed program was:" >&5 4720sed 's/^/| /' conftest.$ac_ext >&5 4721 4722ac_hi=`expr '(' $ac_mid ')' - 1` 4723 if test $ac_mid -le $ac_hi; then 4724 ac_lo= ac_hi= 4725 break 4726 fi 4727 ac_mid=`expr 2 '*' $ac_mid` 4728fi 4729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4730 done 4731else 4732 echo "$as_me: failed program was:" >&5 4733sed 's/^/| /' conftest.$ac_ext >&5 4734 4735ac_lo= ac_hi= 4736fi 4737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4738fi 4739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4740# Binary search between lo and hi bounds. 4741while test "x$ac_lo" != "x$ac_hi"; do 4742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4743 cat >conftest.$ac_ext <<_ACEOF 4744/* confdefs.h. */ 4745_ACEOF 4746cat confdefs.h >>conftest.$ac_ext 4747cat >>conftest.$ac_ext <<_ACEOF 4748/* end confdefs.h. */ 4749$ac_includes_default 4750int 4751main () 4752{ 4753static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 4754test_array [0] = 0 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760rm -f conftest.$ac_objext 4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4762 (eval $ac_compile) 2>conftest.er1 4763 ac_status=$? 4764 grep -v '^ *+' conftest.er1 >conftest.err 4765 rm -f conftest.er1 4766 cat conftest.err >&5 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } && 4769 { ac_try='test -z "$ac_c_werror_flag" 4770 || test ! -s conftest.err' 4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4772 (eval $ac_try) 2>&5 4773 ac_status=$? 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); }; } && 4776 { ac_try='test -s conftest.$ac_objext' 4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4778 (eval $ac_try) 2>&5 4779 ac_status=$? 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); }; }; then 4782 ac_hi=$ac_mid 4783else 4784 echo "$as_me: failed program was:" >&5 4785sed 's/^/| /' conftest.$ac_ext >&5 4786 4787ac_lo=`expr '(' $ac_mid ')' + 1` 4788fi 4789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4790done 4791case $ac_lo in 4792?*) ac_cv_sizeof_unsigned_long=$ac_lo;; 4793'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 4794See \`config.log' for more details." >&5 4795echo "$as_me: error: cannot compute sizeof (unsigned long), 77 4796See \`config.log' for more details." >&2;} 4797 { (exit 1); exit 1; }; } ;; 4798esac 4799else 4800 if test "$cross_compiling" = yes; then 4801 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4802See \`config.log' for more details." >&5 4803echo "$as_me: error: cannot run test program while cross compiling 4804See \`config.log' for more details." >&2;} 4805 { (exit 1); exit 1; }; } 4806else 4807 cat >conftest.$ac_ext <<_ACEOF 4808/* confdefs.h. */ 4809_ACEOF 4810cat confdefs.h >>conftest.$ac_ext 4811cat >>conftest.$ac_ext <<_ACEOF 4812/* end confdefs.h. */ 4813$ac_includes_default 4814long longval () { return (long) (sizeof (unsigned long)); } 4815unsigned long ulongval () { return (long) (sizeof (unsigned long)); } 4816#include <stdio.h> 4817#include <stdlib.h> 4818int 4819main () 4820{ 4821 4822 FILE *f = fopen ("conftest.val", "w"); 4823 if (! f) 4824 exit (1); 4825 if (((long) (sizeof (unsigned long))) < 0) 4826 { 4827 long i = longval (); 4828 if (i != ((long) (sizeof (unsigned long)))) 4829 exit (1); 4830 fprintf (f, "%ld\n", i); 4831 } 4832 else 4833 { 4834 unsigned long i = ulongval (); 4835 if (i != ((long) (sizeof (unsigned long)))) 4836 exit (1); 4837 fprintf (f, "%lu\n", i); 4838 } 4839 exit (ferror (f) || fclose (f) != 0); 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845rm -f conftest$ac_exeext 4846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4847 (eval $ac_link) 2>&5 4848 ac_status=$? 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4852 (eval $ac_try) 2>&5 4853 ac_status=$? 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); }; }; then 4856 ac_cv_sizeof_unsigned_long=`cat conftest.val` 4857else 4858 echo "$as_me: program exited with status $ac_status" >&5 4859echo "$as_me: failed program was:" >&5 4860sed 's/^/| /' conftest.$ac_ext >&5 4861 4862( exit $ac_status ) 4863{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 4864See \`config.log' for more details." >&5 4865echo "$as_me: error: cannot compute sizeof (unsigned long), 77 4866See \`config.log' for more details." >&2;} 4867 { (exit 1); exit 1; }; } 4868fi 4869rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4870fi 4871fi 4872rm -f conftest.val 4873else 4874 ac_cv_sizeof_unsigned_long=0 4875fi 4876fi 4877echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 4878echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 4879cat >>confdefs.h <<_ACEOF 4880#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 4881_ACEOF 4882 4883 4884echo "$as_me:$LINENO: checking for unsigned long long" >&5 4885echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 4886if test "${ac_cv_type_unsigned_long_long+set}" = set; then 4887 echo $ECHO_N "(cached) $ECHO_C" >&6 4888else 4889 cat >conftest.$ac_ext <<_ACEOF 4890/* confdefs.h. */ 4891_ACEOF 4892cat confdefs.h >>conftest.$ac_ext 4893cat >>conftest.$ac_ext <<_ACEOF 4894/* end confdefs.h. */ 4895$ac_includes_default 4896int 4897main () 4898{ 4899if ((unsigned long long *) 0) 4900 return 0; 4901if (sizeof (unsigned long long)) 4902 return 0; 4903 ; 4904 return 0; 4905} 4906_ACEOF 4907rm -f conftest.$ac_objext 4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4909 (eval $ac_compile) 2>conftest.er1 4910 ac_status=$? 4911 grep -v '^ *+' conftest.er1 >conftest.err 4912 rm -f conftest.er1 4913 cat conftest.err >&5 4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4915 (exit $ac_status); } && 4916 { ac_try='test -z "$ac_c_werror_flag" 4917 || test ! -s conftest.err' 4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4919 (eval $ac_try) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); }; } && 4923 { ac_try='test -s conftest.$ac_objext' 4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4925 (eval $ac_try) 2>&5 4926 ac_status=$? 4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4928 (exit $ac_status); }; }; then 4929 ac_cv_type_unsigned_long_long=yes 4930else 4931 echo "$as_me: failed program was:" >&5 4932sed 's/^/| /' conftest.$ac_ext >&5 4933 4934ac_cv_type_unsigned_long_long=no 4935fi 4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 4939echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 4940 4941echo "$as_me:$LINENO: checking size of unsigned long long" >&5 4942echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6 4943if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then 4944 echo $ECHO_N "(cached) $ECHO_C" >&6 4945else 4946 if test "$ac_cv_type_unsigned_long_long" = yes; then 4947 # The cast to unsigned long works around a bug in the HP C Compiler 4948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4950 # This bug is HP SR number 8606223364. 4951 if test "$cross_compiling" = yes; then 4952 # Depending upon the size, compute the lo and hi bounds. 4953cat >conftest.$ac_ext <<_ACEOF 4954/* confdefs.h. */ 4955_ACEOF 4956cat confdefs.h >>conftest.$ac_ext 4957cat >>conftest.$ac_ext <<_ACEOF 4958/* end confdefs.h. */ 4959$ac_includes_default 4960int 4961main () 4962{ 4963static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)]; 4964test_array [0] = 0 4965 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970rm -f conftest.$ac_objext 4971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4972 (eval $ac_compile) 2>conftest.er1 4973 ac_status=$? 4974 grep -v '^ *+' conftest.er1 >conftest.err 4975 rm -f conftest.er1 4976 cat conftest.err >&5 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); } && 4979 { ac_try='test -z "$ac_c_werror_flag" 4980 || test ! -s conftest.err' 4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4982 (eval $ac_try) 2>&5 4983 ac_status=$? 4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4985 (exit $ac_status); }; } && 4986 { ac_try='test -s conftest.$ac_objext' 4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4988 (eval $ac_try) 2>&5 4989 ac_status=$? 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4991 (exit $ac_status); }; }; then 4992 ac_lo=0 ac_mid=0 4993 while :; do 4994 cat >conftest.$ac_ext <<_ACEOF 4995/* confdefs.h. */ 4996_ACEOF 4997cat confdefs.h >>conftest.$ac_ext 4998cat >>conftest.$ac_ext <<_ACEOF 4999/* end confdefs.h. */ 5000$ac_includes_default 5001int 5002main () 5003{ 5004static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)]; 5005test_array [0] = 0 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext 5012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5013 (eval $ac_compile) 2>conftest.er1 5014 ac_status=$? 5015 grep -v '^ *+' conftest.er1 >conftest.err 5016 rm -f conftest.er1 5017 cat conftest.err >&5 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); } && 5020 { ac_try='test -z "$ac_c_werror_flag" 5021 || test ! -s conftest.err' 5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5023 (eval $ac_try) 2>&5 5024 ac_status=$? 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5026 (exit $ac_status); }; } && 5027 { ac_try='test -s conftest.$ac_objext' 5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5029 (eval $ac_try) 2>&5 5030 ac_status=$? 5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 (exit $ac_status); }; }; then 5033 ac_hi=$ac_mid; break 5034else 5035 echo "$as_me: failed program was:" >&5 5036sed 's/^/| /' conftest.$ac_ext >&5 5037 5038ac_lo=`expr $ac_mid + 1` 5039 if test $ac_lo -le $ac_mid; then 5040 ac_lo= ac_hi= 5041 break 5042 fi 5043 ac_mid=`expr 2 '*' $ac_mid + 1` 5044fi 5045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5046 done 5047else 5048 echo "$as_me: failed program was:" >&5 5049sed 's/^/| /' conftest.$ac_ext >&5 5050 5051cat >conftest.$ac_ext <<_ACEOF 5052/* confdefs.h. */ 5053_ACEOF 5054cat confdefs.h >>conftest.$ac_ext 5055cat >>conftest.$ac_ext <<_ACEOF 5056/* end confdefs.h. */ 5057$ac_includes_default 5058int 5059main () 5060{ 5061static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)]; 5062test_array [0] = 0 5063 5064 ; 5065 return 0; 5066} 5067_ACEOF 5068rm -f conftest.$ac_objext 5069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5070 (eval $ac_compile) 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } && 5077 { ac_try='test -z "$ac_c_werror_flag" 5078 || test ! -s conftest.err' 5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5080 (eval $ac_try) 2>&5 5081 ac_status=$? 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); }; } && 5084 { ac_try='test -s conftest.$ac_objext' 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5086 (eval $ac_try) 2>&5 5087 ac_status=$? 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); }; }; then 5090 ac_hi=-1 ac_mid=-1 5091 while :; do 5092 cat >conftest.$ac_ext <<_ACEOF 5093/* confdefs.h. */ 5094_ACEOF 5095cat confdefs.h >>conftest.$ac_ext 5096cat >>conftest.$ac_ext <<_ACEOF 5097/* end confdefs.h. */ 5098$ac_includes_default 5099int 5100main () 5101{ 5102static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)]; 5103test_array [0] = 0 5104 5105 ; 5106 return 0; 5107} 5108_ACEOF 5109rm -f conftest.$ac_objext 5110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5111 (eval $ac_compile) 2>conftest.er1 5112 ac_status=$? 5113 grep -v '^ *+' conftest.er1 >conftest.err 5114 rm -f conftest.er1 5115 cat conftest.err >&5 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } && 5118 { ac_try='test -z "$ac_c_werror_flag" 5119 || test ! -s conftest.err' 5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5121 (eval $ac_try) 2>&5 5122 ac_status=$? 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5124 (exit $ac_status); }; } && 5125 { ac_try='test -s conftest.$ac_objext' 5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5127 (eval $ac_try) 2>&5 5128 ac_status=$? 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; }; then 5131 ac_lo=$ac_mid; break 5132else 5133 echo "$as_me: failed program was:" >&5 5134sed 's/^/| /' conftest.$ac_ext >&5 5135 5136ac_hi=`expr '(' $ac_mid ')' - 1` 5137 if test $ac_mid -le $ac_hi; then 5138 ac_lo= ac_hi= 5139 break 5140 fi 5141 ac_mid=`expr 2 '*' $ac_mid` 5142fi 5143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5144 done 5145else 5146 echo "$as_me: failed program was:" >&5 5147sed 's/^/| /' conftest.$ac_ext >&5 5148 5149ac_lo= ac_hi= 5150fi 5151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5152fi 5153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5154# Binary search between lo and hi bounds. 5155while test "x$ac_lo" != "x$ac_hi"; do 5156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5157 cat >conftest.$ac_ext <<_ACEOF 5158/* confdefs.h. */ 5159_ACEOF 5160cat confdefs.h >>conftest.$ac_ext 5161cat >>conftest.$ac_ext <<_ACEOF 5162/* end confdefs.h. */ 5163$ac_includes_default 5164int 5165main () 5166{ 5167static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)]; 5168test_array [0] = 0 5169 5170 ; 5171 return 0; 5172} 5173_ACEOF 5174rm -f conftest.$ac_objext 5175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5176 (eval $ac_compile) 2>conftest.er1 5177 ac_status=$? 5178 grep -v '^ *+' conftest.er1 >conftest.err 5179 rm -f conftest.er1 5180 cat conftest.err >&5 5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 (exit $ac_status); } && 5183 { ac_try='test -z "$ac_c_werror_flag" 5184 || test ! -s conftest.err' 5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5186 (eval $ac_try) 2>&5 5187 ac_status=$? 5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5189 (exit $ac_status); }; } && 5190 { ac_try='test -s conftest.$ac_objext' 5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5192 (eval $ac_try) 2>&5 5193 ac_status=$? 5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); }; }; then 5196 ac_hi=$ac_mid 5197else 5198 echo "$as_me: failed program was:" >&5 5199sed 's/^/| /' conftest.$ac_ext >&5 5200 5201ac_lo=`expr '(' $ac_mid ')' + 1` 5202fi 5203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5204done 5205case $ac_lo in 5206?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; 5207'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77 5208See \`config.log' for more details." >&5 5209echo "$as_me: error: cannot compute sizeof (unsigned long long), 77 5210See \`config.log' for more details." >&2;} 5211 { (exit 1); exit 1; }; } ;; 5212esac 5213else 5214 if test "$cross_compiling" = yes; then 5215 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5216See \`config.log' for more details." >&5 5217echo "$as_me: error: cannot run test program while cross compiling 5218See \`config.log' for more details." >&2;} 5219 { (exit 1); exit 1; }; } 5220else 5221 cat >conftest.$ac_ext <<_ACEOF 5222/* confdefs.h. */ 5223_ACEOF 5224cat confdefs.h >>conftest.$ac_ext 5225cat >>conftest.$ac_ext <<_ACEOF 5226/* end confdefs.h. */ 5227$ac_includes_default 5228long longval () { return (long) (sizeof (unsigned long long)); } 5229unsigned long ulongval () { return (long) (sizeof (unsigned long long)); } 5230#include <stdio.h> 5231#include <stdlib.h> 5232int 5233main () 5234{ 5235 5236 FILE *f = fopen ("conftest.val", "w"); 5237 if (! f) 5238 exit (1); 5239 if (((long) (sizeof (unsigned long long))) < 0) 5240 { 5241 long i = longval (); 5242 if (i != ((long) (sizeof (unsigned long long)))) 5243 exit (1); 5244 fprintf (f, "%ld\n", i); 5245 } 5246 else 5247 { 5248 unsigned long i = ulongval (); 5249 if (i != ((long) (sizeof (unsigned long long)))) 5250 exit (1); 5251 fprintf (f, "%lu\n", i); 5252 } 5253 exit (ferror (f) || fclose (f) != 0); 5254 5255 ; 5256 return 0; 5257} 5258_ACEOF 5259rm -f conftest$ac_exeext 5260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5261 (eval $ac_link) 2>&5 5262 ac_status=$? 5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5266 (eval $ac_try) 2>&5 5267 ac_status=$? 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); }; }; then 5270 ac_cv_sizeof_unsigned_long_long=`cat conftest.val` 5271else 5272 echo "$as_me: program exited with status $ac_status" >&5 5273echo "$as_me: failed program was:" >&5 5274sed 's/^/| /' conftest.$ac_ext >&5 5275 5276( exit $ac_status ) 5277{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77 5278See \`config.log' for more details." >&5 5279echo "$as_me: error: cannot compute sizeof (unsigned long long), 77 5280See \`config.log' for more details." >&2;} 5281 { (exit 1); exit 1; }; } 5282fi 5283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5284fi 5285fi 5286rm -f conftest.val 5287else 5288 ac_cv_sizeof_unsigned_long_long=0 5289fi 5290fi 5291echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 5292echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6 5293cat >>confdefs.h <<_ACEOF 5294#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 5295_ACEOF 5296 5297 5298if test "${ac_cv_header_stdint_h+set}" = set; then 5299 echo "$as_me:$LINENO: checking for stdint.h" >&5 5300echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 5301if test "${ac_cv_header_stdint_h+set}" = set; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303fi 5304echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 5305echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 5306else 5307 # Is the header compilable? 5308echo "$as_me:$LINENO: checking stdint.h usability" >&5 5309echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 5310cat >conftest.$ac_ext <<_ACEOF 5311/* confdefs.h. */ 5312_ACEOF 5313cat confdefs.h >>conftest.$ac_ext 5314cat >>conftest.$ac_ext <<_ACEOF 5315/* end confdefs.h. */ 5316$ac_includes_default 5317#include <stdint.h> 5318_ACEOF 5319rm -f conftest.$ac_objext 5320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5321 (eval $ac_compile) 2>conftest.er1 5322 ac_status=$? 5323 grep -v '^ *+' conftest.er1 >conftest.err 5324 rm -f conftest.er1 5325 cat conftest.err >&5 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5327 (exit $ac_status); } && 5328 { ac_try='test -z "$ac_c_werror_flag" 5329 || test ! -s conftest.err' 5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5331 (eval $ac_try) 2>&5 5332 ac_status=$? 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5334 (exit $ac_status); }; } && 5335 { ac_try='test -s conftest.$ac_objext' 5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5337 (eval $ac_try) 2>&5 5338 ac_status=$? 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); }; }; then 5341 ac_header_compiler=yes 5342else 5343 echo "$as_me: failed program was:" >&5 5344sed 's/^/| /' conftest.$ac_ext >&5 5345 5346ac_header_compiler=no 5347fi 5348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5350echo "${ECHO_T}$ac_header_compiler" >&6 5351 5352# Is the header present? 5353echo "$as_me:$LINENO: checking stdint.h presence" >&5 5354echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 5355cat >conftest.$ac_ext <<_ACEOF 5356/* confdefs.h. */ 5357_ACEOF 5358cat confdefs.h >>conftest.$ac_ext 5359cat >>conftest.$ac_ext <<_ACEOF 5360/* end confdefs.h. */ 5361#include <stdint.h> 5362_ACEOF 5363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5365 ac_status=$? 5366 grep -v '^ *+' conftest.er1 >conftest.err 5367 rm -f conftest.er1 5368 cat conftest.err >&5 5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5370 (exit $ac_status); } >/dev/null; then 5371 if test -s conftest.err; then 5372 ac_cpp_err=$ac_c_preproc_warn_flag 5373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5374 else 5375 ac_cpp_err= 5376 fi 5377else 5378 ac_cpp_err=yes 5379fi 5380if test -z "$ac_cpp_err"; then 5381 ac_header_preproc=yes 5382else 5383 echo "$as_me: failed program was:" >&5 5384sed 's/^/| /' conftest.$ac_ext >&5 5385 5386 ac_header_preproc=no 5387fi 5388rm -f conftest.err conftest.$ac_ext 5389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5390echo "${ECHO_T}$ac_header_preproc" >&6 5391 5392# So? What about this header? 5393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5394 yes:no: ) 5395 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 5396echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5397 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 5398echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} 5399 ac_header_preproc=yes 5400 ;; 5401 no:yes:* ) 5402 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 5403echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 5404 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 5405echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 5406 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 5407echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} 5408 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 5409echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} 5410 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 5411echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 5412 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 5413echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} 5414 ( 5415 cat <<\_ASBOX 5416## ------------------------------------------ ## 5417## Report this to the AC_PACKAGE_NAME lists. ## 5418## ------------------------------------------ ## 5419_ASBOX 5420 ) | 5421 sed "s/^/$as_me: WARNING: /" >&2 5422 ;; 5423esac 5424echo "$as_me:$LINENO: checking for stdint.h" >&5 5425echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 5426if test "${ac_cv_header_stdint_h+set}" = set; then 5427 echo $ECHO_N "(cached) $ECHO_C" >&6 5428else 5429 ac_cv_header_stdint_h=$ac_header_preproc 5430fi 5431echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 5432echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 5433 5434fi 5435if test $ac_cv_header_stdint_h = yes; then 5436 have_stdint_h=yes 5437else 5438 have_stdint_h=no 5439fi 5440 5441 5442if test "${ac_cv_header_inttypes_h+set}" = set; then 5443 echo "$as_me:$LINENO: checking for inttypes.h" >&5 5444echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 5445if test "${ac_cv_header_inttypes_h+set}" = set; then 5446 echo $ECHO_N "(cached) $ECHO_C" >&6 5447fi 5448echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 5449echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 5450else 5451 # Is the header compilable? 5452echo "$as_me:$LINENO: checking inttypes.h usability" >&5 5453echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 5454cat >conftest.$ac_ext <<_ACEOF 5455/* confdefs.h. */ 5456_ACEOF 5457cat confdefs.h >>conftest.$ac_ext 5458cat >>conftest.$ac_ext <<_ACEOF 5459/* end confdefs.h. */ 5460$ac_includes_default 5461#include <inttypes.h> 5462_ACEOF 5463rm -f conftest.$ac_objext 5464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5465 (eval $ac_compile) 2>conftest.er1 5466 ac_status=$? 5467 grep -v '^ *+' conftest.er1 >conftest.err 5468 rm -f conftest.er1 5469 cat conftest.err >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); } && 5472 { ac_try='test -z "$ac_c_werror_flag" 5473 || test ! -s conftest.err' 5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); }; } && 5479 { ac_try='test -s conftest.$ac_objext' 5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5481 (eval $ac_try) 2>&5 5482 ac_status=$? 5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5484 (exit $ac_status); }; }; then 5485 ac_header_compiler=yes 5486else 5487 echo "$as_me: failed program was:" >&5 5488sed 's/^/| /' conftest.$ac_ext >&5 5489 5490ac_header_compiler=no 5491fi 5492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5494echo "${ECHO_T}$ac_header_compiler" >&6 5495 5496# Is the header present? 5497echo "$as_me:$LINENO: checking inttypes.h presence" >&5 5498echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 5499cat >conftest.$ac_ext <<_ACEOF 5500/* confdefs.h. */ 5501_ACEOF 5502cat confdefs.h >>conftest.$ac_ext 5503cat >>conftest.$ac_ext <<_ACEOF 5504/* end confdefs.h. */ 5505#include <inttypes.h> 5506_ACEOF 5507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5509 ac_status=$? 5510 grep -v '^ *+' conftest.er1 >conftest.err 5511 rm -f conftest.er1 5512 cat conftest.err >&5 5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } >/dev/null; then 5515 if test -s conftest.err; then 5516 ac_cpp_err=$ac_c_preproc_warn_flag 5517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5518 else 5519 ac_cpp_err= 5520 fi 5521else 5522 ac_cpp_err=yes 5523fi 5524if test -z "$ac_cpp_err"; then 5525 ac_header_preproc=yes 5526else 5527 echo "$as_me: failed program was:" >&5 5528sed 's/^/| /' conftest.$ac_ext >&5 5529 5530 ac_header_preproc=no 5531fi 5532rm -f conftest.err conftest.$ac_ext 5533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5534echo "${ECHO_T}$ac_header_preproc" >&6 5535 5536# So? What about this header? 5537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5538 yes:no: ) 5539 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 5540echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5541 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 5542echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} 5543 ac_header_preproc=yes 5544 ;; 5545 no:yes:* ) 5546 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 5547echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 5548 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 5549echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 5550 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 5551echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} 5552 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 5553echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} 5554 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 5555echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 5556 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 5557echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} 5558 ( 5559 cat <<\_ASBOX 5560## ------------------------------------------ ## 5561## Report this to the AC_PACKAGE_NAME lists. ## 5562## ------------------------------------------ ## 5563_ASBOX 5564 ) | 5565 sed "s/^/$as_me: WARNING: /" >&2 5566 ;; 5567esac 5568echo "$as_me:$LINENO: checking for inttypes.h" >&5 5569echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 5570if test "${ac_cv_header_inttypes_h+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 ac_cv_header_inttypes_h=$ac_header_preproc 5574fi 5575echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 5576echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 5577 5578fi 5579if test $ac_cv_header_inttypes_h = yes; then 5580 have_inttypes_h=yes 5581else 5582 have_inttypes_h=no 5583fi 5584 5585 5586if test "$have_stdint_h" = "no" && test "$have_inttypes_h" = "no"; then 5587 echo no system stdint.h or inttypes.h. using stdint.h.in instead. 5588 cp stdint.h.in stdint.h 5589 5590cat >>confdefs.h <<\_ACEOF 5591#define HAVE_STDINT_H 5592_ACEOF 5593 5594fi 5595 5596 5597for ac_header in stdlib.h 5598do 5599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5600if eval "test \"\${$as_ac_Header+set}\" = set"; then 5601 echo "$as_me:$LINENO: checking for $ac_header" >&5 5602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5603if eval "test \"\${$as_ac_Header+set}\" = set"; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605fi 5606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5608else 5609 # Is the header compilable? 5610echo "$as_me:$LINENO: checking $ac_header usability" >&5 5611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5612cat >conftest.$ac_ext <<_ACEOF 5613/* confdefs.h. */ 5614_ACEOF 5615cat confdefs.h >>conftest.$ac_ext 5616cat >>conftest.$ac_ext <<_ACEOF 5617/* end confdefs.h. */ 5618$ac_includes_default 5619#include <$ac_header> 5620_ACEOF 5621rm -f conftest.$ac_objext 5622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5623 (eval $ac_compile) 2>conftest.er1 5624 ac_status=$? 5625 grep -v '^ *+' conftest.er1 >conftest.err 5626 rm -f conftest.er1 5627 cat conftest.err >&5 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); } && 5630 { ac_try='test -z "$ac_c_werror_flag" 5631 || test ! -s conftest.err' 5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5633 (eval $ac_try) 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); }; } && 5637 { ac_try='test -s conftest.$ac_objext' 5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5639 (eval $ac_try) 2>&5 5640 ac_status=$? 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; }; then 5643 ac_header_compiler=yes 5644else 5645 echo "$as_me: failed program was:" >&5 5646sed 's/^/| /' conftest.$ac_ext >&5 5647 5648ac_header_compiler=no 5649fi 5650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5652echo "${ECHO_T}$ac_header_compiler" >&6 5653 5654# Is the header present? 5655echo "$as_me:$LINENO: checking $ac_header presence" >&5 5656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5657cat >conftest.$ac_ext <<_ACEOF 5658/* confdefs.h. */ 5659_ACEOF 5660cat confdefs.h >>conftest.$ac_ext 5661cat >>conftest.$ac_ext <<_ACEOF 5662/* end confdefs.h. */ 5663#include <$ac_header> 5664_ACEOF 5665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5667 ac_status=$? 5668 grep -v '^ *+' conftest.er1 >conftest.err 5669 rm -f conftest.er1 5670 cat conftest.err >&5 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); } >/dev/null; then 5673 if test -s conftest.err; then 5674 ac_cpp_err=$ac_c_preproc_warn_flag 5675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5676 else 5677 ac_cpp_err= 5678 fi 5679else 5680 ac_cpp_err=yes 5681fi 5682if test -z "$ac_cpp_err"; then 5683 ac_header_preproc=yes 5684else 5685 echo "$as_me: failed program was:" >&5 5686sed 's/^/| /' conftest.$ac_ext >&5 5687 5688 ac_header_preproc=no 5689fi 5690rm -f conftest.err conftest.$ac_ext 5691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5692echo "${ECHO_T}$ac_header_preproc" >&6 5693 5694# So? What about this header? 5695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5696 yes:no: ) 5697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5701 ac_header_preproc=yes 5702 ;; 5703 no:yes:* ) 5704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5716 ( 5717 cat <<\_ASBOX 5718## ------------------------------------------ ## 5719## Report this to the AC_PACKAGE_NAME lists. ## 5720## ------------------------------------------ ## 5721_ASBOX 5722 ) | 5723 sed "s/^/$as_me: WARNING: /" >&2 5724 ;; 5725esac 5726echo "$as_me:$LINENO: checking for $ac_header" >&5 5727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5728if eval "test \"\${$as_ac_Header+set}\" = set"; then 5729 echo $ECHO_N "(cached) $ECHO_C" >&6 5730else 5731 eval "$as_ac_Header=\$ac_header_preproc" 5732fi 5733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5735 5736fi 5737if test `eval echo '${'$as_ac_Header'}'` = yes; then 5738 cat >>confdefs.h <<_ACEOF 5739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5740_ACEOF 5741 5742fi 5743 5744done 5745 5746echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 5747echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 5748if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 5749 echo $ECHO_N "(cached) $ECHO_C" >&6 5750else 5751 if test "$cross_compiling" = yes; then 5752 ac_cv_func_malloc_0_nonnull=no 5753else 5754 cat >conftest.$ac_ext <<_ACEOF 5755/* confdefs.h. */ 5756_ACEOF 5757cat confdefs.h >>conftest.$ac_ext 5758cat >>conftest.$ac_ext <<_ACEOF 5759/* end confdefs.h. */ 5760#if STDC_HEADERS || HAVE_STDLIB_H 5761# include <stdlib.h> 5762#else 5763char *malloc (); 5764#endif 5765 5766int 5767main () 5768{ 5769exit (malloc (0) ? 0 : 1); 5770 ; 5771 return 0; 5772} 5773_ACEOF 5774rm -f conftest$ac_exeext 5775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5776 (eval $ac_link) 2>&5 5777 ac_status=$? 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5781 (eval $ac_try) 2>&5 5782 ac_status=$? 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); }; }; then 5785 ac_cv_func_malloc_0_nonnull=yes 5786else 5787 echo "$as_me: program exited with status $ac_status" >&5 5788echo "$as_me: failed program was:" >&5 5789sed 's/^/| /' conftest.$ac_ext >&5 5790 5791( exit $ac_status ) 5792ac_cv_func_malloc_0_nonnull=no 5793fi 5794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5795fi 5796fi 5797echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 5798echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 5799if test $ac_cv_func_malloc_0_nonnull = yes; then 5800 5801cat >>confdefs.h <<\_ACEOF 5802#define HAVE_MALLOC 1 5803_ACEOF 5804 5805else 5806 cat >>confdefs.h <<\_ACEOF 5807#define HAVE_MALLOC 0 5808_ACEOF 5809 5810 case $LIBOBJS in 5811 "malloc.$ac_objext" | \ 5812 *" malloc.$ac_objext" | \ 5813 "malloc.$ac_objext "* | \ 5814 *" malloc.$ac_objext "* ) ;; 5815 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 5816esac 5817 5818 5819cat >>confdefs.h <<\_ACEOF 5820#define malloc rpl_malloc 5821_ACEOF 5822 5823fi 5824 5825 5826 5827echo "$as_me:$LINENO: checking for strerror" >&5 5828echo $ECHO_N "checking for strerror... $ECHO_C" >&6 5829if test "${ac_cv_func_strerror+set}" = set; then 5830 echo $ECHO_N "(cached) $ECHO_C" >&6 5831else 5832 cat >conftest.$ac_ext <<_ACEOF 5833/* confdefs.h. */ 5834_ACEOF 5835cat confdefs.h >>conftest.$ac_ext 5836cat >>conftest.$ac_ext <<_ACEOF 5837/* end confdefs.h. */ 5838/* Define strerror to an innocuous variant, in case <limits.h> declares strerror. 5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5840#define strerror innocuous_strerror 5841 5842/* System header to define __stub macros and hopefully few prototypes, 5843 which can conflict with char strerror (); below. 5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5845 <limits.h> exists even on freestanding compilers. */ 5846 5847#ifdef __STDC__ 5848# include <limits.h> 5849#else 5850# include <assert.h> 5851#endif 5852 5853#undef strerror 5854 5855/* Override any gcc2 internal prototype to avoid an error. */ 5856#ifdef __cplusplus 5857extern "C" 5858{ 5859#endif 5860/* We use char because int might match the return type of a gcc2 5861 builtin and then its argument prototype would still apply. */ 5862char strerror (); 5863/* The GNU C library defines this for functions which it implements 5864 to always fail with ENOSYS. Some functions are actually named 5865 something starting with __ and the normal name is an alias. */ 5866#if defined (__stub_strerror) || defined (__stub___strerror) 5867choke me 5868#else 5869char (*f) () = strerror; 5870#endif 5871#ifdef __cplusplus 5872} 5873#endif 5874 5875int 5876main () 5877{ 5878return f != strerror; 5879 ; 5880 return 0; 5881} 5882_ACEOF 5883rm -f conftest.$ac_objext conftest$ac_exeext 5884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5885 (eval $ac_link) 2>conftest.er1 5886 ac_status=$? 5887 grep -v '^ *+' conftest.er1 >conftest.err 5888 rm -f conftest.er1 5889 cat conftest.err >&5 5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5891 (exit $ac_status); } && 5892 { ac_try='test -z "$ac_c_werror_flag" 5893 || test ! -s conftest.err' 5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5895 (eval $ac_try) 2>&5 5896 ac_status=$? 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5898 (exit $ac_status); }; } && 5899 { ac_try='test -s conftest$ac_exeext' 5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5901 (eval $ac_try) 2>&5 5902 ac_status=$? 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); }; }; then 5905 ac_cv_func_strerror=yes 5906else 5907 echo "$as_me: failed program was:" >&5 5908sed 's/^/| /' conftest.$ac_ext >&5 5909 5910ac_cv_func_strerror=no 5911fi 5912rm -f conftest.err conftest.$ac_objext \ 5913 conftest$ac_exeext conftest.$ac_ext 5914fi 5915echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 5916echo "${ECHO_T}$ac_cv_func_strerror" >&6 5917if test $ac_cv_func_strerror = yes; then 5918 : 5919else 5920 cat <<ELCEOF 5921 5922 Your system doesn't have strerror. exiting. 5923 5924ELCEOF 5925exit 1 5926 5927fi 5928 5929 5930echo "$as_me:$LINENO: checking for system dictionary" >&5 5931echo $ECHO_N "checking for system dictionary... $ECHO_C" >&6 5932system_dict=no 5933for f in /usr/dict/words /usr/share/dict/words; do 5934 if test -r $f; then 5935 system_dict=$f 5936 break 5937 fi 5938done 5939echo "$as_me:$LINENO: result: $system_dict" >&5 5940echo "${ECHO_T}$system_dict" >&6 5941if test "$system_dict" = "no"; then 5942 system_dict="no_dictionary_found" 5943fi 5944 5945cat >>confdefs.h <<_ACEOF 5946#define SYSTEM_DICTIONARY "$system_dict" 5947_ACEOF 5948 5949 5950# Check whether --enable-largefile or --disable-largefile was given. 5951if test "${enable_largefile+set}" = set; then 5952 enableval="$enable_largefile" 5953 5954fi; 5955if test "$enable_largefile" != no; then 5956 5957 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5958echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 5959if test "${ac_cv_sys_largefile_CC+set}" = set; then 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 5961else 5962 ac_cv_sys_largefile_CC=no 5963 if test "$GCC" != yes; then 5964 ac_save_CC=$CC 5965 while :; do 5966 # IRIX 6.2 and later do not support large files by default, 5967 # so use the C compiler's -n32 option if that helps. 5968 cat >conftest.$ac_ext <<_ACEOF 5969/* confdefs.h. */ 5970_ACEOF 5971cat confdefs.h >>conftest.$ac_ext 5972cat >>conftest.$ac_ext <<_ACEOF 5973/* end confdefs.h. */ 5974#include <sys/types.h> 5975 /* Check that off_t can represent 2**63 - 1 correctly. 5976 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5977 since some C++ compilers masquerading as C compilers 5978 incorrectly reject 9223372036854775807. */ 5979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5981 && LARGE_OFF_T % 2147483647 == 1) 5982 ? 1 : -1]; 5983int 5984main () 5985{ 5986 5987 ; 5988 return 0; 5989} 5990_ACEOF 5991 rm -f conftest.$ac_objext 5992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5993 (eval $ac_compile) 2>conftest.er1 5994 ac_status=$? 5995 grep -v '^ *+' conftest.er1 >conftest.err 5996 rm -f conftest.er1 5997 cat conftest.err >&5 5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); } && 6000 { ac_try='test -z "$ac_c_werror_flag" 6001 || test ! -s conftest.err' 6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6003 (eval $ac_try) 2>&5 6004 ac_status=$? 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); }; } && 6007 { ac_try='test -s conftest.$ac_objext' 6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6009 (eval $ac_try) 2>&5 6010 ac_status=$? 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); }; }; then 6013 break 6014else 6015 echo "$as_me: failed program was:" >&5 6016sed 's/^/| /' conftest.$ac_ext >&5 6017 6018fi 6019rm -f conftest.err conftest.$ac_objext 6020 CC="$CC -n32" 6021 rm -f conftest.$ac_objext 6022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6023 (eval $ac_compile) 2>conftest.er1 6024 ac_status=$? 6025 grep -v '^ *+' conftest.er1 >conftest.err 6026 rm -f conftest.er1 6027 cat conftest.err >&5 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } && 6030 { ac_try='test -z "$ac_c_werror_flag" 6031 || test ! -s conftest.err' 6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6033 (eval $ac_try) 2>&5 6034 ac_status=$? 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); }; } && 6037 { ac_try='test -s conftest.$ac_objext' 6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6039 (eval $ac_try) 2>&5 6040 ac_status=$? 6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6042 (exit $ac_status); }; }; then 6043 ac_cv_sys_largefile_CC=' -n32'; break 6044else 6045 echo "$as_me: failed program was:" >&5 6046sed 's/^/| /' conftest.$ac_ext >&5 6047 6048fi 6049rm -f conftest.err conftest.$ac_objext 6050 break 6051 done 6052 CC=$ac_save_CC 6053 rm -f conftest.$ac_ext 6054 fi 6055fi 6056echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 6057echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 6058 if test "$ac_cv_sys_largefile_CC" != no; then 6059 CC=$CC$ac_cv_sys_largefile_CC 6060 fi 6061 6062 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6063echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 6064if test "${ac_cv_sys_file_offset_bits+set}" = set; then 6065 echo $ECHO_N "(cached) $ECHO_C" >&6 6066else 6067 while :; do 6068 ac_cv_sys_file_offset_bits=no 6069 cat >conftest.$ac_ext <<_ACEOF 6070/* confdefs.h. */ 6071_ACEOF 6072cat confdefs.h >>conftest.$ac_ext 6073cat >>conftest.$ac_ext <<_ACEOF 6074/* end confdefs.h. */ 6075#include <sys/types.h> 6076 /* Check that off_t can represent 2**63 - 1 correctly. 6077 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6078 since some C++ compilers masquerading as C compilers 6079 incorrectly reject 9223372036854775807. */ 6080#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6082 && LARGE_OFF_T % 2147483647 == 1) 6083 ? 1 : -1]; 6084int 6085main () 6086{ 6087 6088 ; 6089 return 0; 6090} 6091_ACEOF 6092rm -f conftest.$ac_objext 6093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6094 (eval $ac_compile) 2>conftest.er1 6095 ac_status=$? 6096 grep -v '^ *+' conftest.er1 >conftest.err 6097 rm -f conftest.er1 6098 cat conftest.err >&5 6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6100 (exit $ac_status); } && 6101 { ac_try='test -z "$ac_c_werror_flag" 6102 || test ! -s conftest.err' 6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6104 (eval $ac_try) 2>&5 6105 ac_status=$? 6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6107 (exit $ac_status); }; } && 6108 { ac_try='test -s conftest.$ac_objext' 6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6110 (eval $ac_try) 2>&5 6111 ac_status=$? 6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6113 (exit $ac_status); }; }; then 6114 break 6115else 6116 echo "$as_me: failed program was:" >&5 6117sed 's/^/| /' conftest.$ac_ext >&5 6118 6119fi 6120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6121 cat >conftest.$ac_ext <<_ACEOF 6122/* confdefs.h. */ 6123_ACEOF 6124cat confdefs.h >>conftest.$ac_ext 6125cat >>conftest.$ac_ext <<_ACEOF 6126/* end confdefs.h. */ 6127#define _FILE_OFFSET_BITS 64 6128#include <sys/types.h> 6129 /* Check that off_t can represent 2**63 - 1 correctly. 6130 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6131 since some C++ compilers masquerading as C compilers 6132 incorrectly reject 9223372036854775807. */ 6133#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6135 && LARGE_OFF_T % 2147483647 == 1) 6136 ? 1 : -1]; 6137int 6138main () 6139{ 6140 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest.$ac_objext 6146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6147 (eval $ac_compile) 2>conftest.er1 6148 ac_status=$? 6149 grep -v '^ *+' conftest.er1 >conftest.err 6150 rm -f conftest.er1 6151 cat conftest.err >&5 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); } && 6154 { ac_try='test -z "$ac_c_werror_flag" 6155 || test ! -s conftest.err' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; } && 6161 { ac_try='test -s conftest.$ac_objext' 6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6163 (eval $ac_try) 2>&5 6164 ac_status=$? 6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 (exit $ac_status); }; }; then 6167 ac_cv_sys_file_offset_bits=64; break 6168else 6169 echo "$as_me: failed program was:" >&5 6170sed 's/^/| /' conftest.$ac_ext >&5 6171 6172fi 6173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6174 break 6175done 6176fi 6177echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 6178echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 6179if test "$ac_cv_sys_file_offset_bits" != no; then 6180 6181cat >>confdefs.h <<_ACEOF 6182#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6183_ACEOF 6184 6185fi 6186rm -f conftest* 6187 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 6188echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 6189if test "${ac_cv_sys_large_files+set}" = set; then 6190 echo $ECHO_N "(cached) $ECHO_C" >&6 6191else 6192 while :; do 6193 ac_cv_sys_large_files=no 6194 cat >conftest.$ac_ext <<_ACEOF 6195/* confdefs.h. */ 6196_ACEOF 6197cat confdefs.h >>conftest.$ac_ext 6198cat >>conftest.$ac_ext <<_ACEOF 6199/* end confdefs.h. */ 6200#include <sys/types.h> 6201 /* Check that off_t can represent 2**63 - 1 correctly. 6202 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6203 since some C++ compilers masquerading as C compilers 6204 incorrectly reject 9223372036854775807. */ 6205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6207 && LARGE_OFF_T % 2147483647 == 1) 6208 ? 1 : -1]; 6209int 6210main () 6211{ 6212 6213 ; 6214 return 0; 6215} 6216_ACEOF 6217rm -f conftest.$ac_objext 6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6219 (eval $ac_compile) 2>conftest.er1 6220 ac_status=$? 6221 grep -v '^ *+' conftest.er1 >conftest.err 6222 rm -f conftest.er1 6223 cat conftest.err >&5 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6225 (exit $ac_status); } && 6226 { ac_try='test -z "$ac_c_werror_flag" 6227 || test ! -s conftest.err' 6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6229 (eval $ac_try) 2>&5 6230 ac_status=$? 6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6232 (exit $ac_status); }; } && 6233 { ac_try='test -s conftest.$ac_objext' 6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6235 (eval $ac_try) 2>&5 6236 ac_status=$? 6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6238 (exit $ac_status); }; }; then 6239 break 6240else 6241 echo "$as_me: failed program was:" >&5 6242sed 's/^/| /' conftest.$ac_ext >&5 6243 6244fi 6245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6246 cat >conftest.$ac_ext <<_ACEOF 6247/* confdefs.h. */ 6248_ACEOF 6249cat confdefs.h >>conftest.$ac_ext 6250cat >>conftest.$ac_ext <<_ACEOF 6251/* end confdefs.h. */ 6252#define _LARGE_FILES 1 6253#include <sys/types.h> 6254 /* Check that off_t can represent 2**63 - 1 correctly. 6255 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6256 since some C++ compilers masquerading as C compilers 6257 incorrectly reject 9223372036854775807. */ 6258#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6260 && LARGE_OFF_T % 2147483647 == 1) 6261 ? 1 : -1]; 6262int 6263main () 6264{ 6265 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270rm -f conftest.$ac_objext 6271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6272 (eval $ac_compile) 2>conftest.er1 6273 ac_status=$? 6274 grep -v '^ *+' conftest.er1 >conftest.err 6275 rm -f conftest.er1 6276 cat conftest.err >&5 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 (exit $ac_status); } && 6279 { ac_try='test -z "$ac_c_werror_flag" 6280 || test ! -s conftest.err' 6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6282 (eval $ac_try) 2>&5 6283 ac_status=$? 6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6285 (exit $ac_status); }; } && 6286 { ac_try='test -s conftest.$ac_objext' 6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6288 (eval $ac_try) 2>&5 6289 ac_status=$? 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6291 (exit $ac_status); }; }; then 6292 ac_cv_sys_large_files=1; break 6293else 6294 echo "$as_me: failed program was:" >&5 6295sed 's/^/| /' conftest.$ac_ext >&5 6296 6297fi 6298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6299 break 6300done 6301fi 6302echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 6303echo "${ECHO_T}$ac_cv_sys_large_files" >&6 6304if test "$ac_cv_sys_large_files" != no; then 6305 6306cat >>confdefs.h <<_ACEOF 6307#define _LARGE_FILES $ac_cv_sys_large_files 6308_ACEOF 6309 6310fi 6311rm -f conftest* 6312fi 6313 6314 6315# Check whether --enable-debug or --disable-debug was given. 6316if test "${enable_debug+set}" = set; then 6317 enableval="$enable_debug" 6318 6319cat >>confdefs.h <<\_ACEOF 6320#define DEBUG 6321_ACEOF 6322 6323fi; 6324 6325 6326# Check whether --with-leakfind or --without-leakfind was given. 6327if test "${with_leakfind+set}" = set; then 6328 withval="$with_leakfind" 6329 6330cat >>confdefs.h <<\_ACEOF 6331#define ELC_FIND_LEAKS 6332_ACEOF 6333 6334fi; 6335if test "$with_leakfind" != ""; then 6336 LIBS="$LIBS -lgc" 6337 CPPFLAGS="$CPPFLAGS -I$with_leakfind" 6338 LDFLAGS="$LDFLAGS -L$with_leakfind" 6339fi 6340 6341if test "$enable_debug" != ""; then 6342 STRIP= 6343else 6344 STRIP=-s 6345fi 6346 6347 6348 6349 6350 6351 6352 6353 ac_config_files="$ac_config_files Makefile" 6354cat >confcache <<\_ACEOF 6355# This file is a shell script that caches the results of configure 6356# tests run on this system so they can be shared between configure 6357# scripts and configure runs, see configure's option --config-cache. 6358# It is not useful on other systems. If it contains results you don't 6359# want to keep, you may remove or edit it. 6360# 6361# config.status only pays attention to the cache file if you give it 6362# the --recheck option to rerun configure. 6363# 6364# `ac_cv_env_foo' variables (set or unset) will be overridden when 6365# loading this file, other *unset* `ac_cv_foo' will be assigned the 6366# following values. 6367 6368_ACEOF 6369 6370# The following way of writing the cache mishandles newlines in values, 6371# but we know of no workaround that is simple, portable, and efficient. 6372# So, don't put newlines in cache variables' values. 6373# Ultrix sh set writes to stderr and can't be redirected directly, 6374# and sets the high bit in the cache file unless we assign to the vars. 6375{ 6376 (set) 2>&1 | 6377 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6378 *ac_space=\ *) 6379 # `set' does not quote correctly, so add quotes (double-quote 6380 # substitution turns \\\\ into \\, and sed turns \\ into \). 6381 sed -n \ 6382 "s/'/'\\\\''/g; 6383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6384 ;; 6385 *) 6386 # `set' quotes correctly as required by POSIX, so do not add quotes. 6387 sed -n \ 6388 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6389 ;; 6390 esac; 6391} | 6392 sed ' 6393 t clear 6394 : clear 6395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6396 t end 6397 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6398 : end' >>confcache 6399if diff $cache_file confcache >/dev/null 2>&1; then :; else 6400 if test -w $cache_file; then 6401 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6402 cat confcache >$cache_file 6403 else 6404 echo "not updating unwritable cache $cache_file" 6405 fi 6406fi 6407rm -f confcache 6408 6409test "x$prefix" = xNONE && prefix=$ac_default_prefix 6410# Let make expand exec_prefix. 6411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6412 6413# VPATH may cause trouble with some makes, so we remove $(srcdir), 6414# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6415# trailing colons and then remove the whole line if VPATH becomes empty 6416# (actually we leave an empty line to preserve line numbers). 6417if test "x$srcdir" = x.; then 6418 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6419s/:*\$(srcdir):*/:/; 6420s/:*\${srcdir}:*/:/; 6421s/:*@srcdir@:*/:/; 6422s/^\([^=]*=[ ]*\):*/\1/; 6423s/:*$//; 6424s/^[^=]*=[ ]*$//; 6425}' 6426fi 6427 6428DEFS=-DHAVE_CONFIG_H 6429 6430ac_libobjs= 6431ac_ltlibobjs= 6432for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6433 # 1. Remove the extension, and $U if already installed. 6434 ac_i=`echo "$ac_i" | 6435 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6436 # 2. Add them. 6437 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6438 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6439done 6440LIBOBJS=$ac_libobjs 6441 6442LTLIBOBJS=$ac_ltlibobjs 6443 6444 6445 6446: ${CONFIG_STATUS=./config.status} 6447ac_clean_files_save=$ac_clean_files 6448ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6449{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6450echo "$as_me: creating $CONFIG_STATUS" >&6;} 6451cat >$CONFIG_STATUS <<_ACEOF 6452#! $SHELL 6453# Generated by $as_me. 6454# Run this file to recreate the current configuration. 6455# Compiler output produced by configure, useful for debugging 6456# configure, is in config.log if it exists. 6457 6458debug=false 6459ac_cs_recheck=false 6460ac_cs_silent=false 6461SHELL=\${CONFIG_SHELL-$SHELL} 6462_ACEOF 6463 6464cat >>$CONFIG_STATUS <<\_ACEOF 6465## --------------------- ## 6466## M4sh Initialization. ## 6467## --------------------- ## 6468 6469# Be Bourne compatible 6470if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6471 emulate sh 6472 NULLCMD=: 6473 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6474 # is contrary to our usage. Disable this feature. 6475 alias -g '${1+"$@"}'='"$@"' 6476elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 6477 set -o posix 6478fi 6479DUALCASE=1; export DUALCASE # for MKS sh 6480 6481# Support unset when possible. 6482if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6483 as_unset=unset 6484else 6485 as_unset=false 6486fi 6487 6488 6489# Work around bugs in pre-3.0 UWIN ksh. 6490$as_unset ENV MAIL MAILPATH 6491PS1='$ ' 6492PS2='> ' 6493PS4='+ ' 6494 6495# NLS nuisances. 6496for as_var in \ 6497 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6498 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6499 LC_TELEPHONE LC_TIME 6500do 6501 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6502 eval $as_var=C; export $as_var 6503 else 6504 $as_unset $as_var 6505 fi 6506done 6507 6508# Required to use basename. 6509if expr a : '\(a\)' >/dev/null 2>&1; then 6510 as_expr=expr 6511else 6512 as_expr=false 6513fi 6514 6515if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6516 as_basename=basename 6517else 6518 as_basename=false 6519fi 6520 6521 6522# Name of the executable. 6523as_me=`$as_basename "$0" || 6524$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6525 X"$0" : 'X\(//\)$' \| \ 6526 X"$0" : 'X\(/\)$' \| \ 6527 . : '\(.\)' 2>/dev/null || 6528echo X/"$0" | 6529 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6530 /^X\/\(\/\/\)$/{ s//\1/; q; } 6531 /^X\/\(\/\).*/{ s//\1/; q; } 6532 s/.*/./; q'` 6533 6534 6535# PATH needs CR, and LINENO needs CR and PATH. 6536# Avoid depending upon Character Ranges. 6537as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6538as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6539as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6540as_cr_digits='0123456789' 6541as_cr_alnum=$as_cr_Letters$as_cr_digits 6542 6543# The user is always right. 6544if test "${PATH_SEPARATOR+set}" != set; then 6545 echo "#! /bin/sh" >conf$$.sh 6546 echo "exit 0" >>conf$$.sh 6547 chmod +x conf$$.sh 6548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6549 PATH_SEPARATOR=';' 6550 else 6551 PATH_SEPARATOR=: 6552 fi 6553 rm -f conf$$.sh 6554fi 6555 6556 6557 as_lineno_1=$LINENO 6558 as_lineno_2=$LINENO 6559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6560 test "x$as_lineno_1" != "x$as_lineno_2" && 6561 test "x$as_lineno_3" = "x$as_lineno_2" || { 6562 # Find who we are. Look in the path if we contain no path at all 6563 # relative or not. 6564 case $0 in 6565 *[\\/]* ) as_myself=$0 ;; 6566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6572done 6573 6574 ;; 6575 esac 6576 # We did not find ourselves, most probably we were run as `sh COMMAND' 6577 # in which case we are not to be found in the path. 6578 if test "x$as_myself" = x; then 6579 as_myself=$0 6580 fi 6581 if test ! -f "$as_myself"; then 6582 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6583echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6584 { (exit 1); exit 1; }; } 6585 fi 6586 case $CONFIG_SHELL in 6587 '') 6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6589for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6590do 6591 IFS=$as_save_IFS 6592 test -z "$as_dir" && as_dir=. 6593 for as_base in sh bash ksh sh5; do 6594 case $as_dir in 6595 /*) 6596 if ("$as_dir/$as_base" -c ' 6597 as_lineno_1=$LINENO 6598 as_lineno_2=$LINENO 6599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6600 test "x$as_lineno_1" != "x$as_lineno_2" && 6601 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6602 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6603 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6604 CONFIG_SHELL=$as_dir/$as_base 6605 export CONFIG_SHELL 6606 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6607 fi;; 6608 esac 6609 done 6610done 6611;; 6612 esac 6613 6614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6615 # uniformly replaced by the line number. The first 'sed' inserts a 6616 # line-number line before each line; the second 'sed' does the real 6617 # work. The second script uses 'N' to pair each line-number line 6618 # with the numbered line, and appends trailing '-' during 6619 # substitution so that $LINENO is not a special case at line end. 6620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6621 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6622 sed '=' <$as_myself | 6623 sed ' 6624 N 6625 s,$,-, 6626 : loop 6627 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6628 t loop 6629 s,-$,, 6630 s,^['$as_cr_digits']*\n,, 6631 ' >$as_me.lineno && 6632 chmod +x $as_me.lineno || 6633 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6634echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6635 { (exit 1); exit 1; }; } 6636 6637 # Don't try to exec as it changes $[0], causing all sort of problems 6638 # (the dirname of $[0] is not the place where we might find the 6639 # original and so on. Autoconf is especially sensible to this). 6640 . ./$as_me.lineno 6641 # Exit status is that of the last command. 6642 exit 6643} 6644 6645 6646case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6647 *c*,-n*) ECHO_N= ECHO_C=' 6648' ECHO_T=' ' ;; 6649 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6650 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6651esac 6652 6653if expr a : '\(a\)' >/dev/null 2>&1; then 6654 as_expr=expr 6655else 6656 as_expr=false 6657fi 6658 6659rm -f conf$$ conf$$.exe conf$$.file 6660echo >conf$$.file 6661if ln -s conf$$.file conf$$ 2>/dev/null; then 6662 # We could just check for DJGPP; but this test a) works b) is more generic 6663 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6664 if test -f conf$$.exe; then 6665 # Don't use ln at all; we don't have any links 6666 as_ln_s='cp -p' 6667 else 6668 as_ln_s='ln -s' 6669 fi 6670elif ln conf$$.file conf$$ 2>/dev/null; then 6671 as_ln_s=ln 6672else 6673 as_ln_s='cp -p' 6674fi 6675rm -f conf$$ conf$$.exe conf$$.file 6676 6677if mkdir -p . 2>/dev/null; then 6678 as_mkdir_p=: 6679else 6680 test -d ./-p && rmdir ./-p 6681 as_mkdir_p=false 6682fi 6683 6684as_executable_p="test -f" 6685 6686# Sed expression to map a string onto a valid CPP name. 6687as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6688 6689# Sed expression to map a string onto a valid variable name. 6690as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6691 6692 6693# IFS 6694# We need space, tab and new line, in precisely that order. 6695as_nl=' 6696' 6697IFS=" $as_nl" 6698 6699# CDPATH. 6700$as_unset CDPATH 6701 6702exec 6>&1 6703 6704# Open the log real soon, to keep \$[0] and so on meaningful, and to 6705# report actual input values of CONFIG_FILES etc. instead of their 6706# values after options handling. Logging --version etc. is OK. 6707exec 5>>config.log 6708{ 6709 echo 6710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6711## Running $as_me. ## 6712_ASBOX 6713} >&5 6714cat >&5 <<_CSEOF 6715 6716This file was extended by $as_me, which was 6717generated by GNU Autoconf 2.59. Invocation command line was 6718 6719 CONFIG_FILES = $CONFIG_FILES 6720 CONFIG_HEADERS = $CONFIG_HEADERS 6721 CONFIG_LINKS = $CONFIG_LINKS 6722 CONFIG_COMMANDS = $CONFIG_COMMANDS 6723 $ $0 $@ 6724 6725_CSEOF 6726echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6727echo >&5 6728_ACEOF 6729 6730# Files that config.status was made for. 6731if test -n "$ac_config_files"; then 6732 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6733fi 6734 6735if test -n "$ac_config_headers"; then 6736 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6737fi 6738 6739if test -n "$ac_config_links"; then 6740 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6741fi 6742 6743if test -n "$ac_config_commands"; then 6744 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6745fi 6746 6747cat >>$CONFIG_STATUS <<\_ACEOF 6748 6749ac_cs_usage="\ 6750\`$as_me' instantiates files from templates according to the 6751current configuration. 6752 6753Usage: $0 [OPTIONS] [FILE]... 6754 6755 -h, --help print this help, then exit 6756 -V, --version print version number, then exit 6757 -q, --quiet do not print progress messages 6758 -d, --debug don't remove temporary files 6759 --recheck update $as_me by reconfiguring in the same conditions 6760 --file=FILE[:TEMPLATE] 6761 instantiate the configuration file FILE 6762 --header=FILE[:TEMPLATE] 6763 instantiate the configuration header FILE 6764 6765Configuration files: 6766$config_files 6767 6768Configuration headers: 6769$config_headers 6770 6771Report bugs to <bug-autoconf@gnu.org>." 6772_ACEOF 6773 6774cat >>$CONFIG_STATUS <<_ACEOF 6775ac_cs_version="\\ 6776config.status 6777configured by $0, generated by GNU Autoconf 2.59, 6778 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6779 6780Copyright (C) 2003 Free Software Foundation, Inc. 6781This config.status script is free software; the Free Software Foundation 6782gives unlimited permission to copy, distribute and modify it." 6783srcdir=$srcdir 6784INSTALL="$INSTALL" 6785_ACEOF 6786 6787cat >>$CONFIG_STATUS <<\_ACEOF 6788# If no file are specified by the user, then we need to provide default 6789# value. By we need to know if files were specified by the user. 6790ac_need_defaults=: 6791while test $# != 0 6792do 6793 case $1 in 6794 --*=*) 6795 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6796 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6797 ac_shift=: 6798 ;; 6799 -*) 6800 ac_option=$1 6801 ac_optarg=$2 6802 ac_shift=shift 6803 ;; 6804 *) # This is not an option, so the user has probably given explicit 6805 # arguments. 6806 ac_option=$1 6807 ac_need_defaults=false;; 6808 esac 6809 6810 case $ac_option in 6811 # Handling of the options. 6812_ACEOF 6813cat >>$CONFIG_STATUS <<\_ACEOF 6814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6815 ac_cs_recheck=: ;; 6816 --version | --vers* | -V ) 6817 echo "$ac_cs_version"; exit 0 ;; 6818 --he | --h) 6819 # Conflict between --help and --header 6820 { { echo "$as_me:$LINENO: error: ambiguous option: $1 6821Try \`$0 --help' for more information." >&5 6822echo "$as_me: error: ambiguous option: $1 6823Try \`$0 --help' for more information." >&2;} 6824 { (exit 1); exit 1; }; };; 6825 --help | --hel | -h ) 6826 echo "$ac_cs_usage"; exit 0 ;; 6827 --debug | --d* | -d ) 6828 debug=: ;; 6829 --file | --fil | --fi | --f ) 6830 $ac_shift 6831 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6832 ac_need_defaults=false;; 6833 --header | --heade | --head | --hea ) 6834 $ac_shift 6835 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6836 ac_need_defaults=false;; 6837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6838 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6839 ac_cs_silent=: ;; 6840 6841 # This is an error. 6842 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 6843Try \`$0 --help' for more information." >&5 6844echo "$as_me: error: unrecognized option: $1 6845Try \`$0 --help' for more information." >&2;} 6846 { (exit 1); exit 1; }; } ;; 6847 6848 *) ac_config_targets="$ac_config_targets $1" ;; 6849 6850 esac 6851 shift 6852done 6853 6854ac_configure_extra_args= 6855 6856if $ac_cs_silent; then 6857 exec 6>/dev/null 6858 ac_configure_extra_args="$ac_configure_extra_args --silent" 6859fi 6860 6861_ACEOF 6862cat >>$CONFIG_STATUS <<_ACEOF 6863if \$ac_cs_recheck; then 6864 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6865 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6866fi 6867 6868_ACEOF 6869 6870 6871 6872 6873 6874cat >>$CONFIG_STATUS <<\_ACEOF 6875for ac_config_target in $ac_config_targets 6876do 6877 case "$ac_config_target" in 6878 # Handling of arguments. 6879 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6880 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6881 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6882echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6883 { (exit 1); exit 1; }; };; 6884 esac 6885done 6886 6887# If the user did not use the arguments to specify the items to instantiate, 6888# then the envvar interface is used. Set only those that are not. 6889# We use the long form for the default assignment because of an extremely 6890# bizarre bug on SunOS 4.1.3. 6891if $ac_need_defaults; then 6892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6894fi 6895 6896# Have a temporary directory for convenience. Make it in the build tree 6897# simply because there is no reason to put it here, and in addition, 6898# creating and moving files from /tmp can sometimes cause problems. 6899# Create a temporary directory, and hook for its removal unless debugging. 6900$debug || 6901{ 6902 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 6903 trap '{ (exit 1); exit 1; }' 1 2 13 15 6904} 6905 6906# Create a (secure) tmp directory for tmp files. 6907 6908{ 6909 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 6910 test -n "$tmp" && test -d "$tmp" 6911} || 6912{ 6913 tmp=./confstat$$-$RANDOM 6914 (umask 077 && mkdir $tmp) 6915} || 6916{ 6917 echo "$me: cannot create a temporary directory in ." >&2 6918 { (exit 1); exit 1; } 6919} 6920 6921_ACEOF 6922 6923cat >>$CONFIG_STATUS <<_ACEOF 6924 6925# 6926# CONFIG_FILES section. 6927# 6928 6929# No need to generate the scripts if there are no CONFIG_FILES. 6930# This happens for instance when ./config.status config.h 6931if test -n "\$CONFIG_FILES"; then 6932 # Protect against being on the right side of a sed subst in config.status. 6933 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 6934 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 6935s,@SHELL@,$SHELL,;t t 6936s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6937s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6938s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6939s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6940s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6941s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6942s,@exec_prefix@,$exec_prefix,;t t 6943s,@prefix@,$prefix,;t t 6944s,@program_transform_name@,$program_transform_name,;t t 6945s,@bindir@,$bindir,;t t 6946s,@sbindir@,$sbindir,;t t 6947s,@libexecdir@,$libexecdir,;t t 6948s,@datadir@,$datadir,;t t 6949s,@sysconfdir@,$sysconfdir,;t t 6950s,@sharedstatedir@,$sharedstatedir,;t t 6951s,@localstatedir@,$localstatedir,;t t 6952s,@libdir@,$libdir,;t t 6953s,@includedir@,$includedir,;t t 6954s,@oldincludedir@,$oldincludedir,;t t 6955s,@infodir@,$infodir,;t t 6956s,@mandir@,$mandir,;t t 6957s,@build_alias@,$build_alias,;t t 6958s,@host_alias@,$host_alias,;t t 6959s,@target_alias@,$target_alias,;t t 6960s,@DEFS@,$DEFS,;t t 6961s,@ECHO_C@,$ECHO_C,;t t 6962s,@ECHO_N@,$ECHO_N,;t t 6963s,@ECHO_T@,$ECHO_T,;t t 6964s,@LIBS@,$LIBS,;t t 6965s,@CC@,$CC,;t t 6966s,@CFLAGS@,$CFLAGS,;t t 6967s,@LDFLAGS@,$LDFLAGS,;t t 6968s,@CPPFLAGS@,$CPPFLAGS,;t t 6969s,@ac_ct_CC@,$ac_ct_CC,;t t 6970s,@EXEEXT@,$EXEEXT,;t t 6971s,@OBJEXT@,$OBJEXT,;t t 6972s,@RM@,$RM,;t t 6973s,@AR@,$AR,;t t 6974s,@SET_MAKE@,$SET_MAKE,;t t 6975s,@RANLIB@,$RANLIB,;t t 6976s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 6977s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 6978s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 6979s,@INSTALL_DATA@,$INSTALL_DATA,;t t 6980s,@CPP@,$CPP,;t t 6981s,@EGREP@,$EGREP,;t t 6982s,@LIBOBJS@,$LIBOBJS,;t t 6983s,@EXTRA_DEFS@,$EXTRA_DEFS,;t t 6984s,@STRIP@,$STRIP,;t t 6985s,@LTLIBOBJS@,$LTLIBOBJS,;t t 6986CEOF 6987 6988_ACEOF 6989 6990 cat >>$CONFIG_STATUS <<\_ACEOF 6991 # Split the substitutions into bite-sized pieces for seds with 6992 # small command number limits, like on Digital OSF/1 and HP-UX. 6993 ac_max_sed_lines=48 6994 ac_sed_frag=1 # Number of current file. 6995 ac_beg=1 # First line for current file. 6996 ac_end=$ac_max_sed_lines # Line after last line for current file. 6997 ac_more_lines=: 6998 ac_sed_cmds= 6999 while $ac_more_lines; do 7000 if test $ac_beg -gt 1; then 7001 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7002 else 7003 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7004 fi 7005 if test ! -s $tmp/subs.frag; then 7006 ac_more_lines=false 7007 else 7008 # The purpose of the label and of the branching condition is to 7009 # speed up the sed processing (if there are no `@' at all, there 7010 # is no need to browse any of the substitutions). 7011 # These are the two extra sed commands mentioned above. 7012 (echo ':t 7013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7014 if test -z "$ac_sed_cmds"; then 7015 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7016 else 7017 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7018 fi 7019 ac_sed_frag=`expr $ac_sed_frag + 1` 7020 ac_beg=$ac_end 7021 ac_end=`expr $ac_end + $ac_max_sed_lines` 7022 fi 7023 done 7024 if test -z "$ac_sed_cmds"; then 7025 ac_sed_cmds=cat 7026 fi 7027fi # test -n "$CONFIG_FILES" 7028 7029_ACEOF 7030cat >>$CONFIG_STATUS <<\_ACEOF 7031for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7033 case $ac_file in 7034 - | *:- | *:-:* ) # input from stdin 7035 cat >$tmp/stdin 7036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7040 * ) ac_file_in=$ac_file.in ;; 7041 esac 7042 7043 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7044 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7046 X"$ac_file" : 'X\(//\)[^/]' \| \ 7047 X"$ac_file" : 'X\(//\)$' \| \ 7048 X"$ac_file" : 'X\(/\)' \| \ 7049 . : '\(.\)' 2>/dev/null || 7050echo X"$ac_file" | 7051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7052 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7053 /^X\(\/\/\)$/{ s//\1/; q; } 7054 /^X\(\/\).*/{ s//\1/; q; } 7055 s/.*/./; q'` 7056 { if $as_mkdir_p; then 7057 mkdir -p "$ac_dir" 7058 else 7059 as_dir="$ac_dir" 7060 as_dirs= 7061 while test ! -d "$as_dir"; do 7062 as_dirs="$as_dir $as_dirs" 7063 as_dir=`(dirname "$as_dir") 2>/dev/null || 7064$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7065 X"$as_dir" : 'X\(//\)[^/]' \| \ 7066 X"$as_dir" : 'X\(//\)$' \| \ 7067 X"$as_dir" : 'X\(/\)' \| \ 7068 . : '\(.\)' 2>/dev/null || 7069echo X"$as_dir" | 7070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7071 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7072 /^X\(\/\/\)$/{ s//\1/; q; } 7073 /^X\(\/\).*/{ s//\1/; q; } 7074 s/.*/./; q'` 7075 done 7076 test ! -n "$as_dirs" || mkdir $as_dirs 7077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7078echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7079 { (exit 1); exit 1; }; }; } 7080 7081 ac_builddir=. 7082 7083if test "$ac_dir" != .; then 7084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7085 # A "../" for each directory in $ac_dir_suffix. 7086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7087else 7088 ac_dir_suffix= ac_top_builddir= 7089fi 7090 7091case $srcdir in 7092 .) # No --srcdir option. We are building in place. 7093 ac_srcdir=. 7094 if test -z "$ac_top_builddir"; then 7095 ac_top_srcdir=. 7096 else 7097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7098 fi ;; 7099 [\\/]* | ?:[\\/]* ) # Absolute path. 7100 ac_srcdir=$srcdir$ac_dir_suffix; 7101 ac_top_srcdir=$srcdir ;; 7102 *) # Relative path. 7103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7104 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7105esac 7106 7107# Do not use `cd foo && pwd` to compute absolute paths, because 7108# the directories may not exist. 7109case `pwd` in 7110.) ac_abs_builddir="$ac_dir";; 7111*) 7112 case "$ac_dir" in 7113 .) ac_abs_builddir=`pwd`;; 7114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7115 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7116 esac;; 7117esac 7118case $ac_abs_builddir in 7119.) ac_abs_top_builddir=${ac_top_builddir}.;; 7120*) 7121 case ${ac_top_builddir}. in 7122 .) ac_abs_top_builddir=$ac_abs_builddir;; 7123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7125 esac;; 7126esac 7127case $ac_abs_builddir in 7128.) ac_abs_srcdir=$ac_srcdir;; 7129*) 7130 case $ac_srcdir in 7131 .) ac_abs_srcdir=$ac_abs_builddir;; 7132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7134 esac;; 7135esac 7136case $ac_abs_builddir in 7137.) ac_abs_top_srcdir=$ac_top_srcdir;; 7138*) 7139 case $ac_top_srcdir in 7140 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7143 esac;; 7144esac 7145 7146 7147 case $INSTALL in 7148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7150 esac 7151 7152 if test x"$ac_file" != x-; then 7153 { echo "$as_me:$LINENO: creating $ac_file" >&5 7154echo "$as_me: creating $ac_file" >&6;} 7155 rm -f "$ac_file" 7156 fi 7157 # Let's still pretend it is `configure' which instantiates (i.e., don't 7158 # use $as_me), people would be surprised to read: 7159 # /* config.h. Generated by config.status. */ 7160 if test x"$ac_file" = x-; then 7161 configure_input= 7162 else 7163 configure_input="$ac_file. " 7164 fi 7165 configure_input=$configure_input"Generated from `echo $ac_file_in | 7166 sed 's,.*/,,'` by configure." 7167 7168 # First look for the input files in the build tree, otherwise in the 7169 # src tree. 7170 ac_file_inputs=`IFS=: 7171 for f in $ac_file_in; do 7172 case $f in 7173 -) echo $tmp/stdin ;; 7174 [\\/$]*) 7175 # Absolute (can't be DOS-style, as IFS=:) 7176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7177echo "$as_me: error: cannot find input file: $f" >&2;} 7178 { (exit 1); exit 1; }; } 7179 echo "$f";; 7180 *) # Relative 7181 if test -f "$f"; then 7182 # Build tree 7183 echo "$f" 7184 elif test -f "$srcdir/$f"; then 7185 # Source tree 7186 echo "$srcdir/$f" 7187 else 7188 # /dev/null tree 7189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7190echo "$as_me: error: cannot find input file: $f" >&2;} 7191 { (exit 1); exit 1; }; } 7192 fi;; 7193 esac 7194 done` || { (exit 1); exit 1; } 7195_ACEOF 7196cat >>$CONFIG_STATUS <<_ACEOF 7197 sed "$ac_vpsub 7198$extrasub 7199_ACEOF 7200cat >>$CONFIG_STATUS <<\_ACEOF 7201:t 7202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7203s,@configure_input@,$configure_input,;t t 7204s,@srcdir@,$ac_srcdir,;t t 7205s,@abs_srcdir@,$ac_abs_srcdir,;t t 7206s,@top_srcdir@,$ac_top_srcdir,;t t 7207s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7208s,@builddir@,$ac_builddir,;t t 7209s,@abs_builddir@,$ac_abs_builddir,;t t 7210s,@top_builddir@,$ac_top_builddir,;t t 7211s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 7212s,@INSTALL@,$ac_INSTALL,;t t 7213" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7214 rm -f $tmp/stdin 7215 if test x"$ac_file" != x-; then 7216 mv $tmp/out $ac_file 7217 else 7218 cat $tmp/out 7219 rm -f $tmp/out 7220 fi 7221 7222done 7223_ACEOF 7224cat >>$CONFIG_STATUS <<\_ACEOF 7225 7226# 7227# CONFIG_HEADER section. 7228# 7229 7230# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7231# NAME is the cpp macro being defined and VALUE is the value it is being given. 7232# 7233# ac_d sets the value in "#define NAME VALUE" lines. 7234ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7235ac_dB='[ ].*$,\1#\2' 7236ac_dC=' ' 7237ac_dD=',;t' 7238# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7239ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7240ac_uB='$,\1#\2define\3' 7241ac_uC=' ' 7242ac_uD=',;t' 7243 7244for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7246 case $ac_file in 7247 - | *:- | *:-:* ) # input from stdin 7248 cat >$tmp/stdin 7249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7253 * ) ac_file_in=$ac_file.in ;; 7254 esac 7255 7256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 7257echo "$as_me: creating $ac_file" >&6;} 7258 7259 # First look for the input files in the build tree, otherwise in the 7260 # src tree. 7261 ac_file_inputs=`IFS=: 7262 for f in $ac_file_in; do 7263 case $f in 7264 -) echo $tmp/stdin ;; 7265 [\\/$]*) 7266 # Absolute (can't be DOS-style, as IFS=:) 7267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7268echo "$as_me: error: cannot find input file: $f" >&2;} 7269 { (exit 1); exit 1; }; } 7270 # Do quote $f, to prevent DOS paths from being IFS'd. 7271 echo "$f";; 7272 *) # Relative 7273 if test -f "$f"; then 7274 # Build tree 7275 echo "$f" 7276 elif test -f "$srcdir/$f"; then 7277 # Source tree 7278 echo "$srcdir/$f" 7279 else 7280 # /dev/null tree 7281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7282echo "$as_me: error: cannot find input file: $f" >&2;} 7283 { (exit 1); exit 1; }; } 7284 fi;; 7285 esac 7286 done` || { (exit 1); exit 1; } 7287 # Remove the trailing spaces. 7288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7289 7290_ACEOF 7291 7292# Transform confdefs.h into two sed scripts, `conftest.defines' and 7293# `conftest.undefs', that substitutes the proper values into 7294# config.h.in to produce config.h. The first handles `#define' 7295# templates, and the second `#undef' templates. 7296# And first: Protect against being on the right side of a sed subst in 7297# config.status. Protect against being in an unquoted here document 7298# in config.status. 7299rm -f conftest.defines conftest.undefs 7300# Using a here document instead of a string reduces the quoting nightmare. 7301# Putting comments in sed scripts is not portable. 7302# 7303# `end' is used to avoid that the second main sed command (meant for 7304# 0-ary CPP macros) applies to n-ary macro definitions. 7305# See the Autoconf documentation for `clear'. 7306cat >confdef2sed.sed <<\_ACEOF 7307s/[\\&,]/\\&/g 7308s,[\\$`],\\&,g 7309t clear 7310: clear 7311s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 7312t end 7313s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7314: end 7315_ACEOF 7316# If some macros were called several times there might be several times 7317# the same #defines, which is useless. Nevertheless, we may not want to 7318# sort them, since we want the *last* AC-DEFINE to be honored. 7319uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7320sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7321rm -f confdef2sed.sed 7322 7323# This sed command replaces #undef with comments. This is necessary, for 7324# example, in the case of _POSIX_SOURCE, which is predefined and required 7325# on some systems where configure will not decide to define it. 7326cat >>conftest.undefs <<\_ACEOF 7327s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7328_ACEOF 7329 7330# Break up conftest.defines because some shells have a limit on the size 7331# of here documents, and old seds have small limits too (100 cmds). 7332echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7333echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7334echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7335echo ' :' >>$CONFIG_STATUS 7336rm -f conftest.tail 7337while grep . conftest.defines >/dev/null 7338do 7339 # Write a limited-size here document to $tmp/defines.sed. 7340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7341 # Speed up: don't consider the non `#define' lines. 7342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7343 # Work around the forget-to-reset-the-flag bug. 7344 echo 't clr' >>$CONFIG_STATUS 7345 echo ': clr' >>$CONFIG_STATUS 7346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 7347 echo 'CEOF 7348 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7349 rm -f $tmp/in 7350 mv $tmp/out $tmp/in 7351' >>$CONFIG_STATUS 7352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7353 rm -f conftest.defines 7354 mv conftest.tail conftest.defines 7355done 7356rm -f conftest.defines 7357echo ' fi # grep' >>$CONFIG_STATUS 7358echo >>$CONFIG_STATUS 7359 7360# Break up conftest.undefs because some shells have a limit on the size 7361# of here documents, and old seds have small limits too (100 cmds). 7362echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7363rm -f conftest.tail 7364while grep . conftest.undefs >/dev/null 7365do 7366 # Write a limited-size here document to $tmp/undefs.sed. 7367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7368 # Speed up: don't consider the non `#undef' 7369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7370 # Work around the forget-to-reset-the-flag bug. 7371 echo 't clr' >>$CONFIG_STATUS 7372 echo ': clr' >>$CONFIG_STATUS 7373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7374 echo 'CEOF 7375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7376 rm -f $tmp/in 7377 mv $tmp/out $tmp/in 7378' >>$CONFIG_STATUS 7379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7380 rm -f conftest.undefs 7381 mv conftest.tail conftest.undefs 7382done 7383rm -f conftest.undefs 7384 7385cat >>$CONFIG_STATUS <<\_ACEOF 7386 # Let's still pretend it is `configure' which instantiates (i.e., don't 7387 # use $as_me), people would be surprised to read: 7388 # /* config.h. Generated by config.status. */ 7389 if test x"$ac_file" = x-; then 7390 echo "/* Generated by configure. */" >$tmp/config.h 7391 else 7392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 7393 fi 7394 cat $tmp/in >>$tmp/config.h 7395 rm -f $tmp/in 7396 if test x"$ac_file" != x-; then 7397 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7399echo "$as_me: $ac_file is unchanged" >&6;} 7400 else 7401 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7403 X"$ac_file" : 'X\(//\)[^/]' \| \ 7404 X"$ac_file" : 'X\(//\)$' \| \ 7405 X"$ac_file" : 'X\(/\)' \| \ 7406 . : '\(.\)' 2>/dev/null || 7407echo X"$ac_file" | 7408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7409 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7410 /^X\(\/\/\)$/{ s//\1/; q; } 7411 /^X\(\/\).*/{ s//\1/; q; } 7412 s/.*/./; q'` 7413 { if $as_mkdir_p; then 7414 mkdir -p "$ac_dir" 7415 else 7416 as_dir="$ac_dir" 7417 as_dirs= 7418 while test ! -d "$as_dir"; do 7419 as_dirs="$as_dir $as_dirs" 7420 as_dir=`(dirname "$as_dir") 2>/dev/null || 7421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7422 X"$as_dir" : 'X\(//\)[^/]' \| \ 7423 X"$as_dir" : 'X\(//\)$' \| \ 7424 X"$as_dir" : 'X\(/\)' \| \ 7425 . : '\(.\)' 2>/dev/null || 7426echo X"$as_dir" | 7427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7428 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7429 /^X\(\/\/\)$/{ s//\1/; q; } 7430 /^X\(\/\).*/{ s//\1/; q; } 7431 s/.*/./; q'` 7432 done 7433 test ! -n "$as_dirs" || mkdir $as_dirs 7434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7436 { (exit 1); exit 1; }; }; } 7437 7438 rm -f $ac_file 7439 mv $tmp/config.h $ac_file 7440 fi 7441 else 7442 cat $tmp/config.h 7443 rm -f $tmp/config.h 7444 fi 7445done 7446_ACEOF 7447 7448cat >>$CONFIG_STATUS <<\_ACEOF 7449 7450{ (exit 0); exit 0; } 7451_ACEOF 7452chmod +x $CONFIG_STATUS 7453ac_clean_files=$ac_clean_files_save 7454 7455 7456# configure is writing to config.log, and then calls config.status. 7457# config.status does its own redirection, appending to config.log. 7458# Unfortunately, on DOS this fails, as config.log is still kept open 7459# by configure, so config.status won't be able to write to it; its 7460# output is simply discarded. So we exec the FD to /dev/null, 7461# effectively closing config.log, so it can be properly (re)opened and 7462# appended to by config.status. When coming back to configure, we 7463# need to make the FD available again. 7464if test "$no_create" != yes; then 7465 ac_cs_success=: 7466 ac_config_status_args= 7467 test "$silent" = yes && 7468 ac_config_status_args="$ac_config_status_args --quiet" 7469 exec 5>/dev/null 7470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7471 exec 5>>config.log 7472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7473 # would make configure fail if this is the last instruction. 7474 $ac_cs_success || { (exit 1); exit 1; } 7475fi 7476 7477