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