1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for microdc2 0.15.6. 4# 5# Report bugs to <vladch@k804.mainet.msk.su>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539exec 7<&0 </dev/null 6>&1 540 541# Name of the host. 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543# so uname gets run too. 544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546# 547# Initializations. 548# 549ac_default_prefix=/usr/local 550ac_clean_files= 551ac_config_libobj_dir=. 552LIBOBJS= 553cross_compiling=no 554subdirs= 555MFLAGS= 556MAKEFLAGS= 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559# Identity of this package. 560PACKAGE_NAME='microdc2' 561PACKAGE_TARNAME='microdc2' 562PACKAGE_VERSION='0.15.6' 563PACKAGE_STRING='microdc2 0.15.6' 564PACKAGE_BUGREPORT='vladch@k804.mainet.msk.su' 565 566ac_unique_file="src/microdc.h" 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#if HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#if HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#if STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# if HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#if HAVE_STRING_H 585# if !STDC_HEADERS && HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#if HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#if HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#if HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#if HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603gl_header_list= 604gl_func_list= 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642INSTALL_PROGRAM 643INSTALL_SCRIPT 644INSTALL_DATA 645CYGPATH_W 646PACKAGE 647VERSION 648ACLOCAL 649AUTOCONF 650AUTOMAKE 651AUTOHEADER 652MAKEINFO 653install_sh 654STRIP 655INSTALL_STRIP_PROGRAM 656mkdir_p 657AWK 658SET_MAKE 659am__leading_dot 660AMTAR 661am__tar 662am__untar 663LOCALEDIR 664MAINTAINER_MODE_TRUE 665MAINTAINER_MODE_FALSE 666MAINT 667CC 668CFLAGS 669LDFLAGS 670CPPFLAGS 671ac_ct_CC 672EXEEXT 673OBJEXT 674DEPDIR 675am__include 676am__quote 677AMDEP_TRUE 678AMDEP_FALSE 679AMDEPBACKSLASH 680CCDEPMODE 681am__fastdepCC_TRUE 682am__fastdepCC_FALSE 683CPP 684GREP 685EGREP 686ALLOCA 687ALLOCA_H 688LIBOBJS 689FNMATCH_H 690GETOPT_H 691STDBOOL_H 692HAVE__BOOL 693build 694build_cpu 695build_vendor 696build_os 697host 698host_cpu 699host_vendor 700host_os 701LIBICONV 702LTLIBICONV 703HAVE_LONG_64BIT 704HAVE_LONG_LONG_64BIT 705STDINT_H 706EOVERFLOW 707MKINSTALLDIRS 708USE_NLS 709MSGFMT 710GMSGFMT 711XGETTEXT 712MSGMERGE 713INTL_MACOSX_LIBS 714INTLLIBS 715LIBINTL 716LTLIBINTL 717POSUB 718RANLIB 719READLINE_LIBS 720XML_CONFIG 721TR 722LIBXML2_LIBS 723LIBXML2_CFLAGS 724LTLIBOBJS' 725ac_subst_files='' 726 ac_precious_vars='build_alias 727host_alias 728target_alias 729CC 730CFLAGS 731LDFLAGS 732CPPFLAGS 733CPP' 734 735 736# Initialize some variables set by options. 737ac_init_help= 738ac_init_version=false 739# The variables have the same names as the options, with 740# dashes changed to underlines. 741cache_file=/dev/null 742exec_prefix=NONE 743no_create= 744no_recursion= 745prefix=NONE 746program_prefix=NONE 747program_suffix=NONE 748program_transform_name=s,x,x, 749silent= 750site= 751srcdir= 752verbose= 753x_includes=NONE 754x_libraries=NONE 755 756# Installation directory options. 757# These are left unexpanded so users can "make install exec_prefix=/foo" 758# and all the variables that are supposed to be based on exec_prefix 759# by default will actually change. 760# Use braces instead of parens because sh, perl, etc. also accept them. 761# (The list follows the same order as the GNU Coding Standards.) 762bindir='${exec_prefix}/bin' 763sbindir='${exec_prefix}/sbin' 764libexecdir='${exec_prefix}/libexec' 765datarootdir='${prefix}/share' 766datadir='${datarootdir}' 767sysconfdir='${prefix}/etc' 768sharedstatedir='${prefix}/com' 769localstatedir='${prefix}/var' 770includedir='${prefix}/include' 771oldincludedir='/usr/include' 772docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 773infodir='${datarootdir}/info' 774htmldir='${docdir}' 775dvidir='${docdir}' 776pdfdir='${docdir}' 777psdir='${docdir}' 778libdir='${exec_prefix}/lib' 779localedir='${datarootdir}/locale' 780mandir='${datarootdir}/man' 781 782ac_prev= 783ac_dashdash= 784for ac_option 785do 786 # If the previous option needs an argument, assign it. 787 if test -n "$ac_prev"; then 788 eval $ac_prev=\$ac_option 789 ac_prev= 790 continue 791 fi 792 793 case $ac_option in 794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 795 *) ac_optarg=yes ;; 796 esac 797 798 # Accept the important Cygnus configure options, so we can diagnose typos. 799 800 case $ac_dashdash$ac_option in 801 --) 802 ac_dashdash=yes ;; 803 804 -bindir | --bindir | --bindi | --bind | --bin | --bi) 805 ac_prev=bindir ;; 806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 807 bindir=$ac_optarg ;; 808 809 -build | --build | --buil | --bui | --bu) 810 ac_prev=build_alias ;; 811 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 812 build_alias=$ac_optarg ;; 813 814 -cache-file | --cache-file | --cache-fil | --cache-fi \ 815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 816 ac_prev=cache_file ;; 817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 819 cache_file=$ac_optarg ;; 820 821 --config-cache | -C) 822 cache_file=config.cache ;; 823 824 -datadir | --datadir | --datadi | --datad) 825 ac_prev=datadir ;; 826 -datadir=* | --datadir=* | --datadi=* | --datad=*) 827 datadir=$ac_optarg ;; 828 829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 830 | --dataroo | --dataro | --datar) 831 ac_prev=datarootdir ;; 832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 834 datarootdir=$ac_optarg ;; 835 836 -disable-* | --disable-*) 837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 838 # Reject names that are not valid shell variable names. 839 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 841 { (exit 1); exit 1; }; } 842 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 843 eval enable_$ac_feature=no ;; 844 845 -docdir | --docdir | --docdi | --doc | --do) 846 ac_prev=docdir ;; 847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 848 docdir=$ac_optarg ;; 849 850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 851 ac_prev=dvidir ;; 852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 853 dvidir=$ac_optarg ;; 854 855 -enable-* | --enable-*) 856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 860 { (exit 1); exit 1; }; } 861 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 862 eval enable_$ac_feature=\$ac_optarg ;; 863 864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 866 | --exec | --exe | --ex) 867 ac_prev=exec_prefix ;; 868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 870 | --exec=* | --exe=* | --ex=*) 871 exec_prefix=$ac_optarg ;; 872 873 -gas | --gas | --ga | --g) 874 # Obsolete; use --with-gas. 875 with_gas=yes ;; 876 877 -help | --help | --hel | --he | -h) 878 ac_init_help=long ;; 879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 880 ac_init_help=recursive ;; 881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 882 ac_init_help=short ;; 883 884 -host | --host | --hos | --ho) 885 ac_prev=host_alias ;; 886 -host=* | --host=* | --hos=* | --ho=*) 887 host_alias=$ac_optarg ;; 888 889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 890 ac_prev=htmldir ;; 891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 892 | --ht=*) 893 htmldir=$ac_optarg ;; 894 895 -includedir | --includedir | --includedi | --included | --include \ 896 | --includ | --inclu | --incl | --inc) 897 ac_prev=includedir ;; 898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 899 | --includ=* | --inclu=* | --incl=* | --inc=*) 900 includedir=$ac_optarg ;; 901 902 -infodir | --infodir | --infodi | --infod | --info | --inf) 903 ac_prev=infodir ;; 904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 905 infodir=$ac_optarg ;; 906 907 -libdir | --libdir | --libdi | --libd) 908 ac_prev=libdir ;; 909 -libdir=* | --libdir=* | --libdi=* | --libd=*) 910 libdir=$ac_optarg ;; 911 912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 913 | --libexe | --libex | --libe) 914 ac_prev=libexecdir ;; 915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 916 | --libexe=* | --libex=* | --libe=*) 917 libexecdir=$ac_optarg ;; 918 919 -localedir | --localedir | --localedi | --localed | --locale) 920 ac_prev=localedir ;; 921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 922 localedir=$ac_optarg ;; 923 924 -localstatedir | --localstatedir | --localstatedi | --localstated \ 925 | --localstate | --localstat | --localsta | --localst | --locals) 926 ac_prev=localstatedir ;; 927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 929 localstatedir=$ac_optarg ;; 930 931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 932 ac_prev=mandir ;; 933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 934 mandir=$ac_optarg ;; 935 936 -nfp | --nfp | --nf) 937 # Obsolete; use --without-fp. 938 with_fp=no ;; 939 940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 941 | --no-cr | --no-c | -n) 942 no_create=yes ;; 943 944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 946 no_recursion=yes ;; 947 948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 950 | --oldin | --oldi | --old | --ol | --o) 951 ac_prev=oldincludedir ;; 952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 955 oldincludedir=$ac_optarg ;; 956 957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 958 ac_prev=prefix ;; 959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 960 prefix=$ac_optarg ;; 961 962 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 963 | --program-pre | --program-pr | --program-p) 964 ac_prev=program_prefix ;; 965 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 967 program_prefix=$ac_optarg ;; 968 969 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 970 | --program-suf | --program-su | --program-s) 971 ac_prev=program_suffix ;; 972 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 974 program_suffix=$ac_optarg ;; 975 976 -program-transform-name | --program-transform-name \ 977 | --program-transform-nam | --program-transform-na \ 978 | --program-transform-n | --program-transform- \ 979 | --program-transform | --program-transfor \ 980 | --program-transfo | --program-transf \ 981 | --program-trans | --program-tran \ 982 | --progr-tra | --program-tr | --program-t) 983 ac_prev=program_transform_name ;; 984 -program-transform-name=* | --program-transform-name=* \ 985 | --program-transform-nam=* | --program-transform-na=* \ 986 | --program-transform-n=* | --program-transform-=* \ 987 | --program-transform=* | --program-transfor=* \ 988 | --program-transfo=* | --program-transf=* \ 989 | --program-trans=* | --program-tran=* \ 990 | --progr-tra=* | --program-tr=* | --program-t=*) 991 program_transform_name=$ac_optarg ;; 992 993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 994 ac_prev=pdfdir ;; 995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 996 pdfdir=$ac_optarg ;; 997 998 -psdir | --psdir | --psdi | --psd | --ps) 999 ac_prev=psdir ;; 1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1001 psdir=$ac_optarg ;; 1002 1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1004 | -silent | --silent | --silen | --sile | --sil) 1005 silent=yes ;; 1006 1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1008 ac_prev=sbindir ;; 1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1010 | --sbi=* | --sb=*) 1011 sbindir=$ac_optarg ;; 1012 1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1015 | --sharedst | --shareds | --shared | --share | --shar \ 1016 | --sha | --sh) 1017 ac_prev=sharedstatedir ;; 1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1021 | --sha=* | --sh=*) 1022 sharedstatedir=$ac_optarg ;; 1023 1024 -site | --site | --sit) 1025 ac_prev=site ;; 1026 -site=* | --site=* | --sit=*) 1027 site=$ac_optarg ;; 1028 1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1030 ac_prev=srcdir ;; 1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1032 srcdir=$ac_optarg ;; 1033 1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1035 | --syscon | --sysco | --sysc | --sys | --sy) 1036 ac_prev=sysconfdir ;; 1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1039 sysconfdir=$ac_optarg ;; 1040 1041 -target | --target | --targe | --targ | --tar | --ta | --t) 1042 ac_prev=target_alias ;; 1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1044 target_alias=$ac_optarg ;; 1045 1046 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1047 verbose=yes ;; 1048 1049 -version | --version | --versio | --versi | --vers | -V) 1050 ac_init_version=: ;; 1051 1052 -with-* | --with-*) 1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1056 { echo "$as_me: error: invalid package name: $ac_package" >&2 1057 { (exit 1); exit 1; }; } 1058 ac_package=`echo $ac_package| sed 's/-/_/g'` 1059 eval with_$ac_package=\$ac_optarg ;; 1060 1061 -without-* | --without-*) 1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_package=`echo $ac_package | sed 's/-/_/g'` 1068 eval with_$ac_package=no ;; 1069 1070 --x) 1071 # Obsolete; use --with-x. 1072 with_x=yes ;; 1073 1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1075 | --x-incl | --x-inc | --x-in | --x-i) 1076 ac_prev=x_includes ;; 1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1079 x_includes=$ac_optarg ;; 1080 1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1083 ac_prev=x_libraries ;; 1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1086 x_libraries=$ac_optarg ;; 1087 1088 -*) { echo "$as_me: error: unrecognized option: $ac_option 1089Try \`$0 --help' for more information." >&2 1090 { (exit 1); exit 1; }; } 1091 ;; 1092 1093 *=*) 1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1095 # Reject names that are not valid shell variable names. 1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1098 { (exit 1); exit 1; }; } 1099 eval $ac_envvar=\$ac_optarg 1100 export $ac_envvar ;; 1101 1102 *) 1103 # FIXME: should be removed in autoconf 3.0. 1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1108 ;; 1109 1110 esac 1111done 1112 1113if test -n "$ac_prev"; then 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1115 { echo "$as_me: error: missing argument to $ac_option" >&2 1116 { (exit 1); exit 1; }; } 1117fi 1118 1119# Be sure to have absolute directory names. 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1123 libdir localedir mandir 1124do 1125 eval ac_val=\$$ac_var 1126 case $ac_val in 1127 [\\/$]* | ?:[\\/]* ) continue;; 1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1129 esac 1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1131 { (exit 1); exit 1; }; } 1132done 1133 1134# There might be people who depend on the old broken behavior: `$host' 1135# used to hold the argument of --host etc. 1136# FIXME: To remove some day. 1137build=$build_alias 1138host=$host_alias 1139target=$target_alias 1140 1141# FIXME: To remove some day. 1142if test "x$host_alias" != x; then 1143 if test "x$build_alias" = x; then 1144 cross_compiling=maybe 1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1146 If a cross compiler is detected then cross compile mode will be used." >&2 1147 elif test "x$build_alias" != "x$host_alias"; then 1148 cross_compiling=yes 1149 fi 1150fi 1151 1152ac_tool_prefix= 1153test -n "$host_alias" && ac_tool_prefix=$host_alias- 1154 1155test "$silent" = yes && exec 6>/dev/null 1156 1157 1158ac_pwd=`pwd` && test -n "$ac_pwd" && 1159ac_ls_di=`ls -di .` && 1160ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1161 { echo "$as_me: error: Working directory cannot be determined" >&2 1162 { (exit 1); exit 1; }; } 1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1164 { echo "$as_me: error: pwd does not report name of working directory" >&2 1165 { (exit 1); exit 1; }; } 1166 1167 1168# Find the source files, if location was not specified. 1169if test -z "$srcdir"; then 1170 ac_srcdir_defaulted=yes 1171 # Try the directory containing this script, then the parent directory. 1172 ac_confdir=`$as_dirname -- "$0" || 1173$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1174 X"$0" : 'X\(//\)[^/]' \| \ 1175 X"$0" : 'X\(//\)$' \| \ 1176 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1177echo X"$0" | 1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)[^/].*/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\).*/{ 1191 s//\1/ 1192 q 1193 } 1194 s/.*/./; q'` 1195 srcdir=$ac_confdir 1196 if test ! -r "$srcdir/$ac_unique_file"; then 1197 srcdir=.. 1198 fi 1199else 1200 ac_srcdir_defaulted=no 1201fi 1202if test ! -r "$srcdir/$ac_unique_file"; then 1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1205 { (exit 1); exit 1; }; } 1206fi 1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1208ac_abs_confdir=`( 1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1210 { (exit 1); exit 1; }; } 1211 pwd)` 1212# When building in place, set srcdir=. 1213if test "$ac_abs_confdir" = "$ac_pwd"; then 1214 srcdir=. 1215fi 1216# Remove unnecessary trailing slashes from srcdir. 1217# Double slashes in file names in object file debugging info 1218# mess up M-x gdb in Emacs. 1219case $srcdir in 1220*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1221esac 1222for ac_var in $ac_precious_vars; do 1223 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_env_${ac_var}_value=\$${ac_var} 1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1226 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1227done 1228 1229# 1230# Report the --help message. 1231# 1232if test "$ac_init_help" = "long"; then 1233 # Omit some internal or obsolete options to make the list less imposing. 1234 # This message is too long to be a string in the A/UX 3.1 sh. 1235 cat <<_ACEOF 1236\`configure' configures microdc2 0.15.6 to adapt to many kinds of systems. 1237 1238Usage: $0 [OPTION]... [VAR=VALUE]... 1239 1240To assign environment variables (e.g., CC, CFLAGS...), specify them as 1241VAR=VALUE. See below for descriptions of some of the useful variables. 1242 1243Defaults for the options are specified in brackets. 1244 1245Configuration: 1246 -h, --help display this help and exit 1247 --help=short display options specific to this package 1248 --help=recursive display the short help of all the included packages 1249 -V, --version display version information and exit 1250 -q, --quiet, --silent do not print \`checking...' messages 1251 --cache-file=FILE cache test results in FILE [disabled] 1252 -C, --config-cache alias for \`--cache-file=config.cache' 1253 -n, --no-create do not create output files 1254 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1255 1256Installation directories: 1257 --prefix=PREFIX install architecture-independent files in PREFIX 1258 [$ac_default_prefix] 1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1260 [PREFIX] 1261 1262By default, \`make install' will install all the files in 1263\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1264an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1265for instance \`--prefix=\$HOME'. 1266 1267For better control, use the options below. 1268 1269Fine tuning of the installation directories: 1270 --bindir=DIR user executables [EPREFIX/bin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin] 1272 --libexecdir=DIR program executables [EPREFIX/libexec] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1276 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --includedir=DIR C header files [PREFIX/include] 1278 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --infodir=DIR info documentation [DATAROOTDIR/info] 1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1283 --mandir=DIR man documentation [DATAROOTDIR/man] 1284 --docdir=DIR documentation root [DATAROOTDIR/doc/microdc2] 1285 --htmldir=DIR html documentation [DOCDIR] 1286 --dvidir=DIR dvi documentation [DOCDIR] 1287 --pdfdir=DIR pdf documentation [DOCDIR] 1288 --psdir=DIR ps documentation [DOCDIR] 1289_ACEOF 1290 1291 cat <<\_ACEOF 1292 1293Program names: 1294 --program-prefix=PREFIX prepend PREFIX to installed program names 1295 --program-suffix=SUFFIX append SUFFIX to installed program names 1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1297 1298System types: 1299 --build=BUILD configure for building on BUILD [guessed] 1300 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1301_ACEOF 1302fi 1303 1304if test -n "$ac_init_help"; then 1305 case $ac_init_help in 1306 short | recursive ) echo "Configuration of microdc2 0.15.6:";; 1307 esac 1308 cat <<\_ACEOF 1309 1310Optional Features: 1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1313 --enable-maintainer-mode enable make rules and dependencies not useful 1314 (and sometimes confusing) to the casual installer 1315 --disable-dependency-tracking speeds up one-time build 1316 --enable-dependency-tracking do not reject slow dependency extractors 1317 --disable-rpath do not hardcode runtime library paths 1318 --disable-nls do not use Native Language Support 1319 --disable-largefile omit support for large files 1320 1321Optional Packages: 1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1324 --with-gnu-ld assume the C compiler uses GNU ld default=no 1325 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1326 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1327 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1328 --without-libintl-prefix don't search for libintl in includedir and libdir 1329 1330Some influential environment variables: 1331 CC C compiler command 1332 CFLAGS C compiler flags 1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1334 nonstandard directory <lib dir> 1335 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1336 you have headers in a nonstandard directory <include dir> 1337 CPP C preprocessor 1338 1339Use these variables to override the choices made by `configure' or to help 1340it to find libraries and programs with nonstandard names/locations. 1341 1342Report bugs to <vladch@k804.mainet.msk.su>. 1343_ACEOF 1344ac_status=$? 1345fi 1346 1347if test "$ac_init_help" = "recursive"; then 1348 # If there are subdirs, report their specific --help. 1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1350 test -d "$ac_dir" || continue 1351 ac_builddir=. 1352 1353case "$ac_dir" in 1354.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1355*) 1356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1357 # A ".." for each directory in $ac_dir_suffix. 1358 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1359 case $ac_top_builddir_sub in 1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1362 esac ;; 1363esac 1364ac_abs_top_builddir=$ac_pwd 1365ac_abs_builddir=$ac_pwd$ac_dir_suffix 1366# for backward compatibility: 1367ac_top_builddir=$ac_top_build_prefix 1368 1369case $srcdir in 1370 .) # We are building in place. 1371 ac_srcdir=. 1372 ac_top_srcdir=$ac_top_builddir_sub 1373 ac_abs_top_srcdir=$ac_pwd ;; 1374 [\\/]* | ?:[\\/]* ) # Absolute name. 1375 ac_srcdir=$srcdir$ac_dir_suffix; 1376 ac_top_srcdir=$srcdir 1377 ac_abs_top_srcdir=$srcdir ;; 1378 *) # Relative name. 1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1380 ac_top_srcdir=$ac_top_build_prefix$srcdir 1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1382esac 1383ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1384 1385 cd "$ac_dir" || { ac_status=$?; continue; } 1386 # Check for guested configure. 1387 if test -f "$ac_srcdir/configure.gnu"; then 1388 echo && 1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1390 elif test -f "$ac_srcdir/configure"; then 1391 echo && 1392 $SHELL "$ac_srcdir/configure" --help=recursive 1393 else 1394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1395 fi || ac_status=$? 1396 cd "$ac_pwd" || { ac_status=$?; break; } 1397 done 1398fi 1399 1400test -n "$ac_init_help" && exit $ac_status 1401if $ac_init_version; then 1402 cat <<\_ACEOF 1403microdc2 configure 0.15.6 1404generated by GNU Autoconf 2.60 1405 1406Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14072002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1408This configure script is free software; the Free Software Foundation 1409gives unlimited permission to copy, distribute and modify it. 1410_ACEOF 1411 exit 1412fi 1413cat >config.log <<_ACEOF 1414This file contains any messages produced by compilers while 1415running configure, to aid debugging if configure makes a mistake. 1416 1417It was created by microdc2 $as_me 0.15.6, which was 1418generated by GNU Autoconf 2.60. Invocation command line was 1419 1420 $ $0 $@ 1421 1422_ACEOF 1423exec 5>>config.log 1424{ 1425cat <<_ASUNAME 1426## --------- ## 1427## Platform. ## 1428## --------- ## 1429 1430hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1431uname -m = `(uname -m) 2>/dev/null || echo unknown` 1432uname -r = `(uname -r) 2>/dev/null || echo unknown` 1433uname -s = `(uname -s) 2>/dev/null || echo unknown` 1434uname -v = `(uname -v) 2>/dev/null || echo unknown` 1435 1436/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1437/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1438 1439/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1440/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1441/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1442/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1443/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1444/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1445/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1446 1447_ASUNAME 1448 1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1450for as_dir in $PATH 1451do 1452 IFS=$as_save_IFS 1453 test -z "$as_dir" && as_dir=. 1454 echo "PATH: $as_dir" 1455done 1456IFS=$as_save_IFS 1457 1458} >&5 1459 1460cat >&5 <<_ACEOF 1461 1462 1463## ----------- ## 1464## Core tests. ## 1465## ----------- ## 1466 1467_ACEOF 1468 1469 1470# Keep a trace of the command line. 1471# Strip out --no-create and --no-recursion so they do not pile up. 1472# Strip out --silent because we don't want to record it for future runs. 1473# Also quote any args containing shell meta-characters. 1474# Make two passes to allow for proper duplicate-argument suppression. 1475ac_configure_args= 1476ac_configure_args0= 1477ac_configure_args1= 1478ac_must_keep_next=false 1479for ac_pass in 1 2 1480do 1481 for ac_arg 1482 do 1483 case $ac_arg in 1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1486 | -silent | --silent | --silen | --sile | --sil) 1487 continue ;; 1488 *\'*) 1489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1490 esac 1491 case $ac_pass in 1492 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1493 2) 1494 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1495 if test $ac_must_keep_next = true; then 1496 ac_must_keep_next=false # Got value, back to normal. 1497 else 1498 case $ac_arg in 1499 *=* | --config-cache | -C | -disable-* | --disable-* \ 1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1502 | -with-* | --with-* | -without-* | --without-* | --x) 1503 case "$ac_configure_args0 " in 1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1505 esac 1506 ;; 1507 -* ) ac_must_keep_next=true ;; 1508 esac 1509 fi 1510 ac_configure_args="$ac_configure_args '$ac_arg'" 1511 ;; 1512 esac 1513 done 1514done 1515$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1516$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1517 1518# When interrupted or exit'd, cleanup temporary files, and complete 1519# config.log. We remove comments because anyway the quotes in there 1520# would cause problems or look ugly. 1521# WARNING: Use '\'' to represent an apostrophe within the trap. 1522# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1523trap 'exit_status=$? 1524 # Save into config.log some information that might help in debugging. 1525 { 1526 echo 1527 1528 cat <<\_ASBOX 1529## ---------------- ## 1530## Cache variables. ## 1531## ---------------- ## 1532_ASBOX 1533 echo 1534 # The following way of writing the cache mishandles newlines in values, 1535( 1536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1537 eval ac_val=\$$ac_var 1538 case $ac_val in #( 1539 *${as_nl}*) 1540 case $ac_var in #( 1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1542echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1543 esac 1544 case $ac_var in #( 1545 _ | IFS | as_nl) ;; #( 1546 *) $as_unset $ac_var ;; 1547 esac ;; 1548 esac 1549 done 1550 (set) 2>&1 | 1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1552 *${as_nl}ac_space=\ *) 1553 sed -n \ 1554 "s/'\''/'\''\\\\'\'''\''/g; 1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1556 ;; #( 1557 *) 1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1559 ;; 1560 esac | 1561 sort 1562) 1563 echo 1564 1565 cat <<\_ASBOX 1566## ----------------- ## 1567## Output variables. ## 1568## ----------------- ## 1569_ASBOX 1570 echo 1571 for ac_var in $ac_subst_vars 1572 do 1573 eval ac_val=\$$ac_var 1574 case $ac_val in 1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1576 esac 1577 echo "$ac_var='\''$ac_val'\''" 1578 done | sort 1579 echo 1580 1581 if test -n "$ac_subst_files"; then 1582 cat <<\_ASBOX 1583## ------------------- ## 1584## File substitutions. ## 1585## ------------------- ## 1586_ASBOX 1587 echo 1588 for ac_var in $ac_subst_files 1589 do 1590 eval ac_val=\$$ac_var 1591 case $ac_val in 1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1593 esac 1594 echo "$ac_var='\''$ac_val'\''" 1595 done | sort 1596 echo 1597 fi 1598 1599 if test -s confdefs.h; then 1600 cat <<\_ASBOX 1601## ----------- ## 1602## confdefs.h. ## 1603## ----------- ## 1604_ASBOX 1605 echo 1606 cat confdefs.h 1607 echo 1608 fi 1609 test "$ac_signal" != 0 && 1610 echo "$as_me: caught signal $ac_signal" 1611 echo "$as_me: exit $exit_status" 1612 } >&5 1613 rm -f core *.core core.conftest.* && 1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1615 exit $exit_status 1616' 0 1617for ac_signal in 1 2 13 15; do 1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1619done 1620ac_signal=0 1621 1622# confdefs.h avoids OS command line length limits that DEFS can exceed. 1623rm -f -r conftest* confdefs.h 1624 1625# Predefined preprocessor variables. 1626 1627cat >>confdefs.h <<_ACEOF 1628#define PACKAGE_NAME "$PACKAGE_NAME" 1629_ACEOF 1630 1631 1632cat >>confdefs.h <<_ACEOF 1633#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1634_ACEOF 1635 1636 1637cat >>confdefs.h <<_ACEOF 1638#define PACKAGE_VERSION "$PACKAGE_VERSION" 1639_ACEOF 1640 1641 1642cat >>confdefs.h <<_ACEOF 1643#define PACKAGE_STRING "$PACKAGE_STRING" 1644_ACEOF 1645 1646 1647cat >>confdefs.h <<_ACEOF 1648#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1649_ACEOF 1650 1651 1652# Let the site file select an alternate cache file if it wants to. 1653# Prefer explicitly selected file to automatically selected ones. 1654if test -n "$CONFIG_SITE"; then 1655 set x "$CONFIG_SITE" 1656elif test "x$prefix" != xNONE; then 1657 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1658else 1659 set x "$ac_default_prefix/share/config.site" \ 1660 "$ac_default_prefix/etc/config.site" 1661fi 1662shift 1663for ac_site_file 1664do 1665 if test -r "$ac_site_file"; then 1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1667echo "$as_me: loading site script $ac_site_file" >&6;} 1668 sed 's/^/| /' "$ac_site_file" >&5 1669 . "$ac_site_file" 1670 fi 1671done 1672 1673if test -r "$cache_file"; then 1674 # Some versions of bash will fail to source /dev/null (special 1675 # files actually), so we avoid doing that. 1676 if test -f "$cache_file"; then 1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1678echo "$as_me: loading cache $cache_file" >&6;} 1679 case $cache_file in 1680 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1681 *) . "./$cache_file";; 1682 esac 1683 fi 1684else 1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1686echo "$as_me: creating cache $cache_file" >&6;} 1687 >$cache_file 1688fi 1689 1690gl_header_list="$gl_header_list netinet/in.h" 1691gl_header_list="$gl_header_list wchar.h" 1692gl_header_list="$gl_header_list wctype.h" 1693gl_func_list="$gl_func_list iswprint" 1694gl_func_list="$gl_func_list mbsinit" 1695gl_header_list="$gl_header_list sys/types.h" 1696gl_header_list="$gl_header_list sys/socket.h" 1697gl_func_list="$gl_func_list mblen" 1698gl_func_list="$gl_func_list mbrlen" 1699gl_func_list="$gl_func_list mempcpy" 1700gl_func_list="$gl_func_list tzset" 1701gl_header_list="$gl_header_list sys/time.h" 1702gl_func_list="$gl_func_list isascii" 1703# Check that the precious variables saved in the cache have kept the same 1704# value. 1705ac_cache_corrupted=false 1706for ac_var in $ac_precious_vars; do 1707 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1708 eval ac_new_set=\$ac_env_${ac_var}_set 1709 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1710 eval ac_new_val=\$ac_env_${ac_var}_value 1711 case $ac_old_set,$ac_new_set in 1712 set,) 1713 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1714echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1715 ac_cache_corrupted=: ;; 1716 ,set) 1717 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1718echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1719 ac_cache_corrupted=: ;; 1720 ,);; 1721 *) 1722 if test "x$ac_old_val" != "x$ac_new_val"; then 1723 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1724echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1725 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1726echo "$as_me: former value: $ac_old_val" >&2;} 1727 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1728echo "$as_me: current value: $ac_new_val" >&2;} 1729 ac_cache_corrupted=: 1730 fi;; 1731 esac 1732 # Pass precious variables to config.status. 1733 if test "$ac_new_set" = set; then 1734 case $ac_new_val in 1735 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1736 *) ac_arg=$ac_var=$ac_new_val ;; 1737 esac 1738 case " $ac_configure_args " in 1739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1740 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1741 esac 1742 fi 1743done 1744if $ac_cache_corrupted; then 1745 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1746echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1747 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1748echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1749 { (exit 1); exit 1; }; } 1750fi 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776ac_ext=c 1777ac_cpp='$CPP $CPPFLAGS' 1778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1780ac_compiler_gnu=$ac_cv_c_compiler_gnu 1781 1782 1783 1784ac_config_headers="$ac_config_headers config.h" 1785 1786case m4 in 1787 [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;; 1788 *) ac_macro_dir=$srcdir/m4 ;; 1789esac 1790test -d "$ac_macro_dir" || 1791 { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5 1792echo "$as_me: error: cannot find macro directory \`m4'" >&2;} 1793 { (exit 1); exit 1; }; } 1794 # doesn't seem to have any effect at the moment 1795ac_aux_dir= 1796for ac_dir in build-aux "$srcdir"/build-aux; do 1797 if test -f "$ac_dir/install-sh"; then 1798 ac_aux_dir=$ac_dir 1799 ac_install_sh="$ac_aux_dir/install-sh -c" 1800 break 1801 elif test -f "$ac_dir/install.sh"; then 1802 ac_aux_dir=$ac_dir 1803 ac_install_sh="$ac_aux_dir/install.sh -c" 1804 break 1805 elif test -f "$ac_dir/shtool"; then 1806 ac_aux_dir=$ac_dir 1807 ac_install_sh="$ac_aux_dir/shtool install -c" 1808 break 1809 fi 1810done 1811if test -z "$ac_aux_dir"; then 1812 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5 1813echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;} 1814 { (exit 1); exit 1; }; } 1815fi 1816 1817# These three variables are undocumented and unsupported, 1818# and are intended to be withdrawn in a future Autoconf release. 1819# They can cause serious problems if a builder's source tree is in a directory 1820# whose full name contains unusual characters. 1821ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1822ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1823ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1824 1825 1826am__api_version="1.9" 1827# Find a good install program. We prefer a C program (faster), 1828# so one script is as good as another. But avoid the broken or 1829# incompatible versions: 1830# SysV /etc/install, /usr/sbin/install 1831# SunOS /usr/etc/install 1832# IRIX /sbin/install 1833# AIX /bin/install 1834# AmigaOS /C/install, which installs bootblocks on floppy discs 1835# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1836# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1837# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1838# OS/2's system install, which has a completely different semantic 1839# ./install, which can be erroneously created by make from ./install.sh. 1840{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1841echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1842if test -z "$INSTALL"; then 1843if test "${ac_cv_path_install+set}" = set; then 1844 echo $ECHO_N "(cached) $ECHO_C" >&6 1845else 1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1847for as_dir in $PATH 1848do 1849 IFS=$as_save_IFS 1850 test -z "$as_dir" && as_dir=. 1851 # Account for people who put trailing slashes in PATH elements. 1852case $as_dir/ in 1853 ./ | .// | /cC/* | \ 1854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1855 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1856 /usr/ucb/* ) ;; 1857 *) 1858 # OSF1 and SCO ODT 3.0 have their own names for install. 1859 # Don't use installbsd from OSF since it installs stuff as root 1860 # by default. 1861 for ac_prog in ginstall scoinst install; do 1862 for ac_exec_ext in '' $ac_executable_extensions; do 1863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1864 if test $ac_prog = install && 1865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1866 # AIX install. It has an incompatible calling convention. 1867 : 1868 elif test $ac_prog = install && 1869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1870 # program-specific install script used by HP pwplus--don't use. 1871 : 1872 else 1873 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1874 break 3 1875 fi 1876 fi 1877 done 1878 done 1879 ;; 1880esac 1881done 1882IFS=$as_save_IFS 1883 1884 1885fi 1886 if test "${ac_cv_path_install+set}" = set; then 1887 INSTALL=$ac_cv_path_install 1888 else 1889 # As a last resort, use the slow shell script. Don't cache a 1890 # value for INSTALL within a source directory, because that will 1891 # break other packages using the cache if that directory is 1892 # removed, or if the value is a relative name. 1893 INSTALL=$ac_install_sh 1894 fi 1895fi 1896{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1897echo "${ECHO_T}$INSTALL" >&6; } 1898 1899# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1900# It thinks the first close brace ends the variable substitution. 1901test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1902 1903test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1904 1905test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1906 1907{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1908echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1909# Just in case 1910sleep 1 1911echo timestamp > conftest.file 1912# Do `set' in a subshell so we don't clobber the current shell's 1913# arguments. Must try -L first in case configure is actually a 1914# symlink; some systems play weird games with the mod time of symlinks 1915# (eg FreeBSD returns the mod time of the symlink's containing 1916# directory). 1917if ( 1918 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1919 if test "$*" = "X"; then 1920 # -L didn't work. 1921 set X `ls -t $srcdir/configure conftest.file` 1922 fi 1923 rm -f conftest.file 1924 if test "$*" != "X $srcdir/configure conftest.file" \ 1925 && test "$*" != "X conftest.file $srcdir/configure"; then 1926 1927 # If neither matched, then we have a broken ls. This can happen 1928 # if, for instance, CONFIG_SHELL is bash and it inherits a 1929 # broken ls alias from the environment. This has actually 1930 # happened. Such a system could not be considered "sane". 1931 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1932alias in your environment" >&5 1933echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1934alias in your environment" >&2;} 1935 { (exit 1); exit 1; }; } 1936 fi 1937 1938 test "$2" = conftest.file 1939 ) 1940then 1941 # Ok. 1942 : 1943else 1944 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1945Check your system clock" >&5 1946echo "$as_me: error: newly created file is older than distributed files! 1947Check your system clock" >&2;} 1948 { (exit 1); exit 1; }; } 1949fi 1950{ echo "$as_me:$LINENO: result: yes" >&5 1951echo "${ECHO_T}yes" >&6; } 1952test "$program_prefix" != NONE && 1953 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1954# Use a double $ so make ignores it. 1955test "$program_suffix" != NONE && 1956 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1957# Double any \ or $. echo might interpret backslashes. 1958# By default was `s,x,x', remove it if useless. 1959cat <<\_ACEOF >conftest.sed 1960s/[\\$]/&&/g;s/;s,x,x,$// 1961_ACEOF 1962program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1963rm -f conftest.sed 1964 1965# expand $ac_aux_dir to an absolute path 1966am_aux_dir=`cd $ac_aux_dir && pwd` 1967 1968test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1969# Use eval to expand $SHELL 1970if eval "$MISSING --run true"; then 1971 am_missing_run="$MISSING --run " 1972else 1973 am_missing_run= 1974 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1975echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1976fi 1977 1978if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1979 # We used to keeping the `.' as first argument, in order to 1980 # allow $(mkdir_p) to be used without argument. As in 1981 # $(mkdir_p) $(somedir) 1982 # where $(somedir) is conditionally defined. However this is wrong 1983 # for two reasons: 1984 # 1. if the package is installed by a user who cannot write `.' 1985 # make install will fail, 1986 # 2. the above comment should most certainly read 1987 # $(mkdir_p) $(DESTDIR)$(somedir) 1988 # so it does not work when $(somedir) is undefined and 1989 # $(DESTDIR) is not. 1990 # To support the latter case, we have to write 1991 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1992 # so the `.' trick is pointless. 1993 mkdir_p='mkdir -p --' 1994else 1995 # On NextStep and OpenStep, the `mkdir' command does not 1996 # recognize any option. It will interpret all options as 1997 # directories to create, and then abort because `.' already 1998 # exists. 1999 for d in ./-p ./--version; 2000 do 2001 test -d $d && rmdir $d 2002 done 2003 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2004 if test -f "$ac_aux_dir/mkinstalldirs"; then 2005 mkdir_p='$(mkinstalldirs)' 2006 else 2007 mkdir_p='$(install_sh) -d' 2008 fi 2009fi 2010 2011for ac_prog in gawk mawk nawk awk 2012do 2013 # Extract the first word of "$ac_prog", so it can be a program name with args. 2014set dummy $ac_prog; ac_word=$2 2015{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2017if test "${ac_cv_prog_AWK+set}" = set; then 2018 echo $ECHO_N "(cached) $ECHO_C" >&6 2019else 2020 if test -n "$AWK"; then 2021 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2022else 2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2024for as_dir in $PATH 2025do 2026 IFS=$as_save_IFS 2027 test -z "$as_dir" && as_dir=. 2028 for ac_exec_ext in '' $ac_executable_extensions; do 2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2030 ac_cv_prog_AWK="$ac_prog" 2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2032 break 2 2033 fi 2034done 2035done 2036IFS=$as_save_IFS 2037 2038fi 2039fi 2040AWK=$ac_cv_prog_AWK 2041if test -n "$AWK"; then 2042 { echo "$as_me:$LINENO: result: $AWK" >&5 2043echo "${ECHO_T}$AWK" >&6; } 2044else 2045 { echo "$as_me:$LINENO: result: no" >&5 2046echo "${ECHO_T}no" >&6; } 2047fi 2048 2049 2050 test -n "$AWK" && break 2051done 2052 2053{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2054echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2055set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2056if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058else 2059 cat >conftest.make <<\_ACEOF 2060SHELL = /bin/sh 2061all: 2062 @echo '@@@%%%=$(MAKE)=@@@%%%' 2063_ACEOF 2064# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2065case `${MAKE-make} -f conftest.make 2>/dev/null` in 2066 *@@@%%%=?*=@@@%%%*) 2067 eval ac_cv_prog_make_${ac_make}_set=yes;; 2068 *) 2069 eval ac_cv_prog_make_${ac_make}_set=no;; 2070esac 2071rm -f conftest.make 2072fi 2073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2074 { echo "$as_me:$LINENO: result: yes" >&5 2075echo "${ECHO_T}yes" >&6; } 2076 SET_MAKE= 2077else 2078 { echo "$as_me:$LINENO: result: no" >&5 2079echo "${ECHO_T}no" >&6; } 2080 SET_MAKE="MAKE=${MAKE-make}" 2081fi 2082 2083rm -rf .tst 2>/dev/null 2084mkdir .tst 2>/dev/null 2085if test -d .tst; then 2086 am__leading_dot=. 2087else 2088 am__leading_dot=_ 2089fi 2090rmdir .tst 2>/dev/null 2091 2092# test to see if srcdir already configured 2093if test "`cd $srcdir && pwd`" != "`pwd`" && 2094 test -f $srcdir/config.status; then 2095 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2096echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2097 { (exit 1); exit 1; }; } 2098fi 2099 2100# test whether we have cygpath 2101if test -z "$CYGPATH_W"; then 2102 if (cygpath --version) >/dev/null 2>/dev/null; then 2103 CYGPATH_W='cygpath -w' 2104 else 2105 CYGPATH_W=echo 2106 fi 2107fi 2108 2109 2110# Define the identity of the package. 2111 PACKAGE='microdc2' 2112 VERSION='0.15.6' 2113 2114 2115cat >>confdefs.h <<_ACEOF 2116#define PACKAGE "$PACKAGE" 2117_ACEOF 2118 2119 2120cat >>confdefs.h <<_ACEOF 2121#define VERSION "$VERSION" 2122_ACEOF 2123 2124# Some tools Automake needs. 2125 2126ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2127 2128 2129AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2130 2131 2132AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2133 2134 2135AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2136 2137 2138MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2139 2140install_sh=${install_sh-"$am_aux_dir/install-sh"} 2141 2142# Installed binaries are usually stripped using `strip' when the user 2143# run `make install-strip'. However `strip' might not be the right 2144# tool to use in cross-compilation environments, therefore Automake 2145# will honor the `STRIP' environment variable to overrule this program. 2146if test "$cross_compiling" != no; then 2147 if test -n "$ac_tool_prefix"; then 2148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2149set dummy ${ac_tool_prefix}strip; ac_word=$2 2150{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2152if test "${ac_cv_prog_STRIP+set}" = set; then 2153 echo $ECHO_N "(cached) $ECHO_C" >&6 2154else 2155 if test -n "$STRIP"; then 2156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2157else 2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2159for as_dir in $PATH 2160do 2161 IFS=$as_save_IFS 2162 test -z "$as_dir" && as_dir=. 2163 for ac_exec_ext in '' $ac_executable_extensions; do 2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2165 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2167 break 2 2168 fi 2169done 2170done 2171IFS=$as_save_IFS 2172 2173fi 2174fi 2175STRIP=$ac_cv_prog_STRIP 2176if test -n "$STRIP"; then 2177 { echo "$as_me:$LINENO: result: $STRIP" >&5 2178echo "${ECHO_T}$STRIP" >&6; } 2179else 2180 { echo "$as_me:$LINENO: result: no" >&5 2181echo "${ECHO_T}no" >&6; } 2182fi 2183 2184 2185fi 2186if test -z "$ac_cv_prog_STRIP"; then 2187 ac_ct_STRIP=$STRIP 2188 # Extract the first word of "strip", so it can be a program name with args. 2189set dummy strip; ac_word=$2 2190{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2192if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2193 echo $ECHO_N "(cached) $ECHO_C" >&6 2194else 2195 if test -n "$ac_ct_STRIP"; then 2196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2197else 2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2199for as_dir in $PATH 2200do 2201 IFS=$as_save_IFS 2202 test -z "$as_dir" && as_dir=. 2203 for ac_exec_ext in '' $ac_executable_extensions; do 2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2205 ac_cv_prog_ac_ct_STRIP="strip" 2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2207 break 2 2208 fi 2209done 2210done 2211IFS=$as_save_IFS 2212 2213fi 2214fi 2215ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2216if test -n "$ac_ct_STRIP"; then 2217 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2218echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2219else 2220 { echo "$as_me:$LINENO: result: no" >&5 2221echo "${ECHO_T}no" >&6; } 2222fi 2223 2224 if test "x$ac_ct_STRIP" = x; then 2225 STRIP=":" 2226 else 2227 case $cross_compiling:$ac_tool_warned in 2228yes:) 2229{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2230whose name does not start with the host triplet. If you think this 2231configuration is useful to you, please write to autoconf@gnu.org." >&5 2232echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2233whose name does not start with the host triplet. If you think this 2234configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2235ac_tool_warned=yes ;; 2236esac 2237 STRIP=$ac_ct_STRIP 2238 fi 2239else 2240 STRIP="$ac_cv_prog_STRIP" 2241fi 2242 2243fi 2244INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2245 2246# We need awk for the "check" target. The system "awk" is bad on 2247# some platforms. 2248# Always define AMTAR for backward compatibility. 2249 2250AMTAR=${AMTAR-"${am_missing_run}tar"} 2251 2252am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2253 2254 2255 2256 2257 2258 2259# Initialize config.h 2260 2261cat >>confdefs.h <<\_ACEOF 2262#define _GNU_SOURCE 1 2263_ACEOF 2264 2265 2266 2267 prefix_NONE= 2268 exec_prefix_NONE= 2269 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 2270 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 2271 eval ac_define_dir="\"$datadir/locale\"" 2272 eval ac_define_dir="\"$ac_define_dir\"" 2273 LOCALEDIR="$ac_define_dir" 2274 2275 2276cat >>confdefs.h <<_ACEOF 2277#define LOCALEDIR "$ac_define_dir" 2278_ACEOF 2279 2280 test "$prefix_NONE" && prefix=NONE 2281 test "$exec_prefix_NONE" && exec_prefix=NONE 2282 2283 2284# Enable maintainer mode 2285{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2286echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2287 # Check whether --enable-maintainer-mode was given. 2288if test "${enable_maintainer_mode+set}" = set; then 2289 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2290else 2291 USE_MAINTAINER_MODE=no 2292fi 2293 2294 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2295echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2296 2297 2298if test $USE_MAINTAINER_MODE = yes; then 2299 MAINTAINER_MODE_TRUE= 2300 MAINTAINER_MODE_FALSE='#' 2301else 2302 MAINTAINER_MODE_TRUE='#' 2303 MAINTAINER_MODE_FALSE= 2304fi 2305 2306 MAINT=$MAINTAINER_MODE_TRUE 2307 2308 2309 2310# Gnulib 2311DEPDIR="${am__leading_dot}deps" 2312 2313ac_config_commands="$ac_config_commands depfiles" 2314 2315 2316am_make=${MAKE-make} 2317cat > confinc << 'END' 2318am__doit: 2319 @echo done 2320.PHONY: am__doit 2321END 2322# If we don't find an include directive, just comment out the code. 2323{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2324echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2325am__include="#" 2326am__quote= 2327_am_result=none 2328# First try GNU make style include. 2329echo "include confinc" > confmf 2330# We grep out `Entering directory' and `Leaving directory' 2331# messages which can occur if `w' ends up in MAKEFLAGS. 2332# In particular we don't look at `^make:' because GNU make might 2333# be invoked under some other name (usually "gmake"), in which 2334# case it prints its new name instead of `make'. 2335if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2336 am__include=include 2337 am__quote= 2338 _am_result=GNU 2339fi 2340# Now try BSD make style include. 2341if test "$am__include" = "#"; then 2342 echo '.include "confinc"' > confmf 2343 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2344 am__include=.include 2345 am__quote="\"" 2346 _am_result=BSD 2347 fi 2348fi 2349 2350 2351{ echo "$as_me:$LINENO: result: $_am_result" >&5 2352echo "${ECHO_T}$_am_result" >&6; } 2353rm -f confinc confmf 2354 2355# Check whether --enable-dependency-tracking was given. 2356if test "${enable_dependency_tracking+set}" = set; then 2357 enableval=$enable_dependency_tracking; 2358fi 2359 2360if test "x$enable_dependency_tracking" != xno; then 2361 am_depcomp="$ac_aux_dir/depcomp" 2362 AMDEPBACKSLASH='\' 2363fi 2364 2365 2366if test "x$enable_dependency_tracking" != xno; then 2367 AMDEP_TRUE= 2368 AMDEP_FALSE='#' 2369else 2370 AMDEP_TRUE='#' 2371 AMDEP_FALSE= 2372fi 2373 2374 2375 2376ac_ext=c 2377ac_cpp='$CPP $CPPFLAGS' 2378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2380ac_compiler_gnu=$ac_cv_c_compiler_gnu 2381if test -n "$ac_tool_prefix"; then 2382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2383set dummy ${ac_tool_prefix}gcc; ac_word=$2 2384{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2386if test "${ac_cv_prog_CC+set}" = set; then 2387 echo $ECHO_N "(cached) $ECHO_C" >&6 2388else 2389 if test -n "$CC"; then 2390 ac_cv_prog_CC="$CC" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409CC=$ac_cv_prog_CC 2410if test -n "$CC"; then 2411 { echo "$as_me:$LINENO: result: $CC" >&5 2412echo "${ECHO_T}$CC" >&6; } 2413else 2414 { echo "$as_me:$LINENO: result: no" >&5 2415echo "${ECHO_T}no" >&6; } 2416fi 2417 2418 2419fi 2420if test -z "$ac_cv_prog_CC"; then 2421 ac_ct_CC=$CC 2422 # Extract the first word of "gcc", so it can be a program name with args. 2423set dummy gcc; ac_word=$2 2424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2426if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2427 echo $ECHO_N "(cached) $ECHO_C" >&6 2428else 2429 if test -n "$ac_ct_CC"; then 2430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 ac_cv_prog_ac_ct_CC="gcc" 2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449ac_ct_CC=$ac_cv_prog_ac_ct_CC 2450if test -n "$ac_ct_CC"; then 2451 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2452echo "${ECHO_T}$ac_ct_CC" >&6; } 2453else 2454 { echo "$as_me:$LINENO: result: no" >&5 2455echo "${ECHO_T}no" >&6; } 2456fi 2457 2458 if test "x$ac_ct_CC" = x; then 2459 CC="" 2460 else 2461 case $cross_compiling:$ac_tool_warned in 2462yes:) 2463{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2464whose name does not start with the host triplet. If you think this 2465configuration is useful to you, please write to autoconf@gnu.org." >&5 2466echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2467whose name does not start with the host triplet. If you think this 2468configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2469ac_tool_warned=yes ;; 2470esac 2471 CC=$ac_ct_CC 2472 fi 2473else 2474 CC="$ac_cv_prog_CC" 2475fi 2476 2477if test -z "$CC"; then 2478 if test -n "$ac_tool_prefix"; then 2479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2480set dummy ${ac_tool_prefix}cc; ac_word=$2 2481{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2483if test "${ac_cv_prog_CC+set}" = set; then 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 2485else 2486 if test -n "$CC"; then 2487 ac_cv_prog_CC="$CC" # Let the user override the test. 2488else 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2496 ac_cv_prog_CC="${ac_tool_prefix}cc" 2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2498 break 2 2499 fi 2500done 2501done 2502IFS=$as_save_IFS 2503 2504fi 2505fi 2506CC=$ac_cv_prog_CC 2507if test -n "$CC"; then 2508 { echo "$as_me:$LINENO: result: $CC" >&5 2509echo "${ECHO_T}$CC" >&6; } 2510else 2511 { echo "$as_me:$LINENO: result: no" >&5 2512echo "${ECHO_T}no" >&6; } 2513fi 2514 2515 2516 fi 2517fi 2518if test -z "$CC"; then 2519 # Extract the first word of "cc", so it can be a program name with args. 2520set dummy cc; ac_word=$2 2521{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2523if test "${ac_cv_prog_CC+set}" = set; then 2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2525else 2526 if test -n "$CC"; then 2527 ac_cv_prog_CC="$CC" # Let the user override the test. 2528else 2529 ac_prog_rejected=no 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2538 ac_prog_rejected=yes 2539 continue 2540 fi 2541 ac_cv_prog_CC="cc" 2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2543 break 2 2544 fi 2545done 2546done 2547IFS=$as_save_IFS 2548 2549if test $ac_prog_rejected = yes; then 2550 # We found a bogon in the path, so make sure we never use it. 2551 set dummy $ac_cv_prog_CC 2552 shift 2553 if test $# != 0; then 2554 # We chose a different compiler from the bogus one. 2555 # However, it has the same basename, so the bogon will be chosen 2556 # first if we set CC to just the basename; use the full file name. 2557 shift 2558 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2559 fi 2560fi 2561fi 2562fi 2563CC=$ac_cv_prog_CC 2564if test -n "$CC"; then 2565 { echo "$as_me:$LINENO: result: $CC" >&5 2566echo "${ECHO_T}$CC" >&6; } 2567else 2568 { echo "$as_me:$LINENO: result: no" >&5 2569echo "${ECHO_T}no" >&6; } 2570fi 2571 2572 2573fi 2574if test -z "$CC"; then 2575 if test -n "$ac_tool_prefix"; then 2576 for ac_prog in cl.exe 2577 do 2578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2579set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2580{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2582if test "${ac_cv_prog_CC+set}" = set; then 2583 echo $ECHO_N "(cached) $ECHO_C" >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { echo "$as_me:$LINENO: result: $CC" >&5 2608echo "${ECHO_T}$CC" >&6; } 2609else 2610 { echo "$as_me:$LINENO: result: no" >&5 2611echo "${ECHO_T}no" >&6; } 2612fi 2613 2614 2615 test -n "$CC" && break 2616 done 2617fi 2618if test -z "$CC"; then 2619 ac_ct_CC=$CC 2620 for ac_prog in cl.exe 2621do 2622 # Extract the first word of "$ac_prog", so it can be a program name with args. 2623set dummy $ac_prog; ac_word=$2 2624{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2626if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2627 echo $ECHO_N "(cached) $ECHO_C" >&6 2628else 2629 if test -n "$ac_ct_CC"; then 2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2631else 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2639 ac_cv_prog_ac_ct_CC="$ac_prog" 2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643done 2644done 2645IFS=$as_save_IFS 2646 2647fi 2648fi 2649ac_ct_CC=$ac_cv_prog_ac_ct_CC 2650if test -n "$ac_ct_CC"; then 2651 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2652echo "${ECHO_T}$ac_ct_CC" >&6; } 2653else 2654 { echo "$as_me:$LINENO: result: no" >&5 2655echo "${ECHO_T}no" >&6; } 2656fi 2657 2658 2659 test -n "$ac_ct_CC" && break 2660done 2661 2662 if test "x$ac_ct_CC" = x; then 2663 CC="" 2664 else 2665 case $cross_compiling:$ac_tool_warned in 2666yes:) 2667{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2668whose name does not start with the host triplet. If you think this 2669configuration is useful to you, please write to autoconf@gnu.org." >&5 2670echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2671whose name does not start with the host triplet. If you think this 2672configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2673ac_tool_warned=yes ;; 2674esac 2675 CC=$ac_ct_CC 2676 fi 2677fi 2678 2679fi 2680 2681 2682test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2683See \`config.log' for more details." >&5 2684echo "$as_me: error: no acceptable C compiler found in \$PATH 2685See \`config.log' for more details." >&2;} 2686 { (exit 1); exit 1; }; } 2687 2688# Provide some information about the compiler. 2689echo "$as_me:$LINENO: checking for C compiler version" >&5 2690ac_compiler=`set X $ac_compile; echo $2` 2691{ (ac_try="$ac_compiler --version >&5" 2692case "(($ac_try" in 2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2694 *) ac_try_echo=$ac_try;; 2695esac 2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2697 (eval "$ac_compiler --version >&5") 2>&5 2698 ac_status=$? 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } 2701{ (ac_try="$ac_compiler -v >&5" 2702case "(($ac_try" in 2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2704 *) ac_try_echo=$ac_try;; 2705esac 2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2707 (eval "$ac_compiler -v >&5") 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); } 2711{ (ac_try="$ac_compiler -V >&5" 2712case "(($ac_try" in 2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2714 *) ac_try_echo=$ac_try;; 2715esac 2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2717 (eval "$ac_compiler -V >&5") 2>&5 2718 ac_status=$? 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); } 2721 2722cat >conftest.$ac_ext <<_ACEOF 2723/* confdefs.h. */ 2724_ACEOF 2725cat confdefs.h >>conftest.$ac_ext 2726cat >>conftest.$ac_ext <<_ACEOF 2727/* end confdefs.h. */ 2728 2729int 2730main () 2731{ 2732 2733 ; 2734 return 0; 2735} 2736_ACEOF 2737ac_clean_files_save=$ac_clean_files 2738ac_clean_files="$ac_clean_files a.out a.exe b.out" 2739# Try to create an executable without -o first, disregard a.out. 2740# It will help us diagnose broken compilers, and finding out an intuition 2741# of exeext. 2742{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2743echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2744ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2745# 2746# List of possible output files, starting from the most likely. 2747# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2748# only as a last resort. b.out is created by i960 compilers. 2749ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2750# 2751# The IRIX 6 linker writes into existing files which may not be 2752# executable, retaining their permissions. Remove them first so a 2753# subsequent execution test works. 2754ac_rmfiles= 2755for ac_file in $ac_files 2756do 2757 case $ac_file in 2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2759 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2760 esac 2761done 2762rm -f $ac_rmfiles 2763 2764if { (ac_try="$ac_link_default" 2765case "(($ac_try" in 2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2767 *) ac_try_echo=$ac_try;; 2768esac 2769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2770 (eval "$ac_link_default") 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; then 2774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2775# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2776# in a Makefile. We should not override ac_cv_exeext if it was cached, 2777# so that the user can short-circuit this test for compilers unknown to 2778# Autoconf. 2779for ac_file in $ac_files 2780do 2781 test -f "$ac_file" || continue 2782 case $ac_file in 2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2784 ;; 2785 [ab].out ) 2786 # We found the default executable, but exeext='' is most 2787 # certainly right. 2788 break;; 2789 *.* ) 2790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2791 then :; else 2792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2793 fi 2794 # We set ac_cv_exeext here because the later test for it is not 2795 # safe: cross compilers may not add the suffix if given an `-o' 2796 # argument, so we may need to know it at that point already. 2797 # Even if this section looks crufty: it has the advantage of 2798 # actually working. 2799 break;; 2800 * ) 2801 break;; 2802 esac 2803done 2804test "$ac_cv_exeext" = no && ac_cv_exeext= 2805 2806else 2807 echo "$as_me: failed program was:" >&5 2808sed 's/^/| /' conftest.$ac_ext >&5 2809 2810{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2811See \`config.log' for more details." >&5 2812echo "$as_me: error: C compiler cannot create executables 2813See \`config.log' for more details." >&2;} 2814 { (exit 77); exit 77; }; } 2815fi 2816 2817ac_exeext=$ac_cv_exeext 2818{ echo "$as_me:$LINENO: result: $ac_file" >&5 2819echo "${ECHO_T}$ac_file" >&6; } 2820 2821# Check that the compiler produces executables we can run. If not, either 2822# the compiler is broken, or we cross compile. 2823{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2824echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2825# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2826# If not cross compiling, check that we can run a simple program. 2827if test "$cross_compiling" != yes; then 2828 if { ac_try='./$ac_file' 2829 { (case "(($ac_try" in 2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2831 *) ac_try_echo=$ac_try;; 2832esac 2833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2834 (eval "$ac_try") 2>&5 2835 ac_status=$? 2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2837 (exit $ac_status); }; }; then 2838 cross_compiling=no 2839 else 2840 if test "$cross_compiling" = maybe; then 2841 cross_compiling=yes 2842 else 2843 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2844If you meant to cross compile, use \`--host'. 2845See \`config.log' for more details." >&5 2846echo "$as_me: error: cannot run C compiled programs. 2847If you meant to cross compile, use \`--host'. 2848See \`config.log' for more details." >&2;} 2849 { (exit 1); exit 1; }; } 2850 fi 2851 fi 2852fi 2853{ echo "$as_me:$LINENO: result: yes" >&5 2854echo "${ECHO_T}yes" >&6; } 2855 2856rm -f a.out a.exe conftest$ac_cv_exeext b.out 2857ac_clean_files=$ac_clean_files_save 2858# Check that the compiler produces executables we can run. If not, either 2859# the compiler is broken, or we cross compile. 2860{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2861echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2862{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2863echo "${ECHO_T}$cross_compiling" >&6; } 2864 2865{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2866echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2867if { (ac_try="$ac_link" 2868case "(($ac_try" in 2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2870 *) ac_try_echo=$ac_try;; 2871esac 2872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2873 (eval "$ac_link") 2>&5 2874 ac_status=$? 2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2876 (exit $ac_status); }; then 2877 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2878# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2879# work properly (i.e., refer to `conftest.exe'), while it won't with 2880# `rm'. 2881for ac_file in conftest.exe conftest conftest.*; do 2882 test -f "$ac_file" || continue 2883 case $ac_file in 2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2886 break;; 2887 * ) break;; 2888 esac 2889done 2890else 2891 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2892See \`config.log' for more details." >&5 2893echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2894See \`config.log' for more details." >&2;} 2895 { (exit 1); exit 1; }; } 2896fi 2897 2898rm -f conftest$ac_cv_exeext 2899{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2900echo "${ECHO_T}$ac_cv_exeext" >&6; } 2901 2902rm -f conftest.$ac_ext 2903EXEEXT=$ac_cv_exeext 2904ac_exeext=$EXEEXT 2905{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2906echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2907if test "${ac_cv_objext+set}" = set; then 2908 echo $ECHO_N "(cached) $ECHO_C" >&6 2909else 2910 cat >conftest.$ac_ext <<_ACEOF 2911/* confdefs.h. */ 2912_ACEOF 2913cat confdefs.h >>conftest.$ac_ext 2914cat >>conftest.$ac_ext <<_ACEOF 2915/* end confdefs.h. */ 2916 2917int 2918main () 2919{ 2920 2921 ; 2922 return 0; 2923} 2924_ACEOF 2925rm -f conftest.o conftest.obj 2926if { (ac_try="$ac_compile" 2927case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930esac 2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2932 (eval "$ac_compile") 2>&5 2933 ac_status=$? 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); }; then 2936 for ac_file in conftest.o conftest.obj conftest.*; do 2937 test -f "$ac_file" || continue; 2938 case $ac_file in 2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2941 break;; 2942 esac 2943done 2944else 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2949See \`config.log' for more details." >&5 2950echo "$as_me: error: cannot compute suffix of object files: cannot compile 2951See \`config.log' for more details." >&2;} 2952 { (exit 1); exit 1; }; } 2953fi 2954 2955rm -f conftest.$ac_cv_objext conftest.$ac_ext 2956fi 2957{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2958echo "${ECHO_T}$ac_cv_objext" >&6; } 2959OBJEXT=$ac_cv_objext 2960ac_objext=$OBJEXT 2961{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2962echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2963if test "${ac_cv_c_compiler_gnu+set}" = set; then 2964 echo $ECHO_N "(cached) $ECHO_C" >&6 2965else 2966 cat >conftest.$ac_ext <<_ACEOF 2967/* confdefs.h. */ 2968_ACEOF 2969cat confdefs.h >>conftest.$ac_ext 2970cat >>conftest.$ac_ext <<_ACEOF 2971/* end confdefs.h. */ 2972 2973int 2974main () 2975{ 2976#ifndef __GNUC__ 2977 choke me 2978#endif 2979 2980 ; 2981 return 0; 2982} 2983_ACEOF 2984rm -f conftest.$ac_objext 2985if { (ac_try="$ac_compile" 2986case "(($ac_try" in 2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988 *) ac_try_echo=$ac_try;; 2989esac 2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2991 (eval "$ac_compile") 2>conftest.er1 2992 ac_status=$? 2993 grep -v '^ *+' conftest.er1 >conftest.err 2994 rm -f conftest.er1 2995 cat conftest.err >&5 2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); } && 2998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2999 { (case "(($ac_try" in 3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3001 *) ac_try_echo=$ac_try;; 3002esac 3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3004 (eval "$ac_try") 2>&5 3005 ac_status=$? 3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3007 (exit $ac_status); }; } && 3008 { ac_try='test -s conftest.$ac_objext' 3009 { (case "(($ac_try" in 3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 *) ac_try_echo=$ac_try;; 3012esac 3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3014 (eval "$ac_try") 2>&5 3015 ac_status=$? 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); }; }; then 3018 ac_compiler_gnu=yes 3019else 3020 echo "$as_me: failed program was:" >&5 3021sed 's/^/| /' conftest.$ac_ext >&5 3022 3023 ac_compiler_gnu=no 3024fi 3025 3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3027ac_cv_c_compiler_gnu=$ac_compiler_gnu 3028 3029fi 3030{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3031echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3032GCC=`test $ac_compiler_gnu = yes && echo yes` 3033ac_test_CFLAGS=${CFLAGS+set} 3034ac_save_CFLAGS=$CFLAGS 3035{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3036echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3037if test "${ac_cv_prog_cc_g+set}" = set; then 3038 echo $ECHO_N "(cached) $ECHO_C" >&6 3039else 3040 ac_save_c_werror_flag=$ac_c_werror_flag 3041 ac_c_werror_flag=yes 3042 ac_cv_prog_cc_g=no 3043 CFLAGS="-g" 3044 cat >conftest.$ac_ext <<_ACEOF 3045/* confdefs.h. */ 3046_ACEOF 3047cat confdefs.h >>conftest.$ac_ext 3048cat >>conftest.$ac_ext <<_ACEOF 3049/* end confdefs.h. */ 3050 3051int 3052main () 3053{ 3054 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059rm -f conftest.$ac_objext 3060if { (ac_try="$ac_compile" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066 (eval "$ac_compile") 2>conftest.er1 3067 ac_status=$? 3068 grep -v '^ *+' conftest.er1 >conftest.err 3069 rm -f conftest.er1 3070 cat conftest.err >&5 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); } && 3073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3074 { (case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3079 (eval "$ac_try") 2>&5 3080 ac_status=$? 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); }; } && 3083 { ac_try='test -s conftest.$ac_objext' 3084 { (case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3089 (eval "$ac_try") 2>&5 3090 ac_status=$? 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); }; }; then 3093 ac_cv_prog_cc_g=yes 3094else 3095 echo "$as_me: failed program was:" >&5 3096sed 's/^/| /' conftest.$ac_ext >&5 3097 3098 CFLAGS="" 3099 cat >conftest.$ac_ext <<_ACEOF 3100/* confdefs.h. */ 3101_ACEOF 3102cat confdefs.h >>conftest.$ac_ext 3103cat >>conftest.$ac_ext <<_ACEOF 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114rm -f conftest.$ac_objext 3115if { (ac_try="$ac_compile" 3116case "(($ac_try" in 3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3118 *) ac_try_echo=$ac_try;; 3119esac 3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3121 (eval "$ac_compile") 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } && 3128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3129 { (case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3134 (eval "$ac_try") 2>&5 3135 ac_status=$? 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); }; } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3144 (eval "$ac_try") 2>&5 3145 ac_status=$? 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); }; }; then 3148 : 3149else 3150 echo "$as_me: failed program was:" >&5 3151sed 's/^/| /' conftest.$ac_ext >&5 3152 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154 CFLAGS="-g" 3155 cat >conftest.$ac_ext <<_ACEOF 3156/* confdefs.h. */ 3157_ACEOF 3158cat confdefs.h >>conftest.$ac_ext 3159cat >>conftest.$ac_ext <<_ACEOF 3160/* end confdefs.h. */ 3161 3162int 3163main () 3164{ 3165 3166 ; 3167 return 0; 3168} 3169_ACEOF 3170rm -f conftest.$ac_objext 3171if { (ac_try="$ac_compile" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3177 (eval "$ac_compile") 2>conftest.er1 3178 ac_status=$? 3179 grep -v '^ *+' conftest.er1 >conftest.err 3180 rm -f conftest.er1 3181 cat conftest.err >&5 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); } && 3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3185 { (case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3190 (eval "$ac_try") 2>&5 3191 ac_status=$? 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); }; } && 3194 { ac_try='test -s conftest.$ac_objext' 3195 { (case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3200 (eval "$ac_try") 2>&5 3201 ac_status=$? 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); }; }; then 3204 ac_cv_prog_cc_g=yes 3205else 3206 echo "$as_me: failed program was:" >&5 3207sed 's/^/| /' conftest.$ac_ext >&5 3208 3209 3210fi 3211 3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3213fi 3214 3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3216fi 3217 3218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3219 ac_c_werror_flag=$ac_save_c_werror_flag 3220fi 3221{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3222echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3223if test "$ac_test_CFLAGS" = set; then 3224 CFLAGS=$ac_save_CFLAGS 3225elif test $ac_cv_prog_cc_g = yes; then 3226 if test "$GCC" = yes; then 3227 CFLAGS="-g -O2" 3228 else 3229 CFLAGS="-g" 3230 fi 3231else 3232 if test "$GCC" = yes; then 3233 CFLAGS="-O2" 3234 else 3235 CFLAGS= 3236 fi 3237fi 3238{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3239echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3240if test "${ac_cv_prog_cc_c89+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242else 3243 ac_cv_prog_cc_c89=no 3244ac_save_CC=$CC 3245cat >conftest.$ac_ext <<_ACEOF 3246/* confdefs.h. */ 3247_ACEOF 3248cat confdefs.h >>conftest.$ac_ext 3249cat >>conftest.$ac_ext <<_ACEOF 3250/* end confdefs.h. */ 3251#include <stdarg.h> 3252#include <stdio.h> 3253#include <sys/types.h> 3254#include <sys/stat.h> 3255/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3256struct buf { int x; }; 3257FILE * (*rcsopen) (struct buf *, struct stat *, int); 3258static char *e (p, i) 3259 char **p; 3260 int i; 3261{ 3262 return p[i]; 3263} 3264static char *f (char * (*g) (char **, int), char **p, ...) 3265{ 3266 char *s; 3267 va_list v; 3268 va_start (v,p); 3269 s = g (p, va_arg (v,int)); 3270 va_end (v); 3271 return s; 3272} 3273 3274/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3275 function prototypes and stuff, but not '\xHH' hex character constants. 3276 These don't provoke an error unfortunately, instead are silently treated 3277 as 'x'. The following induces an error, until -std is added to get 3278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3279 array size at least. It's necessary to write '\x00'==0 to get something 3280 that's true only with -std. */ 3281int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3282 3283/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3284 inside strings and character constants. */ 3285#define FOO(x) 'x' 3286int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3287 3288int test (int i, double x); 3289struct s1 {int (*f) (int a);}; 3290struct s2 {int (*f) (double a);}; 3291int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3292int argc; 3293char **argv; 3294int 3295main () 3296{ 3297return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3304do 3305 CC="$ac_save_CC $ac_arg" 3306 rm -f conftest.$ac_objext 3307if { (ac_try="$ac_compile" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3313 (eval "$ac_compile") 2>conftest.er1 3314 ac_status=$? 3315 grep -v '^ *+' conftest.er1 >conftest.err 3316 rm -f conftest.er1 3317 cat conftest.err >&5 3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3319 (exit $ac_status); } && 3320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3321 { (case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3326 (eval "$ac_try") 2>&5 3327 ac_status=$? 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); }; } && 3330 { ac_try='test -s conftest.$ac_objext' 3331 { (case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3336 (eval "$ac_try") 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); }; }; then 3340 ac_cv_prog_cc_c89=$ac_arg 3341else 3342 echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 3346fi 3347 3348rm -f core conftest.err conftest.$ac_objext 3349 test "x$ac_cv_prog_cc_c89" != "xno" && break 3350done 3351rm -f conftest.$ac_ext 3352CC=$ac_save_CC 3353 3354fi 3355# AC_CACHE_VAL 3356case "x$ac_cv_prog_cc_c89" in 3357 x) 3358 { echo "$as_me:$LINENO: result: none needed" >&5 3359echo "${ECHO_T}none needed" >&6; } ;; 3360 xno) 3361 { echo "$as_me:$LINENO: result: unsupported" >&5 3362echo "${ECHO_T}unsupported" >&6; } ;; 3363 *) 3364 CC="$CC $ac_cv_prog_cc_c89" 3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3366echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3367esac 3368 3369 3370ac_ext=c 3371ac_cpp='$CPP $CPPFLAGS' 3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3374ac_compiler_gnu=$ac_cv_c_compiler_gnu 3375 3376depcc="$CC" am_compiler_list= 3377 3378{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3379echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3380if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382else 3383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3384 # We make a subdir and do the tests there. Otherwise we can end up 3385 # making bogus files that we don't know about and never remove. For 3386 # instance it was reported that on HP-UX the gcc test will end up 3387 # making a dummy file named `D' -- because `-MD' means `put the output 3388 # in D'. 3389 mkdir conftest.dir 3390 # Copy depcomp to subdir because otherwise we won't find it if we're 3391 # using a relative directory. 3392 cp "$am_depcomp" conftest.dir 3393 cd conftest.dir 3394 # We will build objects and dependencies in a subdirectory because 3395 # it helps to detect inapplicable dependency modes. For instance 3396 # both Tru64's cc and ICC support -MD to output dependencies as a 3397 # side effect of compilation, but ICC will put the dependencies in 3398 # the current directory while Tru64 will put them in the object 3399 # directory. 3400 mkdir sub 3401 3402 am_cv_CC_dependencies_compiler_type=none 3403 if test "$am_compiler_list" = ""; then 3404 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3405 fi 3406 for depmode in $am_compiler_list; do 3407 # Setup a source with many dependencies, because some compilers 3408 # like to wrap large dependency lists on column 80 (with \), and 3409 # we should not choose a depcomp mode which is confused by this. 3410 # 3411 # We need to recreate these files for each test, as the compiler may 3412 # overwrite some of them when testing with obscure command lines. 3413 # This happens at least with the AIX C compiler. 3414 : > sub/conftest.c 3415 for i in 1 2 3 4 5 6; do 3416 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3417 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3418 # Solaris 8's {/usr,}/bin/sh. 3419 touch sub/conftst$i.h 3420 done 3421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3422 3423 case $depmode in 3424 nosideeffect) 3425 # after this tag, mechanisms are not by side-effect, so they'll 3426 # only be used when explicitly requested 3427 if test "x$enable_dependency_tracking" = xyes; then 3428 continue 3429 else 3430 break 3431 fi 3432 ;; 3433 none) break ;; 3434 esac 3435 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3436 # mode. It turns out that the SunPro C++ compiler does not properly 3437 # handle `-M -o', and we need to detect this. 3438 if depmode=$depmode \ 3439 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3441 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3442 >/dev/null 2>conftest.err && 3443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3444 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3446 # icc doesn't choke on unknown options, it will just issue warnings 3447 # or remarks (even with -Werror). So we grep stderr for any message 3448 # that says an option was ignored or not supported. 3449 # When given -MP, icc 7.0 and 7.1 complain thusly: 3450 # icc: Command line warning: ignoring option '-M'; no argument required 3451 # The diagnosis changed in icc 8.0: 3452 # icc: Command line remark: option '-MP' not supported 3453 if (grep 'ignoring option' conftest.err || 3454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3455 am_cv_CC_dependencies_compiler_type=$depmode 3456 break 3457 fi 3458 fi 3459 done 3460 3461 cd .. 3462 rm -rf conftest.dir 3463else 3464 am_cv_CC_dependencies_compiler_type=none 3465fi 3466 3467fi 3468{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3469echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3471 3472 3473 3474if 3475 test "x$enable_dependency_tracking" != xno \ 3476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3477 am__fastdepCC_TRUE= 3478 am__fastdepCC_FALSE='#' 3479else 3480 am__fastdepCC_TRUE='#' 3481 am__fastdepCC_FALSE= 3482fi 3483 3484 3485 3486ac_ext=c 3487ac_cpp='$CPP $CPPFLAGS' 3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3490ac_compiler_gnu=$ac_cv_c_compiler_gnu 3491{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3492echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3493# On Suns, sometimes $CPP names a directory. 3494if test -n "$CPP" && test -d "$CPP"; then 3495 CPP= 3496fi 3497if test -z "$CPP"; then 3498 if test "${ac_cv_prog_CPP+set}" = set; then 3499 echo $ECHO_N "(cached) $ECHO_C" >&6 3500else 3501 # Double quotes because CPP needs to be expanded 3502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3503 do 3504 ac_preproc_ok=false 3505for ac_c_preproc_warn_flag in '' yes 3506do 3507 # Use a header file that comes with gcc, so configuring glibc 3508 # with a fresh cross-compiler works. 3509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3510 # <limits.h> exists even on freestanding compilers. 3511 # On the NeXT, cc -E runs the code through the compiler's parser, 3512 # not just through cpp. "Syntax error" is here to catch this case. 3513 cat >conftest.$ac_ext <<_ACEOF 3514/* confdefs.h. */ 3515_ACEOF 3516cat confdefs.h >>conftest.$ac_ext 3517cat >>conftest.$ac_ext <<_ACEOF 3518/* end confdefs.h. */ 3519#ifdef __STDC__ 3520# include <limits.h> 3521#else 3522# include <assert.h> 3523#endif 3524 Syntax error 3525_ACEOF 3526if { (ac_try="$ac_cpp conftest.$ac_ext" 3527case "(($ac_try" in 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3529 *) ac_try_echo=$ac_try;; 3530esac 3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3533 ac_status=$? 3534 grep -v '^ *+' conftest.er1 >conftest.err 3535 rm -f conftest.er1 3536 cat conftest.err >&5 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); } >/dev/null; then 3539 if test -s conftest.err; then 3540 ac_cpp_err=$ac_c_preproc_warn_flag 3541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3542 else 3543 ac_cpp_err= 3544 fi 3545else 3546 ac_cpp_err=yes 3547fi 3548if test -z "$ac_cpp_err"; then 3549 : 3550else 3551 echo "$as_me: failed program was:" >&5 3552sed 's/^/| /' conftest.$ac_ext >&5 3553 3554 # Broken: fails on valid input. 3555continue 3556fi 3557 3558rm -f conftest.err conftest.$ac_ext 3559 3560 # OK, works on sane cases. Now check whether nonexistent headers 3561 # can be detected and how. 3562 cat >conftest.$ac_ext <<_ACEOF 3563/* confdefs.h. */ 3564_ACEOF 3565cat confdefs.h >>conftest.$ac_ext 3566cat >>conftest.$ac_ext <<_ACEOF 3567/* end confdefs.h. */ 3568#include <ac_nonexistent.h> 3569_ACEOF 3570if { (ac_try="$ac_cpp conftest.$ac_ext" 3571case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574esac 3575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3577 ac_status=$? 3578 grep -v '^ *+' conftest.er1 >conftest.err 3579 rm -f conftest.er1 3580 cat conftest.err >&5 3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3582 (exit $ac_status); } >/dev/null; then 3583 if test -s conftest.err; then 3584 ac_cpp_err=$ac_c_preproc_warn_flag 3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3586 else 3587 ac_cpp_err= 3588 fi 3589else 3590 ac_cpp_err=yes 3591fi 3592if test -z "$ac_cpp_err"; then 3593 # Broken: success on invalid input. 3594continue 3595else 3596 echo "$as_me: failed program was:" >&5 3597sed 's/^/| /' conftest.$ac_ext >&5 3598 3599 # Passes both tests. 3600ac_preproc_ok=: 3601break 3602fi 3603 3604rm -f conftest.err conftest.$ac_ext 3605 3606done 3607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3608rm -f conftest.err conftest.$ac_ext 3609if $ac_preproc_ok; then 3610 break 3611fi 3612 3613 done 3614 ac_cv_prog_CPP=$CPP 3615 3616fi 3617 CPP=$ac_cv_prog_CPP 3618else 3619 ac_cv_prog_CPP=$CPP 3620fi 3621{ echo "$as_me:$LINENO: result: $CPP" >&5 3622echo "${ECHO_T}$CPP" >&6; } 3623ac_preproc_ok=false 3624for ac_c_preproc_warn_flag in '' yes 3625do 3626 # Use a header file that comes with gcc, so configuring glibc 3627 # with a fresh cross-compiler works. 3628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3629 # <limits.h> exists even on freestanding compilers. 3630 # On the NeXT, cc -E runs the code through the compiler's parser, 3631 # not just through cpp. "Syntax error" is here to catch this case. 3632 cat >conftest.$ac_ext <<_ACEOF 3633/* confdefs.h. */ 3634_ACEOF 3635cat confdefs.h >>conftest.$ac_ext 3636cat >>conftest.$ac_ext <<_ACEOF 3637/* end confdefs.h. */ 3638#ifdef __STDC__ 3639# include <limits.h> 3640#else 3641# include <assert.h> 3642#endif 3643 Syntax error 3644_ACEOF 3645if { (ac_try="$ac_cpp conftest.$ac_ext" 3646case "(($ac_try" in 3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3648 *) ac_try_echo=$ac_try;; 3649esac 3650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3652 ac_status=$? 3653 grep -v '^ *+' conftest.er1 >conftest.err 3654 rm -f conftest.er1 3655 cat conftest.err >&5 3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3657 (exit $ac_status); } >/dev/null; then 3658 if test -s conftest.err; then 3659 ac_cpp_err=$ac_c_preproc_warn_flag 3660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3661 else 3662 ac_cpp_err= 3663 fi 3664else 3665 ac_cpp_err=yes 3666fi 3667if test -z "$ac_cpp_err"; then 3668 : 3669else 3670 echo "$as_me: failed program was:" >&5 3671sed 's/^/| /' conftest.$ac_ext >&5 3672 3673 # Broken: fails on valid input. 3674continue 3675fi 3676 3677rm -f conftest.err conftest.$ac_ext 3678 3679 # OK, works on sane cases. Now check whether nonexistent headers 3680 # can be detected and how. 3681 cat >conftest.$ac_ext <<_ACEOF 3682/* confdefs.h. */ 3683_ACEOF 3684cat confdefs.h >>conftest.$ac_ext 3685cat >>conftest.$ac_ext <<_ACEOF 3686/* end confdefs.h. */ 3687#include <ac_nonexistent.h> 3688_ACEOF 3689if { (ac_try="$ac_cpp conftest.$ac_ext" 3690case "(($ac_try" in 3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3692 *) ac_try_echo=$ac_try;; 3693esac 3694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3696 ac_status=$? 3697 grep -v '^ *+' conftest.er1 >conftest.err 3698 rm -f conftest.er1 3699 cat conftest.err >&5 3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); } >/dev/null; then 3702 if test -s conftest.err; then 3703 ac_cpp_err=$ac_c_preproc_warn_flag 3704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3705 else 3706 ac_cpp_err= 3707 fi 3708else 3709 ac_cpp_err=yes 3710fi 3711if test -z "$ac_cpp_err"; then 3712 # Broken: success on invalid input. 3713continue 3714else 3715 echo "$as_me: failed program was:" >&5 3716sed 's/^/| /' conftest.$ac_ext >&5 3717 3718 # Passes both tests. 3719ac_preproc_ok=: 3720break 3721fi 3722 3723rm -f conftest.err conftest.$ac_ext 3724 3725done 3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3727rm -f conftest.err conftest.$ac_ext 3728if $ac_preproc_ok; then 3729 : 3730else 3731 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3732See \`config.log' for more details." >&5 3733echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3734See \`config.log' for more details." >&2;} 3735 { (exit 1); exit 1; }; } 3736fi 3737 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743 3744 3745{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3746echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3747if test "${ac_cv_path_GREP+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 # Extract the first word of "grep ggrep" to use in msg output 3751if test -z "$GREP"; then 3752set dummy grep ggrep; ac_prog_name=$2 3753if test "${ac_cv_path_GREP+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 ac_path_GREP_found=false 3757# Loop through the user's path and test for each of PROGNAME-LIST 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3760do 3761 IFS=$as_save_IFS 3762 test -z "$as_dir" && as_dir=. 3763 for ac_prog in grep ggrep; do 3764 for ac_exec_ext in '' $ac_executable_extensions; do 3765 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3766 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3767 # Check for GNU ac_path_GREP and select it if it is found. 3768 # Check for GNU $ac_path_GREP 3769case `"$ac_path_GREP" --version 2>&1` in 3770*GNU*) 3771 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3772*) 3773 ac_count=0 3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3775 while : 3776 do 3777 cat "conftest.in" "conftest.in" >"conftest.tmp" 3778 mv "conftest.tmp" "conftest.in" 3779 cp "conftest.in" "conftest.nl" 3780 echo 'GREP' >> "conftest.nl" 3781 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3783 ac_count=`expr $ac_count + 1` 3784 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3785 # Best one so far, save it but keep looking for a better one 3786 ac_cv_path_GREP="$ac_path_GREP" 3787 ac_path_GREP_max=$ac_count 3788 fi 3789 # 10*(2^10) chars as input seems more than enough 3790 test $ac_count -gt 10 && break 3791 done 3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3793esac 3794 3795 3796 $ac_path_GREP_found && break 3 3797 done 3798done 3799 3800done 3801IFS=$as_save_IFS 3802 3803 3804fi 3805 3806GREP="$ac_cv_path_GREP" 3807if test -z "$GREP"; then 3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3810 { (exit 1); exit 1; }; } 3811fi 3812 3813else 3814 ac_cv_path_GREP=$GREP 3815fi 3816 3817 3818fi 3819{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3820echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3821 GREP="$ac_cv_path_GREP" 3822 3823 3824{ echo "$as_me:$LINENO: checking for egrep" >&5 3825echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3826if test "${ac_cv_path_EGREP+set}" = set; then 3827 echo $ECHO_N "(cached) $ECHO_C" >&6 3828else 3829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3830 then ac_cv_path_EGREP="$GREP -E" 3831 else 3832 # Extract the first word of "egrep" to use in msg output 3833if test -z "$EGREP"; then 3834set dummy egrep; ac_prog_name=$2 3835if test "${ac_cv_path_EGREP+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 ac_path_EGREP_found=false 3839# Loop through the user's path and test for each of PROGNAME-LIST 3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3842do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 for ac_prog in egrep; do 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3848 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3849 # Check for GNU ac_path_EGREP and select it if it is found. 3850 # Check for GNU $ac_path_EGREP 3851case `"$ac_path_EGREP" --version 2>&1` in 3852*GNU*) 3853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3854*) 3855 ac_count=0 3856 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3857 while : 3858 do 3859 cat "conftest.in" "conftest.in" >"conftest.tmp" 3860 mv "conftest.tmp" "conftest.in" 3861 cp "conftest.in" "conftest.nl" 3862 echo 'EGREP' >> "conftest.nl" 3863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3865 ac_count=`expr $ac_count + 1` 3866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3867 # Best one so far, save it but keep looking for a better one 3868 ac_cv_path_EGREP="$ac_path_EGREP" 3869 ac_path_EGREP_max=$ac_count 3870 fi 3871 # 10*(2^10) chars as input seems more than enough 3872 test $ac_count -gt 10 && break 3873 done 3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3875esac 3876 3877 3878 $ac_path_EGREP_found && break 3 3879 done 3880done 3881 3882done 3883IFS=$as_save_IFS 3884 3885 3886fi 3887 3888EGREP="$ac_cv_path_EGREP" 3889if test -z "$EGREP"; then 3890 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3891echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3892 { (exit 1); exit 1; }; } 3893fi 3894 3895else 3896 ac_cv_path_EGREP=$EGREP 3897fi 3898 3899 3900 fi 3901fi 3902{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3903echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3904 EGREP="$ac_cv_path_EGREP" 3905 3906 3907 3908{ echo "$as_me:$LINENO: checking for AIX" >&5 3909echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 3910cat >conftest.$ac_ext <<_ACEOF 3911/* confdefs.h. */ 3912_ACEOF 3913cat confdefs.h >>conftest.$ac_ext 3914cat >>conftest.$ac_ext <<_ACEOF 3915/* end confdefs.h. */ 3916#ifdef _AIX 3917 yes 3918#endif 3919 3920_ACEOF 3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3922 $EGREP "yes" >/dev/null 2>&1; then 3923 { echo "$as_me:$LINENO: result: yes" >&5 3924echo "${ECHO_T}yes" >&6; } 3925cat >>confdefs.h <<\_ACEOF 3926#define _ALL_SOURCE 1 3927_ACEOF 3928 3929else 3930 { echo "$as_me:$LINENO: result: no" >&5 3931echo "${ECHO_T}no" >&6; } 3932fi 3933rm -f conftest* 3934 3935 3936{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3937echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3938if test "${ac_cv_header_stdc+set}" = set; then 3939 echo $ECHO_N "(cached) $ECHO_C" >&6 3940else 3941 cat >conftest.$ac_ext <<_ACEOF 3942/* confdefs.h. */ 3943_ACEOF 3944cat confdefs.h >>conftest.$ac_ext 3945cat >>conftest.$ac_ext <<_ACEOF 3946/* end confdefs.h. */ 3947#include <stdlib.h> 3948#include <stdarg.h> 3949#include <string.h> 3950#include <float.h> 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960rm -f conftest.$ac_objext 3961if { (ac_try="$ac_compile" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3967 (eval "$ac_compile") 2>conftest.er1 3968 ac_status=$? 3969 grep -v '^ *+' conftest.er1 >conftest.err 3970 rm -f conftest.er1 3971 cat conftest.err >&5 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3973 (exit $ac_status); } && 3974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3975 { (case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3980 (eval "$ac_try") 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); }; } && 3984 { ac_try='test -s conftest.$ac_objext' 3985 { (case "(($ac_try" in 3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3987 *) ac_try_echo=$ac_try;; 3988esac 3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3990 (eval "$ac_try") 2>&5 3991 ac_status=$? 3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3993 (exit $ac_status); }; }; then 3994 ac_cv_header_stdc=yes 3995else 3996 echo "$as_me: failed program was:" >&5 3997sed 's/^/| /' conftest.$ac_ext >&5 3998 3999 ac_cv_header_stdc=no 4000fi 4001 4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4003 4004if test $ac_cv_header_stdc = yes; then 4005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4006 cat >conftest.$ac_ext <<_ACEOF 4007/* confdefs.h. */ 4008_ACEOF 4009cat confdefs.h >>conftest.$ac_ext 4010cat >>conftest.$ac_ext <<_ACEOF 4011/* end confdefs.h. */ 4012#include <string.h> 4013 4014_ACEOF 4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4016 $EGREP "memchr" >/dev/null 2>&1; then 4017 : 4018else 4019 ac_cv_header_stdc=no 4020fi 4021rm -f conftest* 4022 4023fi 4024 4025if test $ac_cv_header_stdc = yes; then 4026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4027 cat >conftest.$ac_ext <<_ACEOF 4028/* confdefs.h. */ 4029_ACEOF 4030cat confdefs.h >>conftest.$ac_ext 4031cat >>conftest.$ac_ext <<_ACEOF 4032/* end confdefs.h. */ 4033#include <stdlib.h> 4034 4035_ACEOF 4036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4037 $EGREP "free" >/dev/null 2>&1; then 4038 : 4039else 4040 ac_cv_header_stdc=no 4041fi 4042rm -f conftest* 4043 4044fi 4045 4046if test $ac_cv_header_stdc = yes; then 4047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4048 if test "$cross_compiling" = yes; then 4049 : 4050else 4051 cat >conftest.$ac_ext <<_ACEOF 4052/* confdefs.h. */ 4053_ACEOF 4054cat confdefs.h >>conftest.$ac_ext 4055cat >>conftest.$ac_ext <<_ACEOF 4056/* end confdefs.h. */ 4057#include <ctype.h> 4058#include <stdlib.h> 4059#if ((' ' & 0x0FF) == 0x020) 4060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4062#else 4063# define ISLOWER(c) \ 4064 (('a' <= (c) && (c) <= 'i') \ 4065 || ('j' <= (c) && (c) <= 'r') \ 4066 || ('s' <= (c) && (c) <= 'z')) 4067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4068#endif 4069 4070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4071int 4072main () 4073{ 4074 int i; 4075 for (i = 0; i < 256; i++) 4076 if (XOR (islower (i), ISLOWER (i)) 4077 || toupper (i) != TOUPPER (i)) 4078 return 2; 4079 return 0; 4080} 4081_ACEOF 4082rm -f conftest$ac_exeext 4083if { (ac_try="$ac_link" 4084case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4089 (eval "$ac_link") 2>&5 4090 ac_status=$? 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4093 { (case "(($ac_try" in 4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4095 *) ac_try_echo=$ac_try;; 4096esac 4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4098 (eval "$ac_try") 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; }; then 4102 : 4103else 4104 echo "$as_me: program exited with status $ac_status" >&5 4105echo "$as_me: failed program was:" >&5 4106sed 's/^/| /' conftest.$ac_ext >&5 4107 4108( exit $ac_status ) 4109ac_cv_header_stdc=no 4110fi 4111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4112fi 4113 4114 4115fi 4116fi 4117{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4118echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4119if test $ac_cv_header_stdc = yes; then 4120 4121cat >>confdefs.h <<\_ACEOF 4122#define STDC_HEADERS 1 4123_ACEOF 4124 4125fi 4126 4127# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4138 inttypes.h stdint.h unistd.h 4139do 4140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4141{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4144 echo $ECHO_N "(cached) $ECHO_C" >&6 4145else 4146 cat >conftest.$ac_ext <<_ACEOF 4147/* confdefs.h. */ 4148_ACEOF 4149cat confdefs.h >>conftest.$ac_ext 4150cat >>conftest.$ac_ext <<_ACEOF 4151/* end confdefs.h. */ 4152$ac_includes_default 4153 4154#include <$ac_header> 4155_ACEOF 4156rm -f conftest.$ac_objext 4157if { (ac_try="$ac_compile" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4163 (eval "$ac_compile") 2>conftest.er1 4164 ac_status=$? 4165 grep -v '^ *+' conftest.er1 >conftest.err 4166 rm -f conftest.er1 4167 cat conftest.err >&5 4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4169 (exit $ac_status); } && 4170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4171 { (case "(($ac_try" in 4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4173 *) ac_try_echo=$ac_try;; 4174esac 4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4176 (eval "$ac_try") 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); }; } && 4180 { ac_try='test -s conftest.$ac_objext' 4181 { (case "(($ac_try" in 4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4183 *) ac_try_echo=$ac_try;; 4184esac 4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4186 (eval "$ac_try") 2>&5 4187 ac_status=$? 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); }; }; then 4190 eval "$as_ac_Header=yes" 4191else 4192 echo "$as_me: failed program was:" >&5 4193sed 's/^/| /' conftest.$ac_ext >&5 4194 4195 eval "$as_ac_Header=no" 4196fi 4197 4198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4199fi 4200ac_res=`eval echo '${'$as_ac_Header'}'` 4201 { echo "$as_me:$LINENO: result: $ac_res" >&5 4202echo "${ECHO_T}$ac_res" >&6; } 4203if test `eval echo '${'$as_ac_Header'}'` = yes; then 4204 cat >>confdefs.h <<_ACEOF 4205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4206_ACEOF 4207 4208fi 4209 4210done 4211 4212 4213if test "${ac_cv_header_minix_config_h+set}" = set; then 4214 { echo "$as_me:$LINENO: checking for minix/config.h" >&5 4215echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 4216if test "${ac_cv_header_minix_config_h+set}" = set; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218fi 4219{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4220echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 4221else 4222 # Is the header compilable? 4223{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4224echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } 4225cat >conftest.$ac_ext <<_ACEOF 4226/* confdefs.h. */ 4227_ACEOF 4228cat confdefs.h >>conftest.$ac_ext 4229cat >>conftest.$ac_ext <<_ACEOF 4230/* end confdefs.h. */ 4231$ac_includes_default 4232#include <minix/config.h> 4233_ACEOF 4234rm -f conftest.$ac_objext 4235if { (ac_try="$ac_compile" 4236case "(($ac_try" in 4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4238 *) ac_try_echo=$ac_try;; 4239esac 4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4241 (eval "$ac_compile") 2>conftest.er1 4242 ac_status=$? 4243 grep -v '^ *+' conftest.er1 >conftest.err 4244 rm -f conftest.er1 4245 cat conftest.err >&5 4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4247 (exit $ac_status); } && 4248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4249 { (case "(($ac_try" in 4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4251 *) ac_try_echo=$ac_try;; 4252esac 4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4254 (eval "$ac_try") 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); }; } && 4258 { ac_try='test -s conftest.$ac_objext' 4259 { (case "(($ac_try" in 4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4261 *) ac_try_echo=$ac_try;; 4262esac 4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4264 (eval "$ac_try") 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); }; }; then 4268 ac_header_compiler=yes 4269else 4270 echo "$as_me: failed program was:" >&5 4271sed 's/^/| /' conftest.$ac_ext >&5 4272 4273 ac_header_compiler=no 4274fi 4275 4276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4278echo "${ECHO_T}$ac_header_compiler" >&6; } 4279 4280# Is the header present? 4281{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4282echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } 4283cat >conftest.$ac_ext <<_ACEOF 4284/* confdefs.h. */ 4285_ACEOF 4286cat confdefs.h >>conftest.$ac_ext 4287cat >>conftest.$ac_ext <<_ACEOF 4288/* end confdefs.h. */ 4289#include <minix/config.h> 4290_ACEOF 4291if { (ac_try="$ac_cpp conftest.$ac_ext" 4292case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295esac 4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4298 ac_status=$? 4299 grep -v '^ *+' conftest.er1 >conftest.err 4300 rm -f conftest.er1 4301 cat conftest.err >&5 4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4303 (exit $ac_status); } >/dev/null; then 4304 if test -s conftest.err; then 4305 ac_cpp_err=$ac_c_preproc_warn_flag 4306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4307 else 4308 ac_cpp_err= 4309 fi 4310else 4311 ac_cpp_err=yes 4312fi 4313if test -z "$ac_cpp_err"; then 4314 ac_header_preproc=yes 4315else 4316 echo "$as_me: failed program was:" >&5 4317sed 's/^/| /' conftest.$ac_ext >&5 4318 4319 ac_header_preproc=no 4320fi 4321 4322rm -f conftest.err conftest.$ac_ext 4323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4324echo "${ECHO_T}$ac_header_preproc" >&6; } 4325 4326# So? What about this header? 4327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4328 yes:no: ) 4329 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4330echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4331 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4332echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4333 ac_header_preproc=yes 4334 ;; 4335 no:yes:* ) 4336 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4337echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4338 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4339echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4340 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4341echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4342 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4343echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4344 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4345echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4346 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4347echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4348 ( cat <<\_ASBOX 4349## ---------------------------------------- ## 4350## Report this to vladch@k804.mainet.msk.su ## 4351## ---------------------------------------- ## 4352_ASBOX 4353 ) | sed "s/^/$as_me: WARNING: /" >&2 4354 ;; 4355esac 4356{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 4357echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 4358if test "${ac_cv_header_minix_config_h+set}" = set; then 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 4360else 4361 ac_cv_header_minix_config_h=$ac_header_preproc 4362fi 4363{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4364echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 4365 4366fi 4367if test $ac_cv_header_minix_config_h = yes; then 4368 MINIX=yes 4369else 4370 MINIX= 4371fi 4372 4373 4374if test "$MINIX" = yes; then 4375 4376cat >>confdefs.h <<\_ACEOF 4377#define _POSIX_SOURCE 1 4378_ACEOF 4379 4380 4381cat >>confdefs.h <<\_ACEOF 4382#define _POSIX_1_SOURCE 2 4383_ACEOF 4384 4385 4386cat >>confdefs.h <<\_ACEOF 4387#define _MINIX 1 4388_ACEOF 4389 4390fi 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 cat >>confdefs.h <<\_ACEOF 4403#define __EXTENSIONS__ 1 4404_ACEOF 4405 4406 cat >>confdefs.h <<\_ACEOF 4407#define _POSIX_PTHREAD_SEMANTICS 1 4408_ACEOF 4409 4410 4411 4412 4413 4414 4415# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4416# for constant arguments. Useless! 4417{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 4418echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 4419if test "${ac_cv_working_alloca_h+set}" = set; then 4420 echo $ECHO_N "(cached) $ECHO_C" >&6 4421else 4422 cat >conftest.$ac_ext <<_ACEOF 4423/* confdefs.h. */ 4424_ACEOF 4425cat confdefs.h >>conftest.$ac_ext 4426cat >>conftest.$ac_ext <<_ACEOF 4427/* end confdefs.h. */ 4428#include <alloca.h> 4429int 4430main () 4431{ 4432char *p = (char *) alloca (2 * sizeof (int)); 4433 if (p) return 0; 4434 ; 4435 return 0; 4436} 4437_ACEOF 4438rm -f conftest.$ac_objext conftest$ac_exeext 4439if { (ac_try="$ac_link" 4440case "(($ac_try" in 4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4442 *) ac_try_echo=$ac_try;; 4443esac 4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4445 (eval "$ac_link") 2>conftest.er1 4446 ac_status=$? 4447 grep -v '^ *+' conftest.er1 >conftest.err 4448 rm -f conftest.er1 4449 cat conftest.err >&5 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); } && 4452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4453 { (case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4458 (eval "$ac_try") 2>&5 4459 ac_status=$? 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); }; } && 4462 { ac_try='test -s conftest$ac_exeext' 4463 { (case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466esac 4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4468 (eval "$ac_try") 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; }; then 4472 ac_cv_working_alloca_h=yes 4473else 4474 echo "$as_me: failed program was:" >&5 4475sed 's/^/| /' conftest.$ac_ext >&5 4476 4477 ac_cv_working_alloca_h=no 4478fi 4479 4480rm -f core conftest.err conftest.$ac_objext \ 4481 conftest$ac_exeext conftest.$ac_ext 4482fi 4483{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 4484echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 4485if test $ac_cv_working_alloca_h = yes; then 4486 4487cat >>confdefs.h <<\_ACEOF 4488#define HAVE_ALLOCA_H 1 4489_ACEOF 4490 4491fi 4492 4493{ echo "$as_me:$LINENO: checking for alloca" >&5 4494echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 4495if test "${ac_cv_func_alloca_works+set}" = set; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497else 4498 cat >conftest.$ac_ext <<_ACEOF 4499/* confdefs.h. */ 4500_ACEOF 4501cat confdefs.h >>conftest.$ac_ext 4502cat >>conftest.$ac_ext <<_ACEOF 4503/* end confdefs.h. */ 4504#ifdef __GNUC__ 4505# define alloca __builtin_alloca 4506#else 4507# ifdef _MSC_VER 4508# include <malloc.h> 4509# define alloca _alloca 4510# else 4511# if HAVE_ALLOCA_H 4512# include <alloca.h> 4513# else 4514# ifdef _AIX 4515 #pragma alloca 4516# else 4517# ifndef alloca /* predefined by HP cc +Olibcalls */ 4518char *alloca (); 4519# endif 4520# endif 4521# endif 4522# endif 4523#endif 4524 4525int 4526main () 4527{ 4528char *p = (char *) alloca (1); 4529 if (p) return 0; 4530 ; 4531 return 0; 4532} 4533_ACEOF 4534rm -f conftest.$ac_objext conftest$ac_exeext 4535if { (ac_try="$ac_link" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4541 (eval "$ac_link") 2>conftest.er1 4542 ac_status=$? 4543 grep -v '^ *+' conftest.er1 >conftest.err 4544 rm -f conftest.er1 4545 cat conftest.err >&5 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); } && 4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4549 { (case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552esac 4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_try") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest$ac_exeext' 4559 { (case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4564 (eval "$ac_try") 2>&5 4565 ac_status=$? 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); }; }; then 4568 ac_cv_func_alloca_works=yes 4569else 4570 echo "$as_me: failed program was:" >&5 4571sed 's/^/| /' conftest.$ac_ext >&5 4572 4573 ac_cv_func_alloca_works=no 4574fi 4575 4576rm -f core conftest.err conftest.$ac_objext \ 4577 conftest$ac_exeext conftest.$ac_ext 4578fi 4579{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 4580echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 4581 4582if test $ac_cv_func_alloca_works = yes; then 4583 4584cat >>confdefs.h <<\_ACEOF 4585#define HAVE_ALLOCA 1 4586_ACEOF 4587 4588else 4589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4590# that cause trouble. Some versions do not even contain alloca or 4591# contain a buggy version. If you still want to use their alloca, 4592# use ar to extract alloca.o from them instead of compiling alloca.c. 4593 4594ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4595 4596cat >>confdefs.h <<\_ACEOF 4597#define C_ALLOCA 1 4598_ACEOF 4599 4600 4601{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 4602echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 4603if test "${ac_cv_os_cray+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605else 4606 cat >conftest.$ac_ext <<_ACEOF 4607/* confdefs.h. */ 4608_ACEOF 4609cat confdefs.h >>conftest.$ac_ext 4610cat >>conftest.$ac_ext <<_ACEOF 4611/* end confdefs.h. */ 4612#if defined CRAY && ! defined CRAY2 4613webecray 4614#else 4615wenotbecray 4616#endif 4617 4618_ACEOF 4619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4620 $EGREP "webecray" >/dev/null 2>&1; then 4621 ac_cv_os_cray=yes 4622else 4623 ac_cv_os_cray=no 4624fi 4625rm -f conftest* 4626 4627fi 4628{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 4629echo "${ECHO_T}$ac_cv_os_cray" >&6; } 4630if test $ac_cv_os_cray = yes; then 4631 for ac_func in _getb67 GETB67 getb67; do 4632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4633{ echo "$as_me:$LINENO: checking for $ac_func" >&5 4634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 4635if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 cat >conftest.$ac_ext <<_ACEOF 4639/* confdefs.h. */ 4640_ACEOF 4641cat confdefs.h >>conftest.$ac_ext 4642cat >>conftest.$ac_ext <<_ACEOF 4643/* end confdefs.h. */ 4644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4645 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4646#define $ac_func innocuous_$ac_func 4647 4648/* System header to define __stub macros and hopefully few prototypes, 4649 which can conflict with char $ac_func (); below. 4650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4651 <limits.h> exists even on freestanding compilers. */ 4652 4653#ifdef __STDC__ 4654# include <limits.h> 4655#else 4656# include <assert.h> 4657#endif 4658 4659#undef $ac_func 4660 4661/* Override any GCC internal prototype to avoid an error. 4662 Use char because int might match the return type of a GCC 4663 builtin and then its argument prototype would still apply. */ 4664#ifdef __cplusplus 4665extern "C" 4666#endif 4667char $ac_func (); 4668/* The GNU C library defines this for functions which it implements 4669 to always fail with ENOSYS. Some functions are actually named 4670 something starting with __ and the normal name is an alias. */ 4671#if defined __stub_$ac_func || defined __stub___$ac_func 4672choke me 4673#endif 4674 4675int 4676main () 4677{ 4678return $ac_func (); 4679 ; 4680 return 0; 4681} 4682_ACEOF 4683rm -f conftest.$ac_objext conftest$ac_exeext 4684if { (ac_try="$ac_link" 4685case "(($ac_try" in 4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4687 *) ac_try_echo=$ac_try;; 4688esac 4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4690 (eval "$ac_link") 2>conftest.er1 4691 ac_status=$? 4692 grep -v '^ *+' conftest.er1 >conftest.err 4693 rm -f conftest.er1 4694 cat conftest.err >&5 4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4696 (exit $ac_status); } && 4697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4698 { (case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4703 (eval "$ac_try") 2>&5 4704 ac_status=$? 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); }; } && 4707 { ac_try='test -s conftest$ac_exeext' 4708 { (case "(($ac_try" in 4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4710 *) ac_try_echo=$ac_try;; 4711esac 4712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4713 (eval "$ac_try") 2>&5 4714 ac_status=$? 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); }; }; then 4717 eval "$as_ac_var=yes" 4718else 4719 echo "$as_me: failed program was:" >&5 4720sed 's/^/| /' conftest.$ac_ext >&5 4721 4722 eval "$as_ac_var=no" 4723fi 4724 4725rm -f core conftest.err conftest.$ac_objext \ 4726 conftest$ac_exeext conftest.$ac_ext 4727fi 4728ac_res=`eval echo '${'$as_ac_var'}'` 4729 { echo "$as_me:$LINENO: result: $ac_res" >&5 4730echo "${ECHO_T}$ac_res" >&6; } 4731if test `eval echo '${'$as_ac_var'}'` = yes; then 4732 4733cat >>confdefs.h <<_ACEOF 4734#define CRAY_STACKSEG_END $ac_func 4735_ACEOF 4736 4737 break 4738fi 4739 4740 done 4741fi 4742 4743{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 4744echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 4745if test "${ac_cv_c_stack_direction+set}" = set; then 4746 echo $ECHO_N "(cached) $ECHO_C" >&6 4747else 4748 if test "$cross_compiling" = yes; then 4749 ac_cv_c_stack_direction=0 4750else 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757$ac_includes_default 4758int 4759find_stack_direction () 4760{ 4761 static char *addr = 0; 4762 auto char dummy; 4763 if (addr == 0) 4764 { 4765 addr = &dummy; 4766 return find_stack_direction (); 4767 } 4768 else 4769 return (&dummy > addr) ? 1 : -1; 4770} 4771 4772int 4773main () 4774{ 4775 return find_stack_direction () < 0; 4776} 4777_ACEOF 4778rm -f conftest$ac_exeext 4779if { (ac_try="$ac_link" 4780case "(($ac_try" in 4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4782 *) ac_try_echo=$ac_try;; 4783esac 4784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4785 (eval "$ac_link") 2>&5 4786 ac_status=$? 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4789 { (case "(($ac_try" in 4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4791 *) ac_try_echo=$ac_try;; 4792esac 4793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4794 (eval "$ac_try") 2>&5 4795 ac_status=$? 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); }; }; then 4798 ac_cv_c_stack_direction=1 4799else 4800 echo "$as_me: program exited with status $ac_status" >&5 4801echo "$as_me: failed program was:" >&5 4802sed 's/^/| /' conftest.$ac_ext >&5 4803 4804( exit $ac_status ) 4805ac_cv_c_stack_direction=-1 4806fi 4807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4808fi 4809 4810 4811fi 4812{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 4813echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 4814 4815cat >>confdefs.h <<_ACEOF 4816#define STACK_DIRECTION $ac_cv_c_stack_direction 4817_ACEOF 4818 4819 4820fi 4821 4822 4823 { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5 4824echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; } 4825if test "${ac_cv_win_or_dos+set}" = set; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827else 4828 4829 cat >conftest.$ac_ext <<_ACEOF 4830/* confdefs.h. */ 4831_ACEOF 4832cat confdefs.h >>conftest.$ac_ext 4833cat >>conftest.$ac_ext <<_ACEOF 4834/* end confdefs.h. */ 4835 4836int 4837main () 4838{ 4839#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ 4840neither MSDOS nor Windows 4841#endif 4842 ; 4843 return 0; 4844} 4845_ACEOF 4846rm -f conftest.$ac_objext 4847if { (ac_try="$ac_compile" 4848case "(($ac_try" in 4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4850 *) ac_try_echo=$ac_try;; 4851esac 4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4853 (eval "$ac_compile") 2>conftest.er1 4854 ac_status=$? 4855 grep -v '^ *+' conftest.er1 >conftest.err 4856 rm -f conftest.er1 4857 cat conftest.err >&5 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } && 4860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4861 { (case "(($ac_try" in 4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4863 *) ac_try_echo=$ac_try;; 4864esac 4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4866 (eval "$ac_try") 2>&5 4867 ac_status=$? 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); }; } && 4870 { ac_try='test -s conftest.$ac_objext' 4871 { (case "(($ac_try" in 4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4873 *) ac_try_echo=$ac_try;; 4874esac 4875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4876 (eval "$ac_try") 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); }; }; then 4880 ac_cv_win_or_dos=yes 4881else 4882 echo "$as_me: failed program was:" >&5 4883sed 's/^/| /' conftest.$ac_ext >&5 4884 4885 ac_cv_win_or_dos=no 4886fi 4887 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4889 4890fi 4891{ echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5 4892echo "${ECHO_T}$ac_cv_win_or_dos" >&6; } 4893 4894 if test x"$ac_cv_win_or_dos" = xyes; then 4895 ac_fs_accepts_drive_letter_prefix=1 4896 ac_fs_backslash_is_file_name_separator=1 4897 else 4898 ac_fs_accepts_drive_letter_prefix=0 4899 ac_fs_backslash_is_file_name_separator=0 4900 fi 4901 4902 4903 4904 4905 4906cat >>confdefs.h <<_ACEOF 4907#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix 4908_ACEOF 4909 4910 4911 4912 4913 4914 4915cat >>confdefs.h <<_ACEOF 4916#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator 4917_ACEOF 4918 4919 4920{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 4921echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } 4922if test "${ac_cv_have_decl_strerror_r+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 cat >conftest.$ac_ext <<_ACEOF 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931$ac_includes_default 4932int 4933main () 4934{ 4935#ifndef strerror_r 4936 char *p = (char *) strerror_r; 4937 return !p; 4938#endif 4939 4940 ; 4941 return 0; 4942} 4943_ACEOF 4944rm -f conftest.$ac_objext 4945if { (ac_try="$ac_compile" 4946case "(($ac_try" in 4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4948 *) ac_try_echo=$ac_try;; 4949esac 4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4951 (eval "$ac_compile") 2>conftest.er1 4952 ac_status=$? 4953 grep -v '^ *+' conftest.er1 >conftest.err 4954 rm -f conftest.er1 4955 cat conftest.err >&5 4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4957 (exit $ac_status); } && 4958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4959 { (case "(($ac_try" in 4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4961 *) ac_try_echo=$ac_try;; 4962esac 4963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4964 (eval "$ac_try") 2>&5 4965 ac_status=$? 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4967 (exit $ac_status); }; } && 4968 { ac_try='test -s conftest.$ac_objext' 4969 { (case "(($ac_try" in 4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4971 *) ac_try_echo=$ac_try;; 4972esac 4973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4974 (eval "$ac_try") 2>&5 4975 ac_status=$? 4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4977 (exit $ac_status); }; }; then 4978 ac_cv_have_decl_strerror_r=yes 4979else 4980 echo "$as_me: failed program was:" >&5 4981sed 's/^/| /' conftest.$ac_ext >&5 4982 4983 ac_cv_have_decl_strerror_r=no 4984fi 4985 4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4987fi 4988{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 4989echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } 4990if test $ac_cv_have_decl_strerror_r = yes; then 4991 4992cat >>confdefs.h <<_ACEOF 4993#define HAVE_DECL_STRERROR_R 1 4994_ACEOF 4995 4996 4997else 4998 cat >>confdefs.h <<_ACEOF 4999#define HAVE_DECL_STRERROR_R 0 5000_ACEOF 5001 5002 5003fi 5004 5005 5006 5007for ac_func in strerror_r 5008do 5009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5010{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 cat >conftest.$ac_ext <<_ACEOF 5016/* confdefs.h. */ 5017_ACEOF 5018cat confdefs.h >>conftest.$ac_ext 5019cat >>conftest.$ac_ext <<_ACEOF 5020/* end confdefs.h. */ 5021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5023#define $ac_func innocuous_$ac_func 5024 5025/* System header to define __stub macros and hopefully few prototypes, 5026 which can conflict with char $ac_func (); below. 5027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5028 <limits.h> exists even on freestanding compilers. */ 5029 5030#ifdef __STDC__ 5031# include <limits.h> 5032#else 5033# include <assert.h> 5034#endif 5035 5036#undef $ac_func 5037 5038/* Override any GCC internal prototype to avoid an error. 5039 Use char because int might match the return type of a GCC 5040 builtin and then its argument prototype would still apply. */ 5041#ifdef __cplusplus 5042extern "C" 5043#endif 5044char $ac_func (); 5045/* The GNU C library defines this for functions which it implements 5046 to always fail with ENOSYS. Some functions are actually named 5047 something starting with __ and the normal name is an alias. */ 5048#if defined __stub_$ac_func || defined __stub___$ac_func 5049choke me 5050#endif 5051 5052int 5053main () 5054{ 5055return $ac_func (); 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060rm -f conftest.$ac_objext conftest$ac_exeext 5061if { (ac_try="$ac_link" 5062case "(($ac_try" in 5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5064 *) ac_try_echo=$ac_try;; 5065esac 5066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5067 (eval "$ac_link") 2>conftest.er1 5068 ac_status=$? 5069 grep -v '^ *+' conftest.er1 >conftest.err 5070 rm -f conftest.er1 5071 cat conftest.err >&5 5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5073 (exit $ac_status); } && 5074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5075 { (case "(($ac_try" in 5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5077 *) ac_try_echo=$ac_try;; 5078esac 5079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5080 (eval "$ac_try") 2>&5 5081 ac_status=$? 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); }; } && 5084 { ac_try='test -s conftest$ac_exeext' 5085 { (case "(($ac_try" in 5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5087 *) ac_try_echo=$ac_try;; 5088esac 5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5090 (eval "$ac_try") 2>&5 5091 ac_status=$? 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); }; }; then 5094 eval "$as_ac_var=yes" 5095else 5096 echo "$as_me: failed program was:" >&5 5097sed 's/^/| /' conftest.$ac_ext >&5 5098 5099 eval "$as_ac_var=no" 5100fi 5101 5102rm -f core conftest.err conftest.$ac_objext \ 5103 conftest$ac_exeext conftest.$ac_ext 5104fi 5105ac_res=`eval echo '${'$as_ac_var'}'` 5106 { echo "$as_me:$LINENO: result: $ac_res" >&5 5107echo "${ECHO_T}$ac_res" >&6; } 5108if test `eval echo '${'$as_ac_var'}'` = yes; then 5109 cat >>confdefs.h <<_ACEOF 5110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5111_ACEOF 5112 5113fi 5114done 5115 5116{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 5117echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } 5118if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 5119 echo $ECHO_N "(cached) $ECHO_C" >&6 5120else 5121 5122 ac_cv_func_strerror_r_char_p=no 5123 if test $ac_cv_have_decl_strerror_r = yes; then 5124 cat >conftest.$ac_ext <<_ACEOF 5125/* confdefs.h. */ 5126_ACEOF 5127cat confdefs.h >>conftest.$ac_ext 5128cat >>conftest.$ac_ext <<_ACEOF 5129/* end confdefs.h. */ 5130$ac_includes_default 5131int 5132main () 5133{ 5134 5135 char buf[100]; 5136 char x = *strerror_r (0, buf, sizeof buf); 5137 char *p = strerror_r (0, buf, sizeof buf); 5138 return !p || x; 5139 5140 ; 5141 return 0; 5142} 5143_ACEOF 5144rm -f conftest.$ac_objext 5145if { (ac_try="$ac_compile" 5146case "(($ac_try" in 5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5148 *) ac_try_echo=$ac_try;; 5149esac 5150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5151 (eval "$ac_compile") 2>conftest.er1 5152 ac_status=$? 5153 grep -v '^ *+' conftest.er1 >conftest.err 5154 rm -f conftest.er1 5155 cat conftest.err >&5 5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 (exit $ac_status); } && 5158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5159 { (case "(($ac_try" in 5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5161 *) ac_try_echo=$ac_try;; 5162esac 5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5164 (eval "$ac_try") 2>&5 5165 ac_status=$? 5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5167 (exit $ac_status); }; } && 5168 { ac_try='test -s conftest.$ac_objext' 5169 { (case "(($ac_try" in 5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5171 *) ac_try_echo=$ac_try;; 5172esac 5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5174 (eval "$ac_try") 2>&5 5175 ac_status=$? 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); }; }; then 5178 ac_cv_func_strerror_r_char_p=yes 5179else 5180 echo "$as_me: failed program was:" >&5 5181sed 's/^/| /' conftest.$ac_ext >&5 5182 5183 5184fi 5185 5186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5187 else 5188 # strerror_r is not declared. Choose between 5189 # systems that have relatively inaccessible declarations for the 5190 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 5191 # former has a strerror_r that returns char*, while the latter 5192 # has a strerror_r that returns `int'. 5193 # This test should segfault on the DEC system. 5194 if test "$cross_compiling" = yes; then 5195 : 5196else 5197 cat >conftest.$ac_ext <<_ACEOF 5198/* confdefs.h. */ 5199_ACEOF 5200cat confdefs.h >>conftest.$ac_ext 5201cat >>conftest.$ac_ext <<_ACEOF 5202/* end confdefs.h. */ 5203$ac_includes_default 5204 extern char *strerror_r (); 5205int 5206main () 5207{ 5208char buf[100]; 5209 char x = *strerror_r (0, buf, sizeof buf); 5210 return ! isalpha (x); 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215rm -f conftest$ac_exeext 5216if { (ac_try="$ac_link" 5217case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5222 (eval "$ac_link") 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5226 { (case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5231 (eval "$ac_try") 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); }; }; then 5235 ac_cv_func_strerror_r_char_p=yes 5236else 5237 echo "$as_me: program exited with status $ac_status" >&5 5238echo "$as_me: failed program was:" >&5 5239sed 's/^/| /' conftest.$ac_ext >&5 5240 5241fi 5242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5243fi 5244 5245 5246 fi 5247 5248fi 5249{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 5250echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } 5251if test $ac_cv_func_strerror_r_char_p = yes; then 5252 5253cat >>confdefs.h <<\_ACEOF 5254#define STRERROR_R_CHAR_P 1 5255_ACEOF 5256 5257fi 5258 5259{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5260echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5261if test "${ac_cv_c_const+set}" = set; then 5262 echo $ECHO_N "(cached) $ECHO_C" >&6 5263else 5264 cat >conftest.$ac_ext <<_ACEOF 5265/* confdefs.h. */ 5266_ACEOF 5267cat confdefs.h >>conftest.$ac_ext 5268cat >>conftest.$ac_ext <<_ACEOF 5269/* end confdefs.h. */ 5270 5271int 5272main () 5273{ 5274/* FIXME: Include the comments suggested by Paul. */ 5275#ifndef __cplusplus 5276 /* Ultrix mips cc rejects this. */ 5277 typedef int charset[2]; 5278 const charset x; 5279 /* SunOS 4.1.1 cc rejects this. */ 5280 char const *const *ccp; 5281 char **p; 5282 /* NEC SVR4.0.2 mips cc rejects this. */ 5283 struct point {int x, y;}; 5284 static struct point const zero = {0,0}; 5285 /* AIX XL C 1.02.0.0 rejects this. 5286 It does not let you subtract one const X* pointer from another in 5287 an arm of an if-expression whose if-part is not a constant 5288 expression */ 5289 const char *g = "string"; 5290 ccp = &g + (g ? g-g : 0); 5291 /* HPUX 7.0 cc rejects these. */ 5292 ++ccp; 5293 p = (char**) ccp; 5294 ccp = (char const *const *) p; 5295 { /* SCO 3.2v4 cc rejects this. */ 5296 char *t; 5297 char const *s = 0 ? (char *) 0 : (char const *) 0; 5298 5299 *t++ = 0; 5300 if (s) return 0; 5301 } 5302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5303 int x[] = {25, 17}; 5304 const int *foo = &x[0]; 5305 ++foo; 5306 } 5307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5308 typedef const int *iptr; 5309 iptr p = 0; 5310 ++p; 5311 } 5312 { /* AIX XL C 1.02.0.0 rejects this saying 5313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5314 struct s { int j; const int *ap[3]; }; 5315 struct s *b; b->j = 5; 5316 } 5317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5318 const int foo = 10; 5319 if (!foo) return 0; 5320 } 5321 return !x[0] && !zero.x; 5322#endif 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328rm -f conftest.$ac_objext 5329if { (ac_try="$ac_compile" 5330case "(($ac_try" in 5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5332 *) ac_try_echo=$ac_try;; 5333esac 5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5335 (eval "$ac_compile") 2>conftest.er1 5336 ac_status=$? 5337 grep -v '^ *+' conftest.er1 >conftest.err 5338 rm -f conftest.er1 5339 cat conftest.err >&5 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } && 5342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5343 { (case "(($ac_try" in 5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5345 *) ac_try_echo=$ac_try;; 5346esac 5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5348 (eval "$ac_try") 2>&5 5349 ac_status=$? 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); }; } && 5352 { ac_try='test -s conftest.$ac_objext' 5353 { (case "(($ac_try" in 5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5355 *) ac_try_echo=$ac_try;; 5356esac 5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5358 (eval "$ac_try") 2>&5 5359 ac_status=$? 5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5361 (exit $ac_status); }; }; then 5362 ac_cv_c_const=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 ac_cv_c_const=no 5368fi 5369 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5371fi 5372{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5373echo "${ECHO_T}$ac_cv_c_const" >&6; } 5374if test $ac_cv_c_const = no; then 5375 5376cat >>confdefs.h <<\_ACEOF 5377#define const 5378_ACEOF 5379 5380fi 5381 5382{ echo "$as_me:$LINENO: checking for mbstate_t" >&5 5383echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } 5384if test "${ac_cv_type_mbstate_t+set}" = set; then 5385 echo $ECHO_N "(cached) $ECHO_C" >&6 5386else 5387 cat >conftest.$ac_ext <<_ACEOF 5388/* confdefs.h. */ 5389_ACEOF 5390cat confdefs.h >>conftest.$ac_ext 5391cat >>conftest.$ac_ext <<_ACEOF 5392/* end confdefs.h. */ 5393$ac_includes_default 5394# include <wchar.h> 5395int 5396main () 5397{ 5398mbstate_t x; return sizeof x; 5399 ; 5400 return 0; 5401} 5402_ACEOF 5403rm -f conftest.$ac_objext 5404if { (ac_try="$ac_compile" 5405case "(($ac_try" in 5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5407 *) ac_try_echo=$ac_try;; 5408esac 5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5410 (eval "$ac_compile") 2>conftest.er1 5411 ac_status=$? 5412 grep -v '^ *+' conftest.er1 >conftest.err 5413 rm -f conftest.er1 5414 cat conftest.err >&5 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); } && 5417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5418 { (case "(($ac_try" in 5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5420 *) ac_try_echo=$ac_try;; 5421esac 5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5423 (eval "$ac_try") 2>&5 5424 ac_status=$? 5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426 (exit $ac_status); }; } && 5427 { ac_try='test -s conftest.$ac_objext' 5428 { (case "(($ac_try" in 5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5430 *) ac_try_echo=$ac_try;; 5431esac 5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5433 (eval "$ac_try") 2>&5 5434 ac_status=$? 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); }; }; then 5437 ac_cv_type_mbstate_t=yes 5438else 5439 echo "$as_me: failed program was:" >&5 5440sed 's/^/| /' conftest.$ac_ext >&5 5441 5442 ac_cv_type_mbstate_t=no 5443fi 5444 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446fi 5447{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 5448echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } 5449 if test $ac_cv_type_mbstate_t = yes; then 5450 5451cat >>confdefs.h <<\_ACEOF 5452#define HAVE_MBSTATE_T 1 5453_ACEOF 5454 5455 else 5456 5457cat >>confdefs.h <<\_ACEOF 5458#define mbstate_t int 5459_ACEOF 5460 5461 fi 5462{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 5463echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } 5464if test "${gl_cv_c_restrict+set}" = set; then 5465 echo $ECHO_N "(cached) $ECHO_C" >&6 5466else 5467 gl_cv_c_restrict=no 5468 # Try the official restrict keyword, then gcc's __restrict, and 5469 # the less common variants. 5470 for ac_kw in restrict __restrict __restrict__ _Restrict; do 5471 cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477float * $ac_kw x; 5478_ACEOF 5479rm -f conftest.$ac_objext 5480if { (ac_try="$ac_compile" 5481case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5486 (eval "$ac_compile") 2>conftest.er1 5487 ac_status=$? 5488 grep -v '^ *+' conftest.er1 >conftest.err 5489 rm -f conftest.er1 5490 cat conftest.err >&5 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && 5493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5494 { (case "(($ac_try" in 5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5496 *) ac_try_echo=$ac_try;; 5497esac 5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5499 (eval "$ac_try") 2>&5 5500 ac_status=$? 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); }; } && 5503 { ac_try='test -s conftest.$ac_objext' 5504 { (case "(($ac_try" in 5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5506 *) ac_try_echo=$ac_try;; 5507esac 5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5509 (eval "$ac_try") 2>&5 5510 ac_status=$? 5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 (exit $ac_status); }; }; then 5513 gl_cv_c_restrict=$ac_kw; break 5514else 5515 echo "$as_me: failed program was:" >&5 5516sed 's/^/| /' conftest.$ac_ext >&5 5517 5518 5519fi 5520 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5522 done 5523 5524fi 5525{ echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5 5526echo "${ECHO_T}$gl_cv_c_restrict" >&6; } 5527 case $gl_cv_c_restrict in 5528 restrict) ;; 5529 no) 5530cat >>confdefs.h <<\_ACEOF 5531#define restrict 5532_ACEOF 5533 ;; 5534 *) cat >>confdefs.h <<_ACEOF 5535#define restrict $gl_cv_c_restrict 5536_ACEOF 5537 ;; 5538 esac 5539 5540 5541 { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5 5542echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; } 5543 if test "${gl_cv_socket_ipv4+set}" = set; then 5544 echo $ECHO_N "(cached) $ECHO_C" >&6 5545else 5546 cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552#include <sys/types.h> 5553#include <sys/socket.h> 5554#include <netinet/in.h> 5555int 5556main () 5557{ 5558int x = AF_INET; struct in_addr y; struct sockaddr_in z; 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563rm -f conftest.$ac_objext 5564if { (ac_try="$ac_compile" 5565case "(($ac_try" in 5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5567 *) ac_try_echo=$ac_try;; 5568esac 5569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5570 (eval "$ac_compile") 2>conftest.er1 5571 ac_status=$? 5572 grep -v '^ *+' conftest.er1 >conftest.err 5573 rm -f conftest.er1 5574 cat conftest.err >&5 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576 (exit $ac_status); } && 5577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5578 { (case "(($ac_try" in 5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5580 *) ac_try_echo=$ac_try;; 5581esac 5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5583 (eval "$ac_try") 2>&5 5584 ac_status=$? 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); }; } && 5587 { ac_try='test -s conftest.$ac_objext' 5588 { (case "(($ac_try" in 5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5590 *) ac_try_echo=$ac_try;; 5591esac 5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5593 (eval "$ac_try") 2>&5 5594 ac_status=$? 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); }; }; then 5597 gl_cv_socket_ipv4=yes 5598else 5599 echo "$as_me: failed program was:" >&5 5600sed 's/^/| /' conftest.$ac_ext >&5 5601 5602 gl_cv_socket_ipv4=no 5603fi 5604 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606fi 5607 5608 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5 5609echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; } 5610 if test $gl_cv_socket_ipv4 = yes; then 5611 5612cat >>confdefs.h <<\_ACEOF 5613#define HAVE_IPV4 1 5614_ACEOF 5615 5616 fi 5617 5618 { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5 5619echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; } 5620 if test "${gl_cv_socket_ipv6+set}" = set; then 5621 echo $ECHO_N "(cached) $ECHO_C" >&6 5622else 5623 cat >conftest.$ac_ext <<_ACEOF 5624/* confdefs.h. */ 5625_ACEOF 5626cat confdefs.h >>conftest.$ac_ext 5627cat >>conftest.$ac_ext <<_ACEOF 5628/* end confdefs.h. */ 5629#include <sys/types.h> 5630#include <sys/socket.h> 5631#include <netinet/in.h> 5632int 5633main () 5634{ 5635int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 5636 ; 5637 return 0; 5638} 5639_ACEOF 5640rm -f conftest.$ac_objext 5641if { (ac_try="$ac_compile" 5642case "(($ac_try" in 5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5644 *) ac_try_echo=$ac_try;; 5645esac 5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5647 (eval "$ac_compile") 2>conftest.er1 5648 ac_status=$? 5649 grep -v '^ *+' conftest.er1 >conftest.err 5650 rm -f conftest.er1 5651 cat conftest.err >&5 5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5653 (exit $ac_status); } && 5654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5655 { (case "(($ac_try" in 5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5657 *) ac_try_echo=$ac_try;; 5658esac 5659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5660 (eval "$ac_try") 2>&5 5661 ac_status=$? 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); }; } && 5664 { ac_try='test -s conftest.$ac_objext' 5665 { (case "(($ac_try" in 5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5667 *) ac_try_echo=$ac_try;; 5668esac 5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5670 (eval "$ac_try") 2>&5 5671 ac_status=$? 5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 (exit $ac_status); }; }; then 5674 gl_cv_socket_ipv6=yes 5675else 5676 echo "$as_me: failed program was:" >&5 5677sed 's/^/| /' conftest.$ac_ext >&5 5678 5679 gl_cv_socket_ipv6=no 5680fi 5681 5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683fi 5684 5685 { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5 5686echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; } 5687 if test $gl_cv_socket_ipv6 = yes; then 5688 5689cat >>confdefs.h <<\_ACEOF 5690#define HAVE_IPV6 1 5691_ACEOF 5692 5693 fi 5694 5695{ echo "$as_me:$LINENO: checking for inline" >&5 5696echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5697if test "${ac_cv_c_inline+set}" = set; then 5698 echo $ECHO_N "(cached) $ECHO_C" >&6 5699else 5700 ac_cv_c_inline=no 5701for ac_kw in inline __inline__ __inline; do 5702 cat >conftest.$ac_ext <<_ACEOF 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708#ifndef __cplusplus 5709typedef int foo_t; 5710static $ac_kw foo_t static_foo () {return 0; } 5711$ac_kw foo_t foo () {return 0; } 5712#endif 5713 5714_ACEOF 5715rm -f conftest.$ac_objext 5716if { (ac_try="$ac_compile" 5717case "(($ac_try" in 5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5719 *) ac_try_echo=$ac_try;; 5720esac 5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5722 (eval "$ac_compile") 2>conftest.er1 5723 ac_status=$? 5724 grep -v '^ *+' conftest.er1 >conftest.err 5725 rm -f conftest.er1 5726 cat conftest.err >&5 5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5728 (exit $ac_status); } && 5729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5730 { (case "(($ac_try" in 5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5732 *) ac_try_echo=$ac_try;; 5733esac 5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5735 (eval "$ac_try") 2>&5 5736 ac_status=$? 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); }; } && 5739 { ac_try='test -s conftest.$ac_objext' 5740 { (case "(($ac_try" in 5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5742 *) ac_try_echo=$ac_try;; 5743esac 5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5745 (eval "$ac_try") 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); }; }; then 5749 ac_cv_c_inline=$ac_kw 5750else 5751 echo "$as_me: failed program was:" >&5 5752sed 's/^/| /' conftest.$ac_ext >&5 5753 5754 5755fi 5756 5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5758 test "$ac_cv_c_inline" != no && break 5759done 5760 5761fi 5762{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5763echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5764 5765 5766case $ac_cv_c_inline in 5767 inline | yes) ;; 5768 *) 5769 case $ac_cv_c_inline in 5770 no) ac_val=;; 5771 *) ac_val=$ac_cv_c_inline;; 5772 esac 5773 cat >>confdefs.h <<_ACEOF 5774#ifndef __cplusplus 5775#define inline $ac_val 5776#endif 5777_ACEOF 5778 ;; 5779esac 5780 5781 5782 5783 5784 5785 5786for ac_header in $gl_header_list 5787do 5788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5790 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5793 echo $ECHO_N "(cached) $ECHO_C" >&6 5794fi 5795ac_res=`eval echo '${'$as_ac_Header'}'` 5796 { echo "$as_me:$LINENO: result: $ac_res" >&5 5797echo "${ECHO_T}$ac_res" >&6; } 5798else 5799 # Is the header compilable? 5800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5802cat >conftest.$ac_ext <<_ACEOF 5803/* confdefs.h. */ 5804_ACEOF 5805cat confdefs.h >>conftest.$ac_ext 5806cat >>conftest.$ac_ext <<_ACEOF 5807/* end confdefs.h. */ 5808$ac_includes_default 5809#include <$ac_header> 5810_ACEOF 5811rm -f conftest.$ac_objext 5812if { (ac_try="$ac_compile" 5813case "(($ac_try" in 5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5815 *) ac_try_echo=$ac_try;; 5816esac 5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5818 (eval "$ac_compile") 2>conftest.er1 5819 ac_status=$? 5820 grep -v '^ *+' conftest.er1 >conftest.err 5821 rm -f conftest.er1 5822 cat conftest.err >&5 5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 (exit $ac_status); } && 5825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5826 { (case "(($ac_try" in 5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5828 *) ac_try_echo=$ac_try;; 5829esac 5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5831 (eval "$ac_try") 2>&5 5832 ac_status=$? 5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5834 (exit $ac_status); }; } && 5835 { ac_try='test -s conftest.$ac_objext' 5836 { (case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5841 (eval "$ac_try") 2>&5 5842 ac_status=$? 5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5844 (exit $ac_status); }; }; then 5845 ac_header_compiler=yes 5846else 5847 echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 ac_header_compiler=no 5851fi 5852 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5855echo "${ECHO_T}$ac_header_compiler" >&6; } 5856 5857# Is the header present? 5858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5860cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#include <$ac_header> 5867_ACEOF 5868if { (ac_try="$ac_cpp conftest.$ac_ext" 5869case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872esac 5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } >/dev/null; then 5881 if test -s conftest.err; then 5882 ac_cpp_err=$ac_c_preproc_warn_flag 5883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5884 else 5885 ac_cpp_err= 5886 fi 5887else 5888 ac_cpp_err=yes 5889fi 5890if test -z "$ac_cpp_err"; then 5891 ac_header_preproc=yes 5892else 5893 echo "$as_me: failed program was:" >&5 5894sed 's/^/| /' conftest.$ac_ext >&5 5895 5896 ac_header_preproc=no 5897fi 5898 5899rm -f conftest.err conftest.$ac_ext 5900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5901echo "${ECHO_T}$ac_header_preproc" >&6; } 5902 5903# So? What about this header? 5904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5905 yes:no: ) 5906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5910 ac_header_preproc=yes 5911 ;; 5912 no:yes:* ) 5913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5925 ( cat <<\_ASBOX 5926## ---------------------------------------- ## 5927## Report this to vladch@k804.mainet.msk.su ## 5928## ---------------------------------------- ## 5929_ASBOX 5930 ) | sed "s/^/$as_me: WARNING: /" >&2 5931 ;; 5932esac 5933{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 eval "$as_ac_Header=\$ac_header_preproc" 5939fi 5940ac_res=`eval echo '${'$as_ac_Header'}'` 5941 { echo "$as_me:$LINENO: result: $ac_res" >&5 5942echo "${ECHO_T}$ac_res" >&6; } 5943 5944fi 5945if test `eval echo '${'$as_ac_Header'}'` = yes; then 5946 cat >>confdefs.h <<_ACEOF 5947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5948_ACEOF 5949 5950fi 5951 5952done 5953 5954 5955 5956 5957 5958 5959 5960 { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5 5961echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; } 5962if test "${ac_cv_have_decl_getdelim+set}" = set; then 5963 echo $ECHO_N "(cached) $ECHO_C" >&6 5964else 5965 cat >conftest.$ac_ext <<_ACEOF 5966/* confdefs.h. */ 5967_ACEOF 5968cat confdefs.h >>conftest.$ac_ext 5969cat >>conftest.$ac_ext <<_ACEOF 5970/* end confdefs.h. */ 5971$ac_includes_default 5972int 5973main () 5974{ 5975#ifndef getdelim 5976 char *p = (char *) getdelim; 5977 return !p; 5978#endif 5979 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984rm -f conftest.$ac_objext 5985if { (ac_try="$ac_compile" 5986case "(($ac_try" in 5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5988 *) ac_try_echo=$ac_try;; 5989esac 5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5991 (eval "$ac_compile") 2>conftest.er1 5992 ac_status=$? 5993 grep -v '^ *+' conftest.er1 >conftest.err 5994 rm -f conftest.er1 5995 cat conftest.err >&5 5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5997 (exit $ac_status); } && 5998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5999 { (case "(($ac_try" in 6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6001 *) ac_try_echo=$ac_try;; 6002esac 6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6004 (eval "$ac_try") 2>&5 6005 ac_status=$? 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); }; } && 6008 { ac_try='test -s conftest.$ac_objext' 6009 { (case "(($ac_try" in 6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6011 *) ac_try_echo=$ac_try;; 6012esac 6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6014 (eval "$ac_try") 2>&5 6015 ac_status=$? 6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6017 (exit $ac_status); }; }; then 6018 ac_cv_have_decl_getdelim=yes 6019else 6020 echo "$as_me: failed program was:" >&5 6021sed 's/^/| /' conftest.$ac_ext >&5 6022 6023 ac_cv_have_decl_getdelim=no 6024fi 6025 6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6027fi 6028{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5 6029echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; } 6030if test $ac_cv_have_decl_getdelim = yes; then 6031 6032cat >>confdefs.h <<_ACEOF 6033#define HAVE_DECL_GETDELIM 1 6034_ACEOF 6035 6036 6037else 6038 cat >>confdefs.h <<_ACEOF 6039#define HAVE_DECL_GETDELIM 0 6040_ACEOF 6041 6042 6043fi 6044 6045 6046 6047 6048 if test -z "$GETOPT_H"; then 6049 6050for ac_header in getopt.h 6051do 6052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6054 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6057 echo $ECHO_N "(cached) $ECHO_C" >&6 6058fi 6059ac_res=`eval echo '${'$as_ac_Header'}'` 6060 { echo "$as_me:$LINENO: result: $ac_res" >&5 6061echo "${ECHO_T}$ac_res" >&6; } 6062else 6063 # Is the header compilable? 6064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6066cat >conftest.$ac_ext <<_ACEOF 6067/* confdefs.h. */ 6068_ACEOF 6069cat confdefs.h >>conftest.$ac_ext 6070cat >>conftest.$ac_ext <<_ACEOF 6071/* end confdefs.h. */ 6072$ac_includes_default 6073#include <$ac_header> 6074_ACEOF 6075rm -f conftest.$ac_objext 6076if { (ac_try="$ac_compile" 6077case "(($ac_try" in 6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6079 *) ac_try_echo=$ac_try;; 6080esac 6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6082 (eval "$ac_compile") 2>conftest.er1 6083 ac_status=$? 6084 grep -v '^ *+' conftest.er1 >conftest.err 6085 rm -f conftest.er1 6086 cat conftest.err >&5 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6088 (exit $ac_status); } && 6089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6090 { (case "(($ac_try" in 6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6092 *) ac_try_echo=$ac_try;; 6093esac 6094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6095 (eval "$ac_try") 2>&5 6096 ac_status=$? 6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6098 (exit $ac_status); }; } && 6099 { ac_try='test -s conftest.$ac_objext' 6100 { (case "(($ac_try" in 6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6102 *) ac_try_echo=$ac_try;; 6103esac 6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6105 (eval "$ac_try") 2>&5 6106 ac_status=$? 6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6108 (exit $ac_status); }; }; then 6109 ac_header_compiler=yes 6110else 6111 echo "$as_me: failed program was:" >&5 6112sed 's/^/| /' conftest.$ac_ext >&5 6113 6114 ac_header_compiler=no 6115fi 6116 6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6119echo "${ECHO_T}$ac_header_compiler" >&6; } 6120 6121# Is the header present? 6122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6124cat >conftest.$ac_ext <<_ACEOF 6125/* confdefs.h. */ 6126_ACEOF 6127cat confdefs.h >>conftest.$ac_ext 6128cat >>conftest.$ac_ext <<_ACEOF 6129/* end confdefs.h. */ 6130#include <$ac_header> 6131_ACEOF 6132if { (ac_try="$ac_cpp conftest.$ac_ext" 6133case "(($ac_try" in 6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6135 *) ac_try_echo=$ac_try;; 6136esac 6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6139 ac_status=$? 6140 grep -v '^ *+' conftest.er1 >conftest.err 6141 rm -f conftest.er1 6142 cat conftest.err >&5 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); } >/dev/null; then 6145 if test -s conftest.err; then 6146 ac_cpp_err=$ac_c_preproc_warn_flag 6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6148 else 6149 ac_cpp_err= 6150 fi 6151else 6152 ac_cpp_err=yes 6153fi 6154if test -z "$ac_cpp_err"; then 6155 ac_header_preproc=yes 6156else 6157 echo "$as_me: failed program was:" >&5 6158sed 's/^/| /' conftest.$ac_ext >&5 6159 6160 ac_header_preproc=no 6161fi 6162 6163rm -f conftest.err conftest.$ac_ext 6164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6165echo "${ECHO_T}$ac_header_preproc" >&6; } 6166 6167# So? What about this header? 6168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6169 yes:no: ) 6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6174 ac_header_preproc=yes 6175 ;; 6176 no:yes:* ) 6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6189 ( cat <<\_ASBOX 6190## ---------------------------------------- ## 6191## Report this to vladch@k804.mainet.msk.su ## 6192## ---------------------------------------- ## 6193_ASBOX 6194 ) | sed "s/^/$as_me: WARNING: /" >&2 6195 ;; 6196esac 6197{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 eval "$as_ac_Header=\$ac_header_preproc" 6203fi 6204ac_res=`eval echo '${'$as_ac_Header'}'` 6205 { echo "$as_me:$LINENO: result: $ac_res" >&5 6206echo "${ECHO_T}$ac_res" >&6; } 6207 6208fi 6209if test `eval echo '${'$as_ac_Header'}'` = yes; then 6210 cat >>confdefs.h <<_ACEOF 6211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6212_ACEOF 6213 6214else 6215 GETOPT_H=getopt.h 6216fi 6217 6218done 6219 6220 fi 6221 6222 if test -z "$GETOPT_H"; then 6223 6224for ac_func in getopt_long_only 6225do 6226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6227{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6229if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6230 echo $ECHO_N "(cached) $ECHO_C" >&6 6231else 6232 cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6239 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6240#define $ac_func innocuous_$ac_func 6241 6242/* System header to define __stub macros and hopefully few prototypes, 6243 which can conflict with char $ac_func (); below. 6244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6245 <limits.h> exists even on freestanding compilers. */ 6246 6247#ifdef __STDC__ 6248# include <limits.h> 6249#else 6250# include <assert.h> 6251#endif 6252 6253#undef $ac_func 6254 6255/* Override any GCC internal prototype to avoid an error. 6256 Use char because int might match the return type of a GCC 6257 builtin and then its argument prototype would still apply. */ 6258#ifdef __cplusplus 6259extern "C" 6260#endif 6261char $ac_func (); 6262/* The GNU C library defines this for functions which it implements 6263 to always fail with ENOSYS. Some functions are actually named 6264 something starting with __ and the normal name is an alias. */ 6265#if defined __stub_$ac_func || defined __stub___$ac_func 6266choke me 6267#endif 6268 6269int 6270main () 6271{ 6272return $ac_func (); 6273 ; 6274 return 0; 6275} 6276_ACEOF 6277rm -f conftest.$ac_objext conftest$ac_exeext 6278if { (ac_try="$ac_link" 6279case "(($ac_try" in 6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6281 *) ac_try_echo=$ac_try;; 6282esac 6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6284 (eval "$ac_link") 2>conftest.er1 6285 ac_status=$? 6286 grep -v '^ *+' conftest.er1 >conftest.err 6287 rm -f conftest.er1 6288 cat conftest.err >&5 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 (exit $ac_status); } && 6291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6292 { (case "(($ac_try" in 6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6294 *) ac_try_echo=$ac_try;; 6295esac 6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6297 (eval "$ac_try") 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; } && 6301 { ac_try='test -s conftest$ac_exeext' 6302 { (case "(($ac_try" in 6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6304 *) ac_try_echo=$ac_try;; 6305esac 6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6307 (eval "$ac_try") 2>&5 6308 ac_status=$? 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); }; }; then 6311 eval "$as_ac_var=yes" 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 eval "$as_ac_var=no" 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext \ 6320 conftest$ac_exeext conftest.$ac_ext 6321fi 6322ac_res=`eval echo '${'$as_ac_var'}'` 6323 { echo "$as_me:$LINENO: result: $ac_res" >&5 6324echo "${ECHO_T}$ac_res" >&6; } 6325if test `eval echo '${'$as_ac_var'}'` = yes; then 6326 cat >>confdefs.h <<_ACEOF 6327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6328_ACEOF 6329 6330else 6331 GETOPT_H=getopt.h 6332fi 6333done 6334 6335 fi 6336 6337 if test -z "$GETOPT_H"; then 6338 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 6339echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } 6340if test "${ac_cv_have_decl_optreset+set}" = set; then 6341 echo $ECHO_N "(cached) $ECHO_C" >&6 6342else 6343 cat >conftest.$ac_ext <<_ACEOF 6344/* confdefs.h. */ 6345_ACEOF 6346cat confdefs.h >>conftest.$ac_ext 6347cat >>conftest.$ac_ext <<_ACEOF 6348/* end confdefs.h. */ 6349#include <getopt.h> 6350 6351int 6352main () 6353{ 6354#ifndef optreset 6355 char *p = (char *) optreset; 6356 return !p; 6357#endif 6358 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363rm -f conftest.$ac_objext 6364if { (ac_try="$ac_compile" 6365case "(($ac_try" in 6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6367 *) ac_try_echo=$ac_try;; 6368esac 6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6370 (eval "$ac_compile") 2>conftest.er1 6371 ac_status=$? 6372 grep -v '^ *+' conftest.er1 >conftest.err 6373 rm -f conftest.er1 6374 cat conftest.err >&5 6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6376 (exit $ac_status); } && 6377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6378 { (case "(($ac_try" in 6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6380 *) ac_try_echo=$ac_try;; 6381esac 6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6383 (eval "$ac_try") 2>&5 6384 ac_status=$? 6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6386 (exit $ac_status); }; } && 6387 { ac_try='test -s conftest.$ac_objext' 6388 { (case "(($ac_try" in 6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6390 *) ac_try_echo=$ac_try;; 6391esac 6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6393 (eval "$ac_try") 2>&5 6394 ac_status=$? 6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6396 (exit $ac_status); }; }; then 6397 ac_cv_have_decl_optreset=yes 6398else 6399 echo "$as_me: failed program was:" >&5 6400sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 ac_cv_have_decl_optreset=no 6403fi 6404 6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6406fi 6407{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 6408echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } 6409if test $ac_cv_have_decl_optreset = yes; then 6410 GETOPT_H=getopt.h 6411fi 6412 6413 fi 6414 6415 if test -z "$GETOPT_H"; then 6416 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 6417echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } 6418if test "${gl_cv_func_gnu_getopt+set}" = set; then 6419 echo $ECHO_N "(cached) $ECHO_C" >&6 6420else 6421 if test "$cross_compiling" = yes; then 6422 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 6423echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } 6424if test "${ac_cv_have_decl_getopt_clip+set}" = set; then 6425 echo $ECHO_N "(cached) $ECHO_C" >&6 6426else 6427 cat >conftest.$ac_ext <<_ACEOF 6428/* confdefs.h. */ 6429_ACEOF 6430cat confdefs.h >>conftest.$ac_ext 6431cat >>conftest.$ac_ext <<_ACEOF 6432/* end confdefs.h. */ 6433#include <getopt.h> 6434 6435int 6436main () 6437{ 6438#ifndef getopt_clip 6439 char *p = (char *) getopt_clip; 6440 return !p; 6441#endif 6442 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447rm -f conftest.$ac_objext 6448if { (ac_try="$ac_compile" 6449case "(($ac_try" in 6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6451 *) ac_try_echo=$ac_try;; 6452esac 6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6454 (eval "$ac_compile") 2>conftest.er1 6455 ac_status=$? 6456 grep -v '^ *+' conftest.er1 >conftest.err 6457 rm -f conftest.er1 6458 cat conftest.err >&5 6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6460 (exit $ac_status); } && 6461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6462 { (case "(($ac_try" in 6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6464 *) ac_try_echo=$ac_try;; 6465esac 6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6467 (eval "$ac_try") 2>&5 6468 ac_status=$? 6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6470 (exit $ac_status); }; } && 6471 { ac_try='test -s conftest.$ac_objext' 6472 { (case "(($ac_try" in 6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6474 *) ac_try_echo=$ac_try;; 6475esac 6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6477 (eval "$ac_try") 2>&5 6478 ac_status=$? 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6480 (exit $ac_status); }; }; then 6481 ac_cv_have_decl_getopt_clip=yes 6482else 6483 echo "$as_me: failed program was:" >&5 6484sed 's/^/| /' conftest.$ac_ext >&5 6485 6486 ac_cv_have_decl_getopt_clip=no 6487fi 6488 6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6490fi 6491{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 6492echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } 6493if test $ac_cv_have_decl_getopt_clip = yes; then 6494 gl_cv_func_gnu_getopt=no 6495else 6496 gl_cv_func_gnu_getopt=yes 6497fi 6498 6499else 6500 cat >conftest.$ac_ext <<_ACEOF 6501/* confdefs.h. */ 6502_ACEOF 6503cat confdefs.h >>conftest.$ac_ext 6504cat >>conftest.$ac_ext <<_ACEOF 6505/* end confdefs.h. */ 6506#include <getopt.h> 6507int 6508main () 6509{ 6510 6511 char *myargv[3]; 6512 myargv[0] = "conftest"; 6513 myargv[1] = "-+"; 6514 myargv[2] = 0; 6515 return getopt (2, myargv, "+a") != '?'; 6516 6517 ; 6518 return 0; 6519} 6520_ACEOF 6521rm -f conftest$ac_exeext 6522if { (ac_try="$ac_link" 6523case "(($ac_try" in 6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6525 *) ac_try_echo=$ac_try;; 6526esac 6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6528 (eval "$ac_link") 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6532 { (case "(($ac_try" in 6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6534 *) ac_try_echo=$ac_try;; 6535esac 6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6537 (eval "$ac_try") 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); }; }; then 6541 gl_cv_func_gnu_getopt=yes 6542else 6543 echo "$as_me: program exited with status $ac_status" >&5 6544echo "$as_me: failed program was:" >&5 6545sed 's/^/| /' conftest.$ac_ext >&5 6546 6547( exit $ac_status ) 6548gl_cv_func_gnu_getopt=no 6549fi 6550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6551fi 6552 6553 6554fi 6555{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 6556echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } 6557 if test "$gl_cv_func_gnu_getopt" = "no"; then 6558 GETOPT_H=getopt.h 6559 fi 6560 fi 6561 6562{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 6563echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } 6564if test "${ac_cv_header_stdbool_h+set}" = set; then 6565 echo $ECHO_N "(cached) $ECHO_C" >&6 6566else 6567 cat >conftest.$ac_ext <<_ACEOF 6568/* confdefs.h. */ 6569_ACEOF 6570cat confdefs.h >>conftest.$ac_ext 6571cat >>conftest.$ac_ext <<_ACEOF 6572/* end confdefs.h. */ 6573 6574 #include <stdbool.h> 6575 #ifndef bool 6576 "error: bool is not defined" 6577 #endif 6578 #ifndef false 6579 "error: false is not defined" 6580 #endif 6581 #if false 6582 "error: false is not 0" 6583 #endif 6584 #ifndef true 6585 "error: true is not defined" 6586 #endif 6587 #if true != 1 6588 "error: true is not 1" 6589 #endif 6590 #ifndef __bool_true_false_are_defined 6591 "error: __bool_true_false_are_defined is not defined" 6592 #endif 6593 6594 struct s { _Bool s: 1; _Bool t; } s; 6595 6596 char a[true == 1 ? 1 : -1]; 6597 char b[false == 0 ? 1 : -1]; 6598 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 6599 char d[(bool) -0.5 == true ? 1 : -1]; 6600 bool e = &s; 6601 char f[(_Bool) -0.0 == false ? 1 : -1]; 6602 char g[true]; 6603 char h[sizeof (_Bool)]; 6604 char i[sizeof s.t]; 6605 enum { j = false, k = true, l = false * true, m = true * 256 }; 6606 _Bool n[m]; 6607 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 6608 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 6609 6610int 6611main () 6612{ 6613 6614 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l 6615 + !m + !n + !o + !p); 6616 6617 ; 6618 return 0; 6619} 6620_ACEOF 6621rm -f conftest.$ac_objext 6622if { (ac_try="$ac_compile" 6623case "(($ac_try" in 6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6625 *) ac_try_echo=$ac_try;; 6626esac 6627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6628 (eval "$ac_compile") 2>conftest.er1 6629 ac_status=$? 6630 grep -v '^ *+' conftest.er1 >conftest.err 6631 rm -f conftest.er1 6632 cat conftest.err >&5 6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); } && 6635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6636 { (case "(($ac_try" in 6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6638 *) ac_try_echo=$ac_try;; 6639esac 6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6641 (eval "$ac_try") 2>&5 6642 ac_status=$? 6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6644 (exit $ac_status); }; } && 6645 { ac_try='test -s conftest.$ac_objext' 6646 { (case "(($ac_try" in 6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6648 *) ac_try_echo=$ac_try;; 6649esac 6650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6651 (eval "$ac_try") 2>&5 6652 ac_status=$? 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); }; }; then 6655 ac_cv_header_stdbool_h=yes 6656else 6657 echo "$as_me: failed program was:" >&5 6658sed 's/^/| /' conftest.$ac_ext >&5 6659 6660 ac_cv_header_stdbool_h=no 6661fi 6662 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6664fi 6665{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 6666echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } 6667 { echo "$as_me:$LINENO: checking for _Bool" >&5 6668echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } 6669if test "${ac_cv_type__Bool+set}" = set; then 6670 echo $ECHO_N "(cached) $ECHO_C" >&6 6671else 6672 cat >conftest.$ac_ext <<_ACEOF 6673/* confdefs.h. */ 6674_ACEOF 6675cat confdefs.h >>conftest.$ac_ext 6676cat >>conftest.$ac_ext <<_ACEOF 6677/* end confdefs.h. */ 6678$ac_includes_default 6679typedef _Bool ac__type_new_; 6680int 6681main () 6682{ 6683if ((ac__type_new_ *) 0) 6684 return 0; 6685if (sizeof (ac__type_new_)) 6686 return 0; 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691rm -f conftest.$ac_objext 6692if { (ac_try="$ac_compile" 6693case "(($ac_try" in 6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6695 *) ac_try_echo=$ac_try;; 6696esac 6697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6698 (eval "$ac_compile") 2>conftest.er1 6699 ac_status=$? 6700 grep -v '^ *+' conftest.er1 >conftest.err 6701 rm -f conftest.er1 6702 cat conftest.err >&5 6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6704 (exit $ac_status); } && 6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6706 { (case "(($ac_try" in 6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6708 *) ac_try_echo=$ac_try;; 6709esac 6710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6711 (eval "$ac_try") 2>&5 6712 ac_status=$? 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); }; } && 6715 { ac_try='test -s conftest.$ac_objext' 6716 { (case "(($ac_try" in 6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6718 *) ac_try_echo=$ac_try;; 6719esac 6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6721 (eval "$ac_try") 2>&5 6722 ac_status=$? 6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6724 (exit $ac_status); }; }; then 6725 ac_cv_type__Bool=yes 6726else 6727 echo "$as_me: failed program was:" >&5 6728sed 's/^/| /' conftest.$ac_ext >&5 6729 6730 ac_cv_type__Bool=no 6731fi 6732 6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6734fi 6735{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 6736echo "${ECHO_T}$ac_cv_type__Bool" >&6; } 6737if test $ac_cv_type__Bool = yes; then 6738 6739cat >>confdefs.h <<_ACEOF 6740#define HAVE__BOOL 1 6741_ACEOF 6742 6743 6744fi 6745 6746 if test $ac_cv_header_stdbool_h = yes; then 6747 6748cat >>confdefs.h <<\_ACEOF 6749#define HAVE_STDBOOL_H 1 6750_ACEOF 6751 6752 fi 6753 6754 6755 6756 # Define two additional variables used in the Makefile substitution. 6757 6758 if test "$ac_cv_header_stdbool_h" = yes; then 6759 STDBOOL_H='' 6760 else 6761 STDBOOL_H='stdbool.h' 6762 fi 6763 6764 6765 if test "$ac_cv_type__Bool" = yes; then 6766 HAVE__BOOL=1 6767 else 6768 HAVE__BOOL=0 6769 fi 6770 6771 6772 6773 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 6774echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 6775if test "${gl_cv_header_inttypes_h+set}" = set; then 6776 echo $ECHO_N "(cached) $ECHO_C" >&6 6777else 6778 cat >conftest.$ac_ext <<_ACEOF 6779/* confdefs.h. */ 6780_ACEOF 6781cat confdefs.h >>conftest.$ac_ext 6782cat >>conftest.$ac_ext <<_ACEOF 6783/* end confdefs.h. */ 6784#include <sys/types.h> 6785#include <inttypes.h> 6786int 6787main () 6788{ 6789uintmax_t i = (uintmax_t) -1; 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794rm -f conftest.$ac_objext 6795if { (ac_try="$ac_compile" 6796case "(($ac_try" in 6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6798 *) ac_try_echo=$ac_try;; 6799esac 6800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6801 (eval "$ac_compile") 2>conftest.er1 6802 ac_status=$? 6803 grep -v '^ *+' conftest.er1 >conftest.err 6804 rm -f conftest.er1 6805 cat conftest.err >&5 6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6807 (exit $ac_status); } && 6808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6809 { (case "(($ac_try" in 6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6811 *) ac_try_echo=$ac_try;; 6812esac 6813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6814 (eval "$ac_try") 2>&5 6815 ac_status=$? 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 (exit $ac_status); }; } && 6818 { ac_try='test -s conftest.$ac_objext' 6819 { (case "(($ac_try" in 6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6821 *) ac_try_echo=$ac_try;; 6822esac 6823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6824 (eval "$ac_try") 2>&5 6825 ac_status=$? 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6827 (exit $ac_status); }; }; then 6828 gl_cv_header_inttypes_h=yes 6829else 6830 echo "$as_me: failed program was:" >&5 6831sed 's/^/| /' conftest.$ac_ext >&5 6832 6833 gl_cv_header_inttypes_h=no 6834fi 6835 6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6837fi 6838{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 6839echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } 6840 if test $gl_cv_header_inttypes_h = yes; then 6841 6842cat >>confdefs.h <<_ACEOF 6843#define HAVE_INTTYPES_H_WITH_UINTMAX 1 6844_ACEOF 6845 6846 fi 6847 6848 6849 { echo "$as_me:$LINENO: checking for stdint.h" >&5 6850echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 6851if test "${gl_cv_header_stdint_h+set}" = set; then 6852 echo $ECHO_N "(cached) $ECHO_C" >&6 6853else 6854 cat >conftest.$ac_ext <<_ACEOF 6855/* confdefs.h. */ 6856_ACEOF 6857cat confdefs.h >>conftest.$ac_ext 6858cat >>conftest.$ac_ext <<_ACEOF 6859/* end confdefs.h. */ 6860#include <sys/types.h> 6861#include <stdint.h> 6862int 6863main () 6864{ 6865uintmax_t i = (uintmax_t) -1; 6866 ; 6867 return 0; 6868} 6869_ACEOF 6870rm -f conftest.$ac_objext 6871if { (ac_try="$ac_compile" 6872case "(($ac_try" in 6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6874 *) ac_try_echo=$ac_try;; 6875esac 6876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6877 (eval "$ac_compile") 2>conftest.er1 6878 ac_status=$? 6879 grep -v '^ *+' conftest.er1 >conftest.err 6880 rm -f conftest.er1 6881 cat conftest.err >&5 6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6883 (exit $ac_status); } && 6884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6885 { (case "(($ac_try" in 6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6887 *) ac_try_echo=$ac_try;; 6888esac 6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6890 (eval "$ac_try") 2>&5 6891 ac_status=$? 6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6893 (exit $ac_status); }; } && 6894 { ac_try='test -s conftest.$ac_objext' 6895 { (case "(($ac_try" in 6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6897 *) ac_try_echo=$ac_try;; 6898esac 6899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6900 (eval "$ac_try") 2>&5 6901 ac_status=$? 6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6903 (exit $ac_status); }; }; then 6904 gl_cv_header_stdint_h=yes 6905else 6906 echo "$as_me: failed program was:" >&5 6907sed 's/^/| /' conftest.$ac_ext >&5 6908 6909 gl_cv_header_stdint_h=no 6910fi 6911 6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6913fi 6914{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 6915echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } 6916 if test $gl_cv_header_stdint_h = yes; then 6917 6918cat >>confdefs.h <<_ACEOF 6919#define HAVE_STDINT_H_WITH_UINTMAX 1 6920_ACEOF 6921 6922 fi 6923 6924 6925 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 6926echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6927if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6928 echo $ECHO_N "(cached) $ECHO_C" >&6 6929else 6930 cat >conftest.$ac_ext <<_ACEOF 6931/* confdefs.h. */ 6932_ACEOF 6933cat confdefs.h >>conftest.$ac_ext 6934cat >>conftest.$ac_ext <<_ACEOF 6935/* end confdefs.h. */ 6936unsigned long long ull = 1ULL; int i = 63; 6937int 6938main () 6939{ 6940unsigned long long ullmax = (unsigned long long) -1; 6941 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946rm -f conftest.$ac_objext conftest$ac_exeext 6947if { (ac_try="$ac_link" 6948case "(($ac_try" in 6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6950 *) ac_try_echo=$ac_try;; 6951esac 6952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6953 (eval "$ac_link") 2>conftest.er1 6954 ac_status=$? 6955 grep -v '^ *+' conftest.er1 >conftest.err 6956 rm -f conftest.er1 6957 cat conftest.err >&5 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959 (exit $ac_status); } && 6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6961 { (case "(($ac_try" in 6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6963 *) ac_try_echo=$ac_try;; 6964esac 6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6966 (eval "$ac_try") 2>&5 6967 ac_status=$? 6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); }; } && 6970 { ac_try='test -s conftest$ac_exeext' 6971 { (case "(($ac_try" in 6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6973 *) ac_try_echo=$ac_try;; 6974esac 6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6976 (eval "$ac_try") 2>&5 6977 ac_status=$? 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 (exit $ac_status); }; }; then 6980 ac_cv_type_unsigned_long_long=yes 6981else 6982 echo "$as_me: failed program was:" >&5 6983sed 's/^/| /' conftest.$ac_ext >&5 6984 6985 ac_cv_type_unsigned_long_long=no 6986fi 6987 6988rm -f core conftest.err conftest.$ac_objext \ 6989 conftest$ac_exeext conftest.$ac_ext 6990fi 6991{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6992echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6993 if test $ac_cv_type_unsigned_long_long = yes; then 6994 6995cat >>confdefs.h <<\_ACEOF 6996#define HAVE_UNSIGNED_LONG_LONG 1 6997_ACEOF 6998 6999 fi 7000 7001 7002 7003 7004 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7005 7006 test $ac_cv_type_unsigned_long_long = yes \ 7007 && ac_type='unsigned long long' \ 7008 || ac_type='unsigned long' 7009 7010cat >>confdefs.h <<_ACEOF 7011#define uintmax_t $ac_type 7012_ACEOF 7013 7014 else 7015 7016cat >>confdefs.h <<\_ACEOF 7017#define HAVE_UINTMAX_T 1 7018_ACEOF 7019 7020 fi 7021 7022 7023 if test "X$prefix" = "XNONE"; then 7024 acl_final_prefix="$ac_default_prefix" 7025 else 7026 acl_final_prefix="$prefix" 7027 fi 7028 if test "X$exec_prefix" = "XNONE"; then 7029 acl_final_exec_prefix='${prefix}' 7030 else 7031 acl_final_exec_prefix="$exec_prefix" 7032 fi 7033 acl_save_prefix="$prefix" 7034 prefix="$acl_final_prefix" 7035 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7036 prefix="$acl_save_prefix" 7037 7038# Make sure we can run config.sub. 7039$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7040 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 7041echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 7042 { (exit 1); exit 1; }; } 7043 7044{ echo "$as_me:$LINENO: checking build system type" >&5 7045echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 7046if test "${ac_cv_build+set}" = set; then 7047 echo $ECHO_N "(cached) $ECHO_C" >&6 7048else 7049 ac_build_alias=$build_alias 7050test "x$ac_build_alias" = x && 7051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7052test "x$ac_build_alias" = x && 7053 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 7054echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 7055 { (exit 1); exit 1; }; } 7056ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 7058echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 7059 { (exit 1); exit 1; }; } 7060 7061fi 7062{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 7063echo "${ECHO_T}$ac_cv_build" >&6; } 7064case $ac_cv_build in 7065*-*-*) ;; 7066*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 7067echo "$as_me: error: invalid value of canonical build" >&2;} 7068 { (exit 1); exit 1; }; };; 7069esac 7070build=$ac_cv_build 7071ac_save_IFS=$IFS; IFS='-' 7072set x $ac_cv_build 7073shift 7074build_cpu=$1 7075build_vendor=$2 7076shift; shift 7077# Remember, the first character of IFS is used to create $*, 7078# except with old shells: 7079build_os=$* 7080IFS=$ac_save_IFS 7081case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7082 7083 7084{ echo "$as_me:$LINENO: checking host system type" >&5 7085echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 7086if test "${ac_cv_host+set}" = set; then 7087 echo $ECHO_N "(cached) $ECHO_C" >&6 7088else 7089 if test "x$host_alias" = x; then 7090 ac_cv_host=$ac_cv_build 7091else 7092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7093 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 7094echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 7095 { (exit 1); exit 1; }; } 7096fi 7097 7098fi 7099{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7100echo "${ECHO_T}$ac_cv_host" >&6; } 7101case $ac_cv_host in 7102*-*-*) ;; 7103*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 7104echo "$as_me: error: invalid value of canonical host" >&2;} 7105 { (exit 1); exit 1; }; };; 7106esac 7107host=$ac_cv_host 7108ac_save_IFS=$IFS; IFS='-' 7109set x $ac_cv_host 7110shift 7111host_cpu=$1 7112host_vendor=$2 7113shift; shift 7114# Remember, the first character of IFS is used to create $*, 7115# except with old shells: 7116host_os=$* 7117IFS=$ac_save_IFS 7118case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7119 7120 7121 7122# Check whether --with-gnu-ld was given. 7123if test "${with_gnu_ld+set}" = set; then 7124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7125else 7126 with_gnu_ld=no 7127fi 7128 7129# Prepare PATH_SEPARATOR. 7130# The user is always right. 7131if test "${PATH_SEPARATOR+set}" != set; then 7132 echo "#! /bin/sh" >conf$$.sh 7133 echo "exit 0" >>conf$$.sh 7134 chmod +x conf$$.sh 7135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7136 PATH_SEPARATOR=';' 7137 else 7138 PATH_SEPARATOR=: 7139 fi 7140 rm -f conf$$.sh 7141fi 7142ac_prog=ld 7143if test "$GCC" = yes; then 7144 # Check if gcc -print-prog-name=ld gives a path. 7145 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 7146echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 7147 case $host in 7148 *-*-mingw*) 7149 # gcc leaves a trailing carriage return which upsets mingw 7150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7151 *) 7152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7153 esac 7154 case $ac_prog in 7155 # Accept absolute paths. 7156 [\\/]* | [A-Za-z]:[\\/]*) 7157 re_direlt='/[^/][^/]*/\.\./' 7158 # Canonicalize the path of ld 7159 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7160 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7161 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7162 done 7163 test -z "$LD" && LD="$ac_prog" 7164 ;; 7165 "") 7166 # If it fails, then pretend we aren't using GCC. 7167 ac_prog=ld 7168 ;; 7169 *) 7170 # If it is relative, then search for the first ld in PATH. 7171 with_gnu_ld=unknown 7172 ;; 7173 esac 7174elif test "$with_gnu_ld" = yes; then 7175 { echo "$as_me:$LINENO: checking for GNU ld" >&5 7176echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 7177else 7178 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7179echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 7180fi 7181if test "${acl_cv_path_LD+set}" = set; then 7182 echo $ECHO_N "(cached) $ECHO_C" >&6 7183else 7184 if test -z "$LD"; then 7185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7186 for ac_dir in $PATH; do 7187 test -z "$ac_dir" && ac_dir=. 7188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7189 acl_cv_path_LD="$ac_dir/$ac_prog" 7190 # Check to see if the program is GNU ld. I'd rather use --version, 7191 # but apparently some GNU ld's only accept -v. 7192 # Break only if it was the GNU/non-GNU ld that we prefer. 7193 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 7194 *GNU* | *'with BFD'*) 7195 test "$with_gnu_ld" != no && break ;; 7196 *) 7197 test "$with_gnu_ld" != yes && break ;; 7198 esac 7199 fi 7200 done 7201 IFS="$ac_save_ifs" 7202else 7203 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7204fi 7205fi 7206 7207LD="$acl_cv_path_LD" 7208if test -n "$LD"; then 7209 { echo "$as_me:$LINENO: result: $LD" >&5 7210echo "${ECHO_T}$LD" >&6; } 7211else 7212 { echo "$as_me:$LINENO: result: no" >&5 7213echo "${ECHO_T}no" >&6; } 7214fi 7215test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7216echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7217 { (exit 1); exit 1; }; } 7218{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7219echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 7220if test "${acl_cv_prog_gnu_ld+set}" = set; then 7221 echo $ECHO_N "(cached) $ECHO_C" >&6 7222else 7223 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7224case `$LD -v 2>&1 </dev/null` in 7225*GNU* | *'with BFD'*) 7226 acl_cv_prog_gnu_ld=yes ;; 7227*) 7228 acl_cv_prog_gnu_ld=no ;; 7229esac 7230fi 7231{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 7232echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 7233with_gnu_ld=$acl_cv_prog_gnu_ld 7234 7235 7236 7237 7238 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 7239echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 7240if test "${acl_cv_rpath+set}" = set; then 7241 echo $ECHO_N "(cached) $ECHO_C" >&6 7242else 7243 7244 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7245 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7246 . ./conftest.sh 7247 rm -f ./conftest.sh 7248 acl_cv_rpath=done 7249 7250fi 7251{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 7252echo "${ECHO_T}$acl_cv_rpath" >&6; } 7253 wl="$acl_cv_wl" 7254 libext="$acl_cv_libext" 7255 shlibext="$acl_cv_shlibext" 7256 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7257 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7258 hardcode_direct="$acl_cv_hardcode_direct" 7259 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7260 # Check whether --enable-rpath was given. 7261if test "${enable_rpath+set}" = set; then 7262 enableval=$enable_rpath; : 7263else 7264 enable_rpath=yes 7265fi 7266 7267 7268 7269 acl_libdirstem=lib 7270 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 7271 if test -n "$searchpath"; then 7272 acl_save_IFS="${IFS= }"; IFS=":" 7273 for searchdir in $searchpath; do 7274 if test -d "$searchdir"; then 7275 case "$searchdir" in 7276 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 7277 *) searchdir=`cd "$searchdir" && pwd` 7278 case "$searchdir" in 7279 */lib64 ) acl_libdirstem=lib64 ;; 7280 esac ;; 7281 esac 7282 fi 7283 done 7284 IFS="$acl_save_IFS" 7285 fi 7286 7287 7288 7289 7290 7291 7292 7293 7294 use_additional=yes 7295 7296 acl_save_prefix="$prefix" 7297 prefix="$acl_final_prefix" 7298 acl_save_exec_prefix="$exec_prefix" 7299 exec_prefix="$acl_final_exec_prefix" 7300 7301 eval additional_includedir=\"$includedir\" 7302 eval additional_libdir=\"$libdir\" 7303 7304 exec_prefix="$acl_save_exec_prefix" 7305 prefix="$acl_save_prefix" 7306 7307 7308# Check whether --with-libiconv-prefix was given. 7309if test "${with_libiconv_prefix+set}" = set; then 7310 withval=$with_libiconv_prefix; 7311 if test "X$withval" = "Xno"; then 7312 use_additional=no 7313 else 7314 if test "X$withval" = "X"; then 7315 7316 acl_save_prefix="$prefix" 7317 prefix="$acl_final_prefix" 7318 acl_save_exec_prefix="$exec_prefix" 7319 exec_prefix="$acl_final_exec_prefix" 7320 7321 eval additional_includedir=\"$includedir\" 7322 eval additional_libdir=\"$libdir\" 7323 7324 exec_prefix="$acl_save_exec_prefix" 7325 prefix="$acl_save_prefix" 7326 7327 else 7328 additional_includedir="$withval/include" 7329 additional_libdir="$withval/$acl_libdirstem" 7330 fi 7331 fi 7332 7333fi 7334 7335 LIBICONV= 7336 LTLIBICONV= 7337 INCICONV= 7338 rpathdirs= 7339 ltrpathdirs= 7340 names_already_handled= 7341 names_next_round='iconv ' 7342 while test -n "$names_next_round"; do 7343 names_this_round="$names_next_round" 7344 names_next_round= 7345 for name in $names_this_round; do 7346 already_handled= 7347 for n in $names_already_handled; do 7348 if test "$n" = "$name"; then 7349 already_handled=yes 7350 break 7351 fi 7352 done 7353 if test -z "$already_handled"; then 7354 names_already_handled="$names_already_handled $name" 7355 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7356 eval value=\"\$HAVE_LIB$uppername\" 7357 if test -n "$value"; then 7358 if test "$value" = yes; then 7359 eval value=\"\$LIB$uppername\" 7360 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7361 eval value=\"\$LTLIB$uppername\" 7362 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7363 else 7364 : 7365 fi 7366 else 7367 found_dir= 7368 found_la= 7369 found_so= 7370 found_a= 7371 if test $use_additional = yes; then 7372 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7373 found_dir="$additional_libdir" 7374 found_so="$additional_libdir/lib$name.$shlibext" 7375 if test -f "$additional_libdir/lib$name.la"; then 7376 found_la="$additional_libdir/lib$name.la" 7377 fi 7378 else 7379 if test -f "$additional_libdir/lib$name.$libext"; then 7380 found_dir="$additional_libdir" 7381 found_a="$additional_libdir/lib$name.$libext" 7382 if test -f "$additional_libdir/lib$name.la"; then 7383 found_la="$additional_libdir/lib$name.la" 7384 fi 7385 fi 7386 fi 7387 fi 7388 if test "X$found_dir" = "X"; then 7389 for x in $LDFLAGS $LTLIBICONV; do 7390 7391 acl_save_prefix="$prefix" 7392 prefix="$acl_final_prefix" 7393 acl_save_exec_prefix="$exec_prefix" 7394 exec_prefix="$acl_final_exec_prefix" 7395 eval x=\"$x\" 7396 exec_prefix="$acl_save_exec_prefix" 7397 prefix="$acl_save_prefix" 7398 7399 case "$x" in 7400 -L*) 7401 dir=`echo "X$x" | sed -e 's/^X-L//'` 7402 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7403 found_dir="$dir" 7404 found_so="$dir/lib$name.$shlibext" 7405 if test -f "$dir/lib$name.la"; then 7406 found_la="$dir/lib$name.la" 7407 fi 7408 else 7409 if test -f "$dir/lib$name.$libext"; then 7410 found_dir="$dir" 7411 found_a="$dir/lib$name.$libext" 7412 if test -f "$dir/lib$name.la"; then 7413 found_la="$dir/lib$name.la" 7414 fi 7415 fi 7416 fi 7417 ;; 7418 esac 7419 if test "X$found_dir" != "X"; then 7420 break 7421 fi 7422 done 7423 fi 7424 if test "X$found_dir" != "X"; then 7425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7426 if test "X$found_so" != "X"; then 7427 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 7428 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7429 else 7430 haveit= 7431 for x in $ltrpathdirs; do 7432 if test "X$x" = "X$found_dir"; then 7433 haveit=yes 7434 break 7435 fi 7436 done 7437 if test -z "$haveit"; then 7438 ltrpathdirs="$ltrpathdirs $found_dir" 7439 fi 7440 if test "$hardcode_direct" = yes; then 7441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7442 else 7443 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7445 haveit= 7446 for x in $rpathdirs; do 7447 if test "X$x" = "X$found_dir"; then 7448 haveit=yes 7449 break 7450 fi 7451 done 7452 if test -z "$haveit"; then 7453 rpathdirs="$rpathdirs $found_dir" 7454 fi 7455 else 7456 haveit= 7457 for x in $LDFLAGS $LIBICONV; do 7458 7459 acl_save_prefix="$prefix" 7460 prefix="$acl_final_prefix" 7461 acl_save_exec_prefix="$exec_prefix" 7462 exec_prefix="$acl_final_exec_prefix" 7463 eval x=\"$x\" 7464 exec_prefix="$acl_save_exec_prefix" 7465 prefix="$acl_save_prefix" 7466 7467 if test "X$x" = "X-L$found_dir"; then 7468 haveit=yes 7469 break 7470 fi 7471 done 7472 if test -z "$haveit"; then 7473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7474 fi 7475 if test "$hardcode_minus_L" != no; then 7476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7477 else 7478 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7479 fi 7480 fi 7481 fi 7482 fi 7483 else 7484 if test "X$found_a" != "X"; then 7485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7486 else 7487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7488 fi 7489 fi 7490 additional_includedir= 7491 case "$found_dir" in 7492 */$acl_libdirstem | */$acl_libdirstem/) 7493 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7494 additional_includedir="$basedir/include" 7495 ;; 7496 esac 7497 if test "X$additional_includedir" != "X"; then 7498 if test "X$additional_includedir" != "X/usr/include"; then 7499 haveit= 7500 if test "X$additional_includedir" = "X/usr/local/include"; then 7501 if test -n "$GCC"; then 7502 case $host_os in 7503 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7504 esac 7505 fi 7506 fi 7507 if test -z "$haveit"; then 7508 for x in $CPPFLAGS $INCICONV; do 7509 7510 acl_save_prefix="$prefix" 7511 prefix="$acl_final_prefix" 7512 acl_save_exec_prefix="$exec_prefix" 7513 exec_prefix="$acl_final_exec_prefix" 7514 eval x=\"$x\" 7515 exec_prefix="$acl_save_exec_prefix" 7516 prefix="$acl_save_prefix" 7517 7518 if test "X$x" = "X-I$additional_includedir"; then 7519 haveit=yes 7520 break 7521 fi 7522 done 7523 if test -z "$haveit"; then 7524 if test -d "$additional_includedir"; then 7525 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7526 fi 7527 fi 7528 fi 7529 fi 7530 fi 7531 if test -n "$found_la"; then 7532 save_libdir="$libdir" 7533 case "$found_la" in 7534 */* | *\\*) . "$found_la" ;; 7535 *) . "./$found_la" ;; 7536 esac 7537 libdir="$save_libdir" 7538 for dep in $dependency_libs; do 7539 case "$dep" in 7540 -L*) 7541 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7542 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 7543 haveit= 7544 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 7545 if test -n "$GCC"; then 7546 case $host_os in 7547 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7548 esac 7549 fi 7550 fi 7551 if test -z "$haveit"; then 7552 haveit= 7553 for x in $LDFLAGS $LIBICONV; do 7554 7555 acl_save_prefix="$prefix" 7556 prefix="$acl_final_prefix" 7557 acl_save_exec_prefix="$exec_prefix" 7558 exec_prefix="$acl_final_exec_prefix" 7559 eval x=\"$x\" 7560 exec_prefix="$acl_save_exec_prefix" 7561 prefix="$acl_save_prefix" 7562 7563 if test "X$x" = "X-L$additional_libdir"; then 7564 haveit=yes 7565 break 7566 fi 7567 done 7568 if test -z "$haveit"; then 7569 if test -d "$additional_libdir"; then 7570 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7571 fi 7572 fi 7573 haveit= 7574 for x in $LDFLAGS $LTLIBICONV; do 7575 7576 acl_save_prefix="$prefix" 7577 prefix="$acl_final_prefix" 7578 acl_save_exec_prefix="$exec_prefix" 7579 exec_prefix="$acl_final_exec_prefix" 7580 eval x=\"$x\" 7581 exec_prefix="$acl_save_exec_prefix" 7582 prefix="$acl_save_prefix" 7583 7584 if test "X$x" = "X-L$additional_libdir"; then 7585 haveit=yes 7586 break 7587 fi 7588 done 7589 if test -z "$haveit"; then 7590 if test -d "$additional_libdir"; then 7591 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7592 fi 7593 fi 7594 fi 7595 fi 7596 ;; 7597 -R*) 7598 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7599 if test "$enable_rpath" != no; then 7600 haveit= 7601 for x in $rpathdirs; do 7602 if test "X$x" = "X$dir"; then 7603 haveit=yes 7604 break 7605 fi 7606 done 7607 if test -z "$haveit"; then 7608 rpathdirs="$rpathdirs $dir" 7609 fi 7610 haveit= 7611 for x in $ltrpathdirs; do 7612 if test "X$x" = "X$dir"; then 7613 haveit=yes 7614 break 7615 fi 7616 done 7617 if test -z "$haveit"; then 7618 ltrpathdirs="$ltrpathdirs $dir" 7619 fi 7620 fi 7621 ;; 7622 -l*) 7623 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7624 ;; 7625 *.la) 7626 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7627 ;; 7628 *) 7629 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7631 ;; 7632 esac 7633 done 7634 fi 7635 else 7636 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7638 fi 7639 fi 7640 fi 7641 done 7642 done 7643 if test "X$rpathdirs" != "X"; then 7644 if test -n "$hardcode_libdir_separator"; then 7645 alldirs= 7646 for found_dir in $rpathdirs; do 7647 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7648 done 7649 acl_save_libdir="$libdir" 7650 libdir="$alldirs" 7651 eval flag=\"$hardcode_libdir_flag_spec\" 7652 libdir="$acl_save_libdir" 7653 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7654 else 7655 for found_dir in $rpathdirs; do 7656 acl_save_libdir="$libdir" 7657 libdir="$found_dir" 7658 eval flag=\"$hardcode_libdir_flag_spec\" 7659 libdir="$acl_save_libdir" 7660 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7661 done 7662 fi 7663 fi 7664 if test "X$ltrpathdirs" != "X"; then 7665 for found_dir in $ltrpathdirs; do 7666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7667 done 7668 fi 7669 7670 7671 7672 { echo "$as_me:$LINENO: checking whether memmem is declared" >&5 7673echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6; } 7674if test "${ac_cv_have_decl_memmem+set}" = set; then 7675 echo $ECHO_N "(cached) $ECHO_C" >&6 7676else 7677 cat >conftest.$ac_ext <<_ACEOF 7678/* confdefs.h. */ 7679_ACEOF 7680cat confdefs.h >>conftest.$ac_ext 7681cat >>conftest.$ac_ext <<_ACEOF 7682/* end confdefs.h. */ 7683$ac_includes_default 7684int 7685main () 7686{ 7687#ifndef memmem 7688 char *p = (char *) memmem; 7689 return !p; 7690#endif 7691 7692 ; 7693 return 0; 7694} 7695_ACEOF 7696rm -f conftest.$ac_objext 7697if { (ac_try="$ac_compile" 7698case "(($ac_try" in 7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7700 *) ac_try_echo=$ac_try;; 7701esac 7702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7703 (eval "$ac_compile") 2>conftest.er1 7704 ac_status=$? 7705 grep -v '^ *+' conftest.er1 >conftest.err 7706 rm -f conftest.er1 7707 cat conftest.err >&5 7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7709 (exit $ac_status); } && 7710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7711 { (case "(($ac_try" in 7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7713 *) ac_try_echo=$ac_try;; 7714esac 7715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7716 (eval "$ac_try") 2>&5 7717 ac_status=$? 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); }; } && 7720 { ac_try='test -s conftest.$ac_objext' 7721 { (case "(($ac_try" in 7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7723 *) ac_try_echo=$ac_try;; 7724esac 7725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7726 (eval "$ac_try") 2>&5 7727 ac_status=$? 7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7729 (exit $ac_status); }; }; then 7730 ac_cv_have_decl_memmem=yes 7731else 7732 echo "$as_me: failed program was:" >&5 7733sed 's/^/| /' conftest.$ac_ext >&5 7734 7735 ac_cv_have_decl_memmem=no 7736fi 7737 7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7739fi 7740{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 7741echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6; } 7742if test $ac_cv_have_decl_memmem = yes; then 7743 7744cat >>confdefs.h <<_ACEOF 7745#define HAVE_DECL_MEMMEM 1 7746_ACEOF 7747 7748 7749else 7750 cat >>confdefs.h <<_ACEOF 7751#define HAVE_DECL_MEMMEM 0 7752_ACEOF 7753 7754 7755fi 7756 7757 7758 7759 7760 7761 7762 7763 { echo "$as_me:$LINENO: checking whether <limits.h> defines MIN and MAX" >&5 7764echo $ECHO_N "checking whether <limits.h> defines MIN and MAX... $ECHO_C" >&6; } 7765if test "${gl_cv_minmax_in_limits_h+set}" = set; then 7766 echo $ECHO_N "(cached) $ECHO_C" >&6 7767else 7768 cat >conftest.$ac_ext <<_ACEOF 7769/* confdefs.h. */ 7770_ACEOF 7771cat confdefs.h >>conftest.$ac_ext 7772cat >>conftest.$ac_ext <<_ACEOF 7773/* end confdefs.h. */ 7774#include <limits.h> 7775int x = MIN (42, 17); 7776int 7777main () 7778{ 7779 7780 ; 7781 return 0; 7782} 7783_ACEOF 7784rm -f conftest.$ac_objext 7785if { (ac_try="$ac_compile" 7786case "(($ac_try" in 7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7788 *) ac_try_echo=$ac_try;; 7789esac 7790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7791 (eval "$ac_compile") 2>conftest.er1 7792 ac_status=$? 7793 grep -v '^ *+' conftest.er1 >conftest.err 7794 rm -f conftest.er1 7795 cat conftest.err >&5 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7797 (exit $ac_status); } && 7798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7799 { (case "(($ac_try" in 7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7801 *) ac_try_echo=$ac_try;; 7802esac 7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7804 (eval "$ac_try") 2>&5 7805 ac_status=$? 7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7807 (exit $ac_status); }; } && 7808 { ac_try='test -s conftest.$ac_objext' 7809 { (case "(($ac_try" in 7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7811 *) ac_try_echo=$ac_try;; 7812esac 7813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7814 (eval "$ac_try") 2>&5 7815 ac_status=$? 7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7817 (exit $ac_status); }; }; then 7818 gl_cv_minmax_in_limits_h=yes 7819else 7820 echo "$as_me: failed program was:" >&5 7821sed 's/^/| /' conftest.$ac_ext >&5 7822 7823 gl_cv_minmax_in_limits_h=no 7824fi 7825 7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7827fi 7828{ echo "$as_me:$LINENO: result: $gl_cv_minmax_in_limits_h" >&5 7829echo "${ECHO_T}$gl_cv_minmax_in_limits_h" >&6; } 7830 if test $gl_cv_minmax_in_limits_h = yes; then 7831 7832cat >>confdefs.h <<\_ACEOF 7833#define HAVE_MINMAX_IN_LIMITS_H 1 7834_ACEOF 7835 7836 fi 7837 7838 7839 7840 7841 7842 7843 { echo "$as_me:$LINENO: checking whether <sys/param.h> defines MIN and MAX" >&5 7844echo $ECHO_N "checking whether <sys/param.h> defines MIN and MAX... $ECHO_C" >&6; } 7845if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then 7846 echo $ECHO_N "(cached) $ECHO_C" >&6 7847else 7848 cat >conftest.$ac_ext <<_ACEOF 7849/* confdefs.h. */ 7850_ACEOF 7851cat confdefs.h >>conftest.$ac_ext 7852cat >>conftest.$ac_ext <<_ACEOF 7853/* end confdefs.h. */ 7854#include <sys/param.h> 7855int x = MIN (42, 17); 7856int 7857main () 7858{ 7859 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864rm -f conftest.$ac_objext 7865if { (ac_try="$ac_compile" 7866case "(($ac_try" in 7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7868 *) ac_try_echo=$ac_try;; 7869esac 7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7871 (eval "$ac_compile") 2>conftest.er1 7872 ac_status=$? 7873 grep -v '^ *+' conftest.er1 >conftest.err 7874 rm -f conftest.er1 7875 cat conftest.err >&5 7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7877 (exit $ac_status); } && 7878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7879 { (case "(($ac_try" in 7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7881 *) ac_try_echo=$ac_try;; 7882esac 7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7884 (eval "$ac_try") 2>&5 7885 ac_status=$? 7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 (exit $ac_status); }; } && 7888 { ac_try='test -s conftest.$ac_objext' 7889 { (case "(($ac_try" in 7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7891 *) ac_try_echo=$ac_try;; 7892esac 7893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7894 (eval "$ac_try") 2>&5 7895 ac_status=$? 7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7897 (exit $ac_status); }; }; then 7898 gl_cv_minmax_in_sys_param_h=yes 7899else 7900 echo "$as_me: failed program was:" >&5 7901sed 's/^/| /' conftest.$ac_ext >&5 7902 7903 gl_cv_minmax_in_sys_param_h=no 7904fi 7905 7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7907fi 7908{ echo "$as_me:$LINENO: result: $gl_cv_minmax_in_sys_param_h" >&5 7909echo "${ECHO_T}$gl_cv_minmax_in_sys_param_h" >&6; } 7910 if test $gl_cv_minmax_in_sys_param_h = yes; then 7911 7912cat >>confdefs.h <<\_ACEOF 7913#define HAVE_MINMAX_IN_SYS_PARAM_H 1 7914_ACEOF 7915 7916 fi 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938for ac_func in $gl_func_list 7939do 7940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7941{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7944 echo $ECHO_N "(cached) $ECHO_C" >&6 7945else 7946 cat >conftest.$ac_ext <<_ACEOF 7947/* confdefs.h. */ 7948_ACEOF 7949cat confdefs.h >>conftest.$ac_ext 7950cat >>conftest.$ac_ext <<_ACEOF 7951/* end confdefs.h. */ 7952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7953 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7954#define $ac_func innocuous_$ac_func 7955 7956/* System header to define __stub macros and hopefully few prototypes, 7957 which can conflict with char $ac_func (); below. 7958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7959 <limits.h> exists even on freestanding compilers. */ 7960 7961#ifdef __STDC__ 7962# include <limits.h> 7963#else 7964# include <assert.h> 7965#endif 7966 7967#undef $ac_func 7968 7969/* Override any GCC internal prototype to avoid an error. 7970 Use char because int might match the return type of a GCC 7971 builtin and then its argument prototype would still apply. */ 7972#ifdef __cplusplus 7973extern "C" 7974#endif 7975char $ac_func (); 7976/* The GNU C library defines this for functions which it implements 7977 to always fail with ENOSYS. Some functions are actually named 7978 something starting with __ and the normal name is an alias. */ 7979#if defined __stub_$ac_func || defined __stub___$ac_func 7980choke me 7981#endif 7982 7983int 7984main () 7985{ 7986return $ac_func (); 7987 ; 7988 return 0; 7989} 7990_ACEOF 7991rm -f conftest.$ac_objext conftest$ac_exeext 7992if { (ac_try="$ac_link" 7993case "(($ac_try" in 7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7995 *) ac_try_echo=$ac_try;; 7996esac 7997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7998 (eval "$ac_link") 2>conftest.er1 7999 ac_status=$? 8000 grep -v '^ *+' conftest.er1 >conftest.err 8001 rm -f conftest.er1 8002 cat conftest.err >&5 8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8004 (exit $ac_status); } && 8005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8006 { (case "(($ac_try" in 8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8008 *) ac_try_echo=$ac_try;; 8009esac 8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8011 (eval "$ac_try") 2>&5 8012 ac_status=$? 8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8014 (exit $ac_status); }; } && 8015 { ac_try='test -s conftest$ac_exeext' 8016 { (case "(($ac_try" in 8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8018 *) ac_try_echo=$ac_try;; 8019esac 8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8021 (eval "$ac_try") 2>&5 8022 ac_status=$? 8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8024 (exit $ac_status); }; }; then 8025 eval "$as_ac_var=yes" 8026else 8027 echo "$as_me: failed program was:" >&5 8028sed 's/^/| /' conftest.$ac_ext >&5 8029 8030 eval "$as_ac_var=no" 8031fi 8032 8033rm -f core conftest.err conftest.$ac_objext \ 8034 conftest$ac_exeext conftest.$ac_ext 8035fi 8036ac_res=`eval echo '${'$as_ac_var'}'` 8037 { echo "$as_me:$LINENO: result: $ac_res" >&5 8038echo "${ECHO_T}$ac_res" >&6; } 8039if test `eval echo '${'$as_ac_var'}'` = yes; then 8040 cat >>confdefs.h <<_ACEOF 8041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8042_ACEOF 8043 8044fi 8045done 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 { echo "$as_me:$LINENO: checking for ssize_t" >&5 8060echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 8061if test "${gt_cv_ssize_t+set}" = set; then 8062 echo $ECHO_N "(cached) $ECHO_C" >&6 8063else 8064 cat >conftest.$ac_ext <<_ACEOF 8065/* confdefs.h. */ 8066_ACEOF 8067cat confdefs.h >>conftest.$ac_ext 8068cat >>conftest.$ac_ext <<_ACEOF 8069/* end confdefs.h. */ 8070#include <sys/types.h> 8071int 8072main () 8073{ 8074int x = sizeof (ssize_t *) + sizeof (ssize_t); 8075 ; 8076 return 0; 8077} 8078_ACEOF 8079rm -f conftest.$ac_objext 8080if { (ac_try="$ac_compile" 8081case "(($ac_try" in 8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8083 *) ac_try_echo=$ac_try;; 8084esac 8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8086 (eval "$ac_compile") 2>conftest.er1 8087 ac_status=$? 8088 grep -v '^ *+' conftest.er1 >conftest.err 8089 rm -f conftest.er1 8090 cat conftest.err >&5 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); } && 8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8094 { (case "(($ac_try" in 8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8096 *) ac_try_echo=$ac_try;; 8097esac 8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8099 (eval "$ac_try") 2>&5 8100 ac_status=$? 8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8102 (exit $ac_status); }; } && 8103 { ac_try='test -s conftest.$ac_objext' 8104 { (case "(($ac_try" in 8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8106 *) ac_try_echo=$ac_try;; 8107esac 8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8109 (eval "$ac_try") 2>&5 8110 ac_status=$? 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); }; }; then 8113 gt_cv_ssize_t=yes 8114else 8115 echo "$as_me: failed program was:" >&5 8116sed 's/^/| /' conftest.$ac_ext >&5 8117 8118 gt_cv_ssize_t=no 8119fi 8120 8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8122fi 8123{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 8124echo "${ECHO_T}$gt_cv_ssize_t" >&6; } 8125 if test $gt_cv_ssize_t = no; then 8126 8127cat >>confdefs.h <<\_ACEOF 8128#define ssize_t int 8129_ACEOF 8130 8131 fi 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 8147echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 8148if test "${gt_cv_header_inttypes_h+set}" = set; then 8149 echo $ECHO_N "(cached) $ECHO_C" >&6 8150else 8151 8152 cat >conftest.$ac_ext <<_ACEOF 8153/* confdefs.h. */ 8154_ACEOF 8155cat confdefs.h >>conftest.$ac_ext 8156cat >>conftest.$ac_ext <<_ACEOF 8157/* end confdefs.h. */ 8158#include <sys/types.h> 8159#include <inttypes.h> 8160int 8161main () 8162{ 8163 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168rm -f conftest.$ac_objext 8169if { (ac_try="$ac_compile" 8170case "(($ac_try" in 8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8172 *) ac_try_echo=$ac_try;; 8173esac 8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8175 (eval "$ac_compile") 2>conftest.er1 8176 ac_status=$? 8177 grep -v '^ *+' conftest.er1 >conftest.err 8178 rm -f conftest.er1 8179 cat conftest.err >&5 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 (exit $ac_status); } && 8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8183 { (case "(($ac_try" in 8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8185 *) ac_try_echo=$ac_try;; 8186esac 8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8188 (eval "$ac_try") 2>&5 8189 ac_status=$? 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); }; } && 8192 { ac_try='test -s conftest.$ac_objext' 8193 { (case "(($ac_try" in 8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8195 *) ac_try_echo=$ac_try;; 8196esac 8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8198 (eval "$ac_try") 2>&5 8199 ac_status=$? 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 (exit $ac_status); }; }; then 8202 gt_cv_header_inttypes_h=yes 8203else 8204 echo "$as_me: failed program was:" >&5 8205sed 's/^/| /' conftest.$ac_ext >&5 8206 8207 gt_cv_header_inttypes_h=no 8208fi 8209 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211 8212fi 8213{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 8214echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } 8215 if test $gt_cv_header_inttypes_h = yes; then 8216 8217cat >>confdefs.h <<_ACEOF 8218#define HAVE_INTTYPES_H 1 8219_ACEOF 8220 8221 fi 8222 8223 8224 { echo "$as_me:$LINENO: checking whether strdup is declared" >&5 8225echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; } 8226if test "${ac_cv_have_decl_strdup+set}" = set; then 8227 echo $ECHO_N "(cached) $ECHO_C" >&6 8228else 8229 cat >conftest.$ac_ext <<_ACEOF 8230/* confdefs.h. */ 8231_ACEOF 8232cat confdefs.h >>conftest.$ac_ext 8233cat >>conftest.$ac_ext <<_ACEOF 8234/* end confdefs.h. */ 8235$ac_includes_default 8236int 8237main () 8238{ 8239#ifndef strdup 8240 char *p = (char *) strdup; 8241 return !p; 8242#endif 8243 8244 ; 8245 return 0; 8246} 8247_ACEOF 8248rm -f conftest.$ac_objext 8249if { (ac_try="$ac_compile" 8250case "(($ac_try" in 8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8252 *) ac_try_echo=$ac_try;; 8253esac 8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8255 (eval "$ac_compile") 2>conftest.er1 8256 ac_status=$? 8257 grep -v '^ *+' conftest.er1 >conftest.err 8258 rm -f conftest.er1 8259 cat conftest.err >&5 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); } && 8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8263 { (case "(($ac_try" in 8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8265 *) ac_try_echo=$ac_try;; 8266esac 8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8268 (eval "$ac_try") 2>&5 8269 ac_status=$? 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8271 (exit $ac_status); }; } && 8272 { ac_try='test -s conftest.$ac_objext' 8273 { (case "(($ac_try" in 8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8275 *) ac_try_echo=$ac_try;; 8276esac 8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8278 (eval "$ac_try") 2>&5 8279 ac_status=$? 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8281 (exit $ac_status); }; }; then 8282 ac_cv_have_decl_strdup=yes 8283else 8284 echo "$as_me: failed program was:" >&5 8285sed 's/^/| /' conftest.$ac_ext >&5 8286 8287 ac_cv_have_decl_strdup=no 8288fi 8289 8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8291fi 8292{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5 8293echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; } 8294if test $ac_cv_have_decl_strdup = yes; then 8295 8296cat >>confdefs.h <<_ACEOF 8297#define HAVE_DECL_STRDUP 1 8298_ACEOF 8299 8300 8301else 8302 cat >>confdefs.h <<_ACEOF 8303#define HAVE_DECL_STRDUP 0 8304_ACEOF 8305 8306 8307fi 8308 8309 8310 8311 8312for ac_func in strftime 8313do 8314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8315{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8318 echo $ECHO_N "(cached) $ECHO_C" >&6 8319else 8320 cat >conftest.$ac_ext <<_ACEOF 8321/* confdefs.h. */ 8322_ACEOF 8323cat confdefs.h >>conftest.$ac_ext 8324cat >>conftest.$ac_ext <<_ACEOF 8325/* end confdefs.h. */ 8326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8327 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8328#define $ac_func innocuous_$ac_func 8329 8330/* System header to define __stub macros and hopefully few prototypes, 8331 which can conflict with char $ac_func (); below. 8332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8333 <limits.h> exists even on freestanding compilers. */ 8334 8335#ifdef __STDC__ 8336# include <limits.h> 8337#else 8338# include <assert.h> 8339#endif 8340 8341#undef $ac_func 8342 8343/* Override any GCC internal prototype to avoid an error. 8344 Use char because int might match the return type of a GCC 8345 builtin and then its argument prototype would still apply. */ 8346#ifdef __cplusplus 8347extern "C" 8348#endif 8349char $ac_func (); 8350/* The GNU C library defines this for functions which it implements 8351 to always fail with ENOSYS. Some functions are actually named 8352 something starting with __ and the normal name is an alias. */ 8353#if defined __stub_$ac_func || defined __stub___$ac_func 8354choke me 8355#endif 8356 8357int 8358main () 8359{ 8360return $ac_func (); 8361 ; 8362 return 0; 8363} 8364_ACEOF 8365rm -f conftest.$ac_objext conftest$ac_exeext 8366if { (ac_try="$ac_link" 8367case "(($ac_try" in 8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8369 *) ac_try_echo=$ac_try;; 8370esac 8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8372 (eval "$ac_link") 2>conftest.er1 8373 ac_status=$? 8374 grep -v '^ *+' conftest.er1 >conftest.err 8375 rm -f conftest.er1 8376 cat conftest.err >&5 8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8378 (exit $ac_status); } && 8379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8380 { (case "(($ac_try" in 8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8382 *) ac_try_echo=$ac_try;; 8383esac 8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8385 (eval "$ac_try") 2>&5 8386 ac_status=$? 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 (exit $ac_status); }; } && 8389 { ac_try='test -s conftest$ac_exeext' 8390 { (case "(($ac_try" in 8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8392 *) ac_try_echo=$ac_try;; 8393esac 8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8395 (eval "$ac_try") 2>&5 8396 ac_status=$? 8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 (exit $ac_status); }; }; then 8399 eval "$as_ac_var=yes" 8400else 8401 echo "$as_me: failed program was:" >&5 8402sed 's/^/| /' conftest.$ac_ext >&5 8403 8404 eval "$as_ac_var=no" 8405fi 8406 8407rm -f core conftest.err conftest.$ac_objext \ 8408 conftest$ac_exeext conftest.$ac_ext 8409fi 8410ac_res=`eval echo '${'$as_ac_var'}'` 8411 { echo "$as_me:$LINENO: result: $ac_res" >&5 8412echo "${ECHO_T}$ac_res" >&6; } 8413if test `eval echo '${'$as_ac_var'}'` = yes; then 8414 cat >>confdefs.h <<_ACEOF 8415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8416_ACEOF 8417 8418else 8419 # strftime is in -lintl on SCO UNIX. 8420{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 8421echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 8422if test "${ac_cv_lib_intl_strftime+set}" = set; then 8423 echo $ECHO_N "(cached) $ECHO_C" >&6 8424else 8425 ac_check_lib_save_LIBS=$LIBS 8426LIBS="-lintl $LIBS" 8427cat >conftest.$ac_ext <<_ACEOF 8428/* confdefs.h. */ 8429_ACEOF 8430cat confdefs.h >>conftest.$ac_ext 8431cat >>conftest.$ac_ext <<_ACEOF 8432/* end confdefs.h. */ 8433 8434/* Override any GCC internal prototype to avoid an error. 8435 Use char because int might match the return type of a GCC 8436 builtin and then its argument prototype would still apply. */ 8437#ifdef __cplusplus 8438extern "C" 8439#endif 8440char strftime (); 8441int 8442main () 8443{ 8444return strftime (); 8445 ; 8446 return 0; 8447} 8448_ACEOF 8449rm -f conftest.$ac_objext conftest$ac_exeext 8450if { (ac_try="$ac_link" 8451case "(($ac_try" in 8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8453 *) ac_try_echo=$ac_try;; 8454esac 8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8456 (eval "$ac_link") 2>conftest.er1 8457 ac_status=$? 8458 grep -v '^ *+' conftest.er1 >conftest.err 8459 rm -f conftest.er1 8460 cat conftest.err >&5 8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8462 (exit $ac_status); } && 8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8464 { (case "(($ac_try" in 8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8466 *) ac_try_echo=$ac_try;; 8467esac 8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8469 (eval "$ac_try") 2>&5 8470 ac_status=$? 8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8472 (exit $ac_status); }; } && 8473 { ac_try='test -s conftest$ac_exeext' 8474 { (case "(($ac_try" in 8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8476 *) ac_try_echo=$ac_try;; 8477esac 8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8479 (eval "$ac_try") 2>&5 8480 ac_status=$? 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8482 (exit $ac_status); }; }; then 8483 ac_cv_lib_intl_strftime=yes 8484else 8485 echo "$as_me: failed program was:" >&5 8486sed 's/^/| /' conftest.$ac_ext >&5 8487 8488 ac_cv_lib_intl_strftime=no 8489fi 8490 8491rm -f core conftest.err conftest.$ac_objext \ 8492 conftest$ac_exeext conftest.$ac_ext 8493LIBS=$ac_check_lib_save_LIBS 8494fi 8495{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 8496echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 8497if test $ac_cv_lib_intl_strftime = yes; then 8498 cat >>confdefs.h <<\_ACEOF 8499#define HAVE_STRFTIME 1 8500_ACEOF 8501 8502LIBS="-lintl $LIBS" 8503fi 8504 8505fi 8506done 8507 8508{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 8509echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 8510if test "${ac_cv_struct_tm+set}" = set; then 8511 echo $ECHO_N "(cached) $ECHO_C" >&6 8512else 8513 cat >conftest.$ac_ext <<_ACEOF 8514/* confdefs.h. */ 8515_ACEOF 8516cat confdefs.h >>conftest.$ac_ext 8517cat >>conftest.$ac_ext <<_ACEOF 8518/* end confdefs.h. */ 8519#include <sys/types.h> 8520#include <time.h> 8521 8522int 8523main () 8524{ 8525struct tm *tp; tp->tm_sec; 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530rm -f conftest.$ac_objext 8531if { (ac_try="$ac_compile" 8532case "(($ac_try" in 8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8534 *) ac_try_echo=$ac_try;; 8535esac 8536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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" || test ! -s conftest.err' 8545 { (case "(($ac_try" in 8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8547 *) ac_try_echo=$ac_try;; 8548esac 8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8550 (eval "$ac_try") 2>&5 8551 ac_status=$? 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8553 (exit $ac_status); }; } && 8554 { ac_try='test -s conftest.$ac_objext' 8555 { (case "(($ac_try" in 8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8557 *) ac_try_echo=$ac_try;; 8558esac 8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8560 (eval "$ac_try") 2>&5 8561 ac_status=$? 8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8563 (exit $ac_status); }; }; then 8564 ac_cv_struct_tm=time.h 8565else 8566 echo "$as_me: failed program was:" >&5 8567sed 's/^/| /' conftest.$ac_ext >&5 8568 8569 ac_cv_struct_tm=sys/time.h 8570fi 8571 8572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8573fi 8574{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 8575echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 8576if test $ac_cv_struct_tm = sys/time.h; then 8577 8578cat >>confdefs.h <<\_ACEOF 8579#define TM_IN_SYS_TIME 1 8580_ACEOF 8581 8582fi 8583 8584{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 8585echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } 8586if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 8587 echo $ECHO_N "(cached) $ECHO_C" >&6 8588else 8589 cat >conftest.$ac_ext <<_ACEOF 8590/* confdefs.h. */ 8591_ACEOF 8592cat confdefs.h >>conftest.$ac_ext 8593cat >>conftest.$ac_ext <<_ACEOF 8594/* end confdefs.h. */ 8595#include <sys/types.h> 8596#include <$ac_cv_struct_tm> 8597 8598 8599int 8600main () 8601{ 8602static struct tm ac_aggr; 8603if (ac_aggr.tm_zone) 8604return 0; 8605 ; 8606 return 0; 8607} 8608_ACEOF 8609rm -f conftest.$ac_objext 8610if { (ac_try="$ac_compile" 8611case "(($ac_try" in 8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8613 *) ac_try_echo=$ac_try;; 8614esac 8615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8616 (eval "$ac_compile") 2>conftest.er1 8617 ac_status=$? 8618 grep -v '^ *+' conftest.er1 >conftest.err 8619 rm -f conftest.er1 8620 cat conftest.err >&5 8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); } && 8623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8624 { (case "(($ac_try" in 8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8626 *) ac_try_echo=$ac_try;; 8627esac 8628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8629 (eval "$ac_try") 2>&5 8630 ac_status=$? 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 (exit $ac_status); }; } && 8633 { ac_try='test -s conftest.$ac_objext' 8634 { (case "(($ac_try" in 8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8636 *) ac_try_echo=$ac_try;; 8637esac 8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8639 (eval "$ac_try") 2>&5 8640 ac_status=$? 8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 (exit $ac_status); }; }; then 8643 ac_cv_member_struct_tm_tm_zone=yes 8644else 8645 echo "$as_me: failed program was:" >&5 8646sed 's/^/| /' conftest.$ac_ext >&5 8647 8648 cat >conftest.$ac_ext <<_ACEOF 8649/* confdefs.h. */ 8650_ACEOF 8651cat confdefs.h >>conftest.$ac_ext 8652cat >>conftest.$ac_ext <<_ACEOF 8653/* end confdefs.h. */ 8654#include <sys/types.h> 8655#include <$ac_cv_struct_tm> 8656 8657 8658int 8659main () 8660{ 8661static struct tm ac_aggr; 8662if (sizeof ac_aggr.tm_zone) 8663return 0; 8664 ; 8665 return 0; 8666} 8667_ACEOF 8668rm -f conftest.$ac_objext 8669if { (ac_try="$ac_compile" 8670case "(($ac_try" in 8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8672 *) ac_try_echo=$ac_try;; 8673esac 8674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8675 (eval "$ac_compile") 2>conftest.er1 8676 ac_status=$? 8677 grep -v '^ *+' conftest.er1 >conftest.err 8678 rm -f conftest.er1 8679 cat conftest.err >&5 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8681 (exit $ac_status); } && 8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8683 { (case "(($ac_try" in 8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8685 *) ac_try_echo=$ac_try;; 8686esac 8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8688 (eval "$ac_try") 2>&5 8689 ac_status=$? 8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8691 (exit $ac_status); }; } && 8692 { ac_try='test -s conftest.$ac_objext' 8693 { (case "(($ac_try" in 8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8695 *) ac_try_echo=$ac_try;; 8696esac 8697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8698 (eval "$ac_try") 2>&5 8699 ac_status=$? 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8701 (exit $ac_status); }; }; then 8702 ac_cv_member_struct_tm_tm_zone=yes 8703else 8704 echo "$as_me: failed program was:" >&5 8705sed 's/^/| /' conftest.$ac_ext >&5 8706 8707 ac_cv_member_struct_tm_tm_zone=no 8708fi 8709 8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8711fi 8712 8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8714fi 8715{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 8716echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } 8717if test $ac_cv_member_struct_tm_tm_zone = yes; then 8718 8719cat >>confdefs.h <<_ACEOF 8720#define HAVE_STRUCT_TM_TM_ZONE 1 8721_ACEOF 8722 8723 8724fi 8725 8726if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8727 8728cat >>confdefs.h <<\_ACEOF 8729#define HAVE_TM_ZONE 1 8730_ACEOF 8731 8732else 8733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 8734echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } 8735if test "${ac_cv_have_decl_tzname+set}" = set; then 8736 echo $ECHO_N "(cached) $ECHO_C" >&6 8737else 8738 cat >conftest.$ac_ext <<_ACEOF 8739/* confdefs.h. */ 8740_ACEOF 8741cat confdefs.h >>conftest.$ac_ext 8742cat >>conftest.$ac_ext <<_ACEOF 8743/* end confdefs.h. */ 8744#include <time.h> 8745 8746int 8747main () 8748{ 8749#ifndef tzname 8750 char *p = (char *) tzname; 8751 return !p; 8752#endif 8753 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758rm -f conftest.$ac_objext 8759if { (ac_try="$ac_compile" 8760case "(($ac_try" in 8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8762 *) ac_try_echo=$ac_try;; 8763esac 8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8765 (eval "$ac_compile") 2>conftest.er1 8766 ac_status=$? 8767 grep -v '^ *+' conftest.er1 >conftest.err 8768 rm -f conftest.er1 8769 cat conftest.err >&5 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); } && 8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8773 { (case "(($ac_try" in 8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8775 *) ac_try_echo=$ac_try;; 8776esac 8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8778 (eval "$ac_try") 2>&5 8779 ac_status=$? 8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8781 (exit $ac_status); }; } && 8782 { ac_try='test -s conftest.$ac_objext' 8783 { (case "(($ac_try" in 8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8785 *) ac_try_echo=$ac_try;; 8786esac 8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8788 (eval "$ac_try") 2>&5 8789 ac_status=$? 8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8791 (exit $ac_status); }; }; then 8792 ac_cv_have_decl_tzname=yes 8793else 8794 echo "$as_me: failed program was:" >&5 8795sed 's/^/| /' conftest.$ac_ext >&5 8796 8797 ac_cv_have_decl_tzname=no 8798fi 8799 8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8801fi 8802{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 8803echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } 8804if test $ac_cv_have_decl_tzname = yes; then 8805 8806cat >>confdefs.h <<_ACEOF 8807#define HAVE_DECL_TZNAME 1 8808_ACEOF 8809 8810 8811else 8812 cat >>confdefs.h <<_ACEOF 8813#define HAVE_DECL_TZNAME 0 8814_ACEOF 8815 8816 8817fi 8818 8819 8820 { echo "$as_me:$LINENO: checking for tzname" >&5 8821echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } 8822if test "${ac_cv_var_tzname+set}" = set; then 8823 echo $ECHO_N "(cached) $ECHO_C" >&6 8824else 8825 cat >conftest.$ac_ext <<_ACEOF 8826/* confdefs.h. */ 8827_ACEOF 8828cat confdefs.h >>conftest.$ac_ext 8829cat >>conftest.$ac_ext <<_ACEOF 8830/* end confdefs.h. */ 8831#include <time.h> 8832#if !HAVE_DECL_TZNAME 8833extern char *tzname[]; 8834#endif 8835 8836int 8837main () 8838{ 8839return tzname[0][0]; 8840 ; 8841 return 0; 8842} 8843_ACEOF 8844rm -f conftest.$ac_objext conftest$ac_exeext 8845if { (ac_try="$ac_link" 8846case "(($ac_try" in 8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8848 *) ac_try_echo=$ac_try;; 8849esac 8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8851 (eval "$ac_link") 2>conftest.er1 8852 ac_status=$? 8853 grep -v '^ *+' conftest.er1 >conftest.err 8854 rm -f conftest.er1 8855 cat conftest.err >&5 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } && 8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8859 { (case "(($ac_try" in 8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8861 *) ac_try_echo=$ac_try;; 8862esac 8863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8864 (eval "$ac_try") 2>&5 8865 ac_status=$? 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8867 (exit $ac_status); }; } && 8868 { ac_try='test -s conftest$ac_exeext' 8869 { (case "(($ac_try" in 8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8871 *) ac_try_echo=$ac_try;; 8872esac 8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8874 (eval "$ac_try") 2>&5 8875 ac_status=$? 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); }; }; then 8878 ac_cv_var_tzname=yes 8879else 8880 echo "$as_me: failed program was:" >&5 8881sed 's/^/| /' conftest.$ac_ext >&5 8882 8883 ac_cv_var_tzname=no 8884fi 8885 8886rm -f core conftest.err conftest.$ac_objext \ 8887 conftest$ac_exeext conftest.$ac_ext 8888fi 8889{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 8890echo "${ECHO_T}$ac_cv_var_tzname" >&6; } 8891 if test $ac_cv_var_tzname = yes; then 8892 8893cat >>confdefs.h <<\_ACEOF 8894#define HAVE_TZNAME 1 8895_ACEOF 8896 8897 fi 8898fi 8899 8900{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 8901echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 8902if test "${ac_cv_header_time+set}" = set; then 8903 echo $ECHO_N "(cached) $ECHO_C" >&6 8904else 8905 cat >conftest.$ac_ext <<_ACEOF 8906/* confdefs.h. */ 8907_ACEOF 8908cat confdefs.h >>conftest.$ac_ext 8909cat >>conftest.$ac_ext <<_ACEOF 8910/* end confdefs.h. */ 8911#include <sys/types.h> 8912#include <sys/time.h> 8913#include <time.h> 8914 8915int 8916main () 8917{ 8918if ((struct tm *) 0) 8919return 0; 8920 ; 8921 return 0; 8922} 8923_ACEOF 8924rm -f conftest.$ac_objext 8925if { (ac_try="$ac_compile" 8926case "(($ac_try" in 8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8928 *) ac_try_echo=$ac_try;; 8929esac 8930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8931 (eval "$ac_compile") 2>conftest.er1 8932 ac_status=$? 8933 grep -v '^ *+' conftest.er1 >conftest.err 8934 rm -f conftest.er1 8935 cat conftest.err >&5 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); } && 8938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8939 { (case "(($ac_try" in 8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8941 *) ac_try_echo=$ac_try;; 8942esac 8943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8944 (eval "$ac_try") 2>&5 8945 ac_status=$? 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 (exit $ac_status); }; } && 8948 { ac_try='test -s conftest.$ac_objext' 8949 { (case "(($ac_try" in 8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8951 *) ac_try_echo=$ac_try;; 8952esac 8953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8954 (eval "$ac_try") 2>&5 8955 ac_status=$? 8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8957 (exit $ac_status); }; }; then 8958 ac_cv_header_time=yes 8959else 8960 echo "$as_me: failed program was:" >&5 8961sed 's/^/| /' conftest.$ac_ext >&5 8962 8963 ac_cv_header_time=no 8964fi 8965 8966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8967fi 8968{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8969echo "${ECHO_T}$ac_cv_header_time" >&6; } 8970if test $ac_cv_header_time = yes; then 8971 8972cat >>confdefs.h <<\_ACEOF 8973#define TIME_WITH_SYS_TIME 1 8974_ACEOF 8975 8976fi 8977 8978 8979 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 8980echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; } 8981if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then 8982 echo $ECHO_N "(cached) $ECHO_C" >&6 8983else 8984 cat >conftest.$ac_ext <<_ACEOF 8985/* confdefs.h. */ 8986_ACEOF 8987cat confdefs.h >>conftest.$ac_ext 8988cat >>conftest.$ac_ext <<_ACEOF 8989/* end confdefs.h. */ 8990#include <time.h> 8991 8992int 8993main () 8994{ 8995static struct tm ac_aggr; 8996if (ac_aggr.tm_gmtoff) 8997return 0; 8998 ; 8999 return 0; 9000} 9001_ACEOF 9002rm -f conftest.$ac_objext 9003if { (ac_try="$ac_compile" 9004case "(($ac_try" in 9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9006 *) ac_try_echo=$ac_try;; 9007esac 9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9009 (eval "$ac_compile") 2>conftest.er1 9010 ac_status=$? 9011 grep -v '^ *+' conftest.er1 >conftest.err 9012 rm -f conftest.er1 9013 cat conftest.err >&5 9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9015 (exit $ac_status); } && 9016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9017 { (case "(($ac_try" in 9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9019 *) ac_try_echo=$ac_try;; 9020esac 9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9022 (eval "$ac_try") 2>&5 9023 ac_status=$? 9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); }; } && 9026 { ac_try='test -s conftest.$ac_objext' 9027 { (case "(($ac_try" in 9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9029 *) ac_try_echo=$ac_try;; 9030esac 9031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9032 (eval "$ac_try") 2>&5 9033 ac_status=$? 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9035 (exit $ac_status); }; }; then 9036 ac_cv_member_struct_tm_tm_gmtoff=yes 9037else 9038 echo "$as_me: failed program was:" >&5 9039sed 's/^/| /' conftest.$ac_ext >&5 9040 9041 cat >conftest.$ac_ext <<_ACEOF 9042/* confdefs.h. */ 9043_ACEOF 9044cat confdefs.h >>conftest.$ac_ext 9045cat >>conftest.$ac_ext <<_ACEOF 9046/* end confdefs.h. */ 9047#include <time.h> 9048 9049int 9050main () 9051{ 9052static struct tm ac_aggr; 9053if (sizeof ac_aggr.tm_gmtoff) 9054return 0; 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059rm -f conftest.$ac_objext 9060if { (ac_try="$ac_compile" 9061case "(($ac_try" in 9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9063 *) ac_try_echo=$ac_try;; 9064esac 9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9066 (eval "$ac_compile") 2>conftest.er1 9067 ac_status=$? 9068 grep -v '^ *+' conftest.er1 >conftest.err 9069 rm -f conftest.er1 9070 cat conftest.err >&5 9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9072 (exit $ac_status); } && 9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9074 { (case "(($ac_try" in 9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9076 *) ac_try_echo=$ac_try;; 9077esac 9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9079 (eval "$ac_try") 2>&5 9080 ac_status=$? 9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9082 (exit $ac_status); }; } && 9083 { ac_try='test -s conftest.$ac_objext' 9084 { (case "(($ac_try" in 9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9086 *) ac_try_echo=$ac_try;; 9087esac 9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9089 (eval "$ac_try") 2>&5 9090 ac_status=$? 9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9092 (exit $ac_status); }; }; then 9093 ac_cv_member_struct_tm_tm_gmtoff=yes 9094else 9095 echo "$as_me: failed program was:" >&5 9096sed 's/^/| /' conftest.$ac_ext >&5 9097 9098 ac_cv_member_struct_tm_tm_gmtoff=no 9099fi 9100 9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9102fi 9103 9104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9105fi 9106{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 9107echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; } 9108if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then 9109 9110cat >>confdefs.h <<\_ACEOF 9111#define HAVE_TM_GMTOFF 1 9112_ACEOF 9113 9114fi 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 case " $LIBOBJS " in 9150 *" strftime.$ac_objext "* ) ;; 9151 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 9152 ;; 9153esac 9154 9155 9156 # strftime.c uses the underyling system strftime if it exists. 9157 9158 9159 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. 9160 9161 9162 9163 9164 9165 9166 9167 : 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 : 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194cat >>confdefs.h <<\_ACEOF 9195#define my_strftime nstrftime 9196_ACEOF 9197 9198 9199 9200 { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5 9201echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; } 9202if test "${ac_cv_have_decl_strnlen+set}" = set; then 9203 echo $ECHO_N "(cached) $ECHO_C" >&6 9204else 9205 cat >conftest.$ac_ext <<_ACEOF 9206/* confdefs.h. */ 9207_ACEOF 9208cat confdefs.h >>conftest.$ac_ext 9209cat >>conftest.$ac_ext <<_ACEOF 9210/* end confdefs.h. */ 9211$ac_includes_default 9212int 9213main () 9214{ 9215#ifndef strnlen 9216 char *p = (char *) strnlen; 9217 return !p; 9218#endif 9219 9220 ; 9221 return 0; 9222} 9223_ACEOF 9224rm -f conftest.$ac_objext 9225if { (ac_try="$ac_compile" 9226case "(($ac_try" in 9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9228 *) ac_try_echo=$ac_try;; 9229esac 9230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9231 (eval "$ac_compile") 2>conftest.er1 9232 ac_status=$? 9233 grep -v '^ *+' conftest.er1 >conftest.err 9234 rm -f conftest.er1 9235 cat conftest.err >&5 9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9237 (exit $ac_status); } && 9238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9239 { (case "(($ac_try" in 9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9241 *) ac_try_echo=$ac_try;; 9242esac 9243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9244 (eval "$ac_try") 2>&5 9245 ac_status=$? 9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9247 (exit $ac_status); }; } && 9248 { ac_try='test -s conftest.$ac_objext' 9249 { (case "(($ac_try" in 9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9251 *) ac_try_echo=$ac_try;; 9252esac 9253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9254 (eval "$ac_try") 2>&5 9255 ac_status=$? 9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9257 (exit $ac_status); }; }; then 9258 ac_cv_have_decl_strnlen=yes 9259else 9260 echo "$as_me: failed program was:" >&5 9261sed 's/^/| /' conftest.$ac_ext >&5 9262 9263 ac_cv_have_decl_strnlen=no 9264fi 9265 9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9267fi 9268{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5 9269echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; } 9270if test $ac_cv_have_decl_strnlen = yes; then 9271 9272cat >>confdefs.h <<_ACEOF 9273#define HAVE_DECL_STRNLEN 1 9274_ACEOF 9275 9276 9277else 9278 cat >>confdefs.h <<_ACEOF 9279#define HAVE_DECL_STRNLEN 0 9280_ACEOF 9281 9282 9283fi 9284 9285 9286 9287 9288 { echo "$as_me:$LINENO: checking for long long" >&5 9289echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 9290if test "${ac_cv_type_long_long+set}" = set; then 9291 echo $ECHO_N "(cached) $ECHO_C" >&6 9292else 9293 cat >conftest.$ac_ext <<_ACEOF 9294/* confdefs.h. */ 9295_ACEOF 9296cat confdefs.h >>conftest.$ac_ext 9297cat >>conftest.$ac_ext <<_ACEOF 9298/* end confdefs.h. */ 9299long long ll = 1LL; int i = 63; 9300int 9301main () 9302{ 9303long long llmax = (long long) -1; 9304 return ll << i | ll >> i | llmax / ll | llmax % ll; 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309rm -f conftest.$ac_objext conftest$ac_exeext 9310if { (ac_try="$ac_link" 9311case "(($ac_try" in 9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9313 *) ac_try_echo=$ac_try;; 9314esac 9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9316 (eval "$ac_link") 2>conftest.er1 9317 ac_status=$? 9318 grep -v '^ *+' conftest.er1 >conftest.err 9319 rm -f conftest.er1 9320 cat conftest.err >&5 9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9322 (exit $ac_status); } && 9323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9324 { (case "(($ac_try" in 9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9326 *) ac_try_echo=$ac_try;; 9327esac 9328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9329 (eval "$ac_try") 2>&5 9330 ac_status=$? 9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9332 (exit $ac_status); }; } && 9333 { ac_try='test -s conftest$ac_exeext' 9334 { (case "(($ac_try" in 9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9336 *) ac_try_echo=$ac_try;; 9337esac 9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9339 (eval "$ac_try") 2>&5 9340 ac_status=$? 9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 (exit $ac_status); }; }; then 9343 ac_cv_type_long_long=yes 9344else 9345 echo "$as_me: failed program was:" >&5 9346sed 's/^/| /' conftest.$ac_ext >&5 9347 9348 ac_cv_type_long_long=no 9349fi 9350 9351rm -f core conftest.err conftest.$ac_objext \ 9352 conftest$ac_exeext conftest.$ac_ext 9353fi 9354{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 9355echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 9356 if test $ac_cv_type_long_long = yes; then 9357 9358cat >>confdefs.h <<\_ACEOF 9359#define HAVE_LONG_LONG 1 9360_ACEOF 9361 9362 fi 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5 9373echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; } 9374if test "${ac_cv_decl_EOVERFLOW+set}" = set; then 9375 echo $ECHO_N "(cached) $ECHO_C" >&6 9376else 9377 9378 cat >conftest.$ac_ext <<_ACEOF 9379/* confdefs.h. */ 9380_ACEOF 9381cat confdefs.h >>conftest.$ac_ext 9382cat >>conftest.$ac_ext <<_ACEOF 9383/* end confdefs.h. */ 9384 9385#include <errno.h> 9386#ifdef EOVERFLOW 9387yes 9388#endif 9389 9390_ACEOF 9391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9392 $EGREP "yes" >/dev/null 2>&1; then 9393 have_eoverflow=1 9394fi 9395rm -f conftest* 9396 9397 if test -n "$have_eoverflow"; then 9398 ac_cv_decl_EOVERFLOW=yes 9399 else 9400 cat >conftest.$ac_ext <<_ACEOF 9401/* confdefs.h. */ 9402_ACEOF 9403cat confdefs.h >>conftest.$ac_ext 9404cat >>conftest.$ac_ext <<_ACEOF 9405/* end confdefs.h. */ 9406 9407#define _XOPEN_SOURCE_EXTENDED 1 9408#include <errno.h> 9409#ifdef EOVERFLOW 9410yes 9411#endif 9412 9413_ACEOF 9414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9415 $EGREP "yes" >/dev/null 2>&1; then 9416 have_eoverflow=1 9417fi 9418rm -f conftest* 9419 9420 if test -n "$have_eoverflow"; then 9421 if test "$cross_compiling" = yes; then 9422 # Depending upon the size, compute the lo and hi bounds. 9423cat >conftest.$ac_ext <<_ACEOF 9424/* confdefs.h. */ 9425_ACEOF 9426cat confdefs.h >>conftest.$ac_ext 9427cat >>conftest.$ac_ext <<_ACEOF 9428/* end confdefs.h. */ 9429 9430#define _XOPEN_SOURCE_EXTENDED 1 9431#include <errno.h> 9432/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9433#include <stdio.h> 9434#include <stdlib.h> 9435 9436int 9437main () 9438{ 9439static int test_array [1 - 2 * !((EOVERFLOW) >= 0)]; 9440test_array [0] = 0 9441 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446rm -f conftest.$ac_objext 9447if { (ac_try="$ac_compile" 9448case "(($ac_try" in 9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9450 *) ac_try_echo=$ac_try;; 9451esac 9452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9453 (eval "$ac_compile") 2>conftest.er1 9454 ac_status=$? 9455 grep -v '^ *+' conftest.er1 >conftest.err 9456 rm -f conftest.er1 9457 cat conftest.err >&5 9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9459 (exit $ac_status); } && 9460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9461 { (case "(($ac_try" in 9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9463 *) ac_try_echo=$ac_try;; 9464esac 9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9466 (eval "$ac_try") 2>&5 9467 ac_status=$? 9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469 (exit $ac_status); }; } && 9470 { ac_try='test -s conftest.$ac_objext' 9471 { (case "(($ac_try" in 9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9473 *) ac_try_echo=$ac_try;; 9474esac 9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9476 (eval "$ac_try") 2>&5 9477 ac_status=$? 9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9479 (exit $ac_status); }; }; then 9480 ac_lo=0 ac_mid=0 9481 while :; do 9482 cat >conftest.$ac_ext <<_ACEOF 9483/* confdefs.h. */ 9484_ACEOF 9485cat confdefs.h >>conftest.$ac_ext 9486cat >>conftest.$ac_ext <<_ACEOF 9487/* end confdefs.h. */ 9488 9489#define _XOPEN_SOURCE_EXTENDED 1 9490#include <errno.h> 9491/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9492#include <stdio.h> 9493#include <stdlib.h> 9494 9495int 9496main () 9497{ 9498static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; 9499test_array [0] = 0 9500 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext 9506if { (ac_try="$ac_compile" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_compile") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && 9519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9520 { (case "(($ac_try" in 9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9522 *) ac_try_echo=$ac_try;; 9523esac 9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9525 (eval "$ac_try") 2>&5 9526 ac_status=$? 9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9528 (exit $ac_status); }; } && 9529 { ac_try='test -s conftest.$ac_objext' 9530 { (case "(($ac_try" in 9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9532 *) ac_try_echo=$ac_try;; 9533esac 9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9535 (eval "$ac_try") 2>&5 9536 ac_status=$? 9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9538 (exit $ac_status); }; }; then 9539 ac_hi=$ac_mid; break 9540else 9541 echo "$as_me: failed program was:" >&5 9542sed 's/^/| /' conftest.$ac_ext >&5 9543 9544 ac_lo=`expr $ac_mid + 1` 9545 if test $ac_lo -le $ac_mid; then 9546 ac_lo= ac_hi= 9547 break 9548 fi 9549 ac_mid=`expr 2 '*' $ac_mid + 1` 9550fi 9551 9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9553 done 9554else 9555 echo "$as_me: failed program was:" >&5 9556sed 's/^/| /' conftest.$ac_ext >&5 9557 9558 cat >conftest.$ac_ext <<_ACEOF 9559/* confdefs.h. */ 9560_ACEOF 9561cat confdefs.h >>conftest.$ac_ext 9562cat >>conftest.$ac_ext <<_ACEOF 9563/* end confdefs.h. */ 9564 9565#define _XOPEN_SOURCE_EXTENDED 1 9566#include <errno.h> 9567/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9568#include <stdio.h> 9569#include <stdlib.h> 9570 9571int 9572main () 9573{ 9574static int test_array [1 - 2 * !((EOVERFLOW) < 0)]; 9575test_array [0] = 0 9576 9577 ; 9578 return 0; 9579} 9580_ACEOF 9581rm -f conftest.$ac_objext 9582if { (ac_try="$ac_compile" 9583case "(($ac_try" in 9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9585 *) ac_try_echo=$ac_try;; 9586esac 9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9588 (eval "$ac_compile") 2>conftest.er1 9589 ac_status=$? 9590 grep -v '^ *+' conftest.er1 >conftest.err 9591 rm -f conftest.er1 9592 cat conftest.err >&5 9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9594 (exit $ac_status); } && 9595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9596 { (case "(($ac_try" in 9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9598 *) ac_try_echo=$ac_try;; 9599esac 9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9601 (eval "$ac_try") 2>&5 9602 ac_status=$? 9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9604 (exit $ac_status); }; } && 9605 { ac_try='test -s conftest.$ac_objext' 9606 { (case "(($ac_try" in 9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9608 *) ac_try_echo=$ac_try;; 9609esac 9610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9611 (eval "$ac_try") 2>&5 9612 ac_status=$? 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); }; }; then 9615 ac_hi=-1 ac_mid=-1 9616 while :; do 9617 cat >conftest.$ac_ext <<_ACEOF 9618/* confdefs.h. */ 9619_ACEOF 9620cat confdefs.h >>conftest.$ac_ext 9621cat >>conftest.$ac_ext <<_ACEOF 9622/* end confdefs.h. */ 9623 9624#define _XOPEN_SOURCE_EXTENDED 1 9625#include <errno.h> 9626/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9627#include <stdio.h> 9628#include <stdlib.h> 9629 9630int 9631main () 9632{ 9633static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)]; 9634test_array [0] = 0 9635 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640rm -f conftest.$ac_objext 9641if { (ac_try="$ac_compile" 9642case "(($ac_try" in 9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9644 *) ac_try_echo=$ac_try;; 9645esac 9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9647 (eval "$ac_compile") 2>conftest.er1 9648 ac_status=$? 9649 grep -v '^ *+' conftest.er1 >conftest.err 9650 rm -f conftest.er1 9651 cat conftest.err >&5 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 (exit $ac_status); } && 9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9655 { (case "(($ac_try" in 9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9657 *) ac_try_echo=$ac_try;; 9658esac 9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9660 (eval "$ac_try") 2>&5 9661 ac_status=$? 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); }; } && 9664 { ac_try='test -s conftest.$ac_objext' 9665 { (case "(($ac_try" in 9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9667 *) ac_try_echo=$ac_try;; 9668esac 9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9670 (eval "$ac_try") 2>&5 9671 ac_status=$? 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 (exit $ac_status); }; }; then 9674 ac_lo=$ac_mid; break 9675else 9676 echo "$as_me: failed program was:" >&5 9677sed 's/^/| /' conftest.$ac_ext >&5 9678 9679 ac_hi=`expr '(' $ac_mid ')' - 1` 9680 if test $ac_mid -le $ac_hi; then 9681 ac_lo= ac_hi= 9682 break 9683 fi 9684 ac_mid=`expr 2 '*' $ac_mid` 9685fi 9686 9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688 done 9689else 9690 echo "$as_me: failed program was:" >&5 9691sed 's/^/| /' conftest.$ac_ext >&5 9692 9693 ac_lo= ac_hi= 9694fi 9695 9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9697fi 9698 9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9700# Binary search between lo and hi bounds. 9701while test "x$ac_lo" != "x$ac_hi"; do 9702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9703 cat >conftest.$ac_ext <<_ACEOF 9704/* confdefs.h. */ 9705_ACEOF 9706cat confdefs.h >>conftest.$ac_ext 9707cat >>conftest.$ac_ext <<_ACEOF 9708/* end confdefs.h. */ 9709 9710#define _XOPEN_SOURCE_EXTENDED 1 9711#include <errno.h> 9712/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9713#include <stdio.h> 9714#include <stdlib.h> 9715 9716int 9717main () 9718{ 9719static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; 9720test_array [0] = 0 9721 9722 ; 9723 return 0; 9724} 9725_ACEOF 9726rm -f conftest.$ac_objext 9727if { (ac_try="$ac_compile" 9728case "(($ac_try" in 9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9730 *) ac_try_echo=$ac_try;; 9731esac 9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9733 (eval "$ac_compile") 2>conftest.er1 9734 ac_status=$? 9735 grep -v '^ *+' conftest.er1 >conftest.err 9736 rm -f conftest.er1 9737 cat conftest.err >&5 9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9739 (exit $ac_status); } && 9740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9741 { (case "(($ac_try" in 9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9743 *) ac_try_echo=$ac_try;; 9744esac 9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9746 (eval "$ac_try") 2>&5 9747 ac_status=$? 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); }; } && 9750 { ac_try='test -s conftest.$ac_objext' 9751 { (case "(($ac_try" in 9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9753 *) ac_try_echo=$ac_try;; 9754esac 9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9756 (eval "$ac_try") 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; }; then 9760 ac_hi=$ac_mid 9761else 9762 echo "$as_me: failed program was:" >&5 9763sed 's/^/| /' conftest.$ac_ext >&5 9764 9765 ac_lo=`expr '(' $ac_mid ')' + 1` 9766fi 9767 9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9769done 9770case $ac_lo in 9771?*) ac_cv_decl_EOVERFLOW=$ac_lo;; 9772'') ;; 9773esac 9774else 9775 cat >conftest.$ac_ext <<_ACEOF 9776/* confdefs.h. */ 9777_ACEOF 9778cat confdefs.h >>conftest.$ac_ext 9779cat >>conftest.$ac_ext <<_ACEOF 9780/* end confdefs.h. */ 9781 9782#define _XOPEN_SOURCE_EXTENDED 1 9783#include <errno.h> 9784/* The following two lines are a workaround against an autoconf-2.52 bug. */ 9785#include <stdio.h> 9786#include <stdlib.h> 9787 9788static long int longval () { return EOVERFLOW; } 9789static unsigned long int ulongval () { return EOVERFLOW; } 9790#include <stdio.h> 9791#include <stdlib.h> 9792int 9793main () 9794{ 9795 9796 FILE *f = fopen ("conftest.val", "w"); 9797 if (! f) 9798 return 1; 9799 if ((EOVERFLOW) < 0) 9800 { 9801 long int i = longval (); 9802 if (i != (EOVERFLOW)) 9803 return 1; 9804 fprintf (f, "%ld\n", i); 9805 } 9806 else 9807 { 9808 unsigned long int i = ulongval (); 9809 if (i != (EOVERFLOW)) 9810 return 1; 9811 fprintf (f, "%lu\n", i); 9812 } 9813 return ferror (f) || fclose (f) != 0; 9814 9815 ; 9816 return 0; 9817} 9818_ACEOF 9819rm -f conftest$ac_exeext 9820if { (ac_try="$ac_link" 9821case "(($ac_try" in 9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9823 *) ac_try_echo=$ac_try;; 9824esac 9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9826 (eval "$ac_link") 2>&5 9827 ac_status=$? 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9830 { (case "(($ac_try" in 9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *) ac_try_echo=$ac_try;; 9833esac 9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835 (eval "$ac_try") 2>&5 9836 ac_status=$? 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 (exit $ac_status); }; }; then 9839 ac_cv_decl_EOVERFLOW=`cat conftest.val` 9840else 9841 echo "$as_me: program exited with status $ac_status" >&5 9842echo "$as_me: failed program was:" >&5 9843sed 's/^/| /' conftest.$ac_ext >&5 9844 9845fi 9846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9847fi 9848rm -f conftest.val 9849 else 9850 ac_cv_decl_EOVERFLOW=E2BIG 9851 fi 9852 fi 9853 9854fi 9855{ echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5 9856echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; } 9857 if test "$ac_cv_decl_EOVERFLOW" != yes; then 9858 9859cat >>confdefs.h <<_ACEOF 9860#define EOVERFLOW $ac_cv_decl_EOVERFLOW 9861_ACEOF 9862 9863 EOVERFLOW="$ac_cv_decl_EOVERFLOW" 9864 9865 fi 9866 9867 9868 { echo "$as_me:$LINENO: checking for signed" >&5 9869echo $ECHO_N "checking for signed... $ECHO_C" >&6; } 9870if test "${bh_cv_c_signed+set}" = set; then 9871 echo $ECHO_N "(cached) $ECHO_C" >&6 9872else 9873 cat >conftest.$ac_ext <<_ACEOF 9874/* confdefs.h. */ 9875_ACEOF 9876cat confdefs.h >>conftest.$ac_ext 9877cat >>conftest.$ac_ext <<_ACEOF 9878/* end confdefs.h. */ 9879 9880int 9881main () 9882{ 9883signed char x; 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext 9889if { (ac_try="$ac_compile" 9890case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893esac 9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_compile") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && 9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9903 { (case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906esac 9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_try") 2>&5 9909 ac_status=$? 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); }; } && 9912 { ac_try='test -s conftest.$ac_objext' 9913 { (case "(($ac_try" in 9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9915 *) ac_try_echo=$ac_try;; 9916esac 9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9918 (eval "$ac_try") 2>&5 9919 ac_status=$? 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); }; }; then 9922 bh_cv_c_signed=yes 9923else 9924 echo "$as_me: failed program was:" >&5 9925sed 's/^/| /' conftest.$ac_ext >&5 9926 9927 bh_cv_c_signed=no 9928fi 9929 9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9931fi 9932{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 9933echo "${ECHO_T}$bh_cv_c_signed" >&6; } 9934 if test $bh_cv_c_signed = no; then 9935 9936cat >>confdefs.h <<\_ACEOF 9937#define signed 9938_ACEOF 9939 9940 fi 9941 9942 9943 { echo "$as_me:$LINENO: checking for long double" >&5 9944echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 9945if test "${gt_cv_c_long_double+set}" = set; then 9946 echo $ECHO_N "(cached) $ECHO_C" >&6 9947else 9948 if test "$GCC" = yes; then 9949 gt_cv_c_long_double=yes 9950 else 9951 cat >conftest.$ac_ext <<_ACEOF 9952/* confdefs.h. */ 9953_ACEOF 9954cat confdefs.h >>conftest.$ac_ext 9955cat >>conftest.$ac_ext <<_ACEOF 9956/* end confdefs.h. */ 9957 9958 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 9959 long double foo = 0.0; 9960 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 9961 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 9962 9963int 9964main () 9965{ 9966 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971rm -f conftest.$ac_objext 9972if { (ac_try="$ac_compile" 9973case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976esac 9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9978 (eval "$ac_compile") 2>conftest.er1 9979 ac_status=$? 9980 grep -v '^ *+' conftest.er1 >conftest.err 9981 rm -f conftest.er1 9982 cat conftest.err >&5 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } && 9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9986 { (case "(($ac_try" in 9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9988 *) ac_try_echo=$ac_try;; 9989esac 9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9991 (eval "$ac_try") 2>&5 9992 ac_status=$? 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); }; } && 9995 { ac_try='test -s conftest.$ac_objext' 9996 { (case "(($ac_try" in 9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9998 *) ac_try_echo=$ac_try;; 9999esac 10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10001 (eval "$ac_try") 2>&5 10002 ac_status=$? 10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10004 (exit $ac_status); }; }; then 10005 gt_cv_c_long_double=yes 10006else 10007 echo "$as_me: failed program was:" >&5 10008sed 's/^/| /' conftest.$ac_ext >&5 10009 10010 gt_cv_c_long_double=no 10011fi 10012 10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10014 fi 10015fi 10016{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 10017echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 10018 if test $gt_cv_c_long_double = yes; then 10019 10020cat >>confdefs.h <<\_ACEOF 10021#define HAVE_LONG_DOUBLE 1 10022_ACEOF 10023 10024 fi 10025 10026 10027 { echo "$as_me:$LINENO: checking for wchar_t" >&5 10028echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 10029if test "${gt_cv_c_wchar_t+set}" = set; then 10030 echo $ECHO_N "(cached) $ECHO_C" >&6 10031else 10032 cat >conftest.$ac_ext <<_ACEOF 10033/* confdefs.h. */ 10034_ACEOF 10035cat confdefs.h >>conftest.$ac_ext 10036cat >>conftest.$ac_ext <<_ACEOF 10037/* end confdefs.h. */ 10038#include <stddef.h> 10039 wchar_t foo = (wchar_t)'\0'; 10040int 10041main () 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048rm -f conftest.$ac_objext 10049if { (ac_try="$ac_compile" 10050case "(($ac_try" in 10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10052 *) ac_try_echo=$ac_try;; 10053esac 10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10055 (eval "$ac_compile") 2>conftest.er1 10056 ac_status=$? 10057 grep -v '^ *+' conftest.er1 >conftest.err 10058 rm -f conftest.er1 10059 cat conftest.err >&5 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); } && 10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10063 { (case "(($ac_try" in 10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10065 *) ac_try_echo=$ac_try;; 10066esac 10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10068 (eval "$ac_try") 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; } && 10072 { ac_try='test -s conftest.$ac_objext' 10073 { (case "(($ac_try" in 10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10075 *) ac_try_echo=$ac_try;; 10076esac 10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10078 (eval "$ac_try") 2>&5 10079 ac_status=$? 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); }; }; then 10082 gt_cv_c_wchar_t=yes 10083else 10084 echo "$as_me: failed program was:" >&5 10085sed 's/^/| /' conftest.$ac_ext >&5 10086 10087 gt_cv_c_wchar_t=no 10088fi 10089 10090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10091fi 10092{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 10093echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 10094 if test $gt_cv_c_wchar_t = yes; then 10095 10096cat >>confdefs.h <<\_ACEOF 10097#define HAVE_WCHAR_T 1 10098_ACEOF 10099 10100 fi 10101 10102 10103 { echo "$as_me:$LINENO: checking for wint_t" >&5 10104echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 10105if test "${gt_cv_c_wint_t+set}" = set; then 10106 echo $ECHO_N "(cached) $ECHO_C" >&6 10107else 10108 cat >conftest.$ac_ext <<_ACEOF 10109/* confdefs.h. */ 10110_ACEOF 10111cat confdefs.h >>conftest.$ac_ext 10112cat >>conftest.$ac_ext <<_ACEOF 10113/* end confdefs.h. */ 10114#include <wchar.h> 10115 wint_t foo = (wchar_t)'\0'; 10116int 10117main () 10118{ 10119 10120 ; 10121 return 0; 10122} 10123_ACEOF 10124rm -f conftest.$ac_objext 10125if { (ac_try="$ac_compile" 10126case "(($ac_try" in 10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10128 *) ac_try_echo=$ac_try;; 10129esac 10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10131 (eval "$ac_compile") 2>conftest.er1 10132 ac_status=$? 10133 grep -v '^ *+' conftest.er1 >conftest.err 10134 rm -f conftest.er1 10135 cat conftest.err >&5 10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10137 (exit $ac_status); } && 10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10139 { (case "(($ac_try" in 10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10141 *) ac_try_echo=$ac_try;; 10142esac 10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10144 (eval "$ac_try") 2>&5 10145 ac_status=$? 10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10147 (exit $ac_status); }; } && 10148 { ac_try='test -s conftest.$ac_objext' 10149 { (case "(($ac_try" in 10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10151 *) ac_try_echo=$ac_try;; 10152esac 10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10154 (eval "$ac_try") 2>&5 10155 ac_status=$? 10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10157 (exit $ac_status); }; }; then 10158 gt_cv_c_wint_t=yes 10159else 10160 echo "$as_me: failed program was:" >&5 10161sed 's/^/| /' conftest.$ac_ext >&5 10162 10163 gt_cv_c_wint_t=no 10164fi 10165 10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10167fi 10168{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 10169echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 10170 if test $gt_cv_c_wint_t = yes; then 10171 10172cat >>confdefs.h <<\_ACEOF 10173#define HAVE_WINT_T 1 10174_ACEOF 10175 10176 fi 10177 10178{ echo "$as_me:$LINENO: checking for size_t" >&5 10179echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 10180if test "${ac_cv_type_size_t+set}" = set; then 10181 echo $ECHO_N "(cached) $ECHO_C" >&6 10182else 10183 cat >conftest.$ac_ext <<_ACEOF 10184/* confdefs.h. */ 10185_ACEOF 10186cat confdefs.h >>conftest.$ac_ext 10187cat >>conftest.$ac_ext <<_ACEOF 10188/* end confdefs.h. */ 10189$ac_includes_default 10190typedef size_t ac__type_new_; 10191int 10192main () 10193{ 10194if ((ac__type_new_ *) 0) 10195 return 0; 10196if (sizeof (ac__type_new_)) 10197 return 0; 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202rm -f conftest.$ac_objext 10203if { (ac_try="$ac_compile" 10204case "(($ac_try" in 10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *) ac_try_echo=$ac_try;; 10207esac 10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10209 (eval "$ac_compile") 2>conftest.er1 10210 ac_status=$? 10211 grep -v '^ *+' conftest.er1 >conftest.err 10212 rm -f conftest.er1 10213 cat conftest.err >&5 10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10215 (exit $ac_status); } && 10216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10217 { (case "(($ac_try" in 10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10219 *) ac_try_echo=$ac_try;; 10220esac 10221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10222 (eval "$ac_try") 2>&5 10223 ac_status=$? 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 (exit $ac_status); }; } && 10226 { ac_try='test -s conftest.$ac_objext' 10227 { (case "(($ac_try" in 10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10229 *) ac_try_echo=$ac_try;; 10230esac 10231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10232 (eval "$ac_try") 2>&5 10233 ac_status=$? 10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 (exit $ac_status); }; }; then 10236 ac_cv_type_size_t=yes 10237else 10238 echo "$as_me: failed program was:" >&5 10239sed 's/^/| /' conftest.$ac_ext >&5 10240 10241 ac_cv_type_size_t=no 10242fi 10243 10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10245fi 10246{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 10247echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 10248if test $ac_cv_type_size_t = yes; then 10249 : 10250else 10251 10252cat >>confdefs.h <<_ACEOF 10253#define size_t unsigned int 10254_ACEOF 10255 10256fi 10257 10258 10259 10260 10261 { echo "$as_me:$LINENO: checking for intmax_t" >&5 10262echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 10263if test "${gt_cv_c_intmax_t+set}" = set; then 10264 echo $ECHO_N "(cached) $ECHO_C" >&6 10265else 10266 cat >conftest.$ac_ext <<_ACEOF 10267/* confdefs.h. */ 10268_ACEOF 10269cat confdefs.h >>conftest.$ac_ext 10270cat >>conftest.$ac_ext <<_ACEOF 10271/* end confdefs.h. */ 10272 10273#include <stddef.h> 10274#include <stdlib.h> 10275#if HAVE_STDINT_H_WITH_UINTMAX 10276#include <stdint.h> 10277#endif 10278#if HAVE_INTTYPES_H_WITH_UINTMAX 10279#include <inttypes.h> 10280#endif 10281 10282int 10283main () 10284{ 10285intmax_t x = -1; 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290rm -f conftest.$ac_objext 10291if { (ac_try="$ac_compile" 10292case "(($ac_try" in 10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10294 *) ac_try_echo=$ac_try;; 10295esac 10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10297 (eval "$ac_compile") 2>conftest.er1 10298 ac_status=$? 10299 grep -v '^ *+' conftest.er1 >conftest.err 10300 rm -f conftest.er1 10301 cat conftest.err >&5 10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && 10304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10305 { (case "(($ac_try" in 10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10307 *) ac_try_echo=$ac_try;; 10308esac 10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10310 (eval "$ac_try") 2>&5 10311 ac_status=$? 10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 (exit $ac_status); }; } && 10314 { ac_try='test -s conftest.$ac_objext' 10315 { (case "(($ac_try" in 10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10317 *) ac_try_echo=$ac_try;; 10318esac 10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10320 (eval "$ac_try") 2>&5 10321 ac_status=$? 10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10323 (exit $ac_status); }; }; then 10324 gt_cv_c_intmax_t=yes 10325else 10326 echo "$as_me: failed program was:" >&5 10327sed 's/^/| /' conftest.$ac_ext >&5 10328 10329 gt_cv_c_intmax_t=no 10330fi 10331 10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10333fi 10334{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 10335echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 10336 if test $gt_cv_c_intmax_t = yes; then 10337 10338cat >>confdefs.h <<\_ACEOF 10339#define HAVE_INTMAX_T 1 10340_ACEOF 10341 10342 else 10343 10344 test $ac_cv_type_long_long = yes \ 10345 && ac_type='long long' \ 10346 || ac_type='long' 10347 10348cat >>confdefs.h <<_ACEOF 10349#define intmax_t $ac_type 10350_ACEOF 10351 10352 fi 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 : 10363 10364 10365 10366 10367 10368 { echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5 10369echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6; } 10370if test "${ac_cv_have_decl_strtoimax+set}" = set; then 10371 echo $ECHO_N "(cached) $ECHO_C" >&6 10372else 10373 cat >conftest.$ac_ext <<_ACEOF 10374/* confdefs.h. */ 10375_ACEOF 10376cat confdefs.h >>conftest.$ac_ext 10377cat >>conftest.$ac_ext <<_ACEOF 10378/* end confdefs.h. */ 10379$ac_includes_default 10380int 10381main () 10382{ 10383#ifndef strtoimax 10384 char *p = (char *) strtoimax; 10385 return !p; 10386#endif 10387 10388 ; 10389 return 0; 10390} 10391_ACEOF 10392rm -f conftest.$ac_objext 10393if { (ac_try="$ac_compile" 10394case "(($ac_try" in 10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10396 *) ac_try_echo=$ac_try;; 10397esac 10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10399 (eval "$ac_compile") 2>conftest.er1 10400 ac_status=$? 10401 grep -v '^ *+' conftest.er1 >conftest.err 10402 rm -f conftest.er1 10403 cat conftest.err >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); } && 10406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10407 { (case "(($ac_try" in 10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10409 *) ac_try_echo=$ac_try;; 10410esac 10411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10412 (eval "$ac_try") 2>&5 10413 ac_status=$? 10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10415 (exit $ac_status); }; } && 10416 { ac_try='test -s conftest.$ac_objext' 10417 { (case "(($ac_try" in 10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10419 *) ac_try_echo=$ac_try;; 10420esac 10421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10422 (eval "$ac_try") 2>&5 10423 ac_status=$? 10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10425 (exit $ac_status); }; }; then 10426 ac_cv_have_decl_strtoimax=yes 10427else 10428 echo "$as_me: failed program was:" >&5 10429sed 's/^/| /' conftest.$ac_ext >&5 10430 10431 ac_cv_have_decl_strtoimax=no 10432fi 10433 10434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10435fi 10436{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5 10437echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6; } 10438if test $ac_cv_have_decl_strtoimax = yes; then 10439 10440cat >>confdefs.h <<_ACEOF 10441#define HAVE_DECL_STRTOIMAX 1 10442_ACEOF 10443 10444 10445else 10446 cat >>confdefs.h <<_ACEOF 10447#define HAVE_DECL_STRTOIMAX 0 10448_ACEOF 10449 10450 10451fi 10452{ echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5 10453echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6; } 10454if test "${ac_cv_have_decl_strtoumax+set}" = set; then 10455 echo $ECHO_N "(cached) $ECHO_C" >&6 10456else 10457 cat >conftest.$ac_ext <<_ACEOF 10458/* confdefs.h. */ 10459_ACEOF 10460cat confdefs.h >>conftest.$ac_ext 10461cat >>conftest.$ac_ext <<_ACEOF 10462/* end confdefs.h. */ 10463$ac_includes_default 10464int 10465main () 10466{ 10467#ifndef strtoumax 10468 char *p = (char *) strtoumax; 10469 return !p; 10470#endif 10471 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476rm -f conftest.$ac_objext 10477if { (ac_try="$ac_compile" 10478case "(($ac_try" in 10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10480 *) ac_try_echo=$ac_try;; 10481esac 10482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10483 (eval "$ac_compile") 2>conftest.er1 10484 ac_status=$? 10485 grep -v '^ *+' conftest.er1 >conftest.err 10486 rm -f conftest.er1 10487 cat conftest.err >&5 10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10489 (exit $ac_status); } && 10490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10491 { (case "(($ac_try" in 10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10493 *) ac_try_echo=$ac_try;; 10494esac 10495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10496 (eval "$ac_try") 2>&5 10497 ac_status=$? 10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10499 (exit $ac_status); }; } && 10500 { ac_try='test -s conftest.$ac_objext' 10501 { (case "(($ac_try" in 10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10503 *) ac_try_echo=$ac_try;; 10504esac 10505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10506 (eval "$ac_try") 2>&5 10507 ac_status=$? 10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10509 (exit $ac_status); }; }; then 10510 ac_cv_have_decl_strtoumax=yes 10511else 10512 echo "$as_me: failed program was:" >&5 10513sed 's/^/| /' conftest.$ac_ext >&5 10514 10515 ac_cv_have_decl_strtoumax=no 10516fi 10517 10518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10519fi 10520{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5 10521echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6; } 10522if test $ac_cv_have_decl_strtoumax = yes; then 10523 10524cat >>confdefs.h <<_ACEOF 10525#define HAVE_DECL_STRTOUMAX 1 10526_ACEOF 10527 10528 10529else 10530 cat >>confdefs.h <<_ACEOF 10531#define HAVE_DECL_STRTOUMAX 0 10532_ACEOF 10533 10534 10535fi 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 if test $ac_cv_func_alloca_works = no; then 10549 : 10550 fi 10551 10552 # Define an additional variable used in the Makefile substitution. 10553 if test $ac_cv_working_alloca_h = yes; then 10554 cat >conftest.$ac_ext <<_ACEOF 10555/* confdefs.h. */ 10556_ACEOF 10557cat confdefs.h >>conftest.$ac_ext 10558cat >>conftest.$ac_ext <<_ACEOF 10559/* end confdefs.h. */ 10560 10561#if defined __GNUC__ || defined _AIX || defined _MSC_VER 10562 Need own alloca 10563#endif 10564 10565_ACEOF 10566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10567 $EGREP "Need own alloca" >/dev/null 2>&1; then 10568 10569cat >>confdefs.h <<\_ACEOF 10570#define HAVE_ALLOCA 1 10571_ACEOF 10572 10573 ALLOCA_H=alloca.h 10574else 10575 ALLOCA_H= 10576fi 10577rm -f conftest* 10578 10579 else 10580 ALLOCA_H=alloca.h 10581 fi 10582 10583 10584 10585cat >>confdefs.h <<\_ACEOF 10586#define HAVE_ALLOCA_H 1 10587_ACEOF 10588 10589 10590 10591 10592 case " $LIBOBJS " in 10593 *" dirname.$ac_objext "* ) ;; 10594 *) LIBOBJS="$LIBOBJS dirname.$ac_objext" 10595 ;; 10596esac 10597 10598 10599 10600 10601 10602 10603 { echo "$as_me:$LINENO: checking for error_at_line" >&5 10604echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } 10605if test "${ac_cv_lib_error_at_line+set}" = set; then 10606 echo $ECHO_N "(cached) $ECHO_C" >&6 10607else 10608 cat >conftest.$ac_ext <<_ACEOF 10609/* confdefs.h. */ 10610_ACEOF 10611cat confdefs.h >>conftest.$ac_ext 10612cat >>conftest.$ac_ext <<_ACEOF 10613/* end confdefs.h. */ 10614$ac_includes_default 10615int 10616main () 10617{ 10618error_at_line (0, 0, "", 0, ""); 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623rm -f conftest.$ac_objext conftest$ac_exeext 10624if { (ac_try="$ac_link" 10625case "(($ac_try" in 10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10627 *) ac_try_echo=$ac_try;; 10628esac 10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10630 (eval "$ac_link") 2>conftest.er1 10631 ac_status=$? 10632 grep -v '^ *+' conftest.er1 >conftest.err 10633 rm -f conftest.er1 10634 cat conftest.err >&5 10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 (exit $ac_status); } && 10637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10638 { (case "(($ac_try" in 10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10640 *) ac_try_echo=$ac_try;; 10641esac 10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10643 (eval "$ac_try") 2>&5 10644 ac_status=$? 10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10646 (exit $ac_status); }; } && 10647 { ac_try='test -s conftest$ac_exeext' 10648 { (case "(($ac_try" in 10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10650 *) ac_try_echo=$ac_try;; 10651esac 10652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10653 (eval "$ac_try") 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; }; then 10657 ac_cv_lib_error_at_line=yes 10658else 10659 echo "$as_me: failed program was:" >&5 10660sed 's/^/| /' conftest.$ac_ext >&5 10661 10662 ac_cv_lib_error_at_line=no 10663fi 10664 10665rm -f core conftest.err conftest.$ac_objext \ 10666 conftest$ac_exeext conftest.$ac_ext 10667fi 10668{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 10669echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } 10670if test $ac_cv_lib_error_at_line = no; then 10671 case " $LIBOBJS " in 10672 *" error.$ac_objext "* ) ;; 10673 *) LIBOBJS="$LIBOBJS error.$ac_objext" 10674 ;; 10675esac 10676 10677fi 10678 10679 10680 10681 : 10682 10683 10684 10685 10686 case " $LIBOBJS " in 10687 *" exitfail.$ac_objext "* ) ;; 10688 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext" 10689 ;; 10690esac 10691 10692 10693 : 10694 10695 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. 10696 10697 10698 10699 FNMATCH_H= 10700 { echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5 10701echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6; } 10702if test "${ac_cv_func_fnmatch_gnu+set}" = set; then 10703 echo $ECHO_N "(cached) $ECHO_C" >&6 10704else 10705 if test "$cross_compiling" = yes; then 10706 ac_cv_func_fnmatch_gnu=cross 10707else 10708 cat >conftest.$ac_ext <<_ACEOF 10709/* confdefs.h. */ 10710_ACEOF 10711cat confdefs.h >>conftest.$ac_ext 10712cat >>conftest.$ac_ext <<_ACEOF 10713/* end confdefs.h. */ 10714 10715# include <stdlib.h> 10716# include <fnmatch.h> 10717# define y(a, b, c) (fnmatch (a, b, c) == 0) 10718# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 10719 static int 10720 fnm (char const *pattern, char const *string, int flags) 10721 { 10722 return fnmatch (pattern, string, flags); 10723 } 10724 10725int 10726main () 10727{ 10728exit 10729 (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH 10730 && y ("a*", "abc", 0) 10731 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 10732 && y ("a\\\\bc", "abc", 0) 10733 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 10734 && y ("*x", ".x", 0) 10735 && n ("*x", ".x", FNM_PERIOD) 10736 && y ("xxXX", "xXxX", FNM_CASEFOLD) 10737 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) 10738 && n ("d*/*1", "d/s/1", FNM_FILE_NAME) 10739 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) 10740 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) 10741 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))); 10742 ; 10743 return 0; 10744} 10745_ACEOF 10746rm -f conftest$ac_exeext 10747if { (ac_try="$ac_link" 10748case "(($ac_try" in 10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10750 *) ac_try_echo=$ac_try;; 10751esac 10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10753 (eval "$ac_link") 2>&5 10754 ac_status=$? 10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10757 { (case "(($ac_try" in 10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10759 *) ac_try_echo=$ac_try;; 10760esac 10761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10762 (eval "$ac_try") 2>&5 10763 ac_status=$? 10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10765 (exit $ac_status); }; }; then 10766 ac_cv_func_fnmatch_gnu=yes 10767else 10768 echo "$as_me: program exited with status $ac_status" >&5 10769echo "$as_me: failed program was:" >&5 10770sed 's/^/| /' conftest.$ac_ext >&5 10771 10772( exit $ac_status ) 10773ac_cv_func_fnmatch_gnu=no 10774fi 10775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10776fi 10777 10778 10779fi 10780{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5 10781echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6; } 10782if test $ac_cv_func_fnmatch_gnu = yes; then 10783 rm -f lib/fnmatch.h 10784else 10785 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5 10786echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; } 10787if test "${ac_cv_have_decl_getenv+set}" = set; then 10788 echo $ECHO_N "(cached) $ECHO_C" >&6 10789else 10790 cat >conftest.$ac_ext <<_ACEOF 10791/* confdefs.h. */ 10792_ACEOF 10793cat confdefs.h >>conftest.$ac_ext 10794cat >>conftest.$ac_ext <<_ACEOF 10795/* end confdefs.h. */ 10796$ac_includes_default 10797int 10798main () 10799{ 10800#ifndef getenv 10801 char *p = (char *) getenv; 10802 return !p; 10803#endif 10804 10805 ; 10806 return 0; 10807} 10808_ACEOF 10809rm -f conftest.$ac_objext 10810if { (ac_try="$ac_compile" 10811case "(($ac_try" in 10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10813 *) ac_try_echo=$ac_try;; 10814esac 10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10816 (eval "$ac_compile") 2>conftest.er1 10817 ac_status=$? 10818 grep -v '^ *+' conftest.er1 >conftest.err 10819 rm -f conftest.er1 10820 cat conftest.err >&5 10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10822 (exit $ac_status); } && 10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10824 { (case "(($ac_try" in 10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10826 *) ac_try_echo=$ac_try;; 10827esac 10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10829 (eval "$ac_try") 2>&5 10830 ac_status=$? 10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10832 (exit $ac_status); }; } && 10833 { ac_try='test -s conftest.$ac_objext' 10834 { (case "(($ac_try" in 10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10836 *) ac_try_echo=$ac_try;; 10837esac 10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10839 (eval "$ac_try") 2>&5 10840 ac_status=$? 10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10842 (exit $ac_status); }; }; then 10843 ac_cv_have_decl_getenv=yes 10844else 10845 echo "$as_me: failed program was:" >&5 10846sed 's/^/| /' conftest.$ac_ext >&5 10847 10848 ac_cv_have_decl_getenv=no 10849fi 10850 10851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10852fi 10853{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 10854echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; } 10855if test $ac_cv_have_decl_getenv = yes; then 10856 10857cat >>confdefs.h <<_ACEOF 10858#define HAVE_DECL_GETENV 1 10859_ACEOF 10860 10861 10862else 10863 cat >>confdefs.h <<_ACEOF 10864#define HAVE_DECL_GETENV 0 10865_ACEOF 10866 10867 10868fi 10869 10870 10871 10872 10873 10874 10875 10876 10877for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy 10878do 10879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10880{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10883 echo $ECHO_N "(cached) $ECHO_C" >&6 10884else 10885 cat >conftest.$ac_ext <<_ACEOF 10886/* confdefs.h. */ 10887_ACEOF 10888cat confdefs.h >>conftest.$ac_ext 10889cat >>conftest.$ac_ext <<_ACEOF 10890/* end confdefs.h. */ 10891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10892 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10893#define $ac_func innocuous_$ac_func 10894 10895/* System header to define __stub macros and hopefully few prototypes, 10896 which can conflict with char $ac_func (); below. 10897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10898 <limits.h> exists even on freestanding compilers. */ 10899 10900#ifdef __STDC__ 10901# include <limits.h> 10902#else 10903# include <assert.h> 10904#endif 10905 10906#undef $ac_func 10907 10908/* Override any GCC internal prototype to avoid an error. 10909 Use char because int might match the return type of a GCC 10910 builtin and then its argument prototype would still apply. */ 10911#ifdef __cplusplus 10912extern "C" 10913#endif 10914char $ac_func (); 10915/* The GNU C library defines this for functions which it implements 10916 to always fail with ENOSYS. Some functions are actually named 10917 something starting with __ and the normal name is an alias. */ 10918#if defined __stub_$ac_func || defined __stub___$ac_func 10919choke me 10920#endif 10921 10922int 10923main () 10924{ 10925return $ac_func (); 10926 ; 10927 return 0; 10928} 10929_ACEOF 10930rm -f conftest.$ac_objext conftest$ac_exeext 10931if { (ac_try="$ac_link" 10932case "(($ac_try" in 10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10934 *) ac_try_echo=$ac_try;; 10935esac 10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10937 (eval "$ac_link") 2>conftest.er1 10938 ac_status=$? 10939 grep -v '^ *+' conftest.er1 >conftest.err 10940 rm -f conftest.er1 10941 cat conftest.err >&5 10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10943 (exit $ac_status); } && 10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10945 { (case "(($ac_try" in 10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10947 *) ac_try_echo=$ac_try;; 10948esac 10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10950 (eval "$ac_try") 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); }; } && 10954 { ac_try='test -s conftest$ac_exeext' 10955 { (case "(($ac_try" in 10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10957 *) ac_try_echo=$ac_try;; 10958esac 10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10960 (eval "$ac_try") 2>&5 10961 ac_status=$? 10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10963 (exit $ac_status); }; }; then 10964 eval "$as_ac_var=yes" 10965else 10966 echo "$as_me: failed program was:" >&5 10967sed 's/^/| /' conftest.$ac_ext >&5 10968 10969 eval "$as_ac_var=no" 10970fi 10971 10972rm -f core conftest.err conftest.$ac_objext \ 10973 conftest$ac_exeext conftest.$ac_ext 10974fi 10975ac_res=`eval echo '${'$as_ac_var'}'` 10976 { echo "$as_me:$LINENO: result: $ac_res" >&5 10977echo "${ECHO_T}$ac_res" >&6; } 10978if test `eval echo '${'$as_ac_var'}'` = yes; then 10979 cat >>confdefs.h <<_ACEOF 10980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10981_ACEOF 10982 10983fi 10984done 10985 10986 10987 10988for ac_header in wchar.h wctype.h 10989do 10990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10992 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10995 echo $ECHO_N "(cached) $ECHO_C" >&6 10996fi 10997ac_res=`eval echo '${'$as_ac_Header'}'` 10998 { echo "$as_me:$LINENO: result: $ac_res" >&5 10999echo "${ECHO_T}$ac_res" >&6; } 11000else 11001 # Is the header compilable? 11002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11004cat >conftest.$ac_ext <<_ACEOF 11005/* confdefs.h. */ 11006_ACEOF 11007cat confdefs.h >>conftest.$ac_ext 11008cat >>conftest.$ac_ext <<_ACEOF 11009/* end confdefs.h. */ 11010$ac_includes_default 11011#include <$ac_header> 11012_ACEOF 11013rm -f conftest.$ac_objext 11014if { (ac_try="$ac_compile" 11015case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018esac 11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_compile") 2>conftest.er1 11021 ac_status=$? 11022 grep -v '^ *+' conftest.er1 >conftest.err 11023 rm -f conftest.er1 11024 cat conftest.err >&5 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); } && 11027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11028 { (case "(($ac_try" in 11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11030 *) ac_try_echo=$ac_try;; 11031esac 11032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11033 (eval "$ac_try") 2>&5 11034 ac_status=$? 11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 (exit $ac_status); }; } && 11037 { ac_try='test -s conftest.$ac_objext' 11038 { (case "(($ac_try" in 11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11040 *) ac_try_echo=$ac_try;; 11041esac 11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11043 (eval "$ac_try") 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; }; then 11047 ac_header_compiler=yes 11048else 11049 echo "$as_me: failed program was:" >&5 11050sed 's/^/| /' conftest.$ac_ext >&5 11051 11052 ac_header_compiler=no 11053fi 11054 11055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11057echo "${ECHO_T}$ac_header_compiler" >&6; } 11058 11059# Is the header present? 11060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11062cat >conftest.$ac_ext <<_ACEOF 11063/* confdefs.h. */ 11064_ACEOF 11065cat confdefs.h >>conftest.$ac_ext 11066cat >>conftest.$ac_ext <<_ACEOF 11067/* end confdefs.h. */ 11068#include <$ac_header> 11069_ACEOF 11070if { (ac_try="$ac_cpp conftest.$ac_ext" 11071case "(($ac_try" in 11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11073 *) ac_try_echo=$ac_try;; 11074esac 11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11077 ac_status=$? 11078 grep -v '^ *+' conftest.er1 >conftest.err 11079 rm -f conftest.er1 11080 cat conftest.err >&5 11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11082 (exit $ac_status); } >/dev/null; then 11083 if test -s conftest.err; then 11084 ac_cpp_err=$ac_c_preproc_warn_flag 11085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11086 else 11087 ac_cpp_err= 11088 fi 11089else 11090 ac_cpp_err=yes 11091fi 11092if test -z "$ac_cpp_err"; then 11093 ac_header_preproc=yes 11094else 11095 echo "$as_me: failed program was:" >&5 11096sed 's/^/| /' conftest.$ac_ext >&5 11097 11098 ac_header_preproc=no 11099fi 11100 11101rm -f conftest.err conftest.$ac_ext 11102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11103echo "${ECHO_T}$ac_header_preproc" >&6; } 11104 11105# So? What about this header? 11106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11107 yes:no: ) 11108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11112 ac_header_preproc=yes 11113 ;; 11114 no:yes:* ) 11115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11127 ( cat <<\_ASBOX 11128## ---------------------------------------- ## 11129## Report this to vladch@k804.mainet.msk.su ## 11130## ---------------------------------------- ## 11131_ASBOX 11132 ) | sed "s/^/$as_me: WARNING: /" >&2 11133 ;; 11134esac 11135{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11138 echo $ECHO_N "(cached) $ECHO_C" >&6 11139else 11140 eval "$as_ac_Header=\$ac_header_preproc" 11141fi 11142ac_res=`eval echo '${'$as_ac_Header'}'` 11143 { echo "$as_me:$LINENO: result: $ac_res" >&5 11144echo "${ECHO_T}$ac_res" >&6; } 11145 11146fi 11147if test `eval echo '${'$as_ac_Header'}'` = yes; then 11148 cat >>confdefs.h <<_ACEOF 11149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11150_ACEOF 11151 11152fi 11153 11154done 11155 11156case " $LIBOBJS " in 11157 *" fnmatch.$ac_objext "* ) ;; 11158 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 11159 ;; 11160esac 11161 11162FNMATCH_H=fnmatch.h 11163 11164fi 11165 11166 11167 if test $ac_cv_func_fnmatch_gnu != yes; then 11168 11169cat >>confdefs.h <<\_ACEOF 11170#define fnmatch gnu_fnmatch 11171_ACEOF 11172 11173 fi 11174 11175 11176 11177 { echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5 11178echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6; } 11179if test "${gl_cv_func_free+set}" = set; then 11180 echo $ECHO_N "(cached) $ECHO_C" >&6 11181else 11182 cat >conftest.$ac_ext <<_ACEOF 11183/* confdefs.h. */ 11184_ACEOF 11185cat confdefs.h >>conftest.$ac_ext 11186cat >>conftest.$ac_ext <<_ACEOF 11187/* end confdefs.h. */ 11188#include <unistd.h> 11189int 11190main () 11191{ 11192#if _POSIX_VERSION < 199009L && \ 11193 (defined unix || defined _unix || defined _unix_ \ 11194 || defined __unix || defined __unix__) 11195 #error "'free (NULL)' is not known to work" 11196 #endif 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201rm -f conftest.$ac_objext 11202if { (ac_try="$ac_compile" 11203case "(($ac_try" in 11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11205 *) ac_try_echo=$ac_try;; 11206esac 11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11208 (eval "$ac_compile") 2>conftest.er1 11209 ac_status=$? 11210 grep -v '^ *+' conftest.er1 >conftest.err 11211 rm -f conftest.er1 11212 cat conftest.err >&5 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11214 (exit $ac_status); } && 11215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11216 { (case "(($ac_try" in 11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11218 *) ac_try_echo=$ac_try;; 11219esac 11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11221 (eval "$ac_try") 2>&5 11222 ac_status=$? 11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11224 (exit $ac_status); }; } && 11225 { ac_try='test -s conftest.$ac_objext' 11226 { (case "(($ac_try" in 11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11228 *) ac_try_echo=$ac_try;; 11229esac 11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11231 (eval "$ac_try") 2>&5 11232 ac_status=$? 11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11234 (exit $ac_status); }; }; then 11235 gl_cv_func_free=yes 11236else 11237 echo "$as_me: failed program was:" >&5 11238sed 's/^/| /' conftest.$ac_ext >&5 11239 11240 gl_cv_func_free=no 11241fi 11242 11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11244fi 11245{ echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5 11246echo "${ECHO_T}$gl_cv_func_free" >&6; } 11247 11248 if test $gl_cv_func_free = no; then 11249 case " $LIBOBJS " in 11250 *" free.$ac_objext "* ) ;; 11251 *) LIBOBJS="$LIBOBJS free.$ac_objext" 11252 ;; 11253esac 11254 11255 11256cat >>confdefs.h <<\_ACEOF 11257#define free rpl_free 11258_ACEOF 11259 11260 fi 11261 11262 11263 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 11264echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; } 11265if test "${ac_cv_search_getaddrinfo+set}" = set; then 11266 echo $ECHO_N "(cached) $ECHO_C" >&6 11267else 11268 ac_func_search_save_LIBS=$LIBS 11269cat >conftest.$ac_ext <<_ACEOF 11270/* confdefs.h. */ 11271_ACEOF 11272cat confdefs.h >>conftest.$ac_ext 11273cat >>conftest.$ac_ext <<_ACEOF 11274/* end confdefs.h. */ 11275 11276/* Override any GCC internal prototype to avoid an error. 11277 Use char because int might match the return type of a GCC 11278 builtin and then its argument prototype would still apply. */ 11279#ifdef __cplusplus 11280extern "C" 11281#endif 11282char getaddrinfo (); 11283int 11284main () 11285{ 11286return getaddrinfo (); 11287 ; 11288 return 0; 11289} 11290_ACEOF 11291for ac_lib in '' nsl socket; do 11292 if test -z "$ac_lib"; then 11293 ac_res="none required" 11294 else 11295 ac_res=-l$ac_lib 11296 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11297 fi 11298 rm -f conftest.$ac_objext conftest$ac_exeext 11299if { (ac_try="$ac_link" 11300case "(($ac_try" in 11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11302 *) ac_try_echo=$ac_try;; 11303esac 11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11305 (eval "$ac_link") 2>conftest.er1 11306 ac_status=$? 11307 grep -v '^ *+' conftest.er1 >conftest.err 11308 rm -f conftest.er1 11309 cat conftest.err >&5 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); } && 11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11313 { (case "(($ac_try" in 11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11315 *) ac_try_echo=$ac_try;; 11316esac 11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11318 (eval "$ac_try") 2>&5 11319 ac_status=$? 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 (exit $ac_status); }; } && 11322 { ac_try='test -s conftest$ac_exeext' 11323 { (case "(($ac_try" in 11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11325 *) ac_try_echo=$ac_try;; 11326esac 11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11328 (eval "$ac_try") 2>&5 11329 ac_status=$? 11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 (exit $ac_status); }; }; then 11332 ac_cv_search_getaddrinfo=$ac_res 11333else 11334 echo "$as_me: failed program was:" >&5 11335sed 's/^/| /' conftest.$ac_ext >&5 11336 11337 11338fi 11339 11340rm -f core conftest.err conftest.$ac_objext \ 11341 conftest$ac_exeext 11342 if test "${ac_cv_search_getaddrinfo+set}" = set; then 11343 break 11344fi 11345done 11346if test "${ac_cv_search_getaddrinfo+set}" = set; then 11347 : 11348else 11349 ac_cv_search_getaddrinfo=no 11350fi 11351rm conftest.$ac_ext 11352LIBS=$ac_func_search_save_LIBS 11353fi 11354{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 11355echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; } 11356ac_res=$ac_cv_search_getaddrinfo 11357if test "$ac_res" != no; then 11358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11359 11360fi 11361 11362 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 11363echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 11364if test "${ac_cv_search_gethostbyname+set}" = set; then 11365 echo $ECHO_N "(cached) $ECHO_C" >&6 11366else 11367 ac_func_search_save_LIBS=$LIBS 11368cat >conftest.$ac_ext <<_ACEOF 11369/* confdefs.h. */ 11370_ACEOF 11371cat confdefs.h >>conftest.$ac_ext 11372cat >>conftest.$ac_ext <<_ACEOF 11373/* end confdefs.h. */ 11374 11375/* Override any GCC internal prototype to avoid an error. 11376 Use char because int might match the return type of a GCC 11377 builtin and then its argument prototype would still apply. */ 11378#ifdef __cplusplus 11379extern "C" 11380#endif 11381char gethostbyname (); 11382int 11383main () 11384{ 11385return gethostbyname (); 11386 ; 11387 return 0; 11388} 11389_ACEOF 11390for ac_lib in '' inet nsl; do 11391 if test -z "$ac_lib"; then 11392 ac_res="none required" 11393 else 11394 ac_res=-l$ac_lib 11395 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11396 fi 11397 rm -f conftest.$ac_objext conftest$ac_exeext 11398if { (ac_try="$ac_link" 11399case "(($ac_try" in 11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11401 *) ac_try_echo=$ac_try;; 11402esac 11403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11404 (eval "$ac_link") 2>conftest.er1 11405 ac_status=$? 11406 grep -v '^ *+' conftest.er1 >conftest.err 11407 rm -f conftest.er1 11408 cat conftest.err >&5 11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11410 (exit $ac_status); } && 11411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11412 { (case "(($ac_try" in 11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11414 *) ac_try_echo=$ac_try;; 11415esac 11416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11417 (eval "$ac_try") 2>&5 11418 ac_status=$? 11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11420 (exit $ac_status); }; } && 11421 { ac_try='test -s conftest$ac_exeext' 11422 { (case "(($ac_try" in 11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11424 *) ac_try_echo=$ac_try;; 11425esac 11426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11427 (eval "$ac_try") 2>&5 11428 ac_status=$? 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11430 (exit $ac_status); }; }; then 11431 ac_cv_search_gethostbyname=$ac_res 11432else 11433 echo "$as_me: failed program was:" >&5 11434sed 's/^/| /' conftest.$ac_ext >&5 11435 11436 11437fi 11438 11439rm -f core conftest.err conftest.$ac_objext \ 11440 conftest$ac_exeext 11441 if test "${ac_cv_search_gethostbyname+set}" = set; then 11442 break 11443fi 11444done 11445if test "${ac_cv_search_gethostbyname+set}" = set; then 11446 : 11447else 11448 ac_cv_search_gethostbyname=no 11449fi 11450rm conftest.$ac_ext 11451LIBS=$ac_func_search_save_LIBS 11452fi 11453{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 11454echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 11455ac_res=$ac_cv_search_gethostbyname 11456if test "$ac_res" != no; then 11457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11458 11459fi 11460 11461 { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5 11462echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; } 11463if test "${ac_cv_search_getservbyname+set}" = set; then 11464 echo $ECHO_N "(cached) $ECHO_C" >&6 11465else 11466 ac_func_search_save_LIBS=$LIBS 11467cat >conftest.$ac_ext <<_ACEOF 11468/* confdefs.h. */ 11469_ACEOF 11470cat confdefs.h >>conftest.$ac_ext 11471cat >>conftest.$ac_ext <<_ACEOF 11472/* end confdefs.h. */ 11473 11474/* Override any GCC internal prototype to avoid an error. 11475 Use char because int might match the return type of a GCC 11476 builtin and then its argument prototype would still apply. */ 11477#ifdef __cplusplus 11478extern "C" 11479#endif 11480char getservbyname (); 11481int 11482main () 11483{ 11484return getservbyname (); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489for ac_lib in '' inet nsl socket xnet; do 11490 if test -z "$ac_lib"; then 11491 ac_res="none required" 11492 else 11493 ac_res=-l$ac_lib 11494 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11495 fi 11496 rm -f conftest.$ac_objext conftest$ac_exeext 11497if { (ac_try="$ac_link" 11498case "(($ac_try" in 11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11500 *) ac_try_echo=$ac_try;; 11501esac 11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11503 (eval "$ac_link") 2>conftest.er1 11504 ac_status=$? 11505 grep -v '^ *+' conftest.er1 >conftest.err 11506 rm -f conftest.er1 11507 cat conftest.err >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11509 (exit $ac_status); } && 11510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11511 { (case "(($ac_try" in 11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11513 *) ac_try_echo=$ac_try;; 11514esac 11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11516 (eval "$ac_try") 2>&5 11517 ac_status=$? 11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11519 (exit $ac_status); }; } && 11520 { ac_try='test -s conftest$ac_exeext' 11521 { (case "(($ac_try" in 11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11523 *) ac_try_echo=$ac_try;; 11524esac 11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11526 (eval "$ac_try") 2>&5 11527 ac_status=$? 11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11529 (exit $ac_status); }; }; then 11530 ac_cv_search_getservbyname=$ac_res 11531else 11532 echo "$as_me: failed program was:" >&5 11533sed 's/^/| /' conftest.$ac_ext >&5 11534 11535 11536fi 11537 11538rm -f core conftest.err conftest.$ac_objext \ 11539 conftest$ac_exeext 11540 if test "${ac_cv_search_getservbyname+set}" = set; then 11541 break 11542fi 11543done 11544if test "${ac_cv_search_getservbyname+set}" = set; then 11545 : 11546else 11547 ac_cv_search_getservbyname=no 11548fi 11549rm conftest.$ac_ext 11550LIBS=$ac_func_search_save_LIBS 11551fi 11552{ echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5 11553echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; } 11554ac_res=$ac_cv_search_getservbyname 11555if test "$ac_res" != no; then 11556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11557 11558fi 11559 11560 11561 11562for ac_func in getaddrinfo gai_strerror 11563do 11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11568 echo $ECHO_N "(cached) $ECHO_C" >&6 11569else 11570 cat >conftest.$ac_ext <<_ACEOF 11571/* confdefs.h. */ 11572_ACEOF 11573cat confdefs.h >>conftest.$ac_ext 11574cat >>conftest.$ac_ext <<_ACEOF 11575/* end confdefs.h. */ 11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11578#define $ac_func innocuous_$ac_func 11579 11580/* System header to define __stub macros and hopefully few prototypes, 11581 which can conflict with char $ac_func (); below. 11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11583 <limits.h> exists even on freestanding compilers. */ 11584 11585#ifdef __STDC__ 11586# include <limits.h> 11587#else 11588# include <assert.h> 11589#endif 11590 11591#undef $ac_func 11592 11593/* Override any GCC internal prototype to avoid an error. 11594 Use char because int might match the return type of a GCC 11595 builtin and then its argument prototype would still apply. */ 11596#ifdef __cplusplus 11597extern "C" 11598#endif 11599char $ac_func (); 11600/* The GNU C library defines this for functions which it implements 11601 to always fail with ENOSYS. Some functions are actually named 11602 something starting with __ and the normal name is an alias. */ 11603#if defined __stub_$ac_func || defined __stub___$ac_func 11604choke me 11605#endif 11606 11607int 11608main () 11609{ 11610return $ac_func (); 11611 ; 11612 return 0; 11613} 11614_ACEOF 11615rm -f conftest.$ac_objext conftest$ac_exeext 11616if { (ac_try="$ac_link" 11617case "(($ac_try" in 11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11619 *) ac_try_echo=$ac_try;; 11620esac 11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11622 (eval "$ac_link") 2>conftest.er1 11623 ac_status=$? 11624 grep -v '^ *+' conftest.er1 >conftest.err 11625 rm -f conftest.er1 11626 cat conftest.err >&5 11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11628 (exit $ac_status); } && 11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11630 { (case "(($ac_try" in 11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11632 *) ac_try_echo=$ac_try;; 11633esac 11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11635 (eval "$ac_try") 2>&5 11636 ac_status=$? 11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); }; } && 11639 { ac_try='test -s conftest$ac_exeext' 11640 { (case "(($ac_try" in 11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11642 *) ac_try_echo=$ac_try;; 11643esac 11644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11645 (eval "$ac_try") 2>&5 11646 ac_status=$? 11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11648 (exit $ac_status); }; }; then 11649 eval "$as_ac_var=yes" 11650else 11651 echo "$as_me: failed program was:" >&5 11652sed 's/^/| /' conftest.$ac_ext >&5 11653 11654 eval "$as_ac_var=no" 11655fi 11656 11657rm -f core conftest.err conftest.$ac_objext \ 11658 conftest$ac_exeext conftest.$ac_ext 11659fi 11660ac_res=`eval echo '${'$as_ac_var'}'` 11661 { echo "$as_me:$LINENO: result: $ac_res" >&5 11662echo "${ECHO_T}$ac_res" >&6; } 11663if test `eval echo '${'$as_ac_var'}'` = yes; then 11664 cat >>confdefs.h <<_ACEOF 11665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11666_ACEOF 11667 11668else 11669 case " $LIBOBJS " in 11670 *" $ac_func.$ac_objext "* ) ;; 11671 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11672 ;; 11673esac 11674 11675fi 11676done 11677 11678 11679 11680 11681 11682 11683 11684 11685 : 11686 11687 11688 11689 11690 11691 { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5 11692echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; } 11693if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then 11694 echo $ECHO_N "(cached) $ECHO_C" >&6 11695else 11696 cat >conftest.$ac_ext <<_ACEOF 11697/* confdefs.h. */ 11698_ACEOF 11699cat confdefs.h >>conftest.$ac_ext 11700cat >>conftest.$ac_ext <<_ACEOF 11701/* end confdefs.h. */ 11702 11703 /* sys/types.h is not needed according to POSIX, but the 11704 sys/socket.h in i386-unknown-freebsd4.10 and 11705 powerpc-apple-darwin5.5 required it. */ 11706#include <sys/types.h> 11707#include <sys/socket.h> 11708#include <netdb.h> 11709 11710 11711int 11712main () 11713{ 11714#ifndef getaddrinfo 11715 char *p = (char *) getaddrinfo; 11716 return !p; 11717#endif 11718 11719 ; 11720 return 0; 11721} 11722_ACEOF 11723rm -f conftest.$ac_objext 11724if { (ac_try="$ac_compile" 11725case "(($ac_try" in 11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11727 *) ac_try_echo=$ac_try;; 11728esac 11729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11730 (eval "$ac_compile") 2>conftest.er1 11731 ac_status=$? 11732 grep -v '^ *+' conftest.er1 >conftest.err 11733 rm -f conftest.er1 11734 cat conftest.err >&5 11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11736 (exit $ac_status); } && 11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11738 { (case "(($ac_try" in 11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11740 *) ac_try_echo=$ac_try;; 11741esac 11742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11743 (eval "$ac_try") 2>&5 11744 ac_status=$? 11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11746 (exit $ac_status); }; } && 11747 { ac_try='test -s conftest.$ac_objext' 11748 { (case "(($ac_try" in 11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11750 *) ac_try_echo=$ac_try;; 11751esac 11752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11753 (eval "$ac_try") 2>&5 11754 ac_status=$? 11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11756 (exit $ac_status); }; }; then 11757 ac_cv_have_decl_getaddrinfo=yes 11758else 11759 echo "$as_me: failed program was:" >&5 11760sed 's/^/| /' conftest.$ac_ext >&5 11761 11762 ac_cv_have_decl_getaddrinfo=no 11763fi 11764 11765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11766fi 11767{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5 11768echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; } 11769if test $ac_cv_have_decl_getaddrinfo = yes; then 11770 11771cat >>confdefs.h <<_ACEOF 11772#define HAVE_DECL_GETADDRINFO 1 11773_ACEOF 11774 11775 11776else 11777 cat >>confdefs.h <<_ACEOF 11778#define HAVE_DECL_GETADDRINFO 0 11779_ACEOF 11780 11781 11782fi 11783{ echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5 11784echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; } 11785if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then 11786 echo $ECHO_N "(cached) $ECHO_C" >&6 11787else 11788 cat >conftest.$ac_ext <<_ACEOF 11789/* confdefs.h. */ 11790_ACEOF 11791cat confdefs.h >>conftest.$ac_ext 11792cat >>conftest.$ac_ext <<_ACEOF 11793/* end confdefs.h. */ 11794 11795 /* sys/types.h is not needed according to POSIX, but the 11796 sys/socket.h in i386-unknown-freebsd4.10 and 11797 powerpc-apple-darwin5.5 required it. */ 11798#include <sys/types.h> 11799#include <sys/socket.h> 11800#include <netdb.h> 11801 11802 11803int 11804main () 11805{ 11806#ifndef freeaddrinfo 11807 char *p = (char *) freeaddrinfo; 11808 return !p; 11809#endif 11810 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815rm -f conftest.$ac_objext 11816if { (ac_try="$ac_compile" 11817case "(($ac_try" in 11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11819 *) ac_try_echo=$ac_try;; 11820esac 11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11822 (eval "$ac_compile") 2>conftest.er1 11823 ac_status=$? 11824 grep -v '^ *+' conftest.er1 >conftest.err 11825 rm -f conftest.er1 11826 cat conftest.err >&5 11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11828 (exit $ac_status); } && 11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11830 { (case "(($ac_try" in 11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11832 *) ac_try_echo=$ac_try;; 11833esac 11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11835 (eval "$ac_try") 2>&5 11836 ac_status=$? 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 (exit $ac_status); }; } && 11839 { ac_try='test -s conftest.$ac_objext' 11840 { (case "(($ac_try" in 11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11842 *) ac_try_echo=$ac_try;; 11843esac 11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11845 (eval "$ac_try") 2>&5 11846 ac_status=$? 11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11848 (exit $ac_status); }; }; then 11849 ac_cv_have_decl_freeaddrinfo=yes 11850else 11851 echo "$as_me: failed program was:" >&5 11852sed 's/^/| /' conftest.$ac_ext >&5 11853 11854 ac_cv_have_decl_freeaddrinfo=no 11855fi 11856 11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11858fi 11859{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5 11860echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; } 11861if test $ac_cv_have_decl_freeaddrinfo = yes; then 11862 11863cat >>confdefs.h <<_ACEOF 11864#define HAVE_DECL_FREEADDRINFO 1 11865_ACEOF 11866 11867 11868else 11869 cat >>confdefs.h <<_ACEOF 11870#define HAVE_DECL_FREEADDRINFO 0 11871_ACEOF 11872 11873 11874fi 11875{ echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5 11876echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; } 11877if test "${ac_cv_have_decl_gai_strerror+set}" = set; then 11878 echo $ECHO_N "(cached) $ECHO_C" >&6 11879else 11880 cat >conftest.$ac_ext <<_ACEOF 11881/* confdefs.h. */ 11882_ACEOF 11883cat confdefs.h >>conftest.$ac_ext 11884cat >>conftest.$ac_ext <<_ACEOF 11885/* end confdefs.h. */ 11886 11887 /* sys/types.h is not needed according to POSIX, but the 11888 sys/socket.h in i386-unknown-freebsd4.10 and 11889 powerpc-apple-darwin5.5 required it. */ 11890#include <sys/types.h> 11891#include <sys/socket.h> 11892#include <netdb.h> 11893 11894 11895int 11896main () 11897{ 11898#ifndef gai_strerror 11899 char *p = (char *) gai_strerror; 11900 return !p; 11901#endif 11902 11903 ; 11904 return 0; 11905} 11906_ACEOF 11907rm -f conftest.$ac_objext 11908if { (ac_try="$ac_compile" 11909case "(($ac_try" in 11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11911 *) ac_try_echo=$ac_try;; 11912esac 11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11914 (eval "$ac_compile") 2>conftest.er1 11915 ac_status=$? 11916 grep -v '^ *+' conftest.er1 >conftest.err 11917 rm -f conftest.er1 11918 cat conftest.err >&5 11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11920 (exit $ac_status); } && 11921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11922 { (case "(($ac_try" in 11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11924 *) ac_try_echo=$ac_try;; 11925esac 11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11927 (eval "$ac_try") 2>&5 11928 ac_status=$? 11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11930 (exit $ac_status); }; } && 11931 { ac_try='test -s conftest.$ac_objext' 11932 { (case "(($ac_try" in 11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11934 *) ac_try_echo=$ac_try;; 11935esac 11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11937 (eval "$ac_try") 2>&5 11938 ac_status=$? 11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11940 (exit $ac_status); }; }; then 11941 ac_cv_have_decl_gai_strerror=yes 11942else 11943 echo "$as_me: failed program was:" >&5 11944sed 's/^/| /' conftest.$ac_ext >&5 11945 11946 ac_cv_have_decl_gai_strerror=no 11947fi 11948 11949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11950fi 11951{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5 11952echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; } 11953if test $ac_cv_have_decl_gai_strerror = yes; then 11954 11955cat >>confdefs.h <<_ACEOF 11956#define HAVE_DECL_GAI_STRERROR 1 11957_ACEOF 11958 11959 11960else 11961 cat >>confdefs.h <<_ACEOF 11962#define HAVE_DECL_GAI_STRERROR 0 11963_ACEOF 11964 11965 11966fi 11967 11968 11969 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 11970echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 11971if test "${ac_cv_type_struct_addrinfo+set}" = set; then 11972 echo $ECHO_N "(cached) $ECHO_C" >&6 11973else 11974 cat >conftest.$ac_ext <<_ACEOF 11975/* confdefs.h. */ 11976_ACEOF 11977cat confdefs.h >>conftest.$ac_ext 11978cat >>conftest.$ac_ext <<_ACEOF 11979/* end confdefs.h. */ 11980 11981#include <sys/types.h> 11982#include <sys/socket.h> 11983#include <netdb.h> 11984 11985 11986typedef struct addrinfo ac__type_new_; 11987int 11988main () 11989{ 11990if ((ac__type_new_ *) 0) 11991 return 0; 11992if (sizeof (ac__type_new_)) 11993 return 0; 11994 ; 11995 return 0; 11996} 11997_ACEOF 11998rm -f conftest.$ac_objext 11999if { (ac_try="$ac_compile" 12000case "(($ac_try" in 12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12002 *) ac_try_echo=$ac_try;; 12003esac 12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12005 (eval "$ac_compile") 2>conftest.er1 12006 ac_status=$? 12007 grep -v '^ *+' conftest.er1 >conftest.err 12008 rm -f conftest.er1 12009 cat conftest.err >&5 12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12011 (exit $ac_status); } && 12012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12013 { (case "(($ac_try" in 12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12015 *) ac_try_echo=$ac_try;; 12016esac 12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12018 (eval "$ac_try") 2>&5 12019 ac_status=$? 12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); }; } && 12022 { ac_try='test -s conftest.$ac_objext' 12023 { (case "(($ac_try" in 12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12025 *) ac_try_echo=$ac_try;; 12026esac 12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12028 (eval "$ac_try") 2>&5 12029 ac_status=$? 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); }; }; then 12032 ac_cv_type_struct_addrinfo=yes 12033else 12034 echo "$as_me: failed program was:" >&5 12035sed 's/^/| /' conftest.$ac_ext >&5 12036 12037 ac_cv_type_struct_addrinfo=no 12038fi 12039 12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12041fi 12042{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 12043echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; } 12044if test $ac_cv_type_struct_addrinfo = yes; then 12045 12046cat >>confdefs.h <<_ACEOF 12047#define HAVE_STRUCT_ADDRINFO 1 12048_ACEOF 12049 12050 12051fi 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061for ac_func in getdelim 12062do 12063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12064{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12067 echo $ECHO_N "(cached) $ECHO_C" >&6 12068else 12069 cat >conftest.$ac_ext <<_ACEOF 12070/* confdefs.h. */ 12071_ACEOF 12072cat confdefs.h >>conftest.$ac_ext 12073cat >>conftest.$ac_ext <<_ACEOF 12074/* end confdefs.h. */ 12075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12076 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12077#define $ac_func innocuous_$ac_func 12078 12079/* System header to define __stub macros and hopefully few prototypes, 12080 which can conflict with char $ac_func (); below. 12081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12082 <limits.h> exists even on freestanding compilers. */ 12083 12084#ifdef __STDC__ 12085# include <limits.h> 12086#else 12087# include <assert.h> 12088#endif 12089 12090#undef $ac_func 12091 12092/* Override any GCC internal prototype to avoid an error. 12093 Use char because int might match the return type of a GCC 12094 builtin and then its argument prototype would still apply. */ 12095#ifdef __cplusplus 12096extern "C" 12097#endif 12098char $ac_func (); 12099/* The GNU C library defines this for functions which it implements 12100 to always fail with ENOSYS. Some functions are actually named 12101 something starting with __ and the normal name is an alias. */ 12102#if defined __stub_$ac_func || defined __stub___$ac_func 12103choke me 12104#endif 12105 12106int 12107main () 12108{ 12109return $ac_func (); 12110 ; 12111 return 0; 12112} 12113_ACEOF 12114rm -f conftest.$ac_objext conftest$ac_exeext 12115if { (ac_try="$ac_link" 12116case "(($ac_try" in 12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12118 *) ac_try_echo=$ac_try;; 12119esac 12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12121 (eval "$ac_link") 2>conftest.er1 12122 ac_status=$? 12123 grep -v '^ *+' conftest.er1 >conftest.err 12124 rm -f conftest.er1 12125 cat conftest.err >&5 12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12127 (exit $ac_status); } && 12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12129 { (case "(($ac_try" in 12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12131 *) ac_try_echo=$ac_try;; 12132esac 12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12134 (eval "$ac_try") 2>&5 12135 ac_status=$? 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); }; } && 12138 { ac_try='test -s conftest$ac_exeext' 12139 { (case "(($ac_try" in 12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12141 *) ac_try_echo=$ac_try;; 12142esac 12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12144 (eval "$ac_try") 2>&5 12145 ac_status=$? 12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12147 (exit $ac_status); }; }; then 12148 eval "$as_ac_var=yes" 12149else 12150 echo "$as_me: failed program was:" >&5 12151sed 's/^/| /' conftest.$ac_ext >&5 12152 12153 eval "$as_ac_var=no" 12154fi 12155 12156rm -f core conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158fi 12159ac_res=`eval echo '${'$as_ac_var'}'` 12160 { echo "$as_me:$LINENO: result: $ac_res" >&5 12161echo "${ECHO_T}$ac_res" >&6; } 12162if test `eval echo '${'$as_ac_var'}'` = yes; then 12163 cat >>confdefs.h <<_ACEOF 12164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12165_ACEOF 12166 12167else 12168 case " $LIBOBJS " in 12169 *" $ac_func.$ac_objext "* ) ;; 12170 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12171 ;; 12172esac 12173 12174fi 12175done 12176 12177 12178 12179 : 12180 12181 12182 12183 12184 12185 12186 if test $ac_cv_func_getdelim = no; then 12187 12188 12189 12190for ac_func in flockfile funlockfile 12191do 12192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12193{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12196 echo $ECHO_N "(cached) $ECHO_C" >&6 12197else 12198 cat >conftest.$ac_ext <<_ACEOF 12199/* confdefs.h. */ 12200_ACEOF 12201cat confdefs.h >>conftest.$ac_ext 12202cat >>conftest.$ac_ext <<_ACEOF 12203/* end confdefs.h. */ 12204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12206#define $ac_func innocuous_$ac_func 12207 12208/* System header to define __stub macros and hopefully few prototypes, 12209 which can conflict with char $ac_func (); below. 12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12211 <limits.h> exists even on freestanding compilers. */ 12212 12213#ifdef __STDC__ 12214# include <limits.h> 12215#else 12216# include <assert.h> 12217#endif 12218 12219#undef $ac_func 12220 12221/* Override any GCC internal prototype to avoid an error. 12222 Use char because int might match the return type of a GCC 12223 builtin and then its argument prototype would still apply. */ 12224#ifdef __cplusplus 12225extern "C" 12226#endif 12227char $ac_func (); 12228/* The GNU C library defines this for functions which it implements 12229 to always fail with ENOSYS. Some functions are actually named 12230 something starting with __ and the normal name is an alias. */ 12231#if defined __stub_$ac_func || defined __stub___$ac_func 12232choke me 12233#endif 12234 12235int 12236main () 12237{ 12238return $ac_func (); 12239 ; 12240 return 0; 12241} 12242_ACEOF 12243rm -f conftest.$ac_objext conftest$ac_exeext 12244if { (ac_try="$ac_link" 12245case "(($ac_try" in 12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12247 *) ac_try_echo=$ac_try;; 12248esac 12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12250 (eval "$ac_link") 2>conftest.er1 12251 ac_status=$? 12252 grep -v '^ *+' conftest.er1 >conftest.err 12253 rm -f conftest.er1 12254 cat conftest.err >&5 12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12256 (exit $ac_status); } && 12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12258 { (case "(($ac_try" in 12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12260 *) ac_try_echo=$ac_try;; 12261esac 12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12263 (eval "$ac_try") 2>&5 12264 ac_status=$? 12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12266 (exit $ac_status); }; } && 12267 { ac_try='test -s conftest$ac_exeext' 12268 { (case "(($ac_try" in 12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12270 *) ac_try_echo=$ac_try;; 12271esac 12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12273 (eval "$ac_try") 2>&5 12274 ac_status=$? 12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12276 (exit $ac_status); }; }; then 12277 eval "$as_ac_var=yes" 12278else 12279 echo "$as_me: failed program was:" >&5 12280sed 's/^/| /' conftest.$ac_ext >&5 12281 12282 eval "$as_ac_var=no" 12283fi 12284 12285rm -f core conftest.err conftest.$ac_objext \ 12286 conftest$ac_exeext conftest.$ac_ext 12287fi 12288ac_res=`eval echo '${'$as_ac_var'}'` 12289 { echo "$as_me:$LINENO: result: $ac_res" >&5 12290echo "${ECHO_T}$ac_res" >&6; } 12291if test `eval echo '${'$as_ac_var'}'` = yes; then 12292 cat >>confdefs.h <<_ACEOF 12293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12294_ACEOF 12295 12296fi 12297done 12298 12299 12300 fi 12301 12302 12303 12304for ac_func in gethostname 12305do 12306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12307{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12309if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12310 echo $ECHO_N "(cached) $ECHO_C" >&6 12311else 12312 cat >conftest.$ac_ext <<_ACEOF 12313/* confdefs.h. */ 12314_ACEOF 12315cat confdefs.h >>conftest.$ac_ext 12316cat >>conftest.$ac_ext <<_ACEOF 12317/* end confdefs.h. */ 12318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12319 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12320#define $ac_func innocuous_$ac_func 12321 12322/* System header to define __stub macros and hopefully few prototypes, 12323 which can conflict with char $ac_func (); below. 12324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12325 <limits.h> exists even on freestanding compilers. */ 12326 12327#ifdef __STDC__ 12328# include <limits.h> 12329#else 12330# include <assert.h> 12331#endif 12332 12333#undef $ac_func 12334 12335/* Override any GCC internal prototype to avoid an error. 12336 Use char because int might match the return type of a GCC 12337 builtin and then its argument prototype would still apply. */ 12338#ifdef __cplusplus 12339extern "C" 12340#endif 12341char $ac_func (); 12342/* The GNU C library defines this for functions which it implements 12343 to always fail with ENOSYS. Some functions are actually named 12344 something starting with __ and the normal name is an alias. */ 12345#if defined __stub_$ac_func || defined __stub___$ac_func 12346choke me 12347#endif 12348 12349int 12350main () 12351{ 12352return $ac_func (); 12353 ; 12354 return 0; 12355} 12356_ACEOF 12357rm -f conftest.$ac_objext conftest$ac_exeext 12358if { (ac_try="$ac_link" 12359case "(($ac_try" in 12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12361 *) ac_try_echo=$ac_try;; 12362esac 12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12364 (eval "$ac_link") 2>conftest.er1 12365 ac_status=$? 12366 grep -v '^ *+' conftest.er1 >conftest.err 12367 rm -f conftest.er1 12368 cat conftest.err >&5 12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12370 (exit $ac_status); } && 12371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12372 { (case "(($ac_try" in 12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12374 *) ac_try_echo=$ac_try;; 12375esac 12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12377 (eval "$ac_try") 2>&5 12378 ac_status=$? 12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12380 (exit $ac_status); }; } && 12381 { ac_try='test -s conftest$ac_exeext' 12382 { (case "(($ac_try" in 12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12384 *) ac_try_echo=$ac_try;; 12385esac 12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12387 (eval "$ac_try") 2>&5 12388 ac_status=$? 12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12390 (exit $ac_status); }; }; then 12391 eval "$as_ac_var=yes" 12392else 12393 echo "$as_me: failed program was:" >&5 12394sed 's/^/| /' conftest.$ac_ext >&5 12395 12396 eval "$as_ac_var=no" 12397fi 12398 12399rm -f core conftest.err conftest.$ac_objext \ 12400 conftest$ac_exeext conftest.$ac_ext 12401fi 12402ac_res=`eval echo '${'$as_ac_var'}'` 12403 { echo "$as_me:$LINENO: result: $ac_res" >&5 12404echo "${ECHO_T}$ac_res" >&6; } 12405if test `eval echo '${'$as_ac_var'}'` = yes; then 12406 cat >>confdefs.h <<_ACEOF 12407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12408_ACEOF 12409 12410else 12411 case " $LIBOBJS " in 12412 *" $ac_func.$ac_objext "* ) ;; 12413 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12414 ;; 12415esac 12416 12417fi 12418done 12419 12420 12421 if test $ac_cv_func_gethostname = no; then 12422 12423 12424for ac_func in uname 12425do 12426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12427{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12430 echo $ECHO_N "(cached) $ECHO_C" >&6 12431else 12432 cat >conftest.$ac_ext <<_ACEOF 12433/* confdefs.h. */ 12434_ACEOF 12435cat confdefs.h >>conftest.$ac_ext 12436cat >>conftest.$ac_ext <<_ACEOF 12437/* end confdefs.h. */ 12438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12439 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12440#define $ac_func innocuous_$ac_func 12441 12442/* System header to define __stub macros and hopefully few prototypes, 12443 which can conflict with char $ac_func (); below. 12444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12445 <limits.h> exists even on freestanding compilers. */ 12446 12447#ifdef __STDC__ 12448# include <limits.h> 12449#else 12450# include <assert.h> 12451#endif 12452 12453#undef $ac_func 12454 12455/* Override any GCC internal prototype to avoid an error. 12456 Use char because int might match the return type of a GCC 12457 builtin and then its argument prototype would still apply. */ 12458#ifdef __cplusplus 12459extern "C" 12460#endif 12461char $ac_func (); 12462/* The GNU C library defines this for functions which it implements 12463 to always fail with ENOSYS. Some functions are actually named 12464 something starting with __ and the normal name is an alias. */ 12465#if defined __stub_$ac_func || defined __stub___$ac_func 12466choke me 12467#endif 12468 12469int 12470main () 12471{ 12472return $ac_func (); 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477rm -f conftest.$ac_objext conftest$ac_exeext 12478if { (ac_try="$ac_link" 12479case "(($ac_try" in 12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12481 *) ac_try_echo=$ac_try;; 12482esac 12483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12484 (eval "$ac_link") 2>conftest.er1 12485 ac_status=$? 12486 grep -v '^ *+' conftest.er1 >conftest.err 12487 rm -f conftest.er1 12488 cat conftest.err >&5 12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12490 (exit $ac_status); } && 12491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12492 { (case "(($ac_try" in 12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12494 *) ac_try_echo=$ac_try;; 12495esac 12496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12497 (eval "$ac_try") 2>&5 12498 ac_status=$? 12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12500 (exit $ac_status); }; } && 12501 { ac_try='test -s conftest$ac_exeext' 12502 { (case "(($ac_try" in 12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12504 *) ac_try_echo=$ac_try;; 12505esac 12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12507 (eval "$ac_try") 2>&5 12508 ac_status=$? 12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12510 (exit $ac_status); }; }; then 12511 eval "$as_ac_var=yes" 12512else 12513 echo "$as_me: failed program was:" >&5 12514sed 's/^/| /' conftest.$ac_ext >&5 12515 12516 eval "$as_ac_var=no" 12517fi 12518 12519rm -f core conftest.err conftest.$ac_objext \ 12520 conftest$ac_exeext conftest.$ac_ext 12521fi 12522ac_res=`eval echo '${'$as_ac_var'}'` 12523 { echo "$as_me:$LINENO: result: $ac_res" >&5 12524echo "${ECHO_T}$ac_res" >&6; } 12525if test `eval echo '${'$as_ac_var'}'` = yes; then 12526 cat >>confdefs.h <<_ACEOF 12527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12528_ACEOF 12529 12530fi 12531done 12532 12533 12534 fi 12535 12536 12537 12538 12539 12540 12541 { echo "$as_me:$LINENO: checking whether getline is declared" >&5 12542echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; } 12543if test "${ac_cv_have_decl_getline+set}" = set; then 12544 echo $ECHO_N "(cached) $ECHO_C" >&6 12545else 12546 cat >conftest.$ac_ext <<_ACEOF 12547/* confdefs.h. */ 12548_ACEOF 12549cat confdefs.h >>conftest.$ac_ext 12550cat >>conftest.$ac_ext <<_ACEOF 12551/* end confdefs.h. */ 12552$ac_includes_default 12553int 12554main () 12555{ 12556#ifndef getline 12557 char *p = (char *) getline; 12558 return !p; 12559#endif 12560 12561 ; 12562 return 0; 12563} 12564_ACEOF 12565rm -f conftest.$ac_objext 12566if { (ac_try="$ac_compile" 12567case "(($ac_try" in 12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12569 *) ac_try_echo=$ac_try;; 12570esac 12571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12572 (eval "$ac_compile") 2>conftest.er1 12573 ac_status=$? 12574 grep -v '^ *+' conftest.er1 >conftest.err 12575 rm -f conftest.er1 12576 cat conftest.err >&5 12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12578 (exit $ac_status); } && 12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12580 { (case "(($ac_try" in 12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12582 *) ac_try_echo=$ac_try;; 12583esac 12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12585 (eval "$ac_try") 2>&5 12586 ac_status=$? 12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12588 (exit $ac_status); }; } && 12589 { ac_try='test -s conftest.$ac_objext' 12590 { (case "(($ac_try" in 12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12592 *) ac_try_echo=$ac_try;; 12593esac 12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12595 (eval "$ac_try") 2>&5 12596 ac_status=$? 12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12598 (exit $ac_status); }; }; then 12599 ac_cv_have_decl_getline=yes 12600else 12601 echo "$as_me: failed program was:" >&5 12602sed 's/^/| /' conftest.$ac_ext >&5 12603 12604 ac_cv_have_decl_getline=no 12605fi 12606 12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12608fi 12609{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5 12610echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; } 12611if test $ac_cv_have_decl_getline = yes; then 12612 12613cat >>confdefs.h <<_ACEOF 12614#define HAVE_DECL_GETLINE 1 12615_ACEOF 12616 12617 12618else 12619 cat >>confdefs.h <<_ACEOF 12620#define HAVE_DECL_GETLINE 0 12621_ACEOF 12622 12623 12624fi 12625 12626 12627 12628 gl_getline_needs_run_time_check=no 12629 { echo "$as_me:$LINENO: checking for getline" >&5 12630echo $ECHO_N "checking for getline... $ECHO_C" >&6; } 12631if test "${ac_cv_func_getline+set}" = set; then 12632 echo $ECHO_N "(cached) $ECHO_C" >&6 12633else 12634 cat >conftest.$ac_ext <<_ACEOF 12635/* confdefs.h. */ 12636_ACEOF 12637cat confdefs.h >>conftest.$ac_ext 12638cat >>conftest.$ac_ext <<_ACEOF 12639/* end confdefs.h. */ 12640/* Define getline to an innocuous variant, in case <limits.h> declares getline. 12641 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12642#define getline innocuous_getline 12643 12644/* System header to define __stub macros and hopefully few prototypes, 12645 which can conflict with char getline (); below. 12646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12647 <limits.h> exists even on freestanding compilers. */ 12648 12649#ifdef __STDC__ 12650# include <limits.h> 12651#else 12652# include <assert.h> 12653#endif 12654 12655#undef getline 12656 12657/* Override any GCC internal prototype to avoid an error. 12658 Use char because int might match the return type of a GCC 12659 builtin and then its argument prototype would still apply. */ 12660#ifdef __cplusplus 12661extern "C" 12662#endif 12663char getline (); 12664/* The GNU C library defines this for functions which it implements 12665 to always fail with ENOSYS. Some functions are actually named 12666 something starting with __ and the normal name is an alias. */ 12667#if defined __stub_getline || defined __stub___getline 12668choke me 12669#endif 12670 12671int 12672main () 12673{ 12674return getline (); 12675 ; 12676 return 0; 12677} 12678_ACEOF 12679rm -f conftest.$ac_objext conftest$ac_exeext 12680if { (ac_try="$ac_link" 12681case "(($ac_try" in 12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12683 *) ac_try_echo=$ac_try;; 12684esac 12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12686 (eval "$ac_link") 2>conftest.er1 12687 ac_status=$? 12688 grep -v '^ *+' conftest.er1 >conftest.err 12689 rm -f conftest.er1 12690 cat conftest.err >&5 12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12692 (exit $ac_status); } && 12693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12694 { (case "(($ac_try" in 12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12696 *) ac_try_echo=$ac_try;; 12697esac 12698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12699 (eval "$ac_try") 2>&5 12700 ac_status=$? 12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12702 (exit $ac_status); }; } && 12703 { ac_try='test -s conftest$ac_exeext' 12704 { (case "(($ac_try" in 12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12706 *) ac_try_echo=$ac_try;; 12707esac 12708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12709 (eval "$ac_try") 2>&5 12710 ac_status=$? 12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); }; }; then 12713 ac_cv_func_getline=yes 12714else 12715 echo "$as_me: failed program was:" >&5 12716sed 's/^/| /' conftest.$ac_ext >&5 12717 12718 ac_cv_func_getline=no 12719fi 12720 12721rm -f core conftest.err conftest.$ac_objext \ 12722 conftest$ac_exeext conftest.$ac_ext 12723fi 12724{ echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 12725echo "${ECHO_T}$ac_cv_func_getline" >&6; } 12726if test $ac_cv_func_getline = yes; then 12727 gl_getline_needs_run_time_check=yes 12728else 12729 am_cv_func_working_getline=no 12730fi 12731 12732 if test $gl_getline_needs_run_time_check = yes; then 12733 { echo "$as_me:$LINENO: checking for working getline function" >&5 12734echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; } 12735if test "${am_cv_func_working_getline+set}" = set; then 12736 echo $ECHO_N "(cached) $ECHO_C" >&6 12737else 12738 echo fooN |tr -d '\012'|tr N '\012' > conftest.data 12739 if test "$cross_compiling" = yes; then 12740 am_cv_func_working_getline=no 12741else 12742 cat >conftest.$ac_ext <<_ACEOF 12743/* confdefs.h. */ 12744_ACEOF 12745cat confdefs.h >>conftest.$ac_ext 12746cat >>conftest.$ac_ext <<_ACEOF 12747/* end confdefs.h. */ 12748 12749# include <stdio.h> 12750# include <stdlib.h> 12751# include <string.h> 12752 int main () 12753 { /* Based on a test program from Karl Heuer. */ 12754 char *line = NULL; 12755 size_t siz = 0; 12756 int len; 12757 FILE *in = fopen ("./conftest.data", "r"); 12758 if (!in) 12759 return 1; 12760 len = getline (&line, &siz, in); 12761 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); 12762 } 12763 12764_ACEOF 12765rm -f conftest$ac_exeext 12766if { (ac_try="$ac_link" 12767case "(($ac_try" in 12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12769 *) ac_try_echo=$ac_try;; 12770esac 12771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12772 (eval "$ac_link") 2>&5 12773 ac_status=$? 12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12776 { (case "(($ac_try" in 12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12778 *) ac_try_echo=$ac_try;; 12779esac 12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12781 (eval "$ac_try") 2>&5 12782 ac_status=$? 12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12784 (exit $ac_status); }; }; then 12785 am_cv_func_working_getline=yes 12786else 12787 echo "$as_me: program exited with status $ac_status" >&5 12788echo "$as_me: failed program was:" >&5 12789sed 's/^/| /' conftest.$ac_ext >&5 12790 12791( exit $ac_status ) 12792am_cv_func_working_getline=no 12793fi 12794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12795fi 12796 12797 12798fi 12799{ echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5 12800echo "${ECHO_T}$am_cv_func_working_getline" >&6; } 12801 fi 12802 12803 if test $am_cv_func_working_getline = no; then 12804 12805cat >>confdefs.h <<\_ACEOF 12806#define getline gnu_getline 12807_ACEOF 12808 12809 case " $LIBOBJS " in 12810 *" getline.$ac_objext "* ) ;; 12811 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 12812 ;; 12813esac 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823for ac_func in getdelim 12824do 12825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12826{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12829 echo $ECHO_N "(cached) $ECHO_C" >&6 12830else 12831 cat >conftest.$ac_ext <<_ACEOF 12832/* confdefs.h. */ 12833_ACEOF 12834cat confdefs.h >>conftest.$ac_ext 12835cat >>conftest.$ac_ext <<_ACEOF 12836/* end confdefs.h. */ 12837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12839#define $ac_func innocuous_$ac_func 12840 12841/* System header to define __stub macros and hopefully few prototypes, 12842 which can conflict with char $ac_func (); below. 12843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12844 <limits.h> exists even on freestanding compilers. */ 12845 12846#ifdef __STDC__ 12847# include <limits.h> 12848#else 12849# include <assert.h> 12850#endif 12851 12852#undef $ac_func 12853 12854/* Override any GCC internal prototype to avoid an error. 12855 Use char because int might match the return type of a GCC 12856 builtin and then its argument prototype would still apply. */ 12857#ifdef __cplusplus 12858extern "C" 12859#endif 12860char $ac_func (); 12861/* The GNU C library defines this for functions which it implements 12862 to always fail with ENOSYS. Some functions are actually named 12863 something starting with __ and the normal name is an alias. */ 12864#if defined __stub_$ac_func || defined __stub___$ac_func 12865choke me 12866#endif 12867 12868int 12869main () 12870{ 12871return $ac_func (); 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876rm -f conftest.$ac_objext conftest$ac_exeext 12877if { (ac_try="$ac_link" 12878case "(($ac_try" in 12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12880 *) ac_try_echo=$ac_try;; 12881esac 12882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12883 (eval "$ac_link") 2>conftest.er1 12884 ac_status=$? 12885 grep -v '^ *+' conftest.er1 >conftest.err 12886 rm -f conftest.er1 12887 cat conftest.err >&5 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); } && 12890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12891 { (case "(($ac_try" in 12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12893 *) ac_try_echo=$ac_try;; 12894esac 12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12896 (eval "$ac_try") 2>&5 12897 ac_status=$? 12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12899 (exit $ac_status); }; } && 12900 { ac_try='test -s conftest$ac_exeext' 12901 { (case "(($ac_try" in 12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12903 *) ac_try_echo=$ac_try;; 12904esac 12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12906 (eval "$ac_try") 2>&5 12907 ac_status=$? 12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12909 (exit $ac_status); }; }; then 12910 eval "$as_ac_var=yes" 12911else 12912 echo "$as_me: failed program was:" >&5 12913sed 's/^/| /' conftest.$ac_ext >&5 12914 12915 eval "$as_ac_var=no" 12916fi 12917 12918rm -f core conftest.err conftest.$ac_objext \ 12919 conftest$ac_exeext conftest.$ac_ext 12920fi 12921ac_res=`eval echo '${'$as_ac_var'}'` 12922 { echo "$as_me:$LINENO: result: $ac_res" >&5 12923echo "${ECHO_T}$ac_res" >&6; } 12924if test `eval echo '${'$as_ac_var'}'` = yes; then 12925 cat >>confdefs.h <<_ACEOF 12926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12927_ACEOF 12928 12929else 12930 case " $LIBOBJS " in 12931 *" $ac_func.$ac_objext "* ) ;; 12932 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12933 ;; 12934esac 12935 12936fi 12937done 12938 12939 12940 12941 : 12942 12943 12944 12945 12946 12947 12948 if test $ac_cv_func_getdelim = no; then 12949 12950 12951 12952for ac_func in flockfile funlockfile 12953do 12954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12955{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12958 echo $ECHO_N "(cached) $ECHO_C" >&6 12959else 12960 cat >conftest.$ac_ext <<_ACEOF 12961/* confdefs.h. */ 12962_ACEOF 12963cat confdefs.h >>conftest.$ac_ext 12964cat >>conftest.$ac_ext <<_ACEOF 12965/* end confdefs.h. */ 12966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12968#define $ac_func innocuous_$ac_func 12969 12970/* System header to define __stub macros and hopefully few prototypes, 12971 which can conflict with char $ac_func (); below. 12972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12973 <limits.h> exists even on freestanding compilers. */ 12974 12975#ifdef __STDC__ 12976# include <limits.h> 12977#else 12978# include <assert.h> 12979#endif 12980 12981#undef $ac_func 12982 12983/* Override any GCC internal prototype to avoid an error. 12984 Use char because int might match the return type of a GCC 12985 builtin and then its argument prototype would still apply. */ 12986#ifdef __cplusplus 12987extern "C" 12988#endif 12989char $ac_func (); 12990/* The GNU C library defines this for functions which it implements 12991 to always fail with ENOSYS. Some functions are actually named 12992 something starting with __ and the normal name is an alias. */ 12993#if defined __stub_$ac_func || defined __stub___$ac_func 12994choke me 12995#endif 12996 12997int 12998main () 12999{ 13000return $ac_func (); 13001 ; 13002 return 0; 13003} 13004_ACEOF 13005rm -f conftest.$ac_objext conftest$ac_exeext 13006if { (ac_try="$ac_link" 13007case "(($ac_try" in 13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13009 *) ac_try_echo=$ac_try;; 13010esac 13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13012 (eval "$ac_link") 2>conftest.er1 13013 ac_status=$? 13014 grep -v '^ *+' conftest.er1 >conftest.err 13015 rm -f conftest.er1 13016 cat conftest.err >&5 13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13018 (exit $ac_status); } && 13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13020 { (case "(($ac_try" in 13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13022 *) ac_try_echo=$ac_try;; 13023esac 13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13025 (eval "$ac_try") 2>&5 13026 ac_status=$? 13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13028 (exit $ac_status); }; } && 13029 { ac_try='test -s conftest$ac_exeext' 13030 { (case "(($ac_try" in 13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13032 *) ac_try_echo=$ac_try;; 13033esac 13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13035 (eval "$ac_try") 2>&5 13036 ac_status=$? 13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13038 (exit $ac_status); }; }; then 13039 eval "$as_ac_var=yes" 13040else 13041 echo "$as_me: failed program was:" >&5 13042sed 's/^/| /' conftest.$ac_ext >&5 13043 13044 eval "$as_ac_var=no" 13045fi 13046 13047rm -f core conftest.err conftest.$ac_objext \ 13048 conftest$ac_exeext conftest.$ac_ext 13049fi 13050ac_res=`eval echo '${'$as_ac_var'}'` 13051 { echo "$as_me:$LINENO: result: $ac_res" >&5 13052echo "${ECHO_T}$ac_res" >&6; } 13053if test `eval echo '${'$as_ac_var'}'` = yes; then 13054 cat >>confdefs.h <<_ACEOF 13055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13056_ACEOF 13057 13058fi 13059done 13060 13061 13062 fi 13063 13064 13065 fi 13066 13067 13068 13069 if test -n "$GETOPT_H"; then 13070 13071 case " $LIBOBJS " in 13072 *" getopt.$ac_objext "* ) ;; 13073 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 13074 ;; 13075esac 13076 13077 case " $LIBOBJS " in 13078 *" getopt1.$ac_objext "* ) ;; 13079 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" 13080 ;; 13081esac 13082 13083 13084 GETOPT_H=getopt.h 13085 13086cat >>confdefs.h <<\_ACEOF 13087#define __GETOPT_PREFIX rpl_ 13088_ACEOF 13089 13090 13091 13092 : 13093 13094fi 13095 13096 13097 13098 13099 case " $LIBOBJS " in 13100 *" human.$ac_objext "* ) ;; 13101 *) LIBOBJS="$LIBOBJS human.$ac_objext" 13102 ;; 13103esac 13104 13105 13106 13107 13108 13109 : 13110 13111 13112 13113 13114 13115 13116 am_save_CPPFLAGS="$CPPFLAGS" 13117 13118 for element in $INCICONV; do 13119 haveit= 13120 for x in $CPPFLAGS; do 13121 13122 acl_save_prefix="$prefix" 13123 prefix="$acl_final_prefix" 13124 acl_save_exec_prefix="$exec_prefix" 13125 exec_prefix="$acl_final_exec_prefix" 13126 eval x=\"$x\" 13127 exec_prefix="$acl_save_exec_prefix" 13128 prefix="$acl_save_prefix" 13129 13130 if test "X$x" = "X$element"; then 13131 haveit=yes 13132 break 13133 fi 13134 done 13135 if test -z "$haveit"; then 13136 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13137 fi 13138 done 13139 13140 13141 { echo "$as_me:$LINENO: checking for iconv" >&5 13142echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 13143if test "${am_cv_func_iconv+set}" = set; then 13144 echo $ECHO_N "(cached) $ECHO_C" >&6 13145else 13146 13147 am_cv_func_iconv="no, consider installing GNU libiconv" 13148 am_cv_lib_iconv=no 13149 cat >conftest.$ac_ext <<_ACEOF 13150/* confdefs.h. */ 13151_ACEOF 13152cat confdefs.h >>conftest.$ac_ext 13153cat >>conftest.$ac_ext <<_ACEOF 13154/* end confdefs.h. */ 13155#include <stdlib.h> 13156#include <iconv.h> 13157int 13158main () 13159{ 13160iconv_t cd = iconv_open("",""); 13161 iconv(cd,NULL,NULL,NULL,NULL); 13162 iconv_close(cd); 13163 ; 13164 return 0; 13165} 13166_ACEOF 13167rm -f conftest.$ac_objext conftest$ac_exeext 13168if { (ac_try="$ac_link" 13169case "(($ac_try" in 13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13171 *) ac_try_echo=$ac_try;; 13172esac 13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13174 (eval "$ac_link") 2>conftest.er1 13175 ac_status=$? 13176 grep -v '^ *+' conftest.er1 >conftest.err 13177 rm -f conftest.er1 13178 cat conftest.err >&5 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } && 13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13182 { (case "(($ac_try" in 13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13184 *) ac_try_echo=$ac_try;; 13185esac 13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13187 (eval "$ac_try") 2>&5 13188 ac_status=$? 13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13190 (exit $ac_status); }; } && 13191 { ac_try='test -s conftest$ac_exeext' 13192 { (case "(($ac_try" in 13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13194 *) ac_try_echo=$ac_try;; 13195esac 13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13197 (eval "$ac_try") 2>&5 13198 ac_status=$? 13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13200 (exit $ac_status); }; }; then 13201 am_cv_func_iconv=yes 13202else 13203 echo "$as_me: failed program was:" >&5 13204sed 's/^/| /' conftest.$ac_ext >&5 13205 13206 13207fi 13208 13209rm -f core conftest.err conftest.$ac_objext \ 13210 conftest$ac_exeext conftest.$ac_ext 13211 if test "$am_cv_func_iconv" != yes; then 13212 am_save_LIBS="$LIBS" 13213 LIBS="$LIBS $LIBICONV" 13214 cat >conftest.$ac_ext <<_ACEOF 13215/* confdefs.h. */ 13216_ACEOF 13217cat confdefs.h >>conftest.$ac_ext 13218cat >>conftest.$ac_ext <<_ACEOF 13219/* end confdefs.h. */ 13220#include <stdlib.h> 13221#include <iconv.h> 13222int 13223main () 13224{ 13225iconv_t cd = iconv_open("",""); 13226 iconv(cd,NULL,NULL,NULL,NULL); 13227 iconv_close(cd); 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232rm -f conftest.$ac_objext conftest$ac_exeext 13233if { (ac_try="$ac_link" 13234case "(($ac_try" in 13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13236 *) ac_try_echo=$ac_try;; 13237esac 13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13239 (eval "$ac_link") 2>conftest.er1 13240 ac_status=$? 13241 grep -v '^ *+' conftest.er1 >conftest.err 13242 rm -f conftest.er1 13243 cat conftest.err >&5 13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13245 (exit $ac_status); } && 13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13247 { (case "(($ac_try" in 13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13249 *) ac_try_echo=$ac_try;; 13250esac 13251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13252 (eval "$ac_try") 2>&5 13253 ac_status=$? 13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13255 (exit $ac_status); }; } && 13256 { ac_try='test -s conftest$ac_exeext' 13257 { (case "(($ac_try" in 13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13259 *) ac_try_echo=$ac_try;; 13260esac 13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13262 (eval "$ac_try") 2>&5 13263 ac_status=$? 13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13265 (exit $ac_status); }; }; then 13266 am_cv_lib_iconv=yes 13267 am_cv_func_iconv=yes 13268else 13269 echo "$as_me: failed program was:" >&5 13270sed 's/^/| /' conftest.$ac_ext >&5 13271 13272 13273fi 13274 13275rm -f core conftest.err conftest.$ac_objext \ 13276 conftest$ac_exeext conftest.$ac_ext 13277 LIBS="$am_save_LIBS" 13278 fi 13279 13280fi 13281{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 13282echo "${ECHO_T}$am_cv_func_iconv" >&6; } 13283 if test "$am_cv_func_iconv" = yes; then 13284 13285cat >>confdefs.h <<\_ACEOF 13286#define HAVE_ICONV 1 13287_ACEOF 13288 13289 fi 13290 if test "$am_cv_lib_iconv" = yes; then 13291 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 13292echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 13293 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 13294echo "${ECHO_T}$LIBICONV" >&6; } 13295 else 13296 CPPFLAGS="$am_save_CPPFLAGS" 13297 LIBICONV= 13298 LTLIBICONV= 13299 fi 13300 13301 13302 13303 if test "$am_cv_func_iconv" = yes; then 13304 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 13305echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 13306 if test "${am_cv_proto_iconv+set}" = set; then 13307 echo $ECHO_N "(cached) $ECHO_C" >&6 13308else 13309 13310 cat >conftest.$ac_ext <<_ACEOF 13311/* confdefs.h. */ 13312_ACEOF 13313cat confdefs.h >>conftest.$ac_ext 13314cat >>conftest.$ac_ext <<_ACEOF 13315/* end confdefs.h. */ 13316 13317#include <stdlib.h> 13318#include <iconv.h> 13319extern 13320#ifdef __cplusplus 13321"C" 13322#endif 13323#if defined(__STDC__) || defined(__cplusplus) 13324size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 13325#else 13326size_t iconv(); 13327#endif 13328 13329int 13330main () 13331{ 13332 13333 ; 13334 return 0; 13335} 13336_ACEOF 13337rm -f conftest.$ac_objext 13338if { (ac_try="$ac_compile" 13339case "(($ac_try" in 13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13341 *) ac_try_echo=$ac_try;; 13342esac 13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13344 (eval "$ac_compile") 2>conftest.er1 13345 ac_status=$? 13346 grep -v '^ *+' conftest.er1 >conftest.err 13347 rm -f conftest.er1 13348 cat conftest.err >&5 13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13350 (exit $ac_status); } && 13351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13352 { (case "(($ac_try" in 13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13354 *) ac_try_echo=$ac_try;; 13355esac 13356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13357 (eval "$ac_try") 2>&5 13358 ac_status=$? 13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13360 (exit $ac_status); }; } && 13361 { ac_try='test -s conftest.$ac_objext' 13362 { (case "(($ac_try" in 13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13364 *) ac_try_echo=$ac_try;; 13365esac 13366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13367 (eval "$ac_try") 2>&5 13368 ac_status=$? 13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13370 (exit $ac_status); }; }; then 13371 am_cv_proto_iconv_arg1="" 13372else 13373 echo "$as_me: failed program was:" >&5 13374sed 's/^/| /' conftest.$ac_ext >&5 13375 13376 am_cv_proto_iconv_arg1="const" 13377fi 13378 13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13380 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);" 13381fi 13382 13383 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 13384 { echo "$as_me:$LINENO: result: ${ac_t:- 13385 }$am_cv_proto_iconv" >&5 13386echo "${ECHO_T}${ac_t:- 13387 }$am_cv_proto_iconv" >&6; } 13388 13389cat >>confdefs.h <<_ACEOF 13390#define ICONV_CONST $am_cv_proto_iconv_arg1 13391_ACEOF 13392 13393 fi 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404for ac_func in memmem 13405do 13406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13407{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13410 echo $ECHO_N "(cached) $ECHO_C" >&6 13411else 13412 cat >conftest.$ac_ext <<_ACEOF 13413/* confdefs.h. */ 13414_ACEOF 13415cat confdefs.h >>conftest.$ac_ext 13416cat >>conftest.$ac_ext <<_ACEOF 13417/* end confdefs.h. */ 13418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13419 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13420#define $ac_func innocuous_$ac_func 13421 13422/* System header to define __stub macros and hopefully few prototypes, 13423 which can conflict with char $ac_func (); below. 13424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13425 <limits.h> exists even on freestanding compilers. */ 13426 13427#ifdef __STDC__ 13428# include <limits.h> 13429#else 13430# include <assert.h> 13431#endif 13432 13433#undef $ac_func 13434 13435/* Override any GCC internal prototype to avoid an error. 13436 Use char because int might match the return type of a GCC 13437 builtin and then its argument prototype would still apply. */ 13438#ifdef __cplusplus 13439extern "C" 13440#endif 13441char $ac_func (); 13442/* The GNU C library defines this for functions which it implements 13443 to always fail with ENOSYS. Some functions are actually named 13444 something starting with __ and the normal name is an alias. */ 13445#if defined __stub_$ac_func || defined __stub___$ac_func 13446choke me 13447#endif 13448 13449int 13450main () 13451{ 13452return $ac_func (); 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457rm -f conftest.$ac_objext conftest$ac_exeext 13458if { (ac_try="$ac_link" 13459case "(($ac_try" in 13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13461 *) ac_try_echo=$ac_try;; 13462esac 13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13464 (eval "$ac_link") 2>conftest.er1 13465 ac_status=$? 13466 grep -v '^ *+' conftest.er1 >conftest.err 13467 rm -f conftest.er1 13468 cat conftest.err >&5 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); } && 13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13472 { (case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13477 (eval "$ac_try") 2>&5 13478 ac_status=$? 13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13480 (exit $ac_status); }; } && 13481 { ac_try='test -s conftest$ac_exeext' 13482 { (case "(($ac_try" in 13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13484 *) ac_try_echo=$ac_try;; 13485esac 13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13487 (eval "$ac_try") 2>&5 13488 ac_status=$? 13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13490 (exit $ac_status); }; }; then 13491 eval "$as_ac_var=yes" 13492else 13493 echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 eval "$as_ac_var=no" 13497fi 13498 13499rm -f core conftest.err conftest.$ac_objext \ 13500 conftest$ac_exeext conftest.$ac_ext 13501fi 13502ac_res=`eval echo '${'$as_ac_var'}'` 13503 { echo "$as_me:$LINENO: result: $ac_res" >&5 13504echo "${ECHO_T}$ac_res" >&6; } 13505if test `eval echo '${'$as_ac_var'}'` = yes; then 13506 cat >>confdefs.h <<_ACEOF 13507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13508_ACEOF 13509 13510else 13511 case " $LIBOBJS " in 13512 *" $ac_func.$ac_objext "* ) ;; 13513 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13514 ;; 13515esac 13516 13517fi 13518done 13519 13520 13521 13522 : 13523 13524 13525 13526 13527 13528 : 13529 13530 13531 13532 13533 13534 13535 case " $LIBOBJS " in 13536 *" quote.$ac_objext "* ) ;; 13537 *) LIBOBJS="$LIBOBJS quote.$ac_objext" 13538 ;; 13539esac 13540 13541 13542 13543 13544 13545 case " $LIBOBJS " in 13546 *" quotearg.$ac_objext "* ) ;; 13547 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext" 13548 ;; 13549esac 13550 13551 13552 13553 : 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 : 13564 13565 13566 13567 13568 13569 13570 13571 13572 { echo "$as_me:$LINENO: checking for mbstate_t" >&5 13573echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } 13574if test "${ac_cv_type_mbstate_t+set}" = set; then 13575 echo $ECHO_N "(cached) $ECHO_C" >&6 13576else 13577 cat >conftest.$ac_ext <<_ACEOF 13578/* confdefs.h. */ 13579_ACEOF 13580cat confdefs.h >>conftest.$ac_ext 13581cat >>conftest.$ac_ext <<_ACEOF 13582/* end confdefs.h. */ 13583$ac_includes_default 13584# include <wchar.h> 13585int 13586main () 13587{ 13588mbstate_t x; return sizeof x; 13589 ; 13590 return 0; 13591} 13592_ACEOF 13593rm -f conftest.$ac_objext 13594if { (ac_try="$ac_compile" 13595case "(($ac_try" in 13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13597 *) ac_try_echo=$ac_try;; 13598esac 13599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13600 (eval "$ac_compile") 2>conftest.er1 13601 ac_status=$? 13602 grep -v '^ *+' conftest.er1 >conftest.err 13603 rm -f conftest.er1 13604 cat conftest.err >&5 13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13606 (exit $ac_status); } && 13607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13608 { (case "(($ac_try" in 13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13610 *) ac_try_echo=$ac_try;; 13611esac 13612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13613 (eval "$ac_try") 2>&5 13614 ac_status=$? 13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13616 (exit $ac_status); }; } && 13617 { ac_try='test -s conftest.$ac_objext' 13618 { (case "(($ac_try" in 13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13620 *) ac_try_echo=$ac_try;; 13621esac 13622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13623 (eval "$ac_try") 2>&5 13624 ac_status=$? 13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13626 (exit $ac_status); }; }; then 13627 ac_cv_type_mbstate_t=yes 13628else 13629 echo "$as_me: failed program was:" >&5 13630sed 's/^/| /' conftest.$ac_ext >&5 13631 13632 ac_cv_type_mbstate_t=no 13633fi 13634 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 13638echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } 13639 if test $ac_cv_type_mbstate_t = yes; then 13640 13641cat >>confdefs.h <<\_ACEOF 13642#define HAVE_MBSTATE_T 1 13643_ACEOF 13644 13645 else 13646 13647cat >>confdefs.h <<\_ACEOF 13648#define mbstate_t int 13649_ACEOF 13650 13651 fi 13652 13653 { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 13654echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } 13655if test "${gl_cv_func_mbrtowc+set}" = set; then 13656 echo $ECHO_N "(cached) $ECHO_C" >&6 13657else 13658 cat >conftest.$ac_ext <<_ACEOF 13659/* confdefs.h. */ 13660_ACEOF 13661cat confdefs.h >>conftest.$ac_ext 13662cat >>conftest.$ac_ext <<_ACEOF 13663/* end confdefs.h. */ 13664#include <wchar.h> 13665int 13666main () 13667{ 13668wchar_t wc; 13669 char const s[] = ""; 13670 size_t n = 1; 13671 mbstate_t state; 13672 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 13673 ; 13674 return 0; 13675} 13676_ACEOF 13677rm -f conftest.$ac_objext conftest$ac_exeext 13678if { (ac_try="$ac_link" 13679case "(($ac_try" in 13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13681 *) ac_try_echo=$ac_try;; 13682esac 13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13684 (eval "$ac_link") 2>conftest.er1 13685 ac_status=$? 13686 grep -v '^ *+' conftest.er1 >conftest.err 13687 rm -f conftest.er1 13688 cat conftest.err >&5 13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13690 (exit $ac_status); } && 13691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13692 { (case "(($ac_try" in 13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13694 *) ac_try_echo=$ac_try;; 13695esac 13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13697 (eval "$ac_try") 2>&5 13698 ac_status=$? 13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13700 (exit $ac_status); }; } && 13701 { ac_try='test -s conftest$ac_exeext' 13702 { (case "(($ac_try" in 13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13704 *) ac_try_echo=$ac_try;; 13705esac 13706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13707 (eval "$ac_try") 2>&5 13708 ac_status=$? 13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13710 (exit $ac_status); }; }; then 13711 gl_cv_func_mbrtowc=yes 13712else 13713 echo "$as_me: failed program was:" >&5 13714sed 's/^/| /' conftest.$ac_ext >&5 13715 13716 gl_cv_func_mbrtowc=no 13717fi 13718 13719rm -f core conftest.err conftest.$ac_objext \ 13720 conftest$ac_exeext conftest.$ac_ext 13721fi 13722{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 13723echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } 13724 if test $gl_cv_func_mbrtowc = yes; then 13725 13726cat >>confdefs.h <<\_ACEOF 13727#define HAVE_MBRTOWC 1 13728_ACEOF 13729 13730 fi 13731 13732 13733 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 13734echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } 13735if test "${gl_cv_c_restrict+set}" = set; then 13736 echo $ECHO_N "(cached) $ECHO_C" >&6 13737else 13738 gl_cv_c_restrict=no 13739 # Try the official restrict keyword, then gcc's __restrict, and 13740 # the less common variants. 13741 for ac_kw in restrict __restrict __restrict__ _Restrict; do 13742 cat >conftest.$ac_ext <<_ACEOF 13743/* confdefs.h. */ 13744_ACEOF 13745cat confdefs.h >>conftest.$ac_ext 13746cat >>conftest.$ac_ext <<_ACEOF 13747/* end confdefs.h. */ 13748float * $ac_kw x; 13749_ACEOF 13750rm -f conftest.$ac_objext 13751if { (ac_try="$ac_compile" 13752case "(($ac_try" in 13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13754 *) ac_try_echo=$ac_try;; 13755esac 13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13757 (eval "$ac_compile") 2>conftest.er1 13758 ac_status=$? 13759 grep -v '^ *+' conftest.er1 >conftest.err 13760 rm -f conftest.er1 13761 cat conftest.err >&5 13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13763 (exit $ac_status); } && 13764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13765 { (case "(($ac_try" in 13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13767 *) ac_try_echo=$ac_try;; 13768esac 13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13770 (eval "$ac_try") 2>&5 13771 ac_status=$? 13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 (exit $ac_status); }; } && 13774 { ac_try='test -s conftest.$ac_objext' 13775 { (case "(($ac_try" in 13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13777 *) ac_try_echo=$ac_try;; 13778esac 13779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13780 (eval "$ac_try") 2>&5 13781 ac_status=$? 13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13783 (exit $ac_status); }; }; then 13784 gl_cv_c_restrict=$ac_kw; break 13785else 13786 echo "$as_me: failed program was:" >&5 13787sed 's/^/| /' conftest.$ac_ext >&5 13788 13789 13790fi 13791 13792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13793 done 13794 13795fi 13796{ echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5 13797echo "${ECHO_T}$gl_cv_c_restrict" >&6; } 13798 case $gl_cv_c_restrict in 13799 restrict) ;; 13800 no) 13801cat >>confdefs.h <<\_ACEOF 13802#define restrict 13803_ACEOF 13804 ;; 13805 *) cat >>confdefs.h <<_ACEOF 13806#define restrict $gl_cv_c_restrict 13807_ACEOF 13808 ;; 13809 esac 13810 13811 13812 13813 case " $LIBOBJS " in 13814 *" safe-read.$ac_objext "* ) ;; 13815 *) LIBOBJS="$LIBOBJS safe-read.$ac_objext" 13816 ;; 13817esac 13818 13819 13820 13821 13822 13823 13824 13825 13826 case " $LIBOBJS " in 13827 *" safe-write.$ac_objext "* ) ;; 13828 *) LIBOBJS="$LIBOBJS safe-write.$ac_objext" 13829 ;; 13830esac 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843for ac_func in sig2str 13844do 13845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13846{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13849 echo $ECHO_N "(cached) $ECHO_C" >&6 13850else 13851 cat >conftest.$ac_ext <<_ACEOF 13852/* confdefs.h. */ 13853_ACEOF 13854cat confdefs.h >>conftest.$ac_ext 13855cat >>conftest.$ac_ext <<_ACEOF 13856/* end confdefs.h. */ 13857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13858 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13859#define $ac_func innocuous_$ac_func 13860 13861/* System header to define __stub macros and hopefully few prototypes, 13862 which can conflict with char $ac_func (); below. 13863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13864 <limits.h> exists even on freestanding compilers. */ 13865 13866#ifdef __STDC__ 13867# include <limits.h> 13868#else 13869# include <assert.h> 13870#endif 13871 13872#undef $ac_func 13873 13874/* Override any GCC internal prototype to avoid an error. 13875 Use char because int might match the return type of a GCC 13876 builtin and then its argument prototype would still apply. */ 13877#ifdef __cplusplus 13878extern "C" 13879#endif 13880char $ac_func (); 13881/* The GNU C library defines this for functions which it implements 13882 to always fail with ENOSYS. Some functions are actually named 13883 something starting with __ and the normal name is an alias. */ 13884#if defined __stub_$ac_func || defined __stub___$ac_func 13885choke me 13886#endif 13887 13888int 13889main () 13890{ 13891return $ac_func (); 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896rm -f conftest.$ac_objext conftest$ac_exeext 13897if { (ac_try="$ac_link" 13898case "(($ac_try" in 13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13900 *) ac_try_echo=$ac_try;; 13901esac 13902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13903 (eval "$ac_link") 2>conftest.er1 13904 ac_status=$? 13905 grep -v '^ *+' conftest.er1 >conftest.err 13906 rm -f conftest.er1 13907 cat conftest.err >&5 13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13909 (exit $ac_status); } && 13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13911 { (case "(($ac_try" in 13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13913 *) ac_try_echo=$ac_try;; 13914esac 13915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13916 (eval "$ac_try") 2>&5 13917 ac_status=$? 13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13919 (exit $ac_status); }; } && 13920 { ac_try='test -s conftest$ac_exeext' 13921 { (case "(($ac_try" in 13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13923 *) ac_try_echo=$ac_try;; 13924esac 13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13926 (eval "$ac_try") 2>&5 13927 ac_status=$? 13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13929 (exit $ac_status); }; }; then 13930 eval "$as_ac_var=yes" 13931else 13932 echo "$as_me: failed program was:" >&5 13933sed 's/^/| /' conftest.$ac_ext >&5 13934 13935 eval "$as_ac_var=no" 13936fi 13937 13938rm -f core conftest.err conftest.$ac_objext \ 13939 conftest$ac_exeext conftest.$ac_ext 13940fi 13941ac_res=`eval echo '${'$as_ac_var'}'` 13942 { echo "$as_me:$LINENO: result: $ac_res" >&5 13943echo "${ECHO_T}$ac_res" >&6; } 13944if test `eval echo '${'$as_ac_var'}'` = yes; then 13945 cat >>confdefs.h <<_ACEOF 13946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13947_ACEOF 13948 13949else 13950 case " $LIBOBJS " in 13951 *" $ac_func.$ac_objext "* ) ;; 13952 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13953 ;; 13954esac 13955 13956fi 13957done 13958 13959 13960 if test $ac_cv_func_sig2str = no; then 13961 13962 : 13963 13964 fi 13965 13966 13967 13968for ac_header in stdint.h 13969do 13970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13972 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13975 echo $ECHO_N "(cached) $ECHO_C" >&6 13976fi 13977ac_res=`eval echo '${'$as_ac_Header'}'` 13978 { echo "$as_me:$LINENO: result: $ac_res" >&5 13979echo "${ECHO_T}$ac_res" >&6; } 13980else 13981 # Is the header compilable? 13982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13984cat >conftest.$ac_ext <<_ACEOF 13985/* confdefs.h. */ 13986_ACEOF 13987cat confdefs.h >>conftest.$ac_ext 13988cat >>conftest.$ac_ext <<_ACEOF 13989/* end confdefs.h. */ 13990$ac_includes_default 13991#include <$ac_header> 13992_ACEOF 13993rm -f conftest.$ac_objext 13994if { (ac_try="$ac_compile" 13995case "(($ac_try" in 13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13997 *) ac_try_echo=$ac_try;; 13998esac 13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14000 (eval "$ac_compile") 2>conftest.er1 14001 ac_status=$? 14002 grep -v '^ *+' conftest.er1 >conftest.err 14003 rm -f conftest.er1 14004 cat conftest.err >&5 14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14006 (exit $ac_status); } && 14007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14008 { (case "(($ac_try" in 14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14010 *) ac_try_echo=$ac_try;; 14011esac 14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14013 (eval "$ac_try") 2>&5 14014 ac_status=$? 14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14016 (exit $ac_status); }; } && 14017 { ac_try='test -s conftest.$ac_objext' 14018 { (case "(($ac_try" in 14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14020 *) ac_try_echo=$ac_try;; 14021esac 14022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14023 (eval "$ac_try") 2>&5 14024 ac_status=$? 14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14026 (exit $ac_status); }; }; then 14027 ac_header_compiler=yes 14028else 14029 echo "$as_me: failed program was:" >&5 14030sed 's/^/| /' conftest.$ac_ext >&5 14031 14032 ac_header_compiler=no 14033fi 14034 14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14037echo "${ECHO_T}$ac_header_compiler" >&6; } 14038 14039# Is the header present? 14040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14042cat >conftest.$ac_ext <<_ACEOF 14043/* confdefs.h. */ 14044_ACEOF 14045cat confdefs.h >>conftest.$ac_ext 14046cat >>conftest.$ac_ext <<_ACEOF 14047/* end confdefs.h. */ 14048#include <$ac_header> 14049_ACEOF 14050if { (ac_try="$ac_cpp conftest.$ac_ext" 14051case "(($ac_try" in 14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14053 *) ac_try_echo=$ac_try;; 14054esac 14055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14057 ac_status=$? 14058 grep -v '^ *+' conftest.er1 >conftest.err 14059 rm -f conftest.er1 14060 cat conftest.err >&5 14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14062 (exit $ac_status); } >/dev/null; then 14063 if test -s conftest.err; then 14064 ac_cpp_err=$ac_c_preproc_warn_flag 14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14066 else 14067 ac_cpp_err= 14068 fi 14069else 14070 ac_cpp_err=yes 14071fi 14072if test -z "$ac_cpp_err"; then 14073 ac_header_preproc=yes 14074else 14075 echo "$as_me: failed program was:" >&5 14076sed 's/^/| /' conftest.$ac_ext >&5 14077 14078 ac_header_preproc=no 14079fi 14080 14081rm -f conftest.err conftest.$ac_ext 14082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14083echo "${ECHO_T}$ac_header_preproc" >&6; } 14084 14085# So? What about this header? 14086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14087 yes:no: ) 14088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14092 ac_header_preproc=yes 14093 ;; 14094 no:yes:* ) 14095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14107 ( cat <<\_ASBOX 14108## ---------------------------------------- ## 14109## Report this to vladch@k804.mainet.msk.su ## 14110## ---------------------------------------- ## 14111_ASBOX 14112 ) | sed "s/^/$as_me: WARNING: /" >&2 14113 ;; 14114esac 14115{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14118 echo $ECHO_N "(cached) $ECHO_C" >&6 14119else 14120 eval "$as_ac_Header=\$ac_header_preproc" 14121fi 14122ac_res=`eval echo '${'$as_ac_Header'}'` 14123 { echo "$as_me:$LINENO: result: $ac_res" >&5 14124echo "${ECHO_T}$ac_res" >&6; } 14125 14126fi 14127if test `eval echo '${'$as_ac_Header'}'` = yes; then 14128 cat >>confdefs.h <<_ACEOF 14129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14130_ACEOF 14131 14132fi 14133 14134done 14135 14136 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 14137echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 14138 result= 14139 cat >conftest.$ac_ext <<_ACEOF 14140/* confdefs.h. */ 14141_ACEOF 14142cat confdefs.h >>conftest.$ac_ext 14143cat >>conftest.$ac_ext <<_ACEOF 14144/* end confdefs.h. */ 14145 14146#include <limits.h> 14147#if HAVE_STDINT_H 14148#include <stdint.h> 14149#endif 14150#ifdef SIZE_MAX 14151Found it 14152#endif 14153 14154_ACEOF 14155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14156 $EGREP "Found it" >/dev/null 2>&1; then 14157 result=yes 14158fi 14159rm -f conftest* 14160 14161 if test -z "$result"; then 14162 if test "$cross_compiling" = yes; then 14163 # Depending upon the size, compute the lo and hi bounds. 14164cat >conftest.$ac_ext <<_ACEOF 14165/* confdefs.h. */ 14166_ACEOF 14167cat confdefs.h >>conftest.$ac_ext 14168cat >>conftest.$ac_ext <<_ACEOF 14169/* end confdefs.h. */ 14170#include <stddef.h> 14171int 14172main () 14173{ 14174static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) >= 0)]; 14175test_array [0] = 0 14176 14177 ; 14178 return 0; 14179} 14180_ACEOF 14181rm -f conftest.$ac_objext 14182if { (ac_try="$ac_compile" 14183case "(($ac_try" in 14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14185 *) ac_try_echo=$ac_try;; 14186esac 14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14188 (eval "$ac_compile") 2>conftest.er1 14189 ac_status=$? 14190 grep -v '^ *+' conftest.er1 >conftest.err 14191 rm -f conftest.er1 14192 cat conftest.err >&5 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14194 (exit $ac_status); } && 14195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14196 { (case "(($ac_try" in 14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14198 *) ac_try_echo=$ac_try;; 14199esac 14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14201 (eval "$ac_try") 2>&5 14202 ac_status=$? 14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14204 (exit $ac_status); }; } && 14205 { ac_try='test -s conftest.$ac_objext' 14206 { (case "(($ac_try" in 14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14208 *) ac_try_echo=$ac_try;; 14209esac 14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14211 (eval "$ac_try") 2>&5 14212 ac_status=$? 14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14214 (exit $ac_status); }; }; then 14215 ac_lo=0 ac_mid=0 14216 while :; do 14217 cat >conftest.$ac_ext <<_ACEOF 14218/* confdefs.h. */ 14219_ACEOF 14220cat confdefs.h >>conftest.$ac_ext 14221cat >>conftest.$ac_ext <<_ACEOF 14222/* end confdefs.h. */ 14223#include <stddef.h> 14224int 14225main () 14226{ 14227static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) <= $ac_mid)]; 14228test_array [0] = 0 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234rm -f conftest.$ac_objext 14235if { (ac_try="$ac_compile" 14236case "(($ac_try" in 14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14238 *) ac_try_echo=$ac_try;; 14239esac 14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14241 (eval "$ac_compile") 2>conftest.er1 14242 ac_status=$? 14243 grep -v '^ *+' conftest.er1 >conftest.err 14244 rm -f conftest.er1 14245 cat conftest.err >&5 14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14247 (exit $ac_status); } && 14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14249 { (case "(($ac_try" in 14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14251 *) ac_try_echo=$ac_try;; 14252esac 14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14254 (eval "$ac_try") 2>&5 14255 ac_status=$? 14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14257 (exit $ac_status); }; } && 14258 { ac_try='test -s conftest.$ac_objext' 14259 { (case "(($ac_try" in 14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14261 *) ac_try_echo=$ac_try;; 14262esac 14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14264 (eval "$ac_try") 2>&5 14265 ac_status=$? 14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14267 (exit $ac_status); }; }; then 14268 ac_hi=$ac_mid; break 14269else 14270 echo "$as_me: failed program was:" >&5 14271sed 's/^/| /' conftest.$ac_ext >&5 14272 14273 ac_lo=`expr $ac_mid + 1` 14274 if test $ac_lo -le $ac_mid; then 14275 ac_lo= ac_hi= 14276 break 14277 fi 14278 ac_mid=`expr 2 '*' $ac_mid + 1` 14279fi 14280 14281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14282 done 14283else 14284 echo "$as_me: failed program was:" >&5 14285sed 's/^/| /' conftest.$ac_ext >&5 14286 14287 cat >conftest.$ac_ext <<_ACEOF 14288/* confdefs.h. */ 14289_ACEOF 14290cat confdefs.h >>conftest.$ac_ext 14291cat >>conftest.$ac_ext <<_ACEOF 14292/* end confdefs.h. */ 14293#include <stddef.h> 14294int 14295main () 14296{ 14297static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) < 0)]; 14298test_array [0] = 0 14299 14300 ; 14301 return 0; 14302} 14303_ACEOF 14304rm -f conftest.$ac_objext 14305if { (ac_try="$ac_compile" 14306case "(($ac_try" in 14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14308 *) ac_try_echo=$ac_try;; 14309esac 14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14311 (eval "$ac_compile") 2>conftest.er1 14312 ac_status=$? 14313 grep -v '^ *+' conftest.er1 >conftest.err 14314 rm -f conftest.er1 14315 cat conftest.err >&5 14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14317 (exit $ac_status); } && 14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14319 { (case "(($ac_try" in 14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14321 *) ac_try_echo=$ac_try;; 14322esac 14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14324 (eval "$ac_try") 2>&5 14325 ac_status=$? 14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14327 (exit $ac_status); }; } && 14328 { ac_try='test -s conftest.$ac_objext' 14329 { (case "(($ac_try" in 14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14331 *) ac_try_echo=$ac_try;; 14332esac 14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14334 (eval "$ac_try") 2>&5 14335 ac_status=$? 14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14337 (exit $ac_status); }; }; then 14338 ac_hi=-1 ac_mid=-1 14339 while :; do 14340 cat >conftest.$ac_ext <<_ACEOF 14341/* confdefs.h. */ 14342_ACEOF 14343cat confdefs.h >>conftest.$ac_ext 14344cat >>conftest.$ac_ext <<_ACEOF 14345/* end confdefs.h. */ 14346#include <stddef.h> 14347int 14348main () 14349{ 14350static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) >= $ac_mid)]; 14351test_array [0] = 0 14352 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357rm -f conftest.$ac_objext 14358if { (ac_try="$ac_compile" 14359case "(($ac_try" in 14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14361 *) ac_try_echo=$ac_try;; 14362esac 14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14364 (eval "$ac_compile") 2>conftest.er1 14365 ac_status=$? 14366 grep -v '^ *+' conftest.er1 >conftest.err 14367 rm -f conftest.er1 14368 cat conftest.err >&5 14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 (exit $ac_status); } && 14371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14372 { (case "(($ac_try" in 14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14374 *) ac_try_echo=$ac_try;; 14375esac 14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14377 (eval "$ac_try") 2>&5 14378 ac_status=$? 14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14380 (exit $ac_status); }; } && 14381 { ac_try='test -s conftest.$ac_objext' 14382 { (case "(($ac_try" in 14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14384 *) ac_try_echo=$ac_try;; 14385esac 14386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14387 (eval "$ac_try") 2>&5 14388 ac_status=$? 14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14390 (exit $ac_status); }; }; then 14391 ac_lo=$ac_mid; break 14392else 14393 echo "$as_me: failed program was:" >&5 14394sed 's/^/| /' conftest.$ac_ext >&5 14395 14396 ac_hi=`expr '(' $ac_mid ')' - 1` 14397 if test $ac_mid -le $ac_hi; then 14398 ac_lo= ac_hi= 14399 break 14400 fi 14401 ac_mid=`expr 2 '*' $ac_mid` 14402fi 14403 14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14405 done 14406else 14407 echo "$as_me: failed program was:" >&5 14408sed 's/^/| /' conftest.$ac_ext >&5 14409 14410 ac_lo= ac_hi= 14411fi 14412 14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14414fi 14415 14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14417# Binary search between lo and hi bounds. 14418while test "x$ac_lo" != "x$ac_hi"; do 14419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14420 cat >conftest.$ac_ext <<_ACEOF 14421/* confdefs.h. */ 14422_ACEOF 14423cat confdefs.h >>conftest.$ac_ext 14424cat >>conftest.$ac_ext <<_ACEOF 14425/* end confdefs.h. */ 14426#include <stddef.h> 14427int 14428main () 14429{ 14430static int test_array [1 - 2 * !(((size_t)~(size_t)0 / 10) <= $ac_mid)]; 14431test_array [0] = 0 14432 14433 ; 14434 return 0; 14435} 14436_ACEOF 14437rm -f conftest.$ac_objext 14438if { (ac_try="$ac_compile" 14439case "(($ac_try" in 14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14441 *) ac_try_echo=$ac_try;; 14442esac 14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14444 (eval "$ac_compile") 2>conftest.er1 14445 ac_status=$? 14446 grep -v '^ *+' conftest.er1 >conftest.err 14447 rm -f conftest.er1 14448 cat conftest.err >&5 14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14450 (exit $ac_status); } && 14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14452 { (case "(($ac_try" in 14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14454 *) ac_try_echo=$ac_try;; 14455esac 14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14457 (eval "$ac_try") 2>&5 14458 ac_status=$? 14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14460 (exit $ac_status); }; } && 14461 { ac_try='test -s conftest.$ac_objext' 14462 { (case "(($ac_try" in 14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14464 *) ac_try_echo=$ac_try;; 14465esac 14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14467 (eval "$ac_try") 2>&5 14468 ac_status=$? 14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14470 (exit $ac_status); }; }; then 14471 ac_hi=$ac_mid 14472else 14473 echo "$as_me: failed program was:" >&5 14474sed 's/^/| /' conftest.$ac_ext >&5 14475 14476 ac_lo=`expr '(' $ac_mid ')' + 1` 14477fi 14478 14479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14480done 14481case $ac_lo in 14482?*) res_hi=$ac_lo;; 14483'') result=? ;; 14484esac 14485else 14486 cat >conftest.$ac_ext <<_ACEOF 14487/* confdefs.h. */ 14488_ACEOF 14489cat confdefs.h >>conftest.$ac_ext 14490cat >>conftest.$ac_ext <<_ACEOF 14491/* end confdefs.h. */ 14492#include <stddef.h> 14493static long int longval () { return (size_t)~(size_t)0 / 10; } 14494static unsigned long int ulongval () { return (size_t)~(size_t)0 / 10; } 14495#include <stdio.h> 14496#include <stdlib.h> 14497int 14498main () 14499{ 14500 14501 FILE *f = fopen ("conftest.val", "w"); 14502 if (! f) 14503 return 1; 14504 if (((size_t)~(size_t)0 / 10) < 0) 14505 { 14506 long int i = longval (); 14507 if (i != ((size_t)~(size_t)0 / 10)) 14508 return 1; 14509 fprintf (f, "%ld\n", i); 14510 } 14511 else 14512 { 14513 unsigned long int i = ulongval (); 14514 if (i != ((size_t)~(size_t)0 / 10)) 14515 return 1; 14516 fprintf (f, "%lu\n", i); 14517 } 14518 return ferror (f) || fclose (f) != 0; 14519 14520 ; 14521 return 0; 14522} 14523_ACEOF 14524rm -f conftest$ac_exeext 14525if { (ac_try="$ac_link" 14526case "(($ac_try" in 14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14528 *) ac_try_echo=$ac_try;; 14529esac 14530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14531 (eval "$ac_link") 2>&5 14532 ac_status=$? 14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14535 { (case "(($ac_try" in 14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14537 *) ac_try_echo=$ac_try;; 14538esac 14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14540 (eval "$ac_try") 2>&5 14541 ac_status=$? 14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14543 (exit $ac_status); }; }; then 14544 res_hi=`cat conftest.val` 14545else 14546 echo "$as_me: program exited with status $ac_status" >&5 14547echo "$as_me: failed program was:" >&5 14548sed 's/^/| /' conftest.$ac_ext >&5 14549 14550( exit $ac_status ) 14551result=? 14552fi 14553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14554fi 14555rm -f conftest.val 14556 if test "$cross_compiling" = yes; then 14557 # Depending upon the size, compute the lo and hi bounds. 14558cat >conftest.$ac_ext <<_ACEOF 14559/* confdefs.h. */ 14560_ACEOF 14561cat confdefs.h >>conftest.$ac_ext 14562cat >>conftest.$ac_ext <<_ACEOF 14563/* end confdefs.h. */ 14564#include <stddef.h> 14565int 14566main () 14567{ 14568static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) >= 0)]; 14569test_array [0] = 0 14570 14571 ; 14572 return 0; 14573} 14574_ACEOF 14575rm -f conftest.$ac_objext 14576if { (ac_try="$ac_compile" 14577case "(($ac_try" in 14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14579 *) ac_try_echo=$ac_try;; 14580esac 14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14582 (eval "$ac_compile") 2>conftest.er1 14583 ac_status=$? 14584 grep -v '^ *+' conftest.er1 >conftest.err 14585 rm -f conftest.er1 14586 cat conftest.err >&5 14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14588 (exit $ac_status); } && 14589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14590 { (case "(($ac_try" in 14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14592 *) ac_try_echo=$ac_try;; 14593esac 14594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14595 (eval "$ac_try") 2>&5 14596 ac_status=$? 14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14598 (exit $ac_status); }; } && 14599 { ac_try='test -s conftest.$ac_objext' 14600 { (case "(($ac_try" in 14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14602 *) ac_try_echo=$ac_try;; 14603esac 14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14605 (eval "$ac_try") 2>&5 14606 ac_status=$? 14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14608 (exit $ac_status); }; }; then 14609 ac_lo=0 ac_mid=0 14610 while :; do 14611 cat >conftest.$ac_ext <<_ACEOF 14612/* confdefs.h. */ 14613_ACEOF 14614cat confdefs.h >>conftest.$ac_ext 14615cat >>conftest.$ac_ext <<_ACEOF 14616/* end confdefs.h. */ 14617#include <stddef.h> 14618int 14619main () 14620{ 14621static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) <= $ac_mid)]; 14622test_array [0] = 0 14623 14624 ; 14625 return 0; 14626} 14627_ACEOF 14628rm -f conftest.$ac_objext 14629if { (ac_try="$ac_compile" 14630case "(($ac_try" in 14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14632 *) ac_try_echo=$ac_try;; 14633esac 14634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14635 (eval "$ac_compile") 2>conftest.er1 14636 ac_status=$? 14637 grep -v '^ *+' conftest.er1 >conftest.err 14638 rm -f conftest.er1 14639 cat conftest.err >&5 14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14641 (exit $ac_status); } && 14642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14643 { (case "(($ac_try" in 14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14645 *) ac_try_echo=$ac_try;; 14646esac 14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14648 (eval "$ac_try") 2>&5 14649 ac_status=$? 14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14651 (exit $ac_status); }; } && 14652 { ac_try='test -s conftest.$ac_objext' 14653 { (case "(($ac_try" in 14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14655 *) ac_try_echo=$ac_try;; 14656esac 14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14658 (eval "$ac_try") 2>&5 14659 ac_status=$? 14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14661 (exit $ac_status); }; }; then 14662 ac_hi=$ac_mid; break 14663else 14664 echo "$as_me: failed program was:" >&5 14665sed 's/^/| /' conftest.$ac_ext >&5 14666 14667 ac_lo=`expr $ac_mid + 1` 14668 if test $ac_lo -le $ac_mid; then 14669 ac_lo= ac_hi= 14670 break 14671 fi 14672 ac_mid=`expr 2 '*' $ac_mid + 1` 14673fi 14674 14675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14676 done 14677else 14678 echo "$as_me: failed program was:" >&5 14679sed 's/^/| /' conftest.$ac_ext >&5 14680 14681 cat >conftest.$ac_ext <<_ACEOF 14682/* confdefs.h. */ 14683_ACEOF 14684cat confdefs.h >>conftest.$ac_ext 14685cat >>conftest.$ac_ext <<_ACEOF 14686/* end confdefs.h. */ 14687#include <stddef.h> 14688int 14689main () 14690{ 14691static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) < 0)]; 14692test_array [0] = 0 14693 14694 ; 14695 return 0; 14696} 14697_ACEOF 14698rm -f conftest.$ac_objext 14699if { (ac_try="$ac_compile" 14700case "(($ac_try" in 14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14702 *) ac_try_echo=$ac_try;; 14703esac 14704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14705 (eval "$ac_compile") 2>conftest.er1 14706 ac_status=$? 14707 grep -v '^ *+' conftest.er1 >conftest.err 14708 rm -f conftest.er1 14709 cat conftest.err >&5 14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14711 (exit $ac_status); } && 14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14713 { (case "(($ac_try" in 14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14715 *) ac_try_echo=$ac_try;; 14716esac 14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14718 (eval "$ac_try") 2>&5 14719 ac_status=$? 14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14721 (exit $ac_status); }; } && 14722 { ac_try='test -s conftest.$ac_objext' 14723 { (case "(($ac_try" in 14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14725 *) ac_try_echo=$ac_try;; 14726esac 14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14728 (eval "$ac_try") 2>&5 14729 ac_status=$? 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14731 (exit $ac_status); }; }; then 14732 ac_hi=-1 ac_mid=-1 14733 while :; do 14734 cat >conftest.$ac_ext <<_ACEOF 14735/* confdefs.h. */ 14736_ACEOF 14737cat confdefs.h >>conftest.$ac_ext 14738cat >>conftest.$ac_ext <<_ACEOF 14739/* end confdefs.h. */ 14740#include <stddef.h> 14741int 14742main () 14743{ 14744static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) >= $ac_mid)]; 14745test_array [0] = 0 14746 14747 ; 14748 return 0; 14749} 14750_ACEOF 14751rm -f conftest.$ac_objext 14752if { (ac_try="$ac_compile" 14753case "(($ac_try" in 14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14755 *) ac_try_echo=$ac_try;; 14756esac 14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14758 (eval "$ac_compile") 2>conftest.er1 14759 ac_status=$? 14760 grep -v '^ *+' conftest.er1 >conftest.err 14761 rm -f conftest.er1 14762 cat conftest.err >&5 14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14764 (exit $ac_status); } && 14765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14766 { (case "(($ac_try" in 14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14768 *) ac_try_echo=$ac_try;; 14769esac 14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14771 (eval "$ac_try") 2>&5 14772 ac_status=$? 14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14774 (exit $ac_status); }; } && 14775 { ac_try='test -s conftest.$ac_objext' 14776 { (case "(($ac_try" in 14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14778 *) ac_try_echo=$ac_try;; 14779esac 14780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14781 (eval "$ac_try") 2>&5 14782 ac_status=$? 14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14784 (exit $ac_status); }; }; then 14785 ac_lo=$ac_mid; break 14786else 14787 echo "$as_me: failed program was:" >&5 14788sed 's/^/| /' conftest.$ac_ext >&5 14789 14790 ac_hi=`expr '(' $ac_mid ')' - 1` 14791 if test $ac_mid -le $ac_hi; then 14792 ac_lo= ac_hi= 14793 break 14794 fi 14795 ac_mid=`expr 2 '*' $ac_mid` 14796fi 14797 14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14799 done 14800else 14801 echo "$as_me: failed program was:" >&5 14802sed 's/^/| /' conftest.$ac_ext >&5 14803 14804 ac_lo= ac_hi= 14805fi 14806 14807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14808fi 14809 14810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14811# Binary search between lo and hi bounds. 14812while test "x$ac_lo" != "x$ac_hi"; do 14813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14814 cat >conftest.$ac_ext <<_ACEOF 14815/* confdefs.h. */ 14816_ACEOF 14817cat confdefs.h >>conftest.$ac_ext 14818cat >>conftest.$ac_ext <<_ACEOF 14819/* end confdefs.h. */ 14820#include <stddef.h> 14821int 14822main () 14823{ 14824static int test_array [1 - 2 * !(((size_t)~(size_t)0 % 10) <= $ac_mid)]; 14825test_array [0] = 0 14826 14827 ; 14828 return 0; 14829} 14830_ACEOF 14831rm -f conftest.$ac_objext 14832if { (ac_try="$ac_compile" 14833case "(($ac_try" in 14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14835 *) ac_try_echo=$ac_try;; 14836esac 14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14838 (eval "$ac_compile") 2>conftest.er1 14839 ac_status=$? 14840 grep -v '^ *+' conftest.er1 >conftest.err 14841 rm -f conftest.er1 14842 cat conftest.err >&5 14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14844 (exit $ac_status); } && 14845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14846 { (case "(($ac_try" in 14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14848 *) ac_try_echo=$ac_try;; 14849esac 14850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14851 (eval "$ac_try") 2>&5 14852 ac_status=$? 14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14854 (exit $ac_status); }; } && 14855 { ac_try='test -s conftest.$ac_objext' 14856 { (case "(($ac_try" in 14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14858 *) ac_try_echo=$ac_try;; 14859esac 14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14861 (eval "$ac_try") 2>&5 14862 ac_status=$? 14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14864 (exit $ac_status); }; }; then 14865 ac_hi=$ac_mid 14866else 14867 echo "$as_me: failed program was:" >&5 14868sed 's/^/| /' conftest.$ac_ext >&5 14869 14870 ac_lo=`expr '(' $ac_mid ')' + 1` 14871fi 14872 14873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14874done 14875case $ac_lo in 14876?*) res_lo=$ac_lo;; 14877'') result=? ;; 14878esac 14879else 14880 cat >conftest.$ac_ext <<_ACEOF 14881/* confdefs.h. */ 14882_ACEOF 14883cat confdefs.h >>conftest.$ac_ext 14884cat >>conftest.$ac_ext <<_ACEOF 14885/* end confdefs.h. */ 14886#include <stddef.h> 14887static long int longval () { return (size_t)~(size_t)0 % 10; } 14888static unsigned long int ulongval () { return (size_t)~(size_t)0 % 10; } 14889#include <stdio.h> 14890#include <stdlib.h> 14891int 14892main () 14893{ 14894 14895 FILE *f = fopen ("conftest.val", "w"); 14896 if (! f) 14897 return 1; 14898 if (((size_t)~(size_t)0 % 10) < 0) 14899 { 14900 long int i = longval (); 14901 if (i != ((size_t)~(size_t)0 % 10)) 14902 return 1; 14903 fprintf (f, "%ld\n", i); 14904 } 14905 else 14906 { 14907 unsigned long int i = ulongval (); 14908 if (i != ((size_t)~(size_t)0 % 10)) 14909 return 1; 14910 fprintf (f, "%lu\n", i); 14911 } 14912 return ferror (f) || fclose (f) != 0; 14913 14914 ; 14915 return 0; 14916} 14917_ACEOF 14918rm -f conftest$ac_exeext 14919if { (ac_try="$ac_link" 14920case "(($ac_try" in 14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14922 *) ac_try_echo=$ac_try;; 14923esac 14924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14925 (eval "$ac_link") 2>&5 14926 ac_status=$? 14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14929 { (case "(($ac_try" in 14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14931 *) ac_try_echo=$ac_try;; 14932esac 14933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14934 (eval "$ac_try") 2>&5 14935 ac_status=$? 14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14937 (exit $ac_status); }; }; then 14938 res_lo=`cat conftest.val` 14939else 14940 echo "$as_me: program exited with status $ac_status" >&5 14941echo "$as_me: failed program was:" >&5 14942sed 's/^/| /' conftest.$ac_ext >&5 14943 14944( exit $ac_status ) 14945result=? 14946fi 14947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14948fi 14949rm -f conftest.val 14950 if test "$cross_compiling" = yes; then 14951 # Depending upon the size, compute the lo and hi bounds. 14952cat >conftest.$ac_ext <<_ACEOF 14953/* confdefs.h. */ 14954_ACEOF 14955cat confdefs.h >>conftest.$ac_ext 14956cat >>conftest.$ac_ext <<_ACEOF 14957/* end confdefs.h. */ 14958#include <stddef.h> 14959int 14960main () 14961{ 14962static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 14963test_array [0] = 0 14964 14965 ; 14966 return 0; 14967} 14968_ACEOF 14969rm -f conftest.$ac_objext 14970if { (ac_try="$ac_compile" 14971case "(($ac_try" in 14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14973 *) ac_try_echo=$ac_try;; 14974esac 14975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14976 (eval "$ac_compile") 2>conftest.er1 14977 ac_status=$? 14978 grep -v '^ *+' conftest.er1 >conftest.err 14979 rm -f conftest.er1 14980 cat conftest.err >&5 14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14982 (exit $ac_status); } && 14983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14984 { (case "(($ac_try" in 14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14986 *) ac_try_echo=$ac_try;; 14987esac 14988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14989 (eval "$ac_try") 2>&5 14990 ac_status=$? 14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14992 (exit $ac_status); }; } && 14993 { ac_try='test -s conftest.$ac_objext' 14994 { (case "(($ac_try" in 14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14996 *) ac_try_echo=$ac_try;; 14997esac 14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14999 (eval "$ac_try") 2>&5 15000 ac_status=$? 15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15002 (exit $ac_status); }; }; then 15003 ac_lo=0 ac_mid=0 15004 while :; do 15005 cat >conftest.$ac_ext <<_ACEOF 15006/* confdefs.h. */ 15007_ACEOF 15008cat confdefs.h >>conftest.$ac_ext 15009cat >>conftest.$ac_ext <<_ACEOF 15010/* end confdefs.h. */ 15011#include <stddef.h> 15012int 15013main () 15014{ 15015static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 15016test_array [0] = 0 15017 15018 ; 15019 return 0; 15020} 15021_ACEOF 15022rm -f conftest.$ac_objext 15023if { (ac_try="$ac_compile" 15024case "(($ac_try" in 15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15026 *) ac_try_echo=$ac_try;; 15027esac 15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15029 (eval "$ac_compile") 2>conftest.er1 15030 ac_status=$? 15031 grep -v '^ *+' conftest.er1 >conftest.err 15032 rm -f conftest.er1 15033 cat conftest.err >&5 15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15035 (exit $ac_status); } && 15036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15037 { (case "(($ac_try" in 15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15039 *) ac_try_echo=$ac_try;; 15040esac 15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15042 (eval "$ac_try") 2>&5 15043 ac_status=$? 15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15045 (exit $ac_status); }; } && 15046 { ac_try='test -s conftest.$ac_objext' 15047 { (case "(($ac_try" in 15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15049 *) ac_try_echo=$ac_try;; 15050esac 15051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15052 (eval "$ac_try") 2>&5 15053 ac_status=$? 15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15055 (exit $ac_status); }; }; then 15056 ac_hi=$ac_mid; break 15057else 15058 echo "$as_me: failed program was:" >&5 15059sed 's/^/| /' conftest.$ac_ext >&5 15060 15061 ac_lo=`expr $ac_mid + 1` 15062 if test $ac_lo -le $ac_mid; then 15063 ac_lo= ac_hi= 15064 break 15065 fi 15066 ac_mid=`expr 2 '*' $ac_mid + 1` 15067fi 15068 15069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15070 done 15071else 15072 echo "$as_me: failed program was:" >&5 15073sed 's/^/| /' conftest.$ac_ext >&5 15074 15075 cat >conftest.$ac_ext <<_ACEOF 15076/* confdefs.h. */ 15077_ACEOF 15078cat confdefs.h >>conftest.$ac_ext 15079cat >>conftest.$ac_ext <<_ACEOF 15080/* end confdefs.h. */ 15081#include <stddef.h> 15082int 15083main () 15084{ 15085static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 15086test_array [0] = 0 15087 15088 ; 15089 return 0; 15090} 15091_ACEOF 15092rm -f conftest.$ac_objext 15093if { (ac_try="$ac_compile" 15094case "(($ac_try" in 15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15096 *) ac_try_echo=$ac_try;; 15097esac 15098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15099 (eval "$ac_compile") 2>conftest.er1 15100 ac_status=$? 15101 grep -v '^ *+' conftest.er1 >conftest.err 15102 rm -f conftest.er1 15103 cat conftest.err >&5 15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15105 (exit $ac_status); } && 15106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15107 { (case "(($ac_try" in 15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15109 *) ac_try_echo=$ac_try;; 15110esac 15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15112 (eval "$ac_try") 2>&5 15113 ac_status=$? 15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15115 (exit $ac_status); }; } && 15116 { ac_try='test -s conftest.$ac_objext' 15117 { (case "(($ac_try" in 15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15119 *) ac_try_echo=$ac_try;; 15120esac 15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15122 (eval "$ac_try") 2>&5 15123 ac_status=$? 15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15125 (exit $ac_status); }; }; then 15126 ac_hi=-1 ac_mid=-1 15127 while :; do 15128 cat >conftest.$ac_ext <<_ACEOF 15129/* confdefs.h. */ 15130_ACEOF 15131cat confdefs.h >>conftest.$ac_ext 15132cat >>conftest.$ac_ext <<_ACEOF 15133/* end confdefs.h. */ 15134#include <stddef.h> 15135int 15136main () 15137{ 15138static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 15139test_array [0] = 0 15140 15141 ; 15142 return 0; 15143} 15144_ACEOF 15145rm -f conftest.$ac_objext 15146if { (ac_try="$ac_compile" 15147case "(($ac_try" in 15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15149 *) ac_try_echo=$ac_try;; 15150esac 15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15152 (eval "$ac_compile") 2>conftest.er1 15153 ac_status=$? 15154 grep -v '^ *+' conftest.er1 >conftest.err 15155 rm -f conftest.er1 15156 cat conftest.err >&5 15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15158 (exit $ac_status); } && 15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15160 { (case "(($ac_try" in 15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15162 *) ac_try_echo=$ac_try;; 15163esac 15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15165 (eval "$ac_try") 2>&5 15166 ac_status=$? 15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15168 (exit $ac_status); }; } && 15169 { ac_try='test -s conftest.$ac_objext' 15170 { (case "(($ac_try" in 15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15172 *) ac_try_echo=$ac_try;; 15173esac 15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15175 (eval "$ac_try") 2>&5 15176 ac_status=$? 15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15178 (exit $ac_status); }; }; then 15179 ac_lo=$ac_mid; break 15180else 15181 echo "$as_me: failed program was:" >&5 15182sed 's/^/| /' conftest.$ac_ext >&5 15183 15184 ac_hi=`expr '(' $ac_mid ')' - 1` 15185 if test $ac_mid -le $ac_hi; then 15186 ac_lo= ac_hi= 15187 break 15188 fi 15189 ac_mid=`expr 2 '*' $ac_mid` 15190fi 15191 15192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15193 done 15194else 15195 echo "$as_me: failed program was:" >&5 15196sed 's/^/| /' conftest.$ac_ext >&5 15197 15198 ac_lo= ac_hi= 15199fi 15200 15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15202fi 15203 15204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15205# Binary search between lo and hi bounds. 15206while test "x$ac_lo" != "x$ac_hi"; do 15207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15208 cat >conftest.$ac_ext <<_ACEOF 15209/* confdefs.h. */ 15210_ACEOF 15211cat confdefs.h >>conftest.$ac_ext 15212cat >>conftest.$ac_ext <<_ACEOF 15213/* end confdefs.h. */ 15214#include <stddef.h> 15215int 15216main () 15217{ 15218static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 15219test_array [0] = 0 15220 15221 ; 15222 return 0; 15223} 15224_ACEOF 15225rm -f conftest.$ac_objext 15226if { (ac_try="$ac_compile" 15227case "(($ac_try" in 15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15229 *) ac_try_echo=$ac_try;; 15230esac 15231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15232 (eval "$ac_compile") 2>conftest.er1 15233 ac_status=$? 15234 grep -v '^ *+' conftest.er1 >conftest.err 15235 rm -f conftest.er1 15236 cat conftest.err >&5 15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15238 (exit $ac_status); } && 15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15240 { (case "(($ac_try" in 15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15242 *) ac_try_echo=$ac_try;; 15243esac 15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15245 (eval "$ac_try") 2>&5 15246 ac_status=$? 15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15248 (exit $ac_status); }; } && 15249 { ac_try='test -s conftest.$ac_objext' 15250 { (case "(($ac_try" in 15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15252 *) ac_try_echo=$ac_try;; 15253esac 15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15255 (eval "$ac_try") 2>&5 15256 ac_status=$? 15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15258 (exit $ac_status); }; }; then 15259 ac_hi=$ac_mid 15260else 15261 echo "$as_me: failed program was:" >&5 15262sed 's/^/| /' conftest.$ac_ext >&5 15263 15264 ac_lo=`expr '(' $ac_mid ')' + 1` 15265fi 15266 15267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15268done 15269case $ac_lo in 15270?*) fits_in_uint=$ac_lo;; 15271'') result=? ;; 15272esac 15273else 15274 cat >conftest.$ac_ext <<_ACEOF 15275/* confdefs.h. */ 15276_ACEOF 15277cat confdefs.h >>conftest.$ac_ext 15278cat >>conftest.$ac_ext <<_ACEOF 15279/* end confdefs.h. */ 15280#include <stddef.h> 15281static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 15282static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 15283#include <stdio.h> 15284#include <stdlib.h> 15285int 15286main () 15287{ 15288 15289 FILE *f = fopen ("conftest.val", "w"); 15290 if (! f) 15291 return 1; 15292 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 15293 { 15294 long int i = longval (); 15295 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 15296 return 1; 15297 fprintf (f, "%ld\n", i); 15298 } 15299 else 15300 { 15301 unsigned long int i = ulongval (); 15302 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 15303 return 1; 15304 fprintf (f, "%lu\n", i); 15305 } 15306 return ferror (f) || fclose (f) != 0; 15307 15308 ; 15309 return 0; 15310} 15311_ACEOF 15312rm -f conftest$ac_exeext 15313if { (ac_try="$ac_link" 15314case "(($ac_try" in 15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15316 *) ac_try_echo=$ac_try;; 15317esac 15318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15319 (eval "$ac_link") 2>&5 15320 ac_status=$? 15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15323 { (case "(($ac_try" in 15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15325 *) ac_try_echo=$ac_try;; 15326esac 15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15328 (eval "$ac_try") 2>&5 15329 ac_status=$? 15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15331 (exit $ac_status); }; }; then 15332 fits_in_uint=`cat conftest.val` 15333else 15334 echo "$as_me: program exited with status $ac_status" >&5 15335echo "$as_me: failed program was:" >&5 15336sed 's/^/| /' conftest.$ac_ext >&5 15337 15338( exit $ac_status ) 15339result=? 15340fi 15341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15342fi 15343rm -f conftest.val 15344 if test "$fits_in_uint" = 1; then 15345 cat >conftest.$ac_ext <<_ACEOF 15346/* confdefs.h. */ 15347_ACEOF 15348cat confdefs.h >>conftest.$ac_ext 15349cat >>conftest.$ac_ext <<_ACEOF 15350/* end confdefs.h. */ 15351#include <stddef.h> 15352 extern size_t foo; 15353 extern unsigned long foo; 15354 15355int 15356main () 15357{ 15358 15359 ; 15360 return 0; 15361} 15362_ACEOF 15363rm -f conftest.$ac_objext 15364if { (ac_try="$ac_compile" 15365case "(($ac_try" in 15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15367 *) ac_try_echo=$ac_try;; 15368esac 15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15370 (eval "$ac_compile") 2>conftest.er1 15371 ac_status=$? 15372 grep -v '^ *+' conftest.er1 >conftest.err 15373 rm -f conftest.er1 15374 cat conftest.err >&5 15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15376 (exit $ac_status); } && 15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15378 { (case "(($ac_try" in 15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15380 *) ac_try_echo=$ac_try;; 15381esac 15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15383 (eval "$ac_try") 2>&5 15384 ac_status=$? 15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15386 (exit $ac_status); }; } && 15387 { ac_try='test -s conftest.$ac_objext' 15388 { (case "(($ac_try" in 15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15390 *) ac_try_echo=$ac_try;; 15391esac 15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15393 (eval "$ac_try") 2>&5 15394 ac_status=$? 15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15396 (exit $ac_status); }; }; then 15397 fits_in_uint=0 15398else 15399 echo "$as_me: failed program was:" >&5 15400sed 's/^/| /' conftest.$ac_ext >&5 15401 15402 15403fi 15404 15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15406 fi 15407 if test -z "$result"; then 15408 if test "$fits_in_uint" = 1; then 15409 result="$res_hi$res_lo"U 15410 else 15411 result="$res_hi$res_lo"UL 15412 fi 15413 else 15414 result='((size_t)~(size_t)0)' 15415 fi 15416 fi 15417 { echo "$as_me:$LINENO: result: $result" >&5 15418echo "${ECHO_T}$result" >&6; } 15419 if test "$result" != yes; then 15420 15421cat >>confdefs.h <<_ACEOF 15422#define SIZE_MAX $result 15423_ACEOF 15424 15425 fi 15426 15427 15428 15429 : 15430 15431 15432 15433 15434 15435 15436 15437 15438 { echo "$as_me:$LINENO: checking for socklen_t" >&5 15439echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 15440if test "${ac_cv_type_socklen_t+set}" = set; then 15441 echo $ECHO_N "(cached) $ECHO_C" >&6 15442else 15443 cat >conftest.$ac_ext <<_ACEOF 15444/* confdefs.h. */ 15445_ACEOF 15446cat confdefs.h >>conftest.$ac_ext 15447cat >>conftest.$ac_ext <<_ACEOF 15448/* end confdefs.h. */ 15449 15450#ifdef HAVE_SYS_TYPES_H 15451# include <sys/types.h> 15452#endif 15453#ifdef HAVE_SYS_SOCKET_H 15454# include <sys/socket.h> 15455#endif) 15456 15457 15458typedef socklen_t ac__type_new_; 15459int 15460main () 15461{ 15462if ((ac__type_new_ *) 0) 15463 return 0; 15464if (sizeof (ac__type_new_)) 15465 return 0; 15466 ; 15467 return 0; 15468} 15469_ACEOF 15470rm -f conftest.$ac_objext 15471if { (ac_try="$ac_compile" 15472case "(($ac_try" in 15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15474 *) ac_try_echo=$ac_try;; 15475esac 15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15477 (eval "$ac_compile") 2>conftest.er1 15478 ac_status=$? 15479 grep -v '^ *+' conftest.er1 >conftest.err 15480 rm -f conftest.er1 15481 cat conftest.err >&5 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); } && 15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15485 { (case "(($ac_try" in 15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15487 *) ac_try_echo=$ac_try;; 15488esac 15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15490 (eval "$ac_try") 2>&5 15491 ac_status=$? 15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15493 (exit $ac_status); }; } && 15494 { ac_try='test -s conftest.$ac_objext' 15495 { (case "(($ac_try" in 15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15497 *) ac_try_echo=$ac_try;; 15498esac 15499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15500 (eval "$ac_try") 2>&5 15501 ac_status=$? 15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15503 (exit $ac_status); }; }; then 15504 ac_cv_type_socklen_t=yes 15505else 15506 echo "$as_me: failed program was:" >&5 15507sed 's/^/| /' conftest.$ac_ext >&5 15508 15509 ac_cv_type_socklen_t=no 15510fi 15511 15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15513fi 15514{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 15515echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 15516if test $ac_cv_type_socklen_t = yes; then 15517 : 15518else 15519 15520cat >>confdefs.h <<\_ACEOF 15521#define socklen_t int 15522_ACEOF 15523 15524fi 15525 15526 15527 15528 { echo "$as_me:$LINENO: checking for ssize_t" >&5 15529echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 15530if test "${gt_cv_ssize_t+set}" = set; then 15531 echo $ECHO_N "(cached) $ECHO_C" >&6 15532else 15533 cat >conftest.$ac_ext <<_ACEOF 15534/* confdefs.h. */ 15535_ACEOF 15536cat confdefs.h >>conftest.$ac_ext 15537cat >>conftest.$ac_ext <<_ACEOF 15538/* end confdefs.h. */ 15539#include <sys/types.h> 15540int 15541main () 15542{ 15543int x = sizeof (ssize_t *) + sizeof (ssize_t); 15544 ; 15545 return 0; 15546} 15547_ACEOF 15548rm -f conftest.$ac_objext 15549if { (ac_try="$ac_compile" 15550case "(($ac_try" in 15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15552 *) ac_try_echo=$ac_try;; 15553esac 15554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15555 (eval "$ac_compile") 2>conftest.er1 15556 ac_status=$? 15557 grep -v '^ *+' conftest.er1 >conftest.err 15558 rm -f conftest.er1 15559 cat conftest.err >&5 15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15561 (exit $ac_status); } && 15562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15563 { (case "(($ac_try" in 15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15565 *) ac_try_echo=$ac_try;; 15566esac 15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15568 (eval "$ac_try") 2>&5 15569 ac_status=$? 15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15571 (exit $ac_status); }; } && 15572 { ac_try='test -s conftest.$ac_objext' 15573 { (case "(($ac_try" in 15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15575 *) ac_try_echo=$ac_try;; 15576esac 15577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15578 (eval "$ac_try") 2>&5 15579 ac_status=$? 15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15581 (exit $ac_status); }; }; then 15582 gt_cv_ssize_t=yes 15583else 15584 echo "$as_me: failed program was:" >&5 15585sed 's/^/| /' conftest.$ac_ext >&5 15586 15587 gt_cv_ssize_t=no 15588fi 15589 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591fi 15592{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 15593echo "${ECHO_T}$gt_cv_ssize_t" >&6; } 15594 if test $gt_cv_ssize_t = no; then 15595 15596cat >>confdefs.h <<\_ACEOF 15597#define ssize_t int 15598_ACEOF 15599 15600 fi 15601 15602 15603 15604 15605 # Define two additional variables used in the Makefile substitution. 15606 15607 if test "$ac_cv_header_stdbool_h" = yes; then 15608 STDBOOL_H='' 15609 else 15610 STDBOOL_H='stdbool.h' 15611 fi 15612 15613 15614 if test "$ac_cv_type__Bool" = yes; then 15615 HAVE__BOOL=1 15616 else 15617 HAVE__BOOL=0 15618 fi 15619 15620 15621 15622 15623for ac_header in sys/inttypes.h 15624do 15625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15627 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15630 echo $ECHO_N "(cached) $ECHO_C" >&6 15631fi 15632ac_res=`eval echo '${'$as_ac_Header'}'` 15633 { echo "$as_me:$LINENO: result: $ac_res" >&5 15634echo "${ECHO_T}$ac_res" >&6; } 15635else 15636 # Is the header compilable? 15637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15639cat >conftest.$ac_ext <<_ACEOF 15640/* confdefs.h. */ 15641_ACEOF 15642cat confdefs.h >>conftest.$ac_ext 15643cat >>conftest.$ac_ext <<_ACEOF 15644/* end confdefs.h. */ 15645$ac_includes_default 15646#include <$ac_header> 15647_ACEOF 15648rm -f conftest.$ac_objext 15649if { (ac_try="$ac_compile" 15650case "(($ac_try" in 15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15652 *) ac_try_echo=$ac_try;; 15653esac 15654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15655 (eval "$ac_compile") 2>conftest.er1 15656 ac_status=$? 15657 grep -v '^ *+' conftest.er1 >conftest.err 15658 rm -f conftest.er1 15659 cat conftest.err >&5 15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15661 (exit $ac_status); } && 15662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15663 { (case "(($ac_try" in 15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15665 *) ac_try_echo=$ac_try;; 15666esac 15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15668 (eval "$ac_try") 2>&5 15669 ac_status=$? 15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15671 (exit $ac_status); }; } && 15672 { ac_try='test -s conftest.$ac_objext' 15673 { (case "(($ac_try" in 15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15675 *) ac_try_echo=$ac_try;; 15676esac 15677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15678 (eval "$ac_try") 2>&5 15679 ac_status=$? 15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15681 (exit $ac_status); }; }; then 15682 ac_header_compiler=yes 15683else 15684 echo "$as_me: failed program was:" >&5 15685sed 's/^/| /' conftest.$ac_ext >&5 15686 15687 ac_header_compiler=no 15688fi 15689 15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15692echo "${ECHO_T}$ac_header_compiler" >&6; } 15693 15694# Is the header present? 15695{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15697cat >conftest.$ac_ext <<_ACEOF 15698/* confdefs.h. */ 15699_ACEOF 15700cat confdefs.h >>conftest.$ac_ext 15701cat >>conftest.$ac_ext <<_ACEOF 15702/* end confdefs.h. */ 15703#include <$ac_header> 15704_ACEOF 15705if { (ac_try="$ac_cpp conftest.$ac_ext" 15706case "(($ac_try" in 15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15708 *) ac_try_echo=$ac_try;; 15709esac 15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15712 ac_status=$? 15713 grep -v '^ *+' conftest.er1 >conftest.err 15714 rm -f conftest.er1 15715 cat conftest.err >&5 15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15717 (exit $ac_status); } >/dev/null; then 15718 if test -s conftest.err; then 15719 ac_cpp_err=$ac_c_preproc_warn_flag 15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15721 else 15722 ac_cpp_err= 15723 fi 15724else 15725 ac_cpp_err=yes 15726fi 15727if test -z "$ac_cpp_err"; then 15728 ac_header_preproc=yes 15729else 15730 echo "$as_me: failed program was:" >&5 15731sed 's/^/| /' conftest.$ac_ext >&5 15732 15733 ac_header_preproc=no 15734fi 15735 15736rm -f conftest.err conftest.$ac_ext 15737{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15738echo "${ECHO_T}$ac_header_preproc" >&6; } 15739 15740# So? What about this header? 15741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15742 yes:no: ) 15743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15747 ac_header_preproc=yes 15748 ;; 15749 no:yes:* ) 15750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15762 ( cat <<\_ASBOX 15763## ---------------------------------------- ## 15764## Report this to vladch@k804.mainet.msk.su ## 15765## ---------------------------------------- ## 15766_ASBOX 15767 ) | sed "s/^/$as_me: WARNING: /" >&2 15768 ;; 15769esac 15770{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15773 echo $ECHO_N "(cached) $ECHO_C" >&6 15774else 15775 eval "$as_ac_Header=\$ac_header_preproc" 15776fi 15777ac_res=`eval echo '${'$as_ac_Header'}'` 15778 { echo "$as_me:$LINENO: result: $ac_res" >&5 15779echo "${ECHO_T}$ac_res" >&6; } 15780 15781fi 15782if test `eval echo '${'$as_ac_Header'}'` = yes; then 15783 cat >>confdefs.h <<_ACEOF 15784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15785_ACEOF 15786 15787fi 15788 15789done 15790 15791 15792{ echo "$as_me:$LINENO: checking for stdint.h" >&5 15793echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 15794if test "${gl_cv_header_stdint_h+set}" = set; then 15795 echo $ECHO_N "(cached) $ECHO_C" >&6 15796else 15797 15798 cat >conftest.$ac_ext <<_ACEOF 15799/* confdefs.h. */ 15800_ACEOF 15801cat confdefs.h >>conftest.$ac_ext 15802cat >>conftest.$ac_ext <<_ACEOF 15803/* end confdefs.h. */ 15804#include <stdint.h> 15805int 15806main () 15807{ 15808 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813rm -f conftest.$ac_objext 15814if { (ac_try="$ac_compile" 15815case "(($ac_try" in 15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15817 *) ac_try_echo=$ac_try;; 15818esac 15819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15820 (eval "$ac_compile") 2>conftest.er1 15821 ac_status=$? 15822 grep -v '^ *+' conftest.er1 >conftest.err 15823 rm -f conftest.er1 15824 cat conftest.err >&5 15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15826 (exit $ac_status); } && 15827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15828 { (case "(($ac_try" in 15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15830 *) ac_try_echo=$ac_try;; 15831esac 15832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15833 (eval "$ac_try") 2>&5 15834 ac_status=$? 15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15836 (exit $ac_status); }; } && 15837 { ac_try='test -s conftest.$ac_objext' 15838 { (case "(($ac_try" in 15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15840 *) ac_try_echo=$ac_try;; 15841esac 15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15843 (eval "$ac_try") 2>&5 15844 ac_status=$? 15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15846 (exit $ac_status); }; }; then 15847 gl_cv_header_stdint_h=yes 15848else 15849 echo "$as_me: failed program was:" >&5 15850sed 's/^/| /' conftest.$ac_ext >&5 15851 15852 gl_cv_header_stdint_h=no 15853fi 15854 15855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15856fi 15857 15858{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 15859echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } 15860if test $gl_cv_header_stdint_h = yes; then 15861 15862cat >>confdefs.h <<\_ACEOF 15863#define HAVE_STDINT_H 1 15864_ACEOF 15865 15866 STDINT_H='' 15867else 15868 STDINT_H='stdint.h' 15869 15870 { echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5 15871echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6; } 15872if test "${gl_cv_long_bitsize_64+set}" = set; then 15873 echo $ECHO_N "(cached) $ECHO_C" >&6 15874else 15875 15876 cat >conftest.$ac_ext <<_ACEOF 15877/* confdefs.h. */ 15878_ACEOF 15879cat confdefs.h >>conftest.$ac_ext 15880cat >>conftest.$ac_ext <<_ACEOF 15881/* end confdefs.h. */ 15882 15883#define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3) 15884#define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4) 15885typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 15886 15887int 15888main () 15889{ 15890 15891 ; 15892 return 0; 15893} 15894_ACEOF 15895rm -f conftest.$ac_objext 15896if { (ac_try="$ac_compile" 15897case "(($ac_try" in 15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15899 *) ac_try_echo=$ac_try;; 15900esac 15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15902 (eval "$ac_compile") 2>conftest.er1 15903 ac_status=$? 15904 grep -v '^ *+' conftest.er1 >conftest.err 15905 rm -f conftest.er1 15906 cat conftest.err >&5 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15908 (exit $ac_status); } && 15909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15910 { (case "(($ac_try" in 15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15912 *) ac_try_echo=$ac_try;; 15913esac 15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15915 (eval "$ac_try") 2>&5 15916 ac_status=$? 15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15918 (exit $ac_status); }; } && 15919 { ac_try='test -s conftest.$ac_objext' 15920 { (case "(($ac_try" in 15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15922 *) ac_try_echo=$ac_try;; 15923esac 15924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15925 (eval "$ac_try") 2>&5 15926 ac_status=$? 15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15928 (exit $ac_status); }; }; then 15929 gl_cv_long_bitsize_64=yes 15930else 15931 echo "$as_me: failed program was:" >&5 15932sed 's/^/| /' conftest.$ac_ext >&5 15933 15934 gl_cv_long_bitsize_64=no 15935fi 15936 15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15938fi 15939{ echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5 15940echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6; } 15941 if test $gl_cv_long_bitsize_64 = yes; then 15942 HAVE_LONG_64BIT=1 15943 else 15944 HAVE_LONG_64BIT=0 15945 fi 15946 15947 15948 { echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5 15949echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6; } 15950if test "${gl_cv_longlong_bitsize_64+set}" = set; then 15951 echo $ECHO_N "(cached) $ECHO_C" >&6 15952else 15953 15954 cat >conftest.$ac_ext <<_ACEOF 15955/* confdefs.h. */ 15956_ACEOF 15957cat confdefs.h >>conftest.$ac_ext 15958cat >>conftest.$ac_ext <<_ACEOF 15959/* end confdefs.h. */ 15960 15961#define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3) 15962#define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4) 15963typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 15964 15965int 15966main () 15967{ 15968 15969 ; 15970 return 0; 15971} 15972_ACEOF 15973rm -f conftest.$ac_objext 15974if { (ac_try="$ac_compile" 15975case "(($ac_try" in 15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15977 *) ac_try_echo=$ac_try;; 15978esac 15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15980 (eval "$ac_compile") 2>conftest.er1 15981 ac_status=$? 15982 grep -v '^ *+' conftest.er1 >conftest.err 15983 rm -f conftest.er1 15984 cat conftest.err >&5 15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15986 (exit $ac_status); } && 15987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15988 { (case "(($ac_try" in 15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15990 *) ac_try_echo=$ac_try;; 15991esac 15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15993 (eval "$ac_try") 2>&5 15994 ac_status=$? 15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15996 (exit $ac_status); }; } && 15997 { ac_try='test -s conftest.$ac_objext' 15998 { (case "(($ac_try" in 15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16000 *) ac_try_echo=$ac_try;; 16001esac 16002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16003 (eval "$ac_try") 2>&5 16004 ac_status=$? 16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16006 (exit $ac_status); }; }; then 16007 gl_cv_longlong_bitsize_64=yes 16008else 16009 echo "$as_me: failed program was:" >&5 16010sed 's/^/| /' conftest.$ac_ext >&5 16011 16012 gl_cv_longlong_bitsize_64=no 16013fi 16014 16015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16016fi 16017{ echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5 16018echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6; } 16019 if test $gl_cv_longlong_bitsize_64 = yes; then 16020 HAVE_LONG_LONG_64BIT=1 16021 else 16022 HAVE_LONG_LONG_64BIT=0 16023 fi 16024 16025 16026fi 16027 16028 16029 16030 16031 16032 16033for ac_func in stpcpy 16034do 16035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16036{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16039 echo $ECHO_N "(cached) $ECHO_C" >&6 16040else 16041 cat >conftest.$ac_ext <<_ACEOF 16042/* confdefs.h. */ 16043_ACEOF 16044cat confdefs.h >>conftest.$ac_ext 16045cat >>conftest.$ac_ext <<_ACEOF 16046/* end confdefs.h. */ 16047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16048 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16049#define $ac_func innocuous_$ac_func 16050 16051/* System header to define __stub macros and hopefully few prototypes, 16052 which can conflict with char $ac_func (); below. 16053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16054 <limits.h> exists even on freestanding compilers. */ 16055 16056#ifdef __STDC__ 16057# include <limits.h> 16058#else 16059# include <assert.h> 16060#endif 16061 16062#undef $ac_func 16063 16064/* Override any GCC internal prototype to avoid an error. 16065 Use char because int might match the return type of a GCC 16066 builtin and then its argument prototype would still apply. */ 16067#ifdef __cplusplus 16068extern "C" 16069#endif 16070char $ac_func (); 16071/* The GNU C library defines this for functions which it implements 16072 to always fail with ENOSYS. Some functions are actually named 16073 something starting with __ and the normal name is an alias. */ 16074#if defined __stub_$ac_func || defined __stub___$ac_func 16075choke me 16076#endif 16077 16078int 16079main () 16080{ 16081return $ac_func (); 16082 ; 16083 return 0; 16084} 16085_ACEOF 16086rm -f conftest.$ac_objext conftest$ac_exeext 16087if { (ac_try="$ac_link" 16088case "(($ac_try" in 16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16090 *) ac_try_echo=$ac_try;; 16091esac 16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16093 (eval "$ac_link") 2>conftest.er1 16094 ac_status=$? 16095 grep -v '^ *+' conftest.er1 >conftest.err 16096 rm -f conftest.er1 16097 cat conftest.err >&5 16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16099 (exit $ac_status); } && 16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16101 { (case "(($ac_try" in 16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16103 *) ac_try_echo=$ac_try;; 16104esac 16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16106 (eval "$ac_try") 2>&5 16107 ac_status=$? 16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16109 (exit $ac_status); }; } && 16110 { ac_try='test -s conftest$ac_exeext' 16111 { (case "(($ac_try" in 16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16113 *) ac_try_echo=$ac_try;; 16114esac 16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16116 (eval "$ac_try") 2>&5 16117 ac_status=$? 16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16119 (exit $ac_status); }; }; then 16120 eval "$as_ac_var=yes" 16121else 16122 echo "$as_me: failed program was:" >&5 16123sed 's/^/| /' conftest.$ac_ext >&5 16124 16125 eval "$as_ac_var=no" 16126fi 16127 16128rm -f core conftest.err conftest.$ac_objext \ 16129 conftest$ac_exeext conftest.$ac_ext 16130fi 16131ac_res=`eval echo '${'$as_ac_var'}'` 16132 { echo "$as_me:$LINENO: result: $ac_res" >&5 16133echo "${ECHO_T}$ac_res" >&6; } 16134if test `eval echo '${'$as_ac_var'}'` = yes; then 16135 cat >>confdefs.h <<_ACEOF 16136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16137_ACEOF 16138 16139else 16140 case " $LIBOBJS " in 16141 *" $ac_func.$ac_objext "* ) ;; 16142 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16143 ;; 16144esac 16145 16146fi 16147done 16148 16149 16150 if test $ac_cv_func_stpcpy = no; then 16151 16152 : 16153 16154 fi 16155 16156 16157 16158 16159 16160for ac_func in strdup 16161do 16162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16163{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16166 echo $ECHO_N "(cached) $ECHO_C" >&6 16167else 16168 cat >conftest.$ac_ext <<_ACEOF 16169/* confdefs.h. */ 16170_ACEOF 16171cat confdefs.h >>conftest.$ac_ext 16172cat >>conftest.$ac_ext <<_ACEOF 16173/* end confdefs.h. */ 16174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16175 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16176#define $ac_func innocuous_$ac_func 16177 16178/* System header to define __stub macros and hopefully few prototypes, 16179 which can conflict with char $ac_func (); below. 16180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16181 <limits.h> exists even on freestanding compilers. */ 16182 16183#ifdef __STDC__ 16184# include <limits.h> 16185#else 16186# include <assert.h> 16187#endif 16188 16189#undef $ac_func 16190 16191/* Override any GCC internal prototype to avoid an error. 16192 Use char because int might match the return type of a GCC 16193 builtin and then its argument prototype would still apply. */ 16194#ifdef __cplusplus 16195extern "C" 16196#endif 16197char $ac_func (); 16198/* The GNU C library defines this for functions which it implements 16199 to always fail with ENOSYS. Some functions are actually named 16200 something starting with __ and the normal name is an alias. */ 16201#if defined __stub_$ac_func || defined __stub___$ac_func 16202choke me 16203#endif 16204 16205int 16206main () 16207{ 16208return $ac_func (); 16209 ; 16210 return 0; 16211} 16212_ACEOF 16213rm -f conftest.$ac_objext conftest$ac_exeext 16214if { (ac_try="$ac_link" 16215case "(($ac_try" in 16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16217 *) ac_try_echo=$ac_try;; 16218esac 16219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16220 (eval "$ac_link") 2>conftest.er1 16221 ac_status=$? 16222 grep -v '^ *+' conftest.er1 >conftest.err 16223 rm -f conftest.er1 16224 cat conftest.err >&5 16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16226 (exit $ac_status); } && 16227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16228 { (case "(($ac_try" in 16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16230 *) ac_try_echo=$ac_try;; 16231esac 16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16233 (eval "$ac_try") 2>&5 16234 ac_status=$? 16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16236 (exit $ac_status); }; } && 16237 { ac_try='test -s conftest$ac_exeext' 16238 { (case "(($ac_try" in 16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16240 *) ac_try_echo=$ac_try;; 16241esac 16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16243 (eval "$ac_try") 2>&5 16244 ac_status=$? 16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16246 (exit $ac_status); }; }; then 16247 eval "$as_ac_var=yes" 16248else 16249 echo "$as_me: failed program was:" >&5 16250sed 's/^/| /' conftest.$ac_ext >&5 16251 16252 eval "$as_ac_var=no" 16253fi 16254 16255rm -f core conftest.err conftest.$ac_objext \ 16256 conftest$ac_exeext conftest.$ac_ext 16257fi 16258ac_res=`eval echo '${'$as_ac_var'}'` 16259 { echo "$as_me:$LINENO: result: $ac_res" >&5 16260echo "${ECHO_T}$ac_res" >&6; } 16261if test `eval echo '${'$as_ac_var'}'` = yes; then 16262 cat >>confdefs.h <<_ACEOF 16263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16264_ACEOF 16265 16266else 16267 case " $LIBOBJS " in 16268 *" $ac_func.$ac_objext "* ) ;; 16269 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16270 ;; 16271esac 16272 16273fi 16274done 16275 16276 16277 16278 : 16279 16280 16281 16282 16283 16284 : 16285 16286 16287 16288 16289 16290 16291 16292 16293for ac_func in strndup 16294do 16295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16296{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16299 echo $ECHO_N "(cached) $ECHO_C" >&6 16300else 16301 cat >conftest.$ac_ext <<_ACEOF 16302/* confdefs.h. */ 16303_ACEOF 16304cat confdefs.h >>conftest.$ac_ext 16305cat >>conftest.$ac_ext <<_ACEOF 16306/* end confdefs.h. */ 16307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16308 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16309#define $ac_func innocuous_$ac_func 16310 16311/* System header to define __stub macros and hopefully few prototypes, 16312 which can conflict with char $ac_func (); below. 16313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16314 <limits.h> exists even on freestanding compilers. */ 16315 16316#ifdef __STDC__ 16317# include <limits.h> 16318#else 16319# include <assert.h> 16320#endif 16321 16322#undef $ac_func 16323 16324/* Override any GCC internal prototype to avoid an error. 16325 Use char because int might match the return type of a GCC 16326 builtin and then its argument prototype would still apply. */ 16327#ifdef __cplusplus 16328extern "C" 16329#endif 16330char $ac_func (); 16331/* The GNU C library defines this for functions which it implements 16332 to always fail with ENOSYS. Some functions are actually named 16333 something starting with __ and the normal name is an alias. */ 16334#if defined __stub_$ac_func || defined __stub___$ac_func 16335choke me 16336#endif 16337 16338int 16339main () 16340{ 16341return $ac_func (); 16342 ; 16343 return 0; 16344} 16345_ACEOF 16346rm -f conftest.$ac_objext conftest$ac_exeext 16347if { (ac_try="$ac_link" 16348case "(($ac_try" in 16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16350 *) ac_try_echo=$ac_try;; 16351esac 16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16353 (eval "$ac_link") 2>conftest.er1 16354 ac_status=$? 16355 grep -v '^ *+' conftest.er1 >conftest.err 16356 rm -f conftest.er1 16357 cat conftest.err >&5 16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16359 (exit $ac_status); } && 16360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16361 { (case "(($ac_try" in 16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16363 *) ac_try_echo=$ac_try;; 16364esac 16365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16366 (eval "$ac_try") 2>&5 16367 ac_status=$? 16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16369 (exit $ac_status); }; } && 16370 { ac_try='test -s conftest$ac_exeext' 16371 { (case "(($ac_try" in 16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16373 *) ac_try_echo=$ac_try;; 16374esac 16375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16376 (eval "$ac_try") 2>&5 16377 ac_status=$? 16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16379 (exit $ac_status); }; }; then 16380 eval "$as_ac_var=yes" 16381else 16382 echo "$as_me: failed program was:" >&5 16383sed 's/^/| /' conftest.$ac_ext >&5 16384 16385 eval "$as_ac_var=no" 16386fi 16387 16388rm -f core conftest.err conftest.$ac_objext \ 16389 conftest$ac_exeext conftest.$ac_ext 16390fi 16391ac_res=`eval echo '${'$as_ac_var'}'` 16392 { echo "$as_me:$LINENO: result: $ac_res" >&5 16393echo "${ECHO_T}$ac_res" >&6; } 16394if test `eval echo '${'$as_ac_var'}'` = yes; then 16395 cat >>confdefs.h <<_ACEOF 16396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16397_ACEOF 16398 16399else 16400 case " $LIBOBJS " in 16401 *" $ac_func.$ac_objext "* ) ;; 16402 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16403 ;; 16404esac 16405 16406fi 16407done 16408 16409 16410 if test $ac_cv_func_strndup = no; then 16411 : 16412 fi 16413 16414 16415 16416 16417 16418 16419 { echo "$as_me:$LINENO: checking for working strnlen" >&5 16420echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; } 16421if test "${ac_cv_func_strnlen_working+set}" = set; then 16422 echo $ECHO_N "(cached) $ECHO_C" >&6 16423else 16424 if test "$cross_compiling" = yes; then 16425 ac_cv_func_strnlen_working=no 16426else 16427 cat >conftest.$ac_ext <<_ACEOF 16428/* confdefs.h. */ 16429_ACEOF 16430cat confdefs.h >>conftest.$ac_ext 16431cat >>conftest.$ac_ext <<_ACEOF 16432/* end confdefs.h. */ 16433$ac_includes_default 16434int 16435main () 16436{ 16437 16438#define S "foobar" 16439#define S_LEN (sizeof S - 1) 16440 16441 /* At least one implementation is buggy: that of AIX 4.3 would 16442 give strnlen (S, 1) == 3. */ 16443 16444 int i; 16445 for (i = 0; i < S_LEN + 1; ++i) 16446 { 16447 int expected = i <= S_LEN ? i : S_LEN; 16448 if (strnlen (S, i) != expected) 16449 return 1; 16450 } 16451 return 0; 16452 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457rm -f conftest$ac_exeext 16458if { (ac_try="$ac_link" 16459case "(($ac_try" in 16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16461 *) ac_try_echo=$ac_try;; 16462esac 16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16464 (eval "$ac_link") 2>&5 16465 ac_status=$? 16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16468 { (case "(($ac_try" in 16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16470 *) ac_try_echo=$ac_try;; 16471esac 16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16473 (eval "$ac_try") 2>&5 16474 ac_status=$? 16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16476 (exit $ac_status); }; }; then 16477 ac_cv_func_strnlen_working=yes 16478else 16479 echo "$as_me: program exited with status $ac_status" >&5 16480echo "$as_me: failed program was:" >&5 16481sed 's/^/| /' conftest.$ac_ext >&5 16482 16483( exit $ac_status ) 16484ac_cv_func_strnlen_working=no 16485fi 16486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16487fi 16488 16489 16490fi 16491{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 16492echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; } 16493test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 16494 *" strnlen.$ac_objext "* ) ;; 16495 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 16496 ;; 16497esac 16498 16499 16500 if test $ac_cv_func_strnlen_working = no; then 16501 # This is necessary because automake-1.6.1 doens't understand 16502 # that the above use of AC_FUNC_STRNLEN means we may have to use 16503 # lib/strnlen.c. 16504 #AC_LIBOBJ(strnlen) 16505 16506cat >>confdefs.h <<\_ACEOF 16507#define strnlen rpl_strnlen 16508_ACEOF 16509 16510 16511 16512 : 16513 16514 16515 16516 16517 16518 16519 fi 16520 16521 16522 16523 16524 16525 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5 16526echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6; } 16527if test "${jm_cv_func_strtoimax_macro+set}" = set; then 16528 echo $ECHO_N "(cached) $ECHO_C" >&6 16529else 16530 cat >conftest.$ac_ext <<_ACEOF 16531/* confdefs.h. */ 16532_ACEOF 16533cat confdefs.h >>conftest.$ac_ext 16534cat >>conftest.$ac_ext <<_ACEOF 16535/* end confdefs.h. */ 16536#include <inttypes.h> 16537#ifdef strtoimax 16538 inttypes_h_defines_strtoimax 16539#endif 16540_ACEOF 16541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16542 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then 16543 jm_cv_func_strtoimax_macro=yes 16544else 16545 jm_cv_func_strtoimax_macro=no 16546fi 16547rm -f conftest* 16548 16549fi 16550{ echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5 16551echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6; } 16552 16553 if test "$jm_cv_func_strtoimax_macro" != yes; then 16554 16555for ac_func in strtoimax 16556do 16557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16558{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16561 echo $ECHO_N "(cached) $ECHO_C" >&6 16562else 16563 cat >conftest.$ac_ext <<_ACEOF 16564/* confdefs.h. */ 16565_ACEOF 16566cat confdefs.h >>conftest.$ac_ext 16567cat >>conftest.$ac_ext <<_ACEOF 16568/* end confdefs.h. */ 16569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16570 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16571#define $ac_func innocuous_$ac_func 16572 16573/* System header to define __stub macros and hopefully few prototypes, 16574 which can conflict with char $ac_func (); below. 16575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16576 <limits.h> exists even on freestanding compilers. */ 16577 16578#ifdef __STDC__ 16579# include <limits.h> 16580#else 16581# include <assert.h> 16582#endif 16583 16584#undef $ac_func 16585 16586/* Override any GCC internal prototype to avoid an error. 16587 Use char because int might match the return type of a GCC 16588 builtin and then its argument prototype would still apply. */ 16589#ifdef __cplusplus 16590extern "C" 16591#endif 16592char $ac_func (); 16593/* The GNU C library defines this for functions which it implements 16594 to always fail with ENOSYS. Some functions are actually named 16595 something starting with __ and the normal name is an alias. */ 16596#if defined __stub_$ac_func || defined __stub___$ac_func 16597choke me 16598#endif 16599 16600int 16601main () 16602{ 16603return $ac_func (); 16604 ; 16605 return 0; 16606} 16607_ACEOF 16608rm -f conftest.$ac_objext conftest$ac_exeext 16609if { (ac_try="$ac_link" 16610case "(($ac_try" in 16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16612 *) ac_try_echo=$ac_try;; 16613esac 16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16615 (eval "$ac_link") 2>conftest.er1 16616 ac_status=$? 16617 grep -v '^ *+' conftest.er1 >conftest.err 16618 rm -f conftest.er1 16619 cat conftest.err >&5 16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16621 (exit $ac_status); } && 16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16623 { (case "(($ac_try" in 16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16625 *) ac_try_echo=$ac_try;; 16626esac 16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16628 (eval "$ac_try") 2>&5 16629 ac_status=$? 16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16631 (exit $ac_status); }; } && 16632 { ac_try='test -s conftest$ac_exeext' 16633 { (case "(($ac_try" in 16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16635 *) ac_try_echo=$ac_try;; 16636esac 16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16638 (eval "$ac_try") 2>&5 16639 ac_status=$? 16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16641 (exit $ac_status); }; }; then 16642 eval "$as_ac_var=yes" 16643else 16644 echo "$as_me: failed program was:" >&5 16645sed 's/^/| /' conftest.$ac_ext >&5 16646 16647 eval "$as_ac_var=no" 16648fi 16649 16650rm -f core conftest.err conftest.$ac_objext \ 16651 conftest$ac_exeext conftest.$ac_ext 16652fi 16653ac_res=`eval echo '${'$as_ac_var'}'` 16654 { echo "$as_me:$LINENO: result: $ac_res" >&5 16655echo "${ECHO_T}$ac_res" >&6; } 16656if test `eval echo '${'$as_ac_var'}'` = yes; then 16657 cat >>confdefs.h <<_ACEOF 16658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16659_ACEOF 16660 16661else 16662 case " $LIBOBJS " in 16663 *" $ac_func.$ac_objext "* ) ;; 16664 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16665 ;; 16666esac 16667 16668fi 16669done 16670 16671 16672 if test $ac_cv_func_strtoimax = no; then 16673 16674 16675 16676 16677 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 16678 16679 test $ac_cv_type_long_long = yes \ 16680 && ac_type='long long' \ 16681 || ac_type='long' 16682 16683cat >>confdefs.h <<_ACEOF 16684#define intmax_t $ac_type 16685_ACEOF 16686 16687 else 16688 16689cat >>confdefs.h <<\_ACEOF 16690#define HAVE_INTMAX_T 1 16691_ACEOF 16692 16693 fi 16694 16695 { echo "$as_me:$LINENO: checking whether strtoll is declared" >&5 16696echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6; } 16697if test "${ac_cv_have_decl_strtoll+set}" = set; then 16698 echo $ECHO_N "(cached) $ECHO_C" >&6 16699else 16700 cat >conftest.$ac_ext <<_ACEOF 16701/* confdefs.h. */ 16702_ACEOF 16703cat confdefs.h >>conftest.$ac_ext 16704cat >>conftest.$ac_ext <<_ACEOF 16705/* end confdefs.h. */ 16706$ac_includes_default 16707int 16708main () 16709{ 16710#ifndef strtoll 16711 char *p = (char *) strtoll; 16712 return !p; 16713#endif 16714 16715 ; 16716 return 0; 16717} 16718_ACEOF 16719rm -f conftest.$ac_objext 16720if { (ac_try="$ac_compile" 16721case "(($ac_try" in 16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16723 *) ac_try_echo=$ac_try;; 16724esac 16725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16726 (eval "$ac_compile") 2>conftest.er1 16727 ac_status=$? 16728 grep -v '^ *+' conftest.er1 >conftest.err 16729 rm -f conftest.er1 16730 cat conftest.err >&5 16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16732 (exit $ac_status); } && 16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16734 { (case "(($ac_try" in 16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16736 *) ac_try_echo=$ac_try;; 16737esac 16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16739 (eval "$ac_try") 2>&5 16740 ac_status=$? 16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16742 (exit $ac_status); }; } && 16743 { ac_try='test -s conftest.$ac_objext' 16744 { (case "(($ac_try" in 16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16746 *) ac_try_echo=$ac_try;; 16747esac 16748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16749 (eval "$ac_try") 2>&5 16750 ac_status=$? 16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16752 (exit $ac_status); }; }; then 16753 ac_cv_have_decl_strtoll=yes 16754else 16755 echo "$as_me: failed program was:" >&5 16756sed 's/^/| /' conftest.$ac_ext >&5 16757 16758 ac_cv_have_decl_strtoll=no 16759fi 16760 16761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16762fi 16763{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5 16764echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6; } 16765if test $ac_cv_have_decl_strtoll = yes; then 16766 16767cat >>confdefs.h <<_ACEOF 16768#define HAVE_DECL_STRTOLL 1 16769_ACEOF 16770 16771 16772else 16773 cat >>confdefs.h <<_ACEOF 16774#define HAVE_DECL_STRTOLL 0 16775_ACEOF 16776 16777 16778fi 16779 16780 16781 16782 16783 fi 16784 fi 16785 16786 16787 16788for ac_func in strtol 16789do 16790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16791{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16794 echo $ECHO_N "(cached) $ECHO_C" >&6 16795else 16796 cat >conftest.$ac_ext <<_ACEOF 16797/* confdefs.h. */ 16798_ACEOF 16799cat confdefs.h >>conftest.$ac_ext 16800cat >>conftest.$ac_ext <<_ACEOF 16801/* end confdefs.h. */ 16802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16804#define $ac_func innocuous_$ac_func 16805 16806/* System header to define __stub macros and hopefully few prototypes, 16807 which can conflict with char $ac_func (); below. 16808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16809 <limits.h> exists even on freestanding compilers. */ 16810 16811#ifdef __STDC__ 16812# include <limits.h> 16813#else 16814# include <assert.h> 16815#endif 16816 16817#undef $ac_func 16818 16819/* Override any GCC internal prototype to avoid an error. 16820 Use char because int might match the return type of a GCC 16821 builtin and then its argument prototype would still apply. */ 16822#ifdef __cplusplus 16823extern "C" 16824#endif 16825char $ac_func (); 16826/* The GNU C library defines this for functions which it implements 16827 to always fail with ENOSYS. Some functions are actually named 16828 something starting with __ and the normal name is an alias. */ 16829#if defined __stub_$ac_func || defined __stub___$ac_func 16830choke me 16831#endif 16832 16833int 16834main () 16835{ 16836return $ac_func (); 16837 ; 16838 return 0; 16839} 16840_ACEOF 16841rm -f conftest.$ac_objext conftest$ac_exeext 16842if { (ac_try="$ac_link" 16843case "(($ac_try" in 16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16845 *) ac_try_echo=$ac_try;; 16846esac 16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16848 (eval "$ac_link") 2>conftest.er1 16849 ac_status=$? 16850 grep -v '^ *+' conftest.er1 >conftest.err 16851 rm -f conftest.er1 16852 cat conftest.err >&5 16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16854 (exit $ac_status); } && 16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16856 { (case "(($ac_try" in 16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16858 *) ac_try_echo=$ac_try;; 16859esac 16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16861 (eval "$ac_try") 2>&5 16862 ac_status=$? 16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16864 (exit $ac_status); }; } && 16865 { ac_try='test -s conftest$ac_exeext' 16866 { (case "(($ac_try" in 16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16868 *) ac_try_echo=$ac_try;; 16869esac 16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16871 (eval "$ac_try") 2>&5 16872 ac_status=$? 16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16874 (exit $ac_status); }; }; then 16875 eval "$as_ac_var=yes" 16876else 16877 echo "$as_me: failed program was:" >&5 16878sed 's/^/| /' conftest.$ac_ext >&5 16879 16880 eval "$as_ac_var=no" 16881fi 16882 16883rm -f core conftest.err conftest.$ac_objext \ 16884 conftest$ac_exeext conftest.$ac_ext 16885fi 16886ac_res=`eval echo '${'$as_ac_var'}'` 16887 { echo "$as_me:$LINENO: result: $ac_res" >&5 16888echo "${ECHO_T}$ac_res" >&6; } 16889if test `eval echo '${'$as_ac_var'}'` = yes; then 16890 cat >>confdefs.h <<_ACEOF 16891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16892_ACEOF 16893 16894else 16895 case " $LIBOBJS " in 16896 *" $ac_func.$ac_objext "* ) ;; 16897 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 16898 ;; 16899esac 16900 16901fi 16902done 16903 16904 16905 if test $ac_cv_func_strtol = no; then 16906 16907 16908 16909 : 16910 16911 16912 16913 16914 16915 16916 fi 16917 16918 16919 16920 if test "$ac_cv_type_long_long" = yes; then 16921 16922for ac_func in strtoll 16923do 16924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16925{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16927if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16928 echo $ECHO_N "(cached) $ECHO_C" >&6 16929else 16930 cat >conftest.$ac_ext <<_ACEOF 16931/* confdefs.h. */ 16932_ACEOF 16933cat confdefs.h >>conftest.$ac_ext 16934cat >>conftest.$ac_ext <<_ACEOF 16935/* end confdefs.h. */ 16936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16938#define $ac_func innocuous_$ac_func 16939 16940/* System header to define __stub macros and hopefully few prototypes, 16941 which can conflict with char $ac_func (); below. 16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16943 <limits.h> exists even on freestanding compilers. */ 16944 16945#ifdef __STDC__ 16946# include <limits.h> 16947#else 16948# include <assert.h> 16949#endif 16950 16951#undef $ac_func 16952 16953/* Override any GCC internal prototype to avoid an error. 16954 Use char because int might match the return type of a GCC 16955 builtin and then its argument prototype would still apply. */ 16956#ifdef __cplusplus 16957extern "C" 16958#endif 16959char $ac_func (); 16960/* The GNU C library defines this for functions which it implements 16961 to always fail with ENOSYS. Some functions are actually named 16962 something starting with __ and the normal name is an alias. */ 16963#if defined __stub_$ac_func || defined __stub___$ac_func 16964choke me 16965#endif 16966 16967int 16968main () 16969{ 16970return $ac_func (); 16971 ; 16972 return 0; 16973} 16974_ACEOF 16975rm -f conftest.$ac_objext conftest$ac_exeext 16976if { (ac_try="$ac_link" 16977case "(($ac_try" in 16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16979 *) ac_try_echo=$ac_try;; 16980esac 16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16982 (eval "$ac_link") 2>conftest.er1 16983 ac_status=$? 16984 grep -v '^ *+' conftest.er1 >conftest.err 16985 rm -f conftest.er1 16986 cat conftest.err >&5 16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16988 (exit $ac_status); } && 16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16990 { (case "(($ac_try" in 16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16992 *) ac_try_echo=$ac_try;; 16993esac 16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16995 (eval "$ac_try") 2>&5 16996 ac_status=$? 16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16998 (exit $ac_status); }; } && 16999 { ac_try='test -s conftest$ac_exeext' 17000 { (case "(($ac_try" in 17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17002 *) ac_try_echo=$ac_try;; 17003esac 17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17005 (eval "$ac_try") 2>&5 17006 ac_status=$? 17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17008 (exit $ac_status); }; }; then 17009 eval "$as_ac_var=yes" 17010else 17011 echo "$as_me: failed program was:" >&5 17012sed 's/^/| /' conftest.$ac_ext >&5 17013 17014 eval "$as_ac_var=no" 17015fi 17016 17017rm -f core conftest.err conftest.$ac_objext \ 17018 conftest$ac_exeext conftest.$ac_ext 17019fi 17020ac_res=`eval echo '${'$as_ac_var'}'` 17021 { echo "$as_me:$LINENO: result: $ac_res" >&5 17022echo "${ECHO_T}$ac_res" >&6; } 17023if test `eval echo '${'$as_ac_var'}'` = yes; then 17024 cat >>confdefs.h <<_ACEOF 17025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17026_ACEOF 17027 17028else 17029 case " $LIBOBJS " in 17030 *" $ac_func.$ac_objext "* ) ;; 17031 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 17032 ;; 17033esac 17034 17035fi 17036done 17037 17038 17039 if test $ac_cv_func_strtoll = no; then 17040 17041 : 17042 17043 fi 17044 fi 17045 17046 17047 17048for ac_func in strtoul 17049do 17050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17051{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17053if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17054 echo $ECHO_N "(cached) $ECHO_C" >&6 17055else 17056 cat >conftest.$ac_ext <<_ACEOF 17057/* confdefs.h. */ 17058_ACEOF 17059cat confdefs.h >>conftest.$ac_ext 17060cat >>conftest.$ac_ext <<_ACEOF 17061/* end confdefs.h. */ 17062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17064#define $ac_func innocuous_$ac_func 17065 17066/* System header to define __stub macros and hopefully few prototypes, 17067 which can conflict with char $ac_func (); below. 17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17069 <limits.h> exists even on freestanding compilers. */ 17070 17071#ifdef __STDC__ 17072# include <limits.h> 17073#else 17074# include <assert.h> 17075#endif 17076 17077#undef $ac_func 17078 17079/* Override any GCC internal prototype to avoid an error. 17080 Use char because int might match the return type of a GCC 17081 builtin and then its argument prototype would still apply. */ 17082#ifdef __cplusplus 17083extern "C" 17084#endif 17085char $ac_func (); 17086/* The GNU C library defines this for functions which it implements 17087 to always fail with ENOSYS. Some functions are actually named 17088 something starting with __ and the normal name is an alias. */ 17089#if defined __stub_$ac_func || defined __stub___$ac_func 17090choke me 17091#endif 17092 17093int 17094main () 17095{ 17096return $ac_func (); 17097 ; 17098 return 0; 17099} 17100_ACEOF 17101rm -f conftest.$ac_objext conftest$ac_exeext 17102if { (ac_try="$ac_link" 17103case "(($ac_try" in 17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17105 *) ac_try_echo=$ac_try;; 17106esac 17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17108 (eval "$ac_link") 2>conftest.er1 17109 ac_status=$? 17110 grep -v '^ *+' conftest.er1 >conftest.err 17111 rm -f conftest.er1 17112 cat conftest.err >&5 17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17114 (exit $ac_status); } && 17115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17116 { (case "(($ac_try" in 17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17118 *) ac_try_echo=$ac_try;; 17119esac 17120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17121 (eval "$ac_try") 2>&5 17122 ac_status=$? 17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17124 (exit $ac_status); }; } && 17125 { ac_try='test -s conftest$ac_exeext' 17126 { (case "(($ac_try" in 17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17128 *) ac_try_echo=$ac_try;; 17129esac 17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17131 (eval "$ac_try") 2>&5 17132 ac_status=$? 17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17134 (exit $ac_status); }; }; then 17135 eval "$as_ac_var=yes" 17136else 17137 echo "$as_me: failed program was:" >&5 17138sed 's/^/| /' conftest.$ac_ext >&5 17139 17140 eval "$as_ac_var=no" 17141fi 17142 17143rm -f core conftest.err conftest.$ac_objext \ 17144 conftest$ac_exeext conftest.$ac_ext 17145fi 17146ac_res=`eval echo '${'$as_ac_var'}'` 17147 { echo "$as_me:$LINENO: result: $ac_res" >&5 17148echo "${ECHO_T}$ac_res" >&6; } 17149if test `eval echo '${'$as_ac_var'}'` = yes; then 17150 cat >>confdefs.h <<_ACEOF 17151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17152_ACEOF 17153 17154else 17155 case " $LIBOBJS " in 17156 *" $ac_func.$ac_objext "* ) ;; 17157 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 17158 ;; 17159esac 17160 17161fi 17162done 17163 17164 17165 if test $ac_cv_func_strtoul = no; then 17166 17167 17168 17169 17170 : 17171 17172 17173 17174 17175 17176 17177 17178 fi 17179 17180 17181 17182 if test "$ac_cv_type_unsigned_long_long" = yes; then 17183 17184for ac_func in strtoull 17185do 17186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17187{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17190 echo $ECHO_N "(cached) $ECHO_C" >&6 17191else 17192 cat >conftest.$ac_ext <<_ACEOF 17193/* confdefs.h. */ 17194_ACEOF 17195cat confdefs.h >>conftest.$ac_ext 17196cat >>conftest.$ac_ext <<_ACEOF 17197/* end confdefs.h. */ 17198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17199 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17200#define $ac_func innocuous_$ac_func 17201 17202/* System header to define __stub macros and hopefully few prototypes, 17203 which can conflict with char $ac_func (); below. 17204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17205 <limits.h> exists even on freestanding compilers. */ 17206 17207#ifdef __STDC__ 17208# include <limits.h> 17209#else 17210# include <assert.h> 17211#endif 17212 17213#undef $ac_func 17214 17215/* Override any GCC internal prototype to avoid an error. 17216 Use char because int might match the return type of a GCC 17217 builtin and then its argument prototype would still apply. */ 17218#ifdef __cplusplus 17219extern "C" 17220#endif 17221char $ac_func (); 17222/* The GNU C library defines this for functions which it implements 17223 to always fail with ENOSYS. Some functions are actually named 17224 something starting with __ and the normal name is an alias. */ 17225#if defined __stub_$ac_func || defined __stub___$ac_func 17226choke me 17227#endif 17228 17229int 17230main () 17231{ 17232return $ac_func (); 17233 ; 17234 return 0; 17235} 17236_ACEOF 17237rm -f conftest.$ac_objext conftest$ac_exeext 17238if { (ac_try="$ac_link" 17239case "(($ac_try" in 17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17241 *) ac_try_echo=$ac_try;; 17242esac 17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17244 (eval "$ac_link") 2>conftest.er1 17245 ac_status=$? 17246 grep -v '^ *+' conftest.er1 >conftest.err 17247 rm -f conftest.er1 17248 cat conftest.err >&5 17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17250 (exit $ac_status); } && 17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17252 { (case "(($ac_try" in 17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17254 *) ac_try_echo=$ac_try;; 17255esac 17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17257 (eval "$ac_try") 2>&5 17258 ac_status=$? 17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17260 (exit $ac_status); }; } && 17261 { ac_try='test -s conftest$ac_exeext' 17262 { (case "(($ac_try" in 17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17264 *) ac_try_echo=$ac_try;; 17265esac 17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17267 (eval "$ac_try") 2>&5 17268 ac_status=$? 17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17270 (exit $ac_status); }; }; then 17271 eval "$as_ac_var=yes" 17272else 17273 echo "$as_me: failed program was:" >&5 17274sed 's/^/| /' conftest.$ac_ext >&5 17275 17276 eval "$as_ac_var=no" 17277fi 17278 17279rm -f core conftest.err conftest.$ac_objext \ 17280 conftest$ac_exeext conftest.$ac_ext 17281fi 17282ac_res=`eval echo '${'$as_ac_var'}'` 17283 { echo "$as_me:$LINENO: result: $ac_res" >&5 17284echo "${ECHO_T}$ac_res" >&6; } 17285if test `eval echo '${'$as_ac_var'}'` = yes; then 17286 cat >>confdefs.h <<_ACEOF 17287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17288_ACEOF 17289 17290else 17291 case " $LIBOBJS " in 17292 *" $ac_func.$ac_objext "* ) ;; 17293 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 17294 ;; 17295esac 17296 17297fi 17298done 17299 17300 17301 if test $ac_cv_func_strtoull = no; then 17302 17303 : 17304 17305 fi 17306 fi 17307 17308 17309 17310 17311 17312 { echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5 17313echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6; } 17314if test "${jm_cv_func_strtoumax_macro+set}" = set; then 17315 echo $ECHO_N "(cached) $ECHO_C" >&6 17316else 17317 cat >conftest.$ac_ext <<_ACEOF 17318/* confdefs.h. */ 17319_ACEOF 17320cat confdefs.h >>conftest.$ac_ext 17321cat >>conftest.$ac_ext <<_ACEOF 17322/* end confdefs.h. */ 17323#include <inttypes.h> 17324#ifdef strtoumax 17325 inttypes_h_defines_strtoumax 17326#endif 17327_ACEOF 17328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17329 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then 17330 jm_cv_func_strtoumax_macro=yes 17331else 17332 jm_cv_func_strtoumax_macro=no 17333fi 17334rm -f conftest* 17335 17336fi 17337{ echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5 17338echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6; } 17339 17340 if test "$jm_cv_func_strtoumax_macro" != yes; then 17341 17342for ac_func in strtoumax 17343do 17344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17345{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17348 echo $ECHO_N "(cached) $ECHO_C" >&6 17349else 17350 cat >conftest.$ac_ext <<_ACEOF 17351/* confdefs.h. */ 17352_ACEOF 17353cat confdefs.h >>conftest.$ac_ext 17354cat >>conftest.$ac_ext <<_ACEOF 17355/* end confdefs.h. */ 17356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17357 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17358#define $ac_func innocuous_$ac_func 17359 17360/* System header to define __stub macros and hopefully few prototypes, 17361 which can conflict with char $ac_func (); below. 17362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17363 <limits.h> exists even on freestanding compilers. */ 17364 17365#ifdef __STDC__ 17366# include <limits.h> 17367#else 17368# include <assert.h> 17369#endif 17370 17371#undef $ac_func 17372 17373/* Override any GCC internal prototype to avoid an error. 17374 Use char because int might match the return type of a GCC 17375 builtin and then its argument prototype would still apply. */ 17376#ifdef __cplusplus 17377extern "C" 17378#endif 17379char $ac_func (); 17380/* The GNU C library defines this for functions which it implements 17381 to always fail with ENOSYS. Some functions are actually named 17382 something starting with __ and the normal name is an alias. */ 17383#if defined __stub_$ac_func || defined __stub___$ac_func 17384choke me 17385#endif 17386 17387int 17388main () 17389{ 17390return $ac_func (); 17391 ; 17392 return 0; 17393} 17394_ACEOF 17395rm -f conftest.$ac_objext conftest$ac_exeext 17396if { (ac_try="$ac_link" 17397case "(($ac_try" in 17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17399 *) ac_try_echo=$ac_try;; 17400esac 17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17402 (eval "$ac_link") 2>conftest.er1 17403 ac_status=$? 17404 grep -v '^ *+' conftest.er1 >conftest.err 17405 rm -f conftest.er1 17406 cat conftest.err >&5 17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17408 (exit $ac_status); } && 17409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17410 { (case "(($ac_try" in 17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17412 *) ac_try_echo=$ac_try;; 17413esac 17414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17415 (eval "$ac_try") 2>&5 17416 ac_status=$? 17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17418 (exit $ac_status); }; } && 17419 { ac_try='test -s conftest$ac_exeext' 17420 { (case "(($ac_try" in 17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17422 *) ac_try_echo=$ac_try;; 17423esac 17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17425 (eval "$ac_try") 2>&5 17426 ac_status=$? 17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17428 (exit $ac_status); }; }; then 17429 eval "$as_ac_var=yes" 17430else 17431 echo "$as_me: failed program was:" >&5 17432sed 's/^/| /' conftest.$ac_ext >&5 17433 17434 eval "$as_ac_var=no" 17435fi 17436 17437rm -f core conftest.err conftest.$ac_objext \ 17438 conftest$ac_exeext conftest.$ac_ext 17439fi 17440ac_res=`eval echo '${'$as_ac_var'}'` 17441 { echo "$as_me:$LINENO: result: $ac_res" >&5 17442echo "${ECHO_T}$ac_res" >&6; } 17443if test `eval echo '${'$as_ac_var'}'` = yes; then 17444 cat >>confdefs.h <<_ACEOF 17445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17446_ACEOF 17447 17448else 17449 case " $LIBOBJS " in 17450 *" $ac_func.$ac_objext "* ) ;; 17451 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 17452 ;; 17453esac 17454 17455fi 17456done 17457 17458 17459 if test $ac_cv_func_strtoumax = no; then 17460 17461 17462 17463 17464 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 17465 17466 test $ac_cv_type_unsigned_long_long = yes \ 17467 && ac_type='unsigned long long' \ 17468 || ac_type='unsigned long' 17469 17470cat >>confdefs.h <<_ACEOF 17471#define uintmax_t $ac_type 17472_ACEOF 17473 17474 else 17475 17476cat >>confdefs.h <<\_ACEOF 17477#define HAVE_UINTMAX_T 1 17478_ACEOF 17479 17480 fi 17481 17482 { echo "$as_me:$LINENO: checking whether strtoull is declared" >&5 17483echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6; } 17484if test "${ac_cv_have_decl_strtoull+set}" = set; then 17485 echo $ECHO_N "(cached) $ECHO_C" >&6 17486else 17487 cat >conftest.$ac_ext <<_ACEOF 17488/* confdefs.h. */ 17489_ACEOF 17490cat confdefs.h >>conftest.$ac_ext 17491cat >>conftest.$ac_ext <<_ACEOF 17492/* end confdefs.h. */ 17493$ac_includes_default 17494int 17495main () 17496{ 17497#ifndef strtoull 17498 char *p = (char *) strtoull; 17499 return !p; 17500#endif 17501 17502 ; 17503 return 0; 17504} 17505_ACEOF 17506rm -f conftest.$ac_objext 17507if { (ac_try="$ac_compile" 17508case "(($ac_try" in 17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17510 *) ac_try_echo=$ac_try;; 17511esac 17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17513 (eval "$ac_compile") 2>conftest.er1 17514 ac_status=$? 17515 grep -v '^ *+' conftest.er1 >conftest.err 17516 rm -f conftest.er1 17517 cat conftest.err >&5 17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17519 (exit $ac_status); } && 17520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17521 { (case "(($ac_try" in 17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523 *) ac_try_echo=$ac_try;; 17524esac 17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17526 (eval "$ac_try") 2>&5 17527 ac_status=$? 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17529 (exit $ac_status); }; } && 17530 { ac_try='test -s conftest.$ac_objext' 17531 { (case "(($ac_try" in 17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17533 *) ac_try_echo=$ac_try;; 17534esac 17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17536 (eval "$ac_try") 2>&5 17537 ac_status=$? 17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17539 (exit $ac_status); }; }; then 17540 ac_cv_have_decl_strtoull=yes 17541else 17542 echo "$as_me: failed program was:" >&5 17543sed 's/^/| /' conftest.$ac_ext >&5 17544 17545 ac_cv_have_decl_strtoull=no 17546fi 17547 17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17549fi 17550{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5 17551echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6; } 17552if test $ac_cv_have_decl_strtoull = yes; then 17553 17554cat >>confdefs.h <<_ACEOF 17555#define HAVE_DECL_STRTOULL 1 17556_ACEOF 17557 17558 17559else 17560 cat >>confdefs.h <<_ACEOF 17561#define HAVE_DECL_STRTOULL 0 17562_ACEOF 17563 17564 17565fi 17566 17567 17568 17569 17570 fi 17571 fi 17572 17573 17574 17575 17576 17577 { echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5 17578echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6; } 17579if test "${gl_cv_time_r_posix+set}" = set; then 17580 echo $ECHO_N "(cached) $ECHO_C" >&6 17581else 17582 cat >conftest.$ac_ext <<_ACEOF 17583/* confdefs.h. */ 17584_ACEOF 17585cat confdefs.h >>conftest.$ac_ext 17586cat >>conftest.$ac_ext <<_ACEOF 17587/* end confdefs.h. */ 17588#include <time.h> 17589int 17590main () 17591{ 17592/* We don't need to append 'restrict's to the argument types, 17593 even though the POSIX signature has the 'restrict's, 17594 since C99 says they can't affect type compatibility. */ 17595 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; 17596 ; 17597 return 0; 17598} 17599_ACEOF 17600rm -f conftest.$ac_objext 17601if { (ac_try="$ac_compile" 17602case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605esac 17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17607 (eval "$ac_compile") 2>conftest.er1 17608 ac_status=$? 17609 grep -v '^ *+' conftest.er1 >conftest.err 17610 rm -f conftest.er1 17611 cat conftest.err >&5 17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17613 (exit $ac_status); } && 17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17615 { (case "(($ac_try" in 17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17617 *) ac_try_echo=$ac_try;; 17618esac 17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17620 (eval "$ac_try") 2>&5 17621 ac_status=$? 17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17623 (exit $ac_status); }; } && 17624 { ac_try='test -s conftest.$ac_objext' 17625 { (case "(($ac_try" in 17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17627 *) ac_try_echo=$ac_try;; 17628esac 17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17630 (eval "$ac_try") 2>&5 17631 ac_status=$? 17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17633 (exit $ac_status); }; }; then 17634 gl_cv_time_r_posix=yes 17635else 17636 echo "$as_me: failed program was:" >&5 17637sed 's/^/| /' conftest.$ac_ext >&5 17638 17639 gl_cv_time_r_posix=no 17640fi 17641 17642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17643fi 17644{ echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5 17645echo "${ECHO_T}$gl_cv_time_r_posix" >&6; } 17646 if test $gl_cv_time_r_posix = yes; then 17647 17648cat >>confdefs.h <<\_ACEOF 17649#define HAVE_TIME_R_POSIX 1 17650_ACEOF 17651 17652 else 17653 case " $LIBOBJS " in 17654 *" time_r.$ac_objext "* ) ;; 17655 *) LIBOBJS="$LIBOBJS time_r.$ac_objext" 17656 ;; 17657esac 17658 17659 17660 : 17661 17662 fi 17663 17664 17665 17666 17667for ac_func in vasnprintf 17668do 17669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17670{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17673 echo $ECHO_N "(cached) $ECHO_C" >&6 17674else 17675 cat >conftest.$ac_ext <<_ACEOF 17676/* confdefs.h. */ 17677_ACEOF 17678cat confdefs.h >>conftest.$ac_ext 17679cat >>conftest.$ac_ext <<_ACEOF 17680/* end confdefs.h. */ 17681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17682 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17683#define $ac_func innocuous_$ac_func 17684 17685/* System header to define __stub macros and hopefully few prototypes, 17686 which can conflict with char $ac_func (); below. 17687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17688 <limits.h> exists even on freestanding compilers. */ 17689 17690#ifdef __STDC__ 17691# include <limits.h> 17692#else 17693# include <assert.h> 17694#endif 17695 17696#undef $ac_func 17697 17698/* Override any GCC internal prototype to avoid an error. 17699 Use char because int might match the return type of a GCC 17700 builtin and then its argument prototype would still apply. */ 17701#ifdef __cplusplus 17702extern "C" 17703#endif 17704char $ac_func (); 17705/* The GNU C library defines this for functions which it implements 17706 to always fail with ENOSYS. Some functions are actually named 17707 something starting with __ and the normal name is an alias. */ 17708#if defined __stub_$ac_func || defined __stub___$ac_func 17709choke me 17710#endif 17711 17712int 17713main () 17714{ 17715return $ac_func (); 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720rm -f conftest.$ac_objext conftest$ac_exeext 17721if { (ac_try="$ac_link" 17722case "(($ac_try" in 17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17724 *) ac_try_echo=$ac_try;; 17725esac 17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17727 (eval "$ac_link") 2>conftest.er1 17728 ac_status=$? 17729 grep -v '^ *+' conftest.er1 >conftest.err 17730 rm -f conftest.er1 17731 cat conftest.err >&5 17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17733 (exit $ac_status); } && 17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17735 { (case "(($ac_try" in 17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17737 *) ac_try_echo=$ac_try;; 17738esac 17739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17740 (eval "$ac_try") 2>&5 17741 ac_status=$? 17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17743 (exit $ac_status); }; } && 17744 { ac_try='test -s conftest$ac_exeext' 17745 { (case "(($ac_try" in 17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17747 *) ac_try_echo=$ac_try;; 17748esac 17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17750 (eval "$ac_try") 2>&5 17751 ac_status=$? 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17753 (exit $ac_status); }; }; then 17754 eval "$as_ac_var=yes" 17755else 17756 echo "$as_me: failed program was:" >&5 17757sed 's/^/| /' conftest.$ac_ext >&5 17758 17759 eval "$as_ac_var=no" 17760fi 17761 17762rm -f core conftest.err conftest.$ac_objext \ 17763 conftest$ac_exeext conftest.$ac_ext 17764fi 17765ac_res=`eval echo '${'$as_ac_var'}'` 17766 { echo "$as_me:$LINENO: result: $ac_res" >&5 17767echo "${ECHO_T}$ac_res" >&6; } 17768if test `eval echo '${'$as_ac_var'}'` = yes; then 17769 cat >>confdefs.h <<_ACEOF 17770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17771_ACEOF 17772 17773else 17774 case " $LIBOBJS " in 17775 *" $ac_func.$ac_objext "* ) ;; 17776 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 17777 ;; 17778esac 17779 17780fi 17781done 17782 17783 17784 if test $ac_cv_func_vasnprintf = no; then 17785 case " $LIBOBJS " in 17786 *" printf-args.$ac_objext "* ) ;; 17787 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" 17788 ;; 17789esac 17790 17791 case " $LIBOBJS " in 17792 *" printf-parse.$ac_objext "* ) ;; 17793 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" 17794 ;; 17795esac 17796 17797 case " $LIBOBJS " in 17798 *" asnprintf.$ac_objext "* ) ;; 17799 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" 17800 ;; 17801esac 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 17817echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 17818if test "${ac_cv_type_ptrdiff_t+set}" = set; then 17819 echo $ECHO_N "(cached) $ECHO_C" >&6 17820else 17821 cat >conftest.$ac_ext <<_ACEOF 17822/* confdefs.h. */ 17823_ACEOF 17824cat confdefs.h >>conftest.$ac_ext 17825cat >>conftest.$ac_ext <<_ACEOF 17826/* end confdefs.h. */ 17827$ac_includes_default 17828typedef ptrdiff_t ac__type_new_; 17829int 17830main () 17831{ 17832if ((ac__type_new_ *) 0) 17833 return 0; 17834if (sizeof (ac__type_new_)) 17835 return 0; 17836 ; 17837 return 0; 17838} 17839_ACEOF 17840rm -f conftest.$ac_objext 17841if { (ac_try="$ac_compile" 17842case "(($ac_try" in 17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17844 *) ac_try_echo=$ac_try;; 17845esac 17846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17847 (eval "$ac_compile") 2>conftest.er1 17848 ac_status=$? 17849 grep -v '^ *+' conftest.er1 >conftest.err 17850 rm -f conftest.er1 17851 cat conftest.err >&5 17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17853 (exit $ac_status); } && 17854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17855 { (case "(($ac_try" in 17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17857 *) ac_try_echo=$ac_try;; 17858esac 17859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17860 (eval "$ac_try") 2>&5 17861 ac_status=$? 17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17863 (exit $ac_status); }; } && 17864 { ac_try='test -s conftest.$ac_objext' 17865 { (case "(($ac_try" in 17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17867 *) ac_try_echo=$ac_try;; 17868esac 17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17870 (eval "$ac_try") 2>&5 17871 ac_status=$? 17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17873 (exit $ac_status); }; }; then 17874 ac_cv_type_ptrdiff_t=yes 17875else 17876 echo "$as_me: failed program was:" >&5 17877sed 's/^/| /' conftest.$ac_ext >&5 17878 17879 ac_cv_type_ptrdiff_t=no 17880fi 17881 17882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17883fi 17884{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 17885echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 17886if test $ac_cv_type_ptrdiff_t = yes; then 17887 17888cat >>confdefs.h <<_ACEOF 17889#define HAVE_PTRDIFF_T 1 17890_ACEOF 17891 17892 17893fi 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905for ac_func in snprintf wcslen 17906do 17907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17908{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17911 echo $ECHO_N "(cached) $ECHO_C" >&6 17912else 17913 cat >conftest.$ac_ext <<_ACEOF 17914/* confdefs.h. */ 17915_ACEOF 17916cat confdefs.h >>conftest.$ac_ext 17917cat >>conftest.$ac_ext <<_ACEOF 17918/* end confdefs.h. */ 17919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17921#define $ac_func innocuous_$ac_func 17922 17923/* System header to define __stub macros and hopefully few prototypes, 17924 which can conflict with char $ac_func (); below. 17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17926 <limits.h> exists even on freestanding compilers. */ 17927 17928#ifdef __STDC__ 17929# include <limits.h> 17930#else 17931# include <assert.h> 17932#endif 17933 17934#undef $ac_func 17935 17936/* Override any GCC internal prototype to avoid an error. 17937 Use char because int might match the return type of a GCC 17938 builtin and then its argument prototype would still apply. */ 17939#ifdef __cplusplus 17940extern "C" 17941#endif 17942char $ac_func (); 17943/* The GNU C library defines this for functions which it implements 17944 to always fail with ENOSYS. Some functions are actually named 17945 something starting with __ and the normal name is an alias. */ 17946#if defined __stub_$ac_func || defined __stub___$ac_func 17947choke me 17948#endif 17949 17950int 17951main () 17952{ 17953return $ac_func (); 17954 ; 17955 return 0; 17956} 17957_ACEOF 17958rm -f conftest.$ac_objext conftest$ac_exeext 17959if { (ac_try="$ac_link" 17960case "(($ac_try" in 17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17962 *) ac_try_echo=$ac_try;; 17963esac 17964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17965 (eval "$ac_link") 2>conftest.er1 17966 ac_status=$? 17967 grep -v '^ *+' conftest.er1 >conftest.err 17968 rm -f conftest.er1 17969 cat conftest.err >&5 17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17971 (exit $ac_status); } && 17972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17973 { (case "(($ac_try" in 17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17975 *) ac_try_echo=$ac_try;; 17976esac 17977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17978 (eval "$ac_try") 2>&5 17979 ac_status=$? 17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17981 (exit $ac_status); }; } && 17982 { ac_try='test -s conftest$ac_exeext' 17983 { (case "(($ac_try" in 17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17985 *) ac_try_echo=$ac_try;; 17986esac 17987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17988 (eval "$ac_try") 2>&5 17989 ac_status=$? 17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17991 (exit $ac_status); }; }; then 17992 eval "$as_ac_var=yes" 17993else 17994 echo "$as_me: failed program was:" >&5 17995sed 's/^/| /' conftest.$ac_ext >&5 17996 17997 eval "$as_ac_var=no" 17998fi 17999 18000rm -f core conftest.err conftest.$ac_objext \ 18001 conftest$ac_exeext conftest.$ac_ext 18002fi 18003ac_res=`eval echo '${'$as_ac_var'}'` 18004 { echo "$as_me:$LINENO: result: $ac_res" >&5 18005echo "${ECHO_T}$ac_res" >&6; } 18006if test `eval echo '${'$as_ac_var'}'` = yes; then 18007 cat >>confdefs.h <<_ACEOF 18008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18009_ACEOF 18010 18011fi 18012done 18013 18014 18015 18016 18017 fi 18018 18019 18020 18021for ac_func in vasprintf 18022do 18023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18024{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18026if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18027 echo $ECHO_N "(cached) $ECHO_C" >&6 18028else 18029 cat >conftest.$ac_ext <<_ACEOF 18030/* confdefs.h. */ 18031_ACEOF 18032cat confdefs.h >>conftest.$ac_ext 18033cat >>conftest.$ac_ext <<_ACEOF 18034/* end confdefs.h. */ 18035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18037#define $ac_func innocuous_$ac_func 18038 18039/* System header to define __stub macros and hopefully few prototypes, 18040 which can conflict with char $ac_func (); below. 18041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18042 <limits.h> exists even on freestanding compilers. */ 18043 18044#ifdef __STDC__ 18045# include <limits.h> 18046#else 18047# include <assert.h> 18048#endif 18049 18050#undef $ac_func 18051 18052/* Override any GCC internal prototype to avoid an error. 18053 Use char because int might match the return type of a GCC 18054 builtin and then its argument prototype would still apply. */ 18055#ifdef __cplusplus 18056extern "C" 18057#endif 18058char $ac_func (); 18059/* The GNU C library defines this for functions which it implements 18060 to always fail with ENOSYS. Some functions are actually named 18061 something starting with __ and the normal name is an alias. */ 18062#if defined __stub_$ac_func || defined __stub___$ac_func 18063choke me 18064#endif 18065 18066int 18067main () 18068{ 18069return $ac_func (); 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074rm -f conftest.$ac_objext conftest$ac_exeext 18075if { (ac_try="$ac_link" 18076case "(($ac_try" in 18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18078 *) ac_try_echo=$ac_try;; 18079esac 18080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18081 (eval "$ac_link") 2>conftest.er1 18082 ac_status=$? 18083 grep -v '^ *+' conftest.er1 >conftest.err 18084 rm -f conftest.er1 18085 cat conftest.err >&5 18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18087 (exit $ac_status); } && 18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18089 { (case "(($ac_try" in 18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18091 *) ac_try_echo=$ac_try;; 18092esac 18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18094 (eval "$ac_try") 2>&5 18095 ac_status=$? 18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18097 (exit $ac_status); }; } && 18098 { ac_try='test -s conftest$ac_exeext' 18099 { (case "(($ac_try" in 18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18101 *) ac_try_echo=$ac_try;; 18102esac 18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18104 (eval "$ac_try") 2>&5 18105 ac_status=$? 18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18107 (exit $ac_status); }; }; then 18108 eval "$as_ac_var=yes" 18109else 18110 echo "$as_me: failed program was:" >&5 18111sed 's/^/| /' conftest.$ac_ext >&5 18112 18113 eval "$as_ac_var=no" 18114fi 18115 18116rm -f core conftest.err conftest.$ac_objext \ 18117 conftest$ac_exeext conftest.$ac_ext 18118fi 18119ac_res=`eval echo '${'$as_ac_var'}'` 18120 { echo "$as_me:$LINENO: result: $ac_res" >&5 18121echo "${ECHO_T}$ac_res" >&6; } 18122if test `eval echo '${'$as_ac_var'}'` = yes; then 18123 cat >>confdefs.h <<_ACEOF 18124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18125_ACEOF 18126 18127else 18128 case " $LIBOBJS " in 18129 *" $ac_func.$ac_objext "* ) ;; 18130 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 18131 ;; 18132esac 18133 18134fi 18135done 18136 18137 18138 if test $ac_cv_func_vasprintf = no; then 18139 case " $LIBOBJS " in 18140 *" asprintf.$ac_objext "* ) ;; 18141 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 18142 ;; 18143esac 18144 18145 18146 18147 18148 18149 fi 18150 18151 18152 18153 case " $LIBOBJS " in 18154 *" xmalloc.$ac_objext "* ) ;; 18155 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" 18156 ;; 18157esac 18158 18159 18160 18161 : 18162 18163 18164 18165 : 18166 18167 18168 18169 18170 18171 18172for ac_header in stdint.h 18173do 18174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18176 { echo "$as_me:$LINENO: checking for $ac_header" >&5 18177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18179 echo $ECHO_N "(cached) $ECHO_C" >&6 18180fi 18181ac_res=`eval echo '${'$as_ac_Header'}'` 18182 { echo "$as_me:$LINENO: result: $ac_res" >&5 18183echo "${ECHO_T}$ac_res" >&6; } 18184else 18185 # Is the header compilable? 18186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 18187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 18188cat >conftest.$ac_ext <<_ACEOF 18189/* confdefs.h. */ 18190_ACEOF 18191cat confdefs.h >>conftest.$ac_ext 18192cat >>conftest.$ac_ext <<_ACEOF 18193/* end confdefs.h. */ 18194$ac_includes_default 18195#include <$ac_header> 18196_ACEOF 18197rm -f conftest.$ac_objext 18198if { (ac_try="$ac_compile" 18199case "(($ac_try" in 18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18201 *) ac_try_echo=$ac_try;; 18202esac 18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18204 (eval "$ac_compile") 2>conftest.er1 18205 ac_status=$? 18206 grep -v '^ *+' conftest.er1 >conftest.err 18207 rm -f conftest.er1 18208 cat conftest.err >&5 18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18210 (exit $ac_status); } && 18211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18212 { (case "(($ac_try" in 18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18214 *) ac_try_echo=$ac_try;; 18215esac 18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18217 (eval "$ac_try") 2>&5 18218 ac_status=$? 18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18220 (exit $ac_status); }; } && 18221 { ac_try='test -s conftest.$ac_objext' 18222 { (case "(($ac_try" in 18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18224 *) ac_try_echo=$ac_try;; 18225esac 18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18227 (eval "$ac_try") 2>&5 18228 ac_status=$? 18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18230 (exit $ac_status); }; }; then 18231 ac_header_compiler=yes 18232else 18233 echo "$as_me: failed program was:" >&5 18234sed 's/^/| /' conftest.$ac_ext >&5 18235 18236 ac_header_compiler=no 18237fi 18238 18239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18241echo "${ECHO_T}$ac_header_compiler" >&6; } 18242 18243# Is the header present? 18244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 18245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 18246cat >conftest.$ac_ext <<_ACEOF 18247/* confdefs.h. */ 18248_ACEOF 18249cat confdefs.h >>conftest.$ac_ext 18250cat >>conftest.$ac_ext <<_ACEOF 18251/* end confdefs.h. */ 18252#include <$ac_header> 18253_ACEOF 18254if { (ac_try="$ac_cpp conftest.$ac_ext" 18255case "(($ac_try" in 18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18257 *) ac_try_echo=$ac_try;; 18258esac 18259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 18261 ac_status=$? 18262 grep -v '^ *+' conftest.er1 >conftest.err 18263 rm -f conftest.er1 18264 cat conftest.err >&5 18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18266 (exit $ac_status); } >/dev/null; then 18267 if test -s conftest.err; then 18268 ac_cpp_err=$ac_c_preproc_warn_flag 18269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18270 else 18271 ac_cpp_err= 18272 fi 18273else 18274 ac_cpp_err=yes 18275fi 18276if test -z "$ac_cpp_err"; then 18277 ac_header_preproc=yes 18278else 18279 echo "$as_me: failed program was:" >&5 18280sed 's/^/| /' conftest.$ac_ext >&5 18281 18282 ac_header_preproc=no 18283fi 18284 18285rm -f conftest.err conftest.$ac_ext 18286{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18287echo "${ECHO_T}$ac_header_preproc" >&6; } 18288 18289# So? What about this header? 18290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18291 yes:no: ) 18292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18296 ac_header_preproc=yes 18297 ;; 18298 no:yes:* ) 18299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18311 ( cat <<\_ASBOX 18312## ---------------------------------------- ## 18313## Report this to vladch@k804.mainet.msk.su ## 18314## ---------------------------------------- ## 18315_ASBOX 18316 ) | sed "s/^/$as_me: WARNING: /" >&2 18317 ;; 18318esac 18319{ echo "$as_me:$LINENO: checking for $ac_header" >&5 18320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18322 echo $ECHO_N "(cached) $ECHO_C" >&6 18323else 18324 eval "$as_ac_Header=\$ac_header_preproc" 18325fi 18326ac_res=`eval echo '${'$as_ac_Header'}'` 18327 { echo "$as_me:$LINENO: result: $ac_res" >&5 18328echo "${ECHO_T}$ac_res" >&6; } 18329 18330fi 18331if test `eval echo '${'$as_ac_Header'}'` = yes; then 18332 cat >>confdefs.h <<_ACEOF 18333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18334_ACEOF 18335 18336fi 18337 18338done 18339 18340 18341 18342 18343 : 18344 18345 18346 18347 18348 case " $LIBOBJS " in 18349 *" xstrtol.$ac_objext "* ) ;; 18350 *) LIBOBJS="$LIBOBJS xstrtol.$ac_objext" 18351 ;; 18352esac 18353 18354 case " $LIBOBJS " in 18355 *" xstrtoul.$ac_objext "* ) ;; 18356 *) LIBOBJS="$LIBOBJS xstrtoul.$ac_objext" 18357 ;; 18358esac 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370# Gettext 18371 18372 18373 MKINSTALLDIRS= 18374 if test -n "$ac_aux_dir"; then 18375 case "$ac_aux_dir" in 18376 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 18377 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 18378 esac 18379 fi 18380 if test -z "$MKINSTALLDIRS"; then 18381 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 18382 fi 18383 18384 18385 18386 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 18387echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 18388 # Check whether --enable-nls was given. 18389if test "${enable_nls+set}" = set; then 18390 enableval=$enable_nls; USE_NLS=$enableval 18391else 18392 USE_NLS=yes 18393fi 18394 18395 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 18396echo "${ECHO_T}$USE_NLS" >&6; } 18397 18398 18399 18400 18401 18402 18403# Prepare PATH_SEPARATOR. 18404# The user is always right. 18405if test "${PATH_SEPARATOR+set}" != set; then 18406 echo "#! /bin/sh" >conf$$.sh 18407 echo "exit 0" >>conf$$.sh 18408 chmod +x conf$$.sh 18409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18410 PATH_SEPARATOR=';' 18411 else 18412 PATH_SEPARATOR=: 18413 fi 18414 rm -f conf$$.sh 18415fi 18416 18417# Find out how to test for executable files. Don't use a zero-byte file, 18418# as systems may use methods other than mode bits to determine executability. 18419cat >conf$$.file <<_ASEOF 18420#! /bin/sh 18421exit 0 18422_ASEOF 18423chmod +x conf$$.file 18424if test -x conf$$.file >/dev/null 2>&1; then 18425 ac_executable_p="test -x" 18426else 18427 ac_executable_p="test -f" 18428fi 18429rm -f conf$$.file 18430 18431# Extract the first word of "msgfmt", so it can be a program name with args. 18432set dummy msgfmt; ac_word=$2 18433{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18435if test "${ac_cv_path_MSGFMT+set}" = set; then 18436 echo $ECHO_N "(cached) $ECHO_C" >&6 18437else 18438 case "$MSGFMT" in 18439 [\\/]* | ?:[\\/]*) 18440 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18441 ;; 18442 *) 18443 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18444 for ac_dir in $PATH; do 18445 IFS="$ac_save_IFS" 18446 test -z "$ac_dir" && ac_dir=. 18447 for ac_exec_ext in '' $ac_executable_extensions; do 18448 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18449 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18450 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 18451 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18452 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 18453 break 2 18454 fi 18455 fi 18456 done 18457 done 18458 IFS="$ac_save_IFS" 18459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 18460 ;; 18461esac 18462fi 18463MSGFMT="$ac_cv_path_MSGFMT" 18464if test "$MSGFMT" != ":"; then 18465 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 18466echo "${ECHO_T}$MSGFMT" >&6; } 18467else 18468 { echo "$as_me:$LINENO: result: no" >&5 18469echo "${ECHO_T}no" >&6; } 18470fi 18471 18472 # Extract the first word of "gmsgfmt", so it can be a program name with args. 18473set dummy gmsgfmt; ac_word=$2 18474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18476if test "${ac_cv_path_GMSGFMT+set}" = set; then 18477 echo $ECHO_N "(cached) $ECHO_C" >&6 18478else 18479 case $GMSGFMT in 18480 [\\/]* | ?:[\\/]*) 18481 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 18482 ;; 18483 *) 18484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18485for as_dir in $PATH 18486do 18487 IFS=$as_save_IFS 18488 test -z "$as_dir" && as_dir=. 18489 for ac_exec_ext in '' $ac_executable_extensions; do 18490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 18491 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 18492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18493 break 2 18494 fi 18495done 18496done 18497IFS=$as_save_IFS 18498 18499 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 18500 ;; 18501esac 18502fi 18503GMSGFMT=$ac_cv_path_GMSGFMT 18504if test -n "$GMSGFMT"; then 18505 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 18506echo "${ECHO_T}$GMSGFMT" >&6; } 18507else 18508 { echo "$as_me:$LINENO: result: no" >&5 18509echo "${ECHO_T}no" >&6; } 18510fi 18511 18512 18513 18514 18515# Prepare PATH_SEPARATOR. 18516# The user is always right. 18517if test "${PATH_SEPARATOR+set}" != set; then 18518 echo "#! /bin/sh" >conf$$.sh 18519 echo "exit 0" >>conf$$.sh 18520 chmod +x conf$$.sh 18521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18522 PATH_SEPARATOR=';' 18523 else 18524 PATH_SEPARATOR=: 18525 fi 18526 rm -f conf$$.sh 18527fi 18528 18529# Find out how to test for executable files. Don't use a zero-byte file, 18530# as systems may use methods other than mode bits to determine executability. 18531cat >conf$$.file <<_ASEOF 18532#! /bin/sh 18533exit 0 18534_ASEOF 18535chmod +x conf$$.file 18536if test -x conf$$.file >/dev/null 2>&1; then 18537 ac_executable_p="test -x" 18538else 18539 ac_executable_p="test -f" 18540fi 18541rm -f conf$$.file 18542 18543# Extract the first word of "xgettext", so it can be a program name with args. 18544set dummy xgettext; ac_word=$2 18545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18547if test "${ac_cv_path_XGETTEXT+set}" = set; then 18548 echo $ECHO_N "(cached) $ECHO_C" >&6 18549else 18550 case "$XGETTEXT" in 18551 [\\/]* | ?:[\\/]*) 18552 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18553 ;; 18554 *) 18555 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18556 for ac_dir in $PATH; do 18557 IFS="$ac_save_IFS" 18558 test -z "$ac_dir" && ac_dir=. 18559 for ac_exec_ext in '' $ac_executable_extensions; do 18560 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18561 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18562 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 18563 (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 18564 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 18565 break 2 18566 fi 18567 fi 18568 done 18569 done 18570 IFS="$ac_save_IFS" 18571 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 18572 ;; 18573esac 18574fi 18575XGETTEXT="$ac_cv_path_XGETTEXT" 18576if test "$XGETTEXT" != ":"; then 18577 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 18578echo "${ECHO_T}$XGETTEXT" >&6; } 18579else 18580 { echo "$as_me:$LINENO: result: no" >&5 18581echo "${ECHO_T}no" >&6; } 18582fi 18583 18584 rm -f messages.po 18585 18586 18587# Prepare PATH_SEPARATOR. 18588# The user is always right. 18589if test "${PATH_SEPARATOR+set}" != set; then 18590 echo "#! /bin/sh" >conf$$.sh 18591 echo "exit 0" >>conf$$.sh 18592 chmod +x conf$$.sh 18593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18594 PATH_SEPARATOR=';' 18595 else 18596 PATH_SEPARATOR=: 18597 fi 18598 rm -f conf$$.sh 18599fi 18600 18601# Find out how to test for executable files. Don't use a zero-byte file, 18602# as systems may use methods other than mode bits to determine executability. 18603cat >conf$$.file <<_ASEOF 18604#! /bin/sh 18605exit 0 18606_ASEOF 18607chmod +x conf$$.file 18608if test -x conf$$.file >/dev/null 2>&1; then 18609 ac_executable_p="test -x" 18610else 18611 ac_executable_p="test -f" 18612fi 18613rm -f conf$$.file 18614 18615# Extract the first word of "msgmerge", so it can be a program name with args. 18616set dummy msgmerge; ac_word=$2 18617{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18619if test "${ac_cv_path_MSGMERGE+set}" = set; then 18620 echo $ECHO_N "(cached) $ECHO_C" >&6 18621else 18622 case "$MSGMERGE" in 18623 [\\/]* | ?:[\\/]*) 18624 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 18625 ;; 18626 *) 18627 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18628 for ac_dir in $PATH; do 18629 IFS="$ac_save_IFS" 18630 test -z "$ac_dir" && ac_dir=. 18631 for ac_exec_ext in '' $ac_executable_extensions; do 18632 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18633 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18634 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 18635 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 18636 break 2 18637 fi 18638 fi 18639 done 18640 done 18641 IFS="$ac_save_IFS" 18642 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 18643 ;; 18644esac 18645fi 18646MSGMERGE="$ac_cv_path_MSGMERGE" 18647if test "$MSGMERGE" != ":"; then 18648 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 18649echo "${ECHO_T}$MSGMERGE" >&6; } 18650else 18651 { echo "$as_me:$LINENO: result: no" >&5 18652echo "${ECHO_T}no" >&6; } 18653fi 18654 18655 18656 if test "$GMSGFMT" != ":"; then 18657 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 18658 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18659 : ; 18660 else 18661 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 18662 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 18663echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 18664 GMSGFMT=":" 18665 fi 18666 fi 18667 18668 if test "$XGETTEXT" != ":"; then 18669 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 18670 (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 18671 : ; 18672 else 18673 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 18674echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 18675 XGETTEXT=":" 18676 fi 18677 rm -f messages.po 18678 fi 18679 18680 ac_config_commands="$ac_config_commands default-1" 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 18700echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 18701if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 18702 echo $ECHO_N "(cached) $ECHO_C" >&6 18703else 18704 gt_save_CPPFLAGS="$CPPFLAGS" 18705 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 18706 gt_save_LIBS="$LIBS" 18707 LIBS="$LIBS -framework CoreFoundation" 18708 cat >conftest.$ac_ext <<_ACEOF 18709/* confdefs.h. */ 18710_ACEOF 18711cat confdefs.h >>conftest.$ac_ext 18712cat >>conftest.$ac_ext <<_ACEOF 18713/* end confdefs.h. */ 18714#include <CFPreferences.h> 18715int 18716main () 18717{ 18718CFPreferencesCopyAppValue(NULL, NULL) 18719 ; 18720 return 0; 18721} 18722_ACEOF 18723rm -f conftest.$ac_objext conftest$ac_exeext 18724if { (ac_try="$ac_link" 18725case "(($ac_try" in 18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18727 *) ac_try_echo=$ac_try;; 18728esac 18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18730 (eval "$ac_link") 2>conftest.er1 18731 ac_status=$? 18732 grep -v '^ *+' conftest.er1 >conftest.err 18733 rm -f conftest.er1 18734 cat conftest.err >&5 18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18736 (exit $ac_status); } && 18737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18738 { (case "(($ac_try" in 18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18740 *) ac_try_echo=$ac_try;; 18741esac 18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18743 (eval "$ac_try") 2>&5 18744 ac_status=$? 18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18746 (exit $ac_status); }; } && 18747 { ac_try='test -s conftest$ac_exeext' 18748 { (case "(($ac_try" in 18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18750 *) ac_try_echo=$ac_try;; 18751esac 18752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18753 (eval "$ac_try") 2>&5 18754 ac_status=$? 18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18756 (exit $ac_status); }; }; then 18757 gt_cv_func_CFPreferencesCopyAppValue=yes 18758else 18759 echo "$as_me: failed program was:" >&5 18760sed 's/^/| /' conftest.$ac_ext >&5 18761 18762 gt_cv_func_CFPreferencesCopyAppValue=no 18763fi 18764 18765rm -f core conftest.err conftest.$ac_objext \ 18766 conftest$ac_exeext conftest.$ac_ext 18767 CPPFLAGS="$gt_save_CPPFLAGS" 18768 LIBS="$gt_save_LIBS" 18769fi 18770{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 18771echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 18772 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 18773 18774cat >>confdefs.h <<\_ACEOF 18775#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 18776_ACEOF 18777 18778 fi 18779 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 18780echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } 18781if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 18782 echo $ECHO_N "(cached) $ECHO_C" >&6 18783else 18784 gt_save_CPPFLAGS="$CPPFLAGS" 18785 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 18786 gt_save_LIBS="$LIBS" 18787 LIBS="$LIBS -framework CoreFoundation" 18788 cat >conftest.$ac_ext <<_ACEOF 18789/* confdefs.h. */ 18790_ACEOF 18791cat confdefs.h >>conftest.$ac_ext 18792cat >>conftest.$ac_ext <<_ACEOF 18793/* end confdefs.h. */ 18794#include <CFLocale.h> 18795int 18796main () 18797{ 18798CFLocaleCopyCurrent(); 18799 ; 18800 return 0; 18801} 18802_ACEOF 18803rm -f conftest.$ac_objext conftest$ac_exeext 18804if { (ac_try="$ac_link" 18805case "(($ac_try" in 18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18807 *) ac_try_echo=$ac_try;; 18808esac 18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18810 (eval "$ac_link") 2>conftest.er1 18811 ac_status=$? 18812 grep -v '^ *+' conftest.er1 >conftest.err 18813 rm -f conftest.er1 18814 cat conftest.err >&5 18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18816 (exit $ac_status); } && 18817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18818 { (case "(($ac_try" in 18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18820 *) ac_try_echo=$ac_try;; 18821esac 18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18823 (eval "$ac_try") 2>&5 18824 ac_status=$? 18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18826 (exit $ac_status); }; } && 18827 { ac_try='test -s conftest$ac_exeext' 18828 { (case "(($ac_try" in 18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18830 *) ac_try_echo=$ac_try;; 18831esac 18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18833 (eval "$ac_try") 2>&5 18834 ac_status=$? 18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18836 (exit $ac_status); }; }; then 18837 gt_cv_func_CFLocaleCopyCurrent=yes 18838else 18839 echo "$as_me: failed program was:" >&5 18840sed 's/^/| /' conftest.$ac_ext >&5 18841 18842 gt_cv_func_CFLocaleCopyCurrent=no 18843fi 18844 18845rm -f core conftest.err conftest.$ac_objext \ 18846 conftest$ac_exeext conftest.$ac_ext 18847 CPPFLAGS="$gt_save_CPPFLAGS" 18848 LIBS="$gt_save_LIBS" 18849fi 18850{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 18851echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } 18852 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 18853 18854cat >>confdefs.h <<\_ACEOF 18855#define HAVE_CFLOCALECOPYCURRENT 1 18856_ACEOF 18857 18858 fi 18859 INTL_MACOSX_LIBS= 18860 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 18861 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 18862 fi 18863 18864 18865 18866 18867 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 18868echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 18869 # Check whether --enable-nls was given. 18870if test "${enable_nls+set}" = set; then 18871 enableval=$enable_nls; USE_NLS=$enableval 18872else 18873 USE_NLS=yes 18874fi 18875 18876 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 18877echo "${ECHO_T}$USE_NLS" >&6; } 18878 18879 18880 18881 18882 LIBINTL= 18883 LTLIBINTL= 18884 POSUB= 18885 18886 if test "$USE_NLS" = "yes"; then 18887 gt_use_preinstalled_gnugettext=no 18888 18889 18890 18891 18892 18893 18894 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 18895echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 18896if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 18897 echo $ECHO_N "(cached) $ECHO_C" >&6 18898else 18899 cat >conftest.$ac_ext <<_ACEOF 18900/* confdefs.h. */ 18901_ACEOF 18902cat confdefs.h >>conftest.$ac_ext 18903cat >>conftest.$ac_ext <<_ACEOF 18904/* end confdefs.h. */ 18905#include <libintl.h> 18906extern int _nl_msg_cat_cntr; 18907extern int *_nl_domain_bindings; 18908int 18909main () 18910{ 18911bindtextdomain ("", ""); 18912return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 18913 ; 18914 return 0; 18915} 18916_ACEOF 18917rm -f conftest.$ac_objext conftest$ac_exeext 18918if { (ac_try="$ac_link" 18919case "(($ac_try" in 18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18921 *) ac_try_echo=$ac_try;; 18922esac 18923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18924 (eval "$ac_link") 2>conftest.er1 18925 ac_status=$? 18926 grep -v '^ *+' conftest.er1 >conftest.err 18927 rm -f conftest.er1 18928 cat conftest.err >&5 18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18930 (exit $ac_status); } && 18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18932 { (case "(($ac_try" in 18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18934 *) ac_try_echo=$ac_try;; 18935esac 18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18937 (eval "$ac_try") 2>&5 18938 ac_status=$? 18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18940 (exit $ac_status); }; } && 18941 { ac_try='test -s conftest$ac_exeext' 18942 { (case "(($ac_try" in 18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18944 *) ac_try_echo=$ac_try;; 18945esac 18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18947 (eval "$ac_try") 2>&5 18948 ac_status=$? 18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18950 (exit $ac_status); }; }; then 18951 gt_cv_func_gnugettext1_libc=yes 18952else 18953 echo "$as_me: failed program was:" >&5 18954sed 's/^/| /' conftest.$ac_ext >&5 18955 18956 gt_cv_func_gnugettext1_libc=no 18957fi 18958 18959rm -f core conftest.err conftest.$ac_objext \ 18960 conftest$ac_exeext conftest.$ac_ext 18961fi 18962{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 18963echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 18964 18965 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 18966 18967 18968 18969 18970 18971 am_save_CPPFLAGS="$CPPFLAGS" 18972 18973 for element in $INCICONV; do 18974 haveit= 18975 for x in $CPPFLAGS; do 18976 18977 acl_save_prefix="$prefix" 18978 prefix="$acl_final_prefix" 18979 acl_save_exec_prefix="$exec_prefix" 18980 exec_prefix="$acl_final_exec_prefix" 18981 eval x=\"$x\" 18982 exec_prefix="$acl_save_exec_prefix" 18983 prefix="$acl_save_prefix" 18984 18985 if test "X$x" = "X$element"; then 18986 haveit=yes 18987 break 18988 fi 18989 done 18990 if test -z "$haveit"; then 18991 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 18992 fi 18993 done 18994 18995 18996 { echo "$as_me:$LINENO: checking for iconv" >&5 18997echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 18998if test "${am_cv_func_iconv+set}" = set; then 18999 echo $ECHO_N "(cached) $ECHO_C" >&6 19000else 19001 19002 am_cv_func_iconv="no, consider installing GNU libiconv" 19003 am_cv_lib_iconv=no 19004 cat >conftest.$ac_ext <<_ACEOF 19005/* confdefs.h. */ 19006_ACEOF 19007cat confdefs.h >>conftest.$ac_ext 19008cat >>conftest.$ac_ext <<_ACEOF 19009/* end confdefs.h. */ 19010#include <stdlib.h> 19011#include <iconv.h> 19012int 19013main () 19014{ 19015iconv_t cd = iconv_open("",""); 19016 iconv(cd,NULL,NULL,NULL,NULL); 19017 iconv_close(cd); 19018 ; 19019 return 0; 19020} 19021_ACEOF 19022rm -f conftest.$ac_objext conftest$ac_exeext 19023if { (ac_try="$ac_link" 19024case "(($ac_try" in 19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19026 *) ac_try_echo=$ac_try;; 19027esac 19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19029 (eval "$ac_link") 2>conftest.er1 19030 ac_status=$? 19031 grep -v '^ *+' conftest.er1 >conftest.err 19032 rm -f conftest.er1 19033 cat conftest.err >&5 19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19035 (exit $ac_status); } && 19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19037 { (case "(($ac_try" in 19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19039 *) ac_try_echo=$ac_try;; 19040esac 19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19042 (eval "$ac_try") 2>&5 19043 ac_status=$? 19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19045 (exit $ac_status); }; } && 19046 { ac_try='test -s conftest$ac_exeext' 19047 { (case "(($ac_try" in 19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19049 *) ac_try_echo=$ac_try;; 19050esac 19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19052 (eval "$ac_try") 2>&5 19053 ac_status=$? 19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19055 (exit $ac_status); }; }; then 19056 am_cv_func_iconv=yes 19057else 19058 echo "$as_me: failed program was:" >&5 19059sed 's/^/| /' conftest.$ac_ext >&5 19060 19061 19062fi 19063 19064rm -f core conftest.err conftest.$ac_objext \ 19065 conftest$ac_exeext conftest.$ac_ext 19066 if test "$am_cv_func_iconv" != yes; then 19067 am_save_LIBS="$LIBS" 19068 LIBS="$LIBS $LIBICONV" 19069 cat >conftest.$ac_ext <<_ACEOF 19070/* confdefs.h. */ 19071_ACEOF 19072cat confdefs.h >>conftest.$ac_ext 19073cat >>conftest.$ac_ext <<_ACEOF 19074/* end confdefs.h. */ 19075#include <stdlib.h> 19076#include <iconv.h> 19077int 19078main () 19079{ 19080iconv_t cd = iconv_open("",""); 19081 iconv(cd,NULL,NULL,NULL,NULL); 19082 iconv_close(cd); 19083 ; 19084 return 0; 19085} 19086_ACEOF 19087rm -f conftest.$ac_objext conftest$ac_exeext 19088if { (ac_try="$ac_link" 19089case "(($ac_try" in 19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19091 *) ac_try_echo=$ac_try;; 19092esac 19093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19094 (eval "$ac_link") 2>conftest.er1 19095 ac_status=$? 19096 grep -v '^ *+' conftest.er1 >conftest.err 19097 rm -f conftest.er1 19098 cat conftest.err >&5 19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19100 (exit $ac_status); } && 19101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19102 { (case "(($ac_try" in 19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19104 *) ac_try_echo=$ac_try;; 19105esac 19106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19107 (eval "$ac_try") 2>&5 19108 ac_status=$? 19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19110 (exit $ac_status); }; } && 19111 { ac_try='test -s conftest$ac_exeext' 19112 { (case "(($ac_try" in 19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19114 *) ac_try_echo=$ac_try;; 19115esac 19116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19117 (eval "$ac_try") 2>&5 19118 ac_status=$? 19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19120 (exit $ac_status); }; }; then 19121 am_cv_lib_iconv=yes 19122 am_cv_func_iconv=yes 19123else 19124 echo "$as_me: failed program was:" >&5 19125sed 's/^/| /' conftest.$ac_ext >&5 19126 19127 19128fi 19129 19130rm -f core conftest.err conftest.$ac_objext \ 19131 conftest$ac_exeext conftest.$ac_ext 19132 LIBS="$am_save_LIBS" 19133 fi 19134 19135fi 19136{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 19137echo "${ECHO_T}$am_cv_func_iconv" >&6; } 19138 if test "$am_cv_func_iconv" = yes; then 19139 19140cat >>confdefs.h <<\_ACEOF 19141#define HAVE_ICONV 1 19142_ACEOF 19143 19144 fi 19145 if test "$am_cv_lib_iconv" = yes; then 19146 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 19147echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 19148 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 19149echo "${ECHO_T}$LIBICONV" >&6; } 19150 else 19151 CPPFLAGS="$am_save_CPPFLAGS" 19152 LIBICONV= 19153 LTLIBICONV= 19154 fi 19155 19156 19157 19158 19159 19160 19161 19162 use_additional=yes 19163 19164 acl_save_prefix="$prefix" 19165 prefix="$acl_final_prefix" 19166 acl_save_exec_prefix="$exec_prefix" 19167 exec_prefix="$acl_final_exec_prefix" 19168 19169 eval additional_includedir=\"$includedir\" 19170 eval additional_libdir=\"$libdir\" 19171 19172 exec_prefix="$acl_save_exec_prefix" 19173 prefix="$acl_save_prefix" 19174 19175 19176# Check whether --with-libintl-prefix was given. 19177if test "${with_libintl_prefix+set}" = set; then 19178 withval=$with_libintl_prefix; 19179 if test "X$withval" = "Xno"; then 19180 use_additional=no 19181 else 19182 if test "X$withval" = "X"; then 19183 19184 acl_save_prefix="$prefix" 19185 prefix="$acl_final_prefix" 19186 acl_save_exec_prefix="$exec_prefix" 19187 exec_prefix="$acl_final_exec_prefix" 19188 19189 eval additional_includedir=\"$includedir\" 19190 eval additional_libdir=\"$libdir\" 19191 19192 exec_prefix="$acl_save_exec_prefix" 19193 prefix="$acl_save_prefix" 19194 19195 else 19196 additional_includedir="$withval/include" 19197 additional_libdir="$withval/$acl_libdirstem" 19198 fi 19199 fi 19200 19201fi 19202 19203 LIBINTL= 19204 LTLIBINTL= 19205 INCINTL= 19206 rpathdirs= 19207 ltrpathdirs= 19208 names_already_handled= 19209 names_next_round='intl ' 19210 while test -n "$names_next_round"; do 19211 names_this_round="$names_next_round" 19212 names_next_round= 19213 for name in $names_this_round; do 19214 already_handled= 19215 for n in $names_already_handled; do 19216 if test "$n" = "$name"; then 19217 already_handled=yes 19218 break 19219 fi 19220 done 19221 if test -z "$already_handled"; then 19222 names_already_handled="$names_already_handled $name" 19223 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 19224 eval value=\"\$HAVE_LIB$uppername\" 19225 if test -n "$value"; then 19226 if test "$value" = yes; then 19227 eval value=\"\$LIB$uppername\" 19228 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 19229 eval value=\"\$LTLIB$uppername\" 19230 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 19231 else 19232 : 19233 fi 19234 else 19235 found_dir= 19236 found_la= 19237 found_so= 19238 found_a= 19239 if test $use_additional = yes; then 19240 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 19241 found_dir="$additional_libdir" 19242 found_so="$additional_libdir/lib$name.$shlibext" 19243 if test -f "$additional_libdir/lib$name.la"; then 19244 found_la="$additional_libdir/lib$name.la" 19245 fi 19246 else 19247 if test -f "$additional_libdir/lib$name.$libext"; then 19248 found_dir="$additional_libdir" 19249 found_a="$additional_libdir/lib$name.$libext" 19250 if test -f "$additional_libdir/lib$name.la"; then 19251 found_la="$additional_libdir/lib$name.la" 19252 fi 19253 fi 19254 fi 19255 fi 19256 if test "X$found_dir" = "X"; then 19257 for x in $LDFLAGS $LTLIBINTL; do 19258 19259 acl_save_prefix="$prefix" 19260 prefix="$acl_final_prefix" 19261 acl_save_exec_prefix="$exec_prefix" 19262 exec_prefix="$acl_final_exec_prefix" 19263 eval x=\"$x\" 19264 exec_prefix="$acl_save_exec_prefix" 19265 prefix="$acl_save_prefix" 19266 19267 case "$x" in 19268 -L*) 19269 dir=`echo "X$x" | sed -e 's/^X-L//'` 19270 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 19271 found_dir="$dir" 19272 found_so="$dir/lib$name.$shlibext" 19273 if test -f "$dir/lib$name.la"; then 19274 found_la="$dir/lib$name.la" 19275 fi 19276 else 19277 if test -f "$dir/lib$name.$libext"; then 19278 found_dir="$dir" 19279 found_a="$dir/lib$name.$libext" 19280 if test -f "$dir/lib$name.la"; then 19281 found_la="$dir/lib$name.la" 19282 fi 19283 fi 19284 fi 19285 ;; 19286 esac 19287 if test "X$found_dir" != "X"; then 19288 break 19289 fi 19290 done 19291 fi 19292 if test "X$found_dir" != "X"; then 19293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 19294 if test "X$found_so" != "X"; then 19295 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 19296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19297 else 19298 haveit= 19299 for x in $ltrpathdirs; do 19300 if test "X$x" = "X$found_dir"; then 19301 haveit=yes 19302 break 19303 fi 19304 done 19305 if test -z "$haveit"; then 19306 ltrpathdirs="$ltrpathdirs $found_dir" 19307 fi 19308 if test "$hardcode_direct" = yes; then 19309 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19310 else 19311 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 19312 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19313 haveit= 19314 for x in $rpathdirs; do 19315 if test "X$x" = "X$found_dir"; then 19316 haveit=yes 19317 break 19318 fi 19319 done 19320 if test -z "$haveit"; then 19321 rpathdirs="$rpathdirs $found_dir" 19322 fi 19323 else 19324 haveit= 19325 for x in $LDFLAGS $LIBINTL; do 19326 19327 acl_save_prefix="$prefix" 19328 prefix="$acl_final_prefix" 19329 acl_save_exec_prefix="$exec_prefix" 19330 exec_prefix="$acl_final_exec_prefix" 19331 eval x=\"$x\" 19332 exec_prefix="$acl_save_exec_prefix" 19333 prefix="$acl_save_prefix" 19334 19335 if test "X$x" = "X-L$found_dir"; then 19336 haveit=yes 19337 break 19338 fi 19339 done 19340 if test -z "$haveit"; then 19341 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 19342 fi 19343 if test "$hardcode_minus_L" != no; then 19344 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19345 else 19346 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19347 fi 19348 fi 19349 fi 19350 fi 19351 else 19352 if test "X$found_a" != "X"; then 19353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 19354 else 19355 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 19356 fi 19357 fi 19358 additional_includedir= 19359 case "$found_dir" in 19360 */$acl_libdirstem | */$acl_libdirstem/) 19361 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19362 additional_includedir="$basedir/include" 19363 ;; 19364 esac 19365 if test "X$additional_includedir" != "X"; then 19366 if test "X$additional_includedir" != "X/usr/include"; then 19367 haveit= 19368 if test "X$additional_includedir" = "X/usr/local/include"; then 19369 if test -n "$GCC"; then 19370 case $host_os in 19371 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19372 esac 19373 fi 19374 fi 19375 if test -z "$haveit"; then 19376 for x in $CPPFLAGS $INCINTL; do 19377 19378 acl_save_prefix="$prefix" 19379 prefix="$acl_final_prefix" 19380 acl_save_exec_prefix="$exec_prefix" 19381 exec_prefix="$acl_final_exec_prefix" 19382 eval x=\"$x\" 19383 exec_prefix="$acl_save_exec_prefix" 19384 prefix="$acl_save_prefix" 19385 19386 if test "X$x" = "X-I$additional_includedir"; then 19387 haveit=yes 19388 break 19389 fi 19390 done 19391 if test -z "$haveit"; then 19392 if test -d "$additional_includedir"; then 19393 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 19394 fi 19395 fi 19396 fi 19397 fi 19398 fi 19399 if test -n "$found_la"; then 19400 save_libdir="$libdir" 19401 case "$found_la" in 19402 */* | *\\*) . "$found_la" ;; 19403 *) . "./$found_la" ;; 19404 esac 19405 libdir="$save_libdir" 19406 for dep in $dependency_libs; do 19407 case "$dep" in 19408 -L*) 19409 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19410 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 19411 haveit= 19412 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 19413 if test -n "$GCC"; then 19414 case $host_os in 19415 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19416 esac 19417 fi 19418 fi 19419 if test -z "$haveit"; then 19420 haveit= 19421 for x in $LDFLAGS $LIBINTL; do 19422 19423 acl_save_prefix="$prefix" 19424 prefix="$acl_final_prefix" 19425 acl_save_exec_prefix="$exec_prefix" 19426 exec_prefix="$acl_final_exec_prefix" 19427 eval x=\"$x\" 19428 exec_prefix="$acl_save_exec_prefix" 19429 prefix="$acl_save_prefix" 19430 19431 if test "X$x" = "X-L$additional_libdir"; then 19432 haveit=yes 19433 break 19434 fi 19435 done 19436 if test -z "$haveit"; then 19437 if test -d "$additional_libdir"; then 19438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 19439 fi 19440 fi 19441 haveit= 19442 for x in $LDFLAGS $LTLIBINTL; do 19443 19444 acl_save_prefix="$prefix" 19445 prefix="$acl_final_prefix" 19446 acl_save_exec_prefix="$exec_prefix" 19447 exec_prefix="$acl_final_exec_prefix" 19448 eval x=\"$x\" 19449 exec_prefix="$acl_save_exec_prefix" 19450 prefix="$acl_save_prefix" 19451 19452 if test "X$x" = "X-L$additional_libdir"; then 19453 haveit=yes 19454 break 19455 fi 19456 done 19457 if test -z "$haveit"; then 19458 if test -d "$additional_libdir"; then 19459 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 19460 fi 19461 fi 19462 fi 19463 fi 19464 ;; 19465 -R*) 19466 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19467 if test "$enable_rpath" != no; then 19468 haveit= 19469 for x in $rpathdirs; do 19470 if test "X$x" = "X$dir"; then 19471 haveit=yes 19472 break 19473 fi 19474 done 19475 if test -z "$haveit"; then 19476 rpathdirs="$rpathdirs $dir" 19477 fi 19478 haveit= 19479 for x in $ltrpathdirs; do 19480 if test "X$x" = "X$dir"; then 19481 haveit=yes 19482 break 19483 fi 19484 done 19485 if test -z "$haveit"; then 19486 ltrpathdirs="$ltrpathdirs $dir" 19487 fi 19488 fi 19489 ;; 19490 -l*) 19491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19492 ;; 19493 *.la) 19494 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19495 ;; 19496 *) 19497 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 19498 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 19499 ;; 19500 esac 19501 done 19502 fi 19503 else 19504 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19505 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 19506 fi 19507 fi 19508 fi 19509 done 19510 done 19511 if test "X$rpathdirs" != "X"; then 19512 if test -n "$hardcode_libdir_separator"; then 19513 alldirs= 19514 for found_dir in $rpathdirs; do 19515 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 19516 done 19517 acl_save_libdir="$libdir" 19518 libdir="$alldirs" 19519 eval flag=\"$hardcode_libdir_flag_spec\" 19520 libdir="$acl_save_libdir" 19521 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 19522 else 19523 for found_dir in $rpathdirs; do 19524 acl_save_libdir="$libdir" 19525 libdir="$found_dir" 19526 eval flag=\"$hardcode_libdir_flag_spec\" 19527 libdir="$acl_save_libdir" 19528 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 19529 done 19530 fi 19531 fi 19532 if test "X$ltrpathdirs" != "X"; then 19533 for found_dir in $ltrpathdirs; do 19534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 19535 done 19536 fi 19537 19538 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 19539echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 19540if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 19541 echo $ECHO_N "(cached) $ECHO_C" >&6 19542else 19543 gt_save_CPPFLAGS="$CPPFLAGS" 19544 CPPFLAGS="$CPPFLAGS $INCINTL" 19545 gt_save_LIBS="$LIBS" 19546 LIBS="$LIBS $LIBINTL" 19547 cat >conftest.$ac_ext <<_ACEOF 19548/* confdefs.h. */ 19549_ACEOF 19550cat confdefs.h >>conftest.$ac_ext 19551cat >>conftest.$ac_ext <<_ACEOF 19552/* end confdefs.h. */ 19553#include <libintl.h> 19554extern int _nl_msg_cat_cntr; 19555extern 19556#ifdef __cplusplus 19557"C" 19558#endif 19559const char *_nl_expand_alias (const char *); 19560int 19561main () 19562{ 19563bindtextdomain ("", ""); 19564return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 19565 ; 19566 return 0; 19567} 19568_ACEOF 19569rm -f conftest.$ac_objext conftest$ac_exeext 19570if { (ac_try="$ac_link" 19571case "(($ac_try" in 19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19573 *) ac_try_echo=$ac_try;; 19574esac 19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19576 (eval "$ac_link") 2>conftest.er1 19577 ac_status=$? 19578 grep -v '^ *+' conftest.er1 >conftest.err 19579 rm -f conftest.er1 19580 cat conftest.err >&5 19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19582 (exit $ac_status); } && 19583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19584 { (case "(($ac_try" in 19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19586 *) ac_try_echo=$ac_try;; 19587esac 19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19589 (eval "$ac_try") 2>&5 19590 ac_status=$? 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19592 (exit $ac_status); }; } && 19593 { ac_try='test -s conftest$ac_exeext' 19594 { (case "(($ac_try" in 19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19596 *) ac_try_echo=$ac_try;; 19597esac 19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19599 (eval "$ac_try") 2>&5 19600 ac_status=$? 19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19602 (exit $ac_status); }; }; then 19603 gt_cv_func_gnugettext1_libintl=yes 19604else 19605 echo "$as_me: failed program was:" >&5 19606sed 's/^/| /' conftest.$ac_ext >&5 19607 19608 gt_cv_func_gnugettext1_libintl=no 19609fi 19610 19611rm -f core conftest.err conftest.$ac_objext \ 19612 conftest$ac_exeext conftest.$ac_ext 19613 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 19614 LIBS="$LIBS $LIBICONV" 19615 cat >conftest.$ac_ext <<_ACEOF 19616/* confdefs.h. */ 19617_ACEOF 19618cat confdefs.h >>conftest.$ac_ext 19619cat >>conftest.$ac_ext <<_ACEOF 19620/* end confdefs.h. */ 19621#include <libintl.h> 19622extern int _nl_msg_cat_cntr; 19623extern 19624#ifdef __cplusplus 19625"C" 19626#endif 19627const char *_nl_expand_alias (const char *); 19628int 19629main () 19630{ 19631bindtextdomain ("", ""); 19632return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 19633 ; 19634 return 0; 19635} 19636_ACEOF 19637rm -f conftest.$ac_objext conftest$ac_exeext 19638if { (ac_try="$ac_link" 19639case "(($ac_try" in 19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19641 *) ac_try_echo=$ac_try;; 19642esac 19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19644 (eval "$ac_link") 2>conftest.er1 19645 ac_status=$? 19646 grep -v '^ *+' conftest.er1 >conftest.err 19647 rm -f conftest.er1 19648 cat conftest.err >&5 19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19650 (exit $ac_status); } && 19651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19652 { (case "(($ac_try" in 19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19654 *) ac_try_echo=$ac_try;; 19655esac 19656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19657 (eval "$ac_try") 2>&5 19658 ac_status=$? 19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19660 (exit $ac_status); }; } && 19661 { ac_try='test -s conftest$ac_exeext' 19662 { (case "(($ac_try" in 19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19664 *) ac_try_echo=$ac_try;; 19665esac 19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19667 (eval "$ac_try") 2>&5 19668 ac_status=$? 19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19670 (exit $ac_status); }; }; then 19671 LIBINTL="$LIBINTL $LIBICONV" 19672 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 19673 gt_cv_func_gnugettext1_libintl=yes 19674 19675else 19676 echo "$as_me: failed program was:" >&5 19677sed 's/^/| /' conftest.$ac_ext >&5 19678 19679 19680fi 19681 19682rm -f core conftest.err conftest.$ac_objext \ 19683 conftest$ac_exeext conftest.$ac_ext 19684 fi 19685 CPPFLAGS="$gt_save_CPPFLAGS" 19686 LIBS="$gt_save_LIBS" 19687fi 19688{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 19689echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 19690 fi 19691 19692 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 19693 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 19694 && test "$PACKAGE" != gettext-runtime \ 19695 && test "$PACKAGE" != gettext-tools; }; then 19696 gt_use_preinstalled_gnugettext=yes 19697 else 19698 LIBINTL= 19699 LTLIBINTL= 19700 INCINTL= 19701 fi 19702 19703 19704 19705 if test -n "$INTL_MACOSX_LIBS"; then 19706 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 19707 || test "$nls_cv_use_gnu_gettext" = "yes"; then 19708 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 19709 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 19710 fi 19711 fi 19712 19713 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 19714 || test "$nls_cv_use_gnu_gettext" = "yes"; then 19715 19716cat >>confdefs.h <<\_ACEOF 19717#define ENABLE_NLS 1 19718_ACEOF 19719 19720 else 19721 USE_NLS=no 19722 fi 19723 fi 19724 19725 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 19726echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 19727 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 19728echo "${ECHO_T}$USE_NLS" >&6; } 19729 if test "$USE_NLS" = "yes"; then 19730 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 19731echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 19732 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 19733 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 19734 gt_source="external libintl" 19735 else 19736 gt_source="libc" 19737 fi 19738 else 19739 gt_source="included intl directory" 19740 fi 19741 { echo "$as_me:$LINENO: result: $gt_source" >&5 19742echo "${ECHO_T}$gt_source" >&6; } 19743 fi 19744 19745 if test "$USE_NLS" = "yes"; then 19746 19747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 19748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 19749 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 19750echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 19751 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 19752echo "${ECHO_T}$LIBINTL" >&6; } 19753 19754 for element in $INCINTL; do 19755 haveit= 19756 for x in $CPPFLAGS; do 19757 19758 acl_save_prefix="$prefix" 19759 prefix="$acl_final_prefix" 19760 acl_save_exec_prefix="$exec_prefix" 19761 exec_prefix="$acl_final_exec_prefix" 19762 eval x=\"$x\" 19763 exec_prefix="$acl_save_exec_prefix" 19764 prefix="$acl_save_prefix" 19765 19766 if test "X$x" = "X$element"; then 19767 haveit=yes 19768 break 19769 fi 19770 done 19771 if test -z "$haveit"; then 19772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19773 fi 19774 done 19775 19776 fi 19777 19778 19779cat >>confdefs.h <<\_ACEOF 19780#define HAVE_GETTEXT 1 19781_ACEOF 19782 19783 19784cat >>confdefs.h <<\_ACEOF 19785#define HAVE_DCGETTEXT 1 19786_ACEOF 19787 19788 fi 19789 19790 POSUB=po 19791 fi 19792 19793 19794 19795 INTLLIBS="$LIBINTL" 19796 19797 19798 19799 19800 19801 19802# This is commented out, because with it, 'autoreconf -is' in autogen.sh will 19803# try to overwrite files in m4 from the gettext distribution. Unfortunately, 19804# at least in my case, gnulib provides newer files than the gettext distribution 19805# does. 19806# AM_GNU_GETTEXT_VERSION(0.14.3) 19807 19808# Checks for programs 19809ac_ext=c 19810ac_cpp='$CPP $CPPFLAGS' 19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19813ac_compiler_gnu=$ac_cv_c_compiler_gnu 19814if test -n "$ac_tool_prefix"; then 19815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19816set dummy ${ac_tool_prefix}gcc; ac_word=$2 19817{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19819if test "${ac_cv_prog_CC+set}" = set; then 19820 echo $ECHO_N "(cached) $ECHO_C" >&6 19821else 19822 if test -n "$CC"; then 19823 ac_cv_prog_CC="$CC" # Let the user override the test. 19824else 19825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19826for as_dir in $PATH 19827do 19828 IFS=$as_save_IFS 19829 test -z "$as_dir" && as_dir=. 19830 for ac_exec_ext in '' $ac_executable_extensions; do 19831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19832 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19834 break 2 19835 fi 19836done 19837done 19838IFS=$as_save_IFS 19839 19840fi 19841fi 19842CC=$ac_cv_prog_CC 19843if test -n "$CC"; then 19844 { echo "$as_me:$LINENO: result: $CC" >&5 19845echo "${ECHO_T}$CC" >&6; } 19846else 19847 { echo "$as_me:$LINENO: result: no" >&5 19848echo "${ECHO_T}no" >&6; } 19849fi 19850 19851 19852fi 19853if test -z "$ac_cv_prog_CC"; then 19854 ac_ct_CC=$CC 19855 # Extract the first word of "gcc", so it can be a program name with args. 19856set dummy gcc; ac_word=$2 19857{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19860 echo $ECHO_N "(cached) $ECHO_C" >&6 19861else 19862 if test -n "$ac_ct_CC"; then 19863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19864else 19865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19866for as_dir in $PATH 19867do 19868 IFS=$as_save_IFS 19869 test -z "$as_dir" && as_dir=. 19870 for ac_exec_ext in '' $ac_executable_extensions; do 19871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19872 ac_cv_prog_ac_ct_CC="gcc" 19873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19874 break 2 19875 fi 19876done 19877done 19878IFS=$as_save_IFS 19879 19880fi 19881fi 19882ac_ct_CC=$ac_cv_prog_ac_ct_CC 19883if test -n "$ac_ct_CC"; then 19884 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19885echo "${ECHO_T}$ac_ct_CC" >&6; } 19886else 19887 { echo "$as_me:$LINENO: result: no" >&5 19888echo "${ECHO_T}no" >&6; } 19889fi 19890 19891 if test "x$ac_ct_CC" = x; then 19892 CC="" 19893 else 19894 case $cross_compiling:$ac_tool_warned in 19895yes:) 19896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19897whose name does not start with the host triplet. If you think this 19898configuration is useful to you, please write to autoconf@gnu.org." >&5 19899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19900whose name does not start with the host triplet. If you think this 19901configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19902ac_tool_warned=yes ;; 19903esac 19904 CC=$ac_ct_CC 19905 fi 19906else 19907 CC="$ac_cv_prog_CC" 19908fi 19909 19910if test -z "$CC"; then 19911 if test -n "$ac_tool_prefix"; then 19912 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19913set dummy ${ac_tool_prefix}cc; ac_word=$2 19914{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19916if test "${ac_cv_prog_CC+set}" = set; then 19917 echo $ECHO_N "(cached) $ECHO_C" >&6 19918else 19919 if test -n "$CC"; then 19920 ac_cv_prog_CC="$CC" # Let the user override the test. 19921else 19922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19923for as_dir in $PATH 19924do 19925 IFS=$as_save_IFS 19926 test -z "$as_dir" && as_dir=. 19927 for ac_exec_ext in '' $ac_executable_extensions; do 19928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19929 ac_cv_prog_CC="${ac_tool_prefix}cc" 19930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19931 break 2 19932 fi 19933done 19934done 19935IFS=$as_save_IFS 19936 19937fi 19938fi 19939CC=$ac_cv_prog_CC 19940if test -n "$CC"; then 19941 { echo "$as_me:$LINENO: result: $CC" >&5 19942echo "${ECHO_T}$CC" >&6; } 19943else 19944 { echo "$as_me:$LINENO: result: no" >&5 19945echo "${ECHO_T}no" >&6; } 19946fi 19947 19948 19949 fi 19950fi 19951if test -z "$CC"; then 19952 # Extract the first word of "cc", so it can be a program name with args. 19953set dummy cc; ac_word=$2 19954{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19956if test "${ac_cv_prog_CC+set}" = set; then 19957 echo $ECHO_N "(cached) $ECHO_C" >&6 19958else 19959 if test -n "$CC"; then 19960 ac_cv_prog_CC="$CC" # Let the user override the test. 19961else 19962 ac_prog_rejected=no 19963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19964for as_dir in $PATH 19965do 19966 IFS=$as_save_IFS 19967 test -z "$as_dir" && as_dir=. 19968 for ac_exec_ext in '' $ac_executable_extensions; do 19969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19971 ac_prog_rejected=yes 19972 continue 19973 fi 19974 ac_cv_prog_CC="cc" 19975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19976 break 2 19977 fi 19978done 19979done 19980IFS=$as_save_IFS 19981 19982if test $ac_prog_rejected = yes; then 19983 # We found a bogon in the path, so make sure we never use it. 19984 set dummy $ac_cv_prog_CC 19985 shift 19986 if test $# != 0; then 19987 # We chose a different compiler from the bogus one. 19988 # However, it has the same basename, so the bogon will be chosen 19989 # first if we set CC to just the basename; use the full file name. 19990 shift 19991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19992 fi 19993fi 19994fi 19995fi 19996CC=$ac_cv_prog_CC 19997if test -n "$CC"; then 19998 { echo "$as_me:$LINENO: result: $CC" >&5 19999echo "${ECHO_T}$CC" >&6; } 20000else 20001 { echo "$as_me:$LINENO: result: no" >&5 20002echo "${ECHO_T}no" >&6; } 20003fi 20004 20005 20006fi 20007if test -z "$CC"; then 20008 if test -n "$ac_tool_prefix"; then 20009 for ac_prog in cl.exe 20010 do 20011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20012set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20013{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20015if test "${ac_cv_prog_CC+set}" = set; then 20016 echo $ECHO_N "(cached) $ECHO_C" >&6 20017else 20018 if test -n "$CC"; then 20019 ac_cv_prog_CC="$CC" # Let the user override the test. 20020else 20021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20022for as_dir in $PATH 20023do 20024 IFS=$as_save_IFS 20025 test -z "$as_dir" && as_dir=. 20026 for ac_exec_ext in '' $ac_executable_extensions; do 20027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20030 break 2 20031 fi 20032done 20033done 20034IFS=$as_save_IFS 20035 20036fi 20037fi 20038CC=$ac_cv_prog_CC 20039if test -n "$CC"; then 20040 { echo "$as_me:$LINENO: result: $CC" >&5 20041echo "${ECHO_T}$CC" >&6; } 20042else 20043 { echo "$as_me:$LINENO: result: no" >&5 20044echo "${ECHO_T}no" >&6; } 20045fi 20046 20047 20048 test -n "$CC" && break 20049 done 20050fi 20051if test -z "$CC"; then 20052 ac_ct_CC=$CC 20053 for ac_prog in cl.exe 20054do 20055 # Extract the first word of "$ac_prog", so it can be a program name with args. 20056set dummy $ac_prog; ac_word=$2 20057{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20059if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20060 echo $ECHO_N "(cached) $ECHO_C" >&6 20061else 20062 if test -n "$ac_ct_CC"; then 20063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20064else 20065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20066for as_dir in $PATH 20067do 20068 IFS=$as_save_IFS 20069 test -z "$as_dir" && as_dir=. 20070 for ac_exec_ext in '' $ac_executable_extensions; do 20071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20072 ac_cv_prog_ac_ct_CC="$ac_prog" 20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20074 break 2 20075 fi 20076done 20077done 20078IFS=$as_save_IFS 20079 20080fi 20081fi 20082ac_ct_CC=$ac_cv_prog_ac_ct_CC 20083if test -n "$ac_ct_CC"; then 20084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20085echo "${ECHO_T}$ac_ct_CC" >&6; } 20086else 20087 { echo "$as_me:$LINENO: result: no" >&5 20088echo "${ECHO_T}no" >&6; } 20089fi 20090 20091 20092 test -n "$ac_ct_CC" && break 20093done 20094 20095 if test "x$ac_ct_CC" = x; then 20096 CC="" 20097 else 20098 case $cross_compiling:$ac_tool_warned in 20099yes:) 20100{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20101whose name does not start with the host triplet. If you think this 20102configuration is useful to you, please write to autoconf@gnu.org." >&5 20103echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20104whose name does not start with the host triplet. If you think this 20105configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20106ac_tool_warned=yes ;; 20107esac 20108 CC=$ac_ct_CC 20109 fi 20110fi 20111 20112fi 20113 20114 20115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20116See \`config.log' for more details." >&5 20117echo "$as_me: error: no acceptable C compiler found in \$PATH 20118See \`config.log' for more details." >&2;} 20119 { (exit 1); exit 1; }; } 20120 20121# Provide some information about the compiler. 20122echo "$as_me:$LINENO: checking for C compiler version" >&5 20123ac_compiler=`set X $ac_compile; echo $2` 20124{ (ac_try="$ac_compiler --version >&5" 20125case "(($ac_try" in 20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20127 *) ac_try_echo=$ac_try;; 20128esac 20129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20130 (eval "$ac_compiler --version >&5") 2>&5 20131 ac_status=$? 20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20133 (exit $ac_status); } 20134{ (ac_try="$ac_compiler -v >&5" 20135case "(($ac_try" in 20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20137 *) ac_try_echo=$ac_try;; 20138esac 20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20140 (eval "$ac_compiler -v >&5") 2>&5 20141 ac_status=$? 20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20143 (exit $ac_status); } 20144{ (ac_try="$ac_compiler -V >&5" 20145case "(($ac_try" in 20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20147 *) ac_try_echo=$ac_try;; 20148esac 20149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20150 (eval "$ac_compiler -V >&5") 2>&5 20151 ac_status=$? 20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20153 (exit $ac_status); } 20154 20155{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20156echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20157if test "${ac_cv_c_compiler_gnu+set}" = set; then 20158 echo $ECHO_N "(cached) $ECHO_C" >&6 20159else 20160 cat >conftest.$ac_ext <<_ACEOF 20161/* confdefs.h. */ 20162_ACEOF 20163cat confdefs.h >>conftest.$ac_ext 20164cat >>conftest.$ac_ext <<_ACEOF 20165/* end confdefs.h. */ 20166 20167int 20168main () 20169{ 20170#ifndef __GNUC__ 20171 choke me 20172#endif 20173 20174 ; 20175 return 0; 20176} 20177_ACEOF 20178rm -f conftest.$ac_objext 20179if { (ac_try="$ac_compile" 20180case "(($ac_try" in 20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20182 *) ac_try_echo=$ac_try;; 20183esac 20184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20185 (eval "$ac_compile") 2>conftest.er1 20186 ac_status=$? 20187 grep -v '^ *+' conftest.er1 >conftest.err 20188 rm -f conftest.er1 20189 cat conftest.err >&5 20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20191 (exit $ac_status); } && 20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20193 { (case "(($ac_try" in 20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20195 *) ac_try_echo=$ac_try;; 20196esac 20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20198 (eval "$ac_try") 2>&5 20199 ac_status=$? 20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20201 (exit $ac_status); }; } && 20202 { ac_try='test -s conftest.$ac_objext' 20203 { (case "(($ac_try" in 20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20205 *) ac_try_echo=$ac_try;; 20206esac 20207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20208 (eval "$ac_try") 2>&5 20209 ac_status=$? 20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20211 (exit $ac_status); }; }; then 20212 ac_compiler_gnu=yes 20213else 20214 echo "$as_me: failed program was:" >&5 20215sed 's/^/| /' conftest.$ac_ext >&5 20216 20217 ac_compiler_gnu=no 20218fi 20219 20220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20221ac_cv_c_compiler_gnu=$ac_compiler_gnu 20222 20223fi 20224{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20225echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20226GCC=`test $ac_compiler_gnu = yes && echo yes` 20227ac_test_CFLAGS=${CFLAGS+set} 20228ac_save_CFLAGS=$CFLAGS 20229{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20230echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20231if test "${ac_cv_prog_cc_g+set}" = set; then 20232 echo $ECHO_N "(cached) $ECHO_C" >&6 20233else 20234 ac_save_c_werror_flag=$ac_c_werror_flag 20235 ac_c_werror_flag=yes 20236 ac_cv_prog_cc_g=no 20237 CFLAGS="-g" 20238 cat >conftest.$ac_ext <<_ACEOF 20239/* confdefs.h. */ 20240_ACEOF 20241cat confdefs.h >>conftest.$ac_ext 20242cat >>conftest.$ac_ext <<_ACEOF 20243/* end confdefs.h. */ 20244 20245int 20246main () 20247{ 20248 20249 ; 20250 return 0; 20251} 20252_ACEOF 20253rm -f conftest.$ac_objext 20254if { (ac_try="$ac_compile" 20255case "(($ac_try" in 20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20257 *) ac_try_echo=$ac_try;; 20258esac 20259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20260 (eval "$ac_compile") 2>conftest.er1 20261 ac_status=$? 20262 grep -v '^ *+' conftest.er1 >conftest.err 20263 rm -f conftest.er1 20264 cat conftest.err >&5 20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20266 (exit $ac_status); } && 20267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20268 { (case "(($ac_try" in 20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20270 *) ac_try_echo=$ac_try;; 20271esac 20272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20273 (eval "$ac_try") 2>&5 20274 ac_status=$? 20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20276 (exit $ac_status); }; } && 20277 { ac_try='test -s conftest.$ac_objext' 20278 { (case "(($ac_try" in 20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20280 *) ac_try_echo=$ac_try;; 20281esac 20282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20283 (eval "$ac_try") 2>&5 20284 ac_status=$? 20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20286 (exit $ac_status); }; }; then 20287 ac_cv_prog_cc_g=yes 20288else 20289 echo "$as_me: failed program was:" >&5 20290sed 's/^/| /' conftest.$ac_ext >&5 20291 20292 CFLAGS="" 20293 cat >conftest.$ac_ext <<_ACEOF 20294/* confdefs.h. */ 20295_ACEOF 20296cat confdefs.h >>conftest.$ac_ext 20297cat >>conftest.$ac_ext <<_ACEOF 20298/* end confdefs.h. */ 20299 20300int 20301main () 20302{ 20303 20304 ; 20305 return 0; 20306} 20307_ACEOF 20308rm -f conftest.$ac_objext 20309if { (ac_try="$ac_compile" 20310case "(($ac_try" in 20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20312 *) ac_try_echo=$ac_try;; 20313esac 20314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20315 (eval "$ac_compile") 2>conftest.er1 20316 ac_status=$? 20317 grep -v '^ *+' conftest.er1 >conftest.err 20318 rm -f conftest.er1 20319 cat conftest.err >&5 20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20321 (exit $ac_status); } && 20322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20323 { (case "(($ac_try" in 20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20325 *) ac_try_echo=$ac_try;; 20326esac 20327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20328 (eval "$ac_try") 2>&5 20329 ac_status=$? 20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20331 (exit $ac_status); }; } && 20332 { ac_try='test -s conftest.$ac_objext' 20333 { (case "(($ac_try" in 20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20335 *) ac_try_echo=$ac_try;; 20336esac 20337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20338 (eval "$ac_try") 2>&5 20339 ac_status=$? 20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20341 (exit $ac_status); }; }; then 20342 : 20343else 20344 echo "$as_me: failed program was:" >&5 20345sed 's/^/| /' conftest.$ac_ext >&5 20346 20347 ac_c_werror_flag=$ac_save_c_werror_flag 20348 CFLAGS="-g" 20349 cat >conftest.$ac_ext <<_ACEOF 20350/* confdefs.h. */ 20351_ACEOF 20352cat confdefs.h >>conftest.$ac_ext 20353cat >>conftest.$ac_ext <<_ACEOF 20354/* end confdefs.h. */ 20355 20356int 20357main () 20358{ 20359 20360 ; 20361 return 0; 20362} 20363_ACEOF 20364rm -f conftest.$ac_objext 20365if { (ac_try="$ac_compile" 20366case "(($ac_try" in 20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20368 *) ac_try_echo=$ac_try;; 20369esac 20370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20371 (eval "$ac_compile") 2>conftest.er1 20372 ac_status=$? 20373 grep -v '^ *+' conftest.er1 >conftest.err 20374 rm -f conftest.er1 20375 cat conftest.err >&5 20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20377 (exit $ac_status); } && 20378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20379 { (case "(($ac_try" in 20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20381 *) ac_try_echo=$ac_try;; 20382esac 20383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20384 (eval "$ac_try") 2>&5 20385 ac_status=$? 20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20387 (exit $ac_status); }; } && 20388 { ac_try='test -s conftest.$ac_objext' 20389 { (case "(($ac_try" in 20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20391 *) ac_try_echo=$ac_try;; 20392esac 20393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20394 (eval "$ac_try") 2>&5 20395 ac_status=$? 20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20397 (exit $ac_status); }; }; then 20398 ac_cv_prog_cc_g=yes 20399else 20400 echo "$as_me: failed program was:" >&5 20401sed 's/^/| /' conftest.$ac_ext >&5 20402 20403 20404fi 20405 20406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20407fi 20408 20409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20410fi 20411 20412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20413 ac_c_werror_flag=$ac_save_c_werror_flag 20414fi 20415{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20416echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20417if test "$ac_test_CFLAGS" = set; then 20418 CFLAGS=$ac_save_CFLAGS 20419elif test $ac_cv_prog_cc_g = yes; then 20420 if test "$GCC" = yes; then 20421 CFLAGS="-g -O2" 20422 else 20423 CFLAGS="-g" 20424 fi 20425else 20426 if test "$GCC" = yes; then 20427 CFLAGS="-O2" 20428 else 20429 CFLAGS= 20430 fi 20431fi 20432{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20433echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20434if test "${ac_cv_prog_cc_c89+set}" = set; then 20435 echo $ECHO_N "(cached) $ECHO_C" >&6 20436else 20437 ac_cv_prog_cc_c89=no 20438ac_save_CC=$CC 20439cat >conftest.$ac_ext <<_ACEOF 20440/* confdefs.h. */ 20441_ACEOF 20442cat confdefs.h >>conftest.$ac_ext 20443cat >>conftest.$ac_ext <<_ACEOF 20444/* end confdefs.h. */ 20445#include <stdarg.h> 20446#include <stdio.h> 20447#include <sys/types.h> 20448#include <sys/stat.h> 20449/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20450struct buf { int x; }; 20451FILE * (*rcsopen) (struct buf *, struct stat *, int); 20452static char *e (p, i) 20453 char **p; 20454 int i; 20455{ 20456 return p[i]; 20457} 20458static char *f (char * (*g) (char **, int), char **p, ...) 20459{ 20460 char *s; 20461 va_list v; 20462 va_start (v,p); 20463 s = g (p, va_arg (v,int)); 20464 va_end (v); 20465 return s; 20466} 20467 20468/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20469 function prototypes and stuff, but not '\xHH' hex character constants. 20470 These don't provoke an error unfortunately, instead are silently treated 20471 as 'x'. The following induces an error, until -std is added to get 20472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20473 array size at least. It's necessary to write '\x00'==0 to get something 20474 that's true only with -std. */ 20475int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20476 20477/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20478 inside strings and character constants. */ 20479#define FOO(x) 'x' 20480int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20481 20482int test (int i, double x); 20483struct s1 {int (*f) (int a);}; 20484struct s2 {int (*f) (double a);}; 20485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20486int argc; 20487char **argv; 20488int 20489main () 20490{ 20491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20492 ; 20493 return 0; 20494} 20495_ACEOF 20496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20498do 20499 CC="$ac_save_CC $ac_arg" 20500 rm -f conftest.$ac_objext 20501if { (ac_try="$ac_compile" 20502case "(($ac_try" in 20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20504 *) ac_try_echo=$ac_try;; 20505esac 20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20507 (eval "$ac_compile") 2>conftest.er1 20508 ac_status=$? 20509 grep -v '^ *+' conftest.er1 >conftest.err 20510 rm -f conftest.er1 20511 cat conftest.err >&5 20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20513 (exit $ac_status); } && 20514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20515 { (case "(($ac_try" in 20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20517 *) ac_try_echo=$ac_try;; 20518esac 20519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20520 (eval "$ac_try") 2>&5 20521 ac_status=$? 20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20523 (exit $ac_status); }; } && 20524 { ac_try='test -s conftest.$ac_objext' 20525 { (case "(($ac_try" in 20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20527 *) ac_try_echo=$ac_try;; 20528esac 20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20530 (eval "$ac_try") 2>&5 20531 ac_status=$? 20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20533 (exit $ac_status); }; }; then 20534 ac_cv_prog_cc_c89=$ac_arg 20535else 20536 echo "$as_me: failed program was:" >&5 20537sed 's/^/| /' conftest.$ac_ext >&5 20538 20539 20540fi 20541 20542rm -f core conftest.err conftest.$ac_objext 20543 test "x$ac_cv_prog_cc_c89" != "xno" && break 20544done 20545rm -f conftest.$ac_ext 20546CC=$ac_save_CC 20547 20548fi 20549# AC_CACHE_VAL 20550case "x$ac_cv_prog_cc_c89" in 20551 x) 20552 { echo "$as_me:$LINENO: result: none needed" >&5 20553echo "${ECHO_T}none needed" >&6; } ;; 20554 xno) 20555 { echo "$as_me:$LINENO: result: unsupported" >&5 20556echo "${ECHO_T}unsupported" >&6; } ;; 20557 *) 20558 CC="$CC $ac_cv_prog_cc_c89" 20559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20560echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20561esac 20562 20563 20564ac_ext=c 20565ac_cpp='$CPP $CPPFLAGS' 20566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20568ac_compiler_gnu=$ac_cv_c_compiler_gnu 20569 20570depcc="$CC" am_compiler_list= 20571 20572{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20573echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20574if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20575 echo $ECHO_N "(cached) $ECHO_C" >&6 20576else 20577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20578 # We make a subdir and do the tests there. Otherwise we can end up 20579 # making bogus files that we don't know about and never remove. For 20580 # instance it was reported that on HP-UX the gcc test will end up 20581 # making a dummy file named `D' -- because `-MD' means `put the output 20582 # in D'. 20583 mkdir conftest.dir 20584 # Copy depcomp to subdir because otherwise we won't find it if we're 20585 # using a relative directory. 20586 cp "$am_depcomp" conftest.dir 20587 cd conftest.dir 20588 # We will build objects and dependencies in a subdirectory because 20589 # it helps to detect inapplicable dependency modes. For instance 20590 # both Tru64's cc and ICC support -MD to output dependencies as a 20591 # side effect of compilation, but ICC will put the dependencies in 20592 # the current directory while Tru64 will put them in the object 20593 # directory. 20594 mkdir sub 20595 20596 am_cv_CC_dependencies_compiler_type=none 20597 if test "$am_compiler_list" = ""; then 20598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20599 fi 20600 for depmode in $am_compiler_list; do 20601 # Setup a source with many dependencies, because some compilers 20602 # like to wrap large dependency lists on column 80 (with \), and 20603 # we should not choose a depcomp mode which is confused by this. 20604 # 20605 # We need to recreate these files for each test, as the compiler may 20606 # overwrite some of them when testing with obscure command lines. 20607 # This happens at least with the AIX C compiler. 20608 : > sub/conftest.c 20609 for i in 1 2 3 4 5 6; do 20610 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20612 # Solaris 8's {/usr,}/bin/sh. 20613 touch sub/conftst$i.h 20614 done 20615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20616 20617 case $depmode in 20618 nosideeffect) 20619 # after this tag, mechanisms are not by side-effect, so they'll 20620 # only be used when explicitly requested 20621 if test "x$enable_dependency_tracking" = xyes; then 20622 continue 20623 else 20624 break 20625 fi 20626 ;; 20627 none) break ;; 20628 esac 20629 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20630 # mode. It turns out that the SunPro C++ compiler does not properly 20631 # handle `-M -o', and we need to detect this. 20632 if depmode=$depmode \ 20633 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20635 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20636 >/dev/null 2>conftest.err && 20637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20638 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20640 # icc doesn't choke on unknown options, it will just issue warnings 20641 # or remarks (even with -Werror). So we grep stderr for any message 20642 # that says an option was ignored or not supported. 20643 # When given -MP, icc 7.0 and 7.1 complain thusly: 20644 # icc: Command line warning: ignoring option '-M'; no argument required 20645 # The diagnosis changed in icc 8.0: 20646 # icc: Command line remark: option '-MP' not supported 20647 if (grep 'ignoring option' conftest.err || 20648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20649 am_cv_CC_dependencies_compiler_type=$depmode 20650 break 20651 fi 20652 fi 20653 done 20654 20655 cd .. 20656 rm -rf conftest.dir 20657else 20658 am_cv_CC_dependencies_compiler_type=none 20659fi 20660 20661fi 20662{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20663echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20665 20666 20667 20668if 20669 test "x$enable_dependency_tracking" != xno \ 20670 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20671 am__fastdepCC_TRUE= 20672 am__fastdepCC_FALSE='#' 20673else 20674 am__fastdepCC_TRUE='#' 20675 am__fastdepCC_FALSE= 20676fi 20677 20678 20679if test -n "$ac_tool_prefix"; then 20680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 20681set dummy ${ac_tool_prefix}ranlib; ac_word=$2 20682{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20684if test "${ac_cv_prog_RANLIB+set}" = set; then 20685 echo $ECHO_N "(cached) $ECHO_C" >&6 20686else 20687 if test -n "$RANLIB"; then 20688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 20689else 20690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20691for as_dir in $PATH 20692do 20693 IFS=$as_save_IFS 20694 test -z "$as_dir" && as_dir=. 20695 for ac_exec_ext in '' $ac_executable_extensions; do 20696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 20698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20699 break 2 20700 fi 20701done 20702done 20703IFS=$as_save_IFS 20704 20705fi 20706fi 20707RANLIB=$ac_cv_prog_RANLIB 20708if test -n "$RANLIB"; then 20709 { echo "$as_me:$LINENO: result: $RANLIB" >&5 20710echo "${ECHO_T}$RANLIB" >&6; } 20711else 20712 { echo "$as_me:$LINENO: result: no" >&5 20713echo "${ECHO_T}no" >&6; } 20714fi 20715 20716 20717fi 20718if test -z "$ac_cv_prog_RANLIB"; then 20719 ac_ct_RANLIB=$RANLIB 20720 # Extract the first word of "ranlib", so it can be a program name with args. 20721set dummy ranlib; ac_word=$2 20722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20724if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 20725 echo $ECHO_N "(cached) $ECHO_C" >&6 20726else 20727 if test -n "$ac_ct_RANLIB"; then 20728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 20729else 20730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20731for as_dir in $PATH 20732do 20733 IFS=$as_save_IFS 20734 test -z "$as_dir" && as_dir=. 20735 for ac_exec_ext in '' $ac_executable_extensions; do 20736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20737 ac_cv_prog_ac_ct_RANLIB="ranlib" 20738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20739 break 2 20740 fi 20741done 20742done 20743IFS=$as_save_IFS 20744 20745fi 20746fi 20747ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 20748if test -n "$ac_ct_RANLIB"; then 20749 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 20750echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 20751else 20752 { echo "$as_me:$LINENO: result: no" >&5 20753echo "${ECHO_T}no" >&6; } 20754fi 20755 20756 if test "x$ac_ct_RANLIB" = x; then 20757 RANLIB=":" 20758 else 20759 case $cross_compiling:$ac_tool_warned in 20760yes:) 20761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20762whose name does not start with the host triplet. If you think this 20763configuration is useful to you, please write to autoconf@gnu.org." >&5 20764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20765whose name does not start with the host triplet. If you think this 20766configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20767ac_tool_warned=yes ;; 20768esac 20769 RANLIB=$ac_ct_RANLIB 20770 fi 20771else 20772 RANLIB="$ac_cv_prog_RANLIB" 20773fi 20774 20775 20776# Checks for libraries 20777#ACX_PTHREAD 20778#ACX_PTHREAD([], [AC_MSG_ERROR([POSIX Threads is required to build and run this project.])]) 20779 20780 20781 20782 20783 20784 { echo "$as_me:$LINENO: checking for the GNU Readline library" >&5 20785echo $ECHO_N "checking for the GNU Readline library... $ECHO_C" >&6; } 20786 ORIG_LIBS="$LIBS" 20787 for readline_lib in readline; do 20788 for termcap_lib in "" termcap curses ncurses; do 20789 if test -z "$termcap_lib"; then 20790 TRY_LIB="-l$readline_lib" 20791 else 20792 TRY_LIB="-l$readline_lib -l$termcap_lib" 20793 fi 20794 LIBS="$ORIG_LIBS $TRY_LIB" 20795 cat >conftest.$ac_ext <<_ACEOF 20796/* confdefs.h. */ 20797_ACEOF 20798cat confdefs.h >>conftest.$ac_ext 20799cat >>conftest.$ac_ext <<_ACEOF 20800/* end confdefs.h. */ 20801 20802/* Override any GCC internal prototype to avoid an error. 20803 Use char because int might match the return type of a GCC 20804 builtin and then its argument prototype would still apply. */ 20805#ifdef __cplusplus 20806extern "C" 20807#endif 20808char readline (); 20809int 20810main () 20811{ 20812return readline (); 20813 ; 20814 return 0; 20815} 20816_ACEOF 20817rm -f conftest.$ac_objext conftest$ac_exeext 20818if { (ac_try="$ac_link" 20819case "(($ac_try" in 20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20821 *) ac_try_echo=$ac_try;; 20822esac 20823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20824 (eval "$ac_link") 2>conftest.er1 20825 ac_status=$? 20826 grep -v '^ *+' conftest.er1 >conftest.err 20827 rm -f conftest.er1 20828 cat conftest.err >&5 20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20830 (exit $ac_status); } && 20831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20832 { (case "(($ac_try" in 20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20834 *) ac_try_echo=$ac_try;; 20835esac 20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20837 (eval "$ac_try") 2>&5 20838 ac_status=$? 20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20840 (exit $ac_status); }; } && 20841 { ac_try='test -s conftest$ac_exeext' 20842 { (case "(($ac_try" in 20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20844 *) ac_try_echo=$ac_try;; 20845esac 20846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20847 (eval "$ac_try") 2>&5 20848 ac_status=$? 20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20850 (exit $ac_status); }; }; then 20851 ol_cv_lib_readline="$TRY_LIB" 20852else 20853 echo "$as_me: failed program was:" >&5 20854sed 's/^/| /' conftest.$ac_ext >&5 20855 20856 20857fi 20858 20859rm -f core conftest.err conftest.$ac_objext \ 20860 conftest$ac_exeext conftest.$ac_ext 20861 if test -n "$ol_cv_lib_readline"; then 20862 break 20863 fi 20864 done 20865 if test -n "$ol_cv_lib_readline"; then 20866 break 20867 fi 20868 done 20869 if test -z "$ol_cv_lib_readline"; then 20870 { echo "$as_me:$LINENO: result: not found" >&5 20871echo "${ECHO_T}not found" >&6; } 20872 READLINE_LIBS="" 20873 20874 { { echo "$as_me:$LINENO: error: GNU Readline is required to build and run this project." >&5 20875echo "$as_me: error: GNU Readline is required to build and run this project." >&2;} 20876 { (exit 1); exit 1; }; } 20877 else 20878 { echo "$as_me:$LINENO: result: found" >&5 20879echo "${ECHO_T}found" >&6; } 20880 READLINE_LIBS="$ol_cv_lib_readline" 20881 20882 cat >>confdefs.h <<\_ACEOF 20883#define HAVE_LIBREADLINE 1 20884_ACEOF 20885 20886 20887 20888for ac_header in readline.h readline/readline.h 20889do 20890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20892 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20895 echo $ECHO_N "(cached) $ECHO_C" >&6 20896fi 20897ac_res=`eval echo '${'$as_ac_Header'}'` 20898 { echo "$as_me:$LINENO: result: $ac_res" >&5 20899echo "${ECHO_T}$ac_res" >&6; } 20900else 20901 # Is the header compilable? 20902{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20904cat >conftest.$ac_ext <<_ACEOF 20905/* confdefs.h. */ 20906_ACEOF 20907cat confdefs.h >>conftest.$ac_ext 20908cat >>conftest.$ac_ext <<_ACEOF 20909/* end confdefs.h. */ 20910$ac_includes_default 20911#include <$ac_header> 20912_ACEOF 20913rm -f conftest.$ac_objext 20914if { (ac_try="$ac_compile" 20915case "(($ac_try" in 20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20917 *) ac_try_echo=$ac_try;; 20918esac 20919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20920 (eval "$ac_compile") 2>conftest.er1 20921 ac_status=$? 20922 grep -v '^ *+' conftest.er1 >conftest.err 20923 rm -f conftest.er1 20924 cat conftest.err >&5 20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20926 (exit $ac_status); } && 20927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20928 { (case "(($ac_try" in 20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20930 *) ac_try_echo=$ac_try;; 20931esac 20932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20933 (eval "$ac_try") 2>&5 20934 ac_status=$? 20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20936 (exit $ac_status); }; } && 20937 { ac_try='test -s conftest.$ac_objext' 20938 { (case "(($ac_try" in 20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20940 *) ac_try_echo=$ac_try;; 20941esac 20942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20943 (eval "$ac_try") 2>&5 20944 ac_status=$? 20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20946 (exit $ac_status); }; }; then 20947 ac_header_compiler=yes 20948else 20949 echo "$as_me: failed program was:" >&5 20950sed 's/^/| /' conftest.$ac_ext >&5 20951 20952 ac_header_compiler=no 20953fi 20954 20955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20956{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20957echo "${ECHO_T}$ac_header_compiler" >&6; } 20958 20959# Is the header present? 20960{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20962cat >conftest.$ac_ext <<_ACEOF 20963/* confdefs.h. */ 20964_ACEOF 20965cat confdefs.h >>conftest.$ac_ext 20966cat >>conftest.$ac_ext <<_ACEOF 20967/* end confdefs.h. */ 20968#include <$ac_header> 20969_ACEOF 20970if { (ac_try="$ac_cpp conftest.$ac_ext" 20971case "(($ac_try" in 20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20973 *) ac_try_echo=$ac_try;; 20974esac 20975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20977 ac_status=$? 20978 grep -v '^ *+' conftest.er1 >conftest.err 20979 rm -f conftest.er1 20980 cat conftest.err >&5 20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20982 (exit $ac_status); } >/dev/null; then 20983 if test -s conftest.err; then 20984 ac_cpp_err=$ac_c_preproc_warn_flag 20985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20986 else 20987 ac_cpp_err= 20988 fi 20989else 20990 ac_cpp_err=yes 20991fi 20992if test -z "$ac_cpp_err"; then 20993 ac_header_preproc=yes 20994else 20995 echo "$as_me: failed program was:" >&5 20996sed 's/^/| /' conftest.$ac_ext >&5 20997 20998 ac_header_preproc=no 20999fi 21000 21001rm -f conftest.err conftest.$ac_ext 21002{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21003echo "${ECHO_T}$ac_header_preproc" >&6; } 21004 21005# So? What about this header? 21006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21007 yes:no: ) 21008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21012 ac_header_preproc=yes 21013 ;; 21014 no:yes:* ) 21015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21027 ( cat <<\_ASBOX 21028## ---------------------------------------- ## 21029## Report this to vladch@k804.mainet.msk.su ## 21030## ---------------------------------------- ## 21031_ASBOX 21032 ) | sed "s/^/$as_me: WARNING: /" >&2 21033 ;; 21034esac 21035{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21038 echo $ECHO_N "(cached) $ECHO_C" >&6 21039else 21040 eval "$as_ac_Header=\$ac_header_preproc" 21041fi 21042ac_res=`eval echo '${'$as_ac_Header'}'` 21043 { echo "$as_me:$LINENO: result: $ac_res" >&5 21044echo "${ECHO_T}$ac_res" >&6; } 21045 21046fi 21047if test `eval echo '${'$as_ac_Header'}'` = yes; then 21048 cat >>confdefs.h <<_ACEOF 21049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21050_ACEOF 21051 21052fi 21053 21054done 21055 21056 ol_cv_lib_readline_history="no" 21057 { echo "$as_me:$LINENO: checking whether readline supports history" >&5 21058echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; } 21059 cat >conftest.$ac_ext <<_ACEOF 21060/* confdefs.h. */ 21061_ACEOF 21062cat confdefs.h >>conftest.$ac_ext 21063cat >>conftest.$ac_ext <<_ACEOF 21064/* end confdefs.h. */ 21065 21066/* Override any GCC internal prototype to avoid an error. 21067 Use char because int might match the return type of a GCC 21068 builtin and then its argument prototype would still apply. */ 21069#ifdef __cplusplus 21070extern "C" 21071#endif 21072char add_history (); 21073int 21074main () 21075{ 21076return add_history (); 21077 ; 21078 return 0; 21079} 21080_ACEOF 21081rm -f conftest.$ac_objext conftest$ac_exeext 21082if { (ac_try="$ac_link" 21083case "(($ac_try" in 21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21085 *) ac_try_echo=$ac_try;; 21086esac 21087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21088 (eval "$ac_link") 2>conftest.er1 21089 ac_status=$? 21090 grep -v '^ *+' conftest.er1 >conftest.err 21091 rm -f conftest.er1 21092 cat conftest.err >&5 21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21094 (exit $ac_status); } && 21095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21096 { (case "(($ac_try" in 21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21098 *) ac_try_echo=$ac_try;; 21099esac 21100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21101 (eval "$ac_try") 2>&5 21102 ac_status=$? 21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21104 (exit $ac_status); }; } && 21105 { ac_try='test -s conftest$ac_exeext' 21106 { (case "(($ac_try" in 21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21108 *) ac_try_echo=$ac_try;; 21109esac 21110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21111 (eval "$ac_try") 2>&5 21112 ac_status=$? 21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21114 (exit $ac_status); }; }; then 21115 21116 { echo "$as_me:$LINENO: result: yes" >&5 21117echo "${ECHO_T}yes" >&6; } 21118 cat >>confdefs.h <<\_ACEOF 21119#define HAVE_READLINE_HISTORY 1 21120_ACEOF 21121 21122 21123 21124for ac_header in history.h readline/history.h 21125do 21126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21128 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21131 echo $ECHO_N "(cached) $ECHO_C" >&6 21132fi 21133ac_res=`eval echo '${'$as_ac_Header'}'` 21134 { echo "$as_me:$LINENO: result: $ac_res" >&5 21135echo "${ECHO_T}$ac_res" >&6; } 21136else 21137 # Is the header compilable? 21138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21140cat >conftest.$ac_ext <<_ACEOF 21141/* confdefs.h. */ 21142_ACEOF 21143cat confdefs.h >>conftest.$ac_ext 21144cat >>conftest.$ac_ext <<_ACEOF 21145/* end confdefs.h. */ 21146$ac_includes_default 21147#include <$ac_header> 21148_ACEOF 21149rm -f conftest.$ac_objext 21150if { (ac_try="$ac_compile" 21151case "(($ac_try" in 21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21153 *) ac_try_echo=$ac_try;; 21154esac 21155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21156 (eval "$ac_compile") 2>conftest.er1 21157 ac_status=$? 21158 grep -v '^ *+' conftest.er1 >conftest.err 21159 rm -f conftest.er1 21160 cat conftest.err >&5 21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21162 (exit $ac_status); } && 21163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21164 { (case "(($ac_try" in 21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21166 *) ac_try_echo=$ac_try;; 21167esac 21168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21169 (eval "$ac_try") 2>&5 21170 ac_status=$? 21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21172 (exit $ac_status); }; } && 21173 { ac_try='test -s conftest.$ac_objext' 21174 { (case "(($ac_try" in 21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21176 *) ac_try_echo=$ac_try;; 21177esac 21178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21179 (eval "$ac_try") 2>&5 21180 ac_status=$? 21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21182 (exit $ac_status); }; }; then 21183 ac_header_compiler=yes 21184else 21185 echo "$as_me: failed program was:" >&5 21186sed 's/^/| /' conftest.$ac_ext >&5 21187 21188 ac_header_compiler=no 21189fi 21190 21191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21193echo "${ECHO_T}$ac_header_compiler" >&6; } 21194 21195# Is the header present? 21196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21198cat >conftest.$ac_ext <<_ACEOF 21199/* confdefs.h. */ 21200_ACEOF 21201cat confdefs.h >>conftest.$ac_ext 21202cat >>conftest.$ac_ext <<_ACEOF 21203/* end confdefs.h. */ 21204#include <$ac_header> 21205_ACEOF 21206if { (ac_try="$ac_cpp conftest.$ac_ext" 21207case "(($ac_try" in 21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21209 *) ac_try_echo=$ac_try;; 21210esac 21211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21213 ac_status=$? 21214 grep -v '^ *+' conftest.er1 >conftest.err 21215 rm -f conftest.er1 21216 cat conftest.err >&5 21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21218 (exit $ac_status); } >/dev/null; then 21219 if test -s conftest.err; then 21220 ac_cpp_err=$ac_c_preproc_warn_flag 21221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21222 else 21223 ac_cpp_err= 21224 fi 21225else 21226 ac_cpp_err=yes 21227fi 21228if test -z "$ac_cpp_err"; then 21229 ac_header_preproc=yes 21230else 21231 echo "$as_me: failed program was:" >&5 21232sed 's/^/| /' conftest.$ac_ext >&5 21233 21234 ac_header_preproc=no 21235fi 21236 21237rm -f conftest.err conftest.$ac_ext 21238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21239echo "${ECHO_T}$ac_header_preproc" >&6; } 21240 21241# So? What about this header? 21242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21243 yes:no: ) 21244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21248 ac_header_preproc=yes 21249 ;; 21250 no:yes:* ) 21251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21263 ( cat <<\_ASBOX 21264## ---------------------------------------- ## 21265## Report this to vladch@k804.mainet.msk.su ## 21266## ---------------------------------------- ## 21267_ASBOX 21268 ) | sed "s/^/$as_me: WARNING: /" >&2 21269 ;; 21270esac 21271{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21274 echo $ECHO_N "(cached) $ECHO_C" >&6 21275else 21276 eval "$as_ac_Header=\$ac_header_preproc" 21277fi 21278ac_res=`eval echo '${'$as_ac_Header'}'` 21279 { echo "$as_me:$LINENO: result: $ac_res" >&5 21280echo "${ECHO_T}$ac_res" >&6; } 21281 21282fi 21283if test `eval echo '${'$as_ac_Header'}'` = yes; then 21284 cat >>confdefs.h <<_ACEOF 21285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21286_ACEOF 21287 21288fi 21289 21290done 21291 21292 21293else 21294 echo "$as_me: failed program was:" >&5 21295sed 's/^/| /' conftest.$ac_ext >&5 21296 21297 21298 { echo "$as_me:$LINENO: result: no" >&5 21299echo "${ECHO_T}no" >&6; } 21300 21301fi 21302 21303rm -f core conftest.err conftest.$ac_objext \ 21304 conftest$ac_exeext conftest.$ac_ext 21305 21306 fi 21307 LIBS="$ORIG_LIBS" 21308 21309### FIXME: move these to _rl_mark_modified_lines 21310 21311 21312OLD_LIBS="$LIBS" 21313LIBS="$LIBS $READLINE_LIBS" 21314{ echo "$as_me:$LINENO: checking for _rl_mark_modified_lines" >&5 21315echo $ECHO_N "checking for _rl_mark_modified_lines... $ECHO_C" >&6; } 21316if test "${ac_cv_func__rl_mark_modified_lines+set}" = set; then 21317 echo $ECHO_N "(cached) $ECHO_C" >&6 21318else 21319 cat >conftest.$ac_ext <<_ACEOF 21320/* confdefs.h. */ 21321_ACEOF 21322cat confdefs.h >>conftest.$ac_ext 21323cat >>conftest.$ac_ext <<_ACEOF 21324/* end confdefs.h. */ 21325/* Define _rl_mark_modified_lines to an innocuous variant, in case <limits.h> declares _rl_mark_modified_lines. 21326 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21327#define _rl_mark_modified_lines innocuous__rl_mark_modified_lines 21328 21329/* System header to define __stub macros and hopefully few prototypes, 21330 which can conflict with char _rl_mark_modified_lines (); below. 21331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21332 <limits.h> exists even on freestanding compilers. */ 21333 21334#ifdef __STDC__ 21335# include <limits.h> 21336#else 21337# include <assert.h> 21338#endif 21339 21340#undef _rl_mark_modified_lines 21341 21342/* Override any GCC internal prototype to avoid an error. 21343 Use char because int might match the return type of a GCC 21344 builtin and then its argument prototype would still apply. */ 21345#ifdef __cplusplus 21346extern "C" 21347#endif 21348char _rl_mark_modified_lines (); 21349/* The GNU C library defines this for functions which it implements 21350 to always fail with ENOSYS. Some functions are actually named 21351 something starting with __ and the normal name is an alias. */ 21352#if defined __stub__rl_mark_modified_lines || defined __stub____rl_mark_modified_lines 21353choke me 21354#endif 21355 21356int 21357main () 21358{ 21359return _rl_mark_modified_lines (); 21360 ; 21361 return 0; 21362} 21363_ACEOF 21364rm -f conftest.$ac_objext conftest$ac_exeext 21365if { (ac_try="$ac_link" 21366case "(($ac_try" in 21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21368 *) ac_try_echo=$ac_try;; 21369esac 21370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21371 (eval "$ac_link") 2>conftest.er1 21372 ac_status=$? 21373 grep -v '^ *+' conftest.er1 >conftest.err 21374 rm -f conftest.er1 21375 cat conftest.err >&5 21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21377 (exit $ac_status); } && 21378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21379 { (case "(($ac_try" in 21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21381 *) ac_try_echo=$ac_try;; 21382esac 21383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21384 (eval "$ac_try") 2>&5 21385 ac_status=$? 21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21387 (exit $ac_status); }; } && 21388 { ac_try='test -s conftest$ac_exeext' 21389 { (case "(($ac_try" in 21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21391 *) ac_try_echo=$ac_try;; 21392esac 21393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21394 (eval "$ac_try") 2>&5 21395 ac_status=$? 21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21397 (exit $ac_status); }; }; then 21398 ac_cv_func__rl_mark_modified_lines=yes 21399else 21400 echo "$as_me: failed program was:" >&5 21401sed 's/^/| /' conftest.$ac_ext >&5 21402 21403 ac_cv_func__rl_mark_modified_lines=no 21404fi 21405 21406rm -f core conftest.err conftest.$ac_objext \ 21407 conftest$ac_exeext conftest.$ac_ext 21408fi 21409{ echo "$as_me:$LINENO: result: $ac_cv_func__rl_mark_modified_lines" >&5 21410echo "${ECHO_T}$ac_cv_func__rl_mark_modified_lines" >&6; } 21411if test $ac_cv_func__rl_mark_modified_lines = yes; then 21412 cat >>confdefs.h <<\_ACEOF 21413#define HAVE__RL_MARK_MODIFIED_LINES 1 21414_ACEOF 21415 21416fi 21417 21418LIBS="$OLD_LIBS" 21419 21420 21421#AH_TEMPLATE([XML_SAVE_FORMAT], [1], [Define if libxml2 has no such option for xmlSave- functions]) 21422# Extract the first word of "xml2-config", so it can be a program name with args. 21423set dummy xml2-config; ac_word=$2 21424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21426if test "${ac_cv_path_XML_CONFIG+set}" = set; then 21427 echo $ECHO_N "(cached) $ECHO_C" >&6 21428else 21429 case $XML_CONFIG in 21430 [\\/]* | ?:[\\/]*) 21431 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path. 21432 ;; 21433 *) 21434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21435for as_dir in $PATH 21436do 21437 IFS=$as_save_IFS 21438 test -z "$as_dir" && as_dir=. 21439 for ac_exec_ext in '' $ac_executable_extensions; do 21440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21441 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21443 break 2 21444 fi 21445done 21446done 21447IFS=$as_save_IFS 21448 21449 ;; 21450esac 21451fi 21452XML_CONFIG=$ac_cv_path_XML_CONFIG 21453if test -n "$XML_CONFIG"; then 21454 { echo "$as_me:$LINENO: result: $XML_CONFIG" >&5 21455echo "${ECHO_T}$XML_CONFIG" >&6; } 21456else 21457 { echo "$as_me:$LINENO: result: no" >&5 21458echo "${ECHO_T}no" >&6; } 21459fi 21460 21461 21462# Extract the first word of "tr", so it can be a program name with args. 21463set dummy tr; ac_word=$2 21464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21466if test "${ac_cv_path_TR+set}" = set; then 21467 echo $ECHO_N "(cached) $ECHO_C" >&6 21468else 21469 case $TR in 21470 [\\/]* | ?:[\\/]*) 21471 ac_cv_path_TR="$TR" # Let the user override the test with a path. 21472 ;; 21473 *) 21474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21475for as_dir in $PATH 21476do 21477 IFS=$as_save_IFS 21478 test -z "$as_dir" && as_dir=. 21479 for ac_exec_ext in '' $ac_executable_extensions; do 21480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21481 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 21482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21483 break 2 21484 fi 21485done 21486done 21487IFS=$as_save_IFS 21488 21489 ;; 21490esac 21491fi 21492TR=$ac_cv_path_TR 21493if test -n "$TR"; then 21494 { echo "$as_me:$LINENO: result: $TR" >&5 21495echo "${ECHO_T}$TR" >&6; } 21496else 21497 { echo "$as_me:$LINENO: result: no" >&5 21498echo "${ECHO_T}no" >&6; } 21499fi 21500 21501 21502if test -n "$XML_CONFIG" && test -n "$TR"; then 21503 LIBXML2_VERSION=`$XML_CONFIG --version | $TR -d "."` 21504 if test $LIBXML2_VERSION -eq 2616; then 21505 21506cat >>confdefs.h <<\_ACEOF 21507#define XML_SAVE_FORMAT 1 21508_ACEOF 21509 21510 fi 21511 if test $LIBXML2_VERSION \> 2615; then 21512 cat >>confdefs.h <<\_ACEOF 21513#define HAVE_LIBXML2 1 21514_ACEOF 21515 21516 LIBXML2_LIBS="`$XML_CONFIG --libs`" 21517 LIBXML2_CFLAGS="`$XML_CONFIG --cflags`" 21518 21519 21520# LIBS="$LIBS $LIBXML2_LIBS" 21521# CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 21522 else 21523 { echo "$as_me:$LINENO: WARNING: XML libxml2 library version 2.6.16 or later is required to support XML filelists" >&5 21524echo "$as_me: WARNING: XML libxml2 library version 2.6.16 or later is required to support XML filelists" >&2;} 21525 fi 21526fi 21527 21528# Checks for header files 21529 21530# Checks for typedefs, structures, and compiler characteristics 21531# Check whether --enable-largefile was given. 21532if test "${enable_largefile+set}" = set; then 21533 enableval=$enable_largefile; 21534fi 21535 21536if test "$enable_largefile" != no; then 21537 21538 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 21539echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 21540if test "${ac_cv_sys_largefile_CC+set}" = set; then 21541 echo $ECHO_N "(cached) $ECHO_C" >&6 21542else 21543 ac_cv_sys_largefile_CC=no 21544 if test "$GCC" != yes; then 21545 ac_save_CC=$CC 21546 while :; do 21547 # IRIX 6.2 and later do not support large files by default, 21548 # so use the C compiler's -n32 option if that helps. 21549 cat >conftest.$ac_ext <<_ACEOF 21550/* confdefs.h. */ 21551_ACEOF 21552cat confdefs.h >>conftest.$ac_ext 21553cat >>conftest.$ac_ext <<_ACEOF 21554/* end confdefs.h. */ 21555#include <sys/types.h> 21556 /* Check that off_t can represent 2**63 - 1 correctly. 21557 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21558 since some C++ compilers masquerading as C compilers 21559 incorrectly reject 9223372036854775807. */ 21560#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21562 && LARGE_OFF_T % 2147483647 == 1) 21563 ? 1 : -1]; 21564int 21565main () 21566{ 21567 21568 ; 21569 return 0; 21570} 21571_ACEOF 21572 rm -f conftest.$ac_objext 21573if { (ac_try="$ac_compile" 21574case "(($ac_try" in 21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21576 *) ac_try_echo=$ac_try;; 21577esac 21578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21579 (eval "$ac_compile") 2>conftest.er1 21580 ac_status=$? 21581 grep -v '^ *+' conftest.er1 >conftest.err 21582 rm -f conftest.er1 21583 cat conftest.err >&5 21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21585 (exit $ac_status); } && 21586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21587 { (case "(($ac_try" in 21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21589 *) ac_try_echo=$ac_try;; 21590esac 21591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21592 (eval "$ac_try") 2>&5 21593 ac_status=$? 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); }; } && 21596 { ac_try='test -s conftest.$ac_objext' 21597 { (case "(($ac_try" in 21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21599 *) ac_try_echo=$ac_try;; 21600esac 21601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21602 (eval "$ac_try") 2>&5 21603 ac_status=$? 21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21605 (exit $ac_status); }; }; then 21606 break 21607else 21608 echo "$as_me: failed program was:" >&5 21609sed 's/^/| /' conftest.$ac_ext >&5 21610 21611 21612fi 21613 21614rm -f core conftest.err conftest.$ac_objext 21615 CC="$CC -n32" 21616 rm -f conftest.$ac_objext 21617if { (ac_try="$ac_compile" 21618case "(($ac_try" in 21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21620 *) ac_try_echo=$ac_try;; 21621esac 21622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21623 (eval "$ac_compile") 2>conftest.er1 21624 ac_status=$? 21625 grep -v '^ *+' conftest.er1 >conftest.err 21626 rm -f conftest.er1 21627 cat conftest.err >&5 21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21629 (exit $ac_status); } && 21630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21631 { (case "(($ac_try" in 21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21633 *) ac_try_echo=$ac_try;; 21634esac 21635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21636 (eval "$ac_try") 2>&5 21637 ac_status=$? 21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21639 (exit $ac_status); }; } && 21640 { ac_try='test -s conftest.$ac_objext' 21641 { (case "(($ac_try" in 21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21643 *) ac_try_echo=$ac_try;; 21644esac 21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21646 (eval "$ac_try") 2>&5 21647 ac_status=$? 21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21649 (exit $ac_status); }; }; then 21650 ac_cv_sys_largefile_CC=' -n32'; break 21651else 21652 echo "$as_me: failed program was:" >&5 21653sed 's/^/| /' conftest.$ac_ext >&5 21654 21655 21656fi 21657 21658rm -f core conftest.err conftest.$ac_objext 21659 break 21660 done 21661 CC=$ac_save_CC 21662 rm -f conftest.$ac_ext 21663 fi 21664fi 21665{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 21666echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 21667 if test "$ac_cv_sys_largefile_CC" != no; then 21668 CC=$CC$ac_cv_sys_largefile_CC 21669 fi 21670 21671 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21672echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 21673if test "${ac_cv_sys_file_offset_bits+set}" = set; then 21674 echo $ECHO_N "(cached) $ECHO_C" >&6 21675else 21676 while :; do 21677 ac_cv_sys_file_offset_bits=no 21678 cat >conftest.$ac_ext <<_ACEOF 21679/* confdefs.h. */ 21680_ACEOF 21681cat confdefs.h >>conftest.$ac_ext 21682cat >>conftest.$ac_ext <<_ACEOF 21683/* end confdefs.h. */ 21684#include <sys/types.h> 21685 /* Check that off_t can represent 2**63 - 1 correctly. 21686 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21687 since some C++ compilers masquerading as C compilers 21688 incorrectly reject 9223372036854775807. */ 21689#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21691 && LARGE_OFF_T % 2147483647 == 1) 21692 ? 1 : -1]; 21693int 21694main () 21695{ 21696 21697 ; 21698 return 0; 21699} 21700_ACEOF 21701rm -f conftest.$ac_objext 21702if { (ac_try="$ac_compile" 21703case "(($ac_try" in 21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21705 *) ac_try_echo=$ac_try;; 21706esac 21707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21708 (eval "$ac_compile") 2>conftest.er1 21709 ac_status=$? 21710 grep -v '^ *+' conftest.er1 >conftest.err 21711 rm -f conftest.er1 21712 cat conftest.err >&5 21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21714 (exit $ac_status); } && 21715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21716 { (case "(($ac_try" in 21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21718 *) ac_try_echo=$ac_try;; 21719esac 21720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21721 (eval "$ac_try") 2>&5 21722 ac_status=$? 21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21724 (exit $ac_status); }; } && 21725 { ac_try='test -s conftest.$ac_objext' 21726 { (case "(($ac_try" in 21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21728 *) ac_try_echo=$ac_try;; 21729esac 21730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21731 (eval "$ac_try") 2>&5 21732 ac_status=$? 21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21734 (exit $ac_status); }; }; then 21735 break 21736else 21737 echo "$as_me: failed program was:" >&5 21738sed 's/^/| /' conftest.$ac_ext >&5 21739 21740 21741fi 21742 21743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21744 cat >conftest.$ac_ext <<_ACEOF 21745/* confdefs.h. */ 21746_ACEOF 21747cat confdefs.h >>conftest.$ac_ext 21748cat >>conftest.$ac_ext <<_ACEOF 21749/* end confdefs.h. */ 21750#define _FILE_OFFSET_BITS 64 21751#include <sys/types.h> 21752 /* Check that off_t can represent 2**63 - 1 correctly. 21753 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21754 since some C++ compilers masquerading as C compilers 21755 incorrectly reject 9223372036854775807. */ 21756#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21758 && LARGE_OFF_T % 2147483647 == 1) 21759 ? 1 : -1]; 21760int 21761main () 21762{ 21763 21764 ; 21765 return 0; 21766} 21767_ACEOF 21768rm -f conftest.$ac_objext 21769if { (ac_try="$ac_compile" 21770case "(($ac_try" in 21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21772 *) ac_try_echo=$ac_try;; 21773esac 21774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21775 (eval "$ac_compile") 2>conftest.er1 21776 ac_status=$? 21777 grep -v '^ *+' conftest.er1 >conftest.err 21778 rm -f conftest.er1 21779 cat conftest.err >&5 21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21781 (exit $ac_status); } && 21782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21783 { (case "(($ac_try" in 21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21785 *) ac_try_echo=$ac_try;; 21786esac 21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21788 (eval "$ac_try") 2>&5 21789 ac_status=$? 21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21791 (exit $ac_status); }; } && 21792 { ac_try='test -s conftest.$ac_objext' 21793 { (case "(($ac_try" in 21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21795 *) ac_try_echo=$ac_try;; 21796esac 21797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21798 (eval "$ac_try") 2>&5 21799 ac_status=$? 21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21801 (exit $ac_status); }; }; then 21802 ac_cv_sys_file_offset_bits=64; break 21803else 21804 echo "$as_me: failed program was:" >&5 21805sed 's/^/| /' conftest.$ac_ext >&5 21806 21807 21808fi 21809 21810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21811 break 21812done 21813fi 21814{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 21815echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 21816if test "$ac_cv_sys_file_offset_bits" != no; then 21817 21818cat >>confdefs.h <<_ACEOF 21819#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21820_ACEOF 21821 21822fi 21823rm -f conftest* 21824 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 21825echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 21826if test "${ac_cv_sys_large_files+set}" = set; then 21827 echo $ECHO_N "(cached) $ECHO_C" >&6 21828else 21829 while :; do 21830 ac_cv_sys_large_files=no 21831 cat >conftest.$ac_ext <<_ACEOF 21832/* confdefs.h. */ 21833_ACEOF 21834cat confdefs.h >>conftest.$ac_ext 21835cat >>conftest.$ac_ext <<_ACEOF 21836/* end confdefs.h. */ 21837#include <sys/types.h> 21838 /* Check that off_t can represent 2**63 - 1 correctly. 21839 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21840 since some C++ compilers masquerading as C compilers 21841 incorrectly reject 9223372036854775807. */ 21842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21844 && LARGE_OFF_T % 2147483647 == 1) 21845 ? 1 : -1]; 21846int 21847main () 21848{ 21849 21850 ; 21851 return 0; 21852} 21853_ACEOF 21854rm -f conftest.$ac_objext 21855if { (ac_try="$ac_compile" 21856case "(($ac_try" in 21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21858 *) ac_try_echo=$ac_try;; 21859esac 21860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21861 (eval "$ac_compile") 2>conftest.er1 21862 ac_status=$? 21863 grep -v '^ *+' conftest.er1 >conftest.err 21864 rm -f conftest.er1 21865 cat conftest.err >&5 21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21867 (exit $ac_status); } && 21868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21869 { (case "(($ac_try" in 21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21871 *) ac_try_echo=$ac_try;; 21872esac 21873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21874 (eval "$ac_try") 2>&5 21875 ac_status=$? 21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21877 (exit $ac_status); }; } && 21878 { ac_try='test -s conftest.$ac_objext' 21879 { (case "(($ac_try" in 21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21881 *) ac_try_echo=$ac_try;; 21882esac 21883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21884 (eval "$ac_try") 2>&5 21885 ac_status=$? 21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21887 (exit $ac_status); }; }; then 21888 break 21889else 21890 echo "$as_me: failed program was:" >&5 21891sed 's/^/| /' conftest.$ac_ext >&5 21892 21893 21894fi 21895 21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21897 cat >conftest.$ac_ext <<_ACEOF 21898/* confdefs.h. */ 21899_ACEOF 21900cat confdefs.h >>conftest.$ac_ext 21901cat >>conftest.$ac_ext <<_ACEOF 21902/* end confdefs.h. */ 21903#define _LARGE_FILES 1 21904#include <sys/types.h> 21905 /* Check that off_t can represent 2**63 - 1 correctly. 21906 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21907 since some C++ compilers masquerading as C compilers 21908 incorrectly reject 9223372036854775807. */ 21909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21911 && LARGE_OFF_T % 2147483647 == 1) 21912 ? 1 : -1]; 21913int 21914main () 21915{ 21916 21917 ; 21918 return 0; 21919} 21920_ACEOF 21921rm -f conftest.$ac_objext 21922if { (ac_try="$ac_compile" 21923case "(($ac_try" in 21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21925 *) ac_try_echo=$ac_try;; 21926esac 21927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21928 (eval "$ac_compile") 2>conftest.er1 21929 ac_status=$? 21930 grep -v '^ *+' conftest.er1 >conftest.err 21931 rm -f conftest.er1 21932 cat conftest.err >&5 21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21934 (exit $ac_status); } && 21935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21936 { (case "(($ac_try" in 21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21938 *) ac_try_echo=$ac_try;; 21939esac 21940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21941 (eval "$ac_try") 2>&5 21942 ac_status=$? 21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21944 (exit $ac_status); }; } && 21945 { ac_try='test -s conftest.$ac_objext' 21946 { (case "(($ac_try" in 21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21948 *) ac_try_echo=$ac_try;; 21949esac 21950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21951 (eval "$ac_try") 2>&5 21952 ac_status=$? 21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21954 (exit $ac_status); }; }; then 21955 ac_cv_sys_large_files=1; break 21956else 21957 echo "$as_me: failed program was:" >&5 21958sed 's/^/| /' conftest.$ac_ext >&5 21959 21960 21961fi 21962 21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21964 break 21965done 21966fi 21967{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 21968echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 21969if test "$ac_cv_sys_large_files" != no; then 21970 21971cat >>confdefs.h <<_ACEOF 21972#define _LARGE_FILES $ac_cv_sys_large_files 21973_ACEOF 21974 21975fi 21976rm -f conftest* 21977fi 21978 21979{ echo "$as_me:$LINENO: checking for comparison_fn_t" >&5 21980echo $ECHO_N "checking for comparison_fn_t... $ECHO_C" >&6; } 21981if test "${ac_cv_type_comparison_fn_t+set}" = set; then 21982 echo $ECHO_N "(cached) $ECHO_C" >&6 21983else 21984 cat >conftest.$ac_ext <<_ACEOF 21985/* confdefs.h. */ 21986_ACEOF 21987cat confdefs.h >>conftest.$ac_ext 21988cat >>conftest.$ac_ext <<_ACEOF 21989/* end confdefs.h. */ 21990$ac_includes_default 21991typedef comparison_fn_t ac__type_new_; 21992int 21993main () 21994{ 21995if ((ac__type_new_ *) 0) 21996 return 0; 21997if (sizeof (ac__type_new_)) 21998 return 0; 21999 ; 22000 return 0; 22001} 22002_ACEOF 22003rm -f conftest.$ac_objext 22004if { (ac_try="$ac_compile" 22005case "(($ac_try" in 22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22007 *) ac_try_echo=$ac_try;; 22008esac 22009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22010 (eval "$ac_compile") 2>conftest.er1 22011 ac_status=$? 22012 grep -v '^ *+' conftest.er1 >conftest.err 22013 rm -f conftest.er1 22014 cat conftest.err >&5 22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22016 (exit $ac_status); } && 22017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22018 { (case "(($ac_try" in 22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22020 *) ac_try_echo=$ac_try;; 22021esac 22022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22023 (eval "$ac_try") 2>&5 22024 ac_status=$? 22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22026 (exit $ac_status); }; } && 22027 { ac_try='test -s conftest.$ac_objext' 22028 { (case "(($ac_try" in 22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22030 *) ac_try_echo=$ac_try;; 22031esac 22032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22033 (eval "$ac_try") 2>&5 22034 ac_status=$? 22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22036 (exit $ac_status); }; }; then 22037 ac_cv_type_comparison_fn_t=yes 22038else 22039 echo "$as_me: failed program was:" >&5 22040sed 's/^/| /' conftest.$ac_ext >&5 22041 22042 ac_cv_type_comparison_fn_t=no 22043fi 22044 22045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22046fi 22047{ echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5 22048echo "${ECHO_T}$ac_cv_type_comparison_fn_t" >&6; } 22049if test $ac_cv_type_comparison_fn_t = yes; then 22050 22051cat >>confdefs.h <<_ACEOF 22052#define HAVE_COMPARISON_FN_T 1 22053_ACEOF 22054 22055 22056fi 22057 22058{ echo "$as_me:$LINENO: checking for struct sigaction.sa_restorer" >&5 22059echo $ECHO_N "checking for struct sigaction.sa_restorer... $ECHO_C" >&6; } 22060if test "${ac_cv_member_struct_sigaction_sa_restorer+set}" = set; then 22061 echo $ECHO_N "(cached) $ECHO_C" >&6 22062else 22063 cat >conftest.$ac_ext <<_ACEOF 22064/* confdefs.h. */ 22065_ACEOF 22066cat confdefs.h >>conftest.$ac_ext 22067cat >>conftest.$ac_ext <<_ACEOF 22068/* end confdefs.h. */ 22069#include <signal.h> 22070 22071int 22072main () 22073{ 22074static struct sigaction ac_aggr; 22075if (ac_aggr.sa_restorer) 22076return 0; 22077 ; 22078 return 0; 22079} 22080_ACEOF 22081rm -f conftest.$ac_objext 22082if { (ac_try="$ac_compile" 22083case "(($ac_try" in 22084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22085 *) ac_try_echo=$ac_try;; 22086esac 22087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22088 (eval "$ac_compile") 2>conftest.er1 22089 ac_status=$? 22090 grep -v '^ *+' conftest.er1 >conftest.err 22091 rm -f conftest.er1 22092 cat conftest.err >&5 22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22094 (exit $ac_status); } && 22095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22096 { (case "(($ac_try" in 22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22098 *) ac_try_echo=$ac_try;; 22099esac 22100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22101 (eval "$ac_try") 2>&5 22102 ac_status=$? 22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22104 (exit $ac_status); }; } && 22105 { ac_try='test -s conftest.$ac_objext' 22106 { (case "(($ac_try" in 22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22108 *) ac_try_echo=$ac_try;; 22109esac 22110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22111 (eval "$ac_try") 2>&5 22112 ac_status=$? 22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22114 (exit $ac_status); }; }; then 22115 ac_cv_member_struct_sigaction_sa_restorer=yes 22116else 22117 echo "$as_me: failed program was:" >&5 22118sed 's/^/| /' conftest.$ac_ext >&5 22119 22120 cat >conftest.$ac_ext <<_ACEOF 22121/* confdefs.h. */ 22122_ACEOF 22123cat confdefs.h >>conftest.$ac_ext 22124cat >>conftest.$ac_ext <<_ACEOF 22125/* end confdefs.h. */ 22126#include <signal.h> 22127 22128int 22129main () 22130{ 22131static struct sigaction ac_aggr; 22132if (sizeof ac_aggr.sa_restorer) 22133return 0; 22134 ; 22135 return 0; 22136} 22137_ACEOF 22138rm -f conftest.$ac_objext 22139if { (ac_try="$ac_compile" 22140case "(($ac_try" in 22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22142 *) ac_try_echo=$ac_try;; 22143esac 22144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22145 (eval "$ac_compile") 2>conftest.er1 22146 ac_status=$? 22147 grep -v '^ *+' conftest.er1 >conftest.err 22148 rm -f conftest.er1 22149 cat conftest.err >&5 22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22151 (exit $ac_status); } && 22152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22153 { (case "(($ac_try" in 22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22155 *) ac_try_echo=$ac_try;; 22156esac 22157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22158 (eval "$ac_try") 2>&5 22159 ac_status=$? 22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22161 (exit $ac_status); }; } && 22162 { ac_try='test -s conftest.$ac_objext' 22163 { (case "(($ac_try" in 22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22165 *) ac_try_echo=$ac_try;; 22166esac 22167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22168 (eval "$ac_try") 2>&5 22169 ac_status=$? 22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22171 (exit $ac_status); }; }; then 22172 ac_cv_member_struct_sigaction_sa_restorer=yes 22173else 22174 echo "$as_me: failed program was:" >&5 22175sed 's/^/| /' conftest.$ac_ext >&5 22176 22177 ac_cv_member_struct_sigaction_sa_restorer=no 22178fi 22179 22180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22181fi 22182 22183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22184fi 22185{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigaction_sa_restorer" >&5 22186echo "${ECHO_T}$ac_cv_member_struct_sigaction_sa_restorer" >&6; } 22187if test $ac_cv_member_struct_sigaction_sa_restorer = yes; then 22188 22189cat >>confdefs.h <<_ACEOF 22190#define HAVE_STRUCT_SIGACTION_SA_RESTORER 1 22191_ACEOF 22192 22193 22194fi 22195 22196 22197# Checks for library functions 22198 22199# Output generation 22200ac_config_files="$ac_config_files Makefile po/Makefile.in lib/Makefile src/Makefile src/common/Makefile src/tth/Makefile rpm/microdc.spec" 22201 22202ac_config_files="$ac_config_files slackware/microdc.SlackBuild" 22203 22204cat >confcache <<\_ACEOF 22205# This file is a shell script that caches the results of configure 22206# tests run on this system so they can be shared between configure 22207# scripts and configure runs, see configure's option --config-cache. 22208# It is not useful on other systems. If it contains results you don't 22209# want to keep, you may remove or edit it. 22210# 22211# config.status only pays attention to the cache file if you give it 22212# the --recheck option to rerun configure. 22213# 22214# `ac_cv_env_foo' variables (set or unset) will be overridden when 22215# loading this file, other *unset* `ac_cv_foo' will be assigned the 22216# following values. 22217 22218_ACEOF 22219 22220# The following way of writing the cache mishandles newlines in values, 22221# but we know of no workaround that is simple, portable, and efficient. 22222# So, we kill variables containing newlines. 22223# Ultrix sh set writes to stderr and can't be redirected directly, 22224# and sets the high bit in the cache file unless we assign to the vars. 22225( 22226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22227 eval ac_val=\$$ac_var 22228 case $ac_val in #( 22229 *${as_nl}*) 22230 case $ac_var in #( 22231 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22232echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22233 esac 22234 case $ac_var in #( 22235 _ | IFS | as_nl) ;; #( 22236 *) $as_unset $ac_var ;; 22237 esac ;; 22238 esac 22239 done 22240 22241 (set) 2>&1 | 22242 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22243 *${as_nl}ac_space=\ *) 22244 # `set' does not quote correctly, so add quotes (double-quote 22245 # substitution turns \\\\ into \\, and sed turns \\ into \). 22246 sed -n \ 22247 "s/'/'\\\\''/g; 22248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22249 ;; #( 22250 *) 22251 # `set' quotes correctly as required by POSIX, so do not add quotes. 22252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22253 ;; 22254 esac | 22255 sort 22256) | 22257 sed ' 22258 /^ac_cv_env_/b end 22259 t clear 22260 :clear 22261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22262 t end 22263 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22264 :end' >>confcache 22265if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22266 if test -w "$cache_file"; then 22267 test "x$cache_file" != "x/dev/null" && 22268 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22269echo "$as_me: updating cache $cache_file" >&6;} 22270 cat confcache >$cache_file 22271 else 22272 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22273echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22274 fi 22275fi 22276rm -f confcache 22277 22278test "x$prefix" = xNONE && prefix=$ac_default_prefix 22279# Let make expand exec_prefix. 22280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22281 22282DEFS=-DHAVE_CONFIG_H 22283 22284ac_libobjs= 22285ac_ltlibobjs= 22286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22287 # 1. Remove the extension, and $U if already installed. 22288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22289 ac_i=`echo "$ac_i" | sed "$ac_script"` 22290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22291 # will be set to the directory where LIBOBJS objects are built. 22292 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22293 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22294done 22295LIBOBJS=$ac_libobjs 22296 22297LTLIBOBJS=$ac_ltlibobjs 22298 22299 22300if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22301 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22302Usually this means the macro was only invoked conditionally." >&5 22303echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22304Usually this means the macro was only invoked conditionally." >&2;} 22305 { (exit 1); exit 1; }; } 22306fi 22307if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22308 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22309Usually this means the macro was only invoked conditionally." >&5 22310echo "$as_me: error: conditional \"AMDEP\" was never defined. 22311Usually this means the macro was only invoked conditionally." >&2;} 22312 { (exit 1); exit 1; }; } 22313fi 22314if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22315 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22316Usually this means the macro was only invoked conditionally." >&5 22317echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22318Usually this means the macro was only invoked conditionally." >&2;} 22319 { (exit 1); exit 1; }; } 22320fi 22321if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22322 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22323Usually this means the macro was only invoked conditionally." >&5 22324echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22325Usually this means the macro was only invoked conditionally." >&2;} 22326 { (exit 1); exit 1; }; } 22327fi 22328 22329: ${CONFIG_STATUS=./config.status} 22330ac_clean_files_save=$ac_clean_files 22331ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22332{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22333echo "$as_me: creating $CONFIG_STATUS" >&6;} 22334cat >$CONFIG_STATUS <<_ACEOF 22335#! $SHELL 22336# Generated by $as_me. 22337# Run this file to recreate the current configuration. 22338# Compiler output produced by configure, useful for debugging 22339# configure, is in config.log if it exists. 22340 22341debug=false 22342ac_cs_recheck=false 22343ac_cs_silent=false 22344SHELL=\${CONFIG_SHELL-$SHELL} 22345_ACEOF 22346 22347cat >>$CONFIG_STATUS <<\_ACEOF 22348## --------------------- ## 22349## M4sh Initialization. ## 22350## --------------------- ## 22351 22352# Be Bourne compatible 22353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22354 emulate sh 22355 NULLCMD=: 22356 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22357 # is contrary to our usage. Disable this feature. 22358 alias -g '${1+"$@"}'='"$@"' 22359 setopt NO_GLOB_SUBST 22360else 22361 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22362fi 22363BIN_SH=xpg4; export BIN_SH # for Tru64 22364DUALCASE=1; export DUALCASE # for MKS sh 22365 22366 22367# PATH needs CR 22368# Avoid depending upon Character Ranges. 22369as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22371as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22372as_cr_digits='0123456789' 22373as_cr_alnum=$as_cr_Letters$as_cr_digits 22374 22375# The user is always right. 22376if test "${PATH_SEPARATOR+set}" != set; then 22377 echo "#! /bin/sh" >conf$$.sh 22378 echo "exit 0" >>conf$$.sh 22379 chmod +x conf$$.sh 22380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22381 PATH_SEPARATOR=';' 22382 else 22383 PATH_SEPARATOR=: 22384 fi 22385 rm -f conf$$.sh 22386fi 22387 22388# Support unset when possible. 22389if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22390 as_unset=unset 22391else 22392 as_unset=false 22393fi 22394 22395 22396# IFS 22397# We need space, tab and new line, in precisely that order. Quoting is 22398# there to prevent editors from complaining about space-tab. 22399# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22400# splitting by setting IFS to empty value.) 22401as_nl=' 22402' 22403IFS=" "" $as_nl" 22404 22405# Find who we are. Look in the path if we contain no directory separator. 22406case $0 in 22407 *[\\/]* ) as_myself=$0 ;; 22408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22409for as_dir in $PATH 22410do 22411 IFS=$as_save_IFS 22412 test -z "$as_dir" && as_dir=. 22413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22414done 22415IFS=$as_save_IFS 22416 22417 ;; 22418esac 22419# We did not find ourselves, most probably we were run as `sh COMMAND' 22420# in which case we are not to be found in the path. 22421if test "x$as_myself" = x; then 22422 as_myself=$0 22423fi 22424if test ! -f "$as_myself"; then 22425 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22426 { (exit 1); exit 1; } 22427fi 22428 22429# Work around bugs in pre-3.0 UWIN ksh. 22430for as_var in ENV MAIL MAILPATH 22431do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22432done 22433PS1='$ ' 22434PS2='> ' 22435PS4='+ ' 22436 22437# NLS nuisances. 22438for as_var in \ 22439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22441 LC_TELEPHONE LC_TIME 22442do 22443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22444 eval $as_var=C; export $as_var 22445 else 22446 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22447 fi 22448done 22449 22450# Required to use basename. 22451if expr a : '\(a\)' >/dev/null 2>&1 && 22452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22453 as_expr=expr 22454else 22455 as_expr=false 22456fi 22457 22458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22459 as_basename=basename 22460else 22461 as_basename=false 22462fi 22463 22464 22465# Name of the executable. 22466as_me=`$as_basename -- "$0" || 22467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22468 X"$0" : 'X\(//\)$' \| \ 22469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22470echo X/"$0" | 22471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22472 s//\1/ 22473 q 22474 } 22475 /^X\/\(\/\/\)$/{ 22476 s//\1/ 22477 q 22478 } 22479 /^X\/\(\/\).*/{ 22480 s//\1/ 22481 q 22482 } 22483 s/.*/./; q'` 22484 22485# CDPATH. 22486$as_unset CDPATH 22487 22488 22489 22490 as_lineno_1=$LINENO 22491 as_lineno_2=$LINENO 22492 test "x$as_lineno_1" != "x$as_lineno_2" && 22493 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22494 22495 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22496 # uniformly replaced by the line number. The first 'sed' inserts a 22497 # line-number line after each line using $LINENO; the second 'sed' 22498 # does the real work. The second script uses 'N' to pair each 22499 # line-number line with the line containing $LINENO, and appends 22500 # trailing '-' during substitution so that $LINENO is not a special 22501 # case at line end. 22502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22503 # scripts with optimization help from Paolo Bonzini. Blame Lee 22504 # E. McMahon (1931-1989) for sed's syntax. :-) 22505 sed -n ' 22506 p 22507 /[$]LINENO/= 22508 ' <$as_myself | 22509 sed ' 22510 s/[$]LINENO.*/&-/ 22511 t lineno 22512 b 22513 :lineno 22514 N 22515 :loop 22516 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22517 t loop 22518 s/-\n.*// 22519 ' >$as_me.lineno && 22520 chmod +x "$as_me.lineno" || 22521 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22522 { (exit 1); exit 1; }; } 22523 22524 # Don't try to exec as it changes $[0], causing all sort of problems 22525 # (the dirname of $[0] is not the place where we might find the 22526 # original and so on. Autoconf is especially sensitive to this). 22527 . "./$as_me.lineno" 22528 # Exit status is that of the last command. 22529 exit 22530} 22531 22532 22533if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22534 as_dirname=dirname 22535else 22536 as_dirname=false 22537fi 22538 22539ECHO_C= ECHO_N= ECHO_T= 22540case `echo -n x` in 22541-n*) 22542 case `echo 'x\c'` in 22543 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22544 *) ECHO_C='\c';; 22545 esac;; 22546*) 22547 ECHO_N='-n';; 22548esac 22549 22550if expr a : '\(a\)' >/dev/null 2>&1 && 22551 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22552 as_expr=expr 22553else 22554 as_expr=false 22555fi 22556 22557rm -f conf$$ conf$$.exe conf$$.file 22558if test -d conf$$.dir; then 22559 rm -f conf$$.dir/conf$$.file 22560else 22561 rm -f conf$$.dir 22562 mkdir conf$$.dir 22563fi 22564echo >conf$$.file 22565if ln -s conf$$.file conf$$ 2>/dev/null; then 22566 as_ln_s='ln -s' 22567 # ... but there are two gotchas: 22568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22570 # In both cases, we have to default to `cp -p'. 22571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22572 as_ln_s='cp -p' 22573elif ln conf$$.file conf$$ 2>/dev/null; then 22574 as_ln_s=ln 22575else 22576 as_ln_s='cp -p' 22577fi 22578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22579rmdir conf$$.dir 2>/dev/null 22580 22581if mkdir -p . 2>/dev/null; then 22582 as_mkdir_p=: 22583else 22584 test -d ./-p && rmdir ./-p 22585 as_mkdir_p=false 22586fi 22587 22588# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22589# systems may use methods other than mode bits to determine executability. 22590cat >conf$$.file <<_ASEOF 22591#! /bin/sh 22592exit 0 22593_ASEOF 22594chmod +x conf$$.file 22595if test -x conf$$.file >/dev/null 2>&1; then 22596 as_executable_p="test -x" 22597else 22598 as_executable_p=: 22599fi 22600rm -f conf$$.file 22601 22602# Sed expression to map a string onto a valid CPP name. 22603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22604 22605# Sed expression to map a string onto a valid variable name. 22606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22607 22608 22609exec 6>&1 22610 22611# Save the log message, to keep $[0] and so on meaningful, and to 22612# report actual input values of CONFIG_FILES etc. instead of their 22613# values after options handling. 22614ac_log=" 22615This file was extended by microdc2 $as_me 0.15.6, which was 22616generated by GNU Autoconf 2.60. Invocation command line was 22617 22618 CONFIG_FILES = $CONFIG_FILES 22619 CONFIG_HEADERS = $CONFIG_HEADERS 22620 CONFIG_LINKS = $CONFIG_LINKS 22621 CONFIG_COMMANDS = $CONFIG_COMMANDS 22622 $ $0 $@ 22623 22624on `(hostname || uname -n) 2>/dev/null | sed 1q` 22625" 22626 22627_ACEOF 22628 22629cat >>$CONFIG_STATUS <<_ACEOF 22630# Files that config.status was made for. 22631config_files="$ac_config_files" 22632config_headers="$ac_config_headers" 22633config_commands="$ac_config_commands" 22634 22635_ACEOF 22636 22637cat >>$CONFIG_STATUS <<\_ACEOF 22638ac_cs_usage="\ 22639\`$as_me' instantiates files from templates according to the 22640current configuration. 22641 22642Usage: $0 [OPTIONS] [FILE]... 22643 22644 -h, --help print this help, then exit 22645 -V, --version print version number, then exit 22646 -q, --quiet do not print progress messages 22647 -d, --debug don't remove temporary files 22648 --recheck update $as_me by reconfiguring in the same conditions 22649 --file=FILE[:TEMPLATE] 22650 instantiate the configuration file FILE 22651 --header=FILE[:TEMPLATE] 22652 instantiate the configuration header FILE 22653 22654Configuration files: 22655$config_files 22656 22657Configuration headers: 22658$config_headers 22659 22660Configuration commands: 22661$config_commands 22662 22663Report bugs to <bug-autoconf@gnu.org>." 22664 22665_ACEOF 22666cat >>$CONFIG_STATUS <<_ACEOF 22667ac_cs_version="\\ 22668microdc2 config.status 0.15.6 22669configured by $0, generated by GNU Autoconf 2.60, 22670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22671 22672Copyright (C) 2006 Free Software Foundation, Inc. 22673This config.status script is free software; the Free Software Foundation 22674gives unlimited permission to copy, distribute and modify it." 22675 22676ac_pwd='$ac_pwd' 22677srcdir='$srcdir' 22678INSTALL='$INSTALL' 22679_ACEOF 22680 22681cat >>$CONFIG_STATUS <<\_ACEOF 22682# If no file are specified by the user, then we need to provide default 22683# value. By we need to know if files were specified by the user. 22684ac_need_defaults=: 22685while test $# != 0 22686do 22687 case $1 in 22688 --*=*) 22689 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22691 ac_shift=: 22692 ;; 22693 *) 22694 ac_option=$1 22695 ac_optarg=$2 22696 ac_shift=shift 22697 ;; 22698 esac 22699 22700 case $ac_option in 22701 # Handling of the options. 22702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22703 ac_cs_recheck=: ;; 22704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22705 echo "$ac_cs_version"; exit ;; 22706 --debug | --debu | --deb | --de | --d | -d ) 22707 debug=: ;; 22708 --file | --fil | --fi | --f ) 22709 $ac_shift 22710 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22711 ac_need_defaults=false;; 22712 --header | --heade | --head | --hea ) 22713 $ac_shift 22714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22715 ac_need_defaults=false;; 22716 --he | --h) 22717 # Conflict between --help and --header 22718 { echo "$as_me: error: ambiguous option: $1 22719Try \`$0 --help' for more information." >&2 22720 { (exit 1); exit 1; }; };; 22721 --help | --hel | -h ) 22722 echo "$ac_cs_usage"; exit ;; 22723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22724 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22725 ac_cs_silent=: ;; 22726 22727 # This is an error. 22728 -*) { echo "$as_me: error: unrecognized option: $1 22729Try \`$0 --help' for more information." >&2 22730 { (exit 1); exit 1; }; } ;; 22731 22732 *) ac_config_targets="$ac_config_targets $1" 22733 ac_need_defaults=false ;; 22734 22735 esac 22736 shift 22737done 22738 22739ac_configure_extra_args= 22740 22741if $ac_cs_silent; then 22742 exec 6>/dev/null 22743 ac_configure_extra_args="$ac_configure_extra_args --silent" 22744fi 22745 22746_ACEOF 22747cat >>$CONFIG_STATUS <<_ACEOF 22748if \$ac_cs_recheck; then 22749 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22750 CONFIG_SHELL=$SHELL 22751 export CONFIG_SHELL 22752 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22753fi 22754 22755_ACEOF 22756cat >>$CONFIG_STATUS <<\_ACEOF 22757exec 5>>config.log 22758{ 22759 echo 22760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22761## Running $as_me. ## 22762_ASBOX 22763 echo "$ac_log" 22764} >&5 22765 22766_ACEOF 22767cat >>$CONFIG_STATUS <<_ACEOF 22768# 22769# INIT-COMMANDS 22770# 22771AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22772# Capture the value of obsolete ALL_LINGUAS because we need it to compute 22773 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 22774 # from automake. 22775 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 22776 # Capture the value of LINGUAS because we need it to compute CATALOGS. 22777 LINGUAS="${LINGUAS-%UNSET%}" 22778 22779 22780_ACEOF 22781 22782cat >>$CONFIG_STATUS <<\_ACEOF 22783 22784# Handling of arguments. 22785for ac_config_target in $ac_config_targets 22786do 22787 case $ac_config_target in 22788 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22789 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22790 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 22791 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22792 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 22793 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22794 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22795 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 22796 "src/tth/Makefile") CONFIG_FILES="$CONFIG_FILES src/tth/Makefile" ;; 22797 "rpm/microdc.spec") CONFIG_FILES="$CONFIG_FILES rpm/microdc.spec" ;; 22798 "slackware/microdc.SlackBuild") CONFIG_FILES="$CONFIG_FILES slackware/microdc.SlackBuild" ;; 22799 22800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22801echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22802 { (exit 1); exit 1; }; };; 22803 esac 22804done 22805 22806 22807# If the user did not use the arguments to specify the items to instantiate, 22808# then the envvar interface is used. Set only those that are not. 22809# We use the long form for the default assignment because of an extremely 22810# bizarre bug on SunOS 4.1.3. 22811if $ac_need_defaults; then 22812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22815fi 22816 22817# Have a temporary directory for convenience. Make it in the build tree 22818# simply because there is no reason against having it here, and in addition, 22819# creating and moving files from /tmp can sometimes cause problems. 22820# Hook for its removal unless debugging. 22821# Note that there is a small window in which the directory will not be cleaned: 22822# after its creation but before its name has been assigned to `$tmp'. 22823$debug || 22824{ 22825 tmp= 22826 trap 'exit_status=$? 22827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22828' 0 22829 trap '{ (exit 1); exit 1; }' 1 2 13 15 22830} 22831# Create a (secure) tmp directory for tmp files. 22832 22833{ 22834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22835 test -n "$tmp" && test -d "$tmp" 22836} || 22837{ 22838 tmp=./conf$$-$RANDOM 22839 (umask 077 && mkdir "$tmp") 22840} || 22841{ 22842 echo "$me: cannot create a temporary directory in ." >&2 22843 { (exit 1); exit 1; } 22844} 22845 22846# 22847# Set up the sed scripts for CONFIG_FILES section. 22848# 22849 22850# No need to generate the scripts if there are no CONFIG_FILES. 22851# This happens for instance when ./config.status config.h 22852if test -n "$CONFIG_FILES"; then 22853 22854_ACEOF 22855 22856 22857 22858ac_delim='%!_!# ' 22859for ac_last_try in false false false false false :; do 22860 cat >conf$$subs.sed <<_ACEOF 22861SHELL!$SHELL$ac_delim 22862PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22863PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22864PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22865PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22866PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22867PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22868exec_prefix!$exec_prefix$ac_delim 22869prefix!$prefix$ac_delim 22870program_transform_name!$program_transform_name$ac_delim 22871bindir!$bindir$ac_delim 22872sbindir!$sbindir$ac_delim 22873libexecdir!$libexecdir$ac_delim 22874datarootdir!$datarootdir$ac_delim 22875datadir!$datadir$ac_delim 22876sysconfdir!$sysconfdir$ac_delim 22877sharedstatedir!$sharedstatedir$ac_delim 22878localstatedir!$localstatedir$ac_delim 22879includedir!$includedir$ac_delim 22880oldincludedir!$oldincludedir$ac_delim 22881docdir!$docdir$ac_delim 22882infodir!$infodir$ac_delim 22883htmldir!$htmldir$ac_delim 22884dvidir!$dvidir$ac_delim 22885pdfdir!$pdfdir$ac_delim 22886psdir!$psdir$ac_delim 22887libdir!$libdir$ac_delim 22888localedir!$localedir$ac_delim 22889mandir!$mandir$ac_delim 22890DEFS!$DEFS$ac_delim 22891ECHO_C!$ECHO_C$ac_delim 22892ECHO_N!$ECHO_N$ac_delim 22893ECHO_T!$ECHO_T$ac_delim 22894LIBS!$LIBS$ac_delim 22895build_alias!$build_alias$ac_delim 22896host_alias!$host_alias$ac_delim 22897target_alias!$target_alias$ac_delim 22898INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22899INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22900INSTALL_DATA!$INSTALL_DATA$ac_delim 22901CYGPATH_W!$CYGPATH_W$ac_delim 22902PACKAGE!$PACKAGE$ac_delim 22903VERSION!$VERSION$ac_delim 22904ACLOCAL!$ACLOCAL$ac_delim 22905AUTOCONF!$AUTOCONF$ac_delim 22906AUTOMAKE!$AUTOMAKE$ac_delim 22907AUTOHEADER!$AUTOHEADER$ac_delim 22908MAKEINFO!$MAKEINFO$ac_delim 22909install_sh!$install_sh$ac_delim 22910STRIP!$STRIP$ac_delim 22911INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22912mkdir_p!$mkdir_p$ac_delim 22913AWK!$AWK$ac_delim 22914SET_MAKE!$SET_MAKE$ac_delim 22915am__leading_dot!$am__leading_dot$ac_delim 22916AMTAR!$AMTAR$ac_delim 22917am__tar!$am__tar$ac_delim 22918am__untar!$am__untar$ac_delim 22919LOCALEDIR!$LOCALEDIR$ac_delim 22920MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22921MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22922MAINT!$MAINT$ac_delim 22923CC!$CC$ac_delim 22924CFLAGS!$CFLAGS$ac_delim 22925LDFLAGS!$LDFLAGS$ac_delim 22926CPPFLAGS!$CPPFLAGS$ac_delim 22927ac_ct_CC!$ac_ct_CC$ac_delim 22928EXEEXT!$EXEEXT$ac_delim 22929OBJEXT!$OBJEXT$ac_delim 22930DEPDIR!$DEPDIR$ac_delim 22931am__include!$am__include$ac_delim 22932am__quote!$am__quote$ac_delim 22933AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22934AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22935AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22936CCDEPMODE!$CCDEPMODE$ac_delim 22937am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22938am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22939CPP!$CPP$ac_delim 22940GREP!$GREP$ac_delim 22941EGREP!$EGREP$ac_delim 22942ALLOCA!$ALLOCA$ac_delim 22943ALLOCA_H!$ALLOCA_H$ac_delim 22944LIBOBJS!$LIBOBJS$ac_delim 22945FNMATCH_H!$FNMATCH_H$ac_delim 22946GETOPT_H!$GETOPT_H$ac_delim 22947STDBOOL_H!$STDBOOL_H$ac_delim 22948HAVE__BOOL!$HAVE__BOOL$ac_delim 22949build!$build$ac_delim 22950build_cpu!$build_cpu$ac_delim 22951build_vendor!$build_vendor$ac_delim 22952build_os!$build_os$ac_delim 22953host!$host$ac_delim 22954host_cpu!$host_cpu$ac_delim 22955host_vendor!$host_vendor$ac_delim 22956host_os!$host_os$ac_delim 22957LIBICONV!$LIBICONV$ac_delim 22958_ACEOF 22959 22960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22961 break 22962 elif $ac_last_try; then 22963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22965 { (exit 1); exit 1; }; } 22966 else 22967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22968 fi 22969done 22970 22971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22972if test -n "$ac_eof"; then 22973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22974 ac_eof=`expr $ac_eof + 1` 22975fi 22976 22977cat >>$CONFIG_STATUS <<_ACEOF 22978cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22980_ACEOF 22981sed ' 22982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22983s/^/s,@/; s/!/@,|#_!!_#|/ 22984:n 22985t n 22986s/'"$ac_delim"'$/,g/; t 22987s/$/\\/; p 22988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22989' >>$CONFIG_STATUS <conf$$subs.sed 22990rm -f conf$$subs.sed 22991cat >>$CONFIG_STATUS <<_ACEOF 22992CEOF$ac_eof 22993_ACEOF 22994 22995 22996ac_delim='%!_!# ' 22997for ac_last_try in false false false false false :; do 22998 cat >conf$$subs.sed <<_ACEOF 22999LTLIBICONV!$LTLIBICONV$ac_delim 23000HAVE_LONG_64BIT!$HAVE_LONG_64BIT$ac_delim 23001HAVE_LONG_LONG_64BIT!$HAVE_LONG_LONG_64BIT$ac_delim 23002STDINT_H!$STDINT_H$ac_delim 23003EOVERFLOW!$EOVERFLOW$ac_delim 23004MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 23005USE_NLS!$USE_NLS$ac_delim 23006MSGFMT!$MSGFMT$ac_delim 23007GMSGFMT!$GMSGFMT$ac_delim 23008XGETTEXT!$XGETTEXT$ac_delim 23009MSGMERGE!$MSGMERGE$ac_delim 23010INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim 23011INTLLIBS!$INTLLIBS$ac_delim 23012LIBINTL!$LIBINTL$ac_delim 23013LTLIBINTL!$LTLIBINTL$ac_delim 23014POSUB!$POSUB$ac_delim 23015RANLIB!$RANLIB$ac_delim 23016READLINE_LIBS!$READLINE_LIBS$ac_delim 23017XML_CONFIG!$XML_CONFIG$ac_delim 23018TR!$TR$ac_delim 23019LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 23020LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim 23021LTLIBOBJS!$LTLIBOBJS$ac_delim 23022_ACEOF 23023 23024 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then 23025 break 23026 elif $ac_last_try; then 23027 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23028echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23029 { (exit 1); exit 1; }; } 23030 else 23031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23032 fi 23033done 23034 23035ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23036if test -n "$ac_eof"; then 23037 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23038 ac_eof=`expr $ac_eof + 1` 23039fi 23040 23041cat >>$CONFIG_STATUS <<_ACEOF 23042cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23044_ACEOF 23045sed ' 23046s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23047s/^/s,@/; s/!/@,|#_!!_#|/ 23048:n 23049t n 23050s/'"$ac_delim"'$/,g/; t 23051s/$/\\/; p 23052N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23053' >>$CONFIG_STATUS <conf$$subs.sed 23054rm -f conf$$subs.sed 23055cat >>$CONFIG_STATUS <<_ACEOF 23056:end 23057s/|#_!!_#|//g 23058CEOF$ac_eof 23059_ACEOF 23060 23061 23062# VPATH may cause trouble with some makes, so we remove $(srcdir), 23063# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23064# trailing colons and then remove the whole line if VPATH becomes empty 23065# (actually we leave an empty line to preserve line numbers). 23066if test "x$srcdir" = x.; then 23067 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23068s/:*\$(srcdir):*/:/ 23069s/:*\${srcdir}:*/:/ 23070s/:*@srcdir@:*/:/ 23071s/^\([^=]*=[ ]*\):*/\1/ 23072s/:*$// 23073s/^[^=]*=[ ]*$// 23074}' 23075fi 23076 23077cat >>$CONFIG_STATUS <<\_ACEOF 23078fi # test -n "$CONFIG_FILES" 23079 23080 23081for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23082do 23083 case $ac_tag in 23084 :[FHLC]) ac_mode=$ac_tag; continue;; 23085 esac 23086 case $ac_mode$ac_tag in 23087 :[FHL]*:*);; 23088 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23089echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23090 { (exit 1); exit 1; }; };; 23091 :[FH]-) ac_tag=-:-;; 23092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23093 esac 23094 ac_save_IFS=$IFS 23095 IFS=: 23096 set x $ac_tag 23097 IFS=$ac_save_IFS 23098 shift 23099 ac_file=$1 23100 shift 23101 23102 case $ac_mode in 23103 :L) ac_source=$1;; 23104 :[FH]) 23105 ac_file_inputs= 23106 for ac_f 23107 do 23108 case $ac_f in 23109 -) ac_f="$tmp/stdin";; 23110 *) # Look for the file first in the build tree, then in the source tree 23111 # (if the path is not absolute). The absolute path cannot be DOS-style, 23112 # because $ac_f cannot contain `:'. 23113 test -f "$ac_f" || 23114 case $ac_f in 23115 [\\/$]*) false;; 23116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23117 esac || 23118 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23119echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23120 { (exit 1); exit 1; }; };; 23121 esac 23122 ac_file_inputs="$ac_file_inputs $ac_f" 23123 done 23124 23125 # Let's still pretend it is `configure' which instantiates (i.e., don't 23126 # use $as_me), people would be surprised to read: 23127 # /* config.h. Generated by config.status. */ 23128 configure_input="Generated from "`IFS=: 23129 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23130 if test x"$ac_file" != x-; then 23131 configure_input="$ac_file. $configure_input" 23132 { echo "$as_me:$LINENO: creating $ac_file" >&5 23133echo "$as_me: creating $ac_file" >&6;} 23134 fi 23135 23136 case $ac_tag in 23137 *:-:* | *:-) cat >"$tmp/stdin";; 23138 esac 23139 ;; 23140 esac 23141 23142 ac_dir=`$as_dirname -- "$ac_file" || 23143$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23144 X"$ac_file" : 'X\(//\)[^/]' \| \ 23145 X"$ac_file" : 'X\(//\)$' \| \ 23146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23147echo X"$ac_file" | 23148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23149 s//\1/ 23150 q 23151 } 23152 /^X\(\/\/\)[^/].*/{ 23153 s//\1/ 23154 q 23155 } 23156 /^X\(\/\/\)$/{ 23157 s//\1/ 23158 q 23159 } 23160 /^X\(\/\).*/{ 23161 s//\1/ 23162 q 23163 } 23164 s/.*/./; q'` 23165 { as_dir="$ac_dir" 23166 case $as_dir in #( 23167 -*) as_dir=./$as_dir;; 23168 esac 23169 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23170 as_dirs= 23171 while :; do 23172 case $as_dir in #( 23173 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23174 *) as_qdir=$as_dir;; 23175 esac 23176 as_dirs="'$as_qdir' $as_dirs" 23177 as_dir=`$as_dirname -- "$as_dir" || 23178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23179 X"$as_dir" : 'X\(//\)[^/]' \| \ 23180 X"$as_dir" : 'X\(//\)$' \| \ 23181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23182echo X"$as_dir" | 23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23184 s//\1/ 23185 q 23186 } 23187 /^X\(\/\/\)[^/].*/{ 23188 s//\1/ 23189 q 23190 } 23191 /^X\(\/\/\)$/{ 23192 s//\1/ 23193 q 23194 } 23195 /^X\(\/\).*/{ 23196 s//\1/ 23197 q 23198 } 23199 s/.*/./; q'` 23200 test -d "$as_dir" && break 23201 done 23202 test -z "$as_dirs" || eval "mkdir $as_dirs" 23203 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23204echo "$as_me: error: cannot create directory $as_dir" >&2;} 23205 { (exit 1); exit 1; }; }; } 23206 ac_builddir=. 23207 23208case "$ac_dir" in 23209.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23210*) 23211 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23212 # A ".." for each directory in $ac_dir_suffix. 23213 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23214 case $ac_top_builddir_sub in 23215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23217 esac ;; 23218esac 23219ac_abs_top_builddir=$ac_pwd 23220ac_abs_builddir=$ac_pwd$ac_dir_suffix 23221# for backward compatibility: 23222ac_top_builddir=$ac_top_build_prefix 23223 23224case $srcdir in 23225 .) # We are building in place. 23226 ac_srcdir=. 23227 ac_top_srcdir=$ac_top_builddir_sub 23228 ac_abs_top_srcdir=$ac_pwd ;; 23229 [\\/]* | ?:[\\/]* ) # Absolute name. 23230 ac_srcdir=$srcdir$ac_dir_suffix; 23231 ac_top_srcdir=$srcdir 23232 ac_abs_top_srcdir=$srcdir ;; 23233 *) # Relative name. 23234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23235 ac_top_srcdir=$ac_top_build_prefix$srcdir 23236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23237esac 23238ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23239 23240 23241 case $ac_mode in 23242 :F) 23243 # 23244 # CONFIG_FILE 23245 # 23246 23247 case $INSTALL in 23248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23250 esac 23251_ACEOF 23252 23253cat >>$CONFIG_STATUS <<\_ACEOF 23254# If the template does not know about datarootdir, expand it. 23255# FIXME: This hack should be removed a few years after 2.60. 23256ac_datarootdir_hack=; ac_datarootdir_seen= 23257 23258case `sed -n '/datarootdir/ { 23259 p 23260 q 23261} 23262/@datadir@/p 23263/@docdir@/p 23264/@infodir@/p 23265/@localedir@/p 23266/@mandir@/p 23267' $ac_file_inputs` in 23268*datarootdir*) ac_datarootdir_seen=yes;; 23269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23270 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23271echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23272_ACEOF 23273cat >>$CONFIG_STATUS <<_ACEOF 23274 ac_datarootdir_hack=' 23275 s&@datadir@&$datadir&g 23276 s&@docdir@&$docdir&g 23277 s&@infodir@&$infodir&g 23278 s&@localedir@&$localedir&g 23279 s&@mandir@&$mandir&g 23280 s&\\\${datarootdir}&$datarootdir&g' ;; 23281esac 23282_ACEOF 23283 23284# Neutralize VPATH when `$srcdir' = `.'. 23285# Shell code in configure.ac might set extrasub. 23286# FIXME: do we really want to maintain this feature? 23287cat >>$CONFIG_STATUS <<_ACEOF 23288 sed "$ac_vpsub 23289$extrasub 23290_ACEOF 23291cat >>$CONFIG_STATUS <<\_ACEOF 23292:t 23293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23294s&@configure_input@&$configure_input&;t t 23295s&@top_builddir@&$ac_top_builddir_sub&;t t 23296s&@srcdir@&$ac_srcdir&;t t 23297s&@abs_srcdir@&$ac_abs_srcdir&;t t 23298s&@top_srcdir@&$ac_top_srcdir&;t t 23299s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23300s&@builddir@&$ac_builddir&;t t 23301s&@abs_builddir@&$ac_abs_builddir&;t t 23302s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23303s&@INSTALL@&$ac_INSTALL&;t t 23304$ac_datarootdir_hack 23305" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23306 23307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23308 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23310 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23311which seems to be undefined. Please make sure it is defined." >&5 23312echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23313which seems to be undefined. Please make sure it is defined." >&2;} 23314 23315 rm -f "$tmp/stdin" 23316 case $ac_file in 23317 -) cat "$tmp/out"; rm -f "$tmp/out";; 23318 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23319 esac 23320 ;; 23321 :H) 23322 # 23323 # CONFIG_HEADER 23324 # 23325_ACEOF 23326 23327# Transform confdefs.h into a sed script `conftest.defines', that 23328# substitutes the proper values into config.h.in to produce config.h. 23329rm -f conftest.defines conftest.tail 23330# First, append a space to every undef/define line, to ease matching. 23331echo 's/$/ /' >conftest.defines 23332# Then, protect against being on the right side of a sed subst, or in 23333# an unquoted here document, in config.status. If some macros were 23334# called several times there might be several #defines for the same 23335# symbol, which is useless. But do not sort them, since the last 23336# AC_DEFINE must be honored. 23337ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23338# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23339# NAME is the cpp macro being defined, VALUE is the value it is being given. 23340# PARAMS is the parameter list in the macro definition--in most cases, it's 23341# just an empty string. 23342ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23343ac_dB='\\)[ (].*,\\1define\\2' 23344ac_dC=' ' 23345ac_dD=' ,' 23346 23347uniq confdefs.h | 23348 sed -n ' 23349 t rset 23350 :rset 23351 s/^[ ]*#[ ]*define[ ][ ]*// 23352 t ok 23353 d 23354 :ok 23355 s/[\\&,]/\\&/g 23356 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23357 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23358 ' >>conftest.defines 23359 23360# Remove the space that was appended to ease matching. 23361# Then replace #undef with comments. This is necessary, for 23362# example, in the case of _POSIX_SOURCE, which is predefined and required 23363# on some systems where configure will not decide to define it. 23364# (The regexp can be short, since the line contains either #define or #undef.) 23365echo 's/ $// 23366s,^[ #]*u.*,/* & */,' >>conftest.defines 23367 23368# Break up conftest.defines: 23369ac_max_sed_lines=50 23370 23371# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23372# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23373# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23374# et cetera. 23375ac_in='$ac_file_inputs' 23376ac_out='"$tmp/out1"' 23377ac_nxt='"$tmp/out2"' 23378 23379while : 23380do 23381 # Write a here document: 23382 cat >>$CONFIG_STATUS <<_ACEOF 23383 # First, check the format of the line: 23384 cat >"\$tmp/defines.sed" <<\\CEOF 23385/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23386/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23387b 23388:def 23389_ACEOF 23390 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23391 echo 'CEOF 23392 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23393 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23394 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23395 grep . conftest.tail >/dev/null || break 23396 rm -f conftest.defines 23397 mv conftest.tail conftest.defines 23398done 23399rm -f conftest.defines conftest.tail 23400 23401echo "ac_result=$ac_in" >>$CONFIG_STATUS 23402cat >>$CONFIG_STATUS <<\_ACEOF 23403 if test x"$ac_file" != x-; then 23404 echo "/* $configure_input */" >"$tmp/config.h" 23405 cat "$ac_result" >>"$tmp/config.h" 23406 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23408echo "$as_me: $ac_file is unchanged" >&6;} 23409 else 23410 rm -f $ac_file 23411 mv "$tmp/config.h" $ac_file 23412 fi 23413 else 23414 echo "/* $configure_input */" 23415 cat "$ac_result" 23416 fi 23417 rm -f "$tmp/out12" 23418# Compute $ac_file's index in $config_headers. 23419_am_stamp_count=1 23420for _am_header in $config_headers :; do 23421 case $_am_header in 23422 $ac_file | $ac_file:* ) 23423 break ;; 23424 * ) 23425 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23426 esac 23427done 23428echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23429$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23430 X$ac_file : 'X\(//\)[^/]' \| \ 23431 X$ac_file : 'X\(//\)$' \| \ 23432 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23433echo X$ac_file | 23434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23435 s//\1/ 23436 q 23437 } 23438 /^X\(\/\/\)[^/].*/{ 23439 s//\1/ 23440 q 23441 } 23442 /^X\(\/\/\)$/{ 23443 s//\1/ 23444 q 23445 } 23446 /^X\(\/\).*/{ 23447 s//\1/ 23448 q 23449 } 23450 s/.*/./; q'`/stamp-h$_am_stamp_count 23451 ;; 23452 23453 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23454echo "$as_me: executing $ac_file commands" >&6;} 23455 ;; 23456 esac 23457 23458 23459 case $ac_file$ac_mode in 23460 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23461 # Strip MF so we end up with the name of the file. 23462 mf=`echo "$mf" | sed -e 's/:.*$//'` 23463 # Check whether this is an Automake generated Makefile or not. 23464 # We used to match only the files named `Makefile.in', but 23465 # some people rename them; so instead we look at the file content. 23466 # Grep'ing the first line is not enough: some people post-process 23467 # each Makefile.in and add a new line on top of each file to say so. 23468 # So let's grep whole file. 23469 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23470 dirpart=`$as_dirname -- "$mf" || 23471$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23472 X"$mf" : 'X\(//\)[^/]' \| \ 23473 X"$mf" : 'X\(//\)$' \| \ 23474 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23475echo X"$mf" | 23476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23477 s//\1/ 23478 q 23479 } 23480 /^X\(\/\/\)[^/].*/{ 23481 s//\1/ 23482 q 23483 } 23484 /^X\(\/\/\)$/{ 23485 s//\1/ 23486 q 23487 } 23488 /^X\(\/\).*/{ 23489 s//\1/ 23490 q 23491 } 23492 s/.*/./; q'` 23493 else 23494 continue 23495 fi 23496 # Extract the definition of DEPDIR, am__include, and am__quote 23497 # from the Makefile without running `make'. 23498 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23499 test -z "$DEPDIR" && continue 23500 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23501 test -z "am__include" && continue 23502 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23503 # When using ansi2knr, U may be empty or an underscore; expand it 23504 U=`sed -n 's/^U = //p' < "$mf"` 23505 # Find all dependency output files, they are included files with 23506 # $(DEPDIR) in their names. We invoke sed twice because it is the 23507 # simplest approach to changing $(DEPDIR) to its actual value in the 23508 # expansion. 23509 for file in `sed -n " 23510 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23511 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23512 # Make sure the directory exists. 23513 test -f "$dirpart/$file" && continue 23514 fdir=`$as_dirname -- "$file" || 23515$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23516 X"$file" : 'X\(//\)[^/]' \| \ 23517 X"$file" : 'X\(//\)$' \| \ 23518 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23519echo X"$file" | 23520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23521 s//\1/ 23522 q 23523 } 23524 /^X\(\/\/\)[^/].*/{ 23525 s//\1/ 23526 q 23527 } 23528 /^X\(\/\/\)$/{ 23529 s//\1/ 23530 q 23531 } 23532 /^X\(\/\).*/{ 23533 s//\1/ 23534 q 23535 } 23536 s/.*/./; q'` 23537 { as_dir=$dirpart/$fdir 23538 case $as_dir in #( 23539 -*) as_dir=./$as_dir;; 23540 esac 23541 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23542 as_dirs= 23543 while :; do 23544 case $as_dir in #( 23545 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23546 *) as_qdir=$as_dir;; 23547 esac 23548 as_dirs="'$as_qdir' $as_dirs" 23549 as_dir=`$as_dirname -- "$as_dir" || 23550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23551 X"$as_dir" : 'X\(//\)[^/]' \| \ 23552 X"$as_dir" : 'X\(//\)$' \| \ 23553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23554echo X"$as_dir" | 23555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23556 s//\1/ 23557 q 23558 } 23559 /^X\(\/\/\)[^/].*/{ 23560 s//\1/ 23561 q 23562 } 23563 /^X\(\/\/\)$/{ 23564 s//\1/ 23565 q 23566 } 23567 /^X\(\/\).*/{ 23568 s//\1/ 23569 q 23570 } 23571 s/.*/./; q'` 23572 test -d "$as_dir" && break 23573 done 23574 test -z "$as_dirs" || eval "mkdir $as_dirs" 23575 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23576echo "$as_me: error: cannot create directory $as_dir" >&2;} 23577 { (exit 1); exit 1; }; }; } 23578 # echo "creating $dirpart/$file" 23579 echo '# dummy' > "$dirpart/$file" 23580 done 23581done 23582 ;; 23583 "default-1":C) 23584 for ac_file in $CONFIG_FILES; do 23585 # Support "outfile[:infile[:infile...]]" 23586 case "$ac_file" in 23587 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 23588 esac 23589 # PO directories have a Makefile.in generated from Makefile.in.in. 23590 case "$ac_file" in */Makefile.in) 23591 # Adjust a relative srcdir. 23592 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 23593 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 23594 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 23595 # In autoconf-2.13 it is called $ac_given_srcdir. 23596 # In autoconf-2.50 it is called $srcdir. 23597 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 23598 case "$ac_given_srcdir" in 23599 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 23600 /*) top_srcdir="$ac_given_srcdir" ;; 23601 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 23602 esac 23603 # Treat a directory as a PO directory if and only if it has a 23604 # POTFILES.in file. This allows packages to have multiple PO 23605 # directories under different names or in different locations. 23606 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 23607 rm -f "$ac_dir/POTFILES" 23608 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 23609 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 23610 POMAKEFILEDEPS="POTFILES.in" 23611 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 23612 # on $ac_dir but don't depend on user-specified configuration 23613 # parameters. 23614 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 23615 # The LINGUAS file contains the set of available languages. 23616 if test -n "$OBSOLETE_ALL_LINGUAS"; then 23617 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 23618 fi 23619 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 23620 # Hide the ALL_LINGUAS assigment from automake. 23621 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 23622 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 23623 else 23624 # The set of available languages was given in configure.in. 23625 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 23626 fi 23627 # Compute POFILES 23628 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 23629 # Compute UPDATEPOFILES 23630 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 23631 # Compute DUMMYPOFILES 23632 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 23633 # Compute GMOFILES 23634 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 23635 case "$ac_given_srcdir" in 23636 .) srcdirpre= ;; 23637 *) srcdirpre='$(srcdir)/' ;; 23638 esac 23639 POFILES= 23640 UPDATEPOFILES= 23641 DUMMYPOFILES= 23642 GMOFILES= 23643 for lang in $ALL_LINGUAS; do 23644 POFILES="$POFILES $srcdirpre$lang.po" 23645 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 23646 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 23647 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 23648 done 23649 # CATALOGS depends on both $ac_dir and the user's LINGUAS 23650 # environment variable. 23651 INST_LINGUAS= 23652 if test -n "$ALL_LINGUAS"; then 23653 for presentlang in $ALL_LINGUAS; do 23654 useit=no 23655 if test "%UNSET%" != "$LINGUAS"; then 23656 desiredlanguages="$LINGUAS" 23657 else 23658 desiredlanguages="$ALL_LINGUAS" 23659 fi 23660 for desiredlang in $desiredlanguages; do 23661 # Use the presentlang catalog if desiredlang is 23662 # a. equal to presentlang, or 23663 # b. a variant of presentlang (because in this case, 23664 # presentlang can be used as a fallback for messages 23665 # which are not translated in the desiredlang catalog). 23666 case "$desiredlang" in 23667 "$presentlang"*) useit=yes;; 23668 esac 23669 done 23670 if test $useit = yes; then 23671 INST_LINGUAS="$INST_LINGUAS $presentlang" 23672 fi 23673 done 23674 fi 23675 CATALOGS= 23676 if test -n "$INST_LINGUAS"; then 23677 for lang in $INST_LINGUAS; do 23678 CATALOGS="$CATALOGS $lang.gmo" 23679 done 23680 fi 23681 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 23682 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" 23683 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 23684 if test -f "$f"; then 23685 case "$f" in 23686 *.orig | *.bak | *~) ;; 23687 *) cat "$f" >> "$ac_dir/Makefile" ;; 23688 esac 23689 fi 23690 done 23691 fi 23692 ;; 23693 esac 23694 done ;; 23695 "slackware/microdc.SlackBuild":F) chmod +x slackware/microdc.SlackBuild ;; 23696 23697 esac 23698done # for ac_tag 23699 23700 23701{ (exit 0); exit 0; } 23702_ACEOF 23703chmod +x $CONFIG_STATUS 23704ac_clean_files=$ac_clean_files_save 23705 23706 23707# configure is writing to config.log, and then calls config.status. 23708# config.status does its own redirection, appending to config.log. 23709# Unfortunately, on DOS this fails, as config.log is still kept open 23710# by configure, so config.status won't be able to write to it; its 23711# output is simply discarded. So we exec the FD to /dev/null, 23712# effectively closing config.log, so it can be properly (re)opened and 23713# appended to by config.status. When coming back to configure, we 23714# need to make the FD available again. 23715if test "$no_create" != yes; then 23716 ac_cs_success=: 23717 ac_config_status_args= 23718 test "$silent" = yes && 23719 ac_config_status_args="$ac_config_status_args --quiet" 23720 exec 5>/dev/null 23721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23722 exec 5>>config.log 23723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23724 # would make configure fail if this is the last instruction. 23725 $ac_cs_success || { (exit 1); exit 1; } 23726fi 23727 23728