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 1774echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1775echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1776 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1777if test "${enable_maintainer_mode+set}" = set; then 1778 enableval="$enable_maintainer_mode" 1779 USE_MAINTAINER_MODE=$enableval 1780else 1781 USE_MAINTAINER_MODE=no 1782fi; 1783 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1784echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1785 1786 1787if test $USE_MAINTAINER_MODE = yes; then 1788 MAINTAINER_MODE_TRUE= 1789 MAINTAINER_MODE_FALSE='#' 1790else 1791 MAINTAINER_MODE_TRUE='#' 1792 MAINTAINER_MODE_FALSE= 1793fi 1794 1795 MAINT=$MAINTAINER_MODE_TRUE 1796 1797 1798 1799# When the Texinfo source is imported into other repositories 1800# (NetBSD and TeX Live), timestamps are generally not preserved. This 1801# causes lots of annoyance, so --enable-maintainer-mode. Sorry. 1802echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1803echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1804 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1805if test "${enable_maintainer_mode+set}" = set; then 1806 enableval="$enable_maintainer_mode" 1807 USE_MAINTAINER_MODE=$enableval 1808else 1809 USE_MAINTAINER_MODE=no 1810fi; 1811 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1812echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1813 1814 1815if test $USE_MAINTAINER_MODE = yes; then 1816 MAINTAINER_MODE_TRUE= 1817 MAINTAINER_MODE_FALSE='#' 1818else 1819 MAINTAINER_MODE_TRUE='#' 1820 MAINTAINER_MODE_FALSE= 1821fi 1822 1823 MAINT=$MAINTAINER_MODE_TRUE 1824 1825 1826 1827# Checks for programs. 1828ac_ext=c 1829ac_cpp='$CPP $CPPFLAGS' 1830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1832ac_compiler_gnu=$ac_cv_c_compiler_gnu 1833if test -n "$ac_tool_prefix"; then 1834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1835set dummy ${ac_tool_prefix}gcc; ac_word=$2 1836echo "$as_me:$LINENO: checking for $ac_word" >&5 1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1838if test "${ac_cv_prog_CC+set}" = set; then 1839 echo $ECHO_N "(cached) $ECHO_C" >&6 1840else 1841 if test -n "$CC"; then 1842 ac_cv_prog_CC="$CC" # Let the user override the test. 1843else 1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1845for as_dir in $PATH 1846do 1847 IFS=$as_save_IFS 1848 test -z "$as_dir" && as_dir=. 1849 for ac_exec_ext in '' $ac_executable_extensions; do 1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1851 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1853 break 2 1854 fi 1855done 1856done 1857 1858fi 1859fi 1860CC=$ac_cv_prog_CC 1861if test -n "$CC"; then 1862 echo "$as_me:$LINENO: result: $CC" >&5 1863echo "${ECHO_T}$CC" >&6 1864else 1865 echo "$as_me:$LINENO: result: no" >&5 1866echo "${ECHO_T}no" >&6 1867fi 1868 1869fi 1870if test -z "$ac_cv_prog_CC"; then 1871 ac_ct_CC=$CC 1872 # Extract the first word of "gcc", so it can be a program name with args. 1873set dummy gcc; ac_word=$2 1874echo "$as_me:$LINENO: checking for $ac_word" >&5 1875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1877 echo $ECHO_N "(cached) $ECHO_C" >&6 1878else 1879 if test -n "$ac_ct_CC"; then 1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1881else 1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1883for as_dir in $PATH 1884do 1885 IFS=$as_save_IFS 1886 test -z "$as_dir" && as_dir=. 1887 for ac_exec_ext in '' $ac_executable_extensions; do 1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1889 ac_cv_prog_ac_ct_CC="gcc" 1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1891 break 2 1892 fi 1893done 1894done 1895 1896fi 1897fi 1898ac_ct_CC=$ac_cv_prog_ac_ct_CC 1899if test -n "$ac_ct_CC"; then 1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1901echo "${ECHO_T}$ac_ct_CC" >&6 1902else 1903 echo "$as_me:$LINENO: result: no" >&5 1904echo "${ECHO_T}no" >&6 1905fi 1906 1907 CC=$ac_ct_CC 1908else 1909 CC="$ac_cv_prog_CC" 1910fi 1911 1912if test -z "$CC"; then 1913 if test -n "$ac_tool_prefix"; then 1914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1915set dummy ${ac_tool_prefix}cc; ac_word=$2 1916echo "$as_me:$LINENO: checking for $ac_word" >&5 1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1918if test "${ac_cv_prog_CC+set}" = set; then 1919 echo $ECHO_N "(cached) $ECHO_C" >&6 1920else 1921 if test -n "$CC"; then 1922 ac_cv_prog_CC="$CC" # Let the user override the test. 1923else 1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1925for as_dir in $PATH 1926do 1927 IFS=$as_save_IFS 1928 test -z "$as_dir" && as_dir=. 1929 for ac_exec_ext in '' $ac_executable_extensions; do 1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1931 ac_cv_prog_CC="${ac_tool_prefix}cc" 1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1933 break 2 1934 fi 1935done 1936done 1937 1938fi 1939fi 1940CC=$ac_cv_prog_CC 1941if test -n "$CC"; then 1942 echo "$as_me:$LINENO: result: $CC" >&5 1943echo "${ECHO_T}$CC" >&6 1944else 1945 echo "$as_me:$LINENO: result: no" >&5 1946echo "${ECHO_T}no" >&6 1947fi 1948 1949fi 1950if test -z "$ac_cv_prog_CC"; then 1951 ac_ct_CC=$CC 1952 # Extract the first word of "cc", so it can be a program name with args. 1953set dummy cc; ac_word=$2 1954echo "$as_me:$LINENO: checking for $ac_word" >&5 1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 if test -n "$ac_ct_CC"; then 1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1961else 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 ac_cv_prog_ac_ct_CC="cc" 1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 break 2 1972 fi 1973done 1974done 1975 1976fi 1977fi 1978ac_ct_CC=$ac_cv_prog_ac_ct_CC 1979if test -n "$ac_ct_CC"; then 1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1981echo "${ECHO_T}$ac_ct_CC" >&6 1982else 1983 echo "$as_me:$LINENO: result: no" >&5 1984echo "${ECHO_T}no" >&6 1985fi 1986 1987 CC=$ac_ct_CC 1988else 1989 CC="$ac_cv_prog_CC" 1990fi 1991 1992fi 1993if test -z "$CC"; then 1994 # Extract the first word of "cc", so it can be a program name with args. 1995set dummy cc; ac_word=$2 1996echo "$as_me:$LINENO: checking for $ac_word" >&5 1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1998if test "${ac_cv_prog_CC+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 if test -n "$CC"; then 2002 ac_cv_prog_CC="$CC" # Let the user override the test. 2003else 2004 ac_prog_rejected=no 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006for as_dir in $PATH 2007do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 for ac_exec_ext in '' $ac_executable_extensions; do 2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2013 ac_prog_rejected=yes 2014 continue 2015 fi 2016 ac_cv_prog_CC="cc" 2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2018 break 2 2019 fi 2020done 2021done 2022 2023if test $ac_prog_rejected = yes; then 2024 # We found a bogon in the path, so make sure we never use it. 2025 set dummy $ac_cv_prog_CC 2026 shift 2027 if test $# != 0; then 2028 # We chose a different compiler from the bogus one. 2029 # However, it has the same basename, so the bogon will be chosen 2030 # first if we set CC to just the basename; use the full file name. 2031 shift 2032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2033 fi 2034fi 2035fi 2036fi 2037CC=$ac_cv_prog_CC 2038if test -n "$CC"; then 2039 echo "$as_me:$LINENO: result: $CC" >&5 2040echo "${ECHO_T}$CC" >&6 2041else 2042 echo "$as_me:$LINENO: result: no" >&5 2043echo "${ECHO_T}no" >&6 2044fi 2045 2046fi 2047if test -z "$CC"; then 2048 if test -n "$ac_tool_prefix"; then 2049 for ac_prog in cl 2050 do 2051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2052set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2053echo "$as_me:$LINENO: checking for $ac_word" >&5 2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2055if test "${ac_cv_prog_CC+set}" = set; then 2056 echo $ECHO_N "(cached) $ECHO_C" >&6 2057else 2058 if test -n "$CC"; then 2059 ac_cv_prog_CC="$CC" # Let the user override the test. 2060else 2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2062for as_dir in $PATH 2063do 2064 IFS=$as_save_IFS 2065 test -z "$as_dir" && as_dir=. 2066 for ac_exec_ext in '' $ac_executable_extensions; do 2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2070 break 2 2071 fi 2072done 2073done 2074 2075fi 2076fi 2077CC=$ac_cv_prog_CC 2078if test -n "$CC"; then 2079 echo "$as_me:$LINENO: result: $CC" >&5 2080echo "${ECHO_T}$CC" >&6 2081else 2082 echo "$as_me:$LINENO: result: no" >&5 2083echo "${ECHO_T}no" >&6 2084fi 2085 2086 test -n "$CC" && break 2087 done 2088fi 2089if test -z "$CC"; then 2090 ac_ct_CC=$CC 2091 for ac_prog in cl 2092do 2093 # Extract the first word of "$ac_prog", so it can be a program name with args. 2094set dummy $ac_prog; ac_word=$2 2095echo "$as_me:$LINENO: checking for $ac_word" >&5 2096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2098 echo $ECHO_N "(cached) $ECHO_C" >&6 2099else 2100 if test -n "$ac_ct_CC"; then 2101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2102else 2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2104for as_dir in $PATH 2105do 2106 IFS=$as_save_IFS 2107 test -z "$as_dir" && as_dir=. 2108 for ac_exec_ext in '' $ac_executable_extensions; do 2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2110 ac_cv_prog_ac_ct_CC="$ac_prog" 2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2112 break 2 2113 fi 2114done 2115done 2116 2117fi 2118fi 2119ac_ct_CC=$ac_cv_prog_ac_ct_CC 2120if test -n "$ac_ct_CC"; then 2121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2122echo "${ECHO_T}$ac_ct_CC" >&6 2123else 2124 echo "$as_me:$LINENO: result: no" >&5 2125echo "${ECHO_T}no" >&6 2126fi 2127 2128 test -n "$ac_ct_CC" && break 2129done 2130 2131 CC=$ac_ct_CC 2132fi 2133 2134fi 2135 2136 2137test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2138See \`config.log' for more details." >&5 2139echo "$as_me: error: no acceptable C compiler found in \$PATH 2140See \`config.log' for more details." >&2;} 2141 { (exit 1); exit 1; }; } 2142 2143# Provide some information about the compiler. 2144echo "$as_me:$LINENO:" \ 2145 "checking for C compiler version" >&5 2146ac_compiler=`set X $ac_compile; echo $2` 2147{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2148 (eval $ac_compiler --version </dev/null >&5) 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); } 2152{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2153 (eval $ac_compiler -v </dev/null >&5) 2>&5 2154 ac_status=$? 2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2156 (exit $ac_status); } 2157{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2158 (eval $ac_compiler -V </dev/null >&5) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); } 2162 2163cat >conftest.$ac_ext <<_ACEOF 2164/* confdefs.h. */ 2165_ACEOF 2166cat confdefs.h >>conftest.$ac_ext 2167cat >>conftest.$ac_ext <<_ACEOF 2168/* end confdefs.h. */ 2169 2170int 2171main () 2172{ 2173 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178ac_clean_files_save=$ac_clean_files 2179ac_clean_files="$ac_clean_files a.out a.exe b.out" 2180# Try to create an executable without -o first, disregard a.out. 2181# It will help us diagnose broken compilers, and finding out an intuition 2182# of exeext. 2183echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2184echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2185ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2186if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2187 (eval $ac_link_default) 2>&5 2188 ac_status=$? 2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190 (exit $ac_status); }; then 2191 # Find the output, starting from the most likely. This scheme is 2192# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2193# resort. 2194 2195# Be careful to initialize this variable, since it used to be cached. 2196# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2197ac_cv_exeext= 2198# b.out is created by i960 compilers. 2199for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2200do 2201 test -f "$ac_file" || continue 2202 case $ac_file in 2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2204 ;; 2205 conftest.$ac_ext ) 2206 # This is the source file. 2207 ;; 2208 [ab].out ) 2209 # We found the default executable, but exeext='' is most 2210 # certainly right. 2211 break;; 2212 *.* ) 2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2214 # FIXME: I believe we export ac_cv_exeext for Libtool, 2215 # but it would be cool to find out if it's true. Does anybody 2216 # maintain Libtool? --akim. 2217 export ac_cv_exeext 2218 break;; 2219 * ) 2220 break;; 2221 esac 2222done 2223else 2224 echo "$as_me: failed program was:" >&5 2225sed 's/^/| /' conftest.$ac_ext >&5 2226 2227{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2228See \`config.log' for more details." >&5 2229echo "$as_me: error: C compiler cannot create executables 2230See \`config.log' for more details." >&2;} 2231 { (exit 77); exit 77; }; } 2232fi 2233 2234ac_exeext=$ac_cv_exeext 2235echo "$as_me:$LINENO: result: $ac_file" >&5 2236echo "${ECHO_T}$ac_file" >&6 2237 2238# Check the compiler produces executables we can run. If not, either 2239# the compiler is broken, or we cross compile. 2240echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2241echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2242# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2243# If not cross compiling, check that we can run a simple program. 2244if test "$cross_compiling" != yes; then 2245 if { ac_try='./$ac_file' 2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2247 (eval $ac_try) 2>&5 2248 ac_status=$? 2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2250 (exit $ac_status); }; }; then 2251 cross_compiling=no 2252 else 2253 if test "$cross_compiling" = maybe; then 2254 cross_compiling=yes 2255 else 2256 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2257If you meant to cross compile, use \`--host'. 2258See \`config.log' for more details." >&5 2259echo "$as_me: error: cannot run C compiled programs. 2260If you meant to cross compile, use \`--host'. 2261See \`config.log' for more details." >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264 fi 2265fi 2266echo "$as_me:$LINENO: result: yes" >&5 2267echo "${ECHO_T}yes" >&6 2268 2269rm -f a.out a.exe conftest$ac_cv_exeext b.out 2270ac_clean_files=$ac_clean_files_save 2271# Check the compiler produces executables we can run. If not, either 2272# the compiler is broken, or we cross compile. 2273echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2274echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2275echo "$as_me:$LINENO: result: $cross_compiling" >&5 2276echo "${ECHO_T}$cross_compiling" >&6 2277 2278echo "$as_me:$LINENO: checking for suffix of executables" >&5 2279echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2281 (eval $ac_link) 2>&5 2282 ac_status=$? 2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 (exit $ac_status); }; then 2285 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2287# work properly (i.e., refer to `conftest.exe'), while it won't with 2288# `rm'. 2289for ac_file in conftest.exe conftest conftest.*; do 2290 test -f "$ac_file" || continue 2291 case $ac_file in 2292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2294 export ac_cv_exeext 2295 break;; 2296 * ) break;; 2297 esac 2298done 2299else 2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2301See \`config.log' for more details." >&5 2302echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2303See \`config.log' for more details." >&2;} 2304 { (exit 1); exit 1; }; } 2305fi 2306 2307rm -f conftest$ac_cv_exeext 2308echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2309echo "${ECHO_T}$ac_cv_exeext" >&6 2310 2311rm -f conftest.$ac_ext 2312EXEEXT=$ac_cv_exeext 2313ac_exeext=$EXEEXT 2314echo "$as_me:$LINENO: checking for suffix of object files" >&5 2315echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2316if test "${ac_cv_objext+set}" = set; then 2317 echo $ECHO_N "(cached) $ECHO_C" >&6 2318else 2319 cat >conftest.$ac_ext <<_ACEOF 2320/* confdefs.h. */ 2321_ACEOF 2322cat confdefs.h >>conftest.$ac_ext 2323cat >>conftest.$ac_ext <<_ACEOF 2324/* end confdefs.h. */ 2325 2326int 2327main () 2328{ 2329 2330 ; 2331 return 0; 2332} 2333_ACEOF 2334rm -f conftest.o conftest.obj 2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2336 (eval $ac_compile) 2>&5 2337 ac_status=$? 2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2339 (exit $ac_status); }; then 2340 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2341 case $ac_file in 2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2344 break;; 2345 esac 2346done 2347else 2348 echo "$as_me: failed program was:" >&5 2349sed 's/^/| /' conftest.$ac_ext >&5 2350 2351{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2352See \`config.log' for more details." >&5 2353echo "$as_me: error: cannot compute suffix of object files: cannot compile 2354See \`config.log' for more details." >&2;} 2355 { (exit 1); exit 1; }; } 2356fi 2357 2358rm -f conftest.$ac_cv_objext conftest.$ac_ext 2359fi 2360echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2361echo "${ECHO_T}$ac_cv_objext" >&6 2362OBJEXT=$ac_cv_objext 2363ac_objext=$OBJEXT 2364echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2365echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2366if test "${ac_cv_c_compiler_gnu+set}" = set; then 2367 echo $ECHO_N "(cached) $ECHO_C" >&6 2368else 2369 cat >conftest.$ac_ext <<_ACEOF 2370/* confdefs.h. */ 2371_ACEOF 2372cat confdefs.h >>conftest.$ac_ext 2373cat >>conftest.$ac_ext <<_ACEOF 2374/* end confdefs.h. */ 2375 2376int 2377main () 2378{ 2379#ifndef __GNUC__ 2380 choke me 2381#endif 2382 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387rm -f conftest.$ac_objext 2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 (eval $ac_compile) 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" 2397 || test ! -s conftest.err' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; } && 2403 { ac_try='test -s conftest.$ac_objext' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 ac_compiler_gnu=yes 2410else 2411 echo "$as_me: failed program was:" >&5 2412sed 's/^/| /' conftest.$ac_ext >&5 2413 2414ac_compiler_gnu=no 2415fi 2416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2417ac_cv_c_compiler_gnu=$ac_compiler_gnu 2418 2419fi 2420echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2421echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2422GCC=`test $ac_compiler_gnu = yes && echo yes` 2423ac_test_CFLAGS=${CFLAGS+set} 2424ac_save_CFLAGS=$CFLAGS 2425CFLAGS="-g" 2426echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2427echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2428if test "${ac_cv_prog_cc_g+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430else 2431 cat >conftest.$ac_ext <<_ACEOF 2432/* confdefs.h. */ 2433_ACEOF 2434cat confdefs.h >>conftest.$ac_ext 2435cat >>conftest.$ac_ext <<_ACEOF 2436/* end confdefs.h. */ 2437 2438int 2439main () 2440{ 2441 2442 ; 2443 return 0; 2444} 2445_ACEOF 2446rm -f conftest.$ac_objext 2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2448 (eval $ac_compile) 2>conftest.er1 2449 ac_status=$? 2450 grep -v '^ *+' conftest.er1 >conftest.err 2451 rm -f conftest.er1 2452 cat conftest.err >&5 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); } && 2455 { ac_try='test -z "$ac_c_werror_flag" 2456 || test ! -s conftest.err' 2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2458 (eval $ac_try) 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; } && 2462 { ac_try='test -s conftest.$ac_objext' 2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2464 (eval $ac_try) 2>&5 2465 ac_status=$? 2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2467 (exit $ac_status); }; }; then 2468 ac_cv_prog_cc_g=yes 2469else 2470 echo "$as_me: failed program was:" >&5 2471sed 's/^/| /' conftest.$ac_ext >&5 2472 2473ac_cv_prog_cc_g=no 2474fi 2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2476fi 2477echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2478echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2479if test "$ac_test_CFLAGS" = set; then 2480 CFLAGS=$ac_save_CFLAGS 2481elif test $ac_cv_prog_cc_g = yes; then 2482 if test "$GCC" = yes; then 2483 CFLAGS="-g -O2" 2484 else 2485 CFLAGS="-g" 2486 fi 2487else 2488 if test "$GCC" = yes; then 2489 CFLAGS="-O2" 2490 else 2491 CFLAGS= 2492 fi 2493fi 2494echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2495echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2496if test "${ac_cv_prog_cc_stdc+set}" = set; then 2497 echo $ECHO_N "(cached) $ECHO_C" >&6 2498else 2499 ac_cv_prog_cc_stdc=no 2500ac_save_CC=$CC 2501cat >conftest.$ac_ext <<_ACEOF 2502/* confdefs.h. */ 2503_ACEOF 2504cat confdefs.h >>conftest.$ac_ext 2505cat >>conftest.$ac_ext <<_ACEOF 2506/* end confdefs.h. */ 2507#include <stdarg.h> 2508#include <stdio.h> 2509#include <sys/types.h> 2510#include <sys/stat.h> 2511/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2512struct buf { int x; }; 2513FILE * (*rcsopen) (struct buf *, struct stat *, int); 2514static char *e (p, i) 2515 char **p; 2516 int i; 2517{ 2518 return p[i]; 2519} 2520static char *f (char * (*g) (char **, int), char **p, ...) 2521{ 2522 char *s; 2523 va_list v; 2524 va_start (v,p); 2525 s = g (p, va_arg (v,int)); 2526 va_end (v); 2527 return s; 2528} 2529 2530/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2531 function prototypes and stuff, but not '\xHH' hex character constants. 2532 These don't provoke an error unfortunately, instead are silently treated 2533 as 'x'. The following induces an error, until -std1 is added to get 2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2535 array size at least. It's necessary to write '\x00'==0 to get something 2536 that's true only with -std1. */ 2537int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2538 2539int test (int i, double x); 2540struct s1 {int (*f) (int a);}; 2541struct s2 {int (*f) (double a);}; 2542int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2543int argc; 2544char **argv; 2545int 2546main () 2547{ 2548return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2549 ; 2550 return 0; 2551} 2552_ACEOF 2553# Don't try gcc -ansi; that turns off useful extensions and 2554# breaks some systems' header files. 2555# AIX -qlanglvl=ansi 2556# Ultrix and OSF/1 -std1 2557# HP-UX 10.20 and later -Ae 2558# HP-UX older versions -Aa -D_HPUX_SOURCE 2559# SVR4 -Xc -D__EXTENSIONS__ 2560for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2561do 2562 CC="$ac_save_CC $ac_arg" 2563 rm -f conftest.$ac_objext 2564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2565 (eval $ac_compile) 2>conftest.er1 2566 ac_status=$? 2567 grep -v '^ *+' conftest.er1 >conftest.err 2568 rm -f conftest.er1 2569 cat conftest.err >&5 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } && 2572 { ac_try='test -z "$ac_c_werror_flag" 2573 || test ! -s conftest.err' 2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2575 (eval $ac_try) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); }; } && 2579 { ac_try='test -s conftest.$ac_objext' 2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 (eval $ac_try) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; }; then 2585 ac_cv_prog_cc_stdc=$ac_arg 2586break 2587else 2588 echo "$as_me: failed program was:" >&5 2589sed 's/^/| /' conftest.$ac_ext >&5 2590 2591fi 2592rm -f conftest.err conftest.$ac_objext 2593done 2594rm -f conftest.$ac_ext conftest.$ac_objext 2595CC=$ac_save_CC 2596 2597fi 2598 2599case "x$ac_cv_prog_cc_stdc" in 2600 x|xno) 2601 echo "$as_me:$LINENO: result: none needed" >&5 2602echo "${ECHO_T}none needed" >&6 ;; 2603 *) 2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2605echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2606 CC="$CC $ac_cv_prog_cc_stdc" ;; 2607esac 2608 2609# Some people use a C++ compiler to compile C. Since we use `exit', 2610# in C++ we need to declare it. In case someone uses the same compiler 2611# for both compiling C and C++ we need to have the C++ compiler decide 2612# the declaration of exit, since it's the most demanding environment. 2613cat >conftest.$ac_ext <<_ACEOF 2614#ifndef __cplusplus 2615 choke me 2616#endif 2617_ACEOF 2618rm -f conftest.$ac_objext 2619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2620 (eval $ac_compile) 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } && 2627 { ac_try='test -z "$ac_c_werror_flag" 2628 || test ! -s conftest.err' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; } && 2634 { ac_try='test -s conftest.$ac_objext' 2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2636 (eval $ac_try) 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); }; }; then 2640 for ac_declaration in \ 2641 '' \ 2642 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2643 'extern "C" void std::exit (int); using std::exit;' \ 2644 'extern "C" void exit (int) throw ();' \ 2645 'extern "C" void exit (int);' \ 2646 'void exit (int);' 2647do 2648 cat >conftest.$ac_ext <<_ACEOF 2649/* confdefs.h. */ 2650_ACEOF 2651cat confdefs.h >>conftest.$ac_ext 2652cat >>conftest.$ac_ext <<_ACEOF 2653/* end confdefs.h. */ 2654$ac_declaration 2655#include <stdlib.h> 2656int 2657main () 2658{ 2659exit (42); 2660 ; 2661 return 0; 2662} 2663_ACEOF 2664rm -f conftest.$ac_objext 2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2666 (eval $ac_compile) 2>conftest.er1 2667 ac_status=$? 2668 grep -v '^ *+' conftest.er1 >conftest.err 2669 rm -f conftest.er1 2670 cat conftest.err >&5 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } && 2673 { ac_try='test -z "$ac_c_werror_flag" 2674 || test ! -s conftest.err' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; } && 2680 { ac_try='test -s conftest.$ac_objext' 2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2682 (eval $ac_try) 2>&5 2683 ac_status=$? 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); }; }; then 2686 : 2687else 2688 echo "$as_me: failed program was:" >&5 2689sed 's/^/| /' conftest.$ac_ext >&5 2690 2691continue 2692fi 2693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2694 cat >conftest.$ac_ext <<_ACEOF 2695/* confdefs.h. */ 2696_ACEOF 2697cat confdefs.h >>conftest.$ac_ext 2698cat >>conftest.$ac_ext <<_ACEOF 2699/* end confdefs.h. */ 2700$ac_declaration 2701int 2702main () 2703{ 2704exit (42); 2705 ; 2706 return 0; 2707} 2708_ACEOF 2709rm -f conftest.$ac_objext 2710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2711 (eval $ac_compile) 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && 2718 { ac_try='test -z "$ac_c_werror_flag" 2719 || test ! -s conftest.err' 2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2721 (eval $ac_try) 2>&5 2722 ac_status=$? 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); }; } && 2725 { ac_try='test -s conftest.$ac_objext' 2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2727 (eval $ac_try) 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); }; }; then 2731 break 2732else 2733 echo "$as_me: failed program was:" >&5 2734sed 's/^/| /' conftest.$ac_ext >&5 2735 2736fi 2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2738done 2739rm -f conftest* 2740if test -n "$ac_declaration"; then 2741 echo '#ifdef __cplusplus' >>confdefs.h 2742 echo $ac_declaration >>confdefs.h 2743 echo '#endif' >>confdefs.h 2744fi 2745 2746else 2747 echo "$as_me: failed program was:" >&5 2748sed 's/^/| /' conftest.$ac_ext >&5 2749 2750fi 2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2752ac_ext=c 2753ac_cpp='$CPP $CPPFLAGS' 2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2756ac_compiler_gnu=$ac_cv_c_compiler_gnu 2757DEPDIR="${am__leading_dot}deps" 2758 2759 ac_config_commands="$ac_config_commands depfiles" 2760 2761 2762am_make=${MAKE-make} 2763cat > confinc << 'END' 2764am__doit: 2765 @echo done 2766.PHONY: am__doit 2767END 2768# If we don't find an include directive, just comment out the code. 2769echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2770echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2771am__include="#" 2772am__quote= 2773_am_result=none 2774# First try GNU make style include. 2775echo "include confinc" > confmf 2776# We grep out `Entering directory' and `Leaving directory' 2777# messages which can occur if `w' ends up in MAKEFLAGS. 2778# In particular we don't look at `^make:' because GNU make might 2779# be invoked under some other name (usually "gmake"), in which 2780# case it prints its new name instead of `make'. 2781if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2782 am__include=include 2783 am__quote= 2784 _am_result=GNU 2785fi 2786# Now try BSD make style include. 2787if test "$am__include" = "#"; then 2788 echo '.include "confinc"' > confmf 2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2790 am__include=.include 2791 am__quote="\"" 2792 _am_result=BSD 2793 fi 2794fi 2795 2796 2797echo "$as_me:$LINENO: result: $_am_result" >&5 2798echo "${ECHO_T}$_am_result" >&6 2799rm -f confinc confmf 2800 2801# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2802if test "${enable_dependency_tracking+set}" = set; then 2803 enableval="$enable_dependency_tracking" 2804 2805fi; 2806if test "x$enable_dependency_tracking" != xno; then 2807 am_depcomp="$ac_aux_dir/depcomp" 2808 AMDEPBACKSLASH='\' 2809fi 2810 2811 2812if test "x$enable_dependency_tracking" != xno; then 2813 AMDEP_TRUE= 2814 AMDEP_FALSE='#' 2815else 2816 AMDEP_TRUE='#' 2817 AMDEP_FALSE= 2818fi 2819 2820 2821 2822 2823depcc="$CC" am_compiler_list= 2824 2825echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2826echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2827if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2831 # We make a subdir and do the tests there. Otherwise we can end up 2832 # making bogus files that we don't know about and never remove. For 2833 # instance it was reported that on HP-UX the gcc test will end up 2834 # making a dummy file named `D' -- because `-MD' means `put the output 2835 # in D'. 2836 mkdir conftest.dir 2837 # Copy depcomp to subdir because otherwise we won't find it if we're 2838 # using a relative directory. 2839 cp "$am_depcomp" conftest.dir 2840 cd conftest.dir 2841 # We will build objects and dependencies in a subdirectory because 2842 # it helps to detect inapplicable dependency modes. For instance 2843 # both Tru64's cc and ICC support -MD to output dependencies as a 2844 # side effect of compilation, but ICC will put the dependencies in 2845 # the current directory while Tru64 will put them in the object 2846 # directory. 2847 mkdir sub 2848 2849 am_cv_CC_dependencies_compiler_type=none 2850 if test "$am_compiler_list" = ""; then 2851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2852 fi 2853 for depmode in $am_compiler_list; do 2854 # Setup a source with many dependencies, because some compilers 2855 # like to wrap large dependency lists on column 80 (with \), and 2856 # we should not choose a depcomp mode which is confused by this. 2857 # 2858 # We need to recreate these files for each test, as the compiler may 2859 # overwrite some of them when testing with obscure command lines. 2860 # This happens at least with the AIX C compiler. 2861 : > sub/conftest.c 2862 for i in 1 2 3 4 5 6; do 2863 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2865 # Solaris 8's {/usr,}/bin/sh. 2866 touch sub/conftst$i.h 2867 done 2868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2869 2870 case $depmode in 2871 nosideeffect) 2872 # after this tag, mechanisms are not by side-effect, so they'll 2873 # only be used when explicitly requested 2874 if test "x$enable_dependency_tracking" = xyes; then 2875 continue 2876 else 2877 break 2878 fi 2879 ;; 2880 none) break ;; 2881 esac 2882 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2883 # mode. It turns out that the SunPro C++ compiler does not properly 2884 # handle `-M -o', and we need to detect this. 2885 if depmode=$depmode \ 2886 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2888 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2889 >/dev/null 2>conftest.err && 2890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2891 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2893 # icc doesn't choke on unknown options, it will just issue warnings 2894 # or remarks (even with -Werror). So we grep stderr for any message 2895 # that says an option was ignored or not supported. 2896 # When given -MP, icc 7.0 and 7.1 complain thusly: 2897 # icc: Command line warning: ignoring option '-M'; no argument required 2898 # The diagnosis changed in icc 8.0: 2899 # icc: Command line remark: option '-MP' not supported 2900 if (grep 'ignoring option' conftest.err || 2901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2902 am_cv_CC_dependencies_compiler_type=$depmode 2903 break 2904 fi 2905 fi 2906 done 2907 2908 cd .. 2909 rm -rf conftest.dir 2910else 2911 am_cv_CC_dependencies_compiler_type=none 2912fi 2913 2914fi 2915echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2916echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2918 2919 2920 2921if 2922 test "x$enable_dependency_tracking" != xno \ 2923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2924 am__fastdepCC_TRUE= 2925 am__fastdepCC_FALSE='#' 2926else 2927 am__fastdepCC_TRUE='#' 2928 am__fastdepCC_FALSE= 2929fi 2930 2931 2932 2933ac_ext=c 2934ac_cpp='$CPP $CPPFLAGS' 2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940# On Suns, sometimes $CPP names a directory. 2941if test -n "$CPP" && test -d "$CPP"; then 2942 CPP= 2943fi 2944if test -z "$CPP"; then 2945 if test "${ac_cv_prog_CPP+set}" = set; then 2946 echo $ECHO_N "(cached) $ECHO_C" >&6 2947else 2948 # Double quotes because CPP needs to be expanded 2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 do 2951 ac_preproc_ok=false 2952for ac_c_preproc_warn_flag in '' yes 2953do 2954 # Use a header file that comes with gcc, so configuring glibc 2955 # with a fresh cross-compiler works. 2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 # <limits.h> exists even on freestanding compilers. 2958 # On the NeXT, cc -E runs the code through the compiler's parser, 2959 # not just through cpp. "Syntax error" is here to catch this case. 2960 cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966#ifdef __STDC__ 2967# include <limits.h> 2968#else 2969# include <assert.h> 2970#endif 2971 Syntax error 2972_ACEOF 2973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } >/dev/null; then 2981 if test -s conftest.err; then 2982 ac_cpp_err=$ac_c_preproc_warn_flag 2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 else 2985 ac_cpp_err= 2986 fi 2987else 2988 ac_cpp_err=yes 2989fi 2990if test -z "$ac_cpp_err"; then 2991 : 2992else 2993 echo "$as_me: failed program was:" >&5 2994sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 # Broken: fails on valid input. 2997continue 2998fi 2999rm -f conftest.err conftest.$ac_ext 3000 3001 # OK, works on sane cases. Now check whether non-existent headers 3002 # can be detected and how. 3003 cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009#include <ac_nonexistent.h> 3010_ACEOF 3011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 else 3023 ac_cpp_err= 3024 fi 3025else 3026 ac_cpp_err=yes 3027fi 3028if test -z "$ac_cpp_err"; then 3029 # Broken: success on invalid input. 3030continue 3031else 3032 echo "$as_me: failed program was:" >&5 3033sed 's/^/| /' conftest.$ac_ext >&5 3034 3035 # Passes both tests. 3036ac_preproc_ok=: 3037break 3038fi 3039rm -f conftest.err conftest.$ac_ext 3040 3041done 3042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043rm -f conftest.err conftest.$ac_ext 3044if $ac_preproc_ok; then 3045 break 3046fi 3047 3048 done 3049 ac_cv_prog_CPP=$CPP 3050 3051fi 3052 CPP=$ac_cv_prog_CPP 3053else 3054 ac_cv_prog_CPP=$CPP 3055fi 3056echo "$as_me:$LINENO: result: $CPP" >&5 3057echo "${ECHO_T}$CPP" >&6 3058ac_preproc_ok=false 3059for ac_c_preproc_warn_flag in '' yes 3060do 3061 # Use a header file that comes with gcc, so configuring glibc 3062 # with a fresh cross-compiler works. 3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 # <limits.h> exists even on freestanding compilers. 3065 # On the NeXT, cc -E runs the code through the compiler's parser, 3066 # not just through cpp. "Syntax error" is here to catch this case. 3067 cat >conftest.$ac_ext <<_ACEOF 3068/* confdefs.h. */ 3069_ACEOF 3070cat confdefs.h >>conftest.$ac_ext 3071cat >>conftest.$ac_ext <<_ACEOF 3072/* end confdefs.h. */ 3073#ifdef __STDC__ 3074# include <limits.h> 3075#else 3076# include <assert.h> 3077#endif 3078 Syntax error 3079_ACEOF 3080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } >/dev/null; then 3088 if test -s conftest.err; then 3089 ac_cpp_err=$ac_c_preproc_warn_flag 3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 else 3092 ac_cpp_err= 3093 fi 3094else 3095 ac_cpp_err=yes 3096fi 3097if test -z "$ac_cpp_err"; then 3098 : 3099else 3100 echo "$as_me: failed program was:" >&5 3101sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 # Broken: fails on valid input. 3104continue 3105fi 3106rm -f conftest.err conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether non-existent headers 3109 # can be detected and how. 3110 cat >conftest.$ac_ext <<_ACEOF 3111/* confdefs.h. */ 3112_ACEOF 3113cat confdefs.h >>conftest.$ac_ext 3114cat >>conftest.$ac_ext <<_ACEOF 3115/* end confdefs.h. */ 3116#include <ac_nonexistent.h> 3117_ACEOF 3118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } >/dev/null; then 3126 if test -s conftest.err; then 3127 ac_cpp_err=$ac_c_preproc_warn_flag 3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 else 3130 ac_cpp_err= 3131 fi 3132else 3133 ac_cpp_err=yes 3134fi 3135if test -z "$ac_cpp_err"; then 3136 # Broken: success on invalid input. 3137continue 3138else 3139 echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 # Passes both tests. 3143ac_preproc_ok=: 3144break 3145fi 3146rm -f conftest.err conftest.$ac_ext 3147 3148done 3149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150rm -f conftest.err conftest.$ac_ext 3151if $ac_preproc_ok; then 3152 : 3153else 3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155See \`config.log' for more details." >&5 3156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159fi 3160 3161ac_ext=c 3162ac_cpp='$CPP $CPPFLAGS' 3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 3167 3168echo "$as_me:$LINENO: checking for egrep" >&5 3169echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170if test "${ac_cv_prog_egrep+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172else 3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 then ac_cv_prog_egrep='grep -E' 3175 else ac_cv_prog_egrep='egrep' 3176 fi 3177fi 3178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 EGREP=$ac_cv_prog_egrep 3181 3182 3183if test $ac_cv_c_compiler_gnu = yes; then 3184 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3185echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3186if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3187 echo $ECHO_N "(cached) $ECHO_C" >&6 3188else 3189 ac_pattern="Autoconf.*'x'" 3190 cat >conftest.$ac_ext <<_ACEOF 3191/* confdefs.h. */ 3192_ACEOF 3193cat confdefs.h >>conftest.$ac_ext 3194cat >>conftest.$ac_ext <<_ACEOF 3195/* end confdefs.h. */ 3196#include <sgtty.h> 3197Autoconf TIOCGETP 3198_ACEOF 3199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3200 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3201 ac_cv_prog_gcc_traditional=yes 3202else 3203 ac_cv_prog_gcc_traditional=no 3204fi 3205rm -f conftest* 3206 3207 3208 if test $ac_cv_prog_gcc_traditional = no; then 3209 cat >conftest.$ac_ext <<_ACEOF 3210/* confdefs.h. */ 3211_ACEOF 3212cat confdefs.h >>conftest.$ac_ext 3213cat >>conftest.$ac_ext <<_ACEOF 3214/* end confdefs.h. */ 3215#include <termio.h> 3216Autoconf TCGETA 3217_ACEOF 3218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3219 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3220 ac_cv_prog_gcc_traditional=yes 3221fi 3222rm -f conftest* 3223 3224 fi 3225fi 3226echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3227echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3228 if test $ac_cv_prog_gcc_traditional = yes; then 3229 CC="$CC -traditional" 3230 fi 3231fi 3232 3233# Find a good install program. We prefer a C program (faster), 3234# so one script is as good as another. But avoid the broken or 3235# incompatible versions: 3236# SysV /etc/install, /usr/sbin/install 3237# SunOS /usr/etc/install 3238# IRIX /sbin/install 3239# AIX /bin/install 3240# AmigaOS /C/install, which installs bootblocks on floppy discs 3241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3242# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3244# OS/2's system install, which has a completely different semantic 3245# ./install, which can be erroneously created by make from ./install.sh. 3246echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3247echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3248if test -z "$INSTALL"; then 3249if test "${ac_cv_path_install+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253for as_dir in $PATH 3254do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 # Account for people who put trailing slashes in PATH elements. 3258case $as_dir/ in 3259 ./ | .// | /cC/* | \ 3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3261 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3262 /usr/ucb/* ) ;; 3263 *) 3264 # OSF1 and SCO ODT 3.0 have their own names for install. 3265 # Don't use installbsd from OSF since it installs stuff as root 3266 # by default. 3267 for ac_prog in ginstall scoinst install; do 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3270 if test $ac_prog = install && 3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3272 # AIX install. It has an incompatible calling convention. 3273 : 3274 elif test $ac_prog = install && 3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3276 # program-specific install script used by HP pwplus--don't use. 3277 : 3278 else 3279 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3280 break 3 3281 fi 3282 fi 3283 done 3284 done 3285 ;; 3286esac 3287done 3288 3289 3290fi 3291 if test "${ac_cv_path_install+set}" = set; then 3292 INSTALL=$ac_cv_path_install 3293 else 3294 # As a last resort, use the slow shell script. We don't cache a 3295 # path for INSTALL within a source directory, because that will 3296 # break other packages using the cache if that directory is 3297 # removed, or if the path is relative. 3298 INSTALL=$ac_install_sh 3299 fi 3300fi 3301echo "$as_me:$LINENO: result: $INSTALL" >&5 3302echo "${ECHO_T}$INSTALL" >&6 3303 3304# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3305# It thinks the first close brace ends the variable substitution. 3306test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3307 3308test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3309 3310test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3311 3312echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3314set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3315if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3316 echo $ECHO_N "(cached) $ECHO_C" >&6 3317else 3318 cat >conftest.make <<\_ACEOF 3319all: 3320 @echo 'ac_maketemp="$(MAKE)"' 3321_ACEOF 3322# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3323eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3324if test -n "$ac_maketemp"; then 3325 eval ac_cv_prog_make_${ac_make}_set=yes 3326else 3327 eval ac_cv_prog_make_${ac_make}_set=no 3328fi 3329rm -f conftest.make 3330fi 3331if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3332 echo "$as_me:$LINENO: result: yes" >&5 3333echo "${ECHO_T}yes" >&6 3334 SET_MAKE= 3335else 3336 echo "$as_me:$LINENO: result: no" >&5 3337echo "${ECHO_T}no" >&6 3338 SET_MAKE="MAKE=${MAKE-make}" 3339fi 3340 3341if test -n "$ac_tool_prefix"; then 3342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3343set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3344echo "$as_me:$LINENO: checking for $ac_word" >&5 3345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3346if test "${ac_cv_prog_RANLIB+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348else 3349 if test -n "$RANLIB"; then 3350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364done 3365 3366fi 3367fi 3368RANLIB=$ac_cv_prog_RANLIB 3369if test -n "$RANLIB"; then 3370 echo "$as_me:$LINENO: result: $RANLIB" >&5 3371echo "${ECHO_T}$RANLIB" >&6 3372else 3373 echo "$as_me:$LINENO: result: no" >&5 3374echo "${ECHO_T}no" >&6 3375fi 3376 3377fi 3378if test -z "$ac_cv_prog_RANLIB"; then 3379 ac_ct_RANLIB=$RANLIB 3380 # Extract the first word of "ranlib", so it can be a program name with args. 3381set dummy ranlib; ac_word=$2 3382echo "$as_me:$LINENO: checking for $ac_word" >&5 3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3384if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386else 3387 if test -n "$ac_ct_RANLIB"; then 3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3389else 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391for as_dir in $PATH 3392do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_ac_ct_RANLIB="ranlib" 3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402done 3403 3404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3405fi 3406fi 3407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3408if test -n "$ac_ct_RANLIB"; then 3409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3410echo "${ECHO_T}$ac_ct_RANLIB" >&6 3411else 3412 echo "$as_me:$LINENO: result: no" >&5 3413echo "${ECHO_T}no" >&6 3414fi 3415 3416 RANLIB=$ac_ct_RANLIB 3417else 3418 RANLIB="$ac_cv_prog_RANLIB" 3419fi 3420 3421 3422HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 3423 3424 3425echo "$as_me:$LINENO: checking for library containing strerror" >&5 3426echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3427if test "${ac_cv_search_strerror+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429else 3430 ac_func_search_save_LIBS=$LIBS 3431ac_cv_search_strerror=no 3432cat >conftest.$ac_ext <<_ACEOF 3433/* confdefs.h. */ 3434_ACEOF 3435cat confdefs.h >>conftest.$ac_ext 3436cat >>conftest.$ac_ext <<_ACEOF 3437/* end confdefs.h. */ 3438 3439/* Override any gcc2 internal prototype to avoid an error. */ 3440#ifdef __cplusplus 3441extern "C" 3442#endif 3443/* We use char because int might match the return type of a gcc2 3444 builtin and then its argument prototype would still apply. */ 3445char strerror (); 3446int 3447main () 3448{ 3449strerror (); 3450 ; 3451 return 0; 3452} 3453_ACEOF 3454rm -f conftest.$ac_objext conftest$ac_exeext 3455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3456 (eval $ac_link) 2>conftest.er1 3457 ac_status=$? 3458 grep -v '^ *+' conftest.er1 >conftest.err 3459 rm -f conftest.er1 3460 cat conftest.err >&5 3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 (exit $ac_status); } && 3463 { ac_try='test -z "$ac_c_werror_flag" 3464 || test ! -s conftest.err' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; } && 3470 { ac_try='test -s conftest$ac_exeext' 3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3472 (eval $ac_try) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); }; }; then 3476 ac_cv_search_strerror="none required" 3477else 3478 echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481fi 3482rm -f conftest.err conftest.$ac_objext \ 3483 conftest$ac_exeext conftest.$ac_ext 3484if test "$ac_cv_search_strerror" = no; then 3485 for ac_lib in cposix; do 3486 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3487 cat >conftest.$ac_ext <<_ACEOF 3488/* confdefs.h. */ 3489_ACEOF 3490cat confdefs.h >>conftest.$ac_ext 3491cat >>conftest.$ac_ext <<_ACEOF 3492/* end confdefs.h. */ 3493 3494/* Override any gcc2 internal prototype to avoid an error. */ 3495#ifdef __cplusplus 3496extern "C" 3497#endif 3498/* We use char because int might match the return type of a gcc2 3499 builtin and then its argument prototype would still apply. */ 3500char strerror (); 3501int 3502main () 3503{ 3504strerror (); 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509rm -f conftest.$ac_objext conftest$ac_exeext 3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3511 (eval $ac_link) 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -z "$ac_c_werror_flag" 3519 || test ! -s conftest.err' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; } && 3525 { ac_try='test -s conftest$ac_exeext' 3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3527 (eval $ac_try) 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); }; }; then 3531 ac_cv_search_strerror="-l$ac_lib" 3532break 3533else 3534 echo "$as_me: failed program was:" >&5 3535sed 's/^/| /' conftest.$ac_ext >&5 3536 3537fi 3538rm -f conftest.err conftest.$ac_objext \ 3539 conftest$ac_exeext conftest.$ac_ext 3540 done 3541fi 3542LIBS=$ac_func_search_save_LIBS 3543fi 3544echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3545echo "${ECHO_T}$ac_cv_search_strerror" >&6 3546if test "$ac_cv_search_strerror" != no; then 3547 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3548 3549fi 3550 3551echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3552echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3553if test "${ac_cv_header_stdc+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555else 3556 cat >conftest.$ac_ext <<_ACEOF 3557/* confdefs.h. */ 3558_ACEOF 3559cat confdefs.h >>conftest.$ac_ext 3560cat >>conftest.$ac_ext <<_ACEOF 3561/* end confdefs.h. */ 3562#include <stdlib.h> 3563#include <stdarg.h> 3564#include <string.h> 3565#include <float.h> 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575rm -f conftest.$ac_objext 3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3577 (eval $ac_compile) 2>conftest.er1 3578 ac_status=$? 3579 grep -v '^ *+' conftest.er1 >conftest.err 3580 rm -f conftest.er1 3581 cat conftest.err >&5 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); } && 3584 { ac_try='test -z "$ac_c_werror_flag" 3585 || test ! -s conftest.err' 3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3587 (eval $ac_try) 2>&5 3588 ac_status=$? 3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3590 (exit $ac_status); }; } && 3591 { ac_try='test -s conftest.$ac_objext' 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3593 (eval $ac_try) 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); }; }; then 3597 ac_cv_header_stdc=yes 3598else 3599 echo "$as_me: failed program was:" >&5 3600sed 's/^/| /' conftest.$ac_ext >&5 3601 3602ac_cv_header_stdc=no 3603fi 3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3605 3606if test $ac_cv_header_stdc = yes; then 3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3608 cat >conftest.$ac_ext <<_ACEOF 3609/* confdefs.h. */ 3610_ACEOF 3611cat confdefs.h >>conftest.$ac_ext 3612cat >>conftest.$ac_ext <<_ACEOF 3613/* end confdefs.h. */ 3614#include <string.h> 3615 3616_ACEOF 3617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3618 $EGREP "memchr" >/dev/null 2>&1; then 3619 : 3620else 3621 ac_cv_header_stdc=no 3622fi 3623rm -f conftest* 3624 3625fi 3626 3627if test $ac_cv_header_stdc = yes; then 3628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 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 <stdlib.h> 3636 3637_ACEOF 3638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3639 $EGREP "free" >/dev/null 2>&1; then 3640 : 3641else 3642 ac_cv_header_stdc=no 3643fi 3644rm -f conftest* 3645 3646fi 3647 3648if test $ac_cv_header_stdc = yes; then 3649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3650 if test "$cross_compiling" = yes; then 3651 : 3652else 3653 cat >conftest.$ac_ext <<_ACEOF 3654/* confdefs.h. */ 3655_ACEOF 3656cat confdefs.h >>conftest.$ac_ext 3657cat >>conftest.$ac_ext <<_ACEOF 3658/* end confdefs.h. */ 3659#include <ctype.h> 3660#include <stdlib.h> 3661#if ((' ' & 0x0FF) == 0x020) 3662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3664#else 3665# define ISLOWER(c) \ 3666 (('a' <= (c) && (c) <= 'i') \ 3667 || ('j' <= (c) && (c) <= 'r') \ 3668 || ('s' <= (c) && (c) <= 'z')) 3669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3670#endif 3671 3672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3673int 3674main () 3675{ 3676 int i; 3677 for (i = 0; i < 256; i++) 3678 if (XOR (islower (i), ISLOWER (i)) 3679 || toupper (i) != TOUPPER (i)) 3680 exit(2); 3681 exit (0); 3682} 3683_ACEOF 3684rm -f conftest$ac_exeext 3685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3686 (eval $ac_link) 2>&5 3687 ac_status=$? 3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 (eval $ac_try) 2>&5 3692 ac_status=$? 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); }; }; then 3695 : 3696else 3697 echo "$as_me: program exited with status $ac_status" >&5 3698echo "$as_me: failed program was:" >&5 3699sed 's/^/| /' conftest.$ac_ext >&5 3700 3701( exit $ac_status ) 3702ac_cv_header_stdc=no 3703fi 3704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3705fi 3706fi 3707fi 3708echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3709echo "${ECHO_T}$ac_cv_header_stdc" >&6 3710if test $ac_cv_header_stdc = yes; then 3711 3712cat >>confdefs.h <<\_ACEOF 3713#define STDC_HEADERS 1 3714_ACEOF 3715 3716fi 3717 3718# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3729 inttypes.h stdint.h unistd.h 3730do 3731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3732echo "$as_me:$LINENO: checking for $ac_header" >&5 3733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3734if eval "test \"\${$as_ac_Header+set}\" = set"; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736else 3737 cat >conftest.$ac_ext <<_ACEOF 3738/* confdefs.h. */ 3739_ACEOF 3740cat confdefs.h >>conftest.$ac_ext 3741cat >>conftest.$ac_ext <<_ACEOF 3742/* end confdefs.h. */ 3743$ac_includes_default 3744 3745#include <$ac_header> 3746_ACEOF 3747rm -f conftest.$ac_objext 3748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3749 (eval $ac_compile) 2>conftest.er1 3750 ac_status=$? 3751 grep -v '^ *+' conftest.er1 >conftest.err 3752 rm -f conftest.er1 3753 cat conftest.err >&5 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3755 (exit $ac_status); } && 3756 { ac_try='test -z "$ac_c_werror_flag" 3757 || test ! -s conftest.err' 3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3759 (eval $ac_try) 2>&5 3760 ac_status=$? 3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 (exit $ac_status); }; } && 3763 { ac_try='test -s conftest.$ac_objext' 3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3765 (eval $ac_try) 2>&5 3766 ac_status=$? 3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3768 (exit $ac_status); }; }; then 3769 eval "$as_ac_Header=yes" 3770else 3771 echo "$as_me: failed program was:" >&5 3772sed 's/^/| /' conftest.$ac_ext >&5 3773 3774eval "$as_ac_Header=no" 3775fi 3776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3777fi 3778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3780if test `eval echo '${'$as_ac_Header'}'` = yes; then 3781 cat >>confdefs.h <<_ACEOF 3782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3783_ACEOF 3784 3785fi 3786 3787done 3788 3789 3790if test "${ac_cv_header_minix_config_h+set}" = set; then 3791 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3792echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3793if test "${ac_cv_header_minix_config_h+set}" = set; then 3794 echo $ECHO_N "(cached) $ECHO_C" >&6 3795fi 3796echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3797echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3798else 3799 # Is the header compilable? 3800echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3801echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3802cat >conftest.$ac_ext <<_ACEOF 3803/* confdefs.h. */ 3804_ACEOF 3805cat confdefs.h >>conftest.$ac_ext 3806cat >>conftest.$ac_ext <<_ACEOF 3807/* end confdefs.h. */ 3808$ac_includes_default 3809#include <minix/config.h> 3810_ACEOF 3811rm -f conftest.$ac_objext 3812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3813 (eval $ac_compile) 2>conftest.er1 3814 ac_status=$? 3815 grep -v '^ *+' conftest.er1 >conftest.err 3816 rm -f conftest.er1 3817 cat conftest.err >&5 3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3819 (exit $ac_status); } && 3820 { ac_try='test -z "$ac_c_werror_flag" 3821 || test ! -s conftest.err' 3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3823 (eval $ac_try) 2>&5 3824 ac_status=$? 3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3826 (exit $ac_status); }; } && 3827 { ac_try='test -s conftest.$ac_objext' 3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3829 (eval $ac_try) 2>&5 3830 ac_status=$? 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 (exit $ac_status); }; }; then 3833 ac_header_compiler=yes 3834else 3835 echo "$as_me: failed program was:" >&5 3836sed 's/^/| /' conftest.$ac_ext >&5 3837 3838ac_header_compiler=no 3839fi 3840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3842echo "${ECHO_T}$ac_header_compiler" >&6 3843 3844# Is the header present? 3845echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3846echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3847cat >conftest.$ac_ext <<_ACEOF 3848/* confdefs.h. */ 3849_ACEOF 3850cat confdefs.h >>conftest.$ac_ext 3851cat >>conftest.$ac_ext <<_ACEOF 3852/* end confdefs.h. */ 3853#include <minix/config.h> 3854_ACEOF 3855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3857 ac_status=$? 3858 grep -v '^ *+' conftest.er1 >conftest.err 3859 rm -f conftest.er1 3860 cat conftest.err >&5 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } >/dev/null; then 3863 if test -s conftest.err; then 3864 ac_cpp_err=$ac_c_preproc_warn_flag 3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3866 else 3867 ac_cpp_err= 3868 fi 3869else 3870 ac_cpp_err=yes 3871fi 3872if test -z "$ac_cpp_err"; then 3873 ac_header_preproc=yes 3874else 3875 echo "$as_me: failed program was:" >&5 3876sed 's/^/| /' conftest.$ac_ext >&5 3877 3878 ac_header_preproc=no 3879fi 3880rm -f conftest.err conftest.$ac_ext 3881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3882echo "${ECHO_T}$ac_header_preproc" >&6 3883 3884# So? What about this header? 3885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3886 yes:no: ) 3887 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3888echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3889 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3890echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3891 ac_header_preproc=yes 3892 ;; 3893 no:yes:* ) 3894 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3895echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3897echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3899echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3901echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3903echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3905echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3906 ( 3907 cat <<\_ASBOX 3908## -------------------------------------- ## 3909## Report this to the GNU Texinfo lists. ## 3910## -------------------------------------- ## 3911_ASBOX 3912 ) | 3913 sed "s/^/$as_me: WARNING: /" >&2 3914 ;; 3915esac 3916echo "$as_me:$LINENO: checking for minix/config.h" >&5 3917echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3918if test "${ac_cv_header_minix_config_h+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920else 3921 ac_cv_header_minix_config_h=$ac_header_preproc 3922fi 3923echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3924echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3925 3926fi 3927if test $ac_cv_header_minix_config_h = yes; then 3928 MINIX=yes 3929else 3930 MINIX= 3931fi 3932 3933 3934if test "$MINIX" = yes; then 3935 3936cat >>confdefs.h <<\_ACEOF 3937#define _POSIX_SOURCE 1 3938_ACEOF 3939 3940 3941cat >>confdefs.h <<\_ACEOF 3942#define _POSIX_1_SOURCE 2 3943_ACEOF 3944 3945 3946cat >>confdefs.h <<\_ACEOF 3947#define _MINIX 1 3948_ACEOF 3949 3950fi 3951 3952 3953# Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first. 3954echo "$as_me:$LINENO: checking for sigblock" >&5 3955echo $ECHO_N "checking for sigblock... $ECHO_C" >&6 3956if test "${ac_cv_func_sigblock+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 cat >conftest.$ac_ext <<_ACEOF 3960/* confdefs.h. */ 3961_ACEOF 3962cat confdefs.h >>conftest.$ac_ext 3963cat >>conftest.$ac_ext <<_ACEOF 3964/* end confdefs.h. */ 3965/* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock. 3966 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3967#define sigblock innocuous_sigblock 3968 3969/* System header to define __stub macros and hopefully few prototypes, 3970 which can conflict with char sigblock (); below. 3971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3972 <limits.h> exists even on freestanding compilers. */ 3973 3974#ifdef __STDC__ 3975# include <limits.h> 3976#else 3977# include <assert.h> 3978#endif 3979 3980#undef sigblock 3981 3982/* Override any gcc2 internal prototype to avoid an error. */ 3983#ifdef __cplusplus 3984extern "C" 3985{ 3986#endif 3987/* We use char because int might match the return type of a gcc2 3988 builtin and then its argument prototype would still apply. */ 3989char sigblock (); 3990/* The GNU C library defines this for functions which it implements 3991 to always fail with ENOSYS. Some functions are actually named 3992 something starting with __ and the normal name is an alias. */ 3993#if defined (__stub_sigblock) || defined (__stub___sigblock) 3994choke me 3995#else 3996char (*f) () = sigblock; 3997#endif 3998#ifdef __cplusplus 3999} 4000#endif 4001 4002int 4003main () 4004{ 4005return f != sigblock; 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010rm -f conftest.$ac_objext conftest$ac_exeext 4011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4012 (eval $ac_link) 2>conftest.er1 4013 ac_status=$? 4014 grep -v '^ *+' conftest.er1 >conftest.err 4015 rm -f conftest.er1 4016 cat conftest.err >&5 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } && 4019 { ac_try='test -z "$ac_c_werror_flag" 4020 || test ! -s conftest.err' 4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4022 (eval $ac_try) 2>&5 4023 ac_status=$? 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); }; } && 4026 { ac_try='test -s conftest$ac_exeext' 4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 (eval $ac_try) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; }; then 4032 ac_cv_func_sigblock=yes 4033else 4034 echo "$as_me: failed program was:" >&5 4035sed 's/^/| /' conftest.$ac_ext >&5 4036 4037ac_cv_func_sigblock=no 4038fi 4039rm -f conftest.err conftest.$ac_objext \ 4040 conftest$ac_exeext conftest.$ac_ext 4041fi 4042echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5 4043echo "${ECHO_T}$ac_cv_func_sigblock" >&6 4044if test $ac_cv_func_sigblock = yes; then 4045 : 4046else 4047 4048echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5 4049echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6 4050if test "${ac_cv_lib_bsd_sigblock+set}" = set; then 4051 echo $ECHO_N "(cached) $ECHO_C" >&6 4052else 4053 ac_check_lib_save_LIBS=$LIBS 4054LIBS="-lbsd $LIBS" 4055cat >conftest.$ac_ext <<_ACEOF 4056/* confdefs.h. */ 4057_ACEOF 4058cat confdefs.h >>conftest.$ac_ext 4059cat >>conftest.$ac_ext <<_ACEOF 4060/* end confdefs.h. */ 4061 4062/* Override any gcc2 internal prototype to avoid an error. */ 4063#ifdef __cplusplus 4064extern "C" 4065#endif 4066/* We use char because int might match the return type of a gcc2 4067 builtin and then its argument prototype would still apply. */ 4068char sigblock (); 4069int 4070main () 4071{ 4072sigblock (); 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077rm -f conftest.$ac_objext conftest$ac_exeext 4078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4079 (eval $ac_link) 2>conftest.er1 4080 ac_status=$? 4081 grep -v '^ *+' conftest.er1 >conftest.err 4082 rm -f conftest.er1 4083 cat conftest.err >&5 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 (exit $ac_status); } && 4086 { ac_try='test -z "$ac_c_werror_flag" 4087 || test ! -s conftest.err' 4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4089 (eval $ac_try) 2>&5 4090 ac_status=$? 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); }; } && 4093 { ac_try='test -s conftest$ac_exeext' 4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4095 (eval $ac_try) 2>&5 4096 ac_status=$? 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); }; }; then 4099 ac_cv_lib_bsd_sigblock=yes 4100else 4101 echo "$as_me: failed program was:" >&5 4102sed 's/^/| /' conftest.$ac_ext >&5 4103 4104ac_cv_lib_bsd_sigblock=no 4105fi 4106rm -f conftest.err conftest.$ac_objext \ 4107 conftest$ac_exeext conftest.$ac_ext 4108LIBS=$ac_check_lib_save_LIBS 4109fi 4110echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5 4111echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6 4112if test $ac_cv_lib_bsd_sigblock = yes; then 4113 cat >>confdefs.h <<_ACEOF 4114#define HAVE_LIBBSD 1 4115_ACEOF 4116 4117 LIBS="-lbsd $LIBS" 4118 4119fi 4120 4121fi 4122 4123 4124# Checks for header files. 4125echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4126echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 4127if test "${ac_cv_header_stat_broken+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129else 4130 cat >conftest.$ac_ext <<_ACEOF 4131/* confdefs.h. */ 4132_ACEOF 4133cat confdefs.h >>conftest.$ac_ext 4134cat >>conftest.$ac_ext <<_ACEOF 4135/* end confdefs.h. */ 4136#include <sys/types.h> 4137#include <sys/stat.h> 4138 4139#if defined(S_ISBLK) && defined(S_IFDIR) 4140# if S_ISBLK (S_IFDIR) 4141You lose. 4142# endif 4143#endif 4144 4145#if defined(S_ISBLK) && defined(S_IFCHR) 4146# if S_ISBLK (S_IFCHR) 4147You lose. 4148# endif 4149#endif 4150 4151#if defined(S_ISLNK) && defined(S_IFREG) 4152# if S_ISLNK (S_IFREG) 4153You lose. 4154# endif 4155#endif 4156 4157#if defined(S_ISSOCK) && defined(S_IFREG) 4158# if S_ISSOCK (S_IFREG) 4159You lose. 4160# endif 4161#endif 4162 4163_ACEOF 4164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4165 $EGREP "You lose" >/dev/null 2>&1; then 4166 ac_cv_header_stat_broken=yes 4167else 4168 ac_cv_header_stat_broken=no 4169fi 4170rm -f conftest* 4171 4172fi 4173echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4174echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 4175if test $ac_cv_header_stat_broken = yes; then 4176 4177cat >>confdefs.h <<\_ACEOF 4178#define STAT_MACROS_BROKEN 1 4179_ACEOF 4180 4181fi 4182 4183echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4184echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4185if test "${ac_cv_header_stdc+set}" = set; then 4186 echo $ECHO_N "(cached) $ECHO_C" >&6 4187else 4188 cat >conftest.$ac_ext <<_ACEOF 4189/* confdefs.h. */ 4190_ACEOF 4191cat confdefs.h >>conftest.$ac_ext 4192cat >>conftest.$ac_ext <<_ACEOF 4193/* end confdefs.h. */ 4194#include <stdlib.h> 4195#include <stdarg.h> 4196#include <string.h> 4197#include <float.h> 4198 4199int 4200main () 4201{ 4202 4203 ; 4204 return 0; 4205} 4206_ACEOF 4207rm -f conftest.$ac_objext 4208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4209 (eval $ac_compile) 2>conftest.er1 4210 ac_status=$? 4211 grep -v '^ *+' conftest.er1 >conftest.err 4212 rm -f conftest.er1 4213 cat conftest.err >&5 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 (exit $ac_status); } && 4216 { ac_try='test -z "$ac_c_werror_flag" 4217 || test ! -s conftest.err' 4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4219 (eval $ac_try) 2>&5 4220 ac_status=$? 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 (exit $ac_status); }; } && 4223 { ac_try='test -s conftest.$ac_objext' 4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4225 (eval $ac_try) 2>&5 4226 ac_status=$? 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); }; }; then 4229 ac_cv_header_stdc=yes 4230else 4231 echo "$as_me: failed program was:" >&5 4232sed 's/^/| /' conftest.$ac_ext >&5 4233 4234ac_cv_header_stdc=no 4235fi 4236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4237 4238if test $ac_cv_header_stdc = yes; then 4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246#include <string.h> 4247 4248_ACEOF 4249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4250 $EGREP "memchr" >/dev/null 2>&1; then 4251 : 4252else 4253 ac_cv_header_stdc=no 4254fi 4255rm -f conftest* 4256 4257fi 4258 4259if test $ac_cv_header_stdc = yes; then 4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4261 cat >conftest.$ac_ext <<_ACEOF 4262/* confdefs.h. */ 4263_ACEOF 4264cat confdefs.h >>conftest.$ac_ext 4265cat >>conftest.$ac_ext <<_ACEOF 4266/* end confdefs.h. */ 4267#include <stdlib.h> 4268 4269_ACEOF 4270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 $EGREP "free" >/dev/null 2>&1; then 4272 : 4273else 4274 ac_cv_header_stdc=no 4275fi 4276rm -f conftest* 4277 4278fi 4279 4280if test $ac_cv_header_stdc = yes; then 4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 if test "$cross_compiling" = yes; then 4283 : 4284else 4285 cat >conftest.$ac_ext <<_ACEOF 4286/* confdefs.h. */ 4287_ACEOF 4288cat confdefs.h >>conftest.$ac_ext 4289cat >>conftest.$ac_ext <<_ACEOF 4290/* end confdefs.h. */ 4291#include <ctype.h> 4292#if ((' ' & 0x0FF) == 0x020) 4293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4295#else 4296# define ISLOWER(c) \ 4297 (('a' <= (c) && (c) <= 'i') \ 4298 || ('j' <= (c) && (c) <= 'r') \ 4299 || ('s' <= (c) && (c) <= 'z')) 4300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4301#endif 4302 4303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4304int 4305main () 4306{ 4307 int i; 4308 for (i = 0; i < 256; i++) 4309 if (XOR (islower (i), ISLOWER (i)) 4310 || toupper (i) != TOUPPER (i)) 4311 exit(2); 4312 exit (0); 4313} 4314_ACEOF 4315rm -f conftest$ac_exeext 4316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4317 (eval $ac_link) 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4322 (eval $ac_try) 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); }; }; then 4326 : 4327else 4328 echo "$as_me: program exited with status $ac_status" >&5 4329echo "$as_me: failed program was:" >&5 4330sed 's/^/| /' conftest.$ac_ext >&5 4331 4332( exit $ac_status ) 4333ac_cv_header_stdc=no 4334fi 4335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4336fi 4337fi 4338fi 4339echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4340echo "${ECHO_T}$ac_cv_header_stdc" >&6 4341if test $ac_cv_header_stdc = yes; then 4342 4343cat >>confdefs.h <<\_ACEOF 4344#define STDC_HEADERS 1 4345_ACEOF 4346 4347fi 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \ 4366 termcap.h termio.h termios.h unistd.h \ 4367 sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h 4368do 4369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4370if eval "test \"\${$as_ac_Header+set}\" = set"; then 4371 echo "$as_me:$LINENO: checking for $ac_header" >&5 4372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4373if eval "test \"\${$as_ac_Header+set}\" = set"; then 4374 echo $ECHO_N "(cached) $ECHO_C" >&6 4375fi 4376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4378else 4379 # Is the header compilable? 4380echo "$as_me:$LINENO: checking $ac_header usability" >&5 4381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4382cat >conftest.$ac_ext <<_ACEOF 4383/* confdefs.h. */ 4384_ACEOF 4385cat confdefs.h >>conftest.$ac_ext 4386cat >>conftest.$ac_ext <<_ACEOF 4387/* end confdefs.h. */ 4388$ac_includes_default 4389#include <$ac_header> 4390_ACEOF 4391rm -f conftest.$ac_objext 4392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4393 (eval $ac_compile) 2>conftest.er1 4394 ac_status=$? 4395 grep -v '^ *+' conftest.er1 >conftest.err 4396 rm -f conftest.er1 4397 cat conftest.err >&5 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); } && 4400 { ac_try='test -z "$ac_c_werror_flag" 4401 || test ! -s conftest.err' 4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4403 (eval $ac_try) 2>&5 4404 ac_status=$? 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); }; } && 4407 { ac_try='test -s conftest.$ac_objext' 4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4409 (eval $ac_try) 2>&5 4410 ac_status=$? 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); }; }; then 4413 ac_header_compiler=yes 4414else 4415 echo "$as_me: failed program was:" >&5 4416sed 's/^/| /' conftest.$ac_ext >&5 4417 4418ac_header_compiler=no 4419fi 4420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4422echo "${ECHO_T}$ac_header_compiler" >&6 4423 4424# Is the header present? 4425echo "$as_me:$LINENO: checking $ac_header presence" >&5 4426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4427cat >conftest.$ac_ext <<_ACEOF 4428/* confdefs.h. */ 4429_ACEOF 4430cat confdefs.h >>conftest.$ac_ext 4431cat >>conftest.$ac_ext <<_ACEOF 4432/* end confdefs.h. */ 4433#include <$ac_header> 4434_ACEOF 4435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4437 ac_status=$? 4438 grep -v '^ *+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } >/dev/null; then 4443 if test -s conftest.err; then 4444 ac_cpp_err=$ac_c_preproc_warn_flag 4445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4446 else 4447 ac_cpp_err= 4448 fi 4449else 4450 ac_cpp_err=yes 4451fi 4452if test -z "$ac_cpp_err"; then 4453 ac_header_preproc=yes 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 ac_header_preproc=no 4459fi 4460rm -f conftest.err conftest.$ac_ext 4461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4462echo "${ECHO_T}$ac_header_preproc" >&6 4463 4464# So? What about this header? 4465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4466 yes:no: ) 4467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4471 ac_header_preproc=yes 4472 ;; 4473 no:yes:* ) 4474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4486 ( 4487 cat <<\_ASBOX 4488## -------------------------------------- ## 4489## Report this to the GNU Texinfo lists. ## 4490## -------------------------------------- ## 4491_ASBOX 4492 ) | 4493 sed "s/^/$as_me: WARNING: /" >&2 4494 ;; 4495esac 4496echo "$as_me:$LINENO: checking for $ac_header" >&5 4497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4498if eval "test \"\${$as_ac_Header+set}\" = set"; then 4499 echo $ECHO_N "(cached) $ECHO_C" >&6 4500else 4501 eval "$as_ac_Header=\$ac_header_preproc" 4502fi 4503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4505 4506fi 4507if test `eval echo '${'$as_ac_Header'}'` = yes; then 4508 cat >>confdefs.h <<_ACEOF 4509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4510_ACEOF 4511 4512fi 4513 4514done 4515 4516 4517# sys/ptem.h requires sys/stream.h for mblk_t on Solaris. 4518 4519for ac_header in sys/ptem.h 4520do 4521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4522echo "$as_me:$LINENO: checking for $ac_header" >&5 4523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4524if eval "test \"\${$as_ac_Header+set}\" = set"; then 4525 echo $ECHO_N "(cached) $ECHO_C" >&6 4526else 4527 cat >conftest.$ac_ext <<_ACEOF 4528/* confdefs.h. */ 4529_ACEOF 4530cat confdefs.h >>conftest.$ac_ext 4531cat >>conftest.$ac_ext <<_ACEOF 4532/* end confdefs.h. */ 4533#if HAVE_SYS_STREAM_H 4534#include <sys/stream.h> 4535#endif 4536 4537 4538#include <$ac_header> 4539_ACEOF 4540rm -f conftest.$ac_objext 4541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4542 (eval $ac_compile) 2>conftest.er1 4543 ac_status=$? 4544 grep -v '^ *+' conftest.er1 >conftest.err 4545 rm -f conftest.er1 4546 cat conftest.err >&5 4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); } && 4549 { ac_try='test -z "$ac_c_werror_flag" 4550 || test ! -s conftest.err' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; } && 4556 { ac_try='test -s conftest.$ac_objext' 4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 (eval $ac_try) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 eval "$as_ac_Header=yes" 4563else 4564 echo "$as_me: failed program was:" >&5 4565sed 's/^/| /' conftest.$ac_ext >&5 4566 4567eval "$as_ac_Header=no" 4568fi 4569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4570fi 4571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4573if test `eval echo '${'$as_ac_Header'}'` = yes; then 4574 cat >>confdefs.h <<_ACEOF 4575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4576_ACEOF 4577 4578fi 4579 4580done 4581 4582 4583echo "$as_me:$LINENO: checking POSIX termios" >&5 4584echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6 4585if test "${ac_cv_sys_posix_termios+set}" = set; then 4586 echo $ECHO_N "(cached) $ECHO_C" >&6 4587else 4588 cat >conftest.$ac_ext <<_ACEOF 4589/* confdefs.h. */ 4590_ACEOF 4591cat confdefs.h >>conftest.$ac_ext 4592cat >>conftest.$ac_ext <<_ACEOF 4593/* end confdefs.h. */ 4594#include <sys/types.h> 4595#include <unistd.h> 4596#include <termios.h> 4597 4598int 4599main () 4600{ 4601/* SunOS 4.0.3 has termios.h but not the library calls. */ 4602 tcgetattr(0, 0); 4603 ; 4604 return 0; 4605} 4606_ACEOF 4607rm -f conftest.$ac_objext conftest$ac_exeext 4608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4609 (eval $ac_link) 2>conftest.er1 4610 ac_status=$? 4611 grep -v '^ *+' conftest.er1 >conftest.err 4612 rm -f conftest.er1 4613 cat conftest.err >&5 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } && 4616 { ac_try='test -z "$ac_c_werror_flag" 4617 || test ! -s conftest.err' 4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4619 (eval $ac_try) 2>&5 4620 ac_status=$? 4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 (exit $ac_status); }; } && 4623 { ac_try='test -s conftest$ac_exeext' 4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4625 (eval $ac_try) 2>&5 4626 ac_status=$? 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); }; }; then 4629 ac_cv_sys_posix_termios=yes 4630else 4631 echo "$as_me: failed program was:" >&5 4632sed 's/^/| /' conftest.$ac_ext >&5 4633 4634ac_cv_sys_posix_termios=no 4635fi 4636rm -f conftest.err conftest.$ac_objext \ 4637 conftest$ac_exeext conftest.$ac_ext 4638fi 4639echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5 4640echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6 4641 4642echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 4643echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 4644if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 4645 echo $ECHO_N "(cached) $ECHO_C" >&6 4646else 4647 cat >conftest.$ac_ext <<_ACEOF 4648/* confdefs.h. */ 4649_ACEOF 4650cat confdefs.h >>conftest.$ac_ext 4651cat >>conftest.$ac_ext <<_ACEOF 4652/* end confdefs.h. */ 4653#include <sys/types.h> 4654#include <termios.h> 4655#ifdef TIOCGWINSZ 4656 yes 4657#endif 4658 4659_ACEOF 4660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4661 $EGREP "yes" >/dev/null 2>&1; then 4662 ac_cv_sys_tiocgwinsz_in_termios_h=yes 4663else 4664 ac_cv_sys_tiocgwinsz_in_termios_h=no 4665fi 4666rm -f conftest* 4667 4668fi 4669echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 4670echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 4671 4672if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 4673 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 4674echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 4675if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 cat >conftest.$ac_ext <<_ACEOF 4679/* confdefs.h. */ 4680_ACEOF 4681cat confdefs.h >>conftest.$ac_ext 4682cat >>conftest.$ac_ext <<_ACEOF 4683/* end confdefs.h. */ 4684#include <sys/types.h> 4685#include <sys/ioctl.h> 4686#ifdef TIOCGWINSZ 4687 yes 4688#endif 4689 4690_ACEOF 4691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4692 $EGREP "yes" >/dev/null 2>&1; then 4693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 4694else 4695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 4696fi 4697rm -f conftest* 4698 4699fi 4700echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 4701echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 4702 4703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 4704 4705cat >>confdefs.h <<\_ACEOF 4706#define GWINSZ_IN_SYS_IOCTL 1 4707_ACEOF 4708 4709 fi 4710fi 4711 4712 4713# Checks for typedefs, structures, and compiler characteristics. 4714echo "$as_me:$LINENO: checking for off_t" >&5 4715echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4716if test "${ac_cv_type_off_t+set}" = set; then 4717 echo $ECHO_N "(cached) $ECHO_C" >&6 4718else 4719 cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725$ac_includes_default 4726int 4727main () 4728{ 4729if ((off_t *) 0) 4730 return 0; 4731if (sizeof (off_t)) 4732 return 0; 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737rm -f conftest.$ac_objext 4738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4739 (eval $ac_compile) 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } && 4746 { ac_try='test -z "$ac_c_werror_flag" 4747 || test ! -s conftest.err' 4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); }; } && 4753 { ac_try='test -s conftest.$ac_objext' 4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4755 (eval $ac_try) 2>&5 4756 ac_status=$? 4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 (exit $ac_status); }; }; then 4759 ac_cv_type_off_t=yes 4760else 4761 echo "$as_me: failed program was:" >&5 4762sed 's/^/| /' conftest.$ac_ext >&5 4763 4764ac_cv_type_off_t=no 4765fi 4766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4767fi 4768echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4769echo "${ECHO_T}$ac_cv_type_off_t" >&6 4770if test $ac_cv_type_off_t = yes; then 4771 : 4772else 4773 4774cat >>confdefs.h <<_ACEOF 4775#define off_t long 4776_ACEOF 4777 4778fi 4779 4780echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4781echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4782if test "${ac_cv_type_signal+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784else 4785 cat >conftest.$ac_ext <<_ACEOF 4786/* confdefs.h. */ 4787_ACEOF 4788cat confdefs.h >>conftest.$ac_ext 4789cat >>conftest.$ac_ext <<_ACEOF 4790/* end confdefs.h. */ 4791#include <sys/types.h> 4792#include <signal.h> 4793#ifdef signal 4794# undef signal 4795#endif 4796#ifdef __cplusplus 4797extern "C" void (*signal (int, void (*)(int)))(int); 4798#else 4799void (*signal ()) (); 4800#endif 4801 4802int 4803main () 4804{ 4805int i; 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext 4811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4812 (eval $ac_compile) 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } && 4819 { ac_try='test -z "$ac_c_werror_flag" 4820 || test ! -s conftest.err' 4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 (eval $ac_try) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; } && 4826 { ac_try='test -s conftest.$ac_objext' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; }; then 4832 ac_cv_type_signal=void 4833else 4834 echo "$as_me: failed program was:" >&5 4835sed 's/^/| /' conftest.$ac_ext >&5 4836 4837ac_cv_type_signal=int 4838fi 4839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4840fi 4841echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4842echo "${ECHO_T}$ac_cv_type_signal" >&6 4843 4844cat >>confdefs.h <<_ACEOF 4845#define RETSIGTYPE $ac_cv_type_signal 4846_ACEOF 4847 4848 4849echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4850echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4851if test "${ac_cv_c_const+set}" = set; then 4852 echo $ECHO_N "(cached) $ECHO_C" >&6 4853else 4854 cat >conftest.$ac_ext <<_ACEOF 4855/* confdefs.h. */ 4856_ACEOF 4857cat confdefs.h >>conftest.$ac_ext 4858cat >>conftest.$ac_ext <<_ACEOF 4859/* end confdefs.h. */ 4860 4861int 4862main () 4863{ 4864/* FIXME: Include the comments suggested by Paul. */ 4865#ifndef __cplusplus 4866 /* Ultrix mips cc rejects this. */ 4867 typedef int charset[2]; 4868 const charset x; 4869 /* SunOS 4.1.1 cc rejects this. */ 4870 char const *const *ccp; 4871 char **p; 4872 /* NEC SVR4.0.2 mips cc rejects this. */ 4873 struct point {int x, y;}; 4874 static struct point const zero = {0,0}; 4875 /* AIX XL C 1.02.0.0 rejects this. 4876 It does not let you subtract one const X* pointer from another in 4877 an arm of an if-expression whose if-part is not a constant 4878 expression */ 4879 const char *g = "string"; 4880 ccp = &g + (g ? g-g : 0); 4881 /* HPUX 7.0 cc rejects these. */ 4882 ++ccp; 4883 p = (char**) ccp; 4884 ccp = (char const *const *) p; 4885 { /* SCO 3.2v4 cc rejects this. */ 4886 char *t; 4887 char const *s = 0 ? (char *) 0 : (char const *) 0; 4888 4889 *t++ = 0; 4890 } 4891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4892 int x[] = {25, 17}; 4893 const int *foo = &x[0]; 4894 ++foo; 4895 } 4896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4897 typedef const int *iptr; 4898 iptr p = 0; 4899 ++p; 4900 } 4901 { /* AIX XL C 1.02.0.0 rejects this saying 4902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4903 struct s { int j; const int *ap[3]; }; 4904 struct s *b; b->j = 5; 4905 } 4906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4907 const int foo = 10; 4908 } 4909#endif 4910 4911 ; 4912 return 0; 4913} 4914_ACEOF 4915rm -f conftest.$ac_objext 4916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4917 (eval $ac_compile) 2>conftest.er1 4918 ac_status=$? 4919 grep -v '^ *+' conftest.er1 >conftest.err 4920 rm -f conftest.er1 4921 cat conftest.err >&5 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); } && 4924 { ac_try='test -z "$ac_c_werror_flag" 4925 || test ! -s conftest.err' 4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4927 (eval $ac_try) 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); }; } && 4931 { ac_try='test -s conftest.$ac_objext' 4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 (eval $ac_try) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; }; then 4937 ac_cv_c_const=yes 4938else 4939 echo "$as_me: failed program was:" >&5 4940sed 's/^/| /' conftest.$ac_ext >&5 4941 4942ac_cv_c_const=no 4943fi 4944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4945fi 4946echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4947echo "${ECHO_T}$ac_cv_c_const" >&6 4948if test $ac_cv_c_const = no; then 4949 4950cat >>confdefs.h <<\_ACEOF 4951#define const 4952_ACEOF 4953 4954fi 4955 4956echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4957echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4958if test "${ac_cv_struct_tm+set}" = set; then 4959 echo $ECHO_N "(cached) $ECHO_C" >&6 4960else 4961 cat >conftest.$ac_ext <<_ACEOF 4962/* confdefs.h. */ 4963_ACEOF 4964cat confdefs.h >>conftest.$ac_ext 4965cat >>conftest.$ac_ext <<_ACEOF 4966/* end confdefs.h. */ 4967#include <sys/types.h> 4968#include <time.h> 4969 4970int 4971main () 4972{ 4973struct tm *tp; tp->tm_sec; 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978rm -f conftest.$ac_objext 4979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4980 (eval $ac_compile) 2>conftest.er1 4981 ac_status=$? 4982 grep -v '^ *+' conftest.er1 >conftest.err 4983 rm -f conftest.er1 4984 cat conftest.err >&5 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); } && 4987 { ac_try='test -z "$ac_c_werror_flag" 4988 || test ! -s conftest.err' 4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 (eval $ac_try) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; } && 4994 { ac_try='test -s conftest.$ac_objext' 4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 (eval $ac_try) 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; }; then 5000 ac_cv_struct_tm=time.h 5001else 5002 echo "$as_me: failed program was:" >&5 5003sed 's/^/| /' conftest.$ac_ext >&5 5004 5005ac_cv_struct_tm=sys/time.h 5006fi 5007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5008fi 5009echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 5010echo "${ECHO_T}$ac_cv_struct_tm" >&6 5011if test $ac_cv_struct_tm = sys/time.h; then 5012 5013cat >>confdefs.h <<\_ACEOF 5014#define TM_IN_SYS_TIME 1 5015_ACEOF 5016 5017fi 5018 5019 5020# Checks for function declarations. 5021echo "$as_me:$LINENO: checking whether memchr is declared" >&5 5022echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 5023if test "${ac_cv_have_decl_memchr+set}" = set; then 5024 echo $ECHO_N "(cached) $ECHO_C" >&6 5025else 5026 cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032$ac_includes_default 5033int 5034main () 5035{ 5036#ifndef memchr 5037 char *p = (char *) memchr; 5038#endif 5039 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044rm -f conftest.$ac_objext 5045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5046 (eval $ac_compile) 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } && 5053 { ac_try='test -z "$ac_c_werror_flag" 5054 || test ! -s conftest.err' 5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5056 (eval $ac_try) 2>&5 5057 ac_status=$? 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); }; } && 5060 { ac_try='test -s conftest.$ac_objext' 5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5062 (eval $ac_try) 2>&5 5063 ac_status=$? 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); }; }; then 5066 ac_cv_have_decl_memchr=yes 5067else 5068 echo "$as_me: failed program was:" >&5 5069sed 's/^/| /' conftest.$ac_ext >&5 5070 5071ac_cv_have_decl_memchr=no 5072fi 5073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5 5076echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 5077if test $ac_cv_have_decl_memchr = yes; then 5078 5079cat >>confdefs.h <<_ACEOF 5080#define HAVE_DECL_MEMCHR 1 5081_ACEOF 5082 5083 5084else 5085 cat >>confdefs.h <<_ACEOF 5086#define HAVE_DECL_MEMCHR 0 5087_ACEOF 5088 5089 5090fi 5091echo "$as_me:$LINENO: checking whether strcoll is declared" >&5 5092echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6 5093if test "${ac_cv_have_decl_strcoll+set}" = set; then 5094 echo $ECHO_N "(cached) $ECHO_C" >&6 5095else 5096 cat >conftest.$ac_ext <<_ACEOF 5097/* confdefs.h. */ 5098_ACEOF 5099cat confdefs.h >>conftest.$ac_ext 5100cat >>conftest.$ac_ext <<_ACEOF 5101/* end confdefs.h. */ 5102$ac_includes_default 5103int 5104main () 5105{ 5106#ifndef strcoll 5107 char *p = (char *) strcoll; 5108#endif 5109 5110 ; 5111 return 0; 5112} 5113_ACEOF 5114rm -f conftest.$ac_objext 5115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5116 (eval $ac_compile) 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } && 5123 { ac_try='test -z "$ac_c_werror_flag" 5124 || test ! -s conftest.err' 5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5126 (eval $ac_try) 2>&5 5127 ac_status=$? 5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5129 (exit $ac_status); }; } && 5130 { ac_try='test -s conftest.$ac_objext' 5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5132 (eval $ac_try) 2>&5 5133 ac_status=$? 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); }; }; then 5136 ac_cv_have_decl_strcoll=yes 5137else 5138 echo "$as_me: failed program was:" >&5 5139sed 's/^/| /' conftest.$ac_ext >&5 5140 5141ac_cv_have_decl_strcoll=no 5142fi 5143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5 5146echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6 5147if test $ac_cv_have_decl_strcoll = yes; then 5148 5149cat >>confdefs.h <<_ACEOF 5150#define HAVE_DECL_STRCOLL 1 5151_ACEOF 5152 5153 5154else 5155 cat >>confdefs.h <<_ACEOF 5156#define HAVE_DECL_STRCOLL 0 5157_ACEOF 5158 5159 5160fi 5161echo "$as_me:$LINENO: checking whether strerror is declared" >&5 5162echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 5163if test "${ac_cv_have_decl_strerror+set}" = set; then 5164 echo $ECHO_N "(cached) $ECHO_C" >&6 5165else 5166 cat >conftest.$ac_ext <<_ACEOF 5167/* confdefs.h. */ 5168_ACEOF 5169cat confdefs.h >>conftest.$ac_ext 5170cat >>conftest.$ac_ext <<_ACEOF 5171/* end confdefs.h. */ 5172$ac_includes_default 5173int 5174main () 5175{ 5176#ifndef strerror 5177 char *p = (char *) strerror; 5178#endif 5179 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184rm -f conftest.$ac_objext 5185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5186 (eval $ac_compile) 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } && 5193 { ac_try='test -z "$ac_c_werror_flag" 5194 || test ! -s conftest.err' 5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5196 (eval $ac_try) 2>&5 5197 ac_status=$? 5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5199 (exit $ac_status); }; } && 5200 { ac_try='test -s conftest.$ac_objext' 5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_cv_have_decl_strerror=yes 5207else 5208 echo "$as_me: failed program was:" >&5 5209sed 's/^/| /' conftest.$ac_ext >&5 5210 5211ac_cv_have_decl_strerror=no 5212fi 5213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5214fi 5215echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 5216echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 5217if test $ac_cv_have_decl_strerror = yes; then 5218 5219cat >>confdefs.h <<_ACEOF 5220#define HAVE_DECL_STRERROR 1 5221_ACEOF 5222 5223 5224else 5225 cat >>confdefs.h <<_ACEOF 5226#define HAVE_DECL_STRERROR 0 5227_ACEOF 5228 5229 5230fi 5231 5232 5233 5234# Checks for library functions. 5235# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5236# for constant arguments. Useless! 5237echo "$as_me:$LINENO: checking for working alloca.h" >&5 5238echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5239if test "${ac_cv_working_alloca_h+set}" = set; then 5240 echo $ECHO_N "(cached) $ECHO_C" >&6 5241else 5242 cat >conftest.$ac_ext <<_ACEOF 5243/* confdefs.h. */ 5244_ACEOF 5245cat confdefs.h >>conftest.$ac_ext 5246cat >>conftest.$ac_ext <<_ACEOF 5247/* end confdefs.h. */ 5248#include <alloca.h> 5249int 5250main () 5251{ 5252char *p = (char *) alloca (2 * sizeof (int)); 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257rm -f conftest.$ac_objext conftest$ac_exeext 5258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5259 (eval $ac_link) 2>conftest.er1 5260 ac_status=$? 5261 grep -v '^ *+' conftest.er1 >conftest.err 5262 rm -f conftest.er1 5263 cat conftest.err >&5 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); } && 5266 { ac_try='test -z "$ac_c_werror_flag" 5267 || test ! -s conftest.err' 5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5269 (eval $ac_try) 2>&5 5270 ac_status=$? 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 (exit $ac_status); }; } && 5273 { ac_try='test -s conftest$ac_exeext' 5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5275 (eval $ac_try) 2>&5 5276 ac_status=$? 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); }; }; then 5279 ac_cv_working_alloca_h=yes 5280else 5281 echo "$as_me: failed program was:" >&5 5282sed 's/^/| /' conftest.$ac_ext >&5 5283 5284ac_cv_working_alloca_h=no 5285fi 5286rm -f conftest.err conftest.$ac_objext \ 5287 conftest$ac_exeext conftest.$ac_ext 5288fi 5289echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5290echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5291if test $ac_cv_working_alloca_h = yes; then 5292 5293cat >>confdefs.h <<\_ACEOF 5294#define HAVE_ALLOCA_H 1 5295_ACEOF 5296 5297fi 5298 5299echo "$as_me:$LINENO: checking for alloca" >&5 5300echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5301if test "${ac_cv_func_alloca_works+set}" = set; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303else 5304 cat >conftest.$ac_ext <<_ACEOF 5305/* confdefs.h. */ 5306_ACEOF 5307cat confdefs.h >>conftest.$ac_ext 5308cat >>conftest.$ac_ext <<_ACEOF 5309/* end confdefs.h. */ 5310#ifdef __GNUC__ 5311# define alloca __builtin_alloca 5312#else 5313# ifdef _MSC_VER 5314# include <malloc.h> 5315# define alloca _alloca 5316# else 5317# if HAVE_ALLOCA_H 5318# include <alloca.h> 5319# else 5320# ifdef _AIX 5321 #pragma alloca 5322# else 5323# ifndef alloca /* predefined by HP cc +Olibcalls */ 5324char *alloca (); 5325# endif 5326# endif 5327# endif 5328# endif 5329#endif 5330 5331int 5332main () 5333{ 5334char *p = (char *) alloca (1); 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339rm -f conftest.$ac_objext conftest$ac_exeext 5340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5341 (eval $ac_link) 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } && 5348 { ac_try='test -z "$ac_c_werror_flag" 5349 || test ! -s conftest.err' 5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5351 (eval $ac_try) 2>&5 5352 ac_status=$? 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 (exit $ac_status); }; } && 5355 { ac_try='test -s conftest$ac_exeext' 5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5357 (eval $ac_try) 2>&5 5358 ac_status=$? 5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5360 (exit $ac_status); }; }; then 5361 ac_cv_func_alloca_works=yes 5362else 5363 echo "$as_me: failed program was:" >&5 5364sed 's/^/| /' conftest.$ac_ext >&5 5365 5366ac_cv_func_alloca_works=no 5367fi 5368rm -f conftest.err conftest.$ac_objext \ 5369 conftest$ac_exeext conftest.$ac_ext 5370fi 5371echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5372echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5373 5374if test $ac_cv_func_alloca_works = yes; then 5375 5376cat >>confdefs.h <<\_ACEOF 5377#define HAVE_ALLOCA 1 5378_ACEOF 5379 5380else 5381 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5382# that cause trouble. Some versions do not even contain alloca or 5383# contain a buggy version. If you still want to use their alloca, 5384# use ar to extract alloca.o from them instead of compiling alloca.c. 5385 5386ALLOCA=alloca.$ac_objext 5387 5388cat >>confdefs.h <<\_ACEOF 5389#define C_ALLOCA 1 5390_ACEOF 5391 5392 5393echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5394echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5395if test "${ac_cv_os_cray+set}" = set; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 cat >conftest.$ac_ext <<_ACEOF 5399/* confdefs.h. */ 5400_ACEOF 5401cat confdefs.h >>conftest.$ac_ext 5402cat >>conftest.$ac_ext <<_ACEOF 5403/* end confdefs.h. */ 5404#if defined(CRAY) && ! defined(CRAY2) 5405webecray 5406#else 5407wenotbecray 5408#endif 5409 5410_ACEOF 5411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5412 $EGREP "webecray" >/dev/null 2>&1; then 5413 ac_cv_os_cray=yes 5414else 5415 ac_cv_os_cray=no 5416fi 5417rm -f conftest* 5418 5419fi 5420echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5421echo "${ECHO_T}$ac_cv_os_cray" >&6 5422if test $ac_cv_os_cray = yes; then 5423 for ac_func in _getb67 GETB67 getb67; do 5424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5425echo "$as_me:$LINENO: checking for $ac_func" >&5 5426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5427if eval "test \"\${$as_ac_var+set}\" = set"; then 5428 echo $ECHO_N "(cached) $ECHO_C" >&6 5429else 5430 cat >conftest.$ac_ext <<_ACEOF 5431/* confdefs.h. */ 5432_ACEOF 5433cat confdefs.h >>conftest.$ac_ext 5434cat >>conftest.$ac_ext <<_ACEOF 5435/* end confdefs.h. */ 5436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5437 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5438#define $ac_func innocuous_$ac_func 5439 5440/* System header to define __stub macros and hopefully few prototypes, 5441 which can conflict with char $ac_func (); below. 5442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5443 <limits.h> exists even on freestanding compilers. */ 5444 5445#ifdef __STDC__ 5446# include <limits.h> 5447#else 5448# include <assert.h> 5449#endif 5450 5451#undef $ac_func 5452 5453/* Override any gcc2 internal prototype to avoid an error. */ 5454#ifdef __cplusplus 5455extern "C" 5456{ 5457#endif 5458/* We use char because int might match the return type of a gcc2 5459 builtin and then its argument prototype would still apply. */ 5460char $ac_func (); 5461/* The GNU C library defines this for functions which it implements 5462 to always fail with ENOSYS. Some functions are actually named 5463 something starting with __ and the normal name is an alias. */ 5464#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5465choke me 5466#else 5467char (*f) () = $ac_func; 5468#endif 5469#ifdef __cplusplus 5470} 5471#endif 5472 5473int 5474main () 5475{ 5476return f != $ac_func; 5477 ; 5478 return 0; 5479} 5480_ACEOF 5481rm -f conftest.$ac_objext conftest$ac_exeext 5482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5483 (eval $ac_link) 2>conftest.er1 5484 ac_status=$? 5485 grep -v '^ *+' conftest.er1 >conftest.err 5486 rm -f conftest.er1 5487 cat conftest.err >&5 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); } && 5490 { ac_try='test -z "$ac_c_werror_flag" 5491 || test ! -s conftest.err' 5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5493 (eval $ac_try) 2>&5 5494 ac_status=$? 5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5496 (exit $ac_status); }; } && 5497 { ac_try='test -s conftest$ac_exeext' 5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5499 (eval $ac_try) 2>&5 5500 ac_status=$? 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); }; }; then 5503 eval "$as_ac_var=yes" 5504else 5505 echo "$as_me: failed program was:" >&5 5506sed 's/^/| /' conftest.$ac_ext >&5 5507 5508eval "$as_ac_var=no" 5509fi 5510rm -f conftest.err conftest.$ac_objext \ 5511 conftest$ac_exeext conftest.$ac_ext 5512fi 5513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5515if test `eval echo '${'$as_ac_var'}'` = yes; then 5516 5517cat >>confdefs.h <<_ACEOF 5518#define CRAY_STACKSEG_END $ac_func 5519_ACEOF 5520 5521 break 5522fi 5523 5524 done 5525fi 5526 5527echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5528echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5529if test "${ac_cv_c_stack_direction+set}" = set; then 5530 echo $ECHO_N "(cached) $ECHO_C" >&6 5531else 5532 if test "$cross_compiling" = yes; then 5533 ac_cv_c_stack_direction=0 5534else 5535 cat >conftest.$ac_ext <<_ACEOF 5536/* confdefs.h. */ 5537_ACEOF 5538cat confdefs.h >>conftest.$ac_ext 5539cat >>conftest.$ac_ext <<_ACEOF 5540/* end confdefs.h. */ 5541int 5542find_stack_direction () 5543{ 5544 static char *addr = 0; 5545 auto char dummy; 5546 if (addr == 0) 5547 { 5548 addr = &dummy; 5549 return find_stack_direction (); 5550 } 5551 else 5552 return (&dummy > addr) ? 1 : -1; 5553} 5554 5555int 5556main () 5557{ 5558 exit (find_stack_direction () < 0); 5559} 5560_ACEOF 5561rm -f conftest$ac_exeext 5562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5563 (eval $ac_link) 2>&5 5564 ac_status=$? 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5568 (eval $ac_try) 2>&5 5569 ac_status=$? 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); }; }; then 5572 ac_cv_c_stack_direction=1 5573else 5574 echo "$as_me: program exited with status $ac_status" >&5 5575echo "$as_me: failed program was:" >&5 5576sed 's/^/| /' conftest.$ac_ext >&5 5577 5578( exit $ac_status ) 5579ac_cv_c_stack_direction=-1 5580fi 5581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5582fi 5583fi 5584echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5585echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5586 5587cat >>confdefs.h <<_ACEOF 5588#define STACK_DIRECTION $ac_cv_c_stack_direction 5589_ACEOF 5590 5591 5592fi 5593 5594echo "$as_me:$LINENO: checking for working strcoll" >&5 5595echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 5596if test "${ac_cv_func_strcoll_works+set}" = set; then 5597 echo $ECHO_N "(cached) $ECHO_C" >&6 5598else 5599 if test "$cross_compiling" = yes; then 5600 ac_cv_func_strcoll_works=no 5601else 5602 cat >conftest.$ac_ext <<_ACEOF 5603/* confdefs.h. */ 5604_ACEOF 5605cat confdefs.h >>conftest.$ac_ext 5606cat >>conftest.$ac_ext <<_ACEOF 5607/* end confdefs.h. */ 5608$ac_includes_default 5609int 5610main () 5611{ 5612exit (strcoll ("abc", "def") >= 0 || 5613 strcoll ("ABC", "DEF") >= 0 || 5614 strcoll ("123", "456") >= 0) 5615 ; 5616 return 0; 5617} 5618_ACEOF 5619rm -f conftest$ac_exeext 5620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5621 (eval $ac_link) 2>&5 5622 ac_status=$? 5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5626 (eval $ac_try) 2>&5 5627 ac_status=$? 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); }; }; then 5630 ac_cv_func_strcoll_works=yes 5631else 5632 echo "$as_me: program exited with status $ac_status" >&5 5633echo "$as_me: failed program was:" >&5 5634sed 's/^/| /' conftest.$ac_ext >&5 5635 5636( exit $ac_status ) 5637ac_cv_func_strcoll_works=no 5638fi 5639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5640fi 5641fi 5642echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 5643echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 5644if test $ac_cv_func_strcoll_works = yes; then 5645 5646cat >>confdefs.h <<\_ACEOF 5647#define HAVE_STRCOLL 1 5648_ACEOF 5649 5650fi 5651 5652 5653for ac_func in vprintf 5654do 5655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5656echo "$as_me:$LINENO: checking for $ac_func" >&5 5657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5658if eval "test \"\${$as_ac_var+set}\" = set"; then 5659 echo $ECHO_N "(cached) $ECHO_C" >&6 5660else 5661 cat >conftest.$ac_ext <<_ACEOF 5662/* confdefs.h. */ 5663_ACEOF 5664cat confdefs.h >>conftest.$ac_ext 5665cat >>conftest.$ac_ext <<_ACEOF 5666/* end confdefs.h. */ 5667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5668 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5669#define $ac_func innocuous_$ac_func 5670 5671/* System header to define __stub macros and hopefully few prototypes, 5672 which can conflict with char $ac_func (); below. 5673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5674 <limits.h> exists even on freestanding compilers. */ 5675 5676#ifdef __STDC__ 5677# include <limits.h> 5678#else 5679# include <assert.h> 5680#endif 5681 5682#undef $ac_func 5683 5684/* Override any gcc2 internal prototype to avoid an error. */ 5685#ifdef __cplusplus 5686extern "C" 5687{ 5688#endif 5689/* We use char because int might match the return type of a gcc2 5690 builtin and then its argument prototype would still apply. */ 5691char $ac_func (); 5692/* The GNU C library defines this for functions which it implements 5693 to always fail with ENOSYS. Some functions are actually named 5694 something starting with __ and the normal name is an alias. */ 5695#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5696choke me 5697#else 5698char (*f) () = $ac_func; 5699#endif 5700#ifdef __cplusplus 5701} 5702#endif 5703 5704int 5705main () 5706{ 5707return f != $ac_func; 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712rm -f conftest.$ac_objext conftest$ac_exeext 5713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5714 (eval $ac_link) 2>conftest.er1 5715 ac_status=$? 5716 grep -v '^ *+' conftest.er1 >conftest.err 5717 rm -f conftest.er1 5718 cat conftest.err >&5 5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 (exit $ac_status); } && 5721 { ac_try='test -z "$ac_c_werror_flag" 5722 || test ! -s conftest.err' 5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5724 (eval $ac_try) 2>&5 5725 ac_status=$? 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); }; } && 5728 { ac_try='test -s conftest$ac_exeext' 5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 (eval $ac_try) 2>&5 5731 ac_status=$? 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); }; }; then 5734 eval "$as_ac_var=yes" 5735else 5736 echo "$as_me: failed program was:" >&5 5737sed 's/^/| /' conftest.$ac_ext >&5 5738 5739eval "$as_ac_var=no" 5740fi 5741rm -f conftest.err conftest.$ac_objext \ 5742 conftest$ac_exeext conftest.$ac_ext 5743fi 5744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5746if test `eval echo '${'$as_ac_var'}'` = yes; then 5747 cat >>confdefs.h <<_ACEOF 5748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5749_ACEOF 5750 5751echo "$as_me:$LINENO: checking for _doprnt" >&5 5752echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5753if test "${ac_cv_func__doprnt+set}" = set; then 5754 echo $ECHO_N "(cached) $ECHO_C" >&6 5755else 5756 cat >conftest.$ac_ext <<_ACEOF 5757/* confdefs.h. */ 5758_ACEOF 5759cat confdefs.h >>conftest.$ac_ext 5760cat >>conftest.$ac_ext <<_ACEOF 5761/* end confdefs.h. */ 5762/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5763 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5764#define _doprnt innocuous__doprnt 5765 5766/* System header to define __stub macros and hopefully few prototypes, 5767 which can conflict with char _doprnt (); below. 5768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5769 <limits.h> exists even on freestanding compilers. */ 5770 5771#ifdef __STDC__ 5772# include <limits.h> 5773#else 5774# include <assert.h> 5775#endif 5776 5777#undef _doprnt 5778 5779/* Override any gcc2 internal prototype to avoid an error. */ 5780#ifdef __cplusplus 5781extern "C" 5782{ 5783#endif 5784/* We use char because int might match the return type of a gcc2 5785 builtin and then its argument prototype would still apply. */ 5786char _doprnt (); 5787/* The GNU C library defines this for functions which it implements 5788 to always fail with ENOSYS. Some functions are actually named 5789 something starting with __ and the normal name is an alias. */ 5790#if defined (__stub__doprnt) || defined (__stub____doprnt) 5791choke me 5792#else 5793char (*f) () = _doprnt; 5794#endif 5795#ifdef __cplusplus 5796} 5797#endif 5798 5799int 5800main () 5801{ 5802return f != _doprnt; 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807rm -f conftest.$ac_objext conftest$ac_exeext 5808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5809 (eval $ac_link) 2>conftest.er1 5810 ac_status=$? 5811 grep -v '^ *+' conftest.er1 >conftest.err 5812 rm -f conftest.er1 5813 cat conftest.err >&5 5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5815 (exit $ac_status); } && 5816 { ac_try='test -z "$ac_c_werror_flag" 5817 || test ! -s conftest.err' 5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5819 (eval $ac_try) 2>&5 5820 ac_status=$? 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); }; } && 5823 { ac_try='test -s conftest$ac_exeext' 5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5825 (eval $ac_try) 2>&5 5826 ac_status=$? 5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5828 (exit $ac_status); }; }; then 5829 ac_cv_func__doprnt=yes 5830else 5831 echo "$as_me: failed program was:" >&5 5832sed 's/^/| /' conftest.$ac_ext >&5 5833 5834ac_cv_func__doprnt=no 5835fi 5836rm -f conftest.err conftest.$ac_objext \ 5837 conftest$ac_exeext conftest.$ac_ext 5838fi 5839echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5840echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5841if test $ac_cv_func__doprnt = yes; then 5842 5843cat >>confdefs.h <<\_ACEOF 5844#define HAVE_DOPRNT 1 5845_ACEOF 5846 5847fi 5848 5849fi 5850done 5851 5852 5853# in theory only pre-sysvr3 systems needed this and it's not likely 5854# that anyone compiling new texinfo still has such a thing? we'll see. 5855# AC_FUNC_SETVBUF_REVERSED 5856 5857 5858 5859 5860 5861 5862 5863 5864for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \ 5865 sigsetmask strchr 5866do 5867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5868echo "$as_me:$LINENO: checking for $ac_func" >&5 5869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5870if eval "test \"\${$as_ac_var+set}\" = set"; then 5871 echo $ECHO_N "(cached) $ECHO_C" >&6 5872else 5873 cat >conftest.$ac_ext <<_ACEOF 5874/* confdefs.h. */ 5875_ACEOF 5876cat confdefs.h >>conftest.$ac_ext 5877cat >>conftest.$ac_ext <<_ACEOF 5878/* end confdefs.h. */ 5879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5880 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5881#define $ac_func innocuous_$ac_func 5882 5883/* System header to define __stub macros and hopefully few prototypes, 5884 which can conflict with char $ac_func (); below. 5885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5886 <limits.h> exists even on freestanding compilers. */ 5887 5888#ifdef __STDC__ 5889# include <limits.h> 5890#else 5891# include <assert.h> 5892#endif 5893 5894#undef $ac_func 5895 5896/* Override any gcc2 internal prototype to avoid an error. */ 5897#ifdef __cplusplus 5898extern "C" 5899{ 5900#endif 5901/* We use char because int might match the return type of a gcc2 5902 builtin and then its argument prototype would still apply. */ 5903char $ac_func (); 5904/* The GNU C library defines this for functions which it implements 5905 to always fail with ENOSYS. Some functions are actually named 5906 something starting with __ and the normal name is an alias. */ 5907#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5908choke me 5909#else 5910char (*f) () = $ac_func; 5911#endif 5912#ifdef __cplusplus 5913} 5914#endif 5915 5916int 5917main () 5918{ 5919return f != $ac_func; 5920 ; 5921 return 0; 5922} 5923_ACEOF 5924rm -f conftest.$ac_objext conftest$ac_exeext 5925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5926 (eval $ac_link) 2>conftest.er1 5927 ac_status=$? 5928 grep -v '^ *+' conftest.er1 >conftest.err 5929 rm -f conftest.er1 5930 cat conftest.err >&5 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); } && 5933 { ac_try='test -z "$ac_c_werror_flag" 5934 || test ! -s conftest.err' 5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5936 (eval $ac_try) 2>&5 5937 ac_status=$? 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); }; } && 5940 { ac_try='test -s conftest$ac_exeext' 5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5942 (eval $ac_try) 2>&5 5943 ac_status=$? 5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5945 (exit $ac_status); }; }; then 5946 eval "$as_ac_var=yes" 5947else 5948 echo "$as_me: failed program was:" >&5 5949sed 's/^/| /' conftest.$ac_ext >&5 5950 5951eval "$as_ac_var=no" 5952fi 5953rm -f conftest.err conftest.$ac_objext \ 5954 conftest$ac_exeext conftest.$ac_ext 5955fi 5956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5958if test `eval echo '${'$as_ac_var'}'` = yes; then 5959 cat >>confdefs.h <<_ACEOF 5960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5961_ACEOF 5962 5963fi 5964done 5965 5966 5967 5968 5969 5970for ac_func in memcpy memmove strdup strerror 5971do 5972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5973echo "$as_me:$LINENO: checking for $ac_func" >&5 5974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5975if eval "test \"\${$as_ac_var+set}\" = set"; then 5976 echo $ECHO_N "(cached) $ECHO_C" >&6 5977else 5978 cat >conftest.$ac_ext <<_ACEOF 5979/* confdefs.h. */ 5980_ACEOF 5981cat confdefs.h >>conftest.$ac_ext 5982cat >>conftest.$ac_ext <<_ACEOF 5983/* end confdefs.h. */ 5984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5985 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5986#define $ac_func innocuous_$ac_func 5987 5988/* System header to define __stub macros and hopefully few prototypes, 5989 which can conflict with char $ac_func (); below. 5990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5991 <limits.h> exists even on freestanding compilers. */ 5992 5993#ifdef __STDC__ 5994# include <limits.h> 5995#else 5996# include <assert.h> 5997#endif 5998 5999#undef $ac_func 6000 6001/* Override any gcc2 internal prototype to avoid an error. */ 6002#ifdef __cplusplus 6003extern "C" 6004{ 6005#endif 6006/* We use char because int might match the return type of a gcc2 6007 builtin and then its argument prototype would still apply. */ 6008char $ac_func (); 6009/* The GNU C library defines this for functions which it implements 6010 to always fail with ENOSYS. Some functions are actually named 6011 something starting with __ and the normal name is an alias. */ 6012#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6013choke me 6014#else 6015char (*f) () = $ac_func; 6016#endif 6017#ifdef __cplusplus 6018} 6019#endif 6020 6021int 6022main () 6023{ 6024return f != $ac_func; 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029rm -f conftest.$ac_objext conftest$ac_exeext 6030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6031 (eval $ac_link) 2>conftest.er1 6032 ac_status=$? 6033 grep -v '^ *+' conftest.er1 >conftest.err 6034 rm -f conftest.er1 6035 cat conftest.err >&5 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } && 6038 { ac_try='test -z "$ac_c_werror_flag" 6039 || test ! -s conftest.err' 6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6041 (eval $ac_try) 2>&5 6042 ac_status=$? 6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6044 (exit $ac_status); }; } && 6045 { ac_try='test -s conftest$ac_exeext' 6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 (eval $ac_try) 2>&5 6048 ac_status=$? 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); }; }; then 6051 eval "$as_ac_var=yes" 6052else 6053 echo "$as_me: failed program was:" >&5 6054sed 's/^/| /' conftest.$ac_ext >&5 6055 6056eval "$as_ac_var=no" 6057fi 6058rm -f conftest.err conftest.$ac_objext \ 6059 conftest$ac_exeext conftest.$ac_ext 6060fi 6061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6063if test `eval echo '${'$as_ac_var'}'` = yes; then 6064 cat >>confdefs.h <<_ACEOF 6065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6066_ACEOF 6067 6068else 6069 case $LIBOBJS in 6070 "$ac_func.$ac_objext" | \ 6071 *" $ac_func.$ac_objext" | \ 6072 "$ac_func.$ac_objext "* | \ 6073 *" $ac_func.$ac_objext "* ) ;; 6074 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6075esac 6076 6077fi 6078done 6079 6080 6081 6082# strcasecmp and strncasecmp, gnulib-style. 6083 6084 6085 6086for ac_func in strcasecmp 6087do 6088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6089echo "$as_me:$LINENO: checking for $ac_func" >&5 6090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6091if eval "test \"\${$as_ac_var+set}\" = set"; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 cat >conftest.$ac_ext <<_ACEOF 6095/* confdefs.h. */ 6096_ACEOF 6097cat confdefs.h >>conftest.$ac_ext 6098cat >>conftest.$ac_ext <<_ACEOF 6099/* end confdefs.h. */ 6100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6101 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6102#define $ac_func innocuous_$ac_func 6103 6104/* System header to define __stub macros and hopefully few prototypes, 6105 which can conflict with char $ac_func (); below. 6106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6107 <limits.h> exists even on freestanding compilers. */ 6108 6109#ifdef __STDC__ 6110# include <limits.h> 6111#else 6112# include <assert.h> 6113#endif 6114 6115#undef $ac_func 6116 6117/* Override any gcc2 internal prototype to avoid an error. */ 6118#ifdef __cplusplus 6119extern "C" 6120{ 6121#endif 6122/* We use char because int might match the return type of a gcc2 6123 builtin and then its argument prototype would still apply. */ 6124char $ac_func (); 6125/* The GNU C library defines this for functions which it implements 6126 to always fail with ENOSYS. Some functions are actually named 6127 something starting with __ and the normal name is an alias. */ 6128#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6129choke me 6130#else 6131char (*f) () = $ac_func; 6132#endif 6133#ifdef __cplusplus 6134} 6135#endif 6136 6137int 6138main () 6139{ 6140return f != $ac_func; 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest.$ac_objext conftest$ac_exeext 6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6147 (eval $ac_link) 2>conftest.er1 6148 ac_status=$? 6149 grep -v '^ *+' conftest.er1 >conftest.err 6150 rm -f conftest.er1 6151 cat conftest.err >&5 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); } && 6154 { ac_try='test -z "$ac_c_werror_flag" 6155 || test ! -s conftest.err' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; } && 6161 { ac_try='test -s conftest$ac_exeext' 6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6163 (eval $ac_try) 2>&5 6164 ac_status=$? 6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 (exit $ac_status); }; }; then 6167 eval "$as_ac_var=yes" 6168else 6169 echo "$as_me: failed program was:" >&5 6170sed 's/^/| /' conftest.$ac_ext >&5 6171 6172eval "$as_ac_var=no" 6173fi 6174rm -f conftest.err conftest.$ac_objext \ 6175 conftest$ac_exeext conftest.$ac_ext 6176fi 6177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6179if test `eval echo '${'$as_ac_var'}'` = yes; then 6180 cat >>confdefs.h <<_ACEOF 6181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6182_ACEOF 6183 6184else 6185 case $LIBOBJS in 6186 "$ac_func.$ac_objext" | \ 6187 *" $ac_func.$ac_objext" | \ 6188 "$ac_func.$ac_objext "* | \ 6189 *" $ac_func.$ac_objext "* ) ;; 6190 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6191esac 6192 6193fi 6194done 6195 6196 6197 if test $ac_cv_func_strcasecmp = no; then 6198 6199 : 6200 6201 fi 6202 6203 6204 6205for ac_func in strncasecmp 6206do 6207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6208echo "$as_me:$LINENO: checking for $ac_func" >&5 6209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6210if eval "test \"\${$as_ac_var+set}\" = set"; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 cat >conftest.$ac_ext <<_ACEOF 6214/* confdefs.h. */ 6215_ACEOF 6216cat confdefs.h >>conftest.$ac_ext 6217cat >>conftest.$ac_ext <<_ACEOF 6218/* end confdefs.h. */ 6219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6220 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6221#define $ac_func innocuous_$ac_func 6222 6223/* System header to define __stub macros and hopefully few prototypes, 6224 which can conflict with char $ac_func (); below. 6225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6226 <limits.h> exists even on freestanding compilers. */ 6227 6228#ifdef __STDC__ 6229# include <limits.h> 6230#else 6231# include <assert.h> 6232#endif 6233 6234#undef $ac_func 6235 6236/* Override any gcc2 internal prototype to avoid an error. */ 6237#ifdef __cplusplus 6238extern "C" 6239{ 6240#endif 6241/* We use char because int might match the return type of a gcc2 6242 builtin and then its argument prototype would still apply. */ 6243char $ac_func (); 6244/* The GNU C library defines this for functions which it implements 6245 to always fail with ENOSYS. Some functions are actually named 6246 something starting with __ and the normal name is an alias. */ 6247#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6248choke me 6249#else 6250char (*f) () = $ac_func; 6251#endif 6252#ifdef __cplusplus 6253} 6254#endif 6255 6256int 6257main () 6258{ 6259return f != $ac_func; 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264rm -f conftest.$ac_objext conftest$ac_exeext 6265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6266 (eval $ac_link) 2>conftest.er1 6267 ac_status=$? 6268 grep -v '^ *+' conftest.er1 >conftest.err 6269 rm -f conftest.er1 6270 cat conftest.err >&5 6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } && 6273 { ac_try='test -z "$ac_c_werror_flag" 6274 || test ! -s conftest.err' 6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6276 (eval $ac_try) 2>&5 6277 ac_status=$? 6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6279 (exit $ac_status); }; } && 6280 { ac_try='test -s conftest$ac_exeext' 6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6282 (eval $ac_try) 2>&5 6283 ac_status=$? 6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6285 (exit $ac_status); }; }; then 6286 eval "$as_ac_var=yes" 6287else 6288 echo "$as_me: failed program was:" >&5 6289sed 's/^/| /' conftest.$ac_ext >&5 6290 6291eval "$as_ac_var=no" 6292fi 6293rm -f conftest.err conftest.$ac_objext \ 6294 conftest$ac_exeext conftest.$ac_ext 6295fi 6296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6298if test `eval echo '${'$as_ac_var'}'` = yes; then 6299 cat >>confdefs.h <<_ACEOF 6300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6301_ACEOF 6302 6303else 6304 case $LIBOBJS in 6305 "$ac_func.$ac_objext" | \ 6306 *" $ac_func.$ac_objext" | \ 6307 "$ac_func.$ac_objext "* | \ 6308 *" $ac_func.$ac_objext "* ) ;; 6309 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6310esac 6311 6312fi 6313done 6314 6315 6316 if test $ac_cv_func_strncasecmp = no; then 6317 6318 : 6319 6320 fi 6321 6322 6323 6324# We want to recognize djgpp to avoid the useless warning about no 6325# term library. 6326# Make sure we can run config.sub. 6327$ac_config_sub sun4 >/dev/null 2>&1 || 6328 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6329echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6330 { (exit 1); exit 1; }; } 6331 6332echo "$as_me:$LINENO: checking build system type" >&5 6333echo $ECHO_N "checking build system type... $ECHO_C" >&6 6334if test "${ac_cv_build+set}" = set; then 6335 echo $ECHO_N "(cached) $ECHO_C" >&6 6336else 6337 ac_cv_build_alias=$build_alias 6338test -z "$ac_cv_build_alias" && 6339 ac_cv_build_alias=`$ac_config_guess` 6340test -z "$ac_cv_build_alias" && 6341 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6342echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6343 { (exit 1); exit 1; }; } 6344ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 6345 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 6346echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 6347 { (exit 1); exit 1; }; } 6348 6349fi 6350echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6351echo "${ECHO_T}$ac_cv_build" >&6 6352build=$ac_cv_build 6353build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6354build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6355build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6356 6357 6358 6359# We need to run some of our own binaries, most notably makedoc, but as 6360# long as we have this process, we also use our own makeinfo and 6361# install-info. 6362# 6363# This means that if we are cross compiling, we have to configure the 6364# package twice: once with the native compiler (this is done in a 6365# subdirectory $native_tools), and once with the cross compiler. 6366# The former is invoked automatically here, with --host=$build. 6367# $native_tools is also added to SUBDIRS in the main Makefile.am, 6368# so that make compiles the native tools first. 6369# 6370if test "$cross_compiling" = no; then 6371 native_tools= 6372else 6373 native_tools=tools 6374 test -d "$native_tools" || mkdir "$native_tools" 6375 confdir=`(cd "$srcdir";pwd)` 6376 # Make sure the secondary configure won't fail with 6377 # "error: source directory already configured". 6378 rm -f config.status 6379 { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5 6380echo "$as_me: Doing configure of native tools (${build})." >&6;} 6381 cd "$native_tools" || exit 1 6382 # Run secondary configure in alternate environment or 6383 # it gets the wrong CC etc. env -i gives this build host configure 6384 # a clean environment. 6385 env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \ 6386 PATH="${PATH}" \ 6387 tools_only=1 \ 6388 ${confdir}/configure --build=${build} --host=${build} \ 6389 --disable-rpath --disable-nls 6390 cd .. || exit 1 6391 { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5 6392echo "$as_me: Continuing with main configure (${host})." >&6;} 6393fi 6394 6395 6396 6397if test "x$tools_only" = x1; then 6398 TOOLS_ONLY_TRUE= 6399 TOOLS_ONLY_FALSE='#' 6400else 6401 TOOLS_ONLY_TRUE='#' 6402 TOOLS_ONLY_FALSE= 6403fi 6404 6405 6406# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but 6407# rather ncurses. So we check for it. 6408TERMLIBS= 6409# Check for termlib before termcap because Solaris termcap needs libucb. 6410TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo" 6411for termlib in ${TERMLIB_VARIANTS}; do 6412 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 6413echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5 6414echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6 6415if eval "test \"\${$as_ac_Lib+set}\" = set"; then 6416 echo $ECHO_N "(cached) $ECHO_C" >&6 6417else 6418 ac_check_lib_save_LIBS=$LIBS 6419LIBS="-l${termlib} $LIBS" 6420cat >conftest.$ac_ext <<_ACEOF 6421/* confdefs.h. */ 6422_ACEOF 6423cat confdefs.h >>conftest.$ac_ext 6424cat >>conftest.$ac_ext <<_ACEOF 6425/* end confdefs.h. */ 6426 6427/* Override any gcc2 internal prototype to avoid an error. */ 6428#ifdef __cplusplus 6429extern "C" 6430#endif 6431/* We use char because int might match the return type of a gcc2 6432 builtin and then its argument prototype would still apply. */ 6433char tgetent (); 6434int 6435main () 6436{ 6437tgetent (); 6438 ; 6439 return 0; 6440} 6441_ACEOF 6442rm -f conftest.$ac_objext conftest$ac_exeext 6443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6444 (eval $ac_link) 2>conftest.er1 6445 ac_status=$? 6446 grep -v '^ *+' conftest.er1 >conftest.err 6447 rm -f conftest.er1 6448 cat conftest.err >&5 6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6450 (exit $ac_status); } && 6451 { ac_try='test -z "$ac_c_werror_flag" 6452 || test ! -s conftest.err' 6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6454 (eval $ac_try) 2>&5 6455 ac_status=$? 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 (exit $ac_status); }; } && 6458 { ac_try='test -s conftest$ac_exeext' 6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6460 (eval $ac_try) 2>&5 6461 ac_status=$? 6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); }; }; then 6464 eval "$as_ac_Lib=yes" 6465else 6466 echo "$as_me: failed program was:" >&5 6467sed 's/^/| /' conftest.$ac_ext >&5 6468 6469eval "$as_ac_Lib=no" 6470fi 6471rm -f conftest.err conftest.$ac_objext \ 6472 conftest$ac_exeext conftest.$ac_ext 6473LIBS=$ac_check_lib_save_LIBS 6474fi 6475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 6476echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 6477if test `eval echo '${'$as_ac_Lib'}'` = yes; then 6478 TERMLIBS="${TERMLIBS} -l${termlib}"; break 6479fi 6480 6481done 6482# don't bother warning on djgpp, it doesn't have a term library, it 6483# ports each termcap-needing program separately according to its needs. 6484if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then 6485 { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5 6486echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;} 6487fi 6488 6489# Checks for variables. 6490# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. 6491echo "$as_me:$LINENO: checking for library with termcap variables" >&5 6492echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6 6493if test "${ac_cv_var_ospeed+set}" = set; then 6494 echo $ECHO_N "(cached) $ECHO_C" >&6 6495else 6496 oldLIBS=$LIBS 6497for trylib in $termlib ${TERMLIB_VARIANTS}; do 6498 if test "x$trylib" != "x$termlib"; then 6499 LIBS="$oldLIBS -l$termlib -l$trylib" 6500 else 6501 LIBS="$oldLIBS -l$termlib" 6502 fi 6503 cat >conftest.$ac_ext <<_ACEOF 6504/* confdefs.h. */ 6505_ACEOF 6506cat confdefs.h >>conftest.$ac_ext 6507cat >>conftest.$ac_ext <<_ACEOF 6508/* end confdefs.h. */ 6509 6510int 6511main () 6512{ 6513#ifdef HAVE_NCURSES_TERMCAP_H 6514#include <ncurses/termcap.h> 6515#else 6516#ifdef HAVE_TERMCAP_H 6517#include <termcap.h> 6518#else 6519#undef PC 6520char *BC; 6521char **UP; 6522char PC; 6523short ospeed; 6524#endif 6525#endif 6526/* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC. 6527 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */ 6528BC++; 6529UP++; 6530PC++; 6531return ospeed != 0; 6532 6533 ; 6534 return 0; 6535} 6536_ACEOF 6537rm -f conftest.$ac_objext conftest$ac_exeext 6538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6539 (eval $ac_link) 2>conftest.er1 6540 ac_status=$? 6541 grep -v '^ *+' conftest.er1 >conftest.err 6542 rm -f conftest.er1 6543 cat conftest.err >&5 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 (exit $ac_status); } && 6546 { ac_try='test -z "$ac_c_werror_flag" 6547 || test ! -s conftest.err' 6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6549 (eval $ac_try) 2>&5 6550 ac_status=$? 6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); }; } && 6553 { ac_try='test -s conftest$ac_exeext' 6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6555 (eval $ac_try) 2>&5 6556 ac_status=$? 6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6558 (exit $ac_status); }; }; then 6559 ac_cv_var_ospeed=$trylib; break 6560else 6561 echo "$as_me: failed program was:" >&5 6562sed 's/^/| /' conftest.$ac_ext >&5 6563 6564fi 6565rm -f conftest.err conftest.$ac_objext \ 6566 conftest$ac_exeext conftest.$ac_ext 6567done 6568LIBS=$oldLIBS 6569 6570fi 6571 6572echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5 6573echo "${ECHO_T}$ac_cv_var_ospeed" >&6 6574if test -n "$ac_cv_var_ospeed" \ 6575 && test "x$termlib" != "x$ac_cv_var_ospeed"; then 6576 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" 6577fi 6578# 6579 6580# Do not use <ncurses/termcap.h> unless we're linking with ncurses. 6581# Must come after the termlib tests. 6582if test "x$termlib" = xncurses; then 6583 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined. 6584 6585for ac_header in ncurses/termcap.h 6586do 6587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6588if eval "test \"\${$as_ac_Header+set}\" = set"; then 6589 echo "$as_me:$LINENO: checking for $ac_header" >&5 6590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6591if eval "test \"\${$as_ac_Header+set}\" = set"; then 6592 echo $ECHO_N "(cached) $ECHO_C" >&6 6593fi 6594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6596else 6597 # Is the header compilable? 6598echo "$as_me:$LINENO: checking $ac_header usability" >&5 6599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6600cat >conftest.$ac_ext <<_ACEOF 6601/* confdefs.h. */ 6602_ACEOF 6603cat confdefs.h >>conftest.$ac_ext 6604cat >>conftest.$ac_ext <<_ACEOF 6605/* end confdefs.h. */ 6606$ac_includes_default 6607#include <$ac_header> 6608_ACEOF 6609rm -f conftest.$ac_objext 6610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6611 (eval $ac_compile) 2>conftest.er1 6612 ac_status=$? 6613 grep -v '^ *+' conftest.er1 >conftest.err 6614 rm -f conftest.er1 6615 cat conftest.err >&5 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); } && 6618 { ac_try='test -z "$ac_c_werror_flag" 6619 || test ! -s conftest.err' 6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6621 (eval $ac_try) 2>&5 6622 ac_status=$? 6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6624 (exit $ac_status); }; } && 6625 { ac_try='test -s conftest.$ac_objext' 6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6627 (eval $ac_try) 2>&5 6628 ac_status=$? 6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6630 (exit $ac_status); }; }; then 6631 ac_header_compiler=yes 6632else 6633 echo "$as_me: failed program was:" >&5 6634sed 's/^/| /' conftest.$ac_ext >&5 6635 6636ac_header_compiler=no 6637fi 6638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6640echo "${ECHO_T}$ac_header_compiler" >&6 6641 6642# Is the header present? 6643echo "$as_me:$LINENO: checking $ac_header presence" >&5 6644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6645cat >conftest.$ac_ext <<_ACEOF 6646/* confdefs.h. */ 6647_ACEOF 6648cat confdefs.h >>conftest.$ac_ext 6649cat >>conftest.$ac_ext <<_ACEOF 6650/* end confdefs.h. */ 6651#include <$ac_header> 6652_ACEOF 6653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } >/dev/null; then 6661 if test -s conftest.err; then 6662 ac_cpp_err=$ac_c_preproc_warn_flag 6663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6664 else 6665 ac_cpp_err= 6666 fi 6667else 6668 ac_cpp_err=yes 6669fi 6670if test -z "$ac_cpp_err"; then 6671 ac_header_preproc=yes 6672else 6673 echo "$as_me: failed program was:" >&5 6674sed 's/^/| /' conftest.$ac_ext >&5 6675 6676 ac_header_preproc=no 6677fi 6678rm -f conftest.err conftest.$ac_ext 6679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6680echo "${ECHO_T}$ac_header_preproc" >&6 6681 6682# So? What about this header? 6683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6684 yes:no: ) 6685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6689 ac_header_preproc=yes 6690 ;; 6691 no:yes:* ) 6692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6704 ( 6705 cat <<\_ASBOX 6706## -------------------------------------- ## 6707## Report this to the GNU Texinfo lists. ## 6708## -------------------------------------- ## 6709_ASBOX 6710 ) | 6711 sed "s/^/$as_me: WARNING: /" >&2 6712 ;; 6713esac 6714echo "$as_me:$LINENO: checking for $ac_header" >&5 6715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6716if eval "test \"\${$as_ac_Header+set}\" = set"; then 6717 echo $ECHO_N "(cached) $ECHO_C" >&6 6718else 6719 eval "$as_ac_Header=\$ac_header_preproc" 6720fi 6721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6723 6724fi 6725if test `eval echo '${'$as_ac_Header'}'` = yes; then 6726 cat >>confdefs.h <<_ACEOF 6727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6728_ACEOF 6729 6730fi 6731 6732done 6733 6734fi 6735 6736# gnulib. 6737 6738 6739 6740 6741 6742for ac_header in $gl_header_list 6743do 6744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6745if eval "test \"\${$as_ac_Header+set}\" = set"; then 6746 echo "$as_me:$LINENO: checking for $ac_header" >&5 6747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6748if eval "test \"\${$as_ac_Header+set}\" = set"; then 6749 echo $ECHO_N "(cached) $ECHO_C" >&6 6750fi 6751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6753else 6754 # Is the header compilable? 6755echo "$as_me:$LINENO: checking $ac_header usability" >&5 6756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6757cat >conftest.$ac_ext <<_ACEOF 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763$ac_includes_default 6764#include <$ac_header> 6765_ACEOF 6766rm -f conftest.$ac_objext 6767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6768 (eval $ac_compile) 2>conftest.er1 6769 ac_status=$? 6770 grep -v '^ *+' conftest.er1 >conftest.err 6771 rm -f conftest.er1 6772 cat conftest.err >&5 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); } && 6775 { ac_try='test -z "$ac_c_werror_flag" 6776 || test ! -s conftest.err' 6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6778 (eval $ac_try) 2>&5 6779 ac_status=$? 6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781 (exit $ac_status); }; } && 6782 { ac_try='test -s conftest.$ac_objext' 6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784 (eval $ac_try) 2>&5 6785 ac_status=$? 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 (exit $ac_status); }; }; then 6788 ac_header_compiler=yes 6789else 6790 echo "$as_me: failed program was:" >&5 6791sed 's/^/| /' conftest.$ac_ext >&5 6792 6793ac_header_compiler=no 6794fi 6795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6797echo "${ECHO_T}$ac_header_compiler" >&6 6798 6799# Is the header present? 6800echo "$as_me:$LINENO: checking $ac_header presence" >&5 6801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6802cat >conftest.$ac_ext <<_ACEOF 6803/* confdefs.h. */ 6804_ACEOF 6805cat confdefs.h >>conftest.$ac_ext 6806cat >>conftest.$ac_ext <<_ACEOF 6807/* end confdefs.h. */ 6808#include <$ac_header> 6809_ACEOF 6810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6812 ac_status=$? 6813 grep -v '^ *+' conftest.er1 >conftest.err 6814 rm -f conftest.er1 6815 cat conftest.err >&5 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 (exit $ac_status); } >/dev/null; then 6818 if test -s conftest.err; then 6819 ac_cpp_err=$ac_c_preproc_warn_flag 6820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6821 else 6822 ac_cpp_err= 6823 fi 6824else 6825 ac_cpp_err=yes 6826fi 6827if test -z "$ac_cpp_err"; then 6828 ac_header_preproc=yes 6829else 6830 echo "$as_me: failed program was:" >&5 6831sed 's/^/| /' conftest.$ac_ext >&5 6832 6833 ac_header_preproc=no 6834fi 6835rm -f conftest.err conftest.$ac_ext 6836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6837echo "${ECHO_T}$ac_header_preproc" >&6 6838 6839# So? What about this header? 6840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6841 yes:no: ) 6842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6846 ac_header_preproc=yes 6847 ;; 6848 no:yes:* ) 6849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6861 ( 6862 cat <<\_ASBOX 6863## -------------------------------------- ## 6864## Report this to the GNU Texinfo lists. ## 6865## -------------------------------------- ## 6866_ASBOX 6867 ) | 6868 sed "s/^/$as_me: WARNING: /" >&2 6869 ;; 6870esac 6871echo "$as_me:$LINENO: checking for $ac_header" >&5 6872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6873if eval "test \"\${$as_ac_Header+set}\" = set"; then 6874 echo $ECHO_N "(cached) $ECHO_C" >&6 6875else 6876 eval "$as_ac_Header=\$ac_header_preproc" 6877fi 6878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6880 6881fi 6882if test `eval echo '${'$as_ac_Header'}'` = yes; then 6883 cat >>confdefs.h <<_ACEOF 6884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6885_ACEOF 6886 6887fi 6888 6889done 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 echo "$as_me:$LINENO: checking whether getenv is declared" >&5 6910echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 6911if test "${ac_cv_have_decl_getenv+set}" = set; then 6912 echo $ECHO_N "(cached) $ECHO_C" >&6 6913else 6914 cat >conftest.$ac_ext <<_ACEOF 6915/* confdefs.h. */ 6916_ACEOF 6917cat confdefs.h >>conftest.$ac_ext 6918cat >>conftest.$ac_ext <<_ACEOF 6919/* end confdefs.h. */ 6920$ac_includes_default 6921int 6922main () 6923{ 6924#ifndef getenv 6925 char *p = (char *) getenv; 6926#endif 6927 6928 ; 6929 return 0; 6930} 6931_ACEOF 6932rm -f conftest.$ac_objext 6933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6934 (eval $ac_compile) 2>conftest.er1 6935 ac_status=$? 6936 grep -v '^ *+' conftest.er1 >conftest.err 6937 rm -f conftest.er1 6938 cat conftest.err >&5 6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6940 (exit $ac_status); } && 6941 { ac_try='test -z "$ac_c_werror_flag" 6942 || test ! -s conftest.err' 6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6944 (eval $ac_try) 2>&5 6945 ac_status=$? 6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6947 (exit $ac_status); }; } && 6948 { ac_try='test -s conftest.$ac_objext' 6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6950 (eval $ac_try) 2>&5 6951 ac_status=$? 6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6953 (exit $ac_status); }; }; then 6954 ac_cv_have_decl_getenv=yes 6955else 6956 echo "$as_me: failed program was:" >&5 6957sed 's/^/| /' conftest.$ac_ext >&5 6958 6959ac_cv_have_decl_getenv=no 6960fi 6961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6962fi 6963echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 6964echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 6965if test $ac_cv_have_decl_getenv = yes; then 6966 6967cat >>confdefs.h <<_ACEOF 6968#define HAVE_DECL_GETENV 1 6969_ACEOF 6970 6971 6972else 6973 cat >>confdefs.h <<_ACEOF 6974#define HAVE_DECL_GETENV 0 6975_ACEOF 6976 6977 6978fi 6979 6980 6981 6982 6983 echo "$as_me:$LINENO: checking for inttypes.h" >&5 6984echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 6985if test "${gl_cv_header_inttypes_h+set}" = set; then 6986 echo $ECHO_N "(cached) $ECHO_C" >&6 6987else 6988 cat >conftest.$ac_ext <<_ACEOF 6989/* confdefs.h. */ 6990_ACEOF 6991cat confdefs.h >>conftest.$ac_ext 6992cat >>conftest.$ac_ext <<_ACEOF 6993/* end confdefs.h. */ 6994#include <sys/types.h> 6995#include <inttypes.h> 6996int 6997main () 6998{ 6999uintmax_t i = (uintmax_t) -1; 7000 ; 7001 return 0; 7002} 7003_ACEOF 7004rm -f conftest.$ac_objext 7005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7006 (eval $ac_compile) 2>conftest.er1 7007 ac_status=$? 7008 grep -v '^ *+' conftest.er1 >conftest.err 7009 rm -f conftest.er1 7010 cat conftest.err >&5 7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7012 (exit $ac_status); } && 7013 { ac_try='test -z "$ac_c_werror_flag" 7014 || test ! -s conftest.err' 7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 (eval $ac_try) 2>&5 7017 ac_status=$? 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); }; } && 7020 { ac_try='test -s conftest.$ac_objext' 7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7022 (eval $ac_try) 2>&5 7023 ac_status=$? 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7025 (exit $ac_status); }; }; then 7026 gl_cv_header_inttypes_h=yes 7027else 7028 echo "$as_me: failed program was:" >&5 7029sed 's/^/| /' conftest.$ac_ext >&5 7030 7031gl_cv_header_inttypes_h=no 7032fi 7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7034fi 7035echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 7036echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 7037 if test $gl_cv_header_inttypes_h = yes; then 7038 7039cat >>confdefs.h <<_ACEOF 7040#define HAVE_INTTYPES_H_WITH_UINTMAX 1 7041_ACEOF 7042 7043 fi 7044 7045 7046 echo "$as_me:$LINENO: checking for stdint.h" >&5 7047echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 7048if test "${gl_cv_header_stdint_h+set}" = set; then 7049 echo $ECHO_N "(cached) $ECHO_C" >&6 7050else 7051 cat >conftest.$ac_ext <<_ACEOF 7052/* confdefs.h. */ 7053_ACEOF 7054cat confdefs.h >>conftest.$ac_ext 7055cat >>conftest.$ac_ext <<_ACEOF 7056/* end confdefs.h. */ 7057#include <sys/types.h> 7058#include <stdint.h> 7059int 7060main () 7061{ 7062uintmax_t i = (uintmax_t) -1; 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067rm -f conftest.$ac_objext 7068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7069 (eval $ac_compile) 2>conftest.er1 7070 ac_status=$? 7071 grep -v '^ *+' conftest.er1 >conftest.err 7072 rm -f conftest.er1 7073 cat conftest.err >&5 7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7075 (exit $ac_status); } && 7076 { ac_try='test -z "$ac_c_werror_flag" 7077 || test ! -s conftest.err' 7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7079 (eval $ac_try) 2>&5 7080 ac_status=$? 7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 (exit $ac_status); }; } && 7083 { ac_try='test -s conftest.$ac_objext' 7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7085 (eval $ac_try) 2>&5 7086 ac_status=$? 7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 (exit $ac_status); }; }; then 7089 gl_cv_header_stdint_h=yes 7090else 7091 echo "$as_me: failed program was:" >&5 7092sed 's/^/| /' conftest.$ac_ext >&5 7093 7094gl_cv_header_stdint_h=no 7095fi 7096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 7099echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 7100 if test $gl_cv_header_stdint_h = yes; then 7101 7102cat >>confdefs.h <<_ACEOF 7103#define HAVE_STDINT_H_WITH_UINTMAX 1 7104_ACEOF 7105 7106 fi 7107 7108 7109 echo "$as_me:$LINENO: checking for unsigned long long" >&5 7110echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7111if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7112 echo $ECHO_N "(cached) $ECHO_C" >&6 7113else 7114 cat >conftest.$ac_ext <<_ACEOF 7115/* confdefs.h. */ 7116_ACEOF 7117cat confdefs.h >>conftest.$ac_ext 7118cat >>conftest.$ac_ext <<_ACEOF 7119/* end confdefs.h. */ 7120unsigned long long ull = 1ULL; int i = 63; 7121int 7122main () 7123{ 7124unsigned long long ullmax = (unsigned long long) -1; 7125 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130rm -f conftest.$ac_objext conftest$ac_exeext 7131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7132 (eval $ac_link) 2>conftest.er1 7133 ac_status=$? 7134 grep -v '^ *+' conftest.er1 >conftest.err 7135 rm -f conftest.er1 7136 cat conftest.err >&5 7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7138 (exit $ac_status); } && 7139 { ac_try='test -z "$ac_c_werror_flag" 7140 || test ! -s conftest.err' 7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7142 (eval $ac_try) 2>&5 7143 ac_status=$? 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 (exit $ac_status); }; } && 7146 { ac_try='test -s conftest$ac_exeext' 7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7148 (eval $ac_try) 2>&5 7149 ac_status=$? 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); }; }; then 7152 ac_cv_type_unsigned_long_long=yes 7153else 7154 echo "$as_me: failed program was:" >&5 7155sed 's/^/| /' conftest.$ac_ext >&5 7156 7157ac_cv_type_unsigned_long_long=no 7158fi 7159rm -f conftest.err conftest.$ac_objext \ 7160 conftest$ac_exeext conftest.$ac_ext 7161fi 7162echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7163echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7164 if test $ac_cv_type_unsigned_long_long = yes; then 7165 7166cat >>confdefs.h <<\_ACEOF 7167#define HAVE_UNSIGNED_LONG_LONG 1 7168_ACEOF 7169 7170 fi 7171 7172 7173 7174 7175 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7176 7177 test $ac_cv_type_unsigned_long_long = yes \ 7178 && ac_type='unsigned long long' \ 7179 || ac_type='unsigned long' 7180 7181cat >>confdefs.h <<_ACEOF 7182#define uintmax_t $ac_type 7183_ACEOF 7184 7185 else 7186 7187cat >>confdefs.h <<\_ACEOF 7188#define HAVE_UINTMAX_T 1 7189_ACEOF 7190 7191 fi 7192 7193 7194for ac_func in mkstemp 7195do 7196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7197echo "$as_me:$LINENO: checking for $ac_func" >&5 7198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7199if eval "test \"\${$as_ac_var+set}\" = set"; then 7200 echo $ECHO_N "(cached) $ECHO_C" >&6 7201else 7202 cat >conftest.$ac_ext <<_ACEOF 7203/* confdefs.h. */ 7204_ACEOF 7205cat confdefs.h >>conftest.$ac_ext 7206cat >>conftest.$ac_ext <<_ACEOF 7207/* end confdefs.h. */ 7208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7209 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7210#define $ac_func innocuous_$ac_func 7211 7212/* System header to define __stub macros and hopefully few prototypes, 7213 which can conflict with char $ac_func (); below. 7214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7215 <limits.h> exists even on freestanding compilers. */ 7216 7217#ifdef __STDC__ 7218# include <limits.h> 7219#else 7220# include <assert.h> 7221#endif 7222 7223#undef $ac_func 7224 7225/* Override any gcc2 internal prototype to avoid an error. */ 7226#ifdef __cplusplus 7227extern "C" 7228{ 7229#endif 7230/* We use char because int might match the return type of a gcc2 7231 builtin and then its argument prototype would still apply. */ 7232char $ac_func (); 7233/* The GNU C library defines this for functions which it implements 7234 to always fail with ENOSYS. Some functions are actually named 7235 something starting with __ and the normal name is an alias. */ 7236#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7237choke me 7238#else 7239char (*f) () = $ac_func; 7240#endif 7241#ifdef __cplusplus 7242} 7243#endif 7244 7245int 7246main () 7247{ 7248return f != $ac_func; 7249 ; 7250 return 0; 7251} 7252_ACEOF 7253rm -f conftest.$ac_objext conftest$ac_exeext 7254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7255 (eval $ac_link) 2>conftest.er1 7256 ac_status=$? 7257 grep -v '^ *+' conftest.er1 >conftest.err 7258 rm -f conftest.er1 7259 cat conftest.err >&5 7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7261 (exit $ac_status); } && 7262 { ac_try='test -z "$ac_c_werror_flag" 7263 || test ! -s conftest.err' 7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7265 (eval $ac_try) 2>&5 7266 ac_status=$? 7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7268 (exit $ac_status); }; } && 7269 { ac_try='test -s conftest$ac_exeext' 7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7271 (eval $ac_try) 2>&5 7272 ac_status=$? 7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7274 (exit $ac_status); }; }; then 7275 eval "$as_ac_var=yes" 7276else 7277 echo "$as_me: failed program was:" >&5 7278sed 's/^/| /' conftest.$ac_ext >&5 7279 7280eval "$as_ac_var=no" 7281fi 7282rm -f conftest.err conftest.$ac_objext \ 7283 conftest$ac_exeext conftest.$ac_ext 7284fi 7285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7287if test `eval echo '${'$as_ac_var'}'` = yes; then 7288 cat >>confdefs.h <<_ACEOF 7289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7290_ACEOF 7291 7292else 7293 case $LIBOBJS in 7294 "$ac_func.$ac_objext" | \ 7295 *" $ac_func.$ac_objext" | \ 7296 "$ac_func.$ac_objext "* | \ 7297 *" $ac_func.$ac_objext "* ) ;; 7298 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 7299esac 7300 7301fi 7302done 7303 7304 7305 if test $ac_cv_func_mkstemp = no; then 7306 gl_cv_func_mkstemp_limitations=yes 7307 else 7308 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5 7309echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6 7310if test "${gl_cv_func_mkstemp_limitations+set}" = set; then 7311 echo $ECHO_N "(cached) $ECHO_C" >&6 7312else 7313 7314 if test "$cross_compiling" = yes; then 7315 gl_cv_func_mkstemp_limitations=yes 7316 7317else 7318 cat >conftest.$ac_ext <<_ACEOF 7319/* confdefs.h. */ 7320_ACEOF 7321cat confdefs.h >>conftest.$ac_ext 7322cat >>conftest.$ac_ext <<_ACEOF 7323/* end confdefs.h. */ 7324 7325# include <stdlib.h> 7326 int main () 7327 { 7328 int i; 7329 for (i = 0; i < 70; i++) 7330 { 7331 char template[] = "conftestXXXXXX"; 7332 int fd = mkstemp (template); 7333 if (fd == -1) 7334 exit (1); 7335 close (fd); 7336 } 7337 exit (0); 7338 } 7339 7340_ACEOF 7341rm -f conftest$ac_exeext 7342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7343 (eval $ac_link) 2>&5 7344 ac_status=$? 7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7348 (eval $ac_try) 2>&5 7349 ac_status=$? 7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7351 (exit $ac_status); }; }; then 7352 gl_cv_func_mkstemp_limitations=no 7353else 7354 echo "$as_me: program exited with status $ac_status" >&5 7355echo "$as_me: failed program was:" >&5 7356sed 's/^/| /' conftest.$ac_ext >&5 7357 7358( exit $ac_status ) 7359gl_cv_func_mkstemp_limitations=yes 7360fi 7361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7362fi 7363 7364 7365fi 7366echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5 7367echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6 7368 fi 7369 7370 if test $gl_cv_func_mkstemp_limitations = yes; then 7371 case $LIBOBJS in 7372 "mkstemp.$ac_objext" | \ 7373 *" mkstemp.$ac_objext" | \ 7374 "mkstemp.$ac_objext "* | \ 7375 *" mkstemp.$ac_objext "* ) ;; 7376 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;; 7377esac 7378 7379 case $LIBOBJS in 7380 "tempname.$ac_objext" | \ 7381 *" tempname.$ac_objext" | \ 7382 "tempname.$ac_objext "* | \ 7383 *" tempname.$ac_objext "* ) ;; 7384 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;; 7385esac 7386 7387 7388cat >>confdefs.h <<\_ACEOF 7389#define mkstemp rpl_mkstemp 7390_ACEOF 7391 7392 7393 7394 7395 7396 7397 : 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410for ac_header in stdint.h 7411do 7412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7413if eval "test \"\${$as_ac_Header+set}\" = set"; then 7414 echo "$as_me:$LINENO: checking for $ac_header" >&5 7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7416if eval "test \"\${$as_ac_Header+set}\" = set"; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418fi 7419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7421else 7422 # Is the header compilable? 7423echo "$as_me:$LINENO: checking $ac_header usability" >&5 7424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7425cat >conftest.$ac_ext <<_ACEOF 7426/* confdefs.h. */ 7427_ACEOF 7428cat confdefs.h >>conftest.$ac_ext 7429cat >>conftest.$ac_ext <<_ACEOF 7430/* end confdefs.h. */ 7431$ac_includes_default 7432#include <$ac_header> 7433_ACEOF 7434rm -f conftest.$ac_objext 7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7436 (eval $ac_compile) 2>conftest.er1 7437 ac_status=$? 7438 grep -v '^ *+' conftest.er1 >conftest.err 7439 rm -f conftest.er1 7440 cat conftest.err >&5 7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7442 (exit $ac_status); } && 7443 { ac_try='test -z "$ac_c_werror_flag" 7444 || test ! -s conftest.err' 7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7446 (eval $ac_try) 2>&5 7447 ac_status=$? 7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7449 (exit $ac_status); }; } && 7450 { ac_try='test -s conftest.$ac_objext' 7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7452 (eval $ac_try) 2>&5 7453 ac_status=$? 7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7455 (exit $ac_status); }; }; then 7456 ac_header_compiler=yes 7457else 7458 echo "$as_me: failed program was:" >&5 7459sed 's/^/| /' conftest.$ac_ext >&5 7460 7461ac_header_compiler=no 7462fi 7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7465echo "${ECHO_T}$ac_header_compiler" >&6 7466 7467# Is the header present? 7468echo "$as_me:$LINENO: checking $ac_header presence" >&5 7469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7470cat >conftest.$ac_ext <<_ACEOF 7471/* confdefs.h. */ 7472_ACEOF 7473cat confdefs.h >>conftest.$ac_ext 7474cat >>conftest.$ac_ext <<_ACEOF 7475/* end confdefs.h. */ 7476#include <$ac_header> 7477_ACEOF 7478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7480 ac_status=$? 7481 grep -v '^ *+' conftest.er1 >conftest.err 7482 rm -f conftest.er1 7483 cat conftest.err >&5 7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7485 (exit $ac_status); } >/dev/null; then 7486 if test -s conftest.err; then 7487 ac_cpp_err=$ac_c_preproc_warn_flag 7488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7489 else 7490 ac_cpp_err= 7491 fi 7492else 7493 ac_cpp_err=yes 7494fi 7495if test -z "$ac_cpp_err"; then 7496 ac_header_preproc=yes 7497else 7498 echo "$as_me: failed program was:" >&5 7499sed 's/^/| /' conftest.$ac_ext >&5 7500 7501 ac_header_preproc=no 7502fi 7503rm -f conftest.err conftest.$ac_ext 7504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7505echo "${ECHO_T}$ac_header_preproc" >&6 7506 7507# So? What about this header? 7508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7509 yes:no: ) 7510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7514 ac_header_preproc=yes 7515 ;; 7516 no:yes:* ) 7517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7529 ( 7530 cat <<\_ASBOX 7531## -------------------------------------- ## 7532## Report this to the GNU Texinfo lists. ## 7533## -------------------------------------- ## 7534_ASBOX 7535 ) | 7536 sed "s/^/$as_me: WARNING: /" >&2 7537 ;; 7538esac 7539echo "$as_me:$LINENO: checking for $ac_header" >&5 7540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7541if eval "test \"\${$as_ac_Header+set}\" = set"; then 7542 echo $ECHO_N "(cached) $ECHO_C" >&6 7543else 7544 eval "$as_ac_Header=\$ac_header_preproc" 7545fi 7546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7548 7549fi 7550if test `eval echo '${'$as_ac_Header'}'` = yes; then 7551 cat >>confdefs.h <<_ACEOF 7552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7553_ACEOF 7554 7555fi 7556 7557done 7558 7559 7560 7561for ac_func in __secure_getenv gettimeofday 7562do 7563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7564echo "$as_me:$LINENO: checking for $ac_func" >&5 7565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7566if eval "test \"\${$as_ac_var+set}\" = set"; then 7567 echo $ECHO_N "(cached) $ECHO_C" >&6 7568else 7569 cat >conftest.$ac_ext <<_ACEOF 7570/* confdefs.h. */ 7571_ACEOF 7572cat confdefs.h >>conftest.$ac_ext 7573cat >>conftest.$ac_ext <<_ACEOF 7574/* end confdefs.h. */ 7575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7576 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7577#define $ac_func innocuous_$ac_func 7578 7579/* System header to define __stub macros and hopefully few prototypes, 7580 which can conflict with char $ac_func (); below. 7581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7582 <limits.h> exists even on freestanding compilers. */ 7583 7584#ifdef __STDC__ 7585# include <limits.h> 7586#else 7587# include <assert.h> 7588#endif 7589 7590#undef $ac_func 7591 7592/* Override any gcc2 internal prototype to avoid an error. */ 7593#ifdef __cplusplus 7594extern "C" 7595{ 7596#endif 7597/* We use char because int might match the return type of a gcc2 7598 builtin and then its argument prototype would still apply. */ 7599char $ac_func (); 7600/* The GNU C library defines this for functions which it implements 7601 to always fail with ENOSYS. Some functions are actually named 7602 something starting with __ and the normal name is an alias. */ 7603#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7604choke me 7605#else 7606char (*f) () = $ac_func; 7607#endif 7608#ifdef __cplusplus 7609} 7610#endif 7611 7612int 7613main () 7614{ 7615return f != $ac_func; 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620rm -f conftest.$ac_objext conftest$ac_exeext 7621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7622 (eval $ac_link) 2>conftest.er1 7623 ac_status=$? 7624 grep -v '^ *+' conftest.er1 >conftest.err 7625 rm -f conftest.er1 7626 cat conftest.err >&5 7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 (exit $ac_status); } && 7629 { ac_try='test -z "$ac_c_werror_flag" 7630 || test ! -s conftest.err' 7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7632 (eval $ac_try) 2>&5 7633 ac_status=$? 7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7635 (exit $ac_status); }; } && 7636 { ac_try='test -s conftest$ac_exeext' 7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7638 (eval $ac_try) 2>&5 7639 ac_status=$? 7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7641 (exit $ac_status); }; }; then 7642 eval "$as_ac_var=yes" 7643else 7644 echo "$as_me: failed program was:" >&5 7645sed 's/^/| /' conftest.$ac_ext >&5 7646 7647eval "$as_ac_var=no" 7648fi 7649rm -f conftest.err conftest.$ac_objext \ 7650 conftest$ac_exeext conftest.$ac_ext 7651fi 7652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7654if test `eval echo '${'$as_ac_var'}'` = yes; then 7655 cat >>confdefs.h <<_ACEOF 7656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7657_ACEOF 7658 7659fi 7660done 7661 7662 7663 : 7664 7665 7666 7667 7668 7669 7670 7671 fi 7672 7673 7674# For teTeX and TeX Live. 7675echo "$as_me:$LINENO: checking host system type" >&5 7676echo $ECHO_N "checking host system type... $ECHO_C" >&6 7677if test "${ac_cv_host+set}" = set; then 7678 echo $ECHO_N "(cached) $ECHO_C" >&6 7679else 7680 ac_cv_host_alias=$host_alias 7681test -z "$ac_cv_host_alias" && 7682 ac_cv_host_alias=$ac_cv_build_alias 7683ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 7684 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 7685echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 7686 { (exit 1); exit 1; }; } 7687 7688fi 7689echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7690echo "${ECHO_T}$ac_cv_host" >&6 7691host=$ac_cv_host 7692host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7693host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7694host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7695 7696 7697# Check whether --enable-multiplatform or --disable-multiplatform was given. 7698if test "${enable_multiplatform+set}" = set; then 7699 enableval="$enable_multiplatform" 7700 7701fi; 7702# if enable_multiplatform is set in the environment, use that. 7703test "x$enable_multiplatform" = xyes \ 7704&& test "x$bindir" = 'x${exec_prefix}/bin' \ 7705&& bindir="$bindir/$host" 7706 7707# Taken from the example in 7708# http://www.gnu.org/software/automake/manual/html_node/Conditionals.html. 7709# Check whether --enable-install-warnings or --disable-install-warnings was given. 7710if test "${enable_install_warnings+set}" = set; then 7711 enableval="$enable_install_warnings" 7712 case "${enableval}" in 7713 yes) install_warnings=true ;; 7714 no) install_warnings=false ;; 7715 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5 7716echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;} 7717 { (exit 1); exit 1; }; } ;; 7718 esac 7719else 7720 install_warnings=true 7721fi; 7722 7723 7724if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then 7725 INSTALL_WARNINGS_TRUE= 7726 INSTALL_WARNINGS_FALSE='#' 7727else 7728 INSTALL_WARNINGS_TRUE='#' 7729 INSTALL_WARNINGS_FALSE= 7730fi 7731 7732 7733# i18n support. To update to a new version of gettext, run: 7734# gettextize -f -c --intl 7735 7736 7737 MKINSTALLDIRS= 7738 if test -n "$ac_aux_dir"; then 7739 case "$ac_aux_dir" in 7740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 7741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 7742 esac 7743 fi 7744 if test -z "$MKINSTALLDIRS"; then 7745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7746 fi 7747 7748 7749 7750 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7751echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7752 # Check whether --enable-nls or --disable-nls was given. 7753if test "${enable_nls+set}" = set; then 7754 enableval="$enable_nls" 7755 USE_NLS=$enableval 7756else 7757 USE_NLS=yes 7758fi; 7759 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7760echo "${ECHO_T}$USE_NLS" >&6 7761 7762 7763 7764 7765 7766 7767# Prepare PATH_SEPARATOR. 7768# The user is always right. 7769if test "${PATH_SEPARATOR+set}" != set; then 7770 echo "#! /bin/sh" >conf$$.sh 7771 echo "exit 0" >>conf$$.sh 7772 chmod +x conf$$.sh 7773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7774 PATH_SEPARATOR=';' 7775 else 7776 PATH_SEPARATOR=: 7777 fi 7778 rm -f conf$$.sh 7779fi 7780 7781# Find out how to test for executable files. Don't use a zero-byte file, 7782# as systems may use methods other than mode bits to determine executability. 7783cat >conf$$.file <<_ASEOF 7784#! /bin/sh 7785exit 0 7786_ASEOF 7787chmod +x conf$$.file 7788if test -x conf$$.file >/dev/null 2>&1; then 7789 ac_executable_p="test -x" 7790else 7791 ac_executable_p="test -f" 7792fi 7793rm -f conf$$.file 7794 7795# Extract the first word of "msgfmt", so it can be a program name with args. 7796set dummy msgfmt; ac_word=$2 7797echo "$as_me:$LINENO: checking for $ac_word" >&5 7798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7799if test "${ac_cv_path_MSGFMT+set}" = set; then 7800 echo $ECHO_N "(cached) $ECHO_C" >&6 7801else 7802 case "$MSGFMT" in 7803 [\\/]* | ?:[\\/]*) 7804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7805 ;; 7806 *) 7807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7808 for ac_dir in $PATH; do 7809 IFS="$ac_save_IFS" 7810 test -z "$ac_dir" && ac_dir=. 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7813 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 7814 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7815 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7816 break 2 7817 fi 7818 fi 7819 done 7820 done 7821 IFS="$ac_save_IFS" 7822 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7823 ;; 7824esac 7825fi 7826MSGFMT="$ac_cv_path_MSGFMT" 7827if test "$MSGFMT" != ":"; then 7828 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7829echo "${ECHO_T}$MSGFMT" >&6 7830else 7831 echo "$as_me:$LINENO: result: no" >&5 7832echo "${ECHO_T}no" >&6 7833fi 7834 7835 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7836set dummy gmsgfmt; ac_word=$2 7837echo "$as_me:$LINENO: checking for $ac_word" >&5 7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7839if test "${ac_cv_path_GMSGFMT+set}" = set; then 7840 echo $ECHO_N "(cached) $ECHO_C" >&6 7841else 7842 case $GMSGFMT in 7843 [\\/]* | ?:[\\/]*) 7844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7845 ;; 7846 *) 7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848for as_dir in $PATH 7849do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858done 7859done 7860 7861 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7862 ;; 7863esac 7864fi 7865GMSGFMT=$ac_cv_path_GMSGFMT 7866 7867if test -n "$GMSGFMT"; then 7868 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7869echo "${ECHO_T}$GMSGFMT" >&6 7870else 7871 echo "$as_me:$LINENO: result: no" >&5 7872echo "${ECHO_T}no" >&6 7873fi 7874 7875 7876 7877# Prepare PATH_SEPARATOR. 7878# The user is always right. 7879if test "${PATH_SEPARATOR+set}" != set; then 7880 echo "#! /bin/sh" >conf$$.sh 7881 echo "exit 0" >>conf$$.sh 7882 chmod +x conf$$.sh 7883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7884 PATH_SEPARATOR=';' 7885 else 7886 PATH_SEPARATOR=: 7887 fi 7888 rm -f conf$$.sh 7889fi 7890 7891# Find out how to test for executable files. Don't use a zero-byte file, 7892# as systems may use methods other than mode bits to determine executability. 7893cat >conf$$.file <<_ASEOF 7894#! /bin/sh 7895exit 0 7896_ASEOF 7897chmod +x conf$$.file 7898if test -x conf$$.file >/dev/null 2>&1; then 7899 ac_executable_p="test -x" 7900else 7901 ac_executable_p="test -f" 7902fi 7903rm -f conf$$.file 7904 7905# Extract the first word of "xgettext", so it can be a program name with args. 7906set dummy xgettext; ac_word=$2 7907echo "$as_me:$LINENO: checking for $ac_word" >&5 7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7909if test "${ac_cv_path_XGETTEXT+set}" = set; then 7910 echo $ECHO_N "(cached) $ECHO_C" >&6 7911else 7912 case "$XGETTEXT" in 7913 [\\/]* | ?:[\\/]*) 7914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7915 ;; 7916 *) 7917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7918 for ac_dir in $PATH; do 7919 IFS="$ac_save_IFS" 7920 test -z "$ac_dir" && ac_dir=. 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7923 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7924 (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 7925 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7926 break 2 7927 fi 7928 fi 7929 done 7930 done 7931 IFS="$ac_save_IFS" 7932 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7933 ;; 7934esac 7935fi 7936XGETTEXT="$ac_cv_path_XGETTEXT" 7937if test "$XGETTEXT" != ":"; then 7938 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7939echo "${ECHO_T}$XGETTEXT" >&6 7940else 7941 echo "$as_me:$LINENO: result: no" >&5 7942echo "${ECHO_T}no" >&6 7943fi 7944 7945 rm -f messages.po 7946 7947 7948# Prepare PATH_SEPARATOR. 7949# The user is always right. 7950if test "${PATH_SEPARATOR+set}" != set; then 7951 echo "#! /bin/sh" >conf$$.sh 7952 echo "exit 0" >>conf$$.sh 7953 chmod +x conf$$.sh 7954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7955 PATH_SEPARATOR=';' 7956 else 7957 PATH_SEPARATOR=: 7958 fi 7959 rm -f conf$$.sh 7960fi 7961 7962# Find out how to test for executable files. Don't use a zero-byte file, 7963# as systems may use methods other than mode bits to determine executability. 7964cat >conf$$.file <<_ASEOF 7965#! /bin/sh 7966exit 0 7967_ASEOF 7968chmod +x conf$$.file 7969if test -x conf$$.file >/dev/null 2>&1; then 7970 ac_executable_p="test -x" 7971else 7972 ac_executable_p="test -f" 7973fi 7974rm -f conf$$.file 7975 7976# Extract the first word of "msgmerge", so it can be a program name with args. 7977set dummy msgmerge; ac_word=$2 7978echo "$as_me:$LINENO: checking for $ac_word" >&5 7979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7980if test "${ac_cv_path_MSGMERGE+set}" = set; then 7981 echo $ECHO_N "(cached) $ECHO_C" >&6 7982else 7983 case "$MSGMERGE" in 7984 [\\/]* | ?:[\\/]*) 7985 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7986 ;; 7987 *) 7988 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7989 for ac_dir in $PATH; do 7990 IFS="$ac_save_IFS" 7991 test -z "$ac_dir" && ac_dir=. 7992 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7994 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 7995 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7996 break 2 7997 fi 7998 fi 7999 done 8000 done 8001 IFS="$ac_save_IFS" 8002 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 8003 ;; 8004esac 8005fi 8006MSGMERGE="$ac_cv_path_MSGMERGE" 8007if test "$MSGMERGE" != ":"; then 8008 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 8009echo "${ECHO_T}$MSGMERGE" >&6 8010else 8011 echo "$as_me:$LINENO: result: no" >&5 8012echo "${ECHO_T}no" >&6 8013fi 8014 8015 8016 if test "$GMSGFMT" != ":"; then 8017 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 8018 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8019 : ; 8020 else 8021 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 8022 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 8023echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 8024 GMSGFMT=":" 8025 fi 8026 fi 8027 8028 if test "$XGETTEXT" != ":"; then 8029 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 8030 (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 8031 : ; 8032 else 8033 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 8034echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 8035 XGETTEXT=":" 8036 fi 8037 rm -f messages.po 8038 fi 8039 8040 ac_config_commands="$ac_config_commands default-1" 8041 8042 8043 8044 echo "$as_me:$LINENO: checking for signed" >&5 8045echo $ECHO_N "checking for signed... $ECHO_C" >&6 8046if test "${bh_cv_c_signed+set}" = set; then 8047 echo $ECHO_N "(cached) $ECHO_C" >&6 8048else 8049 cat >conftest.$ac_ext <<_ACEOF 8050/* confdefs.h. */ 8051_ACEOF 8052cat confdefs.h >>conftest.$ac_ext 8053cat >>conftest.$ac_ext <<_ACEOF 8054/* end confdefs.h. */ 8055 8056int 8057main () 8058{ 8059signed char x; 8060 ; 8061 return 0; 8062} 8063_ACEOF 8064rm -f conftest.$ac_objext 8065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8066 (eval $ac_compile) 2>conftest.er1 8067 ac_status=$? 8068 grep -v '^ *+' conftest.er1 >conftest.err 8069 rm -f conftest.er1 8070 cat conftest.err >&5 8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8072 (exit $ac_status); } && 8073 { ac_try='test -z "$ac_c_werror_flag" 8074 || test ! -s conftest.err' 8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8076 (eval $ac_try) 2>&5 8077 ac_status=$? 8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8079 (exit $ac_status); }; } && 8080 { ac_try='test -s conftest.$ac_objext' 8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8082 (eval $ac_try) 2>&5 8083 ac_status=$? 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); }; }; then 8086 bh_cv_c_signed=yes 8087else 8088 echo "$as_me: failed program was:" >&5 8089sed 's/^/| /' conftest.$ac_ext >&5 8090 8091bh_cv_c_signed=no 8092fi 8093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8094fi 8095echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 8096echo "${ECHO_T}$bh_cv_c_signed" >&6 8097 if test $bh_cv_c_signed = no; then 8098 8099cat >>confdefs.h <<\_ACEOF 8100#define signed 8101_ACEOF 8102 8103 fi 8104 8105echo "$as_me:$LINENO: checking for inline" >&5 8106echo $ECHO_N "checking for inline... $ECHO_C" >&6 8107if test "${ac_cv_c_inline+set}" = set; then 8108 echo $ECHO_N "(cached) $ECHO_C" >&6 8109else 8110 ac_cv_c_inline=no 8111for ac_kw in inline __inline__ __inline; do 8112 cat >conftest.$ac_ext <<_ACEOF 8113/* confdefs.h. */ 8114_ACEOF 8115cat confdefs.h >>conftest.$ac_ext 8116cat >>conftest.$ac_ext <<_ACEOF 8117/* end confdefs.h. */ 8118#ifndef __cplusplus 8119typedef int foo_t; 8120static $ac_kw foo_t static_foo () {return 0; } 8121$ac_kw foo_t foo () {return 0; } 8122#endif 8123 8124_ACEOF 8125rm -f conftest.$ac_objext 8126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8127 (eval $ac_compile) 2>conftest.er1 8128 ac_status=$? 8129 grep -v '^ *+' conftest.er1 >conftest.err 8130 rm -f conftest.er1 8131 cat conftest.err >&5 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 (exit $ac_status); } && 8134 { ac_try='test -z "$ac_c_werror_flag" 8135 || test ! -s conftest.err' 8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8137 (eval $ac_try) 2>&5 8138 ac_status=$? 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 (exit $ac_status); }; } && 8141 { ac_try='test -s conftest.$ac_objext' 8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8143 (eval $ac_try) 2>&5 8144 ac_status=$? 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 (exit $ac_status); }; }; then 8147 ac_cv_c_inline=$ac_kw; break 8148else 8149 echo "$as_me: failed program was:" >&5 8150sed 's/^/| /' conftest.$ac_ext >&5 8151 8152fi 8153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8154done 8155 8156fi 8157echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8158echo "${ECHO_T}$ac_cv_c_inline" >&6 8159 8160 8161case $ac_cv_c_inline in 8162 inline | yes) ;; 8163 *) 8164 case $ac_cv_c_inline in 8165 no) ac_val=;; 8166 *) ac_val=$ac_cv_c_inline;; 8167 esac 8168 cat >>confdefs.h <<_ACEOF 8169#ifndef __cplusplus 8170#define inline $ac_val 8171#endif 8172_ACEOF 8173 ;; 8174esac 8175 8176echo "$as_me:$LINENO: checking for size_t" >&5 8177echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8178if test "${ac_cv_type_size_t+set}" = set; then 8179 echo $ECHO_N "(cached) $ECHO_C" >&6 8180else 8181 cat >conftest.$ac_ext <<_ACEOF 8182/* confdefs.h. */ 8183_ACEOF 8184cat confdefs.h >>conftest.$ac_ext 8185cat >>conftest.$ac_ext <<_ACEOF 8186/* end confdefs.h. */ 8187$ac_includes_default 8188int 8189main () 8190{ 8191if ((size_t *) 0) 8192 return 0; 8193if (sizeof (size_t)) 8194 return 0; 8195 ; 8196 return 0; 8197} 8198_ACEOF 8199rm -f conftest.$ac_objext 8200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8201 (eval $ac_compile) 2>conftest.er1 8202 ac_status=$? 8203 grep -v '^ *+' conftest.er1 >conftest.err 8204 rm -f conftest.er1 8205 cat conftest.err >&5 8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8207 (exit $ac_status); } && 8208 { ac_try='test -z "$ac_c_werror_flag" 8209 || test ! -s conftest.err' 8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8211 (eval $ac_try) 2>&5 8212 ac_status=$? 8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8214 (exit $ac_status); }; } && 8215 { ac_try='test -s conftest.$ac_objext' 8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8217 (eval $ac_try) 2>&5 8218 ac_status=$? 8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8220 (exit $ac_status); }; }; then 8221 ac_cv_type_size_t=yes 8222else 8223 echo "$as_me: failed program was:" >&5 8224sed 's/^/| /' conftest.$ac_ext >&5 8225 8226ac_cv_type_size_t=no 8227fi 8228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8229fi 8230echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8231echo "${ECHO_T}$ac_cv_type_size_t" >&6 8232if test $ac_cv_type_size_t = yes; then 8233 : 8234else 8235 8236cat >>confdefs.h <<_ACEOF 8237#define size_t unsigned 8238_ACEOF 8239 8240fi 8241 8242 8243 echo "$as_me:$LINENO: checking for long long" >&5 8244echo $ECHO_N "checking for long long... $ECHO_C" >&6 8245if test "${ac_cv_type_long_long+set}" = set; then 8246 echo $ECHO_N "(cached) $ECHO_C" >&6 8247else 8248 cat >conftest.$ac_ext <<_ACEOF 8249/* confdefs.h. */ 8250_ACEOF 8251cat confdefs.h >>conftest.$ac_ext 8252cat >>conftest.$ac_ext <<_ACEOF 8253/* end confdefs.h. */ 8254long long ll = 1LL; int i = 63; 8255int 8256main () 8257{ 8258long long llmax = (long long) -1; 8259 return ll << i | ll >> i | llmax / ll | llmax % ll; 8260 ; 8261 return 0; 8262} 8263_ACEOF 8264rm -f conftest.$ac_objext conftest$ac_exeext 8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8266 (eval $ac_link) 2>conftest.er1 8267 ac_status=$? 8268 grep -v '^ *+' conftest.er1 >conftest.err 8269 rm -f conftest.er1 8270 cat conftest.err >&5 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 (exit $ac_status); } && 8273 { ac_try='test -z "$ac_c_werror_flag" 8274 || test ! -s conftest.err' 8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8276 (eval $ac_try) 2>&5 8277 ac_status=$? 8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8279 (exit $ac_status); }; } && 8280 { ac_try='test -s conftest$ac_exeext' 8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8282 (eval $ac_try) 2>&5 8283 ac_status=$? 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 (exit $ac_status); }; }; then 8286 ac_cv_type_long_long=yes 8287else 8288 echo "$as_me: failed program was:" >&5 8289sed 's/^/| /' conftest.$ac_ext >&5 8290 8291ac_cv_type_long_long=no 8292fi 8293rm -f conftest.err conftest.$ac_objext \ 8294 conftest$ac_exeext conftest.$ac_ext 8295fi 8296echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8297echo "${ECHO_T}$ac_cv_type_long_long" >&6 8298 if test $ac_cv_type_long_long = yes; then 8299 8300cat >>confdefs.h <<\_ACEOF 8301#define HAVE_LONG_LONG 1 8302_ACEOF 8303 8304 fi 8305 8306 8307 echo "$as_me:$LINENO: checking for long double" >&5 8308echo $ECHO_N "checking for long double... $ECHO_C" >&6 8309if test "${gt_cv_c_long_double+set}" = set; then 8310 echo $ECHO_N "(cached) $ECHO_C" >&6 8311else 8312 if test "$GCC" = yes; then 8313 gt_cv_c_long_double=yes 8314 else 8315 cat >conftest.$ac_ext <<_ACEOF 8316/* confdefs.h. */ 8317_ACEOF 8318cat confdefs.h >>conftest.$ac_ext 8319cat >>conftest.$ac_ext <<_ACEOF 8320/* end confdefs.h. */ 8321 8322 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 8323 long double foo = 0.0; 8324 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8325 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 8326 8327int 8328main () 8329{ 8330 8331 ; 8332 return 0; 8333} 8334_ACEOF 8335rm -f conftest.$ac_objext 8336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8337 (eval $ac_compile) 2>conftest.er1 8338 ac_status=$? 8339 grep -v '^ *+' conftest.er1 >conftest.err 8340 rm -f conftest.er1 8341 cat conftest.err >&5 8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 (exit $ac_status); } && 8344 { ac_try='test -z "$ac_c_werror_flag" 8345 || test ! -s conftest.err' 8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8347 (eval $ac_try) 2>&5 8348 ac_status=$? 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); }; } && 8351 { ac_try='test -s conftest.$ac_objext' 8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8353 (eval $ac_try) 2>&5 8354 ac_status=$? 8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8356 (exit $ac_status); }; }; then 8357 gt_cv_c_long_double=yes 8358else 8359 echo "$as_me: failed program was:" >&5 8360sed 's/^/| /' conftest.$ac_ext >&5 8361 8362gt_cv_c_long_double=no 8363fi 8364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8365 fi 8366fi 8367echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 8368echo "${ECHO_T}$gt_cv_c_long_double" >&6 8369 if test $gt_cv_c_long_double = yes; then 8370 8371cat >>confdefs.h <<\_ACEOF 8372#define HAVE_LONG_DOUBLE 1 8373_ACEOF 8374 8375 fi 8376 8377 8378 echo "$as_me:$LINENO: checking for wchar_t" >&5 8379echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 8380if test "${gt_cv_c_wchar_t+set}" = set; then 8381 echo $ECHO_N "(cached) $ECHO_C" >&6 8382else 8383 cat >conftest.$ac_ext <<_ACEOF 8384/* confdefs.h. */ 8385_ACEOF 8386cat confdefs.h >>conftest.$ac_ext 8387cat >>conftest.$ac_ext <<_ACEOF 8388/* end confdefs.h. */ 8389#include <stddef.h> 8390 wchar_t foo = (wchar_t)'\0'; 8391int 8392main () 8393{ 8394 8395 ; 8396 return 0; 8397} 8398_ACEOF 8399rm -f conftest.$ac_objext 8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8401 (eval $ac_compile) 2>conftest.er1 8402 ac_status=$? 8403 grep -v '^ *+' conftest.er1 >conftest.err 8404 rm -f conftest.er1 8405 cat conftest.err >&5 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); } && 8408 { ac_try='test -z "$ac_c_werror_flag" 8409 || test ! -s conftest.err' 8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8411 (eval $ac_try) 2>&5 8412 ac_status=$? 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 (exit $ac_status); }; } && 8415 { ac_try='test -s conftest.$ac_objext' 8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8417 (eval $ac_try) 2>&5 8418 ac_status=$? 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); }; }; then 8421 gt_cv_c_wchar_t=yes 8422else 8423 echo "$as_me: failed program was:" >&5 8424sed 's/^/| /' conftest.$ac_ext >&5 8425 8426gt_cv_c_wchar_t=no 8427fi 8428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8429fi 8430echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 8431echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 8432 if test $gt_cv_c_wchar_t = yes; then 8433 8434cat >>confdefs.h <<\_ACEOF 8435#define HAVE_WCHAR_T 1 8436_ACEOF 8437 8438 fi 8439 8440 8441 echo "$as_me:$LINENO: checking for wint_t" >&5 8442echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 8443if test "${gt_cv_c_wint_t+set}" = set; then 8444 echo $ECHO_N "(cached) $ECHO_C" >&6 8445else 8446 cat >conftest.$ac_ext <<_ACEOF 8447/* confdefs.h. */ 8448_ACEOF 8449cat confdefs.h >>conftest.$ac_ext 8450cat >>conftest.$ac_ext <<_ACEOF 8451/* end confdefs.h. */ 8452#include <wchar.h> 8453 wint_t foo = (wchar_t)'\0'; 8454int 8455main () 8456{ 8457 8458 ; 8459 return 0; 8460} 8461_ACEOF 8462rm -f conftest.$ac_objext 8463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8464 (eval $ac_compile) 2>conftest.er1 8465 ac_status=$? 8466 grep -v '^ *+' conftest.er1 >conftest.err 8467 rm -f conftest.er1 8468 cat conftest.err >&5 8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8470 (exit $ac_status); } && 8471 { ac_try='test -z "$ac_c_werror_flag" 8472 || test ! -s conftest.err' 8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8474 (eval $ac_try) 2>&5 8475 ac_status=$? 8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8477 (exit $ac_status); }; } && 8478 { ac_try='test -s conftest.$ac_objext' 8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8480 (eval $ac_try) 2>&5 8481 ac_status=$? 8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8483 (exit $ac_status); }; }; then 8484 gt_cv_c_wint_t=yes 8485else 8486 echo "$as_me: failed program was:" >&5 8487sed 's/^/| /' conftest.$ac_ext >&5 8488 8489gt_cv_c_wint_t=no 8490fi 8491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8492fi 8493echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 8494echo "${ECHO_T}$gt_cv_c_wint_t" >&6 8495 if test $gt_cv_c_wint_t = yes; then 8496 8497cat >>confdefs.h <<\_ACEOF 8498#define HAVE_WINT_T 1 8499_ACEOF 8500 8501 fi 8502 8503 8504 8505 8506 echo "$as_me:$LINENO: checking for intmax_t" >&5 8507echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 8508if test "${gt_cv_c_intmax_t+set}" = set; then 8509 echo $ECHO_N "(cached) $ECHO_C" >&6 8510else 8511 cat >conftest.$ac_ext <<_ACEOF 8512/* confdefs.h. */ 8513_ACEOF 8514cat confdefs.h >>conftest.$ac_ext 8515cat >>conftest.$ac_ext <<_ACEOF 8516/* end confdefs.h. */ 8517 8518#include <stddef.h> 8519#include <stdlib.h> 8520#if HAVE_STDINT_H_WITH_UINTMAX 8521#include <stdint.h> 8522#endif 8523#if HAVE_INTTYPES_H_WITH_UINTMAX 8524#include <inttypes.h> 8525#endif 8526 8527int 8528main () 8529{ 8530intmax_t x = -1; 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535rm -f conftest.$ac_objext 8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8537 (eval $ac_compile) 2>conftest.er1 8538 ac_status=$? 8539 grep -v '^ *+' conftest.er1 >conftest.err 8540 rm -f conftest.er1 8541 cat conftest.err >&5 8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8543 (exit $ac_status); } && 8544 { ac_try='test -z "$ac_c_werror_flag" 8545 || test ! -s conftest.err' 8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8547 (eval $ac_try) 2>&5 8548 ac_status=$? 8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 (exit $ac_status); }; } && 8551 { ac_try='test -s conftest.$ac_objext' 8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8553 (eval $ac_try) 2>&5 8554 ac_status=$? 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 (exit $ac_status); }; }; then 8557 gt_cv_c_intmax_t=yes 8558else 8559 echo "$as_me: failed program was:" >&5 8560sed 's/^/| /' conftest.$ac_ext >&5 8561 8562gt_cv_c_intmax_t=no 8563fi 8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8565fi 8566echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 8567echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 8568 if test $gt_cv_c_intmax_t = yes; then 8569 8570cat >>confdefs.h <<\_ACEOF 8571#define HAVE_INTMAX_T 1 8572_ACEOF 8573 8574 fi 8575 8576 8577 8578 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 8579echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 8580if test "${gt_cv_func_printf_posix+set}" = set; then 8581 echo $ECHO_N "(cached) $ECHO_C" >&6 8582else 8583 8584 if test "$cross_compiling" = yes; then 8585 8586 cat >conftest.$ac_ext <<_ACEOF 8587/* confdefs.h. */ 8588_ACEOF 8589cat confdefs.h >>conftest.$ac_ext 8590cat >>conftest.$ac_ext <<_ACEOF 8591/* end confdefs.h. */ 8592 8593#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 8594 notposix 8595#endif 8596 8597_ACEOF 8598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8599 $EGREP "notposix" >/dev/null 2>&1; then 8600 gt_cv_func_printf_posix="guessing no" 8601else 8602 gt_cv_func_printf_posix="guessing yes" 8603fi 8604rm -f conftest* 8605 8606 8607else 8608 cat >conftest.$ac_ext <<_ACEOF 8609/* confdefs.h. */ 8610_ACEOF 8611cat confdefs.h >>conftest.$ac_ext 8612cat >>conftest.$ac_ext <<_ACEOF 8613/* end confdefs.h. */ 8614 8615#include <stdio.h> 8616#include <string.h> 8617/* The string "%2$d %1$d", with dollar characters protected from the shell's 8618 dollar expansion (possibly an autoconf bug). */ 8619static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 8620static char buf[100]; 8621int main () 8622{ 8623 sprintf (buf, format, 33, 55); 8624 return (strcmp (buf, "55 33") != 0); 8625} 8626_ACEOF 8627rm -f conftest$ac_exeext 8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8629 (eval $ac_link) 2>&5 8630 ac_status=$? 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8634 (eval $ac_try) 2>&5 8635 ac_status=$? 8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8637 (exit $ac_status); }; }; then 8638 gt_cv_func_printf_posix=yes 8639else 8640 echo "$as_me: program exited with status $ac_status" >&5 8641echo "$as_me: failed program was:" >&5 8642sed 's/^/| /' conftest.$ac_ext >&5 8643 8644( exit $ac_status ) 8645gt_cv_func_printf_posix=no 8646fi 8647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8648fi 8649 8650fi 8651echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 8652echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 8653 case $gt_cv_func_printf_posix in 8654 *yes) 8655 8656cat >>confdefs.h <<\_ACEOF 8657#define HAVE_POSIX_PRINTF 1 8658_ACEOF 8659 8660 ;; 8661 esac 8662 8663 8664 8665for ac_header in stdlib.h unistd.h 8666do 8667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8668if eval "test \"\${$as_ac_Header+set}\" = set"; then 8669 echo "$as_me:$LINENO: checking for $ac_header" >&5 8670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8671if eval "test \"\${$as_ac_Header+set}\" = set"; then 8672 echo $ECHO_N "(cached) $ECHO_C" >&6 8673fi 8674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8676else 8677 # Is the header compilable? 8678echo "$as_me:$LINENO: checking $ac_header usability" >&5 8679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8680cat >conftest.$ac_ext <<_ACEOF 8681/* confdefs.h. */ 8682_ACEOF 8683cat confdefs.h >>conftest.$ac_ext 8684cat >>conftest.$ac_ext <<_ACEOF 8685/* end confdefs.h. */ 8686$ac_includes_default 8687#include <$ac_header> 8688_ACEOF 8689rm -f conftest.$ac_objext 8690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8691 (eval $ac_compile) 2>conftest.er1 8692 ac_status=$? 8693 grep -v '^ *+' conftest.er1 >conftest.err 8694 rm -f conftest.er1 8695 cat conftest.err >&5 8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 (exit $ac_status); } && 8698 { ac_try='test -z "$ac_c_werror_flag" 8699 || test ! -s conftest.err' 8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8701 (eval $ac_try) 2>&5 8702 ac_status=$? 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); }; } && 8705 { ac_try='test -s conftest.$ac_objext' 8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8707 (eval $ac_try) 2>&5 8708 ac_status=$? 8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8710 (exit $ac_status); }; }; then 8711 ac_header_compiler=yes 8712else 8713 echo "$as_me: failed program was:" >&5 8714sed 's/^/| /' conftest.$ac_ext >&5 8715 8716ac_header_compiler=no 8717fi 8718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8720echo "${ECHO_T}$ac_header_compiler" >&6 8721 8722# Is the header present? 8723echo "$as_me:$LINENO: checking $ac_header presence" >&5 8724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8725cat >conftest.$ac_ext <<_ACEOF 8726/* confdefs.h. */ 8727_ACEOF 8728cat confdefs.h >>conftest.$ac_ext 8729cat >>conftest.$ac_ext <<_ACEOF 8730/* end confdefs.h. */ 8731#include <$ac_header> 8732_ACEOF 8733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8735 ac_status=$? 8736 grep -v '^ *+' conftest.er1 >conftest.err 8737 rm -f conftest.er1 8738 cat conftest.err >&5 8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8740 (exit $ac_status); } >/dev/null; then 8741 if test -s conftest.err; then 8742 ac_cpp_err=$ac_c_preproc_warn_flag 8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8744 else 8745 ac_cpp_err= 8746 fi 8747else 8748 ac_cpp_err=yes 8749fi 8750if test -z "$ac_cpp_err"; then 8751 ac_header_preproc=yes 8752else 8753 echo "$as_me: failed program was:" >&5 8754sed 's/^/| /' conftest.$ac_ext >&5 8755 8756 ac_header_preproc=no 8757fi 8758rm -f conftest.err conftest.$ac_ext 8759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8760echo "${ECHO_T}$ac_header_preproc" >&6 8761 8762# So? What about this header? 8763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8764 yes:no: ) 8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8769 ac_header_preproc=yes 8770 ;; 8771 no:yes:* ) 8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8784 ( 8785 cat <<\_ASBOX 8786## -------------------------------------- ## 8787## Report this to the GNU Texinfo lists. ## 8788## -------------------------------------- ## 8789_ASBOX 8790 ) | 8791 sed "s/^/$as_me: WARNING: /" >&2 8792 ;; 8793esac 8794echo "$as_me:$LINENO: checking for $ac_header" >&5 8795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8796if eval "test \"\${$as_ac_Header+set}\" = set"; then 8797 echo $ECHO_N "(cached) $ECHO_C" >&6 8798else 8799 eval "$as_ac_Header=\$ac_header_preproc" 8800fi 8801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8803 8804fi 8805if test `eval echo '${'$as_ac_Header'}'` = yes; then 8806 cat >>confdefs.h <<_ACEOF 8807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8808_ACEOF 8809 8810fi 8811 8812done 8813 8814 8815for ac_func in getpagesize 8816do 8817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8818echo "$as_me:$LINENO: checking for $ac_func" >&5 8819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8820if eval "test \"\${$as_ac_var+set}\" = set"; then 8821 echo $ECHO_N "(cached) $ECHO_C" >&6 8822else 8823 cat >conftest.$ac_ext <<_ACEOF 8824/* confdefs.h. */ 8825_ACEOF 8826cat confdefs.h >>conftest.$ac_ext 8827cat >>conftest.$ac_ext <<_ACEOF 8828/* end confdefs.h. */ 8829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8831#define $ac_func innocuous_$ac_func 8832 8833/* System header to define __stub macros and hopefully few prototypes, 8834 which can conflict with char $ac_func (); below. 8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8836 <limits.h> exists even on freestanding compilers. */ 8837 8838#ifdef __STDC__ 8839# include <limits.h> 8840#else 8841# include <assert.h> 8842#endif 8843 8844#undef $ac_func 8845 8846/* Override any gcc2 internal prototype to avoid an error. */ 8847#ifdef __cplusplus 8848extern "C" 8849{ 8850#endif 8851/* We use char because int might match the return type of a gcc2 8852 builtin and then its argument prototype would still apply. */ 8853char $ac_func (); 8854/* The GNU C library defines this for functions which it implements 8855 to always fail with ENOSYS. Some functions are actually named 8856 something starting with __ and the normal name is an alias. */ 8857#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8858choke me 8859#else 8860char (*f) () = $ac_func; 8861#endif 8862#ifdef __cplusplus 8863} 8864#endif 8865 8866int 8867main () 8868{ 8869return f != $ac_func; 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874rm -f conftest.$ac_objext conftest$ac_exeext 8875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8876 (eval $ac_link) 2>conftest.er1 8877 ac_status=$? 8878 grep -v '^ *+' conftest.er1 >conftest.err 8879 rm -f conftest.er1 8880 cat conftest.err >&5 8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8882 (exit $ac_status); } && 8883 { ac_try='test -z "$ac_c_werror_flag" 8884 || test ! -s conftest.err' 8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8886 (eval $ac_try) 2>&5 8887 ac_status=$? 8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8889 (exit $ac_status); }; } && 8890 { ac_try='test -s conftest$ac_exeext' 8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8892 (eval $ac_try) 2>&5 8893 ac_status=$? 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 (exit $ac_status); }; }; then 8896 eval "$as_ac_var=yes" 8897else 8898 echo "$as_me: failed program was:" >&5 8899sed 's/^/| /' conftest.$ac_ext >&5 8900 8901eval "$as_ac_var=no" 8902fi 8903rm -f conftest.err conftest.$ac_objext \ 8904 conftest$ac_exeext conftest.$ac_ext 8905fi 8906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8908if test `eval echo '${'$as_ac_var'}'` = yes; then 8909 cat >>confdefs.h <<_ACEOF 8910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8911_ACEOF 8912 8913fi 8914done 8915 8916echo "$as_me:$LINENO: checking for working mmap" >&5 8917echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 8918if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 8919 echo $ECHO_N "(cached) $ECHO_C" >&6 8920else 8921 if test "$cross_compiling" = yes; then 8922 ac_cv_func_mmap_fixed_mapped=no 8923else 8924 cat >conftest.$ac_ext <<_ACEOF 8925/* confdefs.h. */ 8926_ACEOF 8927cat confdefs.h >>conftest.$ac_ext 8928cat >>conftest.$ac_ext <<_ACEOF 8929/* end confdefs.h. */ 8930$ac_includes_default 8931/* malloc might have been renamed as rpl_malloc. */ 8932#undef malloc 8933 8934/* Thanks to Mike Haertel and Jim Avera for this test. 8935 Here is a matrix of mmap possibilities: 8936 mmap private not fixed 8937 mmap private fixed at somewhere currently unmapped 8938 mmap private fixed at somewhere already mapped 8939 mmap shared not fixed 8940 mmap shared fixed at somewhere currently unmapped 8941 mmap shared fixed at somewhere already mapped 8942 For private mappings, we should verify that changes cannot be read() 8943 back from the file, nor mmap's back from the file at a different 8944 address. (There have been systems where private was not correctly 8945 implemented like the infamous i386 svr4.0, and systems where the 8946 VM page cache was not coherent with the file system buffer cache 8947 like early versions of FreeBSD and possibly contemporary NetBSD.) 8948 For shared mappings, we should conversely verify that changes get 8949 propagated back to all the places they're supposed to be. 8950 8951 Grep wants private fixed already mapped. 8952 The main things grep needs to know about mmap are: 8953 * does it exist and is it safe to write into the mmap'd area 8954 * how to use it (BSD variants) */ 8955 8956#include <fcntl.h> 8957#include <sys/mman.h> 8958 8959#if !STDC_HEADERS && !HAVE_STDLIB_H 8960char *malloc (); 8961#endif 8962 8963/* This mess was copied from the GNU getpagesize.h. */ 8964#if !HAVE_GETPAGESIZE 8965/* Assume that all systems that can run configure have sys/param.h. */ 8966# if !HAVE_SYS_PARAM_H 8967# define HAVE_SYS_PARAM_H 1 8968# endif 8969 8970# ifdef _SC_PAGESIZE 8971# define getpagesize() sysconf(_SC_PAGESIZE) 8972# else /* no _SC_PAGESIZE */ 8973# if HAVE_SYS_PARAM_H 8974# include <sys/param.h> 8975# ifdef EXEC_PAGESIZE 8976# define getpagesize() EXEC_PAGESIZE 8977# else /* no EXEC_PAGESIZE */ 8978# ifdef NBPG 8979# define getpagesize() NBPG * CLSIZE 8980# ifndef CLSIZE 8981# define CLSIZE 1 8982# endif /* no CLSIZE */ 8983# else /* no NBPG */ 8984# ifdef NBPC 8985# define getpagesize() NBPC 8986# else /* no NBPC */ 8987# ifdef PAGESIZE 8988# define getpagesize() PAGESIZE 8989# endif /* PAGESIZE */ 8990# endif /* no NBPC */ 8991# endif /* no NBPG */ 8992# endif /* no EXEC_PAGESIZE */ 8993# else /* no HAVE_SYS_PARAM_H */ 8994# define getpagesize() 8192 /* punt totally */ 8995# endif /* no HAVE_SYS_PARAM_H */ 8996# endif /* no _SC_PAGESIZE */ 8997 8998#endif /* no HAVE_GETPAGESIZE */ 8999 9000int 9001main () 9002{ 9003 char *data, *data2, *data3; 9004 int i, pagesize; 9005 int fd; 9006 9007 pagesize = getpagesize (); 9008 9009 /* First, make a file with some known garbage in it. */ 9010 data = (char *) malloc (pagesize); 9011 if (!data) 9012 exit (1); 9013 for (i = 0; i < pagesize; ++i) 9014 *(data + i) = rand (); 9015 umask (0); 9016 fd = creat ("conftest.mmap", 0600); 9017 if (fd < 0) 9018 exit (1); 9019 if (write (fd, data, pagesize) != pagesize) 9020 exit (1); 9021 close (fd); 9022 9023 /* Next, try to mmap the file at a fixed address which already has 9024 something else allocated at it. If we can, also make sure that 9025 we see the same garbage. */ 9026 fd = open ("conftest.mmap", O_RDWR); 9027 if (fd < 0) 9028 exit (1); 9029 data2 = (char *) malloc (2 * pagesize); 9030 if (!data2) 9031 exit (1); 9032 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 9033 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9034 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9035 exit (1); 9036 for (i = 0; i < pagesize; ++i) 9037 if (*(data + i) != *(data2 + i)) 9038 exit (1); 9039 9040 /* Finally, make sure that changes to the mapped area do not 9041 percolate back to the file as seen by read(). (This is a bug on 9042 some variants of i386 svr4.0.) */ 9043 for (i = 0; i < pagesize; ++i) 9044 *(data2 + i) = *(data2 + i) + 1; 9045 data3 = (char *) malloc (pagesize); 9046 if (!data3) 9047 exit (1); 9048 if (read (fd, data3, pagesize) != pagesize) 9049 exit (1); 9050 for (i = 0; i < pagesize; ++i) 9051 if (*(data + i) != *(data3 + i)) 9052 exit (1); 9053 close (fd); 9054 exit (0); 9055} 9056_ACEOF 9057rm -f conftest$ac_exeext 9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9059 (eval $ac_link) 2>&5 9060 ac_status=$? 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9064 (eval $ac_try) 2>&5 9065 ac_status=$? 9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9067 (exit $ac_status); }; }; then 9068 ac_cv_func_mmap_fixed_mapped=yes 9069else 9070 echo "$as_me: program exited with status $ac_status" >&5 9071echo "$as_me: failed program was:" >&5 9072sed 's/^/| /' conftest.$ac_ext >&5 9073 9074( exit $ac_status ) 9075ac_cv_func_mmap_fixed_mapped=no 9076fi 9077rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9078fi 9079fi 9080echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 9081echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 9082if test $ac_cv_func_mmap_fixed_mapped = yes; then 9083 9084cat >>confdefs.h <<\_ACEOF 9085#define HAVE_MMAP 1 9086_ACEOF 9087 9088fi 9089rm -f conftest.mmap 9090 9091 9092 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 9093echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 9094if test "${ac_cv_gnu_library_2_1+set}" = set; then 9095 echo $ECHO_N "(cached) $ECHO_C" >&6 9096else 9097 cat >conftest.$ac_ext <<_ACEOF 9098/* confdefs.h. */ 9099_ACEOF 9100cat confdefs.h >>conftest.$ac_ext 9101cat >>conftest.$ac_ext <<_ACEOF 9102/* end confdefs.h. */ 9103 9104#include <features.h> 9105#ifdef __GNU_LIBRARY__ 9106 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9107 Lucky GNU user 9108 #endif 9109#endif 9110 9111_ACEOF 9112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9113 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 9114 ac_cv_gnu_library_2_1=yes 9115else 9116 ac_cv_gnu_library_2_1=no 9117fi 9118rm -f conftest* 9119 9120 9121 9122fi 9123echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 9124echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 9125 9126 GLIBC21="$ac_cv_gnu_library_2_1" 9127 9128 9129 9130 9131 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 9132echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 9133if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 9134 echo $ECHO_N "(cached) $ECHO_C" >&6 9135else 9136 9137 if test "$cross_compiling" = yes; then 9138 9139 # Guess based on the CPU. 9140 case "$host_cpu" in 9141 alpha* | i3456786 | m68k | s390*) 9142 gt_cv_int_divbyzero_sigfpe="guessing yes";; 9143 *) 9144 gt_cv_int_divbyzero_sigfpe="guessing no";; 9145 esac 9146 9147else 9148 cat >conftest.$ac_ext <<_ACEOF 9149/* confdefs.h. */ 9150_ACEOF 9151cat confdefs.h >>conftest.$ac_ext 9152cat >>conftest.$ac_ext <<_ACEOF 9153/* end confdefs.h. */ 9154 9155#include <stdlib.h> 9156#include <signal.h> 9157 9158static void 9159#ifdef __cplusplus 9160sigfpe_handler (int sig) 9161#else 9162sigfpe_handler (sig) int sig; 9163#endif 9164{ 9165 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9166 exit (sig != SIGFPE); 9167} 9168 9169int x = 1; 9170int y = 0; 9171int z; 9172int nan; 9173 9174int main () 9175{ 9176 signal (SIGFPE, sigfpe_handler); 9177/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9178#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9179 signal (SIGTRAP, sigfpe_handler); 9180#endif 9181/* Linux/SPARC yields signal SIGILL. */ 9182#if defined (__sparc__) && defined (__linux__) 9183 signal (SIGILL, sigfpe_handler); 9184#endif 9185 9186 z = x / y; 9187 nan = y / y; 9188 exit (1); 9189} 9190 9191_ACEOF 9192rm -f conftest$ac_exeext 9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9194 (eval $ac_link) 2>&5 9195 ac_status=$? 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9199 (eval $ac_try) 2>&5 9200 ac_status=$? 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9202 (exit $ac_status); }; }; then 9203 gt_cv_int_divbyzero_sigfpe=yes 9204else 9205 echo "$as_me: program exited with status $ac_status" >&5 9206echo "$as_me: failed program was:" >&5 9207sed 's/^/| /' conftest.$ac_ext >&5 9208 9209( exit $ac_status ) 9210gt_cv_int_divbyzero_sigfpe=no 9211fi 9212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9213fi 9214 9215fi 9216echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 9217echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 9218 case "$gt_cv_int_divbyzero_sigfpe" in 9219 *yes) value=1;; 9220 *) value=0;; 9221 esac 9222 9223cat >>confdefs.h <<_ACEOF 9224#define INTDIV0_RAISES_SIGFPE $value 9225_ACEOF 9226 9227 9228 9229 echo "$as_me:$LINENO: checking for inttypes.h" >&5 9230echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9231if test "${gt_cv_header_inttypes_h+set}" = set; then 9232 echo $ECHO_N "(cached) $ECHO_C" >&6 9233else 9234 9235 cat >conftest.$ac_ext <<_ACEOF 9236/* confdefs.h. */ 9237_ACEOF 9238cat confdefs.h >>conftest.$ac_ext 9239cat >>conftest.$ac_ext <<_ACEOF 9240/* end confdefs.h. */ 9241#include <sys/types.h> 9242#include <inttypes.h> 9243int 9244main () 9245{ 9246 9247 ; 9248 return 0; 9249} 9250_ACEOF 9251rm -f conftest.$ac_objext 9252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9253 (eval $ac_compile) 2>conftest.er1 9254 ac_status=$? 9255 grep -v '^ *+' conftest.er1 >conftest.err 9256 rm -f conftest.er1 9257 cat conftest.err >&5 9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9259 (exit $ac_status); } && 9260 { ac_try='test -z "$ac_c_werror_flag" 9261 || test ! -s conftest.err' 9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9263 (eval $ac_try) 2>&5 9264 ac_status=$? 9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9266 (exit $ac_status); }; } && 9267 { ac_try='test -s conftest.$ac_objext' 9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9269 (eval $ac_try) 2>&5 9270 ac_status=$? 9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9272 (exit $ac_status); }; }; then 9273 gt_cv_header_inttypes_h=yes 9274else 9275 echo "$as_me: failed program was:" >&5 9276sed 's/^/| /' conftest.$ac_ext >&5 9277 9278gt_cv_header_inttypes_h=no 9279fi 9280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9281 9282fi 9283echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 9284echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 9285 if test $gt_cv_header_inttypes_h = yes; then 9286 9287cat >>confdefs.h <<_ACEOF 9288#define HAVE_INTTYPES_H 1 9289_ACEOF 9290 9291 fi 9292 9293 9294 9295 if test $gt_cv_header_inttypes_h = yes; then 9296 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 9297echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 9298if test "${gt_cv_inttypes_pri_broken+set}" = set; then 9299 echo $ECHO_N "(cached) $ECHO_C" >&6 9300else 9301 9302 cat >conftest.$ac_ext <<_ACEOF 9303/* confdefs.h. */ 9304_ACEOF 9305cat confdefs.h >>conftest.$ac_ext 9306cat >>conftest.$ac_ext <<_ACEOF 9307/* end confdefs.h. */ 9308#include <inttypes.h> 9309#ifdef PRId32 9310char *p = PRId32; 9311#endif 9312 9313int 9314main () 9315{ 9316 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321rm -f conftest.$ac_objext 9322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9323 (eval $ac_compile) 2>conftest.er1 9324 ac_status=$? 9325 grep -v '^ *+' conftest.er1 >conftest.err 9326 rm -f conftest.er1 9327 cat conftest.err >&5 9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9329 (exit $ac_status); } && 9330 { ac_try='test -z "$ac_c_werror_flag" 9331 || test ! -s conftest.err' 9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9333 (eval $ac_try) 2>&5 9334 ac_status=$? 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 (exit $ac_status); }; } && 9337 { ac_try='test -s conftest.$ac_objext' 9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9339 (eval $ac_try) 2>&5 9340 ac_status=$? 9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 (exit $ac_status); }; }; then 9343 gt_cv_inttypes_pri_broken=no 9344else 9345 echo "$as_me: failed program was:" >&5 9346sed 's/^/| /' conftest.$ac_ext >&5 9347 9348gt_cv_inttypes_pri_broken=yes 9349fi 9350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9351 9352fi 9353echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 9354echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 9355 fi 9356 if test "$gt_cv_inttypes_pri_broken" = yes; then 9357 9358cat >>confdefs.h <<_ACEOF 9359#define PRI_MACROS_BROKEN 1 9360_ACEOF 9361 9362 fi 9363 9364 9365 9366for ac_header in stdint.h 9367do 9368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9369if eval "test \"\${$as_ac_Header+set}\" = set"; then 9370 echo "$as_me:$LINENO: checking for $ac_header" >&5 9371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9372if eval "test \"\${$as_ac_Header+set}\" = set"; then 9373 echo $ECHO_N "(cached) $ECHO_C" >&6 9374fi 9375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9377else 9378 # Is the header compilable? 9379echo "$as_me:$LINENO: checking $ac_header usability" >&5 9380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9381cat >conftest.$ac_ext <<_ACEOF 9382/* confdefs.h. */ 9383_ACEOF 9384cat confdefs.h >>conftest.$ac_ext 9385cat >>conftest.$ac_ext <<_ACEOF 9386/* end confdefs.h. */ 9387$ac_includes_default 9388#include <$ac_header> 9389_ACEOF 9390rm -f conftest.$ac_objext 9391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9392 (eval $ac_compile) 2>conftest.er1 9393 ac_status=$? 9394 grep -v '^ *+' conftest.er1 >conftest.err 9395 rm -f conftest.er1 9396 cat conftest.err >&5 9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9398 (exit $ac_status); } && 9399 { ac_try='test -z "$ac_c_werror_flag" 9400 || test ! -s conftest.err' 9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9402 (eval $ac_try) 2>&5 9403 ac_status=$? 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9405 (exit $ac_status); }; } && 9406 { ac_try='test -s conftest.$ac_objext' 9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9408 (eval $ac_try) 2>&5 9409 ac_status=$? 9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9411 (exit $ac_status); }; }; then 9412 ac_header_compiler=yes 9413else 9414 echo "$as_me: failed program was:" >&5 9415sed 's/^/| /' conftest.$ac_ext >&5 9416 9417ac_header_compiler=no 9418fi 9419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9421echo "${ECHO_T}$ac_header_compiler" >&6 9422 9423# Is the header present? 9424echo "$as_me:$LINENO: checking $ac_header presence" >&5 9425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9426cat >conftest.$ac_ext <<_ACEOF 9427/* confdefs.h. */ 9428_ACEOF 9429cat confdefs.h >>conftest.$ac_ext 9430cat >>conftest.$ac_ext <<_ACEOF 9431/* end confdefs.h. */ 9432#include <$ac_header> 9433_ACEOF 9434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9436 ac_status=$? 9437 grep -v '^ *+' conftest.er1 >conftest.err 9438 rm -f conftest.er1 9439 cat conftest.err >&5 9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 (exit $ac_status); } >/dev/null; then 9442 if test -s conftest.err; then 9443 ac_cpp_err=$ac_c_preproc_warn_flag 9444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9445 else 9446 ac_cpp_err= 9447 fi 9448else 9449 ac_cpp_err=yes 9450fi 9451if test -z "$ac_cpp_err"; then 9452 ac_header_preproc=yes 9453else 9454 echo "$as_me: failed program was:" >&5 9455sed 's/^/| /' conftest.$ac_ext >&5 9456 9457 ac_header_preproc=no 9458fi 9459rm -f conftest.err conftest.$ac_ext 9460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9461echo "${ECHO_T}$ac_header_preproc" >&6 9462 9463# So? What about this header? 9464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9465 yes:no: ) 9466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9470 ac_header_preproc=yes 9471 ;; 9472 no:yes:* ) 9473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9485 ( 9486 cat <<\_ASBOX 9487## -------------------------------------- ## 9488## Report this to the GNU Texinfo lists. ## 9489## -------------------------------------- ## 9490_ASBOX 9491 ) | 9492 sed "s/^/$as_me: WARNING: /" >&2 9493 ;; 9494esac 9495echo "$as_me:$LINENO: checking for $ac_header" >&5 9496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9497if eval "test \"\${$as_ac_Header+set}\" = set"; then 9498 echo $ECHO_N "(cached) $ECHO_C" >&6 9499else 9500 eval "$as_ac_Header=\$ac_header_preproc" 9501fi 9502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9504 9505fi 9506if test `eval echo '${'$as_ac_Header'}'` = yes; then 9507 cat >>confdefs.h <<_ACEOF 9508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9509_ACEOF 9510 9511fi 9512 9513done 9514 9515 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 9516echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 9517 result= 9518 cat >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 9525#include <limits.h> 9526#if HAVE_STDINT_H 9527#include <stdint.h> 9528#endif 9529#ifdef SIZE_MAX 9530Found it 9531#endif 9532 9533_ACEOF 9534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9535 $EGREP "Found it" >/dev/null 2>&1; then 9536 result=yes 9537fi 9538rm -f conftest* 9539 9540 if test -z "$result"; then 9541 if test "$cross_compiling" = yes; then 9542 # Depending upon the size, compute the lo and hi bounds. 9543cat >conftest.$ac_ext <<_ACEOF 9544/* confdefs.h. */ 9545_ACEOF 9546cat confdefs.h >>conftest.$ac_ext 9547cat >>conftest.$ac_ext <<_ACEOF 9548/* end confdefs.h. */ 9549#include <stddef.h> 9550int 9551main () 9552{ 9553static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 9554test_array [0] = 0 9555 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560rm -f conftest.$ac_objext 9561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9562 (eval $ac_compile) 2>conftest.er1 9563 ac_status=$? 9564 grep -v '^ *+' conftest.er1 >conftest.err 9565 rm -f conftest.er1 9566 cat conftest.err >&5 9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9568 (exit $ac_status); } && 9569 { ac_try='test -z "$ac_c_werror_flag" 9570 || test ! -s conftest.err' 9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9572 (eval $ac_try) 2>&5 9573 ac_status=$? 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 (exit $ac_status); }; } && 9576 { ac_try='test -s conftest.$ac_objext' 9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9578 (eval $ac_try) 2>&5 9579 ac_status=$? 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 (exit $ac_status); }; }; then 9582 ac_lo=0 ac_mid=0 9583 while :; do 9584 cat >conftest.$ac_ext <<_ACEOF 9585/* confdefs.h. */ 9586_ACEOF 9587cat confdefs.h >>conftest.$ac_ext 9588cat >>conftest.$ac_ext <<_ACEOF 9589/* end confdefs.h. */ 9590#include <stddef.h> 9591int 9592main () 9593{ 9594static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9595test_array [0] = 0 9596 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601rm -f conftest.$ac_objext 9602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9603 (eval $ac_compile) 2>conftest.er1 9604 ac_status=$? 9605 grep -v '^ *+' conftest.er1 >conftest.err 9606 rm -f conftest.er1 9607 cat conftest.err >&5 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && 9610 { ac_try='test -z "$ac_c_werror_flag" 9611 || test ! -s conftest.err' 9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9613 (eval $ac_try) 2>&5 9614 ac_status=$? 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); }; } && 9617 { ac_try='test -s conftest.$ac_objext' 9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 (eval $ac_try) 2>&5 9620 ac_status=$? 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 (exit $ac_status); }; }; then 9623 ac_hi=$ac_mid; break 9624else 9625 echo "$as_me: failed program was:" >&5 9626sed 's/^/| /' conftest.$ac_ext >&5 9627 9628ac_lo=`expr $ac_mid + 1` 9629 if test $ac_lo -le $ac_mid; then 9630 ac_lo= ac_hi= 9631 break 9632 fi 9633 ac_mid=`expr 2 '*' $ac_mid + 1` 9634fi 9635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9636 done 9637else 9638 echo "$as_me: failed program was:" >&5 9639sed 's/^/| /' conftest.$ac_ext >&5 9640 9641cat >conftest.$ac_ext <<_ACEOF 9642/* confdefs.h. */ 9643_ACEOF 9644cat confdefs.h >>conftest.$ac_ext 9645cat >>conftest.$ac_ext <<_ACEOF 9646/* end confdefs.h. */ 9647#include <stddef.h> 9648int 9649main () 9650{ 9651static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 9652test_array [0] = 0 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658rm -f conftest.$ac_objext 9659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9660 (eval $ac_compile) 2>conftest.er1 9661 ac_status=$? 9662 grep -v '^ *+' conftest.er1 >conftest.err 9663 rm -f conftest.er1 9664 cat conftest.err >&5 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9666 (exit $ac_status); } && 9667 { ac_try='test -z "$ac_c_werror_flag" 9668 || test ! -s conftest.err' 9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9670 (eval $ac_try) 2>&5 9671 ac_status=$? 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 (exit $ac_status); }; } && 9674 { ac_try='test -s conftest.$ac_objext' 9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9676 (eval $ac_try) 2>&5 9677 ac_status=$? 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); }; }; then 9680 ac_hi=-1 ac_mid=-1 9681 while :; do 9682 cat >conftest.$ac_ext <<_ACEOF 9683/* confdefs.h. */ 9684_ACEOF 9685cat confdefs.h >>conftest.$ac_ext 9686cat >>conftest.$ac_ext <<_ACEOF 9687/* end confdefs.h. */ 9688#include <stddef.h> 9689int 9690main () 9691{ 9692static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 9693test_array [0] = 0 9694 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699rm -f conftest.$ac_objext 9700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9701 (eval $ac_compile) 2>conftest.er1 9702 ac_status=$? 9703 grep -v '^ *+' conftest.er1 >conftest.err 9704 rm -f conftest.er1 9705 cat conftest.err >&5 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); } && 9708 { ac_try='test -z "$ac_c_werror_flag" 9709 || test ! -s conftest.err' 9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9711 (eval $ac_try) 2>&5 9712 ac_status=$? 9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9714 (exit $ac_status); }; } && 9715 { ac_try='test -s conftest.$ac_objext' 9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9717 (eval $ac_try) 2>&5 9718 ac_status=$? 9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9720 (exit $ac_status); }; }; then 9721 ac_lo=$ac_mid; break 9722else 9723 echo "$as_me: failed program was:" >&5 9724sed 's/^/| /' conftest.$ac_ext >&5 9725 9726ac_hi=`expr '(' $ac_mid ')' - 1` 9727 if test $ac_mid -le $ac_hi; then 9728 ac_lo= ac_hi= 9729 break 9730 fi 9731 ac_mid=`expr 2 '*' $ac_mid` 9732fi 9733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9734 done 9735else 9736 echo "$as_me: failed program was:" >&5 9737sed 's/^/| /' conftest.$ac_ext >&5 9738 9739ac_lo= ac_hi= 9740fi 9741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9742fi 9743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9744# Binary search between lo and hi bounds. 9745while test "x$ac_lo" != "x$ac_hi"; do 9746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9747 cat >conftest.$ac_ext <<_ACEOF 9748/* confdefs.h. */ 9749_ACEOF 9750cat confdefs.h >>conftest.$ac_ext 9751cat >>conftest.$ac_ext <<_ACEOF 9752/* end confdefs.h. */ 9753#include <stddef.h> 9754int 9755main () 9756{ 9757static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9758test_array [0] = 0 9759 9760 ; 9761 return 0; 9762} 9763_ACEOF 9764rm -f conftest.$ac_objext 9765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9766 (eval $ac_compile) 2>conftest.er1 9767 ac_status=$? 9768 grep -v '^ *+' conftest.er1 >conftest.err 9769 rm -f conftest.er1 9770 cat conftest.err >&5 9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9772 (exit $ac_status); } && 9773 { ac_try='test -z "$ac_c_werror_flag" 9774 || test ! -s conftest.err' 9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9776 (eval $ac_try) 2>&5 9777 ac_status=$? 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); }; } && 9780 { ac_try='test -s conftest.$ac_objext' 9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9782 (eval $ac_try) 2>&5 9783 ac_status=$? 9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 (exit $ac_status); }; }; then 9786 ac_hi=$ac_mid 9787else 9788 echo "$as_me: failed program was:" >&5 9789sed 's/^/| /' conftest.$ac_ext >&5 9790 9791ac_lo=`expr '(' $ac_mid ')' + 1` 9792fi 9793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9794done 9795case $ac_lo in 9796?*) res_hi=$ac_lo;; 9797'') result=? ;; 9798esac 9799else 9800 if test "$cross_compiling" = yes; then 9801 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9802See \`config.log' for more details." >&5 9803echo "$as_me: error: cannot run test program while cross compiling 9804See \`config.log' for more details." >&2;} 9805 { (exit 1); exit 1; }; } 9806else 9807 cat >conftest.$ac_ext <<_ACEOF 9808/* confdefs.h. */ 9809_ACEOF 9810cat confdefs.h >>conftest.$ac_ext 9811cat >>conftest.$ac_ext <<_ACEOF 9812/* end confdefs.h. */ 9813#include <stddef.h> 9814long longval () { return ~(size_t)0 / 10; } 9815unsigned long ulongval () { return ~(size_t)0 / 10; } 9816#include <stdio.h> 9817#include <stdlib.h> 9818int 9819main () 9820{ 9821 9822 FILE *f = fopen ("conftest.val", "w"); 9823 if (! f) 9824 exit (1); 9825 if ((~(size_t)0 / 10) < 0) 9826 { 9827 long i = longval (); 9828 if (i != (~(size_t)0 / 10)) 9829 exit (1); 9830 fprintf (f, "%ld\n", i); 9831 } 9832 else 9833 { 9834 unsigned long i = ulongval (); 9835 if (i != (~(size_t)0 / 10)) 9836 exit (1); 9837 fprintf (f, "%lu\n", i); 9838 } 9839 exit (ferror (f) || fclose (f) != 0); 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845rm -f conftest$ac_exeext 9846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9847 (eval $ac_link) 2>&5 9848 ac_status=$? 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9852 (eval $ac_try) 2>&5 9853 ac_status=$? 9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9855 (exit $ac_status); }; }; then 9856 res_hi=`cat conftest.val` 9857else 9858 echo "$as_me: program exited with status $ac_status" >&5 9859echo "$as_me: failed program was:" >&5 9860sed 's/^/| /' conftest.$ac_ext >&5 9861 9862( exit $ac_status ) 9863result=? 9864fi 9865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9866fi 9867fi 9868rm -f conftest.val 9869 if test "$cross_compiling" = yes; then 9870 # Depending upon the size, compute the lo and hi bounds. 9871cat >conftest.$ac_ext <<_ACEOF 9872/* confdefs.h. */ 9873_ACEOF 9874cat confdefs.h >>conftest.$ac_ext 9875cat >>conftest.$ac_ext <<_ACEOF 9876/* end confdefs.h. */ 9877#include <stddef.h> 9878int 9879main () 9880{ 9881static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 9882test_array [0] = 0 9883 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext 9889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9890 (eval $ac_compile) 2>conftest.er1 9891 ac_status=$? 9892 grep -v '^ *+' conftest.er1 >conftest.err 9893 rm -f conftest.er1 9894 cat conftest.err >&5 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 (exit $ac_status); } && 9897 { ac_try='test -z "$ac_c_werror_flag" 9898 || test ! -s conftest.err' 9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9900 (eval $ac_try) 2>&5 9901 ac_status=$? 9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9903 (exit $ac_status); }; } && 9904 { ac_try='test -s conftest.$ac_objext' 9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9906 (eval $ac_try) 2>&5 9907 ac_status=$? 9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9909 (exit $ac_status); }; }; then 9910 ac_lo=0 ac_mid=0 9911 while :; do 9912 cat >conftest.$ac_ext <<_ACEOF 9913/* confdefs.h. */ 9914_ACEOF 9915cat confdefs.h >>conftest.$ac_ext 9916cat >>conftest.$ac_ext <<_ACEOF 9917/* end confdefs.h. */ 9918#include <stddef.h> 9919int 9920main () 9921{ 9922static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 9923test_array [0] = 0 9924 9925 ; 9926 return 0; 9927} 9928_ACEOF 9929rm -f conftest.$ac_objext 9930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9931 (eval $ac_compile) 2>conftest.er1 9932 ac_status=$? 9933 grep -v '^ *+' conftest.er1 >conftest.err 9934 rm -f conftest.er1 9935 cat conftest.err >&5 9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9937 (exit $ac_status); } && 9938 { ac_try='test -z "$ac_c_werror_flag" 9939 || test ! -s conftest.err' 9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9941 (eval $ac_try) 2>&5 9942 ac_status=$? 9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9944 (exit $ac_status); }; } && 9945 { ac_try='test -s conftest.$ac_objext' 9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9947 (eval $ac_try) 2>&5 9948 ac_status=$? 9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9950 (exit $ac_status); }; }; then 9951 ac_hi=$ac_mid; break 9952else 9953 echo "$as_me: failed program was:" >&5 9954sed 's/^/| /' conftest.$ac_ext >&5 9955 9956ac_lo=`expr $ac_mid + 1` 9957 if test $ac_lo -le $ac_mid; then 9958 ac_lo= ac_hi= 9959 break 9960 fi 9961 ac_mid=`expr 2 '*' $ac_mid + 1` 9962fi 9963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9964 done 9965else 9966 echo "$as_me: failed program was:" >&5 9967sed 's/^/| /' conftest.$ac_ext >&5 9968 9969cat >conftest.$ac_ext <<_ACEOF 9970/* confdefs.h. */ 9971_ACEOF 9972cat confdefs.h >>conftest.$ac_ext 9973cat >>conftest.$ac_ext <<_ACEOF 9974/* end confdefs.h. */ 9975#include <stddef.h> 9976int 9977main () 9978{ 9979static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 9980test_array [0] = 0 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986rm -f conftest.$ac_objext 9987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9988 (eval $ac_compile) 2>conftest.er1 9989 ac_status=$? 9990 grep -v '^ *+' conftest.er1 >conftest.err 9991 rm -f conftest.er1 9992 cat conftest.err >&5 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); } && 9995 { ac_try='test -z "$ac_c_werror_flag" 9996 || test ! -s conftest.err' 9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9998 (eval $ac_try) 2>&5 9999 ac_status=$? 10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10001 (exit $ac_status); }; } && 10002 { ac_try='test -s conftest.$ac_objext' 10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10004 (eval $ac_try) 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); }; }; then 10008 ac_hi=-1 ac_mid=-1 10009 while :; do 10010 cat >conftest.$ac_ext <<_ACEOF 10011/* confdefs.h. */ 10012_ACEOF 10013cat confdefs.h >>conftest.$ac_ext 10014cat >>conftest.$ac_ext <<_ACEOF 10015/* end confdefs.h. */ 10016#include <stddef.h> 10017int 10018main () 10019{ 10020static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 10021test_array [0] = 0 10022 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext 10028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10029 (eval $ac_compile) 2>conftest.er1 10030 ac_status=$? 10031 grep -v '^ *+' conftest.er1 >conftest.err 10032 rm -f conftest.er1 10033 cat conftest.err >&5 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); } && 10036 { ac_try='test -z "$ac_c_werror_flag" 10037 || test ! -s conftest.err' 10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10039 (eval $ac_try) 2>&5 10040 ac_status=$? 10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 (exit $ac_status); }; } && 10043 { ac_try='test -s conftest.$ac_objext' 10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10045 (eval $ac_try) 2>&5 10046 ac_status=$? 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); }; }; then 10049 ac_lo=$ac_mid; break 10050else 10051 echo "$as_me: failed program was:" >&5 10052sed 's/^/| /' conftest.$ac_ext >&5 10053 10054ac_hi=`expr '(' $ac_mid ')' - 1` 10055 if test $ac_mid -le $ac_hi; then 10056 ac_lo= ac_hi= 10057 break 10058 fi 10059 ac_mid=`expr 2 '*' $ac_mid` 10060fi 10061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10062 done 10063else 10064 echo "$as_me: failed program was:" >&5 10065sed 's/^/| /' conftest.$ac_ext >&5 10066 10067ac_lo= ac_hi= 10068fi 10069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10070fi 10071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10072# Binary search between lo and hi bounds. 10073while test "x$ac_lo" != "x$ac_hi"; do 10074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10075 cat >conftest.$ac_ext <<_ACEOF 10076/* confdefs.h. */ 10077_ACEOF 10078cat confdefs.h >>conftest.$ac_ext 10079cat >>conftest.$ac_ext <<_ACEOF 10080/* end confdefs.h. */ 10081#include <stddef.h> 10082int 10083main () 10084{ 10085static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 10086test_array [0] = 0 10087 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092rm -f conftest.$ac_objext 10093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10094 (eval $ac_compile) 2>conftest.er1 10095 ac_status=$? 10096 grep -v '^ *+' conftest.er1 >conftest.err 10097 rm -f conftest.er1 10098 cat conftest.err >&5 10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10100 (exit $ac_status); } && 10101 { ac_try='test -z "$ac_c_werror_flag" 10102 || test ! -s conftest.err' 10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10104 (eval $ac_try) 2>&5 10105 ac_status=$? 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); }; } && 10108 { ac_try='test -s conftest.$ac_objext' 10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10110 (eval $ac_try) 2>&5 10111 ac_status=$? 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 (exit $ac_status); }; }; then 10114 ac_hi=$ac_mid 10115else 10116 echo "$as_me: failed program was:" >&5 10117sed 's/^/| /' conftest.$ac_ext >&5 10118 10119ac_lo=`expr '(' $ac_mid ')' + 1` 10120fi 10121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10122done 10123case $ac_lo in 10124?*) res_lo=$ac_lo;; 10125'') result=? ;; 10126esac 10127else 10128 if test "$cross_compiling" = yes; then 10129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10130See \`config.log' for more details." >&5 10131echo "$as_me: error: cannot run test program while cross compiling 10132See \`config.log' for more details." >&2;} 10133 { (exit 1); exit 1; }; } 10134else 10135 cat >conftest.$ac_ext <<_ACEOF 10136/* confdefs.h. */ 10137_ACEOF 10138cat confdefs.h >>conftest.$ac_ext 10139cat >>conftest.$ac_ext <<_ACEOF 10140/* end confdefs.h. */ 10141#include <stddef.h> 10142long longval () { return ~(size_t)0 % 10; } 10143unsigned long ulongval () { return ~(size_t)0 % 10; } 10144#include <stdio.h> 10145#include <stdlib.h> 10146int 10147main () 10148{ 10149 10150 FILE *f = fopen ("conftest.val", "w"); 10151 if (! f) 10152 exit (1); 10153 if ((~(size_t)0 % 10) < 0) 10154 { 10155 long i = longval (); 10156 if (i != (~(size_t)0 % 10)) 10157 exit (1); 10158 fprintf (f, "%ld\n", i); 10159 } 10160 else 10161 { 10162 unsigned long i = ulongval (); 10163 if (i != (~(size_t)0 % 10)) 10164 exit (1); 10165 fprintf (f, "%lu\n", i); 10166 } 10167 exit (ferror (f) || fclose (f) != 0); 10168 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173rm -f conftest$ac_exeext 10174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10175 (eval $ac_link) 2>&5 10176 ac_status=$? 10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10180 (eval $ac_try) 2>&5 10181 ac_status=$? 10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10183 (exit $ac_status); }; }; then 10184 res_lo=`cat conftest.val` 10185else 10186 echo "$as_me: program exited with status $ac_status" >&5 10187echo "$as_me: failed program was:" >&5 10188sed 's/^/| /' conftest.$ac_ext >&5 10189 10190( exit $ac_status ) 10191result=? 10192fi 10193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10194fi 10195fi 10196rm -f conftest.val 10197 if test "$cross_compiling" = yes; then 10198 # Depending upon the size, compute the lo and hi bounds. 10199cat >conftest.$ac_ext <<_ACEOF 10200/* confdefs.h. */ 10201_ACEOF 10202cat confdefs.h >>conftest.$ac_ext 10203cat >>conftest.$ac_ext <<_ACEOF 10204/* end confdefs.h. */ 10205#include <stddef.h> 10206int 10207main () 10208{ 10209static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 10210test_array [0] = 0 10211 10212 ; 10213 return 0; 10214} 10215_ACEOF 10216rm -f conftest.$ac_objext 10217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10218 (eval $ac_compile) 2>conftest.er1 10219 ac_status=$? 10220 grep -v '^ *+' conftest.er1 >conftest.err 10221 rm -f conftest.er1 10222 cat conftest.err >&5 10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10224 (exit $ac_status); } && 10225 { ac_try='test -z "$ac_c_werror_flag" 10226 || test ! -s conftest.err' 10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10228 (eval $ac_try) 2>&5 10229 ac_status=$? 10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 (exit $ac_status); }; } && 10232 { ac_try='test -s conftest.$ac_objext' 10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10234 (eval $ac_try) 2>&5 10235 ac_status=$? 10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 (exit $ac_status); }; }; then 10238 ac_lo=0 ac_mid=0 10239 while :; do 10240 cat >conftest.$ac_ext <<_ACEOF 10241/* confdefs.h. */ 10242_ACEOF 10243cat confdefs.h >>conftest.$ac_ext 10244cat >>conftest.$ac_ext <<_ACEOF 10245/* end confdefs.h. */ 10246#include <stddef.h> 10247int 10248main () 10249{ 10250static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10251test_array [0] = 0 10252 10253 ; 10254 return 0; 10255} 10256_ACEOF 10257rm -f conftest.$ac_objext 10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10259 (eval $ac_compile) 2>conftest.er1 10260 ac_status=$? 10261 grep -v '^ *+' conftest.er1 >conftest.err 10262 rm -f conftest.er1 10263 cat conftest.err >&5 10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10265 (exit $ac_status); } && 10266 { ac_try='test -z "$ac_c_werror_flag" 10267 || test ! -s conftest.err' 10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10269 (eval $ac_try) 2>&5 10270 ac_status=$? 10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 (exit $ac_status); }; } && 10273 { ac_try='test -s conftest.$ac_objext' 10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10275 (eval $ac_try) 2>&5 10276 ac_status=$? 10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10278 (exit $ac_status); }; }; then 10279 ac_hi=$ac_mid; break 10280else 10281 echo "$as_me: failed program was:" >&5 10282sed 's/^/| /' conftest.$ac_ext >&5 10283 10284ac_lo=`expr $ac_mid + 1` 10285 if test $ac_lo -le $ac_mid; then 10286 ac_lo= ac_hi= 10287 break 10288 fi 10289 ac_mid=`expr 2 '*' $ac_mid + 1` 10290fi 10291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10292 done 10293else 10294 echo "$as_me: failed program was:" >&5 10295sed 's/^/| /' conftest.$ac_ext >&5 10296 10297cat >conftest.$ac_ext <<_ACEOF 10298/* confdefs.h. */ 10299_ACEOF 10300cat confdefs.h >>conftest.$ac_ext 10301cat >>conftest.$ac_ext <<_ACEOF 10302/* end confdefs.h. */ 10303#include <stddef.h> 10304int 10305main () 10306{ 10307static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 10308test_array [0] = 0 10309 10310 ; 10311 return 0; 10312} 10313_ACEOF 10314rm -f conftest.$ac_objext 10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10316 (eval $ac_compile) 2>conftest.er1 10317 ac_status=$? 10318 grep -v '^ *+' conftest.er1 >conftest.err 10319 rm -f conftest.er1 10320 cat conftest.err >&5 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); } && 10323 { ac_try='test -z "$ac_c_werror_flag" 10324 || test ! -s conftest.err' 10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10326 (eval $ac_try) 2>&5 10327 ac_status=$? 10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 (exit $ac_status); }; } && 10330 { ac_try='test -s conftest.$ac_objext' 10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10332 (eval $ac_try) 2>&5 10333 ac_status=$? 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 (exit $ac_status); }; }; then 10336 ac_hi=-1 ac_mid=-1 10337 while :; do 10338 cat >conftest.$ac_ext <<_ACEOF 10339/* confdefs.h. */ 10340_ACEOF 10341cat confdefs.h >>conftest.$ac_ext 10342cat >>conftest.$ac_ext <<_ACEOF 10343/* end confdefs.h. */ 10344#include <stddef.h> 10345int 10346main () 10347{ 10348static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 10349test_array [0] = 0 10350 10351 ; 10352 return 0; 10353} 10354_ACEOF 10355rm -f conftest.$ac_objext 10356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10357 (eval $ac_compile) 2>conftest.er1 10358 ac_status=$? 10359 grep -v '^ *+' conftest.er1 >conftest.err 10360 rm -f conftest.er1 10361 cat conftest.err >&5 10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 (exit $ac_status); } && 10364 { ac_try='test -z "$ac_c_werror_flag" 10365 || test ! -s conftest.err' 10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10367 (eval $ac_try) 2>&5 10368 ac_status=$? 10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 (exit $ac_status); }; } && 10371 { ac_try='test -s conftest.$ac_objext' 10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10373 (eval $ac_try) 2>&5 10374 ac_status=$? 10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10376 (exit $ac_status); }; }; then 10377 ac_lo=$ac_mid; break 10378else 10379 echo "$as_me: failed program was:" >&5 10380sed 's/^/| /' conftest.$ac_ext >&5 10381 10382ac_hi=`expr '(' $ac_mid ')' - 1` 10383 if test $ac_mid -le $ac_hi; then 10384 ac_lo= ac_hi= 10385 break 10386 fi 10387 ac_mid=`expr 2 '*' $ac_mid` 10388fi 10389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10390 done 10391else 10392 echo "$as_me: failed program was:" >&5 10393sed 's/^/| /' conftest.$ac_ext >&5 10394 10395ac_lo= ac_hi= 10396fi 10397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10398fi 10399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10400# Binary search between lo and hi bounds. 10401while test "x$ac_lo" != "x$ac_hi"; do 10402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10403 cat >conftest.$ac_ext <<_ACEOF 10404/* confdefs.h. */ 10405_ACEOF 10406cat confdefs.h >>conftest.$ac_ext 10407cat >>conftest.$ac_ext <<_ACEOF 10408/* end confdefs.h. */ 10409#include <stddef.h> 10410int 10411main () 10412{ 10413static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10414test_array [0] = 0 10415 10416 ; 10417 return 0; 10418} 10419_ACEOF 10420rm -f conftest.$ac_objext 10421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10422 (eval $ac_compile) 2>conftest.er1 10423 ac_status=$? 10424 grep -v '^ *+' conftest.er1 >conftest.err 10425 rm -f conftest.er1 10426 cat conftest.err >&5 10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10428 (exit $ac_status); } && 10429 { ac_try='test -z "$ac_c_werror_flag" 10430 || test ! -s conftest.err' 10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10432 (eval $ac_try) 2>&5 10433 ac_status=$? 10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10435 (exit $ac_status); }; } && 10436 { ac_try='test -s conftest.$ac_objext' 10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10438 (eval $ac_try) 2>&5 10439 ac_status=$? 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 (exit $ac_status); }; }; then 10442 ac_hi=$ac_mid 10443else 10444 echo "$as_me: failed program was:" >&5 10445sed 's/^/| /' conftest.$ac_ext >&5 10446 10447ac_lo=`expr '(' $ac_mid ')' + 1` 10448fi 10449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10450done 10451case $ac_lo in 10452?*) fits_in_uint=$ac_lo;; 10453'') result=? ;; 10454esac 10455else 10456 if test "$cross_compiling" = yes; then 10457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10458See \`config.log' for more details." >&5 10459echo "$as_me: error: cannot run test program while cross compiling 10460See \`config.log' for more details." >&2;} 10461 { (exit 1); exit 1; }; } 10462else 10463 cat >conftest.$ac_ext <<_ACEOF 10464/* confdefs.h. */ 10465_ACEOF 10466cat confdefs.h >>conftest.$ac_ext 10467cat >>conftest.$ac_ext <<_ACEOF 10468/* end confdefs.h. */ 10469#include <stddef.h> 10470long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 10471unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 10472#include <stdio.h> 10473#include <stdlib.h> 10474int 10475main () 10476{ 10477 10478 FILE *f = fopen ("conftest.val", "w"); 10479 if (! f) 10480 exit (1); 10481 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 10482 { 10483 long i = longval (); 10484 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10485 exit (1); 10486 fprintf (f, "%ld\n", i); 10487 } 10488 else 10489 { 10490 unsigned long i = ulongval (); 10491 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10492 exit (1); 10493 fprintf (f, "%lu\n", i); 10494 } 10495 exit (ferror (f) || fclose (f) != 0); 10496 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501rm -f conftest$ac_exeext 10502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10503 (eval $ac_link) 2>&5 10504 ac_status=$? 10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10508 (eval $ac_try) 2>&5 10509 ac_status=$? 10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10511 (exit $ac_status); }; }; then 10512 fits_in_uint=`cat conftest.val` 10513else 10514 echo "$as_me: program exited with status $ac_status" >&5 10515echo "$as_me: failed program was:" >&5 10516sed 's/^/| /' conftest.$ac_ext >&5 10517 10518( exit $ac_status ) 10519result=? 10520fi 10521rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10522fi 10523fi 10524rm -f conftest.val 10525 if test "$fits_in_uint" = 1; then 10526 cat >conftest.$ac_ext <<_ACEOF 10527/* confdefs.h. */ 10528_ACEOF 10529cat confdefs.h >>conftest.$ac_ext 10530cat >>conftest.$ac_ext <<_ACEOF 10531/* end confdefs.h. */ 10532#include <stddef.h> 10533 extern size_t foo; 10534 extern unsigned long foo; 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544rm -f conftest.$ac_objext 10545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10546 (eval $ac_compile) 2>conftest.er1 10547 ac_status=$? 10548 grep -v '^ *+' conftest.er1 >conftest.err 10549 rm -f conftest.er1 10550 cat conftest.err >&5 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); } && 10553 { ac_try='test -z "$ac_c_werror_flag" 10554 || test ! -s conftest.err' 10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10556 (eval $ac_try) 2>&5 10557 ac_status=$? 10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); }; } && 10560 { ac_try='test -s conftest.$ac_objext' 10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 (eval $ac_try) 2>&5 10563 ac_status=$? 10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); }; }; then 10566 fits_in_uint=0 10567else 10568 echo "$as_me: failed program was:" >&5 10569sed 's/^/| /' conftest.$ac_ext >&5 10570 10571fi 10572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10573 fi 10574 if test -z "$result"; then 10575 if test "$fits_in_uint" = 1; then 10576 result="$res_hi$res_lo"U 10577 else 10578 result="$res_hi$res_lo"UL 10579 fi 10580 else 10581 result='~(size_t)0' 10582 fi 10583 fi 10584 echo "$as_me:$LINENO: result: $result" >&5 10585echo "${ECHO_T}$result" >&6 10586 if test "$result" != yes; then 10587 10588cat >>confdefs.h <<_ACEOF 10589#define SIZE_MAX $result 10590_ACEOF 10591 10592 fi 10593 10594 10595 10596 10597for ac_header in stdint.h 10598do 10599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10600if eval "test \"\${$as_ac_Header+set}\" = set"; then 10601 echo "$as_me:$LINENO: checking for $ac_header" >&5 10602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10603if eval "test \"\${$as_ac_Header+set}\" = set"; then 10604 echo $ECHO_N "(cached) $ECHO_C" >&6 10605fi 10606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10608else 10609 # Is the header compilable? 10610echo "$as_me:$LINENO: checking $ac_header usability" >&5 10611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10612cat >conftest.$ac_ext <<_ACEOF 10613/* confdefs.h. */ 10614_ACEOF 10615cat confdefs.h >>conftest.$ac_ext 10616cat >>conftest.$ac_ext <<_ACEOF 10617/* end confdefs.h. */ 10618$ac_includes_default 10619#include <$ac_header> 10620_ACEOF 10621rm -f conftest.$ac_objext 10622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10623 (eval $ac_compile) 2>conftest.er1 10624 ac_status=$? 10625 grep -v '^ *+' conftest.er1 >conftest.err 10626 rm -f conftest.er1 10627 cat conftest.err >&5 10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10629 (exit $ac_status); } && 10630 { ac_try='test -z "$ac_c_werror_flag" 10631 || test ! -s conftest.err' 10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10633 (eval $ac_try) 2>&5 10634 ac_status=$? 10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 (exit $ac_status); }; } && 10637 { ac_try='test -s conftest.$ac_objext' 10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10639 (eval $ac_try) 2>&5 10640 ac_status=$? 10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10642 (exit $ac_status); }; }; then 10643 ac_header_compiler=yes 10644else 10645 echo "$as_me: failed program was:" >&5 10646sed 's/^/| /' conftest.$ac_ext >&5 10647 10648ac_header_compiler=no 10649fi 10650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10652echo "${ECHO_T}$ac_header_compiler" >&6 10653 10654# Is the header present? 10655echo "$as_me:$LINENO: checking $ac_header presence" >&5 10656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10657cat >conftest.$ac_ext <<_ACEOF 10658/* confdefs.h. */ 10659_ACEOF 10660cat confdefs.h >>conftest.$ac_ext 10661cat >>conftest.$ac_ext <<_ACEOF 10662/* end confdefs.h. */ 10663#include <$ac_header> 10664_ACEOF 10665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10667 ac_status=$? 10668 grep -v '^ *+' conftest.er1 >conftest.err 10669 rm -f conftest.er1 10670 cat conftest.err >&5 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 (exit $ac_status); } >/dev/null; then 10673 if test -s conftest.err; then 10674 ac_cpp_err=$ac_c_preproc_warn_flag 10675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10676 else 10677 ac_cpp_err= 10678 fi 10679else 10680 ac_cpp_err=yes 10681fi 10682if test -z "$ac_cpp_err"; then 10683 ac_header_preproc=yes 10684else 10685 echo "$as_me: failed program was:" >&5 10686sed 's/^/| /' conftest.$ac_ext >&5 10687 10688 ac_header_preproc=no 10689fi 10690rm -f conftest.err conftest.$ac_ext 10691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10692echo "${ECHO_T}$ac_header_preproc" >&6 10693 10694# So? What about this header? 10695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10696 yes:no: ) 10697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10701 ac_header_preproc=yes 10702 ;; 10703 no:yes:* ) 10704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10716 ( 10717 cat <<\_ASBOX 10718## -------------------------------------- ## 10719## Report this to the GNU Texinfo lists. ## 10720## -------------------------------------- ## 10721_ASBOX 10722 ) | 10723 sed "s/^/$as_me: WARNING: /" >&2 10724 ;; 10725esac 10726echo "$as_me:$LINENO: checking for $ac_header" >&5 10727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10728if eval "test \"\${$as_ac_Header+set}\" = set"; then 10729 echo $ECHO_N "(cached) $ECHO_C" >&6 10730else 10731 eval "$as_ac_Header=\$ac_header_preproc" 10732fi 10733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10735 10736fi 10737if test `eval echo '${'$as_ac_Header'}'` = yes; then 10738 cat >>confdefs.h <<_ACEOF 10739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10740_ACEOF 10741 10742fi 10743 10744done 10745 10746 10747 10748 if test "X$prefix" = "XNONE"; then 10749 acl_final_prefix="$ac_default_prefix" 10750 else 10751 acl_final_prefix="$prefix" 10752 fi 10753 if test "X$exec_prefix" = "XNONE"; then 10754 acl_final_exec_prefix='${prefix}' 10755 else 10756 acl_final_exec_prefix="$exec_prefix" 10757 fi 10758 acl_save_prefix="$prefix" 10759 prefix="$acl_final_prefix" 10760 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10761 prefix="$acl_save_prefix" 10762 10763 10764# Check whether --with-gnu-ld or --without-gnu-ld was given. 10765if test "${with_gnu_ld+set}" = set; then 10766 withval="$with_gnu_ld" 10767 test "$withval" = no || with_gnu_ld=yes 10768else 10769 with_gnu_ld=no 10770fi; 10771# Prepare PATH_SEPARATOR. 10772# The user is always right. 10773if test "${PATH_SEPARATOR+set}" != set; then 10774 echo "#! /bin/sh" >conf$$.sh 10775 echo "exit 0" >>conf$$.sh 10776 chmod +x conf$$.sh 10777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10778 PATH_SEPARATOR=';' 10779 else 10780 PATH_SEPARATOR=: 10781 fi 10782 rm -f conf$$.sh 10783fi 10784ac_prog=ld 10785if test "$GCC" = yes; then 10786 # Check if gcc -print-prog-name=ld gives a path. 10787 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10788echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10789 case $host in 10790 *-*-mingw*) 10791 # gcc leaves a trailing carriage return which upsets mingw 10792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10793 *) 10794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10795 esac 10796 case $ac_prog in 10797 # Accept absolute paths. 10798 [\\/]* | [A-Za-z]:[\\/]*) 10799 re_direlt='/[^/][^/]*/\.\./' 10800 # Canonicalize the path of ld 10801 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10803 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10804 done 10805 test -z "$LD" && LD="$ac_prog" 10806 ;; 10807 "") 10808 # If it fails, then pretend we aren't using GCC. 10809 ac_prog=ld 10810 ;; 10811 *) 10812 # If it is relative, then search for the first ld in PATH. 10813 with_gnu_ld=unknown 10814 ;; 10815 esac 10816elif test "$with_gnu_ld" = yes; then 10817 echo "$as_me:$LINENO: checking for GNU ld" >&5 10818echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10819else 10820 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10821echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10822fi 10823if test "${acl_cv_path_LD+set}" = set; then 10824 echo $ECHO_N "(cached) $ECHO_C" >&6 10825else 10826 if test -z "$LD"; then 10827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10828 for ac_dir in $PATH; do 10829 test -z "$ac_dir" && ac_dir=. 10830 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10831 acl_cv_path_LD="$ac_dir/$ac_prog" 10832 # Check to see if the program is GNU ld. I'd rather use --version, 10833 # but apparently some GNU ld's only accept -v. 10834 # Break only if it was the GNU/non-GNU ld that we prefer. 10835 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 10836 *GNU* | *'with BFD'*) 10837 test "$with_gnu_ld" != no && break ;; 10838 *) 10839 test "$with_gnu_ld" != yes && break ;; 10840 esac 10841 fi 10842 done 10843 IFS="$ac_save_ifs" 10844else 10845 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10846fi 10847fi 10848 10849LD="$acl_cv_path_LD" 10850if test -n "$LD"; then 10851 echo "$as_me:$LINENO: result: $LD" >&5 10852echo "${ECHO_T}$LD" >&6 10853else 10854 echo "$as_me:$LINENO: result: no" >&5 10855echo "${ECHO_T}no" >&6 10856fi 10857test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10858echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10859 { (exit 1); exit 1; }; } 10860echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10861echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10862if test "${acl_cv_prog_gnu_ld+set}" = set; then 10863 echo $ECHO_N "(cached) $ECHO_C" >&6 10864else 10865 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10866case `$LD -v 2>&1 </dev/null` in 10867*GNU* | *'with BFD'*) 10868 acl_cv_prog_gnu_ld=yes ;; 10869*) 10870 acl_cv_prog_gnu_ld=no ;; 10871esac 10872fi 10873echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10874echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10875with_gnu_ld=$acl_cv_prog_gnu_ld 10876 10877 10878 10879 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10880echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10881if test "${acl_cv_rpath+set}" = set; then 10882 echo $ECHO_N "(cached) $ECHO_C" >&6 10883else 10884 10885 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10886 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10887 . ./conftest.sh 10888 rm -f ./conftest.sh 10889 acl_cv_rpath=done 10890 10891fi 10892echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10893echo "${ECHO_T}$acl_cv_rpath" >&6 10894 wl="$acl_cv_wl" 10895 libext="$acl_cv_libext" 10896 shlibext="$acl_cv_shlibext" 10897 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10898 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10899 hardcode_direct="$acl_cv_hardcode_direct" 10900 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10901 # Check whether --enable-rpath or --disable-rpath was given. 10902if test "${enable_rpath+set}" = set; then 10903 enableval="$enable_rpath" 10904 : 10905else 10906 enable_rpath=yes 10907fi; 10908 10909 10910 10911 10912 10913 10914 10915 use_additional=yes 10916 10917 acl_save_prefix="$prefix" 10918 prefix="$acl_final_prefix" 10919 acl_save_exec_prefix="$exec_prefix" 10920 exec_prefix="$acl_final_exec_prefix" 10921 10922 eval additional_includedir=\"$includedir\" 10923 eval additional_libdir=\"$libdir\" 10924 10925 exec_prefix="$acl_save_exec_prefix" 10926 prefix="$acl_save_prefix" 10927 10928 10929# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10930if test "${with_libiconv_prefix+set}" = set; then 10931 withval="$with_libiconv_prefix" 10932 10933 if test "X$withval" = "Xno"; then 10934 use_additional=no 10935 else 10936 if test "X$withval" = "X"; then 10937 10938 acl_save_prefix="$prefix" 10939 prefix="$acl_final_prefix" 10940 acl_save_exec_prefix="$exec_prefix" 10941 exec_prefix="$acl_final_exec_prefix" 10942 10943 eval additional_includedir=\"$includedir\" 10944 eval additional_libdir=\"$libdir\" 10945 10946 exec_prefix="$acl_save_exec_prefix" 10947 prefix="$acl_save_prefix" 10948 10949 else 10950 additional_includedir="$withval/include" 10951 additional_libdir="$withval/lib" 10952 fi 10953 fi 10954 10955fi; 10956 LIBICONV= 10957 LTLIBICONV= 10958 INCICONV= 10959 rpathdirs= 10960 ltrpathdirs= 10961 names_already_handled= 10962 names_next_round='iconv ' 10963 while test -n "$names_next_round"; do 10964 names_this_round="$names_next_round" 10965 names_next_round= 10966 for name in $names_this_round; do 10967 already_handled= 10968 for n in $names_already_handled; do 10969 if test "$n" = "$name"; then 10970 already_handled=yes 10971 break 10972 fi 10973 done 10974 if test -z "$already_handled"; then 10975 names_already_handled="$names_already_handled $name" 10976 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10977 eval value=\"\$HAVE_LIB$uppername\" 10978 if test -n "$value"; then 10979 if test "$value" = yes; then 10980 eval value=\"\$LIB$uppername\" 10981 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10982 eval value=\"\$LTLIB$uppername\" 10983 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10984 else 10985 : 10986 fi 10987 else 10988 found_dir= 10989 found_la= 10990 found_so= 10991 found_a= 10992 if test $use_additional = yes; then 10993 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10994 found_dir="$additional_libdir" 10995 found_so="$additional_libdir/lib$name.$shlibext" 10996 if test -f "$additional_libdir/lib$name.la"; then 10997 found_la="$additional_libdir/lib$name.la" 10998 fi 10999 else 11000 if test -f "$additional_libdir/lib$name.$libext"; then 11001 found_dir="$additional_libdir" 11002 found_a="$additional_libdir/lib$name.$libext" 11003 if test -f "$additional_libdir/lib$name.la"; then 11004 found_la="$additional_libdir/lib$name.la" 11005 fi 11006 fi 11007 fi 11008 fi 11009 if test "X$found_dir" = "X"; then 11010 for x in $LDFLAGS $LTLIBICONV; do 11011 11012 acl_save_prefix="$prefix" 11013 prefix="$acl_final_prefix" 11014 acl_save_exec_prefix="$exec_prefix" 11015 exec_prefix="$acl_final_exec_prefix" 11016 eval x=\"$x\" 11017 exec_prefix="$acl_save_exec_prefix" 11018 prefix="$acl_save_prefix" 11019 11020 case "$x" in 11021 -L*) 11022 dir=`echo "X$x" | sed -e 's/^X-L//'` 11023 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 11024 found_dir="$dir" 11025 found_so="$dir/lib$name.$shlibext" 11026 if test -f "$dir/lib$name.la"; then 11027 found_la="$dir/lib$name.la" 11028 fi 11029 else 11030 if test -f "$dir/lib$name.$libext"; then 11031 found_dir="$dir" 11032 found_a="$dir/lib$name.$libext" 11033 if test -f "$dir/lib$name.la"; then 11034 found_la="$dir/lib$name.la" 11035 fi 11036 fi 11037 fi 11038 ;; 11039 esac 11040 if test "X$found_dir" != "X"; then 11041 break 11042 fi 11043 done 11044 fi 11045 if test "X$found_dir" != "X"; then 11046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11047 if test "X$found_so" != "X"; then 11048 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11050 else 11051 haveit= 11052 for x in $ltrpathdirs; do 11053 if test "X$x" = "X$found_dir"; then 11054 haveit=yes 11055 break 11056 fi 11057 done 11058 if test -z "$haveit"; then 11059 ltrpathdirs="$ltrpathdirs $found_dir" 11060 fi 11061 if test "$hardcode_direct" = yes; then 11062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11063 else 11064 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11065 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11066 haveit= 11067 for x in $rpathdirs; do 11068 if test "X$x" = "X$found_dir"; then 11069 haveit=yes 11070 break 11071 fi 11072 done 11073 if test -z "$haveit"; then 11074 rpathdirs="$rpathdirs $found_dir" 11075 fi 11076 else 11077 haveit= 11078 for x in $LDFLAGS $LIBICONV; do 11079 11080 acl_save_prefix="$prefix" 11081 prefix="$acl_final_prefix" 11082 acl_save_exec_prefix="$exec_prefix" 11083 exec_prefix="$acl_final_exec_prefix" 11084 eval x=\"$x\" 11085 exec_prefix="$acl_save_exec_prefix" 11086 prefix="$acl_save_prefix" 11087 11088 if test "X$x" = "X-L$found_dir"; then 11089 haveit=yes 11090 break 11091 fi 11092 done 11093 if test -z "$haveit"; then 11094 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11095 fi 11096 if test "$hardcode_minus_L" != no; then 11097 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11098 else 11099 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11100 fi 11101 fi 11102 fi 11103 fi 11104 else 11105 if test "X$found_a" != "X"; then 11106 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11107 else 11108 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11109 fi 11110 fi 11111 additional_includedir= 11112 case "$found_dir" in 11113 */lib | */lib/) 11114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11115 additional_includedir="$basedir/include" 11116 ;; 11117 esac 11118 if test "X$additional_includedir" != "X"; then 11119 if test "X$additional_includedir" != "X/usr/include"; then 11120 haveit= 11121 if test "X$additional_includedir" = "X/usr/local/include"; then 11122 if test -n "$GCC"; then 11123 case $host_os in 11124 linux*) haveit=yes;; 11125 esac 11126 fi 11127 fi 11128 if test -z "$haveit"; then 11129 for x in $CPPFLAGS $INCICONV; do 11130 11131 acl_save_prefix="$prefix" 11132 prefix="$acl_final_prefix" 11133 acl_save_exec_prefix="$exec_prefix" 11134 exec_prefix="$acl_final_exec_prefix" 11135 eval x=\"$x\" 11136 exec_prefix="$acl_save_exec_prefix" 11137 prefix="$acl_save_prefix" 11138 11139 if test "X$x" = "X-I$additional_includedir"; then 11140 haveit=yes 11141 break 11142 fi 11143 done 11144 if test -z "$haveit"; then 11145 if test -d "$additional_includedir"; then 11146 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11147 fi 11148 fi 11149 fi 11150 fi 11151 fi 11152 if test -n "$found_la"; then 11153 save_libdir="$libdir" 11154 case "$found_la" in 11155 */* | *\\*) . "$found_la" ;; 11156 *) . "./$found_la" ;; 11157 esac 11158 libdir="$save_libdir" 11159 for dep in $dependency_libs; do 11160 case "$dep" in 11161 -L*) 11162 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11163 if test "X$additional_libdir" != "X/usr/lib"; then 11164 haveit= 11165 if test "X$additional_libdir" = "X/usr/local/lib"; then 11166 if test -n "$GCC"; then 11167 case $host_os in 11168 linux*) haveit=yes;; 11169 esac 11170 fi 11171 fi 11172 if test -z "$haveit"; then 11173 haveit= 11174 for x in $LDFLAGS $LIBICONV; do 11175 11176 acl_save_prefix="$prefix" 11177 prefix="$acl_final_prefix" 11178 acl_save_exec_prefix="$exec_prefix" 11179 exec_prefix="$acl_final_exec_prefix" 11180 eval x=\"$x\" 11181 exec_prefix="$acl_save_exec_prefix" 11182 prefix="$acl_save_prefix" 11183 11184 if test "X$x" = "X-L$additional_libdir"; then 11185 haveit=yes 11186 break 11187 fi 11188 done 11189 if test -z "$haveit"; then 11190 if test -d "$additional_libdir"; then 11191 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11192 fi 11193 fi 11194 haveit= 11195 for x in $LDFLAGS $LTLIBICONV; do 11196 11197 acl_save_prefix="$prefix" 11198 prefix="$acl_final_prefix" 11199 acl_save_exec_prefix="$exec_prefix" 11200 exec_prefix="$acl_final_exec_prefix" 11201 eval x=\"$x\" 11202 exec_prefix="$acl_save_exec_prefix" 11203 prefix="$acl_save_prefix" 11204 11205 if test "X$x" = "X-L$additional_libdir"; then 11206 haveit=yes 11207 break 11208 fi 11209 done 11210 if test -z "$haveit"; then 11211 if test -d "$additional_libdir"; then 11212 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11213 fi 11214 fi 11215 fi 11216 fi 11217 ;; 11218 -R*) 11219 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11220 if test "$enable_rpath" != no; then 11221 haveit= 11222 for x in $rpathdirs; do 11223 if test "X$x" = "X$dir"; then 11224 haveit=yes 11225 break 11226 fi 11227 done 11228 if test -z "$haveit"; then 11229 rpathdirs="$rpathdirs $dir" 11230 fi 11231 haveit= 11232 for x in $ltrpathdirs; do 11233 if test "X$x" = "X$dir"; then 11234 haveit=yes 11235 break 11236 fi 11237 done 11238 if test -z "$haveit"; then 11239 ltrpathdirs="$ltrpathdirs $dir" 11240 fi 11241 fi 11242 ;; 11243 -l*) 11244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11245 ;; 11246 *.la) 11247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11248 ;; 11249 *) 11250 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11252 ;; 11253 esac 11254 done 11255 fi 11256 else 11257 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11258 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11259 fi 11260 fi 11261 fi 11262 done 11263 done 11264 if test "X$rpathdirs" != "X"; then 11265 if test -n "$hardcode_libdir_separator"; then 11266 alldirs= 11267 for found_dir in $rpathdirs; do 11268 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11269 done 11270 acl_save_libdir="$libdir" 11271 libdir="$alldirs" 11272 eval flag=\"$hardcode_libdir_flag_spec\" 11273 libdir="$acl_save_libdir" 11274 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11275 else 11276 for found_dir in $rpathdirs; do 11277 acl_save_libdir="$libdir" 11278 libdir="$found_dir" 11279 eval flag=\"$hardcode_libdir_flag_spec\" 11280 libdir="$acl_save_libdir" 11281 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11282 done 11283 fi 11284 fi 11285 if test "X$ltrpathdirs" != "X"; then 11286 for found_dir in $ltrpathdirs; do 11287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11288 done 11289 fi 11290 11291 11292 11293 11294 11295 11296 11297 11298 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 11299echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 11300if test "${ac_cv_type_ptrdiff_t+set}" = set; then 11301 echo $ECHO_N "(cached) $ECHO_C" >&6 11302else 11303 cat >conftest.$ac_ext <<_ACEOF 11304/* confdefs.h. */ 11305_ACEOF 11306cat confdefs.h >>conftest.$ac_ext 11307cat >>conftest.$ac_ext <<_ACEOF 11308/* end confdefs.h. */ 11309$ac_includes_default 11310int 11311main () 11312{ 11313if ((ptrdiff_t *) 0) 11314 return 0; 11315if (sizeof (ptrdiff_t)) 11316 return 0; 11317 ; 11318 return 0; 11319} 11320_ACEOF 11321rm -f conftest.$ac_objext 11322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11323 (eval $ac_compile) 2>conftest.er1 11324 ac_status=$? 11325 grep -v '^ *+' conftest.er1 >conftest.err 11326 rm -f conftest.er1 11327 cat conftest.err >&5 11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11329 (exit $ac_status); } && 11330 { ac_try='test -z "$ac_c_werror_flag" 11331 || test ! -s conftest.err' 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11333 (eval $ac_try) 2>&5 11334 ac_status=$? 11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11336 (exit $ac_status); }; } && 11337 { ac_try='test -s conftest.$ac_objext' 11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11339 (eval $ac_try) 2>&5 11340 ac_status=$? 11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11342 (exit $ac_status); }; }; then 11343 ac_cv_type_ptrdiff_t=yes 11344else 11345 echo "$as_me: failed program was:" >&5 11346sed 's/^/| /' conftest.$ac_ext >&5 11347 11348ac_cv_type_ptrdiff_t=no 11349fi 11350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11351fi 11352echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 11353echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 11354if test $ac_cv_type_ptrdiff_t = yes; then 11355 : 11356else 11357 11358cat >>confdefs.h <<\_ACEOF 11359#define ptrdiff_t long 11360_ACEOF 11361 11362 11363fi 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 11376stdlib.h string.h unistd.h sys/param.h 11377do 11378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11379if eval "test \"\${$as_ac_Header+set}\" = set"; then 11380 echo "$as_me:$LINENO: checking for $ac_header" >&5 11381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11382if eval "test \"\${$as_ac_Header+set}\" = set"; then 11383 echo $ECHO_N "(cached) $ECHO_C" >&6 11384fi 11385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11387else 11388 # Is the header compilable? 11389echo "$as_me:$LINENO: checking $ac_header usability" >&5 11390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11391cat >conftest.$ac_ext <<_ACEOF 11392/* confdefs.h. */ 11393_ACEOF 11394cat confdefs.h >>conftest.$ac_ext 11395cat >>conftest.$ac_ext <<_ACEOF 11396/* end confdefs.h. */ 11397$ac_includes_default 11398#include <$ac_header> 11399_ACEOF 11400rm -f conftest.$ac_objext 11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11402 (eval $ac_compile) 2>conftest.er1 11403 ac_status=$? 11404 grep -v '^ *+' conftest.er1 >conftest.err 11405 rm -f conftest.er1 11406 cat conftest.err >&5 11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11408 (exit $ac_status); } && 11409 { ac_try='test -z "$ac_c_werror_flag" 11410 || test ! -s conftest.err' 11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11412 (eval $ac_try) 2>&5 11413 ac_status=$? 11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11415 (exit $ac_status); }; } && 11416 { ac_try='test -s conftest.$ac_objext' 11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11418 (eval $ac_try) 2>&5 11419 ac_status=$? 11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); }; }; then 11422 ac_header_compiler=yes 11423else 11424 echo "$as_me: failed program was:" >&5 11425sed 's/^/| /' conftest.$ac_ext >&5 11426 11427ac_header_compiler=no 11428fi 11429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11431echo "${ECHO_T}$ac_header_compiler" >&6 11432 11433# Is the header present? 11434echo "$as_me:$LINENO: checking $ac_header presence" >&5 11435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11436cat >conftest.$ac_ext <<_ACEOF 11437/* confdefs.h. */ 11438_ACEOF 11439cat confdefs.h >>conftest.$ac_ext 11440cat >>conftest.$ac_ext <<_ACEOF 11441/* end confdefs.h. */ 11442#include <$ac_header> 11443_ACEOF 11444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11446 ac_status=$? 11447 grep -v '^ *+' conftest.er1 >conftest.err 11448 rm -f conftest.er1 11449 cat conftest.err >&5 11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11451 (exit $ac_status); } >/dev/null; then 11452 if test -s conftest.err; then 11453 ac_cpp_err=$ac_c_preproc_warn_flag 11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11455 else 11456 ac_cpp_err= 11457 fi 11458else 11459 ac_cpp_err=yes 11460fi 11461if test -z "$ac_cpp_err"; then 11462 ac_header_preproc=yes 11463else 11464 echo "$as_me: failed program was:" >&5 11465sed 's/^/| /' conftest.$ac_ext >&5 11466 11467 ac_header_preproc=no 11468fi 11469rm -f conftest.err conftest.$ac_ext 11470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11471echo "${ECHO_T}$ac_header_preproc" >&6 11472 11473# So? What about this header? 11474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11475 yes:no: ) 11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11480 ac_header_preproc=yes 11481 ;; 11482 no:yes:* ) 11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11495 ( 11496 cat <<\_ASBOX 11497## -------------------------------------- ## 11498## Report this to the GNU Texinfo lists. ## 11499## -------------------------------------- ## 11500_ASBOX 11501 ) | 11502 sed "s/^/$as_me: WARNING: /" >&2 11503 ;; 11504esac 11505echo "$as_me:$LINENO: checking for $ac_header" >&5 11506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11507if eval "test \"\${$as_ac_Header+set}\" = set"; then 11508 echo $ECHO_N "(cached) $ECHO_C" >&6 11509else 11510 eval "$as_ac_Header=\$ac_header_preproc" 11511fi 11512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11514 11515fi 11516if test `eval echo '${'$as_ac_Header'}'` = yes; then 11517 cat >>confdefs.h <<_ACEOF 11518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11519_ACEOF 11520 11521fi 11522 11523done 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 11549mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 11550strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 11551__fsetlocking 11552do 11553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11554echo "$as_me:$LINENO: checking for $ac_func" >&5 11555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11556if eval "test \"\${$as_ac_var+set}\" = set"; then 11557 echo $ECHO_N "(cached) $ECHO_C" >&6 11558else 11559 cat >conftest.$ac_ext <<_ACEOF 11560/* confdefs.h. */ 11561_ACEOF 11562cat confdefs.h >>conftest.$ac_ext 11563cat >>conftest.$ac_ext <<_ACEOF 11564/* end confdefs.h. */ 11565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11567#define $ac_func innocuous_$ac_func 11568 11569/* System header to define __stub macros and hopefully few prototypes, 11570 which can conflict with char $ac_func (); below. 11571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11572 <limits.h> exists even on freestanding compilers. */ 11573 11574#ifdef __STDC__ 11575# include <limits.h> 11576#else 11577# include <assert.h> 11578#endif 11579 11580#undef $ac_func 11581 11582/* Override any gcc2 internal prototype to avoid an error. */ 11583#ifdef __cplusplus 11584extern "C" 11585{ 11586#endif 11587/* We use char because int might match the return type of a gcc2 11588 builtin and then its argument prototype would still apply. */ 11589char $ac_func (); 11590/* The GNU C library defines this for functions which it implements 11591 to always fail with ENOSYS. Some functions are actually named 11592 something starting with __ and the normal name is an alias. */ 11593#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11594choke me 11595#else 11596char (*f) () = $ac_func; 11597#endif 11598#ifdef __cplusplus 11599} 11600#endif 11601 11602int 11603main () 11604{ 11605return f != $ac_func; 11606 ; 11607 return 0; 11608} 11609_ACEOF 11610rm -f conftest.$ac_objext conftest$ac_exeext 11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11612 (eval $ac_link) 2>conftest.er1 11613 ac_status=$? 11614 grep -v '^ *+' conftest.er1 >conftest.err 11615 rm -f conftest.er1 11616 cat conftest.err >&5 11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11618 (exit $ac_status); } && 11619 { ac_try='test -z "$ac_c_werror_flag" 11620 || test ! -s conftest.err' 11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11622 (eval $ac_try) 2>&5 11623 ac_status=$? 11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 (exit $ac_status); }; } && 11626 { ac_try='test -s conftest$ac_exeext' 11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11628 (eval $ac_try) 2>&5 11629 ac_status=$? 11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11631 (exit $ac_status); }; }; then 11632 eval "$as_ac_var=yes" 11633else 11634 echo "$as_me: failed program was:" >&5 11635sed 's/^/| /' conftest.$ac_ext >&5 11636 11637eval "$as_ac_var=no" 11638fi 11639rm -f conftest.err conftest.$ac_objext \ 11640 conftest$ac_exeext conftest.$ac_ext 11641fi 11642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11644if test `eval echo '${'$as_ac_var'}'` = yes; then 11645 cat >>confdefs.h <<_ACEOF 11646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11647_ACEOF 11648 11649fi 11650done 11651 11652 11653 11654 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 11655echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 11656if test "${ac_cv_have_decl__snprintf+set}" = set; then 11657 echo $ECHO_N "(cached) $ECHO_C" >&6 11658else 11659 cat >conftest.$ac_ext <<_ACEOF 11660/* confdefs.h. */ 11661_ACEOF 11662cat confdefs.h >>conftest.$ac_ext 11663cat >>conftest.$ac_ext <<_ACEOF 11664/* end confdefs.h. */ 11665#include <stdio.h> 11666int 11667main () 11668{ 11669 11670#ifndef _snprintf 11671 char *p = (char *) _snprintf; 11672#endif 11673 11674 ; 11675 return 0; 11676} 11677_ACEOF 11678rm -f conftest.$ac_objext 11679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11680 (eval $ac_compile) 2>conftest.er1 11681 ac_status=$? 11682 grep -v '^ *+' conftest.er1 >conftest.err 11683 rm -f conftest.er1 11684 cat conftest.err >&5 11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11686 (exit $ac_status); } && 11687 { ac_try='test -z "$ac_c_werror_flag" 11688 || test ! -s conftest.err' 11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11690 (eval $ac_try) 2>&5 11691 ac_status=$? 11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 (exit $ac_status); }; } && 11694 { ac_try='test -s conftest.$ac_objext' 11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11696 (eval $ac_try) 2>&5 11697 ac_status=$? 11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11699 (exit $ac_status); }; }; then 11700 ac_cv_have_decl__snprintf=yes 11701else 11702 echo "$as_me: failed program was:" >&5 11703sed 's/^/| /' conftest.$ac_ext >&5 11704 11705ac_cv_have_decl__snprintf=no 11706fi 11707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11708fi 11709echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 11710echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 11711 if test $ac_cv_have_decl__snprintf = yes; then 11712 gt_value=1 11713 else 11714 gt_value=0 11715 fi 11716 11717cat >>confdefs.h <<_ACEOF 11718#define HAVE_DECL__SNPRINTF $gt_value 11719_ACEOF 11720 11721 11722 11723 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 11724echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 11725if test "${ac_cv_have_decl__snwprintf+set}" = set; then 11726 echo $ECHO_N "(cached) $ECHO_C" >&6 11727else 11728 cat >conftest.$ac_ext <<_ACEOF 11729/* confdefs.h. */ 11730_ACEOF 11731cat confdefs.h >>conftest.$ac_ext 11732cat >>conftest.$ac_ext <<_ACEOF 11733/* end confdefs.h. */ 11734#include <stdio.h> 11735int 11736main () 11737{ 11738 11739#ifndef _snwprintf 11740 char *p = (char *) _snwprintf; 11741#endif 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747rm -f conftest.$ac_objext 11748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11749 (eval $ac_compile) 2>conftest.er1 11750 ac_status=$? 11751 grep -v '^ *+' conftest.er1 >conftest.err 11752 rm -f conftest.er1 11753 cat conftest.err >&5 11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11755 (exit $ac_status); } && 11756 { ac_try='test -z "$ac_c_werror_flag" 11757 || test ! -s conftest.err' 11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11759 (eval $ac_try) 2>&5 11760 ac_status=$? 11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11762 (exit $ac_status); }; } && 11763 { ac_try='test -s conftest.$ac_objext' 11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11765 (eval $ac_try) 2>&5 11766 ac_status=$? 11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11768 (exit $ac_status); }; }; then 11769 ac_cv_have_decl__snwprintf=yes 11770else 11771 echo "$as_me: failed program was:" >&5 11772sed 's/^/| /' conftest.$ac_ext >&5 11773 11774ac_cv_have_decl__snwprintf=no 11775fi 11776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11777fi 11778echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 11779echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 11780 if test $ac_cv_have_decl__snwprintf = yes; then 11781 gt_value=1 11782 else 11783 gt_value=0 11784 fi 11785 11786cat >>confdefs.h <<_ACEOF 11787#define HAVE_DECL__SNWPRINTF $gt_value 11788_ACEOF 11789 11790 11791 11792 11793 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 11794echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 11795if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 11796 echo $ECHO_N "(cached) $ECHO_C" >&6 11797else 11798 cat >conftest.$ac_ext <<_ACEOF 11799/* confdefs.h. */ 11800_ACEOF 11801cat confdefs.h >>conftest.$ac_ext 11802cat >>conftest.$ac_ext <<_ACEOF 11803/* end confdefs.h. */ 11804#include <stdio.h> 11805int 11806main () 11807{ 11808 11809#ifndef feof_unlocked 11810 char *p = (char *) feof_unlocked; 11811#endif 11812 11813 ; 11814 return 0; 11815} 11816_ACEOF 11817rm -f conftest.$ac_objext 11818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11819 (eval $ac_compile) 2>conftest.er1 11820 ac_status=$? 11821 grep -v '^ *+' conftest.er1 >conftest.err 11822 rm -f conftest.er1 11823 cat conftest.err >&5 11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 (exit $ac_status); } && 11826 { ac_try='test -z "$ac_c_werror_flag" 11827 || test ! -s conftest.err' 11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11829 (eval $ac_try) 2>&5 11830 ac_status=$? 11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11832 (exit $ac_status); }; } && 11833 { ac_try='test -s conftest.$ac_objext' 11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11835 (eval $ac_try) 2>&5 11836 ac_status=$? 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 (exit $ac_status); }; }; then 11839 ac_cv_have_decl_feof_unlocked=yes 11840else 11841 echo "$as_me: failed program was:" >&5 11842sed 's/^/| /' conftest.$ac_ext >&5 11843 11844ac_cv_have_decl_feof_unlocked=no 11845fi 11846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11847fi 11848echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 11849echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 11850 if test $ac_cv_have_decl_feof_unlocked = yes; then 11851 gt_value=1 11852 else 11853 gt_value=0 11854 fi 11855 11856cat >>confdefs.h <<_ACEOF 11857#define HAVE_DECL_FEOF_UNLOCKED $gt_value 11858_ACEOF 11859 11860 11861 11862 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 11863echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 11864if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 11865 echo $ECHO_N "(cached) $ECHO_C" >&6 11866else 11867 cat >conftest.$ac_ext <<_ACEOF 11868/* confdefs.h. */ 11869_ACEOF 11870cat confdefs.h >>conftest.$ac_ext 11871cat >>conftest.$ac_ext <<_ACEOF 11872/* end confdefs.h. */ 11873#include <stdio.h> 11874int 11875main () 11876{ 11877 11878#ifndef fgets_unlocked 11879 char *p = (char *) fgets_unlocked; 11880#endif 11881 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886rm -f conftest.$ac_objext 11887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11888 (eval $ac_compile) 2>conftest.er1 11889 ac_status=$? 11890 grep -v '^ *+' conftest.er1 >conftest.err 11891 rm -f conftest.er1 11892 cat conftest.err >&5 11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11894 (exit $ac_status); } && 11895 { ac_try='test -z "$ac_c_werror_flag" 11896 || test ! -s conftest.err' 11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11898 (eval $ac_try) 2>&5 11899 ac_status=$? 11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11901 (exit $ac_status); }; } && 11902 { ac_try='test -s conftest.$ac_objext' 11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11904 (eval $ac_try) 2>&5 11905 ac_status=$? 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); }; }; then 11908 ac_cv_have_decl_fgets_unlocked=yes 11909else 11910 echo "$as_me: failed program was:" >&5 11911sed 's/^/| /' conftest.$ac_ext >&5 11912 11913ac_cv_have_decl_fgets_unlocked=no 11914fi 11915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11916fi 11917echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 11918echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 11919 if test $ac_cv_have_decl_fgets_unlocked = yes; then 11920 gt_value=1 11921 else 11922 gt_value=0 11923 fi 11924 11925cat >>confdefs.h <<_ACEOF 11926#define HAVE_DECL_FGETS_UNLOCKED $gt_value 11927_ACEOF 11928 11929 11930 11931 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 11932echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 11933if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 11934 echo $ECHO_N "(cached) $ECHO_C" >&6 11935else 11936 cat >conftest.$ac_ext <<_ACEOF 11937/* confdefs.h. */ 11938_ACEOF 11939cat confdefs.h >>conftest.$ac_ext 11940cat >>conftest.$ac_ext <<_ACEOF 11941/* end confdefs.h. */ 11942#include <stdio.h> 11943int 11944main () 11945{ 11946 11947#ifndef getc_unlocked 11948 char *p = (char *) getc_unlocked; 11949#endif 11950 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955rm -f conftest.$ac_objext 11956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11957 (eval $ac_compile) 2>conftest.er1 11958 ac_status=$? 11959 grep -v '^ *+' conftest.er1 >conftest.err 11960 rm -f conftest.er1 11961 cat conftest.err >&5 11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11963 (exit $ac_status); } && 11964 { ac_try='test -z "$ac_c_werror_flag" 11965 || test ! -s conftest.err' 11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11967 (eval $ac_try) 2>&5 11968 ac_status=$? 11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11970 (exit $ac_status); }; } && 11971 { ac_try='test -s conftest.$ac_objext' 11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11973 (eval $ac_try) 2>&5 11974 ac_status=$? 11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 (exit $ac_status); }; }; then 11977 ac_cv_have_decl_getc_unlocked=yes 11978else 11979 echo "$as_me: failed program was:" >&5 11980sed 's/^/| /' conftest.$ac_ext >&5 11981 11982ac_cv_have_decl_getc_unlocked=no 11983fi 11984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11985fi 11986echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 11987echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 11988 if test $ac_cv_have_decl_getc_unlocked = yes; then 11989 gt_value=1 11990 else 11991 gt_value=0 11992 fi 11993 11994cat >>confdefs.h <<_ACEOF 11995#define HAVE_DECL_GETC_UNLOCKED $gt_value 11996_ACEOF 11997 11998 11999 12000 case $gt_cv_func_printf_posix in 12001 *yes) HAVE_POSIX_PRINTF=1 ;; 12002 *) HAVE_POSIX_PRINTF=0 ;; 12003 esac 12004 12005 if test "$ac_cv_func_asprintf" = yes; then 12006 HAVE_ASPRINTF=1 12007 else 12008 HAVE_ASPRINTF=0 12009 fi 12010 12011 if test "$ac_cv_func_snprintf" = yes; then 12012 HAVE_SNPRINTF=1 12013 else 12014 HAVE_SNPRINTF=0 12015 fi 12016 12017 if test "$ac_cv_func_wprintf" = yes; then 12018 HAVE_WPRINTF=1 12019 else 12020 HAVE_WPRINTF=0 12021 fi 12022 12023 12024 12025 12026 12027 12028 12029 am_save_CPPFLAGS="$CPPFLAGS" 12030 12031 for element in $INCICONV; do 12032 haveit= 12033 for x in $CPPFLAGS; do 12034 12035 acl_save_prefix="$prefix" 12036 prefix="$acl_final_prefix" 12037 acl_save_exec_prefix="$exec_prefix" 12038 exec_prefix="$acl_final_exec_prefix" 12039 eval x=\"$x\" 12040 exec_prefix="$acl_save_exec_prefix" 12041 prefix="$acl_save_prefix" 12042 12043 if test "X$x" = "X$element"; then 12044 haveit=yes 12045 break 12046 fi 12047 done 12048 if test -z "$haveit"; then 12049 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12050 fi 12051 done 12052 12053 12054 echo "$as_me:$LINENO: checking for iconv" >&5 12055echo $ECHO_N "checking for iconv... $ECHO_C" >&6 12056if test "${am_cv_func_iconv+set}" = set; then 12057 echo $ECHO_N "(cached) $ECHO_C" >&6 12058else 12059 12060 am_cv_func_iconv="no, consider installing GNU libiconv" 12061 am_cv_lib_iconv=no 12062 cat >conftest.$ac_ext <<_ACEOF 12063/* confdefs.h. */ 12064_ACEOF 12065cat confdefs.h >>conftest.$ac_ext 12066cat >>conftest.$ac_ext <<_ACEOF 12067/* end confdefs.h. */ 12068#include <stdlib.h> 12069#include <iconv.h> 12070int 12071main () 12072{ 12073iconv_t cd = iconv_open("",""); 12074 iconv(cd,NULL,NULL,NULL,NULL); 12075 iconv_close(cd); 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080rm -f conftest.$ac_objext conftest$ac_exeext 12081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12082 (eval $ac_link) 2>conftest.er1 12083 ac_status=$? 12084 grep -v '^ *+' conftest.er1 >conftest.err 12085 rm -f conftest.er1 12086 cat conftest.err >&5 12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12088 (exit $ac_status); } && 12089 { ac_try='test -z "$ac_c_werror_flag" 12090 || test ! -s conftest.err' 12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12092 (eval $ac_try) 2>&5 12093 ac_status=$? 12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12095 (exit $ac_status); }; } && 12096 { ac_try='test -s conftest$ac_exeext' 12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12098 (eval $ac_try) 2>&5 12099 ac_status=$? 12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12101 (exit $ac_status); }; }; then 12102 am_cv_func_iconv=yes 12103else 12104 echo "$as_me: failed program was:" >&5 12105sed 's/^/| /' conftest.$ac_ext >&5 12106 12107fi 12108rm -f conftest.err conftest.$ac_objext \ 12109 conftest$ac_exeext conftest.$ac_ext 12110 if test "$am_cv_func_iconv" != yes; then 12111 am_save_LIBS="$LIBS" 12112 LIBS="$LIBS $LIBICONV" 12113 cat >conftest.$ac_ext <<_ACEOF 12114/* confdefs.h. */ 12115_ACEOF 12116cat confdefs.h >>conftest.$ac_ext 12117cat >>conftest.$ac_ext <<_ACEOF 12118/* end confdefs.h. */ 12119#include <stdlib.h> 12120#include <iconv.h> 12121int 12122main () 12123{ 12124iconv_t cd = iconv_open("",""); 12125 iconv(cd,NULL,NULL,NULL,NULL); 12126 iconv_close(cd); 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131rm -f conftest.$ac_objext conftest$ac_exeext 12132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12133 (eval $ac_link) 2>conftest.er1 12134 ac_status=$? 12135 grep -v '^ *+' conftest.er1 >conftest.err 12136 rm -f conftest.er1 12137 cat conftest.err >&5 12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12139 (exit $ac_status); } && 12140 { ac_try='test -z "$ac_c_werror_flag" 12141 || test ! -s conftest.err' 12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12143 (eval $ac_try) 2>&5 12144 ac_status=$? 12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12146 (exit $ac_status); }; } && 12147 { ac_try='test -s conftest$ac_exeext' 12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12149 (eval $ac_try) 2>&5 12150 ac_status=$? 12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12152 (exit $ac_status); }; }; then 12153 am_cv_lib_iconv=yes 12154 am_cv_func_iconv=yes 12155else 12156 echo "$as_me: failed program was:" >&5 12157sed 's/^/| /' conftest.$ac_ext >&5 12158 12159fi 12160rm -f conftest.err conftest.$ac_objext \ 12161 conftest$ac_exeext conftest.$ac_ext 12162 LIBS="$am_save_LIBS" 12163 fi 12164 12165fi 12166echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 12167echo "${ECHO_T}$am_cv_func_iconv" >&6 12168 if test "$am_cv_func_iconv" = yes; then 12169 12170cat >>confdefs.h <<\_ACEOF 12171#define HAVE_ICONV 1 12172_ACEOF 12173 12174 fi 12175 if test "$am_cv_lib_iconv" = yes; then 12176 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 12177echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 12178 echo "$as_me:$LINENO: result: $LIBICONV" >&5 12179echo "${ECHO_T}$LIBICONV" >&6 12180 else 12181 CPPFLAGS="$am_save_CPPFLAGS" 12182 LIBICONV= 12183 LTLIBICONV= 12184 fi 12185 12186 12187 12188 if test "$am_cv_func_iconv" = yes; then 12189 echo "$as_me:$LINENO: checking for iconv declaration" >&5 12190echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 12191 if test "${am_cv_proto_iconv+set}" = set; then 12192 echo $ECHO_N "(cached) $ECHO_C" >&6 12193else 12194 12195 cat >conftest.$ac_ext <<_ACEOF 12196/* confdefs.h. */ 12197_ACEOF 12198cat confdefs.h >>conftest.$ac_ext 12199cat >>conftest.$ac_ext <<_ACEOF 12200/* end confdefs.h. */ 12201 12202#include <stdlib.h> 12203#include <iconv.h> 12204extern 12205#ifdef __cplusplus 12206"C" 12207#endif 12208#if defined(__STDC__) || defined(__cplusplus) 12209size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12210#else 12211size_t iconv(); 12212#endif 12213 12214int 12215main () 12216{ 12217 12218 ; 12219 return 0; 12220} 12221_ACEOF 12222rm -f conftest.$ac_objext 12223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12224 (eval $ac_compile) 2>conftest.er1 12225 ac_status=$? 12226 grep -v '^ *+' conftest.er1 >conftest.err 12227 rm -f conftest.er1 12228 cat conftest.err >&5 12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12230 (exit $ac_status); } && 12231 { ac_try='test -z "$ac_c_werror_flag" 12232 || test ! -s conftest.err' 12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12234 (eval $ac_try) 2>&5 12235 ac_status=$? 12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 (exit $ac_status); }; } && 12238 { ac_try='test -s conftest.$ac_objext' 12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12240 (eval $ac_try) 2>&5 12241 ac_status=$? 12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12243 (exit $ac_status); }; }; then 12244 am_cv_proto_iconv_arg1="" 12245else 12246 echo "$as_me: failed program was:" >&5 12247sed 's/^/| /' conftest.$ac_ext >&5 12248 12249am_cv_proto_iconv_arg1="const" 12250fi 12251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12252 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);" 12253fi 12254 12255 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12256 echo "$as_me:$LINENO: result: ${ac_t:- 12257 }$am_cv_proto_iconv" >&5 12258echo "${ECHO_T}${ac_t:- 12259 }$am_cv_proto_iconv" >&6 12260 12261cat >>confdefs.h <<_ACEOF 12262#define ICONV_CONST $am_cv_proto_iconv_arg1 12263_ACEOF 12264 12265 fi 12266 12267 12268 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 12269echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 12270if test "${am_cv_langinfo_codeset+set}" = set; then 12271 echo $ECHO_N "(cached) $ECHO_C" >&6 12272else 12273 cat >conftest.$ac_ext <<_ACEOF 12274/* confdefs.h. */ 12275_ACEOF 12276cat confdefs.h >>conftest.$ac_ext 12277cat >>conftest.$ac_ext <<_ACEOF 12278/* end confdefs.h. */ 12279#include <langinfo.h> 12280int 12281main () 12282{ 12283char* cs = nl_langinfo(CODESET); 12284 ; 12285 return 0; 12286} 12287_ACEOF 12288rm -f conftest.$ac_objext conftest$ac_exeext 12289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12290 (eval $ac_link) 2>conftest.er1 12291 ac_status=$? 12292 grep -v '^ *+' conftest.er1 >conftest.err 12293 rm -f conftest.er1 12294 cat conftest.err >&5 12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12296 (exit $ac_status); } && 12297 { ac_try='test -z "$ac_c_werror_flag" 12298 || test ! -s conftest.err' 12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12300 (eval $ac_try) 2>&5 12301 ac_status=$? 12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12303 (exit $ac_status); }; } && 12304 { ac_try='test -s conftest$ac_exeext' 12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12306 (eval $ac_try) 2>&5 12307 ac_status=$? 12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12309 (exit $ac_status); }; }; then 12310 am_cv_langinfo_codeset=yes 12311else 12312 echo "$as_me: failed program was:" >&5 12313sed 's/^/| /' conftest.$ac_ext >&5 12314 12315am_cv_langinfo_codeset=no 12316fi 12317rm -f conftest.err conftest.$ac_objext \ 12318 conftest$ac_exeext conftest.$ac_ext 12319 12320fi 12321echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 12322echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 12323 if test $am_cv_langinfo_codeset = yes; then 12324 12325cat >>confdefs.h <<\_ACEOF 12326#define HAVE_LANGINFO_CODESET 1 12327_ACEOF 12328 12329 fi 12330 12331 if test $ac_cv_header_locale_h = yes; then 12332 12333 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 12334echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 12335if test "${am_cv_val_LC_MESSAGES+set}" = set; then 12336 echo $ECHO_N "(cached) $ECHO_C" >&6 12337else 12338 cat >conftest.$ac_ext <<_ACEOF 12339/* confdefs.h. */ 12340_ACEOF 12341cat confdefs.h >>conftest.$ac_ext 12342cat >>conftest.$ac_ext <<_ACEOF 12343/* end confdefs.h. */ 12344#include <locale.h> 12345int 12346main () 12347{ 12348return LC_MESSAGES 12349 ; 12350 return 0; 12351} 12352_ACEOF 12353rm -f conftest.$ac_objext conftest$ac_exeext 12354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12355 (eval $ac_link) 2>conftest.er1 12356 ac_status=$? 12357 grep -v '^ *+' conftest.er1 >conftest.err 12358 rm -f conftest.er1 12359 cat conftest.err >&5 12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 (exit $ac_status); } && 12362 { ac_try='test -z "$ac_c_werror_flag" 12363 || test ! -s conftest.err' 12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12365 (eval $ac_try) 2>&5 12366 ac_status=$? 12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12368 (exit $ac_status); }; } && 12369 { ac_try='test -s conftest$ac_exeext' 12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12371 (eval $ac_try) 2>&5 12372 ac_status=$? 12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12374 (exit $ac_status); }; }; then 12375 am_cv_val_LC_MESSAGES=yes 12376else 12377 echo "$as_me: failed program was:" >&5 12378sed 's/^/| /' conftest.$ac_ext >&5 12379 12380am_cv_val_LC_MESSAGES=no 12381fi 12382rm -f conftest.err conftest.$ac_objext \ 12383 conftest$ac_exeext conftest.$ac_ext 12384fi 12385echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 12386echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 12387 if test $am_cv_val_LC_MESSAGES = yes; then 12388 12389cat >>confdefs.h <<\_ACEOF 12390#define HAVE_LC_MESSAGES 1 12391_ACEOF 12392 12393 fi 12394 12395 fi 12396 12397 for ac_prog in bison 12398do 12399 # Extract the first word of "$ac_prog", so it can be a program name with args. 12400set dummy $ac_prog; ac_word=$2 12401echo "$as_me:$LINENO: checking for $ac_word" >&5 12402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12403if test "${ac_cv_prog_INTLBISON+set}" = set; then 12404 echo $ECHO_N "(cached) $ECHO_C" >&6 12405else 12406 if test -n "$INTLBISON"; then 12407 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 12408else 12409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12410for as_dir in $PATH 12411do 12412 IFS=$as_save_IFS 12413 test -z "$as_dir" && as_dir=. 12414 for ac_exec_ext in '' $ac_executable_extensions; do 12415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12416 ac_cv_prog_INTLBISON="$ac_prog" 12417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12418 break 2 12419 fi 12420done 12421done 12422 12423fi 12424fi 12425INTLBISON=$ac_cv_prog_INTLBISON 12426if test -n "$INTLBISON"; then 12427 echo "$as_me:$LINENO: result: $INTLBISON" >&5 12428echo "${ECHO_T}$INTLBISON" >&6 12429else 12430 echo "$as_me:$LINENO: result: no" >&5 12431echo "${ECHO_T}no" >&6 12432fi 12433 12434 test -n "$INTLBISON" && break 12435done 12436 12437 if test -z "$INTLBISON"; then 12438 ac_verc_fail=yes 12439 else 12440 echo "$as_me:$LINENO: checking version of bison" >&5 12441echo $ECHO_N "checking version of bison... $ECHO_C" >&6 12442 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 12443 case $ac_prog_version in 12444 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 12445 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 12446 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 12447 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 12448 esac 12449 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 12450echo "${ECHO_T}$ac_prog_version" >&6 12451 fi 12452 if test $ac_verc_fail = yes; then 12453 INTLBISON=: 12454 fi 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12472echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12473 # Check whether --enable-nls or --disable-nls was given. 12474if test "${enable_nls+set}" = set; then 12475 enableval="$enable_nls" 12476 USE_NLS=$enableval 12477else 12478 USE_NLS=yes 12479fi; 12480 echo "$as_me:$LINENO: result: $USE_NLS" >&5 12481echo "${ECHO_T}$USE_NLS" >&6 12482 12483 12484 12485 12486 BUILD_INCLUDED_LIBINTL=no 12487 USE_INCLUDED_LIBINTL=no 12488 12489 LIBINTL= 12490 LTLIBINTL= 12491 POSUB= 12492 12493 if test "$USE_NLS" = "yes"; then 12494 gt_use_preinstalled_gnugettext=no 12495 12496 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 12497echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 12498 12499# Check whether --with-included-gettext or --without-included-gettext was given. 12500if test "${with_included_gettext+set}" = set; then 12501 withval="$with_included_gettext" 12502 nls_cv_force_use_gnu_gettext=$withval 12503else 12504 nls_cv_force_use_gnu_gettext=no 12505fi; 12506 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 12507echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 12508 12509 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 12510 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 12511 12512 12513 12514 12515 12516 12517 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 12518echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 12519if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 12520 echo $ECHO_N "(cached) $ECHO_C" >&6 12521else 12522 cat >conftest.$ac_ext <<_ACEOF 12523/* confdefs.h. */ 12524_ACEOF 12525cat confdefs.h >>conftest.$ac_ext 12526cat >>conftest.$ac_ext <<_ACEOF 12527/* end confdefs.h. */ 12528#include <libintl.h> 12529extern int _nl_msg_cat_cntr; 12530extern int *_nl_domain_bindings; 12531int 12532main () 12533{ 12534bindtextdomain ("", ""); 12535return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 12536 ; 12537 return 0; 12538} 12539_ACEOF 12540rm -f conftest.$ac_objext conftest$ac_exeext 12541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12542 (eval $ac_link) 2>conftest.er1 12543 ac_status=$? 12544 grep -v '^ *+' conftest.er1 >conftest.err 12545 rm -f conftest.er1 12546 cat conftest.err >&5 12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12548 (exit $ac_status); } && 12549 { ac_try='test -z "$ac_c_werror_flag" 12550 || test ! -s conftest.err' 12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12552 (eval $ac_try) 2>&5 12553 ac_status=$? 12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12555 (exit $ac_status); }; } && 12556 { ac_try='test -s conftest$ac_exeext' 12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12558 (eval $ac_try) 2>&5 12559 ac_status=$? 12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12561 (exit $ac_status); }; }; then 12562 gt_cv_func_gnugettext1_libc=yes 12563else 12564 echo "$as_me: failed program was:" >&5 12565sed 's/^/| /' conftest.$ac_ext >&5 12566 12567gt_cv_func_gnugettext1_libc=no 12568fi 12569rm -f conftest.err conftest.$ac_objext \ 12570 conftest$ac_exeext conftest.$ac_ext 12571fi 12572echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 12573echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 12574 12575 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 12576 12577 12578 12579 use_additional=yes 12580 12581 acl_save_prefix="$prefix" 12582 prefix="$acl_final_prefix" 12583 acl_save_exec_prefix="$exec_prefix" 12584 exec_prefix="$acl_final_exec_prefix" 12585 12586 eval additional_includedir=\"$includedir\" 12587 eval additional_libdir=\"$libdir\" 12588 12589 exec_prefix="$acl_save_exec_prefix" 12590 prefix="$acl_save_prefix" 12591 12592 12593# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 12594if test "${with_libintl_prefix+set}" = set; then 12595 withval="$with_libintl_prefix" 12596 12597 if test "X$withval" = "Xno"; then 12598 use_additional=no 12599 else 12600 if test "X$withval" = "X"; then 12601 12602 acl_save_prefix="$prefix" 12603 prefix="$acl_final_prefix" 12604 acl_save_exec_prefix="$exec_prefix" 12605 exec_prefix="$acl_final_exec_prefix" 12606 12607 eval additional_includedir=\"$includedir\" 12608 eval additional_libdir=\"$libdir\" 12609 12610 exec_prefix="$acl_save_exec_prefix" 12611 prefix="$acl_save_prefix" 12612 12613 else 12614 additional_includedir="$withval/include" 12615 additional_libdir="$withval/lib" 12616 fi 12617 fi 12618 12619fi; 12620 LIBINTL= 12621 LTLIBINTL= 12622 INCINTL= 12623 rpathdirs= 12624 ltrpathdirs= 12625 names_already_handled= 12626 names_next_round='intl ' 12627 while test -n "$names_next_round"; do 12628 names_this_round="$names_next_round" 12629 names_next_round= 12630 for name in $names_this_round; do 12631 already_handled= 12632 for n in $names_already_handled; do 12633 if test "$n" = "$name"; then 12634 already_handled=yes 12635 break 12636 fi 12637 done 12638 if test -z "$already_handled"; then 12639 names_already_handled="$names_already_handled $name" 12640 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12641 eval value=\"\$HAVE_LIB$uppername\" 12642 if test -n "$value"; then 12643 if test "$value" = yes; then 12644 eval value=\"\$LIB$uppername\" 12645 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12646 eval value=\"\$LTLIB$uppername\" 12647 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12648 else 12649 : 12650 fi 12651 else 12652 found_dir= 12653 found_la= 12654 found_so= 12655 found_a= 12656 if test $use_additional = yes; then 12657 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 12658 found_dir="$additional_libdir" 12659 found_so="$additional_libdir/lib$name.$shlibext" 12660 if test -f "$additional_libdir/lib$name.la"; then 12661 found_la="$additional_libdir/lib$name.la" 12662 fi 12663 else 12664 if test -f "$additional_libdir/lib$name.$libext"; then 12665 found_dir="$additional_libdir" 12666 found_a="$additional_libdir/lib$name.$libext" 12667 if test -f "$additional_libdir/lib$name.la"; then 12668 found_la="$additional_libdir/lib$name.la" 12669 fi 12670 fi 12671 fi 12672 fi 12673 if test "X$found_dir" = "X"; then 12674 for x in $LDFLAGS $LTLIBINTL; do 12675 12676 acl_save_prefix="$prefix" 12677 prefix="$acl_final_prefix" 12678 acl_save_exec_prefix="$exec_prefix" 12679 exec_prefix="$acl_final_exec_prefix" 12680 eval x=\"$x\" 12681 exec_prefix="$acl_save_exec_prefix" 12682 prefix="$acl_save_prefix" 12683 12684 case "$x" in 12685 -L*) 12686 dir=`echo "X$x" | sed -e 's/^X-L//'` 12687 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 12688 found_dir="$dir" 12689 found_so="$dir/lib$name.$shlibext" 12690 if test -f "$dir/lib$name.la"; then 12691 found_la="$dir/lib$name.la" 12692 fi 12693 else 12694 if test -f "$dir/lib$name.$libext"; then 12695 found_dir="$dir" 12696 found_a="$dir/lib$name.$libext" 12697 if test -f "$dir/lib$name.la"; then 12698 found_la="$dir/lib$name.la" 12699 fi 12700 fi 12701 fi 12702 ;; 12703 esac 12704 if test "X$found_dir" != "X"; then 12705 break 12706 fi 12707 done 12708 fi 12709 if test "X$found_dir" != "X"; then 12710 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12711 if test "X$found_so" != "X"; then 12712 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12713 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12714 else 12715 haveit= 12716 for x in $ltrpathdirs; do 12717 if test "X$x" = "X$found_dir"; then 12718 haveit=yes 12719 break 12720 fi 12721 done 12722 if test -z "$haveit"; then 12723 ltrpathdirs="$ltrpathdirs $found_dir" 12724 fi 12725 if test "$hardcode_direct" = yes; then 12726 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12727 else 12728 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12729 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12730 haveit= 12731 for x in $rpathdirs; do 12732 if test "X$x" = "X$found_dir"; then 12733 haveit=yes 12734 break 12735 fi 12736 done 12737 if test -z "$haveit"; then 12738 rpathdirs="$rpathdirs $found_dir" 12739 fi 12740 else 12741 haveit= 12742 for x in $LDFLAGS $LIBINTL; do 12743 12744 acl_save_prefix="$prefix" 12745 prefix="$acl_final_prefix" 12746 acl_save_exec_prefix="$exec_prefix" 12747 exec_prefix="$acl_final_exec_prefix" 12748 eval x=\"$x\" 12749 exec_prefix="$acl_save_exec_prefix" 12750 prefix="$acl_save_prefix" 12751 12752 if test "X$x" = "X-L$found_dir"; then 12753 haveit=yes 12754 break 12755 fi 12756 done 12757 if test -z "$haveit"; then 12758 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12759 fi 12760 if test "$hardcode_minus_L" != no; then 12761 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12762 else 12763 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12764 fi 12765 fi 12766 fi 12767 fi 12768 else 12769 if test "X$found_a" != "X"; then 12770 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12771 else 12772 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12773 fi 12774 fi 12775 additional_includedir= 12776 case "$found_dir" in 12777 */lib | */lib/) 12778 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12779 additional_includedir="$basedir/include" 12780 ;; 12781 esac 12782 if test "X$additional_includedir" != "X"; then 12783 if test "X$additional_includedir" != "X/usr/include"; then 12784 haveit= 12785 if test "X$additional_includedir" = "X/usr/local/include"; then 12786 if test -n "$GCC"; then 12787 case $host_os in 12788 linux*) haveit=yes;; 12789 esac 12790 fi 12791 fi 12792 if test -z "$haveit"; then 12793 for x in $CPPFLAGS $INCINTL; do 12794 12795 acl_save_prefix="$prefix" 12796 prefix="$acl_final_prefix" 12797 acl_save_exec_prefix="$exec_prefix" 12798 exec_prefix="$acl_final_exec_prefix" 12799 eval x=\"$x\" 12800 exec_prefix="$acl_save_exec_prefix" 12801 prefix="$acl_save_prefix" 12802 12803 if test "X$x" = "X-I$additional_includedir"; then 12804 haveit=yes 12805 break 12806 fi 12807 done 12808 if test -z "$haveit"; then 12809 if test -d "$additional_includedir"; then 12810 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12811 fi 12812 fi 12813 fi 12814 fi 12815 fi 12816 if test -n "$found_la"; then 12817 save_libdir="$libdir" 12818 case "$found_la" in 12819 */* | *\\*) . "$found_la" ;; 12820 *) . "./$found_la" ;; 12821 esac 12822 libdir="$save_libdir" 12823 for dep in $dependency_libs; do 12824 case "$dep" in 12825 -L*) 12826 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12827 if test "X$additional_libdir" != "X/usr/lib"; then 12828 haveit= 12829 if test "X$additional_libdir" = "X/usr/local/lib"; then 12830 if test -n "$GCC"; then 12831 case $host_os in 12832 linux*) haveit=yes;; 12833 esac 12834 fi 12835 fi 12836 if test -z "$haveit"; then 12837 haveit= 12838 for x in $LDFLAGS $LIBINTL; do 12839 12840 acl_save_prefix="$prefix" 12841 prefix="$acl_final_prefix" 12842 acl_save_exec_prefix="$exec_prefix" 12843 exec_prefix="$acl_final_exec_prefix" 12844 eval x=\"$x\" 12845 exec_prefix="$acl_save_exec_prefix" 12846 prefix="$acl_save_prefix" 12847 12848 if test "X$x" = "X-L$additional_libdir"; then 12849 haveit=yes 12850 break 12851 fi 12852 done 12853 if test -z "$haveit"; then 12854 if test -d "$additional_libdir"; then 12855 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12856 fi 12857 fi 12858 haveit= 12859 for x in $LDFLAGS $LTLIBINTL; do 12860 12861 acl_save_prefix="$prefix" 12862 prefix="$acl_final_prefix" 12863 acl_save_exec_prefix="$exec_prefix" 12864 exec_prefix="$acl_final_exec_prefix" 12865 eval x=\"$x\" 12866 exec_prefix="$acl_save_exec_prefix" 12867 prefix="$acl_save_prefix" 12868 12869 if test "X$x" = "X-L$additional_libdir"; then 12870 haveit=yes 12871 break 12872 fi 12873 done 12874 if test -z "$haveit"; then 12875 if test -d "$additional_libdir"; then 12876 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 12877 fi 12878 fi 12879 fi 12880 fi 12881 ;; 12882 -R*) 12883 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12884 if test "$enable_rpath" != no; then 12885 haveit= 12886 for x in $rpathdirs; do 12887 if test "X$x" = "X$dir"; then 12888 haveit=yes 12889 break 12890 fi 12891 done 12892 if test -z "$haveit"; then 12893 rpathdirs="$rpathdirs $dir" 12894 fi 12895 haveit= 12896 for x in $ltrpathdirs; do 12897 if test "X$x" = "X$dir"; then 12898 haveit=yes 12899 break 12900 fi 12901 done 12902 if test -z "$haveit"; then 12903 ltrpathdirs="$ltrpathdirs $dir" 12904 fi 12905 fi 12906 ;; 12907 -l*) 12908 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12909 ;; 12910 *.la) 12911 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12912 ;; 12913 *) 12914 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 12915 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 12916 ;; 12917 esac 12918 done 12919 fi 12920 else 12921 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12922 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 12923 fi 12924 fi 12925 fi 12926 done 12927 done 12928 if test "X$rpathdirs" != "X"; then 12929 if test -n "$hardcode_libdir_separator"; then 12930 alldirs= 12931 for found_dir in $rpathdirs; do 12932 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12933 done 12934 acl_save_libdir="$libdir" 12935 libdir="$alldirs" 12936 eval flag=\"$hardcode_libdir_flag_spec\" 12937 libdir="$acl_save_libdir" 12938 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12939 else 12940 for found_dir in $rpathdirs; do 12941 acl_save_libdir="$libdir" 12942 libdir="$found_dir" 12943 eval flag=\"$hardcode_libdir_flag_spec\" 12944 libdir="$acl_save_libdir" 12945 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12946 done 12947 fi 12948 fi 12949 if test "X$ltrpathdirs" != "X"; then 12950 for found_dir in $ltrpathdirs; do 12951 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 12952 done 12953 fi 12954 12955 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 12956echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 12957if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 12958 echo $ECHO_N "(cached) $ECHO_C" >&6 12959else 12960 gt_save_CPPFLAGS="$CPPFLAGS" 12961 CPPFLAGS="$CPPFLAGS $INCINTL" 12962 gt_save_LIBS="$LIBS" 12963 LIBS="$LIBS $LIBINTL" 12964 cat >conftest.$ac_ext <<_ACEOF 12965/* confdefs.h. */ 12966_ACEOF 12967cat confdefs.h >>conftest.$ac_ext 12968cat >>conftest.$ac_ext <<_ACEOF 12969/* end confdefs.h. */ 12970#include <libintl.h> 12971extern int _nl_msg_cat_cntr; 12972extern 12973#ifdef __cplusplus 12974"C" 12975#endif 12976const char *_nl_expand_alias (); 12977int 12978main () 12979{ 12980bindtextdomain ("", ""); 12981return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 12982 ; 12983 return 0; 12984} 12985_ACEOF 12986rm -f conftest.$ac_objext conftest$ac_exeext 12987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12988 (eval $ac_link) 2>conftest.er1 12989 ac_status=$? 12990 grep -v '^ *+' conftest.er1 >conftest.err 12991 rm -f conftest.er1 12992 cat conftest.err >&5 12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12994 (exit $ac_status); } && 12995 { ac_try='test -z "$ac_c_werror_flag" 12996 || test ! -s conftest.err' 12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12998 (eval $ac_try) 2>&5 12999 ac_status=$? 13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13001 (exit $ac_status); }; } && 13002 { ac_try='test -s conftest$ac_exeext' 13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13004 (eval $ac_try) 2>&5 13005 ac_status=$? 13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13007 (exit $ac_status); }; }; then 13008 gt_cv_func_gnugettext1_libintl=yes 13009else 13010 echo "$as_me: failed program was:" >&5 13011sed 's/^/| /' conftest.$ac_ext >&5 13012 13013gt_cv_func_gnugettext1_libintl=no 13014fi 13015rm -f conftest.err conftest.$ac_objext \ 13016 conftest$ac_exeext conftest.$ac_ext 13017 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 13018 LIBS="$LIBS $LIBICONV" 13019 cat >conftest.$ac_ext <<_ACEOF 13020/* confdefs.h. */ 13021_ACEOF 13022cat confdefs.h >>conftest.$ac_ext 13023cat >>conftest.$ac_ext <<_ACEOF 13024/* end confdefs.h. */ 13025#include <libintl.h> 13026extern int _nl_msg_cat_cntr; 13027extern 13028#ifdef __cplusplus 13029"C" 13030#endif 13031const char *_nl_expand_alias (); 13032int 13033main () 13034{ 13035bindtextdomain ("", ""); 13036return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 13037 ; 13038 return 0; 13039} 13040_ACEOF 13041rm -f conftest.$ac_objext conftest$ac_exeext 13042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13043 (eval $ac_link) 2>conftest.er1 13044 ac_status=$? 13045 grep -v '^ *+' conftest.er1 >conftest.err 13046 rm -f conftest.er1 13047 cat conftest.err >&5 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); } && 13050 { ac_try='test -z "$ac_c_werror_flag" 13051 || test ! -s conftest.err' 13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13053 (eval $ac_try) 2>&5 13054 ac_status=$? 13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13056 (exit $ac_status); }; } && 13057 { ac_try='test -s conftest$ac_exeext' 13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13059 (eval $ac_try) 2>&5 13060 ac_status=$? 13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 (exit $ac_status); }; }; then 13063 LIBINTL="$LIBINTL $LIBICONV" 13064 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13065 gt_cv_func_gnugettext1_libintl=yes 13066 13067else 13068 echo "$as_me: failed program was:" >&5 13069sed 's/^/| /' conftest.$ac_ext >&5 13070 13071fi 13072rm -f conftest.err conftest.$ac_objext \ 13073 conftest$ac_exeext conftest.$ac_ext 13074 fi 13075 CPPFLAGS="$gt_save_CPPFLAGS" 13076 LIBS="$gt_save_LIBS" 13077fi 13078echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 13079echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 13080 fi 13081 13082 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 13083 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 13084 && test "$PACKAGE" != gettext-runtime \ 13085 && test "$PACKAGE" != gettext-tools; }; then 13086 gt_use_preinstalled_gnugettext=yes 13087 else 13088 LIBINTL= 13089 LTLIBINTL= 13090 INCINTL= 13091 fi 13092 13093 13094 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 13095 nls_cv_use_gnu_gettext=yes 13096 fi 13097 fi 13098 13099 if test "$nls_cv_use_gnu_gettext" = "yes"; then 13100 BUILD_INCLUDED_LIBINTL=yes 13101 USE_INCLUDED_LIBINTL=yes 13102 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 13103 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 13104 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 13105 fi 13106 13107 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13108 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13109 CATOBJEXT=.gmo 13110 fi 13111 13112 13113 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13114 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13115 13116cat >>confdefs.h <<\_ACEOF 13117#define ENABLE_NLS 1 13118_ACEOF 13119 13120 else 13121 USE_NLS=no 13122 fi 13123 fi 13124 13125 echo "$as_me:$LINENO: checking whether to use NLS" >&5 13126echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 13127 echo "$as_me:$LINENO: result: $USE_NLS" >&5 13128echo "${ECHO_T}$USE_NLS" >&6 13129 if test "$USE_NLS" = "yes"; then 13130 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 13131echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 13132 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13133 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13134 gt_source="external libintl" 13135 else 13136 gt_source="libc" 13137 fi 13138 else 13139 gt_source="included intl directory" 13140 fi 13141 echo "$as_me:$LINENO: result: $gt_source" >&5 13142echo "${ECHO_T}$gt_source" >&6 13143 fi 13144 13145 if test "$USE_NLS" = "yes"; then 13146 13147 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13148 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13149 echo "$as_me:$LINENO: checking how to link with libintl" >&5 13150echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 13151 echo "$as_me:$LINENO: result: $LIBINTL" >&5 13152echo "${ECHO_T}$LIBINTL" >&6 13153 13154 for element in $INCINTL; do 13155 haveit= 13156 for x in $CPPFLAGS; do 13157 13158 acl_save_prefix="$prefix" 13159 prefix="$acl_final_prefix" 13160 acl_save_exec_prefix="$exec_prefix" 13161 exec_prefix="$acl_final_exec_prefix" 13162 eval x=\"$x\" 13163 exec_prefix="$acl_save_exec_prefix" 13164 prefix="$acl_save_prefix" 13165 13166 if test "X$x" = "X$element"; then 13167 haveit=yes 13168 break 13169 fi 13170 done 13171 if test -z "$haveit"; then 13172 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13173 fi 13174 done 13175 13176 fi 13177 13178 13179cat >>confdefs.h <<\_ACEOF 13180#define HAVE_GETTEXT 1 13181_ACEOF 13182 13183 13184cat >>confdefs.h <<\_ACEOF 13185#define HAVE_DCGETTEXT 1 13186_ACEOF 13187 13188 fi 13189 13190 POSUB=po 13191 fi 13192 13193 13194 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 13195 BUILD_INCLUDED_LIBINTL=yes 13196 fi 13197 13198 13199 13200 13201 13202 nls_cv_header_intl= 13203 nls_cv_header_libgt= 13204 13205 DATADIRNAME=share 13206 13207 13208 INSTOBJEXT=.mo 13209 13210 13211 GENCAT=gencat 13212 13213 13214 if test "$USE_INCLUDED_LIBINTL" = yes; then 13215 INTLOBJS="\$(GETTOBJS)" 13216 fi 13217 13218 13219 INTL_LIBTOOL_SUFFIX_PREFIX= 13220 13221 13222 13223 INTLLIBS="$LIBINTL" 13224 13225 13226 13227 13228 13229 13230 13231 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" 13232 13233cat >confcache <<\_ACEOF 13234# This file is a shell script that caches the results of configure 13235# tests run on this system so they can be shared between configure 13236# scripts and configure runs, see configure's option --config-cache. 13237# It is not useful on other systems. If it contains results you don't 13238# want to keep, you may remove or edit it. 13239# 13240# config.status only pays attention to the cache file if you give it 13241# the --recheck option to rerun configure. 13242# 13243# `ac_cv_env_foo' variables (set or unset) will be overridden when 13244# loading this file, other *unset* `ac_cv_foo' will be assigned the 13245# following values. 13246 13247_ACEOF 13248 13249# The following way of writing the cache mishandles newlines in values, 13250# but we know of no workaround that is simple, portable, and efficient. 13251# So, don't put newlines in cache variables' values. 13252# Ultrix sh set writes to stderr and can't be redirected directly, 13253# and sets the high bit in the cache file unless we assign to the vars. 13254{ 13255 (set) 2>&1 | 13256 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13257 *ac_space=\ *) 13258 # `set' does not quote correctly, so add quotes (double-quote 13259 # substitution turns \\\\ into \\, and sed turns \\ into \). 13260 sed -n \ 13261 "s/'/'\\\\''/g; 13262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13263 ;; 13264 *) 13265 # `set' quotes correctly as required by POSIX, so do not add quotes. 13266 sed -n \ 13267 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13268 ;; 13269 esac; 13270} | 13271 sed ' 13272 t clear 13273 : clear 13274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13275 t end 13276 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13277 : end' >>confcache 13278if diff $cache_file confcache >/dev/null 2>&1; then :; else 13279 if test -w $cache_file; then 13280 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13281 cat confcache >$cache_file 13282 else 13283 echo "not updating unwritable cache $cache_file" 13284 fi 13285fi 13286rm -f confcache 13287 13288test "x$prefix" = xNONE && prefix=$ac_default_prefix 13289# Let make expand exec_prefix. 13290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13291 13292# VPATH may cause trouble with some makes, so we remove $(srcdir), 13293# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13294# trailing colons and then remove the whole line if VPATH becomes empty 13295# (actually we leave an empty line to preserve line numbers). 13296if test "x$srcdir" = x.; then 13297 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13298s/:*\$(srcdir):*/:/; 13299s/:*\${srcdir}:*/:/; 13300s/:*@srcdir@:*/:/; 13301s/^\([^=]*=[ ]*\):*/\1/; 13302s/:*$//; 13303s/^[^=]*=[ ]*$//; 13304}' 13305fi 13306 13307DEFS=-DHAVE_CONFIG_H 13308 13309ac_libobjs= 13310ac_ltlibobjs= 13311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13312 # 1. Remove the extension, and $U if already installed. 13313 ac_i=`echo "$ac_i" | 13314 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13315 # 2. Add them. 13316 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13317 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13318done 13319LIBOBJS=$ac_libobjs 13320 13321LTLIBOBJS=$ac_ltlibobjs 13322 13323 13324if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13325 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13326Usually this means the macro was only invoked conditionally." >&5 13327echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13328Usually this means the macro was only invoked conditionally." >&2;} 13329 { (exit 1); exit 1; }; } 13330fi 13331if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13332 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13333Usually this means the macro was only invoked conditionally." >&5 13334echo "$as_me: error: conditional \"AMDEP\" was never defined. 13335Usually this means the macro was only invoked conditionally." >&2;} 13336 { (exit 1); exit 1; }; } 13337fi 13338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13339 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13340Usually this means the macro was only invoked conditionally." >&5 13341echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13342Usually this means the macro was only invoked conditionally." >&2;} 13343 { (exit 1); exit 1; }; } 13344fi 13345if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then 13346 { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined. 13347Usually this means the macro was only invoked conditionally." >&5 13348echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined. 13349Usually this means the macro was only invoked conditionally." >&2;} 13350 { (exit 1); exit 1; }; } 13351fi 13352if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then 13353 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined. 13354Usually this means the macro was only invoked conditionally." >&5 13355echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined. 13356Usually this means the macro was only invoked conditionally." >&2;} 13357 { (exit 1); exit 1; }; } 13358fi 13359 13360: ${CONFIG_STATUS=./config.status} 13361ac_clean_files_save=$ac_clean_files 13362ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13363{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13364echo "$as_me: creating $CONFIG_STATUS" >&6;} 13365cat >$CONFIG_STATUS <<_ACEOF 13366#! $SHELL 13367# Generated by $as_me. 13368# Run this file to recreate the current configuration. 13369# Compiler output produced by configure, useful for debugging 13370# configure, is in config.log if it exists. 13371 13372debug=false 13373ac_cs_recheck=false 13374ac_cs_silent=false 13375SHELL=\${CONFIG_SHELL-$SHELL} 13376_ACEOF 13377 13378cat >>$CONFIG_STATUS <<\_ACEOF 13379## --------------------- ## 13380## M4sh Initialization. ## 13381## --------------------- ## 13382 13383# Be Bourne compatible 13384if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13385 emulate sh 13386 NULLCMD=: 13387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13388 # is contrary to our usage. Disable this feature. 13389 alias -g '${1+"$@"}'='"$@"' 13390elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13391 set -o posix 13392fi 13393DUALCASE=1; export DUALCASE # for MKS sh 13394 13395# Support unset when possible. 13396if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13397 as_unset=unset 13398else 13399 as_unset=false 13400fi 13401 13402 13403# Work around bugs in pre-3.0 UWIN ksh. 13404$as_unset ENV MAIL MAILPATH 13405PS1='$ ' 13406PS2='> ' 13407PS4='+ ' 13408 13409# NLS nuisances. 13410for as_var in \ 13411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13413 LC_TELEPHONE LC_TIME 13414do 13415 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13416 eval $as_var=C; export $as_var 13417 else 13418 $as_unset $as_var 13419 fi 13420done 13421 13422# Required to use basename. 13423if expr a : '\(a\)' >/dev/null 2>&1; then 13424 as_expr=expr 13425else 13426 as_expr=false 13427fi 13428 13429if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13430 as_basename=basename 13431else 13432 as_basename=false 13433fi 13434 13435 13436# Name of the executable. 13437as_me=`$as_basename "$0" || 13438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13439 X"$0" : 'X\(//\)$' \| \ 13440 X"$0" : 'X\(/\)$' \| \ 13441 . : '\(.\)' 2>/dev/null || 13442echo X/"$0" | 13443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13444 /^X\/\(\/\/\)$/{ s//\1/; q; } 13445 /^X\/\(\/\).*/{ s//\1/; q; } 13446 s/.*/./; q'` 13447 13448 13449# PATH needs CR, and LINENO needs CR and PATH. 13450# Avoid depending upon Character Ranges. 13451as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13452as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13453as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13454as_cr_digits='0123456789' 13455as_cr_alnum=$as_cr_Letters$as_cr_digits 13456 13457# The user is always right. 13458if test "${PATH_SEPARATOR+set}" != set; then 13459 echo "#! /bin/sh" >conf$$.sh 13460 echo "exit 0" >>conf$$.sh 13461 chmod +x conf$$.sh 13462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13463 PATH_SEPARATOR=';' 13464 else 13465 PATH_SEPARATOR=: 13466 fi 13467 rm -f conf$$.sh 13468fi 13469 13470 13471 as_lineno_1=$LINENO 13472 as_lineno_2=$LINENO 13473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13474 test "x$as_lineno_1" != "x$as_lineno_2" && 13475 test "x$as_lineno_3" = "x$as_lineno_2" || { 13476 # Find who we are. Look in the path if we contain no path at all 13477 # relative or not. 13478 case $0 in 13479 *[\\/]* ) as_myself=$0 ;; 13480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13481for as_dir in $PATH 13482do 13483 IFS=$as_save_IFS 13484 test -z "$as_dir" && as_dir=. 13485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13486done 13487 13488 ;; 13489 esac 13490 # We did not find ourselves, most probably we were run as `sh COMMAND' 13491 # in which case we are not to be found in the path. 13492 if test "x$as_myself" = x; then 13493 as_myself=$0 13494 fi 13495 if test ! -f "$as_myself"; then 13496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13497echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13498 { (exit 1); exit 1; }; } 13499 fi 13500 case $CONFIG_SHELL in 13501 '') 13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13503for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13504do 13505 IFS=$as_save_IFS 13506 test -z "$as_dir" && as_dir=. 13507 for as_base in sh bash ksh sh5; do 13508 case $as_dir in 13509 /*) 13510 if ("$as_dir/$as_base" -c ' 13511 as_lineno_1=$LINENO 13512 as_lineno_2=$LINENO 13513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13514 test "x$as_lineno_1" != "x$as_lineno_2" && 13515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13518 CONFIG_SHELL=$as_dir/$as_base 13519 export CONFIG_SHELL 13520 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13521 fi;; 13522 esac 13523 done 13524done 13525;; 13526 esac 13527 13528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13529 # uniformly replaced by the line number. The first 'sed' inserts a 13530 # line-number line before each line; the second 'sed' does the real 13531 # work. The second script uses 'N' to pair each line-number line 13532 # with the numbered line, and appends trailing '-' during 13533 # substitution so that $LINENO is not a special case at line end. 13534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13536 sed '=' <$as_myself | 13537 sed ' 13538 N 13539 s,$,-, 13540 : loop 13541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13542 t loop 13543 s,-$,, 13544 s,^['$as_cr_digits']*\n,, 13545 ' >$as_me.lineno && 13546 chmod +x $as_me.lineno || 13547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13548echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13549 { (exit 1); exit 1; }; } 13550 13551 # Don't try to exec as it changes $[0], causing all sort of problems 13552 # (the dirname of $[0] is not the place where we might find the 13553 # original and so on. Autoconf is especially sensible to this). 13554 . ./$as_me.lineno 13555 # Exit status is that of the last command. 13556 exit 13557} 13558 13559 13560case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13561 *c*,-n*) ECHO_N= ECHO_C=' 13562' ECHO_T=' ' ;; 13563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13565esac 13566 13567if expr a : '\(a\)' >/dev/null 2>&1; then 13568 as_expr=expr 13569else 13570 as_expr=false 13571fi 13572 13573rm -f conf$$ conf$$.exe conf$$.file 13574echo >conf$$.file 13575if ln -s conf$$.file conf$$ 2>/dev/null; then 13576 # We could just check for DJGPP; but this test a) works b) is more generic 13577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13578 if test -f conf$$.exe; then 13579 # Don't use ln at all; we don't have any links 13580 as_ln_s='cp -p' 13581 else 13582 as_ln_s='ln -s' 13583 fi 13584elif ln conf$$.file conf$$ 2>/dev/null; then 13585 as_ln_s=ln 13586else 13587 as_ln_s='cp -p' 13588fi 13589rm -f conf$$ conf$$.exe conf$$.file 13590 13591if mkdir -p . 2>/dev/null; then 13592 as_mkdir_p=: 13593else 13594 test -d ./-p && rmdir ./-p 13595 as_mkdir_p=false 13596fi 13597 13598as_executable_p="test -f" 13599 13600# Sed expression to map a string onto a valid CPP name. 13601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13602 13603# Sed expression to map a string onto a valid variable name. 13604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13605 13606 13607# IFS 13608# We need space, tab and new line, in precisely that order. 13609as_nl=' 13610' 13611IFS=" $as_nl" 13612 13613# CDPATH. 13614$as_unset CDPATH 13615 13616exec 6>&1 13617 13618# Open the log real soon, to keep \$[0] and so on meaningful, and to 13619# report actual input values of CONFIG_FILES etc. instead of their 13620# values after options handling. Logging --version etc. is OK. 13621exec 5>>config.log 13622{ 13623 echo 13624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13625## Running $as_me. ## 13626_ASBOX 13627} >&5 13628cat >&5 <<_CSEOF 13629 13630This file was extended by GNU Texinfo $as_me 4.8, which was 13631generated by GNU Autoconf 2.59. Invocation command line was 13632 13633 CONFIG_FILES = $CONFIG_FILES 13634 CONFIG_HEADERS = $CONFIG_HEADERS 13635 CONFIG_LINKS = $CONFIG_LINKS 13636 CONFIG_COMMANDS = $CONFIG_COMMANDS 13637 $ $0 $@ 13638 13639_CSEOF 13640echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13641echo >&5 13642_ACEOF 13643 13644# Files that config.status was made for. 13645if test -n "$ac_config_files"; then 13646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13647fi 13648 13649if test -n "$ac_config_headers"; then 13650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13651fi 13652 13653if test -n "$ac_config_links"; then 13654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13655fi 13656 13657if test -n "$ac_config_commands"; then 13658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13659fi 13660 13661cat >>$CONFIG_STATUS <<\_ACEOF 13662 13663ac_cs_usage="\ 13664\`$as_me' instantiates files from templates according to the 13665current configuration. 13666 13667Usage: $0 [OPTIONS] [FILE]... 13668 13669 -h, --help print this help, then exit 13670 -V, --version print version number, then exit 13671 -q, --quiet do not print progress messages 13672 -d, --debug don't remove temporary files 13673 --recheck update $as_me by reconfiguring in the same conditions 13674 --file=FILE[:TEMPLATE] 13675 instantiate the configuration file FILE 13676 --header=FILE[:TEMPLATE] 13677 instantiate the configuration header FILE 13678 13679Configuration files: 13680$config_files 13681 13682Configuration headers: 13683$config_headers 13684 13685Configuration commands: 13686$config_commands 13687 13688Report bugs to <bug-autoconf@gnu.org>." 13689_ACEOF 13690 13691cat >>$CONFIG_STATUS <<_ACEOF 13692ac_cs_version="\\ 13693GNU Texinfo config.status 4.8 13694configured by $0, generated by GNU Autoconf 2.59, 13695 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13696 13697Copyright (C) 2003 Free Software Foundation, Inc. 13698This config.status script is free software; the Free Software Foundation 13699gives unlimited permission to copy, distribute and modify it." 13700srcdir=$srcdir 13701INSTALL="$INSTALL" 13702_ACEOF 13703 13704cat >>$CONFIG_STATUS <<\_ACEOF 13705# If no file are specified by the user, then we need to provide default 13706# value. By we need to know if files were specified by the user. 13707ac_need_defaults=: 13708while test $# != 0 13709do 13710 case $1 in 13711 --*=*) 13712 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13713 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13714 ac_shift=: 13715 ;; 13716 -*) 13717 ac_option=$1 13718 ac_optarg=$2 13719 ac_shift=shift 13720 ;; 13721 *) # This is not an option, so the user has probably given explicit 13722 # arguments. 13723 ac_option=$1 13724 ac_need_defaults=false;; 13725 esac 13726 13727 case $ac_option in 13728 # Handling of the options. 13729_ACEOF 13730cat >>$CONFIG_STATUS <<\_ACEOF 13731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13732 ac_cs_recheck=: ;; 13733 --version | --vers* | -V ) 13734 echo "$ac_cs_version"; exit 0 ;; 13735 --he | --h) 13736 # Conflict between --help and --header 13737 { { echo "$as_me:$LINENO: error: ambiguous option: $1 13738Try \`$0 --help' for more information." >&5 13739echo "$as_me: error: ambiguous option: $1 13740Try \`$0 --help' for more information." >&2;} 13741 { (exit 1); exit 1; }; };; 13742 --help | --hel | -h ) 13743 echo "$ac_cs_usage"; exit 0 ;; 13744 --debug | --d* | -d ) 13745 debug=: ;; 13746 --file | --fil | --fi | --f ) 13747 $ac_shift 13748 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13749 ac_need_defaults=false;; 13750 --header | --heade | --head | --hea ) 13751 $ac_shift 13752 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13753 ac_need_defaults=false;; 13754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13755 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13756 ac_cs_silent=: ;; 13757 13758 # This is an error. 13759 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13760Try \`$0 --help' for more information." >&5 13761echo "$as_me: error: unrecognized option: $1 13762Try \`$0 --help' for more information." >&2;} 13763 { (exit 1); exit 1; }; } ;; 13764 13765 *) ac_config_targets="$ac_config_targets $1" ;; 13766 13767 esac 13768 shift 13769done 13770 13771ac_configure_extra_args= 13772 13773if $ac_cs_silent; then 13774 exec 6>/dev/null 13775 ac_configure_extra_args="$ac_configure_extra_args --silent" 13776fi 13777 13778_ACEOF 13779cat >>$CONFIG_STATUS <<_ACEOF 13780if \$ac_cs_recheck; then 13781 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13782 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13783fi 13784 13785_ACEOF 13786 13787cat >>$CONFIG_STATUS <<_ACEOF 13788# 13789# INIT-COMMANDS section. 13790# 13791 13792AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13793# Capture the value of obsolete ALL_LINGUAS because we need it to compute 13794 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 13795 # from automake. 13796 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13797 # Capture the value of LINGUAS because we need it to compute CATALOGS. 13798 LINGUAS="${LINGUAS-%UNSET%}" 13799 13800 13801_ACEOF 13802 13803 13804 13805cat >>$CONFIG_STATUS <<\_ACEOF 13806for ac_config_target in $ac_config_targets 13807do 13808 case "$ac_config_target" in 13809 # Handling of arguments. 13810 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13811 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13812 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 13813 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 13814 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13815 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 13816 "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;; 13817 "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;; 13818 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13819 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 13820 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13821 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13822 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 13823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13824echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13825 { (exit 1); exit 1; }; };; 13826 esac 13827done 13828 13829# If the user did not use the arguments to specify the items to instantiate, 13830# then the envvar interface is used. Set only those that are not. 13831# We use the long form for the default assignment because of an extremely 13832# bizarre bug on SunOS 4.1.3. 13833if $ac_need_defaults; then 13834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13836 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13837fi 13838 13839# Have a temporary directory for convenience. Make it in the build tree 13840# simply because there is no reason to put it here, and in addition, 13841# creating and moving files from /tmp can sometimes cause problems. 13842# Create a temporary directory, and hook for its removal unless debugging. 13843$debug || 13844{ 13845 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13846 trap '{ (exit 1); exit 1; }' 1 2 13 15 13847} 13848 13849# Create a (secure) tmp directory for tmp files. 13850 13851{ 13852 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13853 test -n "$tmp" && test -d "$tmp" 13854} || 13855{ 13856 tmp=./confstat$$-$RANDOM 13857 (umask 077 && mkdir $tmp) 13858} || 13859{ 13860 echo "$me: cannot create a temporary directory in ." >&2 13861 { (exit 1); exit 1; } 13862} 13863 13864_ACEOF 13865 13866cat >>$CONFIG_STATUS <<_ACEOF 13867 13868# 13869# CONFIG_FILES section. 13870# 13871 13872# No need to generate the scripts if there are no CONFIG_FILES. 13873# This happens for instance when ./config.status config.h 13874if test -n "\$CONFIG_FILES"; then 13875 # Protect against being on the right side of a sed subst in config.status. 13876 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13877 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13878s,@SHELL@,$SHELL,;t t 13879s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13880s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13881s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13882s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13883s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13884s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13885s,@exec_prefix@,$exec_prefix,;t t 13886s,@prefix@,$prefix,;t t 13887s,@program_transform_name@,$program_transform_name,;t t 13888s,@bindir@,$bindir,;t t 13889s,@sbindir@,$sbindir,;t t 13890s,@libexecdir@,$libexecdir,;t t 13891s,@datadir@,$datadir,;t t 13892s,@sysconfdir@,$sysconfdir,;t t 13893s,@sharedstatedir@,$sharedstatedir,;t t 13894s,@localstatedir@,$localstatedir,;t t 13895s,@libdir@,$libdir,;t t 13896s,@includedir@,$includedir,;t t 13897s,@oldincludedir@,$oldincludedir,;t t 13898s,@infodir@,$infodir,;t t 13899s,@mandir@,$mandir,;t t 13900s,@build_alias@,$build_alias,;t t 13901s,@host_alias@,$host_alias,;t t 13902s,@target_alias@,$target_alias,;t t 13903s,@DEFS@,$DEFS,;t t 13904s,@ECHO_C@,$ECHO_C,;t t 13905s,@ECHO_N@,$ECHO_N,;t t 13906s,@ECHO_T@,$ECHO_T,;t t 13907s,@LIBS@,$LIBS,;t t 13908s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13909s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13910s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13911s,@CYGPATH_W@,$CYGPATH_W,;t t 13912s,@PACKAGE@,$PACKAGE,;t t 13913s,@VERSION@,$VERSION,;t t 13914s,@ACLOCAL@,$ACLOCAL,;t t 13915s,@AUTOCONF@,$AUTOCONF,;t t 13916s,@AUTOMAKE@,$AUTOMAKE,;t t 13917s,@AUTOHEADER@,$AUTOHEADER,;t t 13918s,@MAKEINFO@,$MAKEINFO,;t t 13919s,@install_sh@,$install_sh,;t t 13920s,@STRIP@,$STRIP,;t t 13921s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13922s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 13923s,@mkdir_p@,$mkdir_p,;t t 13924s,@AWK@,$AWK,;t t 13925s,@SET_MAKE@,$SET_MAKE,;t t 13926s,@am__leading_dot@,$am__leading_dot,;t t 13927s,@AMTAR@,$AMTAR,;t t 13928s,@am__tar@,$am__tar,;t t 13929s,@am__untar@,$am__untar,;t t 13930s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 13931s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 13932s,@MAINT@,$MAINT,;t t 13933s,@CC@,$CC,;t t 13934s,@CFLAGS@,$CFLAGS,;t t 13935s,@LDFLAGS@,$LDFLAGS,;t t 13936s,@CPPFLAGS@,$CPPFLAGS,;t t 13937s,@ac_ct_CC@,$ac_ct_CC,;t t 13938s,@EXEEXT@,$EXEEXT,;t t 13939s,@OBJEXT@,$OBJEXT,;t t 13940s,@DEPDIR@,$DEPDIR,;t t 13941s,@am__include@,$am__include,;t t 13942s,@am__quote@,$am__quote,;t t 13943s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 13944s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 13945s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 13946s,@CCDEPMODE@,$CCDEPMODE,;t t 13947s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 13948s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 13949s,@CPP@,$CPP,;t t 13950s,@EGREP@,$EGREP,;t t 13951s,@RANLIB@,$RANLIB,;t t 13952s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13953s,@HELP2MAN@,$HELP2MAN,;t t 13954s,@ALLOCA@,$ALLOCA,;t t 13955s,@LIBOBJS@,$LIBOBJS,;t t 13956s,@build@,$build,;t t 13957s,@build_cpu@,$build_cpu,;t t 13958s,@build_vendor@,$build_vendor,;t t 13959s,@build_os@,$build_os,;t t 13960s,@native_tools@,$native_tools,;t t 13961s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t 13962s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t 13963s,@TERMLIBS@,$TERMLIBS,;t t 13964s,@host@,$host,;t t 13965s,@host_cpu@,$host_cpu,;t t 13966s,@host_vendor@,$host_vendor,;t t 13967s,@host_os@,$host_os,;t t 13968s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t 13969s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t 13970s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 13971s,@USE_NLS@,$USE_NLS,;t t 13972s,@MSGFMT@,$MSGFMT,;t t 13973s,@GMSGFMT@,$GMSGFMT,;t t 13974s,@XGETTEXT@,$XGETTEXT,;t t 13975s,@MSGMERGE@,$MSGMERGE,;t t 13976s,@GLIBC21@,$GLIBC21,;t t 13977s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 13978s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 13979s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 13980s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 13981s,@LIBICONV@,$LIBICONV,;t t 13982s,@LTLIBICONV@,$LTLIBICONV,;t t 13983s,@INTLBISON@,$INTLBISON,;t t 13984s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 13985s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 13986s,@CATOBJEXT@,$CATOBJEXT,;t t 13987s,@DATADIRNAME@,$DATADIRNAME,;t t 13988s,@INSTOBJEXT@,$INSTOBJEXT,;t t 13989s,@GENCAT@,$GENCAT,;t t 13990s,@INTLOBJS@,$INTLOBJS,;t t 13991s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 13992s,@INTLLIBS@,$INTLLIBS,;t t 13993s,@LIBINTL@,$LIBINTL,;t t 13994s,@LTLIBINTL@,$LTLIBINTL,;t t 13995s,@POSUB@,$POSUB,;t t 13996s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13997CEOF 13998 13999_ACEOF 14000 14001 cat >>$CONFIG_STATUS <<\_ACEOF 14002 # Split the substitutions into bite-sized pieces for seds with 14003 # small command number limits, like on Digital OSF/1 and HP-UX. 14004 ac_max_sed_lines=48 14005 ac_sed_frag=1 # Number of current file. 14006 ac_beg=1 # First line for current file. 14007 ac_end=$ac_max_sed_lines # Line after last line for current file. 14008 ac_more_lines=: 14009 ac_sed_cmds= 14010 while $ac_more_lines; do 14011 if test $ac_beg -gt 1; then 14012 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14013 else 14014 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14015 fi 14016 if test ! -s $tmp/subs.frag; then 14017 ac_more_lines=false 14018 else 14019 # The purpose of the label and of the branching condition is to 14020 # speed up the sed processing (if there are no `@' at all, there 14021 # is no need to browse any of the substitutions). 14022 # These are the two extra sed commands mentioned above. 14023 (echo ':t 14024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14025 if test -z "$ac_sed_cmds"; then 14026 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14027 else 14028 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14029 fi 14030 ac_sed_frag=`expr $ac_sed_frag + 1` 14031 ac_beg=$ac_end 14032 ac_end=`expr $ac_end + $ac_max_sed_lines` 14033 fi 14034 done 14035 if test -z "$ac_sed_cmds"; then 14036 ac_sed_cmds=cat 14037 fi 14038fi # test -n "$CONFIG_FILES" 14039 14040_ACEOF 14041cat >>$CONFIG_STATUS <<\_ACEOF 14042for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14044 case $ac_file in 14045 - | *:- | *:-:* ) # input from stdin 14046 cat >$tmp/stdin 14047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14051 * ) ac_file_in=$ac_file.in ;; 14052 esac 14053 14054 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14055 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14057 X"$ac_file" : 'X\(//\)[^/]' \| \ 14058 X"$ac_file" : 'X\(//\)$' \| \ 14059 X"$ac_file" : 'X\(/\)' \| \ 14060 . : '\(.\)' 2>/dev/null || 14061echo X"$ac_file" | 14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14063 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14064 /^X\(\/\/\)$/{ s//\1/; q; } 14065 /^X\(\/\).*/{ s//\1/; q; } 14066 s/.*/./; q'` 14067 { if $as_mkdir_p; then 14068 mkdir -p "$ac_dir" 14069 else 14070 as_dir="$ac_dir" 14071 as_dirs= 14072 while test ! -d "$as_dir"; do 14073 as_dirs="$as_dir $as_dirs" 14074 as_dir=`(dirname "$as_dir") 2>/dev/null || 14075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14076 X"$as_dir" : 'X\(//\)[^/]' \| \ 14077 X"$as_dir" : 'X\(//\)$' \| \ 14078 X"$as_dir" : 'X\(/\)' \| \ 14079 . : '\(.\)' 2>/dev/null || 14080echo X"$as_dir" | 14081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14082 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14083 /^X\(\/\/\)$/{ s//\1/; q; } 14084 /^X\(\/\).*/{ s//\1/; q; } 14085 s/.*/./; q'` 14086 done 14087 test ! -n "$as_dirs" || mkdir $as_dirs 14088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14090 { (exit 1); exit 1; }; }; } 14091 14092 ac_builddir=. 14093 14094if test "$ac_dir" != .; then 14095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14096 # A "../" for each directory in $ac_dir_suffix. 14097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14098else 14099 ac_dir_suffix= ac_top_builddir= 14100fi 14101 14102case $srcdir in 14103 .) # No --srcdir option. We are building in place. 14104 ac_srcdir=. 14105 if test -z "$ac_top_builddir"; then 14106 ac_top_srcdir=. 14107 else 14108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14109 fi ;; 14110 [\\/]* | ?:[\\/]* ) # Absolute path. 14111 ac_srcdir=$srcdir$ac_dir_suffix; 14112 ac_top_srcdir=$srcdir ;; 14113 *) # Relative path. 14114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14115 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14116esac 14117 14118# Do not use `cd foo && pwd` to compute absolute paths, because 14119# the directories may not exist. 14120case `pwd` in 14121.) ac_abs_builddir="$ac_dir";; 14122*) 14123 case "$ac_dir" in 14124 .) ac_abs_builddir=`pwd`;; 14125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14126 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14127 esac;; 14128esac 14129case $ac_abs_builddir in 14130.) ac_abs_top_builddir=${ac_top_builddir}.;; 14131*) 14132 case ${ac_top_builddir}. in 14133 .) ac_abs_top_builddir=$ac_abs_builddir;; 14134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14136 esac;; 14137esac 14138case $ac_abs_builddir in 14139.) ac_abs_srcdir=$ac_srcdir;; 14140*) 14141 case $ac_srcdir in 14142 .) ac_abs_srcdir=$ac_abs_builddir;; 14143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14145 esac;; 14146esac 14147case $ac_abs_builddir in 14148.) ac_abs_top_srcdir=$ac_top_srcdir;; 14149*) 14150 case $ac_top_srcdir in 14151 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14154 esac;; 14155esac 14156 14157 14158 case $INSTALL in 14159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14160 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14161 esac 14162 14163 if test x"$ac_file" != x-; then 14164 { echo "$as_me:$LINENO: creating $ac_file" >&5 14165echo "$as_me: creating $ac_file" >&6;} 14166 rm -f "$ac_file" 14167 fi 14168 # Let's still pretend it is `configure' which instantiates (i.e., don't 14169 # use $as_me), people would be surprised to read: 14170 # /* config.h. Generated by config.status. */ 14171 if test x"$ac_file" = x-; then 14172 configure_input= 14173 else 14174 configure_input="$ac_file. " 14175 fi 14176 configure_input=$configure_input"Generated from `echo $ac_file_in | 14177 sed 's,.*/,,'` by configure." 14178 14179 # First look for the input files in the build tree, otherwise in the 14180 # src tree. 14181 ac_file_inputs=`IFS=: 14182 for f in $ac_file_in; do 14183 case $f in 14184 -) echo $tmp/stdin ;; 14185 [\\/$]*) 14186 # Absolute (can't be DOS-style, as IFS=:) 14187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14188echo "$as_me: error: cannot find input file: $f" >&2;} 14189 { (exit 1); exit 1; }; } 14190 echo "$f";; 14191 *) # Relative 14192 if test -f "$f"; then 14193 # Build tree 14194 echo "$f" 14195 elif test -f "$srcdir/$f"; then 14196 # Source tree 14197 echo "$srcdir/$f" 14198 else 14199 # /dev/null tree 14200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14201echo "$as_me: error: cannot find input file: $f" >&2;} 14202 { (exit 1); exit 1; }; } 14203 fi;; 14204 esac 14205 done` || { (exit 1); exit 1; } 14206_ACEOF 14207cat >>$CONFIG_STATUS <<_ACEOF 14208 sed "$ac_vpsub 14209$extrasub 14210_ACEOF 14211cat >>$CONFIG_STATUS <<\_ACEOF 14212:t 14213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14214s,@configure_input@,$configure_input,;t t 14215s,@srcdir@,$ac_srcdir,;t t 14216s,@abs_srcdir@,$ac_abs_srcdir,;t t 14217s,@top_srcdir@,$ac_top_srcdir,;t t 14218s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14219s,@builddir@,$ac_builddir,;t t 14220s,@abs_builddir@,$ac_abs_builddir,;t t 14221s,@top_builddir@,$ac_top_builddir,;t t 14222s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14223s,@INSTALL@,$ac_INSTALL,;t t 14224" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14225 rm -f $tmp/stdin 14226 if test x"$ac_file" != x-; then 14227 mv $tmp/out $ac_file 14228 else 14229 cat $tmp/out 14230 rm -f $tmp/out 14231 fi 14232 14233done 14234_ACEOF 14235cat >>$CONFIG_STATUS <<\_ACEOF 14236 14237# 14238# CONFIG_HEADER section. 14239# 14240 14241# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14242# NAME is the cpp macro being defined and VALUE is the value it is being given. 14243# 14244# ac_d sets the value in "#define NAME VALUE" lines. 14245ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14246ac_dB='[ ].*$,\1#\2' 14247ac_dC=' ' 14248ac_dD=',;t' 14249# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14250ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14251ac_uB='$,\1#\2define\3' 14252ac_uC=' ' 14253ac_uD=',;t' 14254 14255for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14257 case $ac_file in 14258 - | *:- | *:-:* ) # input from stdin 14259 cat >$tmp/stdin 14260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14264 * ) ac_file_in=$ac_file.in ;; 14265 esac 14266 14267 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14268echo "$as_me: creating $ac_file" >&6;} 14269 14270 # First look for the input files in the build tree, otherwise in the 14271 # src tree. 14272 ac_file_inputs=`IFS=: 14273 for f in $ac_file_in; do 14274 case $f in 14275 -) echo $tmp/stdin ;; 14276 [\\/$]*) 14277 # Absolute (can't be DOS-style, as IFS=:) 14278 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14279echo "$as_me: error: cannot find input file: $f" >&2;} 14280 { (exit 1); exit 1; }; } 14281 # Do quote $f, to prevent DOS paths from being IFS'd. 14282 echo "$f";; 14283 *) # Relative 14284 if test -f "$f"; then 14285 # Build tree 14286 echo "$f" 14287 elif test -f "$srcdir/$f"; then 14288 # Source tree 14289 echo "$srcdir/$f" 14290 else 14291 # /dev/null tree 14292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14293echo "$as_me: error: cannot find input file: $f" >&2;} 14294 { (exit 1); exit 1; }; } 14295 fi;; 14296 esac 14297 done` || { (exit 1); exit 1; } 14298 # Remove the trailing spaces. 14299 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14300 14301_ACEOF 14302 14303# Transform confdefs.h into two sed scripts, `conftest.defines' and 14304# `conftest.undefs', that substitutes the proper values into 14305# config.h.in to produce config.h. The first handles `#define' 14306# templates, and the second `#undef' templates. 14307# And first: Protect against being on the right side of a sed subst in 14308# config.status. Protect against being in an unquoted here document 14309# in config.status. 14310rm -f conftest.defines conftest.undefs 14311# Using a here document instead of a string reduces the quoting nightmare. 14312# Putting comments in sed scripts is not portable. 14313# 14314# `end' is used to avoid that the second main sed command (meant for 14315# 0-ary CPP macros) applies to n-ary macro definitions. 14316# See the Autoconf documentation for `clear'. 14317cat >confdef2sed.sed <<\_ACEOF 14318s/[\\&,]/\\&/g 14319s,[\\$`],\\&,g 14320t clear 14321: clear 14322s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14323t end 14324s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14325: end 14326_ACEOF 14327# If some macros were called several times there might be several times 14328# the same #defines, which is useless. Nevertheless, we may not want to 14329# sort them, since we want the *last* AC-DEFINE to be honored. 14330uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14331sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14332rm -f confdef2sed.sed 14333 14334# This sed command replaces #undef with comments. This is necessary, for 14335# example, in the case of _POSIX_SOURCE, which is predefined and required 14336# on some systems where configure will not decide to define it. 14337cat >>conftest.undefs <<\_ACEOF 14338s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14339_ACEOF 14340 14341# Break up conftest.defines because some shells have a limit on the size 14342# of here documents, and old seds have small limits too (100 cmds). 14343echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14344echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14345echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14346echo ' :' >>$CONFIG_STATUS 14347rm -f conftest.tail 14348while grep . conftest.defines >/dev/null 14349do 14350 # Write a limited-size here document to $tmp/defines.sed. 14351 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14352 # Speed up: don't consider the non `#define' lines. 14353 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14354 # Work around the forget-to-reset-the-flag bug. 14355 echo 't clr' >>$CONFIG_STATUS 14356 echo ': clr' >>$CONFIG_STATUS 14357 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14358 echo 'CEOF 14359 sed -f $tmp/defines.sed $tmp/in >$tmp/out 14360 rm -f $tmp/in 14361 mv $tmp/out $tmp/in 14362' >>$CONFIG_STATUS 14363 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14364 rm -f conftest.defines 14365 mv conftest.tail conftest.defines 14366done 14367rm -f conftest.defines 14368echo ' fi # grep' >>$CONFIG_STATUS 14369echo >>$CONFIG_STATUS 14370 14371# Break up conftest.undefs because some shells have a limit on the size 14372# of here documents, and old seds have small limits too (100 cmds). 14373echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14374rm -f conftest.tail 14375while grep . conftest.undefs >/dev/null 14376do 14377 # Write a limited-size here document to $tmp/undefs.sed. 14378 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14379 # Speed up: don't consider the non `#undef' 14380 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14381 # Work around the forget-to-reset-the-flag bug. 14382 echo 't clr' >>$CONFIG_STATUS 14383 echo ': clr' >>$CONFIG_STATUS 14384 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14385 echo 'CEOF 14386 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14387 rm -f $tmp/in 14388 mv $tmp/out $tmp/in 14389' >>$CONFIG_STATUS 14390 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14391 rm -f conftest.undefs 14392 mv conftest.tail conftest.undefs 14393done 14394rm -f conftest.undefs 14395 14396cat >>$CONFIG_STATUS <<\_ACEOF 14397 # Let's still pretend it is `configure' which instantiates (i.e., don't 14398 # use $as_me), people would be surprised to read: 14399 # /* config.h. Generated by config.status. */ 14400 if test x"$ac_file" = x-; then 14401 echo "/* Generated by configure. */" >$tmp/config.h 14402 else 14403 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14404 fi 14405 cat $tmp/in >>$tmp/config.h 14406 rm -f $tmp/in 14407 if test x"$ac_file" != x-; then 14408 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14409 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14410echo "$as_me: $ac_file is unchanged" >&6;} 14411 else 14412 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14414 X"$ac_file" : 'X\(//\)[^/]' \| \ 14415 X"$ac_file" : 'X\(//\)$' \| \ 14416 X"$ac_file" : 'X\(/\)' \| \ 14417 . : '\(.\)' 2>/dev/null || 14418echo X"$ac_file" | 14419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14420 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14421 /^X\(\/\/\)$/{ s//\1/; q; } 14422 /^X\(\/\).*/{ s//\1/; q; } 14423 s/.*/./; q'` 14424 { if $as_mkdir_p; then 14425 mkdir -p "$ac_dir" 14426 else 14427 as_dir="$ac_dir" 14428 as_dirs= 14429 while test ! -d "$as_dir"; do 14430 as_dirs="$as_dir $as_dirs" 14431 as_dir=`(dirname "$as_dir") 2>/dev/null || 14432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14433 X"$as_dir" : 'X\(//\)[^/]' \| \ 14434 X"$as_dir" : 'X\(//\)$' \| \ 14435 X"$as_dir" : 'X\(/\)' \| \ 14436 . : '\(.\)' 2>/dev/null || 14437echo X"$as_dir" | 14438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14439 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14440 /^X\(\/\/\)$/{ s//\1/; q; } 14441 /^X\(\/\).*/{ s//\1/; q; } 14442 s/.*/./; q'` 14443 done 14444 test ! -n "$as_dirs" || mkdir $as_dirs 14445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14447 { (exit 1); exit 1; }; }; } 14448 14449 rm -f $ac_file 14450 mv $tmp/config.h $ac_file 14451 fi 14452 else 14453 cat $tmp/config.h 14454 rm -f $tmp/config.h 14455 fi 14456# Compute $ac_file's index in $config_headers. 14457_am_stamp_count=1 14458for _am_header in $config_headers :; do 14459 case $_am_header in 14460 $ac_file | $ac_file:* ) 14461 break ;; 14462 * ) 14463 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14464 esac 14465done 14466echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 14467$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14468 X$ac_file : 'X\(//\)[^/]' \| \ 14469 X$ac_file : 'X\(//\)$' \| \ 14470 X$ac_file : 'X\(/\)' \| \ 14471 . : '\(.\)' 2>/dev/null || 14472echo X$ac_file | 14473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14474 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14475 /^X\(\/\/\)$/{ s//\1/; q; } 14476 /^X\(\/\).*/{ s//\1/; q; } 14477 s/.*/./; q'`/stamp-h$_am_stamp_count 14478done 14479_ACEOF 14480cat >>$CONFIG_STATUS <<\_ACEOF 14481 14482# 14483# CONFIG_COMMANDS section. 14484# 14485for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14486 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14487 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14488 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 14489$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14490 X"$ac_dest" : 'X\(//\)[^/]' \| \ 14491 X"$ac_dest" : 'X\(//\)$' \| \ 14492 X"$ac_dest" : 'X\(/\)' \| \ 14493 . : '\(.\)' 2>/dev/null || 14494echo X"$ac_dest" | 14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14496 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14497 /^X\(\/\/\)$/{ s//\1/; q; } 14498 /^X\(\/\).*/{ s//\1/; q; } 14499 s/.*/./; q'` 14500 { if $as_mkdir_p; then 14501 mkdir -p "$ac_dir" 14502 else 14503 as_dir="$ac_dir" 14504 as_dirs= 14505 while test ! -d "$as_dir"; do 14506 as_dirs="$as_dir $as_dirs" 14507 as_dir=`(dirname "$as_dir") 2>/dev/null || 14508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14509 X"$as_dir" : 'X\(//\)[^/]' \| \ 14510 X"$as_dir" : 'X\(//\)$' \| \ 14511 X"$as_dir" : 'X\(/\)' \| \ 14512 . : '\(.\)' 2>/dev/null || 14513echo X"$as_dir" | 14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14515 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14516 /^X\(\/\/\)$/{ s//\1/; q; } 14517 /^X\(\/\).*/{ s//\1/; q; } 14518 s/.*/./; q'` 14519 done 14520 test ! -n "$as_dirs" || mkdir $as_dirs 14521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14523 { (exit 1); exit 1; }; }; } 14524 14525 ac_builddir=. 14526 14527if test "$ac_dir" != .; then 14528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14529 # A "../" for each directory in $ac_dir_suffix. 14530 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14531else 14532 ac_dir_suffix= ac_top_builddir= 14533fi 14534 14535case $srcdir in 14536 .) # No --srcdir option. We are building in place. 14537 ac_srcdir=. 14538 if test -z "$ac_top_builddir"; then 14539 ac_top_srcdir=. 14540 else 14541 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14542 fi ;; 14543 [\\/]* | ?:[\\/]* ) # Absolute path. 14544 ac_srcdir=$srcdir$ac_dir_suffix; 14545 ac_top_srcdir=$srcdir ;; 14546 *) # Relative path. 14547 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14548 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14549esac 14550 14551# Do not use `cd foo && pwd` to compute absolute paths, because 14552# the directories may not exist. 14553case `pwd` in 14554.) ac_abs_builddir="$ac_dir";; 14555*) 14556 case "$ac_dir" in 14557 .) ac_abs_builddir=`pwd`;; 14558 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14559 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14560 esac;; 14561esac 14562case $ac_abs_builddir in 14563.) ac_abs_top_builddir=${ac_top_builddir}.;; 14564*) 14565 case ${ac_top_builddir}. in 14566 .) ac_abs_top_builddir=$ac_abs_builddir;; 14567 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14568 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14569 esac;; 14570esac 14571case $ac_abs_builddir in 14572.) ac_abs_srcdir=$ac_srcdir;; 14573*) 14574 case $ac_srcdir in 14575 .) ac_abs_srcdir=$ac_abs_builddir;; 14576 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14577 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14578 esac;; 14579esac 14580case $ac_abs_builddir in 14581.) ac_abs_top_srcdir=$ac_top_srcdir;; 14582*) 14583 case $ac_top_srcdir in 14584 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14585 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14586 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14587 esac;; 14588esac 14589 14590 14591 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 14592echo "$as_me: executing $ac_dest commands" >&6;} 14593 case $ac_dest in 14594 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14595 # Strip MF so we end up with the name of the file. 14596 mf=`echo "$mf" | sed -e 's/:.*$//'` 14597 # Check whether this is an Automake generated Makefile or not. 14598 # We used to match only the files named `Makefile.in', but 14599 # some people rename them; so instead we look at the file content. 14600 # Grep'ing the first line is not enough: some people post-process 14601 # each Makefile.in and add a new line on top of each file to say so. 14602 # So let's grep whole file. 14603 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 14604 dirpart=`(dirname "$mf") 2>/dev/null || 14605$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14606 X"$mf" : 'X\(//\)[^/]' \| \ 14607 X"$mf" : 'X\(//\)$' \| \ 14608 X"$mf" : 'X\(/\)' \| \ 14609 . : '\(.\)' 2>/dev/null || 14610echo X"$mf" | 14611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14612 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14613 /^X\(\/\/\)$/{ s//\1/; q; } 14614 /^X\(\/\).*/{ s//\1/; q; } 14615 s/.*/./; q'` 14616 else 14617 continue 14618 fi 14619 # Extract the definition of DEPDIR, am__include, and am__quote 14620 # from the Makefile without running `make'. 14621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14622 test -z "$DEPDIR" && continue 14623 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14624 test -z "am__include" && continue 14625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14626 # When using ansi2knr, U may be empty or an underscore; expand it 14627 U=`sed -n 's/^U = //p' < "$mf"` 14628 # Find all dependency output files, they are included files with 14629 # $(DEPDIR) in their names. We invoke sed twice because it is the 14630 # simplest approach to changing $(DEPDIR) to its actual value in the 14631 # expansion. 14632 for file in `sed -n " 14633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14635 # Make sure the directory exists. 14636 test -f "$dirpart/$file" && continue 14637 fdir=`(dirname "$file") 2>/dev/null || 14638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14639 X"$file" : 'X\(//\)[^/]' \| \ 14640 X"$file" : 'X\(//\)$' \| \ 14641 X"$file" : 'X\(/\)' \| \ 14642 . : '\(.\)' 2>/dev/null || 14643echo X"$file" | 14644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14645 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14646 /^X\(\/\/\)$/{ s//\1/; q; } 14647 /^X\(\/\).*/{ s//\1/; q; } 14648 s/.*/./; q'` 14649 { if $as_mkdir_p; then 14650 mkdir -p $dirpart/$fdir 14651 else 14652 as_dir=$dirpart/$fdir 14653 as_dirs= 14654 while test ! -d "$as_dir"; do 14655 as_dirs="$as_dir $as_dirs" 14656 as_dir=`(dirname "$as_dir") 2>/dev/null || 14657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14658 X"$as_dir" : 'X\(//\)[^/]' \| \ 14659 X"$as_dir" : 'X\(//\)$' \| \ 14660 X"$as_dir" : 'X\(/\)' \| \ 14661 . : '\(.\)' 2>/dev/null || 14662echo X"$as_dir" | 14663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14664 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14665 /^X\(\/\/\)$/{ s//\1/; q; } 14666 /^X\(\/\).*/{ s//\1/; q; } 14667 s/.*/./; q'` 14668 done 14669 test ! -n "$as_dirs" || mkdir $as_dirs 14670 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 14671echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 14672 { (exit 1); exit 1; }; }; } 14673 14674 # echo "creating $dirpart/$file" 14675 echo '# dummy' > "$dirpart/$file" 14676 done 14677done 14678 ;; 14679 default-1 ) 14680 for ac_file in $CONFIG_FILES; do 14681 # Support "outfile[:infile[:infile...]]" 14682 case "$ac_file" in 14683 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14684 esac 14685 # PO directories have a Makefile.in generated from Makefile.in.in. 14686 case "$ac_file" in */Makefile.in) 14687 # Adjust a relative srcdir. 14688 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14689 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14690 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14691 # In autoconf-2.13 it is called $ac_given_srcdir. 14692 # In autoconf-2.50 it is called $srcdir. 14693 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14694 case "$ac_given_srcdir" in 14695 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14696 /*) top_srcdir="$ac_given_srcdir" ;; 14697 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14698 esac 14699 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14700 rm -f "$ac_dir/POTFILES" 14701 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14702 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 14703 POMAKEFILEDEPS="POTFILES.in" 14704 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 14705 # on $ac_dir but don't depend on user-specified configuration 14706 # parameters. 14707 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14708 # The LINGUAS file contains the set of available languages. 14709 if test -n "$OBSOLETE_ALL_LINGUAS"; then 14710 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 14711 fi 14712 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14713 # Hide the ALL_LINGUAS assigment from automake. 14714 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14715 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14716 else 14717 # The set of available languages was given in configure.in. 14718 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14719 fi 14720 # Compute POFILES 14721 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 14722 # Compute UPDATEPOFILES 14723 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 14724 # Compute DUMMYPOFILES 14725 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 14726 # Compute GMOFILES 14727 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 14728 case "$ac_given_srcdir" in 14729 .) srcdirpre= ;; 14730 *) srcdirpre='$(srcdir)/' ;; 14731 esac 14732 POFILES= 14733 UPDATEPOFILES= 14734 DUMMYPOFILES= 14735 GMOFILES= 14736 for lang in $ALL_LINGUAS; do 14737 POFILES="$POFILES $srcdirpre$lang.po" 14738 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14739 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14740 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14741 done 14742 # CATALOGS depends on both $ac_dir and the user's LINGUAS 14743 # environment variable. 14744 INST_LINGUAS= 14745 if test -n "$ALL_LINGUAS"; then 14746 for presentlang in $ALL_LINGUAS; do 14747 useit=no 14748 if test "%UNSET%" != "$LINGUAS"; then 14749 desiredlanguages="$LINGUAS" 14750 else 14751 desiredlanguages="$ALL_LINGUAS" 14752 fi 14753 for desiredlang in $desiredlanguages; do 14754 # Use the presentlang catalog if desiredlang is 14755 # a. equal to presentlang, or 14756 # b. a variant of presentlang (because in this case, 14757 # presentlang can be used as a fallback for messages 14758 # which are not translated in the desiredlang catalog). 14759 case "$desiredlang" in 14760 "$presentlang"*) useit=yes;; 14761 esac 14762 done 14763 if test $useit = yes; then 14764 INST_LINGUAS="$INST_LINGUAS $presentlang" 14765 fi 14766 done 14767 fi 14768 CATALOGS= 14769 if test -n "$INST_LINGUAS"; then 14770 for lang in $INST_LINGUAS; do 14771 CATALOGS="$CATALOGS $lang.gmo" 14772 done 14773 fi 14774 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14775 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" 14776 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14777 if test -f "$f"; then 14778 case "$f" in 14779 *.orig | *.bak | *~) ;; 14780 *) cat "$f" >> "$ac_dir/Makefile" ;; 14781 esac 14782 fi 14783 done 14784 fi 14785 ;; 14786 esac 14787 done ;; 14788 esac 14789done 14790_ACEOF 14791 14792cat >>$CONFIG_STATUS <<\_ACEOF 14793 14794{ (exit 0); exit 0; } 14795_ACEOF 14796chmod +x $CONFIG_STATUS 14797ac_clean_files=$ac_clean_files_save 14798 14799 14800# configure is writing to config.log, and then calls config.status. 14801# config.status does its own redirection, appending to config.log. 14802# Unfortunately, on DOS this fails, as config.log is still kept open 14803# by configure, so config.status won't be able to write to it; its 14804# output is simply discarded. So we exec the FD to /dev/null, 14805# effectively closing config.log, so it can be properly (re)opened and 14806# appended to by config.status. When coming back to configure, we 14807# need to make the FD available again. 14808if test "$no_create" != yes; then 14809 ac_cs_success=: 14810 ac_config_status_args= 14811 test "$silent" = yes && 14812 ac_config_status_args="$ac_config_status_args --quiet" 14813 exec 5>/dev/null 14814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14815 exec 5>>config.log 14816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14817 # would make configure fail if this is the last instruction. 14818 $ac_cs_success || { (exit 1); exit 1; } 14819fi 14820 14821