1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8. 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='GNU Texinfo' 269PACKAGE_TARNAME='texinfo' 270PACKAGE_VERSION='4.8' 271PACKAGE_STRING='GNU Texinfo 4.8' 272PACKAGE_BUGREPORT='' 273 274ac_unique_file="makeinfo/makeinfo.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 312gl_header_list= 313ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS' 314ac_subst_files='' 315 316# Initialize some variables set by options. 317ac_init_help= 318ac_init_version=false 319# The variables have the same names as the options, with 320# dashes changed to underlines. 321cache_file=/dev/null 322exec_prefix=NONE 323no_create= 324no_recursion= 325prefix=NONE 326program_prefix=NONE 327program_suffix=NONE 328program_transform_name=s,x,x, 329silent= 330site= 331srcdir= 332verbose= 333x_includes=NONE 334x_libraries=NONE 335 336# Installation directory options. 337# These are left unexpanded so users can "make install exec_prefix=/foo" 338# and all the variables that are supposed to be based on exec_prefix 339# by default will actually change. 340# Use braces instead of parens because sh, perl, etc. also accept them. 341bindir='${exec_prefix}/bin' 342sbindir='${exec_prefix}/sbin' 343libexecdir='${exec_prefix}/libexec' 344datadir='${prefix}/share' 345sysconfdir='${prefix}/etc' 346sharedstatedir='${prefix}/com' 347localstatedir='${prefix}/var' 348libdir='${exec_prefix}/lib' 349includedir='${prefix}/include' 350oldincludedir='/usr/include' 351infodir='${prefix}/info' 352mandir='${prefix}/man' 353 354ac_prev= 355for ac_option 356do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651done 652 653if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657fi 658 659# Be sure to have absolute paths. 660for ac_var in exec_prefix prefix 661do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668done 669 670# Be sure to have absolute paths. 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680done 681 682# There might be people who depend on the old broken behavior: `$host' 683# used to hold the argument of --host etc. 684# FIXME: To remove some day. 685build=$build_alias 686host=$host_alias 687target=$target_alias 688 689# FIXME: To remove some day. 690if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698fi 699 700ac_tool_prefix= 701test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703test "$silent" = yes && exec 6>/dev/null 704 705 706# Find the source files, if location was not specified. 707if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726else 727 ac_srcdir_defaulted=no 728fi 729if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737fi 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742ac_env_build_alias_set=${build_alias+set} 743ac_env_build_alias_value=$build_alias 744ac_cv_env_build_alias_set=${build_alias+set} 745ac_cv_env_build_alias_value=$build_alias 746ac_env_host_alias_set=${host_alias+set} 747ac_env_host_alias_value=$host_alias 748ac_cv_env_host_alias_set=${host_alias+set} 749ac_cv_env_host_alias_value=$host_alias 750ac_env_target_alias_set=${target_alias+set} 751ac_env_target_alias_value=$target_alias 752ac_cv_env_target_alias_set=${target_alias+set} 753ac_cv_env_target_alias_value=$target_alias 754ac_env_CC_set=${CC+set} 755ac_env_CC_value=$CC 756ac_cv_env_CC_set=${CC+set} 757ac_cv_env_CC_value=$CC 758ac_env_CFLAGS_set=${CFLAGS+set} 759ac_env_CFLAGS_value=$CFLAGS 760ac_cv_env_CFLAGS_set=${CFLAGS+set} 761ac_cv_env_CFLAGS_value=$CFLAGS 762ac_env_LDFLAGS_set=${LDFLAGS+set} 763ac_env_LDFLAGS_value=$LDFLAGS 764ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765ac_cv_env_LDFLAGS_value=$LDFLAGS 766ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_env_CPPFLAGS_value=$CPPFLAGS 768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770ac_env_CPP_set=${CPP+set} 771ac_env_CPP_value=$CPP 772ac_cv_env_CPP_set=${CPP+set} 773ac_cv_env_CPP_value=$CPP 774 775# 776# Report the --help message. 777# 778if test "$ac_init_help" = "long"; then 779 # Omit some internal or obsolete options to make the list less imposing. 780 # This message is too long to be a string in the A/UX 3.1 sh. 781 cat <<_ACEOF 782\`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems. 783 784Usage: $0 [OPTION]... [VAR=VALUE]... 785 786To assign environment variables (e.g., CC, CFLAGS...), specify them as 787VAR=VALUE. See below for descriptions of some of the useful variables. 788 789Defaults for the options are specified in brackets. 790 791Configuration: 792 -h, --help display this help and exit 793 --help=short display options specific to this package 794 --help=recursive display the short help of all the included packages 795 -V, --version display version information and exit 796 -q, --quiet, --silent do not print \`checking...' messages 797 --cache-file=FILE cache test results in FILE [disabled] 798 -C, --config-cache alias for \`--cache-file=config.cache' 799 -n, --no-create do not create output files 800 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 802_ACEOF 803 804 cat <<_ACEOF 805Installation directories: 806 --prefix=PREFIX install architecture-independent files in PREFIX 807 [$ac_default_prefix] 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 [PREFIX] 810 811By default, \`make install' will install all the files in 812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 813an installation prefix other than \`$ac_default_prefix' using \`--prefix', 814for instance \`--prefix=\$HOME'. 815 816For better control, use the options below. 817 818Fine tuning of the installation directories: 819 --bindir=DIR user executables [EPREFIX/bin] 820 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 --libdir=DIR object code libraries [EPREFIX/lib] 827 --includedir=DIR C header files [PREFIX/include] 828 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 831_ACEOF 832 833 cat <<\_ACEOF 834 835Program names: 836 --program-prefix=PREFIX prepend PREFIX to installed program names 837 --program-suffix=SUFFIX append SUFFIX to installed program names 838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 839 840System types: 841 --build=BUILD configure for building on BUILD [guessed] 842 --host=HOST cross-compile to build programs to run on HOST [BUILD] 843_ACEOF 844fi 845 846if test -n "$ac_init_help"; then 847 case $ac_init_help in 848 short | recursive ) echo "Configuration of GNU Texinfo 4.8:";; 849 esac 850 cat <<\_ACEOF 851 852Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --enable-maintainer-mode enable make rules and dependencies not useful 856 (and sometimes confusing) to the casual installer 857 --disable-dependency-tracking speeds up one-time build 858 --enable-dependency-tracking do not reject slow dependency extractors 859 --enable-multiplatform put executables in bin/PLATFORM 860 --disable-install-warnings omit make install warnings about TeX files 861 --disable-nls do not use Native Language Support 862 --disable-rpath do not hardcode runtime library paths 863 864Optional Packages: 865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 867 --with-gnu-ld assume the C compiler uses GNU ld default=no 868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 869 --without-libiconv-prefix don't search for libiconv in includedir and libdir 870 --with-included-gettext use the GNU gettext library included here 871 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 872 --without-libintl-prefix don't search for libintl in includedir and libdir 873 874Some influential environment variables: 875 CC C compiler command 876 CFLAGS C compiler flags 877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 nonstandard directory <lib dir> 879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 headers in a nonstandard directory <include dir> 881 CPP C preprocessor 882 883Use these variables to override the choices made by `configure' or to help 884it to find libraries and programs with nonstandard names/locations. 885 886_ACEOF 887fi 888 889if test "$ac_init_help" = "recursive"; then 890 # If there are subdirs, report their specific --help. 891 ac_popdir=`pwd` 892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 893 test -d $ac_dir || continue 894 ac_builddir=. 895 896if test "$ac_dir" != .; then 897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 898 # A "../" for each directory in $ac_dir_suffix. 899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 900else 901 ac_dir_suffix= ac_top_builddir= 902fi 903 904case $srcdir in 905 .) # No --srcdir option. We are building in place. 906 ac_srcdir=. 907 if test -z "$ac_top_builddir"; then 908 ac_top_srcdir=. 909 else 910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 911 fi ;; 912 [\\/]* | ?:[\\/]* ) # Absolute path. 913 ac_srcdir=$srcdir$ac_dir_suffix; 914 ac_top_srcdir=$srcdir ;; 915 *) # Relative path. 916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 917 ac_top_srcdir=$ac_top_builddir$srcdir ;; 918esac 919 920# Do not use `cd foo && pwd` to compute absolute paths, because 921# the directories may not exist. 922case `pwd` in 923.) ac_abs_builddir="$ac_dir";; 924*) 925 case "$ac_dir" in 926 .) ac_abs_builddir=`pwd`;; 927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 928 *) ac_abs_builddir=`pwd`/"$ac_dir";; 929 esac;; 930esac 931case $ac_abs_builddir in 932.) ac_abs_top_builddir=${ac_top_builddir}.;; 933*) 934 case ${ac_top_builddir}. in 935 .) ac_abs_top_builddir=$ac_abs_builddir;; 936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 938 esac;; 939esac 940case $ac_abs_builddir in 941.) ac_abs_srcdir=$ac_srcdir;; 942*) 943 case $ac_srcdir in 944 .) ac_abs_srcdir=$ac_abs_builddir;; 945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 947 esac;; 948esac 949case $ac_abs_builddir in 950.) ac_abs_top_srcdir=$ac_top_srcdir;; 951*) 952 case $ac_top_srcdir in 953 .) ac_abs_top_srcdir=$ac_abs_builddir;; 954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 956 esac;; 957esac 958 959 cd $ac_dir 960 # Check for guested configure; otherwise get Cygnus style configure. 961 if test -f $ac_srcdir/configure.gnu; then 962 echo 963 $SHELL $ac_srcdir/configure.gnu --help=recursive 964 elif test -f $ac_srcdir/configure; then 965 echo 966 $SHELL $ac_srcdir/configure --help=recursive 967 elif test -f $ac_srcdir/configure.ac || 968 test -f $ac_srcdir/configure.in; then 969 echo 970 $ac_configure --help 971 else 972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 973 fi 974 cd $ac_popdir 975 done 976fi 977 978test -n "$ac_init_help" && exit 0 979if $ac_init_version; then 980 cat <<\_ACEOF 981GNU Texinfo configure 4.8 982generated by GNU Autoconf 2.59 983 984Copyright (C) 2003 Free Software Foundation, Inc. 985This configure script is free software; the Free Software Foundation 986gives unlimited permission to copy, distribute and modify it. 987_ACEOF 988 exit 0 989fi 990exec 5>config.log 991cat >&5 <<_ACEOF 992This file contains any messages produced by compilers while 993running configure, to aid debugging if configure makes a mistake. 994 995It was created by GNU Texinfo $as_me 4.8, which was 996generated by GNU Autoconf 2.59. Invocation command line was 997 998 $ $0 $@ 999 1000_ACEOF 1001{ 1002cat <<_ASUNAME 1003## --------- ## 1004## Platform. ## 1005## --------- ## 1006 1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1008uname -m = `(uname -m) 2>/dev/null || echo unknown` 1009uname -r = `(uname -r) 2>/dev/null || echo unknown` 1010uname -s = `(uname -s) 2>/dev/null || echo unknown` 1011uname -v = `(uname -v) 2>/dev/null || echo unknown` 1012 1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1015 1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1023 1024_ASUNAME 1025 1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1027for as_dir in $PATH 1028do 1029 IFS=$as_save_IFS 1030 test -z "$as_dir" && as_dir=. 1031 echo "PATH: $as_dir" 1032done 1033 1034} >&5 1035 1036cat >&5 <<_ACEOF 1037 1038 1039## ----------- ## 1040## Core tests. ## 1041## ----------- ## 1042 1043_ACEOF 1044 1045 1046# Keep a trace of the command line. 1047# Strip out --no-create and --no-recursion so they do not pile up. 1048# Strip out --silent because we don't want to record it for future runs. 1049# Also quote any args containing shell meta-characters. 1050# Make two passes to allow for proper duplicate-argument suppression. 1051ac_configure_args= 1052ac_configure_args0= 1053ac_configure_args1= 1054ac_sep= 1055ac_must_keep_next=false 1056for ac_pass in 1 2 1057do 1058 for ac_arg 1059 do 1060 case $ac_arg in 1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 continue ;; 1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1067 esac 1068 case $ac_pass in 1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1070 2) 1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1072 if test $ac_must_keep_next = true; then 1073 ac_must_keep_next=false # Got value, back to normal. 1074 else 1075 case $ac_arg in 1076 *=* | --config-cache | -C | -disable-* | --disable-* \ 1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1079 | -with-* | --with-* | -without-* | --without-* | --x) 1080 case "$ac_configure_args0 " in 1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1082 esac 1083 ;; 1084 -* ) ac_must_keep_next=true ;; 1085 esac 1086 fi 1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1088 # Get rid of the leading space. 1089 ac_sep=" " 1090 ;; 1091 esac 1092 done 1093done 1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1096 1097# When interrupted or exit'd, cleanup temporary files, and complete 1098# config.log. We remove comments because anyway the quotes in there 1099# would cause problems or look ugly. 1100# WARNING: Be sure not to use single quotes in there, as some shells, 1101# such as our DU 5.0 friend, will then `close' the trap. 1102trap 'exit_status=$? 1103 # Save into config.log some information that might help in debugging. 1104 { 1105 echo 1106 1107 cat <<\_ASBOX 1108## ---------------- ## 1109## Cache variables. ## 1110## ---------------- ## 1111_ASBOX 1112 echo 1113 # The following way of writing the cache mishandles newlines in values, 1114{ 1115 (set) 2>&1 | 1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1117 *ac_space=\ *) 1118 sed -n \ 1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1121 ;; 1122 *) 1123 sed -n \ 1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1125 ;; 1126 esac; 1127} 1128 echo 1129 1130 cat <<\_ASBOX 1131## ----------------- ## 1132## Output variables. ## 1133## ----------------- ## 1134_ASBOX 1135 echo 1136 for ac_var in $ac_subst_vars 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 1143 if test -n "$ac_subst_files"; then 1144 cat <<\_ASBOX 1145## ------------- ## 1146## Output files. ## 1147## ------------- ## 1148_ASBOX 1149 echo 1150 for ac_var in $ac_subst_files 1151 do 1152 eval ac_val=$`echo $ac_var` 1153 echo "$ac_var='"'"'$ac_val'"'"'" 1154 done | sort 1155 echo 1156 fi 1157 1158 if test -s confdefs.h; then 1159 cat <<\_ASBOX 1160## ----------- ## 1161## confdefs.h. ## 1162## ----------- ## 1163_ASBOX 1164 echo 1165 sed "/^$/d" confdefs.h | sort 1166 echo 1167 fi 1168 test "$ac_signal" != 0 && 1169 echo "$as_me: caught signal $ac_signal" 1170 echo "$as_me: exit $exit_status" 1171 } >&5 1172 rm -f core *.core && 1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1174 exit $exit_status 1175 ' 0 1176for ac_signal in 1 2 13 15; do 1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1178done 1179ac_signal=0 1180 1181# confdefs.h avoids OS command line length limits that DEFS can exceed. 1182rm -rf conftest* confdefs.h 1183# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1184echo >confdefs.h 1185 1186# Predefined preprocessor variables. 1187 1188cat >>confdefs.h <<_ACEOF 1189#define PACKAGE_NAME "$PACKAGE_NAME" 1190_ACEOF 1191 1192 1193cat >>confdefs.h <<_ACEOF 1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1195_ACEOF 1196 1197 1198cat >>confdefs.h <<_ACEOF 1199#define PACKAGE_VERSION "$PACKAGE_VERSION" 1200_ACEOF 1201 1202 1203cat >>confdefs.h <<_ACEOF 1204#define PACKAGE_STRING "$PACKAGE_STRING" 1205_ACEOF 1206 1207 1208cat >>confdefs.h <<_ACEOF 1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1210_ACEOF 1211 1212 1213# Let the site file select an alternate cache file if it wants to. 1214# Prefer explicitly selected file to automatically selected ones. 1215if test -z "$CONFIG_SITE"; then 1216 if test "x$prefix" != xNONE; then 1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1218 else 1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1220 fi 1221fi 1222for ac_site_file in $CONFIG_SITE; do 1223 if test -r "$ac_site_file"; then 1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1225echo "$as_me: loading site script $ac_site_file" >&6;} 1226 sed 's/^/| /' "$ac_site_file" >&5 1227 . "$ac_site_file" 1228 fi 1229done 1230 1231if test -r "$cache_file"; then 1232 # Some versions of bash will fail to source /dev/null (special 1233 # files actually), so we avoid doing that. 1234 if test -f "$cache_file"; then 1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1236echo "$as_me: loading cache $cache_file" >&6;} 1237 case $cache_file in 1238 [\\/]* | ?:[\\/]* ) . $cache_file;; 1239 *) . ./$cache_file;; 1240 esac 1241 fi 1242else 1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1244echo "$as_me: creating cache $cache_file" >&6;} 1245 >$cache_file 1246fi 1247 1248# Check that the precious variables saved in the cache have kept the same 1249# value. 1250ac_cache_corrupted=false 1251for ac_var in `(set) 2>&1 | 1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1254 eval ac_new_set=\$ac_env_${ac_var}_set 1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1256 eval ac_new_val="\$ac_env_${ac_var}_value" 1257 case $ac_old_set,$ac_new_set in 1258 set,) 1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1261 ac_cache_corrupted=: ;; 1262 ,set) 1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1265 ac_cache_corrupted=: ;; 1266 ,);; 1267 *) 1268 if test "x$ac_old_val" != "x$ac_new_val"; then 1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1272echo "$as_me: former value: $ac_old_val" >&2;} 1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1274echo "$as_me: current value: $ac_new_val" >&2;} 1275 ac_cache_corrupted=: 1276 fi;; 1277 esac 1278 # Pass precious variables to config.status. 1279 if test "$ac_new_set" = set; then 1280 case $ac_new_val in 1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1283 *) ac_arg=$ac_var=$ac_new_val ;; 1284 esac 1285 case " $ac_configure_args " in 1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1288 esac 1289 fi 1290done 1291if $ac_cache_corrupted; then 1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1293echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1296 { (exit 1); exit 1; }; } 1297fi 1298 1299ac_ext=c 1300ac_cpp='$CPP $CPPFLAGS' 1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1303ac_compiler_gnu=$ac_cv_c_compiler_gnu 1304 1305 1306gl_header_list="$gl_header_list fcntl.h" 1307gl_header_list="$gl_header_list sys/time.h" 1308gl_header_list="$gl_header_list unistd.h" 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 ac_config_headers="$ac_config_headers config.h:config.in" 1335# Keep filename to 8.3 for MS-DOS. 1336 1337am__api_version="1.9" 1338ac_aux_dir= 1339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1340 if test -f $ac_dir/install-sh; then 1341 ac_aux_dir=$ac_dir 1342 ac_install_sh="$ac_aux_dir/install-sh -c" 1343 break 1344 elif test -f $ac_dir/install.sh; then 1345 ac_aux_dir=$ac_dir 1346 ac_install_sh="$ac_aux_dir/install.sh -c" 1347 break 1348 elif test -f $ac_dir/shtool; then 1349 ac_aux_dir=$ac_dir 1350 ac_install_sh="$ac_aux_dir/shtool install -c" 1351 break 1352 fi 1353done 1354if test -z "$ac_aux_dir"; then 1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1357 { (exit 1); exit 1; }; } 1358fi 1359ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1360ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1362 1363# Find a good install program. We prefer a C program (faster), 1364# so one script is as good as another. But avoid the broken or 1365# incompatible versions: 1366# SysV /etc/install, /usr/sbin/install 1367# SunOS /usr/etc/install 1368# IRIX /sbin/install 1369# AIX /bin/install 1370# AmigaOS /C/install, which installs bootblocks on floppy discs 1371# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1372# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1373# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1374# OS/2's system install, which has a completely different semantic 1375# ./install, which can be erroneously created by make from ./install.sh. 1376echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1377echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1378if test -z "$INSTALL"; then 1379if test "${ac_cv_path_install+set}" = set; then 1380 echo $ECHO_N "(cached) $ECHO_C" >&6 1381else 1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1383for as_dir in $PATH 1384do 1385 IFS=$as_save_IFS 1386 test -z "$as_dir" && as_dir=. 1387 # Account for people who put trailing slashes in PATH elements. 1388case $as_dir/ in 1389 ./ | .// | /cC/* | \ 1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1392 /usr/ucb/* ) ;; 1393 *) 1394 # OSF1 and SCO ODT 3.0 have their own names for install. 1395 # Don't use installbsd from OSF since it installs stuff as root 1396 # by default. 1397 for ac_prog in ginstall scoinst install; do 1398 for ac_exec_ext in '' $ac_executable_extensions; do 1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1400 if test $ac_prog = install && 1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1402 # AIX install. It has an incompatible calling convention. 1403 : 1404 elif test $ac_prog = install && 1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1406 # program-specific install script used by HP pwplus--don't use. 1407 : 1408 else 1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1410 break 3 1411 fi 1412 fi 1413 done 1414 done 1415 ;; 1416esac 1417done 1418 1419 1420fi 1421 if test "${ac_cv_path_install+set}" = set; then 1422 INSTALL=$ac_cv_path_install 1423 else 1424 # As a last resort, use the slow shell script. We don't cache a 1425 # path for INSTALL within a source directory, because that will 1426 # break other packages using the cache if that directory is 1427 # removed, or if the path is relative. 1428 INSTALL=$ac_install_sh 1429 fi 1430fi 1431echo "$as_me:$LINENO: result: $INSTALL" >&5 1432echo "${ECHO_T}$INSTALL" >&6 1433 1434# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1435# It thinks the first close brace ends the variable substitution. 1436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1437 1438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1439 1440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1441 1442echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1443echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1444# Just in case 1445sleep 1 1446echo timestamp > conftest.file 1447# Do `set' in a subshell so we don't clobber the current shell's 1448# arguments. Must try -L first in case configure is actually a 1449# symlink; some systems play weird games with the mod time of symlinks 1450# (eg FreeBSD returns the mod time of the symlink's containing 1451# directory). 1452if ( 1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1454 if test "$*" = "X"; then 1455 # -L didn't work. 1456 set X `ls -t $srcdir/configure conftest.file` 1457 fi 1458 rm -f conftest.file 1459 if test "$*" != "X $srcdir/configure conftest.file" \ 1460 && test "$*" != "X conftest.file $srcdir/configure"; then 1461 1462 # If neither matched, then we have a broken ls. This can happen 1463 # if, for instance, CONFIG_SHELL is bash and it inherits a 1464 # broken ls alias from the environment. This has actually 1465 # happened. Such a system could not be considered "sane". 1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1467alias in your environment" >&5 1468echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1469alias in your environment" >&2;} 1470 { (exit 1); exit 1; }; } 1471 fi 1472 1473 test "$2" = conftest.file 1474 ) 1475then 1476 # Ok. 1477 : 1478else 1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1480Check your system clock" >&5 1481echo "$as_me: error: newly created file is older than distributed files! 1482Check your system clock" >&2;} 1483 { (exit 1); exit 1; }; } 1484fi 1485echo "$as_me:$LINENO: result: yes" >&5 1486echo "${ECHO_T}yes" >&6 1487test "$program_prefix" != NONE && 1488 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1489# Use a double $ so make ignores it. 1490test "$program_suffix" != NONE && 1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1492# Double any \ or $. echo might interpret backslashes. 1493# By default was `s,x,x', remove it if useless. 1494cat <<\_ACEOF >conftest.sed 1495s/[\\$]/&&/g;s/;s,x,x,$// 1496_ACEOF 1497program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1498rm conftest.sed 1499 1500# expand $ac_aux_dir to an absolute path 1501am_aux_dir=`cd $ac_aux_dir && pwd` 1502 1503test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1504# Use eval to expand $SHELL 1505if eval "$MISSING --run true"; then 1506 am_missing_run="$MISSING --run " 1507else 1508 am_missing_run= 1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1510echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1511fi 1512 1513if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1514 # We used to keeping the `.' as first argument, in order to 1515 # allow $(mkdir_p) to be used without argument. As in 1516 # $(mkdir_p) $(somedir) 1517 # where $(somedir) is conditionally defined. However this is wrong 1518 # for two reasons: 1519 # 1. if the package is installed by a user who cannot write `.' 1520 # make install will fail, 1521 # 2. the above comment should most certainly read 1522 # $(mkdir_p) $(DESTDIR)$(somedir) 1523 # so it does not work when $(somedir) is undefined and 1524 # $(DESTDIR) is not. 1525 # To support the latter case, we have to write 1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1527 # so the `.' trick is pointless. 1528 mkdir_p='mkdir -p --' 1529else 1530 # On NextStep and OpenStep, the `mkdir' command does not 1531 # recognize any option. It will interpret all options as 1532 # directories to create, and then abort because `.' already 1533 # exists. 1534 for d in ./-p ./--version; 1535 do 1536 test -d $d && rmdir $d 1537 done 1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1539 if test -f "$ac_aux_dir/mkinstalldirs"; then 1540 mkdir_p='$(mkinstalldirs)' 1541 else 1542 mkdir_p='$(install_sh) -d' 1543 fi 1544fi 1545 1546for ac_prog in gawk mawk nawk awk 1547do 1548 # Extract the first word of "$ac_prog", so it can be a program name with args. 1549set dummy $ac_prog; ac_word=$2 1550echo "$as_me:$LINENO: checking for $ac_word" >&5 1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1552if test "${ac_cv_prog_AWK+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554else 1555 if test -n "$AWK"; then 1556 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1557else 1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559for as_dir in $PATH 1560do 1561 IFS=$as_save_IFS 1562 test -z "$as_dir" && as_dir=. 1563 for ac_exec_ext in '' $ac_executable_extensions; do 1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1565 ac_cv_prog_AWK="$ac_prog" 1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1567 break 2 1568 fi 1569done 1570done 1571 1572fi 1573fi 1574AWK=$ac_cv_prog_AWK 1575if test -n "$AWK"; then 1576 echo "$as_me:$LINENO: result: $AWK" >&5 1577echo "${ECHO_T}$AWK" >&6 1578else 1579 echo "$as_me:$LINENO: result: no" >&5 1580echo "${ECHO_T}no" >&6 1581fi 1582 1583 test -n "$AWK" && break 1584done 1585 1586echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1587echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1588set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1589if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1590 echo $ECHO_N "(cached) $ECHO_C" >&6 1591else 1592 cat >conftest.make <<\_ACEOF 1593all: 1594 @echo 'ac_maketemp="$(MAKE)"' 1595_ACEOF 1596# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1597eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1598if test -n "$ac_maketemp"; then 1599 eval ac_cv_prog_make_${ac_make}_set=yes 1600else 1601 eval ac_cv_prog_make_${ac_make}_set=no 1602fi 1603rm -f conftest.make 1604fi 1605if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1606 echo "$as_me:$LINENO: result: yes" >&5 1607echo "${ECHO_T}yes" >&6 1608 SET_MAKE= 1609else 1610 echo "$as_me:$LINENO: result: no" >&5 1611echo "${ECHO_T}no" >&6 1612 SET_MAKE="MAKE=${MAKE-make}" 1613fi 1614 1615rm -rf .tst 2>/dev/null 1616mkdir .tst 2>/dev/null 1617if test -d .tst; then 1618 am__leading_dot=. 1619else 1620 am__leading_dot=_ 1621fi 1622rmdir .tst 2>/dev/null 1623 1624# test to see if srcdir already configured 1625if test "`cd $srcdir && pwd`" != "`pwd`" && 1626 test -f $srcdir/config.status; then 1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1628echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1629 { (exit 1); exit 1; }; } 1630fi 1631 1632# test whether we have cygpath 1633if test -z "$CYGPATH_W"; then 1634 if (cygpath --version) >/dev/null 2>/dev/null; then 1635 CYGPATH_W='cygpath -w' 1636 else 1637 CYGPATH_W=echo 1638 fi 1639fi 1640 1641 1642# Define the identity of the package. 1643 PACKAGE='texinfo' 1644 VERSION='4.8' 1645 1646 1647cat >>confdefs.h <<_ACEOF 1648#define PACKAGE "$PACKAGE" 1649_ACEOF 1650 1651 1652cat >>confdefs.h <<_ACEOF 1653#define VERSION "$VERSION" 1654_ACEOF 1655 1656# Some tools Automake needs. 1657 1658ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1659 1660 1661AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1662 1663 1664AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1665 1666 1667AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1668 1669 1670MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1671 1672install_sh=${install_sh-"$am_aux_dir/install-sh"} 1673 1674# Installed binaries are usually stripped using `strip' when the user 1675# run `make install-strip'. However `strip' might not be the right 1676# tool to use in cross-compilation environments, therefore Automake 1677# will honor the `STRIP' environment variable to overrule this program. 1678if test "$cross_compiling" != no; then 1679 if test -n "$ac_tool_prefix"; then 1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1681set dummy ${ac_tool_prefix}strip; ac_word=$2 1682echo "$as_me:$LINENO: checking for $ac_word" >&5 1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1684if test "${ac_cv_prog_STRIP+set}" = set; then 1685 echo $ECHO_N "(cached) $ECHO_C" >&6 1686else 1687 if test -n "$STRIP"; then 1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1689else 1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1691for as_dir in $PATH 1692do 1693 IFS=$as_save_IFS 1694 test -z "$as_dir" && as_dir=. 1695 for ac_exec_ext in '' $ac_executable_extensions; do 1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1699 break 2 1700 fi 1701done 1702done 1703 1704fi 1705fi 1706STRIP=$ac_cv_prog_STRIP 1707if test -n "$STRIP"; then 1708 echo "$as_me:$LINENO: result: $STRIP" >&5 1709echo "${ECHO_T}$STRIP" >&6 1710else 1711 echo "$as_me:$LINENO: result: no" >&5 1712echo "${ECHO_T}no" >&6 1713fi 1714 1715fi 1716if test -z "$ac_cv_prog_STRIP"; then 1717 ac_ct_STRIP=$STRIP 1718 # Extract the first word of "strip", so it can be a program name with args. 1719set dummy strip; ac_word=$2 1720echo "$as_me:$LINENO: checking for $ac_word" >&5 1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1723 echo $ECHO_N "(cached) $ECHO_C" >&6 1724else 1725 if test -n "$ac_ct_STRIP"; then 1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1727else 1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1729for as_dir in $PATH 1730do 1731 IFS=$as_save_IFS 1732 test -z "$as_dir" && as_dir=. 1733 for ac_exec_ext in '' $ac_executable_extensions; do 1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1735 ac_cv_prog_ac_ct_STRIP="strip" 1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1737 break 2 1738 fi 1739done 1740done 1741 1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1743fi 1744fi 1745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1746if test -n "$ac_ct_STRIP"; then 1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1748echo "${ECHO_T}$ac_ct_STRIP" >&6 1749else 1750 echo "$as_me:$LINENO: result: no" >&5 1751echo "${ECHO_T}no" >&6 1752fi 1753 1754 STRIP=$ac_ct_STRIP 1755else 1756 STRIP="$ac_cv_prog_STRIP" 1757fi 1758 1759fi 1760INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1761 1762# We need awk for the "check" target. The system "awk" is bad on 1763# some platforms. 1764# Always define AMTAR for backward compatibility. 1765 1766AMTAR=${AMTAR-"${am_missing_run}tar"} 1767 1768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1769 1770 1771 1772 1773 1774 1775# When the Texinfo source is imported into other repositories 1776# (NetBSD and TeX Live), timestamps are generally not preserved. This 1777# causes lots of annoyance, so --enable-maintainer-mode. Sorry. 1778echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1779echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1780 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1781if test "${enable_maintainer_mode+set}" = set; then 1782 enableval="$enable_maintainer_mode" 1783 USE_MAINTAINER_MODE=$enableval 1784else 1785 USE_MAINTAINER_MODE=no 1786fi; 1787 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1788echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1789 1790 1791if test $USE_MAINTAINER_MODE = yes; then 1792 MAINTAINER_MODE_TRUE= 1793 MAINTAINER_MODE_FALSE='#' 1794else 1795 MAINTAINER_MODE_TRUE='#' 1796 MAINTAINER_MODE_FALSE= 1797fi 1798 1799 MAINT=$MAINTAINER_MODE_TRUE 1800 1801 1802 1803# Checks for programs. 1804ac_ext=c 1805ac_cpp='$CPP $CPPFLAGS' 1806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1808ac_compiler_gnu=$ac_cv_c_compiler_gnu 1809if test -n "$ac_tool_prefix"; then 1810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1811set dummy ${ac_tool_prefix}gcc; ac_word=$2 1812echo "$as_me:$LINENO: checking for $ac_word" >&5 1813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1814if test "${ac_cv_prog_CC+set}" = set; then 1815 echo $ECHO_N "(cached) $ECHO_C" >&6 1816else 1817 if test -n "$CC"; then 1818 ac_cv_prog_CC="$CC" # Let the user override the test. 1819else 1820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1821for as_dir in $PATH 1822do 1823 IFS=$as_save_IFS 1824 test -z "$as_dir" && as_dir=. 1825 for ac_exec_ext in '' $ac_executable_extensions; do 1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1827 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1829 break 2 1830 fi 1831done 1832done 1833 1834fi 1835fi 1836CC=$ac_cv_prog_CC 1837if test -n "$CC"; then 1838 echo "$as_me:$LINENO: result: $CC" >&5 1839echo "${ECHO_T}$CC" >&6 1840else 1841 echo "$as_me:$LINENO: result: no" >&5 1842echo "${ECHO_T}no" >&6 1843fi 1844 1845fi 1846if test -z "$ac_cv_prog_CC"; then 1847 ac_ct_CC=$CC 1848 # Extract the first word of "gcc", so it can be a program name with args. 1849set dummy gcc; ac_word=$2 1850echo "$as_me:$LINENO: checking for $ac_word" >&5 1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1853 echo $ECHO_N "(cached) $ECHO_C" >&6 1854else 1855 if test -n "$ac_ct_CC"; then 1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1857else 1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1859for as_dir in $PATH 1860do 1861 IFS=$as_save_IFS 1862 test -z "$as_dir" && as_dir=. 1863 for ac_exec_ext in '' $ac_executable_extensions; do 1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1865 ac_cv_prog_ac_ct_CC="gcc" 1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1867 break 2 1868 fi 1869done 1870done 1871 1872fi 1873fi 1874ac_ct_CC=$ac_cv_prog_ac_ct_CC 1875if test -n "$ac_ct_CC"; then 1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1877echo "${ECHO_T}$ac_ct_CC" >&6 1878else 1879 echo "$as_me:$LINENO: result: no" >&5 1880echo "${ECHO_T}no" >&6 1881fi 1882 1883 CC=$ac_ct_CC 1884else 1885 CC="$ac_cv_prog_CC" 1886fi 1887 1888if test -z "$CC"; then 1889 if test -n "$ac_tool_prefix"; then 1890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1891set dummy ${ac_tool_prefix}cc; ac_word=$2 1892echo "$as_me:$LINENO: checking for $ac_word" >&5 1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1894if test "${ac_cv_prog_CC+set}" = set; then 1895 echo $ECHO_N "(cached) $ECHO_C" >&6 1896else 1897 if test -n "$CC"; then 1898 ac_cv_prog_CC="$CC" # Let the user override the test. 1899else 1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901for as_dir in $PATH 1902do 1903 IFS=$as_save_IFS 1904 test -z "$as_dir" && as_dir=. 1905 for ac_exec_ext in '' $ac_executable_extensions; do 1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1907 ac_cv_prog_CC="${ac_tool_prefix}cc" 1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1909 break 2 1910 fi 1911done 1912done 1913 1914fi 1915fi 1916CC=$ac_cv_prog_CC 1917if test -n "$CC"; then 1918 echo "$as_me:$LINENO: result: $CC" >&5 1919echo "${ECHO_T}$CC" >&6 1920else 1921 echo "$as_me:$LINENO: result: no" >&5 1922echo "${ECHO_T}no" >&6 1923fi 1924 1925fi 1926if test -z "$ac_cv_prog_CC"; then 1927 ac_ct_CC=$CC 1928 # Extract the first word of "cc", so it can be a program name with args. 1929set dummy cc; ac_word=$2 1930echo "$as_me:$LINENO: checking for $ac_word" >&5 1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1933 echo $ECHO_N "(cached) $ECHO_C" >&6 1934else 1935 if test -n "$ac_ct_CC"; then 1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1937else 1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1939for as_dir in $PATH 1940do 1941 IFS=$as_save_IFS 1942 test -z "$as_dir" && as_dir=. 1943 for ac_exec_ext in '' $ac_executable_extensions; do 1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1945 ac_cv_prog_ac_ct_CC="cc" 1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1947 break 2 1948 fi 1949done 1950done 1951 1952fi 1953fi 1954ac_ct_CC=$ac_cv_prog_ac_ct_CC 1955if test -n "$ac_ct_CC"; then 1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1957echo "${ECHO_T}$ac_ct_CC" >&6 1958else 1959 echo "$as_me:$LINENO: result: no" >&5 1960echo "${ECHO_T}no" >&6 1961fi 1962 1963 CC=$ac_ct_CC 1964else 1965 CC="$ac_cv_prog_CC" 1966fi 1967 1968fi 1969if test -z "$CC"; then 1970 # Extract the first word of "cc", so it can be a program name with args. 1971set dummy cc; ac_word=$2 1972echo "$as_me:$LINENO: checking for $ac_word" >&5 1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1974if test "${ac_cv_prog_CC+set}" = set; then 1975 echo $ECHO_N "(cached) $ECHO_C" >&6 1976else 1977 if test -n "$CC"; then 1978 ac_cv_prog_CC="$CC" # Let the user override the test. 1979else 1980 ac_prog_rejected=no 1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1982for as_dir in $PATH 1983do 1984 IFS=$as_save_IFS 1985 test -z "$as_dir" && as_dir=. 1986 for ac_exec_ext in '' $ac_executable_extensions; do 1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1989 ac_prog_rejected=yes 1990 continue 1991 fi 1992 ac_cv_prog_CC="cc" 1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1994 break 2 1995 fi 1996done 1997done 1998 1999if test $ac_prog_rejected = yes; then 2000 # We found a bogon in the path, so make sure we never use it. 2001 set dummy $ac_cv_prog_CC 2002 shift 2003 if test $# != 0; then 2004 # We chose a different compiler from the bogus one. 2005 # However, it has the same basename, so the bogon will be chosen 2006 # first if we set CC to just the basename; use the full file name. 2007 shift 2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2009 fi 2010fi 2011fi 2012fi 2013CC=$ac_cv_prog_CC 2014if test -n "$CC"; then 2015 echo "$as_me:$LINENO: result: $CC" >&5 2016echo "${ECHO_T}$CC" >&6 2017else 2018 echo "$as_me:$LINENO: result: no" >&5 2019echo "${ECHO_T}no" >&6 2020fi 2021 2022fi 2023if test -z "$CC"; then 2024 if test -n "$ac_tool_prefix"; then 2025 for ac_prog in cl 2026 do 2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2028set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2029echo "$as_me:$LINENO: checking for $ac_word" >&5 2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2031if test "${ac_cv_prog_CC+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033else 2034 if test -n "$CC"; then 2035 ac_cv_prog_CC="$CC" # Let the user override the test. 2036else 2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_exec_ext in '' $ac_executable_extensions; do 2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2046 break 2 2047 fi 2048done 2049done 2050 2051fi 2052fi 2053CC=$ac_cv_prog_CC 2054if test -n "$CC"; then 2055 echo "$as_me:$LINENO: result: $CC" >&5 2056echo "${ECHO_T}$CC" >&6 2057else 2058 echo "$as_me:$LINENO: result: no" >&5 2059echo "${ECHO_T}no" >&6 2060fi 2061 2062 test -n "$CC" && break 2063 done 2064fi 2065if test -z "$CC"; then 2066 ac_ct_CC=$CC 2067 for ac_prog in cl 2068do 2069 # Extract the first word of "$ac_prog", so it can be a program name with args. 2070set dummy $ac_prog; ac_word=$2 2071echo "$as_me:$LINENO: checking for $ac_word" >&5 2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2074 echo $ECHO_N "(cached) $ECHO_C" >&6 2075else 2076 if test -n "$ac_ct_CC"; then 2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2078else 2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2080for as_dir in $PATH 2081do 2082 IFS=$as_save_IFS 2083 test -z "$as_dir" && as_dir=. 2084 for ac_exec_ext in '' $ac_executable_extensions; do 2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2086 ac_cv_prog_ac_ct_CC="$ac_prog" 2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2088 break 2 2089 fi 2090done 2091done 2092 2093fi 2094fi 2095ac_ct_CC=$ac_cv_prog_ac_ct_CC 2096if test -n "$ac_ct_CC"; then 2097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2098echo "${ECHO_T}$ac_ct_CC" >&6 2099else 2100 echo "$as_me:$LINENO: result: no" >&5 2101echo "${ECHO_T}no" >&6 2102fi 2103 2104 test -n "$ac_ct_CC" && break 2105done 2106 2107 CC=$ac_ct_CC 2108fi 2109 2110fi 2111 2112 2113test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2114See \`config.log' for more details." >&5 2115echo "$as_me: error: no acceptable C compiler found in \$PATH 2116See \`config.log' for more details." >&2;} 2117 { (exit 1); exit 1; }; } 2118 2119# Provide some information about the compiler. 2120echo "$as_me:$LINENO:" \ 2121 "checking for C compiler version" >&5 2122ac_compiler=`set X $ac_compile; echo $2` 2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2124 (eval $ac_compiler --version </dev/null >&5) 2>&5 2125 ac_status=$? 2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2127 (exit $ac_status); } 2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2129 (eval $ac_compiler -v </dev/null >&5) 2>&5 2130 ac_status=$? 2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2132 (exit $ac_status); } 2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2134 (eval $ac_compiler -V </dev/null >&5) 2>&5 2135 ac_status=$? 2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2137 (exit $ac_status); } 2138 2139cat >conftest.$ac_ext <<_ACEOF 2140/* confdefs.h. */ 2141_ACEOF 2142cat confdefs.h >>conftest.$ac_ext 2143cat >>conftest.$ac_ext <<_ACEOF 2144/* end confdefs.h. */ 2145 2146int 2147main () 2148{ 2149 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154ac_clean_files_save=$ac_clean_files 2155ac_clean_files="$ac_clean_files a.out a.exe b.out" 2156# Try to create an executable without -o first, disregard a.out. 2157# It will help us diagnose broken compilers, and finding out an intuition 2158# of exeext. 2159echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2160echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2161ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2162if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2163 (eval $ac_link_default) 2>&5 2164 ac_status=$? 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); }; then 2167 # Find the output, starting from the most likely. This scheme is 2168# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2169# resort. 2170 2171# Be careful to initialize this variable, since it used to be cached. 2172# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2173ac_cv_exeext= 2174# b.out is created by i960 compilers. 2175for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2176do 2177 test -f "$ac_file" || continue 2178 case $ac_file in 2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2180 ;; 2181 conftest.$ac_ext ) 2182 # This is the source file. 2183 ;; 2184 [ab].out ) 2185 # We found the default executable, but exeext='' is most 2186 # certainly right. 2187 break;; 2188 *.* ) 2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2190 # FIXME: I believe we export ac_cv_exeext for Libtool, 2191 # but it would be cool to find out if it's true. Does anybody 2192 # maintain Libtool? --akim. 2193 export ac_cv_exeext 2194 break;; 2195 * ) 2196 break;; 2197 esac 2198done 2199else 2200 echo "$as_me: failed program was:" >&5 2201sed 's/^/| /' conftest.$ac_ext >&5 2202 2203{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2204See \`config.log' for more details." >&5 2205echo "$as_me: error: C compiler cannot create executables 2206See \`config.log' for more details." >&2;} 2207 { (exit 77); exit 77; }; } 2208fi 2209 2210ac_exeext=$ac_cv_exeext 2211echo "$as_me:$LINENO: result: $ac_file" >&5 2212echo "${ECHO_T}$ac_file" >&6 2213 2214# Check the compiler produces executables we can run. If not, either 2215# the compiler is broken, or we cross compile. 2216echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2217echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2218# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2219# If not cross compiling, check that we can run a simple program. 2220if test "$cross_compiling" != yes; then 2221 if { ac_try='./$ac_file' 2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2223 (eval $ac_try) 2>&5 2224 ac_status=$? 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); }; }; then 2227 cross_compiling=no 2228 else 2229 if test "$cross_compiling" = maybe; then 2230 cross_compiling=yes 2231 else 2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2233If you meant to cross compile, use \`--host'. 2234See \`config.log' for more details." >&5 2235echo "$as_me: error: cannot run C compiled programs. 2236If you meant to cross compile, use \`--host'. 2237See \`config.log' for more details." >&2;} 2238 { (exit 1); exit 1; }; } 2239 fi 2240 fi 2241fi 2242echo "$as_me:$LINENO: result: yes" >&5 2243echo "${ECHO_T}yes" >&6 2244 2245rm -f a.out a.exe conftest$ac_cv_exeext b.out 2246ac_clean_files=$ac_clean_files_save 2247# Check the compiler produces executables we can run. If not, either 2248# the compiler is broken, or we cross compile. 2249echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2251echo "$as_me:$LINENO: result: $cross_compiling" >&5 2252echo "${ECHO_T}$cross_compiling" >&6 2253 2254echo "$as_me:$LINENO: checking for suffix of executables" >&5 2255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2257 (eval $ac_link) 2>&5 2258 ac_status=$? 2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2260 (exit $ac_status); }; then 2261 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2262# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2263# work properly (i.e., refer to `conftest.exe'), while it won't with 2264# `rm'. 2265for ac_file in conftest.exe conftest conftest.*; do 2266 test -f "$ac_file" || continue 2267 case $ac_file in 2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2270 export ac_cv_exeext 2271 break;; 2272 * ) break;; 2273 esac 2274done 2275else 2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2277See \`config.log' for more details." >&5 2278echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2279See \`config.log' for more details." >&2;} 2280 { (exit 1); exit 1; }; } 2281fi 2282 2283rm -f conftest$ac_cv_exeext 2284echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2285echo "${ECHO_T}$ac_cv_exeext" >&6 2286 2287rm -f conftest.$ac_ext 2288EXEEXT=$ac_cv_exeext 2289ac_exeext=$EXEEXT 2290echo "$as_me:$LINENO: checking for suffix of object files" >&5 2291echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2292if test "${ac_cv_objext+set}" = set; then 2293 echo $ECHO_N "(cached) $ECHO_C" >&6 2294else 2295 cat >conftest.$ac_ext <<_ACEOF 2296/* confdefs.h. */ 2297_ACEOF 2298cat confdefs.h >>conftest.$ac_ext 2299cat >>conftest.$ac_ext <<_ACEOF 2300/* end confdefs.h. */ 2301 2302int 2303main () 2304{ 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310rm -f conftest.o conftest.obj 2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2312 (eval $ac_compile) 2>&5 2313 ac_status=$? 2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 (exit $ac_status); }; then 2316 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2317 case $ac_file in 2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2320 break;; 2321 esac 2322done 2323else 2324 echo "$as_me: failed program was:" >&5 2325sed 's/^/| /' conftest.$ac_ext >&5 2326 2327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2328See \`config.log' for more details." >&5 2329echo "$as_me: error: cannot compute suffix of object files: cannot compile 2330See \`config.log' for more details." >&2;} 2331 { (exit 1); exit 1; }; } 2332fi 2333 2334rm -f conftest.$ac_cv_objext conftest.$ac_ext 2335fi 2336echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2337echo "${ECHO_T}$ac_cv_objext" >&6 2338OBJEXT=$ac_cv_objext 2339ac_objext=$OBJEXT 2340echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2342if test "${ac_cv_c_compiler_gnu+set}" = set; then 2343 echo $ECHO_N "(cached) $ECHO_C" >&6 2344else 2345 cat >conftest.$ac_ext <<_ACEOF 2346/* confdefs.h. */ 2347_ACEOF 2348cat confdefs.h >>conftest.$ac_ext 2349cat >>conftest.$ac_ext <<_ACEOF 2350/* end confdefs.h. */ 2351 2352int 2353main () 2354{ 2355#ifndef __GNUC__ 2356 choke me 2357#endif 2358 2359 ; 2360 return 0; 2361} 2362_ACEOF 2363rm -f conftest.$ac_objext 2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2365 (eval $ac_compile) 2>conftest.er1 2366 ac_status=$? 2367 grep -v '^ *+' conftest.er1 >conftest.err 2368 rm -f conftest.er1 2369 cat conftest.err >&5 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); } && 2372 { ac_try='test -z "$ac_c_werror_flag" 2373 || test ! -s conftest.err' 2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2375 (eval $ac_try) 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; } && 2379 { ac_try='test -s conftest.$ac_objext' 2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2381 (eval $ac_try) 2>&5 2382 ac_status=$? 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2384 (exit $ac_status); }; }; then 2385 ac_compiler_gnu=yes 2386else 2387 echo "$as_me: failed program was:" >&5 2388sed 's/^/| /' conftest.$ac_ext >&5 2389 2390ac_compiler_gnu=no 2391fi 2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2393ac_cv_c_compiler_gnu=$ac_compiler_gnu 2394 2395fi 2396echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2397echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2398GCC=`test $ac_compiler_gnu = yes && echo yes` 2399ac_test_CFLAGS=${CFLAGS+set} 2400ac_save_CFLAGS=$CFLAGS 2401CFLAGS="-g" 2402echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2403echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2404if test "${ac_cv_prog_cc_g+set}" = set; then 2405 echo $ECHO_N "(cached) $ECHO_C" >&6 2406else 2407 cat >conftest.$ac_ext <<_ACEOF 2408/* confdefs.h. */ 2409_ACEOF 2410cat confdefs.h >>conftest.$ac_ext 2411cat >>conftest.$ac_ext <<_ACEOF 2412/* end confdefs.h. */ 2413 2414int 2415main () 2416{ 2417 2418 ; 2419 return 0; 2420} 2421_ACEOF 2422rm -f conftest.$ac_objext 2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2424 (eval $ac_compile) 2>conftest.er1 2425 ac_status=$? 2426 grep -v '^ *+' conftest.er1 >conftest.err 2427 rm -f conftest.er1 2428 cat conftest.err >&5 2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2430 (exit $ac_status); } && 2431 { ac_try='test -z "$ac_c_werror_flag" 2432 || test ! -s conftest.err' 2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2434 (eval $ac_try) 2>&5 2435 ac_status=$? 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); }; } && 2438 { ac_try='test -s conftest.$ac_objext' 2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2440 (eval $ac_try) 2>&5 2441 ac_status=$? 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2443 (exit $ac_status); }; }; then 2444 ac_cv_prog_cc_g=yes 2445else 2446 echo "$as_me: failed program was:" >&5 2447sed 's/^/| /' conftest.$ac_ext >&5 2448 2449ac_cv_prog_cc_g=no 2450fi 2451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2452fi 2453echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2454echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2455if test "$ac_test_CFLAGS" = set; then 2456 CFLAGS=$ac_save_CFLAGS 2457elif test $ac_cv_prog_cc_g = yes; then 2458 if test "$GCC" = yes; then 2459 CFLAGS="-g -O2" 2460 else 2461 CFLAGS="-g" 2462 fi 2463else 2464 if test "$GCC" = yes; then 2465 CFLAGS="-O2" 2466 else 2467 CFLAGS= 2468 fi 2469fi 2470echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2471echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2472if test "${ac_cv_prog_cc_stdc+set}" = set; then 2473 echo $ECHO_N "(cached) $ECHO_C" >&6 2474else 2475 ac_cv_prog_cc_stdc=no 2476ac_save_CC=$CC 2477cat >conftest.$ac_ext <<_ACEOF 2478/* confdefs.h. */ 2479_ACEOF 2480cat confdefs.h >>conftest.$ac_ext 2481cat >>conftest.$ac_ext <<_ACEOF 2482/* end confdefs.h. */ 2483#include <stdarg.h> 2484#include <stdio.h> 2485#include <sys/types.h> 2486#include <sys/stat.h> 2487/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2488struct buf { int x; }; 2489FILE * (*rcsopen) (struct buf *, struct stat *, int); 2490static char *e (p, i) 2491 char **p; 2492 int i; 2493{ 2494 return p[i]; 2495} 2496static char *f (char * (*g) (char **, int), char **p, ...) 2497{ 2498 char *s; 2499 va_list v; 2500 va_start (v,p); 2501 s = g (p, va_arg (v,int)); 2502 va_end (v); 2503 return s; 2504} 2505 2506/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2507 function prototypes and stuff, but not '\xHH' hex character constants. 2508 These don't provoke an error unfortunately, instead are silently treated 2509 as 'x'. The following induces an error, until -std1 is added to get 2510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2511 array size at least. It's necessary to write '\x00'==0 to get something 2512 that's true only with -std1. */ 2513int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2514 2515int test (int i, double x); 2516struct s1 {int (*f) (int a);}; 2517struct s2 {int (*f) (double a);}; 2518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2519int argc; 2520char **argv; 2521int 2522main () 2523{ 2524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2525 ; 2526 return 0; 2527} 2528_ACEOF 2529# Don't try gcc -ansi; that turns off useful extensions and 2530# breaks some systems' header files. 2531# AIX -qlanglvl=ansi 2532# Ultrix and OSF/1 -std1 2533# HP-UX 10.20 and later -Ae 2534# HP-UX older versions -Aa -D_HPUX_SOURCE 2535# SVR4 -Xc -D__EXTENSIONS__ 2536for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2537do 2538 CC="$ac_save_CC $ac_arg" 2539 rm -f conftest.$ac_objext 2540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2541 (eval $ac_compile) 2>conftest.er1 2542 ac_status=$? 2543 grep -v '^ *+' conftest.er1 >conftest.err 2544 rm -f conftest.er1 2545 cat conftest.err >&5 2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } && 2548 { ac_try='test -z "$ac_c_werror_flag" 2549 || test ! -s conftest.err' 2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); }; } && 2555 { ac_try='test -s conftest.$ac_objext' 2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; }; then 2561 ac_cv_prog_cc_stdc=$ac_arg 2562break 2563else 2564 echo "$as_me: failed program was:" >&5 2565sed 's/^/| /' conftest.$ac_ext >&5 2566 2567fi 2568rm -f conftest.err conftest.$ac_objext 2569done 2570rm -f conftest.$ac_ext conftest.$ac_objext 2571CC=$ac_save_CC 2572 2573fi 2574 2575case "x$ac_cv_prog_cc_stdc" in 2576 x|xno) 2577 echo "$as_me:$LINENO: result: none needed" >&5 2578echo "${ECHO_T}none needed" >&6 ;; 2579 *) 2580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2581echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2582 CC="$CC $ac_cv_prog_cc_stdc" ;; 2583esac 2584 2585# Some people use a C++ compiler to compile C. Since we use `exit', 2586# in C++ we need to declare it. In case someone uses the same compiler 2587# for both compiling C and C++ we need to have the C++ compiler decide 2588# the declaration of exit, since it's the most demanding environment. 2589cat >conftest.$ac_ext <<_ACEOF 2590#ifndef __cplusplus 2591 choke me 2592#endif 2593_ACEOF 2594rm -f conftest.$ac_objext 2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2596 (eval $ac_compile) 2>conftest.er1 2597 ac_status=$? 2598 grep -v '^ *+' conftest.er1 >conftest.err 2599 rm -f conftest.er1 2600 cat conftest.err >&5 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); } && 2603 { ac_try='test -z "$ac_c_werror_flag" 2604 || test ! -s conftest.err' 2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2606 (eval $ac_try) 2>&5 2607 ac_status=$? 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2609 (exit $ac_status); }; } && 2610 { ac_try='test -s conftest.$ac_objext' 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2612 (eval $ac_try) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; }; then 2616 for ac_declaration in \ 2617 '' \ 2618 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2619 'extern "C" void std::exit (int); using std::exit;' \ 2620 'extern "C" void exit (int) throw ();' \ 2621 'extern "C" void exit (int);' \ 2622 'void exit (int);' 2623do 2624 cat >conftest.$ac_ext <<_ACEOF 2625/* confdefs.h. */ 2626_ACEOF 2627cat confdefs.h >>conftest.$ac_ext 2628cat >>conftest.$ac_ext <<_ACEOF 2629/* end confdefs.h. */ 2630$ac_declaration 2631#include <stdlib.h> 2632int 2633main () 2634{ 2635exit (42); 2636 ; 2637 return 0; 2638} 2639_ACEOF 2640rm -f conftest.$ac_objext 2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2642 (eval $ac_compile) 2>conftest.er1 2643 ac_status=$? 2644 grep -v '^ *+' conftest.er1 >conftest.err 2645 rm -f conftest.er1 2646 cat conftest.err >&5 2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2648 (exit $ac_status); } && 2649 { ac_try='test -z "$ac_c_werror_flag" 2650 || test ! -s conftest.err' 2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2652 (eval $ac_try) 2>&5 2653 ac_status=$? 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2655 (exit $ac_status); }; } && 2656 { ac_try='test -s conftest.$ac_objext' 2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2658 (eval $ac_try) 2>&5 2659 ac_status=$? 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2661 (exit $ac_status); }; }; then 2662 : 2663else 2664 echo "$as_me: failed program was:" >&5 2665sed 's/^/| /' conftest.$ac_ext >&5 2666 2667continue 2668fi 2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2670 cat >conftest.$ac_ext <<_ACEOF 2671/* confdefs.h. */ 2672_ACEOF 2673cat confdefs.h >>conftest.$ac_ext 2674cat >>conftest.$ac_ext <<_ACEOF 2675/* end confdefs.h. */ 2676$ac_declaration 2677int 2678main () 2679{ 2680exit (42); 2681 ; 2682 return 0; 2683} 2684_ACEOF 2685rm -f conftest.$ac_objext 2686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2687 (eval $ac_compile) 2>conftest.er1 2688 ac_status=$? 2689 grep -v '^ *+' conftest.er1 >conftest.err 2690 rm -f conftest.er1 2691 cat conftest.err >&5 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); } && 2694 { ac_try='test -z "$ac_c_werror_flag" 2695 || test ! -s conftest.err' 2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2697 (eval $ac_try) 2>&5 2698 ac_status=$? 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); }; } && 2701 { ac_try='test -s conftest.$ac_objext' 2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2703 (eval $ac_try) 2>&5 2704 ac_status=$? 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); }; }; then 2707 break 2708else 2709 echo "$as_me: failed program was:" >&5 2710sed 's/^/| /' conftest.$ac_ext >&5 2711 2712fi 2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2714done 2715rm -f conftest* 2716if test -n "$ac_declaration"; then 2717 echo '#ifdef __cplusplus' >>confdefs.h 2718 echo $ac_declaration >>confdefs.h 2719 echo '#endif' >>confdefs.h 2720fi 2721 2722else 2723 echo "$as_me: failed program was:" >&5 2724sed 's/^/| /' conftest.$ac_ext >&5 2725 2726fi 2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2728ac_ext=c 2729ac_cpp='$CPP $CPPFLAGS' 2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2732ac_compiler_gnu=$ac_cv_c_compiler_gnu 2733DEPDIR="${am__leading_dot}deps" 2734 2735 ac_config_commands="$ac_config_commands depfiles" 2736 2737 2738am_make=${MAKE-make} 2739cat > confinc << 'END' 2740am__doit: 2741 @echo done 2742.PHONY: am__doit 2743END 2744# If we don't find an include directive, just comment out the code. 2745echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2746echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2747am__include="#" 2748am__quote= 2749_am_result=none 2750# First try GNU make style include. 2751echo "include confinc" > confmf 2752# We grep out `Entering directory' and `Leaving directory' 2753# messages which can occur if `w' ends up in MAKEFLAGS. 2754# In particular we don't look at `^make:' because GNU make might 2755# be invoked under some other name (usually "gmake"), in which 2756# case it prints its new name instead of `make'. 2757if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2758 am__include=include 2759 am__quote= 2760 _am_result=GNU 2761fi 2762# Now try BSD make style include. 2763if test "$am__include" = "#"; then 2764 echo '.include "confinc"' > confmf 2765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2766 am__include=.include 2767 am__quote="\"" 2768 _am_result=BSD 2769 fi 2770fi 2771 2772 2773echo "$as_me:$LINENO: result: $_am_result" >&5 2774echo "${ECHO_T}$_am_result" >&6 2775rm -f confinc confmf 2776 2777# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2778if test "${enable_dependency_tracking+set}" = set; then 2779 enableval="$enable_dependency_tracking" 2780 2781fi; 2782if test "x$enable_dependency_tracking" != xno; then 2783 am_depcomp="$ac_aux_dir/depcomp" 2784 AMDEPBACKSLASH='\' 2785fi 2786 2787 2788if test "x$enable_dependency_tracking" != xno; then 2789 AMDEP_TRUE= 2790 AMDEP_FALSE='#' 2791else 2792 AMDEP_TRUE='#' 2793 AMDEP_FALSE= 2794fi 2795 2796 2797 2798 2799depcc="$CC" am_compiler_list= 2800 2801echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2802echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2803if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805else 2806 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2807 # We make a subdir and do the tests there. Otherwise we can end up 2808 # making bogus files that we don't know about and never remove. For 2809 # instance it was reported that on HP-UX the gcc test will end up 2810 # making a dummy file named `D' -- because `-MD' means `put the output 2811 # in D'. 2812 mkdir conftest.dir 2813 # Copy depcomp to subdir because otherwise we won't find it if we're 2814 # using a relative directory. 2815 cp "$am_depcomp" conftest.dir 2816 cd conftest.dir 2817 # We will build objects and dependencies in a subdirectory because 2818 # it helps to detect inapplicable dependency modes. For instance 2819 # both Tru64's cc and ICC support -MD to output dependencies as a 2820 # side effect of compilation, but ICC will put the dependencies in 2821 # the current directory while Tru64 will put them in the object 2822 # directory. 2823 mkdir sub 2824 2825 am_cv_CC_dependencies_compiler_type=none 2826 if test "$am_compiler_list" = ""; then 2827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2828 fi 2829 for depmode in $am_compiler_list; do 2830 # Setup a source with many dependencies, because some compilers 2831 # like to wrap large dependency lists on column 80 (with \), and 2832 # we should not choose a depcomp mode which is confused by this. 2833 # 2834 # We need to recreate these files for each test, as the compiler may 2835 # overwrite some of them when testing with obscure command lines. 2836 # This happens at least with the AIX C compiler. 2837 : > sub/conftest.c 2838 for i in 1 2 3 4 5 6; do 2839 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2841 # Solaris 8's {/usr,}/bin/sh. 2842 touch sub/conftst$i.h 2843 done 2844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2845 2846 case $depmode in 2847 nosideeffect) 2848 # after this tag, mechanisms are not by side-effect, so they'll 2849 # only be used when explicitly requested 2850 if test "x$enable_dependency_tracking" = xyes; then 2851 continue 2852 else 2853 break 2854 fi 2855 ;; 2856 none) break ;; 2857 esac 2858 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2859 # mode. It turns out that the SunPro C++ compiler does not properly 2860 # handle `-M -o', and we need to detect this. 2861 if depmode=$depmode \ 2862 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2864 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2865 >/dev/null 2>conftest.err && 2866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2869 # icc doesn't choke on unknown options, it will just issue warnings 2870 # or remarks (even with -Werror). So we grep stderr for any message 2871 # that says an option was ignored or not supported. 2872 # When given -MP, icc 7.0 and 7.1 complain thusly: 2873 # icc: Command line warning: ignoring option '-M'; no argument required 2874 # The diagnosis changed in icc 8.0: 2875 # icc: Command line remark: option '-MP' not supported 2876 if (grep 'ignoring option' conftest.err || 2877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2878 am_cv_CC_dependencies_compiler_type=$depmode 2879 break 2880 fi 2881 fi 2882 done 2883 2884 cd .. 2885 rm -rf conftest.dir 2886else 2887 am_cv_CC_dependencies_compiler_type=none 2888fi 2889 2890fi 2891echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2892echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2893CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2894 2895 2896 2897if 2898 test "x$enable_dependency_tracking" != xno \ 2899 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2900 am__fastdepCC_TRUE= 2901 am__fastdepCC_FALSE='#' 2902else 2903 am__fastdepCC_TRUE='#' 2904 am__fastdepCC_FALSE= 2905fi 2906 2907 2908 2909ac_ext=c 2910ac_cpp='$CPP $CPPFLAGS' 2911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2913ac_compiler_gnu=$ac_cv_c_compiler_gnu 2914echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2915echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2916# On Suns, sometimes $CPP names a directory. 2917if test -n "$CPP" && test -d "$CPP"; then 2918 CPP= 2919fi 2920if test -z "$CPP"; then 2921 if test "${ac_cv_prog_CPP+set}" = set; then 2922 echo $ECHO_N "(cached) $ECHO_C" >&6 2923else 2924 # Double quotes because CPP needs to be expanded 2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2926 do 2927 ac_preproc_ok=false 2928for ac_c_preproc_warn_flag in '' yes 2929do 2930 # Use a header file that comes with gcc, so configuring glibc 2931 # with a fresh cross-compiler works. 2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2933 # <limits.h> exists even on freestanding compilers. 2934 # On the NeXT, cc -E runs the code through the compiler's parser, 2935 # not just through cpp. "Syntax error" is here to catch this case. 2936 cat >conftest.$ac_ext <<_ACEOF 2937/* confdefs.h. */ 2938_ACEOF 2939cat confdefs.h >>conftest.$ac_ext 2940cat >>conftest.$ac_ext <<_ACEOF 2941/* end confdefs.h. */ 2942#ifdef __STDC__ 2943# include <limits.h> 2944#else 2945# include <assert.h> 2946#endif 2947 Syntax error 2948_ACEOF 2949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2951 ac_status=$? 2952 grep -v '^ *+' conftest.er1 >conftest.err 2953 rm -f conftest.er1 2954 cat conftest.err >&5 2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); } >/dev/null; then 2957 if test -s conftest.err; then 2958 ac_cpp_err=$ac_c_preproc_warn_flag 2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2960 else 2961 ac_cpp_err= 2962 fi 2963else 2964 ac_cpp_err=yes 2965fi 2966if test -z "$ac_cpp_err"; then 2967 : 2968else 2969 echo "$as_me: failed program was:" >&5 2970sed 's/^/| /' conftest.$ac_ext >&5 2971 2972 # Broken: fails on valid input. 2973continue 2974fi 2975rm -f conftest.err conftest.$ac_ext 2976 2977 # OK, works on sane cases. Now check whether non-existent headers 2978 # can be detected and how. 2979 cat >conftest.$ac_ext <<_ACEOF 2980/* confdefs.h. */ 2981_ACEOF 2982cat confdefs.h >>conftest.$ac_ext 2983cat >>conftest.$ac_ext <<_ACEOF 2984/* end confdefs.h. */ 2985#include <ac_nonexistent.h> 2986_ACEOF 2987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2989 ac_status=$? 2990 grep -v '^ *+' conftest.er1 >conftest.err 2991 rm -f conftest.er1 2992 cat conftest.err >&5 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); } >/dev/null; then 2995 if test -s conftest.err; then 2996 ac_cpp_err=$ac_c_preproc_warn_flag 2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2998 else 2999 ac_cpp_err= 3000 fi 3001else 3002 ac_cpp_err=yes 3003fi 3004if test -z "$ac_cpp_err"; then 3005 # Broken: success on invalid input. 3006continue 3007else 3008 echo "$as_me: failed program was:" >&5 3009sed 's/^/| /' conftest.$ac_ext >&5 3010 3011 # Passes both tests. 3012ac_preproc_ok=: 3013break 3014fi 3015rm -f conftest.err conftest.$ac_ext 3016 3017done 3018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3019rm -f conftest.err conftest.$ac_ext 3020if $ac_preproc_ok; then 3021 break 3022fi 3023 3024 done 3025 ac_cv_prog_CPP=$CPP 3026 3027fi 3028 CPP=$ac_cv_prog_CPP 3029else 3030 ac_cv_prog_CPP=$CPP 3031fi 3032echo "$as_me:$LINENO: result: $CPP" >&5 3033echo "${ECHO_T}$CPP" >&6 3034ac_preproc_ok=false 3035for ac_c_preproc_warn_flag in '' yes 3036do 3037 # Use a header file that comes with gcc, so configuring glibc 3038 # with a fresh cross-compiler works. 3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3040 # <limits.h> exists even on freestanding compilers. 3041 # On the NeXT, cc -E runs the code through the compiler's parser, 3042 # not just through cpp. "Syntax error" is here to catch this case. 3043 cat >conftest.$ac_ext <<_ACEOF 3044/* confdefs.h. */ 3045_ACEOF 3046cat confdefs.h >>conftest.$ac_ext 3047cat >>conftest.$ac_ext <<_ACEOF 3048/* end confdefs.h. */ 3049#ifdef __STDC__ 3050# include <limits.h> 3051#else 3052# include <assert.h> 3053#endif 3054 Syntax error 3055_ACEOF 3056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3058 ac_status=$? 3059 grep -v '^ *+' conftest.er1 >conftest.err 3060 rm -f conftest.er1 3061 cat conftest.err >&5 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } >/dev/null; then 3064 if test -s conftest.err; then 3065 ac_cpp_err=$ac_c_preproc_warn_flag 3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3067 else 3068 ac_cpp_err= 3069 fi 3070else 3071 ac_cpp_err=yes 3072fi 3073if test -z "$ac_cpp_err"; then 3074 : 3075else 3076 echo "$as_me: failed program was:" >&5 3077sed 's/^/| /' conftest.$ac_ext >&5 3078 3079 # Broken: fails on valid input. 3080continue 3081fi 3082rm -f conftest.err conftest.$ac_ext 3083 3084 # OK, works on sane cases. Now check whether non-existent headers 3085 # can be detected and how. 3086 cat >conftest.$ac_ext <<_ACEOF 3087/* confdefs.h. */ 3088_ACEOF 3089cat confdefs.h >>conftest.$ac_ext 3090cat >>conftest.$ac_ext <<_ACEOF 3091/* end confdefs.h. */ 3092#include <ac_nonexistent.h> 3093_ACEOF 3094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3096 ac_status=$? 3097 grep -v '^ *+' conftest.er1 >conftest.err 3098 rm -f conftest.er1 3099 cat conftest.err >&5 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); } >/dev/null; then 3102 if test -s conftest.err; then 3103 ac_cpp_err=$ac_c_preproc_warn_flag 3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3105 else 3106 ac_cpp_err= 3107 fi 3108else 3109 ac_cpp_err=yes 3110fi 3111if test -z "$ac_cpp_err"; then 3112 # Broken: success on invalid input. 3113continue 3114else 3115 echo "$as_me: failed program was:" >&5 3116sed 's/^/| /' conftest.$ac_ext >&5 3117 3118 # Passes both tests. 3119ac_preproc_ok=: 3120break 3121fi 3122rm -f conftest.err conftest.$ac_ext 3123 3124done 3125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3126rm -f conftest.err conftest.$ac_ext 3127if $ac_preproc_ok; then 3128 : 3129else 3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3131See \`config.log' for more details." >&5 3132echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3133See \`config.log' for more details." >&2;} 3134 { (exit 1); exit 1; }; } 3135fi 3136 3137ac_ext=c 3138ac_cpp='$CPP $CPPFLAGS' 3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3141ac_compiler_gnu=$ac_cv_c_compiler_gnu 3142 3143 3144echo "$as_me:$LINENO: checking for egrep" >&5 3145echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3146if test "${ac_cv_prog_egrep+set}" = set; then 3147 echo $ECHO_N "(cached) $ECHO_C" >&6 3148else 3149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3150 then ac_cv_prog_egrep='grep -E' 3151 else ac_cv_prog_egrep='egrep' 3152 fi 3153fi 3154echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3155echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3156 EGREP=$ac_cv_prog_egrep 3157 3158 3159if test $ac_cv_c_compiler_gnu = yes; then 3160 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3161echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3162if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3163 echo $ECHO_N "(cached) $ECHO_C" >&6 3164else 3165 ac_pattern="Autoconf.*'x'" 3166 cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172#include <sgtty.h> 3173Autoconf TIOCGETP 3174_ACEOF 3175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3177 ac_cv_prog_gcc_traditional=yes 3178else 3179 ac_cv_prog_gcc_traditional=no 3180fi 3181rm -f conftest* 3182 3183 3184 if test $ac_cv_prog_gcc_traditional = no; then 3185 cat >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#include <termio.h> 3192Autoconf TCGETA 3193_ACEOF 3194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3195 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3196 ac_cv_prog_gcc_traditional=yes 3197fi 3198rm -f conftest* 3199 3200 fi 3201fi 3202echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3203echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3204 if test $ac_cv_prog_gcc_traditional = yes; then 3205 CC="$CC -traditional" 3206 fi 3207fi 3208 3209# Find a good install program. We prefer a C program (faster), 3210# so one script is as good as another. But avoid the broken or 3211# incompatible versions: 3212# SysV /etc/install, /usr/sbin/install 3213# SunOS /usr/etc/install 3214# IRIX /sbin/install 3215# AIX /bin/install 3216# AmigaOS /C/install, which installs bootblocks on floppy discs 3217# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3218# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3219# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3220# OS/2's system install, which has a completely different semantic 3221# ./install, which can be erroneously created by make from ./install.sh. 3222echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3223echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3224if test -z "$INSTALL"; then 3225if test "${ac_cv_path_install+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else 3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 # Account for people who put trailing slashes in PATH elements. 3234case $as_dir/ in 3235 ./ | .// | /cC/* | \ 3236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3237 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3238 /usr/ucb/* ) ;; 3239 *) 3240 # OSF1 and SCO ODT 3.0 have their own names for install. 3241 # Don't use installbsd from OSF since it installs stuff as root 3242 # by default. 3243 for ac_prog in ginstall scoinst install; do 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3246 if test $ac_prog = install && 3247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3248 # AIX install. It has an incompatible calling convention. 3249 : 3250 elif test $ac_prog = install && 3251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3252 # program-specific install script used by HP pwplus--don't use. 3253 : 3254 else 3255 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3256 break 3 3257 fi 3258 fi 3259 done 3260 done 3261 ;; 3262esac 3263done 3264 3265 3266fi 3267 if test "${ac_cv_path_install+set}" = set; then 3268 INSTALL=$ac_cv_path_install 3269 else 3270 # As a last resort, use the slow shell script. We don't cache a 3271 # path for INSTALL within a source directory, because that will 3272 # break other packages using the cache if that directory is 3273 # removed, or if the path is relative. 3274 INSTALL=$ac_install_sh 3275 fi 3276fi 3277echo "$as_me:$LINENO: result: $INSTALL" >&5 3278echo "${ECHO_T}$INSTALL" >&6 3279 3280# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3281# It thinks the first close brace ends the variable substitution. 3282test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3283 3284test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3285 3286test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3287 3288echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3289echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3290set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3291if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3292 echo $ECHO_N "(cached) $ECHO_C" >&6 3293else 3294 cat >conftest.make <<\_ACEOF 3295all: 3296 @echo 'ac_maketemp="$(MAKE)"' 3297_ACEOF 3298# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3299eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3300if test -n "$ac_maketemp"; then 3301 eval ac_cv_prog_make_${ac_make}_set=yes 3302else 3303 eval ac_cv_prog_make_${ac_make}_set=no 3304fi 3305rm -f conftest.make 3306fi 3307if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3308 echo "$as_me:$LINENO: result: yes" >&5 3309echo "${ECHO_T}yes" >&6 3310 SET_MAKE= 3311else 3312 echo "$as_me:$LINENO: result: no" >&5 3313echo "${ECHO_T}no" >&6 3314 SET_MAKE="MAKE=${MAKE-make}" 3315fi 3316 3317if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3320echo "$as_me:$LINENO: checking for $ac_word" >&5 3321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3322if test "${ac_cv_prog_RANLIB+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 if test -n "$RANLIB"; then 3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340done 3341 3342fi 3343fi 3344RANLIB=$ac_cv_prog_RANLIB 3345if test -n "$RANLIB"; then 3346 echo "$as_me:$LINENO: result: $RANLIB" >&5 3347echo "${ECHO_T}$RANLIB" >&6 3348else 3349 echo "$as_me:$LINENO: result: no" >&5 3350echo "${ECHO_T}no" >&6 3351fi 3352 3353fi 3354if test -z "$ac_cv_prog_RANLIB"; then 3355 ac_ct_RANLIB=$RANLIB 3356 # Extract the first word of "ranlib", so it can be a program name with args. 3357set dummy ranlib; ac_word=$2 3358echo "$as_me:$LINENO: checking for $ac_word" >&5 3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3360if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 if test -n "$ac_ct_RANLIB"; then 3364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3365else 3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_ac_ct_RANLIB="ranlib" 3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378done 3379 3380 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3381fi 3382fi 3383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3384if test -n "$ac_ct_RANLIB"; then 3385 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3386echo "${ECHO_T}$ac_ct_RANLIB" >&6 3387else 3388 echo "$as_me:$LINENO: result: no" >&5 3389echo "${ECHO_T}no" >&6 3390fi 3391 3392 RANLIB=$ac_ct_RANLIB 3393else 3394 RANLIB="$ac_cv_prog_RANLIB" 3395fi 3396 3397 3398HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 3399 3400 3401echo "$as_me:$LINENO: checking for library containing strerror" >&5 3402echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3403if test "${ac_cv_search_strerror+set}" = set; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 ac_func_search_save_LIBS=$LIBS 3407ac_cv_search_strerror=no 3408cat >conftest.$ac_ext <<_ACEOF 3409/* confdefs.h. */ 3410_ACEOF 3411cat confdefs.h >>conftest.$ac_ext 3412cat >>conftest.$ac_ext <<_ACEOF 3413/* end confdefs.h. */ 3414 3415/* Override any gcc2 internal prototype to avoid an error. */ 3416#ifdef __cplusplus 3417extern "C" 3418#endif 3419/* We use char because int might match the return type of a gcc2 3420 builtin and then its argument prototype would still apply. */ 3421char strerror (); 3422int 3423main () 3424{ 3425strerror (); 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430rm -f conftest.$ac_objext conftest$ac_exeext 3431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3432 (eval $ac_link) 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } && 3439 { ac_try='test -z "$ac_c_werror_flag" 3440 || test ! -s conftest.err' 3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3442 (eval $ac_try) 2>&5 3443 ac_status=$? 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); }; } && 3446 { ac_try='test -s conftest$ac_exeext' 3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3448 (eval $ac_try) 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); }; }; then 3452 ac_cv_search_strerror="none required" 3453else 3454 echo "$as_me: failed program was:" >&5 3455sed 's/^/| /' conftest.$ac_ext >&5 3456 3457fi 3458rm -f conftest.err conftest.$ac_objext \ 3459 conftest$ac_exeext conftest.$ac_ext 3460if test "$ac_cv_search_strerror" = no; then 3461 for ac_lib in cposix; do 3462 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3463 cat >conftest.$ac_ext <<_ACEOF 3464/* confdefs.h. */ 3465_ACEOF 3466cat confdefs.h >>conftest.$ac_ext 3467cat >>conftest.$ac_ext <<_ACEOF 3468/* end confdefs.h. */ 3469 3470/* Override any gcc2 internal prototype to avoid an error. */ 3471#ifdef __cplusplus 3472extern "C" 3473#endif 3474/* We use char because int might match the return type of a gcc2 3475 builtin and then its argument prototype would still apply. */ 3476char strerror (); 3477int 3478main () 3479{ 3480strerror (); 3481 ; 3482 return 0; 3483} 3484_ACEOF 3485rm -f conftest.$ac_objext conftest$ac_exeext 3486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3487 (eval $ac_link) 2>conftest.er1 3488 ac_status=$? 3489 grep -v '^ *+' conftest.er1 >conftest.err 3490 rm -f conftest.er1 3491 cat conftest.err >&5 3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); } && 3494 { ac_try='test -z "$ac_c_werror_flag" 3495 || test ! -s conftest.err' 3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3497 (eval $ac_try) 2>&5 3498 ac_status=$? 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); }; } && 3501 { ac_try='test -s conftest$ac_exeext' 3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3503 (eval $ac_try) 2>&5 3504 ac_status=$? 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); }; }; then 3507 ac_cv_search_strerror="-l$ac_lib" 3508break 3509else 3510 echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513fi 3514rm -f conftest.err conftest.$ac_objext \ 3515 conftest$ac_exeext conftest.$ac_ext 3516 done 3517fi 3518LIBS=$ac_func_search_save_LIBS 3519fi 3520echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3521echo "${ECHO_T}$ac_cv_search_strerror" >&6 3522if test "$ac_cv_search_strerror" != no; then 3523 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3524 3525fi 3526 3527echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3528echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3529if test "${ac_cv_header_stdc+set}" = set; then 3530 echo $ECHO_N "(cached) $ECHO_C" >&6 3531else 3532 cat >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 <stdlib.h> 3539#include <stdarg.h> 3540#include <string.h> 3541#include <float.h> 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551rm -f conftest.$ac_objext 3552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3553 (eval $ac_compile) 2>conftest.er1 3554 ac_status=$? 3555 grep -v '^ *+' conftest.er1 >conftest.err 3556 rm -f conftest.er1 3557 cat conftest.err >&5 3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3559 (exit $ac_status); } && 3560 { ac_try='test -z "$ac_c_werror_flag" 3561 || test ! -s conftest.err' 3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3563 (eval $ac_try) 2>&5 3564 ac_status=$? 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); }; } && 3567 { ac_try='test -s conftest.$ac_objext' 3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3569 (eval $ac_try) 2>&5 3570 ac_status=$? 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3572 (exit $ac_status); }; }; then 3573 ac_cv_header_stdc=yes 3574else 3575 echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578ac_cv_header_stdc=no 3579fi 3580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3581 3582if test $ac_cv_header_stdc = yes; then 3583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3584 cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590#include <string.h> 3591 3592_ACEOF 3593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3594 $EGREP "memchr" >/dev/null 2>&1; then 3595 : 3596else 3597 ac_cv_header_stdc=no 3598fi 3599rm -f conftest* 3600 3601fi 3602 3603if test $ac_cv_header_stdc = yes; then 3604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3605 cat >conftest.$ac_ext <<_ACEOF 3606/* confdefs.h. */ 3607_ACEOF 3608cat confdefs.h >>conftest.$ac_ext 3609cat >>conftest.$ac_ext <<_ACEOF 3610/* end confdefs.h. */ 3611#include <stdlib.h> 3612 3613_ACEOF 3614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3615 $EGREP "free" >/dev/null 2>&1; then 3616 : 3617else 3618 ac_cv_header_stdc=no 3619fi 3620rm -f conftest* 3621 3622fi 3623 3624if test $ac_cv_header_stdc = yes; then 3625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3626 if test "$cross_compiling" = yes; then 3627 : 3628else 3629 cat >conftest.$ac_ext <<_ACEOF 3630/* confdefs.h. */ 3631_ACEOF 3632cat confdefs.h >>conftest.$ac_ext 3633cat >>conftest.$ac_ext <<_ACEOF 3634/* end confdefs.h. */ 3635#include <ctype.h> 3636#if ((' ' & 0x0FF) == 0x020) 3637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3639#else 3640# define ISLOWER(c) \ 3641 (('a' <= (c) && (c) <= 'i') \ 3642 || ('j' <= (c) && (c) <= 'r') \ 3643 || ('s' <= (c) && (c) <= 'z')) 3644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3645#endif 3646 3647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3648int 3649main () 3650{ 3651 int i; 3652 for (i = 0; i < 256; i++) 3653 if (XOR (islower (i), ISLOWER (i)) 3654 || toupper (i) != TOUPPER (i)) 3655 exit(2); 3656 exit (0); 3657} 3658_ACEOF 3659rm -f conftest$ac_exeext 3660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3661 (eval $ac_link) 2>&5 3662 ac_status=$? 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3666 (eval $ac_try) 2>&5 3667 ac_status=$? 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); }; }; then 3670 : 3671else 3672 echo "$as_me: program exited with status $ac_status" >&5 3673echo "$as_me: failed program was:" >&5 3674sed 's/^/| /' conftest.$ac_ext >&5 3675 3676( exit $ac_status ) 3677ac_cv_header_stdc=no 3678fi 3679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3680fi 3681fi 3682fi 3683echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3684echo "${ECHO_T}$ac_cv_header_stdc" >&6 3685if test $ac_cv_header_stdc = yes; then 3686 3687cat >>confdefs.h <<\_ACEOF 3688#define STDC_HEADERS 1 3689_ACEOF 3690 3691fi 3692 3693# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3704 inttypes.h stdint.h unistd.h 3705do 3706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3707echo "$as_me:$LINENO: checking for $ac_header" >&5 3708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3709if eval "test \"\${$as_ac_Header+set}\" = set"; then 3710 echo $ECHO_N "(cached) $ECHO_C" >&6 3711else 3712 cat >conftest.$ac_ext <<_ACEOF 3713/* confdefs.h. */ 3714_ACEOF 3715cat confdefs.h >>conftest.$ac_ext 3716cat >>conftest.$ac_ext <<_ACEOF 3717/* end confdefs.h. */ 3718$ac_includes_default 3719 3720#include <$ac_header> 3721_ACEOF 3722rm -f conftest.$ac_objext 3723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3724 (eval $ac_compile) 2>conftest.er1 3725 ac_status=$? 3726 grep -v '^ *+' conftest.er1 >conftest.err 3727 rm -f conftest.er1 3728 cat conftest.err >&5 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); } && 3731 { ac_try='test -z "$ac_c_werror_flag" 3732 || test ! -s conftest.err' 3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3734 (eval $ac_try) 2>&5 3735 ac_status=$? 3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3737 (exit $ac_status); }; } && 3738 { ac_try='test -s conftest.$ac_objext' 3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3740 (eval $ac_try) 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; }; then 3744 eval "$as_ac_Header=yes" 3745else 3746 echo "$as_me: failed program was:" >&5 3747sed 's/^/| /' conftest.$ac_ext >&5 3748 3749eval "$as_ac_Header=no" 3750fi 3751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3752fi 3753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3755if test `eval echo '${'$as_ac_Header'}'` = yes; then 3756 cat >>confdefs.h <<_ACEOF 3757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3758_ACEOF 3759 3760fi 3761 3762done 3763 3764 3765if test "${ac_cv_header_minix_config_h+set}" = set; then 3766 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3767echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3768if test "${ac_cv_header_minix_config_h+set}" = set; then 3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3770fi 3771echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3772echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3773else 3774 # Is the header compilable? 3775echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3776echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3777cat >conftest.$ac_ext <<_ACEOF 3778/* confdefs.h. */ 3779_ACEOF 3780cat confdefs.h >>conftest.$ac_ext 3781cat >>conftest.$ac_ext <<_ACEOF 3782/* end confdefs.h. */ 3783$ac_includes_default 3784#include <minix/config.h> 3785_ACEOF 3786rm -f conftest.$ac_objext 3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3788 (eval $ac_compile) 2>conftest.er1 3789 ac_status=$? 3790 grep -v '^ *+' conftest.er1 >conftest.err 3791 rm -f conftest.er1 3792 cat conftest.err >&5 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } && 3795 { ac_try='test -z "$ac_c_werror_flag" 3796 || test ! -s conftest.err' 3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3798 (eval $ac_try) 2>&5 3799 ac_status=$? 3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3801 (exit $ac_status); }; } && 3802 { ac_try='test -s conftest.$ac_objext' 3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3804 (eval $ac_try) 2>&5 3805 ac_status=$? 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3807 (exit $ac_status); }; }; then 3808 ac_header_compiler=yes 3809else 3810 echo "$as_me: failed program was:" >&5 3811sed 's/^/| /' conftest.$ac_ext >&5 3812 3813ac_header_compiler=no 3814fi 3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3817echo "${ECHO_T}$ac_header_compiler" >&6 3818 3819# Is the header present? 3820echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3821echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3822cat >conftest.$ac_ext <<_ACEOF 3823/* confdefs.h. */ 3824_ACEOF 3825cat confdefs.h >>conftest.$ac_ext 3826cat >>conftest.$ac_ext <<_ACEOF 3827/* end confdefs.h. */ 3828#include <minix/config.h> 3829_ACEOF 3830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3832 ac_status=$? 3833 grep -v '^ *+' conftest.er1 >conftest.err 3834 rm -f conftest.er1 3835 cat conftest.err >&5 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); } >/dev/null; then 3838 if test -s conftest.err; then 3839 ac_cpp_err=$ac_c_preproc_warn_flag 3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3841 else 3842 ac_cpp_err= 3843 fi 3844else 3845 ac_cpp_err=yes 3846fi 3847if test -z "$ac_cpp_err"; then 3848 ac_header_preproc=yes 3849else 3850 echo "$as_me: failed program was:" >&5 3851sed 's/^/| /' conftest.$ac_ext >&5 3852 3853 ac_header_preproc=no 3854fi 3855rm -f conftest.err conftest.$ac_ext 3856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3857echo "${ECHO_T}$ac_header_preproc" >&6 3858 3859# So? What about this header? 3860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3861 yes:no: ) 3862 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3863echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3864 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3865echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3866 ac_header_preproc=yes 3867 ;; 3868 no:yes:* ) 3869 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3870echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3871 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3872echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3873 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3874echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3875 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3876echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3877 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3878echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3879 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3880echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3881 ( 3882 cat <<\_ASBOX 3883## -------------------------------------- ## 3884## Report this to the GNU Texinfo lists. ## 3885## -------------------------------------- ## 3886_ASBOX 3887 ) | 3888 sed "s/^/$as_me: WARNING: /" >&2 3889 ;; 3890esac 3891echo "$as_me:$LINENO: checking for minix/config.h" >&5 3892echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3893if test "${ac_cv_header_minix_config_h+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 ac_cv_header_minix_config_h=$ac_header_preproc 3897fi 3898echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3899echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3900 3901fi 3902if test $ac_cv_header_minix_config_h = yes; then 3903 MINIX=yes 3904else 3905 MINIX= 3906fi 3907 3908 3909if test "$MINIX" = yes; then 3910 3911cat >>confdefs.h <<\_ACEOF 3912#define _POSIX_SOURCE 1 3913_ACEOF 3914 3915 3916cat >>confdefs.h <<\_ACEOF 3917#define _POSIX_1_SOURCE 2 3918_ACEOF 3919 3920 3921cat >>confdefs.h <<\_ACEOF 3922#define _MINIX 1 3923_ACEOF 3924 3925fi 3926 3927 3928# Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first. 3929echo "$as_me:$LINENO: checking for sigblock" >&5 3930echo $ECHO_N "checking for sigblock... $ECHO_C" >&6 3931if test "${ac_cv_func_sigblock+set}" = set; then 3932 echo $ECHO_N "(cached) $ECHO_C" >&6 3933else 3934 cat >conftest.$ac_ext <<_ACEOF 3935/* confdefs.h. */ 3936_ACEOF 3937cat confdefs.h >>conftest.$ac_ext 3938cat >>conftest.$ac_ext <<_ACEOF 3939/* end confdefs.h. */ 3940/* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock. 3941 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3942#define sigblock innocuous_sigblock 3943 3944/* System header to define __stub macros and hopefully few prototypes, 3945 which can conflict with char sigblock (); below. 3946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3947 <limits.h> exists even on freestanding compilers. */ 3948 3949#ifdef __STDC__ 3950# include <limits.h> 3951#else 3952# include <assert.h> 3953#endif 3954 3955#undef sigblock 3956 3957/* Override any gcc2 internal prototype to avoid an error. */ 3958#ifdef __cplusplus 3959extern "C" 3960{ 3961#endif 3962/* We use char because int might match the return type of a gcc2 3963 builtin and then its argument prototype would still apply. */ 3964char sigblock (); 3965/* The GNU C library defines this for functions which it implements 3966 to always fail with ENOSYS. Some functions are actually named 3967 something starting with __ and the normal name is an alias. */ 3968#if defined (__stub_sigblock) || defined (__stub___sigblock) 3969choke me 3970#else 3971char (*f) () = sigblock; 3972#endif 3973#ifdef __cplusplus 3974} 3975#endif 3976 3977int 3978main () 3979{ 3980return f != sigblock; 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985rm -f conftest.$ac_objext conftest$ac_exeext 3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3987 (eval $ac_link) 2>conftest.er1 3988 ac_status=$? 3989 grep -v '^ *+' conftest.er1 >conftest.err 3990 rm -f conftest.er1 3991 cat conftest.err >&5 3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3993 (exit $ac_status); } && 3994 { ac_try='test -z "$ac_c_werror_flag" 3995 || test ! -s conftest.err' 3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3997 (eval $ac_try) 2>&5 3998 ac_status=$? 3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4000 (exit $ac_status); }; } && 4001 { ac_try='test -s conftest$ac_exeext' 4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4003 (eval $ac_try) 2>&5 4004 ac_status=$? 4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4006 (exit $ac_status); }; }; then 4007 ac_cv_func_sigblock=yes 4008else 4009 echo "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012ac_cv_func_sigblock=no 4013fi 4014rm -f conftest.err conftest.$ac_objext \ 4015 conftest$ac_exeext conftest.$ac_ext 4016fi 4017echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5 4018echo "${ECHO_T}$ac_cv_func_sigblock" >&6 4019if test $ac_cv_func_sigblock = yes; then 4020 : 4021else 4022 4023echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5 4024echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6 4025if test "${ac_cv_lib_bsd_sigblock+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 ac_check_lib_save_LIBS=$LIBS 4029LIBS="-lbsd $LIBS" 4030cat >conftest.$ac_ext <<_ACEOF 4031/* confdefs.h. */ 4032_ACEOF 4033cat confdefs.h >>conftest.$ac_ext 4034cat >>conftest.$ac_ext <<_ACEOF 4035/* end confdefs.h. */ 4036 4037/* Override any gcc2 internal prototype to avoid an error. */ 4038#ifdef __cplusplus 4039extern "C" 4040#endif 4041/* We use char because int might match the return type of a gcc2 4042 builtin and then its argument prototype would still apply. */ 4043char sigblock (); 4044int 4045main () 4046{ 4047sigblock (); 4048 ; 4049 return 0; 4050} 4051_ACEOF 4052rm -f conftest.$ac_objext conftest$ac_exeext 4053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4054 (eval $ac_link) 2>conftest.er1 4055 ac_status=$? 4056 grep -v '^ *+' conftest.er1 >conftest.err 4057 rm -f conftest.er1 4058 cat conftest.err >&5 4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4060 (exit $ac_status); } && 4061 { ac_try='test -z "$ac_c_werror_flag" 4062 || test ! -s conftest.err' 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); }; } && 4068 { ac_try='test -s conftest$ac_exeext' 4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4070 (eval $ac_try) 2>&5 4071 ac_status=$? 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); }; }; then 4074 ac_cv_lib_bsd_sigblock=yes 4075else 4076 echo "$as_me: failed program was:" >&5 4077sed 's/^/| /' conftest.$ac_ext >&5 4078 4079ac_cv_lib_bsd_sigblock=no 4080fi 4081rm -f conftest.err conftest.$ac_objext \ 4082 conftest$ac_exeext conftest.$ac_ext 4083LIBS=$ac_check_lib_save_LIBS 4084fi 4085echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5 4086echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6 4087if test $ac_cv_lib_bsd_sigblock = yes; then 4088 cat >>confdefs.h <<_ACEOF 4089#define HAVE_LIBBSD 1 4090_ACEOF 4091 4092 LIBS="-lbsd $LIBS" 4093 4094fi 4095 4096fi 4097 4098 4099# Checks for header files. 4100echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4101echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 4102if test "${ac_cv_header_stat_broken+set}" = set; then 4103 echo $ECHO_N "(cached) $ECHO_C" >&6 4104else 4105 cat >conftest.$ac_ext <<_ACEOF 4106/* confdefs.h. */ 4107_ACEOF 4108cat confdefs.h >>conftest.$ac_ext 4109cat >>conftest.$ac_ext <<_ACEOF 4110/* end confdefs.h. */ 4111#include <sys/types.h> 4112#include <sys/stat.h> 4113 4114#if defined(S_ISBLK) && defined(S_IFDIR) 4115# if S_ISBLK (S_IFDIR) 4116You lose. 4117# endif 4118#endif 4119 4120#if defined(S_ISBLK) && defined(S_IFCHR) 4121# if S_ISBLK (S_IFCHR) 4122You lose. 4123# endif 4124#endif 4125 4126#if defined(S_ISLNK) && defined(S_IFREG) 4127# if S_ISLNK (S_IFREG) 4128You lose. 4129# endif 4130#endif 4131 4132#if defined(S_ISSOCK) && defined(S_IFREG) 4133# if S_ISSOCK (S_IFREG) 4134You lose. 4135# endif 4136#endif 4137 4138_ACEOF 4139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4140 $EGREP "You lose" >/dev/null 2>&1; then 4141 ac_cv_header_stat_broken=yes 4142else 4143 ac_cv_header_stat_broken=no 4144fi 4145rm -f conftest* 4146 4147fi 4148echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4149echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 4150if test $ac_cv_header_stat_broken = yes; then 4151 4152cat >>confdefs.h <<\_ACEOF 4153#define STAT_MACROS_BROKEN 1 4154_ACEOF 4155 4156fi 4157 4158echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4159echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4160if test "${ac_cv_header_stdc+set}" = set; then 4161 echo $ECHO_N "(cached) $ECHO_C" >&6 4162else 4163 cat >conftest.$ac_ext <<_ACEOF 4164/* confdefs.h. */ 4165_ACEOF 4166cat confdefs.h >>conftest.$ac_ext 4167cat >>conftest.$ac_ext <<_ACEOF 4168/* end confdefs.h. */ 4169#include <stdlib.h> 4170#include <stdarg.h> 4171#include <string.h> 4172#include <float.h> 4173 4174int 4175main () 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182rm -f conftest.$ac_objext 4183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4184 (eval $ac_compile) 2>conftest.er1 4185 ac_status=$? 4186 grep -v '^ *+' conftest.er1 >conftest.err 4187 rm -f conftest.er1 4188 cat conftest.err >&5 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); } && 4191 { ac_try='test -z "$ac_c_werror_flag" 4192 || test ! -s conftest.err' 4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4194 (eval $ac_try) 2>&5 4195 ac_status=$? 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); }; } && 4198 { ac_try='test -s conftest.$ac_objext' 4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4200 (eval $ac_try) 2>&5 4201 ac_status=$? 4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203 (exit $ac_status); }; }; then 4204 ac_cv_header_stdc=yes 4205else 4206 echo "$as_me: failed program was:" >&5 4207sed 's/^/| /' conftest.$ac_ext >&5 4208 4209ac_cv_header_stdc=no 4210fi 4211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4212 4213if test $ac_cv_header_stdc = yes; then 4214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4215 cat >conftest.$ac_ext <<_ACEOF 4216/* confdefs.h. */ 4217_ACEOF 4218cat confdefs.h >>conftest.$ac_ext 4219cat >>conftest.$ac_ext <<_ACEOF 4220/* end confdefs.h. */ 4221#include <string.h> 4222 4223_ACEOF 4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4225 $EGREP "memchr" >/dev/null 2>&1; then 4226 : 4227else 4228 ac_cv_header_stdc=no 4229fi 4230rm -f conftest* 4231 4232fi 4233 4234if test $ac_cv_header_stdc = yes; then 4235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4236 cat >conftest.$ac_ext <<_ACEOF 4237/* confdefs.h. */ 4238_ACEOF 4239cat confdefs.h >>conftest.$ac_ext 4240cat >>conftest.$ac_ext <<_ACEOF 4241/* end confdefs.h. */ 4242#include <stdlib.h> 4243 4244_ACEOF 4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4246 $EGREP "free" >/dev/null 2>&1; then 4247 : 4248else 4249 ac_cv_header_stdc=no 4250fi 4251rm -f conftest* 4252 4253fi 4254 4255if test $ac_cv_header_stdc = yes; then 4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4257 if test "$cross_compiling" = yes; then 4258 : 4259else 4260 cat >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#include <ctype.h> 4267#if ((' ' & 0x0FF) == 0x020) 4268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4270#else 4271# define ISLOWER(c) \ 4272 (('a' <= (c) && (c) <= 'i') \ 4273 || ('j' <= (c) && (c) <= 'r') \ 4274 || ('s' <= (c) && (c) <= 'z')) 4275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4276#endif 4277 4278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4279int 4280main () 4281{ 4282 int i; 4283 for (i = 0; i < 256; i++) 4284 if (XOR (islower (i), ISLOWER (i)) 4285 || toupper (i) != TOUPPER (i)) 4286 exit(2); 4287 exit (0); 4288} 4289_ACEOF 4290rm -f conftest$ac_exeext 4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4292 (eval $ac_link) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 (eval $ac_try) 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); }; }; then 4301 : 4302else 4303 echo "$as_me: program exited with status $ac_status" >&5 4304echo "$as_me: failed program was:" >&5 4305sed 's/^/| /' conftest.$ac_ext >&5 4306 4307( exit $ac_status ) 4308ac_cv_header_stdc=no 4309fi 4310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4311fi 4312fi 4313fi 4314echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4315echo "${ECHO_T}$ac_cv_header_stdc" >&6 4316if test $ac_cv_header_stdc = yes; then 4317 4318cat >>confdefs.h <<\_ACEOF 4319#define STDC_HEADERS 1 4320_ACEOF 4321 4322fi 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \ 4341 termcap.h termio.h termios.h unistd.h \ 4342 sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h 4343do 4344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4345if eval "test \"\${$as_ac_Header+set}\" = set"; then 4346 echo "$as_me:$LINENO: checking for $ac_header" >&5 4347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4348if eval "test \"\${$as_ac_Header+set}\" = set"; then 4349 echo $ECHO_N "(cached) $ECHO_C" >&6 4350fi 4351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4353else 4354 # Is the header compilable? 4355echo "$as_me:$LINENO: checking $ac_header usability" >&5 4356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4357cat >conftest.$ac_ext <<_ACEOF 4358/* confdefs.h. */ 4359_ACEOF 4360cat confdefs.h >>conftest.$ac_ext 4361cat >>conftest.$ac_ext <<_ACEOF 4362/* end confdefs.h. */ 4363$ac_includes_default 4364#include <$ac_header> 4365_ACEOF 4366rm -f conftest.$ac_objext 4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4368 (eval $ac_compile) 2>conftest.er1 4369 ac_status=$? 4370 grep -v '^ *+' conftest.er1 >conftest.err 4371 rm -f conftest.er1 4372 cat conftest.err >&5 4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4374 (exit $ac_status); } && 4375 { ac_try='test -z "$ac_c_werror_flag" 4376 || test ! -s conftest.err' 4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4378 (eval $ac_try) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; } && 4382 { ac_try='test -s conftest.$ac_objext' 4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4384 (eval $ac_try) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); }; }; then 4388 ac_header_compiler=yes 4389else 4390 echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393ac_header_compiler=no 4394fi 4395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4397echo "${ECHO_T}$ac_header_compiler" >&6 4398 4399# Is the header present? 4400echo "$as_me:$LINENO: checking $ac_header presence" >&5 4401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4402cat >conftest.$ac_ext <<_ACEOF 4403/* confdefs.h. */ 4404_ACEOF 4405cat confdefs.h >>conftest.$ac_ext 4406cat >>conftest.$ac_ext <<_ACEOF 4407/* end confdefs.h. */ 4408#include <$ac_header> 4409_ACEOF 4410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4412 ac_status=$? 4413 grep -v '^ *+' conftest.er1 >conftest.err 4414 rm -f conftest.er1 4415 cat conftest.err >&5 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } >/dev/null; then 4418 if test -s conftest.err; then 4419 ac_cpp_err=$ac_c_preproc_warn_flag 4420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4421 else 4422 ac_cpp_err= 4423 fi 4424else 4425 ac_cpp_err=yes 4426fi 4427if test -z "$ac_cpp_err"; then 4428 ac_header_preproc=yes 4429else 4430 echo "$as_me: failed program was:" >&5 4431sed 's/^/| /' conftest.$ac_ext >&5 4432 4433 ac_header_preproc=no 4434fi 4435rm -f conftest.err conftest.$ac_ext 4436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4437echo "${ECHO_T}$ac_header_preproc" >&6 4438 4439# So? What about this header? 4440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4441 yes:no: ) 4442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4446 ac_header_preproc=yes 4447 ;; 4448 no:yes:* ) 4449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4461 ( 4462 cat <<\_ASBOX 4463## -------------------------------------- ## 4464## Report this to the GNU Texinfo lists. ## 4465## -------------------------------------- ## 4466_ASBOX 4467 ) | 4468 sed "s/^/$as_me: WARNING: /" >&2 4469 ;; 4470esac 4471echo "$as_me:$LINENO: checking for $ac_header" >&5 4472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4473if eval "test \"\${$as_ac_Header+set}\" = set"; then 4474 echo $ECHO_N "(cached) $ECHO_C" >&6 4475else 4476 eval "$as_ac_Header=\$ac_header_preproc" 4477fi 4478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4480 4481fi 4482if test `eval echo '${'$as_ac_Header'}'` = yes; then 4483 cat >>confdefs.h <<_ACEOF 4484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4485_ACEOF 4486 4487fi 4488 4489done 4490 4491 4492# sys/ptem.h requires sys/stream.h for mblk_t on Solaris. 4493 4494for ac_header in sys/ptem.h 4495do 4496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4497echo "$as_me:$LINENO: checking for $ac_header" >&5 4498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4499if eval "test \"\${$as_ac_Header+set}\" = set"; then 4500 echo $ECHO_N "(cached) $ECHO_C" >&6 4501else 4502 cat >conftest.$ac_ext <<_ACEOF 4503/* confdefs.h. */ 4504_ACEOF 4505cat confdefs.h >>conftest.$ac_ext 4506cat >>conftest.$ac_ext <<_ACEOF 4507/* end confdefs.h. */ 4508#if HAVE_SYS_STREAM_H 4509#include <sys/stream.h> 4510#endif 4511 4512 4513#include <$ac_header> 4514_ACEOF 4515rm -f conftest.$ac_objext 4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4517 (eval $ac_compile) 2>conftest.er1 4518 ac_status=$? 4519 grep -v '^ *+' conftest.er1 >conftest.err 4520 rm -f conftest.er1 4521 cat conftest.err >&5 4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4523 (exit $ac_status); } && 4524 { ac_try='test -z "$ac_c_werror_flag" 4525 || test ! -s conftest.err' 4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4527 (eval $ac_try) 2>&5 4528 ac_status=$? 4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4530 (exit $ac_status); }; } && 4531 { ac_try='test -s conftest.$ac_objext' 4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4533 (eval $ac_try) 2>&5 4534 ac_status=$? 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4536 (exit $ac_status); }; }; then 4537 eval "$as_ac_Header=yes" 4538else 4539 echo "$as_me: failed program was:" >&5 4540sed 's/^/| /' conftest.$ac_ext >&5 4541 4542eval "$as_ac_Header=no" 4543fi 4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4545fi 4546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4548if test `eval echo '${'$as_ac_Header'}'` = yes; then 4549 cat >>confdefs.h <<_ACEOF 4550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4551_ACEOF 4552 4553fi 4554 4555done 4556 4557 4558echo "$as_me:$LINENO: checking POSIX termios" >&5 4559echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6 4560if test "${ac_cv_sys_posix_termios+set}" = set; then 4561 echo $ECHO_N "(cached) $ECHO_C" >&6 4562else 4563 cat >conftest.$ac_ext <<_ACEOF 4564/* confdefs.h. */ 4565_ACEOF 4566cat confdefs.h >>conftest.$ac_ext 4567cat >>conftest.$ac_ext <<_ACEOF 4568/* end confdefs.h. */ 4569#include <sys/types.h> 4570#include <unistd.h> 4571#include <termios.h> 4572 4573int 4574main () 4575{ 4576/* SunOS 4.0.3 has termios.h but not the library calls. */ 4577 tcgetattr(0, 0); 4578 ; 4579 return 0; 4580} 4581_ACEOF 4582rm -f conftest.$ac_objext conftest$ac_exeext 4583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4584 (eval $ac_link) 2>conftest.er1 4585 ac_status=$? 4586 grep -v '^ *+' conftest.er1 >conftest.err 4587 rm -f conftest.er1 4588 cat conftest.err >&5 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } && 4591 { ac_try='test -z "$ac_c_werror_flag" 4592 || test ! -s conftest.err' 4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4594 (eval $ac_try) 2>&5 4595 ac_status=$? 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; } && 4598 { ac_try='test -s conftest$ac_exeext' 4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4600 (eval $ac_try) 2>&5 4601 ac_status=$? 4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4603 (exit $ac_status); }; }; then 4604 ac_cv_sys_posix_termios=yes 4605else 4606 echo "$as_me: failed program was:" >&5 4607sed 's/^/| /' conftest.$ac_ext >&5 4608 4609ac_cv_sys_posix_termios=no 4610fi 4611rm -f conftest.err conftest.$ac_objext \ 4612 conftest$ac_exeext conftest.$ac_ext 4613fi 4614echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5 4615echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6 4616 4617echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 4618echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 4619if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 4620 echo $ECHO_N "(cached) $ECHO_C" >&6 4621else 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628#include <sys/types.h> 4629#include <termios.h> 4630#ifdef TIOCGWINSZ 4631 yes 4632#endif 4633 4634_ACEOF 4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4636 $EGREP "yes" >/dev/null 2>&1; then 4637 ac_cv_sys_tiocgwinsz_in_termios_h=yes 4638else 4639 ac_cv_sys_tiocgwinsz_in_termios_h=no 4640fi 4641rm -f conftest* 4642 4643fi 4644echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 4645echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 4646 4647if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 4648 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 4649echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 4650if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 4651 echo $ECHO_N "(cached) $ECHO_C" >&6 4652else 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659#include <sys/types.h> 4660#include <sys/ioctl.h> 4661#ifdef TIOCGWINSZ 4662 yes 4663#endif 4664 4665_ACEOF 4666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4667 $EGREP "yes" >/dev/null 2>&1; then 4668 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 4669else 4670 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 4671fi 4672rm -f conftest* 4673 4674fi 4675echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 4676echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 4677 4678 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 4679 4680cat >>confdefs.h <<\_ACEOF 4681#define GWINSZ_IN_SYS_IOCTL 1 4682_ACEOF 4683 4684 fi 4685fi 4686 4687 4688# Checks for typedefs, structures, and compiler characteristics. 4689echo "$as_me:$LINENO: checking for off_t" >&5 4690echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4691if test "${ac_cv_type_off_t+set}" = set; then 4692 echo $ECHO_N "(cached) $ECHO_C" >&6 4693else 4694 cat >conftest.$ac_ext <<_ACEOF 4695/* confdefs.h. */ 4696_ACEOF 4697cat confdefs.h >>conftest.$ac_ext 4698cat >>conftest.$ac_ext <<_ACEOF 4699/* end confdefs.h. */ 4700$ac_includes_default 4701int 4702main () 4703{ 4704if ((off_t *) 0) 4705 return 0; 4706if (sizeof (off_t)) 4707 return 0; 4708 ; 4709 return 0; 4710} 4711_ACEOF 4712rm -f conftest.$ac_objext 4713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4714 (eval $ac_compile) 2>conftest.er1 4715 ac_status=$? 4716 grep -v '^ *+' conftest.er1 >conftest.err 4717 rm -f conftest.er1 4718 cat conftest.err >&5 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); } && 4721 { ac_try='test -z "$ac_c_werror_flag" 4722 || test ! -s conftest.err' 4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4724 (eval $ac_try) 2>&5 4725 ac_status=$? 4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 (exit $ac_status); }; } && 4728 { ac_try='test -s conftest.$ac_objext' 4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4730 (eval $ac_try) 2>&5 4731 ac_status=$? 4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4733 (exit $ac_status); }; }; then 4734 ac_cv_type_off_t=yes 4735else 4736 echo "$as_me: failed program was:" >&5 4737sed 's/^/| /' conftest.$ac_ext >&5 4738 4739ac_cv_type_off_t=no 4740fi 4741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4742fi 4743echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4744echo "${ECHO_T}$ac_cv_type_off_t" >&6 4745if test $ac_cv_type_off_t = yes; then 4746 : 4747else 4748 4749cat >>confdefs.h <<_ACEOF 4750#define off_t long 4751_ACEOF 4752 4753fi 4754 4755echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4756echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4757if test "${ac_cv_type_signal+set}" = set; then 4758 echo $ECHO_N "(cached) $ECHO_C" >&6 4759else 4760 cat >conftest.$ac_ext <<_ACEOF 4761/* confdefs.h. */ 4762_ACEOF 4763cat confdefs.h >>conftest.$ac_ext 4764cat >>conftest.$ac_ext <<_ACEOF 4765/* end confdefs.h. */ 4766#include <sys/types.h> 4767#include <signal.h> 4768#ifdef signal 4769# undef signal 4770#endif 4771#ifdef __cplusplus 4772extern "C" void (*signal (int, void (*)(int)))(int); 4773#else 4774void (*signal ()) (); 4775#endif 4776 4777int 4778main () 4779{ 4780int i; 4781 ; 4782 return 0; 4783} 4784_ACEOF 4785rm -f conftest.$ac_objext 4786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4787 (eval $ac_compile) 2>conftest.er1 4788 ac_status=$? 4789 grep -v '^ *+' conftest.er1 >conftest.err 4790 rm -f conftest.er1 4791 cat conftest.err >&5 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); } && 4794 { ac_try='test -z "$ac_c_werror_flag" 4795 || test ! -s conftest.err' 4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4797 (eval $ac_try) 2>&5 4798 ac_status=$? 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); }; } && 4801 { ac_try='test -s conftest.$ac_objext' 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4803 (eval $ac_try) 2>&5 4804 ac_status=$? 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); }; }; then 4807 ac_cv_type_signal=void 4808else 4809 echo "$as_me: failed program was:" >&5 4810sed 's/^/| /' conftest.$ac_ext >&5 4811 4812ac_cv_type_signal=int 4813fi 4814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4815fi 4816echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4817echo "${ECHO_T}$ac_cv_type_signal" >&6 4818 4819cat >>confdefs.h <<_ACEOF 4820#define RETSIGTYPE $ac_cv_type_signal 4821_ACEOF 4822 4823 4824echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4825echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4826if test "${ac_cv_c_const+set}" = set; then 4827 echo $ECHO_N "(cached) $ECHO_C" >&6 4828else 4829 cat >conftest.$ac_ext <<_ACEOF 4830/* confdefs.h. */ 4831_ACEOF 4832cat confdefs.h >>conftest.$ac_ext 4833cat >>conftest.$ac_ext <<_ACEOF 4834/* end confdefs.h. */ 4835 4836int 4837main () 4838{ 4839/* FIXME: Include the comments suggested by Paul. */ 4840#ifndef __cplusplus 4841 /* Ultrix mips cc rejects this. */ 4842 typedef int charset[2]; 4843 const charset x; 4844 /* SunOS 4.1.1 cc rejects this. */ 4845 char const *const *ccp; 4846 char **p; 4847 /* NEC SVR4.0.2 mips cc rejects this. */ 4848 struct point {int x, y;}; 4849 static struct point const zero = {0,0}; 4850 /* AIX XL C 1.02.0.0 rejects this. 4851 It does not let you subtract one const X* pointer from another in 4852 an arm of an if-expression whose if-part is not a constant 4853 expression */ 4854 const char *g = "string"; 4855 ccp = &g + (g ? g-g : 0); 4856 /* HPUX 7.0 cc rejects these. */ 4857 ++ccp; 4858 p = (char**) ccp; 4859 ccp = (char const *const *) p; 4860 { /* SCO 3.2v4 cc rejects this. */ 4861 char *t; 4862 char const *s = 0 ? (char *) 0 : (char const *) 0; 4863 4864 *t++ = 0; 4865 } 4866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4867 int x[] = {25, 17}; 4868 const int *foo = &x[0]; 4869 ++foo; 4870 } 4871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4872 typedef const int *iptr; 4873 iptr p = 0; 4874 ++p; 4875 } 4876 { /* AIX XL C 1.02.0.0 rejects this saying 4877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4878 struct s { int j; const int *ap[3]; }; 4879 struct s *b; b->j = 5; 4880 } 4881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4882 const int foo = 10; 4883 } 4884#endif 4885 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890rm -f conftest.$ac_objext 4891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4892 (eval $ac_compile) 2>conftest.er1 4893 ac_status=$? 4894 grep -v '^ *+' conftest.er1 >conftest.err 4895 rm -f conftest.er1 4896 cat conftest.err >&5 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); } && 4899 { ac_try='test -z "$ac_c_werror_flag" 4900 || test ! -s conftest.err' 4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4902 (eval $ac_try) 2>&5 4903 ac_status=$? 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); }; } && 4906 { ac_try='test -s conftest.$ac_objext' 4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4908 (eval $ac_try) 2>&5 4909 ac_status=$? 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); }; }; then 4912 ac_cv_c_const=yes 4913else 4914 echo "$as_me: failed program was:" >&5 4915sed 's/^/| /' conftest.$ac_ext >&5 4916 4917ac_cv_c_const=no 4918fi 4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4920fi 4921echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4922echo "${ECHO_T}$ac_cv_c_const" >&6 4923if test $ac_cv_c_const = no; then 4924 4925cat >>confdefs.h <<\_ACEOF 4926#define const 4927_ACEOF 4928 4929fi 4930 4931echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4932echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4933if test "${ac_cv_struct_tm+set}" = set; then 4934 echo $ECHO_N "(cached) $ECHO_C" >&6 4935else 4936 cat >conftest.$ac_ext <<_ACEOF 4937/* confdefs.h. */ 4938_ACEOF 4939cat confdefs.h >>conftest.$ac_ext 4940cat >>conftest.$ac_ext <<_ACEOF 4941/* end confdefs.h. */ 4942#include <sys/types.h> 4943#include <time.h> 4944 4945int 4946main () 4947{ 4948struct tm *tp; tp->tm_sec; 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953rm -f conftest.$ac_objext 4954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4955 (eval $ac_compile) 2>conftest.er1 4956 ac_status=$? 4957 grep -v '^ *+' conftest.er1 >conftest.err 4958 rm -f conftest.er1 4959 cat conftest.err >&5 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); } && 4962 { ac_try='test -z "$ac_c_werror_flag" 4963 || test ! -s conftest.err' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; } && 4969 { ac_try='test -s conftest.$ac_objext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 ac_cv_struct_tm=time.h 4976else 4977 echo "$as_me: failed program was:" >&5 4978sed 's/^/| /' conftest.$ac_ext >&5 4979 4980ac_cv_struct_tm=sys/time.h 4981fi 4982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4983fi 4984echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 4985echo "${ECHO_T}$ac_cv_struct_tm" >&6 4986if test $ac_cv_struct_tm = sys/time.h; then 4987 4988cat >>confdefs.h <<\_ACEOF 4989#define TM_IN_SYS_TIME 1 4990_ACEOF 4991 4992fi 4993 4994 4995# Checks for function declarations. 4996echo "$as_me:$LINENO: checking whether memchr is declared" >&5 4997echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 4998if test "${ac_cv_have_decl_memchr+set}" = set; then 4999 echo $ECHO_N "(cached) $ECHO_C" >&6 5000else 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007$ac_includes_default 5008int 5009main () 5010{ 5011#ifndef memchr 5012 char *p = (char *) memchr; 5013#endif 5014 5015 ; 5016 return 0; 5017} 5018_ACEOF 5019rm -f conftest.$ac_objext 5020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5021 (eval $ac_compile) 2>conftest.er1 5022 ac_status=$? 5023 grep -v '^ *+' conftest.er1 >conftest.err 5024 rm -f conftest.er1 5025 cat conftest.err >&5 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } && 5028 { ac_try='test -z "$ac_c_werror_flag" 5029 || test ! -s conftest.err' 5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5031 (eval $ac_try) 2>&5 5032 ac_status=$? 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); }; } && 5035 { ac_try='test -s conftest.$ac_objext' 5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5037 (eval $ac_try) 2>&5 5038 ac_status=$? 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5040 (exit $ac_status); }; }; then 5041 ac_cv_have_decl_memchr=yes 5042else 5043 echo "$as_me: failed program was:" >&5 5044sed 's/^/| /' conftest.$ac_ext >&5 5045 5046ac_cv_have_decl_memchr=no 5047fi 5048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5049fi 5050echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5 5051echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 5052if test $ac_cv_have_decl_memchr = yes; then 5053 5054cat >>confdefs.h <<_ACEOF 5055#define HAVE_DECL_MEMCHR 1 5056_ACEOF 5057 5058 5059else 5060 cat >>confdefs.h <<_ACEOF 5061#define HAVE_DECL_MEMCHR 0 5062_ACEOF 5063 5064 5065fi 5066echo "$as_me:$LINENO: checking whether strcoll is declared" >&5 5067echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6 5068if test "${ac_cv_have_decl_strcoll+set}" = set; then 5069 echo $ECHO_N "(cached) $ECHO_C" >&6 5070else 5071 cat >conftest.$ac_ext <<_ACEOF 5072/* confdefs.h. */ 5073_ACEOF 5074cat confdefs.h >>conftest.$ac_ext 5075cat >>conftest.$ac_ext <<_ACEOF 5076/* end confdefs.h. */ 5077$ac_includes_default 5078int 5079main () 5080{ 5081#ifndef strcoll 5082 char *p = (char *) strcoll; 5083#endif 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" 5099 || test ! -s conftest.err' 5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5101 (eval $ac_try) 2>&5 5102 ac_status=$? 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104 (exit $ac_status); }; } && 5105 { ac_try='test -s conftest.$ac_objext' 5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5107 (eval $ac_try) 2>&5 5108 ac_status=$? 5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5110 (exit $ac_status); }; }; then 5111 ac_cv_have_decl_strcoll=yes 5112else 5113 echo "$as_me: failed program was:" >&5 5114sed 's/^/| /' conftest.$ac_ext >&5 5115 5116ac_cv_have_decl_strcoll=no 5117fi 5118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5119fi 5120echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5 5121echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6 5122if test $ac_cv_have_decl_strcoll = yes; then 5123 5124cat >>confdefs.h <<_ACEOF 5125#define HAVE_DECL_STRCOLL 1 5126_ACEOF 5127 5128 5129else 5130 cat >>confdefs.h <<_ACEOF 5131#define HAVE_DECL_STRCOLL 0 5132_ACEOF 5133 5134 5135fi 5136echo "$as_me:$LINENO: checking whether strerror is declared" >&5 5137echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 5138if test "${ac_cv_have_decl_strerror+set}" = set; then 5139 echo $ECHO_N "(cached) $ECHO_C" >&6 5140else 5141 cat >conftest.$ac_ext <<_ACEOF 5142/* confdefs.h. */ 5143_ACEOF 5144cat confdefs.h >>conftest.$ac_ext 5145cat >>conftest.$ac_ext <<_ACEOF 5146/* end confdefs.h. */ 5147$ac_includes_default 5148int 5149main () 5150{ 5151#ifndef strerror 5152 char *p = (char *) strerror; 5153#endif 5154 5155 ; 5156 return 0; 5157} 5158_ACEOF 5159rm -f conftest.$ac_objext 5160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5161 (eval $ac_compile) 2>conftest.er1 5162 ac_status=$? 5163 grep -v '^ *+' conftest.er1 >conftest.err 5164 rm -f conftest.er1 5165 cat conftest.err >&5 5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5167 (exit $ac_status); } && 5168 { ac_try='test -z "$ac_c_werror_flag" 5169 || test ! -s conftest.err' 5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5171 (eval $ac_try) 2>&5 5172 ac_status=$? 5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5174 (exit $ac_status); }; } && 5175 { ac_try='test -s conftest.$ac_objext' 5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5177 (eval $ac_try) 2>&5 5178 ac_status=$? 5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5180 (exit $ac_status); }; }; then 5181 ac_cv_have_decl_strerror=yes 5182else 5183 echo "$as_me: failed program was:" >&5 5184sed 's/^/| /' conftest.$ac_ext >&5 5185 5186ac_cv_have_decl_strerror=no 5187fi 5188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5189fi 5190echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 5191echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 5192if test $ac_cv_have_decl_strerror = yes; then 5193 5194cat >>confdefs.h <<_ACEOF 5195#define HAVE_DECL_STRERROR 1 5196_ACEOF 5197 5198 5199else 5200 cat >>confdefs.h <<_ACEOF 5201#define HAVE_DECL_STRERROR 0 5202_ACEOF 5203 5204 5205fi 5206 5207 5208 5209# Checks for library functions. 5210# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5211# for constant arguments. Useless! 5212echo "$as_me:$LINENO: checking for working alloca.h" >&5 5213echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5214if test "${ac_cv_working_alloca_h+set}" = set; then 5215 echo $ECHO_N "(cached) $ECHO_C" >&6 5216else 5217 cat >conftest.$ac_ext <<_ACEOF 5218/* confdefs.h. */ 5219_ACEOF 5220cat confdefs.h >>conftest.$ac_ext 5221cat >>conftest.$ac_ext <<_ACEOF 5222/* end confdefs.h. */ 5223#include <alloca.h> 5224int 5225main () 5226{ 5227char *p = (char *) alloca (2 * sizeof (int)); 5228 ; 5229 return 0; 5230} 5231_ACEOF 5232rm -f conftest.$ac_objext conftest$ac_exeext 5233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5234 (eval $ac_link) 2>conftest.er1 5235 ac_status=$? 5236 grep -v '^ *+' conftest.er1 >conftest.err 5237 rm -f conftest.er1 5238 cat conftest.err >&5 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } && 5241 { ac_try='test -z "$ac_c_werror_flag" 5242 || test ! -s conftest.err' 5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5244 (eval $ac_try) 2>&5 5245 ac_status=$? 5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 (exit $ac_status); }; } && 5248 { ac_try='test -s conftest$ac_exeext' 5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5250 (eval $ac_try) 2>&5 5251 ac_status=$? 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); }; }; then 5254 ac_cv_working_alloca_h=yes 5255else 5256 echo "$as_me: failed program was:" >&5 5257sed 's/^/| /' conftest.$ac_ext >&5 5258 5259ac_cv_working_alloca_h=no 5260fi 5261rm -f conftest.err conftest.$ac_objext \ 5262 conftest$ac_exeext conftest.$ac_ext 5263fi 5264echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5265echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5266if test $ac_cv_working_alloca_h = yes; then 5267 5268cat >>confdefs.h <<\_ACEOF 5269#define HAVE_ALLOCA_H 1 5270_ACEOF 5271 5272fi 5273 5274echo "$as_me:$LINENO: checking for alloca" >&5 5275echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5276if test "${ac_cv_func_alloca_works+set}" = set; then 5277 echo $ECHO_N "(cached) $ECHO_C" >&6 5278else 5279 cat >conftest.$ac_ext <<_ACEOF 5280/* confdefs.h. */ 5281_ACEOF 5282cat confdefs.h >>conftest.$ac_ext 5283cat >>conftest.$ac_ext <<_ACEOF 5284/* end confdefs.h. */ 5285#ifdef __GNUC__ 5286# define alloca __builtin_alloca 5287#else 5288# ifdef _MSC_VER 5289# include <malloc.h> 5290# define alloca _alloca 5291# else 5292# if HAVE_ALLOCA_H 5293# include <alloca.h> 5294# else 5295# ifdef _AIX 5296 #pragma alloca 5297# else 5298# ifndef alloca /* predefined by HP cc +Olibcalls */ 5299char *alloca (); 5300# endif 5301# endif 5302# endif 5303# endif 5304#endif 5305 5306int 5307main () 5308{ 5309char *p = (char *) alloca (1); 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314rm -f conftest.$ac_objext conftest$ac_exeext 5315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5316 (eval $ac_link) 2>conftest.er1 5317 ac_status=$? 5318 grep -v '^ *+' conftest.er1 >conftest.err 5319 rm -f conftest.er1 5320 cat conftest.err >&5 5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5322 (exit $ac_status); } && 5323 { ac_try='test -z "$ac_c_werror_flag" 5324 || test ! -s conftest.err' 5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5326 (eval $ac_try) 2>&5 5327 ac_status=$? 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); }; } && 5330 { ac_try='test -s conftest$ac_exeext' 5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5332 (eval $ac_try) 2>&5 5333 ac_status=$? 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); }; }; then 5336 ac_cv_func_alloca_works=yes 5337else 5338 echo "$as_me: failed program was:" >&5 5339sed 's/^/| /' conftest.$ac_ext >&5 5340 5341ac_cv_func_alloca_works=no 5342fi 5343rm -f conftest.err conftest.$ac_objext \ 5344 conftest$ac_exeext conftest.$ac_ext 5345fi 5346echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5347echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5348 5349if test $ac_cv_func_alloca_works = yes; then 5350 5351cat >>confdefs.h <<\_ACEOF 5352#define HAVE_ALLOCA 1 5353_ACEOF 5354 5355else 5356 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5357# that cause trouble. Some versions do not even contain alloca or 5358# contain a buggy version. If you still want to use their alloca, 5359# use ar to extract alloca.o from them instead of compiling alloca.c. 5360 5361ALLOCA=alloca.$ac_objext 5362 5363cat >>confdefs.h <<\_ACEOF 5364#define C_ALLOCA 1 5365_ACEOF 5366 5367 5368echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5369echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5370if test "${ac_cv_os_cray+set}" = set; then 5371 echo $ECHO_N "(cached) $ECHO_C" >&6 5372else 5373 cat >conftest.$ac_ext <<_ACEOF 5374/* confdefs.h. */ 5375_ACEOF 5376cat confdefs.h >>conftest.$ac_ext 5377cat >>conftest.$ac_ext <<_ACEOF 5378/* end confdefs.h. */ 5379#if defined(CRAY) && ! defined(CRAY2) 5380webecray 5381#else 5382wenotbecray 5383#endif 5384 5385_ACEOF 5386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5387 $EGREP "webecray" >/dev/null 2>&1; then 5388 ac_cv_os_cray=yes 5389else 5390 ac_cv_os_cray=no 5391fi 5392rm -f conftest* 5393 5394fi 5395echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5396echo "${ECHO_T}$ac_cv_os_cray" >&6 5397if test $ac_cv_os_cray = yes; then 5398 for ac_func in _getb67 GETB67 getb67; do 5399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5400echo "$as_me:$LINENO: checking for $ac_func" >&5 5401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5402if eval "test \"\${$as_ac_var+set}\" = set"; then 5403 echo $ECHO_N "(cached) $ECHO_C" >&6 5404else 5405 cat >conftest.$ac_ext <<_ACEOF 5406/* confdefs.h. */ 5407_ACEOF 5408cat confdefs.h >>conftest.$ac_ext 5409cat >>conftest.$ac_ext <<_ACEOF 5410/* end confdefs.h. */ 5411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5412 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5413#define $ac_func innocuous_$ac_func 5414 5415/* System header to define __stub macros and hopefully few prototypes, 5416 which can conflict with char $ac_func (); below. 5417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5418 <limits.h> exists even on freestanding compilers. */ 5419 5420#ifdef __STDC__ 5421# include <limits.h> 5422#else 5423# include <assert.h> 5424#endif 5425 5426#undef $ac_func 5427 5428/* Override any gcc2 internal prototype to avoid an error. */ 5429#ifdef __cplusplus 5430extern "C" 5431{ 5432#endif 5433/* We use char because int might match the return type of a gcc2 5434 builtin and then its argument prototype would still apply. */ 5435char $ac_func (); 5436/* The GNU C library defines this for functions which it implements 5437 to always fail with ENOSYS. Some functions are actually named 5438 something starting with __ and the normal name is an alias. */ 5439#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5440choke me 5441#else 5442char (*f) () = $ac_func; 5443#endif 5444#ifdef __cplusplus 5445} 5446#endif 5447 5448int 5449main () 5450{ 5451return f != $ac_func; 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456rm -f conftest.$ac_objext conftest$ac_exeext 5457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5458 (eval $ac_link) 2>conftest.er1 5459 ac_status=$? 5460 grep -v '^ *+' conftest.er1 >conftest.err 5461 rm -f conftest.er1 5462 cat conftest.err >&5 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); } && 5465 { ac_try='test -z "$ac_c_werror_flag" 5466 || test ! -s conftest.err' 5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5468 (eval $ac_try) 2>&5 5469 ac_status=$? 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); }; } && 5472 { ac_try='test -s conftest$ac_exeext' 5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5474 (eval $ac_try) 2>&5 5475 ac_status=$? 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); }; }; then 5478 eval "$as_ac_var=yes" 5479else 5480 echo "$as_me: failed program was:" >&5 5481sed 's/^/| /' conftest.$ac_ext >&5 5482 5483eval "$as_ac_var=no" 5484fi 5485rm -f conftest.err conftest.$ac_objext \ 5486 conftest$ac_exeext conftest.$ac_ext 5487fi 5488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5490if test `eval echo '${'$as_ac_var'}'` = yes; then 5491 5492cat >>confdefs.h <<_ACEOF 5493#define CRAY_STACKSEG_END $ac_func 5494_ACEOF 5495 5496 break 5497fi 5498 5499 done 5500fi 5501 5502echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5503echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5504if test "${ac_cv_c_stack_direction+set}" = set; then 5505 echo $ECHO_N "(cached) $ECHO_C" >&6 5506else 5507 if test "$cross_compiling" = yes; then 5508 ac_cv_c_stack_direction=0 5509else 5510 cat >conftest.$ac_ext <<_ACEOF 5511/* confdefs.h. */ 5512_ACEOF 5513cat confdefs.h >>conftest.$ac_ext 5514cat >>conftest.$ac_ext <<_ACEOF 5515/* end confdefs.h. */ 5516int 5517find_stack_direction () 5518{ 5519 static char *addr = 0; 5520 auto char dummy; 5521 if (addr == 0) 5522 { 5523 addr = &dummy; 5524 return find_stack_direction (); 5525 } 5526 else 5527 return (&dummy > addr) ? 1 : -1; 5528} 5529 5530int 5531main () 5532{ 5533 exit (find_stack_direction () < 0); 5534} 5535_ACEOF 5536rm -f conftest$ac_exeext 5537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5538 (eval $ac_link) 2>&5 5539 ac_status=$? 5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5543 (eval $ac_try) 2>&5 5544 ac_status=$? 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); }; }; then 5547 ac_cv_c_stack_direction=1 5548else 5549 echo "$as_me: program exited with status $ac_status" >&5 5550echo "$as_me: failed program was:" >&5 5551sed 's/^/| /' conftest.$ac_ext >&5 5552 5553( exit $ac_status ) 5554ac_cv_c_stack_direction=-1 5555fi 5556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5557fi 5558fi 5559echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5560echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5561 5562cat >>confdefs.h <<_ACEOF 5563#define STACK_DIRECTION $ac_cv_c_stack_direction 5564_ACEOF 5565 5566 5567fi 5568 5569echo "$as_me:$LINENO: checking for working strcoll" >&5 5570echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 5571if test "${ac_cv_func_strcoll_works+set}" = set; then 5572 echo $ECHO_N "(cached) $ECHO_C" >&6 5573else 5574 if test "$cross_compiling" = yes; then 5575 ac_cv_func_strcoll_works=no 5576else 5577 cat >conftest.$ac_ext <<_ACEOF 5578/* confdefs.h. */ 5579_ACEOF 5580cat confdefs.h >>conftest.$ac_ext 5581cat >>conftest.$ac_ext <<_ACEOF 5582/* end confdefs.h. */ 5583$ac_includes_default 5584int 5585main () 5586{ 5587exit (strcoll ("abc", "def") >= 0 || 5588 strcoll ("ABC", "DEF") >= 0 || 5589 strcoll ("123", "456") >= 0) 5590 ; 5591 return 0; 5592} 5593_ACEOF 5594rm -f conftest$ac_exeext 5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5596 (eval $ac_link) 2>&5 5597 ac_status=$? 5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5601 (eval $ac_try) 2>&5 5602 ac_status=$? 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 (exit $ac_status); }; }; then 5605 ac_cv_func_strcoll_works=yes 5606else 5607 echo "$as_me: program exited with status $ac_status" >&5 5608echo "$as_me: failed program was:" >&5 5609sed 's/^/| /' conftest.$ac_ext >&5 5610 5611( exit $ac_status ) 5612ac_cv_func_strcoll_works=no 5613fi 5614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5615fi 5616fi 5617echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 5618echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 5619if test $ac_cv_func_strcoll_works = yes; then 5620 5621cat >>confdefs.h <<\_ACEOF 5622#define HAVE_STRCOLL 1 5623_ACEOF 5624 5625fi 5626 5627 5628for ac_func in vprintf 5629do 5630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5631echo "$as_me:$LINENO: checking for $ac_func" >&5 5632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5633if eval "test \"\${$as_ac_var+set}\" = set"; then 5634 echo $ECHO_N "(cached) $ECHO_C" >&6 5635else 5636 cat >conftest.$ac_ext <<_ACEOF 5637/* confdefs.h. */ 5638_ACEOF 5639cat confdefs.h >>conftest.$ac_ext 5640cat >>conftest.$ac_ext <<_ACEOF 5641/* end confdefs.h. */ 5642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5643 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5644#define $ac_func innocuous_$ac_func 5645 5646/* System header to define __stub macros and hopefully few prototypes, 5647 which can conflict with char $ac_func (); below. 5648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5649 <limits.h> exists even on freestanding compilers. */ 5650 5651#ifdef __STDC__ 5652# include <limits.h> 5653#else 5654# include <assert.h> 5655#endif 5656 5657#undef $ac_func 5658 5659/* Override any gcc2 internal prototype to avoid an error. */ 5660#ifdef __cplusplus 5661extern "C" 5662{ 5663#endif 5664/* We use char because int might match the return type of a gcc2 5665 builtin and then its argument prototype would still apply. */ 5666char $ac_func (); 5667/* The GNU C library defines this for functions which it implements 5668 to always fail with ENOSYS. Some functions are actually named 5669 something starting with __ and the normal name is an alias. */ 5670#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5671choke me 5672#else 5673char (*f) () = $ac_func; 5674#endif 5675#ifdef __cplusplus 5676} 5677#endif 5678 5679int 5680main () 5681{ 5682return f != $ac_func; 5683 ; 5684 return 0; 5685} 5686_ACEOF 5687rm -f conftest.$ac_objext conftest$ac_exeext 5688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5689 (eval $ac_link) 2>conftest.er1 5690 ac_status=$? 5691 grep -v '^ *+' conftest.er1 >conftest.err 5692 rm -f conftest.er1 5693 cat conftest.err >&5 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); } && 5696 { ac_try='test -z "$ac_c_werror_flag" 5697 || test ! -s conftest.err' 5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5699 (eval $ac_try) 2>&5 5700 ac_status=$? 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); }; } && 5703 { ac_try='test -s conftest$ac_exeext' 5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5705 (eval $ac_try) 2>&5 5706 ac_status=$? 5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); }; }; then 5709 eval "$as_ac_var=yes" 5710else 5711 echo "$as_me: failed program was:" >&5 5712sed 's/^/| /' conftest.$ac_ext >&5 5713 5714eval "$as_ac_var=no" 5715fi 5716rm -f conftest.err conftest.$ac_objext \ 5717 conftest$ac_exeext conftest.$ac_ext 5718fi 5719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5720echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5721if test `eval echo '${'$as_ac_var'}'` = yes; then 5722 cat >>confdefs.h <<_ACEOF 5723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5724_ACEOF 5725 5726echo "$as_me:$LINENO: checking for _doprnt" >&5 5727echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5728if test "${ac_cv_func__doprnt+set}" = set; then 5729 echo $ECHO_N "(cached) $ECHO_C" >&6 5730else 5731 cat >conftest.$ac_ext <<_ACEOF 5732/* confdefs.h. */ 5733_ACEOF 5734cat confdefs.h >>conftest.$ac_ext 5735cat >>conftest.$ac_ext <<_ACEOF 5736/* end confdefs.h. */ 5737/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5739#define _doprnt innocuous__doprnt 5740 5741/* System header to define __stub macros and hopefully few prototypes, 5742 which can conflict with char _doprnt (); below. 5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5744 <limits.h> exists even on freestanding compilers. */ 5745 5746#ifdef __STDC__ 5747# include <limits.h> 5748#else 5749# include <assert.h> 5750#endif 5751 5752#undef _doprnt 5753 5754/* Override any gcc2 internal prototype to avoid an error. */ 5755#ifdef __cplusplus 5756extern "C" 5757{ 5758#endif 5759/* We use char because int might match the return type of a gcc2 5760 builtin and then its argument prototype would still apply. */ 5761char _doprnt (); 5762/* The GNU C library defines this for functions which it implements 5763 to always fail with ENOSYS. Some functions are actually named 5764 something starting with __ and the normal name is an alias. */ 5765#if defined (__stub__doprnt) || defined (__stub____doprnt) 5766choke me 5767#else 5768char (*f) () = _doprnt; 5769#endif 5770#ifdef __cplusplus 5771} 5772#endif 5773 5774int 5775main () 5776{ 5777return f != _doprnt; 5778 ; 5779 return 0; 5780} 5781_ACEOF 5782rm -f conftest.$ac_objext conftest$ac_exeext 5783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5784 (eval $ac_link) 2>conftest.er1 5785 ac_status=$? 5786 grep -v '^ *+' conftest.er1 >conftest.err 5787 rm -f conftest.er1 5788 cat conftest.err >&5 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); } && 5791 { ac_try='test -z "$ac_c_werror_flag" 5792 || test ! -s conftest.err' 5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5794 (eval $ac_try) 2>&5 5795 ac_status=$? 5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5797 (exit $ac_status); }; } && 5798 { ac_try='test -s conftest$ac_exeext' 5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5800 (eval $ac_try) 2>&5 5801 ac_status=$? 5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5803 (exit $ac_status); }; }; then 5804 ac_cv_func__doprnt=yes 5805else 5806 echo "$as_me: failed program was:" >&5 5807sed 's/^/| /' conftest.$ac_ext >&5 5808 5809ac_cv_func__doprnt=no 5810fi 5811rm -f conftest.err conftest.$ac_objext \ 5812 conftest$ac_exeext conftest.$ac_ext 5813fi 5814echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5815echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5816if test $ac_cv_func__doprnt = yes; then 5817 5818cat >>confdefs.h <<\_ACEOF 5819#define HAVE_DOPRNT 1 5820_ACEOF 5821 5822fi 5823 5824fi 5825done 5826 5827 5828# in theory only pre-sysvr3 systems needed this and it's not likely 5829# that anyone compiling new texinfo still has such a thing? we'll see. 5830# AC_FUNC_SETVBUF_REVERSED 5831 5832 5833 5834 5835 5836 5837 5838 5839for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \ 5840 sigsetmask strchr 5841do 5842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5843echo "$as_me:$LINENO: checking for $ac_func" >&5 5844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5845if eval "test \"\${$as_ac_var+set}\" = set"; then 5846 echo $ECHO_N "(cached) $ECHO_C" >&6 5847else 5848 cat >conftest.$ac_ext <<_ACEOF 5849/* confdefs.h. */ 5850_ACEOF 5851cat confdefs.h >>conftest.$ac_ext 5852cat >>conftest.$ac_ext <<_ACEOF 5853/* end confdefs.h. */ 5854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5856#define $ac_func innocuous_$ac_func 5857 5858/* System header to define __stub macros and hopefully few prototypes, 5859 which can conflict with char $ac_func (); below. 5860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5861 <limits.h> exists even on freestanding compilers. */ 5862 5863#ifdef __STDC__ 5864# include <limits.h> 5865#else 5866# include <assert.h> 5867#endif 5868 5869#undef $ac_func 5870 5871/* Override any gcc2 internal prototype to avoid an error. */ 5872#ifdef __cplusplus 5873extern "C" 5874{ 5875#endif 5876/* We use char because int might match the return type of a gcc2 5877 builtin and then its argument prototype would still apply. */ 5878char $ac_func (); 5879/* The GNU C library defines this for functions which it implements 5880 to always fail with ENOSYS. Some functions are actually named 5881 something starting with __ and the normal name is an alias. */ 5882#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5883choke me 5884#else 5885char (*f) () = $ac_func; 5886#endif 5887#ifdef __cplusplus 5888} 5889#endif 5890 5891int 5892main () 5893{ 5894return f != $ac_func; 5895 ; 5896 return 0; 5897} 5898_ACEOF 5899rm -f conftest.$ac_objext conftest$ac_exeext 5900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5901 (eval $ac_link) 2>conftest.er1 5902 ac_status=$? 5903 grep -v '^ *+' conftest.er1 >conftest.err 5904 rm -f conftest.er1 5905 cat conftest.err >&5 5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5907 (exit $ac_status); } && 5908 { ac_try='test -z "$ac_c_werror_flag" 5909 || test ! -s conftest.err' 5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5911 (eval $ac_try) 2>&5 5912 ac_status=$? 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); }; } && 5915 { ac_try='test -s conftest$ac_exeext' 5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5917 (eval $ac_try) 2>&5 5918 ac_status=$? 5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5920 (exit $ac_status); }; }; then 5921 eval "$as_ac_var=yes" 5922else 5923 echo "$as_me: failed program was:" >&5 5924sed 's/^/| /' conftest.$ac_ext >&5 5925 5926eval "$as_ac_var=no" 5927fi 5928rm -f conftest.err conftest.$ac_objext \ 5929 conftest$ac_exeext conftest.$ac_ext 5930fi 5931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5933if test `eval echo '${'$as_ac_var'}'` = yes; then 5934 cat >>confdefs.h <<_ACEOF 5935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5936_ACEOF 5937 5938fi 5939done 5940 5941 5942 5943 5944 5945for ac_func in memcpy memmove strdup strerror 5946do 5947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5948echo "$as_me:$LINENO: checking for $ac_func" >&5 5949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5950if eval "test \"\${$as_ac_var+set}\" = set"; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 cat >conftest.$ac_ext <<_ACEOF 5954/* confdefs.h. */ 5955_ACEOF 5956cat confdefs.h >>conftest.$ac_ext 5957cat >>conftest.$ac_ext <<_ACEOF 5958/* end confdefs.h. */ 5959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5960 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5961#define $ac_func innocuous_$ac_func 5962 5963/* System header to define __stub macros and hopefully few prototypes, 5964 which can conflict with char $ac_func (); below. 5965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5966 <limits.h> exists even on freestanding compilers. */ 5967 5968#ifdef __STDC__ 5969# include <limits.h> 5970#else 5971# include <assert.h> 5972#endif 5973 5974#undef $ac_func 5975 5976/* Override any gcc2 internal prototype to avoid an error. */ 5977#ifdef __cplusplus 5978extern "C" 5979{ 5980#endif 5981/* We use char because int might match the return type of a gcc2 5982 builtin and then its argument prototype would still apply. */ 5983char $ac_func (); 5984/* The GNU C library defines this for functions which it implements 5985 to always fail with ENOSYS. Some functions are actually named 5986 something starting with __ and the normal name is an alias. */ 5987#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5988choke me 5989#else 5990char (*f) () = $ac_func; 5991#endif 5992#ifdef __cplusplus 5993} 5994#endif 5995 5996int 5997main () 5998{ 5999return f != $ac_func; 6000 ; 6001 return 0; 6002} 6003_ACEOF 6004rm -f conftest.$ac_objext conftest$ac_exeext 6005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6006 (eval $ac_link) 2>conftest.er1 6007 ac_status=$? 6008 grep -v '^ *+' conftest.er1 >conftest.err 6009 rm -f conftest.er1 6010 cat conftest.err >&5 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); } && 6013 { ac_try='test -z "$ac_c_werror_flag" 6014 || test ! -s conftest.err' 6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6016 (eval $ac_try) 2>&5 6017 ac_status=$? 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); }; } && 6020 { ac_try='test -s conftest$ac_exeext' 6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6022 (eval $ac_try) 2>&5 6023 ac_status=$? 6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6025 (exit $ac_status); }; }; then 6026 eval "$as_ac_var=yes" 6027else 6028 echo "$as_me: failed program was:" >&5 6029sed 's/^/| /' conftest.$ac_ext >&5 6030 6031eval "$as_ac_var=no" 6032fi 6033rm -f conftest.err conftest.$ac_objext \ 6034 conftest$ac_exeext conftest.$ac_ext 6035fi 6036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6038if test `eval echo '${'$as_ac_var'}'` = yes; then 6039 cat >>confdefs.h <<_ACEOF 6040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6041_ACEOF 6042 6043else 6044 case $LIBOBJS in 6045 "$ac_func.$ac_objext" | \ 6046 *" $ac_func.$ac_objext" | \ 6047 "$ac_func.$ac_objext "* | \ 6048 *" $ac_func.$ac_objext "* ) ;; 6049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6050esac 6051 6052fi 6053done 6054 6055 6056 6057# strcasecmp and strncasecmp, gnulib-style. 6058 6059 6060 6061for ac_func in strcasecmp 6062do 6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6064echo "$as_me:$LINENO: checking for $ac_func" >&5 6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6066if eval "test \"\${$as_ac_var+set}\" = set"; then 6067 echo $ECHO_N "(cached) $ECHO_C" >&6 6068else 6069 cat >conftest.$ac_ext <<_ACEOF 6070/* confdefs.h. */ 6071_ACEOF 6072cat confdefs.h >>conftest.$ac_ext 6073cat >>conftest.$ac_ext <<_ACEOF 6074/* end confdefs.h. */ 6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6077#define $ac_func innocuous_$ac_func 6078 6079/* System header to define __stub macros and hopefully few prototypes, 6080 which can conflict with char $ac_func (); below. 6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6082 <limits.h> exists even on freestanding compilers. */ 6083 6084#ifdef __STDC__ 6085# include <limits.h> 6086#else 6087# include <assert.h> 6088#endif 6089 6090#undef $ac_func 6091 6092/* Override any gcc2 internal prototype to avoid an error. */ 6093#ifdef __cplusplus 6094extern "C" 6095{ 6096#endif 6097/* We use char because int might match the return type of a gcc2 6098 builtin and then its argument prototype would still apply. */ 6099char $ac_func (); 6100/* The GNU C library defines this for functions which it implements 6101 to always fail with ENOSYS. Some functions are actually named 6102 something starting with __ and the normal name is an alias. */ 6103#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6104choke me 6105#else 6106char (*f) () = $ac_func; 6107#endif 6108#ifdef __cplusplus 6109} 6110#endif 6111 6112int 6113main () 6114{ 6115return f != $ac_func; 6116 ; 6117 return 0; 6118} 6119_ACEOF 6120rm -f conftest.$ac_objext conftest$ac_exeext 6121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6122 (eval $ac_link) 2>conftest.er1 6123 ac_status=$? 6124 grep -v '^ *+' conftest.er1 >conftest.err 6125 rm -f conftest.er1 6126 cat conftest.err >&5 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); } && 6129 { ac_try='test -z "$ac_c_werror_flag" 6130 || test ! -s conftest.err' 6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6132 (eval $ac_try) 2>&5 6133 ac_status=$? 6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6135 (exit $ac_status); }; } && 6136 { ac_try='test -s conftest$ac_exeext' 6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6138 (eval $ac_try) 2>&5 6139 ac_status=$? 6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6141 (exit $ac_status); }; }; then 6142 eval "$as_ac_var=yes" 6143else 6144 echo "$as_me: failed program was:" >&5 6145sed 's/^/| /' conftest.$ac_ext >&5 6146 6147eval "$as_ac_var=no" 6148fi 6149rm -f conftest.err conftest.$ac_objext \ 6150 conftest$ac_exeext conftest.$ac_ext 6151fi 6152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6154if test `eval echo '${'$as_ac_var'}'` = yes; then 6155 cat >>confdefs.h <<_ACEOF 6156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6157_ACEOF 6158 6159else 6160 case $LIBOBJS in 6161 "$ac_func.$ac_objext" | \ 6162 *" $ac_func.$ac_objext" | \ 6163 "$ac_func.$ac_objext "* | \ 6164 *" $ac_func.$ac_objext "* ) ;; 6165 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6166esac 6167 6168fi 6169done 6170 6171 6172 if test $ac_cv_func_strcasecmp = no; then 6173 6174 : 6175 6176 fi 6177 6178 6179 6180for ac_func in strncasecmp 6181do 6182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6183echo "$as_me:$LINENO: checking for $ac_func" >&5 6184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6185if eval "test \"\${$as_ac_var+set}\" = set"; then 6186 echo $ECHO_N "(cached) $ECHO_C" >&6 6187else 6188 cat >conftest.$ac_ext <<_ACEOF 6189/* confdefs.h. */ 6190_ACEOF 6191cat confdefs.h >>conftest.$ac_ext 6192cat >>conftest.$ac_ext <<_ACEOF 6193/* end confdefs.h. */ 6194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6195 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6196#define $ac_func innocuous_$ac_func 6197 6198/* System header to define __stub macros and hopefully few prototypes, 6199 which can conflict with char $ac_func (); below. 6200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6201 <limits.h> exists even on freestanding compilers. */ 6202 6203#ifdef __STDC__ 6204# include <limits.h> 6205#else 6206# include <assert.h> 6207#endif 6208 6209#undef $ac_func 6210 6211/* Override any gcc2 internal prototype to avoid an error. */ 6212#ifdef __cplusplus 6213extern "C" 6214{ 6215#endif 6216/* We use char because int might match the return type of a gcc2 6217 builtin and then its argument prototype would still apply. */ 6218char $ac_func (); 6219/* The GNU C library defines this for functions which it implements 6220 to always fail with ENOSYS. Some functions are actually named 6221 something starting with __ and the normal name is an alias. */ 6222#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6223choke me 6224#else 6225char (*f) () = $ac_func; 6226#endif 6227#ifdef __cplusplus 6228} 6229#endif 6230 6231int 6232main () 6233{ 6234return f != $ac_func; 6235 ; 6236 return 0; 6237} 6238_ACEOF 6239rm -f conftest.$ac_objext conftest$ac_exeext 6240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6241 (eval $ac_link) 2>conftest.er1 6242 ac_status=$? 6243 grep -v '^ *+' conftest.er1 >conftest.err 6244 rm -f conftest.er1 6245 cat conftest.err >&5 6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } && 6248 { ac_try='test -z "$ac_c_werror_flag" 6249 || test ! -s conftest.err' 6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6251 (eval $ac_try) 2>&5 6252 ac_status=$? 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6254 (exit $ac_status); }; } && 6255 { ac_try='test -s conftest$ac_exeext' 6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6257 (eval $ac_try) 2>&5 6258 ac_status=$? 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); }; }; then 6261 eval "$as_ac_var=yes" 6262else 6263 echo "$as_me: failed program was:" >&5 6264sed 's/^/| /' conftest.$ac_ext >&5 6265 6266eval "$as_ac_var=no" 6267fi 6268rm -f conftest.err conftest.$ac_objext \ 6269 conftest$ac_exeext conftest.$ac_ext 6270fi 6271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6273if test `eval echo '${'$as_ac_var'}'` = yes; then 6274 cat >>confdefs.h <<_ACEOF 6275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6276_ACEOF 6277 6278else 6279 case $LIBOBJS in 6280 "$ac_func.$ac_objext" | \ 6281 *" $ac_func.$ac_objext" | \ 6282 "$ac_func.$ac_objext "* | \ 6283 *" $ac_func.$ac_objext "* ) ;; 6284 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6285esac 6286 6287fi 6288done 6289 6290 6291 if test $ac_cv_func_strncasecmp = no; then 6292 6293 : 6294 6295 fi 6296 6297 6298 6299# We want to recognize djgpp to avoid the useless warning about no 6300# term library. 6301# Make sure we can run config.sub. 6302$ac_config_sub sun4 >/dev/null 2>&1 || 6303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6304echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6305 { (exit 1); exit 1; }; } 6306 6307echo "$as_me:$LINENO: checking build system type" >&5 6308echo $ECHO_N "checking build system type... $ECHO_C" >&6 6309if test "${ac_cv_build+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311else 6312 ac_cv_build_alias=$build_alias 6313test -z "$ac_cv_build_alias" && 6314 ac_cv_build_alias=`$ac_config_guess` 6315test -z "$ac_cv_build_alias" && 6316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6317echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6318 { (exit 1); exit 1; }; } 6319ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 6320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 6321echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 6322 { (exit 1); exit 1; }; } 6323 6324fi 6325echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6326echo "${ECHO_T}$ac_cv_build" >&6 6327build=$ac_cv_build 6328build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6329build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6330build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6331 6332 6333 6334# We need to run some of our own binaries, most notably makedoc, but as 6335# long as we have this process, we also use our own makeinfo and 6336# install-info. 6337# 6338# This means that if we are cross compiling, we have to configure the 6339# package twice: once with the native compiler (this is done in a 6340# subdirectory $native_tools), and once with the cross compiler. 6341# The former is invoked automatically here, with --host=$build. 6342# $native_tools is also added to SUBDIRS in the main Makefile.am, 6343# so that make compiles the native tools first. 6344# 6345if test "$cross_compiling" = no; then 6346 native_tools= 6347else 6348 native_tools=tools 6349 test -d "$native_tools" || mkdir "$native_tools" 6350 confdir=`(cd "$srcdir";pwd)` 6351 # Make sure the secondary configure won't fail with 6352 # "error: source directory already configured". 6353 rm -f config.status 6354 { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5 6355echo "$as_me: Doing configure of native tools (${build})." >&6;} 6356 cd "$native_tools" || exit 1 6357 # Run secondary configure in alternate environment or 6358 # it gets the wrong CC etc. env -i gives this build host configure 6359 # a clean environment. 6360 env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \ 6361 PATH="${PATH}" \ 6362 tools_only=1 \ 6363 ${confdir}/configure --build=${build} --host=${build} \ 6364 --disable-rpath --disable-nls 6365 cd .. || exit 1 6366 { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5 6367echo "$as_me: Continuing with main configure (${host})." >&6;} 6368fi 6369 6370 6371 6372if test "x$tools_only" = x1; then 6373 TOOLS_ONLY_TRUE= 6374 TOOLS_ONLY_FALSE='#' 6375else 6376 TOOLS_ONLY_TRUE='#' 6377 TOOLS_ONLY_FALSE= 6378fi 6379 6380 6381# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but 6382# rather ncurses. So we check for it. 6383TERMLIBS= 6384# Check for termlib before termcap because Solaris termcap needs libucb. 6385TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo" 6386for termlib in ${TERMLIB_VARIANTS}; do 6387 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 6388echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5 6389echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6 6390if eval "test \"\${$as_ac_Lib+set}\" = set"; then 6391 echo $ECHO_N "(cached) $ECHO_C" >&6 6392else 6393 ac_check_lib_save_LIBS=$LIBS 6394LIBS="-l${termlib} $LIBS" 6395cat >conftest.$ac_ext <<_ACEOF 6396/* confdefs.h. */ 6397_ACEOF 6398cat confdefs.h >>conftest.$ac_ext 6399cat >>conftest.$ac_ext <<_ACEOF 6400/* end confdefs.h. */ 6401 6402/* Override any gcc2 internal prototype to avoid an error. */ 6403#ifdef __cplusplus 6404extern "C" 6405#endif 6406/* We use char because int might match the return type of a gcc2 6407 builtin and then its argument prototype would still apply. */ 6408char tgetent (); 6409int 6410main () 6411{ 6412tgetent (); 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417rm -f conftest.$ac_objext conftest$ac_exeext 6418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6419 (eval $ac_link) 2>conftest.er1 6420 ac_status=$? 6421 grep -v '^ *+' conftest.er1 >conftest.err 6422 rm -f conftest.er1 6423 cat conftest.err >&5 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); } && 6426 { ac_try='test -z "$ac_c_werror_flag" 6427 || test ! -s conftest.err' 6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6429 (eval $ac_try) 2>&5 6430 ac_status=$? 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); }; } && 6433 { ac_try='test -s conftest$ac_exeext' 6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6435 (eval $ac_try) 2>&5 6436 ac_status=$? 6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6438 (exit $ac_status); }; }; then 6439 eval "$as_ac_Lib=yes" 6440else 6441 echo "$as_me: failed program was:" >&5 6442sed 's/^/| /' conftest.$ac_ext >&5 6443 6444eval "$as_ac_Lib=no" 6445fi 6446rm -f conftest.err conftest.$ac_objext \ 6447 conftest$ac_exeext conftest.$ac_ext 6448LIBS=$ac_check_lib_save_LIBS 6449fi 6450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 6451echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 6452if test `eval echo '${'$as_ac_Lib'}'` = yes; then 6453 TERMLIBS="${TERMLIBS} -l${termlib}"; break 6454fi 6455 6456done 6457# don't bother warning on djgpp, it doesn't have a term library, it 6458# ports each termcap-needing program separately according to its needs. 6459if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then 6460 { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5 6461echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;} 6462fi 6463 6464# Checks for variables. 6465# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. 6466echo "$as_me:$LINENO: checking for library with termcap variables" >&5 6467echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6 6468if test "${ac_cv_var_ospeed+set}" = set; then 6469 echo $ECHO_N "(cached) $ECHO_C" >&6 6470else 6471 oldLIBS=$LIBS 6472for trylib in $termlib ${TERMLIB_VARIANTS}; do 6473 if test "x$trylib" != "x$termlib"; then 6474 LIBS="$oldLIBS -l$termlib -l$trylib" 6475 else 6476 LIBS="$oldLIBS -l$termlib" 6477 fi 6478 cat >conftest.$ac_ext <<_ACEOF 6479/* confdefs.h. */ 6480_ACEOF 6481cat confdefs.h >>conftest.$ac_ext 6482cat >>conftest.$ac_ext <<_ACEOF 6483/* end confdefs.h. */ 6484 6485int 6486main () 6487{ 6488#ifdef HAVE_NCURSES_TERMCAP_H 6489#include <ncurses/termcap.h> 6490#else 6491#ifdef HAVE_TERMCAP_H 6492#include <termcap.h> 6493#else 6494#undef PC 6495char *BC; 6496char **UP; 6497char PC; 6498short ospeed; 6499#endif 6500#endif 6501/* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC. 6502 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */ 6503BC++; 6504UP++; 6505PC++; 6506return ospeed != 0; 6507 6508 ; 6509 return 0; 6510} 6511_ACEOF 6512rm -f conftest.$ac_objext conftest$ac_exeext 6513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6514 (eval $ac_link) 2>conftest.er1 6515 ac_status=$? 6516 grep -v '^ *+' conftest.er1 >conftest.err 6517 rm -f conftest.er1 6518 cat conftest.err >&5 6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6520 (exit $ac_status); } && 6521 { ac_try='test -z "$ac_c_werror_flag" 6522 || test ! -s conftest.err' 6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6524 (eval $ac_try) 2>&5 6525 ac_status=$? 6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6527 (exit $ac_status); }; } && 6528 { ac_try='test -s conftest$ac_exeext' 6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6530 (eval $ac_try) 2>&5 6531 ac_status=$? 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); }; }; then 6534 ac_cv_var_ospeed=$trylib; break 6535else 6536 echo "$as_me: failed program was:" >&5 6537sed 's/^/| /' conftest.$ac_ext >&5 6538 6539fi 6540rm -f conftest.err conftest.$ac_objext \ 6541 conftest$ac_exeext conftest.$ac_ext 6542done 6543LIBS=$oldLIBS 6544 6545fi 6546 6547echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5 6548echo "${ECHO_T}$ac_cv_var_ospeed" >&6 6549if test -n "$ac_cv_var_ospeed" \ 6550 && test "x$termlib" != "x$ac_cv_var_ospeed"; then 6551 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" 6552fi 6553# 6554 6555# Do not use <ncurses/termcap.h> unless we're linking with ncurses. 6556# Must come after the termlib tests. 6557if test "x$termlib" = xncurses; then 6558 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined. 6559 6560for ac_header in ncurses/termcap.h 6561do 6562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6563if eval "test \"\${$as_ac_Header+set}\" = set"; then 6564 echo "$as_me:$LINENO: checking for $ac_header" >&5 6565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6566if eval "test \"\${$as_ac_Header+set}\" = set"; then 6567 echo $ECHO_N "(cached) $ECHO_C" >&6 6568fi 6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6571else 6572 # Is the header compilable? 6573echo "$as_me:$LINENO: checking $ac_header usability" >&5 6574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6575cat >conftest.$ac_ext <<_ACEOF 6576/* confdefs.h. */ 6577_ACEOF 6578cat confdefs.h >>conftest.$ac_ext 6579cat >>conftest.$ac_ext <<_ACEOF 6580/* end confdefs.h. */ 6581$ac_includes_default 6582#include <$ac_header> 6583_ACEOF 6584rm -f conftest.$ac_objext 6585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6586 (eval $ac_compile) 2>conftest.er1 6587 ac_status=$? 6588 grep -v '^ *+' conftest.er1 >conftest.err 6589 rm -f conftest.er1 6590 cat conftest.err >&5 6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6592 (exit $ac_status); } && 6593 { ac_try='test -z "$ac_c_werror_flag" 6594 || test ! -s conftest.err' 6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6596 (eval $ac_try) 2>&5 6597 ac_status=$? 6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6599 (exit $ac_status); }; } && 6600 { ac_try='test -s conftest.$ac_objext' 6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6602 (eval $ac_try) 2>&5 6603 ac_status=$? 6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6605 (exit $ac_status); }; }; then 6606 ac_header_compiler=yes 6607else 6608 echo "$as_me: failed program was:" >&5 6609sed 's/^/| /' conftest.$ac_ext >&5 6610 6611ac_header_compiler=no 6612fi 6613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6615echo "${ECHO_T}$ac_header_compiler" >&6 6616 6617# Is the header present? 6618echo "$as_me:$LINENO: checking $ac_header presence" >&5 6619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6620cat >conftest.$ac_ext <<_ACEOF 6621/* confdefs.h. */ 6622_ACEOF 6623cat confdefs.h >>conftest.$ac_ext 6624cat >>conftest.$ac_ext <<_ACEOF 6625/* end confdefs.h. */ 6626#include <$ac_header> 6627_ACEOF 6628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6630 ac_status=$? 6631 grep -v '^ *+' conftest.er1 >conftest.err 6632 rm -f conftest.er1 6633 cat conftest.err >&5 6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); } >/dev/null; then 6636 if test -s conftest.err; then 6637 ac_cpp_err=$ac_c_preproc_warn_flag 6638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6639 else 6640 ac_cpp_err= 6641 fi 6642else 6643 ac_cpp_err=yes 6644fi 6645if test -z "$ac_cpp_err"; then 6646 ac_header_preproc=yes 6647else 6648 echo "$as_me: failed program was:" >&5 6649sed 's/^/| /' conftest.$ac_ext >&5 6650 6651 ac_header_preproc=no 6652fi 6653rm -f conftest.err conftest.$ac_ext 6654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6655echo "${ECHO_T}$ac_header_preproc" >&6 6656 6657# So? What about this header? 6658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6659 yes:no: ) 6660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6664 ac_header_preproc=yes 6665 ;; 6666 no:yes:* ) 6667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6679 ( 6680 cat <<\_ASBOX 6681## -------------------------------------- ## 6682## Report this to the GNU Texinfo lists. ## 6683## -------------------------------------- ## 6684_ASBOX 6685 ) | 6686 sed "s/^/$as_me: WARNING: /" >&2 6687 ;; 6688esac 6689echo "$as_me:$LINENO: checking for $ac_header" >&5 6690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6691if eval "test \"\${$as_ac_Header+set}\" = set"; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 eval "$as_ac_Header=\$ac_header_preproc" 6695fi 6696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6698 6699fi 6700if test `eval echo '${'$as_ac_Header'}'` = yes; then 6701 cat >>confdefs.h <<_ACEOF 6702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6703_ACEOF 6704 6705fi 6706 6707done 6708 6709fi 6710 6711# gnulib. 6712 6713 6714 6715 6716 6717for ac_header in $gl_header_list 6718do 6719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6720if eval "test \"\${$as_ac_Header+set}\" = set"; then 6721 echo "$as_me:$LINENO: checking for $ac_header" >&5 6722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6723if eval "test \"\${$as_ac_Header+set}\" = set"; then 6724 echo $ECHO_N "(cached) $ECHO_C" >&6 6725fi 6726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6728else 6729 # Is the header compilable? 6730echo "$as_me:$LINENO: checking $ac_header usability" >&5 6731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6732cat >conftest.$ac_ext <<_ACEOF 6733/* confdefs.h. */ 6734_ACEOF 6735cat confdefs.h >>conftest.$ac_ext 6736cat >>conftest.$ac_ext <<_ACEOF 6737/* end confdefs.h. */ 6738$ac_includes_default 6739#include <$ac_header> 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6743 (eval $ac_compile) 2>conftest.er1 6744 ac_status=$? 6745 grep -v '^ *+' conftest.er1 >conftest.err 6746 rm -f conftest.er1 6747 cat conftest.err >&5 6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); } && 6750 { ac_try='test -z "$ac_c_werror_flag" 6751 || test ! -s conftest.err' 6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6753 (eval $ac_try) 2>&5 6754 ac_status=$? 6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6756 (exit $ac_status); }; } && 6757 { ac_try='test -s conftest.$ac_objext' 6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6759 (eval $ac_try) 2>&5 6760 ac_status=$? 6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6762 (exit $ac_status); }; }; then 6763 ac_header_compiler=yes 6764else 6765 echo "$as_me: failed program was:" >&5 6766sed 's/^/| /' conftest.$ac_ext >&5 6767 6768ac_header_compiler=no 6769fi 6770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6772echo "${ECHO_T}$ac_header_compiler" >&6 6773 6774# Is the header present? 6775echo "$as_me:$LINENO: checking $ac_header presence" >&5 6776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6777cat >conftest.$ac_ext <<_ACEOF 6778/* confdefs.h. */ 6779_ACEOF 6780cat confdefs.h >>conftest.$ac_ext 6781cat >>conftest.$ac_ext <<_ACEOF 6782/* end confdefs.h. */ 6783#include <$ac_header> 6784_ACEOF 6785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6787 ac_status=$? 6788 grep -v '^ *+' conftest.er1 >conftest.err 6789 rm -f conftest.er1 6790 cat conftest.err >&5 6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6792 (exit $ac_status); } >/dev/null; then 6793 if test -s conftest.err; then 6794 ac_cpp_err=$ac_c_preproc_warn_flag 6795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6796 else 6797 ac_cpp_err= 6798 fi 6799else 6800 ac_cpp_err=yes 6801fi 6802if test -z "$ac_cpp_err"; then 6803 ac_header_preproc=yes 6804else 6805 echo "$as_me: failed program was:" >&5 6806sed 's/^/| /' conftest.$ac_ext >&5 6807 6808 ac_header_preproc=no 6809fi 6810rm -f conftest.err conftest.$ac_ext 6811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6812echo "${ECHO_T}$ac_header_preproc" >&6 6813 6814# So? What about this header? 6815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6816 yes:no: ) 6817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6821 ac_header_preproc=yes 6822 ;; 6823 no:yes:* ) 6824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6836 ( 6837 cat <<\_ASBOX 6838## -------------------------------------- ## 6839## Report this to the GNU Texinfo lists. ## 6840## -------------------------------------- ## 6841_ASBOX 6842 ) | 6843 sed "s/^/$as_me: WARNING: /" >&2 6844 ;; 6845esac 6846echo "$as_me:$LINENO: checking for $ac_header" >&5 6847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6848if eval "test \"\${$as_ac_Header+set}\" = set"; then 6849 echo $ECHO_N "(cached) $ECHO_C" >&6 6850else 6851 eval "$as_ac_Header=\$ac_header_preproc" 6852fi 6853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6855 6856fi 6857if test `eval echo '${'$as_ac_Header'}'` = yes; then 6858 cat >>confdefs.h <<_ACEOF 6859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6860_ACEOF 6861 6862fi 6863 6864done 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 echo "$as_me:$LINENO: checking whether getenv is declared" >&5 6885echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 6886if test "${ac_cv_have_decl_getenv+set}" = set; then 6887 echo $ECHO_N "(cached) $ECHO_C" >&6 6888else 6889 cat >conftest.$ac_ext <<_ACEOF 6890/* confdefs.h. */ 6891_ACEOF 6892cat confdefs.h >>conftest.$ac_ext 6893cat >>conftest.$ac_ext <<_ACEOF 6894/* end confdefs.h. */ 6895$ac_includes_default 6896int 6897main () 6898{ 6899#ifndef getenv 6900 char *p = (char *) getenv; 6901#endif 6902 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907rm -f conftest.$ac_objext 6908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6909 (eval $ac_compile) 2>conftest.er1 6910 ac_status=$? 6911 grep -v '^ *+' conftest.er1 >conftest.err 6912 rm -f conftest.er1 6913 cat conftest.err >&5 6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6915 (exit $ac_status); } && 6916 { ac_try='test -z "$ac_c_werror_flag" 6917 || test ! -s conftest.err' 6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6919 (eval $ac_try) 2>&5 6920 ac_status=$? 6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6922 (exit $ac_status); }; } && 6923 { ac_try='test -s conftest.$ac_objext' 6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6925 (eval $ac_try) 2>&5 6926 ac_status=$? 6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6928 (exit $ac_status); }; }; then 6929 ac_cv_have_decl_getenv=yes 6930else 6931 echo "$as_me: failed program was:" >&5 6932sed 's/^/| /' conftest.$ac_ext >&5 6933 6934ac_cv_have_decl_getenv=no 6935fi 6936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6937fi 6938echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 6939echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 6940if test $ac_cv_have_decl_getenv = yes; then 6941 6942cat >>confdefs.h <<_ACEOF 6943#define HAVE_DECL_GETENV 1 6944_ACEOF 6945 6946 6947else 6948 cat >>confdefs.h <<_ACEOF 6949#define HAVE_DECL_GETENV 0 6950_ACEOF 6951 6952 6953fi 6954 6955 6956 6957 6958 echo "$as_me:$LINENO: checking for inttypes.h" >&5 6959echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 6960if test "${gl_cv_header_inttypes_h+set}" = set; then 6961 echo $ECHO_N "(cached) $ECHO_C" >&6 6962else 6963 cat >conftest.$ac_ext <<_ACEOF 6964/* confdefs.h. */ 6965_ACEOF 6966cat confdefs.h >>conftest.$ac_ext 6967cat >>conftest.$ac_ext <<_ACEOF 6968/* end confdefs.h. */ 6969#include <sys/types.h> 6970#include <inttypes.h> 6971int 6972main () 6973{ 6974uintmax_t i = (uintmax_t) -1; 6975 ; 6976 return 0; 6977} 6978_ACEOF 6979rm -f conftest.$ac_objext 6980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6981 (eval $ac_compile) 2>conftest.er1 6982 ac_status=$? 6983 grep -v '^ *+' conftest.er1 >conftest.err 6984 rm -f conftest.er1 6985 cat conftest.err >&5 6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6987 (exit $ac_status); } && 6988 { ac_try='test -z "$ac_c_werror_flag" 6989 || test ! -s conftest.err' 6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6991 (eval $ac_try) 2>&5 6992 ac_status=$? 6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6994 (exit $ac_status); }; } && 6995 { ac_try='test -s conftest.$ac_objext' 6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6997 (eval $ac_try) 2>&5 6998 ac_status=$? 6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); }; }; then 7001 gl_cv_header_inttypes_h=yes 7002else 7003 echo "$as_me: failed program was:" >&5 7004sed 's/^/| /' conftest.$ac_ext >&5 7005 7006gl_cv_header_inttypes_h=no 7007fi 7008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7009fi 7010echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 7011echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 7012 if test $gl_cv_header_inttypes_h = yes; then 7013 7014cat >>confdefs.h <<_ACEOF 7015#define HAVE_INTTYPES_H_WITH_UINTMAX 1 7016_ACEOF 7017 7018 fi 7019 7020 7021 echo "$as_me:$LINENO: checking for stdint.h" >&5 7022echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 7023if test "${gl_cv_header_stdint_h+set}" = set; then 7024 echo $ECHO_N "(cached) $ECHO_C" >&6 7025else 7026 cat >conftest.$ac_ext <<_ACEOF 7027/* confdefs.h. */ 7028_ACEOF 7029cat confdefs.h >>conftest.$ac_ext 7030cat >>conftest.$ac_ext <<_ACEOF 7031/* end confdefs.h. */ 7032#include <sys/types.h> 7033#include <stdint.h> 7034int 7035main () 7036{ 7037uintmax_t i = (uintmax_t) -1; 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042rm -f conftest.$ac_objext 7043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7044 (eval $ac_compile) 2>conftest.er1 7045 ac_status=$? 7046 grep -v '^ *+' conftest.er1 >conftest.err 7047 rm -f conftest.er1 7048 cat conftest.err >&5 7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7050 (exit $ac_status); } && 7051 { ac_try='test -z "$ac_c_werror_flag" 7052 || test ! -s conftest.err' 7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7054 (eval $ac_try) 2>&5 7055 ac_status=$? 7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7057 (exit $ac_status); }; } && 7058 { ac_try='test -s conftest.$ac_objext' 7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7060 (eval $ac_try) 2>&5 7061 ac_status=$? 7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); }; }; then 7064 gl_cv_header_stdint_h=yes 7065else 7066 echo "$as_me: failed program was:" >&5 7067sed 's/^/| /' conftest.$ac_ext >&5 7068 7069gl_cv_header_stdint_h=no 7070fi 7071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7072fi 7073echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 7074echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 7075 if test $gl_cv_header_stdint_h = yes; then 7076 7077cat >>confdefs.h <<_ACEOF 7078#define HAVE_STDINT_H_WITH_UINTMAX 1 7079_ACEOF 7080 7081 fi 7082 7083 7084 echo "$as_me:$LINENO: checking for unsigned long long" >&5 7085echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7086if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7087 echo $ECHO_N "(cached) $ECHO_C" >&6 7088else 7089 cat >conftest.$ac_ext <<_ACEOF 7090/* confdefs.h. */ 7091_ACEOF 7092cat confdefs.h >>conftest.$ac_ext 7093cat >>conftest.$ac_ext <<_ACEOF 7094/* end confdefs.h. */ 7095unsigned long long ull = 1ULL; int i = 63; 7096int 7097main () 7098{ 7099unsigned long long ullmax = (unsigned long long) -1; 7100 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7101 ; 7102 return 0; 7103} 7104_ACEOF 7105rm -f conftest.$ac_objext conftest$ac_exeext 7106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7107 (eval $ac_link) 2>conftest.er1 7108 ac_status=$? 7109 grep -v '^ *+' conftest.er1 >conftest.err 7110 rm -f conftest.er1 7111 cat conftest.err >&5 7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7113 (exit $ac_status); } && 7114 { ac_try='test -z "$ac_c_werror_flag" 7115 || test ! -s conftest.err' 7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7117 (eval $ac_try) 2>&5 7118 ac_status=$? 7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7120 (exit $ac_status); }; } && 7121 { ac_try='test -s conftest$ac_exeext' 7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7123 (eval $ac_try) 2>&5 7124 ac_status=$? 7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7126 (exit $ac_status); }; }; then 7127 ac_cv_type_unsigned_long_long=yes 7128else 7129 echo "$as_me: failed program was:" >&5 7130sed 's/^/| /' conftest.$ac_ext >&5 7131 7132ac_cv_type_unsigned_long_long=no 7133fi 7134rm -f conftest.err conftest.$ac_objext \ 7135 conftest$ac_exeext conftest.$ac_ext 7136fi 7137echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7138echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7139 if test $ac_cv_type_unsigned_long_long = yes; then 7140 7141cat >>confdefs.h <<\_ACEOF 7142#define HAVE_UNSIGNED_LONG_LONG 1 7143_ACEOF 7144 7145 fi 7146 7147 7148 7149 7150 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7151 7152 test $ac_cv_type_unsigned_long_long = yes \ 7153 && ac_type='unsigned long long' \ 7154 || ac_type='unsigned long' 7155 7156cat >>confdefs.h <<_ACEOF 7157#define uintmax_t $ac_type 7158_ACEOF 7159 7160 else 7161 7162cat >>confdefs.h <<\_ACEOF 7163#define HAVE_UINTMAX_T 1 7164_ACEOF 7165 7166 fi 7167 7168 7169for ac_func in mkstemp 7170do 7171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7172echo "$as_me:$LINENO: checking for $ac_func" >&5 7173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7174if eval "test \"\${$as_ac_var+set}\" = set"; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 cat >conftest.$ac_ext <<_ACEOF 7178/* confdefs.h. */ 7179_ACEOF 7180cat confdefs.h >>conftest.$ac_ext 7181cat >>conftest.$ac_ext <<_ACEOF 7182/* end confdefs.h. */ 7183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7185#define $ac_func innocuous_$ac_func 7186 7187/* System header to define __stub macros and hopefully few prototypes, 7188 which can conflict with char $ac_func (); below. 7189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7190 <limits.h> exists even on freestanding compilers. */ 7191 7192#ifdef __STDC__ 7193# include <limits.h> 7194#else 7195# include <assert.h> 7196#endif 7197 7198#undef $ac_func 7199 7200/* Override any gcc2 internal prototype to avoid an error. */ 7201#ifdef __cplusplus 7202extern "C" 7203{ 7204#endif 7205/* We use char because int might match the return type of a gcc2 7206 builtin and then its argument prototype would still apply. */ 7207char $ac_func (); 7208/* The GNU C library defines this for functions which it implements 7209 to always fail with ENOSYS. Some functions are actually named 7210 something starting with __ and the normal name is an alias. */ 7211#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7212choke me 7213#else 7214char (*f) () = $ac_func; 7215#endif 7216#ifdef __cplusplus 7217} 7218#endif 7219 7220int 7221main () 7222{ 7223return f != $ac_func; 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228rm -f conftest.$ac_objext conftest$ac_exeext 7229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7230 (eval $ac_link) 2>conftest.er1 7231 ac_status=$? 7232 grep -v '^ *+' conftest.er1 >conftest.err 7233 rm -f conftest.er1 7234 cat conftest.err >&5 7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7236 (exit $ac_status); } && 7237 { ac_try='test -z "$ac_c_werror_flag" 7238 || test ! -s conftest.err' 7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7240 (eval $ac_try) 2>&5 7241 ac_status=$? 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); }; } && 7244 { ac_try='test -s conftest$ac_exeext' 7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7246 (eval $ac_try) 2>&5 7247 ac_status=$? 7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7249 (exit $ac_status); }; }; then 7250 eval "$as_ac_var=yes" 7251else 7252 echo "$as_me: failed program was:" >&5 7253sed 's/^/| /' conftest.$ac_ext >&5 7254 7255eval "$as_ac_var=no" 7256fi 7257rm -f conftest.err conftest.$ac_objext \ 7258 conftest$ac_exeext conftest.$ac_ext 7259fi 7260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7262if test `eval echo '${'$as_ac_var'}'` = yes; then 7263 cat >>confdefs.h <<_ACEOF 7264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7265_ACEOF 7266 7267else 7268 case $LIBOBJS in 7269 "$ac_func.$ac_objext" | \ 7270 *" $ac_func.$ac_objext" | \ 7271 "$ac_func.$ac_objext "* | \ 7272 *" $ac_func.$ac_objext "* ) ;; 7273 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 7274esac 7275 7276fi 7277done 7278 7279 7280 if test $ac_cv_func_mkstemp = no; then 7281 gl_cv_func_mkstemp_limitations=yes 7282 else 7283 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5 7284echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6 7285if test "${gl_cv_func_mkstemp_limitations+set}" = set; then 7286 echo $ECHO_N "(cached) $ECHO_C" >&6 7287else 7288 7289 if test "$cross_compiling" = yes; then 7290 gl_cv_func_mkstemp_limitations=yes 7291 7292else 7293 cat >conftest.$ac_ext <<_ACEOF 7294/* confdefs.h. */ 7295_ACEOF 7296cat confdefs.h >>conftest.$ac_ext 7297cat >>conftest.$ac_ext <<_ACEOF 7298/* end confdefs.h. */ 7299 7300# include <stdlib.h> 7301 int main () 7302 { 7303 int i; 7304 for (i = 0; i < 70; i++) 7305 { 7306 char template[] = "conftestXXXXXX"; 7307 int fd = mkstemp (template); 7308 if (fd == -1) 7309 exit (1); 7310 close (fd); 7311 } 7312 exit (0); 7313 } 7314 7315_ACEOF 7316rm -f conftest$ac_exeext 7317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7318 (eval $ac_link) 2>&5 7319 ac_status=$? 7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7323 (eval $ac_try) 2>&5 7324 ac_status=$? 7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7326 (exit $ac_status); }; }; then 7327 gl_cv_func_mkstemp_limitations=no 7328else 7329 echo "$as_me: program exited with status $ac_status" >&5 7330echo "$as_me: failed program was:" >&5 7331sed 's/^/| /' conftest.$ac_ext >&5 7332 7333( exit $ac_status ) 7334gl_cv_func_mkstemp_limitations=yes 7335fi 7336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7337fi 7338 7339 7340fi 7341echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5 7342echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6 7343 fi 7344 7345 if test $gl_cv_func_mkstemp_limitations = yes; then 7346 case $LIBOBJS in 7347 "mkstemp.$ac_objext" | \ 7348 *" mkstemp.$ac_objext" | \ 7349 "mkstemp.$ac_objext "* | \ 7350 *" mkstemp.$ac_objext "* ) ;; 7351 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;; 7352esac 7353 7354 case $LIBOBJS in 7355 "tempname.$ac_objext" | \ 7356 *" tempname.$ac_objext" | \ 7357 "tempname.$ac_objext "* | \ 7358 *" tempname.$ac_objext "* ) ;; 7359 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;; 7360esac 7361 7362 7363cat >>confdefs.h <<\_ACEOF 7364#define mkstemp rpl_mkstemp 7365_ACEOF 7366 7367 7368 7369 7370 7371 7372 : 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385for ac_header in stdint.h 7386do 7387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7388if eval "test \"\${$as_ac_Header+set}\" = set"; then 7389 echo "$as_me:$LINENO: checking for $ac_header" >&5 7390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7391if eval "test \"\${$as_ac_Header+set}\" = set"; then 7392 echo $ECHO_N "(cached) $ECHO_C" >&6 7393fi 7394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7396else 7397 # Is the header compilable? 7398echo "$as_me:$LINENO: checking $ac_header usability" >&5 7399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7400cat >conftest.$ac_ext <<_ACEOF 7401/* confdefs.h. */ 7402_ACEOF 7403cat confdefs.h >>conftest.$ac_ext 7404cat >>conftest.$ac_ext <<_ACEOF 7405/* end confdefs.h. */ 7406$ac_includes_default 7407#include <$ac_header> 7408_ACEOF 7409rm -f conftest.$ac_objext 7410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7411 (eval $ac_compile) 2>conftest.er1 7412 ac_status=$? 7413 grep -v '^ *+' conftest.er1 >conftest.err 7414 rm -f conftest.er1 7415 cat conftest.err >&5 7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7417 (exit $ac_status); } && 7418 { ac_try='test -z "$ac_c_werror_flag" 7419 || test ! -s conftest.err' 7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7421 (eval $ac_try) 2>&5 7422 ac_status=$? 7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7424 (exit $ac_status); }; } && 7425 { ac_try='test -s conftest.$ac_objext' 7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7427 (eval $ac_try) 2>&5 7428 ac_status=$? 7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7430 (exit $ac_status); }; }; then 7431 ac_header_compiler=yes 7432else 7433 echo "$as_me: failed program was:" >&5 7434sed 's/^/| /' conftest.$ac_ext >&5 7435 7436ac_header_compiler=no 7437fi 7438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7440echo "${ECHO_T}$ac_header_compiler" >&6 7441 7442# Is the header present? 7443echo "$as_me:$LINENO: checking $ac_header presence" >&5 7444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7445cat >conftest.$ac_ext <<_ACEOF 7446/* confdefs.h. */ 7447_ACEOF 7448cat confdefs.h >>conftest.$ac_ext 7449cat >>conftest.$ac_ext <<_ACEOF 7450/* end confdefs.h. */ 7451#include <$ac_header> 7452_ACEOF 7453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7455 ac_status=$? 7456 grep -v '^ *+' conftest.er1 >conftest.err 7457 rm -f conftest.er1 7458 cat conftest.err >&5 7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7460 (exit $ac_status); } >/dev/null; then 7461 if test -s conftest.err; then 7462 ac_cpp_err=$ac_c_preproc_warn_flag 7463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7464 else 7465 ac_cpp_err= 7466 fi 7467else 7468 ac_cpp_err=yes 7469fi 7470if test -z "$ac_cpp_err"; then 7471 ac_header_preproc=yes 7472else 7473 echo "$as_me: failed program was:" >&5 7474sed 's/^/| /' conftest.$ac_ext >&5 7475 7476 ac_header_preproc=no 7477fi 7478rm -f conftest.err conftest.$ac_ext 7479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7480echo "${ECHO_T}$ac_header_preproc" >&6 7481 7482# So? What about this header? 7483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7484 yes:no: ) 7485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7489 ac_header_preproc=yes 7490 ;; 7491 no:yes:* ) 7492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7504 ( 7505 cat <<\_ASBOX 7506## -------------------------------------- ## 7507## Report this to the GNU Texinfo lists. ## 7508## -------------------------------------- ## 7509_ASBOX 7510 ) | 7511 sed "s/^/$as_me: WARNING: /" >&2 7512 ;; 7513esac 7514echo "$as_me:$LINENO: checking for $ac_header" >&5 7515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7516if eval "test \"\${$as_ac_Header+set}\" = set"; then 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 7518else 7519 eval "$as_ac_Header=\$ac_header_preproc" 7520fi 7521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7523 7524fi 7525if test `eval echo '${'$as_ac_Header'}'` = yes; then 7526 cat >>confdefs.h <<_ACEOF 7527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7528_ACEOF 7529 7530fi 7531 7532done 7533 7534 7535 7536for ac_func in __secure_getenv gettimeofday 7537do 7538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7539echo "$as_me:$LINENO: checking for $ac_func" >&5 7540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7541if eval "test \"\${$as_ac_var+set}\" = set"; then 7542 echo $ECHO_N "(cached) $ECHO_C" >&6 7543else 7544 cat >conftest.$ac_ext <<_ACEOF 7545/* confdefs.h. */ 7546_ACEOF 7547cat confdefs.h >>conftest.$ac_ext 7548cat >>conftest.$ac_ext <<_ACEOF 7549/* end confdefs.h. */ 7550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7551 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7552#define $ac_func innocuous_$ac_func 7553 7554/* System header to define __stub macros and hopefully few prototypes, 7555 which can conflict with char $ac_func (); below. 7556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7557 <limits.h> exists even on freestanding compilers. */ 7558 7559#ifdef __STDC__ 7560# include <limits.h> 7561#else 7562# include <assert.h> 7563#endif 7564 7565#undef $ac_func 7566 7567/* Override any gcc2 internal prototype to avoid an error. */ 7568#ifdef __cplusplus 7569extern "C" 7570{ 7571#endif 7572/* We use char because int might match the return type of a gcc2 7573 builtin and then its argument prototype would still apply. */ 7574char $ac_func (); 7575/* The GNU C library defines this for functions which it implements 7576 to always fail with ENOSYS. Some functions are actually named 7577 something starting with __ and the normal name is an alias. */ 7578#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7579choke me 7580#else 7581char (*f) () = $ac_func; 7582#endif 7583#ifdef __cplusplus 7584} 7585#endif 7586 7587int 7588main () 7589{ 7590return f != $ac_func; 7591 ; 7592 return 0; 7593} 7594_ACEOF 7595rm -f conftest.$ac_objext conftest$ac_exeext 7596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7597 (eval $ac_link) 2>conftest.er1 7598 ac_status=$? 7599 grep -v '^ *+' conftest.er1 >conftest.err 7600 rm -f conftest.er1 7601 cat conftest.err >&5 7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7603 (exit $ac_status); } && 7604 { ac_try='test -z "$ac_c_werror_flag" 7605 || test ! -s conftest.err' 7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7607 (eval $ac_try) 2>&5 7608 ac_status=$? 7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7610 (exit $ac_status); }; } && 7611 { ac_try='test -s conftest$ac_exeext' 7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7613 (eval $ac_try) 2>&5 7614 ac_status=$? 7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7616 (exit $ac_status); }; }; then 7617 eval "$as_ac_var=yes" 7618else 7619 echo "$as_me: failed program was:" >&5 7620sed 's/^/| /' conftest.$ac_ext >&5 7621 7622eval "$as_ac_var=no" 7623fi 7624rm -f conftest.err conftest.$ac_objext \ 7625 conftest$ac_exeext conftest.$ac_ext 7626fi 7627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7629if test `eval echo '${'$as_ac_var'}'` = yes; then 7630 cat >>confdefs.h <<_ACEOF 7631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7632_ACEOF 7633 7634fi 7635done 7636 7637 7638 : 7639 7640 7641 7642 7643 7644 7645 7646 fi 7647 7648 7649# For teTeX and TeX Live. 7650echo "$as_me:$LINENO: checking host system type" >&5 7651echo $ECHO_N "checking host system type... $ECHO_C" >&6 7652if test "${ac_cv_host+set}" = set; then 7653 echo $ECHO_N "(cached) $ECHO_C" >&6 7654else 7655 ac_cv_host_alias=$host_alias 7656test -z "$ac_cv_host_alias" && 7657 ac_cv_host_alias=$ac_cv_build_alias 7658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 7659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 7660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 7661 { (exit 1); exit 1; }; } 7662 7663fi 7664echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7665echo "${ECHO_T}$ac_cv_host" >&6 7666host=$ac_cv_host 7667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7670 7671 7672# Check whether --enable-multiplatform or --disable-multiplatform was given. 7673if test "${enable_multiplatform+set}" = set; then 7674 enableval="$enable_multiplatform" 7675 7676fi; 7677# if enable_multiplatform is set in the environment, use that. 7678test "x$enable_multiplatform" = xyes \ 7679&& test "x$bindir" = 'x${exec_prefix}/bin' \ 7680&& bindir="$bindir/$host" 7681 7682# Taken from the example in 7683# http://www.gnu.org/software/automake/manual/html_node/Conditionals.html. 7684# Check whether --enable-install-warnings or --disable-install-warnings was given. 7685if test "${enable_install_warnings+set}" = set; then 7686 enableval="$enable_install_warnings" 7687 case "${enableval}" in 7688 yes) install_warnings=true ;; 7689 no) install_warnings=false ;; 7690 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5 7691echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;} 7692 { (exit 1); exit 1; }; } ;; 7693 esac 7694else 7695 install_warnings=true 7696fi; 7697 7698 7699if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then 7700 INSTALL_WARNINGS_TRUE= 7701 INSTALL_WARNINGS_FALSE='#' 7702else 7703 INSTALL_WARNINGS_TRUE='#' 7704 INSTALL_WARNINGS_FALSE= 7705fi 7706 7707 7708# i18n support. To update to a new version of gettext, run: 7709# gettextize -f -c --intl 7710 7711 7712 MKINSTALLDIRS= 7713 if test -n "$ac_aux_dir"; then 7714 case "$ac_aux_dir" in 7715 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 7716 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 7717 esac 7718 fi 7719 if test -z "$MKINSTALLDIRS"; then 7720 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7721 fi 7722 7723 7724 7725 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7726echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7727 # Check whether --enable-nls or --disable-nls was given. 7728if test "${enable_nls+set}" = set; then 7729 enableval="$enable_nls" 7730 USE_NLS=$enableval 7731else 7732 USE_NLS=yes 7733fi; 7734 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7735echo "${ECHO_T}$USE_NLS" >&6 7736 7737 7738 7739 7740 7741 7742# Prepare PATH_SEPARATOR. 7743# The user is always right. 7744if test "${PATH_SEPARATOR+set}" != set; then 7745 echo "#! /bin/sh" >conf$$.sh 7746 echo "exit 0" >>conf$$.sh 7747 chmod +x conf$$.sh 7748 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7749 PATH_SEPARATOR=';' 7750 else 7751 PATH_SEPARATOR=: 7752 fi 7753 rm -f conf$$.sh 7754fi 7755 7756# Find out how to test for executable files. Don't use a zero-byte file, 7757# as systems may use methods other than mode bits to determine executability. 7758cat >conf$$.file <<_ASEOF 7759#! /bin/sh 7760exit 0 7761_ASEOF 7762chmod +x conf$$.file 7763if test -x conf$$.file >/dev/null 2>&1; then 7764 ac_executable_p="test -x" 7765else 7766 ac_executable_p="test -f" 7767fi 7768rm -f conf$$.file 7769 7770# Extract the first word of "msgfmt", so it can be a program name with args. 7771set dummy msgfmt; ac_word=$2 7772echo "$as_me:$LINENO: checking for $ac_word" >&5 7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7774if test "${ac_cv_path_MSGFMT+set}" = set; then 7775 echo $ECHO_N "(cached) $ECHO_C" >&6 7776else 7777 case "$MSGFMT" in 7778 [\\/]* | ?:[\\/]*) 7779 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7780 ;; 7781 *) 7782 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7783 for ac_dir in $PATH; do 7784 IFS="$ac_save_IFS" 7785 test -z "$ac_dir" && ac_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7788 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 7789 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7790 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7791 break 2 7792 fi 7793 fi 7794 done 7795 done 7796 IFS="$ac_save_IFS" 7797 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7798 ;; 7799esac 7800fi 7801MSGFMT="$ac_cv_path_MSGFMT" 7802if test "$MSGFMT" != ":"; then 7803 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7804echo "${ECHO_T}$MSGFMT" >&6 7805else 7806 echo "$as_me:$LINENO: result: no" >&5 7807echo "${ECHO_T}no" >&6 7808fi 7809 7810 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7811set dummy gmsgfmt; ac_word=$2 7812echo "$as_me:$LINENO: checking for $ac_word" >&5 7813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7814if test "${ac_cv_path_GMSGFMT+set}" = set; then 7815 echo $ECHO_N "(cached) $ECHO_C" >&6 7816else 7817 case $GMSGFMT in 7818 [\\/]* | ?:[\\/]*) 7819 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7820 ;; 7821 *) 7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7823for as_dir in $PATH 7824do 7825 IFS=$as_save_IFS 7826 test -z "$as_dir" && as_dir=. 7827 for ac_exec_ext in '' $ac_executable_extensions; do 7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7829 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7831 break 2 7832 fi 7833done 7834done 7835 7836 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7837 ;; 7838esac 7839fi 7840GMSGFMT=$ac_cv_path_GMSGFMT 7841 7842if test -n "$GMSGFMT"; then 7843 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7844echo "${ECHO_T}$GMSGFMT" >&6 7845else 7846 echo "$as_me:$LINENO: result: no" >&5 7847echo "${ECHO_T}no" >&6 7848fi 7849 7850 7851 7852# Prepare PATH_SEPARATOR. 7853# The user is always right. 7854if test "${PATH_SEPARATOR+set}" != set; then 7855 echo "#! /bin/sh" >conf$$.sh 7856 echo "exit 0" >>conf$$.sh 7857 chmod +x conf$$.sh 7858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7859 PATH_SEPARATOR=';' 7860 else 7861 PATH_SEPARATOR=: 7862 fi 7863 rm -f conf$$.sh 7864fi 7865 7866# Find out how to test for executable files. Don't use a zero-byte file, 7867# as systems may use methods other than mode bits to determine executability. 7868cat >conf$$.file <<_ASEOF 7869#! /bin/sh 7870exit 0 7871_ASEOF 7872chmod +x conf$$.file 7873if test -x conf$$.file >/dev/null 2>&1; then 7874 ac_executable_p="test -x" 7875else 7876 ac_executable_p="test -f" 7877fi 7878rm -f conf$$.file 7879 7880# Extract the first word of "xgettext", so it can be a program name with args. 7881set dummy xgettext; ac_word=$2 7882echo "$as_me:$LINENO: checking for $ac_word" >&5 7883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7884if test "${ac_cv_path_XGETTEXT+set}" = set; then 7885 echo $ECHO_N "(cached) $ECHO_C" >&6 7886else 7887 case "$XGETTEXT" in 7888 [\\/]* | ?:[\\/]*) 7889 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7890 ;; 7891 *) 7892 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7893 for ac_dir in $PATH; do 7894 IFS="$ac_save_IFS" 7895 test -z "$ac_dir" && ac_dir=. 7896 for ac_exec_ext in '' $ac_executable_extensions; do 7897 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7898 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7899 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7900 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7901 break 2 7902 fi 7903 fi 7904 done 7905 done 7906 IFS="$ac_save_IFS" 7907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7908 ;; 7909esac 7910fi 7911XGETTEXT="$ac_cv_path_XGETTEXT" 7912if test "$XGETTEXT" != ":"; then 7913 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7914echo "${ECHO_T}$XGETTEXT" >&6 7915else 7916 echo "$as_me:$LINENO: result: no" >&5 7917echo "${ECHO_T}no" >&6 7918fi 7919 7920 rm -f messages.po 7921 7922 7923# Prepare PATH_SEPARATOR. 7924# The user is always right. 7925if test "${PATH_SEPARATOR+set}" != set; then 7926 echo "#! /bin/sh" >conf$$.sh 7927 echo "exit 0" >>conf$$.sh 7928 chmod +x conf$$.sh 7929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7930 PATH_SEPARATOR=';' 7931 else 7932 PATH_SEPARATOR=: 7933 fi 7934 rm -f conf$$.sh 7935fi 7936 7937# Find out how to test for executable files. Don't use a zero-byte file, 7938# as systems may use methods other than mode bits to determine executability. 7939cat >conf$$.file <<_ASEOF 7940#! /bin/sh 7941exit 0 7942_ASEOF 7943chmod +x conf$$.file 7944if test -x conf$$.file >/dev/null 2>&1; then 7945 ac_executable_p="test -x" 7946else 7947 ac_executable_p="test -f" 7948fi 7949rm -f conf$$.file 7950 7951# Extract the first word of "msgmerge", so it can be a program name with args. 7952set dummy msgmerge; ac_word=$2 7953echo "$as_me:$LINENO: checking for $ac_word" >&5 7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7955if test "${ac_cv_path_MSGMERGE+set}" = set; then 7956 echo $ECHO_N "(cached) $ECHO_C" >&6 7957else 7958 case "$MSGMERGE" in 7959 [\\/]* | ?:[\\/]*) 7960 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7961 ;; 7962 *) 7963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7964 for ac_dir in $PATH; do 7965 IFS="$ac_save_IFS" 7966 test -z "$ac_dir" && ac_dir=. 7967 for ac_exec_ext in '' $ac_executable_extensions; do 7968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7969 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 7970 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7971 break 2 7972 fi 7973 fi 7974 done 7975 done 7976 IFS="$ac_save_IFS" 7977 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 7978 ;; 7979esac 7980fi 7981MSGMERGE="$ac_cv_path_MSGMERGE" 7982if test "$MSGMERGE" != ":"; then 7983 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 7984echo "${ECHO_T}$MSGMERGE" >&6 7985else 7986 echo "$as_me:$LINENO: result: no" >&5 7987echo "${ECHO_T}no" >&6 7988fi 7989 7990 7991 if test "$GMSGFMT" != ":"; then 7992 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 7993 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7994 : ; 7995 else 7996 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 7997 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 7998echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 7999 GMSGFMT=":" 8000 fi 8001 fi 8002 8003 if test "$XGETTEXT" != ":"; then 8004 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 8005 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8006 : ; 8007 else 8008 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 8009echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 8010 XGETTEXT=":" 8011 fi 8012 rm -f messages.po 8013 fi 8014 8015 ac_config_commands="$ac_config_commands default-1" 8016 8017 8018 8019 echo "$as_me:$LINENO: checking for signed" >&5 8020echo $ECHO_N "checking for signed... $ECHO_C" >&6 8021if test "${bh_cv_c_signed+set}" = set; then 8022 echo $ECHO_N "(cached) $ECHO_C" >&6 8023else 8024 cat >conftest.$ac_ext <<_ACEOF 8025/* confdefs.h. */ 8026_ACEOF 8027cat confdefs.h >>conftest.$ac_ext 8028cat >>conftest.$ac_ext <<_ACEOF 8029/* end confdefs.h. */ 8030 8031int 8032main () 8033{ 8034signed char x; 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039rm -f conftest.$ac_objext 8040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8041 (eval $ac_compile) 2>conftest.er1 8042 ac_status=$? 8043 grep -v '^ *+' conftest.er1 >conftest.err 8044 rm -f conftest.er1 8045 cat conftest.err >&5 8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 (exit $ac_status); } && 8048 { ac_try='test -z "$ac_c_werror_flag" 8049 || test ! -s conftest.err' 8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8051 (eval $ac_try) 2>&5 8052 ac_status=$? 8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8054 (exit $ac_status); }; } && 8055 { ac_try='test -s conftest.$ac_objext' 8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8057 (eval $ac_try) 2>&5 8058 ac_status=$? 8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8060 (exit $ac_status); }; }; then 8061 bh_cv_c_signed=yes 8062else 8063 echo "$as_me: failed program was:" >&5 8064sed 's/^/| /' conftest.$ac_ext >&5 8065 8066bh_cv_c_signed=no 8067fi 8068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8069fi 8070echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 8071echo "${ECHO_T}$bh_cv_c_signed" >&6 8072 if test $bh_cv_c_signed = no; then 8073 8074cat >>confdefs.h <<\_ACEOF 8075#define signed 8076_ACEOF 8077 8078 fi 8079 8080echo "$as_me:$LINENO: checking for inline" >&5 8081echo $ECHO_N "checking for inline... $ECHO_C" >&6 8082if test "${ac_cv_c_inline+set}" = set; then 8083 echo $ECHO_N "(cached) $ECHO_C" >&6 8084else 8085 ac_cv_c_inline=no 8086for ac_kw in inline __inline__ __inline; do 8087 cat >conftest.$ac_ext <<_ACEOF 8088/* confdefs.h. */ 8089_ACEOF 8090cat confdefs.h >>conftest.$ac_ext 8091cat >>conftest.$ac_ext <<_ACEOF 8092/* end confdefs.h. */ 8093#ifndef __cplusplus 8094typedef int foo_t; 8095static $ac_kw foo_t static_foo () {return 0; } 8096$ac_kw foo_t foo () {return 0; } 8097#endif 8098 8099_ACEOF 8100rm -f conftest.$ac_objext 8101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8102 (eval $ac_compile) 2>conftest.er1 8103 ac_status=$? 8104 grep -v '^ *+' conftest.er1 >conftest.err 8105 rm -f conftest.er1 8106 cat conftest.err >&5 8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 (exit $ac_status); } && 8109 { ac_try='test -z "$ac_c_werror_flag" 8110 || test ! -s conftest.err' 8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8112 (eval $ac_try) 2>&5 8113 ac_status=$? 8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8115 (exit $ac_status); }; } && 8116 { ac_try='test -s conftest.$ac_objext' 8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8118 (eval $ac_try) 2>&5 8119 ac_status=$? 8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8121 (exit $ac_status); }; }; then 8122 ac_cv_c_inline=$ac_kw; break 8123else 8124 echo "$as_me: failed program was:" >&5 8125sed 's/^/| /' conftest.$ac_ext >&5 8126 8127fi 8128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8129done 8130 8131fi 8132echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8133echo "${ECHO_T}$ac_cv_c_inline" >&6 8134 8135 8136case $ac_cv_c_inline in 8137 inline | yes) ;; 8138 *) 8139 case $ac_cv_c_inline in 8140 no) ac_val=;; 8141 *) ac_val=$ac_cv_c_inline;; 8142 esac 8143 cat >>confdefs.h <<_ACEOF 8144#ifndef __cplusplus 8145#define inline $ac_val 8146#endif 8147_ACEOF 8148 ;; 8149esac 8150 8151echo "$as_me:$LINENO: checking for size_t" >&5 8152echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8153if test "${ac_cv_type_size_t+set}" = set; then 8154 echo $ECHO_N "(cached) $ECHO_C" >&6 8155else 8156 cat >conftest.$ac_ext <<_ACEOF 8157/* confdefs.h. */ 8158_ACEOF 8159cat confdefs.h >>conftest.$ac_ext 8160cat >>conftest.$ac_ext <<_ACEOF 8161/* end confdefs.h. */ 8162$ac_includes_default 8163int 8164main () 8165{ 8166if ((size_t *) 0) 8167 return 0; 8168if (sizeof (size_t)) 8169 return 0; 8170 ; 8171 return 0; 8172} 8173_ACEOF 8174rm -f conftest.$ac_objext 8175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8176 (eval $ac_compile) 2>conftest.er1 8177 ac_status=$? 8178 grep -v '^ *+' conftest.er1 >conftest.err 8179 rm -f conftest.er1 8180 cat conftest.err >&5 8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 (exit $ac_status); } && 8183 { ac_try='test -z "$ac_c_werror_flag" 8184 || test ! -s conftest.err' 8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8186 (eval $ac_try) 2>&5 8187 ac_status=$? 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 (exit $ac_status); }; } && 8190 { ac_try='test -s conftest.$ac_objext' 8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8192 (eval $ac_try) 2>&5 8193 ac_status=$? 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 (exit $ac_status); }; }; then 8196 ac_cv_type_size_t=yes 8197else 8198 echo "$as_me: failed program was:" >&5 8199sed 's/^/| /' conftest.$ac_ext >&5 8200 8201ac_cv_type_size_t=no 8202fi 8203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8204fi 8205echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8206echo "${ECHO_T}$ac_cv_type_size_t" >&6 8207if test $ac_cv_type_size_t = yes; then 8208 : 8209else 8210 8211cat >>confdefs.h <<_ACEOF 8212#define size_t unsigned 8213_ACEOF 8214 8215fi 8216 8217 8218 echo "$as_me:$LINENO: checking for long long" >&5 8219echo $ECHO_N "checking for long long... $ECHO_C" >&6 8220if test "${ac_cv_type_long_long+set}" = set; then 8221 echo $ECHO_N "(cached) $ECHO_C" >&6 8222else 8223 cat >conftest.$ac_ext <<_ACEOF 8224/* confdefs.h. */ 8225_ACEOF 8226cat confdefs.h >>conftest.$ac_ext 8227cat >>conftest.$ac_ext <<_ACEOF 8228/* end confdefs.h. */ 8229long long ll = 1LL; int i = 63; 8230int 8231main () 8232{ 8233long long llmax = (long long) -1; 8234 return ll << i | ll >> i | llmax / ll | llmax % ll; 8235 ; 8236 return 0; 8237} 8238_ACEOF 8239rm -f conftest.$ac_objext conftest$ac_exeext 8240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8241 (eval $ac_link) 2>conftest.er1 8242 ac_status=$? 8243 grep -v '^ *+' conftest.er1 >conftest.err 8244 rm -f conftest.er1 8245 cat conftest.err >&5 8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8247 (exit $ac_status); } && 8248 { ac_try='test -z "$ac_c_werror_flag" 8249 || test ! -s conftest.err' 8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8251 (eval $ac_try) 2>&5 8252 ac_status=$? 8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8254 (exit $ac_status); }; } && 8255 { ac_try='test -s conftest$ac_exeext' 8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8257 (eval $ac_try) 2>&5 8258 ac_status=$? 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 (exit $ac_status); }; }; then 8261 ac_cv_type_long_long=yes 8262else 8263 echo "$as_me: failed program was:" >&5 8264sed 's/^/| /' conftest.$ac_ext >&5 8265 8266ac_cv_type_long_long=no 8267fi 8268rm -f conftest.err conftest.$ac_objext \ 8269 conftest$ac_exeext conftest.$ac_ext 8270fi 8271echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8272echo "${ECHO_T}$ac_cv_type_long_long" >&6 8273 if test $ac_cv_type_long_long = yes; then 8274 8275cat >>confdefs.h <<\_ACEOF 8276#define HAVE_LONG_LONG 1 8277_ACEOF 8278 8279 fi 8280 8281 8282 echo "$as_me:$LINENO: checking for long double" >&5 8283echo $ECHO_N "checking for long double... $ECHO_C" >&6 8284if test "${gt_cv_c_long_double+set}" = set; then 8285 echo $ECHO_N "(cached) $ECHO_C" >&6 8286else 8287 if test "$GCC" = yes; then 8288 gt_cv_c_long_double=yes 8289 else 8290 cat >conftest.$ac_ext <<_ACEOF 8291/* confdefs.h. */ 8292_ACEOF 8293cat confdefs.h >>conftest.$ac_ext 8294cat >>conftest.$ac_ext <<_ACEOF 8295/* end confdefs.h. */ 8296 8297 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 8298 long double foo = 0.0; 8299 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8300 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 8301 8302int 8303main () 8304{ 8305 8306 ; 8307 return 0; 8308} 8309_ACEOF 8310rm -f conftest.$ac_objext 8311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8312 (eval $ac_compile) 2>conftest.er1 8313 ac_status=$? 8314 grep -v '^ *+' conftest.er1 >conftest.err 8315 rm -f conftest.er1 8316 cat conftest.err >&5 8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8318 (exit $ac_status); } && 8319 { ac_try='test -z "$ac_c_werror_flag" 8320 || test ! -s conftest.err' 8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8322 (eval $ac_try) 2>&5 8323 ac_status=$? 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8325 (exit $ac_status); }; } && 8326 { ac_try='test -s conftest.$ac_objext' 8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8328 (eval $ac_try) 2>&5 8329 ac_status=$? 8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8331 (exit $ac_status); }; }; then 8332 gt_cv_c_long_double=yes 8333else 8334 echo "$as_me: failed program was:" >&5 8335sed 's/^/| /' conftest.$ac_ext >&5 8336 8337gt_cv_c_long_double=no 8338fi 8339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8340 fi 8341fi 8342echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 8343echo "${ECHO_T}$gt_cv_c_long_double" >&6 8344 if test $gt_cv_c_long_double = yes; then 8345 8346cat >>confdefs.h <<\_ACEOF 8347#define HAVE_LONG_DOUBLE 1 8348_ACEOF 8349 8350 fi 8351 8352 8353 echo "$as_me:$LINENO: checking for wchar_t" >&5 8354echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 8355if test "${gt_cv_c_wchar_t+set}" = set; then 8356 echo $ECHO_N "(cached) $ECHO_C" >&6 8357else 8358 cat >conftest.$ac_ext <<_ACEOF 8359/* confdefs.h. */ 8360_ACEOF 8361cat confdefs.h >>conftest.$ac_ext 8362cat >>conftest.$ac_ext <<_ACEOF 8363/* end confdefs.h. */ 8364#include <stddef.h> 8365 wchar_t foo = (wchar_t)'\0'; 8366int 8367main () 8368{ 8369 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374rm -f conftest.$ac_objext 8375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8376 (eval $ac_compile) 2>conftest.er1 8377 ac_status=$? 8378 grep -v '^ *+' conftest.er1 >conftest.err 8379 rm -f conftest.er1 8380 cat conftest.err >&5 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8382 (exit $ac_status); } && 8383 { ac_try='test -z "$ac_c_werror_flag" 8384 || test ! -s conftest.err' 8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8386 (eval $ac_try) 2>&5 8387 ac_status=$? 8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8389 (exit $ac_status); }; } && 8390 { ac_try='test -s conftest.$ac_objext' 8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8392 (eval $ac_try) 2>&5 8393 ac_status=$? 8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8395 (exit $ac_status); }; }; then 8396 gt_cv_c_wchar_t=yes 8397else 8398 echo "$as_me: failed program was:" >&5 8399sed 's/^/| /' conftest.$ac_ext >&5 8400 8401gt_cv_c_wchar_t=no 8402fi 8403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8404fi 8405echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 8406echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 8407 if test $gt_cv_c_wchar_t = yes; then 8408 8409cat >>confdefs.h <<\_ACEOF 8410#define HAVE_WCHAR_T 1 8411_ACEOF 8412 8413 fi 8414 8415 8416 echo "$as_me:$LINENO: checking for wint_t" >&5 8417echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 8418if test "${gt_cv_c_wint_t+set}" = set; then 8419 echo $ECHO_N "(cached) $ECHO_C" >&6 8420else 8421 cat >conftest.$ac_ext <<_ACEOF 8422/* confdefs.h. */ 8423_ACEOF 8424cat confdefs.h >>conftest.$ac_ext 8425cat >>conftest.$ac_ext <<_ACEOF 8426/* end confdefs.h. */ 8427#include <wchar.h> 8428 wint_t foo = (wchar_t)'\0'; 8429int 8430main () 8431{ 8432 8433 ; 8434 return 0; 8435} 8436_ACEOF 8437rm -f conftest.$ac_objext 8438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8439 (eval $ac_compile) 2>conftest.er1 8440 ac_status=$? 8441 grep -v '^ *+' conftest.er1 >conftest.err 8442 rm -f conftest.er1 8443 cat conftest.err >&5 8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8445 (exit $ac_status); } && 8446 { ac_try='test -z "$ac_c_werror_flag" 8447 || test ! -s conftest.err' 8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8449 (eval $ac_try) 2>&5 8450 ac_status=$? 8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8452 (exit $ac_status); }; } && 8453 { ac_try='test -s conftest.$ac_objext' 8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8455 (eval $ac_try) 2>&5 8456 ac_status=$? 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 (exit $ac_status); }; }; then 8459 gt_cv_c_wint_t=yes 8460else 8461 echo "$as_me: failed program was:" >&5 8462sed 's/^/| /' conftest.$ac_ext >&5 8463 8464gt_cv_c_wint_t=no 8465fi 8466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8467fi 8468echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 8469echo "${ECHO_T}$gt_cv_c_wint_t" >&6 8470 if test $gt_cv_c_wint_t = yes; then 8471 8472cat >>confdefs.h <<\_ACEOF 8473#define HAVE_WINT_T 1 8474_ACEOF 8475 8476 fi 8477 8478 8479 8480 8481 echo "$as_me:$LINENO: checking for intmax_t" >&5 8482echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 8483if test "${gt_cv_c_intmax_t+set}" = set; then 8484 echo $ECHO_N "(cached) $ECHO_C" >&6 8485else 8486 cat >conftest.$ac_ext <<_ACEOF 8487/* confdefs.h. */ 8488_ACEOF 8489cat confdefs.h >>conftest.$ac_ext 8490cat >>conftest.$ac_ext <<_ACEOF 8491/* end confdefs.h. */ 8492 8493#include <stddef.h> 8494#include <stdlib.h> 8495#if HAVE_STDINT_H_WITH_UINTMAX 8496#include <stdint.h> 8497#endif 8498#if HAVE_INTTYPES_H_WITH_UINTMAX 8499#include <inttypes.h> 8500#endif 8501 8502int 8503main () 8504{ 8505intmax_t x = -1; 8506 ; 8507 return 0; 8508} 8509_ACEOF 8510rm -f conftest.$ac_objext 8511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8512 (eval $ac_compile) 2>conftest.er1 8513 ac_status=$? 8514 grep -v '^ *+' conftest.er1 >conftest.err 8515 rm -f conftest.er1 8516 cat conftest.err >&5 8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8518 (exit $ac_status); } && 8519 { ac_try='test -z "$ac_c_werror_flag" 8520 || test ! -s conftest.err' 8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8522 (eval $ac_try) 2>&5 8523 ac_status=$? 8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8525 (exit $ac_status); }; } && 8526 { ac_try='test -s conftest.$ac_objext' 8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8528 (eval $ac_try) 2>&5 8529 ac_status=$? 8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 (exit $ac_status); }; }; then 8532 gt_cv_c_intmax_t=yes 8533else 8534 echo "$as_me: failed program was:" >&5 8535sed 's/^/| /' conftest.$ac_ext >&5 8536 8537gt_cv_c_intmax_t=no 8538fi 8539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8540fi 8541echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 8542echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 8543 if test $gt_cv_c_intmax_t = yes; then 8544 8545cat >>confdefs.h <<\_ACEOF 8546#define HAVE_INTMAX_T 1 8547_ACEOF 8548 8549 fi 8550 8551 8552 8553 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 8554echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 8555if test "${gt_cv_func_printf_posix+set}" = set; then 8556 echo $ECHO_N "(cached) $ECHO_C" >&6 8557else 8558 8559 if test "$cross_compiling" = yes; then 8560 8561 cat >conftest.$ac_ext <<_ACEOF 8562/* confdefs.h. */ 8563_ACEOF 8564cat confdefs.h >>conftest.$ac_ext 8565cat >>conftest.$ac_ext <<_ACEOF 8566/* end confdefs.h. */ 8567 8568#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 8569 notposix 8570#endif 8571 8572_ACEOF 8573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8574 $EGREP "notposix" >/dev/null 2>&1; then 8575 gt_cv_func_printf_posix="guessing no" 8576else 8577 gt_cv_func_printf_posix="guessing yes" 8578fi 8579rm -f conftest* 8580 8581 8582else 8583 cat >conftest.$ac_ext <<_ACEOF 8584/* confdefs.h. */ 8585_ACEOF 8586cat confdefs.h >>conftest.$ac_ext 8587cat >>conftest.$ac_ext <<_ACEOF 8588/* end confdefs.h. */ 8589 8590#include <stdio.h> 8591#include <string.h> 8592/* The string "%2$d %1$d", with dollar characters protected from the shell's 8593 dollar expansion (possibly an autoconf bug). */ 8594static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 8595static char buf[100]; 8596int main () 8597{ 8598 sprintf (buf, format, 33, 55); 8599 return (strcmp (buf, "55 33") != 0); 8600} 8601_ACEOF 8602rm -f conftest$ac_exeext 8603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8604 (eval $ac_link) 2>&5 8605 ac_status=$? 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8609 (eval $ac_try) 2>&5 8610 ac_status=$? 8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8612 (exit $ac_status); }; }; then 8613 gt_cv_func_printf_posix=yes 8614else 8615 echo "$as_me: program exited with status $ac_status" >&5 8616echo "$as_me: failed program was:" >&5 8617sed 's/^/| /' conftest.$ac_ext >&5 8618 8619( exit $ac_status ) 8620gt_cv_func_printf_posix=no 8621fi 8622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8623fi 8624 8625fi 8626echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 8627echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 8628 case $gt_cv_func_printf_posix in 8629 *yes) 8630 8631cat >>confdefs.h <<\_ACEOF 8632#define HAVE_POSIX_PRINTF 1 8633_ACEOF 8634 8635 ;; 8636 esac 8637 8638 8639 8640for ac_header in stdlib.h unistd.h 8641do 8642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8643if eval "test \"\${$as_ac_Header+set}\" = set"; then 8644 echo "$as_me:$LINENO: checking for $ac_header" >&5 8645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8646if eval "test \"\${$as_ac_Header+set}\" = set"; then 8647 echo $ECHO_N "(cached) $ECHO_C" >&6 8648fi 8649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8651else 8652 # Is the header compilable? 8653echo "$as_me:$LINENO: checking $ac_header usability" >&5 8654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8655cat >conftest.$ac_ext <<_ACEOF 8656/* confdefs.h. */ 8657_ACEOF 8658cat confdefs.h >>conftest.$ac_ext 8659cat >>conftest.$ac_ext <<_ACEOF 8660/* end confdefs.h. */ 8661$ac_includes_default 8662#include <$ac_header> 8663_ACEOF 8664rm -f conftest.$ac_objext 8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8666 (eval $ac_compile) 2>conftest.er1 8667 ac_status=$? 8668 grep -v '^ *+' conftest.er1 >conftest.err 8669 rm -f conftest.er1 8670 cat conftest.err >&5 8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8672 (exit $ac_status); } && 8673 { ac_try='test -z "$ac_c_werror_flag" 8674 || test ! -s conftest.err' 8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8676 (eval $ac_try) 2>&5 8677 ac_status=$? 8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8679 (exit $ac_status); }; } && 8680 { ac_try='test -s conftest.$ac_objext' 8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8682 (eval $ac_try) 2>&5 8683 ac_status=$? 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); }; }; then 8686 ac_header_compiler=yes 8687else 8688 echo "$as_me: failed program was:" >&5 8689sed 's/^/| /' conftest.$ac_ext >&5 8690 8691ac_header_compiler=no 8692fi 8693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8695echo "${ECHO_T}$ac_header_compiler" >&6 8696 8697# Is the header present? 8698echo "$as_me:$LINENO: checking $ac_header presence" >&5 8699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8700cat >conftest.$ac_ext <<_ACEOF 8701/* confdefs.h. */ 8702_ACEOF 8703cat confdefs.h >>conftest.$ac_ext 8704cat >>conftest.$ac_ext <<_ACEOF 8705/* end confdefs.h. */ 8706#include <$ac_header> 8707_ACEOF 8708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8710 ac_status=$? 8711 grep -v '^ *+' conftest.er1 >conftest.err 8712 rm -f conftest.er1 8713 cat conftest.err >&5 8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8715 (exit $ac_status); } >/dev/null; then 8716 if test -s conftest.err; then 8717 ac_cpp_err=$ac_c_preproc_warn_flag 8718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8719 else 8720 ac_cpp_err= 8721 fi 8722else 8723 ac_cpp_err=yes 8724fi 8725if test -z "$ac_cpp_err"; then 8726 ac_header_preproc=yes 8727else 8728 echo "$as_me: failed program was:" >&5 8729sed 's/^/| /' conftest.$ac_ext >&5 8730 8731 ac_header_preproc=no 8732fi 8733rm -f conftest.err conftest.$ac_ext 8734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8735echo "${ECHO_T}$ac_header_preproc" >&6 8736 8737# So? What about this header? 8738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8739 yes:no: ) 8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8744 ac_header_preproc=yes 8745 ;; 8746 no:yes:* ) 8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8759 ( 8760 cat <<\_ASBOX 8761## -------------------------------------- ## 8762## Report this to the GNU Texinfo lists. ## 8763## -------------------------------------- ## 8764_ASBOX 8765 ) | 8766 sed "s/^/$as_me: WARNING: /" >&2 8767 ;; 8768esac 8769echo "$as_me:$LINENO: checking for $ac_header" >&5 8770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8771if eval "test \"\${$as_ac_Header+set}\" = set"; then 8772 echo $ECHO_N "(cached) $ECHO_C" >&6 8773else 8774 eval "$as_ac_Header=\$ac_header_preproc" 8775fi 8776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8778 8779fi 8780if test `eval echo '${'$as_ac_Header'}'` = yes; then 8781 cat >>confdefs.h <<_ACEOF 8782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8783_ACEOF 8784 8785fi 8786 8787done 8788 8789 8790for ac_func in getpagesize 8791do 8792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8793echo "$as_me:$LINENO: checking for $ac_func" >&5 8794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8795if eval "test \"\${$as_ac_var+set}\" = set"; then 8796 echo $ECHO_N "(cached) $ECHO_C" >&6 8797else 8798 cat >conftest.$ac_ext <<_ACEOF 8799/* confdefs.h. */ 8800_ACEOF 8801cat confdefs.h >>conftest.$ac_ext 8802cat >>conftest.$ac_ext <<_ACEOF 8803/* end confdefs.h. */ 8804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8806#define $ac_func innocuous_$ac_func 8807 8808/* System header to define __stub macros and hopefully few prototypes, 8809 which can conflict with char $ac_func (); below. 8810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8811 <limits.h> exists even on freestanding compilers. */ 8812 8813#ifdef __STDC__ 8814# include <limits.h> 8815#else 8816# include <assert.h> 8817#endif 8818 8819#undef $ac_func 8820 8821/* Override any gcc2 internal prototype to avoid an error. */ 8822#ifdef __cplusplus 8823extern "C" 8824{ 8825#endif 8826/* We use char because int might match the return type of a gcc2 8827 builtin and then its argument prototype would still apply. */ 8828char $ac_func (); 8829/* The GNU C library defines this for functions which it implements 8830 to always fail with ENOSYS. Some functions are actually named 8831 something starting with __ and the normal name is an alias. */ 8832#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8833choke me 8834#else 8835char (*f) () = $ac_func; 8836#endif 8837#ifdef __cplusplus 8838} 8839#endif 8840 8841int 8842main () 8843{ 8844return f != $ac_func; 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849rm -f conftest.$ac_objext conftest$ac_exeext 8850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8851 (eval $ac_link) 2>conftest.er1 8852 ac_status=$? 8853 grep -v '^ *+' conftest.er1 >conftest.err 8854 rm -f conftest.er1 8855 cat conftest.err >&5 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } && 8858 { ac_try='test -z "$ac_c_werror_flag" 8859 || test ! -s conftest.err' 8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8861 (eval $ac_try) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); }; } && 8865 { ac_try='test -s conftest$ac_exeext' 8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8867 (eval $ac_try) 2>&5 8868 ac_status=$? 8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8870 (exit $ac_status); }; }; then 8871 eval "$as_ac_var=yes" 8872else 8873 echo "$as_me: failed program was:" >&5 8874sed 's/^/| /' conftest.$ac_ext >&5 8875 8876eval "$as_ac_var=no" 8877fi 8878rm -f conftest.err conftest.$ac_objext \ 8879 conftest$ac_exeext conftest.$ac_ext 8880fi 8881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8883if test `eval echo '${'$as_ac_var'}'` = yes; then 8884 cat >>confdefs.h <<_ACEOF 8885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8886_ACEOF 8887 8888fi 8889done 8890 8891echo "$as_me:$LINENO: checking for working mmap" >&5 8892echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 8893if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 8894 echo $ECHO_N "(cached) $ECHO_C" >&6 8895else 8896 if test "$cross_compiling" = yes; then 8897 ac_cv_func_mmap_fixed_mapped=no 8898else 8899 cat >conftest.$ac_ext <<_ACEOF 8900/* confdefs.h. */ 8901_ACEOF 8902cat confdefs.h >>conftest.$ac_ext 8903cat >>conftest.$ac_ext <<_ACEOF 8904/* end confdefs.h. */ 8905$ac_includes_default 8906/* malloc might have been renamed as rpl_malloc. */ 8907#undef malloc 8908 8909/* Thanks to Mike Haertel and Jim Avera for this test. 8910 Here is a matrix of mmap possibilities: 8911 mmap private not fixed 8912 mmap private fixed at somewhere currently unmapped 8913 mmap private fixed at somewhere already mapped 8914 mmap shared not fixed 8915 mmap shared fixed at somewhere currently unmapped 8916 mmap shared fixed at somewhere already mapped 8917 For private mappings, we should verify that changes cannot be read() 8918 back from the file, nor mmap's back from the file at a different 8919 address. (There have been systems where private was not correctly 8920 implemented like the infamous i386 svr4.0, and systems where the 8921 VM page cache was not coherent with the file system buffer cache 8922 like early versions of FreeBSD and possibly contemporary NetBSD.) 8923 For shared mappings, we should conversely verify that changes get 8924 propagated back to all the places they're supposed to be. 8925 8926 Grep wants private fixed already mapped. 8927 The main things grep needs to know about mmap are: 8928 * does it exist and is it safe to write into the mmap'd area 8929 * how to use it (BSD variants) */ 8930 8931#include <fcntl.h> 8932#include <sys/mman.h> 8933 8934#if !STDC_HEADERS && !HAVE_STDLIB_H 8935char *malloc (); 8936#endif 8937 8938/* This mess was copied from the GNU getpagesize.h. */ 8939#if !HAVE_GETPAGESIZE 8940/* Assume that all systems that can run configure have sys/param.h. */ 8941# if !HAVE_SYS_PARAM_H 8942# define HAVE_SYS_PARAM_H 1 8943# endif 8944 8945# ifdef _SC_PAGESIZE 8946# define getpagesize() sysconf(_SC_PAGESIZE) 8947# else /* no _SC_PAGESIZE */ 8948# if HAVE_SYS_PARAM_H 8949# include <sys/param.h> 8950# ifdef EXEC_PAGESIZE 8951# define getpagesize() EXEC_PAGESIZE 8952# else /* no EXEC_PAGESIZE */ 8953# ifdef NBPG 8954# define getpagesize() NBPG * CLSIZE 8955# ifndef CLSIZE 8956# define CLSIZE 1 8957# endif /* no CLSIZE */ 8958# else /* no NBPG */ 8959# ifdef NBPC 8960# define getpagesize() NBPC 8961# else /* no NBPC */ 8962# ifdef PAGESIZE 8963# define getpagesize() PAGESIZE 8964# endif /* PAGESIZE */ 8965# endif /* no NBPC */ 8966# endif /* no NBPG */ 8967# endif /* no EXEC_PAGESIZE */ 8968# else /* no HAVE_SYS_PARAM_H */ 8969# define getpagesize() 8192 /* punt totally */ 8970# endif /* no HAVE_SYS_PARAM_H */ 8971# endif /* no _SC_PAGESIZE */ 8972 8973#endif /* no HAVE_GETPAGESIZE */ 8974 8975int 8976main () 8977{ 8978 char *data, *data2, *data3; 8979 int i, pagesize; 8980 int fd; 8981 8982 pagesize = getpagesize (); 8983 8984 /* First, make a file with some known garbage in it. */ 8985 data = (char *) malloc (pagesize); 8986 if (!data) 8987 exit (1); 8988 for (i = 0; i < pagesize; ++i) 8989 *(data + i) = rand (); 8990 umask (0); 8991 fd = creat ("conftest.mmap", 0600); 8992 if (fd < 0) 8993 exit (1); 8994 if (write (fd, data, pagesize) != pagesize) 8995 exit (1); 8996 close (fd); 8997 8998 /* Next, try to mmap the file at a fixed address which already has 8999 something else allocated at it. If we can, also make sure that 9000 we see the same garbage. */ 9001 fd = open ("conftest.mmap", O_RDWR); 9002 if (fd < 0) 9003 exit (1); 9004 data2 = (char *) malloc (2 * pagesize); 9005 if (!data2) 9006 exit (1); 9007 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 9008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9009 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9010 exit (1); 9011 for (i = 0; i < pagesize; ++i) 9012 if (*(data + i) != *(data2 + i)) 9013 exit (1); 9014 9015 /* Finally, make sure that changes to the mapped area do not 9016 percolate back to the file as seen by read(). (This is a bug on 9017 some variants of i386 svr4.0.) */ 9018 for (i = 0; i < pagesize; ++i) 9019 *(data2 + i) = *(data2 + i) + 1; 9020 data3 = (char *) malloc (pagesize); 9021 if (!data3) 9022 exit (1); 9023 if (read (fd, data3, pagesize) != pagesize) 9024 exit (1); 9025 for (i = 0; i < pagesize; ++i) 9026 if (*(data + i) != *(data3 + i)) 9027 exit (1); 9028 close (fd); 9029 exit (0); 9030} 9031_ACEOF 9032rm -f conftest$ac_exeext 9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9034 (eval $ac_link) 2>&5 9035 ac_status=$? 9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9039 (eval $ac_try) 2>&5 9040 ac_status=$? 9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9042 (exit $ac_status); }; }; then 9043 ac_cv_func_mmap_fixed_mapped=yes 9044else 9045 echo "$as_me: program exited with status $ac_status" >&5 9046echo "$as_me: failed program was:" >&5 9047sed 's/^/| /' conftest.$ac_ext >&5 9048 9049( exit $ac_status ) 9050ac_cv_func_mmap_fixed_mapped=no 9051fi 9052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9053fi 9054fi 9055echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 9056echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 9057if test $ac_cv_func_mmap_fixed_mapped = yes; then 9058 9059cat >>confdefs.h <<\_ACEOF 9060#define HAVE_MMAP 1 9061_ACEOF 9062 9063fi 9064rm -f conftest.mmap 9065 9066 9067 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 9068echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 9069if test "${ac_cv_gnu_library_2_1+set}" = set; then 9070 echo $ECHO_N "(cached) $ECHO_C" >&6 9071else 9072 cat >conftest.$ac_ext <<_ACEOF 9073/* confdefs.h. */ 9074_ACEOF 9075cat confdefs.h >>conftest.$ac_ext 9076cat >>conftest.$ac_ext <<_ACEOF 9077/* end confdefs.h. */ 9078 9079#include <features.h> 9080#ifdef __GNU_LIBRARY__ 9081 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9082 Lucky GNU user 9083 #endif 9084#endif 9085 9086_ACEOF 9087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9088 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 9089 ac_cv_gnu_library_2_1=yes 9090else 9091 ac_cv_gnu_library_2_1=no 9092fi 9093rm -f conftest* 9094 9095 9096 9097fi 9098echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 9099echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 9100 9101 GLIBC21="$ac_cv_gnu_library_2_1" 9102 9103 9104 9105 9106 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 9107echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 9108if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 9109 echo $ECHO_N "(cached) $ECHO_C" >&6 9110else 9111 9112 if test "$cross_compiling" = yes; then 9113 9114 # Guess based on the CPU. 9115 case "$host_cpu" in 9116 alpha* | i3456786 | m68k | s390*) 9117 gt_cv_int_divbyzero_sigfpe="guessing yes";; 9118 *) 9119 gt_cv_int_divbyzero_sigfpe="guessing no";; 9120 esac 9121 9122else 9123 cat >conftest.$ac_ext <<_ACEOF 9124/* confdefs.h. */ 9125_ACEOF 9126cat confdefs.h >>conftest.$ac_ext 9127cat >>conftest.$ac_ext <<_ACEOF 9128/* end confdefs.h. */ 9129 9130#include <stdlib.h> 9131#include <signal.h> 9132 9133static void 9134#ifdef __cplusplus 9135sigfpe_handler (int sig) 9136#else 9137sigfpe_handler (sig) int sig; 9138#endif 9139{ 9140 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9141 exit (sig != SIGFPE); 9142} 9143 9144int x = 1; 9145int y = 0; 9146int z; 9147int nan; 9148 9149int main () 9150{ 9151 signal (SIGFPE, sigfpe_handler); 9152/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9153#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9154 signal (SIGTRAP, sigfpe_handler); 9155#endif 9156/* Linux/SPARC yields signal SIGILL. */ 9157#if defined (__sparc__) && defined (__linux__) 9158 signal (SIGILL, sigfpe_handler); 9159#endif 9160 9161 z = x / y; 9162 nan = y / y; 9163 exit (1); 9164} 9165 9166_ACEOF 9167rm -f conftest$ac_exeext 9168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9169 (eval $ac_link) 2>&5 9170 ac_status=$? 9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9174 (eval $ac_try) 2>&5 9175 ac_status=$? 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9177 (exit $ac_status); }; }; then 9178 gt_cv_int_divbyzero_sigfpe=yes 9179else 9180 echo "$as_me: program exited with status $ac_status" >&5 9181echo "$as_me: failed program was:" >&5 9182sed 's/^/| /' conftest.$ac_ext >&5 9183 9184( exit $ac_status ) 9185gt_cv_int_divbyzero_sigfpe=no 9186fi 9187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9188fi 9189 9190fi 9191echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 9192echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 9193 case "$gt_cv_int_divbyzero_sigfpe" in 9194 *yes) value=1;; 9195 *) value=0;; 9196 esac 9197 9198cat >>confdefs.h <<_ACEOF 9199#define INTDIV0_RAISES_SIGFPE $value 9200_ACEOF 9201 9202 9203 9204 echo "$as_me:$LINENO: checking for inttypes.h" >&5 9205echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9206if test "${gt_cv_header_inttypes_h+set}" = set; then 9207 echo $ECHO_N "(cached) $ECHO_C" >&6 9208else 9209 9210 cat >conftest.$ac_ext <<_ACEOF 9211/* confdefs.h. */ 9212_ACEOF 9213cat confdefs.h >>conftest.$ac_ext 9214cat >>conftest.$ac_ext <<_ACEOF 9215/* end confdefs.h. */ 9216#include <sys/types.h> 9217#include <inttypes.h> 9218int 9219main () 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226rm -f conftest.$ac_objext 9227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9228 (eval $ac_compile) 2>conftest.er1 9229 ac_status=$? 9230 grep -v '^ *+' conftest.er1 >conftest.err 9231 rm -f conftest.er1 9232 cat conftest.err >&5 9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9234 (exit $ac_status); } && 9235 { ac_try='test -z "$ac_c_werror_flag" 9236 || test ! -s conftest.err' 9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9238 (eval $ac_try) 2>&5 9239 ac_status=$? 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 (exit $ac_status); }; } && 9242 { ac_try='test -s conftest.$ac_objext' 9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9244 (eval $ac_try) 2>&5 9245 ac_status=$? 9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9247 (exit $ac_status); }; }; then 9248 gt_cv_header_inttypes_h=yes 9249else 9250 echo "$as_me: failed program was:" >&5 9251sed 's/^/| /' conftest.$ac_ext >&5 9252 9253gt_cv_header_inttypes_h=no 9254fi 9255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9256 9257fi 9258echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 9259echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 9260 if test $gt_cv_header_inttypes_h = yes; then 9261 9262cat >>confdefs.h <<_ACEOF 9263#define HAVE_INTTYPES_H 1 9264_ACEOF 9265 9266 fi 9267 9268 9269 9270 if test $gt_cv_header_inttypes_h = yes; then 9271 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 9272echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 9273if test "${gt_cv_inttypes_pri_broken+set}" = set; then 9274 echo $ECHO_N "(cached) $ECHO_C" >&6 9275else 9276 9277 cat >conftest.$ac_ext <<_ACEOF 9278/* confdefs.h. */ 9279_ACEOF 9280cat confdefs.h >>conftest.$ac_ext 9281cat >>conftest.$ac_ext <<_ACEOF 9282/* end confdefs.h. */ 9283#include <inttypes.h> 9284#ifdef PRId32 9285char *p = PRId32; 9286#endif 9287 9288int 9289main () 9290{ 9291 9292 ; 9293 return 0; 9294} 9295_ACEOF 9296rm -f conftest.$ac_objext 9297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9298 (eval $ac_compile) 2>conftest.er1 9299 ac_status=$? 9300 grep -v '^ *+' conftest.er1 >conftest.err 9301 rm -f conftest.er1 9302 cat conftest.err >&5 9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9304 (exit $ac_status); } && 9305 { ac_try='test -z "$ac_c_werror_flag" 9306 || test ! -s conftest.err' 9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9308 (eval $ac_try) 2>&5 9309 ac_status=$? 9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9311 (exit $ac_status); }; } && 9312 { ac_try='test -s conftest.$ac_objext' 9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9314 (eval $ac_try) 2>&5 9315 ac_status=$? 9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9317 (exit $ac_status); }; }; then 9318 gt_cv_inttypes_pri_broken=no 9319else 9320 echo "$as_me: failed program was:" >&5 9321sed 's/^/| /' conftest.$ac_ext >&5 9322 9323gt_cv_inttypes_pri_broken=yes 9324fi 9325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9326 9327fi 9328echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 9329echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 9330 fi 9331 if test "$gt_cv_inttypes_pri_broken" = yes; then 9332 9333cat >>confdefs.h <<_ACEOF 9334#define PRI_MACROS_BROKEN 1 9335_ACEOF 9336 9337 fi 9338 9339 9340 9341for ac_header in stdint.h 9342do 9343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9344if eval "test \"\${$as_ac_Header+set}\" = set"; then 9345 echo "$as_me:$LINENO: checking for $ac_header" >&5 9346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9347if eval "test \"\${$as_ac_Header+set}\" = set"; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349fi 9350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9352else 9353 # Is the header compilable? 9354echo "$as_me:$LINENO: checking $ac_header usability" >&5 9355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9356cat >conftest.$ac_ext <<_ACEOF 9357/* confdefs.h. */ 9358_ACEOF 9359cat confdefs.h >>conftest.$ac_ext 9360cat >>conftest.$ac_ext <<_ACEOF 9361/* end confdefs.h. */ 9362$ac_includes_default 9363#include <$ac_header> 9364_ACEOF 9365rm -f conftest.$ac_objext 9366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9367 (eval $ac_compile) 2>conftest.er1 9368 ac_status=$? 9369 grep -v '^ *+' conftest.er1 >conftest.err 9370 rm -f conftest.er1 9371 cat conftest.err >&5 9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9373 (exit $ac_status); } && 9374 { ac_try='test -z "$ac_c_werror_flag" 9375 || test ! -s conftest.err' 9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9377 (eval $ac_try) 2>&5 9378 ac_status=$? 9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9380 (exit $ac_status); }; } && 9381 { ac_try='test -s conftest.$ac_objext' 9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9383 (eval $ac_try) 2>&5 9384 ac_status=$? 9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9386 (exit $ac_status); }; }; then 9387 ac_header_compiler=yes 9388else 9389 echo "$as_me: failed program was:" >&5 9390sed 's/^/| /' conftest.$ac_ext >&5 9391 9392ac_header_compiler=no 9393fi 9394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9396echo "${ECHO_T}$ac_header_compiler" >&6 9397 9398# Is the header present? 9399echo "$as_me:$LINENO: checking $ac_header presence" >&5 9400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9401cat >conftest.$ac_ext <<_ACEOF 9402/* confdefs.h. */ 9403_ACEOF 9404cat confdefs.h >>conftest.$ac_ext 9405cat >>conftest.$ac_ext <<_ACEOF 9406/* end confdefs.h. */ 9407#include <$ac_header> 9408_ACEOF 9409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9411 ac_status=$? 9412 grep -v '^ *+' conftest.er1 >conftest.err 9413 rm -f conftest.er1 9414 cat conftest.err >&5 9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9416 (exit $ac_status); } >/dev/null; then 9417 if test -s conftest.err; then 9418 ac_cpp_err=$ac_c_preproc_warn_flag 9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9420 else 9421 ac_cpp_err= 9422 fi 9423else 9424 ac_cpp_err=yes 9425fi 9426if test -z "$ac_cpp_err"; then 9427 ac_header_preproc=yes 9428else 9429 echo "$as_me: failed program was:" >&5 9430sed 's/^/| /' conftest.$ac_ext >&5 9431 9432 ac_header_preproc=no 9433fi 9434rm -f conftest.err conftest.$ac_ext 9435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9436echo "${ECHO_T}$ac_header_preproc" >&6 9437 9438# So? What about this header? 9439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9440 yes:no: ) 9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9445 ac_header_preproc=yes 9446 ;; 9447 no:yes:* ) 9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9460 ( 9461 cat <<\_ASBOX 9462## -------------------------------------- ## 9463## Report this to the GNU Texinfo lists. ## 9464## -------------------------------------- ## 9465_ASBOX 9466 ) | 9467 sed "s/^/$as_me: WARNING: /" >&2 9468 ;; 9469esac 9470echo "$as_me:$LINENO: checking for $ac_header" >&5 9471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9472if eval "test \"\${$as_ac_Header+set}\" = set"; then 9473 echo $ECHO_N "(cached) $ECHO_C" >&6 9474else 9475 eval "$as_ac_Header=\$ac_header_preproc" 9476fi 9477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9479 9480fi 9481if test `eval echo '${'$as_ac_Header'}'` = yes; then 9482 cat >>confdefs.h <<_ACEOF 9483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9484_ACEOF 9485 9486fi 9487 9488done 9489 9490 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 9491echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 9492 result= 9493 cat >conftest.$ac_ext <<_ACEOF 9494/* confdefs.h. */ 9495_ACEOF 9496cat confdefs.h >>conftest.$ac_ext 9497cat >>conftest.$ac_ext <<_ACEOF 9498/* end confdefs.h. */ 9499 9500#include <limits.h> 9501#if HAVE_STDINT_H 9502#include <stdint.h> 9503#endif 9504#ifdef SIZE_MAX 9505Found it 9506#endif 9507 9508_ACEOF 9509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9510 $EGREP "Found it" >/dev/null 2>&1; then 9511 result=yes 9512fi 9513rm -f conftest* 9514 9515 if test -z "$result"; then 9516 if test "$cross_compiling" = yes; then 9517 # Depending upon the size, compute the lo and hi bounds. 9518cat >conftest.$ac_ext <<_ACEOF 9519/* confdefs.h. */ 9520_ACEOF 9521cat confdefs.h >>conftest.$ac_ext 9522cat >>conftest.$ac_ext <<_ACEOF 9523/* end confdefs.h. */ 9524#include <stddef.h> 9525int 9526main () 9527{ 9528static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 9529test_array [0] = 0 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535rm -f conftest.$ac_objext 9536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9537 (eval $ac_compile) 2>conftest.er1 9538 ac_status=$? 9539 grep -v '^ *+' conftest.er1 >conftest.err 9540 rm -f conftest.er1 9541 cat conftest.err >&5 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 (exit $ac_status); } && 9544 { ac_try='test -z "$ac_c_werror_flag" 9545 || test ! -s conftest.err' 9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9547 (eval $ac_try) 2>&5 9548 ac_status=$? 9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9550 (exit $ac_status); }; } && 9551 { ac_try='test -s conftest.$ac_objext' 9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9553 (eval $ac_try) 2>&5 9554 ac_status=$? 9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9556 (exit $ac_status); }; }; then 9557 ac_lo=0 ac_mid=0 9558 while :; do 9559 cat >conftest.$ac_ext <<_ACEOF 9560/* confdefs.h. */ 9561_ACEOF 9562cat confdefs.h >>conftest.$ac_ext 9563cat >>conftest.$ac_ext <<_ACEOF 9564/* end confdefs.h. */ 9565#include <stddef.h> 9566int 9567main () 9568{ 9569static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9570test_array [0] = 0 9571 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576rm -f conftest.$ac_objext 9577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9578 (eval $ac_compile) 2>conftest.er1 9579 ac_status=$? 9580 grep -v '^ *+' conftest.er1 >conftest.err 9581 rm -f conftest.er1 9582 cat conftest.err >&5 9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9584 (exit $ac_status); } && 9585 { ac_try='test -z "$ac_c_werror_flag" 9586 || test ! -s conftest.err' 9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9588 (eval $ac_try) 2>&5 9589 ac_status=$? 9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 (exit $ac_status); }; } && 9592 { ac_try='test -s conftest.$ac_objext' 9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594 (eval $ac_try) 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; }; then 9598 ac_hi=$ac_mid; break 9599else 9600 echo "$as_me: failed program was:" >&5 9601sed 's/^/| /' conftest.$ac_ext >&5 9602 9603ac_lo=`expr $ac_mid + 1` 9604 if test $ac_lo -le $ac_mid; then 9605 ac_lo= ac_hi= 9606 break 9607 fi 9608 ac_mid=`expr 2 '*' $ac_mid + 1` 9609fi 9610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9611 done 9612else 9613 echo "$as_me: failed program was:" >&5 9614sed 's/^/| /' conftest.$ac_ext >&5 9615 9616cat >conftest.$ac_ext <<_ACEOF 9617/* confdefs.h. */ 9618_ACEOF 9619cat confdefs.h >>conftest.$ac_ext 9620cat >>conftest.$ac_ext <<_ACEOF 9621/* end confdefs.h. */ 9622#include <stddef.h> 9623int 9624main () 9625{ 9626static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 9627test_array [0] = 0 9628 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633rm -f conftest.$ac_objext 9634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9635 (eval $ac_compile) 2>conftest.er1 9636 ac_status=$? 9637 grep -v '^ *+' conftest.er1 >conftest.err 9638 rm -f conftest.er1 9639 cat conftest.err >&5 9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9641 (exit $ac_status); } && 9642 { ac_try='test -z "$ac_c_werror_flag" 9643 || test ! -s conftest.err' 9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9645 (eval $ac_try) 2>&5 9646 ac_status=$? 9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9648 (exit $ac_status); }; } && 9649 { ac_try='test -s conftest.$ac_objext' 9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9651 (eval $ac_try) 2>&5 9652 ac_status=$? 9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9654 (exit $ac_status); }; }; then 9655 ac_hi=-1 ac_mid=-1 9656 while :; do 9657 cat >conftest.$ac_ext <<_ACEOF 9658/* confdefs.h. */ 9659_ACEOF 9660cat confdefs.h >>conftest.$ac_ext 9661cat >>conftest.$ac_ext <<_ACEOF 9662/* end confdefs.h. */ 9663#include <stddef.h> 9664int 9665main () 9666{ 9667static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 9668test_array [0] = 0 9669 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674rm -f conftest.$ac_objext 9675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9676 (eval $ac_compile) 2>conftest.er1 9677 ac_status=$? 9678 grep -v '^ *+' conftest.er1 >conftest.err 9679 rm -f conftest.er1 9680 cat conftest.err >&5 9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9682 (exit $ac_status); } && 9683 { ac_try='test -z "$ac_c_werror_flag" 9684 || test ! -s conftest.err' 9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9686 (eval $ac_try) 2>&5 9687 ac_status=$? 9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9689 (exit $ac_status); }; } && 9690 { ac_try='test -s conftest.$ac_objext' 9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9692 (eval $ac_try) 2>&5 9693 ac_status=$? 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); }; }; then 9696 ac_lo=$ac_mid; break 9697else 9698 echo "$as_me: failed program was:" >&5 9699sed 's/^/| /' conftest.$ac_ext >&5 9700 9701ac_hi=`expr '(' $ac_mid ')' - 1` 9702 if test $ac_mid -le $ac_hi; then 9703 ac_lo= ac_hi= 9704 break 9705 fi 9706 ac_mid=`expr 2 '*' $ac_mid` 9707fi 9708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9709 done 9710else 9711 echo "$as_me: failed program was:" >&5 9712sed 's/^/| /' conftest.$ac_ext >&5 9713 9714ac_lo= ac_hi= 9715fi 9716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9717fi 9718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9719# Binary search between lo and hi bounds. 9720while test "x$ac_lo" != "x$ac_hi"; do 9721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9722 cat >conftest.$ac_ext <<_ACEOF 9723/* confdefs.h. */ 9724_ACEOF 9725cat confdefs.h >>conftest.$ac_ext 9726cat >>conftest.$ac_ext <<_ACEOF 9727/* end confdefs.h. */ 9728#include <stddef.h> 9729int 9730main () 9731{ 9732static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9733test_array [0] = 0 9734 9735 ; 9736 return 0; 9737} 9738_ACEOF 9739rm -f conftest.$ac_objext 9740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9741 (eval $ac_compile) 2>conftest.er1 9742 ac_status=$? 9743 grep -v '^ *+' conftest.er1 >conftest.err 9744 rm -f conftest.er1 9745 cat conftest.err >&5 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); } && 9748 { ac_try='test -z "$ac_c_werror_flag" 9749 || test ! -s conftest.err' 9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9751 (eval $ac_try) 2>&5 9752 ac_status=$? 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9754 (exit $ac_status); }; } && 9755 { ac_try='test -s conftest.$ac_objext' 9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9757 (eval $ac_try) 2>&5 9758 ac_status=$? 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9760 (exit $ac_status); }; }; then 9761 ac_hi=$ac_mid 9762else 9763 echo "$as_me: failed program was:" >&5 9764sed 's/^/| /' conftest.$ac_ext >&5 9765 9766ac_lo=`expr '(' $ac_mid ')' + 1` 9767fi 9768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9769done 9770case $ac_lo in 9771?*) res_hi=$ac_lo;; 9772'') result=? ;; 9773esac 9774else 9775 if test "$cross_compiling" = yes; then 9776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9777See \`config.log' for more details." >&5 9778echo "$as_me: error: cannot run test program while cross compiling 9779See \`config.log' for more details." >&2;} 9780 { (exit 1); exit 1; }; } 9781else 9782 cat >conftest.$ac_ext <<_ACEOF 9783/* confdefs.h. */ 9784_ACEOF 9785cat confdefs.h >>conftest.$ac_ext 9786cat >>conftest.$ac_ext <<_ACEOF 9787/* end confdefs.h. */ 9788#include <stddef.h> 9789long longval () { return ~(size_t)0 / 10; } 9790unsigned long ulongval () { return ~(size_t)0 / 10; } 9791#include <stdio.h> 9792#include <stdlib.h> 9793int 9794main () 9795{ 9796 9797 FILE *f = fopen ("conftest.val", "w"); 9798 if (! f) 9799 exit (1); 9800 if ((~(size_t)0 / 10) < 0) 9801 { 9802 long i = longval (); 9803 if (i != (~(size_t)0 / 10)) 9804 exit (1); 9805 fprintf (f, "%ld\n", i); 9806 } 9807 else 9808 { 9809 unsigned long i = ulongval (); 9810 if (i != (~(size_t)0 / 10)) 9811 exit (1); 9812 fprintf (f, "%lu\n", i); 9813 } 9814 exit (ferror (f) || fclose (f) != 0); 9815 9816 ; 9817 return 0; 9818} 9819_ACEOF 9820rm -f conftest$ac_exeext 9821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9822 (eval $ac_link) 2>&5 9823 ac_status=$? 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9827 (eval $ac_try) 2>&5 9828 ac_status=$? 9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); }; }; then 9831 res_hi=`cat conftest.val` 9832else 9833 echo "$as_me: program exited with status $ac_status" >&5 9834echo "$as_me: failed program was:" >&5 9835sed 's/^/| /' conftest.$ac_ext >&5 9836 9837( exit $ac_status ) 9838result=? 9839fi 9840rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9841fi 9842fi 9843rm -f conftest.val 9844 if test "$cross_compiling" = yes; then 9845 # Depending upon the size, compute the lo and hi bounds. 9846cat >conftest.$ac_ext <<_ACEOF 9847/* confdefs.h. */ 9848_ACEOF 9849cat confdefs.h >>conftest.$ac_ext 9850cat >>conftest.$ac_ext <<_ACEOF 9851/* end confdefs.h. */ 9852#include <stddef.h> 9853int 9854main () 9855{ 9856static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 9857test_array [0] = 0 9858 9859 ; 9860 return 0; 9861} 9862_ACEOF 9863rm -f conftest.$ac_objext 9864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9865 (eval $ac_compile) 2>conftest.er1 9866 ac_status=$? 9867 grep -v '^ *+' conftest.er1 >conftest.err 9868 rm -f conftest.er1 9869 cat conftest.err >&5 9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9871 (exit $ac_status); } && 9872 { ac_try='test -z "$ac_c_werror_flag" 9873 || test ! -s conftest.err' 9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9875 (eval $ac_try) 2>&5 9876 ac_status=$? 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 (exit $ac_status); }; } && 9879 { ac_try='test -s conftest.$ac_objext' 9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9881 (eval $ac_try) 2>&5 9882 ac_status=$? 9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9884 (exit $ac_status); }; }; then 9885 ac_lo=0 ac_mid=0 9886 while :; do 9887 cat >conftest.$ac_ext <<_ACEOF 9888/* confdefs.h. */ 9889_ACEOF 9890cat confdefs.h >>conftest.$ac_ext 9891cat >>conftest.$ac_ext <<_ACEOF 9892/* end confdefs.h. */ 9893#include <stddef.h> 9894int 9895main () 9896{ 9897static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 9898test_array [0] = 0 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904rm -f conftest.$ac_objext 9905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9906 (eval $ac_compile) 2>conftest.er1 9907 ac_status=$? 9908 grep -v '^ *+' conftest.er1 >conftest.err 9909 rm -f conftest.er1 9910 cat conftest.err >&5 9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9912 (exit $ac_status); } && 9913 { ac_try='test -z "$ac_c_werror_flag" 9914 || test ! -s conftest.err' 9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9916 (eval $ac_try) 2>&5 9917 ac_status=$? 9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9919 (exit $ac_status); }; } && 9920 { ac_try='test -s conftest.$ac_objext' 9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9922 (eval $ac_try) 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); }; }; then 9926 ac_hi=$ac_mid; break 9927else 9928 echo "$as_me: failed program was:" >&5 9929sed 's/^/| /' conftest.$ac_ext >&5 9930 9931ac_lo=`expr $ac_mid + 1` 9932 if test $ac_lo -le $ac_mid; then 9933 ac_lo= ac_hi= 9934 break 9935 fi 9936 ac_mid=`expr 2 '*' $ac_mid + 1` 9937fi 9938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9939 done 9940else 9941 echo "$as_me: failed program was:" >&5 9942sed 's/^/| /' conftest.$ac_ext >&5 9943 9944cat >conftest.$ac_ext <<_ACEOF 9945/* confdefs.h. */ 9946_ACEOF 9947cat confdefs.h >>conftest.$ac_ext 9948cat >>conftest.$ac_ext <<_ACEOF 9949/* end confdefs.h. */ 9950#include <stddef.h> 9951int 9952main () 9953{ 9954static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 9955test_array [0] = 0 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961rm -f conftest.$ac_objext 9962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9963 (eval $ac_compile) 2>conftest.er1 9964 ac_status=$? 9965 grep -v '^ *+' conftest.er1 >conftest.err 9966 rm -f conftest.er1 9967 cat conftest.err >&5 9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); } && 9970 { ac_try='test -z "$ac_c_werror_flag" 9971 || test ! -s conftest.err' 9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9973 (eval $ac_try) 2>&5 9974 ac_status=$? 9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9976 (exit $ac_status); }; } && 9977 { ac_try='test -s conftest.$ac_objext' 9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9979 (eval $ac_try) 2>&5 9980 ac_status=$? 9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9982 (exit $ac_status); }; }; then 9983 ac_hi=-1 ac_mid=-1 9984 while :; do 9985 cat >conftest.$ac_ext <<_ACEOF 9986/* confdefs.h. */ 9987_ACEOF 9988cat confdefs.h >>conftest.$ac_ext 9989cat >>conftest.$ac_ext <<_ACEOF 9990/* end confdefs.h. */ 9991#include <stddef.h> 9992int 9993main () 9994{ 9995static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 9996test_array [0] = 0 9997 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002rm -f conftest.$ac_objext 10003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10004 (eval $ac_compile) 2>conftest.er1 10005 ac_status=$? 10006 grep -v '^ *+' conftest.er1 >conftest.err 10007 rm -f conftest.er1 10008 cat conftest.err >&5 10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 (exit $ac_status); } && 10011 { ac_try='test -z "$ac_c_werror_flag" 10012 || test ! -s conftest.err' 10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10014 (eval $ac_try) 2>&5 10015 ac_status=$? 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); }; } && 10018 { ac_try='test -s conftest.$ac_objext' 10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10020 (eval $ac_try) 2>&5 10021 ac_status=$? 10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10023 (exit $ac_status); }; }; then 10024 ac_lo=$ac_mid; break 10025else 10026 echo "$as_me: failed program was:" >&5 10027sed 's/^/| /' conftest.$ac_ext >&5 10028 10029ac_hi=`expr '(' $ac_mid ')' - 1` 10030 if test $ac_mid -le $ac_hi; then 10031 ac_lo= ac_hi= 10032 break 10033 fi 10034 ac_mid=`expr 2 '*' $ac_mid` 10035fi 10036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10037 done 10038else 10039 echo "$as_me: failed program was:" >&5 10040sed 's/^/| /' conftest.$ac_ext >&5 10041 10042ac_lo= ac_hi= 10043fi 10044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10045fi 10046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10047# Binary search between lo and hi bounds. 10048while test "x$ac_lo" != "x$ac_hi"; do 10049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10050 cat >conftest.$ac_ext <<_ACEOF 10051/* confdefs.h. */ 10052_ACEOF 10053cat confdefs.h >>conftest.$ac_ext 10054cat >>conftest.$ac_ext <<_ACEOF 10055/* end confdefs.h. */ 10056#include <stddef.h> 10057int 10058main () 10059{ 10060static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 10061test_array [0] = 0 10062 10063 ; 10064 return 0; 10065} 10066_ACEOF 10067rm -f conftest.$ac_objext 10068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10069 (eval $ac_compile) 2>conftest.er1 10070 ac_status=$? 10071 grep -v '^ *+' conftest.er1 >conftest.err 10072 rm -f conftest.er1 10073 cat conftest.err >&5 10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 (exit $ac_status); } && 10076 { ac_try='test -z "$ac_c_werror_flag" 10077 || test ! -s conftest.err' 10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10079 (eval $ac_try) 2>&5 10080 ac_status=$? 10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 (exit $ac_status); }; } && 10083 { ac_try='test -s conftest.$ac_objext' 10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10085 (eval $ac_try) 2>&5 10086 ac_status=$? 10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10088 (exit $ac_status); }; }; then 10089 ac_hi=$ac_mid 10090else 10091 echo "$as_me: failed program was:" >&5 10092sed 's/^/| /' conftest.$ac_ext >&5 10093 10094ac_lo=`expr '(' $ac_mid ')' + 1` 10095fi 10096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10097done 10098case $ac_lo in 10099?*) res_lo=$ac_lo;; 10100'') result=? ;; 10101esac 10102else 10103 if test "$cross_compiling" = yes; then 10104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10105See \`config.log' for more details." >&5 10106echo "$as_me: error: cannot run test program while cross compiling 10107See \`config.log' for more details." >&2;} 10108 { (exit 1); exit 1; }; } 10109else 10110 cat >conftest.$ac_ext <<_ACEOF 10111/* confdefs.h. */ 10112_ACEOF 10113cat confdefs.h >>conftest.$ac_ext 10114cat >>conftest.$ac_ext <<_ACEOF 10115/* end confdefs.h. */ 10116#include <stddef.h> 10117long longval () { return ~(size_t)0 % 10; } 10118unsigned long ulongval () { return ~(size_t)0 % 10; } 10119#include <stdio.h> 10120#include <stdlib.h> 10121int 10122main () 10123{ 10124 10125 FILE *f = fopen ("conftest.val", "w"); 10126 if (! f) 10127 exit (1); 10128 if ((~(size_t)0 % 10) < 0) 10129 { 10130 long i = longval (); 10131 if (i != (~(size_t)0 % 10)) 10132 exit (1); 10133 fprintf (f, "%ld\n", i); 10134 } 10135 else 10136 { 10137 unsigned long i = ulongval (); 10138 if (i != (~(size_t)0 % 10)) 10139 exit (1); 10140 fprintf (f, "%lu\n", i); 10141 } 10142 exit (ferror (f) || fclose (f) != 0); 10143 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148rm -f conftest$ac_exeext 10149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10150 (eval $ac_link) 2>&5 10151 ac_status=$? 10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10155 (eval $ac_try) 2>&5 10156 ac_status=$? 10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10158 (exit $ac_status); }; }; then 10159 res_lo=`cat conftest.val` 10160else 10161 echo "$as_me: program exited with status $ac_status" >&5 10162echo "$as_me: failed program was:" >&5 10163sed 's/^/| /' conftest.$ac_ext >&5 10164 10165( exit $ac_status ) 10166result=? 10167fi 10168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10169fi 10170fi 10171rm -f conftest.val 10172 if test "$cross_compiling" = yes; then 10173 # Depending upon the size, compute the lo and hi bounds. 10174cat >conftest.$ac_ext <<_ACEOF 10175/* confdefs.h. */ 10176_ACEOF 10177cat confdefs.h >>conftest.$ac_ext 10178cat >>conftest.$ac_ext <<_ACEOF 10179/* end confdefs.h. */ 10180#include <stddef.h> 10181int 10182main () 10183{ 10184static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 10185test_array [0] = 0 10186 10187 ; 10188 return 0; 10189} 10190_ACEOF 10191rm -f conftest.$ac_objext 10192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10193 (eval $ac_compile) 2>conftest.er1 10194 ac_status=$? 10195 grep -v '^ *+' conftest.er1 >conftest.err 10196 rm -f conftest.er1 10197 cat conftest.err >&5 10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10199 (exit $ac_status); } && 10200 { ac_try='test -z "$ac_c_werror_flag" 10201 || test ! -s conftest.err' 10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10203 (eval $ac_try) 2>&5 10204 ac_status=$? 10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10206 (exit $ac_status); }; } && 10207 { ac_try='test -s conftest.$ac_objext' 10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10209 (eval $ac_try) 2>&5 10210 ac_status=$? 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10212 (exit $ac_status); }; }; then 10213 ac_lo=0 ac_mid=0 10214 while :; do 10215 cat >conftest.$ac_ext <<_ACEOF 10216/* confdefs.h. */ 10217_ACEOF 10218cat confdefs.h >>conftest.$ac_ext 10219cat >>conftest.$ac_ext <<_ACEOF 10220/* end confdefs.h. */ 10221#include <stddef.h> 10222int 10223main () 10224{ 10225static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10226test_array [0] = 0 10227 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232rm -f conftest.$ac_objext 10233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10234 (eval $ac_compile) 2>conftest.er1 10235 ac_status=$? 10236 grep -v '^ *+' conftest.er1 >conftest.err 10237 rm -f conftest.er1 10238 cat conftest.err >&5 10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); } && 10241 { ac_try='test -z "$ac_c_werror_flag" 10242 || test ! -s conftest.err' 10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10244 (eval $ac_try) 2>&5 10245 ac_status=$? 10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 (exit $ac_status); }; } && 10248 { ac_try='test -s conftest.$ac_objext' 10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10250 (eval $ac_try) 2>&5 10251 ac_status=$? 10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10253 (exit $ac_status); }; }; then 10254 ac_hi=$ac_mid; break 10255else 10256 echo "$as_me: failed program was:" >&5 10257sed 's/^/| /' conftest.$ac_ext >&5 10258 10259ac_lo=`expr $ac_mid + 1` 10260 if test $ac_lo -le $ac_mid; then 10261 ac_lo= ac_hi= 10262 break 10263 fi 10264 ac_mid=`expr 2 '*' $ac_mid + 1` 10265fi 10266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10267 done 10268else 10269 echo "$as_me: failed program was:" >&5 10270sed 's/^/| /' conftest.$ac_ext >&5 10271 10272cat >conftest.$ac_ext <<_ACEOF 10273/* confdefs.h. */ 10274_ACEOF 10275cat confdefs.h >>conftest.$ac_ext 10276cat >>conftest.$ac_ext <<_ACEOF 10277/* end confdefs.h. */ 10278#include <stddef.h> 10279int 10280main () 10281{ 10282static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 10283test_array [0] = 0 10284 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289rm -f conftest.$ac_objext 10290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10291 (eval $ac_compile) 2>conftest.er1 10292 ac_status=$? 10293 grep -v '^ *+' conftest.er1 >conftest.err 10294 rm -f conftest.er1 10295 cat conftest.err >&5 10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10297 (exit $ac_status); } && 10298 { ac_try='test -z "$ac_c_werror_flag" 10299 || test ! -s conftest.err' 10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10301 (eval $ac_try) 2>&5 10302 ac_status=$? 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); }; } && 10305 { ac_try='test -s conftest.$ac_objext' 10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10307 (eval $ac_try) 2>&5 10308 ac_status=$? 10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10310 (exit $ac_status); }; }; then 10311 ac_hi=-1 ac_mid=-1 10312 while :; do 10313 cat >conftest.$ac_ext <<_ACEOF 10314/* confdefs.h. */ 10315_ACEOF 10316cat confdefs.h >>conftest.$ac_ext 10317cat >>conftest.$ac_ext <<_ACEOF 10318/* end confdefs.h. */ 10319#include <stddef.h> 10320int 10321main () 10322{ 10323static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 10324test_array [0] = 0 10325 10326 ; 10327 return 0; 10328} 10329_ACEOF 10330rm -f conftest.$ac_objext 10331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10332 (eval $ac_compile) 2>conftest.er1 10333 ac_status=$? 10334 grep -v '^ *+' conftest.er1 >conftest.err 10335 rm -f conftest.er1 10336 cat conftest.err >&5 10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10338 (exit $ac_status); } && 10339 { ac_try='test -z "$ac_c_werror_flag" 10340 || test ! -s conftest.err' 10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10342 (eval $ac_try) 2>&5 10343 ac_status=$? 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10345 (exit $ac_status); }; } && 10346 { ac_try='test -s conftest.$ac_objext' 10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10348 (eval $ac_try) 2>&5 10349 ac_status=$? 10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10351 (exit $ac_status); }; }; then 10352 ac_lo=$ac_mid; break 10353else 10354 echo "$as_me: failed program was:" >&5 10355sed 's/^/| /' conftest.$ac_ext >&5 10356 10357ac_hi=`expr '(' $ac_mid ')' - 1` 10358 if test $ac_mid -le $ac_hi; then 10359 ac_lo= ac_hi= 10360 break 10361 fi 10362 ac_mid=`expr 2 '*' $ac_mid` 10363fi 10364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10365 done 10366else 10367 echo "$as_me: failed program was:" >&5 10368sed 's/^/| /' conftest.$ac_ext >&5 10369 10370ac_lo= ac_hi= 10371fi 10372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10373fi 10374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10375# Binary search between lo and hi bounds. 10376while test "x$ac_lo" != "x$ac_hi"; do 10377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10378 cat >conftest.$ac_ext <<_ACEOF 10379/* confdefs.h. */ 10380_ACEOF 10381cat confdefs.h >>conftest.$ac_ext 10382cat >>conftest.$ac_ext <<_ACEOF 10383/* end confdefs.h. */ 10384#include <stddef.h> 10385int 10386main () 10387{ 10388static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10389test_array [0] = 0 10390 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395rm -f conftest.$ac_objext 10396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10397 (eval $ac_compile) 2>conftest.er1 10398 ac_status=$? 10399 grep -v '^ *+' conftest.er1 >conftest.err 10400 rm -f conftest.er1 10401 cat conftest.err >&5 10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); } && 10404 { ac_try='test -z "$ac_c_werror_flag" 10405 || test ! -s conftest.err' 10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10407 (eval $ac_try) 2>&5 10408 ac_status=$? 10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 (exit $ac_status); }; } && 10411 { ac_try='test -s conftest.$ac_objext' 10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10413 (eval $ac_try) 2>&5 10414 ac_status=$? 10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10416 (exit $ac_status); }; }; then 10417 ac_hi=$ac_mid 10418else 10419 echo "$as_me: failed program was:" >&5 10420sed 's/^/| /' conftest.$ac_ext >&5 10421 10422ac_lo=`expr '(' $ac_mid ')' + 1` 10423fi 10424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10425done 10426case $ac_lo in 10427?*) fits_in_uint=$ac_lo;; 10428'') result=? ;; 10429esac 10430else 10431 if test "$cross_compiling" = yes; then 10432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10433See \`config.log' for more details." >&5 10434echo "$as_me: error: cannot run test program while cross compiling 10435See \`config.log' for more details." >&2;} 10436 { (exit 1); exit 1; }; } 10437else 10438 cat >conftest.$ac_ext <<_ACEOF 10439/* confdefs.h. */ 10440_ACEOF 10441cat confdefs.h >>conftest.$ac_ext 10442cat >>conftest.$ac_ext <<_ACEOF 10443/* end confdefs.h. */ 10444#include <stddef.h> 10445long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 10446unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 10447#include <stdio.h> 10448#include <stdlib.h> 10449int 10450main () 10451{ 10452 10453 FILE *f = fopen ("conftest.val", "w"); 10454 if (! f) 10455 exit (1); 10456 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 10457 { 10458 long i = longval (); 10459 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10460 exit (1); 10461 fprintf (f, "%ld\n", i); 10462 } 10463 else 10464 { 10465 unsigned long i = ulongval (); 10466 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10467 exit (1); 10468 fprintf (f, "%lu\n", i); 10469 } 10470 exit (ferror (f) || fclose (f) != 0); 10471 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476rm -f conftest$ac_exeext 10477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10478 (eval $ac_link) 2>&5 10479 ac_status=$? 10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10483 (eval $ac_try) 2>&5 10484 ac_status=$? 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); }; }; then 10487 fits_in_uint=`cat conftest.val` 10488else 10489 echo "$as_me: program exited with status $ac_status" >&5 10490echo "$as_me: failed program was:" >&5 10491sed 's/^/| /' conftest.$ac_ext >&5 10492 10493( exit $ac_status ) 10494result=? 10495fi 10496rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10497fi 10498fi 10499rm -f conftest.val 10500 if test "$fits_in_uint" = 1; then 10501 cat >conftest.$ac_ext <<_ACEOF 10502/* confdefs.h. */ 10503_ACEOF 10504cat confdefs.h >>conftest.$ac_ext 10505cat >>conftest.$ac_ext <<_ACEOF 10506/* end confdefs.h. */ 10507#include <stddef.h> 10508 extern size_t foo; 10509 extern unsigned long foo; 10510 10511int 10512main () 10513{ 10514 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519rm -f conftest.$ac_objext 10520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10521 (eval $ac_compile) 2>conftest.er1 10522 ac_status=$? 10523 grep -v '^ *+' conftest.er1 >conftest.err 10524 rm -f conftest.er1 10525 cat conftest.err >&5 10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10527 (exit $ac_status); } && 10528 { ac_try='test -z "$ac_c_werror_flag" 10529 || test ! -s conftest.err' 10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10531 (eval $ac_try) 2>&5 10532 ac_status=$? 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); }; } && 10535 { ac_try='test -s conftest.$ac_objext' 10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10537 (eval $ac_try) 2>&5 10538 ac_status=$? 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); }; }; then 10541 fits_in_uint=0 10542else 10543 echo "$as_me: failed program was:" >&5 10544sed 's/^/| /' conftest.$ac_ext >&5 10545 10546fi 10547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10548 fi 10549 if test -z "$result"; then 10550 if test "$fits_in_uint" = 1; then 10551 result="$res_hi$res_lo"U 10552 else 10553 result="$res_hi$res_lo"UL 10554 fi 10555 else 10556 result='~(size_t)0' 10557 fi 10558 fi 10559 echo "$as_me:$LINENO: result: $result" >&5 10560echo "${ECHO_T}$result" >&6 10561 if test "$result" != yes; then 10562 10563cat >>confdefs.h <<_ACEOF 10564#define SIZE_MAX $result 10565_ACEOF 10566 10567 fi 10568 10569 10570 10571 10572for ac_header in stdint.h 10573do 10574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10575if eval "test \"\${$as_ac_Header+set}\" = set"; then 10576 echo "$as_me:$LINENO: checking for $ac_header" >&5 10577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10578if eval "test \"\${$as_ac_Header+set}\" = set"; then 10579 echo $ECHO_N "(cached) $ECHO_C" >&6 10580fi 10581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10583else 10584 # Is the header compilable? 10585echo "$as_me:$LINENO: checking $ac_header usability" >&5 10586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10587cat >conftest.$ac_ext <<_ACEOF 10588/* confdefs.h. */ 10589_ACEOF 10590cat confdefs.h >>conftest.$ac_ext 10591cat >>conftest.$ac_ext <<_ACEOF 10592/* end confdefs.h. */ 10593$ac_includes_default 10594#include <$ac_header> 10595_ACEOF 10596rm -f conftest.$ac_objext 10597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10598 (eval $ac_compile) 2>conftest.er1 10599 ac_status=$? 10600 grep -v '^ *+' conftest.er1 >conftest.err 10601 rm -f conftest.er1 10602 cat conftest.err >&5 10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10604 (exit $ac_status); } && 10605 { ac_try='test -z "$ac_c_werror_flag" 10606 || test ! -s conftest.err' 10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10608 (eval $ac_try) 2>&5 10609 ac_status=$? 10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10611 (exit $ac_status); }; } && 10612 { ac_try='test -s conftest.$ac_objext' 10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10614 (eval $ac_try) 2>&5 10615 ac_status=$? 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); }; }; then 10618 ac_header_compiler=yes 10619else 10620 echo "$as_me: failed program was:" >&5 10621sed 's/^/| /' conftest.$ac_ext >&5 10622 10623ac_header_compiler=no 10624fi 10625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10627echo "${ECHO_T}$ac_header_compiler" >&6 10628 10629# Is the header present? 10630echo "$as_me:$LINENO: checking $ac_header presence" >&5 10631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10632cat >conftest.$ac_ext <<_ACEOF 10633/* confdefs.h. */ 10634_ACEOF 10635cat confdefs.h >>conftest.$ac_ext 10636cat >>conftest.$ac_ext <<_ACEOF 10637/* end confdefs.h. */ 10638#include <$ac_header> 10639_ACEOF 10640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10642 ac_status=$? 10643 grep -v '^ *+' conftest.er1 >conftest.err 10644 rm -f conftest.er1 10645 cat conftest.err >&5 10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10647 (exit $ac_status); } >/dev/null; then 10648 if test -s conftest.err; then 10649 ac_cpp_err=$ac_c_preproc_warn_flag 10650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10651 else 10652 ac_cpp_err= 10653 fi 10654else 10655 ac_cpp_err=yes 10656fi 10657if test -z "$ac_cpp_err"; then 10658 ac_header_preproc=yes 10659else 10660 echo "$as_me: failed program was:" >&5 10661sed 's/^/| /' conftest.$ac_ext >&5 10662 10663 ac_header_preproc=no 10664fi 10665rm -f conftest.err conftest.$ac_ext 10666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10667echo "${ECHO_T}$ac_header_preproc" >&6 10668 10669# So? What about this header? 10670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10671 yes:no: ) 10672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10676 ac_header_preproc=yes 10677 ;; 10678 no:yes:* ) 10679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10691 ( 10692 cat <<\_ASBOX 10693## -------------------------------------- ## 10694## Report this to the GNU Texinfo lists. ## 10695## -------------------------------------- ## 10696_ASBOX 10697 ) | 10698 sed "s/^/$as_me: WARNING: /" >&2 10699 ;; 10700esac 10701echo "$as_me:$LINENO: checking for $ac_header" >&5 10702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10703if eval "test \"\${$as_ac_Header+set}\" = set"; then 10704 echo $ECHO_N "(cached) $ECHO_C" >&6 10705else 10706 eval "$as_ac_Header=\$ac_header_preproc" 10707fi 10708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10710 10711fi 10712if test `eval echo '${'$as_ac_Header'}'` = yes; then 10713 cat >>confdefs.h <<_ACEOF 10714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10715_ACEOF 10716 10717fi 10718 10719done 10720 10721 10722 10723 if test "X$prefix" = "XNONE"; then 10724 acl_final_prefix="$ac_default_prefix" 10725 else 10726 acl_final_prefix="$prefix" 10727 fi 10728 if test "X$exec_prefix" = "XNONE"; then 10729 acl_final_exec_prefix='${prefix}' 10730 else 10731 acl_final_exec_prefix="$exec_prefix" 10732 fi 10733 acl_save_prefix="$prefix" 10734 prefix="$acl_final_prefix" 10735 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10736 prefix="$acl_save_prefix" 10737 10738 10739# Check whether --with-gnu-ld or --without-gnu-ld was given. 10740if test "${with_gnu_ld+set}" = set; then 10741 withval="$with_gnu_ld" 10742 test "$withval" = no || with_gnu_ld=yes 10743else 10744 with_gnu_ld=no 10745fi; 10746# Prepare PATH_SEPARATOR. 10747# The user is always right. 10748if test "${PATH_SEPARATOR+set}" != set; then 10749 echo "#! /bin/sh" >conf$$.sh 10750 echo "exit 0" >>conf$$.sh 10751 chmod +x conf$$.sh 10752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10753 PATH_SEPARATOR=';' 10754 else 10755 PATH_SEPARATOR=: 10756 fi 10757 rm -f conf$$.sh 10758fi 10759ac_prog=ld 10760if test "$GCC" = yes; then 10761 # Check if gcc -print-prog-name=ld gives a path. 10762 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10763echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10764 case $host in 10765 *-*-mingw*) 10766 # gcc leaves a trailing carriage return which upsets mingw 10767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10768 *) 10769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10770 esac 10771 case $ac_prog in 10772 # Accept absolute paths. 10773 [\\/]* | [A-Za-z]:[\\/]*) 10774 re_direlt='/[^/][^/]*/\.\./' 10775 # Canonicalize the path of ld 10776 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10777 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10778 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10779 done 10780 test -z "$LD" && LD="$ac_prog" 10781 ;; 10782 "") 10783 # If it fails, then pretend we aren't using GCC. 10784 ac_prog=ld 10785 ;; 10786 *) 10787 # If it is relative, then search for the first ld in PATH. 10788 with_gnu_ld=unknown 10789 ;; 10790 esac 10791elif test "$with_gnu_ld" = yes; then 10792 echo "$as_me:$LINENO: checking for GNU ld" >&5 10793echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10794else 10795 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10796echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10797fi 10798if test "${acl_cv_path_LD+set}" = set; then 10799 echo $ECHO_N "(cached) $ECHO_C" >&6 10800else 10801 if test -z "$LD"; then 10802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10803 for ac_dir in $PATH; do 10804 test -z "$ac_dir" && ac_dir=. 10805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10806 acl_cv_path_LD="$ac_dir/$ac_prog" 10807 # Check to see if the program is GNU ld. I'd rather use --version, 10808 # but apparently some GNU ld's only accept -v. 10809 # Break only if it was the GNU/non-GNU ld that we prefer. 10810 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 10811 *GNU* | *'with BFD'*) 10812 test "$with_gnu_ld" != no && break ;; 10813 *) 10814 test "$with_gnu_ld" != yes && break ;; 10815 esac 10816 fi 10817 done 10818 IFS="$ac_save_ifs" 10819else 10820 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10821fi 10822fi 10823 10824LD="$acl_cv_path_LD" 10825if test -n "$LD"; then 10826 echo "$as_me:$LINENO: result: $LD" >&5 10827echo "${ECHO_T}$LD" >&6 10828else 10829 echo "$as_me:$LINENO: result: no" >&5 10830echo "${ECHO_T}no" >&6 10831fi 10832test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10833echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10834 { (exit 1); exit 1; }; } 10835echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10836echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10837if test "${acl_cv_prog_gnu_ld+set}" = set; then 10838 echo $ECHO_N "(cached) $ECHO_C" >&6 10839else 10840 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10841case `$LD -v 2>&1 </dev/null` in 10842*GNU* | *'with BFD'*) 10843 acl_cv_prog_gnu_ld=yes ;; 10844*) 10845 acl_cv_prog_gnu_ld=no ;; 10846esac 10847fi 10848echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10849echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10850with_gnu_ld=$acl_cv_prog_gnu_ld 10851 10852 10853 10854 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10855echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10856if test "${acl_cv_rpath+set}" = set; then 10857 echo $ECHO_N "(cached) $ECHO_C" >&6 10858else 10859 10860 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10861 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10862 . ./conftest.sh 10863 rm -f ./conftest.sh 10864 acl_cv_rpath=done 10865 10866fi 10867echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10868echo "${ECHO_T}$acl_cv_rpath" >&6 10869 wl="$acl_cv_wl" 10870 libext="$acl_cv_libext" 10871 shlibext="$acl_cv_shlibext" 10872 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10873 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10874 hardcode_direct="$acl_cv_hardcode_direct" 10875 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10876 # Check whether --enable-rpath or --disable-rpath was given. 10877if test "${enable_rpath+set}" = set; then 10878 enableval="$enable_rpath" 10879 : 10880else 10881 enable_rpath=yes 10882fi; 10883 10884 10885 10886 10887 10888 10889 10890 use_additional=yes 10891 10892 acl_save_prefix="$prefix" 10893 prefix="$acl_final_prefix" 10894 acl_save_exec_prefix="$exec_prefix" 10895 exec_prefix="$acl_final_exec_prefix" 10896 10897 eval additional_includedir=\"$includedir\" 10898 eval additional_libdir=\"$libdir\" 10899 10900 exec_prefix="$acl_save_exec_prefix" 10901 prefix="$acl_save_prefix" 10902 10903 10904# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10905if test "${with_libiconv_prefix+set}" = set; then 10906 withval="$with_libiconv_prefix" 10907 10908 if test "X$withval" = "Xno"; then 10909 use_additional=no 10910 else 10911 if test "X$withval" = "X"; then 10912 10913 acl_save_prefix="$prefix" 10914 prefix="$acl_final_prefix" 10915 acl_save_exec_prefix="$exec_prefix" 10916 exec_prefix="$acl_final_exec_prefix" 10917 10918 eval additional_includedir=\"$includedir\" 10919 eval additional_libdir=\"$libdir\" 10920 10921 exec_prefix="$acl_save_exec_prefix" 10922 prefix="$acl_save_prefix" 10923 10924 else 10925 additional_includedir="$withval/include" 10926 additional_libdir="$withval/lib" 10927 fi 10928 fi 10929 10930fi; 10931 LIBICONV= 10932 LTLIBICONV= 10933 INCICONV= 10934 rpathdirs= 10935 ltrpathdirs= 10936 names_already_handled= 10937 names_next_round='iconv ' 10938 while test -n "$names_next_round"; do 10939 names_this_round="$names_next_round" 10940 names_next_round= 10941 for name in $names_this_round; do 10942 already_handled= 10943 for n in $names_already_handled; do 10944 if test "$n" = "$name"; then 10945 already_handled=yes 10946 break 10947 fi 10948 done 10949 if test -z "$already_handled"; then 10950 names_already_handled="$names_already_handled $name" 10951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10952 eval value=\"\$HAVE_LIB$uppername\" 10953 if test -n "$value"; then 10954 if test "$value" = yes; then 10955 eval value=\"\$LIB$uppername\" 10956 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10957 eval value=\"\$LTLIB$uppername\" 10958 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10959 else 10960 : 10961 fi 10962 else 10963 found_dir= 10964 found_la= 10965 found_so= 10966 found_a= 10967 if test $use_additional = yes; then 10968 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10969 found_dir="$additional_libdir" 10970 found_so="$additional_libdir/lib$name.$shlibext" 10971 if test -f "$additional_libdir/lib$name.la"; then 10972 found_la="$additional_libdir/lib$name.la" 10973 fi 10974 else 10975 if test -f "$additional_libdir/lib$name.$libext"; then 10976 found_dir="$additional_libdir" 10977 found_a="$additional_libdir/lib$name.$libext" 10978 if test -f "$additional_libdir/lib$name.la"; then 10979 found_la="$additional_libdir/lib$name.la" 10980 fi 10981 fi 10982 fi 10983 fi 10984 if test "X$found_dir" = "X"; then 10985 for x in $LDFLAGS $LTLIBICONV; do 10986 10987 acl_save_prefix="$prefix" 10988 prefix="$acl_final_prefix" 10989 acl_save_exec_prefix="$exec_prefix" 10990 exec_prefix="$acl_final_exec_prefix" 10991 eval x=\"$x\" 10992 exec_prefix="$acl_save_exec_prefix" 10993 prefix="$acl_save_prefix" 10994 10995 case "$x" in 10996 -L*) 10997 dir=`echo "X$x" | sed -e 's/^X-L//'` 10998 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10999 found_dir="$dir" 11000 found_so="$dir/lib$name.$shlibext" 11001 if test -f "$dir/lib$name.la"; then 11002 found_la="$dir/lib$name.la" 11003 fi 11004 else 11005 if test -f "$dir/lib$name.$libext"; then 11006 found_dir="$dir" 11007 found_a="$dir/lib$name.$libext" 11008 if test -f "$dir/lib$name.la"; then 11009 found_la="$dir/lib$name.la" 11010 fi 11011 fi 11012 fi 11013 ;; 11014 esac 11015 if test "X$found_dir" != "X"; then 11016 break 11017 fi 11018 done 11019 fi 11020 if test "X$found_dir" != "X"; then 11021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11022 if test "X$found_so" != "X"; then 11023 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11025 else 11026 haveit= 11027 for x in $ltrpathdirs; do 11028 if test "X$x" = "X$found_dir"; then 11029 haveit=yes 11030 break 11031 fi 11032 done 11033 if test -z "$haveit"; then 11034 ltrpathdirs="$ltrpathdirs $found_dir" 11035 fi 11036 if test "$hardcode_direct" = yes; then 11037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11038 else 11039 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11040 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11041 haveit= 11042 for x in $rpathdirs; do 11043 if test "X$x" = "X$found_dir"; then 11044 haveit=yes 11045 break 11046 fi 11047 done 11048 if test -z "$haveit"; then 11049 rpathdirs="$rpathdirs $found_dir" 11050 fi 11051 else 11052 haveit= 11053 for x in $LDFLAGS $LIBICONV; do 11054 11055 acl_save_prefix="$prefix" 11056 prefix="$acl_final_prefix" 11057 acl_save_exec_prefix="$exec_prefix" 11058 exec_prefix="$acl_final_exec_prefix" 11059 eval x=\"$x\" 11060 exec_prefix="$acl_save_exec_prefix" 11061 prefix="$acl_save_prefix" 11062 11063 if test "X$x" = "X-L$found_dir"; then 11064 haveit=yes 11065 break 11066 fi 11067 done 11068 if test -z "$haveit"; then 11069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11070 fi 11071 if test "$hardcode_minus_L" != no; then 11072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11073 else 11074 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11075 fi 11076 fi 11077 fi 11078 fi 11079 else 11080 if test "X$found_a" != "X"; then 11081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11082 else 11083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11084 fi 11085 fi 11086 additional_includedir= 11087 case "$found_dir" in 11088 */lib | */lib/) 11089 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11090 additional_includedir="$basedir/include" 11091 ;; 11092 esac 11093 if test "X$additional_includedir" != "X"; then 11094 if test "X$additional_includedir" != "X/usr/include"; then 11095 haveit= 11096 if test "X$additional_includedir" = "X/usr/local/include"; then 11097 if test -n "$GCC"; then 11098 case $host_os in 11099 linux*) haveit=yes;; 11100 esac 11101 fi 11102 fi 11103 if test -z "$haveit"; then 11104 for x in $CPPFLAGS $INCICONV; do 11105 11106 acl_save_prefix="$prefix" 11107 prefix="$acl_final_prefix" 11108 acl_save_exec_prefix="$exec_prefix" 11109 exec_prefix="$acl_final_exec_prefix" 11110 eval x=\"$x\" 11111 exec_prefix="$acl_save_exec_prefix" 11112 prefix="$acl_save_prefix" 11113 11114 if test "X$x" = "X-I$additional_includedir"; then 11115 haveit=yes 11116 break 11117 fi 11118 done 11119 if test -z "$haveit"; then 11120 if test -d "$additional_includedir"; then 11121 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11122 fi 11123 fi 11124 fi 11125 fi 11126 fi 11127 if test -n "$found_la"; then 11128 save_libdir="$libdir" 11129 case "$found_la" in 11130 */* | *\\*) . "$found_la" ;; 11131 *) . "./$found_la" ;; 11132 esac 11133 libdir="$save_libdir" 11134 for dep in $dependency_libs; do 11135 case "$dep" in 11136 -L*) 11137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11138 if test "X$additional_libdir" != "X/usr/lib"; then 11139 haveit= 11140 if test "X$additional_libdir" = "X/usr/local/lib"; then 11141 if test -n "$GCC"; then 11142 case $host_os in 11143 linux*) haveit=yes;; 11144 esac 11145 fi 11146 fi 11147 if test -z "$haveit"; then 11148 haveit= 11149 for x in $LDFLAGS $LIBICONV; do 11150 11151 acl_save_prefix="$prefix" 11152 prefix="$acl_final_prefix" 11153 acl_save_exec_prefix="$exec_prefix" 11154 exec_prefix="$acl_final_exec_prefix" 11155 eval x=\"$x\" 11156 exec_prefix="$acl_save_exec_prefix" 11157 prefix="$acl_save_prefix" 11158 11159 if test "X$x" = "X-L$additional_libdir"; then 11160 haveit=yes 11161 break 11162 fi 11163 done 11164 if test -z "$haveit"; then 11165 if test -d "$additional_libdir"; then 11166 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11167 fi 11168 fi 11169 haveit= 11170 for x in $LDFLAGS $LTLIBICONV; do 11171 11172 acl_save_prefix="$prefix" 11173 prefix="$acl_final_prefix" 11174 acl_save_exec_prefix="$exec_prefix" 11175 exec_prefix="$acl_final_exec_prefix" 11176 eval x=\"$x\" 11177 exec_prefix="$acl_save_exec_prefix" 11178 prefix="$acl_save_prefix" 11179 11180 if test "X$x" = "X-L$additional_libdir"; then 11181 haveit=yes 11182 break 11183 fi 11184 done 11185 if test -z "$haveit"; then 11186 if test -d "$additional_libdir"; then 11187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11188 fi 11189 fi 11190 fi 11191 fi 11192 ;; 11193 -R*) 11194 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11195 if test "$enable_rpath" != no; then 11196 haveit= 11197 for x in $rpathdirs; do 11198 if test "X$x" = "X$dir"; then 11199 haveit=yes 11200 break 11201 fi 11202 done 11203 if test -z "$haveit"; then 11204 rpathdirs="$rpathdirs $dir" 11205 fi 11206 haveit= 11207 for x in $ltrpathdirs; do 11208 if test "X$x" = "X$dir"; then 11209 haveit=yes 11210 break 11211 fi 11212 done 11213 if test -z "$haveit"; then 11214 ltrpathdirs="$ltrpathdirs $dir" 11215 fi 11216 fi 11217 ;; 11218 -l*) 11219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11220 ;; 11221 *.la) 11222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11223 ;; 11224 *) 11225 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11227 ;; 11228 esac 11229 done 11230 fi 11231 else 11232 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11233 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11234 fi 11235 fi 11236 fi 11237 done 11238 done 11239 if test "X$rpathdirs" != "X"; then 11240 if test -n "$hardcode_libdir_separator"; then 11241 alldirs= 11242 for found_dir in $rpathdirs; do 11243 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11244 done 11245 acl_save_libdir="$libdir" 11246 libdir="$alldirs" 11247 eval flag=\"$hardcode_libdir_flag_spec\" 11248 libdir="$acl_save_libdir" 11249 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11250 else 11251 for found_dir in $rpathdirs; do 11252 acl_save_libdir="$libdir" 11253 libdir="$found_dir" 11254 eval flag=\"$hardcode_libdir_flag_spec\" 11255 libdir="$acl_save_libdir" 11256 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11257 done 11258 fi 11259 fi 11260 if test "X$ltrpathdirs" != "X"; then 11261 for found_dir in $ltrpathdirs; do 11262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11263 done 11264 fi 11265 11266 11267 11268 11269 11270 11271 11272 11273 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 11274echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 11275if test "${ac_cv_type_ptrdiff_t+set}" = set; then 11276 echo $ECHO_N "(cached) $ECHO_C" >&6 11277else 11278 cat >conftest.$ac_ext <<_ACEOF 11279/* confdefs.h. */ 11280_ACEOF 11281cat confdefs.h >>conftest.$ac_ext 11282cat >>conftest.$ac_ext <<_ACEOF 11283/* end confdefs.h. */ 11284$ac_includes_default 11285int 11286main () 11287{ 11288if ((ptrdiff_t *) 0) 11289 return 0; 11290if (sizeof (ptrdiff_t)) 11291 return 0; 11292 ; 11293 return 0; 11294} 11295_ACEOF 11296rm -f conftest.$ac_objext 11297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11298 (eval $ac_compile) 2>conftest.er1 11299 ac_status=$? 11300 grep -v '^ *+' conftest.er1 >conftest.err 11301 rm -f conftest.er1 11302 cat conftest.err >&5 11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11304 (exit $ac_status); } && 11305 { ac_try='test -z "$ac_c_werror_flag" 11306 || test ! -s conftest.err' 11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11308 (eval $ac_try) 2>&5 11309 ac_status=$? 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); }; } && 11312 { ac_try='test -s conftest.$ac_objext' 11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11314 (eval $ac_try) 2>&5 11315 ac_status=$? 11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11317 (exit $ac_status); }; }; then 11318 ac_cv_type_ptrdiff_t=yes 11319else 11320 echo "$as_me: failed program was:" >&5 11321sed 's/^/| /' conftest.$ac_ext >&5 11322 11323ac_cv_type_ptrdiff_t=no 11324fi 11325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11326fi 11327echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 11328echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 11329if test $ac_cv_type_ptrdiff_t = yes; then 11330 : 11331else 11332 11333cat >>confdefs.h <<\_ACEOF 11334#define ptrdiff_t long 11335_ACEOF 11336 11337 11338fi 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 11351stdlib.h string.h unistd.h sys/param.h 11352do 11353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11354if eval "test \"\${$as_ac_Header+set}\" = set"; then 11355 echo "$as_me:$LINENO: checking for $ac_header" >&5 11356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11357if eval "test \"\${$as_ac_Header+set}\" = set"; then 11358 echo $ECHO_N "(cached) $ECHO_C" >&6 11359fi 11360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11362else 11363 # Is the header compilable? 11364echo "$as_me:$LINENO: checking $ac_header usability" >&5 11365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11366cat >conftest.$ac_ext <<_ACEOF 11367/* confdefs.h. */ 11368_ACEOF 11369cat confdefs.h >>conftest.$ac_ext 11370cat >>conftest.$ac_ext <<_ACEOF 11371/* end confdefs.h. */ 11372$ac_includes_default 11373#include <$ac_header> 11374_ACEOF 11375rm -f conftest.$ac_objext 11376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11377 (eval $ac_compile) 2>conftest.er1 11378 ac_status=$? 11379 grep -v '^ *+' conftest.er1 >conftest.err 11380 rm -f conftest.er1 11381 cat conftest.err >&5 11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11383 (exit $ac_status); } && 11384 { ac_try='test -z "$ac_c_werror_flag" 11385 || test ! -s conftest.err' 11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11387 (eval $ac_try) 2>&5 11388 ac_status=$? 11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11390 (exit $ac_status); }; } && 11391 { ac_try='test -s conftest.$ac_objext' 11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11393 (eval $ac_try) 2>&5 11394 ac_status=$? 11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11396 (exit $ac_status); }; }; then 11397 ac_header_compiler=yes 11398else 11399 echo "$as_me: failed program was:" >&5 11400sed 's/^/| /' conftest.$ac_ext >&5 11401 11402ac_header_compiler=no 11403fi 11404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11406echo "${ECHO_T}$ac_header_compiler" >&6 11407 11408# Is the header present? 11409echo "$as_me:$LINENO: checking $ac_header presence" >&5 11410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11411cat >conftest.$ac_ext <<_ACEOF 11412/* confdefs.h. */ 11413_ACEOF 11414cat confdefs.h >>conftest.$ac_ext 11415cat >>conftest.$ac_ext <<_ACEOF 11416/* end confdefs.h. */ 11417#include <$ac_header> 11418_ACEOF 11419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11421 ac_status=$? 11422 grep -v '^ *+' conftest.er1 >conftest.err 11423 rm -f conftest.er1 11424 cat conftest.err >&5 11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11426 (exit $ac_status); } >/dev/null; then 11427 if test -s conftest.err; then 11428 ac_cpp_err=$ac_c_preproc_warn_flag 11429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11430 else 11431 ac_cpp_err= 11432 fi 11433else 11434 ac_cpp_err=yes 11435fi 11436if test -z "$ac_cpp_err"; then 11437 ac_header_preproc=yes 11438else 11439 echo "$as_me: failed program was:" >&5 11440sed 's/^/| /' conftest.$ac_ext >&5 11441 11442 ac_header_preproc=no 11443fi 11444rm -f conftest.err conftest.$ac_ext 11445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11446echo "${ECHO_T}$ac_header_preproc" >&6 11447 11448# So? What about this header? 11449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11450 yes:no: ) 11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11455 ac_header_preproc=yes 11456 ;; 11457 no:yes:* ) 11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11470 ( 11471 cat <<\_ASBOX 11472## -------------------------------------- ## 11473## Report this to the GNU Texinfo lists. ## 11474## -------------------------------------- ## 11475_ASBOX 11476 ) | 11477 sed "s/^/$as_me: WARNING: /" >&2 11478 ;; 11479esac 11480echo "$as_me:$LINENO: checking for $ac_header" >&5 11481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11482if eval "test \"\${$as_ac_Header+set}\" = set"; then 11483 echo $ECHO_N "(cached) $ECHO_C" >&6 11484else 11485 eval "$as_ac_Header=\$ac_header_preproc" 11486fi 11487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11489 11490fi 11491if test `eval echo '${'$as_ac_Header'}'` = yes; then 11492 cat >>confdefs.h <<_ACEOF 11493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11494_ACEOF 11495 11496fi 11497 11498done 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 11524mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 11525strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 11526__fsetlocking 11527do 11528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11529echo "$as_me:$LINENO: checking for $ac_func" >&5 11530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11531if eval "test \"\${$as_ac_var+set}\" = set"; then 11532 echo $ECHO_N "(cached) $ECHO_C" >&6 11533else 11534 cat >conftest.$ac_ext <<_ACEOF 11535/* confdefs.h. */ 11536_ACEOF 11537cat confdefs.h >>conftest.$ac_ext 11538cat >>conftest.$ac_ext <<_ACEOF 11539/* end confdefs.h. */ 11540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11542#define $ac_func innocuous_$ac_func 11543 11544/* System header to define __stub macros and hopefully few prototypes, 11545 which can conflict with char $ac_func (); below. 11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11547 <limits.h> exists even on freestanding compilers. */ 11548 11549#ifdef __STDC__ 11550# include <limits.h> 11551#else 11552# include <assert.h> 11553#endif 11554 11555#undef $ac_func 11556 11557/* Override any gcc2 internal prototype to avoid an error. */ 11558#ifdef __cplusplus 11559extern "C" 11560{ 11561#endif 11562/* We use char because int might match the return type of a gcc2 11563 builtin and then its argument prototype would still apply. */ 11564char $ac_func (); 11565/* The GNU C library defines this for functions which it implements 11566 to always fail with ENOSYS. Some functions are actually named 11567 something starting with __ and the normal name is an alias. */ 11568#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11569choke me 11570#else 11571char (*f) () = $ac_func; 11572#endif 11573#ifdef __cplusplus 11574} 11575#endif 11576 11577int 11578main () 11579{ 11580return f != $ac_func; 11581 ; 11582 return 0; 11583} 11584_ACEOF 11585rm -f conftest.$ac_objext conftest$ac_exeext 11586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11587 (eval $ac_link) 2>conftest.er1 11588 ac_status=$? 11589 grep -v '^ *+' conftest.er1 >conftest.err 11590 rm -f conftest.er1 11591 cat conftest.err >&5 11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11593 (exit $ac_status); } && 11594 { ac_try='test -z "$ac_c_werror_flag" 11595 || test ! -s conftest.err' 11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11597 (eval $ac_try) 2>&5 11598 ac_status=$? 11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11600 (exit $ac_status); }; } && 11601 { ac_try='test -s conftest$ac_exeext' 11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11603 (eval $ac_try) 2>&5 11604 ac_status=$? 11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11606 (exit $ac_status); }; }; then 11607 eval "$as_ac_var=yes" 11608else 11609 echo "$as_me: failed program was:" >&5 11610sed 's/^/| /' conftest.$ac_ext >&5 11611 11612eval "$as_ac_var=no" 11613fi 11614rm -f conftest.err conftest.$ac_objext \ 11615 conftest$ac_exeext conftest.$ac_ext 11616fi 11617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11619if test `eval echo '${'$as_ac_var'}'` = yes; then 11620 cat >>confdefs.h <<_ACEOF 11621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11622_ACEOF 11623 11624fi 11625done 11626 11627 11628 11629 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 11630echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 11631if test "${ac_cv_have_decl__snprintf+set}" = set; then 11632 echo $ECHO_N "(cached) $ECHO_C" >&6 11633else 11634 cat >conftest.$ac_ext <<_ACEOF 11635/* confdefs.h. */ 11636_ACEOF 11637cat confdefs.h >>conftest.$ac_ext 11638cat >>conftest.$ac_ext <<_ACEOF 11639/* end confdefs.h. */ 11640#include <stdio.h> 11641int 11642main () 11643{ 11644 11645#ifndef _snprintf 11646 char *p = (char *) _snprintf; 11647#endif 11648 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653rm -f conftest.$ac_objext 11654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11655 (eval $ac_compile) 2>conftest.er1 11656 ac_status=$? 11657 grep -v '^ *+' conftest.er1 >conftest.err 11658 rm -f conftest.er1 11659 cat conftest.err >&5 11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11661 (exit $ac_status); } && 11662 { ac_try='test -z "$ac_c_werror_flag" 11663 || test ! -s conftest.err' 11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11665 (eval $ac_try) 2>&5 11666 ac_status=$? 11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11668 (exit $ac_status); }; } && 11669 { ac_try='test -s conftest.$ac_objext' 11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11671 (eval $ac_try) 2>&5 11672 ac_status=$? 11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11674 (exit $ac_status); }; }; then 11675 ac_cv_have_decl__snprintf=yes 11676else 11677 echo "$as_me: failed program was:" >&5 11678sed 's/^/| /' conftest.$ac_ext >&5 11679 11680ac_cv_have_decl__snprintf=no 11681fi 11682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11683fi 11684echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 11685echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 11686 if test $ac_cv_have_decl__snprintf = yes; then 11687 gt_value=1 11688 else 11689 gt_value=0 11690 fi 11691 11692cat >>confdefs.h <<_ACEOF 11693#define HAVE_DECL__SNPRINTF $gt_value 11694_ACEOF 11695 11696 11697 11698 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 11699echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 11700if test "${ac_cv_have_decl__snwprintf+set}" = set; then 11701 echo $ECHO_N "(cached) $ECHO_C" >&6 11702else 11703 cat >conftest.$ac_ext <<_ACEOF 11704/* confdefs.h. */ 11705_ACEOF 11706cat confdefs.h >>conftest.$ac_ext 11707cat >>conftest.$ac_ext <<_ACEOF 11708/* end confdefs.h. */ 11709#include <stdio.h> 11710int 11711main () 11712{ 11713 11714#ifndef _snwprintf 11715 char *p = (char *) _snwprintf; 11716#endif 11717 11718 ; 11719 return 0; 11720} 11721_ACEOF 11722rm -f conftest.$ac_objext 11723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11724 (eval $ac_compile) 2>conftest.er1 11725 ac_status=$? 11726 grep -v '^ *+' conftest.er1 >conftest.err 11727 rm -f conftest.er1 11728 cat conftest.err >&5 11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11730 (exit $ac_status); } && 11731 { ac_try='test -z "$ac_c_werror_flag" 11732 || test ! -s conftest.err' 11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11734 (eval $ac_try) 2>&5 11735 ac_status=$? 11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11737 (exit $ac_status); }; } && 11738 { ac_try='test -s conftest.$ac_objext' 11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11740 (eval $ac_try) 2>&5 11741 ac_status=$? 11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11743 (exit $ac_status); }; }; then 11744 ac_cv_have_decl__snwprintf=yes 11745else 11746 echo "$as_me: failed program was:" >&5 11747sed 's/^/| /' conftest.$ac_ext >&5 11748 11749ac_cv_have_decl__snwprintf=no 11750fi 11751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11752fi 11753echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 11754echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 11755 if test $ac_cv_have_decl__snwprintf = yes; then 11756 gt_value=1 11757 else 11758 gt_value=0 11759 fi 11760 11761cat >>confdefs.h <<_ACEOF 11762#define HAVE_DECL__SNWPRINTF $gt_value 11763_ACEOF 11764 11765 11766 11767 11768 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 11769echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 11770if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 11771 echo $ECHO_N "(cached) $ECHO_C" >&6 11772else 11773 cat >conftest.$ac_ext <<_ACEOF 11774/* confdefs.h. */ 11775_ACEOF 11776cat confdefs.h >>conftest.$ac_ext 11777cat >>conftest.$ac_ext <<_ACEOF 11778/* end confdefs.h. */ 11779#include <stdio.h> 11780int 11781main () 11782{ 11783 11784#ifndef feof_unlocked 11785 char *p = (char *) feof_unlocked; 11786#endif 11787 11788 ; 11789 return 0; 11790} 11791_ACEOF 11792rm -f conftest.$ac_objext 11793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11794 (eval $ac_compile) 2>conftest.er1 11795 ac_status=$? 11796 grep -v '^ *+' conftest.er1 >conftest.err 11797 rm -f conftest.er1 11798 cat conftest.err >&5 11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); } && 11801 { ac_try='test -z "$ac_c_werror_flag" 11802 || test ! -s conftest.err' 11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11804 (eval $ac_try) 2>&5 11805 ac_status=$? 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11807 (exit $ac_status); }; } && 11808 { ac_try='test -s conftest.$ac_objext' 11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11810 (eval $ac_try) 2>&5 11811 ac_status=$? 11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11813 (exit $ac_status); }; }; then 11814 ac_cv_have_decl_feof_unlocked=yes 11815else 11816 echo "$as_me: failed program was:" >&5 11817sed 's/^/| /' conftest.$ac_ext >&5 11818 11819ac_cv_have_decl_feof_unlocked=no 11820fi 11821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11822fi 11823echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 11824echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 11825 if test $ac_cv_have_decl_feof_unlocked = yes; then 11826 gt_value=1 11827 else 11828 gt_value=0 11829 fi 11830 11831cat >>confdefs.h <<_ACEOF 11832#define HAVE_DECL_FEOF_UNLOCKED $gt_value 11833_ACEOF 11834 11835 11836 11837 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 11838echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 11839if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 11840 echo $ECHO_N "(cached) $ECHO_C" >&6 11841else 11842 cat >conftest.$ac_ext <<_ACEOF 11843/* confdefs.h. */ 11844_ACEOF 11845cat confdefs.h >>conftest.$ac_ext 11846cat >>conftest.$ac_ext <<_ACEOF 11847/* end confdefs.h. */ 11848#include <stdio.h> 11849int 11850main () 11851{ 11852 11853#ifndef fgets_unlocked 11854 char *p = (char *) fgets_unlocked; 11855#endif 11856 11857 ; 11858 return 0; 11859} 11860_ACEOF 11861rm -f conftest.$ac_objext 11862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11863 (eval $ac_compile) 2>conftest.er1 11864 ac_status=$? 11865 grep -v '^ *+' conftest.er1 >conftest.err 11866 rm -f conftest.er1 11867 cat conftest.err >&5 11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11869 (exit $ac_status); } && 11870 { ac_try='test -z "$ac_c_werror_flag" 11871 || test ! -s conftest.err' 11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11873 (eval $ac_try) 2>&5 11874 ac_status=$? 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11876 (exit $ac_status); }; } && 11877 { ac_try='test -s conftest.$ac_objext' 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11879 (eval $ac_try) 2>&5 11880 ac_status=$? 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11882 (exit $ac_status); }; }; then 11883 ac_cv_have_decl_fgets_unlocked=yes 11884else 11885 echo "$as_me: failed program was:" >&5 11886sed 's/^/| /' conftest.$ac_ext >&5 11887 11888ac_cv_have_decl_fgets_unlocked=no 11889fi 11890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11891fi 11892echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 11893echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 11894 if test $ac_cv_have_decl_fgets_unlocked = yes; then 11895 gt_value=1 11896 else 11897 gt_value=0 11898 fi 11899 11900cat >>confdefs.h <<_ACEOF 11901#define HAVE_DECL_FGETS_UNLOCKED $gt_value 11902_ACEOF 11903 11904 11905 11906 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 11907echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 11908if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 11909 echo $ECHO_N "(cached) $ECHO_C" >&6 11910else 11911 cat >conftest.$ac_ext <<_ACEOF 11912/* confdefs.h. */ 11913_ACEOF 11914cat confdefs.h >>conftest.$ac_ext 11915cat >>conftest.$ac_ext <<_ACEOF 11916/* end confdefs.h. */ 11917#include <stdio.h> 11918int 11919main () 11920{ 11921 11922#ifndef getc_unlocked 11923 char *p = (char *) getc_unlocked; 11924#endif 11925 11926 ; 11927 return 0; 11928} 11929_ACEOF 11930rm -f conftest.$ac_objext 11931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11932 (eval $ac_compile) 2>conftest.er1 11933 ac_status=$? 11934 grep -v '^ *+' conftest.er1 >conftest.err 11935 rm -f conftest.er1 11936 cat conftest.err >&5 11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 (exit $ac_status); } && 11939 { ac_try='test -z "$ac_c_werror_flag" 11940 || test ! -s conftest.err' 11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11942 (eval $ac_try) 2>&5 11943 ac_status=$? 11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11945 (exit $ac_status); }; } && 11946 { ac_try='test -s conftest.$ac_objext' 11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11948 (eval $ac_try) 2>&5 11949 ac_status=$? 11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11951 (exit $ac_status); }; }; then 11952 ac_cv_have_decl_getc_unlocked=yes 11953else 11954 echo "$as_me: failed program was:" >&5 11955sed 's/^/| /' conftest.$ac_ext >&5 11956 11957ac_cv_have_decl_getc_unlocked=no 11958fi 11959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11960fi 11961echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 11962echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 11963 if test $ac_cv_have_decl_getc_unlocked = yes; then 11964 gt_value=1 11965 else 11966 gt_value=0 11967 fi 11968 11969cat >>confdefs.h <<_ACEOF 11970#define HAVE_DECL_GETC_UNLOCKED $gt_value 11971_ACEOF 11972 11973 11974 11975 case $gt_cv_func_printf_posix in 11976 *yes) HAVE_POSIX_PRINTF=1 ;; 11977 *) HAVE_POSIX_PRINTF=0 ;; 11978 esac 11979 11980 if test "$ac_cv_func_asprintf" = yes; then 11981 HAVE_ASPRINTF=1 11982 else 11983 HAVE_ASPRINTF=0 11984 fi 11985 11986 if test "$ac_cv_func_snprintf" = yes; then 11987 HAVE_SNPRINTF=1 11988 else 11989 HAVE_SNPRINTF=0 11990 fi 11991 11992 if test "$ac_cv_func_wprintf" = yes; then 11993 HAVE_WPRINTF=1 11994 else 11995 HAVE_WPRINTF=0 11996 fi 11997 11998 11999 12000 12001 12002 12003 12004 am_save_CPPFLAGS="$CPPFLAGS" 12005 12006 for element in $INCICONV; do 12007 haveit= 12008 for x in $CPPFLAGS; do 12009 12010 acl_save_prefix="$prefix" 12011 prefix="$acl_final_prefix" 12012 acl_save_exec_prefix="$exec_prefix" 12013 exec_prefix="$acl_final_exec_prefix" 12014 eval x=\"$x\" 12015 exec_prefix="$acl_save_exec_prefix" 12016 prefix="$acl_save_prefix" 12017 12018 if test "X$x" = "X$element"; then 12019 haveit=yes 12020 break 12021 fi 12022 done 12023 if test -z "$haveit"; then 12024 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12025 fi 12026 done 12027 12028 12029 echo "$as_me:$LINENO: checking for iconv" >&5 12030echo $ECHO_N "checking for iconv... $ECHO_C" >&6 12031if test "${am_cv_func_iconv+set}" = set; then 12032 echo $ECHO_N "(cached) $ECHO_C" >&6 12033else 12034 12035 am_cv_func_iconv="no, consider installing GNU libiconv" 12036 am_cv_lib_iconv=no 12037 cat >conftest.$ac_ext <<_ACEOF 12038/* confdefs.h. */ 12039_ACEOF 12040cat confdefs.h >>conftest.$ac_ext 12041cat >>conftest.$ac_ext <<_ACEOF 12042/* end confdefs.h. */ 12043#include <stdlib.h> 12044#include <iconv.h> 12045int 12046main () 12047{ 12048iconv_t cd = iconv_open("",""); 12049 iconv(cd,NULL,NULL,NULL,NULL); 12050 iconv_close(cd); 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055rm -f conftest.$ac_objext conftest$ac_exeext 12056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12057 (eval $ac_link) 2>conftest.er1 12058 ac_status=$? 12059 grep -v '^ *+' conftest.er1 >conftest.err 12060 rm -f conftest.er1 12061 cat conftest.err >&5 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12063 (exit $ac_status); } && 12064 { ac_try='test -z "$ac_c_werror_flag" 12065 || test ! -s conftest.err' 12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12067 (eval $ac_try) 2>&5 12068 ac_status=$? 12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12070 (exit $ac_status); }; } && 12071 { ac_try='test -s conftest$ac_exeext' 12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12073 (eval $ac_try) 2>&5 12074 ac_status=$? 12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12076 (exit $ac_status); }; }; then 12077 am_cv_func_iconv=yes 12078else 12079 echo "$as_me: failed program was:" >&5 12080sed 's/^/| /' conftest.$ac_ext >&5 12081 12082fi 12083rm -f conftest.err conftest.$ac_objext \ 12084 conftest$ac_exeext conftest.$ac_ext 12085 if test "$am_cv_func_iconv" != yes; then 12086 am_save_LIBS="$LIBS" 12087 LIBS="$LIBS $LIBICONV" 12088 cat >conftest.$ac_ext <<_ACEOF 12089/* confdefs.h. */ 12090_ACEOF 12091cat confdefs.h >>conftest.$ac_ext 12092cat >>conftest.$ac_ext <<_ACEOF 12093/* end confdefs.h. */ 12094#include <stdlib.h> 12095#include <iconv.h> 12096int 12097main () 12098{ 12099iconv_t cd = iconv_open("",""); 12100 iconv(cd,NULL,NULL,NULL,NULL); 12101 iconv_close(cd); 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106rm -f conftest.$ac_objext conftest$ac_exeext 12107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12108 (eval $ac_link) 2>conftest.er1 12109 ac_status=$? 12110 grep -v '^ *+' conftest.er1 >conftest.err 12111 rm -f conftest.er1 12112 cat conftest.err >&5 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); } && 12115 { ac_try='test -z "$ac_c_werror_flag" 12116 || test ! -s conftest.err' 12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12118 (eval $ac_try) 2>&5 12119 ac_status=$? 12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12121 (exit $ac_status); }; } && 12122 { ac_try='test -s conftest$ac_exeext' 12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12124 (eval $ac_try) 2>&5 12125 ac_status=$? 12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12127 (exit $ac_status); }; }; then 12128 am_cv_lib_iconv=yes 12129 am_cv_func_iconv=yes 12130else 12131 echo "$as_me: failed program was:" >&5 12132sed 's/^/| /' conftest.$ac_ext >&5 12133 12134fi 12135rm -f conftest.err conftest.$ac_objext \ 12136 conftest$ac_exeext conftest.$ac_ext 12137 LIBS="$am_save_LIBS" 12138 fi 12139 12140fi 12141echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 12142echo "${ECHO_T}$am_cv_func_iconv" >&6 12143 if test "$am_cv_func_iconv" = yes; then 12144 12145cat >>confdefs.h <<\_ACEOF 12146#define HAVE_ICONV 1 12147_ACEOF 12148 12149 fi 12150 if test "$am_cv_lib_iconv" = yes; then 12151 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 12152echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 12153 echo "$as_me:$LINENO: result: $LIBICONV" >&5 12154echo "${ECHO_T}$LIBICONV" >&6 12155 else 12156 CPPFLAGS="$am_save_CPPFLAGS" 12157 LIBICONV= 12158 LTLIBICONV= 12159 fi 12160 12161 12162 12163 if test "$am_cv_func_iconv" = yes; then 12164 echo "$as_me:$LINENO: checking for iconv declaration" >&5 12165echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 12166 if test "${am_cv_proto_iconv+set}" = set; then 12167 echo $ECHO_N "(cached) $ECHO_C" >&6 12168else 12169 12170 cat >conftest.$ac_ext <<_ACEOF 12171/* confdefs.h. */ 12172_ACEOF 12173cat confdefs.h >>conftest.$ac_ext 12174cat >>conftest.$ac_ext <<_ACEOF 12175/* end confdefs.h. */ 12176 12177#include <stdlib.h> 12178#include <iconv.h> 12179extern 12180#ifdef __cplusplus 12181"C" 12182#endif 12183#if defined(__STDC__) || defined(__cplusplus) 12184size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12185#else 12186size_t iconv(); 12187#endif 12188 12189int 12190main () 12191{ 12192 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197rm -f conftest.$ac_objext 12198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12199 (eval $ac_compile) 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && 12206 { ac_try='test -z "$ac_c_werror_flag" 12207 || test ! -s conftest.err' 12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12209 (eval $ac_try) 2>&5 12210 ac_status=$? 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12212 (exit $ac_status); }; } && 12213 { ac_try='test -s conftest.$ac_objext' 12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12215 (eval $ac_try) 2>&5 12216 ac_status=$? 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; }; then 12219 am_cv_proto_iconv_arg1="" 12220else 12221 echo "$as_me: failed program was:" >&5 12222sed 's/^/| /' conftest.$ac_ext >&5 12223 12224am_cv_proto_iconv_arg1="const" 12225fi 12226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12227 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 12228fi 12229 12230 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12231 echo "$as_me:$LINENO: result: ${ac_t:- 12232 }$am_cv_proto_iconv" >&5 12233echo "${ECHO_T}${ac_t:- 12234 }$am_cv_proto_iconv" >&6 12235 12236cat >>confdefs.h <<_ACEOF 12237#define ICONV_CONST $am_cv_proto_iconv_arg1 12238_ACEOF 12239 12240 fi 12241 12242 12243 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 12244echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 12245if test "${am_cv_langinfo_codeset+set}" = set; then 12246 echo $ECHO_N "(cached) $ECHO_C" >&6 12247else 12248 cat >conftest.$ac_ext <<_ACEOF 12249/* confdefs.h. */ 12250_ACEOF 12251cat confdefs.h >>conftest.$ac_ext 12252cat >>conftest.$ac_ext <<_ACEOF 12253/* end confdefs.h. */ 12254#include <langinfo.h> 12255int 12256main () 12257{ 12258char* cs = nl_langinfo(CODESET); 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263rm -f conftest.$ac_objext conftest$ac_exeext 12264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12265 (eval $ac_link) 2>conftest.er1 12266 ac_status=$? 12267 grep -v '^ *+' conftest.er1 >conftest.err 12268 rm -f conftest.er1 12269 cat conftest.err >&5 12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12271 (exit $ac_status); } && 12272 { ac_try='test -z "$ac_c_werror_flag" 12273 || test ! -s conftest.err' 12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12275 (eval $ac_try) 2>&5 12276 ac_status=$? 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); }; } && 12279 { ac_try='test -s conftest$ac_exeext' 12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12281 (eval $ac_try) 2>&5 12282 ac_status=$? 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); }; }; then 12285 am_cv_langinfo_codeset=yes 12286else 12287 echo "$as_me: failed program was:" >&5 12288sed 's/^/| /' conftest.$ac_ext >&5 12289 12290am_cv_langinfo_codeset=no 12291fi 12292rm -f conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294 12295fi 12296echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 12297echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 12298 if test $am_cv_langinfo_codeset = yes; then 12299 12300cat >>confdefs.h <<\_ACEOF 12301#define HAVE_LANGINFO_CODESET 1 12302_ACEOF 12303 12304 fi 12305 12306 if test $ac_cv_header_locale_h = yes; then 12307 12308 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 12309echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 12310if test "${am_cv_val_LC_MESSAGES+set}" = set; then 12311 echo $ECHO_N "(cached) $ECHO_C" >&6 12312else 12313 cat >conftest.$ac_ext <<_ACEOF 12314/* confdefs.h. */ 12315_ACEOF 12316cat confdefs.h >>conftest.$ac_ext 12317cat >>conftest.$ac_ext <<_ACEOF 12318/* end confdefs.h. */ 12319#include <locale.h> 12320int 12321main () 12322{ 12323return LC_MESSAGES 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328rm -f conftest.$ac_objext conftest$ac_exeext 12329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12330 (eval $ac_link) 2>conftest.er1 12331 ac_status=$? 12332 grep -v '^ *+' conftest.er1 >conftest.err 12333 rm -f conftest.er1 12334 cat conftest.err >&5 12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12336 (exit $ac_status); } && 12337 { ac_try='test -z "$ac_c_werror_flag" 12338 || test ! -s conftest.err' 12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12340 (eval $ac_try) 2>&5 12341 ac_status=$? 12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12343 (exit $ac_status); }; } && 12344 { ac_try='test -s conftest$ac_exeext' 12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12346 (eval $ac_try) 2>&5 12347 ac_status=$? 12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12349 (exit $ac_status); }; }; then 12350 am_cv_val_LC_MESSAGES=yes 12351else 12352 echo "$as_me: failed program was:" >&5 12353sed 's/^/| /' conftest.$ac_ext >&5 12354 12355am_cv_val_LC_MESSAGES=no 12356fi 12357rm -f conftest.err conftest.$ac_objext \ 12358 conftest$ac_exeext conftest.$ac_ext 12359fi 12360echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 12361echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 12362 if test $am_cv_val_LC_MESSAGES = yes; then 12363 12364cat >>confdefs.h <<\_ACEOF 12365#define HAVE_LC_MESSAGES 1 12366_ACEOF 12367 12368 fi 12369 12370 fi 12371 12372 for ac_prog in bison 12373do 12374 # Extract the first word of "$ac_prog", so it can be a program name with args. 12375set dummy $ac_prog; ac_word=$2 12376echo "$as_me:$LINENO: checking for $ac_word" >&5 12377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12378if test "${ac_cv_prog_INTLBISON+set}" = set; then 12379 echo $ECHO_N "(cached) $ECHO_C" >&6 12380else 12381 if test -n "$INTLBISON"; then 12382 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 12383else 12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12385for as_dir in $PATH 12386do 12387 IFS=$as_save_IFS 12388 test -z "$as_dir" && as_dir=. 12389 for ac_exec_ext in '' $ac_executable_extensions; do 12390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12391 ac_cv_prog_INTLBISON="$ac_prog" 12392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12393 break 2 12394 fi 12395done 12396done 12397 12398fi 12399fi 12400INTLBISON=$ac_cv_prog_INTLBISON 12401if test -n "$INTLBISON"; then 12402 echo "$as_me:$LINENO: result: $INTLBISON" >&5 12403echo "${ECHO_T}$INTLBISON" >&6 12404else 12405 echo "$as_me:$LINENO: result: no" >&5 12406echo "${ECHO_T}no" >&6 12407fi 12408 12409 test -n "$INTLBISON" && break 12410done 12411 12412 if test -z "$INTLBISON"; then 12413 ac_verc_fail=yes 12414 else 12415 echo "$as_me:$LINENO: checking version of bison" >&5 12416echo $ECHO_N "checking version of bison... $ECHO_C" >&6 12417 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 12418 case $ac_prog_version in 12419 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 12420 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 12421 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 12422 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 12423 esac 12424 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 12425echo "${ECHO_T}$ac_prog_version" >&6 12426 fi 12427 if test $ac_verc_fail = yes; then 12428 INTLBISON=: 12429 fi 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12447echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12448 # Check whether --enable-nls or --disable-nls was given. 12449if test "${enable_nls+set}" = set; then 12450 enableval="$enable_nls" 12451 USE_NLS=$enableval 12452else 12453 USE_NLS=yes 12454fi; 12455 echo "$as_me:$LINENO: result: $USE_NLS" >&5 12456echo "${ECHO_T}$USE_NLS" >&6 12457 12458 12459 12460 12461 BUILD_INCLUDED_LIBINTL=no 12462 USE_INCLUDED_LIBINTL=no 12463 12464 LIBINTL= 12465 LTLIBINTL= 12466 POSUB= 12467 12468 if test "$USE_NLS" = "yes"; then 12469 gt_use_preinstalled_gnugettext=no 12470 12471 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 12472echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 12473 12474# Check whether --with-included-gettext or --without-included-gettext was given. 12475if test "${with_included_gettext+set}" = set; then 12476 withval="$with_included_gettext" 12477 nls_cv_force_use_gnu_gettext=$withval 12478else 12479 nls_cv_force_use_gnu_gettext=no 12480fi; 12481 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 12482echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 12483 12484 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 12485 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 12486 12487 12488 12489 12490 12491 12492 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 12493echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 12494if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 12495 echo $ECHO_N "(cached) $ECHO_C" >&6 12496else 12497 cat >conftest.$ac_ext <<_ACEOF 12498/* confdefs.h. */ 12499_ACEOF 12500cat confdefs.h >>conftest.$ac_ext 12501cat >>conftest.$ac_ext <<_ACEOF 12502/* end confdefs.h. */ 12503#include <libintl.h> 12504extern int _nl_msg_cat_cntr; 12505extern int *_nl_domain_bindings; 12506int 12507main () 12508{ 12509bindtextdomain ("", ""); 12510return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515rm -f conftest.$ac_objext conftest$ac_exeext 12516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12517 (eval $ac_link) 2>conftest.er1 12518 ac_status=$? 12519 grep -v '^ *+' conftest.er1 >conftest.err 12520 rm -f conftest.er1 12521 cat conftest.err >&5 12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12523 (exit $ac_status); } && 12524 { ac_try='test -z "$ac_c_werror_flag" 12525 || test ! -s conftest.err' 12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12527 (eval $ac_try) 2>&5 12528 ac_status=$? 12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12530 (exit $ac_status); }; } && 12531 { ac_try='test -s conftest$ac_exeext' 12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12533 (eval $ac_try) 2>&5 12534 ac_status=$? 12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12536 (exit $ac_status); }; }; then 12537 gt_cv_func_gnugettext1_libc=yes 12538else 12539 echo "$as_me: failed program was:" >&5 12540sed 's/^/| /' conftest.$ac_ext >&5 12541 12542gt_cv_func_gnugettext1_libc=no 12543fi 12544rm -f conftest.err conftest.$ac_objext \ 12545 conftest$ac_exeext conftest.$ac_ext 12546fi 12547echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 12548echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 12549 12550 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 12551 12552 12553 12554 use_additional=yes 12555 12556 acl_save_prefix="$prefix" 12557 prefix="$acl_final_prefix" 12558 acl_save_exec_prefix="$exec_prefix" 12559 exec_prefix="$acl_final_exec_prefix" 12560 12561 eval additional_includedir=\"$includedir\" 12562 eval additional_libdir=\"$libdir\" 12563 12564 exec_prefix="$acl_save_exec_prefix" 12565 prefix="$acl_save_prefix" 12566 12567 12568# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 12569if test "${with_libintl_prefix+set}" = set; then 12570 withval="$with_libintl_prefix" 12571 12572 if test "X$withval" = "Xno"; then 12573 use_additional=no 12574 else 12575 if test "X$withval" = "X"; then 12576 12577 acl_save_prefix="$prefix" 12578 prefix="$acl_final_prefix" 12579 acl_save_exec_prefix="$exec_prefix" 12580 exec_prefix="$acl_final_exec_prefix" 12581 12582 eval additional_includedir=\"$includedir\" 12583 eval additional_libdir=\"$libdir\" 12584 12585 exec_prefix="$acl_save_exec_prefix" 12586 prefix="$acl_save_prefix" 12587 12588 else 12589 additional_includedir="$withval/include" 12590 additional_libdir="$withval/lib" 12591 fi 12592 fi 12593 12594fi; 12595 LIBINTL= 12596 LTLIBINTL= 12597 INCINTL= 12598 rpathdirs= 12599 ltrpathdirs= 12600 names_already_handled= 12601 names_next_round='intl ' 12602 while test -n "$names_next_round"; do 12603 names_this_round="$names_next_round" 12604 names_next_round= 12605 for name in $names_this_round; do 12606 already_handled= 12607 for n in $names_already_handled; do 12608 if test "$n" = "$name"; then 12609 already_handled=yes 12610 break 12611 fi 12612 done 12613 if test -z "$already_handled"; then 12614 names_already_handled="$names_already_handled $name" 12615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12616 eval value=\"\$HAVE_LIB$uppername\" 12617 if test -n "$value"; then 12618 if test "$value" = yes; then 12619 eval value=\"\$LIB$uppername\" 12620 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12621 eval value=\"\$LTLIB$uppername\" 12622 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12623 else 12624 : 12625 fi 12626 else 12627 found_dir= 12628 found_la= 12629 found_so= 12630 found_a= 12631 if test $use_additional = yes; then 12632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 12633 found_dir="$additional_libdir" 12634 found_so="$additional_libdir/lib$name.$shlibext" 12635 if test -f "$additional_libdir/lib$name.la"; then 12636 found_la="$additional_libdir/lib$name.la" 12637 fi 12638 else 12639 if test -f "$additional_libdir/lib$name.$libext"; then 12640 found_dir="$additional_libdir" 12641 found_a="$additional_libdir/lib$name.$libext" 12642 if test -f "$additional_libdir/lib$name.la"; then 12643 found_la="$additional_libdir/lib$name.la" 12644 fi 12645 fi 12646 fi 12647 fi 12648 if test "X$found_dir" = "X"; then 12649 for x in $LDFLAGS $LTLIBINTL; do 12650 12651 acl_save_prefix="$prefix" 12652 prefix="$acl_final_prefix" 12653 acl_save_exec_prefix="$exec_prefix" 12654 exec_prefix="$acl_final_exec_prefix" 12655 eval x=\"$x\" 12656 exec_prefix="$acl_save_exec_prefix" 12657 prefix="$acl_save_prefix" 12658 12659 case "$x" in 12660 -L*) 12661 dir=`echo "X$x" | sed -e 's/^X-L//'` 12662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 12663 found_dir="$dir" 12664 found_so="$dir/lib$name.$shlibext" 12665 if test -f "$dir/lib$name.la"; then 12666 found_la="$dir/lib$name.la" 12667 fi 12668 else 12669 if test -f "$dir/lib$name.$libext"; then 12670 found_dir="$dir" 12671 found_a="$dir/lib$name.$libext" 12672 if test -f "$dir/lib$name.la"; then 12673 found_la="$dir/lib$name.la" 12674 fi 12675 fi 12676 fi 12677 ;; 12678 esac 12679 if test "X$found_dir" != "X"; then 12680 break 12681 fi 12682 done 12683 fi 12684 if test "X$found_dir" != "X"; then 12685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12686 if test "X$found_so" != "X"; then 12687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12688 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12689 else 12690 haveit= 12691 for x in $ltrpathdirs; do 12692 if test "X$x" = "X$found_dir"; then 12693 haveit=yes 12694 break 12695 fi 12696 done 12697 if test -z "$haveit"; then 12698 ltrpathdirs="$ltrpathdirs $found_dir" 12699 fi 12700 if test "$hardcode_direct" = yes; then 12701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12702 else 12703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12704 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12705 haveit= 12706 for x in $rpathdirs; do 12707 if test "X$x" = "X$found_dir"; then 12708 haveit=yes 12709 break 12710 fi 12711 done 12712 if test -z "$haveit"; then 12713 rpathdirs="$rpathdirs $found_dir" 12714 fi 12715 else 12716 haveit= 12717 for x in $LDFLAGS $LIBINTL; do 12718 12719 acl_save_prefix="$prefix" 12720 prefix="$acl_final_prefix" 12721 acl_save_exec_prefix="$exec_prefix" 12722 exec_prefix="$acl_final_exec_prefix" 12723 eval x=\"$x\" 12724 exec_prefix="$acl_save_exec_prefix" 12725 prefix="$acl_save_prefix" 12726 12727 if test "X$x" = "X-L$found_dir"; then 12728 haveit=yes 12729 break 12730 fi 12731 done 12732 if test -z "$haveit"; then 12733 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12734 fi 12735 if test "$hardcode_minus_L" != no; then 12736 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12737 else 12738 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12739 fi 12740 fi 12741 fi 12742 fi 12743 else 12744 if test "X$found_a" != "X"; then 12745 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12746 else 12747 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12748 fi 12749 fi 12750 additional_includedir= 12751 case "$found_dir" in 12752 */lib | */lib/) 12753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12754 additional_includedir="$basedir/include" 12755 ;; 12756 esac 12757 if test "X$additional_includedir" != "X"; then 12758 if test "X$additional_includedir" != "X/usr/include"; then 12759 haveit= 12760 if test "X$additional_includedir" = "X/usr/local/include"; then 12761 if test -n "$GCC"; then 12762 case $host_os in 12763 linux*) haveit=yes;; 12764 esac 12765 fi 12766 fi 12767 if test -z "$haveit"; then 12768 for x in $CPPFLAGS $INCINTL; do 12769 12770 acl_save_prefix="$prefix" 12771 prefix="$acl_final_prefix" 12772 acl_save_exec_prefix="$exec_prefix" 12773 exec_prefix="$acl_final_exec_prefix" 12774 eval x=\"$x\" 12775 exec_prefix="$acl_save_exec_prefix" 12776 prefix="$acl_save_prefix" 12777 12778 if test "X$x" = "X-I$additional_includedir"; then 12779 haveit=yes 12780 break 12781 fi 12782 done 12783 if test -z "$haveit"; then 12784 if test -d "$additional_includedir"; then 12785 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12786 fi 12787 fi 12788 fi 12789 fi 12790 fi 12791 if test -n "$found_la"; then 12792 save_libdir="$libdir" 12793 case "$found_la" in 12794 */* | *\\*) . "$found_la" ;; 12795 *) . "./$found_la" ;; 12796 esac 12797 libdir="$save_libdir" 12798 for dep in $dependency_libs; do 12799 case "$dep" in 12800 -L*) 12801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12802 if test "X$additional_libdir" != "X/usr/lib"; then 12803 haveit= 12804 if test "X$additional_libdir" = "X/usr/local/lib"; then 12805 if test -n "$GCC"; then 12806 case $host_os in 12807 linux*) haveit=yes;; 12808 esac 12809 fi 12810 fi 12811 if test -z "$haveit"; then 12812 haveit= 12813 for x in $LDFLAGS $LIBINTL; do 12814 12815 acl_save_prefix="$prefix" 12816 prefix="$acl_final_prefix" 12817 acl_save_exec_prefix="$exec_prefix" 12818 exec_prefix="$acl_final_exec_prefix" 12819 eval x=\"$x\" 12820 exec_prefix="$acl_save_exec_prefix" 12821 prefix="$acl_save_prefix" 12822 12823 if test "X$x" = "X-L$additional_libdir"; then 12824 haveit=yes 12825 break 12826 fi 12827 done 12828 if test -z "$haveit"; then 12829 if test -d "$additional_libdir"; then 12830 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12831 fi 12832 fi 12833 haveit= 12834 for x in $LDFLAGS $LTLIBINTL; do 12835 12836 acl_save_prefix="$prefix" 12837 prefix="$acl_final_prefix" 12838 acl_save_exec_prefix="$exec_prefix" 12839 exec_prefix="$acl_final_exec_prefix" 12840 eval x=\"$x\" 12841 exec_prefix="$acl_save_exec_prefix" 12842 prefix="$acl_save_prefix" 12843 12844 if test "X$x" = "X-L$additional_libdir"; then 12845 haveit=yes 12846 break 12847 fi 12848 done 12849 if test -z "$haveit"; then 12850 if test -d "$additional_libdir"; then 12851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 12852 fi 12853 fi 12854 fi 12855 fi 12856 ;; 12857 -R*) 12858 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12859 if test "$enable_rpath" != no; then 12860 haveit= 12861 for x in $rpathdirs; do 12862 if test "X$x" = "X$dir"; then 12863 haveit=yes 12864 break 12865 fi 12866 done 12867 if test -z "$haveit"; then 12868 rpathdirs="$rpathdirs $dir" 12869 fi 12870 haveit= 12871 for x in $ltrpathdirs; do 12872 if test "X$x" = "X$dir"; then 12873 haveit=yes 12874 break 12875 fi 12876 done 12877 if test -z "$haveit"; then 12878 ltrpathdirs="$ltrpathdirs $dir" 12879 fi 12880 fi 12881 ;; 12882 -l*) 12883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12884 ;; 12885 *.la) 12886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12887 ;; 12888 *) 12889 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 12890 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 12891 ;; 12892 esac 12893 done 12894 fi 12895 else 12896 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12897 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 12898 fi 12899 fi 12900 fi 12901 done 12902 done 12903 if test "X$rpathdirs" != "X"; then 12904 if test -n "$hardcode_libdir_separator"; then 12905 alldirs= 12906 for found_dir in $rpathdirs; do 12907 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12908 done 12909 acl_save_libdir="$libdir" 12910 libdir="$alldirs" 12911 eval flag=\"$hardcode_libdir_flag_spec\" 12912 libdir="$acl_save_libdir" 12913 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12914 else 12915 for found_dir in $rpathdirs; do 12916 acl_save_libdir="$libdir" 12917 libdir="$found_dir" 12918 eval flag=\"$hardcode_libdir_flag_spec\" 12919 libdir="$acl_save_libdir" 12920 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12921 done 12922 fi 12923 fi 12924 if test "X$ltrpathdirs" != "X"; then 12925 for found_dir in $ltrpathdirs; do 12926 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 12927 done 12928 fi 12929 12930 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 12931echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 12932if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 12933 echo $ECHO_N "(cached) $ECHO_C" >&6 12934else 12935 gt_save_CPPFLAGS="$CPPFLAGS" 12936 CPPFLAGS="$CPPFLAGS $INCINTL" 12937 gt_save_LIBS="$LIBS" 12938 LIBS="$LIBS $LIBINTL" 12939 cat >conftest.$ac_ext <<_ACEOF 12940/* confdefs.h. */ 12941_ACEOF 12942cat confdefs.h >>conftest.$ac_ext 12943cat >>conftest.$ac_ext <<_ACEOF 12944/* end confdefs.h. */ 12945#include <libintl.h> 12946extern int _nl_msg_cat_cntr; 12947extern 12948#ifdef __cplusplus 12949"C" 12950#endif 12951const char *_nl_expand_alias (); 12952int 12953main () 12954{ 12955bindtextdomain ("", ""); 12956return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961rm -f conftest.$ac_objext conftest$ac_exeext 12962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12963 (eval $ac_link) 2>conftest.er1 12964 ac_status=$? 12965 grep -v '^ *+' conftest.er1 >conftest.err 12966 rm -f conftest.er1 12967 cat conftest.err >&5 12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12969 (exit $ac_status); } && 12970 { ac_try='test -z "$ac_c_werror_flag" 12971 || test ! -s conftest.err' 12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12973 (eval $ac_try) 2>&5 12974 ac_status=$? 12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12976 (exit $ac_status); }; } && 12977 { ac_try='test -s conftest$ac_exeext' 12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12979 (eval $ac_try) 2>&5 12980 ac_status=$? 12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12982 (exit $ac_status); }; }; then 12983 gt_cv_func_gnugettext1_libintl=yes 12984else 12985 echo "$as_me: failed program was:" >&5 12986sed 's/^/| /' conftest.$ac_ext >&5 12987 12988gt_cv_func_gnugettext1_libintl=no 12989fi 12990rm -f conftest.err conftest.$ac_objext \ 12991 conftest$ac_exeext conftest.$ac_ext 12992 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 12993 LIBS="$LIBS $LIBICONV" 12994 cat >conftest.$ac_ext <<_ACEOF 12995/* confdefs.h. */ 12996_ACEOF 12997cat confdefs.h >>conftest.$ac_ext 12998cat >>conftest.$ac_ext <<_ACEOF 12999/* end confdefs.h. */ 13000#include <libintl.h> 13001extern int _nl_msg_cat_cntr; 13002extern 13003#ifdef __cplusplus 13004"C" 13005#endif 13006const char *_nl_expand_alias (); 13007int 13008main () 13009{ 13010bindtextdomain ("", ""); 13011return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 13012 ; 13013 return 0; 13014} 13015_ACEOF 13016rm -f conftest.$ac_objext conftest$ac_exeext 13017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13018 (eval $ac_link) 2>conftest.er1 13019 ac_status=$? 13020 grep -v '^ *+' conftest.er1 >conftest.err 13021 rm -f conftest.er1 13022 cat conftest.err >&5 13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13024 (exit $ac_status); } && 13025 { ac_try='test -z "$ac_c_werror_flag" 13026 || test ! -s conftest.err' 13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13028 (eval $ac_try) 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); }; } && 13032 { ac_try='test -s conftest$ac_exeext' 13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13034 (eval $ac_try) 2>&5 13035 ac_status=$? 13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13037 (exit $ac_status); }; }; then 13038 LIBINTL="$LIBINTL $LIBICONV" 13039 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13040 gt_cv_func_gnugettext1_libintl=yes 13041 13042else 13043 echo "$as_me: failed program was:" >&5 13044sed 's/^/| /' conftest.$ac_ext >&5 13045 13046fi 13047rm -f conftest.err conftest.$ac_objext \ 13048 conftest$ac_exeext conftest.$ac_ext 13049 fi 13050 CPPFLAGS="$gt_save_CPPFLAGS" 13051 LIBS="$gt_save_LIBS" 13052fi 13053echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 13054echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 13055 fi 13056 13057 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 13058 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 13059 && test "$PACKAGE" != gettext-runtime \ 13060 && test "$PACKAGE" != gettext-tools; }; then 13061 gt_use_preinstalled_gnugettext=yes 13062 else 13063 LIBINTL= 13064 LTLIBINTL= 13065 INCINTL= 13066 fi 13067 13068 13069 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 13070 nls_cv_use_gnu_gettext=yes 13071 fi 13072 fi 13073 13074 if test "$nls_cv_use_gnu_gettext" = "yes"; then 13075 BUILD_INCLUDED_LIBINTL=yes 13076 USE_INCLUDED_LIBINTL=yes 13077 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 13078 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 13079 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 13080 fi 13081 13082 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13083 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13084 CATOBJEXT=.gmo 13085 fi 13086 13087 13088 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13089 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13090 13091cat >>confdefs.h <<\_ACEOF 13092#define ENABLE_NLS 1 13093_ACEOF 13094 13095 else 13096 USE_NLS=no 13097 fi 13098 fi 13099 13100 echo "$as_me:$LINENO: checking whether to use NLS" >&5 13101echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 13102 echo "$as_me:$LINENO: result: $USE_NLS" >&5 13103echo "${ECHO_T}$USE_NLS" >&6 13104 if test "$USE_NLS" = "yes"; then 13105 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 13106echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 13107 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13108 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13109 gt_source="external libintl" 13110 else 13111 gt_source="libc" 13112 fi 13113 else 13114 gt_source="included intl directory" 13115 fi 13116 echo "$as_me:$LINENO: result: $gt_source" >&5 13117echo "${ECHO_T}$gt_source" >&6 13118 fi 13119 13120 if test "$USE_NLS" = "yes"; then 13121 13122 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13123 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13124 echo "$as_me:$LINENO: checking how to link with libintl" >&5 13125echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 13126 echo "$as_me:$LINENO: result: $LIBINTL" >&5 13127echo "${ECHO_T}$LIBINTL" >&6 13128 13129 for element in $INCINTL; do 13130 haveit= 13131 for x in $CPPFLAGS; do 13132 13133 acl_save_prefix="$prefix" 13134 prefix="$acl_final_prefix" 13135 acl_save_exec_prefix="$exec_prefix" 13136 exec_prefix="$acl_final_exec_prefix" 13137 eval x=\"$x\" 13138 exec_prefix="$acl_save_exec_prefix" 13139 prefix="$acl_save_prefix" 13140 13141 if test "X$x" = "X$element"; then 13142 haveit=yes 13143 break 13144 fi 13145 done 13146 if test -z "$haveit"; then 13147 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13148 fi 13149 done 13150 13151 fi 13152 13153 13154cat >>confdefs.h <<\_ACEOF 13155#define HAVE_GETTEXT 1 13156_ACEOF 13157 13158 13159cat >>confdefs.h <<\_ACEOF 13160#define HAVE_DCGETTEXT 1 13161_ACEOF 13162 13163 fi 13164 13165 POSUB=po 13166 fi 13167 13168 13169 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 13170 BUILD_INCLUDED_LIBINTL=yes 13171 fi 13172 13173 13174 13175 13176 13177 nls_cv_header_intl= 13178 nls_cv_header_libgt= 13179 13180 DATADIRNAME=share 13181 13182 13183 INSTOBJEXT=.mo 13184 13185 13186 GENCAT=gencat 13187 13188 13189 if test "$USE_INCLUDED_LIBINTL" = yes; then 13190 INTLOBJS="\$(GETTOBJS)" 13191 fi 13192 13193 13194 INTL_LIBTOOL_SUFFIX_PREFIX= 13195 13196 13197 13198 INTLLIBS="$LIBINTL" 13199 13200 13201 13202 13203 13204 13205 13206 ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile" 13207 13208cat >confcache <<\_ACEOF 13209# This file is a shell script that caches the results of configure 13210# tests run on this system so they can be shared between configure 13211# scripts and configure runs, see configure's option --config-cache. 13212# It is not useful on other systems. If it contains results you don't 13213# want to keep, you may remove or edit it. 13214# 13215# config.status only pays attention to the cache file if you give it 13216# the --recheck option to rerun configure. 13217# 13218# `ac_cv_env_foo' variables (set or unset) will be overridden when 13219# loading this file, other *unset* `ac_cv_foo' will be assigned the 13220# following values. 13221 13222_ACEOF 13223 13224# The following way of writing the cache mishandles newlines in values, 13225# but we know of no workaround that is simple, portable, and efficient. 13226# So, don't put newlines in cache variables' values. 13227# Ultrix sh set writes to stderr and can't be redirected directly, 13228# and sets the high bit in the cache file unless we assign to the vars. 13229{ 13230 (set) 2>&1 | 13231 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13232 *ac_space=\ *) 13233 # `set' does not quote correctly, so add quotes (double-quote 13234 # substitution turns \\\\ into \\, and sed turns \\ into \). 13235 sed -n \ 13236 "s/'/'\\\\''/g; 13237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13238 ;; 13239 *) 13240 # `set' quotes correctly as required by POSIX, so do not add quotes. 13241 sed -n \ 13242 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13243 ;; 13244 esac; 13245} | 13246 sed ' 13247 t clear 13248 : clear 13249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13250 t end 13251 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13252 : end' >>confcache 13253if diff $cache_file confcache >/dev/null 2>&1; then :; else 13254 if test -w $cache_file; then 13255 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13256 cat confcache >$cache_file 13257 else 13258 echo "not updating unwritable cache $cache_file" 13259 fi 13260fi 13261rm -f confcache 13262 13263test "x$prefix" = xNONE && prefix=$ac_default_prefix 13264# Let make expand exec_prefix. 13265test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13266 13267# VPATH may cause trouble with some makes, so we remove $(srcdir), 13268# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13269# trailing colons and then remove the whole line if VPATH becomes empty 13270# (actually we leave an empty line to preserve line numbers). 13271if test "x$srcdir" = x.; then 13272 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13273s/:*\$(srcdir):*/:/; 13274s/:*\${srcdir}:*/:/; 13275s/:*@srcdir@:*/:/; 13276s/^\([^=]*=[ ]*\):*/\1/; 13277s/:*$//; 13278s/^[^=]*=[ ]*$//; 13279}' 13280fi 13281 13282DEFS=-DHAVE_CONFIG_H 13283 13284ac_libobjs= 13285ac_ltlibobjs= 13286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13287 # 1. Remove the extension, and $U if already installed. 13288 ac_i=`echo "$ac_i" | 13289 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13290 # 2. Add them. 13291 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13292 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13293done 13294LIBOBJS=$ac_libobjs 13295 13296LTLIBOBJS=$ac_ltlibobjs 13297 13298 13299if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13300 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13301Usually this means the macro was only invoked conditionally." >&5 13302echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13303Usually this means the macro was only invoked conditionally." >&2;} 13304 { (exit 1); exit 1; }; } 13305fi 13306if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13307 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13308Usually this means the macro was only invoked conditionally." >&5 13309echo "$as_me: error: conditional \"AMDEP\" was never defined. 13310Usually this means the macro was only invoked conditionally." >&2;} 13311 { (exit 1); exit 1; }; } 13312fi 13313if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13314 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13315Usually this means the macro was only invoked conditionally." >&5 13316echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13317Usually this means the macro was only invoked conditionally." >&2;} 13318 { (exit 1); exit 1; }; } 13319fi 13320if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then 13321 { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined. 13322Usually this means the macro was only invoked conditionally." >&5 13323echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined. 13324Usually this means the macro was only invoked conditionally." >&2;} 13325 { (exit 1); exit 1; }; } 13326fi 13327if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then 13328 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined. 13329Usually this means the macro was only invoked conditionally." >&5 13330echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined. 13331Usually this means the macro was only invoked conditionally." >&2;} 13332 { (exit 1); exit 1; }; } 13333fi 13334 13335: ${CONFIG_STATUS=./config.status} 13336ac_clean_files_save=$ac_clean_files 13337ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13338{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13339echo "$as_me: creating $CONFIG_STATUS" >&6;} 13340cat >$CONFIG_STATUS <<_ACEOF 13341#! $SHELL 13342# Generated by $as_me. 13343# Run this file to recreate the current configuration. 13344# Compiler output produced by configure, useful for debugging 13345# configure, is in config.log if it exists. 13346 13347debug=false 13348ac_cs_recheck=false 13349ac_cs_silent=false 13350SHELL=\${CONFIG_SHELL-$SHELL} 13351_ACEOF 13352 13353cat >>$CONFIG_STATUS <<\_ACEOF 13354## --------------------- ## 13355## M4sh Initialization. ## 13356## --------------------- ## 13357 13358# Be Bourne compatible 13359if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13360 emulate sh 13361 NULLCMD=: 13362 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13363 # is contrary to our usage. Disable this feature. 13364 alias -g '${1+"$@"}'='"$@"' 13365elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13366 set -o posix 13367fi 13368DUALCASE=1; export DUALCASE # for MKS sh 13369 13370# Support unset when possible. 13371if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13372 as_unset=unset 13373else 13374 as_unset=false 13375fi 13376 13377 13378# Work around bugs in pre-3.0 UWIN ksh. 13379$as_unset ENV MAIL MAILPATH 13380PS1='$ ' 13381PS2='> ' 13382PS4='+ ' 13383 13384# NLS nuisances. 13385for as_var in \ 13386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13388 LC_TELEPHONE LC_TIME 13389do 13390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13391 eval $as_var=C; export $as_var 13392 else 13393 $as_unset $as_var 13394 fi 13395done 13396 13397# Required to use basename. 13398if expr a : '\(a\)' >/dev/null 2>&1; then 13399 as_expr=expr 13400else 13401 as_expr=false 13402fi 13403 13404if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13405 as_basename=basename 13406else 13407 as_basename=false 13408fi 13409 13410 13411# Name of the executable. 13412as_me=`$as_basename "$0" || 13413$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13414 X"$0" : 'X\(//\)$' \| \ 13415 X"$0" : 'X\(/\)$' \| \ 13416 . : '\(.\)' 2>/dev/null || 13417echo X/"$0" | 13418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13419 /^X\/\(\/\/\)$/{ s//\1/; q; } 13420 /^X\/\(\/\).*/{ s//\1/; q; } 13421 s/.*/./; q'` 13422 13423 13424# PATH needs CR, and LINENO needs CR and PATH. 13425# Avoid depending upon Character Ranges. 13426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13429as_cr_digits='0123456789' 13430as_cr_alnum=$as_cr_Letters$as_cr_digits 13431 13432# The user is always right. 13433if test "${PATH_SEPARATOR+set}" != set; then 13434 echo "#! /bin/sh" >conf$$.sh 13435 echo "exit 0" >>conf$$.sh 13436 chmod +x conf$$.sh 13437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13438 PATH_SEPARATOR=';' 13439 else 13440 PATH_SEPARATOR=: 13441 fi 13442 rm -f conf$$.sh 13443fi 13444 13445 13446 as_lineno_1=$LINENO 13447 as_lineno_2=$LINENO 13448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13449 test "x$as_lineno_1" != "x$as_lineno_2" && 13450 test "x$as_lineno_3" = "x$as_lineno_2" || { 13451 # Find who we are. Look in the path if we contain no path at all 13452 # relative or not. 13453 case $0 in 13454 *[\\/]* ) as_myself=$0 ;; 13455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13456for as_dir in $PATH 13457do 13458 IFS=$as_save_IFS 13459 test -z "$as_dir" && as_dir=. 13460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13461done 13462 13463 ;; 13464 esac 13465 # We did not find ourselves, most probably we were run as `sh COMMAND' 13466 # in which case we are not to be found in the path. 13467 if test "x$as_myself" = x; then 13468 as_myself=$0 13469 fi 13470 if test ! -f "$as_myself"; then 13471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13472echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13473 { (exit 1); exit 1; }; } 13474 fi 13475 case $CONFIG_SHELL in 13476 '') 13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13478for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13479do 13480 IFS=$as_save_IFS 13481 test -z "$as_dir" && as_dir=. 13482 for as_base in sh bash ksh sh5; do 13483 case $as_dir in 13484 /*) 13485 if ("$as_dir/$as_base" -c ' 13486 as_lineno_1=$LINENO 13487 as_lineno_2=$LINENO 13488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13489 test "x$as_lineno_1" != "x$as_lineno_2" && 13490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13493 CONFIG_SHELL=$as_dir/$as_base 13494 export CONFIG_SHELL 13495 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13496 fi;; 13497 esac 13498 done 13499done 13500;; 13501 esac 13502 13503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13504 # uniformly replaced by the line number. The first 'sed' inserts a 13505 # line-number line before each line; the second 'sed' does the real 13506 # work. The second script uses 'N' to pair each line-number line 13507 # with the numbered line, and appends trailing '-' during 13508 # substitution so that $LINENO is not a special case at line end. 13509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13511 sed '=' <$as_myself | 13512 sed ' 13513 N 13514 s,$,-, 13515 : loop 13516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13517 t loop 13518 s,-$,, 13519 s,^['$as_cr_digits']*\n,, 13520 ' >$as_me.lineno && 13521 chmod +x $as_me.lineno || 13522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13523echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13524 { (exit 1); exit 1; }; } 13525 13526 # Don't try to exec as it changes $[0], causing all sort of problems 13527 # (the dirname of $[0] is not the place where we might find the 13528 # original and so on. Autoconf is especially sensible to this). 13529 . ./$as_me.lineno 13530 # Exit status is that of the last command. 13531 exit 13532} 13533 13534 13535case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13536 *c*,-n*) ECHO_N= ECHO_C=' 13537' ECHO_T=' ' ;; 13538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13540esac 13541 13542if expr a : '\(a\)' >/dev/null 2>&1; then 13543 as_expr=expr 13544else 13545 as_expr=false 13546fi 13547 13548rm -f conf$$ conf$$.exe conf$$.file 13549echo >conf$$.file 13550if ln -s conf$$.file conf$$ 2>/dev/null; then 13551 # We could just check for DJGPP; but this test a) works b) is more generic 13552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13553 if test -f conf$$.exe; then 13554 # Don't use ln at all; we don't have any links 13555 as_ln_s='cp -p' 13556 else 13557 as_ln_s='ln -s' 13558 fi 13559elif ln conf$$.file conf$$ 2>/dev/null; then 13560 as_ln_s=ln 13561else 13562 as_ln_s='cp -p' 13563fi 13564rm -f conf$$ conf$$.exe conf$$.file 13565 13566if mkdir -p . 2>/dev/null; then 13567 as_mkdir_p=: 13568else 13569 test -d ./-p && rmdir ./-p 13570 as_mkdir_p=false 13571fi 13572 13573as_executable_p="test -f" 13574 13575# Sed expression to map a string onto a valid CPP name. 13576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13577 13578# Sed expression to map a string onto a valid variable name. 13579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13580 13581 13582# IFS 13583# We need space, tab and new line, in precisely that order. 13584as_nl=' 13585' 13586IFS=" $as_nl" 13587 13588# CDPATH. 13589$as_unset CDPATH 13590 13591exec 6>&1 13592 13593# Open the log real soon, to keep \$[0] and so on meaningful, and to 13594# report actual input values of CONFIG_FILES etc. instead of their 13595# values after options handling. Logging --version etc. is OK. 13596exec 5>>config.log 13597{ 13598 echo 13599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13600## Running $as_me. ## 13601_ASBOX 13602} >&5 13603cat >&5 <<_CSEOF 13604 13605This file was extended by GNU Texinfo $as_me 4.8, which was 13606generated by GNU Autoconf 2.59. Invocation command line was 13607 13608 CONFIG_FILES = $CONFIG_FILES 13609 CONFIG_HEADERS = $CONFIG_HEADERS 13610 CONFIG_LINKS = $CONFIG_LINKS 13611 CONFIG_COMMANDS = $CONFIG_COMMANDS 13612 $ $0 $@ 13613 13614_CSEOF 13615echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13616echo >&5 13617_ACEOF 13618 13619# Files that config.status was made for. 13620if test -n "$ac_config_files"; then 13621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13622fi 13623 13624if test -n "$ac_config_headers"; then 13625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13626fi 13627 13628if test -n "$ac_config_links"; then 13629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13630fi 13631 13632if test -n "$ac_config_commands"; then 13633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13634fi 13635 13636cat >>$CONFIG_STATUS <<\_ACEOF 13637 13638ac_cs_usage="\ 13639\`$as_me' instantiates files from templates according to the 13640current configuration. 13641 13642Usage: $0 [OPTIONS] [FILE]... 13643 13644 -h, --help print this help, then exit 13645 -V, --version print version number, then exit 13646 -q, --quiet do not print progress messages 13647 -d, --debug don't remove temporary files 13648 --recheck update $as_me by reconfiguring in the same conditions 13649 --file=FILE[:TEMPLATE] 13650 instantiate the configuration file FILE 13651 --header=FILE[:TEMPLATE] 13652 instantiate the configuration header FILE 13653 13654Configuration files: 13655$config_files 13656 13657Configuration headers: 13658$config_headers 13659 13660Configuration commands: 13661$config_commands 13662 13663Report bugs to <bug-autoconf@gnu.org>." 13664_ACEOF 13665 13666cat >>$CONFIG_STATUS <<_ACEOF 13667ac_cs_version="\\ 13668GNU Texinfo config.status 4.8 13669configured by $0, generated by GNU Autoconf 2.59, 13670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13671 13672Copyright (C) 2003 Free Software Foundation, Inc. 13673This config.status script is free software; the Free Software Foundation 13674gives unlimited permission to copy, distribute and modify it." 13675srcdir=$srcdir 13676INSTALL="$INSTALL" 13677_ACEOF 13678 13679cat >>$CONFIG_STATUS <<\_ACEOF 13680# If no file are specified by the user, then we need to provide default 13681# value. By we need to know if files were specified by the user. 13682ac_need_defaults=: 13683while test $# != 0 13684do 13685 case $1 in 13686 --*=*) 13687 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13689 ac_shift=: 13690 ;; 13691 -*) 13692 ac_option=$1 13693 ac_optarg=$2 13694 ac_shift=shift 13695 ;; 13696 *) # This is not an option, so the user has probably given explicit 13697 # arguments. 13698 ac_option=$1 13699 ac_need_defaults=false;; 13700 esac 13701 13702 case $ac_option in 13703 # Handling of the options. 13704_ACEOF 13705cat >>$CONFIG_STATUS <<\_ACEOF 13706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13707 ac_cs_recheck=: ;; 13708 --version | --vers* | -V ) 13709 echo "$ac_cs_version"; exit 0 ;; 13710 --he | --h) 13711 # Conflict between --help and --header 13712 { { echo "$as_me:$LINENO: error: ambiguous option: $1 13713Try \`$0 --help' for more information." >&5 13714echo "$as_me: error: ambiguous option: $1 13715Try \`$0 --help' for more information." >&2;} 13716 { (exit 1); exit 1; }; };; 13717 --help | --hel | -h ) 13718 echo "$ac_cs_usage"; exit 0 ;; 13719 --debug | --d* | -d ) 13720 debug=: ;; 13721 --file | --fil | --fi | --f ) 13722 $ac_shift 13723 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13724 ac_need_defaults=false;; 13725 --header | --heade | --head | --hea ) 13726 $ac_shift 13727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13728 ac_need_defaults=false;; 13729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13730 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13731 ac_cs_silent=: ;; 13732 13733 # This is an error. 13734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13735Try \`$0 --help' for more information." >&5 13736echo "$as_me: error: unrecognized option: $1 13737Try \`$0 --help' for more information." >&2;} 13738 { (exit 1); exit 1; }; } ;; 13739 13740 *) ac_config_targets="$ac_config_targets $1" ;; 13741 13742 esac 13743 shift 13744done 13745 13746ac_configure_extra_args= 13747 13748if $ac_cs_silent; then 13749 exec 6>/dev/null 13750 ac_configure_extra_args="$ac_configure_extra_args --silent" 13751fi 13752 13753_ACEOF 13754cat >>$CONFIG_STATUS <<_ACEOF 13755if \$ac_cs_recheck; then 13756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13758fi 13759 13760_ACEOF 13761 13762cat >>$CONFIG_STATUS <<_ACEOF 13763# 13764# INIT-COMMANDS section. 13765# 13766 13767AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13768# Capture the value of obsolete ALL_LINGUAS because we need it to compute 13769 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 13770 # from automake. 13771 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13772 # Capture the value of LINGUAS because we need it to compute CATALOGS. 13773 LINGUAS="${LINGUAS-%UNSET%}" 13774 13775 13776_ACEOF 13777 13778 13779 13780cat >>$CONFIG_STATUS <<\_ACEOF 13781for ac_config_target in $ac_config_targets 13782do 13783 case "$ac_config_target" in 13784 # Handling of arguments. 13785 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13786 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13787 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 13788 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 13789 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13790 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 13791 "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;; 13792 "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;; 13793 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13794 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 13795 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13796 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13797 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 13798 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13799echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13800 { (exit 1); exit 1; }; };; 13801 esac 13802done 13803 13804# If the user did not use the arguments to specify the items to instantiate, 13805# then the envvar interface is used. Set only those that are not. 13806# We use the long form for the default assignment because of an extremely 13807# bizarre bug on SunOS 4.1.3. 13808if $ac_need_defaults; then 13809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13812fi 13813 13814# Have a temporary directory for convenience. Make it in the build tree 13815# simply because there is no reason to put it here, and in addition, 13816# creating and moving files from /tmp can sometimes cause problems. 13817# Create a temporary directory, and hook for its removal unless debugging. 13818$debug || 13819{ 13820 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13821 trap '{ (exit 1); exit 1; }' 1 2 13 15 13822} 13823 13824# Create a (secure) tmp directory for tmp files. 13825 13826{ 13827 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13828 test -n "$tmp" && test -d "$tmp" 13829} || 13830{ 13831 tmp=./confstat$$-$RANDOM 13832 (umask 077 && mkdir $tmp) 13833} || 13834{ 13835 echo "$me: cannot create a temporary directory in ." >&2 13836 { (exit 1); exit 1; } 13837} 13838 13839_ACEOF 13840 13841cat >>$CONFIG_STATUS <<_ACEOF 13842 13843# 13844# CONFIG_FILES section. 13845# 13846 13847# No need to generate the scripts if there are no CONFIG_FILES. 13848# This happens for instance when ./config.status config.h 13849if test -n "\$CONFIG_FILES"; then 13850 # Protect against being on the right side of a sed subst in config.status. 13851 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13852 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13853s,@SHELL@,$SHELL,;t t 13854s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13855s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13856s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13857s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13858s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13859s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13860s,@exec_prefix@,$exec_prefix,;t t 13861s,@prefix@,$prefix,;t t 13862s,@program_transform_name@,$program_transform_name,;t t 13863s,@bindir@,$bindir,;t t 13864s,@sbindir@,$sbindir,;t t 13865s,@libexecdir@,$libexecdir,;t t 13866s,@datadir@,$datadir,;t t 13867s,@sysconfdir@,$sysconfdir,;t t 13868s,@sharedstatedir@,$sharedstatedir,;t t 13869s,@localstatedir@,$localstatedir,;t t 13870s,@libdir@,$libdir,;t t 13871s,@includedir@,$includedir,;t t 13872s,@oldincludedir@,$oldincludedir,;t t 13873s,@infodir@,$infodir,;t t 13874s,@mandir@,$mandir,;t t 13875s,@build_alias@,$build_alias,;t t 13876s,@host_alias@,$host_alias,;t t 13877s,@target_alias@,$target_alias,;t t 13878s,@DEFS@,$DEFS,;t t 13879s,@ECHO_C@,$ECHO_C,;t t 13880s,@ECHO_N@,$ECHO_N,;t t 13881s,@ECHO_T@,$ECHO_T,;t t 13882s,@LIBS@,$LIBS,;t t 13883s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13884s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13885s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13886s,@CYGPATH_W@,$CYGPATH_W,;t t 13887s,@PACKAGE@,$PACKAGE,;t t 13888s,@VERSION@,$VERSION,;t t 13889s,@ACLOCAL@,$ACLOCAL,;t t 13890s,@AUTOCONF@,$AUTOCONF,;t t 13891s,@AUTOMAKE@,$AUTOMAKE,;t t 13892s,@AUTOHEADER@,$AUTOHEADER,;t t 13893s,@MAKEINFO@,$MAKEINFO,;t t 13894s,@install_sh@,$install_sh,;t t 13895s,@STRIP@,$STRIP,;t t 13896s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13897s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 13898s,@mkdir_p@,$mkdir_p,;t t 13899s,@AWK@,$AWK,;t t 13900s,@SET_MAKE@,$SET_MAKE,;t t 13901s,@am__leading_dot@,$am__leading_dot,;t t 13902s,@AMTAR@,$AMTAR,;t t 13903s,@am__tar@,$am__tar,;t t 13904s,@am__untar@,$am__untar,;t t 13905s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 13906s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 13907s,@MAINT@,$MAINT,;t t 13908s,@CC@,$CC,;t t 13909s,@CFLAGS@,$CFLAGS,;t t 13910s,@LDFLAGS@,$LDFLAGS,;t t 13911s,@CPPFLAGS@,$CPPFLAGS,;t t 13912s,@ac_ct_CC@,$ac_ct_CC,;t t 13913s,@EXEEXT@,$EXEEXT,;t t 13914s,@OBJEXT@,$OBJEXT,;t t 13915s,@DEPDIR@,$DEPDIR,;t t 13916s,@am__include@,$am__include,;t t 13917s,@am__quote@,$am__quote,;t t 13918s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 13919s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 13920s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 13921s,@CCDEPMODE@,$CCDEPMODE,;t t 13922s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 13923s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 13924s,@CPP@,$CPP,;t t 13925s,@EGREP@,$EGREP,;t t 13926s,@RANLIB@,$RANLIB,;t t 13927s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13928s,@HELP2MAN@,$HELP2MAN,;t t 13929s,@ALLOCA@,$ALLOCA,;t t 13930s,@LIBOBJS@,$LIBOBJS,;t t 13931s,@build@,$build,;t t 13932s,@build_cpu@,$build_cpu,;t t 13933s,@build_vendor@,$build_vendor,;t t 13934s,@build_os@,$build_os,;t t 13935s,@native_tools@,$native_tools,;t t 13936s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t 13937s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t 13938s,@TERMLIBS@,$TERMLIBS,;t t 13939s,@host@,$host,;t t 13940s,@host_cpu@,$host_cpu,;t t 13941s,@host_vendor@,$host_vendor,;t t 13942s,@host_os@,$host_os,;t t 13943s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t 13944s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t 13945s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 13946s,@USE_NLS@,$USE_NLS,;t t 13947s,@MSGFMT@,$MSGFMT,;t t 13948s,@GMSGFMT@,$GMSGFMT,;t t 13949s,@XGETTEXT@,$XGETTEXT,;t t 13950s,@MSGMERGE@,$MSGMERGE,;t t 13951s,@GLIBC21@,$GLIBC21,;t t 13952s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 13953s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 13954s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 13955s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 13956s,@LIBICONV@,$LIBICONV,;t t 13957s,@LTLIBICONV@,$LTLIBICONV,;t t 13958s,@INTLBISON@,$INTLBISON,;t t 13959s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 13960s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 13961s,@CATOBJEXT@,$CATOBJEXT,;t t 13962s,@DATADIRNAME@,$DATADIRNAME,;t t 13963s,@INSTOBJEXT@,$INSTOBJEXT,;t t 13964s,@GENCAT@,$GENCAT,;t t 13965s,@INTLOBJS@,$INTLOBJS,;t t 13966s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 13967s,@INTLLIBS@,$INTLLIBS,;t t 13968s,@LIBINTL@,$LIBINTL,;t t 13969s,@LTLIBINTL@,$LTLIBINTL,;t t 13970s,@POSUB@,$POSUB,;t t 13971s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13972CEOF 13973 13974_ACEOF 13975 13976 cat >>$CONFIG_STATUS <<\_ACEOF 13977 # Split the substitutions into bite-sized pieces for seds with 13978 # small command number limits, like on Digital OSF/1 and HP-UX. 13979 ac_max_sed_lines=48 13980 ac_sed_frag=1 # Number of current file. 13981 ac_beg=1 # First line for current file. 13982 ac_end=$ac_max_sed_lines # Line after last line for current file. 13983 ac_more_lines=: 13984 ac_sed_cmds= 13985 while $ac_more_lines; do 13986 if test $ac_beg -gt 1; then 13987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13988 else 13989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13990 fi 13991 if test ! -s $tmp/subs.frag; then 13992 ac_more_lines=false 13993 else 13994 # The purpose of the label and of the branching condition is to 13995 # speed up the sed processing (if there are no `@' at all, there 13996 # is no need to browse any of the substitutions). 13997 # These are the two extra sed commands mentioned above. 13998 (echo ':t 13999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14000 if test -z "$ac_sed_cmds"; then 14001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14002 else 14003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14004 fi 14005 ac_sed_frag=`expr $ac_sed_frag + 1` 14006 ac_beg=$ac_end 14007 ac_end=`expr $ac_end + $ac_max_sed_lines` 14008 fi 14009 done 14010 if test -z "$ac_sed_cmds"; then 14011 ac_sed_cmds=cat 14012 fi 14013fi # test -n "$CONFIG_FILES" 14014 14015_ACEOF 14016cat >>$CONFIG_STATUS <<\_ACEOF 14017for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14019 case $ac_file in 14020 - | *:- | *:-:* ) # input from stdin 14021 cat >$tmp/stdin 14022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14026 * ) ac_file_in=$ac_file.in ;; 14027 esac 14028 14029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14030 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14032 X"$ac_file" : 'X\(//\)[^/]' \| \ 14033 X"$ac_file" : 'X\(//\)$' \| \ 14034 X"$ac_file" : 'X\(/\)' \| \ 14035 . : '\(.\)' 2>/dev/null || 14036echo X"$ac_file" | 14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14038 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14039 /^X\(\/\/\)$/{ s//\1/; q; } 14040 /^X\(\/\).*/{ s//\1/; q; } 14041 s/.*/./; q'` 14042 { if $as_mkdir_p; then 14043 mkdir -p "$ac_dir" 14044 else 14045 as_dir="$ac_dir" 14046 as_dirs= 14047 while test ! -d "$as_dir"; do 14048 as_dirs="$as_dir $as_dirs" 14049 as_dir=`(dirname "$as_dir") 2>/dev/null || 14050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14051 X"$as_dir" : 'X\(//\)[^/]' \| \ 14052 X"$as_dir" : 'X\(//\)$' \| \ 14053 X"$as_dir" : 'X\(/\)' \| \ 14054 . : '\(.\)' 2>/dev/null || 14055echo X"$as_dir" | 14056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14057 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14058 /^X\(\/\/\)$/{ s//\1/; q; } 14059 /^X\(\/\).*/{ s//\1/; q; } 14060 s/.*/./; q'` 14061 done 14062 test ! -n "$as_dirs" || mkdir $as_dirs 14063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14064echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14065 { (exit 1); exit 1; }; }; } 14066 14067 ac_builddir=. 14068 14069if test "$ac_dir" != .; then 14070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14071 # A "../" for each directory in $ac_dir_suffix. 14072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14073else 14074 ac_dir_suffix= ac_top_builddir= 14075fi 14076 14077case $srcdir in 14078 .) # No --srcdir option. We are building in place. 14079 ac_srcdir=. 14080 if test -z "$ac_top_builddir"; then 14081 ac_top_srcdir=. 14082 else 14083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14084 fi ;; 14085 [\\/]* | ?:[\\/]* ) # Absolute path. 14086 ac_srcdir=$srcdir$ac_dir_suffix; 14087 ac_top_srcdir=$srcdir ;; 14088 *) # Relative path. 14089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14090 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14091esac 14092 14093# Do not use `cd foo && pwd` to compute absolute paths, because 14094# the directories may not exist. 14095case `pwd` in 14096.) ac_abs_builddir="$ac_dir";; 14097*) 14098 case "$ac_dir" in 14099 .) ac_abs_builddir=`pwd`;; 14100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14101 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14102 esac;; 14103esac 14104case $ac_abs_builddir in 14105.) ac_abs_top_builddir=${ac_top_builddir}.;; 14106*) 14107 case ${ac_top_builddir}. in 14108 .) ac_abs_top_builddir=$ac_abs_builddir;; 14109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14111 esac;; 14112esac 14113case $ac_abs_builddir in 14114.) ac_abs_srcdir=$ac_srcdir;; 14115*) 14116 case $ac_srcdir in 14117 .) ac_abs_srcdir=$ac_abs_builddir;; 14118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14120 esac;; 14121esac 14122case $ac_abs_builddir in 14123.) ac_abs_top_srcdir=$ac_top_srcdir;; 14124*) 14125 case $ac_top_srcdir in 14126 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14129 esac;; 14130esac 14131 14132 14133 case $INSTALL in 14134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14136 esac 14137 14138 if test x"$ac_file" != x-; then 14139 { echo "$as_me:$LINENO: creating $ac_file" >&5 14140echo "$as_me: creating $ac_file" >&6;} 14141 rm -f "$ac_file" 14142 fi 14143 # Let's still pretend it is `configure' which instantiates (i.e., don't 14144 # use $as_me), people would be surprised to read: 14145 # /* config.h. Generated by config.status. */ 14146 if test x"$ac_file" = x-; then 14147 configure_input= 14148 else 14149 configure_input="$ac_file. " 14150 fi 14151 configure_input=$configure_input"Generated from `echo $ac_file_in | 14152 sed 's,.*/,,'` by configure." 14153 14154 # First look for the input files in the build tree, otherwise in the 14155 # src tree. 14156 ac_file_inputs=`IFS=: 14157 for f in $ac_file_in; do 14158 case $f in 14159 -) echo $tmp/stdin ;; 14160 [\\/$]*) 14161 # Absolute (can't be DOS-style, as IFS=:) 14162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14163echo "$as_me: error: cannot find input file: $f" >&2;} 14164 { (exit 1); exit 1; }; } 14165 echo "$f";; 14166 *) # Relative 14167 if test -f "$f"; then 14168 # Build tree 14169 echo "$f" 14170 elif test -f "$srcdir/$f"; then 14171 # Source tree 14172 echo "$srcdir/$f" 14173 else 14174 # /dev/null tree 14175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14176echo "$as_me: error: cannot find input file: $f" >&2;} 14177 { (exit 1); exit 1; }; } 14178 fi;; 14179 esac 14180 done` || { (exit 1); exit 1; } 14181_ACEOF 14182cat >>$CONFIG_STATUS <<_ACEOF 14183 sed "$ac_vpsub 14184$extrasub 14185_ACEOF 14186cat >>$CONFIG_STATUS <<\_ACEOF 14187:t 14188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14189s,@configure_input@,$configure_input,;t t 14190s,@srcdir@,$ac_srcdir,;t t 14191s,@abs_srcdir@,$ac_abs_srcdir,;t t 14192s,@top_srcdir@,$ac_top_srcdir,;t t 14193s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14194s,@builddir@,$ac_builddir,;t t 14195s,@abs_builddir@,$ac_abs_builddir,;t t 14196s,@top_builddir@,$ac_top_builddir,;t t 14197s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14198s,@INSTALL@,$ac_INSTALL,;t t 14199" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14200 rm -f $tmp/stdin 14201 if test x"$ac_file" != x-; then 14202 mv $tmp/out $ac_file 14203 else 14204 cat $tmp/out 14205 rm -f $tmp/out 14206 fi 14207 14208done 14209_ACEOF 14210cat >>$CONFIG_STATUS <<\_ACEOF 14211 14212# 14213# CONFIG_HEADER section. 14214# 14215 14216# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14217# NAME is the cpp macro being defined and VALUE is the value it is being given. 14218# 14219# ac_d sets the value in "#define NAME VALUE" lines. 14220ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14221ac_dB='[ ].*$,\1#\2' 14222ac_dC=' ' 14223ac_dD=',;t' 14224# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14225ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14226ac_uB='$,\1#\2define\3' 14227ac_uC=' ' 14228ac_uD=',;t' 14229 14230for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14232 case $ac_file in 14233 - | *:- | *:-:* ) # input from stdin 14234 cat >$tmp/stdin 14235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14239 * ) ac_file_in=$ac_file.in ;; 14240 esac 14241 14242 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14243echo "$as_me: creating $ac_file" >&6;} 14244 14245 # First look for the input files in the build tree, otherwise in the 14246 # src tree. 14247 ac_file_inputs=`IFS=: 14248 for f in $ac_file_in; do 14249 case $f in 14250 -) echo $tmp/stdin ;; 14251 [\\/$]*) 14252 # Absolute (can't be DOS-style, as IFS=:) 14253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14254echo "$as_me: error: cannot find input file: $f" >&2;} 14255 { (exit 1); exit 1; }; } 14256 # Do quote $f, to prevent DOS paths from being IFS'd. 14257 echo "$f";; 14258 *) # Relative 14259 if test -f "$f"; then 14260 # Build tree 14261 echo "$f" 14262 elif test -f "$srcdir/$f"; then 14263 # Source tree 14264 echo "$srcdir/$f" 14265 else 14266 # /dev/null tree 14267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14268echo "$as_me: error: cannot find input file: $f" >&2;} 14269 { (exit 1); exit 1; }; } 14270 fi;; 14271 esac 14272 done` || { (exit 1); exit 1; } 14273 # Remove the trailing spaces. 14274 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14275 14276_ACEOF 14277 14278# Transform confdefs.h into two sed scripts, `conftest.defines' and 14279# `conftest.undefs', that substitutes the proper values into 14280# config.h.in to produce config.h. The first handles `#define' 14281# templates, and the second `#undef' templates. 14282# And first: Protect against being on the right side of a sed subst in 14283# config.status. Protect against being in an unquoted here document 14284# in config.status. 14285rm -f conftest.defines conftest.undefs 14286# Using a here document instead of a string reduces the quoting nightmare. 14287# Putting comments in sed scripts is not portable. 14288# 14289# `end' is used to avoid that the second main sed command (meant for 14290# 0-ary CPP macros) applies to n-ary macro definitions. 14291# See the Autoconf documentation for `clear'. 14292cat >confdef2sed.sed <<\_ACEOF 14293s/[\\&,]/\\&/g 14294s,[\\$`],\\&,g 14295t clear 14296: clear 14297s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14298t end 14299s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14300: end 14301_ACEOF 14302# If some macros were called several times there might be several times 14303# the same #defines, which is useless. Nevertheless, we may not want to 14304# sort them, since we want the *last* AC-DEFINE to be honored. 14305uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14306sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14307rm -f confdef2sed.sed 14308 14309# This sed command replaces #undef with comments. This is necessary, for 14310# example, in the case of _POSIX_SOURCE, which is predefined and required 14311# on some systems where configure will not decide to define it. 14312cat >>conftest.undefs <<\_ACEOF 14313s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14314_ACEOF 14315 14316# Break up conftest.defines because some shells have a limit on the size 14317# of here documents, and old seds have small limits too (100 cmds). 14318echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14319echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14320echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14321echo ' :' >>$CONFIG_STATUS 14322rm -f conftest.tail 14323while grep . conftest.defines >/dev/null 14324do 14325 # Write a limited-size here document to $tmp/defines.sed. 14326 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14327 # Speed up: don't consider the non `#define' lines. 14328 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14329 # Work around the forget-to-reset-the-flag bug. 14330 echo 't clr' >>$CONFIG_STATUS 14331 echo ': clr' >>$CONFIG_STATUS 14332 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14333 echo 'CEOF 14334 sed -f $tmp/defines.sed $tmp/in >$tmp/out 14335 rm -f $tmp/in 14336 mv $tmp/out $tmp/in 14337' >>$CONFIG_STATUS 14338 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14339 rm -f conftest.defines 14340 mv conftest.tail conftest.defines 14341done 14342rm -f conftest.defines 14343echo ' fi # grep' >>$CONFIG_STATUS 14344echo >>$CONFIG_STATUS 14345 14346# Break up conftest.undefs because some shells have a limit on the size 14347# of here documents, and old seds have small limits too (100 cmds). 14348echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14349rm -f conftest.tail 14350while grep . conftest.undefs >/dev/null 14351do 14352 # Write a limited-size here document to $tmp/undefs.sed. 14353 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14354 # Speed up: don't consider the non `#undef' 14355 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14356 # Work around the forget-to-reset-the-flag bug. 14357 echo 't clr' >>$CONFIG_STATUS 14358 echo ': clr' >>$CONFIG_STATUS 14359 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14360 echo 'CEOF 14361 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14362 rm -f $tmp/in 14363 mv $tmp/out $tmp/in 14364' >>$CONFIG_STATUS 14365 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14366 rm -f conftest.undefs 14367 mv conftest.tail conftest.undefs 14368done 14369rm -f conftest.undefs 14370 14371cat >>$CONFIG_STATUS <<\_ACEOF 14372 # Let's still pretend it is `configure' which instantiates (i.e., don't 14373 # use $as_me), people would be surprised to read: 14374 # /* config.h. Generated by config.status. */ 14375 if test x"$ac_file" = x-; then 14376 echo "/* Generated by configure. */" >$tmp/config.h 14377 else 14378 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14379 fi 14380 cat $tmp/in >>$tmp/config.h 14381 rm -f $tmp/in 14382 if test x"$ac_file" != x-; then 14383 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14384 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14385echo "$as_me: $ac_file is unchanged" >&6;} 14386 else 14387 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14389 X"$ac_file" : 'X\(//\)[^/]' \| \ 14390 X"$ac_file" : 'X\(//\)$' \| \ 14391 X"$ac_file" : 'X\(/\)' \| \ 14392 . : '\(.\)' 2>/dev/null || 14393echo X"$ac_file" | 14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14395 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14396 /^X\(\/\/\)$/{ s//\1/; q; } 14397 /^X\(\/\).*/{ s//\1/; q; } 14398 s/.*/./; q'` 14399 { if $as_mkdir_p; then 14400 mkdir -p "$ac_dir" 14401 else 14402 as_dir="$ac_dir" 14403 as_dirs= 14404 while test ! -d "$as_dir"; do 14405 as_dirs="$as_dir $as_dirs" 14406 as_dir=`(dirname "$as_dir") 2>/dev/null || 14407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14408 X"$as_dir" : 'X\(//\)[^/]' \| \ 14409 X"$as_dir" : 'X\(//\)$' \| \ 14410 X"$as_dir" : 'X\(/\)' \| \ 14411 . : '\(.\)' 2>/dev/null || 14412echo X"$as_dir" | 14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14414 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14415 /^X\(\/\/\)$/{ s//\1/; q; } 14416 /^X\(\/\).*/{ s//\1/; q; } 14417 s/.*/./; q'` 14418 done 14419 test ! -n "$as_dirs" || mkdir $as_dirs 14420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14421echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14422 { (exit 1); exit 1; }; }; } 14423 14424 rm -f $ac_file 14425 mv $tmp/config.h $ac_file 14426 fi 14427 else 14428 cat $tmp/config.h 14429 rm -f $tmp/config.h 14430 fi 14431# Compute $ac_file's index in $config_headers. 14432_am_stamp_count=1 14433for _am_header in $config_headers :; do 14434 case $_am_header in 14435 $ac_file | $ac_file:* ) 14436 break ;; 14437 * ) 14438 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14439 esac 14440done 14441echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 14442$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14443 X$ac_file : 'X\(//\)[^/]' \| \ 14444 X$ac_file : 'X\(//\)$' \| \ 14445 X$ac_file : 'X\(/\)' \| \ 14446 . : '\(.\)' 2>/dev/null || 14447echo X$ac_file | 14448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14449 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14450 /^X\(\/\/\)$/{ s//\1/; q; } 14451 /^X\(\/\).*/{ s//\1/; q; } 14452 s/.*/./; q'`/stamp-h$_am_stamp_count 14453done 14454_ACEOF 14455cat >>$CONFIG_STATUS <<\_ACEOF 14456 14457# 14458# CONFIG_COMMANDS section. 14459# 14460for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14463 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 14464$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14465 X"$ac_dest" : 'X\(//\)[^/]' \| \ 14466 X"$ac_dest" : 'X\(//\)$' \| \ 14467 X"$ac_dest" : 'X\(/\)' \| \ 14468 . : '\(.\)' 2>/dev/null || 14469echo X"$ac_dest" | 14470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14471 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14472 /^X\(\/\/\)$/{ s//\1/; q; } 14473 /^X\(\/\).*/{ s//\1/; q; } 14474 s/.*/./; q'` 14475 { if $as_mkdir_p; then 14476 mkdir -p "$ac_dir" 14477 else 14478 as_dir="$ac_dir" 14479 as_dirs= 14480 while test ! -d "$as_dir"; do 14481 as_dirs="$as_dir $as_dirs" 14482 as_dir=`(dirname "$as_dir") 2>/dev/null || 14483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14484 X"$as_dir" : 'X\(//\)[^/]' \| \ 14485 X"$as_dir" : 'X\(//\)$' \| \ 14486 X"$as_dir" : 'X\(/\)' \| \ 14487 . : '\(.\)' 2>/dev/null || 14488echo X"$as_dir" | 14489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14490 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14491 /^X\(\/\/\)$/{ s//\1/; q; } 14492 /^X\(\/\).*/{ s//\1/; q; } 14493 s/.*/./; q'` 14494 done 14495 test ! -n "$as_dirs" || mkdir $as_dirs 14496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14497echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14498 { (exit 1); exit 1; }; }; } 14499 14500 ac_builddir=. 14501 14502if test "$ac_dir" != .; then 14503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14504 # A "../" for each directory in $ac_dir_suffix. 14505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14506else 14507 ac_dir_suffix= ac_top_builddir= 14508fi 14509 14510case $srcdir in 14511 .) # No --srcdir option. We are building in place. 14512 ac_srcdir=. 14513 if test -z "$ac_top_builddir"; then 14514 ac_top_srcdir=. 14515 else 14516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14517 fi ;; 14518 [\\/]* | ?:[\\/]* ) # Absolute path. 14519 ac_srcdir=$srcdir$ac_dir_suffix; 14520 ac_top_srcdir=$srcdir ;; 14521 *) # Relative path. 14522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14523 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14524esac 14525 14526# Do not use `cd foo && pwd` to compute absolute paths, because 14527# the directories may not exist. 14528case `pwd` in 14529.) ac_abs_builddir="$ac_dir";; 14530*) 14531 case "$ac_dir" in 14532 .) ac_abs_builddir=`pwd`;; 14533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14534 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14535 esac;; 14536esac 14537case $ac_abs_builddir in 14538.) ac_abs_top_builddir=${ac_top_builddir}.;; 14539*) 14540 case ${ac_top_builddir}. in 14541 .) ac_abs_top_builddir=$ac_abs_builddir;; 14542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14544 esac;; 14545esac 14546case $ac_abs_builddir in 14547.) ac_abs_srcdir=$ac_srcdir;; 14548*) 14549 case $ac_srcdir in 14550 .) ac_abs_srcdir=$ac_abs_builddir;; 14551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14553 esac;; 14554esac 14555case $ac_abs_builddir in 14556.) ac_abs_top_srcdir=$ac_top_srcdir;; 14557*) 14558 case $ac_top_srcdir in 14559 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14562 esac;; 14563esac 14564 14565 14566 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 14567echo "$as_me: executing $ac_dest commands" >&6;} 14568 case $ac_dest in 14569 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14570 # Strip MF so we end up with the name of the file. 14571 mf=`echo "$mf" | sed -e 's/:.*$//'` 14572 # Check whether this is an Automake generated Makefile or not. 14573 # We used to match only the files named `Makefile.in', but 14574 # some people rename them; so instead we look at the file content. 14575 # Grep'ing the first line is not enough: some people post-process 14576 # each Makefile.in and add a new line on top of each file to say so. 14577 # So let's grep whole file. 14578 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 14579 dirpart=`(dirname "$mf") 2>/dev/null || 14580$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14581 X"$mf" : 'X\(//\)[^/]' \| \ 14582 X"$mf" : 'X\(//\)$' \| \ 14583 X"$mf" : 'X\(/\)' \| \ 14584 . : '\(.\)' 2>/dev/null || 14585echo X"$mf" | 14586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14587 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14588 /^X\(\/\/\)$/{ s//\1/; q; } 14589 /^X\(\/\).*/{ s//\1/; q; } 14590 s/.*/./; q'` 14591 else 14592 continue 14593 fi 14594 # Extract the definition of DEPDIR, am__include, and am__quote 14595 # from the Makefile without running `make'. 14596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14597 test -z "$DEPDIR" && continue 14598 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14599 test -z "am__include" && continue 14600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14601 # When using ansi2knr, U may be empty or an underscore; expand it 14602 U=`sed -n 's/^U = //p' < "$mf"` 14603 # Find all dependency output files, they are included files with 14604 # $(DEPDIR) in their names. We invoke sed twice because it is the 14605 # simplest approach to changing $(DEPDIR) to its actual value in the 14606 # expansion. 14607 for file in `sed -n " 14608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14610 # Make sure the directory exists. 14611 test -f "$dirpart/$file" && continue 14612 fdir=`(dirname "$file") 2>/dev/null || 14613$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14614 X"$file" : 'X\(//\)[^/]' \| \ 14615 X"$file" : 'X\(//\)$' \| \ 14616 X"$file" : 'X\(/\)' \| \ 14617 . : '\(.\)' 2>/dev/null || 14618echo X"$file" | 14619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14620 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14621 /^X\(\/\/\)$/{ s//\1/; q; } 14622 /^X\(\/\).*/{ s//\1/; q; } 14623 s/.*/./; q'` 14624 { if $as_mkdir_p; then 14625 mkdir -p $dirpart/$fdir 14626 else 14627 as_dir=$dirpart/$fdir 14628 as_dirs= 14629 while test ! -d "$as_dir"; do 14630 as_dirs="$as_dir $as_dirs" 14631 as_dir=`(dirname "$as_dir") 2>/dev/null || 14632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14633 X"$as_dir" : 'X\(//\)[^/]' \| \ 14634 X"$as_dir" : 'X\(//\)$' \| \ 14635 X"$as_dir" : 'X\(/\)' \| \ 14636 . : '\(.\)' 2>/dev/null || 14637echo X"$as_dir" | 14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14639 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14640 /^X\(\/\/\)$/{ s//\1/; q; } 14641 /^X\(\/\).*/{ s//\1/; q; } 14642 s/.*/./; q'` 14643 done 14644 test ! -n "$as_dirs" || mkdir $as_dirs 14645 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 14646echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 14647 { (exit 1); exit 1; }; }; } 14648 14649 # echo "creating $dirpart/$file" 14650 echo '# dummy' > "$dirpart/$file" 14651 done 14652done 14653 ;; 14654 default-1 ) 14655 for ac_file in $CONFIG_FILES; do 14656 # Support "outfile[:infile[:infile...]]" 14657 case "$ac_file" in 14658 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14659 esac 14660 # PO directories have a Makefile.in generated from Makefile.in.in. 14661 case "$ac_file" in */Makefile.in) 14662 # Adjust a relative srcdir. 14663 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14664 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14665 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14666 # In autoconf-2.13 it is called $ac_given_srcdir. 14667 # In autoconf-2.50 it is called $srcdir. 14668 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14669 case "$ac_given_srcdir" in 14670 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14671 /*) top_srcdir="$ac_given_srcdir" ;; 14672 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14673 esac 14674 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14675 rm -f "$ac_dir/POTFILES" 14676 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14677 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 14678 POMAKEFILEDEPS="POTFILES.in" 14679 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 14680 # on $ac_dir but don't depend on user-specified configuration 14681 # parameters. 14682 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14683 # The LINGUAS file contains the set of available languages. 14684 if test -n "$OBSOLETE_ALL_LINGUAS"; then 14685 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 14686 fi 14687 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14688 # Hide the ALL_LINGUAS assigment from automake. 14689 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14690 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14691 else 14692 # The set of available languages was given in configure.in. 14693 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14694 fi 14695 # Compute POFILES 14696 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 14697 # Compute UPDATEPOFILES 14698 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 14699 # Compute DUMMYPOFILES 14700 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 14701 # Compute GMOFILES 14702 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 14703 case "$ac_given_srcdir" in 14704 .) srcdirpre= ;; 14705 *) srcdirpre='$(srcdir)/' ;; 14706 esac 14707 POFILES= 14708 UPDATEPOFILES= 14709 DUMMYPOFILES= 14710 GMOFILES= 14711 for lang in $ALL_LINGUAS; do 14712 POFILES="$POFILES $srcdirpre$lang.po" 14713 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14714 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14715 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14716 done 14717 # CATALOGS depends on both $ac_dir and the user's LINGUAS 14718 # environment variable. 14719 INST_LINGUAS= 14720 if test -n "$ALL_LINGUAS"; then 14721 for presentlang in $ALL_LINGUAS; do 14722 useit=no 14723 if test "%UNSET%" != "$LINGUAS"; then 14724 desiredlanguages="$LINGUAS" 14725 else 14726 desiredlanguages="$ALL_LINGUAS" 14727 fi 14728 for desiredlang in $desiredlanguages; do 14729 # Use the presentlang catalog if desiredlang is 14730 # a. equal to presentlang, or 14731 # b. a variant of presentlang (because in this case, 14732 # presentlang can be used as a fallback for messages 14733 # which are not translated in the desiredlang catalog). 14734 case "$desiredlang" in 14735 "$presentlang"*) useit=yes;; 14736 esac 14737 done 14738 if test $useit = yes; then 14739 INST_LINGUAS="$INST_LINGUAS $presentlang" 14740 fi 14741 done 14742 fi 14743 CATALOGS= 14744 if test -n "$INST_LINGUAS"; then 14745 for lang in $INST_LINGUAS; do 14746 CATALOGS="$CATALOGS $lang.gmo" 14747 done 14748 fi 14749 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14750 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 14751 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14752 if test -f "$f"; then 14753 case "$f" in 14754 *.orig | *.bak | *~) ;; 14755 *) cat "$f" >> "$ac_dir/Makefile" ;; 14756 esac 14757 fi 14758 done 14759 fi 14760 ;; 14761 esac 14762 done ;; 14763 esac 14764done 14765_ACEOF 14766 14767cat >>$CONFIG_STATUS <<\_ACEOF 14768 14769{ (exit 0); exit 0; } 14770_ACEOF 14771chmod +x $CONFIG_STATUS 14772ac_clean_files=$ac_clean_files_save 14773 14774 14775# configure is writing to config.log, and then calls config.status. 14776# config.status does its own redirection, appending to config.log. 14777# Unfortunately, on DOS this fails, as config.log is still kept open 14778# by configure, so config.status won't be able to write to it; its 14779# output is simply discarded. So we exec the FD to /dev/null, 14780# effectively closing config.log, so it can be properly (re)opened and 14781# appended to by config.status. When coming back to configure, we 14782# need to make the FD available again. 14783if test "$no_create" != yes; then 14784 ac_cs_success=: 14785 ac_config_status_args= 14786 test "$silent" = yes && 14787 ac_config_status_args="$ac_config_status_args --quiet" 14788 exec 5>/dev/null 14789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14790 exec 5>>config.log 14791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14792 # would make configure fail if this is the last instruction. 14793 $ac_cs_success || { (exit 1); exit 1; } 14794fi 14795 14796