1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for sed 4.2.1. 4# 5# Report bugs to <bug-gnu-utils@gnu.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576exec 7<&0 </dev/null 6>&1 577 578# Name of the host. 579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580# so uname gets run too. 581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582 583# 584# Initializations. 585# 586ac_default_prefix=/usr/local 587ac_clean_files= 588ac_config_libobj_dir=. 589LIBOBJS= 590cross_compiling=no 591subdirs= 592MFLAGS= 593MAKEFLAGS= 594SHELL=${CONFIG_SHELL-/bin/sh} 595 596# Identity of this package. 597PACKAGE_NAME='sed' 598PACKAGE_TARNAME='sed' 599PACKAGE_VERSION='4.2.1' 600PACKAGE_STRING='sed 4.2.1' 601PACKAGE_BUGREPORT='bug-gnu-utils@gnu.org' 602 603ac_unique_file="sed/sed.c" 604# Factoring default headers for most tests. 605ac_includes_default="\ 606#include <stdio.h> 607#ifdef HAVE_SYS_TYPES_H 608# include <sys/types.h> 609#endif 610#ifdef HAVE_SYS_STAT_H 611# include <sys/stat.h> 612#endif 613#ifdef STDC_HEADERS 614# include <stdlib.h> 615# include <stddef.h> 616#else 617# ifdef HAVE_STDLIB_H 618# include <stdlib.h> 619# endif 620#endif 621#ifdef HAVE_STRING_H 622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 623# include <memory.h> 624# endif 625# include <string.h> 626#endif 627#ifdef HAVE_STRINGS_H 628# include <strings.h> 629#endif 630#ifdef HAVE_INTTYPES_H 631# include <inttypes.h> 632#endif 633#ifdef HAVE_STDINT_H 634# include <stdint.h> 635#endif 636#ifdef HAVE_UNISTD_H 637# include <unistd.h> 638#endif" 639 640ac_func_list= 641ac_header_list= 642gt_needs= 643ac_subst_vars='gltests_LTLIBOBJS 644gltests_LIBOBJS 645gl_LTLIBOBJS 646gl_LIBOBJS 647LTLIBOBJS 648LIBOBJS 649XFAIL_TESTS 650TEST_REGEX_FALSE 651TEST_REGEX_TRUE 652POSUB 653INTLLIBS 654LTLIBICONV 655LIBICONV 656INTL_MACOSX_LIBS 657XGETTEXT_EXTRA_OPTIONS 658MSGMERGE 659XGETTEXT_015 660XGETTEXT 661GMSGFMT_015 662MSGFMT_015 663GMSGFMT 664MSGFMT 665GETTEXT_MACRO_VERSION 666USE_NLS 667LIBSED_LTLIBDEPS 668LIBSED_LIBDEPS 669REPLACE_ISWCNTRL 670WCTYPE_H 671HAVE_WCTYPE_H 672NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 673NEXT_WCTYPE_H 674HAVE_ISWCNTRL 675NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 676NEXT_WCHAR_H 677HAVE_WCHAR_H 678HAVE_WINT_T 679HAVE_UNISTD_H 680NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 681NEXT_UNISTD_H 682SYS_STAT_H 683NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 684NEXT_SYS_STAT_H 685HAVE_LSTAT 686NEXT_AS_FIRST_DIRECTIVE_STRING_H 687NEXT_STRING_H 688HAVE_RANDOM_H 689NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 690NEXT_STDLIB_H 691NEXT_AS_FIRST_DIRECTIVE_STDIO_H 692NEXT_STDIO_H 693STDINT_H 694WINT_T_SUFFIX 695WCHAR_T_SUFFIX 696SIG_ATOMIC_T_SUFFIX 697SIZE_T_SUFFIX 698PTRDIFF_T_SUFFIX 699HAVE_SIGNED_WINT_T 700HAVE_SIGNED_WCHAR_T 701HAVE_SIGNED_SIG_ATOMIC_T 702BITSIZEOF_WINT_T 703BITSIZEOF_WCHAR_T 704BITSIZEOF_SIG_ATOMIC_T 705BITSIZEOF_SIZE_T 706BITSIZEOF_PTRDIFF_T 707HAVE_SYS_BITYPES_H 708HAVE_SYS_INTTYPES_H 709HAVE_STDINT_H 710NEXT_AS_FIRST_DIRECTIVE_STDINT_H 711NEXT_STDINT_H 712HAVE_SYS_TYPES_H 713HAVE_INTTYPES_H 714HAVE_UNSIGNED_LONG_LONG_INT 715HAVE_LONG_LONG_INT 716HAVE__BOOL 717STDBOOL_H 718SELINUX_CONTEXT_H 719SELINUX_SELINUX_H 720LIB_SELINUX 721APPLE_UNIVERSAL_BUILD 722REPLACE_STRSIGNAL 723REPLACE_STRERROR 724REPLACE_STRCASESTR 725REPLACE_STRSTR 726REPLACE_STRDUP 727REPLACE_MEMMEM 728REPLACE_MEMCHR 729HAVE_STRVERSCMP 730HAVE_DECL_STRSIGNAL 731HAVE_DECL_STRERROR 732HAVE_DECL_STRTOK_R 733HAVE_STRCASESTR 734HAVE_STRSEP 735HAVE_STRPBRK 736HAVE_DECL_STRNLEN 737HAVE_DECL_STRNDUP 738HAVE_STRNDUP 739HAVE_DECL_STRDUP 740HAVE_STRCHRNUL 741HAVE_STPNCPY 742HAVE_STPCPY 743HAVE_RAWMEMCHR 744HAVE_DECL_MEMRCHR 745HAVE_MEMPCPY 746HAVE_DECL_MEMMEM 747GNULIB_STRVERSCMP 748GNULIB_STRSIGNAL 749GNULIB_STRERROR 750GNULIB_MBSTOK_R 751GNULIB_MBSSEP 752GNULIB_MBSSPN 753GNULIB_MBSPBRK 754GNULIB_MBSCSPN 755GNULIB_MBSCASESTR 756GNULIB_MBSPCASECMP 757GNULIB_MBSNCASECMP 758GNULIB_MBSCASECMP 759GNULIB_MBSSTR 760GNULIB_MBSRCHR 761GNULIB_MBSCHR 762GNULIB_MBSNLEN 763GNULIB_MBSLEN 764GNULIB_STRTOK_R 765GNULIB_STRCASESTR 766GNULIB_STRSTR 767GNULIB_STRSEP 768GNULIB_STRPBRK 769GNULIB_STRNLEN 770GNULIB_STRNDUP 771GNULIB_STRDUP 772GNULIB_STRCHRNUL 773GNULIB_STPNCPY 774GNULIB_STPCPY 775GNULIB_RAWMEMCHR 776GNULIB_MEMRCHR 777GNULIB_MEMPCPY 778GNULIB_MEMMEM 779GNULIB_MEMCHR 780LOCALE_FR_UTF8 781LOCALE_ZH_CN 782LOCALE_JA 783VOID_UNSETENV 784REPLACE_STRTOD 785REPLACE_PUTENV 786REPLACE_MKSTEMP 787HAVE_DECL_GETLOADAVG 788HAVE_UNSETENV 789HAVE_SYS_LOADAVG_H 790HAVE_STRUCT_RANDOM_DATA 791HAVE_STRTOULL 792HAVE_STRTOLL 793HAVE_STRTOD 794HAVE_SETENV 795HAVE_RPMATCH 796HAVE_RANDOM_R 797HAVE_REALLOC_POSIX 798HAVE_MKDTEMP 799HAVE_GETSUBOPT 800HAVE_CALLOC_POSIX 801HAVE_ATOLL 802GNULIB_UNSETENV 803GNULIB_STRTOULL 804GNULIB_STRTOLL 805GNULIB_STRTOD 806GNULIB_SETENV 807GNULIB_RPMATCH 808GNULIB_RANDOM_R 809GNULIB_PUTENV 810GNULIB_MKSTEMP 811GNULIB_MKDTEMP 812GNULIB_GETSUBOPT 813GNULIB_GETLOADAVG 814GNULIB_ATOLL 815GNULIB_CALLOC_POSIX 816GNULIB_REALLOC_POSIX 817GNULIB_MALLOC_POSIX 818HAVE_MALLOC_POSIX 819REPLACE_MKDIR 820REPLACE_LSTAT 821HAVE_LCHMOD 822GNULIB_LSTAT 823GNULIB_LCHMOD 824LOCALCHARSET_TESTS_ENVIRONMENT 825GLIBC21 826SYS_TIME_H 827REPLACE_GETTIMEOFDAY 828HAVE_STRUCT_TIMEVAL 829HAVE_SYS_TIME_H 830NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 831NEXT_SYS_TIME_H 832LTLIBINTL 833LIBINTL 834UNISTD_H_HAVE_WINSOCK2_H 835REPLACE_WRITE 836REPLACE_LSEEK 837REPLACE_LCHOWN 838REPLACE_GETPAGESIZE 839REPLACE_GETCWD 840REPLACE_FCHDIR 841REPLACE_CLOSE 842REPLACE_CHOWN 843HAVE_SYS_PARAM_H 844HAVE_OS_H 845HAVE_DECL_GETLOGIN_R 846HAVE_DECL_ENVIRON 847HAVE_SLEEP 848HAVE_READLINK 849HAVE_LINK 850HAVE_GETUSERSHELL 851HAVE_GETPAGESIZE 852HAVE_GETHOSTNAME 853HAVE_GETDTABLESIZE 854HAVE_GETDOMAINNAME 855HAVE_FTRUNCATE 856HAVE_FSYNC 857HAVE_EUIDACCESS 858HAVE_DUP2 859GNULIB_WRITE 860GNULIB_UNISTD_H_SIGPIPE 861GNULIB_SLEEP 862GNULIB_READLINK 863GNULIB_LSEEK 864GNULIB_LINK 865GNULIB_LCHOWN 866GNULIB_GETUSERSHELL 867GNULIB_GETPAGESIZE 868GNULIB_GETLOGIN_R 869GNULIB_GETHOSTNAME 870GNULIB_GETDTABLESIZE 871GNULIB_GETDOMAINNAME 872GNULIB_GETCWD 873GNULIB_FTRUNCATE 874GNULIB_FSYNC 875GNULIB_FCHDIR 876GNULIB_EUIDACCESS 877GNULIB_ENVIRON 878GNULIB_DUP2 879GNULIB_CLOSE 880GNULIB_CHOWN 881GETOPT_H 882REPLACE_PERROR 883REPLACE_GETLINE 884HAVE_DECL_GETLINE 885HAVE_DECL_GETDELIM 886REPLACE_FCLOSE 887HAVE_DECL_FPURGE 888REPLACE_FPURGE 889REPLACE_FFLUSH 890REPLACE_FTELL 891REPLACE_FTELLO 892HAVE_FTELLO 893REPLACE_FSEEK 894REPLACE_FSEEKO 895HAVE_FSEEKO 896REPLACE_FREOPEN 897REPLACE_FOPEN 898REPLACE_OBSTACK_PRINTF 899HAVE_DECL_OBSTACK_PRINTF 900REPLACE_VASPRINTF 901HAVE_VASPRINTF 902REPLACE_VDPRINTF 903HAVE_VDPRINTF 904REPLACE_DPRINTF 905HAVE_DPRINTF 906REPLACE_VSPRINTF 907REPLACE_SPRINTF 908HAVE_DECL_VSNPRINTF 909REPLACE_VSNPRINTF 910HAVE_DECL_SNPRINTF 911REPLACE_SNPRINTF 912REPLACE_VPRINTF 913REPLACE_PRINTF 914REPLACE_VFPRINTF 915REPLACE_FPRINTF 916REPLACE_STDIO_WRITE_FUNCS 917GNULIB_STDIO_H_SIGPIPE 918GNULIB_PERROR 919GNULIB_GETLINE 920GNULIB_GETDELIM 921GNULIB_FWRITE 922GNULIB_PUTS 923GNULIB_FPUTS 924GNULIB_PUTCHAR 925GNULIB_PUTC 926GNULIB_FPUTC 927GNULIB_FCLOSE 928GNULIB_FPURGE 929GNULIB_FFLUSH 930GNULIB_FTELLO 931GNULIB_FTELL 932GNULIB_FSEEKO 933GNULIB_FSEEK 934GNULIB_FREOPEN 935GNULIB_FOPEN 936GNULIB_OBSTACK_PRINTF_POSIX 937GNULIB_OBSTACK_PRINTF 938GNULIB_VASPRINTF 939GNULIB_VDPRINTF 940GNULIB_DPRINTF 941GNULIB_VSPRINTF_POSIX 942GNULIB_VSNPRINTF 943GNULIB_VPRINTF_POSIX 944GNULIB_VPRINTF 945GNULIB_VFPRINTF_POSIX 946GNULIB_VFPRINTF 947GNULIB_SPRINTF_POSIX 948GNULIB_SNPRINTF 949GNULIB_PRINTF_POSIX 950GNULIB_PRINTF 951GNULIB_FPRINTF_POSIX 952GNULIB_FPRINTF 953EOVERFLOW_VALUE 954EOVERFLOW_HIDDEN 955ENOLINK_VALUE 956ENOLINK_HIDDEN 957EMULTIHOP_VALUE 958EMULTIHOP_HIDDEN 959ERRNO_H 960NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 961NEXT_ERRNO_H 962PRAGMA_SYSTEM_HEADER 963INCLUDE_NEXT_AS_FIRST_DIRECTIVE 964INCLUDE_NEXT 965LOCALE_FR 966WCHAR_H 967REPLACE_WCWIDTH 968REPLACE_WCSNRTOMBS 969REPLACE_WCSRTOMBS 970REPLACE_WCRTOMB 971REPLACE_MBSNRTOWCS 972REPLACE_MBSRTOWCS 973REPLACE_MBRLEN 974REPLACE_MBRTOWC 975REPLACE_MBSINIT 976REPLACE_WCTOB 977REPLACE_BTOWC 978REPLACE_MBSTATE_T 979HAVE_DECL_WCWIDTH 980HAVE_DECL_WCTOB 981HAVE_WCSNRTOMBS 982HAVE_WCSRTOMBS 983HAVE_WCRTOMB 984HAVE_MBSNRTOWCS 985HAVE_MBSRTOWCS 986HAVE_MBRLEN 987HAVE_MBRTOWC 988HAVE_MBSINIT 989HAVE_BTOWC 990GNULIB_WCWIDTH 991GNULIB_WCSNRTOMBS 992GNULIB_WCSRTOMBS 993GNULIB_WCRTOMB 994GNULIB_MBSNRTOWCS 995GNULIB_MBSRTOWCS 996GNULIB_MBRLEN 997GNULIB_MBRTOWC 998GNULIB_MBSINIT 999GNULIB_WCTOB 1000GNULIB_BTOWC 1001ALLOCA_H 1002ALLOCA 1003USE_ACL 1004LIB_ACL 1005GL_COND_LIBTOOL_FALSE 1006GL_COND_LIBTOOL_TRUE 1007EGREP 1008GREP 1009CPP 1010host_os 1011host_vendor 1012host_cpu 1013host 1014build_os 1015build_vendor 1016build_cpu 1017build 1018RANLIB 1019am__fastdepCC_FALSE 1020am__fastdepCC_TRUE 1021CCDEPMODE 1022AMDEPBACKSLASH 1023AMDEP_FALSE 1024AMDEP_TRUE 1025am__quote 1026am__include 1027DEPDIR 1028OBJEXT 1029EXEEXT 1030ac_ct_CC 1031CPPFLAGS 1032LDFLAGS 1033CFLAGS 1034CC 1035COPYRIGHT_YEAR 1036SED_FEATURE_VERSION 1037am__untar 1038am__tar 1039AMTAR 1040am__leading_dot 1041SET_MAKE 1042AWK 1043mkdir_p 1044MKDIR_P 1045INSTALL_STRIP_PROGRAM 1046STRIP 1047install_sh 1048MAKEINFO 1049AUTOHEADER 1050AUTOMAKE 1051AUTOCONF 1052ACLOCAL 1053VERSION 1054PACKAGE 1055CYGPATH_W 1056am__isrc 1057INSTALL_DATA 1058INSTALL_SCRIPT 1059INSTALL_PROGRAM 1060target_alias 1061host_alias 1062build_alias 1063LIBS 1064ECHO_T 1065ECHO_N 1066ECHO_C 1067DEFS 1068mandir 1069localedir 1070libdir 1071psdir 1072pdfdir 1073dvidir 1074htmldir 1075infodir 1076docdir 1077oldincludedir 1078includedir 1079localstatedir 1080sharedstatedir 1081sysconfdir 1082datadir 1083datarootdir 1084libexecdir 1085sbindir 1086bindir 1087program_transform_name 1088prefix 1089exec_prefix 1090PACKAGE_BUGREPORT 1091PACKAGE_STRING 1092PACKAGE_VERSION 1093PACKAGE_TARNAME 1094PACKAGE_NAME 1095PATH_SEPARATOR 1096SHELL' 1097ac_subst_files='' 1098ac_user_opts=' 1099enable_option_checking 1100enable_dependency_tracking 1101enable_acl 1102enable_largefile 1103with_included_regex 1104enable_nls 1105with_gnu_ld 1106enable_rpath 1107with_libiconv_prefix 1108with_libintl_prefix 1109enable_i18n 1110enable_regex_tests 1111' 1112 ac_precious_vars='build_alias 1113host_alias 1114target_alias 1115CC 1116CFLAGS 1117LDFLAGS 1118LIBS 1119CPPFLAGS 1120CPP' 1121 1122 1123# Initialize some variables set by options. 1124ac_init_help= 1125ac_init_version=false 1126ac_unrecognized_opts= 1127ac_unrecognized_sep= 1128# The variables have the same names as the options, with 1129# dashes changed to underlines. 1130cache_file=/dev/null 1131exec_prefix=NONE 1132no_create= 1133no_recursion= 1134prefix=NONE 1135program_prefix=NONE 1136program_suffix=NONE 1137program_transform_name=s,x,x, 1138silent= 1139site= 1140srcdir= 1141verbose= 1142x_includes=NONE 1143x_libraries=NONE 1144 1145# Installation directory options. 1146# These are left unexpanded so users can "make install exec_prefix=/foo" 1147# and all the variables that are supposed to be based on exec_prefix 1148# by default will actually change. 1149# Use braces instead of parens because sh, perl, etc. also accept them. 1150# (The list follows the same order as the GNU Coding Standards.) 1151bindir='${exec_prefix}/bin' 1152sbindir='${exec_prefix}/sbin' 1153libexecdir='${exec_prefix}/libexec' 1154datarootdir='${prefix}/share' 1155datadir='${datarootdir}' 1156sysconfdir='${prefix}/etc' 1157sharedstatedir='${prefix}/com' 1158localstatedir='${prefix}/var' 1159includedir='${prefix}/include' 1160oldincludedir='/usr/include' 1161docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1162infodir='${datarootdir}/info' 1163htmldir='${docdir}' 1164dvidir='${docdir}' 1165pdfdir='${docdir}' 1166psdir='${docdir}' 1167libdir='${exec_prefix}/lib' 1168localedir='${datarootdir}/locale' 1169mandir='${datarootdir}/man' 1170 1171ac_prev= 1172ac_dashdash= 1173for ac_option 1174do 1175 # If the previous option needs an argument, assign it. 1176 if test -n "$ac_prev"; then 1177 eval $ac_prev=\$ac_option 1178 ac_prev= 1179 continue 1180 fi 1181 1182 case $ac_option in 1183 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1184 *) ac_optarg=yes ;; 1185 esac 1186 1187 # Accept the important Cygnus configure options, so we can diagnose typos. 1188 1189 case $ac_dashdash$ac_option in 1190 --) 1191 ac_dashdash=yes ;; 1192 1193 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1194 ac_prev=bindir ;; 1195 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1196 bindir=$ac_optarg ;; 1197 1198 -build | --build | --buil | --bui | --bu) 1199 ac_prev=build_alias ;; 1200 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1201 build_alias=$ac_optarg ;; 1202 1203 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1205 ac_prev=cache_file ;; 1206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1208 cache_file=$ac_optarg ;; 1209 1210 --config-cache | -C) 1211 cache_file=config.cache ;; 1212 1213 -datadir | --datadir | --datadi | --datad) 1214 ac_prev=datadir ;; 1215 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1216 datadir=$ac_optarg ;; 1217 1218 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1219 | --dataroo | --dataro | --datar) 1220 ac_prev=datarootdir ;; 1221 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1222 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1223 datarootdir=$ac_optarg ;; 1224 1225 -disable-* | --disable-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_useropt_orig=$ac_useropt 1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1233 case $ac_user_opts in 1234 *" 1235"enable_$ac_useropt" 1236"*) ;; 1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1238 ac_unrecognized_sep=', ';; 1239 esac 1240 eval enable_$ac_useropt=no ;; 1241 1242 -docdir | --docdir | --docdi | --doc | --do) 1243 ac_prev=docdir ;; 1244 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1245 docdir=$ac_optarg ;; 1246 1247 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1248 ac_prev=dvidir ;; 1249 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1250 dvidir=$ac_optarg ;; 1251 1252 -enable-* | --enable-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1257 { (exit 1); exit 1; }; } 1258 ac_useropt_orig=$ac_useropt 1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1260 case $ac_user_opts in 1261 *" 1262"enable_$ac_useropt" 1263"*) ;; 1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1265 ac_unrecognized_sep=', ';; 1266 esac 1267 eval enable_$ac_useropt=\$ac_optarg ;; 1268 1269 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1270 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1271 | --exec | --exe | --ex) 1272 ac_prev=exec_prefix ;; 1273 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1274 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1275 | --exec=* | --exe=* | --ex=*) 1276 exec_prefix=$ac_optarg ;; 1277 1278 -gas | --gas | --ga | --g) 1279 # Obsolete; use --with-gas. 1280 with_gas=yes ;; 1281 1282 -help | --help | --hel | --he | -h) 1283 ac_init_help=long ;; 1284 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1285 ac_init_help=recursive ;; 1286 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1287 ac_init_help=short ;; 1288 1289 -host | --host | --hos | --ho) 1290 ac_prev=host_alias ;; 1291 -host=* | --host=* | --hos=* | --ho=*) 1292 host_alias=$ac_optarg ;; 1293 1294 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1295 ac_prev=htmldir ;; 1296 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1297 | --ht=*) 1298 htmldir=$ac_optarg ;; 1299 1300 -includedir | --includedir | --includedi | --included | --include \ 1301 | --includ | --inclu | --incl | --inc) 1302 ac_prev=includedir ;; 1303 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1304 | --includ=* | --inclu=* | --incl=* | --inc=*) 1305 includedir=$ac_optarg ;; 1306 1307 -infodir | --infodir | --infodi | --infod | --info | --inf) 1308 ac_prev=infodir ;; 1309 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1310 infodir=$ac_optarg ;; 1311 1312 -libdir | --libdir | --libdi | --libd) 1313 ac_prev=libdir ;; 1314 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1315 libdir=$ac_optarg ;; 1316 1317 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1318 | --libexe | --libex | --libe) 1319 ac_prev=libexecdir ;; 1320 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1321 | --libexe=* | --libex=* | --libe=*) 1322 libexecdir=$ac_optarg ;; 1323 1324 -localedir | --localedir | --localedi | --localed | --locale) 1325 ac_prev=localedir ;; 1326 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1327 localedir=$ac_optarg ;; 1328 1329 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1330 | --localstate | --localstat | --localsta | --localst | --locals) 1331 ac_prev=localstatedir ;; 1332 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1333 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1334 localstatedir=$ac_optarg ;; 1335 1336 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1337 ac_prev=mandir ;; 1338 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1339 mandir=$ac_optarg ;; 1340 1341 -nfp | --nfp | --nf) 1342 # Obsolete; use --without-fp. 1343 with_fp=no ;; 1344 1345 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1346 | --no-cr | --no-c | -n) 1347 no_create=yes ;; 1348 1349 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1350 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1351 no_recursion=yes ;; 1352 1353 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1354 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1355 | --oldin | --oldi | --old | --ol | --o) 1356 ac_prev=oldincludedir ;; 1357 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1358 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1359 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1360 oldincludedir=$ac_optarg ;; 1361 1362 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1363 ac_prev=prefix ;; 1364 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1365 prefix=$ac_optarg ;; 1366 1367 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1368 | --program-pre | --program-pr | --program-p) 1369 ac_prev=program_prefix ;; 1370 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1371 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1372 program_prefix=$ac_optarg ;; 1373 1374 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1375 | --program-suf | --program-su | --program-s) 1376 ac_prev=program_suffix ;; 1377 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1378 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1379 program_suffix=$ac_optarg ;; 1380 1381 -program-transform-name | --program-transform-name \ 1382 | --program-transform-nam | --program-transform-na \ 1383 | --program-transform-n | --program-transform- \ 1384 | --program-transform | --program-transfor \ 1385 | --program-transfo | --program-transf \ 1386 | --program-trans | --program-tran \ 1387 | --progr-tra | --program-tr | --program-t) 1388 ac_prev=program_transform_name ;; 1389 -program-transform-name=* | --program-transform-name=* \ 1390 | --program-transform-nam=* | --program-transform-na=* \ 1391 | --program-transform-n=* | --program-transform-=* \ 1392 | --program-transform=* | --program-transfor=* \ 1393 | --program-transfo=* | --program-transf=* \ 1394 | --program-trans=* | --program-tran=* \ 1395 | --progr-tra=* | --program-tr=* | --program-t=*) 1396 program_transform_name=$ac_optarg ;; 1397 1398 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1399 ac_prev=pdfdir ;; 1400 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1401 pdfdir=$ac_optarg ;; 1402 1403 -psdir | --psdir | --psdi | --psd | --ps) 1404 ac_prev=psdir ;; 1405 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1406 psdir=$ac_optarg ;; 1407 1408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1409 | -silent | --silent | --silen | --sile | --sil) 1410 silent=yes ;; 1411 1412 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1413 ac_prev=sbindir ;; 1414 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1415 | --sbi=* | --sb=*) 1416 sbindir=$ac_optarg ;; 1417 1418 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1419 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1420 | --sharedst | --shareds | --shared | --share | --shar \ 1421 | --sha | --sh) 1422 ac_prev=sharedstatedir ;; 1423 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1424 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1425 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1426 | --sha=* | --sh=*) 1427 sharedstatedir=$ac_optarg ;; 1428 1429 -site | --site | --sit) 1430 ac_prev=site ;; 1431 -site=* | --site=* | --sit=*) 1432 site=$ac_optarg ;; 1433 1434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1435 ac_prev=srcdir ;; 1436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1437 srcdir=$ac_optarg ;; 1438 1439 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1440 | --syscon | --sysco | --sysc | --sys | --sy) 1441 ac_prev=sysconfdir ;; 1442 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1443 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1444 sysconfdir=$ac_optarg ;; 1445 1446 -target | --target | --targe | --targ | --tar | --ta | --t) 1447 ac_prev=target_alias ;; 1448 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1449 target_alias=$ac_optarg ;; 1450 1451 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1452 verbose=yes ;; 1453 1454 -version | --version | --versio | --versi | --vers | -V) 1455 ac_init_version=: ;; 1456 1457 -with-* | --with-*) 1458 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1459 # Reject names that are not valid shell variable names. 1460 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1461 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1462 { (exit 1); exit 1; }; } 1463 ac_useropt_orig=$ac_useropt 1464 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1465 case $ac_user_opts in 1466 *" 1467"with_$ac_useropt" 1468"*) ;; 1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1470 ac_unrecognized_sep=', ';; 1471 esac 1472 eval with_$ac_useropt=\$ac_optarg ;; 1473 1474 -without-* | --without-*) 1475 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1476 # Reject names that are not valid shell variable names. 1477 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1478 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1479 { (exit 1); exit 1; }; } 1480 ac_useropt_orig=$ac_useropt 1481 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1482 case $ac_user_opts in 1483 *" 1484"with_$ac_useropt" 1485"*) ;; 1486 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1487 ac_unrecognized_sep=', ';; 1488 esac 1489 eval with_$ac_useropt=no ;; 1490 1491 --x) 1492 # Obsolete; use --with-x. 1493 with_x=yes ;; 1494 1495 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1496 | --x-incl | --x-inc | --x-in | --x-i) 1497 ac_prev=x_includes ;; 1498 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1499 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1500 x_includes=$ac_optarg ;; 1501 1502 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1503 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1504 ac_prev=x_libraries ;; 1505 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1506 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1507 x_libraries=$ac_optarg ;; 1508 1509 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1510Try \`$0 --help' for more information." >&2 1511 { (exit 1); exit 1; }; } 1512 ;; 1513 1514 *=*) 1515 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1516 # Reject names that are not valid shell variable names. 1517 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1518 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1519 { (exit 1); exit 1; }; } 1520 eval $ac_envvar=\$ac_optarg 1521 export $ac_envvar ;; 1522 1523 *) 1524 # FIXME: should be removed in autoconf 3.0. 1525 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1526 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1527 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1528 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1529 ;; 1530 1531 esac 1532done 1533 1534if test -n "$ac_prev"; then 1535 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1536 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1537 { (exit 1); exit 1; }; } 1538fi 1539 1540if test -n "$ac_unrecognized_opts"; then 1541 case $enable_option_checking in 1542 no) ;; 1543 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1544 { (exit 1); exit 1; }; } ;; 1545 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1546 esac 1547fi 1548 1549# Check all directory arguments for consistency. 1550for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1551 datadir sysconfdir sharedstatedir localstatedir includedir \ 1552 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1553 libdir localedir mandir 1554do 1555 eval ac_val=\$$ac_var 1556 # Remove trailing slashes. 1557 case $ac_val in 1558 */ ) 1559 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1560 eval $ac_var=\$ac_val;; 1561 esac 1562 # Be sure to have absolute directory names. 1563 case $ac_val in 1564 [\\/$]* | ?:[\\/]* ) continue;; 1565 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1566 esac 1567 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1568 { (exit 1); exit 1; }; } 1569done 1570 1571# There might be people who depend on the old broken behavior: `$host' 1572# used to hold the argument of --host etc. 1573# FIXME: To remove some day. 1574build=$build_alias 1575host=$host_alias 1576target=$target_alias 1577 1578# FIXME: To remove some day. 1579if test "x$host_alias" != x; then 1580 if test "x$build_alias" = x; then 1581 cross_compiling=maybe 1582 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1583 If a cross compiler is detected then cross compile mode will be used." >&2 1584 elif test "x$build_alias" != "x$host_alias"; then 1585 cross_compiling=yes 1586 fi 1587fi 1588 1589ac_tool_prefix= 1590test -n "$host_alias" && ac_tool_prefix=$host_alias- 1591 1592test "$silent" = yes && exec 6>/dev/null 1593 1594 1595ac_pwd=`pwd` && test -n "$ac_pwd" && 1596ac_ls_di=`ls -di .` && 1597ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1598 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1599 { (exit 1); exit 1; }; } 1600test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1601 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1602 { (exit 1); exit 1; }; } 1603 1604 1605# Find the source files, if location was not specified. 1606if test -z "$srcdir"; then 1607 ac_srcdir_defaulted=yes 1608 # Try the directory containing this script, then the parent directory. 1609 ac_confdir=`$as_dirname -- "$as_myself" || 1610$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1611 X"$as_myself" : 'X\(//\)[^/]' \| \ 1612 X"$as_myself" : 'X\(//\)$' \| \ 1613 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1614$as_echo X"$as_myself" | 1615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1616 s//\1/ 1617 q 1618 } 1619 /^X\(\/\/\)[^/].*/{ 1620 s//\1/ 1621 q 1622 } 1623 /^X\(\/\/\)$/{ 1624 s//\1/ 1625 q 1626 } 1627 /^X\(\/\).*/{ 1628 s//\1/ 1629 q 1630 } 1631 s/.*/./; q'` 1632 srcdir=$ac_confdir 1633 if test ! -r "$srcdir/$ac_unique_file"; then 1634 srcdir=.. 1635 fi 1636else 1637 ac_srcdir_defaulted=no 1638fi 1639if test ! -r "$srcdir/$ac_unique_file"; then 1640 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1641 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1642 { (exit 1); exit 1; }; } 1643fi 1644ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1645ac_abs_confdir=`( 1646 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1647 { (exit 1); exit 1; }; } 1648 pwd)` 1649# When building in place, set srcdir=. 1650if test "$ac_abs_confdir" = "$ac_pwd"; then 1651 srcdir=. 1652fi 1653# Remove unnecessary trailing slashes from srcdir. 1654# Double slashes in file names in object file debugging info 1655# mess up M-x gdb in Emacs. 1656case $srcdir in 1657*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1658esac 1659for ac_var in $ac_precious_vars; do 1660 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1661 eval ac_env_${ac_var}_value=\$${ac_var} 1662 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1663 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1664done 1665 1666# 1667# Report the --help message. 1668# 1669if test "$ac_init_help" = "long"; then 1670 # Omit some internal or obsolete options to make the list less imposing. 1671 # This message is too long to be a string in the A/UX 3.1 sh. 1672 cat <<_ACEOF 1673\`configure' configures sed 4.2.1 to adapt to many kinds of systems. 1674 1675Usage: $0 [OPTION]... [VAR=VALUE]... 1676 1677To assign environment variables (e.g., CC, CFLAGS...), specify them as 1678VAR=VALUE. See below for descriptions of some of the useful variables. 1679 1680Defaults for the options are specified in brackets. 1681 1682Configuration: 1683 -h, --help display this help and exit 1684 --help=short display options specific to this package 1685 --help=recursive display the short help of all the included packages 1686 -V, --version display version information and exit 1687 -q, --quiet, --silent do not print \`checking...' messages 1688 --cache-file=FILE cache test results in FILE [disabled] 1689 -C, --config-cache alias for \`--cache-file=config.cache' 1690 -n, --no-create do not create output files 1691 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1692 1693Installation directories: 1694 --prefix=PREFIX install architecture-independent files in PREFIX 1695 [$ac_default_prefix] 1696 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1697 [PREFIX] 1698 1699By default, \`make install' will install all the files in 1700\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1701an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1702for instance \`--prefix=\$HOME'. 1703 1704For better control, use the options below. 1705 1706Fine tuning of the installation directories: 1707 --bindir=DIR user executables [EPREFIX/bin] 1708 --sbindir=DIR system admin executables [EPREFIX/sbin] 1709 --libexecdir=DIR program executables [EPREFIX/libexec] 1710 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1711 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1712 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1713 --libdir=DIR object code libraries [EPREFIX/lib] 1714 --includedir=DIR C header files [PREFIX/include] 1715 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1716 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1717 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1718 --infodir=DIR info documentation [DATAROOTDIR/info] 1719 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1720 --mandir=DIR man documentation [DATAROOTDIR/man] 1721 --docdir=DIR documentation root [DATAROOTDIR/doc/sed] 1722 --htmldir=DIR html documentation [DOCDIR] 1723 --dvidir=DIR dvi documentation [DOCDIR] 1724 --pdfdir=DIR pdf documentation [DOCDIR] 1725 --psdir=DIR ps documentation [DOCDIR] 1726_ACEOF 1727 1728 cat <<\_ACEOF 1729 1730Program names: 1731 --program-prefix=PREFIX prepend PREFIX to installed program names 1732 --program-suffix=SUFFIX append SUFFIX to installed program names 1733 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1734 1735System types: 1736 --build=BUILD configure for building on BUILD [guessed] 1737 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1738_ACEOF 1739fi 1740 1741if test -n "$ac_init_help"; then 1742 case $ac_init_help in 1743 short | recursive ) echo "Configuration of sed 4.2.1:";; 1744 esac 1745 cat <<\_ACEOF 1746 1747Optional Features: 1748 --disable-option-checking ignore unrecognized --enable/--with options 1749 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1750 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1751 --disable-dependency-tracking speeds up one-time build 1752 --enable-dependency-tracking do not reject slow dependency extractors 1753 --disable-acl do not support ACLs 1754 --disable-largefile omit support for large files 1755 --disable-nls do not use Native Language Support 1756 --disable-rpath do not hardcode runtime library paths 1757 --disable-i18n disable internationalization (default=enabled) 1758 --enable-regex-tests enable regex matcher regression tests (default=yes) 1759 1760Optional Packages: 1761 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1762 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1763 --without-included-regex 1764 don't compile regex; this is the default on systems 1765 with recent-enough versions of the GNU C Library 1766 (use with caution on other systems). 1767 --with-gnu-ld assume the C compiler uses GNU ld default=no 1768 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1769 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1770 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1771 --without-libintl-prefix don't search for libintl in includedir and libdir 1772 1773Some influential environment variables: 1774 CC C compiler command 1775 CFLAGS C compiler flags 1776 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1777 nonstandard directory <lib dir> 1778 LIBS libraries to pass to the linker, e.g. -l<library> 1779 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1780 you have headers in a nonstandard directory <include dir> 1781 CPP C preprocessor 1782 1783Use these variables to override the choices made by `configure' or to help 1784it to find libraries and programs with nonstandard names/locations. 1785 1786Report bugs to <bug-gnu-utils@gnu.org>. 1787_ACEOF 1788ac_status=$? 1789fi 1790 1791if test "$ac_init_help" = "recursive"; then 1792 # If there are subdirs, report their specific --help. 1793 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1794 test -d "$ac_dir" || 1795 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1796 continue 1797 ac_builddir=. 1798 1799case "$ac_dir" in 1800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1801*) 1802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1803 # A ".." for each directory in $ac_dir_suffix. 1804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1805 case $ac_top_builddir_sub in 1806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1808 esac ;; 1809esac 1810ac_abs_top_builddir=$ac_pwd 1811ac_abs_builddir=$ac_pwd$ac_dir_suffix 1812# for backward compatibility: 1813ac_top_builddir=$ac_top_build_prefix 1814 1815case $srcdir in 1816 .) # We are building in place. 1817 ac_srcdir=. 1818 ac_top_srcdir=$ac_top_builddir_sub 1819 ac_abs_top_srcdir=$ac_pwd ;; 1820 [\\/]* | ?:[\\/]* ) # Absolute name. 1821 ac_srcdir=$srcdir$ac_dir_suffix; 1822 ac_top_srcdir=$srcdir 1823 ac_abs_top_srcdir=$srcdir ;; 1824 *) # Relative name. 1825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1826 ac_top_srcdir=$ac_top_build_prefix$srcdir 1827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1828esac 1829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1830 1831 cd "$ac_dir" || { ac_status=$?; continue; } 1832 # Check for guested configure. 1833 if test -f "$ac_srcdir/configure.gnu"; then 1834 echo && 1835 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1836 elif test -f "$ac_srcdir/configure"; then 1837 echo && 1838 $SHELL "$ac_srcdir/configure" --help=recursive 1839 else 1840 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1841 fi || ac_status=$? 1842 cd "$ac_pwd" || { ac_status=$?; break; } 1843 done 1844fi 1845 1846test -n "$ac_init_help" && exit $ac_status 1847if $ac_init_version; then 1848 cat <<\_ACEOF 1849sed configure 4.2.1 1850generated by GNU Autoconf 2.63 1851 1852Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 18532002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1854This configure script is free software; the Free Software Foundation 1855gives unlimited permission to copy, distribute and modify it. 1856_ACEOF 1857 exit 1858fi 1859cat >config.log <<_ACEOF 1860This file contains any messages produced by compilers while 1861running configure, to aid debugging if configure makes a mistake. 1862 1863It was created by sed $as_me 4.2.1, which was 1864generated by GNU Autoconf 2.63. Invocation command line was 1865 1866 $ $0 $@ 1867 1868_ACEOF 1869exec 5>>config.log 1870{ 1871cat <<_ASUNAME 1872## --------- ## 1873## Platform. ## 1874## --------- ## 1875 1876hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1877uname -m = `(uname -m) 2>/dev/null || echo unknown` 1878uname -r = `(uname -r) 2>/dev/null || echo unknown` 1879uname -s = `(uname -s) 2>/dev/null || echo unknown` 1880uname -v = `(uname -v) 2>/dev/null || echo unknown` 1881 1882/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1883/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1884 1885/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1886/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1887/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1888/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1889/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1890/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1891/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1892 1893_ASUNAME 1894 1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1896for as_dir in $PATH 1897do 1898 IFS=$as_save_IFS 1899 test -z "$as_dir" && as_dir=. 1900 $as_echo "PATH: $as_dir" 1901done 1902IFS=$as_save_IFS 1903 1904} >&5 1905 1906cat >&5 <<_ACEOF 1907 1908 1909## ----------- ## 1910## Core tests. ## 1911## ----------- ## 1912 1913_ACEOF 1914 1915 1916# Keep a trace of the command line. 1917# Strip out --no-create and --no-recursion so they do not pile up. 1918# Strip out --silent because we don't want to record it for future runs. 1919# Also quote any args containing shell meta-characters. 1920# Make two passes to allow for proper duplicate-argument suppression. 1921ac_configure_args= 1922ac_configure_args0= 1923ac_configure_args1= 1924ac_must_keep_next=false 1925for ac_pass in 1 2 1926do 1927 for ac_arg 1928 do 1929 case $ac_arg in 1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1932 | -silent | --silent | --silen | --sile | --sil) 1933 continue ;; 1934 *\'*) 1935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1936 esac 1937 case $ac_pass in 1938 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1939 2) 1940 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1941 if test $ac_must_keep_next = true; then 1942 ac_must_keep_next=false # Got value, back to normal. 1943 else 1944 case $ac_arg in 1945 *=* | --config-cache | -C | -disable-* | --disable-* \ 1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1948 | -with-* | --with-* | -without-* | --without-* | --x) 1949 case "$ac_configure_args0 " in 1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1951 esac 1952 ;; 1953 -* ) ac_must_keep_next=true ;; 1954 esac 1955 fi 1956 ac_configure_args="$ac_configure_args '$ac_arg'" 1957 ;; 1958 esac 1959 done 1960done 1961$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1962$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1963 1964# When interrupted or exit'd, cleanup temporary files, and complete 1965# config.log. We remove comments because anyway the quotes in there 1966# would cause problems or look ugly. 1967# WARNING: Use '\'' to represent an apostrophe within the trap. 1968# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1969trap 'exit_status=$? 1970 # Save into config.log some information that might help in debugging. 1971 { 1972 echo 1973 1974 cat <<\_ASBOX 1975## ---------------- ## 1976## Cache variables. ## 1977## ---------------- ## 1978_ASBOX 1979 echo 1980 # The following way of writing the cache mishandles newlines in values, 1981( 1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1983 eval ac_val=\$$ac_var 1984 case $ac_val in #( 1985 *${as_nl}*) 1986 case $ac_var in #( 1987 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1988$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1989 esac 1990 case $ac_var in #( 1991 _ | IFS | as_nl) ;; #( 1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1993 *) $as_unset $ac_var ;; 1994 esac ;; 1995 esac 1996 done 1997 (set) 2>&1 | 1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1999 *${as_nl}ac_space=\ *) 2000 sed -n \ 2001 "s/'\''/'\''\\\\'\'''\''/g; 2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2003 ;; #( 2004 *) 2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2006 ;; 2007 esac | 2008 sort 2009) 2010 echo 2011 2012 cat <<\_ASBOX 2013## ----------------- ## 2014## Output variables. ## 2015## ----------------- ## 2016_ASBOX 2017 echo 2018 for ac_var in $ac_subst_vars 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 $as_echo "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 2028 if test -n "$ac_subst_files"; then 2029 cat <<\_ASBOX 2030## ------------------- ## 2031## File substitutions. ## 2032## ------------------- ## 2033_ASBOX 2034 echo 2035 for ac_var in $ac_subst_files 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 $as_echo "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 fi 2045 2046 if test -s confdefs.h; then 2047 cat <<\_ASBOX 2048## ----------- ## 2049## confdefs.h. ## 2050## ----------- ## 2051_ASBOX 2052 echo 2053 cat confdefs.h 2054 echo 2055 fi 2056 test "$ac_signal" != 0 && 2057 $as_echo "$as_me: caught signal $ac_signal" 2058 $as_echo "$as_me: exit $exit_status" 2059 } >&5 2060 rm -f core *.core core.conftest.* && 2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2062 exit $exit_status 2063' 0 2064for ac_signal in 1 2 13 15; do 2065 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2066done 2067ac_signal=0 2068 2069# confdefs.h avoids OS command line length limits that DEFS can exceed. 2070rm -f -r conftest* confdefs.h 2071 2072# Predefined preprocessor variables. 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_NAME "$PACKAGE_NAME" 2076_ACEOF 2077 2078 2079cat >>confdefs.h <<_ACEOF 2080#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2081_ACEOF 2082 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_VERSION "$PACKAGE_VERSION" 2086_ACEOF 2087 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_STRING "$PACKAGE_STRING" 2091_ACEOF 2092 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2096_ACEOF 2097 2098 2099# Let the site file select an alternate cache file if it wants to. 2100# Prefer an explicitly selected file to automatically selected ones. 2101ac_site_file1=NONE 2102ac_site_file2=NONE 2103if test -n "$CONFIG_SITE"; then 2104 ac_site_file1=$CONFIG_SITE 2105elif test "x$prefix" != xNONE; then 2106 ac_site_file1=$prefix/share/config.site 2107 ac_site_file2=$prefix/etc/config.site 2108else 2109 ac_site_file1=$ac_default_prefix/share/config.site 2110 ac_site_file2=$ac_default_prefix/etc/config.site 2111fi 2112for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2113do 2114 test "x$ac_site_file" = xNONE && continue 2115 if test -r "$ac_site_file"; then 2116 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2117$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2118 sed 's/^/| /' "$ac_site_file" >&5 2119 . "$ac_site_file" 2120 fi 2121done 2122 2123if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special 2125 # files actually), so we avoid doing that. 2126 if test -f "$cache_file"; then 2127 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2128$as_echo "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134else 2135 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2136$as_echo "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138fi 2139 2140ac_func_list="$ac_func_list btowc" 2141ac_header_list="$ac_header_list errno.h" 2142ac_header_list="$ac_header_list sys/time.h" 2143ac_func_list="$ac_func_list gettimeofday" 2144ac_func_list="$ac_func_list lstat" 2145ac_func_list="$ac_func_list mbsinit" 2146ac_func_list="$ac_func_list mbrtowc" 2147ac_func_list="$ac_func_list mbrlen" 2148ac_header_list="$ac_header_list sys/mman.h" 2149ac_func_list="$ac_func_list mprotect" 2150ac_func_list="$ac_func_list pathconf" 2151ac_header_list="$ac_header_list sys/param.h" 2152ac_header_list="$ac_header_list locale.h" 2153ac_func_list="$ac_func_list isblank" 2154ac_func_list="$ac_func_list iswctype" 2155ac_func_list="$ac_func_list wcscoll" 2156ac_header_list="$ac_header_list stdint.h" 2157ac_header_list="$ac_header_list wchar.h" 2158ac_header_list="$ac_header_list stdio.h" 2159ac_header_list="$ac_header_list stdlib.h" 2160ac_header_list="$ac_header_list sys/socket.h" 2161ac_header_list="$ac_header_list string.h" 2162ac_header_list="$ac_header_list sys/stat.h" 2163ac_header_list="$ac_header_list unistd.h" 2164ac_func_list="$ac_func_list wcrtomb" 2165ac_func_list="$ac_func_list wctob" 2166ac_func_list="$ac_func_list iswcntrl" 2167ac_header_list="$ac_header_list wctype.h" 2168gl_use_threads_default=no 2169ac_header_list="$ac_header_list io.h" 2170ac_header_list="$ac_header_list limits.h" 2171ac_header_list="$ac_header_list stdarg.h" 2172ac_header_list="$ac_header_list alloca.h" 2173ac_header_list="$ac_header_list stddef.h" 2174ac_header_list="$ac_header_list sys/file.h" 2175ac_header_list="$ac_header_list mcheck.h" 2176gt_needs="$gt_needs " 2177ac_func_list="$ac_func_list isatty" 2178ac_func_list="$ac_func_list bcopy" 2179ac_func_list="$ac_func_list bzero" 2180ac_func_list="$ac_func_list isascii" 2181ac_func_list="$ac_func_list memcpy" 2182ac_func_list="$ac_func_list memset" 2183ac_func_list="$ac_func_list strchr" 2184ac_func_list="$ac_func_list strtoul" 2185ac_func_list="$ac_func_list popen" 2186ac_func_list="$ac_func_list fchown" 2187ac_func_list="$ac_func_list fchmod" 2188ac_func_list="$ac_func_list setlocale" 2189# Check that the precious variables saved in the cache have kept the same 2190# value. 2191ac_cache_corrupted=false 2192for ac_var in $ac_precious_vars; do 2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2194 eval ac_new_set=\$ac_env_${ac_var}_set 2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2196 eval ac_new_val=\$ac_env_${ac_var}_value 2197 case $ac_old_set,$ac_new_set in 2198 set,) 2199 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2200$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2201 ac_cache_corrupted=: ;; 2202 ,set) 2203 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2204$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2205 ac_cache_corrupted=: ;; 2206 ,);; 2207 *) 2208 if test "x$ac_old_val" != "x$ac_new_val"; then 2209 # differences in whitespace do not lead to failure. 2210 ac_old_val_w=`echo x $ac_old_val` 2211 ac_new_val_w=`echo x $ac_new_val` 2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2213 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2214$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2215 ac_cache_corrupted=: 2216 else 2217 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2218$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2219 eval $ac_var=\$ac_old_val 2220 fi 2221 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2222$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2223 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2224$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2225 fi;; 2226 esac 2227 # Pass precious variables to config.status. 2228 if test "$ac_new_set" = set; then 2229 case $ac_new_val in 2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2231 *) ac_arg=$ac_var=$ac_new_val ;; 2232 esac 2233 case " $ac_configure_args " in 2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2235 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2236 esac 2237 fi 2238done 2239if $ac_cache_corrupted; then 2240 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2242 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2243$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2244 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2245$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2246 { (exit 1); exit 1; }; } 2247fi 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273ac_ext=c 2274ac_cpp='$CPP $CPPFLAGS' 2275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2277ac_compiler_gnu=$ac_cv_c_compiler_gnu 2278 2279 2280ac_aux_dir= 2281for ac_dir in build-aux "$srcdir"/build-aux; do 2282 if test -f "$ac_dir/install-sh"; then 2283 ac_aux_dir=$ac_dir 2284 ac_install_sh="$ac_aux_dir/install-sh -c" 2285 break 2286 elif test -f "$ac_dir/install.sh"; then 2287 ac_aux_dir=$ac_dir 2288 ac_install_sh="$ac_aux_dir/install.sh -c" 2289 break 2290 elif test -f "$ac_dir/shtool"; then 2291 ac_aux_dir=$ac_dir 2292 ac_install_sh="$ac_aux_dir/shtool install -c" 2293 break 2294 fi 2295done 2296if test -z "$ac_aux_dir"; then 2297 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5 2298$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;} 2299 { (exit 1); exit 1; }; } 2300fi 2301 2302# These three variables are undocumented and unsupported, 2303# and are intended to be withdrawn in a future Autoconf release. 2304# They can cause serious problems if a builder's source tree is in a directory 2305# whose full name contains unusual characters. 2306ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2307ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2308ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2309 2310 2311 2312ac_config_headers="$ac_config_headers config.h:config_h.in" 2313 2314 2315am__api_version='1.10' 2316 2317# Find a good install program. We prefer a C program (faster), 2318# so one script is as good as another. But avoid the broken or 2319# incompatible versions: 2320# SysV /etc/install, /usr/sbin/install 2321# SunOS /usr/etc/install 2322# IRIX /sbin/install 2323# AIX /bin/install 2324# AmigaOS /C/install, which installs bootblocks on floppy discs 2325# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2326# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2327# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2328# OS/2's system install, which has a completely different semantic 2329# ./install, which can be erroneously created by make from ./install.sh. 2330# Reject install programs that cannot install multiple files. 2331{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2332$as_echo_n "checking for a BSD-compatible install... " >&6; } 2333if test -z "$INSTALL"; then 2334if test "${ac_cv_path_install+set}" = set; then 2335 $as_echo_n "(cached) " >&6 2336else 2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 # Account for people who put trailing slashes in PATH elements. 2343case $as_dir/ in 2344 ./ | .// | /cC/* | \ 2345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2346 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2347 /usr/ucb/* ) ;; 2348 *) 2349 # OSF1 and SCO ODT 3.0 have their own names for install. 2350 # Don't use installbsd from OSF since it installs stuff as root 2351 # by default. 2352 for ac_prog in ginstall scoinst install; do 2353 for ac_exec_ext in '' $ac_executable_extensions; do 2354 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2355 if test $ac_prog = install && 2356 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2357 # AIX install. It has an incompatible calling convention. 2358 : 2359 elif test $ac_prog = install && 2360 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2361 # program-specific install script used by HP pwplus--don't use. 2362 : 2363 else 2364 rm -rf conftest.one conftest.two conftest.dir 2365 echo one > conftest.one 2366 echo two > conftest.two 2367 mkdir conftest.dir 2368 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2369 test -s conftest.one && test -s conftest.two && 2370 test -s conftest.dir/conftest.one && 2371 test -s conftest.dir/conftest.two 2372 then 2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2374 break 3 2375 fi 2376 fi 2377 fi 2378 done 2379 done 2380 ;; 2381esac 2382 2383done 2384IFS=$as_save_IFS 2385 2386rm -rf conftest.one conftest.two conftest.dir 2387 2388fi 2389 if test "${ac_cv_path_install+set}" = set; then 2390 INSTALL=$ac_cv_path_install 2391 else 2392 # As a last resort, use the slow shell script. Don't cache a 2393 # value for INSTALL within a source directory, because that will 2394 # break other packages using the cache if that directory is 2395 # removed, or if the value is a relative name. 2396 INSTALL=$ac_install_sh 2397 fi 2398fi 2399{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2400$as_echo "$INSTALL" >&6; } 2401 2402# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2403# It thinks the first close brace ends the variable substitution. 2404test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2405 2406test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2407 2408test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2409 2410{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2411$as_echo_n "checking whether build environment is sane... " >&6; } 2412# Just in case 2413sleep 1 2414echo timestamp > conftest.file 2415# Do `set' in a subshell so we don't clobber the current shell's 2416# arguments. Must try -L first in case configure is actually a 2417# symlink; some systems play weird games with the mod time of symlinks 2418# (eg FreeBSD returns the mod time of the symlink's containing 2419# directory). 2420if ( 2421 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2422 if test "$*" = "X"; then 2423 # -L didn't work. 2424 set X `ls -t $srcdir/configure conftest.file` 2425 fi 2426 rm -f conftest.file 2427 if test "$*" != "X $srcdir/configure conftest.file" \ 2428 && test "$*" != "X conftest.file $srcdir/configure"; then 2429 2430 # If neither matched, then we have a broken ls. This can happen 2431 # if, for instance, CONFIG_SHELL is bash and it inherits a 2432 # broken ls alias from the environment. This has actually 2433 # happened. Such a system could not be considered "sane". 2434 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2435alias in your environment" >&5 2436$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2437alias in your environment" >&2;} 2438 { (exit 1); exit 1; }; } 2439 fi 2440 2441 test "$2" = conftest.file 2442 ) 2443then 2444 # Ok. 2445 : 2446else 2447 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2448Check your system clock" >&5 2449$as_echo "$as_me: error: newly created file is older than distributed files! 2450Check your system clock" >&2;} 2451 { (exit 1); exit 1; }; } 2452fi 2453{ $as_echo "$as_me:$LINENO: result: yes" >&5 2454$as_echo "yes" >&6; } 2455test "$program_prefix" != NONE && 2456 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2457# Use a double $ so make ignores it. 2458test "$program_suffix" != NONE && 2459 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2460# Double any \ or $. 2461# By default was `s,x,x', remove it if useless. 2462ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2463program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2464 2465# expand $ac_aux_dir to an absolute path 2466am_aux_dir=`cd $ac_aux_dir && pwd` 2467 2468test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2469# Use eval to expand $SHELL 2470if eval "$MISSING --run true"; then 2471 am_missing_run="$MISSING --run " 2472else 2473 am_missing_run= 2474 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2475$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2476fi 2477 2478{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2479$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2480if test -z "$MKDIR_P"; then 2481 if test "${ac_cv_path_mkdir+set}" = set; then 2482 $as_echo_n "(cached) " >&6 2483else 2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_prog in mkdir gmkdir; do 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2492 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2493 'mkdir (GNU coreutils) '* | \ 2494 'mkdir (coreutils) '* | \ 2495 'mkdir (fileutils) '4.1*) 2496 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2497 break 3;; 2498 esac 2499 done 2500 done 2501done 2502IFS=$as_save_IFS 2503 2504fi 2505 2506 if test "${ac_cv_path_mkdir+set}" = set; then 2507 MKDIR_P="$ac_cv_path_mkdir -p" 2508 else 2509 # As a last resort, use the slow shell script. Don't cache a 2510 # value for MKDIR_P within a source directory, because that will 2511 # break other packages using the cache if that directory is 2512 # removed, or if the value is a relative name. 2513 test -d ./--version && rmdir ./--version 2514 MKDIR_P="$ac_install_sh -d" 2515 fi 2516fi 2517{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2518$as_echo "$MKDIR_P" >&6; } 2519 2520mkdir_p="$MKDIR_P" 2521case $mkdir_p in 2522 [\\/$]* | ?:[\\/]*) ;; 2523 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2524esac 2525 2526for ac_prog in gawk mawk nawk awk 2527do 2528 # Extract the first word of "$ac_prog", so it can be a program name with args. 2529set dummy $ac_prog; ac_word=$2 2530{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2531$as_echo_n "checking for $ac_word... " >&6; } 2532if test "${ac_cv_prog_AWK+set}" = set; then 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test -n "$AWK"; then 2536 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_AWK="$ac_prog" 2546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555AWK=$ac_cv_prog_AWK 2556if test -n "$AWK"; then 2557 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2558$as_echo "$AWK" >&6; } 2559else 2560 { $as_echo "$as_me:$LINENO: result: no" >&5 2561$as_echo "no" >&6; } 2562fi 2563 2564 2565 test -n "$AWK" && break 2566done 2567 2568{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2570set x ${MAKE-make} 2571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2572if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2573 $as_echo_n "(cached) " >&6 2574else 2575 cat >conftest.make <<\_ACEOF 2576SHELL = /bin/sh 2577all: 2578 @echo '@@@%%%=$(MAKE)=@@@%%%' 2579_ACEOF 2580# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2581case `${MAKE-make} -f conftest.make 2>/dev/null` in 2582 *@@@%%%=?*=@@@%%%*) 2583 eval ac_cv_prog_make_${ac_make}_set=yes;; 2584 *) 2585 eval ac_cv_prog_make_${ac_make}_set=no;; 2586esac 2587rm -f conftest.make 2588fi 2589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2590 { $as_echo "$as_me:$LINENO: result: yes" >&5 2591$as_echo "yes" >&6; } 2592 SET_MAKE= 2593else 2594 { $as_echo "$as_me:$LINENO: result: no" >&5 2595$as_echo "no" >&6; } 2596 SET_MAKE="MAKE=${MAKE-make}" 2597fi 2598 2599rm -rf .tst 2>/dev/null 2600mkdir .tst 2>/dev/null 2601if test -d .tst; then 2602 am__leading_dot=. 2603else 2604 am__leading_dot=_ 2605fi 2606rmdir .tst 2>/dev/null 2607 2608if test "`cd $srcdir && pwd`" != "`pwd`"; then 2609 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2610 # is not polluted with repeated "-I." 2611 am__isrc=' -I$(srcdir)' 2612 # test to see if srcdir already configured 2613 if test -f $srcdir/config.status; then 2614 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2615$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2616 { (exit 1); exit 1; }; } 2617 fi 2618fi 2619 2620# test whether we have cygpath 2621if test -z "$CYGPATH_W"; then 2622 if (cygpath --version) >/dev/null 2>/dev/null; then 2623 CYGPATH_W='cygpath -w' 2624 else 2625 CYGPATH_W=echo 2626 fi 2627fi 2628 2629 2630# Define the identity of the package. 2631 PACKAGE='sed' 2632 VERSION='4.2.1' 2633 2634 2635cat >>confdefs.h <<_ACEOF 2636#define PACKAGE "$PACKAGE" 2637_ACEOF 2638 2639 2640cat >>confdefs.h <<_ACEOF 2641#define VERSION "$VERSION" 2642_ACEOF 2643 2644# Some tools Automake needs. 2645 2646ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2647 2648 2649AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2650 2651 2652AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2653 2654 2655AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2656 2657 2658MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2659 2660install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2661 2662# Installed binaries are usually stripped using `strip' when the user 2663# run `make install-strip'. However `strip' might not be the right 2664# tool to use in cross-compilation environments, therefore Automake 2665# will honor the `STRIP' environment variable to overrule this program. 2666if test "$cross_compiling" != no; then 2667 if test -n "$ac_tool_prefix"; then 2668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2669set dummy ${ac_tool_prefix}strip; ac_word=$2 2670{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2671$as_echo_n "checking for $ac_word... " >&6; } 2672if test "${ac_cv_prog_STRIP+set}" = set; then 2673 $as_echo_n "(cached) " >&6 2674else 2675 if test -n "$STRIP"; then 2676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2677else 2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2685 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690done 2691IFS=$as_save_IFS 2692 2693fi 2694fi 2695STRIP=$ac_cv_prog_STRIP 2696if test -n "$STRIP"; then 2697 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2698$as_echo "$STRIP" >&6; } 2699else 2700 { $as_echo "$as_me:$LINENO: result: no" >&5 2701$as_echo "no" >&6; } 2702fi 2703 2704 2705fi 2706if test -z "$ac_cv_prog_STRIP"; then 2707 ac_ct_STRIP=$STRIP 2708 # Extract the first word of "strip", so it can be a program name with args. 2709set dummy strip; ac_word=$2 2710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2711$as_echo_n "checking for $ac_word... " >&6; } 2712if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2713 $as_echo_n "(cached) " >&6 2714else 2715 if test -n "$ac_ct_STRIP"; then 2716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2717else 2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719for as_dir in $PATH 2720do 2721 IFS=$as_save_IFS 2722 test -z "$as_dir" && as_dir=. 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2725 ac_cv_prog_ac_ct_STRIP="strip" 2726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2727 break 2 2728 fi 2729done 2730done 2731IFS=$as_save_IFS 2732 2733fi 2734fi 2735ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2736if test -n "$ac_ct_STRIP"; then 2737 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2738$as_echo "$ac_ct_STRIP" >&6; } 2739else 2740 { $as_echo "$as_me:$LINENO: result: no" >&5 2741$as_echo "no" >&6; } 2742fi 2743 2744 if test "x$ac_ct_STRIP" = x; then 2745 STRIP=":" 2746 else 2747 case $cross_compiling:$ac_tool_warned in 2748yes:) 2749{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2751ac_tool_warned=yes ;; 2752esac 2753 STRIP=$ac_ct_STRIP 2754 fi 2755else 2756 STRIP="$ac_cv_prog_STRIP" 2757fi 2758 2759fi 2760INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2761 2762# We need awk for the "check" target. The system "awk" is bad on 2763# some platforms. 2764# Always define AMTAR for backward compatibility. 2765 2766AMTAR=${AMTAR-"${am_missing_run}tar"} 2767 2768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2769 2770 2771 2772 2773 2774 2775SED_FEATURE_VERSION=4.2 2776 2777cat >>confdefs.h <<_ACEOF 2778#define SED_FEATURE_VERSION "$SED_FEATURE_VERSION" 2779_ACEOF 2780 2781 2782 2783COPYRIGHT_YEAR=2009 2784 2785cat >>confdefs.h <<_ACEOF 2786#define COPYRIGHT_YEAR $COPYRIGHT_YEAR 2787_ACEOF 2788 2789 2790 2791ac_ext=c 2792ac_cpp='$CPP $CPPFLAGS' 2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2795ac_compiler_gnu=$ac_cv_c_compiler_gnu 2796if test -n "$ac_tool_prefix"; then 2797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2798set dummy ${ac_tool_prefix}gcc; ac_word=$2 2799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2800$as_echo_n "checking for $ac_word... " >&6; } 2801if test "${ac_cv_prog_CC+set}" = set; then 2802 $as_echo_n "(cached) " >&6 2803else 2804 if test -n "$CC"; then 2805 ac_cv_prog_CC="$CC" # Let the user override the test. 2806else 2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH 2809do 2810 IFS=$as_save_IFS 2811 test -z "$as_dir" && as_dir=. 2812 for ac_exec_ext in '' $ac_executable_extensions; do 2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2814 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2816 break 2 2817 fi 2818done 2819done 2820IFS=$as_save_IFS 2821 2822fi 2823fi 2824CC=$ac_cv_prog_CC 2825if test -n "$CC"; then 2826 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2827$as_echo "$CC" >&6; } 2828else 2829 { $as_echo "$as_me:$LINENO: result: no" >&5 2830$as_echo "no" >&6; } 2831fi 2832 2833 2834fi 2835if test -z "$ac_cv_prog_CC"; then 2836 ac_ct_CC=$CC 2837 # Extract the first word of "gcc", so it can be a program name with args. 2838set dummy gcc; ac_word=$2 2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$ac_ct_CC"; then 2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2854 ac_cv_prog_ac_ct_CC="gcc" 2855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864ac_ct_CC=$ac_cv_prog_ac_ct_CC 2865if test -n "$ac_ct_CC"; then 2866 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2867$as_echo "$ac_ct_CC" >&6; } 2868else 2869 { $as_echo "$as_me:$LINENO: result: no" >&5 2870$as_echo "no" >&6; } 2871fi 2872 2873 if test "x$ac_ct_CC" = x; then 2874 CC="" 2875 else 2876 case $cross_compiling:$ac_tool_warned in 2877yes:) 2878{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2880ac_tool_warned=yes ;; 2881esac 2882 CC=$ac_ct_CC 2883 fi 2884else 2885 CC="$ac_cv_prog_CC" 2886fi 2887 2888if test -z "$CC"; then 2889 if test -n "$ac_tool_prefix"; then 2890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2891set dummy ${ac_tool_prefix}cc; ac_word=$2 2892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2893$as_echo_n "checking for $ac_word... " >&6; } 2894if test "${ac_cv_prog_CC+set}" = set; then 2895 $as_echo_n "(cached) " >&6 2896else 2897 if test -n "$CC"; then 2898 ac_cv_prog_CC="$CC" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2907 ac_cv_prog_CC="${ac_tool_prefix}cc" 2908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912done 2913IFS=$as_save_IFS 2914 2915fi 2916fi 2917CC=$ac_cv_prog_CC 2918if test -n "$CC"; then 2919 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2920$as_echo "$CC" >&6; } 2921else 2922 { $as_echo "$as_me:$LINENO: result: no" >&5 2923$as_echo "no" >&6; } 2924fi 2925 2926 2927 fi 2928fi 2929if test -z "$CC"; then 2930 # Extract the first word of "cc", so it can be a program name with args. 2931set dummy cc; ac_word=$2 2932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2933$as_echo_n "checking for $ac_word... " >&6; } 2934if test "${ac_cv_prog_CC+set}" = set; then 2935 $as_echo_n "(cached) " >&6 2936else 2937 if test -n "$CC"; then 2938 ac_cv_prog_CC="$CC" # Let the user override the test. 2939else 2940 ac_prog_rejected=no 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2949 ac_prog_rejected=yes 2950 continue 2951 fi 2952 ac_cv_prog_CC="cc" 2953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957done 2958IFS=$as_save_IFS 2959 2960if test $ac_prog_rejected = yes; then 2961 # We found a bogon in the path, so make sure we never use it. 2962 set dummy $ac_cv_prog_CC 2963 shift 2964 if test $# != 0; then 2965 # We chose a different compiler from the bogus one. 2966 # However, it has the same basename, so the bogon will be chosen 2967 # first if we set CC to just the basename; use the full file name. 2968 shift 2969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2970 fi 2971fi 2972fi 2973fi 2974CC=$ac_cv_prog_CC 2975if test -n "$CC"; then 2976 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2977$as_echo "$CC" >&6; } 2978else 2979 { $as_echo "$as_me:$LINENO: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984fi 2985if test -z "$CC"; then 2986 if test -n "$ac_tool_prefix"; then 2987 for ac_prog in cl.exe 2988 do 2989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2990set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if test "${ac_cv_prog_CC+set}" = set; then 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3019$as_echo "$CC" >&6; } 3020else 3021 { $as_echo "$as_me:$LINENO: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026 test -n "$CC" && break 3027 done 3028fi 3029if test -z "$CC"; then 3030 ac_ct_CC=$CC 3031 for ac_prog in cl.exe 3032do 3033 # Extract the first word of "$ac_prog", so it can be a program name with args. 3034set dummy $ac_prog; ac_word=$2 3035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3036$as_echo_n "checking for $ac_word... " >&6; } 3037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3038 $as_echo_n "(cached) " >&6 3039else 3040 if test -n "$ac_ct_CC"; then 3041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3042else 3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044for as_dir in $PATH 3045do 3046 IFS=$as_save_IFS 3047 test -z "$as_dir" && as_dir=. 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3050 ac_cv_prog_ac_ct_CC="$ac_prog" 3051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054done 3055done 3056IFS=$as_save_IFS 3057 3058fi 3059fi 3060ac_ct_CC=$ac_cv_prog_ac_ct_CC 3061if test -n "$ac_ct_CC"; then 3062 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3063$as_echo "$ac_ct_CC" >&6; } 3064else 3065 { $as_echo "$as_me:$LINENO: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070 test -n "$ac_ct_CC" && break 3071done 3072 3073 if test "x$ac_ct_CC" = x; then 3074 CC="" 3075 else 3076 case $cross_compiling:$ac_tool_warned in 3077yes:) 3078{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3080ac_tool_warned=yes ;; 3081esac 3082 CC=$ac_ct_CC 3083 fi 3084fi 3085 3086fi 3087 3088 3089test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3091{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3092See \`config.log' for more details." >&5 3093$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3094See \`config.log' for more details." >&2;} 3095 { (exit 1); exit 1; }; }; } 3096 3097# Provide some information about the compiler. 3098$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3099set X $ac_compile 3100ac_compiler=$2 3101{ (ac_try="$ac_compiler --version >&5" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3107$as_echo "$ac_try_echo") >&5 3108 (eval "$ac_compiler --version >&5") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } 3112{ (ac_try="$ac_compiler -v >&5" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3118$as_echo "$ac_try_echo") >&5 3119 (eval "$ac_compiler -v >&5") 2>&5 3120 ac_status=$? 3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); } 3123{ (ac_try="$ac_compiler -V >&5" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3129$as_echo "$ac_try_echo") >&5 3130 (eval "$ac_compiler -V >&5") 2>&5 3131 ac_status=$? 3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); } 3134 3135cat >conftest.$ac_ext <<_ACEOF 3136/* confdefs.h. */ 3137_ACEOF 3138cat confdefs.h >>conftest.$ac_ext 3139cat >>conftest.$ac_ext <<_ACEOF 3140/* end confdefs.h. */ 3141 3142int 3143main () 3144{ 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150ac_clean_files_save=$ac_clean_files 3151ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3152# Try to create an executable without -o first, disregard a.out. 3153# It will help us diagnose broken compilers, and finding out an intuition 3154# of exeext. 3155{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3156$as_echo_n "checking for C compiler default output file name... " >&6; } 3157ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3158 3159# The possible output files: 3160ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3161 3162ac_rmfiles= 3163for ac_file in $ac_files 3164do 3165 case $ac_file in 3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3167 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3168 esac 3169done 3170rm -f $ac_rmfiles 3171 3172if { (ac_try="$ac_link_default" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3178$as_echo "$ac_try_echo") >&5 3179 (eval "$ac_link_default") 2>&5 3180 ac_status=$? 3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; then 3183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3184# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3185# in a Makefile. We should not override ac_cv_exeext if it was cached, 3186# so that the user can short-circuit this test for compilers unknown to 3187# Autoconf. 3188for ac_file in $ac_files '' 3189do 3190 test -f "$ac_file" || continue 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3193 ;; 3194 [ab].out ) 3195 # We found the default executable, but exeext='' is most 3196 # certainly right. 3197 break;; 3198 *.* ) 3199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3200 then :; else 3201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3202 fi 3203 # We set ac_cv_exeext here because the later test for it is not 3204 # safe: cross compilers may not add the suffix if given an `-o' 3205 # argument, so we may need to know it at that point already. 3206 # Even if this section looks crufty: it has the advantage of 3207 # actually working. 3208 break;; 3209 * ) 3210 break;; 3211 esac 3212done 3213test "$ac_cv_exeext" = no && ac_cv_exeext= 3214 3215else 3216 ac_file='' 3217fi 3218 3219{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3220$as_echo "$ac_file" >&6; } 3221if test -z "$ac_file"; then 3222 $as_echo "$as_me: failed program was:" >&5 3223sed 's/^/| /' conftest.$ac_ext >&5 3224 3225{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3227{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3228See \`config.log' for more details." >&5 3229$as_echo "$as_me: error: C compiler cannot create executables 3230See \`config.log' for more details." >&2;} 3231 { (exit 77); exit 77; }; }; } 3232fi 3233 3234ac_exeext=$ac_cv_exeext 3235 3236# Check that the compiler produces executables we can run. If not, either 3237# the compiler is broken, or we cross compile. 3238{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3239$as_echo_n "checking whether the C compiler works... " >&6; } 3240# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3241# If not cross compiling, check that we can run a simple program. 3242if test "$cross_compiling" != yes; then 3243 if { ac_try='./$ac_file' 3244 { (case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247esac 3248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3249$as_echo "$ac_try_echo") >&5 3250 (eval "$ac_try") 2>&5 3251 ac_status=$? 3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; }; then 3254 cross_compiling=no 3255 else 3256 if test "$cross_compiling" = maybe; then 3257 cross_compiling=yes 3258 else 3259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3261{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3262If you meant to cross compile, use \`--host'. 3263See \`config.log' for more details." >&5 3264$as_echo "$as_me: error: cannot run C compiled programs. 3265If you meant to cross compile, use \`--host'. 3266See \`config.log' for more details." >&2;} 3267 { (exit 1); exit 1; }; }; } 3268 fi 3269 fi 3270fi 3271{ $as_echo "$as_me:$LINENO: result: yes" >&5 3272$as_echo "yes" >&6; } 3273 3274rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3275ac_clean_files=$ac_clean_files_save 3276# Check that the compiler produces executables we can run. If not, either 3277# the compiler is broken, or we cross compile. 3278{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3279$as_echo_n "checking whether we are cross compiling... " >&6; } 3280{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3281$as_echo "$cross_compiling" >&6; } 3282 3283{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3284$as_echo_n "checking for suffix of executables... " >&6; } 3285if { (ac_try="$ac_link" 3286case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3291$as_echo "$ac_try_echo") >&5 3292 (eval "$ac_link") 2>&5 3293 ac_status=$? 3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); }; then 3296 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3297# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3298# work properly (i.e., refer to `conftest.exe'), while it won't with 3299# `rm'. 3300for ac_file in conftest.exe conftest conftest.*; do 3301 test -f "$ac_file" || continue 3302 case $ac_file in 3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3305 break;; 3306 * ) break;; 3307 esac 3308done 3309else 3310 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3313See \`config.log' for more details." >&5 3314$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3315See \`config.log' for more details." >&2;} 3316 { (exit 1); exit 1; }; }; } 3317fi 3318 3319rm -f conftest$ac_cv_exeext 3320{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3321$as_echo "$ac_cv_exeext" >&6; } 3322 3323rm -f conftest.$ac_ext 3324EXEEXT=$ac_cv_exeext 3325ac_exeext=$EXEEXT 3326{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3327$as_echo_n "checking for suffix of object files... " >&6; } 3328if test "${ac_cv_objext+set}" = set; then 3329 $as_echo_n "(cached) " >&6 3330else 3331 cat >conftest.$ac_ext <<_ACEOF 3332/* confdefs.h. */ 3333_ACEOF 3334cat confdefs.h >>conftest.$ac_ext 3335cat >>conftest.$ac_ext <<_ACEOF 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346rm -f conftest.o conftest.obj 3347if { (ac_try="$ac_compile" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3353$as_echo "$ac_try_echo") >&5 3354 (eval "$ac_compile") 2>&5 3355 ac_status=$? 3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); }; then 3358 for ac_file in conftest.o conftest.obj conftest.*; do 3359 test -f "$ac_file" || continue; 3360 case $ac_file in 3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3363 break;; 3364 esac 3365done 3366else 3367 $as_echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3372{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3373See \`config.log' for more details." >&5 3374$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3375See \`config.log' for more details." >&2;} 3376 { (exit 1); exit 1; }; }; } 3377fi 3378 3379rm -f conftest.$ac_cv_objext conftest.$ac_ext 3380fi 3381{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3382$as_echo "$ac_cv_objext" >&6; } 3383OBJEXT=$ac_cv_objext 3384ac_objext=$OBJEXT 3385{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3386$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3387if test "${ac_cv_c_compiler_gnu+set}" = set; then 3388 $as_echo_n "(cached) " >&6 3389else 3390 cat >conftest.$ac_ext <<_ACEOF 3391/* confdefs.h. */ 3392_ACEOF 3393cat confdefs.h >>conftest.$ac_ext 3394cat >>conftest.$ac_ext <<_ACEOF 3395/* end confdefs.h. */ 3396 3397int 3398main () 3399{ 3400#ifndef __GNUC__ 3401 choke me 3402#endif 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408rm -f conftest.$ac_objext 3409if { (ac_try="$ac_compile" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3415$as_echo "$ac_try_echo") >&5 3416 (eval "$ac_compile") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } && { 3423 test -z "$ac_c_werror_flag" || 3424 test ! -s conftest.err 3425 } && test -s conftest.$ac_objext; then 3426 ac_compiler_gnu=yes 3427else 3428 $as_echo "$as_me: failed program was:" >&5 3429sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 ac_compiler_gnu=no 3432fi 3433 3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3435ac_cv_c_compiler_gnu=$ac_compiler_gnu 3436 3437fi 3438{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3439$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3440if test $ac_compiler_gnu = yes; then 3441 GCC=yes 3442else 3443 GCC= 3444fi 3445ac_test_CFLAGS=${CFLAGS+set} 3446ac_save_CFLAGS=$CFLAGS 3447{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3448$as_echo_n "checking whether $CC accepts -g... " >&6; } 3449if test "${ac_cv_prog_cc_g+set}" = set; then 3450 $as_echo_n "(cached) " >&6 3451else 3452 ac_save_c_werror_flag=$ac_c_werror_flag 3453 ac_c_werror_flag=yes 3454 ac_cv_prog_cc_g=no 3455 CFLAGS="-g" 3456 cat >conftest.$ac_ext <<_ACEOF 3457/* confdefs.h. */ 3458_ACEOF 3459cat confdefs.h >>conftest.$ac_ext 3460cat >>conftest.$ac_ext <<_ACEOF 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471rm -f conftest.$ac_objext 3472if { (ac_try="$ac_compile" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3478$as_echo "$ac_try_echo") >&5 3479 (eval "$ac_compile") 2>conftest.er1 3480 ac_status=$? 3481 grep -v '^ *+' conftest.er1 >conftest.err 3482 rm -f conftest.er1 3483 cat conftest.err >&5 3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3485 (exit $ac_status); } && { 3486 test -z "$ac_c_werror_flag" || 3487 test ! -s conftest.err 3488 } && test -s conftest.$ac_objext; then 3489 ac_cv_prog_cc_g=yes 3490else 3491 $as_echo "$as_me: failed program was:" >&5 3492sed 's/^/| /' conftest.$ac_ext >&5 3493 3494 CFLAGS="" 3495 cat >conftest.$ac_ext <<_ACEOF 3496/* confdefs.h. */ 3497_ACEOF 3498cat confdefs.h >>conftest.$ac_ext 3499cat >>conftest.$ac_ext <<_ACEOF 3500/* end confdefs.h. */ 3501 3502int 3503main () 3504{ 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510rm -f conftest.$ac_objext 3511if { (ac_try="$ac_compile" 3512case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3517$as_echo "$ac_try_echo") >&5 3518 (eval "$ac_compile") 2>conftest.er1 3519 ac_status=$? 3520 grep -v '^ *+' conftest.er1 >conftest.err 3521 rm -f conftest.er1 3522 cat conftest.err >&5 3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); } && { 3525 test -z "$ac_c_werror_flag" || 3526 test ! -s conftest.err 3527 } && test -s conftest.$ac_objext; then 3528 : 3529else 3530 $as_echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533 ac_c_werror_flag=$ac_save_c_werror_flag 3534 CFLAGS="-g" 3535 cat >conftest.$ac_ext <<_ACEOF 3536/* confdefs.h. */ 3537_ACEOF 3538cat confdefs.h >>conftest.$ac_ext 3539cat >>conftest.$ac_ext <<_ACEOF 3540/* end confdefs.h. */ 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550rm -f conftest.$ac_objext 3551if { (ac_try="$ac_compile" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3557$as_echo "$ac_try_echo") >&5 3558 (eval "$ac_compile") 2>conftest.er1 3559 ac_status=$? 3560 grep -v '^ *+' conftest.er1 >conftest.err 3561 rm -f conftest.er1 3562 cat conftest.err >&5 3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3564 (exit $ac_status); } && { 3565 test -z "$ac_c_werror_flag" || 3566 test ! -s conftest.err 3567 } && test -s conftest.$ac_objext; then 3568 ac_cv_prog_cc_g=yes 3569else 3570 $as_echo "$as_me: failed program was:" >&5 3571sed 's/^/| /' conftest.$ac_ext >&5 3572 3573 3574fi 3575 3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3577fi 3578 3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3580fi 3581 3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3583 ac_c_werror_flag=$ac_save_c_werror_flag 3584fi 3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3586$as_echo "$ac_cv_prog_cc_g" >&6; } 3587if test "$ac_test_CFLAGS" = set; then 3588 CFLAGS=$ac_save_CFLAGS 3589elif test $ac_cv_prog_cc_g = yes; then 3590 if test "$GCC" = yes; then 3591 CFLAGS="-g -O2" 3592 else 3593 CFLAGS="-g" 3594 fi 3595else 3596 if test "$GCC" = yes; then 3597 CFLAGS="-O2" 3598 else 3599 CFLAGS= 3600 fi 3601fi 3602{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3604if test "${ac_cv_prog_cc_c89+set}" = set; then 3605 $as_echo_n "(cached) " >&6 3606else 3607 ac_cv_prog_cc_c89=no 3608ac_save_CC=$CC 3609cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615#include <stdarg.h> 3616#include <stdio.h> 3617#include <sys/types.h> 3618#include <sys/stat.h> 3619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3620struct buf { int x; }; 3621FILE * (*rcsopen) (struct buf *, struct stat *, int); 3622static char *e (p, i) 3623 char **p; 3624 int i; 3625{ 3626 return p[i]; 3627} 3628static char *f (char * (*g) (char **, int), char **p, ...) 3629{ 3630 char *s; 3631 va_list v; 3632 va_start (v,p); 3633 s = g (p, va_arg (v,int)); 3634 va_end (v); 3635 return s; 3636} 3637 3638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3639 function prototypes and stuff, but not '\xHH' hex character constants. 3640 These don't provoke an error unfortunately, instead are silently treated 3641 as 'x'. The following induces an error, until -std is added to get 3642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3643 array size at least. It's necessary to write '\x00'==0 to get something 3644 that's true only with -std. */ 3645int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3646 3647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3648 inside strings and character constants. */ 3649#define FOO(x) 'x' 3650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3651 3652int test (int i, double x); 3653struct s1 {int (*f) (int a);}; 3654struct s2 {int (*f) (double a);}; 3655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3656int argc; 3657char **argv; 3658int 3659main () 3660{ 3661return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3668do 3669 CC="$ac_save_CC $ac_arg" 3670 rm -f conftest.$ac_objext 3671if { (ac_try="$ac_compile" 3672case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3677$as_echo "$ac_try_echo") >&5 3678 (eval "$ac_compile") 2>conftest.er1 3679 ac_status=$? 3680 grep -v '^ *+' conftest.er1 >conftest.err 3681 rm -f conftest.er1 3682 cat conftest.err >&5 3683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); } && { 3685 test -z "$ac_c_werror_flag" || 3686 test ! -s conftest.err 3687 } && test -s conftest.$ac_objext; then 3688 ac_cv_prog_cc_c89=$ac_arg 3689else 3690 $as_echo "$as_me: failed program was:" >&5 3691sed 's/^/| /' conftest.$ac_ext >&5 3692 3693 3694fi 3695 3696rm -f core conftest.err conftest.$ac_objext 3697 test "x$ac_cv_prog_cc_c89" != "xno" && break 3698done 3699rm -f conftest.$ac_ext 3700CC=$ac_save_CC 3701 3702fi 3703# AC_CACHE_VAL 3704case "x$ac_cv_prog_cc_c89" in 3705 x) 3706 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3707$as_echo "none needed" >&6; } ;; 3708 xno) 3709 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3710$as_echo "unsupported" >&6; } ;; 3711 *) 3712 CC="$CC $ac_cv_prog_cc_c89" 3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3714$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3715esac 3716 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723DEPDIR="${am__leading_dot}deps" 3724 3725ac_config_commands="$ac_config_commands depfiles" 3726 3727 3728am_make=${MAKE-make} 3729cat > confinc << 'END' 3730am__doit: 3731 @echo done 3732.PHONY: am__doit 3733END 3734# If we don't find an include directive, just comment out the code. 3735{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3736$as_echo_n "checking for style of include used by $am_make... " >&6; } 3737am__include="#" 3738am__quote= 3739_am_result=none 3740# First try GNU make style include. 3741echo "include confinc" > confmf 3742# We grep out `Entering directory' and `Leaving directory' 3743# messages which can occur if `w' ends up in MAKEFLAGS. 3744# In particular we don't look at `^make:' because GNU make might 3745# be invoked under some other name (usually "gmake"), in which 3746# case it prints its new name instead of `make'. 3747if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3748 am__include=include 3749 am__quote= 3750 _am_result=GNU 3751fi 3752# Now try BSD make style include. 3753if test "$am__include" = "#"; then 3754 echo '.include "confinc"' > confmf 3755 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3756 am__include=.include 3757 am__quote="\"" 3758 _am_result=BSD 3759 fi 3760fi 3761 3762 3763{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3764$as_echo "$_am_result" >&6; } 3765rm -f confinc confmf 3766 3767# Check whether --enable-dependency-tracking was given. 3768if test "${enable_dependency_tracking+set}" = set; then 3769 enableval=$enable_dependency_tracking; 3770fi 3771 3772if test "x$enable_dependency_tracking" != xno; then 3773 am_depcomp="$ac_aux_dir/depcomp" 3774 AMDEPBACKSLASH='\' 3775fi 3776 if test "x$enable_dependency_tracking" != xno; then 3777 AMDEP_TRUE= 3778 AMDEP_FALSE='#' 3779else 3780 AMDEP_TRUE='#' 3781 AMDEP_FALSE= 3782fi 3783 3784 3785 3786depcc="$CC" am_compiler_list= 3787 3788{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3789$as_echo_n "checking dependency style of $depcc... " >&6; } 3790if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3791 $as_echo_n "(cached) " >&6 3792else 3793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3794 # We make a subdir and do the tests there. Otherwise we can end up 3795 # making bogus files that we don't know about and never remove. For 3796 # instance it was reported that on HP-UX the gcc test will end up 3797 # making a dummy file named `D' -- because `-MD' means `put the output 3798 # in D'. 3799 mkdir conftest.dir 3800 # Copy depcomp to subdir because otherwise we won't find it if we're 3801 # using a relative directory. 3802 cp "$am_depcomp" conftest.dir 3803 cd conftest.dir 3804 # We will build objects and dependencies in a subdirectory because 3805 # it helps to detect inapplicable dependency modes. For instance 3806 # both Tru64's cc and ICC support -MD to output dependencies as a 3807 # side effect of compilation, but ICC will put the dependencies in 3808 # the current directory while Tru64 will put them in the object 3809 # directory. 3810 mkdir sub 3811 3812 am_cv_CC_dependencies_compiler_type=none 3813 if test "$am_compiler_list" = ""; then 3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3815 fi 3816 for depmode in $am_compiler_list; do 3817 # Setup a source with many dependencies, because some compilers 3818 # like to wrap large dependency lists on column 80 (with \), and 3819 # we should not choose a depcomp mode which is confused by this. 3820 # 3821 # We need to recreate these files for each test, as the compiler may 3822 # overwrite some of them when testing with obscure command lines. 3823 # This happens at least with the AIX C compiler. 3824 : > sub/conftest.c 3825 for i in 1 2 3 4 5 6; do 3826 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3827 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3828 # Solaris 8's {/usr,}/bin/sh. 3829 touch sub/conftst$i.h 3830 done 3831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3832 3833 case $depmode in 3834 nosideeffect) 3835 # after this tag, mechanisms are not by side-effect, so they'll 3836 # only be used when explicitly requested 3837 if test "x$enable_dependency_tracking" = xyes; then 3838 continue 3839 else 3840 break 3841 fi 3842 ;; 3843 none) break ;; 3844 esac 3845 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3846 # mode. It turns out that the SunPro C++ compiler does not properly 3847 # handle `-M -o', and we need to detect this. 3848 if depmode=$depmode \ 3849 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3851 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3852 >/dev/null 2>conftest.err && 3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3855 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3857 # icc doesn't choke on unknown options, it will just issue warnings 3858 # or remarks (even with -Werror). So we grep stderr for any message 3859 # that says an option was ignored or not supported. 3860 # When given -MP, icc 7.0 and 7.1 complain thusly: 3861 # icc: Command line warning: ignoring option '-M'; no argument required 3862 # The diagnosis changed in icc 8.0: 3863 # icc: Command line remark: option '-MP' not supported 3864 if (grep 'ignoring option' conftest.err || 3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3866 am_cv_CC_dependencies_compiler_type=$depmode 3867 break 3868 fi 3869 fi 3870 done 3871 3872 cd .. 3873 rm -rf conftest.dir 3874else 3875 am_cv_CC_dependencies_compiler_type=none 3876fi 3877 3878fi 3879{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3880$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3882 3883 if 3884 test "x$enable_dependency_tracking" != xno \ 3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3886 am__fastdepCC_TRUE= 3887 am__fastdepCC_FALSE='#' 3888else 3889 am__fastdepCC_TRUE='#' 3890 am__fastdepCC_FALSE= 3891fi 3892 3893 3894if test -n "$ac_tool_prefix"; then 3895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3896set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3898$as_echo_n "checking for $ac_word... " >&6; } 3899if test "${ac_cv_prog_RANLIB+set}" = set; then 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -n "$RANLIB"; then 3903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3904else 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917done 3918IFS=$as_save_IFS 3919 3920fi 3921fi 3922RANLIB=$ac_cv_prog_RANLIB 3923if test -n "$RANLIB"; then 3924 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 3925$as_echo "$RANLIB" >&6; } 3926else 3927 { $as_echo "$as_me:$LINENO: result: no" >&5 3928$as_echo "no" >&6; } 3929fi 3930 3931 3932fi 3933if test -z "$ac_cv_prog_RANLIB"; then 3934 ac_ct_RANLIB=$RANLIB 3935 # Extract the first word of "ranlib", so it can be a program name with args. 3936set dummy ranlib; ac_word=$2 3937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3938$as_echo_n "checking for $ac_word... " >&6; } 3939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3940 $as_echo_n "(cached) " >&6 3941else 3942 if test -n "$ac_ct_RANLIB"; then 3943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3944else 3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3946for as_dir in $PATH 3947do 3948 IFS=$as_save_IFS 3949 test -z "$as_dir" && as_dir=. 3950 for ac_exec_ext in '' $ac_executable_extensions; do 3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3952 ac_cv_prog_ac_ct_RANLIB="ranlib" 3953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956done 3957done 3958IFS=$as_save_IFS 3959 3960fi 3961fi 3962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3963if test -n "$ac_ct_RANLIB"; then 3964 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3965$as_echo "$ac_ct_RANLIB" >&6; } 3966else 3967 { $as_echo "$as_me:$LINENO: result: no" >&5 3968$as_echo "no" >&6; } 3969fi 3970 3971 if test "x$ac_ct_RANLIB" = x; then 3972 RANLIB=":" 3973 else 3974 case $cross_compiling:$ac_tool_warned in 3975yes:) 3976{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3978ac_tool_warned=yes ;; 3979esac 3980 RANLIB=$ac_ct_RANLIB 3981 fi 3982else 3983 RANLIB="$ac_cv_prog_RANLIB" 3984fi 3985 3986# Make sure we can run config.sub. 3987$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3988 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3989$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3990 { (exit 1); exit 1; }; } 3991 3992{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3993$as_echo_n "checking build system type... " >&6; } 3994if test "${ac_cv_build+set}" = set; then 3995 $as_echo_n "(cached) " >&6 3996else 3997 ac_build_alias=$build_alias 3998test "x$ac_build_alias" = x && 3999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4000test "x$ac_build_alias" = x && 4001 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4002$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4003 { (exit 1); exit 1; }; } 4004ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4005 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4006$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4007 { (exit 1); exit 1; }; } 4008 4009fi 4010{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4011$as_echo "$ac_cv_build" >&6; } 4012case $ac_cv_build in 4013*-*-*) ;; 4014*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4015$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4016 { (exit 1); exit 1; }; };; 4017esac 4018build=$ac_cv_build 4019ac_save_IFS=$IFS; IFS='-' 4020set x $ac_cv_build 4021shift 4022build_cpu=$1 4023build_vendor=$2 4024shift; shift 4025# Remember, the first character of IFS is used to create $*, 4026# except with old shells: 4027build_os=$* 4028IFS=$ac_save_IFS 4029case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4030 4031 4032{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4033$as_echo_n "checking host system type... " >&6; } 4034if test "${ac_cv_host+set}" = set; then 4035 $as_echo_n "(cached) " >&6 4036else 4037 if test "x$host_alias" = x; then 4038 ac_cv_host=$ac_cv_build 4039else 4040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4041 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4042$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4043 { (exit 1); exit 1; }; } 4044fi 4045 4046fi 4047{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4048$as_echo "$ac_cv_host" >&6; } 4049case $ac_cv_host in 4050*-*-*) ;; 4051*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4052$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4053 { (exit 1); exit 1; }; };; 4054esac 4055host=$ac_cv_host 4056ac_save_IFS=$IFS; IFS='-' 4057set x $ac_cv_host 4058shift 4059host_cpu=$1 4060host_vendor=$2 4061shift; shift 4062# Remember, the first character of IFS is used to create $*, 4063# except with old shells: 4064host_os=$* 4065IFS=$ac_save_IFS 4066case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4067 4068 4069 4070ac_ext=c 4071ac_cpp='$CPP $CPPFLAGS' 4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4074ac_compiler_gnu=$ac_cv_c_compiler_gnu 4075{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4076$as_echo_n "checking how to run the C preprocessor... " >&6; } 4077# On Suns, sometimes $CPP names a directory. 4078if test -n "$CPP" && test -d "$CPP"; then 4079 CPP= 4080fi 4081if test -z "$CPP"; then 4082 if test "${ac_cv_prog_CPP+set}" = set; then 4083 $as_echo_n "(cached) " >&6 4084else 4085 # Double quotes because CPP needs to be expanded 4086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4087 do 4088 ac_preproc_ok=false 4089for ac_c_preproc_warn_flag in '' yes 4090do 4091 # Use a header file that comes with gcc, so configuring glibc 4092 # with a fresh cross-compiler works. 4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4094 # <limits.h> exists even on freestanding compilers. 4095 # On the NeXT, cc -E runs the code through the compiler's parser, 4096 # not just through cpp. "Syntax error" is here to catch this case. 4097 cat >conftest.$ac_ext <<_ACEOF 4098/* confdefs.h. */ 4099_ACEOF 4100cat confdefs.h >>conftest.$ac_ext 4101cat >>conftest.$ac_ext <<_ACEOF 4102/* end confdefs.h. */ 4103#ifdef __STDC__ 4104# include <limits.h> 4105#else 4106# include <assert.h> 4107#endif 4108 Syntax error 4109_ACEOF 4110if { (ac_try="$ac_cpp conftest.$ac_ext" 4111case "(($ac_try" in 4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4113 *) ac_try_echo=$ac_try;; 4114esac 4115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4116$as_echo "$ac_try_echo") >&5 4117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4118 ac_status=$? 4119 grep -v '^ *+' conftest.er1 >conftest.err 4120 rm -f conftest.er1 4121 cat conftest.err >&5 4122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); } >/dev/null && { 4124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4125 test ! -s conftest.err 4126 }; then 4127 : 4128else 4129 $as_echo "$as_me: failed program was:" >&5 4130sed 's/^/| /' conftest.$ac_ext >&5 4131 4132 # Broken: fails on valid input. 4133continue 4134fi 4135 4136rm -f conftest.err conftest.$ac_ext 4137 4138 # OK, works on sane cases. Now check whether nonexistent headers 4139 # can be detected and how. 4140 cat >conftest.$ac_ext <<_ACEOF 4141/* confdefs.h. */ 4142_ACEOF 4143cat confdefs.h >>conftest.$ac_ext 4144cat >>conftest.$ac_ext <<_ACEOF 4145/* end confdefs.h. */ 4146#include <ac_nonexistent.h> 4147_ACEOF 4148if { (ac_try="$ac_cpp conftest.$ac_ext" 4149case "(($ac_try" in 4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4151 *) ac_try_echo=$ac_try;; 4152esac 4153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4154$as_echo "$ac_try_echo") >&5 4155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4156 ac_status=$? 4157 grep -v '^ *+' conftest.er1 >conftest.err 4158 rm -f conftest.er1 4159 cat conftest.err >&5 4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); } >/dev/null && { 4162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4163 test ! -s conftest.err 4164 }; then 4165 # Broken: success on invalid input. 4166continue 4167else 4168 $as_echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171 # Passes both tests. 4172ac_preproc_ok=: 4173break 4174fi 4175 4176rm -f conftest.err conftest.$ac_ext 4177 4178done 4179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4180rm -f conftest.err conftest.$ac_ext 4181if $ac_preproc_ok; then 4182 break 4183fi 4184 4185 done 4186 ac_cv_prog_CPP=$CPP 4187 4188fi 4189 CPP=$ac_cv_prog_CPP 4190else 4191 ac_cv_prog_CPP=$CPP 4192fi 4193{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4194$as_echo "$CPP" >&6; } 4195ac_preproc_ok=false 4196for ac_c_preproc_warn_flag in '' yes 4197do 4198 # Use a header file that comes with gcc, so configuring glibc 4199 # with a fresh cross-compiler works. 4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4201 # <limits.h> exists even on freestanding compilers. 4202 # On the NeXT, cc -E runs the code through the compiler's parser, 4203 # not just through cpp. "Syntax error" is here to catch this case. 4204 cat >conftest.$ac_ext <<_ACEOF 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#ifdef __STDC__ 4211# include <limits.h> 4212#else 4213# include <assert.h> 4214#endif 4215 Syntax error 4216_ACEOF 4217if { (ac_try="$ac_cpp conftest.$ac_ext" 4218case "(($ac_try" in 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4220 *) ac_try_echo=$ac_try;; 4221esac 4222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4223$as_echo "$ac_try_echo") >&5 4224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4225 ac_status=$? 4226 grep -v '^ *+' conftest.er1 >conftest.err 4227 rm -f conftest.er1 4228 cat conftest.err >&5 4229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); } >/dev/null && { 4231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4232 test ! -s conftest.err 4233 }; then 4234 : 4235else 4236 $as_echo "$as_me: failed program was:" >&5 4237sed 's/^/| /' conftest.$ac_ext >&5 4238 4239 # Broken: fails on valid input. 4240continue 4241fi 4242 4243rm -f conftest.err conftest.$ac_ext 4244 4245 # OK, works on sane cases. Now check whether nonexistent headers 4246 # can be detected and how. 4247 cat >conftest.$ac_ext <<_ACEOF 4248/* confdefs.h. */ 4249_ACEOF 4250cat confdefs.h >>conftest.$ac_ext 4251cat >>conftest.$ac_ext <<_ACEOF 4252/* end confdefs.h. */ 4253#include <ac_nonexistent.h> 4254_ACEOF 4255if { (ac_try="$ac_cpp conftest.$ac_ext" 4256case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259esac 4260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4261$as_echo "$ac_try_echo") >&5 4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } >/dev/null && { 4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4270 test ! -s conftest.err 4271 }; then 4272 # Broken: success on invalid input. 4273continue 4274else 4275 $as_echo "$as_me: failed program was:" >&5 4276sed 's/^/| /' conftest.$ac_ext >&5 4277 4278 # Passes both tests. 4279ac_preproc_ok=: 4280break 4281fi 4282 4283rm -f conftest.err conftest.$ac_ext 4284 4285done 4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4287rm -f conftest.err conftest.$ac_ext 4288if $ac_preproc_ok; then 4289 : 4290else 4291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4293{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4294See \`config.log' for more details." >&5 4295$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4296See \`config.log' for more details." >&2;} 4297 { (exit 1); exit 1; }; }; } 4298fi 4299 4300ac_ext=c 4301ac_cpp='$CPP $CPPFLAGS' 4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4304ac_compiler_gnu=$ac_cv_c_compiler_gnu 4305 4306 4307{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4308$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4309if test "${ac_cv_path_GREP+set}" = set; then 4310 $as_echo_n "(cached) " >&6 4311else 4312 if test -z "$GREP"; then 4313 ac_path_GREP_found=false 4314 # Loop through the user's path and test for each of PROGNAME-LIST 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4317do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_prog in grep ggrep; do 4321 for ac_exec_ext in '' $ac_executable_extensions; do 4322 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4323 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4324# Check for GNU ac_path_GREP and select it if it is found. 4325 # Check for GNU $ac_path_GREP 4326case `"$ac_path_GREP" --version 2>&1` in 4327*GNU*) 4328 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4329*) 4330 ac_count=0 4331 $as_echo_n 0123456789 >"conftest.in" 4332 while : 4333 do 4334 cat "conftest.in" "conftest.in" >"conftest.tmp" 4335 mv "conftest.tmp" "conftest.in" 4336 cp "conftest.in" "conftest.nl" 4337 $as_echo 'GREP' >> "conftest.nl" 4338 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4340 ac_count=`expr $ac_count + 1` 4341 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4342 # Best one so far, save it but keep looking for a better one 4343 ac_cv_path_GREP="$ac_path_GREP" 4344 ac_path_GREP_max=$ac_count 4345 fi 4346 # 10*(2^10) chars as input seems more than enough 4347 test $ac_count -gt 10 && break 4348 done 4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4350esac 4351 4352 $ac_path_GREP_found && break 3 4353 done 4354 done 4355done 4356IFS=$as_save_IFS 4357 if test -z "$ac_cv_path_GREP"; then 4358 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4359$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4360 { (exit 1); exit 1; }; } 4361 fi 4362else 4363 ac_cv_path_GREP=$GREP 4364fi 4365 4366fi 4367{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4368$as_echo "$ac_cv_path_GREP" >&6; } 4369 GREP="$ac_cv_path_GREP" 4370 4371 4372{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4373$as_echo_n "checking for egrep... " >&6; } 4374if test "${ac_cv_path_EGREP+set}" = set; then 4375 $as_echo_n "(cached) " >&6 4376else 4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4378 then ac_cv_path_EGREP="$GREP -E" 4379 else 4380 if test -z "$EGREP"; then 4381 ac_path_EGREP_found=false 4382 # Loop through the user's path and test for each of PROGNAME-LIST 4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4385do 4386 IFS=$as_save_IFS 4387 test -z "$as_dir" && as_dir=. 4388 for ac_prog in egrep; do 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4392# Check for GNU ac_path_EGREP and select it if it is found. 4393 # Check for GNU $ac_path_EGREP 4394case `"$ac_path_EGREP" --version 2>&1` in 4395*GNU*) 4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4397*) 4398 ac_count=0 4399 $as_echo_n 0123456789 >"conftest.in" 4400 while : 4401 do 4402 cat "conftest.in" "conftest.in" >"conftest.tmp" 4403 mv "conftest.tmp" "conftest.in" 4404 cp "conftest.in" "conftest.nl" 4405 $as_echo 'EGREP' >> "conftest.nl" 4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4408 ac_count=`expr $ac_count + 1` 4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4410 # Best one so far, save it but keep looking for a better one 4411 ac_cv_path_EGREP="$ac_path_EGREP" 4412 ac_path_EGREP_max=$ac_count 4413 fi 4414 # 10*(2^10) chars as input seems more than enough 4415 test $ac_count -gt 10 && break 4416 done 4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4418esac 4419 4420 $ac_path_EGREP_found && break 3 4421 done 4422 done 4423done 4424IFS=$as_save_IFS 4425 if test -z "$ac_cv_path_EGREP"; then 4426 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4427$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4428 { (exit 1); exit 1; }; } 4429 fi 4430else 4431 ac_cv_path_EGREP=$EGREP 4432fi 4433 4434 fi 4435fi 4436{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4437$as_echo "$ac_cv_path_EGREP" >&6; } 4438 EGREP="$ac_cv_path_EGREP" 4439 4440 4441{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4442$as_echo_n "checking for ANSI C header files... " >&6; } 4443if test "${ac_cv_header_stdc+set}" = set; then 4444 $as_echo_n "(cached) " >&6 4445else 4446 cat >conftest.$ac_ext <<_ACEOF 4447/* confdefs.h. */ 4448_ACEOF 4449cat confdefs.h >>conftest.$ac_ext 4450cat >>conftest.$ac_ext <<_ACEOF 4451/* end confdefs.h. */ 4452#include <stdlib.h> 4453#include <stdarg.h> 4454#include <string.h> 4455#include <float.h> 4456 4457int 4458main () 4459{ 4460 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465rm -f conftest.$ac_objext 4466if { (ac_try="$ac_compile" 4467case "(($ac_try" in 4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4469 *) ac_try_echo=$ac_try;; 4470esac 4471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4472$as_echo "$ac_try_echo") >&5 4473 (eval "$ac_compile") 2>conftest.er1 4474 ac_status=$? 4475 grep -v '^ *+' conftest.er1 >conftest.err 4476 rm -f conftest.er1 4477 cat conftest.err >&5 4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); } && { 4480 test -z "$ac_c_werror_flag" || 4481 test ! -s conftest.err 4482 } && test -s conftest.$ac_objext; then 4483 ac_cv_header_stdc=yes 4484else 4485 $as_echo "$as_me: failed program was:" >&5 4486sed 's/^/| /' conftest.$ac_ext >&5 4487 4488 ac_cv_header_stdc=no 4489fi 4490 4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4492 4493if test $ac_cv_header_stdc = yes; then 4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4495 cat >conftest.$ac_ext <<_ACEOF 4496/* confdefs.h. */ 4497_ACEOF 4498cat confdefs.h >>conftest.$ac_ext 4499cat >>conftest.$ac_ext <<_ACEOF 4500/* end confdefs.h. */ 4501#include <string.h> 4502 4503_ACEOF 4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4505 $EGREP "memchr" >/dev/null 2>&1; then 4506 : 4507else 4508 ac_cv_header_stdc=no 4509fi 4510rm -f conftest* 4511 4512fi 4513 4514if test $ac_cv_header_stdc = yes; then 4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4516 cat >conftest.$ac_ext <<_ACEOF 4517/* confdefs.h. */ 4518_ACEOF 4519cat confdefs.h >>conftest.$ac_ext 4520cat >>conftest.$ac_ext <<_ACEOF 4521/* end confdefs.h. */ 4522#include <stdlib.h> 4523 4524_ACEOF 4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4526 $EGREP "free" >/dev/null 2>&1; then 4527 : 4528else 4529 ac_cv_header_stdc=no 4530fi 4531rm -f conftest* 4532 4533fi 4534 4535if test $ac_cv_header_stdc = yes; then 4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4537 if test "$cross_compiling" = yes; then 4538 : 4539else 4540 cat >conftest.$ac_ext <<_ACEOF 4541/* confdefs.h. */ 4542_ACEOF 4543cat confdefs.h >>conftest.$ac_ext 4544cat >>conftest.$ac_ext <<_ACEOF 4545/* end confdefs.h. */ 4546#include <ctype.h> 4547#include <stdlib.h> 4548#if ((' ' & 0x0FF) == 0x020) 4549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4551#else 4552# define ISLOWER(c) \ 4553 (('a' <= (c) && (c) <= 'i') \ 4554 || ('j' <= (c) && (c) <= 'r') \ 4555 || ('s' <= (c) && (c) <= 'z')) 4556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4557#endif 4558 4559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4560int 4561main () 4562{ 4563 int i; 4564 for (i = 0; i < 256; i++) 4565 if (XOR (islower (i), ISLOWER (i)) 4566 || toupper (i) != TOUPPER (i)) 4567 return 2; 4568 return 0; 4569} 4570_ACEOF 4571rm -f conftest$ac_exeext 4572if { (ac_try="$ac_link" 4573case "(($ac_try" in 4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4575 *) ac_try_echo=$ac_try;; 4576esac 4577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4578$as_echo "$ac_try_echo") >&5 4579 (eval "$ac_link") 2>&5 4580 ac_status=$? 4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4583 { (case "(($ac_try" in 4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4585 *) ac_try_echo=$ac_try;; 4586esac 4587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4588$as_echo "$ac_try_echo") >&5 4589 (eval "$ac_try") 2>&5 4590 ac_status=$? 4591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); }; }; then 4593 : 4594else 4595 $as_echo "$as_me: program exited with status $ac_status" >&5 4596$as_echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599( exit $ac_status ) 4600ac_cv_header_stdc=no 4601fi 4602rm -rf conftest.dSYM 4603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4604fi 4605 4606 4607fi 4608fi 4609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4610$as_echo "$ac_cv_header_stdc" >&6; } 4611if test $ac_cv_header_stdc = yes; then 4612 4613cat >>confdefs.h <<\_ACEOF 4614#define STDC_HEADERS 1 4615_ACEOF 4616 4617fi 4618 4619# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4630 inttypes.h stdint.h unistd.h 4631do 4632as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4633{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4634$as_echo_n "checking for $ac_header... " >&6; } 4635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4636 $as_echo_n "(cached) " >&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$ac_includes_default 4645 4646#include <$ac_header> 4647_ACEOF 4648rm -f conftest.$ac_objext 4649if { (ac_try="$ac_compile" 4650case "(($ac_try" in 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4652 *) ac_try_echo=$ac_try;; 4653esac 4654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4655$as_echo "$ac_try_echo") >&5 4656 (eval "$ac_compile") 2>conftest.er1 4657 ac_status=$? 4658 grep -v '^ *+' conftest.er1 >conftest.err 4659 rm -f conftest.er1 4660 cat conftest.err >&5 4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } && { 4663 test -z "$ac_c_werror_flag" || 4664 test ! -s conftest.err 4665 } && test -s conftest.$ac_objext; then 4666 eval "$as_ac_Header=yes" 4667else 4668 $as_echo "$as_me: failed program was:" >&5 4669sed 's/^/| /' conftest.$ac_ext >&5 4670 4671 eval "$as_ac_Header=no" 4672fi 4673 4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4675fi 4676ac_res=`eval 'as_val=${'$as_ac_Header'} 4677 $as_echo "$as_val"'` 4678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4679$as_echo "$ac_res" >&6; } 4680as_val=`eval 'as_val=${'$as_ac_Header'} 4681 $as_echo "$as_val"'` 4682 if test "x$as_val" = x""yes; then 4683 cat >>confdefs.h <<_ACEOF 4684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4685_ACEOF 4686 4687fi 4688 4689done 4690 4691 4692 4693 4694 4695 if test "${ac_cv_header_minix_config_h+set}" = set; then 4696 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4697$as_echo_n "checking for minix/config.h... " >&6; } 4698if test "${ac_cv_header_minix_config_h+set}" = set; then 4699 $as_echo_n "(cached) " >&6 4700fi 4701{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4702$as_echo "$ac_cv_header_minix_config_h" >&6; } 4703else 4704 # Is the header compilable? 4705{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4706$as_echo_n "checking minix/config.h usability... " >&6; } 4707cat >conftest.$ac_ext <<_ACEOF 4708/* confdefs.h. */ 4709_ACEOF 4710cat confdefs.h >>conftest.$ac_ext 4711cat >>conftest.$ac_ext <<_ACEOF 4712/* end confdefs.h. */ 4713$ac_includes_default 4714#include <minix/config.h> 4715_ACEOF 4716rm -f conftest.$ac_objext 4717if { (ac_try="$ac_compile" 4718case "(($ac_try" in 4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4720 *) ac_try_echo=$ac_try;; 4721esac 4722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4723$as_echo "$ac_try_echo") >&5 4724 (eval "$ac_compile") 2>conftest.er1 4725 ac_status=$? 4726 grep -v '^ *+' conftest.er1 >conftest.err 4727 rm -f conftest.er1 4728 cat conftest.err >&5 4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); } && { 4731 test -z "$ac_c_werror_flag" || 4732 test ! -s conftest.err 4733 } && test -s conftest.$ac_objext; then 4734 ac_header_compiler=yes 4735else 4736 $as_echo "$as_me: failed program was:" >&5 4737sed 's/^/| /' conftest.$ac_ext >&5 4738 4739 ac_header_compiler=no 4740fi 4741 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4743{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4744$as_echo "$ac_header_compiler" >&6; } 4745 4746# Is the header present? 4747{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4748$as_echo_n "checking minix/config.h presence... " >&6; } 4749cat >conftest.$ac_ext <<_ACEOF 4750/* confdefs.h. */ 4751_ACEOF 4752cat confdefs.h >>conftest.$ac_ext 4753cat >>conftest.$ac_ext <<_ACEOF 4754/* end confdefs.h. */ 4755#include <minix/config.h> 4756_ACEOF 4757if { (ac_try="$ac_cpp conftest.$ac_ext" 4758case "(($ac_try" in 4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4760 *) ac_try_echo=$ac_try;; 4761esac 4762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4763$as_echo "$ac_try_echo") >&5 4764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4765 ac_status=$? 4766 grep -v '^ *+' conftest.er1 >conftest.err 4767 rm -f conftest.er1 4768 cat conftest.err >&5 4769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4770 (exit $ac_status); } >/dev/null && { 4771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4772 test ! -s conftest.err 4773 }; then 4774 ac_header_preproc=yes 4775else 4776 $as_echo "$as_me: failed program was:" >&5 4777sed 's/^/| /' conftest.$ac_ext >&5 4778 4779 ac_header_preproc=no 4780fi 4781 4782rm -f conftest.err conftest.$ac_ext 4783{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4784$as_echo "$ac_header_preproc" >&6; } 4785 4786# So? What about this header? 4787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4788 yes:no: ) 4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4790$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4792$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4793 ac_header_preproc=yes 4794 ;; 4795 no:yes:* ) 4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4797$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4799$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4801$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4802 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4803$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4804 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4805$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4806 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4807$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4808 ( cat <<\_ASBOX 4809## ------------------------------------ ## 4810## Report this to bug-gnu-utils@gnu.org ## 4811## ------------------------------------ ## 4812_ASBOX 4813 ) | sed "s/^/$as_me: WARNING: /" >&2 4814 ;; 4815esac 4816{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4817$as_echo_n "checking for minix/config.h... " >&6; } 4818if test "${ac_cv_header_minix_config_h+set}" = set; then 4819 $as_echo_n "(cached) " >&6 4820else 4821 ac_cv_header_minix_config_h=$ac_header_preproc 4822fi 4823{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4824$as_echo "$ac_cv_header_minix_config_h" >&6; } 4825 4826fi 4827if test "x$ac_cv_header_minix_config_h" = x""yes; then 4828 MINIX=yes 4829else 4830 MINIX= 4831fi 4832 4833 4834 if test "$MINIX" = yes; then 4835 4836cat >>confdefs.h <<\_ACEOF 4837#define _POSIX_SOURCE 1 4838_ACEOF 4839 4840 4841cat >>confdefs.h <<\_ACEOF 4842#define _POSIX_1_SOURCE 2 4843_ACEOF 4844 4845 4846cat >>confdefs.h <<\_ACEOF 4847#define _MINIX 1 4848_ACEOF 4849 4850 fi 4851 4852 case "$host_os" in 4853 hpux*) 4854 4855cat >>confdefs.h <<\_ACEOF 4856#define _XOPEN_SOURCE 500 4857_ACEOF 4858 4859 ;; 4860 esac 4861 4862 4863 4864 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 4865$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4866if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 4867 $as_echo_n "(cached) " >&6 4868else 4869 cat >conftest.$ac_ext <<_ACEOF 4870/* confdefs.h. */ 4871_ACEOF 4872cat confdefs.h >>conftest.$ac_ext 4873cat >>conftest.$ac_ext <<_ACEOF 4874/* end confdefs.h. */ 4875 4876# define __EXTENSIONS__ 1 4877 $ac_includes_default 4878int 4879main () 4880{ 4881 4882 ; 4883 return 0; 4884} 4885_ACEOF 4886rm -f conftest.$ac_objext 4887if { (ac_try="$ac_compile" 4888case "(($ac_try" in 4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4890 *) ac_try_echo=$ac_try;; 4891esac 4892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4893$as_echo "$ac_try_echo") >&5 4894 (eval "$ac_compile") 2>conftest.er1 4895 ac_status=$? 4896 grep -v '^ *+' conftest.er1 >conftest.err 4897 rm -f conftest.er1 4898 cat conftest.err >&5 4899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); } && { 4901 test -z "$ac_c_werror_flag" || 4902 test ! -s conftest.err 4903 } && test -s conftest.$ac_objext; then 4904 ac_cv_safe_to_define___extensions__=yes 4905else 4906 $as_echo "$as_me: failed program was:" >&5 4907sed 's/^/| /' conftest.$ac_ext >&5 4908 4909 ac_cv_safe_to_define___extensions__=no 4910fi 4911 4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4913fi 4914{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4915$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4916 test $ac_cv_safe_to_define___extensions__ = yes && 4917 cat >>confdefs.h <<\_ACEOF 4918#define __EXTENSIONS__ 1 4919_ACEOF 4920 4921 cat >>confdefs.h <<\_ACEOF 4922#define _ALL_SOURCE 1 4923_ACEOF 4924 4925 cat >>confdefs.h <<\_ACEOF 4926#define _GNU_SOURCE 1 4927_ACEOF 4928 4929 cat >>confdefs.h <<\_ACEOF 4930#define _POSIX_PTHREAD_SEMANTICS 1 4931_ACEOF 4932 4933 cat >>confdefs.h <<\_ACEOF 4934#define _TANDEM_SOURCE 1 4935_ACEOF 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956{ $as_echo "$as_me:$LINENO: checking for inline" >&5 4957$as_echo_n "checking for inline... " >&6; } 4958if test "${ac_cv_c_inline+set}" = set; then 4959 $as_echo_n "(cached) " >&6 4960else 4961 ac_cv_c_inline=no 4962for ac_kw in inline __inline__ __inline; do 4963 cat >conftest.$ac_ext <<_ACEOF 4964/* confdefs.h. */ 4965_ACEOF 4966cat confdefs.h >>conftest.$ac_ext 4967cat >>conftest.$ac_ext <<_ACEOF 4968/* end confdefs.h. */ 4969#ifndef __cplusplus 4970typedef int foo_t; 4971static $ac_kw foo_t static_foo () {return 0; } 4972$ac_kw foo_t foo () {return 0; } 4973#endif 4974 4975_ACEOF 4976rm -f conftest.$ac_objext 4977if { (ac_try="$ac_compile" 4978case "(($ac_try" in 4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4980 *) ac_try_echo=$ac_try;; 4981esac 4982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4983$as_echo "$ac_try_echo") >&5 4984 (eval "$ac_compile") 2>conftest.er1 4985 ac_status=$? 4986 grep -v '^ *+' conftest.er1 >conftest.err 4987 rm -f conftest.er1 4988 cat conftest.err >&5 4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 (exit $ac_status); } && { 4991 test -z "$ac_c_werror_flag" || 4992 test ! -s conftest.err 4993 } && test -s conftest.$ac_objext; then 4994 ac_cv_c_inline=$ac_kw 4995else 4996 $as_echo "$as_me: failed program was:" >&5 4997sed 's/^/| /' conftest.$ac_ext >&5 4998 4999 5000fi 5001 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003 test "$ac_cv_c_inline" != no && break 5004done 5005 5006fi 5007{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5008$as_echo "$ac_cv_c_inline" >&6; } 5009 5010 5011case $ac_cv_c_inline in 5012 inline | yes) ;; 5013 *) 5014 case $ac_cv_c_inline in 5015 no) ac_val=;; 5016 *) ac_val=$ac_cv_c_inline;; 5017 esac 5018 cat >>confdefs.h <<_ACEOF 5019#ifndef __cplusplus 5020#define inline $ac_val 5021#endif 5022_ACEOF 5023 ;; 5024esac 5025 5026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5027# for constant arguments. Useless! 5028{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 5029$as_echo_n "checking for working alloca.h... " >&6; } 5030if test "${ac_cv_working_alloca_h+set}" = set; then 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat >conftest.$ac_ext <<_ACEOF 5034/* confdefs.h. */ 5035_ACEOF 5036cat confdefs.h >>conftest.$ac_ext 5037cat >>conftest.$ac_ext <<_ACEOF 5038/* end confdefs.h. */ 5039#include <alloca.h> 5040int 5041main () 5042{ 5043char *p = (char *) alloca (2 * sizeof (int)); 5044 if (p) return 0; 5045 ; 5046 return 0; 5047} 5048_ACEOF 5049rm -f conftest.$ac_objext conftest$ac_exeext 5050if { (ac_try="$ac_link" 5051case "(($ac_try" in 5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5053 *) ac_try_echo=$ac_try;; 5054esac 5055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5056$as_echo "$ac_try_echo") >&5 5057 (eval "$ac_link") 2>conftest.er1 5058 ac_status=$? 5059 grep -v '^ *+' conftest.er1 >conftest.err 5060 rm -f conftest.er1 5061 cat conftest.err >&5 5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); } && { 5064 test -z "$ac_c_werror_flag" || 5065 test ! -s conftest.err 5066 } && test -s conftest$ac_exeext && { 5067 test "$cross_compiling" = yes || 5068 $as_test_x conftest$ac_exeext 5069 }; then 5070 ac_cv_working_alloca_h=yes 5071else 5072 $as_echo "$as_me: failed program was:" >&5 5073sed 's/^/| /' conftest.$ac_ext >&5 5074 5075 ac_cv_working_alloca_h=no 5076fi 5077 5078rm -rf conftest.dSYM 5079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5080 conftest$ac_exeext conftest.$ac_ext 5081fi 5082{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5083$as_echo "$ac_cv_working_alloca_h" >&6; } 5084if test $ac_cv_working_alloca_h = yes; then 5085 5086cat >>confdefs.h <<\_ACEOF 5087#define HAVE_ALLOCA_H 1 5088_ACEOF 5089 5090fi 5091 5092{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 5093$as_echo_n "checking for alloca... " >&6; } 5094if test "${ac_cv_func_alloca_works+set}" = set; then 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat >conftest.$ac_ext <<_ACEOF 5098/* confdefs.h. */ 5099_ACEOF 5100cat confdefs.h >>conftest.$ac_ext 5101cat >>conftest.$ac_ext <<_ACEOF 5102/* end confdefs.h. */ 5103#ifdef __GNUC__ 5104# define alloca __builtin_alloca 5105#else 5106# ifdef _MSC_VER 5107# include <malloc.h> 5108# define alloca _alloca 5109# else 5110# ifdef HAVE_ALLOCA_H 5111# include <alloca.h> 5112# else 5113# ifdef _AIX 5114 #pragma alloca 5115# else 5116# ifndef alloca /* predefined by HP cc +Olibcalls */ 5117char *alloca (); 5118# endif 5119# endif 5120# endif 5121# endif 5122#endif 5123 5124int 5125main () 5126{ 5127char *p = (char *) alloca (1); 5128 if (p) return 0; 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133rm -f conftest.$ac_objext conftest$ac_exeext 5134if { (ac_try="$ac_link" 5135case "(($ac_try" in 5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5137 *) ac_try_echo=$ac_try;; 5138esac 5139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5140$as_echo "$ac_try_echo") >&5 5141 (eval "$ac_link") 2>conftest.er1 5142 ac_status=$? 5143 grep -v '^ *+' conftest.er1 >conftest.err 5144 rm -f conftest.er1 5145 cat conftest.err >&5 5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); } && { 5148 test -z "$ac_c_werror_flag" || 5149 test ! -s conftest.err 5150 } && test -s conftest$ac_exeext && { 5151 test "$cross_compiling" = yes || 5152 $as_test_x conftest$ac_exeext 5153 }; then 5154 ac_cv_func_alloca_works=yes 5155else 5156 $as_echo "$as_me: failed program was:" >&5 5157sed 's/^/| /' conftest.$ac_ext >&5 5158 5159 ac_cv_func_alloca_works=no 5160fi 5161 5162rm -rf conftest.dSYM 5163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5164 conftest$ac_exeext conftest.$ac_ext 5165fi 5166{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5167$as_echo "$ac_cv_func_alloca_works" >&6; } 5168 5169if test $ac_cv_func_alloca_works = yes; then 5170 5171cat >>confdefs.h <<\_ACEOF 5172#define HAVE_ALLOCA 1 5173_ACEOF 5174 5175else 5176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5177# that cause trouble. Some versions do not even contain alloca or 5178# contain a buggy version. If you still want to use their alloca, 5179# use ar to extract alloca.o from them instead of compiling alloca.c. 5180 5181 5182 5183 5184 5185ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5186 5187cat >>confdefs.h <<\_ACEOF 5188#define C_ALLOCA 1 5189_ACEOF 5190 5191 5192{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5193$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5194if test "${ac_cv_os_cray+set}" = set; then 5195 $as_echo_n "(cached) " >&6 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#if defined CRAY && ! defined CRAY2 5204webecray 5205#else 5206wenotbecray 5207#endif 5208 5209_ACEOF 5210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5211 $EGREP "webecray" >/dev/null 2>&1; then 5212 ac_cv_os_cray=yes 5213else 5214 ac_cv_os_cray=no 5215fi 5216rm -f conftest* 5217 5218fi 5219{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5220$as_echo "$ac_cv_os_cray" >&6; } 5221if test $ac_cv_os_cray = yes; then 5222 for ac_func in _getb67 GETB67 getb67; do 5223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5224{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5225$as_echo_n "checking for $ac_func... " >&6; } 5226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5227 $as_echo_n "(cached) " >&6 5228else 5229 cat >conftest.$ac_ext <<_ACEOF 5230/* confdefs.h. */ 5231_ACEOF 5232cat confdefs.h >>conftest.$ac_ext 5233cat >>conftest.$ac_ext <<_ACEOF 5234/* end confdefs.h. */ 5235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5236 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5237#define $ac_func innocuous_$ac_func 5238 5239/* System header to define __stub macros and hopefully few prototypes, 5240 which can conflict with char $ac_func (); below. 5241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5242 <limits.h> exists even on freestanding compilers. */ 5243 5244#ifdef __STDC__ 5245# include <limits.h> 5246#else 5247# include <assert.h> 5248#endif 5249 5250#undef $ac_func 5251 5252/* Override any GCC internal prototype to avoid an error. 5253 Use char because int might match the return type of a GCC 5254 builtin and then its argument prototype would still apply. */ 5255#ifdef __cplusplus 5256extern "C" 5257#endif 5258char $ac_func (); 5259/* The GNU C library defines this for functions which it implements 5260 to always fail with ENOSYS. Some functions are actually named 5261 something starting with __ and the normal name is an alias. */ 5262#if defined __stub_$ac_func || defined __stub___$ac_func 5263choke me 5264#endif 5265 5266int 5267main () 5268{ 5269return $ac_func (); 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274rm -f conftest.$ac_objext conftest$ac_exeext 5275if { (ac_try="$ac_link" 5276case "(($ac_try" in 5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5278 *) ac_try_echo=$ac_try;; 5279esac 5280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5281$as_echo "$ac_try_echo") >&5 5282 (eval "$ac_link") 2>conftest.er1 5283 ac_status=$? 5284 grep -v '^ *+' conftest.er1 >conftest.err 5285 rm -f conftest.er1 5286 cat conftest.err >&5 5287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); } && { 5289 test -z "$ac_c_werror_flag" || 5290 test ! -s conftest.err 5291 } && test -s conftest$ac_exeext && { 5292 test "$cross_compiling" = yes || 5293 $as_test_x conftest$ac_exeext 5294 }; then 5295 eval "$as_ac_var=yes" 5296else 5297 $as_echo "$as_me: failed program was:" >&5 5298sed 's/^/| /' conftest.$ac_ext >&5 5299 5300 eval "$as_ac_var=no" 5301fi 5302 5303rm -rf conftest.dSYM 5304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5305 conftest$ac_exeext conftest.$ac_ext 5306fi 5307ac_res=`eval 'as_val=${'$as_ac_var'} 5308 $as_echo "$as_val"'` 5309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5310$as_echo "$ac_res" >&6; } 5311as_val=`eval 'as_val=${'$as_ac_var'} 5312 $as_echo "$as_val"'` 5313 if test "x$as_val" = x""yes; then 5314 5315cat >>confdefs.h <<_ACEOF 5316#define CRAY_STACKSEG_END $ac_func 5317_ACEOF 5318 5319 break 5320fi 5321 5322 done 5323fi 5324 5325{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5326$as_echo_n "checking stack direction for C alloca... " >&6; } 5327if test "${ac_cv_c_stack_direction+set}" = set; then 5328 $as_echo_n "(cached) " >&6 5329else 5330 if test "$cross_compiling" = yes; then 5331 ac_cv_c_stack_direction=0 5332else 5333 cat >conftest.$ac_ext <<_ACEOF 5334/* confdefs.h. */ 5335_ACEOF 5336cat confdefs.h >>conftest.$ac_ext 5337cat >>conftest.$ac_ext <<_ACEOF 5338/* end confdefs.h. */ 5339$ac_includes_default 5340int 5341find_stack_direction () 5342{ 5343 static char *addr = 0; 5344 auto char dummy; 5345 if (addr == 0) 5346 { 5347 addr = &dummy; 5348 return find_stack_direction (); 5349 } 5350 else 5351 return (&dummy > addr) ? 1 : -1; 5352} 5353 5354int 5355main () 5356{ 5357 return find_stack_direction () < 0; 5358} 5359_ACEOF 5360rm -f conftest$ac_exeext 5361if { (ac_try="$ac_link" 5362case "(($ac_try" in 5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5364 *) ac_try_echo=$ac_try;; 5365esac 5366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5367$as_echo "$ac_try_echo") >&5 5368 (eval "$ac_link") 2>&5 5369 ac_status=$? 5370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5372 { (case "(($ac_try" in 5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5374 *) ac_try_echo=$ac_try;; 5375esac 5376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5377$as_echo "$ac_try_echo") >&5 5378 (eval "$ac_try") 2>&5 5379 ac_status=$? 5380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); }; }; then 5382 ac_cv_c_stack_direction=1 5383else 5384 $as_echo "$as_me: program exited with status $ac_status" >&5 5385$as_echo "$as_me: failed program was:" >&5 5386sed 's/^/| /' conftest.$ac_ext >&5 5387 5388( exit $ac_status ) 5389ac_cv_c_stack_direction=-1 5390fi 5391rm -rf conftest.dSYM 5392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5393fi 5394 5395 5396fi 5397{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5398$as_echo "$ac_cv_c_stack_direction" >&6; } 5399 5400cat >>confdefs.h <<_ACEOF 5401#define STACK_DIRECTION $ac_cv_c_stack_direction 5402_ACEOF 5403 5404 5405fi 5406 5407 5408 GNULIB_BTOWC=0; 5409 GNULIB_WCTOB=0; 5410 GNULIB_MBSINIT=0; 5411 GNULIB_MBRTOWC=0; 5412 GNULIB_MBRLEN=0; 5413 GNULIB_MBSRTOWCS=0; 5414 GNULIB_MBSNRTOWCS=0; 5415 GNULIB_WCRTOMB=0; 5416 GNULIB_WCSRTOMBS=0; 5417 GNULIB_WCSNRTOMBS=0; 5418 GNULIB_WCWIDTH=0; 5419 HAVE_BTOWC=1; 5420 HAVE_MBSINIT=1; 5421 HAVE_MBRTOWC=1; 5422 HAVE_MBRLEN=1; 5423 HAVE_MBSRTOWCS=1; 5424 HAVE_MBSNRTOWCS=1; 5425 HAVE_WCRTOMB=1; 5426 HAVE_WCSRTOMBS=1; 5427 HAVE_WCSNRTOMBS=1; 5428 HAVE_DECL_WCTOB=1; 5429 HAVE_DECL_WCWIDTH=1; 5430 REPLACE_MBSTATE_T=0; 5431 REPLACE_BTOWC=0; 5432 REPLACE_WCTOB=0; 5433 REPLACE_MBSINIT=0; 5434 REPLACE_MBRTOWC=0; 5435 REPLACE_MBRLEN=0; 5436 REPLACE_MBSRTOWCS=0; 5437 REPLACE_MBSNRTOWCS=0; 5438 REPLACE_WCRTOMB=0; 5439 REPLACE_WCSRTOMBS=0; 5440 REPLACE_WCSNRTOMBS=0; 5441 REPLACE_WCWIDTH=0; 5442 WCHAR_H=''; 5443 5444 5445 5446 5447 5448for ac_func in $ac_func_list 5449do 5450as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5451{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5452$as_echo_n "checking for $ac_func... " >&6; } 5453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat >conftest.$ac_ext <<_ACEOF 5457/* confdefs.h. */ 5458_ACEOF 5459cat confdefs.h >>conftest.$ac_ext 5460cat >>conftest.$ac_ext <<_ACEOF 5461/* end confdefs.h. */ 5462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5463 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5464#define $ac_func innocuous_$ac_func 5465 5466/* System header to define __stub macros and hopefully few prototypes, 5467 which can conflict with char $ac_func (); below. 5468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5469 <limits.h> exists even on freestanding compilers. */ 5470 5471#ifdef __STDC__ 5472# include <limits.h> 5473#else 5474# include <assert.h> 5475#endif 5476 5477#undef $ac_func 5478 5479/* Override any GCC internal prototype to avoid an error. 5480 Use char because int might match the return type of a GCC 5481 builtin and then its argument prototype would still apply. */ 5482#ifdef __cplusplus 5483extern "C" 5484#endif 5485char $ac_func (); 5486/* The GNU C library defines this for functions which it implements 5487 to always fail with ENOSYS. Some functions are actually named 5488 something starting with __ and the normal name is an alias. */ 5489#if defined __stub_$ac_func || defined __stub___$ac_func 5490choke me 5491#endif 5492 5493int 5494main () 5495{ 5496return $ac_func (); 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501rm -f conftest.$ac_objext conftest$ac_exeext 5502if { (ac_try="$ac_link" 5503case "(($ac_try" in 5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5505 *) ac_try_echo=$ac_try;; 5506esac 5507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5508$as_echo "$ac_try_echo") >&5 5509 (eval "$ac_link") 2>conftest.er1 5510 ac_status=$? 5511 grep -v '^ *+' conftest.er1 >conftest.err 5512 rm -f conftest.er1 5513 cat conftest.err >&5 5514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5515 (exit $ac_status); } && { 5516 test -z "$ac_c_werror_flag" || 5517 test ! -s conftest.err 5518 } && test -s conftest$ac_exeext && { 5519 test "$cross_compiling" = yes || 5520 $as_test_x conftest$ac_exeext 5521 }; then 5522 eval "$as_ac_var=yes" 5523else 5524 $as_echo "$as_me: failed program was:" >&5 5525sed 's/^/| /' conftest.$ac_ext >&5 5526 5527 eval "$as_ac_var=no" 5528fi 5529 5530rm -rf conftest.dSYM 5531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5532 conftest$ac_exeext conftest.$ac_ext 5533fi 5534ac_res=`eval 'as_val=${'$as_ac_var'} 5535 $as_echo "$as_val"'` 5536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5537$as_echo "$ac_res" >&6; } 5538as_val=`eval 'as_val=${'$as_ac_var'} 5539 $as_echo "$as_val"'` 5540 if test "x$as_val" = x""yes; then 5541 cat >>confdefs.h <<_ACEOF 5542#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5543_ACEOF 5544 5545fi 5546done 5547 5548 5549 5550 5551 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 5552$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 5553if test "${am_cv_langinfo_codeset+set}" = set; then 5554 $as_echo_n "(cached) " >&6 5555else 5556 cat >conftest.$ac_ext <<_ACEOF 5557/* confdefs.h. */ 5558_ACEOF 5559cat confdefs.h >>conftest.$ac_ext 5560cat >>conftest.$ac_ext <<_ACEOF 5561/* end confdefs.h. */ 5562#include <langinfo.h> 5563int 5564main () 5565{ 5566char* cs = nl_langinfo(CODESET); return !cs; 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571rm -f conftest.$ac_objext conftest$ac_exeext 5572if { (ac_try="$ac_link" 5573case "(($ac_try" in 5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5575 *) ac_try_echo=$ac_try;; 5576esac 5577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5578$as_echo "$ac_try_echo") >&5 5579 (eval "$ac_link") 2>conftest.er1 5580 ac_status=$? 5581 grep -v '^ *+' conftest.er1 >conftest.err 5582 rm -f conftest.er1 5583 cat conftest.err >&5 5584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5585 (exit $ac_status); } && { 5586 test -z "$ac_c_werror_flag" || 5587 test ! -s conftest.err 5588 } && test -s conftest$ac_exeext && { 5589 test "$cross_compiling" = yes || 5590 $as_test_x conftest$ac_exeext 5591 }; then 5592 am_cv_langinfo_codeset=yes 5593else 5594 $as_echo "$as_me: failed program was:" >&5 5595sed 's/^/| /' conftest.$ac_ext >&5 5596 5597 am_cv_langinfo_codeset=no 5598fi 5599 5600rm -rf conftest.dSYM 5601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5602 conftest$ac_exeext conftest.$ac_ext 5603 5604fi 5605{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 5606$as_echo "$am_cv_langinfo_codeset" >&6; } 5607 if test $am_cv_langinfo_codeset = yes; then 5608 5609cat >>confdefs.h <<\_ACEOF 5610#define HAVE_LANGINFO_CODESET 1 5611_ACEOF 5612 5613 fi 5614 5615 5616 5617 5618 { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5 5619$as_echo_n "checking for a traditional french locale... " >&6; } 5620if test "${gt_cv_locale_fr+set}" = set; then 5621 $as_echo_n "(cached) " >&6 5622else 5623 5624 cat >conftest.$ac_ext <<_ACEOF 5625/* confdefs.h. */ 5626_ACEOF 5627cat confdefs.h >>conftest.$ac_ext 5628cat >>conftest.$ac_ext <<_ACEOF 5629/* end confdefs.h. */ 5630 5631#include <locale.h> 5632#include <time.h> 5633#if HAVE_LANGINFO_CODESET 5634# include <langinfo.h> 5635#endif 5636#include <stdlib.h> 5637#include <string.h> 5638struct tm t; 5639char buf[16]; 5640int main () { 5641 /* Check whether the given locale name is recognized by the system. */ 5642 if (setlocale (LC_ALL, "") == NULL) return 1; 5643 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 5644 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 5645 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 5646 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 5647 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 5648 some unit tests fail. */ 5649#if HAVE_LANGINFO_CODESET 5650 { 5651 const char *cs = nl_langinfo (CODESET); 5652 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 5653 return 1; 5654 } 5655#endif 5656#ifdef __CYGWIN__ 5657 /* On Cygwin, avoid locale names without encoding suffix, because the 5658 locale_charset() function relies on the encoding suffix. Note that 5659 LC_ALL is set on the command line. */ 5660 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 5661#endif 5662 /* Check whether in the abbreviation of the second month, the second 5663 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 5664 one byte long. This excludes the UTF-8 encoding. */ 5665 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 5666 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 5667 /* Check whether the decimal separator is a comma. 5668 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 5669 are nl_langinfo(RADIXCHAR) are both ".". */ 5670 if (localeconv () ->decimal_point[0] != ',') return 1; 5671 return 0; 5672} 5673 5674_ACEOF 5675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5676 (eval $ac_link) 2>&5 5677 ac_status=$? 5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5679 (exit $ac_status); } && test -s conftest$ac_exeext; then 5680 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 5681 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 5682 # configure script would override the LC_ALL setting. Likewise for 5683 # LC_CTYPE, which is also set at the beginning of the configure script. 5684 # Test for the usual locale name. 5685 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 5686 gt_cv_locale_fr=fr_FR 5687 else 5688 # Test for the locale name with explicit encoding suffix. 5689 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 5690 gt_cv_locale_fr=fr_FR.ISO-8859-1 5691 else 5692 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 5693 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 5694 gt_cv_locale_fr=fr_FR.ISO8859-1 5695 else 5696 # Test for the HP-UX locale name. 5697 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 5698 gt_cv_locale_fr=fr_FR.iso88591 5699 else 5700 # Test for the Solaris 7 locale name. 5701 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 5702 gt_cv_locale_fr=fr 5703 else 5704 # None found. 5705 gt_cv_locale_fr=none 5706 fi 5707 fi 5708 fi 5709 fi 5710 fi 5711 fi 5712 rm -fr conftest* 5713 5714fi 5715{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5 5716$as_echo "$gt_cv_locale_fr" >&6; } 5717 LOCALE_FR=$gt_cv_locale_fr 5718 5719 5720 5721 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5 5722$as_echo_n "checking whether system is Windows or MSDOS... " >&6; } 5723if test "${ac_cv_win_or_dos+set}" = set; then 5724 $as_echo_n "(cached) " >&6 5725else 5726 5727 cat >conftest.$ac_ext <<_ACEOF 5728/* confdefs.h. */ 5729_ACEOF 5730cat confdefs.h >>conftest.$ac_ext 5731cat >>conftest.$ac_ext <<_ACEOF 5732/* end confdefs.h. */ 5733 5734int 5735main () 5736{ 5737#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ 5738neither MSDOS nor Windows 5739#endif 5740 ; 5741 return 0; 5742} 5743_ACEOF 5744rm -f conftest.$ac_objext 5745if { (ac_try="$ac_compile" 5746case "(($ac_try" in 5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5748 *) ac_try_echo=$ac_try;; 5749esac 5750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5751$as_echo "$ac_try_echo") >&5 5752 (eval "$ac_compile") 2>conftest.er1 5753 ac_status=$? 5754 grep -v '^ *+' conftest.er1 >conftest.err 5755 rm -f conftest.er1 5756 cat conftest.err >&5 5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); } && { 5759 test -z "$ac_c_werror_flag" || 5760 test ! -s conftest.err 5761 } && test -s conftest.$ac_objext; then 5762 ac_cv_win_or_dos=yes 5763else 5764 $as_echo "$as_me: failed program was:" >&5 5765sed 's/^/| /' conftest.$ac_ext >&5 5766 5767 ac_cv_win_or_dos=no 5768fi 5769 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771 5772fi 5773{ $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5 5774$as_echo "$ac_cv_win_or_dos" >&6; } 5775 5776 if test x"$ac_cv_win_or_dos" = xyes; then 5777 ac_fs_accepts_drive_letter_prefix=1 5778 ac_fs_backslash_is_file_name_separator=1 5779 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5 5780$as_echo_n "checking whether drive letter can start relative path... " >&6; } 5781if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then 5782 $as_echo_n "(cached) " >&6 5783else 5784 5785 cat >conftest.$ac_ext <<_ACEOF 5786/* confdefs.h. */ 5787_ACEOF 5788cat confdefs.h >>conftest.$ac_ext 5789cat >>conftest.$ac_ext <<_ACEOF 5790/* end confdefs.h. */ 5791 5792int 5793main () 5794{ 5795#if defined __CYGWIN__ 5796drive letters are always absolute 5797#endif 5798 ; 5799 return 0; 5800} 5801_ACEOF 5802rm -f conftest.$ac_objext 5803if { (ac_try="$ac_compile" 5804case "(($ac_try" in 5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5806 *) ac_try_echo=$ac_try;; 5807esac 5808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5809$as_echo "$ac_try_echo") >&5 5810 (eval "$ac_compile") 2>conftest.er1 5811 ac_status=$? 5812 grep -v '^ *+' conftest.er1 >conftest.err 5813 rm -f conftest.er1 5814 cat conftest.err >&5 5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5816 (exit $ac_status); } && { 5817 test -z "$ac_c_werror_flag" || 5818 test ! -s conftest.err 5819 } && test -s conftest.$ac_objext; then 5820 ac_cv_drive_letter_can_be_relative=yes 5821else 5822 $as_echo "$as_me: failed program was:" >&5 5823sed 's/^/| /' conftest.$ac_ext >&5 5824 5825 ac_cv_drive_letter_can_be_relative=no 5826fi 5827 5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5829 5830fi 5831{ $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5 5832$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; } 5833 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then 5834 ac_fs_drive_letter_can_be_relative=1 5835 else 5836 ac_fs_drive_letter_can_be_relative=0 5837 fi 5838 else 5839 ac_fs_accepts_drive_letter_prefix=0 5840 ac_fs_backslash_is_file_name_separator=0 5841 ac_fs_drive_letter_can_be_relative=0 5842 fi 5843 5844 5845cat >>confdefs.h <<_ACEOF 5846#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix 5847_ACEOF 5848 5849 5850 5851 5852 5853 5854cat >>confdefs.h <<_ACEOF 5855#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator 5856_ACEOF 5857 5858 5859 5860cat >>confdefs.h <<_ACEOF 5861#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative 5862_ACEOF 5863 5864 5865 5866 5867 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5 5868$as_echo_n "checking whether // is distinct from /... " >&6; } 5869if test "${gl_cv_double_slash_root+set}" = set; then 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test x"$cross_compiling" = xyes ; then 5873 # When cross-compiling, there is no way to tell whether // is special 5874 # short of a list of hosts. However, the only known hosts to date 5875 # that have a distinct // are Apollo DomainOS (too old to port to), 5876 # Cygwin, and z/OS. If anyone knows of another system for which // has 5877 # special semantics and is distinct from /, please report it to 5878 # <bug-gnulib@gnu.org>. 5879 case $host in 5880 *-cygwin | i370-ibm-openedition) 5881 gl_cv_double_slash_root=yes ;; 5882 *) 5883 # Be optimistic and assume that / and // are the same when we 5884 # don't know. 5885 gl_cv_double_slash_root='unknown, assuming no' ;; 5886 esac 5887 else 5888 set x `ls -di / // 2>/dev/null` 5889 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 5890 gl_cv_double_slash_root=no 5891 else 5892 gl_cv_double_slash_root=yes 5893 fi 5894 fi 5895fi 5896{ $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5 5897$as_echo "$gl_cv_double_slash_root" >&6; } 5898 if test "$gl_cv_double_slash_root" = yes; then 5899 5900cat >>confdefs.h <<\_ACEOF 5901#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1 5902_ACEOF 5903 5904 fi 5905 5906 5907 5908 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 5909$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 5910if test "${gl_cv_have_include_next+set}" = set; then 5911 $as_echo_n "(cached) " >&6 5912else 5913 rm -rf conftestd1a conftestd1b conftestd2 5914 mkdir conftestd1a conftestd1b conftestd2 5915 cat <<EOF > conftestd1a/conftest.h 5916#define DEFINED_IN_CONFTESTD1 5917#include_next <conftest.h> 5918#ifdef DEFINED_IN_CONFTESTD2 5919int foo; 5920#else 5921#error "include_next doesn't work" 5922#endif 5923EOF 5924 cat <<EOF > conftestd1b/conftest.h 5925#define DEFINED_IN_CONFTESTD1 5926#include <stdio.h> 5927#include_next <conftest.h> 5928#ifdef DEFINED_IN_CONFTESTD2 5929int foo; 5930#else 5931#error "include_next doesn't work" 5932#endif 5933EOF 5934 cat <<EOF > conftestd2/conftest.h 5935#ifndef DEFINED_IN_CONFTESTD1 5936#error "include_next test doesn't work" 5937#endif 5938#define DEFINED_IN_CONFTESTD2 5939EOF 5940 gl_save_CPPFLAGS="$CPPFLAGS" 5941 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 5942 cat >conftest.$ac_ext <<_ACEOF 5943#include <conftest.h> 5944_ACEOF 5945rm -f conftest.$ac_objext 5946if { (ac_try="$ac_compile" 5947case "(($ac_try" in 5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5949 *) ac_try_echo=$ac_try;; 5950esac 5951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5952$as_echo "$ac_try_echo") >&5 5953 (eval "$ac_compile") 2>conftest.er1 5954 ac_status=$? 5955 grep -v '^ *+' conftest.er1 >conftest.err 5956 rm -f conftest.er1 5957 cat conftest.err >&5 5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); } && { 5960 test -z "$ac_c_werror_flag" || 5961 test ! -s conftest.err 5962 } && test -s conftest.$ac_objext; then 5963 gl_cv_have_include_next=yes 5964else 5965 $as_echo "$as_me: failed program was:" >&5 5966sed 's/^/| /' conftest.$ac_ext >&5 5967 5968 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 5969 cat >conftest.$ac_ext <<_ACEOF 5970#include <conftest.h> 5971_ACEOF 5972rm -f conftest.$ac_objext 5973if { (ac_try="$ac_compile" 5974case "(($ac_try" in 5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5976 *) ac_try_echo=$ac_try;; 5977esac 5978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5979$as_echo "$ac_try_echo") >&5 5980 (eval "$ac_compile") 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } && { 5987 test -z "$ac_c_werror_flag" || 5988 test ! -s conftest.err 5989 } && test -s conftest.$ac_objext; then 5990 gl_cv_have_include_next=buggy 5991else 5992 $as_echo "$as_me: failed program was:" >&5 5993sed 's/^/| /' conftest.$ac_ext >&5 5994 5995 gl_cv_have_include_next=no 5996fi 5997 5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5999 6000fi 6001 6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6003 CPPFLAGS="$gl_save_CPPFLAGS" 6004 rm -rf conftestd1a conftestd1b conftestd2 6005 6006fi 6007{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 6008$as_echo "$gl_cv_have_include_next" >&6; } 6009 PRAGMA_SYSTEM_HEADER= 6010 if test $gl_cv_have_include_next = yes; then 6011 INCLUDE_NEXT=include_next 6012 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 6013 if test -n "$GCC"; then 6014 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 6015 fi 6016 else 6017 if test $gl_cv_have_include_next = buggy; then 6018 INCLUDE_NEXT=include 6019 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 6020 else 6021 INCLUDE_NEXT=include 6022 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 6023 fi 6024 fi 6025 6026 6027 6028 6029 6030 6031 6032 6033for ac_header in $ac_header_list 6034do 6035as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6038$as_echo_n "checking for $ac_header... " >&6; } 6039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6040 $as_echo_n "(cached) " >&6 6041fi 6042ac_res=`eval 'as_val=${'$as_ac_Header'} 6043 $as_echo "$as_val"'` 6044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6045$as_echo "$ac_res" >&6; } 6046else 6047 # Is the header compilable? 6048{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6049$as_echo_n "checking $ac_header usability... " >&6; } 6050cat >conftest.$ac_ext <<_ACEOF 6051/* confdefs.h. */ 6052_ACEOF 6053cat confdefs.h >>conftest.$ac_ext 6054cat >>conftest.$ac_ext <<_ACEOF 6055/* end confdefs.h. */ 6056$ac_includes_default 6057#include <$ac_header> 6058_ACEOF 6059rm -f conftest.$ac_objext 6060if { (ac_try="$ac_compile" 6061case "(($ac_try" in 6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6063 *) ac_try_echo=$ac_try;; 6064esac 6065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6066$as_echo "$ac_try_echo") >&5 6067 (eval "$ac_compile") 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } && { 6074 test -z "$ac_c_werror_flag" || 6075 test ! -s conftest.err 6076 } && test -s conftest.$ac_objext; then 6077 ac_header_compiler=yes 6078else 6079 $as_echo "$as_me: failed program was:" >&5 6080sed 's/^/| /' conftest.$ac_ext >&5 6081 6082 ac_header_compiler=no 6083fi 6084 6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6086{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6087$as_echo "$ac_header_compiler" >&6; } 6088 6089# Is the header present? 6090{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6091$as_echo_n "checking $ac_header presence... " >&6; } 6092cat >conftest.$ac_ext <<_ACEOF 6093/* confdefs.h. */ 6094_ACEOF 6095cat confdefs.h >>conftest.$ac_ext 6096cat >>conftest.$ac_ext <<_ACEOF 6097/* end confdefs.h. */ 6098#include <$ac_header> 6099_ACEOF 6100if { (ac_try="$ac_cpp conftest.$ac_ext" 6101case "(($ac_try" in 6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6103 *) ac_try_echo=$ac_try;; 6104esac 6105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6106$as_echo "$ac_try_echo") >&5 6107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6108 ac_status=$? 6109 grep -v '^ *+' conftest.er1 >conftest.err 6110 rm -f conftest.er1 6111 cat conftest.err >&5 6112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6113 (exit $ac_status); } >/dev/null && { 6114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6115 test ! -s conftest.err 6116 }; then 6117 ac_header_preproc=yes 6118else 6119 $as_echo "$as_me: failed program was:" >&5 6120sed 's/^/| /' conftest.$ac_ext >&5 6121 6122 ac_header_preproc=no 6123fi 6124 6125rm -f conftest.err conftest.$ac_ext 6126{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6127$as_echo "$ac_header_preproc" >&6; } 6128 6129# So? What about this header? 6130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6131 yes:no: ) 6132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6133$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6135$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6136 ac_header_preproc=yes 6137 ;; 6138 no:yes:* ) 6139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6140$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6142$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6144$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6146$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6148$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6150$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6151 ( cat <<\_ASBOX 6152## ------------------------------------ ## 6153## Report this to bug-gnu-utils@gnu.org ## 6154## ------------------------------------ ## 6155_ASBOX 6156 ) | sed "s/^/$as_me: WARNING: /" >&2 6157 ;; 6158esac 6159{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6160$as_echo_n "checking for $ac_header... " >&6; } 6161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6162 $as_echo_n "(cached) " >&6 6163else 6164 eval "$as_ac_Header=\$ac_header_preproc" 6165fi 6166ac_res=`eval 'as_val=${'$as_ac_Header'} 6167 $as_echo "$as_val"'` 6168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6169$as_echo "$ac_res" >&6; } 6170 6171fi 6172as_val=`eval 'as_val=${'$as_ac_Header'} 6173 $as_echo "$as_val"'` 6174 if test "x$as_val" = x""yes; then 6175 cat >>confdefs.h <<_ACEOF 6176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6177_ACEOF 6178 6179fi 6180 6181done 6182 6183 6184 6185 6186 6187 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5 6188$as_echo_n "checking for complete errno.h... " >&6; } 6189if test "${gl_cv_header_errno_h_complete+set}" = set; then 6190 $as_echo_n "(cached) " >&6 6191else 6192 6193 cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199 6200#include <errno.h> 6201#if !defined ENOMSG 6202booboo 6203#endif 6204#if !defined EIDRM 6205booboo 6206#endif 6207#if !defined ENOLINK 6208booboo 6209#endif 6210#if !defined EPROTO 6211booboo 6212#endif 6213#if !defined EMULTIHOP 6214booboo 6215#endif 6216#if !defined EBADMSG 6217booboo 6218#endif 6219#if !defined EOVERFLOW 6220booboo 6221#endif 6222#if !defined ENOTSUP 6223booboo 6224#endif 6225#if !defined ESTALE 6226booboo 6227#endif 6228#if !defined ECANCELED 6229booboo 6230#endif 6231 6232_ACEOF 6233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6234 $EGREP "booboo" >/dev/null 2>&1; then 6235 gl_cv_header_errno_h_complete=no 6236else 6237 gl_cv_header_errno_h_complete=yes 6238fi 6239rm -f conftest* 6240 6241 6242fi 6243{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5 6244$as_echo "$gl_cv_header_errno_h_complete" >&6; } 6245 if test $gl_cv_header_errno_h_complete = yes; then 6246 ERRNO_H='' 6247 else 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 if test $gl_cv_have_include_next = yes; then 6260 gl_cv_next_errno_h='<'errno.h'>' 6261 else 6262 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5 6263$as_echo_n "checking absolute name of <errno.h>... " >&6; } 6264if test "${gl_cv_next_errno_h+set}" = set; then 6265 $as_echo_n "(cached) " >&6 6266else 6267 6268 if test $ac_cv_header_errno_h = yes; then 6269 cat >conftest.$ac_ext <<_ACEOF 6270/* confdefs.h. */ 6271_ACEOF 6272cat confdefs.h >>conftest.$ac_ext 6273cat >>conftest.$ac_ext <<_ACEOF 6274/* end confdefs.h. */ 6275#include <errno.h> 6276 6277_ACEOF 6278 case "$host_os" in 6279 aix*) gl_absname_cpp="$ac_cpp -C" ;; 6280 *) gl_absname_cpp="$ac_cpp" ;; 6281 esac 6282 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 6283 sed -n '\#/errno.h#{ 6284 s#.*"\(.*/errno.h\)".*#\1# 6285 s#^/[^/]#//&# 6286 p 6287 q 6288 }'`'"' 6289 else 6290 gl_cv_next_errno_h='<'errno.h'>' 6291 fi 6292 6293fi 6294{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5 6295$as_echo "$gl_cv_next_errno_h" >&6; } 6296 fi 6297 NEXT_ERRNO_H=$gl_cv_next_errno_h 6298 6299 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 6300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 6301 gl_next_as_first_directive='<'errno.h'>' 6302 else 6303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 6304 gl_next_as_first_directive=$gl_cv_next_errno_h 6305 fi 6306 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 6307 6308 6309 6310 ERRNO_H='errno.h' 6311 fi 6312 6313 6314 if test -n "$ERRNO_H"; then 6315 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5 6316$as_echo_n "checking for EMULTIHOP value... " >&6; } 6317if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then 6318 $as_echo_n "(cached) " >&6 6319else 6320 6321 cat >conftest.$ac_ext <<_ACEOF 6322/* confdefs.h. */ 6323_ACEOF 6324cat confdefs.h >>conftest.$ac_ext 6325cat >>conftest.$ac_ext <<_ACEOF 6326/* end confdefs.h. */ 6327 6328#include <errno.h> 6329#ifdef EMULTIHOP 6330yes 6331#endif 6332 6333_ACEOF 6334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6335 $EGREP "yes" >/dev/null 2>&1; then 6336 gl_cv_header_errno_h_EMULTIHOP=yes 6337else 6338 gl_cv_header_errno_h_EMULTIHOP=no 6339fi 6340rm -f conftest* 6341 6342 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 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 6350#define _XOPEN_SOURCE_EXTENDED 1 6351#include <errno.h> 6352#ifdef EMULTIHOP 6353yes 6354#endif 6355 6356_ACEOF 6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6358 $EGREP "yes" >/dev/null 2>&1; then 6359 gl_cv_header_errno_h_EMULTIHOP=hidden 6360fi 6361rm -f conftest* 6362 6363 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 6364 if test "$cross_compiling" = yes; then 6365 # Depending upon the size, compute the lo and hi bounds. 6366cat >conftest.$ac_ext <<_ACEOF 6367/* confdefs.h. */ 6368_ACEOF 6369cat confdefs.h >>conftest.$ac_ext 6370cat >>conftest.$ac_ext <<_ACEOF 6371/* end confdefs.h. */ 6372 6373#define _XOPEN_SOURCE_EXTENDED 1 6374#include <errno.h> 6375/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6376#include <stdio.h> 6377#include <stdlib.h> 6378 6379int 6380main () 6381{ 6382static int test_array [1 - 2 * !((EMULTIHOP) >= 0)]; 6383test_array [0] = 0 6384 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389rm -f conftest.$ac_objext 6390if { (ac_try="$ac_compile" 6391case "(($ac_try" in 6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6393 *) ac_try_echo=$ac_try;; 6394esac 6395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6396$as_echo "$ac_try_echo") >&5 6397 (eval "$ac_compile") 2>conftest.er1 6398 ac_status=$? 6399 grep -v '^ *+' conftest.er1 >conftest.err 6400 rm -f conftest.er1 6401 cat conftest.err >&5 6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } && { 6404 test -z "$ac_c_werror_flag" || 6405 test ! -s conftest.err 6406 } && test -s conftest.$ac_objext; then 6407 ac_lo=0 ac_mid=0 6408 while :; do 6409 cat >conftest.$ac_ext <<_ACEOF 6410/* confdefs.h. */ 6411_ACEOF 6412cat confdefs.h >>conftest.$ac_ext 6413cat >>conftest.$ac_ext <<_ACEOF 6414/* end confdefs.h. */ 6415 6416#define _XOPEN_SOURCE_EXTENDED 1 6417#include <errno.h> 6418/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6419#include <stdio.h> 6420#include <stdlib.h> 6421 6422int 6423main () 6424{ 6425static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)]; 6426test_array [0] = 0 6427 6428 ; 6429 return 0; 6430} 6431_ACEOF 6432rm -f conftest.$ac_objext 6433if { (ac_try="$ac_compile" 6434case "(($ac_try" in 6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6436 *) ac_try_echo=$ac_try;; 6437esac 6438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6439$as_echo "$ac_try_echo") >&5 6440 (eval "$ac_compile") 2>conftest.er1 6441 ac_status=$? 6442 grep -v '^ *+' conftest.er1 >conftest.err 6443 rm -f conftest.er1 6444 cat conftest.err >&5 6445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6446 (exit $ac_status); } && { 6447 test -z "$ac_c_werror_flag" || 6448 test ! -s conftest.err 6449 } && test -s conftest.$ac_objext; then 6450 ac_hi=$ac_mid; break 6451else 6452 $as_echo "$as_me: failed program was:" >&5 6453sed 's/^/| /' conftest.$ac_ext >&5 6454 6455 ac_lo=`expr $ac_mid + 1` 6456 if test $ac_lo -le $ac_mid; then 6457 ac_lo= ac_hi= 6458 break 6459 fi 6460 ac_mid=`expr 2 '*' $ac_mid + 1` 6461fi 6462 6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6464 done 6465else 6466 $as_echo "$as_me: failed program was:" >&5 6467sed 's/^/| /' conftest.$ac_ext >&5 6468 6469 cat >conftest.$ac_ext <<_ACEOF 6470/* confdefs.h. */ 6471_ACEOF 6472cat confdefs.h >>conftest.$ac_ext 6473cat >>conftest.$ac_ext <<_ACEOF 6474/* end confdefs.h. */ 6475 6476#define _XOPEN_SOURCE_EXTENDED 1 6477#include <errno.h> 6478/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6479#include <stdio.h> 6480#include <stdlib.h> 6481 6482int 6483main () 6484{ 6485static int test_array [1 - 2 * !((EMULTIHOP) < 0)]; 6486test_array [0] = 0 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492rm -f conftest.$ac_objext 6493if { (ac_try="$ac_compile" 6494case "(($ac_try" in 6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6496 *) ac_try_echo=$ac_try;; 6497esac 6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6499$as_echo "$ac_try_echo") >&5 6500 (eval "$ac_compile") 2>conftest.er1 6501 ac_status=$? 6502 grep -v '^ *+' conftest.er1 >conftest.err 6503 rm -f conftest.er1 6504 cat conftest.err >&5 6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6506 (exit $ac_status); } && { 6507 test -z "$ac_c_werror_flag" || 6508 test ! -s conftest.err 6509 } && test -s conftest.$ac_objext; then 6510 ac_hi=-1 ac_mid=-1 6511 while :; do 6512 cat >conftest.$ac_ext <<_ACEOF 6513/* confdefs.h. */ 6514_ACEOF 6515cat confdefs.h >>conftest.$ac_ext 6516cat >>conftest.$ac_ext <<_ACEOF 6517/* end confdefs.h. */ 6518 6519#define _XOPEN_SOURCE_EXTENDED 1 6520#include <errno.h> 6521/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6522#include <stdio.h> 6523#include <stdlib.h> 6524 6525int 6526main () 6527{ 6528static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)]; 6529test_array [0] = 0 6530 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535rm -f conftest.$ac_objext 6536if { (ac_try="$ac_compile" 6537case "(($ac_try" in 6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6539 *) ac_try_echo=$ac_try;; 6540esac 6541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6542$as_echo "$ac_try_echo") >&5 6543 (eval "$ac_compile") 2>conftest.er1 6544 ac_status=$? 6545 grep -v '^ *+' conftest.er1 >conftest.err 6546 rm -f conftest.er1 6547 cat conftest.err >&5 6548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549 (exit $ac_status); } && { 6550 test -z "$ac_c_werror_flag" || 6551 test ! -s conftest.err 6552 } && test -s conftest.$ac_objext; then 6553 ac_lo=$ac_mid; break 6554else 6555 $as_echo "$as_me: failed program was:" >&5 6556sed 's/^/| /' conftest.$ac_ext >&5 6557 6558 ac_hi=`expr '(' $ac_mid ')' - 1` 6559 if test $ac_mid -le $ac_hi; then 6560 ac_lo= ac_hi= 6561 break 6562 fi 6563 ac_mid=`expr 2 '*' $ac_mid` 6564fi 6565 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567 done 6568else 6569 $as_echo "$as_me: failed program was:" >&5 6570sed 's/^/| /' conftest.$ac_ext >&5 6571 6572 ac_lo= ac_hi= 6573fi 6574 6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576fi 6577 6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6579# Binary search between lo and hi bounds. 6580while test "x$ac_lo" != "x$ac_hi"; do 6581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6582 cat >conftest.$ac_ext <<_ACEOF 6583/* confdefs.h. */ 6584_ACEOF 6585cat confdefs.h >>conftest.$ac_ext 6586cat >>conftest.$ac_ext <<_ACEOF 6587/* end confdefs.h. */ 6588 6589#define _XOPEN_SOURCE_EXTENDED 1 6590#include <errno.h> 6591/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6592#include <stdio.h> 6593#include <stdlib.h> 6594 6595int 6596main () 6597{ 6598static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)]; 6599test_array [0] = 0 6600 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605rm -f conftest.$ac_objext 6606if { (ac_try="$ac_compile" 6607case "(($ac_try" in 6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6609 *) ac_try_echo=$ac_try;; 6610esac 6611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6612$as_echo "$ac_try_echo") >&5 6613 (eval "$ac_compile") 2>conftest.er1 6614 ac_status=$? 6615 grep -v '^ *+' conftest.er1 >conftest.err 6616 rm -f conftest.er1 6617 cat conftest.err >&5 6618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6619 (exit $ac_status); } && { 6620 test -z "$ac_c_werror_flag" || 6621 test ! -s conftest.err 6622 } && test -s conftest.$ac_objext; then 6623 ac_hi=$ac_mid 6624else 6625 $as_echo "$as_me: failed program was:" >&5 6626sed 's/^/| /' conftest.$ac_ext >&5 6627 6628 ac_lo=`expr '(' $ac_mid ')' + 1` 6629fi 6630 6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6632done 6633case $ac_lo in 6634?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;; 6635'') ;; 6636esac 6637else 6638 cat >conftest.$ac_ext <<_ACEOF 6639/* confdefs.h. */ 6640_ACEOF 6641cat confdefs.h >>conftest.$ac_ext 6642cat >>conftest.$ac_ext <<_ACEOF 6643/* end confdefs.h. */ 6644 6645#define _XOPEN_SOURCE_EXTENDED 1 6646#include <errno.h> 6647/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6648#include <stdio.h> 6649#include <stdlib.h> 6650 6651static long int longval () { return EMULTIHOP; } 6652static unsigned long int ulongval () { return EMULTIHOP; } 6653#include <stdio.h> 6654#include <stdlib.h> 6655int 6656main () 6657{ 6658 6659 FILE *f = fopen ("conftest.val", "w"); 6660 if (! f) 6661 return 1; 6662 if ((EMULTIHOP) < 0) 6663 { 6664 long int i = longval (); 6665 if (i != (EMULTIHOP)) 6666 return 1; 6667 fprintf (f, "%ld", i); 6668 } 6669 else 6670 { 6671 unsigned long int i = ulongval (); 6672 if (i != (EMULTIHOP)) 6673 return 1; 6674 fprintf (f, "%lu", i); 6675 } 6676 /* Do not output a trailing newline, as this causes \r\n confusion 6677 on some platforms. */ 6678 return ferror (f) || fclose (f) != 0; 6679 6680 ; 6681 return 0; 6682} 6683_ACEOF 6684rm -f conftest$ac_exeext 6685if { (ac_try="$ac_link" 6686case "(($ac_try" in 6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6688 *) ac_try_echo=$ac_try;; 6689esac 6690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6691$as_echo "$ac_try_echo") >&5 6692 (eval "$ac_link") 2>&5 6693 ac_status=$? 6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6696 { (case "(($ac_try" in 6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6698 *) ac_try_echo=$ac_try;; 6699esac 6700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6701$as_echo "$ac_try_echo") >&5 6702 (eval "$ac_try") 2>&5 6703 ac_status=$? 6704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6705 (exit $ac_status); }; }; then 6706 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val` 6707else 6708 $as_echo "$as_me: program exited with status $ac_status" >&5 6709$as_echo "$as_me: failed program was:" >&5 6710sed 's/^/| /' conftest.$ac_ext >&5 6711 6712fi 6713rm -rf conftest.dSYM 6714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6715fi 6716rm -f conftest.val 6717 fi 6718 fi 6719 6720fi 6721{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 6722$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 6723 case $gl_cv_header_errno_h_EMULTIHOP in 6724 yes | no) 6725 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 6726 ;; 6727 *) 6728 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 6729 ;; 6730 esac 6731 6732 6733 fi 6734 6735 6736 if test -n "$ERRNO_H"; then 6737 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5 6738$as_echo_n "checking for ENOLINK value... " >&6; } 6739if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then 6740 $as_echo_n "(cached) " >&6 6741else 6742 6743 cat >conftest.$ac_ext <<_ACEOF 6744/* confdefs.h. */ 6745_ACEOF 6746cat confdefs.h >>conftest.$ac_ext 6747cat >>conftest.$ac_ext <<_ACEOF 6748/* end confdefs.h. */ 6749 6750#include <errno.h> 6751#ifdef ENOLINK 6752yes 6753#endif 6754 6755_ACEOF 6756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6757 $EGREP "yes" >/dev/null 2>&1; then 6758 gl_cv_header_errno_h_ENOLINK=yes 6759else 6760 gl_cv_header_errno_h_ENOLINK=no 6761fi 6762rm -f conftest* 6763 6764 if test $gl_cv_header_errno_h_ENOLINK = no; then 6765 cat >conftest.$ac_ext <<_ACEOF 6766/* confdefs.h. */ 6767_ACEOF 6768cat confdefs.h >>conftest.$ac_ext 6769cat >>conftest.$ac_ext <<_ACEOF 6770/* end confdefs.h. */ 6771 6772#define _XOPEN_SOURCE_EXTENDED 1 6773#include <errno.h> 6774#ifdef ENOLINK 6775yes 6776#endif 6777 6778_ACEOF 6779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6780 $EGREP "yes" >/dev/null 2>&1; then 6781 gl_cv_header_errno_h_ENOLINK=hidden 6782fi 6783rm -f conftest* 6784 6785 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 6786 if test "$cross_compiling" = yes; then 6787 # Depending upon the size, compute the lo and hi bounds. 6788cat >conftest.$ac_ext <<_ACEOF 6789/* confdefs.h. */ 6790_ACEOF 6791cat confdefs.h >>conftest.$ac_ext 6792cat >>conftest.$ac_ext <<_ACEOF 6793/* end confdefs.h. */ 6794 6795#define _XOPEN_SOURCE_EXTENDED 1 6796#include <errno.h> 6797/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6798#include <stdio.h> 6799#include <stdlib.h> 6800 6801int 6802main () 6803{ 6804static int test_array [1 - 2 * !((ENOLINK) >= 0)]; 6805test_array [0] = 0 6806 6807 ; 6808 return 0; 6809} 6810_ACEOF 6811rm -f conftest.$ac_objext 6812if { (ac_try="$ac_compile" 6813case "(($ac_try" in 6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6815 *) ac_try_echo=$ac_try;; 6816esac 6817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6818$as_echo "$ac_try_echo") >&5 6819 (eval "$ac_compile") 2>conftest.er1 6820 ac_status=$? 6821 grep -v '^ *+' conftest.er1 >conftest.err 6822 rm -f conftest.er1 6823 cat conftest.err >&5 6824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6825 (exit $ac_status); } && { 6826 test -z "$ac_c_werror_flag" || 6827 test ! -s conftest.err 6828 } && test -s conftest.$ac_objext; then 6829 ac_lo=0 ac_mid=0 6830 while :; do 6831 cat >conftest.$ac_ext <<_ACEOF 6832/* confdefs.h. */ 6833_ACEOF 6834cat confdefs.h >>conftest.$ac_ext 6835cat >>conftest.$ac_ext <<_ACEOF 6836/* end confdefs.h. */ 6837 6838#define _XOPEN_SOURCE_EXTENDED 1 6839#include <errno.h> 6840/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6841#include <stdio.h> 6842#include <stdlib.h> 6843 6844int 6845main () 6846{ 6847static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)]; 6848test_array [0] = 0 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854rm -f conftest.$ac_objext 6855if { (ac_try="$ac_compile" 6856case "(($ac_try" in 6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6858 *) ac_try_echo=$ac_try;; 6859esac 6860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6861$as_echo "$ac_try_echo") >&5 6862 (eval "$ac_compile") 2>conftest.er1 6863 ac_status=$? 6864 grep -v '^ *+' conftest.er1 >conftest.err 6865 rm -f conftest.er1 6866 cat conftest.err >&5 6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6868 (exit $ac_status); } && { 6869 test -z "$ac_c_werror_flag" || 6870 test ! -s conftest.err 6871 } && test -s conftest.$ac_objext; then 6872 ac_hi=$ac_mid; break 6873else 6874 $as_echo "$as_me: failed program was:" >&5 6875sed 's/^/| /' conftest.$ac_ext >&5 6876 6877 ac_lo=`expr $ac_mid + 1` 6878 if test $ac_lo -le $ac_mid; then 6879 ac_lo= ac_hi= 6880 break 6881 fi 6882 ac_mid=`expr 2 '*' $ac_mid + 1` 6883fi 6884 6885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6886 done 6887else 6888 $as_echo "$as_me: failed program was:" >&5 6889sed 's/^/| /' conftest.$ac_ext >&5 6890 6891 cat >conftest.$ac_ext <<_ACEOF 6892/* confdefs.h. */ 6893_ACEOF 6894cat confdefs.h >>conftest.$ac_ext 6895cat >>conftest.$ac_ext <<_ACEOF 6896/* end confdefs.h. */ 6897 6898#define _XOPEN_SOURCE_EXTENDED 1 6899#include <errno.h> 6900/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6901#include <stdio.h> 6902#include <stdlib.h> 6903 6904int 6905main () 6906{ 6907static int test_array [1 - 2 * !((ENOLINK) < 0)]; 6908test_array [0] = 0 6909 6910 ; 6911 return 0; 6912} 6913_ACEOF 6914rm -f conftest.$ac_objext 6915if { (ac_try="$ac_compile" 6916case "(($ac_try" in 6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6918 *) ac_try_echo=$ac_try;; 6919esac 6920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6921$as_echo "$ac_try_echo") >&5 6922 (eval "$ac_compile") 2>conftest.er1 6923 ac_status=$? 6924 grep -v '^ *+' conftest.er1 >conftest.err 6925 rm -f conftest.er1 6926 cat conftest.err >&5 6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6928 (exit $ac_status); } && { 6929 test -z "$ac_c_werror_flag" || 6930 test ! -s conftest.err 6931 } && test -s conftest.$ac_objext; then 6932 ac_hi=-1 ac_mid=-1 6933 while :; do 6934 cat >conftest.$ac_ext <<_ACEOF 6935/* confdefs.h. */ 6936_ACEOF 6937cat confdefs.h >>conftest.$ac_ext 6938cat >>conftest.$ac_ext <<_ACEOF 6939/* end confdefs.h. */ 6940 6941#define _XOPEN_SOURCE_EXTENDED 1 6942#include <errno.h> 6943/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6944#include <stdio.h> 6945#include <stdlib.h> 6946 6947int 6948main () 6949{ 6950static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)]; 6951test_array [0] = 0 6952 6953 ; 6954 return 0; 6955} 6956_ACEOF 6957rm -f conftest.$ac_objext 6958if { (ac_try="$ac_compile" 6959case "(($ac_try" in 6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6961 *) ac_try_echo=$ac_try;; 6962esac 6963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6964$as_echo "$ac_try_echo") >&5 6965 (eval "$ac_compile") 2>conftest.er1 6966 ac_status=$? 6967 grep -v '^ *+' conftest.er1 >conftest.err 6968 rm -f conftest.er1 6969 cat conftest.err >&5 6970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6971 (exit $ac_status); } && { 6972 test -z "$ac_c_werror_flag" || 6973 test ! -s conftest.err 6974 } && test -s conftest.$ac_objext; then 6975 ac_lo=$ac_mid; break 6976else 6977 $as_echo "$as_me: failed program was:" >&5 6978sed 's/^/| /' conftest.$ac_ext >&5 6979 6980 ac_hi=`expr '(' $ac_mid ')' - 1` 6981 if test $ac_mid -le $ac_hi; then 6982 ac_lo= ac_hi= 6983 break 6984 fi 6985 ac_mid=`expr 2 '*' $ac_mid` 6986fi 6987 6988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6989 done 6990else 6991 $as_echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994 ac_lo= ac_hi= 6995fi 6996 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998fi 6999 7000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7001# Binary search between lo and hi bounds. 7002while test "x$ac_lo" != "x$ac_hi"; do 7003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7004 cat >conftest.$ac_ext <<_ACEOF 7005/* confdefs.h. */ 7006_ACEOF 7007cat confdefs.h >>conftest.$ac_ext 7008cat >>conftest.$ac_ext <<_ACEOF 7009/* end confdefs.h. */ 7010 7011#define _XOPEN_SOURCE_EXTENDED 1 7012#include <errno.h> 7013/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7014#include <stdio.h> 7015#include <stdlib.h> 7016 7017int 7018main () 7019{ 7020static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)]; 7021test_array [0] = 0 7022 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027rm -f conftest.$ac_objext 7028if { (ac_try="$ac_compile" 7029case "(($ac_try" in 7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7031 *) ac_try_echo=$ac_try;; 7032esac 7033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7034$as_echo "$ac_try_echo") >&5 7035 (eval "$ac_compile") 2>conftest.er1 7036 ac_status=$? 7037 grep -v '^ *+' conftest.er1 >conftest.err 7038 rm -f conftest.er1 7039 cat conftest.err >&5 7040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } && { 7042 test -z "$ac_c_werror_flag" || 7043 test ! -s conftest.err 7044 } && test -s conftest.$ac_objext; then 7045 ac_hi=$ac_mid 7046else 7047 $as_echo "$as_me: failed program was:" >&5 7048sed 's/^/| /' conftest.$ac_ext >&5 7049 7050 ac_lo=`expr '(' $ac_mid ')' + 1` 7051fi 7052 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7054done 7055case $ac_lo in 7056?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;; 7057'') ;; 7058esac 7059else 7060 cat >conftest.$ac_ext <<_ACEOF 7061/* confdefs.h. */ 7062_ACEOF 7063cat confdefs.h >>conftest.$ac_ext 7064cat >>conftest.$ac_ext <<_ACEOF 7065/* end confdefs.h. */ 7066 7067#define _XOPEN_SOURCE_EXTENDED 1 7068#include <errno.h> 7069/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7070#include <stdio.h> 7071#include <stdlib.h> 7072 7073static long int longval () { return ENOLINK; } 7074static unsigned long int ulongval () { return ENOLINK; } 7075#include <stdio.h> 7076#include <stdlib.h> 7077int 7078main () 7079{ 7080 7081 FILE *f = fopen ("conftest.val", "w"); 7082 if (! f) 7083 return 1; 7084 if ((ENOLINK) < 0) 7085 { 7086 long int i = longval (); 7087 if (i != (ENOLINK)) 7088 return 1; 7089 fprintf (f, "%ld", i); 7090 } 7091 else 7092 { 7093 unsigned long int i = ulongval (); 7094 if (i != (ENOLINK)) 7095 return 1; 7096 fprintf (f, "%lu", i); 7097 } 7098 /* Do not output a trailing newline, as this causes \r\n confusion 7099 on some platforms. */ 7100 return ferror (f) || fclose (f) != 0; 7101 7102 ; 7103 return 0; 7104} 7105_ACEOF 7106rm -f conftest$ac_exeext 7107if { (ac_try="$ac_link" 7108case "(($ac_try" in 7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7110 *) ac_try_echo=$ac_try;; 7111esac 7112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7113$as_echo "$ac_try_echo") >&5 7114 (eval "$ac_link") 2>&5 7115 ac_status=$? 7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7118 { (case "(($ac_try" in 7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7120 *) ac_try_echo=$ac_try;; 7121esac 7122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7123$as_echo "$ac_try_echo") >&5 7124 (eval "$ac_try") 2>&5 7125 ac_status=$? 7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); }; }; then 7128 gl_cv_header_errno_h_ENOLINK=`cat conftest.val` 7129else 7130 $as_echo "$as_me: program exited with status $ac_status" >&5 7131$as_echo "$as_me: failed program was:" >&5 7132sed 's/^/| /' conftest.$ac_ext >&5 7133 7134fi 7135rm -rf conftest.dSYM 7136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7137fi 7138rm -f conftest.val 7139 fi 7140 fi 7141 7142fi 7143{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5 7144$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 7145 case $gl_cv_header_errno_h_ENOLINK in 7146 yes | no) 7147 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 7148 ;; 7149 *) 7150 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 7151 ;; 7152 esac 7153 7154 7155 fi 7156 7157 7158 if test -n "$ERRNO_H"; then 7159 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5 7160$as_echo_n "checking for EOVERFLOW value... " >&6; } 7161if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then 7162 $as_echo_n "(cached) " >&6 7163else 7164 7165 cat >conftest.$ac_ext <<_ACEOF 7166/* confdefs.h. */ 7167_ACEOF 7168cat confdefs.h >>conftest.$ac_ext 7169cat >>conftest.$ac_ext <<_ACEOF 7170/* end confdefs.h. */ 7171 7172#include <errno.h> 7173#ifdef EOVERFLOW 7174yes 7175#endif 7176 7177_ACEOF 7178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7179 $EGREP "yes" >/dev/null 2>&1; then 7180 gl_cv_header_errno_h_EOVERFLOW=yes 7181else 7182 gl_cv_header_errno_h_EOVERFLOW=no 7183fi 7184rm -f conftest* 7185 7186 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 7187 cat >conftest.$ac_ext <<_ACEOF 7188/* confdefs.h. */ 7189_ACEOF 7190cat confdefs.h >>conftest.$ac_ext 7191cat >>conftest.$ac_ext <<_ACEOF 7192/* end confdefs.h. */ 7193 7194#define _XOPEN_SOURCE_EXTENDED 1 7195#include <errno.h> 7196#ifdef EOVERFLOW 7197yes 7198#endif 7199 7200_ACEOF 7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7202 $EGREP "yes" >/dev/null 2>&1; then 7203 gl_cv_header_errno_h_EOVERFLOW=hidden 7204fi 7205rm -f conftest* 7206 7207 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 7208 if test "$cross_compiling" = yes; then 7209 # Depending upon the size, compute the lo and hi bounds. 7210cat >conftest.$ac_ext <<_ACEOF 7211/* confdefs.h. */ 7212_ACEOF 7213cat confdefs.h >>conftest.$ac_ext 7214cat >>conftest.$ac_ext <<_ACEOF 7215/* end confdefs.h. */ 7216 7217#define _XOPEN_SOURCE_EXTENDED 1 7218#include <errno.h> 7219/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7220#include <stdio.h> 7221#include <stdlib.h> 7222 7223int 7224main () 7225{ 7226static int test_array [1 - 2 * !((EOVERFLOW) >= 0)]; 7227test_array [0] = 0 7228 7229 ; 7230 return 0; 7231} 7232_ACEOF 7233rm -f conftest.$ac_objext 7234if { (ac_try="$ac_compile" 7235case "(($ac_try" in 7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7237 *) ac_try_echo=$ac_try;; 7238esac 7239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7240$as_echo "$ac_try_echo") >&5 7241 (eval "$ac_compile") 2>conftest.er1 7242 ac_status=$? 7243 grep -v '^ *+' conftest.er1 >conftest.err 7244 rm -f conftest.er1 7245 cat conftest.err >&5 7246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); } && { 7248 test -z "$ac_c_werror_flag" || 7249 test ! -s conftest.err 7250 } && test -s conftest.$ac_objext; then 7251 ac_lo=0 ac_mid=0 7252 while :; do 7253 cat >conftest.$ac_ext <<_ACEOF 7254/* confdefs.h. */ 7255_ACEOF 7256cat confdefs.h >>conftest.$ac_ext 7257cat >>conftest.$ac_ext <<_ACEOF 7258/* end confdefs.h. */ 7259 7260#define _XOPEN_SOURCE_EXTENDED 1 7261#include <errno.h> 7262/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7263#include <stdio.h> 7264#include <stdlib.h> 7265 7266int 7267main () 7268{ 7269static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; 7270test_array [0] = 0 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276rm -f conftest.$ac_objext 7277if { (ac_try="$ac_compile" 7278case "(($ac_try" in 7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7280 *) ac_try_echo=$ac_try;; 7281esac 7282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7283$as_echo "$ac_try_echo") >&5 7284 (eval "$ac_compile") 2>conftest.er1 7285 ac_status=$? 7286 grep -v '^ *+' conftest.er1 >conftest.err 7287 rm -f conftest.er1 7288 cat conftest.err >&5 7289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7290 (exit $ac_status); } && { 7291 test -z "$ac_c_werror_flag" || 7292 test ! -s conftest.err 7293 } && test -s conftest.$ac_objext; then 7294 ac_hi=$ac_mid; break 7295else 7296 $as_echo "$as_me: failed program was:" >&5 7297sed 's/^/| /' conftest.$ac_ext >&5 7298 7299 ac_lo=`expr $ac_mid + 1` 7300 if test $ac_lo -le $ac_mid; then 7301 ac_lo= ac_hi= 7302 break 7303 fi 7304 ac_mid=`expr 2 '*' $ac_mid + 1` 7305fi 7306 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7308 done 7309else 7310 $as_echo "$as_me: failed program was:" >&5 7311sed 's/^/| /' conftest.$ac_ext >&5 7312 7313 cat >conftest.$ac_ext <<_ACEOF 7314/* confdefs.h. */ 7315_ACEOF 7316cat confdefs.h >>conftest.$ac_ext 7317cat >>conftest.$ac_ext <<_ACEOF 7318/* end confdefs.h. */ 7319 7320#define _XOPEN_SOURCE_EXTENDED 1 7321#include <errno.h> 7322/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7323#include <stdio.h> 7324#include <stdlib.h> 7325 7326int 7327main () 7328{ 7329static int test_array [1 - 2 * !((EOVERFLOW) < 0)]; 7330test_array [0] = 0 7331 7332 ; 7333 return 0; 7334} 7335_ACEOF 7336rm -f conftest.$ac_objext 7337if { (ac_try="$ac_compile" 7338case "(($ac_try" in 7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7340 *) ac_try_echo=$ac_try;; 7341esac 7342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7343$as_echo "$ac_try_echo") >&5 7344 (eval "$ac_compile") 2>conftest.er1 7345 ac_status=$? 7346 grep -v '^ *+' conftest.er1 >conftest.err 7347 rm -f conftest.er1 7348 cat conftest.err >&5 7349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7350 (exit $ac_status); } && { 7351 test -z "$ac_c_werror_flag" || 7352 test ! -s conftest.err 7353 } && test -s conftest.$ac_objext; then 7354 ac_hi=-1 ac_mid=-1 7355 while :; do 7356 cat >conftest.$ac_ext <<_ACEOF 7357/* confdefs.h. */ 7358_ACEOF 7359cat confdefs.h >>conftest.$ac_ext 7360cat >>conftest.$ac_ext <<_ACEOF 7361/* end confdefs.h. */ 7362 7363#define _XOPEN_SOURCE_EXTENDED 1 7364#include <errno.h> 7365/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7366#include <stdio.h> 7367#include <stdlib.h> 7368 7369int 7370main () 7371{ 7372static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)]; 7373test_array [0] = 0 7374 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379rm -f conftest.$ac_objext 7380if { (ac_try="$ac_compile" 7381case "(($ac_try" in 7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7383 *) ac_try_echo=$ac_try;; 7384esac 7385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7386$as_echo "$ac_try_echo") >&5 7387 (eval "$ac_compile") 2>conftest.er1 7388 ac_status=$? 7389 grep -v '^ *+' conftest.er1 >conftest.err 7390 rm -f conftest.er1 7391 cat conftest.err >&5 7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); } && { 7394 test -z "$ac_c_werror_flag" || 7395 test ! -s conftest.err 7396 } && test -s conftest.$ac_objext; then 7397 ac_lo=$ac_mid; break 7398else 7399 $as_echo "$as_me: failed program was:" >&5 7400sed 's/^/| /' conftest.$ac_ext >&5 7401 7402 ac_hi=`expr '(' $ac_mid ')' - 1` 7403 if test $ac_mid -le $ac_hi; then 7404 ac_lo= ac_hi= 7405 break 7406 fi 7407 ac_mid=`expr 2 '*' $ac_mid` 7408fi 7409 7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7411 done 7412else 7413 $as_echo "$as_me: failed program was:" >&5 7414sed 's/^/| /' conftest.$ac_ext >&5 7415 7416 ac_lo= ac_hi= 7417fi 7418 7419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7420fi 7421 7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7423# Binary search between lo and hi bounds. 7424while test "x$ac_lo" != "x$ac_hi"; do 7425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7426 cat >conftest.$ac_ext <<_ACEOF 7427/* confdefs.h. */ 7428_ACEOF 7429cat confdefs.h >>conftest.$ac_ext 7430cat >>conftest.$ac_ext <<_ACEOF 7431/* end confdefs.h. */ 7432 7433#define _XOPEN_SOURCE_EXTENDED 1 7434#include <errno.h> 7435/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7436#include <stdio.h> 7437#include <stdlib.h> 7438 7439int 7440main () 7441{ 7442static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; 7443test_array [0] = 0 7444 7445 ; 7446 return 0; 7447} 7448_ACEOF 7449rm -f conftest.$ac_objext 7450if { (ac_try="$ac_compile" 7451case "(($ac_try" in 7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7453 *) ac_try_echo=$ac_try;; 7454esac 7455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7456$as_echo "$ac_try_echo") >&5 7457 (eval "$ac_compile") 2>conftest.er1 7458 ac_status=$? 7459 grep -v '^ *+' conftest.er1 >conftest.err 7460 rm -f conftest.er1 7461 cat conftest.err >&5 7462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7463 (exit $ac_status); } && { 7464 test -z "$ac_c_werror_flag" || 7465 test ! -s conftest.err 7466 } && test -s conftest.$ac_objext; then 7467 ac_hi=$ac_mid 7468else 7469 $as_echo "$as_me: failed program was:" >&5 7470sed 's/^/| /' conftest.$ac_ext >&5 7471 7472 ac_lo=`expr '(' $ac_mid ')' + 1` 7473fi 7474 7475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7476done 7477case $ac_lo in 7478?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;; 7479'') ;; 7480esac 7481else 7482 cat >conftest.$ac_ext <<_ACEOF 7483/* confdefs.h. */ 7484_ACEOF 7485cat confdefs.h >>conftest.$ac_ext 7486cat >>conftest.$ac_ext <<_ACEOF 7487/* end confdefs.h. */ 7488 7489#define _XOPEN_SOURCE_EXTENDED 1 7490#include <errno.h> 7491/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7492#include <stdio.h> 7493#include <stdlib.h> 7494 7495static long int longval () { return EOVERFLOW; } 7496static unsigned long int ulongval () { return EOVERFLOW; } 7497#include <stdio.h> 7498#include <stdlib.h> 7499int 7500main () 7501{ 7502 7503 FILE *f = fopen ("conftest.val", "w"); 7504 if (! f) 7505 return 1; 7506 if ((EOVERFLOW) < 0) 7507 { 7508 long int i = longval (); 7509 if (i != (EOVERFLOW)) 7510 return 1; 7511 fprintf (f, "%ld", i); 7512 } 7513 else 7514 { 7515 unsigned long int i = ulongval (); 7516 if (i != (EOVERFLOW)) 7517 return 1; 7518 fprintf (f, "%lu", i); 7519 } 7520 /* Do not output a trailing newline, as this causes \r\n confusion 7521 on some platforms. */ 7522 return ferror (f) || fclose (f) != 0; 7523 7524 ; 7525 return 0; 7526} 7527_ACEOF 7528rm -f conftest$ac_exeext 7529if { (ac_try="$ac_link" 7530case "(($ac_try" in 7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7532 *) ac_try_echo=$ac_try;; 7533esac 7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7535$as_echo "$ac_try_echo") >&5 7536 (eval "$ac_link") 2>&5 7537 ac_status=$? 7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7540 { (case "(($ac_try" in 7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7542 *) ac_try_echo=$ac_try;; 7543esac 7544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7545$as_echo "$ac_try_echo") >&5 7546 (eval "$ac_try") 2>&5 7547 ac_status=$? 7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7549 (exit $ac_status); }; }; then 7550 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val` 7551else 7552 $as_echo "$as_me: program exited with status $ac_status" >&5 7553$as_echo "$as_me: failed program was:" >&5 7554sed 's/^/| /' conftest.$ac_ext >&5 7555 7556fi 7557rm -rf conftest.dSYM 7558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7559fi 7560rm -f conftest.val 7561 fi 7562 fi 7563 7564fi 7565{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 7566$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 7567 case $gl_cv_header_errno_h_EOVERFLOW in 7568 yes | no) 7569 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 7570 ;; 7571 *) 7572 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 7573 ;; 7574 esac 7575 7576 7577 fi 7578 7579 7580{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 7581$as_echo_n "checking whether strerror_r is declared... " >&6; } 7582if test "${ac_cv_have_decl_strerror_r+set}" = set; then 7583 $as_echo_n "(cached) " >&6 7584else 7585 cat >conftest.$ac_ext <<_ACEOF 7586/* confdefs.h. */ 7587_ACEOF 7588cat confdefs.h >>conftest.$ac_ext 7589cat >>conftest.$ac_ext <<_ACEOF 7590/* end confdefs.h. */ 7591$ac_includes_default 7592int 7593main () 7594{ 7595#ifndef strerror_r 7596 (void) strerror_r; 7597#endif 7598 7599 ; 7600 return 0; 7601} 7602_ACEOF 7603rm -f conftest.$ac_objext 7604if { (ac_try="$ac_compile" 7605case "(($ac_try" in 7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7607 *) ac_try_echo=$ac_try;; 7608esac 7609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7610$as_echo "$ac_try_echo") >&5 7611 (eval "$ac_compile") 2>conftest.er1 7612 ac_status=$? 7613 grep -v '^ *+' conftest.er1 >conftest.err 7614 rm -f conftest.er1 7615 cat conftest.err >&5 7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7617 (exit $ac_status); } && { 7618 test -z "$ac_c_werror_flag" || 7619 test ! -s conftest.err 7620 } && test -s conftest.$ac_objext; then 7621 ac_cv_have_decl_strerror_r=yes 7622else 7623 $as_echo "$as_me: failed program was:" >&5 7624sed 's/^/| /' conftest.$ac_ext >&5 7625 7626 ac_cv_have_decl_strerror_r=no 7627fi 7628 7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7630fi 7631{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 7632$as_echo "$ac_cv_have_decl_strerror_r" >&6; } 7633if test "x$ac_cv_have_decl_strerror_r" = x""yes; then 7634 7635cat >>confdefs.h <<_ACEOF 7636#define HAVE_DECL_STRERROR_R 1 7637_ACEOF 7638 7639 7640else 7641 cat >>confdefs.h <<_ACEOF 7642#define HAVE_DECL_STRERROR_R 0 7643_ACEOF 7644 7645 7646fi 7647 7648 7649 7650for ac_func in strerror_r 7651do 7652as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7653{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7654$as_echo_n "checking for $ac_func... " >&6; } 7655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7656 $as_echo_n "(cached) " >&6 7657else 7658 cat >conftest.$ac_ext <<_ACEOF 7659/* confdefs.h. */ 7660_ACEOF 7661cat confdefs.h >>conftest.$ac_ext 7662cat >>conftest.$ac_ext <<_ACEOF 7663/* end confdefs.h. */ 7664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7666#define $ac_func innocuous_$ac_func 7667 7668/* System header to define __stub macros and hopefully few prototypes, 7669 which can conflict with char $ac_func (); below. 7670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7671 <limits.h> exists even on freestanding compilers. */ 7672 7673#ifdef __STDC__ 7674# include <limits.h> 7675#else 7676# include <assert.h> 7677#endif 7678 7679#undef $ac_func 7680 7681/* Override any GCC internal prototype to avoid an error. 7682 Use char because int might match the return type of a GCC 7683 builtin and then its argument prototype would still apply. */ 7684#ifdef __cplusplus 7685extern "C" 7686#endif 7687char $ac_func (); 7688/* The GNU C library defines this for functions which it implements 7689 to always fail with ENOSYS. Some functions are actually named 7690 something starting with __ and the normal name is an alias. */ 7691#if defined __stub_$ac_func || defined __stub___$ac_func 7692choke me 7693#endif 7694 7695int 7696main () 7697{ 7698return $ac_func (); 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703rm -f conftest.$ac_objext conftest$ac_exeext 7704if { (ac_try="$ac_link" 7705case "(($ac_try" in 7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7707 *) ac_try_echo=$ac_try;; 7708esac 7709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7710$as_echo "$ac_try_echo") >&5 7711 (eval "$ac_link") 2>conftest.er1 7712 ac_status=$? 7713 grep -v '^ *+' conftest.er1 >conftest.err 7714 rm -f conftest.er1 7715 cat conftest.err >&5 7716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7717 (exit $ac_status); } && { 7718 test -z "$ac_c_werror_flag" || 7719 test ! -s conftest.err 7720 } && test -s conftest$ac_exeext && { 7721 test "$cross_compiling" = yes || 7722 $as_test_x conftest$ac_exeext 7723 }; then 7724 eval "$as_ac_var=yes" 7725else 7726 $as_echo "$as_me: failed program was:" >&5 7727sed 's/^/| /' conftest.$ac_ext >&5 7728 7729 eval "$as_ac_var=no" 7730fi 7731 7732rm -rf conftest.dSYM 7733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7734 conftest$ac_exeext conftest.$ac_ext 7735fi 7736ac_res=`eval 'as_val=${'$as_ac_var'} 7737 $as_echo "$as_val"'` 7738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7739$as_echo "$ac_res" >&6; } 7740as_val=`eval 'as_val=${'$as_ac_var'} 7741 $as_echo "$as_val"'` 7742 if test "x$as_val" = x""yes; then 7743 cat >>confdefs.h <<_ACEOF 7744#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7745_ACEOF 7746 7747fi 7748done 7749 7750{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 7751$as_echo_n "checking whether strerror_r returns char *... " >&6; } 7752if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 7753 $as_echo_n "(cached) " >&6 7754else 7755 7756 ac_cv_func_strerror_r_char_p=no 7757 if test $ac_cv_have_decl_strerror_r = yes; then 7758 cat >conftest.$ac_ext <<_ACEOF 7759/* confdefs.h. */ 7760_ACEOF 7761cat confdefs.h >>conftest.$ac_ext 7762cat >>conftest.$ac_ext <<_ACEOF 7763/* end confdefs.h. */ 7764$ac_includes_default 7765int 7766main () 7767{ 7768 7769 char buf[100]; 7770 char x = *strerror_r (0, buf, sizeof buf); 7771 char *p = strerror_r (0, buf, sizeof buf); 7772 return !p || x; 7773 7774 ; 7775 return 0; 7776} 7777_ACEOF 7778rm -f conftest.$ac_objext 7779if { (ac_try="$ac_compile" 7780case "(($ac_try" in 7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7782 *) ac_try_echo=$ac_try;; 7783esac 7784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7785$as_echo "$ac_try_echo") >&5 7786 (eval "$ac_compile") 2>conftest.er1 7787 ac_status=$? 7788 grep -v '^ *+' conftest.er1 >conftest.err 7789 rm -f conftest.er1 7790 cat conftest.err >&5 7791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7792 (exit $ac_status); } && { 7793 test -z "$ac_c_werror_flag" || 7794 test ! -s conftest.err 7795 } && test -s conftest.$ac_objext; then 7796 ac_cv_func_strerror_r_char_p=yes 7797else 7798 $as_echo "$as_me: failed program was:" >&5 7799sed 's/^/| /' conftest.$ac_ext >&5 7800 7801 7802fi 7803 7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7805 else 7806 # strerror_r is not declared. Choose between 7807 # systems that have relatively inaccessible declarations for the 7808 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 7809 # former has a strerror_r that returns char*, while the latter 7810 # has a strerror_r that returns `int'. 7811 # This test should segfault on the DEC system. 7812 if test "$cross_compiling" = yes; then 7813 : 7814else 7815 cat >conftest.$ac_ext <<_ACEOF 7816/* confdefs.h. */ 7817_ACEOF 7818cat confdefs.h >>conftest.$ac_ext 7819cat >>conftest.$ac_ext <<_ACEOF 7820/* end confdefs.h. */ 7821$ac_includes_default 7822 extern char *strerror_r (); 7823int 7824main () 7825{ 7826char buf[100]; 7827 char x = *strerror_r (0, buf, sizeof buf); 7828 return ! isalpha (x); 7829 ; 7830 return 0; 7831} 7832_ACEOF 7833rm -f conftest$ac_exeext 7834if { (ac_try="$ac_link" 7835case "(($ac_try" in 7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7837 *) ac_try_echo=$ac_try;; 7838esac 7839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7840$as_echo "$ac_try_echo") >&5 7841 (eval "$ac_link") 2>&5 7842 ac_status=$? 7843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7845 { (case "(($ac_try" in 7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7847 *) ac_try_echo=$ac_try;; 7848esac 7849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7850$as_echo "$ac_try_echo") >&5 7851 (eval "$ac_try") 2>&5 7852 ac_status=$? 7853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7854 (exit $ac_status); }; }; then 7855 ac_cv_func_strerror_r_char_p=yes 7856else 7857 $as_echo "$as_me: program exited with status $ac_status" >&5 7858$as_echo "$as_me: failed program was:" >&5 7859sed 's/^/| /' conftest.$ac_ext >&5 7860 7861fi 7862rm -rf conftest.dSYM 7863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7864fi 7865 7866 7867 fi 7868 7869fi 7870{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 7871$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 7872if test $ac_cv_func_strerror_r_char_p = yes; then 7873 7874cat >>confdefs.h <<\_ACEOF 7875#define STRERROR_R_CHAR_P 1 7876_ACEOF 7877 7878fi 7879 7880 7881 XGETTEXT_EXTRA_OPTIONS= 7882 7883 7884 GNULIB_FPRINTF=0; 7885 GNULIB_FPRINTF_POSIX=0; 7886 GNULIB_PRINTF=0; 7887 GNULIB_PRINTF_POSIX=0; 7888 GNULIB_SNPRINTF=0; 7889 GNULIB_SPRINTF_POSIX=0; 7890 GNULIB_VFPRINTF=0; 7891 GNULIB_VFPRINTF_POSIX=0; 7892 GNULIB_VPRINTF=0; 7893 GNULIB_VPRINTF_POSIX=0; 7894 GNULIB_VSNPRINTF=0; 7895 GNULIB_VSPRINTF_POSIX=0; 7896 GNULIB_DPRINTF=0; 7897 GNULIB_VDPRINTF=0; 7898 GNULIB_VASPRINTF=0; 7899 GNULIB_OBSTACK_PRINTF=0; 7900 GNULIB_OBSTACK_PRINTF_POSIX=0; 7901 GNULIB_FOPEN=0; 7902 GNULIB_FREOPEN=0; 7903 GNULIB_FSEEK=0; 7904 GNULIB_FSEEKO=0; 7905 GNULIB_FTELL=0; 7906 GNULIB_FTELLO=0; 7907 GNULIB_FFLUSH=0; 7908 GNULIB_FPURGE=0; 7909 GNULIB_FCLOSE=0; 7910 GNULIB_FPUTC=0; 7911 GNULIB_PUTC=0; 7912 GNULIB_PUTCHAR=0; 7913 GNULIB_FPUTS=0; 7914 GNULIB_PUTS=0; 7915 GNULIB_FWRITE=0; 7916 GNULIB_GETDELIM=0; 7917 GNULIB_GETLINE=0; 7918 GNULIB_PERROR=0; 7919 GNULIB_STDIO_H_SIGPIPE=0; 7920 REPLACE_STDIO_WRITE_FUNCS=0; 7921 REPLACE_FPRINTF=0; 7922 REPLACE_VFPRINTF=0; 7923 REPLACE_PRINTF=0; 7924 REPLACE_VPRINTF=0; 7925 REPLACE_SNPRINTF=0; 7926 HAVE_DECL_SNPRINTF=1; 7927 REPLACE_VSNPRINTF=0; 7928 HAVE_DECL_VSNPRINTF=1; 7929 REPLACE_SPRINTF=0; 7930 REPLACE_VSPRINTF=0; 7931 HAVE_DPRINTF=1; 7932 REPLACE_DPRINTF=0; 7933 HAVE_VDPRINTF=1; 7934 REPLACE_VDPRINTF=0; 7935 HAVE_VASPRINTF=1; 7936 REPLACE_VASPRINTF=0; 7937 HAVE_DECL_OBSTACK_PRINTF=1; 7938 REPLACE_OBSTACK_PRINTF=0; 7939 REPLACE_FOPEN=0; 7940 REPLACE_FREOPEN=0; 7941 HAVE_FSEEKO=1; 7942 REPLACE_FSEEKO=0; 7943 REPLACE_FSEEK=0; 7944 HAVE_FTELLO=1; 7945 REPLACE_FTELLO=0; 7946 REPLACE_FTELL=0; 7947 REPLACE_FFLUSH=0; 7948 REPLACE_FPURGE=0; 7949 HAVE_DECL_FPURGE=1; 7950 REPLACE_FCLOSE=0; 7951 HAVE_DECL_GETDELIM=1; 7952 HAVE_DECL_GETLINE=1; 7953 REPLACE_GETLINE=0; 7954 REPLACE_PERROR=0; 7955 7956{ $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5 7957$as_echo_n "checking whether getdelim is declared... " >&6; } 7958if test "${ac_cv_have_decl_getdelim+set}" = set; then 7959 $as_echo_n "(cached) " >&6 7960else 7961 cat >conftest.$ac_ext <<_ACEOF 7962/* confdefs.h. */ 7963_ACEOF 7964cat confdefs.h >>conftest.$ac_ext 7965cat >>conftest.$ac_ext <<_ACEOF 7966/* end confdefs.h. */ 7967$ac_includes_default 7968int 7969main () 7970{ 7971#ifndef getdelim 7972 (void) getdelim; 7973#endif 7974 7975 ; 7976 return 0; 7977} 7978_ACEOF 7979rm -f conftest.$ac_objext 7980if { (ac_try="$ac_compile" 7981case "(($ac_try" in 7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7983 *) ac_try_echo=$ac_try;; 7984esac 7985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7986$as_echo "$ac_try_echo") >&5 7987 (eval "$ac_compile") 2>conftest.er1 7988 ac_status=$? 7989 grep -v '^ *+' conftest.er1 >conftest.err 7990 rm -f conftest.er1 7991 cat conftest.err >&5 7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7993 (exit $ac_status); } && { 7994 test -z "$ac_c_werror_flag" || 7995 test ! -s conftest.err 7996 } && test -s conftest.$ac_objext; then 7997 ac_cv_have_decl_getdelim=yes 7998else 7999 $as_echo "$as_me: failed program was:" >&5 8000sed 's/^/| /' conftest.$ac_ext >&5 8001 8002 ac_cv_have_decl_getdelim=no 8003fi 8004 8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8006fi 8007{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5 8008$as_echo "$ac_cv_have_decl_getdelim" >&6; } 8009if test "x$ac_cv_have_decl_getdelim" = x""yes; then 8010 8011cat >>confdefs.h <<_ACEOF 8012#define HAVE_DECL_GETDELIM 1 8013_ACEOF 8014 8015 8016else 8017 cat >>confdefs.h <<_ACEOF 8018#define HAVE_DECL_GETDELIM 0 8019_ACEOF 8020 8021 8022fi 8023 8024 8025{ $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5 8026$as_echo_n "checking whether getline is declared... " >&6; } 8027if test "${ac_cv_have_decl_getline+set}" = set; then 8028 $as_echo_n "(cached) " >&6 8029else 8030 cat >conftest.$ac_ext <<_ACEOF 8031/* confdefs.h. */ 8032_ACEOF 8033cat confdefs.h >>conftest.$ac_ext 8034cat >>conftest.$ac_ext <<_ACEOF 8035/* end confdefs.h. */ 8036$ac_includes_default 8037int 8038main () 8039{ 8040#ifndef getline 8041 (void) getline; 8042#endif 8043 8044 ; 8045 return 0; 8046} 8047_ACEOF 8048rm -f conftest.$ac_objext 8049if { (ac_try="$ac_compile" 8050case "(($ac_try" in 8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8052 *) ac_try_echo=$ac_try;; 8053esac 8054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8055$as_echo "$ac_try_echo") >&5 8056 (eval "$ac_compile") 2>conftest.er1 8057 ac_status=$? 8058 grep -v '^ *+' conftest.er1 >conftest.err 8059 rm -f conftest.er1 8060 cat conftest.err >&5 8061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8062 (exit $ac_status); } && { 8063 test -z "$ac_c_werror_flag" || 8064 test ! -s conftest.err 8065 } && test -s conftest.$ac_objext; then 8066 ac_cv_have_decl_getline=yes 8067else 8068 $as_echo "$as_me: failed program was:" >&5 8069sed 's/^/| /' conftest.$ac_ext >&5 8070 8071 ac_cv_have_decl_getline=no 8072fi 8073 8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8075fi 8076{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5 8077$as_echo "$ac_cv_have_decl_getline" >&6; } 8078if test "x$ac_cv_have_decl_getline" = x""yes; then 8079 8080cat >>confdefs.h <<_ACEOF 8081#define HAVE_DECL_GETLINE 1 8082_ACEOF 8083 8084 8085else 8086 cat >>confdefs.h <<_ACEOF 8087#define HAVE_DECL_GETLINE 0 8088_ACEOF 8089 8090 8091fi 8092 8093 8094 8095 if test -z "$GETOPT_H"; then 8096 8097for ac_header in getopt.h 8098do 8099as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8102$as_echo_n "checking for $ac_header... " >&6; } 8103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8104 $as_echo_n "(cached) " >&6 8105fi 8106ac_res=`eval 'as_val=${'$as_ac_Header'} 8107 $as_echo "$as_val"'` 8108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8109$as_echo "$ac_res" >&6; } 8110else 8111 # Is the header compilable? 8112{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 8113$as_echo_n "checking $ac_header usability... " >&6; } 8114cat >conftest.$ac_ext <<_ACEOF 8115/* confdefs.h. */ 8116_ACEOF 8117cat confdefs.h >>conftest.$ac_ext 8118cat >>conftest.$ac_ext <<_ACEOF 8119/* end confdefs.h. */ 8120$ac_includes_default 8121#include <$ac_header> 8122_ACEOF 8123rm -f conftest.$ac_objext 8124if { (ac_try="$ac_compile" 8125case "(($ac_try" in 8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8127 *) ac_try_echo=$ac_try;; 8128esac 8129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8130$as_echo "$ac_try_echo") >&5 8131 (eval "$ac_compile") 2>conftest.er1 8132 ac_status=$? 8133 grep -v '^ *+' conftest.er1 >conftest.err 8134 rm -f conftest.er1 8135 cat conftest.err >&5 8136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8137 (exit $ac_status); } && { 8138 test -z "$ac_c_werror_flag" || 8139 test ! -s conftest.err 8140 } && test -s conftest.$ac_objext; then 8141 ac_header_compiler=yes 8142else 8143 $as_echo "$as_me: failed program was:" >&5 8144sed 's/^/| /' conftest.$ac_ext >&5 8145 8146 ac_header_compiler=no 8147fi 8148 8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8150{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8151$as_echo "$ac_header_compiler" >&6; } 8152 8153# Is the header present? 8154{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 8155$as_echo_n "checking $ac_header presence... " >&6; } 8156cat >conftest.$ac_ext <<_ACEOF 8157/* confdefs.h. */ 8158_ACEOF 8159cat confdefs.h >>conftest.$ac_ext 8160cat >>conftest.$ac_ext <<_ACEOF 8161/* end confdefs.h. */ 8162#include <$ac_header> 8163_ACEOF 8164if { (ac_try="$ac_cpp conftest.$ac_ext" 8165case "(($ac_try" in 8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8167 *) ac_try_echo=$ac_try;; 8168esac 8169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8170$as_echo "$ac_try_echo") >&5 8171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8172 ac_status=$? 8173 grep -v '^ *+' conftest.er1 >conftest.err 8174 rm -f conftest.er1 8175 cat conftest.err >&5 8176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8177 (exit $ac_status); } >/dev/null && { 8178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8179 test ! -s conftest.err 8180 }; then 8181 ac_header_preproc=yes 8182else 8183 $as_echo "$as_me: failed program was:" >&5 8184sed 's/^/| /' conftest.$ac_ext >&5 8185 8186 ac_header_preproc=no 8187fi 8188 8189rm -f conftest.err conftest.$ac_ext 8190{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8191$as_echo "$ac_header_preproc" >&6; } 8192 8193# So? What about this header? 8194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8195 yes:no: ) 8196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8197$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8199$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8200 ac_header_preproc=yes 8201 ;; 8202 no:yes:* ) 8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8204$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8206$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8208$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8210$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8212$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8214$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8215 ( cat <<\_ASBOX 8216## ------------------------------------ ## 8217## Report this to bug-gnu-utils@gnu.org ## 8218## ------------------------------------ ## 8219_ASBOX 8220 ) | sed "s/^/$as_me: WARNING: /" >&2 8221 ;; 8222esac 8223{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8224$as_echo_n "checking for $ac_header... " >&6; } 8225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8226 $as_echo_n "(cached) " >&6 8227else 8228 eval "$as_ac_Header=\$ac_header_preproc" 8229fi 8230ac_res=`eval 'as_val=${'$as_ac_Header'} 8231 $as_echo "$as_val"'` 8232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8233$as_echo "$ac_res" >&6; } 8234 8235fi 8236as_val=`eval 'as_val=${'$as_ac_Header'} 8237 $as_echo "$as_val"'` 8238 if test "x$as_val" = x""yes; then 8239 cat >>confdefs.h <<_ACEOF 8240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8241_ACEOF 8242 8243else 8244 GETOPT_H=getopt.h 8245fi 8246 8247done 8248 8249 fi 8250 8251 if test -z "$GETOPT_H"; then 8252 8253for ac_func in getopt_long_only 8254do 8255as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8256{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 8257$as_echo_n "checking for $ac_func... " >&6; } 8258if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8259 $as_echo_n "(cached) " >&6 8260else 8261 cat >conftest.$ac_ext <<_ACEOF 8262/* confdefs.h. */ 8263_ACEOF 8264cat confdefs.h >>conftest.$ac_ext 8265cat >>conftest.$ac_ext <<_ACEOF 8266/* end confdefs.h. */ 8267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8269#define $ac_func innocuous_$ac_func 8270 8271/* System header to define __stub macros and hopefully few prototypes, 8272 which can conflict with char $ac_func (); below. 8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8274 <limits.h> exists even on freestanding compilers. */ 8275 8276#ifdef __STDC__ 8277# include <limits.h> 8278#else 8279# include <assert.h> 8280#endif 8281 8282#undef $ac_func 8283 8284/* Override any GCC internal prototype to avoid an error. 8285 Use char because int might match the return type of a GCC 8286 builtin and then its argument prototype would still apply. */ 8287#ifdef __cplusplus 8288extern "C" 8289#endif 8290char $ac_func (); 8291/* The GNU C library defines this for functions which it implements 8292 to always fail with ENOSYS. Some functions are actually named 8293 something starting with __ and the normal name is an alias. */ 8294#if defined __stub_$ac_func || defined __stub___$ac_func 8295choke me 8296#endif 8297 8298int 8299main () 8300{ 8301return $ac_func (); 8302 ; 8303 return 0; 8304} 8305_ACEOF 8306rm -f conftest.$ac_objext conftest$ac_exeext 8307if { (ac_try="$ac_link" 8308case "(($ac_try" in 8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8310 *) ac_try_echo=$ac_try;; 8311esac 8312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8313$as_echo "$ac_try_echo") >&5 8314 (eval "$ac_link") 2>conftest.er1 8315 ac_status=$? 8316 grep -v '^ *+' conftest.er1 >conftest.err 8317 rm -f conftest.er1 8318 cat conftest.err >&5 8319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); } && { 8321 test -z "$ac_c_werror_flag" || 8322 test ! -s conftest.err 8323 } && test -s conftest$ac_exeext && { 8324 test "$cross_compiling" = yes || 8325 $as_test_x conftest$ac_exeext 8326 }; then 8327 eval "$as_ac_var=yes" 8328else 8329 $as_echo "$as_me: failed program was:" >&5 8330sed 's/^/| /' conftest.$ac_ext >&5 8331 8332 eval "$as_ac_var=no" 8333fi 8334 8335rm -rf conftest.dSYM 8336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8337 conftest$ac_exeext conftest.$ac_ext 8338fi 8339ac_res=`eval 'as_val=${'$as_ac_var'} 8340 $as_echo "$as_val"'` 8341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8342$as_echo "$ac_res" >&6; } 8343as_val=`eval 'as_val=${'$as_ac_var'} 8344 $as_echo "$as_val"'` 8345 if test "x$as_val" = x""yes; then 8346 cat >>confdefs.h <<_ACEOF 8347#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8348_ACEOF 8349 8350else 8351 GETOPT_H=getopt.h 8352fi 8353done 8354 8355 fi 8356 8357 if test -z "$GETOPT_H"; then 8358 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 8359$as_echo_n "checking whether optreset is declared... " >&6; } 8360if test "${ac_cv_have_decl_optreset+set}" = set; then 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat >conftest.$ac_ext <<_ACEOF 8364/* confdefs.h. */ 8365_ACEOF 8366cat confdefs.h >>conftest.$ac_ext 8367cat >>conftest.$ac_ext <<_ACEOF 8368/* end confdefs.h. */ 8369#include <getopt.h> 8370 8371int 8372main () 8373{ 8374#ifndef optreset 8375 (void) optreset; 8376#endif 8377 8378 ; 8379 return 0; 8380} 8381_ACEOF 8382rm -f conftest.$ac_objext 8383if { (ac_try="$ac_compile" 8384case "(($ac_try" in 8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8386 *) ac_try_echo=$ac_try;; 8387esac 8388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8389$as_echo "$ac_try_echo") >&5 8390 (eval "$ac_compile") 2>conftest.er1 8391 ac_status=$? 8392 grep -v '^ *+' conftest.er1 >conftest.err 8393 rm -f conftest.er1 8394 cat conftest.err >&5 8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 (exit $ac_status); } && { 8397 test -z "$ac_c_werror_flag" || 8398 test ! -s conftest.err 8399 } && test -s conftest.$ac_objext; then 8400 ac_cv_have_decl_optreset=yes 8401else 8402 $as_echo "$as_me: failed program was:" >&5 8403sed 's/^/| /' conftest.$ac_ext >&5 8404 8405 ac_cv_have_decl_optreset=no 8406fi 8407 8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8409fi 8410{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 8411$as_echo "$ac_cv_have_decl_optreset" >&6; } 8412if test "x$ac_cv_have_decl_optreset" = x""yes; then 8413 GETOPT_H=getopt.h 8414fi 8415 8416 fi 8417 8418 if test -z "$GETOPT_H"; then 8419 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 8420$as_echo_n "checking for working GNU getopt function... " >&6; } 8421if test "${gl_cv_func_gnu_getopt+set}" = set; then 8422 $as_echo_n "(cached) " >&6 8423else 8424 if test "$cross_compiling" = yes; then 8425 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 8426$as_echo_n "checking whether getopt_clip is declared... " >&6; } 8427if test "${ac_cv_have_decl_getopt_clip+set}" = set; then 8428 $as_echo_n "(cached) " >&6 8429else 8430 cat >conftest.$ac_ext <<_ACEOF 8431/* confdefs.h. */ 8432_ACEOF 8433cat confdefs.h >>conftest.$ac_ext 8434cat >>conftest.$ac_ext <<_ACEOF 8435/* end confdefs.h. */ 8436#include <getopt.h> 8437 8438int 8439main () 8440{ 8441#ifndef getopt_clip 8442 (void) getopt_clip; 8443#endif 8444 8445 ; 8446 return 0; 8447} 8448_ACEOF 8449rm -f conftest.$ac_objext 8450if { (ac_try="$ac_compile" 8451case "(($ac_try" in 8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8453 *) ac_try_echo=$ac_try;; 8454esac 8455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8456$as_echo "$ac_try_echo") >&5 8457 (eval "$ac_compile") 2>conftest.er1 8458 ac_status=$? 8459 grep -v '^ *+' conftest.er1 >conftest.err 8460 rm -f conftest.er1 8461 cat conftest.err >&5 8462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8463 (exit $ac_status); } && { 8464 test -z "$ac_c_werror_flag" || 8465 test ! -s conftest.err 8466 } && test -s conftest.$ac_objext; then 8467 ac_cv_have_decl_getopt_clip=yes 8468else 8469 $as_echo "$as_me: failed program was:" >&5 8470sed 's/^/| /' conftest.$ac_ext >&5 8471 8472 ac_cv_have_decl_getopt_clip=no 8473fi 8474 8475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8476fi 8477{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 8478$as_echo "$ac_cv_have_decl_getopt_clip" >&6; } 8479if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then 8480 gl_cv_func_gnu_getopt=no 8481else 8482 gl_cv_func_gnu_getopt=yes 8483fi 8484 8485else 8486 cat >conftest.$ac_ext <<_ACEOF 8487/* confdefs.h. */ 8488_ACEOF 8489cat confdefs.h >>conftest.$ac_ext 8490cat >>conftest.$ac_ext <<_ACEOF 8491/* end confdefs.h. */ 8492#include <getopt.h> 8493int 8494main () 8495{ 8496 8497 char *myargv[3]; 8498 myargv[0] = "conftest"; 8499 myargv[1] = "-+"; 8500 myargv[2] = 0; 8501 return getopt (2, myargv, "+a") != '?'; 8502 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507rm -f conftest$ac_exeext 8508if { (ac_try="$ac_link" 8509case "(($ac_try" in 8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8511 *) ac_try_echo=$ac_try;; 8512esac 8513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8514$as_echo "$ac_try_echo") >&5 8515 (eval "$ac_link") 2>&5 8516 ac_status=$? 8517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8519 { (case "(($ac_try" in 8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8521 *) ac_try_echo=$ac_try;; 8522esac 8523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8524$as_echo "$ac_try_echo") >&5 8525 (eval "$ac_try") 2>&5 8526 ac_status=$? 8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8528 (exit $ac_status); }; }; then 8529 gl_cv_func_gnu_getopt=yes 8530else 8531 $as_echo "$as_me: program exited with status $ac_status" >&5 8532$as_echo "$as_me: failed program was:" >&5 8533sed 's/^/| /' conftest.$ac_ext >&5 8534 8535( exit $ac_status ) 8536gl_cv_func_gnu_getopt=no 8537fi 8538rm -rf conftest.dSYM 8539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8540fi 8541 8542 8543fi 8544{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 8545$as_echo "$gl_cv_func_gnu_getopt" >&6; } 8546 if test "$gl_cv_func_gnu_getopt" = "no"; then 8547 GETOPT_H=getopt.h 8548 fi 8549 fi 8550 8551{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5 8552$as_echo_n "checking whether getenv is declared... " >&6; } 8553if test "${ac_cv_have_decl_getenv+set}" = set; then 8554 $as_echo_n "(cached) " >&6 8555else 8556 cat >conftest.$ac_ext <<_ACEOF 8557/* confdefs.h. */ 8558_ACEOF 8559cat confdefs.h >>conftest.$ac_ext 8560cat >>conftest.$ac_ext <<_ACEOF 8561/* end confdefs.h. */ 8562$ac_includes_default 8563int 8564main () 8565{ 8566#ifndef getenv 8567 (void) getenv; 8568#endif 8569 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574rm -f conftest.$ac_objext 8575if { (ac_try="$ac_compile" 8576case "(($ac_try" in 8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8578 *) ac_try_echo=$ac_try;; 8579esac 8580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8581$as_echo "$ac_try_echo") >&5 8582 (eval "$ac_compile") 2>conftest.er1 8583 ac_status=$? 8584 grep -v '^ *+' conftest.er1 >conftest.err 8585 rm -f conftest.er1 8586 cat conftest.err >&5 8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8588 (exit $ac_status); } && { 8589 test -z "$ac_c_werror_flag" || 8590 test ! -s conftest.err 8591 } && test -s conftest.$ac_objext; then 8592 ac_cv_have_decl_getenv=yes 8593else 8594 $as_echo "$as_me: failed program was:" >&5 8595sed 's/^/| /' conftest.$ac_ext >&5 8596 8597 ac_cv_have_decl_getenv=no 8598fi 8599 8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8601fi 8602{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 8603$as_echo "$ac_cv_have_decl_getenv" >&6; } 8604if test "x$ac_cv_have_decl_getenv" = x""yes; then 8605 8606cat >>confdefs.h <<_ACEOF 8607#define HAVE_DECL_GETENV 1 8608_ACEOF 8609 8610 8611else 8612 cat >>confdefs.h <<_ACEOF 8613#define HAVE_DECL_GETENV 0 8614_ACEOF 8615 8616 8617fi 8618 8619 8620 8621 GNULIB_CHOWN=0; 8622 GNULIB_CLOSE=0; 8623 GNULIB_DUP2=0; 8624 GNULIB_ENVIRON=0; 8625 GNULIB_EUIDACCESS=0; 8626 GNULIB_FCHDIR=0; 8627 GNULIB_FSYNC=0; 8628 GNULIB_FTRUNCATE=0; 8629 GNULIB_GETCWD=0; 8630 GNULIB_GETDOMAINNAME=0; 8631 GNULIB_GETDTABLESIZE=0; 8632 GNULIB_GETHOSTNAME=0; 8633 GNULIB_GETLOGIN_R=0; 8634 GNULIB_GETPAGESIZE=0; 8635 GNULIB_GETUSERSHELL=0; 8636 GNULIB_LCHOWN=0; 8637 GNULIB_LINK=0; 8638 GNULIB_LSEEK=0; 8639 GNULIB_READLINK=0; 8640 GNULIB_SLEEP=0; 8641 GNULIB_UNISTD_H_SIGPIPE=0; 8642 GNULIB_WRITE=0; 8643 HAVE_DUP2=1; 8644 HAVE_EUIDACCESS=1; 8645 HAVE_FSYNC=1; 8646 HAVE_FTRUNCATE=1; 8647 HAVE_GETDOMAINNAME=1; 8648 HAVE_GETDTABLESIZE=1; 8649 HAVE_GETHOSTNAME=1; 8650 HAVE_GETPAGESIZE=1; 8651 HAVE_GETUSERSHELL=1; 8652 HAVE_LINK=1; 8653 HAVE_READLINK=1; 8654 HAVE_SLEEP=1; 8655 HAVE_DECL_ENVIRON=1; 8656 HAVE_DECL_GETLOGIN_R=1; 8657 HAVE_OS_H=0; 8658 HAVE_SYS_PARAM_H=0; 8659 REPLACE_CHOWN=0; 8660 REPLACE_CLOSE=0; 8661 REPLACE_FCHDIR=0; 8662 REPLACE_GETCWD=0; 8663 REPLACE_GETPAGESIZE=0; 8664 REPLACE_LCHOWN=0; 8665 REPLACE_LSEEK=0; 8666 REPLACE_WRITE=0; 8667 UNISTD_H_HAVE_WINSOCK2_H=0; 8668 8669{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 8670$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 8671if test "${ac_cv_c_restrict+set}" = set; then 8672 $as_echo_n "(cached) " >&6 8673else 8674 ac_cv_c_restrict=no 8675 # The order here caters to the fact that C++ does not require restrict. 8676 for ac_kw in __restrict __restrict__ _Restrict restrict; do 8677 cat >conftest.$ac_ext <<_ACEOF 8678/* confdefs.h. */ 8679_ACEOF 8680cat confdefs.h >>conftest.$ac_ext 8681cat >>conftest.$ac_ext <<_ACEOF 8682/* end confdefs.h. */ 8683typedef int * int_ptr; 8684 int foo (int_ptr $ac_kw ip) { 8685 return ip[0]; 8686 } 8687int 8688main () 8689{ 8690int s[1]; 8691 int * $ac_kw t = s; 8692 t[0] = 0; 8693 return foo(t) 8694 ; 8695 return 0; 8696} 8697_ACEOF 8698rm -f conftest.$ac_objext 8699if { (ac_try="$ac_compile" 8700case "(($ac_try" in 8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8702 *) ac_try_echo=$ac_try;; 8703esac 8704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8705$as_echo "$ac_try_echo") >&5 8706 (eval "$ac_compile") 2>conftest.er1 8707 ac_status=$? 8708 grep -v '^ *+' conftest.er1 >conftest.err 8709 rm -f conftest.er1 8710 cat conftest.err >&5 8711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8712 (exit $ac_status); } && { 8713 test -z "$ac_c_werror_flag" || 8714 test ! -s conftest.err 8715 } && test -s conftest.$ac_objext; then 8716 ac_cv_c_restrict=$ac_kw 8717else 8718 $as_echo "$as_me: failed program was:" >&5 8719sed 's/^/| /' conftest.$ac_ext >&5 8720 8721 8722fi 8723 8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8725 test "$ac_cv_c_restrict" != no && break 8726 done 8727 8728fi 8729{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 8730$as_echo "$ac_cv_c_restrict" >&6; } 8731 8732 8733 case $ac_cv_c_restrict in 8734 restrict) ;; 8735 no) cat >>confdefs.h <<\_ACEOF 8736#define restrict /**/ 8737_ACEOF 8738 ;; 8739 *) cat >>confdefs.h <<_ACEOF 8740#define restrict $ac_cv_c_restrict 8741_ACEOF 8742 ;; 8743 esac 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 if test $gl_cv_have_include_next = yes; then 8761 gl_cv_next_sys_time_h='<'sys/time.h'>' 8762 else 8763 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5 8764$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } 8765if test "${gl_cv_next_sys_time_h+set}" = set; then 8766 $as_echo_n "(cached) " >&6 8767else 8768 8769 if test $ac_cv_header_sys_time_h = yes; then 8770 cat >conftest.$ac_ext <<_ACEOF 8771/* confdefs.h. */ 8772_ACEOF 8773cat confdefs.h >>conftest.$ac_ext 8774cat >>conftest.$ac_ext <<_ACEOF 8775/* end confdefs.h. */ 8776#include <sys/time.h> 8777 8778_ACEOF 8779 case "$host_os" in 8780 aix*) gl_absname_cpp="$ac_cpp -C" ;; 8781 *) gl_absname_cpp="$ac_cpp" ;; 8782 esac 8783 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 8784 sed -n '\#/sys/time.h#{ 8785 s#.*"\(.*/sys/time.h\)".*#\1# 8786 s#^/[^/]#//&# 8787 p 8788 q 8789 }'`'"' 8790 else 8791 gl_cv_next_sys_time_h='<'sys/time.h'>' 8792 fi 8793 8794fi 8795{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5 8796$as_echo "$gl_cv_next_sys_time_h" >&6; } 8797 fi 8798 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 8799 8800 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 8801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 8802 gl_next_as_first_directive='<'sys/time.h'>' 8803 else 8804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 8805 gl_next_as_first_directive=$gl_cv_next_sys_time_h 8806 fi 8807 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 8808 8809 8810 8811 8812 if test $ac_cv_header_sys_time_h = yes; then 8813 HAVE_SYS_TIME_H=1 8814 else 8815 HAVE_SYS_TIME_H=0 8816 fi 8817 8818 8819 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 8820$as_echo_n "checking for struct timeval... " >&6; } 8821if test "${gl_cv_sys_struct_timeval+set}" = set; then 8822 $as_echo_n "(cached) " >&6 8823else 8824 cat >conftest.$ac_ext <<_ACEOF 8825/* confdefs.h. */ 8826_ACEOF 8827cat confdefs.h >>conftest.$ac_ext 8828cat >>conftest.$ac_ext <<_ACEOF 8829/* end confdefs.h. */ 8830#if HAVE_SYS_TIME_H 8831 #include <sys/time.h> 8832 #endif 8833 #include <time.h> 8834 8835int 8836main () 8837{ 8838static struct timeval x; x.tv_sec = x.tv_usec; 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext 8844if { (ac_try="$ac_compile" 8845case "(($ac_try" in 8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8847 *) ac_try_echo=$ac_try;; 8848esac 8849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8850$as_echo "$ac_try_echo") >&5 8851 (eval "$ac_compile") 2>conftest.er1 8852 ac_status=$? 8853 grep -v '^ *+' conftest.er1 >conftest.err 8854 rm -f conftest.er1 8855 cat conftest.err >&5 8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } && { 8858 test -z "$ac_c_werror_flag" || 8859 test ! -s conftest.err 8860 } && test -s conftest.$ac_objext; then 8861 gl_cv_sys_struct_timeval=yes 8862else 8863 $as_echo "$as_me: failed program was:" >&5 8864sed 's/^/| /' conftest.$ac_ext >&5 8865 8866 gl_cv_sys_struct_timeval=no 8867fi 8868 8869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8870fi 8871{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5 8872$as_echo "$gl_cv_sys_struct_timeval" >&6; } 8873 if test $gl_cv_sys_struct_timeval = yes; then 8874 HAVE_STRUCT_TIMEVAL=1 8875 else 8876 HAVE_STRUCT_TIMEVAL=0 8877 fi 8878 8879 8880 REPLACE_GETTIMEOFDAY=0 8881 8882 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then 8883 SYS_TIME_H=sys/time.h 8884 else 8885 SYS_TIME_H= 8886 fi 8887 8888 8889 8890 8891 8892 8893 8894{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 8895$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 8896if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 8897 $as_echo_n "(cached) " >&6 8898else 8899 cat >conftest.$ac_ext <<_ACEOF 8900/* confdefs.h. */ 8901_ACEOF 8902cat confdefs.h >>conftest.$ac_ext 8903cat >>conftest.$ac_ext <<_ACEOF 8904/* end confdefs.h. */ 8905$ac_includes_default 8906int 8907main () 8908{ 8909#ifndef getc_unlocked 8910 (void) getc_unlocked; 8911#endif 8912 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917rm -f conftest.$ac_objext 8918if { (ac_try="$ac_compile" 8919case "(($ac_try" in 8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8921 *) ac_try_echo=$ac_try;; 8922esac 8923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8924$as_echo "$ac_try_echo") >&5 8925 (eval "$ac_compile") 2>conftest.er1 8926 ac_status=$? 8927 grep -v '^ *+' conftest.er1 >conftest.err 8928 rm -f conftest.er1 8929 cat conftest.err >&5 8930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); } && { 8932 test -z "$ac_c_werror_flag" || 8933 test ! -s conftest.err 8934 } && test -s conftest.$ac_objext; then 8935 ac_cv_have_decl_getc_unlocked=yes 8936else 8937 $as_echo "$as_me: failed program was:" >&5 8938sed 's/^/| /' conftest.$ac_ext >&5 8939 8940 ac_cv_have_decl_getc_unlocked=no 8941fi 8942 8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8944fi 8945{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 8946$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 8947if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then 8948 8949cat >>confdefs.h <<_ACEOF 8950#define HAVE_DECL_GETC_UNLOCKED 1 8951_ACEOF 8952 8953 8954else 8955 cat >>confdefs.h <<_ACEOF 8956#define HAVE_DECL_GETC_UNLOCKED 0 8957_ACEOF 8958 8959 8960fi 8961 8962 8963 8964 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 8965$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 8966if test "${ac_cv_gnu_library_2_1+set}" = set; then 8967 $as_echo_n "(cached) " >&6 8968else 8969 cat >conftest.$ac_ext <<_ACEOF 8970/* confdefs.h. */ 8971_ACEOF 8972cat confdefs.h >>conftest.$ac_ext 8973cat >>conftest.$ac_ext <<_ACEOF 8974/* end confdefs.h. */ 8975 8976#include <features.h> 8977#ifdef __GNU_LIBRARY__ 8978 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 8979 Lucky GNU user 8980 #endif 8981#endif 8982 8983_ACEOF 8984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8985 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 8986 ac_cv_gnu_library_2_1=yes 8987else 8988 ac_cv_gnu_library_2_1=no 8989fi 8990rm -f conftest* 8991 8992 8993 8994fi 8995{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 8996$as_echo "$ac_cv_gnu_library_2_1" >&6; } 8997 8998 GLIBC21="$ac_cv_gnu_library_2_1" 8999 9000 9001 9002 GNULIB_LCHMOD=0; 9003 GNULIB_LSTAT=0; 9004 HAVE_LCHMOD=1; 9005 REPLACE_LSTAT=0; 9006 REPLACE_MKDIR=0; 9007 9008 9009 9010 9011 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5 9012$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 9013if test "${gl_cv_func_malloc_posix+set}" = set; then 9014 $as_echo_n "(cached) " >&6 9015else 9016 9017 cat >conftest.$ac_ext <<_ACEOF 9018/* confdefs.h. */ 9019_ACEOF 9020cat confdefs.h >>conftest.$ac_ext 9021cat >>conftest.$ac_ext <<_ACEOF 9022/* end confdefs.h. */ 9023 9024int 9025main () 9026{ 9027#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 9028 choke me 9029 #endif 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035rm -f conftest.$ac_objext 9036if { (ac_try="$ac_compile" 9037case "(($ac_try" in 9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9039 *) ac_try_echo=$ac_try;; 9040esac 9041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9042$as_echo "$ac_try_echo") >&5 9043 (eval "$ac_compile") 2>conftest.er1 9044 ac_status=$? 9045 grep -v '^ *+' conftest.er1 >conftest.err 9046 rm -f conftest.er1 9047 cat conftest.err >&5 9048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9049 (exit $ac_status); } && { 9050 test -z "$ac_c_werror_flag" || 9051 test ! -s conftest.err 9052 } && test -s conftest.$ac_objext; then 9053 gl_cv_func_malloc_posix=yes 9054else 9055 $as_echo "$as_me: failed program was:" >&5 9056sed 's/^/| /' conftest.$ac_ext >&5 9057 9058 gl_cv_func_malloc_posix=no 9059fi 9060 9061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9062 9063fi 9064{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5 9065$as_echo "$gl_cv_func_malloc_posix" >&6; } 9066 9067 9068 GNULIB_MALLOC_POSIX=0; 9069 GNULIB_REALLOC_POSIX=0; 9070 GNULIB_CALLOC_POSIX=0; 9071 GNULIB_ATOLL=0; 9072 GNULIB_GETLOADAVG=0; 9073 GNULIB_GETSUBOPT=0; 9074 GNULIB_MKDTEMP=0; 9075 GNULIB_MKSTEMP=0; 9076 GNULIB_PUTENV=0; 9077 GNULIB_RANDOM_R=0; 9078 GNULIB_RPMATCH=0; 9079 GNULIB_SETENV=0; 9080 GNULIB_STRTOD=0; 9081 GNULIB_STRTOLL=0; 9082 GNULIB_STRTOULL=0; 9083 GNULIB_UNSETENV=0; 9084 HAVE_ATOLL=1; 9085 HAVE_CALLOC_POSIX=1; 9086 HAVE_GETSUBOPT=1; 9087 HAVE_MALLOC_POSIX=1; 9088 HAVE_MKDTEMP=1; 9089 HAVE_REALLOC_POSIX=1; 9090 HAVE_RANDOM_R=1; 9091 HAVE_RPMATCH=1; 9092 HAVE_SETENV=1; 9093 HAVE_STRTOD=1; 9094 HAVE_STRTOLL=1; 9095 HAVE_STRTOULL=1; 9096 HAVE_STRUCT_RANDOM_DATA=1; 9097 HAVE_SYS_LOADAVG_H=0; 9098 HAVE_UNSETENV=1; 9099 HAVE_DECL_GETLOADAVG=1; 9100 REPLACE_MKSTEMP=0; 9101 REPLACE_PUTENV=0; 9102 REPLACE_STRTOD=0; 9103 VOID_UNSETENV=0; 9104 9105 9106 9107 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 9108$as_echo_n "checking for mbstate_t... " >&6; } 9109if test "${ac_cv_type_mbstate_t+set}" = set; then 9110 $as_echo_n "(cached) " >&6 9111else 9112 cat >conftest.$ac_ext <<_ACEOF 9113/* confdefs.h. */ 9114_ACEOF 9115cat confdefs.h >>conftest.$ac_ext 9116cat >>conftest.$ac_ext <<_ACEOF 9117/* end confdefs.h. */ 9118$ac_includes_default 9119# include <wchar.h> 9120int 9121main () 9122{ 9123mbstate_t x; return sizeof x; 9124 ; 9125 return 0; 9126} 9127_ACEOF 9128rm -f conftest.$ac_objext 9129if { (ac_try="$ac_compile" 9130case "(($ac_try" in 9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9132 *) ac_try_echo=$ac_try;; 9133esac 9134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9135$as_echo "$ac_try_echo") >&5 9136 (eval "$ac_compile") 2>conftest.er1 9137 ac_status=$? 9138 grep -v '^ *+' conftest.er1 >conftest.err 9139 rm -f conftest.er1 9140 cat conftest.err >&5 9141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9142 (exit $ac_status); } && { 9143 test -z "$ac_c_werror_flag" || 9144 test ! -s conftest.err 9145 } && test -s conftest.$ac_objext; then 9146 ac_cv_type_mbstate_t=yes 9147else 9148 $as_echo "$as_me: failed program was:" >&5 9149sed 's/^/| /' conftest.$ac_ext >&5 9150 9151 ac_cv_type_mbstate_t=no 9152fi 9153 9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9155fi 9156{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 9157$as_echo "$ac_cv_type_mbstate_t" >&6; } 9158 if test $ac_cv_type_mbstate_t = yes; then 9159 9160cat >>confdefs.h <<\_ACEOF 9161#define HAVE_MBSTATE_T 1 9162_ACEOF 9163 9164 else 9165 9166cat >>confdefs.h <<\_ACEOF 9167#define mbstate_t int 9168_ACEOF 9169 9170 fi 9171 9172 9173 9174 9175 9176 9177 9178 9179 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5 9180$as_echo_n "checking for a traditional japanese locale... " >&6; } 9181if test "${gt_cv_locale_ja+set}" = set; then 9182 $as_echo_n "(cached) " >&6 9183else 9184 9185 cat >conftest.$ac_ext <<_ACEOF 9186/* confdefs.h. */ 9187_ACEOF 9188cat confdefs.h >>conftest.$ac_ext 9189cat >>conftest.$ac_ext <<_ACEOF 9190/* end confdefs.h. */ 9191 9192#include <locale.h> 9193#include <time.h> 9194#if HAVE_LANGINFO_CODESET 9195# include <langinfo.h> 9196#endif 9197#include <stdlib.h> 9198#include <string.h> 9199struct tm t; 9200char buf[16]; 9201int main () 9202{ 9203 const char *p; 9204 /* Check whether the given locale name is recognized by the system. */ 9205 if (setlocale (LC_ALL, "") == NULL) return 1; 9206 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 9207 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 9208 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 9209 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 9210 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 9211 some unit tests fail. */ 9212#if HAVE_LANGINFO_CODESET 9213 { 9214 const char *cs = nl_langinfo (CODESET); 9215 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 9216 return 1; 9217 } 9218#endif 9219#ifdef __CYGWIN__ 9220 /* On Cygwin, avoid locale names without encoding suffix, because the 9221 locale_charset() function relies on the encoding suffix. Note that 9222 LC_ALL is set on the command line. */ 9223 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 9224#endif 9225 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 9226 on Cygwin 1.5.x. */ 9227 if (MB_CUR_MAX == 1) 9228 return 1; 9229 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 9230 This excludes the UTF-8 encoding. */ 9231 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 9232 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 9233 for (p = buf; *p != '\0'; p++) 9234 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 9235 return 1; 9236 return 0; 9237} 9238 9239_ACEOF 9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9241 (eval $ac_link) 2>&5 9242 ac_status=$? 9243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9244 (exit $ac_status); } && test -s conftest$ac_exeext; then 9245 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 9246 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 9247 # configure script would override the LC_ALL setting. Likewise for 9248 # LC_CTYPE, which is also set at the beginning of the configure script. 9249 # Test for the AIX locale name. 9250 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9251 gt_cv_locale_ja=ja_JP 9252 else 9253 # Test for the locale name with explicit encoding suffix. 9254 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9255 gt_cv_locale_ja=ja_JP.EUC-JP 9256 else 9257 # Test for the HP-UX, OSF/1, NetBSD locale name. 9258 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9259 gt_cv_locale_ja=ja_JP.eucJP 9260 else 9261 # Test for the IRIX, FreeBSD locale name. 9262 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9263 gt_cv_locale_ja=ja_JP.EUC 9264 else 9265 # Test for the Solaris 7 locale name. 9266 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9267 gt_cv_locale_ja=ja 9268 else 9269 # Special test for NetBSD 1.6. 9270 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 9271 gt_cv_locale_ja=ja_JP.eucJP 9272 else 9273 # None found. 9274 gt_cv_locale_ja=none 9275 fi 9276 fi 9277 fi 9278 fi 9279 fi 9280 fi 9281 fi 9282 rm -fr conftest* 9283 9284fi 9285{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5 9286$as_echo "$gt_cv_locale_ja" >&6; } 9287 LOCALE_JA=$gt_cv_locale_ja 9288 9289 9290 9291 9292 9293 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5 9294$as_echo_n "checking for a transitional chinese locale... " >&6; } 9295if test "${gt_cv_locale_zh_CN+set}" = set; then 9296 $as_echo_n "(cached) " >&6 9297else 9298 9299 cat >conftest.$ac_ext <<_ACEOF 9300/* confdefs.h. */ 9301_ACEOF 9302cat confdefs.h >>conftest.$ac_ext 9303cat >>conftest.$ac_ext <<_ACEOF 9304/* end confdefs.h. */ 9305 9306#include <locale.h> 9307#include <stdlib.h> 9308#include <time.h> 9309#if HAVE_LANGINFO_CODESET 9310# include <langinfo.h> 9311#endif 9312#include <stdlib.h> 9313#include <string.h> 9314struct tm t; 9315char buf[16]; 9316int main () 9317{ 9318 const char *p; 9319 /* Check whether the given locale name is recognized by the system. */ 9320 if (setlocale (LC_ALL, "") == NULL) return 1; 9321 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 9322 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 9323 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 9324 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 9325 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 9326 some unit tests fail. */ 9327#if HAVE_LANGINFO_CODESET 9328 { 9329 const char *cs = nl_langinfo (CODESET); 9330 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 9331 return 1; 9332 } 9333#endif 9334#ifdef __CYGWIN__ 9335 /* On Cygwin, avoid locale names without encoding suffix, because the 9336 locale_charset() function relies on the encoding suffix. Note that 9337 LC_ALL is set on the command line. */ 9338 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 9339#endif 9340 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 9341 This excludes the UTF-8 encoding. */ 9342 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 9343 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 9344 for (p = buf; *p != '\0'; p++) 9345 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 9346 return 1; 9347 /* Check whether a typical GB18030 multibyte sequence is recognized as a 9348 single wide character. This excludes the GB2312 and GBK encodings. */ 9349 if (mblen ("\203\062\332\066", 5) != 4) 9350 return 1; 9351 return 0; 9352} 9353 9354_ACEOF 9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9356 (eval $ac_link) 2>&5 9357 ac_status=$? 9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9359 (exit $ac_status); } && test -s conftest$ac_exeext; then 9360 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 9361 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 9362 # configure script would override the LC_ALL setting. Likewise for 9363 # LC_CTYPE, which is also set at the beginning of the configure script. 9364 # Test for the locale name without encoding suffix. 9365 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9366 gt_cv_locale_zh_CN=zh_CN 9367 else 9368 # Test for the locale name with explicit encoding suffix. 9369 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9370 gt_cv_locale_zh_CN=zh_CN.GB18030 9371 else 9372 # None found. 9373 gt_cv_locale_zh_CN=none 9374 fi 9375 fi 9376 else 9377 # If there was a link error, due to mblen(), the system is so old that 9378 # it certainly doesn't have a chinese locale. 9379 gt_cv_locale_zh_CN=none 9380 fi 9381 rm -fr conftest* 9382 9383fi 9384{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5 9385$as_echo "$gt_cv_locale_zh_CN" >&6; } 9386 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 9387 9388 9389 9390 9391 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5 9392$as_echo_n "checking for a french Unicode locale... " >&6; } 9393if test "${gt_cv_locale_fr_utf8+set}" = set; then 9394 $as_echo_n "(cached) " >&6 9395else 9396 9397 cat >conftest.$ac_ext <<_ACEOF 9398/* confdefs.h. */ 9399_ACEOF 9400cat confdefs.h >>conftest.$ac_ext 9401cat >>conftest.$ac_ext <<_ACEOF 9402/* end confdefs.h. */ 9403 9404#include <locale.h> 9405#include <time.h> 9406#if HAVE_LANGINFO_CODESET 9407# include <langinfo.h> 9408#endif 9409#include <stdlib.h> 9410#include <string.h> 9411struct tm t; 9412char buf[16]; 9413int main () { 9414 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 9415 imitates locale dependent behaviour by looking at the environment 9416 variables, and all locales use the UTF-8 encoding. */ 9417#if !(defined __BEOS__ || defined __HAIKU__) 9418 /* Check whether the given locale name is recognized by the system. */ 9419 if (setlocale (LC_ALL, "") == NULL) return 1; 9420 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 9421 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 9422 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 9423 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 9424 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 9425 some unit tests fail. */ 9426# if HAVE_LANGINFO_CODESET 9427 { 9428 const char *cs = nl_langinfo (CODESET); 9429 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 9430 return 1; 9431 } 9432# endif 9433# ifdef __CYGWIN__ 9434 /* On Cygwin, avoid locale names without encoding suffix, because the 9435 locale_charset() function relies on the encoding suffix. Note that 9436 LC_ALL is set on the command line. */ 9437 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 9438# endif 9439 /* Check whether in the abbreviation of the second month, the second 9440 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 9441 two bytes long, with UTF-8 encoding. */ 9442 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 9443 if (strftime (buf, sizeof (buf), "%b", &t) < 4 9444 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 9445 return 1; 9446#endif 9447 /* Check whether the decimal separator is a comma. 9448 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 9449 are nl_langinfo(RADIXCHAR) are both ".". */ 9450 if (localeconv () ->decimal_point[0] != ',') return 1; 9451 return 0; 9452} 9453 9454_ACEOF 9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9456 (eval $ac_link) 2>&5 9457 ac_status=$? 9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9459 (exit $ac_status); } && test -s conftest$ac_exeext; then 9460 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 9461 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 9462 # configure script would override the LC_ALL setting. Likewise for 9463 # LC_CTYPE, which is also set at the beginning of the configure script. 9464 # Test for the usual locale name. 9465 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9466 gt_cv_locale_fr_utf8=fr_FR 9467 else 9468 # Test for the locale name with explicit encoding suffix. 9469 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9470 gt_cv_locale_fr_utf8=fr_FR.UTF-8 9471 else 9472 # Test for the Solaris 7 locale name. 9473 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 9474 gt_cv_locale_fr_utf8=fr.UTF-8 9475 else 9476 # None found. 9477 gt_cv_locale_fr_utf8=none 9478 fi 9479 fi 9480 fi 9481 fi 9482 rm -fr conftest* 9483 9484fi 9485{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5 9486$as_echo "$gt_cv_locale_fr_utf8" >&6; } 9487 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 9511 9512 9513 9514 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5 9515$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 9516if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then 9517 $as_echo_n "(cached) " >&6 9518else 9519 9520 case "$host_os" in 9521 # Guess no on AIX and OSF/1. 9522 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 9523 # Guess yes otherwise. 9524 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 9525 esac 9526 if test $LOCALE_JA != none; then 9527 if test "$cross_compiling" = yes; then 9528 : 9529else 9530 cat >conftest.$ac_ext <<_ACEOF 9531/* confdefs.h. */ 9532_ACEOF 9533cat confdefs.h >>conftest.$ac_ext 9534cat >>conftest.$ac_ext <<_ACEOF 9535/* end confdefs.h. */ 9536 9537#include <locale.h> 9538#include <string.h> 9539#include <wchar.h> 9540int main () 9541{ 9542 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 9543 { 9544 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 9545 mbstate_t state; 9546 wchar_t wc; 9547 9548 memset (&state, '\0', sizeof (mbstate_t)); 9549 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9550 if (mbsinit (&state)) 9551 return 1; 9552 } 9553 return 0; 9554} 9555_ACEOF 9556rm -f conftest$ac_exeext 9557if { (ac_try="$ac_link" 9558case "(($ac_try" in 9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9560 *) ac_try_echo=$ac_try;; 9561esac 9562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9563$as_echo "$ac_try_echo") >&5 9564 (eval "$ac_link") 2>&5 9565 ac_status=$? 9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9568 { (case "(($ac_try" in 9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9570 *) ac_try_echo=$ac_try;; 9571esac 9572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9573$as_echo "$ac_try_echo") >&5 9574 (eval "$ac_try") 2>&5 9575 ac_status=$? 9576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9577 (exit $ac_status); }; }; then 9578 gl_cv_func_mbrtowc_incomplete_state=yes 9579else 9580 $as_echo "$as_me: program exited with status $ac_status" >&5 9581$as_echo "$as_me: failed program was:" >&5 9582sed 's/^/| /' conftest.$ac_ext >&5 9583 9584( exit $ac_status ) 9585gl_cv_func_mbrtowc_incomplete_state=no 9586fi 9587rm -rf conftest.dSYM 9588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9589fi 9590 9591 9592 fi 9593 9594fi 9595{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 9596$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 9597 9598 9599 9600 9601 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5 9602$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 9603if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then 9604 $as_echo_n "(cached) " >&6 9605else 9606 9607 case "$host_os" in 9608 # Guess no on Solaris 8. 9609 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 9610 # Guess yes otherwise. 9611 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 9612 esac 9613 if test $LOCALE_ZH_CN != none; then 9614 if test "$cross_compiling" = yes; then 9615 : 9616else 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#include <locale.h> 9625#include <stdlib.h> 9626#include <string.h> 9627#include <wchar.h> 9628int main () 9629{ 9630 /* This fails on Solaris 8: 9631 mbrtowc returns 2, and sets wc to 0x00F0. 9632 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 9633 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 9634 { 9635 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 9636 mbstate_t state; 9637 wchar_t wc; 9638 9639 memset (&state, '\0', sizeof (mbstate_t)); 9640 if (mbrtowc (&wc, input + 3, 6, &state) != 4 9641 && mbtowc (&wc, input + 3, 6) == 4) 9642 return 1; 9643 } 9644 return 0; 9645} 9646_ACEOF 9647rm -f conftest$ac_exeext 9648if { (ac_try="$ac_link" 9649case "(($ac_try" in 9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9651 *) ac_try_echo=$ac_try;; 9652esac 9653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9654$as_echo "$ac_try_echo") >&5 9655 (eval "$ac_link") 2>&5 9656 ac_status=$? 9657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9659 { (case "(($ac_try" in 9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9661 *) ac_try_echo=$ac_try;; 9662esac 9663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9664$as_echo "$ac_try_echo") >&5 9665 (eval "$ac_try") 2>&5 9666 ac_status=$? 9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); }; }; then 9669 gl_cv_func_mbrtowc_sanitycheck=yes 9670else 9671 $as_echo "$as_me: program exited with status $ac_status" >&5 9672$as_echo "$as_me: failed program was:" >&5 9673sed 's/^/| /' conftest.$ac_ext >&5 9674 9675( exit $ac_status ) 9676gl_cv_func_mbrtowc_sanitycheck=no 9677fi 9678rm -rf conftest.dSYM 9679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9680fi 9681 9682 9683 fi 9684 9685fi 9686{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 9687$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 9688 9689 REPLACE_MBSTATE_T=0 9690 case "$gl_cv_func_mbrtowc_incomplete_state" in 9691 *yes) ;; 9692 *) REPLACE_MBSTATE_T=1 ;; 9693 esac 9694 case "$gl_cv_func_mbrtowc_sanitycheck" in 9695 *yes) ;; 9696 *) REPLACE_MBSTATE_T=1 ;; 9697 esac 9698 else 9699 REPLACE_MBSTATE_T=1 9700 fi 9701 if test $REPLACE_MBSTATE_T = 1; then 9702 9703 9704 WCHAR_H=wchar.h 9705 9706 fi 9707 9708 if test $REPLACE_MBSTATE_T = 1; then 9709 REPLACE_MBRTOWC=1 9710 fi 9711 9712 9713 9714 9715 9716 9717 if test $ac_cv_func_mbrtowc = no; then 9718 HAVE_MBRTOWC=0 9719 fi 9720 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then 9721 9722 9723 9724 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5 9725$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } 9726if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then 9727 $as_echo_n "(cached) " >&6 9728else 9729 9730 case "$host_os" in 9731 # Guess no on OSF/1. 9732 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; 9733 # Guess yes otherwise. 9734 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; 9735 esac 9736 if test $LOCALE_FR_UTF8 != none; then 9737 if test "$cross_compiling" = yes; then 9738 : 9739else 9740 cat >conftest.$ac_ext <<_ACEOF 9741/* confdefs.h. */ 9742_ACEOF 9743cat confdefs.h >>conftest.$ac_ext 9744cat >>conftest.$ac_ext <<_ACEOF 9745/* end confdefs.h. */ 9746 9747#include <locale.h> 9748#include <string.h> 9749#include <wchar.h> 9750int main () 9751{ 9752 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 9753 { 9754 mbstate_t state; 9755 wchar_t wc; 9756 int ret; 9757 9758 memset (&state, '\0', sizeof (mbstate_t)); 9759 wc = (wchar_t) 0xBADFACE; 9760 mbrtowc (&wc, NULL, 5, &state); 9761 /* Check that wc was not modified. */ 9762 if (wc != (wchar_t) 0xBADFACE) 9763 return 1; 9764 } 9765 return 0; 9766} 9767_ACEOF 9768rm -f conftest$ac_exeext 9769if { (ac_try="$ac_link" 9770case "(($ac_try" in 9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9772 *) ac_try_echo=$ac_try;; 9773esac 9774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9775$as_echo "$ac_try_echo") >&5 9776 (eval "$ac_link") 2>&5 9777 ac_status=$? 9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9780 { (case "(($ac_try" in 9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9782 *) ac_try_echo=$ac_try;; 9783esac 9784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9785$as_echo "$ac_try_echo") >&5 9786 (eval "$ac_try") 2>&5 9787 ac_status=$? 9788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; }; then 9790 gl_cv_func_mbrtowc_null_arg=yes 9791else 9792 $as_echo "$as_me: program exited with status $ac_status" >&5 9793$as_echo "$as_me: failed program was:" >&5 9794sed 's/^/| /' conftest.$ac_ext >&5 9795 9796( exit $ac_status ) 9797gl_cv_func_mbrtowc_null_arg=no 9798fi 9799rm -rf conftest.dSYM 9800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9801fi 9802 9803 9804 fi 9805 9806fi 9807{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5 9808$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; } 9809 9810 9811 9812 9813 9814 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5 9815$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } 9816if test "${gl_cv_func_mbrtowc_retval+set}" = set; then 9817 $as_echo_n "(cached) " >&6 9818else 9819 9820 case "$host_os" in 9821 # Guess no on HP-UX and Solaris. 9822 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; 9823 # Guess yes otherwise. 9824 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 9825 esac 9826 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then 9827 if test "$cross_compiling" = yes; then 9828 : 9829else 9830 cat >conftest.$ac_ext <<_ACEOF 9831/* confdefs.h. */ 9832_ACEOF 9833cat confdefs.h >>conftest.$ac_ext 9834cat >>conftest.$ac_ext <<_ACEOF 9835/* end confdefs.h. */ 9836 9837#include <locale.h> 9838#include <string.h> 9839#include <wchar.h> 9840int main () 9841{ 9842 /* This fails on Solaris. */ 9843 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 9844 { 9845 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 9846 mbstate_t state; 9847 wchar_t wc; 9848 9849 memset (&state, '\0', sizeof (mbstate_t)); 9850 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9851 { 9852 input[1] = '\0'; 9853 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 9854 return 1; 9855 } 9856 } 9857 /* This fails on HP-UX 11.11. */ 9858 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 9859 { 9860 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 9861 mbstate_t state; 9862 wchar_t wc; 9863 9864 memset (&state, '\0', sizeof (mbstate_t)); 9865 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9866 { 9867 input[1] = '\0'; 9868 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 9869 return 1; 9870 } 9871 } 9872 return 0; 9873} 9874_ACEOF 9875rm -f conftest$ac_exeext 9876if { (ac_try="$ac_link" 9877case "(($ac_try" in 9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9879 *) ac_try_echo=$ac_try;; 9880esac 9881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9882$as_echo "$ac_try_echo") >&5 9883 (eval "$ac_link") 2>&5 9884 ac_status=$? 9885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9887 { (case "(($ac_try" in 9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9889 *) ac_try_echo=$ac_try;; 9890esac 9891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9892$as_echo "$ac_try_echo") >&5 9893 (eval "$ac_try") 2>&5 9894 ac_status=$? 9895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 (exit $ac_status); }; }; then 9897 gl_cv_func_mbrtowc_retval=yes 9898else 9899 $as_echo "$as_me: program exited with status $ac_status" >&5 9900$as_echo "$as_me: failed program was:" >&5 9901sed 's/^/| /' conftest.$ac_ext >&5 9902 9903( exit $ac_status ) 9904gl_cv_func_mbrtowc_retval=no 9905fi 9906rm -rf conftest.dSYM 9907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9908fi 9909 9910 9911 fi 9912 9913fi 9914{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5 9915$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } 9916 9917 9918 9919 9920 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 9921$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 9922if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then 9923 $as_echo_n "(cached) " >&6 9924else 9925 9926 case "$host_os" in 9927 # Guess no on Solaris 8 and 9. 9928 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 9929 # Guess yes otherwise. 9930 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 9931 esac 9932 if test $LOCALE_ZH_CN != none; then 9933 if test "$cross_compiling" = yes; then 9934 : 9935else 9936 cat >conftest.$ac_ext <<_ACEOF 9937/* confdefs.h. */ 9938_ACEOF 9939cat confdefs.h >>conftest.$ac_ext 9940cat >>conftest.$ac_ext <<_ACEOF 9941/* end confdefs.h. */ 9942 9943#include <locale.h> 9944#include <string.h> 9945#include <wchar.h> 9946int main () 9947{ 9948 /* This fails on Solaris 8 and 9. */ 9949 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 9950 { 9951 mbstate_t state; 9952 wchar_t wc; 9953 9954 memset (&state, '\0', sizeof (mbstate_t)); 9955 if (mbrtowc (&wc, "", 1, &state) != 0) 9956 return 1; 9957 } 9958 return 0; 9959} 9960_ACEOF 9961rm -f conftest$ac_exeext 9962if { (ac_try="$ac_link" 9963case "(($ac_try" in 9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9965 *) ac_try_echo=$ac_try;; 9966esac 9967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9968$as_echo "$ac_try_echo") >&5 9969 (eval "$ac_link") 2>&5 9970 ac_status=$? 9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9973 { (case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976esac 9977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9978$as_echo "$ac_try_echo") >&5 9979 (eval "$ac_try") 2>&5 9980 ac_status=$? 9981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9982 (exit $ac_status); }; }; then 9983 gl_cv_func_mbrtowc_nul_retval=yes 9984else 9985 $as_echo "$as_me: program exited with status $ac_status" >&5 9986$as_echo "$as_me: failed program was:" >&5 9987sed 's/^/| /' conftest.$ac_ext >&5 9988 9989( exit $ac_status ) 9990gl_cv_func_mbrtowc_nul_retval=no 9991fi 9992rm -rf conftest.dSYM 9993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9994fi 9995 9996 9997 fi 9998 9999fi 10000{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5 10001$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } 10002 10003 case "$gl_cv_func_mbrtowc_null_arg" in 10004 *yes) ;; 10005 *) 10006cat >>confdefs.h <<\_ACEOF 10007#define MBRTOWC_NULL_ARG_BUG 1 10008_ACEOF 10009 10010 REPLACE_MBRTOWC=1 10011 ;; 10012 esac 10013 case "$gl_cv_func_mbrtowc_retval" in 10014 *yes) ;; 10015 *) 10016cat >>confdefs.h <<\_ACEOF 10017#define MBRTOWC_RETVAL_BUG 1 10018_ACEOF 10019 10020 REPLACE_MBRTOWC=1 10021 ;; 10022 esac 10023 case "$gl_cv_func_mbrtowc_nul_retval" in 10024 *yes) ;; 10025 *) 10026cat >>confdefs.h <<\_ACEOF 10027#define MBRTOWC_NUL_RETVAL_BUG 1 10028_ACEOF 10029 10030 REPLACE_MBRTOWC=1 10031 ;; 10032 esac 10033 fi 10034 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 10035 10036 10037 WCHAR_H=wchar.h 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 10048 10049 10050 : 10051 10052 fi 10053 10054 10055 10056 10057 10058 10059 10060 10061 GNULIB_MEMCHR=0; 10062 GNULIB_MEMMEM=0; 10063 GNULIB_MEMPCPY=0; 10064 GNULIB_MEMRCHR=0; 10065 GNULIB_RAWMEMCHR=0; 10066 GNULIB_STPCPY=0; 10067 GNULIB_STPNCPY=0; 10068 GNULIB_STRCHRNUL=0; 10069 GNULIB_STRDUP=0; 10070 GNULIB_STRNDUP=0; 10071 GNULIB_STRNLEN=0; 10072 GNULIB_STRPBRK=0; 10073 GNULIB_STRSEP=0; 10074 GNULIB_STRSTR=0; 10075 GNULIB_STRCASESTR=0; 10076 GNULIB_STRTOK_R=0; 10077 GNULIB_MBSLEN=0; 10078 GNULIB_MBSNLEN=0; 10079 GNULIB_MBSCHR=0; 10080 GNULIB_MBSRCHR=0; 10081 GNULIB_MBSSTR=0; 10082 GNULIB_MBSCASECMP=0; 10083 GNULIB_MBSNCASECMP=0; 10084 GNULIB_MBSPCASECMP=0; 10085 GNULIB_MBSCASESTR=0; 10086 GNULIB_MBSCSPN=0; 10087 GNULIB_MBSPBRK=0; 10088 GNULIB_MBSSPN=0; 10089 GNULIB_MBSSEP=0; 10090 GNULIB_MBSTOK_R=0; 10091 GNULIB_STRERROR=0; 10092 GNULIB_STRSIGNAL=0; 10093 GNULIB_STRVERSCMP=0; 10094 HAVE_DECL_MEMMEM=1; 10095 HAVE_MEMPCPY=1; 10096 HAVE_DECL_MEMRCHR=1; 10097 HAVE_RAWMEMCHR=1; 10098 HAVE_STPCPY=1; 10099 HAVE_STPNCPY=1; 10100 HAVE_STRCHRNUL=1; 10101 HAVE_DECL_STRDUP=1; 10102 HAVE_STRNDUP=1; 10103 HAVE_DECL_STRNDUP=1; 10104 HAVE_DECL_STRNLEN=1; 10105 HAVE_STRPBRK=1; 10106 HAVE_STRSEP=1; 10107 HAVE_STRCASESTR=1; 10108 HAVE_DECL_STRTOK_R=1; 10109 HAVE_DECL_STRERROR=1; 10110 HAVE_DECL_STRSIGNAL=1; 10111 HAVE_STRVERSCMP=1; 10112 REPLACE_MEMCHR=0; 10113 REPLACE_MEMMEM=0; 10114 REPLACE_STRDUP=0; 10115 REPLACE_STRSTR=0; 10116 REPLACE_STRCASESTR=0; 10117 REPLACE_STRERROR=0; 10118 REPLACE_STRSIGNAL=0; 10119 10120 10121 10122 10123 10124 10125 10126 10127 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 10128 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 10129 # irrelevant for anonymous mappings. 10130 { $as_echo "$as_me:$LINENO: checking for mmap" >&5 10131$as_echo_n "checking for mmap... " >&6; } 10132if test "${ac_cv_func_mmap+set}" = set; then 10133 $as_echo_n "(cached) " >&6 10134else 10135 cat >conftest.$ac_ext <<_ACEOF 10136/* confdefs.h. */ 10137_ACEOF 10138cat confdefs.h >>conftest.$ac_ext 10139cat >>conftest.$ac_ext <<_ACEOF 10140/* end confdefs.h. */ 10141/* Define mmap to an innocuous variant, in case <limits.h> declares mmap. 10142 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10143#define mmap innocuous_mmap 10144 10145/* System header to define __stub macros and hopefully few prototypes, 10146 which can conflict with char mmap (); below. 10147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10148 <limits.h> exists even on freestanding compilers. */ 10149 10150#ifdef __STDC__ 10151# include <limits.h> 10152#else 10153# include <assert.h> 10154#endif 10155 10156#undef mmap 10157 10158/* Override any GCC internal prototype to avoid an error. 10159 Use char because int might match the return type of a GCC 10160 builtin and then its argument prototype would still apply. */ 10161#ifdef __cplusplus 10162extern "C" 10163#endif 10164char mmap (); 10165/* The GNU C library defines this for functions which it implements 10166 to always fail with ENOSYS. Some functions are actually named 10167 something starting with __ and the normal name is an alias. */ 10168#if defined __stub_mmap || defined __stub___mmap 10169choke me 10170#endif 10171 10172int 10173main () 10174{ 10175return mmap (); 10176 ; 10177 return 0; 10178} 10179_ACEOF 10180rm -f conftest.$ac_objext conftest$ac_exeext 10181if { (ac_try="$ac_link" 10182case "(($ac_try" in 10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10184 *) ac_try_echo=$ac_try;; 10185esac 10186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10187$as_echo "$ac_try_echo") >&5 10188 (eval "$ac_link") 2>conftest.er1 10189 ac_status=$? 10190 grep -v '^ *+' conftest.er1 >conftest.err 10191 rm -f conftest.er1 10192 cat conftest.err >&5 10193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); } && { 10195 test -z "$ac_c_werror_flag" || 10196 test ! -s conftest.err 10197 } && test -s conftest$ac_exeext && { 10198 test "$cross_compiling" = yes || 10199 $as_test_x conftest$ac_exeext 10200 }; then 10201 ac_cv_func_mmap=yes 10202else 10203 $as_echo "$as_me: failed program was:" >&5 10204sed 's/^/| /' conftest.$ac_ext >&5 10205 10206 ac_cv_func_mmap=no 10207fi 10208 10209rm -rf conftest.dSYM 10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10211 conftest$ac_exeext conftest.$ac_ext 10212fi 10213{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 10214$as_echo "$ac_cv_func_mmap" >&6; } 10215if test "x$ac_cv_func_mmap" = x""yes; then 10216 gl_have_mmap=yes 10217else 10218 gl_have_mmap=no 10219fi 10220 10221 10222 # Try to allow MAP_ANONYMOUS. 10223 gl_have_mmap_anonymous=no 10224 if test $gl_have_mmap = yes; then 10225 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5 10226$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } 10227 cat >conftest.$ac_ext <<_ACEOF 10228/* confdefs.h. */ 10229_ACEOF 10230cat confdefs.h >>conftest.$ac_ext 10231cat >>conftest.$ac_ext <<_ACEOF 10232/* end confdefs.h. */ 10233 10234#include <sys/mman.h> 10235#ifdef MAP_ANONYMOUS 10236 I cant identify this map. 10237#endif 10238 10239_ACEOF 10240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10241 $EGREP "I cant identify this map." >/dev/null 2>&1; then 10242 gl_have_mmap_anonymous=yes 10243fi 10244rm -f conftest* 10245 10246 if test $gl_have_mmap_anonymous != yes; then 10247 cat >conftest.$ac_ext <<_ACEOF 10248/* confdefs.h. */ 10249_ACEOF 10250cat confdefs.h >>conftest.$ac_ext 10251cat >>conftest.$ac_ext <<_ACEOF 10252/* end confdefs.h. */ 10253 10254#include <sys/mman.h> 10255#ifdef MAP_ANON 10256 I cant identify this map. 10257#endif 10258 10259_ACEOF 10260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10261 $EGREP "I cant identify this map." >/dev/null 2>&1; then 10262 10263cat >>confdefs.h <<\_ACEOF 10264#define MAP_ANONYMOUS MAP_ANON 10265_ACEOF 10266 10267 gl_have_mmap_anonymous=yes 10268fi 10269rm -f conftest* 10270 10271 fi 10272 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5 10273$as_echo "$gl_have_mmap_anonymous" >&6; } 10274 if test $gl_have_mmap_anonymous = yes; then 10275 10276cat >>confdefs.h <<\_ACEOF 10277#define HAVE_MAP_ANONYMOUS 1 10278_ACEOF 10279 10280 fi 10281 fi 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306for ac_func in memchr 10307do 10308as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10309{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10310$as_echo_n "checking for $ac_func... " >&6; } 10311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat >conftest.$ac_ext <<_ACEOF 10315/* confdefs.h. */ 10316_ACEOF 10317cat confdefs.h >>conftest.$ac_ext 10318cat >>conftest.$ac_ext <<_ACEOF 10319/* end confdefs.h. */ 10320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10321 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10322#define $ac_func innocuous_$ac_func 10323 10324/* System header to define __stub macros and hopefully few prototypes, 10325 which can conflict with char $ac_func (); below. 10326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10327 <limits.h> exists even on freestanding compilers. */ 10328 10329#ifdef __STDC__ 10330# include <limits.h> 10331#else 10332# include <assert.h> 10333#endif 10334 10335#undef $ac_func 10336 10337/* Override any GCC internal prototype to avoid an error. 10338 Use char because int might match the return type of a GCC 10339 builtin and then its argument prototype would still apply. */ 10340#ifdef __cplusplus 10341extern "C" 10342#endif 10343char $ac_func (); 10344/* The GNU C library defines this for functions which it implements 10345 to always fail with ENOSYS. Some functions are actually named 10346 something starting with __ and the normal name is an alias. */ 10347#if defined __stub_$ac_func || defined __stub___$ac_func 10348choke me 10349#endif 10350 10351int 10352main () 10353{ 10354return $ac_func (); 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359rm -f conftest.$ac_objext conftest$ac_exeext 10360if { (ac_try="$ac_link" 10361case "(($ac_try" in 10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10363 *) ac_try_echo=$ac_try;; 10364esac 10365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10366$as_echo "$ac_try_echo") >&5 10367 (eval "$ac_link") 2>conftest.er1 10368 ac_status=$? 10369 grep -v '^ *+' conftest.er1 >conftest.err 10370 rm -f conftest.er1 10371 cat conftest.err >&5 10372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10373 (exit $ac_status); } && { 10374 test -z "$ac_c_werror_flag" || 10375 test ! -s conftest.err 10376 } && test -s conftest$ac_exeext && { 10377 test "$cross_compiling" = yes || 10378 $as_test_x conftest$ac_exeext 10379 }; then 10380 eval "$as_ac_var=yes" 10381else 10382 $as_echo "$as_me: failed program was:" >&5 10383sed 's/^/| /' conftest.$ac_ext >&5 10384 10385 eval "$as_ac_var=no" 10386fi 10387 10388rm -rf conftest.dSYM 10389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10390 conftest$ac_exeext conftest.$ac_ext 10391fi 10392ac_res=`eval 'as_val=${'$as_ac_var'} 10393 $as_echo "$as_val"'` 10394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10395$as_echo "$ac_res" >&6; } 10396as_val=`eval 'as_val=${'$as_ac_var'} 10397 $as_echo "$as_val"'` 10398 if test "x$as_val" = x""yes; then 10399 cat >>confdefs.h <<_ACEOF 10400#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10401_ACEOF 10402 10403else 10404 10405 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 10406 10407fi 10408done 10409 10410 10411 if test $ac_cv_func_memchr = no; then 10412 10413 10414for ac_header in bp-sym.h 10415do 10416as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10419$as_echo_n "checking for $ac_header... " >&6; } 10420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10421 $as_echo_n "(cached) " >&6 10422fi 10423ac_res=`eval 'as_val=${'$as_ac_Header'} 10424 $as_echo "$as_val"'` 10425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10426$as_echo "$ac_res" >&6; } 10427else 10428 # Is the header compilable? 10429{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 10430$as_echo_n "checking $ac_header usability... " >&6; } 10431cat >conftest.$ac_ext <<_ACEOF 10432/* confdefs.h. */ 10433_ACEOF 10434cat confdefs.h >>conftest.$ac_ext 10435cat >>conftest.$ac_ext <<_ACEOF 10436/* end confdefs.h. */ 10437$ac_includes_default 10438#include <$ac_header> 10439_ACEOF 10440rm -f conftest.$ac_objext 10441if { (ac_try="$ac_compile" 10442case "(($ac_try" in 10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10444 *) ac_try_echo=$ac_try;; 10445esac 10446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10447$as_echo "$ac_try_echo") >&5 10448 (eval "$ac_compile") 2>conftest.er1 10449 ac_status=$? 10450 grep -v '^ *+' conftest.er1 >conftest.err 10451 rm -f conftest.er1 10452 cat conftest.err >&5 10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10454 (exit $ac_status); } && { 10455 test -z "$ac_c_werror_flag" || 10456 test ! -s conftest.err 10457 } && test -s conftest.$ac_objext; then 10458 ac_header_compiler=yes 10459else 10460 $as_echo "$as_me: failed program was:" >&5 10461sed 's/^/| /' conftest.$ac_ext >&5 10462 10463 ac_header_compiler=no 10464fi 10465 10466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10467{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10468$as_echo "$ac_header_compiler" >&6; } 10469 10470# Is the header present? 10471{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 10472$as_echo_n "checking $ac_header presence... " >&6; } 10473cat >conftest.$ac_ext <<_ACEOF 10474/* confdefs.h. */ 10475_ACEOF 10476cat confdefs.h >>conftest.$ac_ext 10477cat >>conftest.$ac_ext <<_ACEOF 10478/* end confdefs.h. */ 10479#include <$ac_header> 10480_ACEOF 10481if { (ac_try="$ac_cpp conftest.$ac_ext" 10482case "(($ac_try" in 10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10484 *) ac_try_echo=$ac_try;; 10485esac 10486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10487$as_echo "$ac_try_echo") >&5 10488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10489 ac_status=$? 10490 grep -v '^ *+' conftest.er1 >conftest.err 10491 rm -f conftest.er1 10492 cat conftest.err >&5 10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10494 (exit $ac_status); } >/dev/null && { 10495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10496 test ! -s conftest.err 10497 }; then 10498 ac_header_preproc=yes 10499else 10500 $as_echo "$as_me: failed program was:" >&5 10501sed 's/^/| /' conftest.$ac_ext >&5 10502 10503 ac_header_preproc=no 10504fi 10505 10506rm -f conftest.err conftest.$ac_ext 10507{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10508$as_echo "$ac_header_preproc" >&6; } 10509 10510# So? What about this header? 10511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10512 yes:no: ) 10513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10514$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10516$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10517 ac_header_preproc=yes 10518 ;; 10519 no:yes:* ) 10520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10521$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10523$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10525$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10527$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10529$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10531$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10532 ( cat <<\_ASBOX 10533## ------------------------------------ ## 10534## Report this to bug-gnu-utils@gnu.org ## 10535## ------------------------------------ ## 10536_ASBOX 10537 ) | sed "s/^/$as_me: WARNING: /" >&2 10538 ;; 10539esac 10540{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10541$as_echo_n "checking for $ac_header... " >&6; } 10542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10543 $as_echo_n "(cached) " >&6 10544else 10545 eval "$as_ac_Header=\$ac_header_preproc" 10546fi 10547ac_res=`eval 'as_val=${'$as_ac_Header'} 10548 $as_echo "$as_val"'` 10549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10550$as_echo "$ac_res" >&6; } 10551 10552fi 10553as_val=`eval 'as_val=${'$as_ac_Header'} 10554 $as_echo "$as_val"'` 10555 if test "x$as_val" = x""yes; then 10556 cat >>confdefs.h <<_ACEOF 10557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10558_ACEOF 10559 10560fi 10561 10562done 10563 10564 10565 REPLACE_MEMCHR=1 10566 fi 10567 10568 if test $ac_cv_func_memchr = yes; then 10569 # Detect platform-specific bugs in some versions of glibc: 10570 # memchr should not dereference anything with length 0 10571 # http://bugzilla.redhat.com/499689 10572 # memchr should not dereference overestimated length after a match 10573 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 10574 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 10575 # Assume that memchr works on platforms that lack mprotect. 10576 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5 10577$as_echo_n "checking whether memchr works... " >&6; } 10578if test "${gl_cv_func_memchr_works+set}" = set; then 10579 $as_echo_n "(cached) " >&6 10580else 10581 if test "$cross_compiling" = yes; then 10582 gl_cv_func_memchr_works="guessing no" 10583else 10584 cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591#include <string.h> 10592#if HAVE_SYS_MMAN_H 10593# include <fcntl.h> 10594# include <unistd.h> 10595# include <sys/types.h> 10596# include <sys/mman.h> 10597# ifndef MAP_FILE 10598# define MAP_FILE 0 10599# endif 10600#endif 10601 10602int 10603main () 10604{ 10605 10606 char *fence = NULL; 10607#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 10608# if HAVE_MAP_ANONYMOUS 10609 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 10610 const int fd = -1; 10611# else /* !HAVE_MAP_ANONYMOUS */ 10612 const int flags = MAP_FILE | MAP_PRIVATE; 10613 int fd = open ("/dev/zero", O_RDONLY, 0666); 10614 if (fd >= 0) 10615# endif 10616 { 10617 int pagesize = getpagesize (); 10618 char *two_pages = 10619 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 10620 flags, fd, 0); 10621 if (two_pages != (char *)(-1) 10622 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 10623 fence = two_pages + pagesize; 10624 } 10625#endif 10626 if (fence) 10627 { 10628 if (memchr (fence, 0, 0)) 10629 return 1; 10630 strcpy (fence - 9, "12345678"); 10631 if (memchr (fence - 9, 0, 79) != fence - 1) 10632 return 2; 10633 } 10634 return 0; 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640rm -f conftest$ac_exeext 10641if { (ac_try="$ac_link" 10642case "(($ac_try" in 10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10644 *) ac_try_echo=$ac_try;; 10645esac 10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10647$as_echo "$ac_try_echo") >&5 10648 (eval "$ac_link") 2>&5 10649 ac_status=$? 10650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10652 { (case "(($ac_try" in 10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10654 *) ac_try_echo=$ac_try;; 10655esac 10656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10657$as_echo "$ac_try_echo") >&5 10658 (eval "$ac_try") 2>&5 10659 ac_status=$? 10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 (exit $ac_status); }; }; then 10662 gl_cv_func_memchr_works=yes 10663else 10664 $as_echo "$as_me: program exited with status $ac_status" >&5 10665$as_echo "$as_me: failed program was:" >&5 10666sed 's/^/| /' conftest.$ac_ext >&5 10667 10668( exit $ac_status ) 10669gl_cv_func_memchr_works=no 10670fi 10671rm -rf conftest.dSYM 10672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10673fi 10674 10675 10676fi 10677{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5 10678$as_echo "$gl_cv_func_memchr_works" >&6; } 10679 if test "$gl_cv_func_memchr_works" != yes; then 10680 10681 10682for ac_header in bp-sym.h 10683do 10684as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10687$as_echo_n "checking for $ac_header... " >&6; } 10688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10689 $as_echo_n "(cached) " >&6 10690fi 10691ac_res=`eval 'as_val=${'$as_ac_Header'} 10692 $as_echo "$as_val"'` 10693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10694$as_echo "$ac_res" >&6; } 10695else 10696 # Is the header compilable? 10697{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 10698$as_echo_n "checking $ac_header usability... " >&6; } 10699cat >conftest.$ac_ext <<_ACEOF 10700/* confdefs.h. */ 10701_ACEOF 10702cat confdefs.h >>conftest.$ac_ext 10703cat >>conftest.$ac_ext <<_ACEOF 10704/* end confdefs.h. */ 10705$ac_includes_default 10706#include <$ac_header> 10707_ACEOF 10708rm -f conftest.$ac_objext 10709if { (ac_try="$ac_compile" 10710case "(($ac_try" in 10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10712 *) ac_try_echo=$ac_try;; 10713esac 10714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10715$as_echo "$ac_try_echo") >&5 10716 (eval "$ac_compile") 2>conftest.er1 10717 ac_status=$? 10718 grep -v '^ *+' conftest.er1 >conftest.err 10719 rm -f conftest.er1 10720 cat conftest.err >&5 10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10722 (exit $ac_status); } && { 10723 test -z "$ac_c_werror_flag" || 10724 test ! -s conftest.err 10725 } && test -s conftest.$ac_objext; then 10726 ac_header_compiler=yes 10727else 10728 $as_echo "$as_me: failed program was:" >&5 10729sed 's/^/| /' conftest.$ac_ext >&5 10730 10731 ac_header_compiler=no 10732fi 10733 10734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10735{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10736$as_echo "$ac_header_compiler" >&6; } 10737 10738# Is the header present? 10739{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 10740$as_echo_n "checking $ac_header presence... " >&6; } 10741cat >conftest.$ac_ext <<_ACEOF 10742/* confdefs.h. */ 10743_ACEOF 10744cat confdefs.h >>conftest.$ac_ext 10745cat >>conftest.$ac_ext <<_ACEOF 10746/* end confdefs.h. */ 10747#include <$ac_header> 10748_ACEOF 10749if { (ac_try="$ac_cpp conftest.$ac_ext" 10750case "(($ac_try" in 10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10752 *) ac_try_echo=$ac_try;; 10753esac 10754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10755$as_echo "$ac_try_echo") >&5 10756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10757 ac_status=$? 10758 grep -v '^ *+' conftest.er1 >conftest.err 10759 rm -f conftest.er1 10760 cat conftest.err >&5 10761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10762 (exit $ac_status); } >/dev/null && { 10763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10764 test ! -s conftest.err 10765 }; then 10766 ac_header_preproc=yes 10767else 10768 $as_echo "$as_me: failed program was:" >&5 10769sed 's/^/| /' conftest.$ac_ext >&5 10770 10771 ac_header_preproc=no 10772fi 10773 10774rm -f conftest.err conftest.$ac_ext 10775{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10776$as_echo "$ac_header_preproc" >&6; } 10777 10778# So? What about this header? 10779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10780 yes:no: ) 10781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10782$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10784$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10785 ac_header_preproc=yes 10786 ;; 10787 no:yes:* ) 10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10789$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10791$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10793$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10795$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10797$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10799$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10800 ( cat <<\_ASBOX 10801## ------------------------------------ ## 10802## Report this to bug-gnu-utils@gnu.org ## 10803## ------------------------------------ ## 10804_ASBOX 10805 ) | sed "s/^/$as_me: WARNING: /" >&2 10806 ;; 10807esac 10808{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10809$as_echo_n "checking for $ac_header... " >&6; } 10810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10811 $as_echo_n "(cached) " >&6 10812else 10813 eval "$as_ac_Header=\$ac_header_preproc" 10814fi 10815ac_res=`eval 'as_val=${'$as_ac_Header'} 10816 $as_echo "$as_val"'` 10817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 10818$as_echo "$ac_res" >&6; } 10819 10820fi 10821as_val=`eval 'as_val=${'$as_ac_Header'} 10822 $as_echo "$as_val"'` 10823 if test "x$as_val" = x""yes; then 10824 cat >>confdefs.h <<_ACEOF 10825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10826_ACEOF 10827 10828fi 10829 10830done 10831 10832 10833 REPLACE_MEMCHR=1 10834 10835 10836 10837 10838 10839 10840 10841 10842 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 10843 10844 fi 10845 fi 10846 10847# Check whether --enable-largefile was given. 10848if test "${enable_largefile+set}" = set; then 10849 enableval=$enable_largefile; 10850fi 10851 10852if test "$enable_largefile" != no; then 10853 10854 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 10855$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10856if test "${ac_cv_sys_largefile_CC+set}" = set; then 10857 $as_echo_n "(cached) " >&6 10858else 10859 ac_cv_sys_largefile_CC=no 10860 if test "$GCC" != yes; then 10861 ac_save_CC=$CC 10862 while :; do 10863 # IRIX 6.2 and later do not support large files by default, 10864 # so use the C compiler's -n32 option if that helps. 10865 cat >conftest.$ac_ext <<_ACEOF 10866/* confdefs.h. */ 10867_ACEOF 10868cat confdefs.h >>conftest.$ac_ext 10869cat >>conftest.$ac_ext <<_ACEOF 10870/* end confdefs.h. */ 10871#include <sys/types.h> 10872 /* Check that off_t can represent 2**63 - 1 correctly. 10873 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10874 since some C++ compilers masquerading as C compilers 10875 incorrectly reject 9223372036854775807. */ 10876#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10878 && LARGE_OFF_T % 2147483647 == 1) 10879 ? 1 : -1]; 10880int 10881main () 10882{ 10883 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888 rm -f conftest.$ac_objext 10889if { (ac_try="$ac_compile" 10890case "(($ac_try" in 10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10892 *) ac_try_echo=$ac_try;; 10893esac 10894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10895$as_echo "$ac_try_echo") >&5 10896 (eval "$ac_compile") 2>conftest.er1 10897 ac_status=$? 10898 grep -v '^ *+' conftest.er1 >conftest.err 10899 rm -f conftest.er1 10900 cat conftest.err >&5 10901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10902 (exit $ac_status); } && { 10903 test -z "$ac_c_werror_flag" || 10904 test ! -s conftest.err 10905 } && test -s conftest.$ac_objext; then 10906 break 10907else 10908 $as_echo "$as_me: failed program was:" >&5 10909sed 's/^/| /' conftest.$ac_ext >&5 10910 10911 10912fi 10913 10914rm -f core conftest.err conftest.$ac_objext 10915 CC="$CC -n32" 10916 rm -f conftest.$ac_objext 10917if { (ac_try="$ac_compile" 10918case "(($ac_try" in 10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10920 *) ac_try_echo=$ac_try;; 10921esac 10922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10923$as_echo "$ac_try_echo") >&5 10924 (eval "$ac_compile") 2>conftest.er1 10925 ac_status=$? 10926 grep -v '^ *+' conftest.er1 >conftest.err 10927 rm -f conftest.er1 10928 cat conftest.err >&5 10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 (exit $ac_status); } && { 10931 test -z "$ac_c_werror_flag" || 10932 test ! -s conftest.err 10933 } && test -s conftest.$ac_objext; then 10934 ac_cv_sys_largefile_CC=' -n32'; break 10935else 10936 $as_echo "$as_me: failed program was:" >&5 10937sed 's/^/| /' conftest.$ac_ext >&5 10938 10939 10940fi 10941 10942rm -f core conftest.err conftest.$ac_objext 10943 break 10944 done 10945 CC=$ac_save_CC 10946 rm -f conftest.$ac_ext 10947 fi 10948fi 10949{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 10950$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10951 if test "$ac_cv_sys_largefile_CC" != no; then 10952 CC=$CC$ac_cv_sys_largefile_CC 10953 fi 10954 10955 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10956$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10957if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10958 $as_echo_n "(cached) " >&6 10959else 10960 while :; do 10961 cat >conftest.$ac_ext <<_ACEOF 10962/* confdefs.h. */ 10963_ACEOF 10964cat confdefs.h >>conftest.$ac_ext 10965cat >>conftest.$ac_ext <<_ACEOF 10966/* end confdefs.h. */ 10967#include <sys/types.h> 10968 /* Check that off_t can represent 2**63 - 1 correctly. 10969 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10970 since some C++ compilers masquerading as C compilers 10971 incorrectly reject 9223372036854775807. */ 10972#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10974 && LARGE_OFF_T % 2147483647 == 1) 10975 ? 1 : -1]; 10976int 10977main () 10978{ 10979 10980 ; 10981 return 0; 10982} 10983_ACEOF 10984rm -f conftest.$ac_objext 10985if { (ac_try="$ac_compile" 10986case "(($ac_try" in 10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10988 *) ac_try_echo=$ac_try;; 10989esac 10990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10991$as_echo "$ac_try_echo") >&5 10992 (eval "$ac_compile") 2>conftest.er1 10993 ac_status=$? 10994 grep -v '^ *+' conftest.er1 >conftest.err 10995 rm -f conftest.er1 10996 cat conftest.err >&5 10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10998 (exit $ac_status); } && { 10999 test -z "$ac_c_werror_flag" || 11000 test ! -s conftest.err 11001 } && test -s conftest.$ac_objext; then 11002 ac_cv_sys_file_offset_bits=no; break 11003else 11004 $as_echo "$as_me: failed program was:" >&5 11005sed 's/^/| /' conftest.$ac_ext >&5 11006 11007 11008fi 11009 11010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11011 cat >conftest.$ac_ext <<_ACEOF 11012/* confdefs.h. */ 11013_ACEOF 11014cat confdefs.h >>conftest.$ac_ext 11015cat >>conftest.$ac_ext <<_ACEOF 11016/* end confdefs.h. */ 11017#define _FILE_OFFSET_BITS 64 11018#include <sys/types.h> 11019 /* Check that off_t can represent 2**63 - 1 correctly. 11020 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11021 since some C++ compilers masquerading as C compilers 11022 incorrectly reject 9223372036854775807. */ 11023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11025 && LARGE_OFF_T % 2147483647 == 1) 11026 ? 1 : -1]; 11027int 11028main () 11029{ 11030 11031 ; 11032 return 0; 11033} 11034_ACEOF 11035rm -f conftest.$ac_objext 11036if { (ac_try="$ac_compile" 11037case "(($ac_try" in 11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11039 *) ac_try_echo=$ac_try;; 11040esac 11041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11042$as_echo "$ac_try_echo") >&5 11043 (eval "$ac_compile") 2>conftest.er1 11044 ac_status=$? 11045 grep -v '^ *+' conftest.er1 >conftest.err 11046 rm -f conftest.er1 11047 cat conftest.err >&5 11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11049 (exit $ac_status); } && { 11050 test -z "$ac_c_werror_flag" || 11051 test ! -s conftest.err 11052 } && test -s conftest.$ac_objext; then 11053 ac_cv_sys_file_offset_bits=64; break 11054else 11055 $as_echo "$as_me: failed program was:" >&5 11056sed 's/^/| /' conftest.$ac_ext >&5 11057 11058 11059fi 11060 11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11062 ac_cv_sys_file_offset_bits=unknown 11063 break 11064done 11065fi 11066{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 11067$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11068case $ac_cv_sys_file_offset_bits in #( 11069 no | unknown) ;; 11070 *) 11071cat >>confdefs.h <<_ACEOF 11072#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11073_ACEOF 11074;; 11075esac 11076rm -rf conftest* 11077 if test $ac_cv_sys_file_offset_bits = unknown; then 11078 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 11079$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11080if test "${ac_cv_sys_large_files+set}" = set; then 11081 $as_echo_n "(cached) " >&6 11082else 11083 while :; do 11084 cat >conftest.$ac_ext <<_ACEOF 11085/* confdefs.h. */ 11086_ACEOF 11087cat confdefs.h >>conftest.$ac_ext 11088cat >>conftest.$ac_ext <<_ACEOF 11089/* end confdefs.h. */ 11090#include <sys/types.h> 11091 /* Check that off_t can represent 2**63 - 1 correctly. 11092 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11093 since some C++ compilers masquerading as C compilers 11094 incorrectly reject 9223372036854775807. */ 11095#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11097 && LARGE_OFF_T % 2147483647 == 1) 11098 ? 1 : -1]; 11099int 11100main () 11101{ 11102 11103 ; 11104 return 0; 11105} 11106_ACEOF 11107rm -f conftest.$ac_objext 11108if { (ac_try="$ac_compile" 11109case "(($ac_try" in 11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11111 *) ac_try_echo=$ac_try;; 11112esac 11113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11114$as_echo "$ac_try_echo") >&5 11115 (eval "$ac_compile") 2>conftest.er1 11116 ac_status=$? 11117 grep -v '^ *+' conftest.er1 >conftest.err 11118 rm -f conftest.er1 11119 cat conftest.err >&5 11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11121 (exit $ac_status); } && { 11122 test -z "$ac_c_werror_flag" || 11123 test ! -s conftest.err 11124 } && test -s conftest.$ac_objext; then 11125 ac_cv_sys_large_files=no; break 11126else 11127 $as_echo "$as_me: failed program was:" >&5 11128sed 's/^/| /' conftest.$ac_ext >&5 11129 11130 11131fi 11132 11133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11134 cat >conftest.$ac_ext <<_ACEOF 11135/* confdefs.h. */ 11136_ACEOF 11137cat confdefs.h >>conftest.$ac_ext 11138cat >>conftest.$ac_ext <<_ACEOF 11139/* end confdefs.h. */ 11140#define _LARGE_FILES 1 11141#include <sys/types.h> 11142 /* Check that off_t can represent 2**63 - 1 correctly. 11143 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11144 since some C++ compilers masquerading as C compilers 11145 incorrectly reject 9223372036854775807. */ 11146#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11148 && LARGE_OFF_T % 2147483647 == 1) 11149 ? 1 : -1]; 11150int 11151main () 11152{ 11153 11154 ; 11155 return 0; 11156} 11157_ACEOF 11158rm -f conftest.$ac_objext 11159if { (ac_try="$ac_compile" 11160case "(($ac_try" in 11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11162 *) ac_try_echo=$ac_try;; 11163esac 11164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11165$as_echo "$ac_try_echo") >&5 11166 (eval "$ac_compile") 2>conftest.er1 11167 ac_status=$? 11168 grep -v '^ *+' conftest.er1 >conftest.err 11169 rm -f conftest.er1 11170 cat conftest.err >&5 11171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11172 (exit $ac_status); } && { 11173 test -z "$ac_c_werror_flag" || 11174 test ! -s conftest.err 11175 } && test -s conftest.$ac_objext; then 11176 ac_cv_sys_large_files=1; break 11177else 11178 $as_echo "$as_me: failed program was:" >&5 11179sed 's/^/| /' conftest.$ac_ext >&5 11180 11181 11182fi 11183 11184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11185 ac_cv_sys_large_files=unknown 11186 break 11187done 11188fi 11189{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 11190$as_echo "$ac_cv_sys_large_files" >&6; } 11191case $ac_cv_sys_large_files in #( 11192 no | unknown) ;; 11193 *) 11194cat >>confdefs.h <<_ACEOF 11195#define _LARGE_FILES $ac_cv_sys_large_files 11196_ACEOF 11197;; 11198esac 11199rm -rf conftest* 11200 fi 11201fi 11202 11203 11204 gl_cv_c_multiarch=no 11205 cat >conftest.$ac_ext <<_ACEOF 11206/* confdefs.h. */ 11207_ACEOF 11208cat confdefs.h >>conftest.$ac_ext 11209cat >>conftest.$ac_ext <<_ACEOF 11210/* end confdefs.h. */ 11211#ifndef __APPLE_CC__ 11212 not a universal capable compiler 11213 #endif 11214 typedef int dummy; 11215 11216_ACEOF 11217rm -f conftest.$ac_objext 11218if { (ac_try="$ac_compile" 11219case "(($ac_try" in 11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11221 *) ac_try_echo=$ac_try;; 11222esac 11223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11224$as_echo "$ac_try_echo") >&5 11225 (eval "$ac_compile") 2>conftest.er1 11226 ac_status=$? 11227 grep -v '^ *+' conftest.er1 >conftest.err 11228 rm -f conftest.er1 11229 cat conftest.err >&5 11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11231 (exit $ac_status); } && { 11232 test -z "$ac_c_werror_flag" || 11233 test ! -s conftest.err 11234 } && test -s conftest.$ac_objext; then 11235 11236 arch= 11237 prev= 11238 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 11239 if test -n "$prev"; then 11240 case $word in 11241 i?86 | x86_64 | ppc | ppc64) 11242 if test -z "$arch" || test "$arch" = "$word"; then 11243 arch="$word" 11244 else 11245 gl_cv_c_multiarch=yes 11246 fi 11247 ;; 11248 esac 11249 prev= 11250 else 11251 if test "x$word" = "x-arch"; then 11252 prev=arch 11253 fi 11254 fi 11255 done 11256 11257else 11258 $as_echo "$as_me: failed program was:" >&5 11259sed 's/^/| /' conftest.$ac_ext >&5 11260 11261 11262fi 11263 11264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11265 if test $gl_cv_c_multiarch = yes; then 11266 11267cat >>confdefs.h <<\_ACEOF 11268#define AA_APPLE_UNIVERSAL_BUILD 1 11269_ACEOF 11270 11271 APPLE_UNIVERSAL_BUILD=1 11272 else 11273 APPLE_UNIVERSAL_BUILD=0 11274 fi 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 LIB_SELINUX= 11293 gl_save_LIBS=$LIBS 11294 { $as_echo "$as_me:$LINENO: checking for library containing setfilecon" >&5 11295$as_echo_n "checking for library containing setfilecon... " >&6; } 11296if test "${ac_cv_search_setfilecon+set}" = set; then 11297 $as_echo_n "(cached) " >&6 11298else 11299 ac_func_search_save_LIBS=$LIBS 11300cat >conftest.$ac_ext <<_ACEOF 11301/* confdefs.h. */ 11302_ACEOF 11303cat confdefs.h >>conftest.$ac_ext 11304cat >>conftest.$ac_ext <<_ACEOF 11305/* end confdefs.h. */ 11306 11307/* Override any GCC internal prototype to avoid an error. 11308 Use char because int might match the return type of a GCC 11309 builtin and then its argument prototype would still apply. */ 11310#ifdef __cplusplus 11311extern "C" 11312#endif 11313char setfilecon (); 11314int 11315main () 11316{ 11317return setfilecon (); 11318 ; 11319 return 0; 11320} 11321_ACEOF 11322for ac_lib in '' selinux; do 11323 if test -z "$ac_lib"; then 11324 ac_res="none required" 11325 else 11326 ac_res=-l$ac_lib 11327 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11328 fi 11329 rm -f conftest.$ac_objext conftest$ac_exeext 11330if { (ac_try="$ac_link" 11331case "(($ac_try" in 11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11333 *) ac_try_echo=$ac_try;; 11334esac 11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11336$as_echo "$ac_try_echo") >&5 11337 (eval "$ac_link") 2>conftest.er1 11338 ac_status=$? 11339 grep -v '^ *+' conftest.er1 >conftest.err 11340 rm -f conftest.er1 11341 cat conftest.err >&5 11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11343 (exit $ac_status); } && { 11344 test -z "$ac_c_werror_flag" || 11345 test ! -s conftest.err 11346 } && test -s conftest$ac_exeext && { 11347 test "$cross_compiling" = yes || 11348 $as_test_x conftest$ac_exeext 11349 }; then 11350 ac_cv_search_setfilecon=$ac_res 11351else 11352 $as_echo "$as_me: failed program was:" >&5 11353sed 's/^/| /' conftest.$ac_ext >&5 11354 11355 11356fi 11357 11358rm -rf conftest.dSYM 11359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11360 conftest$ac_exeext 11361 if test "${ac_cv_search_setfilecon+set}" = set; then 11362 break 11363fi 11364done 11365if test "${ac_cv_search_setfilecon+set}" = set; then 11366 : 11367else 11368 ac_cv_search_setfilecon=no 11369fi 11370rm conftest.$ac_ext 11371LIBS=$ac_func_search_save_LIBS 11372fi 11373{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_setfilecon" >&5 11374$as_echo "$ac_cv_search_setfilecon" >&6; } 11375ac_res=$ac_cv_search_setfilecon 11376if test "$ac_res" != no; then 11377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11378 test "$ac_cv_search_setfilecon" = "none required" || 11379 LIB_SELINUX=$ac_cv_search_setfilecon 11380fi 11381 11382 11383 LIBS=$gl_save_LIBS 11384 11385 # Warn if SELinux is found but libselinux is absent; 11386 if test "$ac_cv_search_setfilecon" = no && 11387 test "$host" = "$build" && test -d /selinux; then 11388 { $as_echo "$as_me:$LINENO: WARNING: This system supports SELinux but libselinux is missing." >&5 11389$as_echo "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;} 11390 { $as_echo "$as_me:$LINENO: WARNING: sed will be compiled without SELinux support." >&5 11391$as_echo "$as_me: WARNING: sed will be compiled without SELinux support." >&2;} 11392 fi 11393 11394{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 11395$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 11396if test "${ac_cv_header_stdbool_h+set}" = set; then 11397 $as_echo_n "(cached) " >&6 11398else 11399 cat >conftest.$ac_ext <<_ACEOF 11400/* confdefs.h. */ 11401_ACEOF 11402cat confdefs.h >>conftest.$ac_ext 11403cat >>conftest.$ac_ext <<_ACEOF 11404/* end confdefs.h. */ 11405 11406 #include <stdbool.h> 11407 #ifndef bool 11408 "error: bool is not defined" 11409 #endif 11410 #ifndef false 11411 "error: false is not defined" 11412 #endif 11413 #if false 11414 "error: false is not 0" 11415 #endif 11416 #ifndef true 11417 "error: true is not defined" 11418 #endif 11419 #if true != 1 11420 "error: true is not 1" 11421 #endif 11422 #ifndef __bool_true_false_are_defined 11423 "error: __bool_true_false_are_defined is not defined" 11424 #endif 11425 11426 struct s { _Bool s: 1; _Bool t; } s; 11427 11428 char a[true == 1 ? 1 : -1]; 11429 char b[false == 0 ? 1 : -1]; 11430 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 11431 char d[(bool) 0.5 == true ? 1 : -1]; 11432 bool e = &s; 11433 char f[(_Bool) 0.0 == false ? 1 : -1]; 11434 char g[true]; 11435 char h[sizeof (_Bool)]; 11436 char i[sizeof s.t]; 11437 enum { j = false, k = true, l = false * true, m = true * 256 }; 11438 _Bool n[m]; 11439 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 11440 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 11441 #if defined __xlc__ || defined __GNUC__ 11442 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 11443 reported by James Lemley on 2005-10-05; see 11444 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 11445 This test is not quite right, since xlc is allowed to 11446 reject this program, as the initializer for xlcbug is 11447 not one of the forms that C requires support for. 11448 However, doing the test right would require a run-time 11449 test, and that would make cross-compilation harder. 11450 Let us hope that IBM fixes the xlc bug, and also adds 11451 support for this kind of constant expression. In the 11452 meantime, this test will reject xlc, which is OK, since 11453 our stdbool.h substitute should suffice. We also test 11454 this with GCC, where it should work, to detect more 11455 quickly whether someone messes up the test in the 11456 future. */ 11457 char digs[] = "0123456789"; 11458 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 11459 #endif 11460 /* Catch a bug in an HP-UX C compiler. See 11461 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 11462 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 11463 */ 11464 _Bool q = true; 11465 _Bool *pq = &q; 11466 11467int 11468main () 11469{ 11470 11471 *pq |= q; 11472 *pq |= ! q; 11473 /* Refer to every declared value, to avoid compiler optimizations. */ 11474 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 11475 + !m + !n + !o + !p + !q + !pq); 11476 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481rm -f conftest.$ac_objext 11482if { (ac_try="$ac_compile" 11483case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486esac 11487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11488$as_echo "$ac_try_echo") >&5 11489 (eval "$ac_compile") 2>conftest.er1 11490 ac_status=$? 11491 grep -v '^ *+' conftest.er1 >conftest.err 11492 rm -f conftest.er1 11493 cat conftest.err >&5 11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); } && { 11496 test -z "$ac_c_werror_flag" || 11497 test ! -s conftest.err 11498 } && test -s conftest.$ac_objext; then 11499 ac_cv_header_stdbool_h=yes 11500else 11501 $as_echo "$as_me: failed program was:" >&5 11502sed 's/^/| /' conftest.$ac_ext >&5 11503 11504 ac_cv_header_stdbool_h=no 11505fi 11506 11507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11508fi 11509{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 11510$as_echo "$ac_cv_header_stdbool_h" >&6; } 11511 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5 11512$as_echo_n "checking for _Bool... " >&6; } 11513if test "${ac_cv_type__Bool+set}" = set; then 11514 $as_echo_n "(cached) " >&6 11515else 11516 ac_cv_type__Bool=no 11517cat >conftest.$ac_ext <<_ACEOF 11518/* confdefs.h. */ 11519_ACEOF 11520cat confdefs.h >>conftest.$ac_ext 11521cat >>conftest.$ac_ext <<_ACEOF 11522/* end confdefs.h. */ 11523$ac_includes_default 11524int 11525main () 11526{ 11527if (sizeof (_Bool)) 11528 return 0; 11529 ; 11530 return 0; 11531} 11532_ACEOF 11533rm -f conftest.$ac_objext 11534if { (ac_try="$ac_compile" 11535case "(($ac_try" in 11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11537 *) ac_try_echo=$ac_try;; 11538esac 11539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11540$as_echo "$ac_try_echo") >&5 11541 (eval "$ac_compile") 2>conftest.er1 11542 ac_status=$? 11543 grep -v '^ *+' conftest.er1 >conftest.err 11544 rm -f conftest.er1 11545 cat conftest.err >&5 11546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11547 (exit $ac_status); } && { 11548 test -z "$ac_c_werror_flag" || 11549 test ! -s conftest.err 11550 } && test -s conftest.$ac_objext; then 11551 cat >conftest.$ac_ext <<_ACEOF 11552/* confdefs.h. */ 11553_ACEOF 11554cat confdefs.h >>conftest.$ac_ext 11555cat >>conftest.$ac_ext <<_ACEOF 11556/* end confdefs.h. */ 11557$ac_includes_default 11558int 11559main () 11560{ 11561if (sizeof ((_Bool))) 11562 return 0; 11563 ; 11564 return 0; 11565} 11566_ACEOF 11567rm -f conftest.$ac_objext 11568if { (ac_try="$ac_compile" 11569case "(($ac_try" in 11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11571 *) ac_try_echo=$ac_try;; 11572esac 11573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11574$as_echo "$ac_try_echo") >&5 11575 (eval "$ac_compile") 2>conftest.er1 11576 ac_status=$? 11577 grep -v '^ *+' conftest.er1 >conftest.err 11578 rm -f conftest.er1 11579 cat conftest.err >&5 11580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11581 (exit $ac_status); } && { 11582 test -z "$ac_c_werror_flag" || 11583 test ! -s conftest.err 11584 } && test -s conftest.$ac_objext; then 11585 : 11586else 11587 $as_echo "$as_me: failed program was:" >&5 11588sed 's/^/| /' conftest.$ac_ext >&5 11589 11590 ac_cv_type__Bool=yes 11591fi 11592 11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11594else 11595 $as_echo "$as_me: failed program was:" >&5 11596sed 's/^/| /' conftest.$ac_ext >&5 11597 11598 11599fi 11600 11601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11602fi 11603{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 11604$as_echo "$ac_cv_type__Bool" >&6; } 11605if test "x$ac_cv_type__Bool" = x""yes; then 11606 11607cat >>confdefs.h <<_ACEOF 11608#define HAVE__BOOL 1 11609_ACEOF 11610 11611 11612fi 11613 11614 if test $ac_cv_header_stdbool_h = yes; then 11615 11616cat >>confdefs.h <<\_ACEOF 11617#define HAVE_STDBOOL_H 1 11618_ACEOF 11619 11620 fi 11621 11622 { $as_echo "$as_me:$LINENO: checking for long long int" >&5 11623$as_echo_n "checking for long long int... " >&6; } 11624if test "${ac_cv_type_long_long_int+set}" = set; then 11625 $as_echo_n "(cached) " >&6 11626else 11627 cat >conftest.$ac_ext <<_ACEOF 11628 11629 /* confdefs.h. */ 11630_ACEOF 11631cat confdefs.h >>conftest.$ac_ext 11632cat >>conftest.$ac_ext <<_ACEOF 11633/* end confdefs.h. */ 11634/* For now, do not test the preprocessor; as of 2007 there are too many 11635 implementations with broken preprocessors. Perhaps this can 11636 be revisited in 2012. In the meantime, code should not expect 11637 #if to work with literals wider than 32 bits. */ 11638 /* Test literals. */ 11639 long long int ll = 9223372036854775807ll; 11640 long long int nll = -9223372036854775807LL; 11641 unsigned long long int ull = 18446744073709551615ULL; 11642 /* Test constant expressions. */ 11643 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11644 ? 1 : -1)]; 11645 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11646 ? 1 : -1)]; 11647 int i = 63; 11648int 11649main () 11650{ 11651/* Test availability of runtime routines for shift and division. */ 11652 long long int llmax = 9223372036854775807ll; 11653 unsigned long long int ullmax = 18446744073709551615ull; 11654 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11655 | (llmax / ll) | (llmax % ll) 11656 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11657 | (ullmax / ull) | (ullmax % ull)); 11658 ; 11659 return 0; 11660} 11661 11662_ACEOF 11663rm -f conftest.$ac_objext conftest$ac_exeext 11664if { (ac_try="$ac_link" 11665case "(($ac_try" in 11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11667 *) ac_try_echo=$ac_try;; 11668esac 11669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11670$as_echo "$ac_try_echo") >&5 11671 (eval "$ac_link") 2>conftest.er1 11672 ac_status=$? 11673 grep -v '^ *+' conftest.er1 >conftest.err 11674 rm -f conftest.er1 11675 cat conftest.err >&5 11676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11677 (exit $ac_status); } && { 11678 test -z "$ac_c_werror_flag" || 11679 test ! -s conftest.err 11680 } && test -s conftest$ac_exeext && { 11681 test "$cross_compiling" = yes || 11682 $as_test_x conftest$ac_exeext 11683 }; then 11684 if test "$cross_compiling" = yes; then 11685 ac_cv_type_long_long_int=yes 11686else 11687 cat >conftest.$ac_ext <<_ACEOF 11688/* confdefs.h. */ 11689_ACEOF 11690cat confdefs.h >>conftest.$ac_ext 11691cat >>conftest.$ac_ext <<_ACEOF 11692/* end confdefs.h. */ 11693#include <limits.h> 11694 #ifndef LLONG_MAX 11695 # define HALF \ 11696 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 11697 # define LLONG_MAX (HALF - 1 + HALF) 11698 #endif 11699int 11700main () 11701{ 11702long long int n = 1; 11703 int i; 11704 for (i = 0; ; i++) 11705 { 11706 long long int m = n << i; 11707 if (m >> i != n) 11708 return 1; 11709 if (LLONG_MAX / 2 < m) 11710 break; 11711 } 11712 return 0; 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717rm -f conftest$ac_exeext 11718if { (ac_try="$ac_link" 11719case "(($ac_try" in 11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11721 *) ac_try_echo=$ac_try;; 11722esac 11723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11724$as_echo "$ac_try_echo") >&5 11725 (eval "$ac_link") 2>&5 11726 ac_status=$? 11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11729 { (case "(($ac_try" in 11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11731 *) ac_try_echo=$ac_try;; 11732esac 11733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11734$as_echo "$ac_try_echo") >&5 11735 (eval "$ac_try") 2>&5 11736 ac_status=$? 11737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11738 (exit $ac_status); }; }; then 11739 ac_cv_type_long_long_int=yes 11740else 11741 $as_echo "$as_me: program exited with status $ac_status" >&5 11742$as_echo "$as_me: failed program was:" >&5 11743sed 's/^/| /' conftest.$ac_ext >&5 11744 11745( exit $ac_status ) 11746ac_cv_type_long_long_int=no 11747fi 11748rm -rf conftest.dSYM 11749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11750fi 11751 11752 11753else 11754 $as_echo "$as_me: failed program was:" >&5 11755sed 's/^/| /' conftest.$ac_ext >&5 11756 11757 ac_cv_type_long_long_int=no 11758fi 11759 11760rm -rf conftest.dSYM 11761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11762 conftest$ac_exeext conftest.$ac_ext 11763fi 11764{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 11765$as_echo "$ac_cv_type_long_long_int" >&6; } 11766 if test $ac_cv_type_long_long_int = yes; then 11767 11768cat >>confdefs.h <<\_ACEOF 11769#define HAVE_LONG_LONG_INT 1 11770_ACEOF 11771 11772 fi 11773 11774 11775 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5 11776$as_echo_n "checking for unsigned long long int... " >&6; } 11777if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then 11778 $as_echo_n "(cached) " >&6 11779else 11780 cat >conftest.$ac_ext <<_ACEOF 11781 11782 /* confdefs.h. */ 11783_ACEOF 11784cat confdefs.h >>conftest.$ac_ext 11785cat >>conftest.$ac_ext <<_ACEOF 11786/* end confdefs.h. */ 11787/* For now, do not test the preprocessor; as of 2007 there are too many 11788 implementations with broken preprocessors. Perhaps this can 11789 be revisited in 2012. In the meantime, code should not expect 11790 #if to work with literals wider than 32 bits. */ 11791 /* Test literals. */ 11792 long long int ll = 9223372036854775807ll; 11793 long long int nll = -9223372036854775807LL; 11794 unsigned long long int ull = 18446744073709551615ULL; 11795 /* Test constant expressions. */ 11796 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11797 ? 1 : -1)]; 11798 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11799 ? 1 : -1)]; 11800 int i = 63; 11801int 11802main () 11803{ 11804/* Test availability of runtime routines for shift and division. */ 11805 long long int llmax = 9223372036854775807ll; 11806 unsigned long long int ullmax = 18446744073709551615ull; 11807 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11808 | (llmax / ll) | (llmax % ll) 11809 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11810 | (ullmax / ull) | (ullmax % ull)); 11811 ; 11812 return 0; 11813} 11814 11815_ACEOF 11816rm -f conftest.$ac_objext conftest$ac_exeext 11817if { (ac_try="$ac_link" 11818case "(($ac_try" in 11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11820 *) ac_try_echo=$ac_try;; 11821esac 11822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11823$as_echo "$ac_try_echo") >&5 11824 (eval "$ac_link") 2>conftest.er1 11825 ac_status=$? 11826 grep -v '^ *+' conftest.er1 >conftest.err 11827 rm -f conftest.er1 11828 cat conftest.err >&5 11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11830 (exit $ac_status); } && { 11831 test -z "$ac_c_werror_flag" || 11832 test ! -s conftest.err 11833 } && test -s conftest$ac_exeext && { 11834 test "$cross_compiling" = yes || 11835 $as_test_x conftest$ac_exeext 11836 }; then 11837 ac_cv_type_unsigned_long_long_int=yes 11838else 11839 $as_echo "$as_me: failed program was:" >&5 11840sed 's/^/| /' conftest.$ac_ext >&5 11841 11842 ac_cv_type_unsigned_long_long_int=no 11843fi 11844 11845rm -rf conftest.dSYM 11846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11847 conftest$ac_exeext conftest.$ac_ext 11848fi 11849{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 11850$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 11851 if test $ac_cv_type_unsigned_long_long_int = yes; then 11852 11853cat >>confdefs.h <<\_ACEOF 11854#define HAVE_UNSIGNED_LONG_LONG_INT 1 11855_ACEOF 11856 11857 fi 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 if test -z "$ERRNO_H"; then 11873 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5 11874$as_echo_n "checking for working strerror function... " >&6; } 11875if test "${gl_cv_func_working_strerror+set}" = set; then 11876 $as_echo_n "(cached) " >&6 11877else 11878 if test "$cross_compiling" = yes; then 11879 cat >conftest.$ac_ext <<_ACEOF 11880/* confdefs.h. */ 11881_ACEOF 11882cat confdefs.h >>conftest.$ac_ext 11883cat >>conftest.$ac_ext <<_ACEOF 11884/* end confdefs.h. */ 11885#include <string.h> 11886 11887int 11888main () 11889{ 11890return !*strerror (-2); 11891 ; 11892 return 0; 11893} 11894_ACEOF 11895rm -f conftest.$ac_objext 11896if { (ac_try="$ac_compile" 11897case "(($ac_try" in 11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11899 *) ac_try_echo=$ac_try;; 11900esac 11901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11902$as_echo "$ac_try_echo") >&5 11903 (eval "$ac_compile") 2>conftest.er1 11904 ac_status=$? 11905 grep -v '^ *+' conftest.er1 >conftest.err 11906 rm -f conftest.er1 11907 cat conftest.err >&5 11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11909 (exit $ac_status); } && { 11910 test -z "$ac_c_werror_flag" || 11911 test ! -s conftest.err 11912 } && test -s conftest.$ac_objext; then 11913 gl_cv_func_working_strerror=yes 11914else 11915 $as_echo "$as_me: failed program was:" >&5 11916sed 's/^/| /' conftest.$ac_ext >&5 11917 11918 gl_cv_func_working_strerror=no 11919fi 11920 11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11922 11923else 11924 cat >conftest.$ac_ext <<_ACEOF 11925/* confdefs.h. */ 11926_ACEOF 11927cat confdefs.h >>conftest.$ac_ext 11928cat >>conftest.$ac_ext <<_ACEOF 11929/* end confdefs.h. */ 11930#include <string.h> 11931 11932int 11933main () 11934{ 11935return !*strerror (-2); 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940rm -f conftest$ac_exeext 11941if { (ac_try="$ac_link" 11942case "(($ac_try" in 11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11944 *) ac_try_echo=$ac_try;; 11945esac 11946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11947$as_echo "$ac_try_echo") >&5 11948 (eval "$ac_link") 2>&5 11949 ac_status=$? 11950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11952 { (case "(($ac_try" in 11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11954 *) ac_try_echo=$ac_try;; 11955esac 11956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11957$as_echo "$ac_try_echo") >&5 11958 (eval "$ac_try") 2>&5 11959 ac_status=$? 11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11961 (exit $ac_status); }; }; then 11962 gl_cv_func_working_strerror=yes 11963else 11964 $as_echo "$as_me: program exited with status $ac_status" >&5 11965$as_echo "$as_me: failed program was:" >&5 11966sed 's/^/| /' conftest.$ac_ext >&5 11967 11968( exit $ac_status ) 11969gl_cv_func_working_strerror=no 11970fi 11971rm -rf conftest.dSYM 11972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11973fi 11974 11975 11976 11977fi 11978{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5 11979$as_echo "$gl_cv_func_working_strerror" >&6; } 11980 if test $gl_cv_func_working_strerror = no; then 11981 REPLACE_STRERROR=1 11982 fi 11983 else 11984 REPLACE_STRERROR=1 11985 fi 11986 if test $REPLACE_STRERROR = 1; then 11987 11988 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5 11989$as_echo_n "checking whether strerror is declared... " >&6; } 11990if test "${ac_cv_have_decl_strerror+set}" = set; then 11991 $as_echo_n "(cached) " >&6 11992else 11993 cat >conftest.$ac_ext <<_ACEOF 11994/* confdefs.h. */ 11995_ACEOF 11996cat confdefs.h >>conftest.$ac_ext 11997cat >>conftest.$ac_ext <<_ACEOF 11998/* end confdefs.h. */ 11999$ac_includes_default 12000int 12001main () 12002{ 12003#ifndef strerror 12004 (void) strerror; 12005#endif 12006 12007 ; 12008 return 0; 12009} 12010_ACEOF 12011rm -f conftest.$ac_objext 12012if { (ac_try="$ac_compile" 12013case "(($ac_try" in 12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12015 *) ac_try_echo=$ac_try;; 12016esac 12017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12018$as_echo "$ac_try_echo") >&5 12019 (eval "$ac_compile") 2>conftest.er1 12020 ac_status=$? 12021 grep -v '^ *+' conftest.er1 >conftest.err 12022 rm -f conftest.er1 12023 cat conftest.err >&5 12024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12025 (exit $ac_status); } && { 12026 test -z "$ac_c_werror_flag" || 12027 test ! -s conftest.err 12028 } && test -s conftest.$ac_objext; then 12029 ac_cv_have_decl_strerror=yes 12030else 12031 $as_echo "$as_me: failed program was:" >&5 12032sed 's/^/| /' conftest.$ac_ext >&5 12033 12034 ac_cv_have_decl_strerror=no 12035fi 12036 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038fi 12039{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 12040$as_echo "$ac_cv_have_decl_strerror" >&6; } 12041if test "x$ac_cv_have_decl_strerror" = x""yes; then 12042 12043cat >>confdefs.h <<_ACEOF 12044#define HAVE_DECL_STRERROR 1 12045_ACEOF 12046 12047 12048else 12049 cat >>confdefs.h <<_ACEOF 12050#define HAVE_DECL_STRERROR 0 12051_ACEOF 12052 12053 12054fi 12055 12056 12057 12058 12059 12060 12061 12062 12063 if test $ac_cv_header_sys_socket_h != yes; then 12064 12065for ac_header in winsock2.h 12066do 12067as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12070$as_echo_n "checking for $ac_header... " >&6; } 12071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12072 $as_echo_n "(cached) " >&6 12073fi 12074ac_res=`eval 'as_val=${'$as_ac_Header'} 12075 $as_echo "$as_val"'` 12076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12077$as_echo "$ac_res" >&6; } 12078else 12079 # Is the header compilable? 12080{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12081$as_echo_n "checking $ac_header usability... " >&6; } 12082cat >conftest.$ac_ext <<_ACEOF 12083/* confdefs.h. */ 12084_ACEOF 12085cat confdefs.h >>conftest.$ac_ext 12086cat >>conftest.$ac_ext <<_ACEOF 12087/* end confdefs.h. */ 12088$ac_includes_default 12089#include <$ac_header> 12090_ACEOF 12091rm -f conftest.$ac_objext 12092if { (ac_try="$ac_compile" 12093case "(($ac_try" in 12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12095 *) ac_try_echo=$ac_try;; 12096esac 12097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12098$as_echo "$ac_try_echo") >&5 12099 (eval "$ac_compile") 2>conftest.er1 12100 ac_status=$? 12101 grep -v '^ *+' conftest.er1 >conftest.err 12102 rm -f conftest.er1 12103 cat conftest.err >&5 12104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12105 (exit $ac_status); } && { 12106 test -z "$ac_c_werror_flag" || 12107 test ! -s conftest.err 12108 } && test -s conftest.$ac_objext; then 12109 ac_header_compiler=yes 12110else 12111 $as_echo "$as_me: failed program was:" >&5 12112sed 's/^/| /' conftest.$ac_ext >&5 12113 12114 ac_header_compiler=no 12115fi 12116 12117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12118{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12119$as_echo "$ac_header_compiler" >&6; } 12120 12121# Is the header present? 12122{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12123$as_echo_n "checking $ac_header presence... " >&6; } 12124cat >conftest.$ac_ext <<_ACEOF 12125/* confdefs.h. */ 12126_ACEOF 12127cat confdefs.h >>conftest.$ac_ext 12128cat >>conftest.$ac_ext <<_ACEOF 12129/* end confdefs.h. */ 12130#include <$ac_header> 12131_ACEOF 12132if { (ac_try="$ac_cpp conftest.$ac_ext" 12133case "(($ac_try" in 12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12135 *) ac_try_echo=$ac_try;; 12136esac 12137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12138$as_echo "$ac_try_echo") >&5 12139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12140 ac_status=$? 12141 grep -v '^ *+' conftest.er1 >conftest.err 12142 rm -f conftest.er1 12143 cat conftest.err >&5 12144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 (exit $ac_status); } >/dev/null && { 12146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12147 test ! -s conftest.err 12148 }; then 12149 ac_header_preproc=yes 12150else 12151 $as_echo "$as_me: failed program was:" >&5 12152sed 's/^/| /' conftest.$ac_ext >&5 12153 12154 ac_header_preproc=no 12155fi 12156 12157rm -f conftest.err conftest.$ac_ext 12158{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12159$as_echo "$ac_header_preproc" >&6; } 12160 12161# So? What about this header? 12162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12163 yes:no: ) 12164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12165$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12167$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12168 ac_header_preproc=yes 12169 ;; 12170 no:yes:* ) 12171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12172$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12174$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12176$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12178$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12180$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12182$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12183 ( cat <<\_ASBOX 12184## ------------------------------------ ## 12185## Report this to bug-gnu-utils@gnu.org ## 12186## ------------------------------------ ## 12187_ASBOX 12188 ) | sed "s/^/$as_me: WARNING: /" >&2 12189 ;; 12190esac 12191{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12192$as_echo_n "checking for $ac_header... " >&6; } 12193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12194 $as_echo_n "(cached) " >&6 12195else 12196 eval "$as_ac_Header=\$ac_header_preproc" 12197fi 12198ac_res=`eval 'as_val=${'$as_ac_Header'} 12199 $as_echo "$as_val"'` 12200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12201$as_echo "$ac_res" >&6; } 12202 12203fi 12204as_val=`eval 'as_val=${'$as_ac_Header'} 12205 $as_echo "$as_val"'` 12206 if test "x$as_val" = x""yes; then 12207 cat >>confdefs.h <<_ACEOF 12208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12209_ACEOF 12210 12211fi 12212 12213done 12214 12215 fi 12216 12217 fi 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 if test $gl_cv_have_include_next = yes; then 12236 gl_cv_next_string_h='<'string.h'>' 12237 else 12238 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 12239$as_echo_n "checking absolute name of <string.h>... " >&6; } 12240if test "${gl_cv_next_string_h+set}" = set; then 12241 $as_echo_n "(cached) " >&6 12242else 12243 12244 if test $ac_cv_header_string_h = yes; then 12245 cat >conftest.$ac_ext <<_ACEOF 12246/* confdefs.h. */ 12247_ACEOF 12248cat confdefs.h >>conftest.$ac_ext 12249cat >>conftest.$ac_ext <<_ACEOF 12250/* end confdefs.h. */ 12251#include <string.h> 12252 12253_ACEOF 12254 case "$host_os" in 12255 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12256 *) gl_absname_cpp="$ac_cpp" ;; 12257 esac 12258 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12259 sed -n '\#/string.h#{ 12260 s#.*"\(.*/string.h\)".*#\1# 12261 s#^/[^/]#//&# 12262 p 12263 q 12264 }'`'"' 12265 else 12266 gl_cv_next_string_h='<'string.h'>' 12267 fi 12268 12269fi 12270{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 12271$as_echo "$gl_cv_next_string_h" >&6; } 12272 fi 12273 NEXT_STRING_H=$gl_cv_next_string_h 12274 12275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12277 gl_next_as_first_directive='<'string.h'>' 12278 else 12279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12280 gl_next_as_first_directive=$gl_cv_next_string_h 12281 fi 12282 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 12283 12284 12285 12286 12287{ $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5 12288$as_echo_n "checking whether strndup is declared... " >&6; } 12289if test "${ac_cv_have_decl_strndup+set}" = set; then 12290 $as_echo_n "(cached) " >&6 12291else 12292 cat >conftest.$ac_ext <<_ACEOF 12293/* confdefs.h. */ 12294_ACEOF 12295cat confdefs.h >>conftest.$ac_ext 12296cat >>conftest.$ac_ext <<_ACEOF 12297/* end confdefs.h. */ 12298$ac_includes_default 12299int 12300main () 12301{ 12302#ifndef strndup 12303 (void) strndup; 12304#endif 12305 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310rm -f conftest.$ac_objext 12311if { (ac_try="$ac_compile" 12312case "(($ac_try" in 12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12314 *) ac_try_echo=$ac_try;; 12315esac 12316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12317$as_echo "$ac_try_echo") >&5 12318 (eval "$ac_compile") 2>conftest.er1 12319 ac_status=$? 12320 grep -v '^ *+' conftest.er1 >conftest.err 12321 rm -f conftest.er1 12322 cat conftest.err >&5 12323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12324 (exit $ac_status); } && { 12325 test -z "$ac_c_werror_flag" || 12326 test ! -s conftest.err 12327 } && test -s conftest.$ac_objext; then 12328 ac_cv_have_decl_strndup=yes 12329else 12330 $as_echo "$as_me: failed program was:" >&5 12331sed 's/^/| /' conftest.$ac_ext >&5 12332 12333 ac_cv_have_decl_strndup=no 12334fi 12335 12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12337fi 12338{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5 12339$as_echo "$ac_cv_have_decl_strndup" >&6; } 12340if test "x$ac_cv_have_decl_strndup" = x""yes; then 12341 12342cat >>confdefs.h <<_ACEOF 12343#define HAVE_DECL_STRNDUP 1 12344_ACEOF 12345 12346 12347else 12348 cat >>confdefs.h <<_ACEOF 12349#define HAVE_DECL_STRNDUP 0 12350_ACEOF 12351 12352 12353fi 12354 12355 12356{ $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5 12357$as_echo_n "checking whether strnlen is declared... " >&6; } 12358if test "${ac_cv_have_decl_strnlen+set}" = set; then 12359 $as_echo_n "(cached) " >&6 12360else 12361 cat >conftest.$ac_ext <<_ACEOF 12362/* confdefs.h. */ 12363_ACEOF 12364cat confdefs.h >>conftest.$ac_ext 12365cat >>conftest.$ac_ext <<_ACEOF 12366/* end confdefs.h. */ 12367$ac_includes_default 12368int 12369main () 12370{ 12371#ifndef strnlen 12372 (void) strnlen; 12373#endif 12374 12375 ; 12376 return 0; 12377} 12378_ACEOF 12379rm -f conftest.$ac_objext 12380if { (ac_try="$ac_compile" 12381case "(($ac_try" in 12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12383 *) ac_try_echo=$ac_try;; 12384esac 12385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12386$as_echo "$ac_try_echo") >&5 12387 (eval "$ac_compile") 2>conftest.er1 12388 ac_status=$? 12389 grep -v '^ *+' conftest.er1 >conftest.err 12390 rm -f conftest.er1 12391 cat conftest.err >&5 12392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12393 (exit $ac_status); } && { 12394 test -z "$ac_c_werror_flag" || 12395 test ! -s conftest.err 12396 } && test -s conftest.$ac_objext; then 12397 ac_cv_have_decl_strnlen=yes 12398else 12399 $as_echo "$as_me: failed program was:" >&5 12400sed 's/^/| /' conftest.$ac_ext >&5 12401 12402 ac_cv_have_decl_strnlen=no 12403fi 12404 12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12406fi 12407{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5 12408$as_echo "$ac_cv_have_decl_strnlen" >&6; } 12409if test "x$ac_cv_have_decl_strnlen" = x""yes; then 12410 12411cat >>confdefs.h <<_ACEOF 12412#define HAVE_DECL_STRNLEN 1 12413_ACEOF 12414 12415 12416else 12417 cat >>confdefs.h <<_ACEOF 12418#define HAVE_DECL_STRNLEN 0 12419_ACEOF 12420 12421 12422fi 12423 12424 12425{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 12426$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 12427if test "${ac_cv_header_stat_broken+set}" = set; then 12428 $as_echo_n "(cached) " >&6 12429else 12430 cat >conftest.$ac_ext <<_ACEOF 12431/* confdefs.h. */ 12432_ACEOF 12433cat confdefs.h >>conftest.$ac_ext 12434cat >>conftest.$ac_ext <<_ACEOF 12435/* end confdefs.h. */ 12436#include <sys/types.h> 12437#include <sys/stat.h> 12438 12439#if defined S_ISBLK && defined S_IFDIR 12440extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 12441#endif 12442 12443#if defined S_ISBLK && defined S_IFCHR 12444extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 12445#endif 12446 12447#if defined S_ISLNK && defined S_IFREG 12448extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 12449#endif 12450 12451#if defined S_ISSOCK && defined S_IFREG 12452extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 12453#endif 12454 12455_ACEOF 12456rm -f conftest.$ac_objext 12457if { (ac_try="$ac_compile" 12458case "(($ac_try" in 12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12460 *) ac_try_echo=$ac_try;; 12461esac 12462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12463$as_echo "$ac_try_echo") >&5 12464 (eval "$ac_compile") 2>conftest.er1 12465 ac_status=$? 12466 grep -v '^ *+' conftest.er1 >conftest.err 12467 rm -f conftest.er1 12468 cat conftest.err >&5 12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12470 (exit $ac_status); } && { 12471 test -z "$ac_c_werror_flag" || 12472 test ! -s conftest.err 12473 } && test -s conftest.$ac_objext; then 12474 ac_cv_header_stat_broken=no 12475else 12476 $as_echo "$as_me: failed program was:" >&5 12477sed 's/^/| /' conftest.$ac_ext >&5 12478 12479 ac_cv_header_stat_broken=yes 12480fi 12481 12482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12483fi 12484{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 12485$as_echo "$ac_cv_header_stat_broken" >&6; } 12486if test $ac_cv_header_stat_broken = yes; then 12487 12488cat >>confdefs.h <<\_ACEOF 12489#define STAT_MACROS_BROKEN 1 12490_ACEOF 12491 12492fi 12493 12494 12495 12496 12497 12498{ $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 12499$as_echo_n "checking whether clearerr_unlocked is declared... " >&6; } 12500if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then 12501 $as_echo_n "(cached) " >&6 12502else 12503 cat >conftest.$ac_ext <<_ACEOF 12504/* confdefs.h. */ 12505_ACEOF 12506cat confdefs.h >>conftest.$ac_ext 12507cat >>conftest.$ac_ext <<_ACEOF 12508/* end confdefs.h. */ 12509$ac_includes_default 12510int 12511main () 12512{ 12513#ifndef clearerr_unlocked 12514 (void) clearerr_unlocked; 12515#endif 12516 12517 ; 12518 return 0; 12519} 12520_ACEOF 12521rm -f conftest.$ac_objext 12522if { (ac_try="$ac_compile" 12523case "(($ac_try" in 12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12525 *) ac_try_echo=$ac_try;; 12526esac 12527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12528$as_echo "$ac_try_echo") >&5 12529 (eval "$ac_compile") 2>conftest.er1 12530 ac_status=$? 12531 grep -v '^ *+' conftest.er1 >conftest.err 12532 rm -f conftest.er1 12533 cat conftest.err >&5 12534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); } && { 12536 test -z "$ac_c_werror_flag" || 12537 test ! -s conftest.err 12538 } && test -s conftest.$ac_objext; then 12539 ac_cv_have_decl_clearerr_unlocked=yes 12540else 12541 $as_echo "$as_me: failed program was:" >&5 12542sed 's/^/| /' conftest.$ac_ext >&5 12543 12544 ac_cv_have_decl_clearerr_unlocked=no 12545fi 12546 12547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12548fi 12549{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 12550$as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; } 12551if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then 12552 12553cat >>confdefs.h <<_ACEOF 12554#define HAVE_DECL_CLEARERR_UNLOCKED 1 12555_ACEOF 12556 12557 12558else 12559 cat >>confdefs.h <<_ACEOF 12560#define HAVE_DECL_CLEARERR_UNLOCKED 0 12561_ACEOF 12562 12563 12564fi 12565 12566 12567{ $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 12568$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 12569if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 12570 $as_echo_n "(cached) " >&6 12571else 12572 cat >conftest.$ac_ext <<_ACEOF 12573/* confdefs.h. */ 12574_ACEOF 12575cat confdefs.h >>conftest.$ac_ext 12576cat >>conftest.$ac_ext <<_ACEOF 12577/* end confdefs.h. */ 12578$ac_includes_default 12579int 12580main () 12581{ 12582#ifndef feof_unlocked 12583 (void) feof_unlocked; 12584#endif 12585 12586 ; 12587 return 0; 12588} 12589_ACEOF 12590rm -f conftest.$ac_objext 12591if { (ac_try="$ac_compile" 12592case "(($ac_try" in 12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12594 *) ac_try_echo=$ac_try;; 12595esac 12596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12597$as_echo "$ac_try_echo") >&5 12598 (eval "$ac_compile") 2>conftest.er1 12599 ac_status=$? 12600 grep -v '^ *+' conftest.er1 >conftest.err 12601 rm -f conftest.er1 12602 cat conftest.err >&5 12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); } && { 12605 test -z "$ac_c_werror_flag" || 12606 test ! -s conftest.err 12607 } && test -s conftest.$ac_objext; then 12608 ac_cv_have_decl_feof_unlocked=yes 12609else 12610 $as_echo "$as_me: failed program was:" >&5 12611sed 's/^/| /' conftest.$ac_ext >&5 12612 12613 ac_cv_have_decl_feof_unlocked=no 12614fi 12615 12616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12617fi 12618{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 12619$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 12620if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then 12621 12622cat >>confdefs.h <<_ACEOF 12623#define HAVE_DECL_FEOF_UNLOCKED 1 12624_ACEOF 12625 12626 12627else 12628 cat >>confdefs.h <<_ACEOF 12629#define HAVE_DECL_FEOF_UNLOCKED 0 12630_ACEOF 12631 12632 12633fi 12634 12635 12636{ $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 12637$as_echo_n "checking whether ferror_unlocked is declared... " >&6; } 12638if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then 12639 $as_echo_n "(cached) " >&6 12640else 12641 cat >conftest.$ac_ext <<_ACEOF 12642/* confdefs.h. */ 12643_ACEOF 12644cat confdefs.h >>conftest.$ac_ext 12645cat >>conftest.$ac_ext <<_ACEOF 12646/* end confdefs.h. */ 12647$ac_includes_default 12648int 12649main () 12650{ 12651#ifndef ferror_unlocked 12652 (void) ferror_unlocked; 12653#endif 12654 12655 ; 12656 return 0; 12657} 12658_ACEOF 12659rm -f conftest.$ac_objext 12660if { (ac_try="$ac_compile" 12661case "(($ac_try" in 12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12663 *) ac_try_echo=$ac_try;; 12664esac 12665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12666$as_echo "$ac_try_echo") >&5 12667 (eval "$ac_compile") 2>conftest.er1 12668 ac_status=$? 12669 grep -v '^ *+' conftest.er1 >conftest.err 12670 rm -f conftest.er1 12671 cat conftest.err >&5 12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12673 (exit $ac_status); } && { 12674 test -z "$ac_c_werror_flag" || 12675 test ! -s conftest.err 12676 } && test -s conftest.$ac_objext; then 12677 ac_cv_have_decl_ferror_unlocked=yes 12678else 12679 $as_echo "$as_me: failed program was:" >&5 12680sed 's/^/| /' conftest.$ac_ext >&5 12681 12682 ac_cv_have_decl_ferror_unlocked=no 12683fi 12684 12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12686fi 12687{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 12688$as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; } 12689if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then 12690 12691cat >>confdefs.h <<_ACEOF 12692#define HAVE_DECL_FERROR_UNLOCKED 1 12693_ACEOF 12694 12695 12696else 12697 cat >>confdefs.h <<_ACEOF 12698#define HAVE_DECL_FERROR_UNLOCKED 0 12699_ACEOF 12700 12701 12702fi 12703 12704 12705{ $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 12706$as_echo_n "checking whether fflush_unlocked is declared... " >&6; } 12707if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then 12708 $as_echo_n "(cached) " >&6 12709else 12710 cat >conftest.$ac_ext <<_ACEOF 12711/* confdefs.h. */ 12712_ACEOF 12713cat confdefs.h >>conftest.$ac_ext 12714cat >>conftest.$ac_ext <<_ACEOF 12715/* end confdefs.h. */ 12716$ac_includes_default 12717int 12718main () 12719{ 12720#ifndef fflush_unlocked 12721 (void) fflush_unlocked; 12722#endif 12723 12724 ; 12725 return 0; 12726} 12727_ACEOF 12728rm -f conftest.$ac_objext 12729if { (ac_try="$ac_compile" 12730case "(($ac_try" in 12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12732 *) ac_try_echo=$ac_try;; 12733esac 12734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12735$as_echo "$ac_try_echo") >&5 12736 (eval "$ac_compile") 2>conftest.er1 12737 ac_status=$? 12738 grep -v '^ *+' conftest.er1 >conftest.err 12739 rm -f conftest.er1 12740 cat conftest.err >&5 12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12742 (exit $ac_status); } && { 12743 test -z "$ac_c_werror_flag" || 12744 test ! -s conftest.err 12745 } && test -s conftest.$ac_objext; then 12746 ac_cv_have_decl_fflush_unlocked=yes 12747else 12748 $as_echo "$as_me: failed program was:" >&5 12749sed 's/^/| /' conftest.$ac_ext >&5 12750 12751 ac_cv_have_decl_fflush_unlocked=no 12752fi 12753 12754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12755fi 12756{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 12757$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; } 12758if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then 12759 12760cat >>confdefs.h <<_ACEOF 12761#define HAVE_DECL_FFLUSH_UNLOCKED 1 12762_ACEOF 12763 12764 12765else 12766 cat >>confdefs.h <<_ACEOF 12767#define HAVE_DECL_FFLUSH_UNLOCKED 0 12768_ACEOF 12769 12770 12771fi 12772 12773 12774{ $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 12775$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 12776if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 12777 $as_echo_n "(cached) " >&6 12778else 12779 cat >conftest.$ac_ext <<_ACEOF 12780/* confdefs.h. */ 12781_ACEOF 12782cat confdefs.h >>conftest.$ac_ext 12783cat >>conftest.$ac_ext <<_ACEOF 12784/* end confdefs.h. */ 12785$ac_includes_default 12786int 12787main () 12788{ 12789#ifndef fgets_unlocked 12790 (void) fgets_unlocked; 12791#endif 12792 12793 ; 12794 return 0; 12795} 12796_ACEOF 12797rm -f conftest.$ac_objext 12798if { (ac_try="$ac_compile" 12799case "(($ac_try" in 12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12801 *) ac_try_echo=$ac_try;; 12802esac 12803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12804$as_echo "$ac_try_echo") >&5 12805 (eval "$ac_compile") 2>conftest.er1 12806 ac_status=$? 12807 grep -v '^ *+' conftest.er1 >conftest.err 12808 rm -f conftest.er1 12809 cat conftest.err >&5 12810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); } && { 12812 test -z "$ac_c_werror_flag" || 12813 test ! -s conftest.err 12814 } && test -s conftest.$ac_objext; then 12815 ac_cv_have_decl_fgets_unlocked=yes 12816else 12817 $as_echo "$as_me: failed program was:" >&5 12818sed 's/^/| /' conftest.$ac_ext >&5 12819 12820 ac_cv_have_decl_fgets_unlocked=no 12821fi 12822 12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12824fi 12825{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 12826$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 12827if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then 12828 12829cat >>confdefs.h <<_ACEOF 12830#define HAVE_DECL_FGETS_UNLOCKED 1 12831_ACEOF 12832 12833 12834else 12835 cat >>confdefs.h <<_ACEOF 12836#define HAVE_DECL_FGETS_UNLOCKED 0 12837_ACEOF 12838 12839 12840fi 12841 12842 12843{ $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 12844$as_echo_n "checking whether fputc_unlocked is declared... " >&6; } 12845if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then 12846 $as_echo_n "(cached) " >&6 12847else 12848 cat >conftest.$ac_ext <<_ACEOF 12849/* confdefs.h. */ 12850_ACEOF 12851cat confdefs.h >>conftest.$ac_ext 12852cat >>conftest.$ac_ext <<_ACEOF 12853/* end confdefs.h. */ 12854$ac_includes_default 12855int 12856main () 12857{ 12858#ifndef fputc_unlocked 12859 (void) fputc_unlocked; 12860#endif 12861 12862 ; 12863 return 0; 12864} 12865_ACEOF 12866rm -f conftest.$ac_objext 12867if { (ac_try="$ac_compile" 12868case "(($ac_try" in 12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12870 *) ac_try_echo=$ac_try;; 12871esac 12872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12873$as_echo "$ac_try_echo") >&5 12874 (eval "$ac_compile") 2>conftest.er1 12875 ac_status=$? 12876 grep -v '^ *+' conftest.er1 >conftest.err 12877 rm -f conftest.er1 12878 cat conftest.err >&5 12879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12880 (exit $ac_status); } && { 12881 test -z "$ac_c_werror_flag" || 12882 test ! -s conftest.err 12883 } && test -s conftest.$ac_objext; then 12884 ac_cv_have_decl_fputc_unlocked=yes 12885else 12886 $as_echo "$as_me: failed program was:" >&5 12887sed 's/^/| /' conftest.$ac_ext >&5 12888 12889 ac_cv_have_decl_fputc_unlocked=no 12890fi 12891 12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12893fi 12894{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 12895$as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; } 12896if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then 12897 12898cat >>confdefs.h <<_ACEOF 12899#define HAVE_DECL_FPUTC_UNLOCKED 1 12900_ACEOF 12901 12902 12903else 12904 cat >>confdefs.h <<_ACEOF 12905#define HAVE_DECL_FPUTC_UNLOCKED 0 12906_ACEOF 12907 12908 12909fi 12910 12911 12912{ $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 12913$as_echo_n "checking whether fputs_unlocked is declared... " >&6; } 12914if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then 12915 $as_echo_n "(cached) " >&6 12916else 12917 cat >conftest.$ac_ext <<_ACEOF 12918/* confdefs.h. */ 12919_ACEOF 12920cat confdefs.h >>conftest.$ac_ext 12921cat >>conftest.$ac_ext <<_ACEOF 12922/* end confdefs.h. */ 12923$ac_includes_default 12924int 12925main () 12926{ 12927#ifndef fputs_unlocked 12928 (void) fputs_unlocked; 12929#endif 12930 12931 ; 12932 return 0; 12933} 12934_ACEOF 12935rm -f conftest.$ac_objext 12936if { (ac_try="$ac_compile" 12937case "(($ac_try" in 12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12939 *) ac_try_echo=$ac_try;; 12940esac 12941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12942$as_echo "$ac_try_echo") >&5 12943 (eval "$ac_compile") 2>conftest.er1 12944 ac_status=$? 12945 grep -v '^ *+' conftest.er1 >conftest.err 12946 rm -f conftest.er1 12947 cat conftest.err >&5 12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12949 (exit $ac_status); } && { 12950 test -z "$ac_c_werror_flag" || 12951 test ! -s conftest.err 12952 } && test -s conftest.$ac_objext; then 12953 ac_cv_have_decl_fputs_unlocked=yes 12954else 12955 $as_echo "$as_me: failed program was:" >&5 12956sed 's/^/| /' conftest.$ac_ext >&5 12957 12958 ac_cv_have_decl_fputs_unlocked=no 12959fi 12960 12961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12962fi 12963{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 12964$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; } 12965if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then 12966 12967cat >>confdefs.h <<_ACEOF 12968#define HAVE_DECL_FPUTS_UNLOCKED 1 12969_ACEOF 12970 12971 12972else 12973 cat >>confdefs.h <<_ACEOF 12974#define HAVE_DECL_FPUTS_UNLOCKED 0 12975_ACEOF 12976 12977 12978fi 12979 12980 12981{ $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 12982$as_echo_n "checking whether fread_unlocked is declared... " >&6; } 12983if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then 12984 $as_echo_n "(cached) " >&6 12985else 12986 cat >conftest.$ac_ext <<_ACEOF 12987/* confdefs.h. */ 12988_ACEOF 12989cat confdefs.h >>conftest.$ac_ext 12990cat >>conftest.$ac_ext <<_ACEOF 12991/* end confdefs.h. */ 12992$ac_includes_default 12993int 12994main () 12995{ 12996#ifndef fread_unlocked 12997 (void) fread_unlocked; 12998#endif 12999 13000 ; 13001 return 0; 13002} 13003_ACEOF 13004rm -f conftest.$ac_objext 13005if { (ac_try="$ac_compile" 13006case "(($ac_try" in 13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13008 *) ac_try_echo=$ac_try;; 13009esac 13010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13011$as_echo "$ac_try_echo") >&5 13012 (eval "$ac_compile") 2>conftest.er1 13013 ac_status=$? 13014 grep -v '^ *+' conftest.er1 >conftest.err 13015 rm -f conftest.er1 13016 cat conftest.err >&5 13017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13018 (exit $ac_status); } && { 13019 test -z "$ac_c_werror_flag" || 13020 test ! -s conftest.err 13021 } && test -s conftest.$ac_objext; then 13022 ac_cv_have_decl_fread_unlocked=yes 13023else 13024 $as_echo "$as_me: failed program was:" >&5 13025sed 's/^/| /' conftest.$ac_ext >&5 13026 13027 ac_cv_have_decl_fread_unlocked=no 13028fi 13029 13030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13031fi 13032{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 13033$as_echo "$ac_cv_have_decl_fread_unlocked" >&6; } 13034if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then 13035 13036cat >>confdefs.h <<_ACEOF 13037#define HAVE_DECL_FREAD_UNLOCKED 1 13038_ACEOF 13039 13040 13041else 13042 cat >>confdefs.h <<_ACEOF 13043#define HAVE_DECL_FREAD_UNLOCKED 0 13044_ACEOF 13045 13046 13047fi 13048 13049 13050{ $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 13051$as_echo_n "checking whether fwrite_unlocked is declared... " >&6; } 13052if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then 13053 $as_echo_n "(cached) " >&6 13054else 13055 cat >conftest.$ac_ext <<_ACEOF 13056/* confdefs.h. */ 13057_ACEOF 13058cat confdefs.h >>conftest.$ac_ext 13059cat >>conftest.$ac_ext <<_ACEOF 13060/* end confdefs.h. */ 13061$ac_includes_default 13062int 13063main () 13064{ 13065#ifndef fwrite_unlocked 13066 (void) fwrite_unlocked; 13067#endif 13068 13069 ; 13070 return 0; 13071} 13072_ACEOF 13073rm -f conftest.$ac_objext 13074if { (ac_try="$ac_compile" 13075case "(($ac_try" in 13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13077 *) ac_try_echo=$ac_try;; 13078esac 13079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13080$as_echo "$ac_try_echo") >&5 13081 (eval "$ac_compile") 2>conftest.er1 13082 ac_status=$? 13083 grep -v '^ *+' conftest.er1 >conftest.err 13084 rm -f conftest.er1 13085 cat conftest.err >&5 13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13087 (exit $ac_status); } && { 13088 test -z "$ac_c_werror_flag" || 13089 test ! -s conftest.err 13090 } && test -s conftest.$ac_objext; then 13091 ac_cv_have_decl_fwrite_unlocked=yes 13092else 13093 $as_echo "$as_me: failed program was:" >&5 13094sed 's/^/| /' conftest.$ac_ext >&5 13095 13096 ac_cv_have_decl_fwrite_unlocked=no 13097fi 13098 13099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13100fi 13101{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 13102$as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; } 13103if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then 13104 13105cat >>confdefs.h <<_ACEOF 13106#define HAVE_DECL_FWRITE_UNLOCKED 1 13107_ACEOF 13108 13109 13110else 13111 cat >>confdefs.h <<_ACEOF 13112#define HAVE_DECL_FWRITE_UNLOCKED 0 13113_ACEOF 13114 13115 13116fi 13117 13118 13119{ $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 13120$as_echo_n "checking whether getchar_unlocked is declared... " >&6; } 13121if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then 13122 $as_echo_n "(cached) " >&6 13123else 13124 cat >conftest.$ac_ext <<_ACEOF 13125/* confdefs.h. */ 13126_ACEOF 13127cat confdefs.h >>conftest.$ac_ext 13128cat >>conftest.$ac_ext <<_ACEOF 13129/* end confdefs.h. */ 13130$ac_includes_default 13131int 13132main () 13133{ 13134#ifndef getchar_unlocked 13135 (void) getchar_unlocked; 13136#endif 13137 13138 ; 13139 return 0; 13140} 13141_ACEOF 13142rm -f conftest.$ac_objext 13143if { (ac_try="$ac_compile" 13144case "(($ac_try" in 13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13146 *) ac_try_echo=$ac_try;; 13147esac 13148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13149$as_echo "$ac_try_echo") >&5 13150 (eval "$ac_compile") 2>conftest.er1 13151 ac_status=$? 13152 grep -v '^ *+' conftest.er1 >conftest.err 13153 rm -f conftest.er1 13154 cat conftest.err >&5 13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13156 (exit $ac_status); } && { 13157 test -z "$ac_c_werror_flag" || 13158 test ! -s conftest.err 13159 } && test -s conftest.$ac_objext; then 13160 ac_cv_have_decl_getchar_unlocked=yes 13161else 13162 $as_echo "$as_me: failed program was:" >&5 13163sed 's/^/| /' conftest.$ac_ext >&5 13164 13165 ac_cv_have_decl_getchar_unlocked=no 13166fi 13167 13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13169fi 13170{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 13171$as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; } 13172if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then 13173 13174cat >>confdefs.h <<_ACEOF 13175#define HAVE_DECL_GETCHAR_UNLOCKED 1 13176_ACEOF 13177 13178 13179else 13180 cat >>confdefs.h <<_ACEOF 13181#define HAVE_DECL_GETCHAR_UNLOCKED 0 13182_ACEOF 13183 13184 13185fi 13186 13187 13188{ $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 13189$as_echo_n "checking whether putc_unlocked is declared... " >&6; } 13190if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then 13191 $as_echo_n "(cached) " >&6 13192else 13193 cat >conftest.$ac_ext <<_ACEOF 13194/* confdefs.h. */ 13195_ACEOF 13196cat confdefs.h >>conftest.$ac_ext 13197cat >>conftest.$ac_ext <<_ACEOF 13198/* end confdefs.h. */ 13199$ac_includes_default 13200int 13201main () 13202{ 13203#ifndef putc_unlocked 13204 (void) putc_unlocked; 13205#endif 13206 13207 ; 13208 return 0; 13209} 13210_ACEOF 13211rm -f conftest.$ac_objext 13212if { (ac_try="$ac_compile" 13213case "(($ac_try" in 13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13215 *) ac_try_echo=$ac_try;; 13216esac 13217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13218$as_echo "$ac_try_echo") >&5 13219 (eval "$ac_compile") 2>conftest.er1 13220 ac_status=$? 13221 grep -v '^ *+' conftest.er1 >conftest.err 13222 rm -f conftest.er1 13223 cat conftest.err >&5 13224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13225 (exit $ac_status); } && { 13226 test -z "$ac_c_werror_flag" || 13227 test ! -s conftest.err 13228 } && test -s conftest.$ac_objext; then 13229 ac_cv_have_decl_putc_unlocked=yes 13230else 13231 $as_echo "$as_me: failed program was:" >&5 13232sed 's/^/| /' conftest.$ac_ext >&5 13233 13234 ac_cv_have_decl_putc_unlocked=no 13235fi 13236 13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13238fi 13239{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 13240$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; } 13241if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then 13242 13243cat >>confdefs.h <<_ACEOF 13244#define HAVE_DECL_PUTC_UNLOCKED 1 13245_ACEOF 13246 13247 13248else 13249 cat >>confdefs.h <<_ACEOF 13250#define HAVE_DECL_PUTC_UNLOCKED 0 13251_ACEOF 13252 13253 13254fi 13255 13256 13257{ $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 13258$as_echo_n "checking whether putchar_unlocked is declared... " >&6; } 13259if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then 13260 $as_echo_n "(cached) " >&6 13261else 13262 cat >conftest.$ac_ext <<_ACEOF 13263/* confdefs.h. */ 13264_ACEOF 13265cat confdefs.h >>conftest.$ac_ext 13266cat >>conftest.$ac_ext <<_ACEOF 13267/* end confdefs.h. */ 13268$ac_includes_default 13269int 13270main () 13271{ 13272#ifndef putchar_unlocked 13273 (void) putchar_unlocked; 13274#endif 13275 13276 ; 13277 return 0; 13278} 13279_ACEOF 13280rm -f conftest.$ac_objext 13281if { (ac_try="$ac_compile" 13282case "(($ac_try" in 13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13284 *) ac_try_echo=$ac_try;; 13285esac 13286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13287$as_echo "$ac_try_echo") >&5 13288 (eval "$ac_compile") 2>conftest.er1 13289 ac_status=$? 13290 grep -v '^ *+' conftest.er1 >conftest.err 13291 rm -f conftest.er1 13292 cat conftest.err >&5 13293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13294 (exit $ac_status); } && { 13295 test -z "$ac_c_werror_flag" || 13296 test ! -s conftest.err 13297 } && test -s conftest.$ac_objext; then 13298 ac_cv_have_decl_putchar_unlocked=yes 13299else 13300 $as_echo "$as_me: failed program was:" >&5 13301sed 's/^/| /' conftest.$ac_ext >&5 13302 13303 ac_cv_have_decl_putchar_unlocked=no 13304fi 13305 13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13307fi 13308{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 13309$as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; } 13310if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then 13311 13312cat >>confdefs.h <<_ACEOF 13313#define HAVE_DECL_PUTCHAR_UNLOCKED 1 13314_ACEOF 13315 13316 13317else 13318 cat >>confdefs.h <<_ACEOF 13319#define HAVE_DECL_PUTCHAR_UNLOCKED 0 13320_ACEOF 13321 13322 13323fi 13324 13325 13326 13327 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5 13328$as_echo_n "checking for wint_t... " >&6; } 13329if test "${gt_cv_c_wint_t+set}" = set; then 13330 $as_echo_n "(cached) " >&6 13331else 13332 cat >conftest.$ac_ext <<_ACEOF 13333/* confdefs.h. */ 13334_ACEOF 13335cat confdefs.h >>conftest.$ac_ext 13336cat >>conftest.$ac_ext <<_ACEOF 13337/* end confdefs.h. */ 13338 13339/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 13340 <wchar.h>. 13341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 13342 before <wchar.h>. */ 13343#include <stddef.h> 13344#include <stdio.h> 13345#include <time.h> 13346#include <wchar.h> 13347 wint_t foo = (wchar_t)'\0'; 13348int 13349main () 13350{ 13351 13352 ; 13353 return 0; 13354} 13355_ACEOF 13356rm -f conftest.$ac_objext 13357if { (ac_try="$ac_compile" 13358case "(($ac_try" in 13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13360 *) ac_try_echo=$ac_try;; 13361esac 13362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13363$as_echo "$ac_try_echo") >&5 13364 (eval "$ac_compile") 2>conftest.er1 13365 ac_status=$? 13366 grep -v '^ *+' conftest.er1 >conftest.err 13367 rm -f conftest.er1 13368 cat conftest.err >&5 13369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13370 (exit $ac_status); } && { 13371 test -z "$ac_c_werror_flag" || 13372 test ! -s conftest.err 13373 } && test -s conftest.$ac_objext; then 13374 gt_cv_c_wint_t=yes 13375else 13376 $as_echo "$as_me: failed program was:" >&5 13377sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 gt_cv_c_wint_t=no 13380fi 13381 13382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13383fi 13384{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 13385$as_echo "$gt_cv_c_wint_t" >&6; } 13386 if test $gt_cv_c_wint_t = yes; then 13387 13388cat >>confdefs.h <<\_ACEOF 13389#define HAVE_WINT_T 1 13390_ACEOF 13391 13392 fi 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 if false; then 13404 GL_COND_LIBTOOL_TRUE= 13405 GL_COND_LIBTOOL_FALSE='#' 13406else 13407 GL_COND_LIBTOOL_TRUE='#' 13408 GL_COND_LIBTOOL_FALSE= 13409fi 13410 13411 gl_cond_libtool=false 13412 gl_libdeps= 13413 gl_ltlibdeps= 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 gl_source_base='lib' 13424 13425 # Check whether --enable-acl was given. 13426if test "${enable_acl+set}" = set; then 13427 enableval=$enable_acl; 13428else 13429 enable_acl=auto 13430fi 13431 13432 13433 LIB_ACL= 13434 use_acl=0 13435 13436 if test "x$enable_acl" != "xno"; then 13437 13438for ac_header in sys/acl.h 13439do 13440as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13443$as_echo_n "checking for $ac_header... " >&6; } 13444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13445 $as_echo_n "(cached) " >&6 13446fi 13447ac_res=`eval 'as_val=${'$as_ac_Header'} 13448 $as_echo "$as_val"'` 13449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13450$as_echo "$ac_res" >&6; } 13451else 13452 # Is the header compilable? 13453{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13454$as_echo_n "checking $ac_header usability... " >&6; } 13455cat >conftest.$ac_ext <<_ACEOF 13456/* confdefs.h. */ 13457_ACEOF 13458cat confdefs.h >>conftest.$ac_ext 13459cat >>conftest.$ac_ext <<_ACEOF 13460/* end confdefs.h. */ 13461$ac_includes_default 13462#include <$ac_header> 13463_ACEOF 13464rm -f conftest.$ac_objext 13465if { (ac_try="$ac_compile" 13466case "(($ac_try" in 13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13468 *) ac_try_echo=$ac_try;; 13469esac 13470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13471$as_echo "$ac_try_echo") >&5 13472 (eval "$ac_compile") 2>conftest.er1 13473 ac_status=$? 13474 grep -v '^ *+' conftest.er1 >conftest.err 13475 rm -f conftest.er1 13476 cat conftest.err >&5 13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13478 (exit $ac_status); } && { 13479 test -z "$ac_c_werror_flag" || 13480 test ! -s conftest.err 13481 } && test -s conftest.$ac_objext; then 13482 ac_header_compiler=yes 13483else 13484 $as_echo "$as_me: failed program was:" >&5 13485sed 's/^/| /' conftest.$ac_ext >&5 13486 13487 ac_header_compiler=no 13488fi 13489 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13491{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13492$as_echo "$ac_header_compiler" >&6; } 13493 13494# Is the header present? 13495{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13496$as_echo_n "checking $ac_header presence... " >&6; } 13497cat >conftest.$ac_ext <<_ACEOF 13498/* confdefs.h. */ 13499_ACEOF 13500cat confdefs.h >>conftest.$ac_ext 13501cat >>conftest.$ac_ext <<_ACEOF 13502/* end confdefs.h. */ 13503#include <$ac_header> 13504_ACEOF 13505if { (ac_try="$ac_cpp conftest.$ac_ext" 13506case "(($ac_try" in 13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13508 *) ac_try_echo=$ac_try;; 13509esac 13510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13511$as_echo "$ac_try_echo") >&5 13512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13513 ac_status=$? 13514 grep -v '^ *+' conftest.er1 >conftest.err 13515 rm -f conftest.er1 13516 cat conftest.err >&5 13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13518 (exit $ac_status); } >/dev/null && { 13519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13520 test ! -s conftest.err 13521 }; then 13522 ac_header_preproc=yes 13523else 13524 $as_echo "$as_me: failed program was:" >&5 13525sed 's/^/| /' conftest.$ac_ext >&5 13526 13527 ac_header_preproc=no 13528fi 13529 13530rm -f conftest.err conftest.$ac_ext 13531{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13532$as_echo "$ac_header_preproc" >&6; } 13533 13534# So? What about this header? 13535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13536 yes:no: ) 13537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13538$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13540$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13541 ac_header_preproc=yes 13542 ;; 13543 no:yes:* ) 13544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13545$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13547$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13549$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13551$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13553$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13555$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13556 ( cat <<\_ASBOX 13557## ------------------------------------ ## 13558## Report this to bug-gnu-utils@gnu.org ## 13559## ------------------------------------ ## 13560_ASBOX 13561 ) | sed "s/^/$as_me: WARNING: /" >&2 13562 ;; 13563esac 13564{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13565$as_echo_n "checking for $ac_header... " >&6; } 13566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13567 $as_echo_n "(cached) " >&6 13568else 13569 eval "$as_ac_Header=\$ac_header_preproc" 13570fi 13571ac_res=`eval 'as_val=${'$as_ac_Header'} 13572 $as_echo "$as_val"'` 13573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13574$as_echo "$ac_res" >&6; } 13575 13576fi 13577as_val=`eval 'as_val=${'$as_ac_Header'} 13578 $as_echo "$as_val"'` 13579 if test "x$as_val" = x""yes; then 13580 cat >>confdefs.h <<_ACEOF 13581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13582_ACEOF 13583 13584fi 13585 13586done 13587 13588 if test $ac_cv_header_sys_acl_h = yes; then 13589 ac_save_LIBS=$LIBS 13590 13591 if test $use_acl = 0; then 13592 { $as_echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5 13593$as_echo_n "checking for library containing acl_get_file... " >&6; } 13594if test "${ac_cv_search_acl_get_file+set}" = set; then 13595 $as_echo_n "(cached) " >&6 13596else 13597 ac_func_search_save_LIBS=$LIBS 13598cat >conftest.$ac_ext <<_ACEOF 13599/* confdefs.h. */ 13600_ACEOF 13601cat confdefs.h >>conftest.$ac_ext 13602cat >>conftest.$ac_ext <<_ACEOF 13603/* end confdefs.h. */ 13604 13605/* Override any GCC internal prototype to avoid an error. 13606 Use char because int might match the return type of a GCC 13607 builtin and then its argument prototype would still apply. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611char acl_get_file (); 13612int 13613main () 13614{ 13615return acl_get_file (); 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620for ac_lib in '' acl pacl; do 13621 if test -z "$ac_lib"; then 13622 ac_res="none required" 13623 else 13624 ac_res=-l$ac_lib 13625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13626 fi 13627 rm -f conftest.$ac_objext conftest$ac_exeext 13628if { (ac_try="$ac_link" 13629case "(($ac_try" in 13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13631 *) ac_try_echo=$ac_try;; 13632esac 13633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13634$as_echo "$ac_try_echo") >&5 13635 (eval "$ac_link") 2>conftest.er1 13636 ac_status=$? 13637 grep -v '^ *+' conftest.er1 >conftest.err 13638 rm -f conftest.er1 13639 cat conftest.err >&5 13640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13641 (exit $ac_status); } && { 13642 test -z "$ac_c_werror_flag" || 13643 test ! -s conftest.err 13644 } && test -s conftest$ac_exeext && { 13645 test "$cross_compiling" = yes || 13646 $as_test_x conftest$ac_exeext 13647 }; then 13648 ac_cv_search_acl_get_file=$ac_res 13649else 13650 $as_echo "$as_me: failed program was:" >&5 13651sed 's/^/| /' conftest.$ac_ext >&5 13652 13653 13654fi 13655 13656rm -rf conftest.dSYM 13657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13658 conftest$ac_exeext 13659 if test "${ac_cv_search_acl_get_file+set}" = set; then 13660 break 13661fi 13662done 13663if test "${ac_cv_search_acl_get_file+set}" = set; then 13664 : 13665else 13666 ac_cv_search_acl_get_file=no 13667fi 13668rm conftest.$ac_ext 13669LIBS=$ac_func_search_save_LIBS 13670fi 13671{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5 13672$as_echo "$ac_cv_search_acl_get_file" >&6; } 13673ac_res=$ac_cv_search_acl_get_file 13674if test "$ac_res" != no; then 13675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13676 if test "$ac_cv_search_acl_get_file" != "none required"; then 13677 LIB_ACL=$ac_cv_search_acl_get_file 13678 fi 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \ 13695 acl_free acl_from_mode acl_from_text \ 13696 acl_delete_def_file acl_extended_file \ 13697 acl_delete_fd_np acl_delete_file_np \ 13698 acl_copy_ext_native acl_create_entry_np \ 13699 acl_to_short_text acl_free_text 13700do 13701as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13702{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13703$as_echo_n "checking for $ac_func... " >&6; } 13704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13705 $as_echo_n "(cached) " >&6 13706else 13707 cat >conftest.$ac_ext <<_ACEOF 13708/* confdefs.h. */ 13709_ACEOF 13710cat confdefs.h >>conftest.$ac_ext 13711cat >>conftest.$ac_ext <<_ACEOF 13712/* end confdefs.h. */ 13713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13714 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13715#define $ac_func innocuous_$ac_func 13716 13717/* System header to define __stub macros and hopefully few prototypes, 13718 which can conflict with char $ac_func (); below. 13719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13720 <limits.h> exists even on freestanding compilers. */ 13721 13722#ifdef __STDC__ 13723# include <limits.h> 13724#else 13725# include <assert.h> 13726#endif 13727 13728#undef $ac_func 13729 13730/* Override any GCC internal prototype to avoid an error. 13731 Use char because int might match the return type of a GCC 13732 builtin and then its argument prototype would still apply. */ 13733#ifdef __cplusplus 13734extern "C" 13735#endif 13736char $ac_func (); 13737/* The GNU C library defines this for functions which it implements 13738 to always fail with ENOSYS. Some functions are actually named 13739 something starting with __ and the normal name is an alias. */ 13740#if defined __stub_$ac_func || defined __stub___$ac_func 13741choke me 13742#endif 13743 13744int 13745main () 13746{ 13747return $ac_func (); 13748 ; 13749 return 0; 13750} 13751_ACEOF 13752rm -f conftest.$ac_objext conftest$ac_exeext 13753if { (ac_try="$ac_link" 13754case "(($ac_try" in 13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13756 *) ac_try_echo=$ac_try;; 13757esac 13758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13759$as_echo "$ac_try_echo") >&5 13760 (eval "$ac_link") 2>conftest.er1 13761 ac_status=$? 13762 grep -v '^ *+' conftest.er1 >conftest.err 13763 rm -f conftest.er1 13764 cat conftest.err >&5 13765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13766 (exit $ac_status); } && { 13767 test -z "$ac_c_werror_flag" || 13768 test ! -s conftest.err 13769 } && test -s conftest$ac_exeext && { 13770 test "$cross_compiling" = yes || 13771 $as_test_x conftest$ac_exeext 13772 }; then 13773 eval "$as_ac_var=yes" 13774else 13775 $as_echo "$as_me: failed program was:" >&5 13776sed 's/^/| /' conftest.$ac_ext >&5 13777 13778 eval "$as_ac_var=no" 13779fi 13780 13781rm -rf conftest.dSYM 13782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13783 conftest$ac_exeext conftest.$ac_ext 13784fi 13785ac_res=`eval 'as_val=${'$as_ac_var'} 13786 $as_echo "$as_val"'` 13787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13788$as_echo "$ac_res" >&6; } 13789as_val=`eval 'as_val=${'$as_ac_var'} 13790 $as_echo "$as_val"'` 13791 if test "x$as_val" = x""yes; then 13792 cat >>confdefs.h <<_ACEOF 13793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13794_ACEOF 13795 13796fi 13797done 13798 13799 # If the acl_get_file bug is detected, don't enable the ACL support. 13800 13801 { $as_echo "$as_me:$LINENO: checking for working acl_get_file" >&5 13802$as_echo_n "checking for working acl_get_file... " >&6; } 13803if test "${gl_cv_func_working_acl_get_file+set}" = set; then 13804 $as_echo_n "(cached) " >&6 13805else 13806 if test "$cross_compiling" = yes; then 13807 gl_cv_func_working_acl_get_file=cross-compiling 13808else 13809 cat >conftest.$ac_ext <<_ACEOF 13810/* confdefs.h. */ 13811_ACEOF 13812cat confdefs.h >>conftest.$ac_ext 13813cat >>conftest.$ac_ext <<_ACEOF 13814/* end confdefs.h. */ 13815#include <sys/types.h> 13816 #include <sys/acl.h> 13817 #include <errno.h> 13818 13819int 13820main () 13821{ 13822return !! (!acl_get_file (".", ACL_TYPE_ACCESS) 13823 && errno == ENOENT); 13824 ; 13825 return 0; 13826} 13827_ACEOF 13828rm -f conftest$ac_exeext 13829if { (ac_try="$ac_link" 13830case "(($ac_try" in 13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13832 *) ac_try_echo=$ac_try;; 13833esac 13834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13835$as_echo "$ac_try_echo") >&5 13836 (eval "$ac_link") 2>&5 13837 ac_status=$? 13838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13840 { (case "(($ac_try" in 13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13842 *) ac_try_echo=$ac_try;; 13843esac 13844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13845$as_echo "$ac_try_echo") >&5 13846 (eval "$ac_try") 2>&5 13847 ac_status=$? 13848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13849 (exit $ac_status); }; }; then 13850 gl_cv_func_working_acl_get_file=yes 13851else 13852 $as_echo "$as_me: program exited with status $ac_status" >&5 13853$as_echo "$as_me: failed program was:" >&5 13854sed 's/^/| /' conftest.$ac_ext >&5 13855 13856( exit $ac_status ) 13857gl_cv_func_working_acl_get_file=no 13858fi 13859rm -rf conftest.dSYM 13860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13861fi 13862 13863 13864fi 13865{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5 13866$as_echo "$gl_cv_func_working_acl_get_file" >&6; } 13867 13868 if test $gl_cv_func_working_acl_get_file = yes; then 13869 use_acl=1 13870fi 13871 13872 13873 if test $use_acl = 1; then 13874 13875for ac_header in acl/libacl.h 13876do 13877as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 13880$as_echo_n "checking for $ac_header... " >&6; } 13881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13882 $as_echo_n "(cached) " >&6 13883fi 13884ac_res=`eval 'as_val=${'$as_ac_Header'} 13885 $as_echo "$as_val"'` 13886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13887$as_echo "$ac_res" >&6; } 13888else 13889 # Is the header compilable? 13890{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 13891$as_echo_n "checking $ac_header usability... " >&6; } 13892cat >conftest.$ac_ext <<_ACEOF 13893/* confdefs.h. */ 13894_ACEOF 13895cat confdefs.h >>conftest.$ac_ext 13896cat >>conftest.$ac_ext <<_ACEOF 13897/* end confdefs.h. */ 13898$ac_includes_default 13899#include <$ac_header> 13900_ACEOF 13901rm -f conftest.$ac_objext 13902if { (ac_try="$ac_compile" 13903case "(($ac_try" in 13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13905 *) ac_try_echo=$ac_try;; 13906esac 13907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13908$as_echo "$ac_try_echo") >&5 13909 (eval "$ac_compile") 2>conftest.er1 13910 ac_status=$? 13911 grep -v '^ *+' conftest.er1 >conftest.err 13912 rm -f conftest.er1 13913 cat conftest.err >&5 13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 (exit $ac_status); } && { 13916 test -z "$ac_c_werror_flag" || 13917 test ! -s conftest.err 13918 } && test -s conftest.$ac_objext; then 13919 ac_header_compiler=yes 13920else 13921 $as_echo "$as_me: failed program was:" >&5 13922sed 's/^/| /' conftest.$ac_ext >&5 13923 13924 ac_header_compiler=no 13925fi 13926 13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13928{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13929$as_echo "$ac_header_compiler" >&6; } 13930 13931# Is the header present? 13932{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 13933$as_echo_n "checking $ac_header presence... " >&6; } 13934cat >conftest.$ac_ext <<_ACEOF 13935/* confdefs.h. */ 13936_ACEOF 13937cat confdefs.h >>conftest.$ac_ext 13938cat >>conftest.$ac_ext <<_ACEOF 13939/* end confdefs.h. */ 13940#include <$ac_header> 13941_ACEOF 13942if { (ac_try="$ac_cpp conftest.$ac_ext" 13943case "(($ac_try" in 13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13945 *) ac_try_echo=$ac_try;; 13946esac 13947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13948$as_echo "$ac_try_echo") >&5 13949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13950 ac_status=$? 13951 grep -v '^ *+' conftest.er1 >conftest.err 13952 rm -f conftest.er1 13953 cat conftest.err >&5 13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13955 (exit $ac_status); } >/dev/null && { 13956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13957 test ! -s conftest.err 13958 }; then 13959 ac_header_preproc=yes 13960else 13961 $as_echo "$as_me: failed program was:" >&5 13962sed 's/^/| /' conftest.$ac_ext >&5 13963 13964 ac_header_preproc=no 13965fi 13966 13967rm -f conftest.err conftest.$ac_ext 13968{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13969$as_echo "$ac_header_preproc" >&6; } 13970 13971# So? What about this header? 13972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13973 yes:no: ) 13974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13975$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13977$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13978 ac_header_preproc=yes 13979 ;; 13980 no:yes:* ) 13981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13982$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13984$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13986$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13988$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13990$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13992$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13993 ( cat <<\_ASBOX 13994## ------------------------------------ ## 13995## Report this to bug-gnu-utils@gnu.org ## 13996## ------------------------------------ ## 13997_ASBOX 13998 ) | sed "s/^/$as_me: WARNING: /" >&2 13999 ;; 14000esac 14001{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14002$as_echo_n "checking for $ac_header... " >&6; } 14003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14004 $as_echo_n "(cached) " >&6 14005else 14006 eval "$as_ac_Header=\$ac_header_preproc" 14007fi 14008ac_res=`eval 'as_val=${'$as_ac_Header'} 14009 $as_echo "$as_val"'` 14010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14011$as_echo "$ac_res" >&6; } 14012 14013fi 14014as_val=`eval 'as_val=${'$as_ac_Header'} 14015 $as_echo "$as_val"'` 14016 if test "x$as_val" = x""yes; then 14017 cat >>confdefs.h <<_ACEOF 14018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14019_ACEOF 14020 14021fi 14022 14023done 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034for ac_func in acl_entries 14035do 14036as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14037{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14038$as_echo_n "checking for $ac_func... " >&6; } 14039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14040 $as_echo_n "(cached) " >&6 14041else 14042 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14050#define $ac_func innocuous_$ac_func 14051 14052/* System header to define __stub macros and hopefully few prototypes, 14053 which can conflict with char $ac_func (); below. 14054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14055 <limits.h> exists even on freestanding compilers. */ 14056 14057#ifdef __STDC__ 14058# include <limits.h> 14059#else 14060# include <assert.h> 14061#endif 14062 14063#undef $ac_func 14064 14065/* Override any GCC internal prototype to avoid an error. 14066 Use char because int might match the return type of a GCC 14067 builtin and then its argument prototype would still apply. */ 14068#ifdef __cplusplus 14069extern "C" 14070#endif 14071char $ac_func (); 14072/* The GNU C library defines this for functions which it implements 14073 to always fail with ENOSYS. Some functions are actually named 14074 something starting with __ and the normal name is an alias. */ 14075#if defined __stub_$ac_func || defined __stub___$ac_func 14076choke me 14077#endif 14078 14079int 14080main () 14081{ 14082return $ac_func (); 14083 ; 14084 return 0; 14085} 14086_ACEOF 14087rm -f conftest.$ac_objext conftest$ac_exeext 14088if { (ac_try="$ac_link" 14089case "(($ac_try" in 14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14091 *) ac_try_echo=$ac_try;; 14092esac 14093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14094$as_echo "$ac_try_echo") >&5 14095 (eval "$ac_link") 2>conftest.er1 14096 ac_status=$? 14097 grep -v '^ *+' conftest.er1 >conftest.err 14098 rm -f conftest.er1 14099 cat conftest.err >&5 14100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14101 (exit $ac_status); } && { 14102 test -z "$ac_c_werror_flag" || 14103 test ! -s conftest.err 14104 } && test -s conftest$ac_exeext && { 14105 test "$cross_compiling" = yes || 14106 $as_test_x conftest$ac_exeext 14107 }; then 14108 eval "$as_ac_var=yes" 14109else 14110 $as_echo "$as_me: failed program was:" >&5 14111sed 's/^/| /' conftest.$ac_ext >&5 14112 14113 eval "$as_ac_var=no" 14114fi 14115 14116rm -rf conftest.dSYM 14117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14118 conftest$ac_exeext conftest.$ac_ext 14119fi 14120ac_res=`eval 'as_val=${'$as_ac_var'} 14121 $as_echo "$as_val"'` 14122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14123$as_echo "$ac_res" >&6; } 14124as_val=`eval 'as_val=${'$as_ac_var'} 14125 $as_echo "$as_val"'` 14126 if test "x$as_val" = x""yes; then 14127 cat >>confdefs.h <<_ACEOF 14128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14129_ACEOF 14130 14131else 14132 14133 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 14134 14135fi 14136done 14137 14138 14139 { $as_echo "$as_me:$LINENO: checking for ACL_FIRST_ENTRY" >&5 14140$as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; } 14141if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then 14142 $as_echo_n "(cached) " >&6 14143else 14144 cat >conftest.$ac_ext <<_ACEOF 14145#include <sys/types.h> 14146#include <sys/acl.h> 14147int type = ACL_FIRST_ENTRY; 14148_ACEOF 14149rm -f conftest.$ac_objext 14150if { (ac_try="$ac_compile" 14151case "(($ac_try" in 14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14153 *) ac_try_echo=$ac_try;; 14154esac 14155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14156$as_echo "$ac_try_echo") >&5 14157 (eval "$ac_compile") 2>conftest.er1 14158 ac_status=$? 14159 grep -v '^ *+' conftest.er1 >conftest.err 14160 rm -f conftest.er1 14161 cat conftest.err >&5 14162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14163 (exit $ac_status); } && { 14164 test -z "$ac_c_werror_flag" || 14165 test ! -s conftest.err 14166 } && test -s conftest.$ac_objext; then 14167 gl_cv_acl_ACL_FIRST_ENTRY=yes 14168else 14169 $as_echo "$as_me: failed program was:" >&5 14170sed 's/^/| /' conftest.$ac_ext >&5 14171 14172 gl_cv_acl_ACL_FIRST_ENTRY=no 14173fi 14174 14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14176fi 14177{ $as_echo "$as_me:$LINENO: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5 14178$as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; } 14179 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then 14180 14181cat >>confdefs.h <<\_ACEOF 14182#define HAVE_ACL_FIRST_ENTRY 1 14183_ACEOF 14184 14185 fi 14186 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED" >&5 14187$as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; } 14188if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then 14189 $as_echo_n "(cached) " >&6 14190else 14191 cat >conftest.$ac_ext <<_ACEOF 14192#include <sys/types.h> 14193#include <sys/acl.h> 14194int type = ACL_TYPE_EXTENDED; 14195_ACEOF 14196rm -f conftest.$ac_objext 14197if { (ac_try="$ac_compile" 14198case "(($ac_try" in 14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14200 *) ac_try_echo=$ac_try;; 14201esac 14202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14203$as_echo "$ac_try_echo") >&5 14204 (eval "$ac_compile") 2>conftest.er1 14205 ac_status=$? 14206 grep -v '^ *+' conftest.er1 >conftest.err 14207 rm -f conftest.er1 14208 cat conftest.err >&5 14209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14210 (exit $ac_status); } && { 14211 test -z "$ac_c_werror_flag" || 14212 test ! -s conftest.err 14213 } && test -s conftest.$ac_objext; then 14214 gl_cv_acl_ACL_TYPE_EXTENDED=yes 14215else 14216 $as_echo "$as_me: failed program was:" >&5 14217sed 's/^/| /' conftest.$ac_ext >&5 14218 14219 gl_cv_acl_ACL_TYPE_EXTENDED=no 14220fi 14221 14222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14223fi 14224{ $as_echo "$as_me:$LINENO: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5 14225$as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; } 14226 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then 14227 14228cat >>confdefs.h <<\_ACEOF 14229#define HAVE_ACL_TYPE_EXTENDED 1 14230_ACEOF 14231 14232 fi 14233 else 14234 LIB_ACL= 14235 fi 14236 14237fi 14238 14239 fi 14240 14241 if test $use_acl = 0; then 14242 14243for ac_func in acl 14244do 14245as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14246{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14247$as_echo_n "checking for $ac_func... " >&6; } 14248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14249 $as_echo_n "(cached) " >&6 14250else 14251 cat >conftest.$ac_ext <<_ACEOF 14252/* confdefs.h. */ 14253_ACEOF 14254cat confdefs.h >>conftest.$ac_ext 14255cat >>conftest.$ac_ext <<_ACEOF 14256/* end confdefs.h. */ 14257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14259#define $ac_func innocuous_$ac_func 14260 14261/* System header to define __stub macros and hopefully few prototypes, 14262 which can conflict with char $ac_func (); below. 14263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14264 <limits.h> exists even on freestanding compilers. */ 14265 14266#ifdef __STDC__ 14267# include <limits.h> 14268#else 14269# include <assert.h> 14270#endif 14271 14272#undef $ac_func 14273 14274/* Override any GCC internal prototype to avoid an error. 14275 Use char because int might match the return type of a GCC 14276 builtin and then its argument prototype would still apply. */ 14277#ifdef __cplusplus 14278extern "C" 14279#endif 14280char $ac_func (); 14281/* The GNU C library defines this for functions which it implements 14282 to always fail with ENOSYS. Some functions are actually named 14283 something starting with __ and the normal name is an alias. */ 14284#if defined __stub_$ac_func || defined __stub___$ac_func 14285choke me 14286#endif 14287 14288int 14289main () 14290{ 14291return $ac_func (); 14292 ; 14293 return 0; 14294} 14295_ACEOF 14296rm -f conftest.$ac_objext conftest$ac_exeext 14297if { (ac_try="$ac_link" 14298case "(($ac_try" in 14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14300 *) ac_try_echo=$ac_try;; 14301esac 14302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14303$as_echo "$ac_try_echo") >&5 14304 (eval "$ac_link") 2>conftest.er1 14305 ac_status=$? 14306 grep -v '^ *+' conftest.er1 >conftest.err 14307 rm -f conftest.er1 14308 cat conftest.err >&5 14309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14310 (exit $ac_status); } && { 14311 test -z "$ac_c_werror_flag" || 14312 test ! -s conftest.err 14313 } && test -s conftest$ac_exeext && { 14314 test "$cross_compiling" = yes || 14315 $as_test_x conftest$ac_exeext 14316 }; then 14317 eval "$as_ac_var=yes" 14318else 14319 $as_echo "$as_me: failed program was:" >&5 14320sed 's/^/| /' conftest.$ac_ext >&5 14321 14322 eval "$as_ac_var=no" 14323fi 14324 14325rm -rf conftest.dSYM 14326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14327 conftest$ac_exeext conftest.$ac_ext 14328fi 14329ac_res=`eval 'as_val=${'$as_ac_var'} 14330 $as_echo "$as_val"'` 14331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14332$as_echo "$ac_res" >&6; } 14333as_val=`eval 'as_val=${'$as_ac_var'} 14334 $as_echo "$as_val"'` 14335 if test "x$as_val" = x""yes; then 14336 cat >>confdefs.h <<_ACEOF 14337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14338_ACEOF 14339 14340fi 14341done 14342 14343 if test $ac_cv_func_acl = yes; then 14344 { $as_echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5 14345$as_echo_n "checking for library containing acl_trivial... " >&6; } 14346if test "${ac_cv_search_acl_trivial+set}" = set; then 14347 $as_echo_n "(cached) " >&6 14348else 14349 ac_func_search_save_LIBS=$LIBS 14350cat >conftest.$ac_ext <<_ACEOF 14351/* confdefs.h. */ 14352_ACEOF 14353cat confdefs.h >>conftest.$ac_ext 14354cat >>conftest.$ac_ext <<_ACEOF 14355/* end confdefs.h. */ 14356 14357/* Override any GCC internal prototype to avoid an error. 14358 Use char because int might match the return type of a GCC 14359 builtin and then its argument prototype would still apply. */ 14360#ifdef __cplusplus 14361extern "C" 14362#endif 14363char acl_trivial (); 14364int 14365main () 14366{ 14367return acl_trivial (); 14368 ; 14369 return 0; 14370} 14371_ACEOF 14372for ac_lib in '' sec; do 14373 if test -z "$ac_lib"; then 14374 ac_res="none required" 14375 else 14376 ac_res=-l$ac_lib 14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14378 fi 14379 rm -f conftest.$ac_objext conftest$ac_exeext 14380if { (ac_try="$ac_link" 14381case "(($ac_try" in 14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14383 *) ac_try_echo=$ac_try;; 14384esac 14385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14386$as_echo "$ac_try_echo") >&5 14387 (eval "$ac_link") 2>conftest.er1 14388 ac_status=$? 14389 grep -v '^ *+' conftest.er1 >conftest.err 14390 rm -f conftest.er1 14391 cat conftest.err >&5 14392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14393 (exit $ac_status); } && { 14394 test -z "$ac_c_werror_flag" || 14395 test ! -s conftest.err 14396 } && test -s conftest$ac_exeext && { 14397 test "$cross_compiling" = yes || 14398 $as_test_x conftest$ac_exeext 14399 }; then 14400 ac_cv_search_acl_trivial=$ac_res 14401else 14402 $as_echo "$as_me: failed program was:" >&5 14403sed 's/^/| /' conftest.$ac_ext >&5 14404 14405 14406fi 14407 14408rm -rf conftest.dSYM 14409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14410 conftest$ac_exeext 14411 if test "${ac_cv_search_acl_trivial+set}" = set; then 14412 break 14413fi 14414done 14415if test "${ac_cv_search_acl_trivial+set}" = set; then 14416 : 14417else 14418 ac_cv_search_acl_trivial=no 14419fi 14420rm conftest.$ac_ext 14421LIBS=$ac_func_search_save_LIBS 14422fi 14423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5 14424$as_echo "$ac_cv_search_acl_trivial" >&6; } 14425ac_res=$ac_cv_search_acl_trivial 14426if test "$ac_res" != no; then 14427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14428 if test "$ac_cv_search_acl_trivial" != "none required"; then 14429 LIB_ACL=$ac_cv_search_acl_trivial 14430 fi 14431 14432fi 14433 14434 14435for ac_func in acl_trivial 14436do 14437as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14438{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14439$as_echo_n "checking for $ac_func... " >&6; } 14440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14441 $as_echo_n "(cached) " >&6 14442else 14443 cat >conftest.$ac_ext <<_ACEOF 14444/* confdefs.h. */ 14445_ACEOF 14446cat confdefs.h >>conftest.$ac_ext 14447cat >>conftest.$ac_ext <<_ACEOF 14448/* end confdefs.h. */ 14449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14450 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14451#define $ac_func innocuous_$ac_func 14452 14453/* System header to define __stub macros and hopefully few prototypes, 14454 which can conflict with char $ac_func (); below. 14455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14456 <limits.h> exists even on freestanding compilers. */ 14457 14458#ifdef __STDC__ 14459# include <limits.h> 14460#else 14461# include <assert.h> 14462#endif 14463 14464#undef $ac_func 14465 14466/* Override any GCC internal prototype to avoid an error. 14467 Use char because int might match the return type of a GCC 14468 builtin and then its argument prototype would still apply. */ 14469#ifdef __cplusplus 14470extern "C" 14471#endif 14472char $ac_func (); 14473/* The GNU C library defines this for functions which it implements 14474 to always fail with ENOSYS. Some functions are actually named 14475 something starting with __ and the normal name is an alias. */ 14476#if defined __stub_$ac_func || defined __stub___$ac_func 14477choke me 14478#endif 14479 14480int 14481main () 14482{ 14483return $ac_func (); 14484 ; 14485 return 0; 14486} 14487_ACEOF 14488rm -f conftest.$ac_objext conftest$ac_exeext 14489if { (ac_try="$ac_link" 14490case "(($ac_try" in 14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14492 *) ac_try_echo=$ac_try;; 14493esac 14494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14495$as_echo "$ac_try_echo") >&5 14496 (eval "$ac_link") 2>conftest.er1 14497 ac_status=$? 14498 grep -v '^ *+' conftest.er1 >conftest.err 14499 rm -f conftest.er1 14500 cat conftest.err >&5 14501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14502 (exit $ac_status); } && { 14503 test -z "$ac_c_werror_flag" || 14504 test ! -s conftest.err 14505 } && test -s conftest$ac_exeext && { 14506 test "$cross_compiling" = yes || 14507 $as_test_x conftest$ac_exeext 14508 }; then 14509 eval "$as_ac_var=yes" 14510else 14511 $as_echo "$as_me: failed program was:" >&5 14512sed 's/^/| /' conftest.$ac_ext >&5 14513 14514 eval "$as_ac_var=no" 14515fi 14516 14517rm -rf conftest.dSYM 14518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14519 conftest$ac_exeext conftest.$ac_ext 14520fi 14521ac_res=`eval 'as_val=${'$as_ac_var'} 14522 $as_echo "$as_val"'` 14523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14524$as_echo "$ac_res" >&6; } 14525as_val=`eval 'as_val=${'$as_ac_var'} 14526 $as_echo "$as_val"'` 14527 if test "x$as_val" = x""yes; then 14528 cat >>confdefs.h <<_ACEOF 14529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14530_ACEOF 14531 14532fi 14533done 14534 14535 use_acl=1 14536 fi 14537 fi 14538 14539 if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then 14540 14541for ac_func in getacl 14542do 14543as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14544{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14545$as_echo_n "checking for $ac_func... " >&6; } 14546if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14547 $as_echo_n "(cached) " >&6 14548else 14549 cat >conftest.$ac_ext <<_ACEOF 14550/* confdefs.h. */ 14551_ACEOF 14552cat confdefs.h >>conftest.$ac_ext 14553cat >>conftest.$ac_ext <<_ACEOF 14554/* end confdefs.h. */ 14555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14556 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14557#define $ac_func innocuous_$ac_func 14558 14559/* System header to define __stub macros and hopefully few prototypes, 14560 which can conflict with char $ac_func (); below. 14561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14562 <limits.h> exists even on freestanding compilers. */ 14563 14564#ifdef __STDC__ 14565# include <limits.h> 14566#else 14567# include <assert.h> 14568#endif 14569 14570#undef $ac_func 14571 14572/* Override any GCC internal prototype to avoid an error. 14573 Use char because int might match the return type of a GCC 14574 builtin and then its argument prototype would still apply. */ 14575#ifdef __cplusplus 14576extern "C" 14577#endif 14578char $ac_func (); 14579/* The GNU C library defines this for functions which it implements 14580 to always fail with ENOSYS. Some functions are actually named 14581 something starting with __ and the normal name is an alias. */ 14582#if defined __stub_$ac_func || defined __stub___$ac_func 14583choke me 14584#endif 14585 14586int 14587main () 14588{ 14589return $ac_func (); 14590 ; 14591 return 0; 14592} 14593_ACEOF 14594rm -f conftest.$ac_objext conftest$ac_exeext 14595if { (ac_try="$ac_link" 14596case "(($ac_try" in 14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14598 *) ac_try_echo=$ac_try;; 14599esac 14600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14601$as_echo "$ac_try_echo") >&5 14602 (eval "$ac_link") 2>conftest.er1 14603 ac_status=$? 14604 grep -v '^ *+' conftest.er1 >conftest.err 14605 rm -f conftest.er1 14606 cat conftest.err >&5 14607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14608 (exit $ac_status); } && { 14609 test -z "$ac_c_werror_flag" || 14610 test ! -s conftest.err 14611 } && test -s conftest$ac_exeext && { 14612 test "$cross_compiling" = yes || 14613 $as_test_x conftest$ac_exeext 14614 }; then 14615 eval "$as_ac_var=yes" 14616else 14617 $as_echo "$as_me: failed program was:" >&5 14618sed 's/^/| /' conftest.$ac_ext >&5 14619 14620 eval "$as_ac_var=no" 14621fi 14622 14623rm -rf conftest.dSYM 14624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14625 conftest$ac_exeext conftest.$ac_ext 14626fi 14627ac_res=`eval 'as_val=${'$as_ac_var'} 14628 $as_echo "$as_val"'` 14629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14630$as_echo "$ac_res" >&6; } 14631as_val=`eval 'as_val=${'$as_ac_var'} 14632 $as_echo "$as_val"'` 14633 if test "x$as_val" = x""yes; then 14634 cat >>confdefs.h <<_ACEOF 14635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14636_ACEOF 14637 14638fi 14639done 14640 14641 if test $ac_cv_func_getacl = yes; then 14642 use_acl=1 14643 fi 14644 fi 14645 14646 if test $use_acl = 0; then 14647 14648for ac_func in aclx_get 14649do 14650as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14651{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14652$as_echo_n "checking for $ac_func... " >&6; } 14653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14654 $as_echo_n "(cached) " >&6 14655else 14656 cat >conftest.$ac_ext <<_ACEOF 14657/* confdefs.h. */ 14658_ACEOF 14659cat confdefs.h >>conftest.$ac_ext 14660cat >>conftest.$ac_ext <<_ACEOF 14661/* end confdefs.h. */ 14662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14664#define $ac_func innocuous_$ac_func 14665 14666/* System header to define __stub macros and hopefully few prototypes, 14667 which can conflict with char $ac_func (); below. 14668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14669 <limits.h> exists even on freestanding compilers. */ 14670 14671#ifdef __STDC__ 14672# include <limits.h> 14673#else 14674# include <assert.h> 14675#endif 14676 14677#undef $ac_func 14678 14679/* Override any GCC internal prototype to avoid an error. 14680 Use char because int might match the return type of a GCC 14681 builtin and then its argument prototype would still apply. */ 14682#ifdef __cplusplus 14683extern "C" 14684#endif 14685char $ac_func (); 14686/* The GNU C library defines this for functions which it implements 14687 to always fail with ENOSYS. Some functions are actually named 14688 something starting with __ and the normal name is an alias. */ 14689#if defined __stub_$ac_func || defined __stub___$ac_func 14690choke me 14691#endif 14692 14693int 14694main () 14695{ 14696return $ac_func (); 14697 ; 14698 return 0; 14699} 14700_ACEOF 14701rm -f conftest.$ac_objext conftest$ac_exeext 14702if { (ac_try="$ac_link" 14703case "(($ac_try" in 14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14705 *) ac_try_echo=$ac_try;; 14706esac 14707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14708$as_echo "$ac_try_echo") >&5 14709 (eval "$ac_link") 2>conftest.er1 14710 ac_status=$? 14711 grep -v '^ *+' conftest.er1 >conftest.err 14712 rm -f conftest.er1 14713 cat conftest.err >&5 14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14715 (exit $ac_status); } && { 14716 test -z "$ac_c_werror_flag" || 14717 test ! -s conftest.err 14718 } && test -s conftest$ac_exeext && { 14719 test "$cross_compiling" = yes || 14720 $as_test_x conftest$ac_exeext 14721 }; then 14722 eval "$as_ac_var=yes" 14723else 14724 $as_echo "$as_me: failed program was:" >&5 14725sed 's/^/| /' conftest.$ac_ext >&5 14726 14727 eval "$as_ac_var=no" 14728fi 14729 14730rm -rf conftest.dSYM 14731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14732 conftest$ac_exeext conftest.$ac_ext 14733fi 14734ac_res=`eval 'as_val=${'$as_ac_var'} 14735 $as_echo "$as_val"'` 14736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14737$as_echo "$ac_res" >&6; } 14738as_val=`eval 'as_val=${'$as_ac_var'} 14739 $as_echo "$as_val"'` 14740 if test "x$as_val" = x""yes; then 14741 cat >>confdefs.h <<_ACEOF 14742#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14743_ACEOF 14744 14745fi 14746done 14747 14748 if test $ac_cv_func_aclx_get = yes; then 14749 use_acl=1 14750 fi 14751 fi 14752 14753 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then 14754 14755for ac_func in statacl 14756do 14757as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14758{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14759$as_echo_n "checking for $ac_func... " >&6; } 14760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14761 $as_echo_n "(cached) " >&6 14762else 14763 cat >conftest.$ac_ext <<_ACEOF 14764/* confdefs.h. */ 14765_ACEOF 14766cat confdefs.h >>conftest.$ac_ext 14767cat >>conftest.$ac_ext <<_ACEOF 14768/* end confdefs.h. */ 14769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14770 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14771#define $ac_func innocuous_$ac_func 14772 14773/* System header to define __stub macros and hopefully few prototypes, 14774 which can conflict with char $ac_func (); below. 14775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14776 <limits.h> exists even on freestanding compilers. */ 14777 14778#ifdef __STDC__ 14779# include <limits.h> 14780#else 14781# include <assert.h> 14782#endif 14783 14784#undef $ac_func 14785 14786/* Override any GCC internal prototype to avoid an error. 14787 Use char because int might match the return type of a GCC 14788 builtin and then its argument prototype would still apply. */ 14789#ifdef __cplusplus 14790extern "C" 14791#endif 14792char $ac_func (); 14793/* The GNU C library defines this for functions which it implements 14794 to always fail with ENOSYS. Some functions are actually named 14795 something starting with __ and the normal name is an alias. */ 14796#if defined __stub_$ac_func || defined __stub___$ac_func 14797choke me 14798#endif 14799 14800int 14801main () 14802{ 14803return $ac_func (); 14804 ; 14805 return 0; 14806} 14807_ACEOF 14808rm -f conftest.$ac_objext conftest$ac_exeext 14809if { (ac_try="$ac_link" 14810case "(($ac_try" in 14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14812 *) ac_try_echo=$ac_try;; 14813esac 14814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14815$as_echo "$ac_try_echo") >&5 14816 (eval "$ac_link") 2>conftest.er1 14817 ac_status=$? 14818 grep -v '^ *+' conftest.er1 >conftest.err 14819 rm -f conftest.er1 14820 cat conftest.err >&5 14821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14822 (exit $ac_status); } && { 14823 test -z "$ac_c_werror_flag" || 14824 test ! -s conftest.err 14825 } && test -s conftest$ac_exeext && { 14826 test "$cross_compiling" = yes || 14827 $as_test_x conftest$ac_exeext 14828 }; then 14829 eval "$as_ac_var=yes" 14830else 14831 $as_echo "$as_me: failed program was:" >&5 14832sed 's/^/| /' conftest.$ac_ext >&5 14833 14834 eval "$as_ac_var=no" 14835fi 14836 14837rm -rf conftest.dSYM 14838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14839 conftest$ac_exeext conftest.$ac_ext 14840fi 14841ac_res=`eval 'as_val=${'$as_ac_var'} 14842 $as_echo "$as_val"'` 14843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14844$as_echo "$ac_res" >&6; } 14845as_val=`eval 'as_val=${'$as_ac_var'} 14846 $as_echo "$as_val"'` 14847 if test "x$as_val" = x""yes; then 14848 cat >>confdefs.h <<_ACEOF 14849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14850_ACEOF 14851 14852fi 14853done 14854 14855 if test $ac_cv_func_statacl = yes; then 14856 use_acl=1 14857 fi 14858 fi 14859 14860 LIBS=$ac_save_LIBS 14861 fi 14862 if test "x$enable_acl$use_acl" = "xyes0"; then 14863 { { $as_echo "$as_me:$LINENO: error: ACLs enabled but support not detected" >&5 14864$as_echo "$as_me: error: ACLs enabled but support not detected" >&2;} 14865 { (exit 1); exit 1; }; } 14866 fi 14867 fi 14868 14869 14870cat >>confdefs.h <<_ACEOF 14871#define USE_ACL $use_acl 14872_ACEOF 14873 14874 USE_ACL=$use_acl 14875 14876 14877 14878 14879 14880 14881 14882 if test $ac_cv_func_alloca_works = no; then 14883 : 14884 fi 14885 14886 # Define an additional variable used in the Makefile substitution. 14887 if test $ac_cv_working_alloca_h = yes; then 14888 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5 14889$as_echo_n "checking for alloca as a compiler built-in... " >&6; } 14890if test "${gl_cv_rpl_alloca+set}" = set; then 14891 $as_echo_n "(cached) " >&6 14892else 14893 14894 cat >conftest.$ac_ext <<_ACEOF 14895/* confdefs.h. */ 14896_ACEOF 14897cat confdefs.h >>conftest.$ac_ext 14898cat >>conftest.$ac_ext <<_ACEOF 14899/* end confdefs.h. */ 14900 14901#if defined __GNUC__ || defined _AIX || defined _MSC_VER 14902 Need own alloca 14903#endif 14904 14905_ACEOF 14906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14907 $EGREP "Need own alloca" >/dev/null 2>&1; then 14908 gl_cv_rpl_alloca=yes 14909else 14910 gl_cv_rpl_alloca=no 14911fi 14912rm -f conftest* 14913 14914 14915fi 14916{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5 14917$as_echo "$gl_cv_rpl_alloca" >&6; } 14918 if test $gl_cv_rpl_alloca = yes; then 14919 14920cat >>confdefs.h <<\_ACEOF 14921#define HAVE_ALLOCA 1 14922_ACEOF 14923 14924 ALLOCA_H=alloca.h 14925 else 14926 ALLOCA_H= 14927 fi 14928 else 14929 ALLOCA_H=alloca.h 14930 fi 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 if test $ac_cv_func_btowc = no; then 14943 HAVE_BTOWC=0 14944 else 14945 14946 14947 14948 { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5 14949$as_echo_n "checking whether btowc(EOF) is correct... " >&6; } 14950if test "${gl_cv_func_btowc_eof+set}" = set; then 14951 $as_echo_n "(cached) " >&6 14952else 14953 14954 case "$host_os" in 14955 # Guess no on IRIX. 14956 irix*) gl_cv_func_btowc_eof="guessing no" ;; 14957 # Guess yes otherwise. 14958 *) gl_cv_func_btowc_eof="guessing yes" ;; 14959 esac 14960 if test $LOCALE_FR != none; then 14961 if test "$cross_compiling" = yes; then 14962 : 14963else 14964 cat >conftest.$ac_ext <<_ACEOF 14965/* confdefs.h. */ 14966_ACEOF 14967cat confdefs.h >>conftest.$ac_ext 14968cat >>conftest.$ac_ext <<_ACEOF 14969/* end confdefs.h. */ 14970 14971#include <locale.h> 14972#include <stdio.h> 14973#include <string.h> 14974#include <wchar.h> 14975int main () 14976{ 14977 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 14978 { 14979 if (btowc (EOF) != WEOF) 14980 return 1; 14981 } 14982 return 0; 14983} 14984_ACEOF 14985rm -f conftest$ac_exeext 14986if { (ac_try="$ac_link" 14987case "(($ac_try" in 14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14989 *) ac_try_echo=$ac_try;; 14990esac 14991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14992$as_echo "$ac_try_echo") >&5 14993 (eval "$ac_link") 2>&5 14994 ac_status=$? 14995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14997 { (case "(($ac_try" in 14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14999 *) ac_try_echo=$ac_try;; 15000esac 15001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15002$as_echo "$ac_try_echo") >&5 15003 (eval "$ac_try") 2>&5 15004 ac_status=$? 15005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15006 (exit $ac_status); }; }; then 15007 gl_cv_func_btowc_eof=yes 15008else 15009 $as_echo "$as_me: program exited with status $ac_status" >&5 15010$as_echo "$as_me: failed program was:" >&5 15011sed 's/^/| /' conftest.$ac_ext >&5 15012 15013( exit $ac_status ) 15014gl_cv_func_btowc_eof=no 15015fi 15016rm -rf conftest.dSYM 15017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15018fi 15019 15020 15021 fi 15022 15023fi 15024{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5 15025$as_echo "$gl_cv_func_btowc_eof" >&6; } 15026 case "$gl_cv_func_btowc_eof" in 15027 *yes) ;; 15028 *) REPLACE_BTOWC=1 ;; 15029 esac 15030 fi 15031 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 15032 15033 15034 WCHAR_H=wchar.h 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext" 15045 15046 15047 : 15048 15049 fi 15050 15051 15052 15053 GNULIB_BTOWC=1 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext" 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext" 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext" 15085 15086 15087 15088 15089 15090 15091 15092 15093 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5 15094$as_echo_n "checking whether // is distinct from /... " >&6; } 15095if test "${gl_cv_double_slash_root+set}" = set; then 15096 $as_echo_n "(cached) " >&6 15097else 15098 if test x"$cross_compiling" = xyes ; then 15099 # When cross-compiling, there is no way to tell whether // is special 15100 # short of a list of hosts. However, the only known hosts to date 15101 # that have a distinct // are Apollo DomainOS (too old to port to), 15102 # Cygwin, and z/OS. If anyone knows of another system for which // has 15103 # special semantics and is distinct from /, please report it to 15104 # <bug-gnulib@gnu.org>. 15105 case $host in 15106 *-cygwin | i370-ibm-openedition) 15107 gl_cv_double_slash_root=yes ;; 15108 *) 15109 # Be optimistic and assume that / and // are the same when we 15110 # don't know. 15111 gl_cv_double_slash_root='unknown, assuming no' ;; 15112 esac 15113 else 15114 set x `ls -di / // 2>/dev/null` 15115 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 15116 gl_cv_double_slash_root=no 15117 else 15118 gl_cv_double_slash_root=yes 15119 fi 15120 fi 15121fi 15122{ $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5 15123$as_echo "$gl_cv_double_slash_root" >&6; } 15124 if test "$gl_cv_double_slash_root" = yes; then 15125 15126cat >>confdefs.h <<\_ACEOF 15127#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1 15128_ACEOF 15129 15130 fi 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5 15147$as_echo_n "checking for error_at_line... " >&6; } 15148if test "${ac_cv_lib_error_at_line+set}" = set; then 15149 $as_echo_n "(cached) " >&6 15150else 15151 cat >conftest.$ac_ext <<_ACEOF 15152/* confdefs.h. */ 15153_ACEOF 15154cat confdefs.h >>conftest.$ac_ext 15155cat >>conftest.$ac_ext <<_ACEOF 15156/* end confdefs.h. */ 15157#include <error.h> 15158int 15159main () 15160{ 15161error_at_line (0, 0, "", 0, "an error occurred"); 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166rm -f conftest.$ac_objext conftest$ac_exeext 15167if { (ac_try="$ac_link" 15168case "(($ac_try" in 15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15170 *) ac_try_echo=$ac_try;; 15171esac 15172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15173$as_echo "$ac_try_echo") >&5 15174 (eval "$ac_link") 2>conftest.er1 15175 ac_status=$? 15176 grep -v '^ *+' conftest.er1 >conftest.err 15177 rm -f conftest.er1 15178 cat conftest.err >&5 15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15180 (exit $ac_status); } && { 15181 test -z "$ac_c_werror_flag" || 15182 test ! -s conftest.err 15183 } && test -s conftest$ac_exeext && { 15184 test "$cross_compiling" = yes || 15185 $as_test_x conftest$ac_exeext 15186 }; then 15187 ac_cv_lib_error_at_line=yes 15188else 15189 $as_echo "$as_me: failed program was:" >&5 15190sed 's/^/| /' conftest.$ac_ext >&5 15191 15192 ac_cv_lib_error_at_line=no 15193fi 15194 15195rm -rf conftest.dSYM 15196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15197 conftest$ac_exeext conftest.$ac_ext 15198fi 15199{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 15200$as_echo "$ac_cv_lib_error_at_line" >&6; } 15201if test $ac_cv_lib_error_at_line = no; then 15202 15203 15204 15205 15206 15207 15208 15209 15210 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 15211 15212fi 15213 15214 15215 15216 : 15217 15218 15219 15220 15221 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 15222 15223 15224 15225 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext" 15237 15238 15239 : 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255for ac_func in getdelim 15256do 15257as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15258{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15259$as_echo_n "checking for $ac_func... " >&6; } 15260if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15261 $as_echo_n "(cached) " >&6 15262else 15263 cat >conftest.$ac_ext <<_ACEOF 15264/* confdefs.h. */ 15265_ACEOF 15266cat confdefs.h >>conftest.$ac_ext 15267cat >>conftest.$ac_ext <<_ACEOF 15268/* end confdefs.h. */ 15269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15270 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15271#define $ac_func innocuous_$ac_func 15272 15273/* System header to define __stub macros and hopefully few prototypes, 15274 which can conflict with char $ac_func (); below. 15275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15276 <limits.h> exists even on freestanding compilers. */ 15277 15278#ifdef __STDC__ 15279# include <limits.h> 15280#else 15281# include <assert.h> 15282#endif 15283 15284#undef $ac_func 15285 15286/* Override any GCC internal prototype to avoid an error. 15287 Use char because int might match the return type of a GCC 15288 builtin and then its argument prototype would still apply. */ 15289#ifdef __cplusplus 15290extern "C" 15291#endif 15292char $ac_func (); 15293/* The GNU C library defines this for functions which it implements 15294 to always fail with ENOSYS. Some functions are actually named 15295 something starting with __ and the normal name is an alias. */ 15296#if defined __stub_$ac_func || defined __stub___$ac_func 15297choke me 15298#endif 15299 15300int 15301main () 15302{ 15303return $ac_func (); 15304 ; 15305 return 0; 15306} 15307_ACEOF 15308rm -f conftest.$ac_objext conftest$ac_exeext 15309if { (ac_try="$ac_link" 15310case "(($ac_try" in 15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15312 *) ac_try_echo=$ac_try;; 15313esac 15314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15315$as_echo "$ac_try_echo") >&5 15316 (eval "$ac_link") 2>conftest.er1 15317 ac_status=$? 15318 grep -v '^ *+' conftest.er1 >conftest.err 15319 rm -f conftest.er1 15320 cat conftest.err >&5 15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15322 (exit $ac_status); } && { 15323 test -z "$ac_c_werror_flag" || 15324 test ! -s conftest.err 15325 } && test -s conftest$ac_exeext && { 15326 test "$cross_compiling" = yes || 15327 $as_test_x conftest$ac_exeext 15328 }; then 15329 eval "$as_ac_var=yes" 15330else 15331 $as_echo "$as_me: failed program was:" >&5 15332sed 's/^/| /' conftest.$ac_ext >&5 15333 15334 eval "$as_ac_var=no" 15335fi 15336 15337rm -rf conftest.dSYM 15338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15339 conftest$ac_exeext conftest.$ac_ext 15340fi 15341ac_res=`eval 'as_val=${'$as_ac_var'} 15342 $as_echo "$as_val"'` 15343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15344$as_echo "$ac_res" >&6; } 15345as_val=`eval 'as_val=${'$as_ac_var'} 15346 $as_echo "$as_val"'` 15347 if test "x$as_val" = x""yes; then 15348 cat >>confdefs.h <<_ACEOF 15349#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15350_ACEOF 15351 15352else 15353 15354 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 15355 15356fi 15357done 15358 15359 15360 15361 15362 15363 15364 15365 if test $ac_cv_func_getdelim = no; then 15366 15367 15368 15369for ac_func in flockfile funlockfile 15370do 15371as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15372{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15373$as_echo_n "checking for $ac_func... " >&6; } 15374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15375 $as_echo_n "(cached) " >&6 15376else 15377 cat >conftest.$ac_ext <<_ACEOF 15378/* confdefs.h. */ 15379_ACEOF 15380cat confdefs.h >>conftest.$ac_ext 15381cat >>conftest.$ac_ext <<_ACEOF 15382/* end confdefs.h. */ 15383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15385#define $ac_func innocuous_$ac_func 15386 15387/* System header to define __stub macros and hopefully few prototypes, 15388 which can conflict with char $ac_func (); below. 15389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15390 <limits.h> exists even on freestanding compilers. */ 15391 15392#ifdef __STDC__ 15393# include <limits.h> 15394#else 15395# include <assert.h> 15396#endif 15397 15398#undef $ac_func 15399 15400/* Override any GCC internal prototype to avoid an error. 15401 Use char because int might match the return type of a GCC 15402 builtin and then its argument prototype would still apply. */ 15403#ifdef __cplusplus 15404extern "C" 15405#endif 15406char $ac_func (); 15407/* The GNU C library defines this for functions which it implements 15408 to always fail with ENOSYS. Some functions are actually named 15409 something starting with __ and the normal name is an alias. */ 15410#if defined __stub_$ac_func || defined __stub___$ac_func 15411choke me 15412#endif 15413 15414int 15415main () 15416{ 15417return $ac_func (); 15418 ; 15419 return 0; 15420} 15421_ACEOF 15422rm -f conftest.$ac_objext conftest$ac_exeext 15423if { (ac_try="$ac_link" 15424case "(($ac_try" in 15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15426 *) ac_try_echo=$ac_try;; 15427esac 15428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15429$as_echo "$ac_try_echo") >&5 15430 (eval "$ac_link") 2>conftest.er1 15431 ac_status=$? 15432 grep -v '^ *+' conftest.er1 >conftest.err 15433 rm -f conftest.er1 15434 cat conftest.err >&5 15435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15436 (exit $ac_status); } && { 15437 test -z "$ac_c_werror_flag" || 15438 test ! -s conftest.err 15439 } && test -s conftest$ac_exeext && { 15440 test "$cross_compiling" = yes || 15441 $as_test_x conftest$ac_exeext 15442 }; then 15443 eval "$as_ac_var=yes" 15444else 15445 $as_echo "$as_me: failed program was:" >&5 15446sed 's/^/| /' conftest.$ac_ext >&5 15447 15448 eval "$as_ac_var=no" 15449fi 15450 15451rm -rf conftest.dSYM 15452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15453 conftest$ac_exeext conftest.$ac_ext 15454fi 15455ac_res=`eval 'as_val=${'$as_ac_var'} 15456 $as_echo "$as_val"'` 15457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15458$as_echo "$ac_res" >&6; } 15459as_val=`eval 'as_val=${'$as_ac_var'} 15460 $as_echo "$as_val"'` 15461 if test "x$as_val" = x""yes; then 15462 cat >>confdefs.h <<_ACEOF 15463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15464_ACEOF 15465 15466fi 15467done 15468 15469 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 15470$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 15471if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 15472 $as_echo_n "(cached) " >&6 15473else 15474 cat >conftest.$ac_ext <<_ACEOF 15475/* confdefs.h. */ 15476_ACEOF 15477cat confdefs.h >>conftest.$ac_ext 15478cat >>conftest.$ac_ext <<_ACEOF 15479/* end confdefs.h. */ 15480$ac_includes_default 15481int 15482main () 15483{ 15484#ifndef getc_unlocked 15485 (void) getc_unlocked; 15486#endif 15487 15488 ; 15489 return 0; 15490} 15491_ACEOF 15492rm -f conftest.$ac_objext 15493if { (ac_try="$ac_compile" 15494case "(($ac_try" in 15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15496 *) ac_try_echo=$ac_try;; 15497esac 15498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15499$as_echo "$ac_try_echo") >&5 15500 (eval "$ac_compile") 2>conftest.er1 15501 ac_status=$? 15502 grep -v '^ *+' conftest.er1 >conftest.err 15503 rm -f conftest.er1 15504 cat conftest.err >&5 15505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15506 (exit $ac_status); } && { 15507 test -z "$ac_c_werror_flag" || 15508 test ! -s conftest.err 15509 } && test -s conftest.$ac_objext; then 15510 ac_cv_have_decl_getc_unlocked=yes 15511else 15512 $as_echo "$as_me: failed program was:" >&5 15513sed 's/^/| /' conftest.$ac_ext >&5 15514 15515 ac_cv_have_decl_getc_unlocked=no 15516fi 15517 15518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15519fi 15520{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 15521$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 15522if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then 15523 15524cat >>confdefs.h <<_ACEOF 15525#define HAVE_DECL_GETC_UNLOCKED 1 15526_ACEOF 15527 15528 15529else 15530 cat >>confdefs.h <<_ACEOF 15531#define HAVE_DECL_GETC_UNLOCKED 0 15532_ACEOF 15533 15534 15535fi 15536 15537 15538 15539 fi 15540 15541 if test $ac_cv_have_decl_getdelim = no; then 15542 HAVE_DECL_GETDELIM=0 15543 fi 15544 15545 15546 15547 GNULIB_GETDELIM=1 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 gl_getline_needs_run_time_check=no 15560 { $as_echo "$as_me:$LINENO: checking for getline" >&5 15561$as_echo_n "checking for getline... " >&6; } 15562if test "${ac_cv_func_getline+set}" = set; then 15563 $as_echo_n "(cached) " >&6 15564else 15565 cat >conftest.$ac_ext <<_ACEOF 15566/* confdefs.h. */ 15567_ACEOF 15568cat confdefs.h >>conftest.$ac_ext 15569cat >>conftest.$ac_ext <<_ACEOF 15570/* end confdefs.h. */ 15571/* Define getline to an innocuous variant, in case <limits.h> declares getline. 15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15573#define getline innocuous_getline 15574 15575/* System header to define __stub macros and hopefully few prototypes, 15576 which can conflict with char getline (); below. 15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15578 <limits.h> exists even on freestanding compilers. */ 15579 15580#ifdef __STDC__ 15581# include <limits.h> 15582#else 15583# include <assert.h> 15584#endif 15585 15586#undef getline 15587 15588/* Override any GCC internal prototype to avoid an error. 15589 Use char because int might match the return type of a GCC 15590 builtin and then its argument prototype would still apply. */ 15591#ifdef __cplusplus 15592extern "C" 15593#endif 15594char getline (); 15595/* The GNU C library defines this for functions which it implements 15596 to always fail with ENOSYS. Some functions are actually named 15597 something starting with __ and the normal name is an alias. */ 15598#if defined __stub_getline || defined __stub___getline 15599choke me 15600#endif 15601 15602int 15603main () 15604{ 15605return getline (); 15606 ; 15607 return 0; 15608} 15609_ACEOF 15610rm -f conftest.$ac_objext conftest$ac_exeext 15611if { (ac_try="$ac_link" 15612case "(($ac_try" in 15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15614 *) ac_try_echo=$ac_try;; 15615esac 15616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15617$as_echo "$ac_try_echo") >&5 15618 (eval "$ac_link") 2>conftest.er1 15619 ac_status=$? 15620 grep -v '^ *+' conftest.er1 >conftest.err 15621 rm -f conftest.er1 15622 cat conftest.err >&5 15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15624 (exit $ac_status); } && { 15625 test -z "$ac_c_werror_flag" || 15626 test ! -s conftest.err 15627 } && test -s conftest$ac_exeext && { 15628 test "$cross_compiling" = yes || 15629 $as_test_x conftest$ac_exeext 15630 }; then 15631 ac_cv_func_getline=yes 15632else 15633 $as_echo "$as_me: failed program was:" >&5 15634sed 's/^/| /' conftest.$ac_ext >&5 15635 15636 ac_cv_func_getline=no 15637fi 15638 15639rm -rf conftest.dSYM 15640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15641 conftest$ac_exeext conftest.$ac_ext 15642fi 15643{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 15644$as_echo "$ac_cv_func_getline" >&6; } 15645if test "x$ac_cv_func_getline" = x""yes; then 15646 gl_getline_needs_run_time_check=yes 15647else 15648 am_cv_func_working_getline=no 15649fi 15650 15651 if test $gl_getline_needs_run_time_check = yes; then 15652 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5 15653$as_echo_n "checking for working getline function... " >&6; } 15654if test "${am_cv_func_working_getline+set}" = set; then 15655 $as_echo_n "(cached) " >&6 15656else 15657 echo fooN |tr -d '\012'|tr N '\012' > conftest.data 15658 if test "$cross_compiling" = yes; then 15659 cat >conftest.$ac_ext <<_ACEOF 15660/* confdefs.h. */ 15661_ACEOF 15662cat confdefs.h >>conftest.$ac_ext 15663cat >>conftest.$ac_ext <<_ACEOF 15664/* end confdefs.h. */ 15665 15666#include <features.h> 15667#ifdef __GNU_LIBRARY__ 15668 #if (__GLIBC__ >= 2) 15669 Lucky GNU user 15670 #endif 15671#endif 15672 15673_ACEOF 15674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15675 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 15676 am_cv_func_working_getline=yes 15677else 15678 am_cv_func_working_getline=no 15679fi 15680rm -f conftest* 15681 15682 15683else 15684 cat >conftest.$ac_ext <<_ACEOF 15685/* confdefs.h. */ 15686_ACEOF 15687cat confdefs.h >>conftest.$ac_ext 15688cat >>conftest.$ac_ext <<_ACEOF 15689/* end confdefs.h. */ 15690 15691# include <stdio.h> 15692# include <stdlib.h> 15693# include <string.h> 15694 int main () 15695 { /* Based on a test program from Karl Heuer. */ 15696 char *line = NULL; 15697 size_t siz = 0; 15698 int len; 15699 FILE *in = fopen ("./conftest.data", "r"); 15700 if (!in) 15701 return 1; 15702 len = getline (&line, &siz, in); 15703 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); 15704 } 15705 15706_ACEOF 15707rm -f conftest$ac_exeext 15708if { (ac_try="$ac_link" 15709case "(($ac_try" in 15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15711 *) ac_try_echo=$ac_try;; 15712esac 15713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15714$as_echo "$ac_try_echo") >&5 15715 (eval "$ac_link") 2>&5 15716 ac_status=$? 15717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15719 { (case "(($ac_try" in 15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15721 *) ac_try_echo=$ac_try;; 15722esac 15723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15724$as_echo "$ac_try_echo") >&5 15725 (eval "$ac_try") 2>&5 15726 ac_status=$? 15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15728 (exit $ac_status); }; }; then 15729 am_cv_func_working_getline=yes 15730else 15731 $as_echo "$as_me: program exited with status $ac_status" >&5 15732$as_echo "$as_me: failed program was:" >&5 15733sed 's/^/| /' conftest.$ac_ext >&5 15734 15735( exit $ac_status ) 15736am_cv_func_working_getline=no 15737fi 15738rm -rf conftest.dSYM 15739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15740fi 15741 15742 15743fi 15744{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5 15745$as_echo "$am_cv_func_working_getline" >&6; } 15746 fi 15747 15748 if test $ac_cv_have_decl_getline = no; then 15749 HAVE_DECL_GETLINE=0 15750 fi 15751 15752 if test $am_cv_func_working_getline = no; then 15753 REPLACE_GETLINE=1 15754 15755 15756 15757 15758 15759 15760 15761 15762 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780for ac_func in getdelim 15781do 15782as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15783{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15784$as_echo_n "checking for $ac_func... " >&6; } 15785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15786 $as_echo_n "(cached) " >&6 15787else 15788 cat >conftest.$ac_ext <<_ACEOF 15789/* confdefs.h. */ 15790_ACEOF 15791cat confdefs.h >>conftest.$ac_ext 15792cat >>conftest.$ac_ext <<_ACEOF 15793/* end confdefs.h. */ 15794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15796#define $ac_func innocuous_$ac_func 15797 15798/* System header to define __stub macros and hopefully few prototypes, 15799 which can conflict with char $ac_func (); below. 15800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15801 <limits.h> exists even on freestanding compilers. */ 15802 15803#ifdef __STDC__ 15804# include <limits.h> 15805#else 15806# include <assert.h> 15807#endif 15808 15809#undef $ac_func 15810 15811/* Override any GCC internal prototype to avoid an error. 15812 Use char because int might match the return type of a GCC 15813 builtin and then its argument prototype would still apply. */ 15814#ifdef __cplusplus 15815extern "C" 15816#endif 15817char $ac_func (); 15818/* The GNU C library defines this for functions which it implements 15819 to always fail with ENOSYS. Some functions are actually named 15820 something starting with __ and the normal name is an alias. */ 15821#if defined __stub_$ac_func || defined __stub___$ac_func 15822choke me 15823#endif 15824 15825int 15826main () 15827{ 15828return $ac_func (); 15829 ; 15830 return 0; 15831} 15832_ACEOF 15833rm -f conftest.$ac_objext conftest$ac_exeext 15834if { (ac_try="$ac_link" 15835case "(($ac_try" in 15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15837 *) ac_try_echo=$ac_try;; 15838esac 15839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15840$as_echo "$ac_try_echo") >&5 15841 (eval "$ac_link") 2>conftest.er1 15842 ac_status=$? 15843 grep -v '^ *+' conftest.er1 >conftest.err 15844 rm -f conftest.er1 15845 cat conftest.err >&5 15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15847 (exit $ac_status); } && { 15848 test -z "$ac_c_werror_flag" || 15849 test ! -s conftest.err 15850 } && test -s conftest$ac_exeext && { 15851 test "$cross_compiling" = yes || 15852 $as_test_x conftest$ac_exeext 15853 }; then 15854 eval "$as_ac_var=yes" 15855else 15856 $as_echo "$as_me: failed program was:" >&5 15857sed 's/^/| /' conftest.$ac_ext >&5 15858 15859 eval "$as_ac_var=no" 15860fi 15861 15862rm -rf conftest.dSYM 15863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15864 conftest$ac_exeext conftest.$ac_ext 15865fi 15866ac_res=`eval 'as_val=${'$as_ac_var'} 15867 $as_echo "$as_val"'` 15868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15869$as_echo "$ac_res" >&6; } 15870as_val=`eval 'as_val=${'$as_ac_var'} 15871 $as_echo "$as_val"'` 15872 if test "x$as_val" = x""yes; then 15873 cat >>confdefs.h <<_ACEOF 15874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15875_ACEOF 15876 15877else 15878 15879 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 15880 15881fi 15882done 15883 15884 15885 15886 15887 15888 15889 15890 if test $ac_cv_func_getdelim = no; then 15891 15892 15893 15894for ac_func in flockfile funlockfile 15895do 15896as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15897{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15898$as_echo_n "checking for $ac_func... " >&6; } 15899if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15900 $as_echo_n "(cached) " >&6 15901else 15902 cat >conftest.$ac_ext <<_ACEOF 15903/* confdefs.h. */ 15904_ACEOF 15905cat confdefs.h >>conftest.$ac_ext 15906cat >>conftest.$ac_ext <<_ACEOF 15907/* end confdefs.h. */ 15908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15909 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15910#define $ac_func innocuous_$ac_func 15911 15912/* System header to define __stub macros and hopefully few prototypes, 15913 which can conflict with char $ac_func (); below. 15914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15915 <limits.h> exists even on freestanding compilers. */ 15916 15917#ifdef __STDC__ 15918# include <limits.h> 15919#else 15920# include <assert.h> 15921#endif 15922 15923#undef $ac_func 15924 15925/* Override any GCC internal prototype to avoid an error. 15926 Use char because int might match the return type of a GCC 15927 builtin and then its argument prototype would still apply. */ 15928#ifdef __cplusplus 15929extern "C" 15930#endif 15931char $ac_func (); 15932/* The GNU C library defines this for functions which it implements 15933 to always fail with ENOSYS. Some functions are actually named 15934 something starting with __ and the normal name is an alias. */ 15935#if defined __stub_$ac_func || defined __stub___$ac_func 15936choke me 15937#endif 15938 15939int 15940main () 15941{ 15942return $ac_func (); 15943 ; 15944 return 0; 15945} 15946_ACEOF 15947rm -f conftest.$ac_objext conftest$ac_exeext 15948if { (ac_try="$ac_link" 15949case "(($ac_try" in 15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15951 *) ac_try_echo=$ac_try;; 15952esac 15953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15954$as_echo "$ac_try_echo") >&5 15955 (eval "$ac_link") 2>conftest.er1 15956 ac_status=$? 15957 grep -v '^ *+' conftest.er1 >conftest.err 15958 rm -f conftest.er1 15959 cat conftest.err >&5 15960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15961 (exit $ac_status); } && { 15962 test -z "$ac_c_werror_flag" || 15963 test ! -s conftest.err 15964 } && test -s conftest$ac_exeext && { 15965 test "$cross_compiling" = yes || 15966 $as_test_x conftest$ac_exeext 15967 }; then 15968 eval "$as_ac_var=yes" 15969else 15970 $as_echo "$as_me: failed program was:" >&5 15971sed 's/^/| /' conftest.$ac_ext >&5 15972 15973 eval "$as_ac_var=no" 15974fi 15975 15976rm -rf conftest.dSYM 15977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15978 conftest$ac_exeext conftest.$ac_ext 15979fi 15980ac_res=`eval 'as_val=${'$as_ac_var'} 15981 $as_echo "$as_val"'` 15982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15983$as_echo "$ac_res" >&6; } 15984as_val=`eval 'as_val=${'$as_ac_var'} 15985 $as_echo "$as_val"'` 15986 if test "x$as_val" = x""yes; then 15987 cat >>confdefs.h <<_ACEOF 15988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15989_ACEOF 15990 15991fi 15992done 15993 15994 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 15995$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 15996if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 15997 $as_echo_n "(cached) " >&6 15998else 15999 cat >conftest.$ac_ext <<_ACEOF 16000/* confdefs.h. */ 16001_ACEOF 16002cat confdefs.h >>conftest.$ac_ext 16003cat >>conftest.$ac_ext <<_ACEOF 16004/* end confdefs.h. */ 16005$ac_includes_default 16006int 16007main () 16008{ 16009#ifndef getc_unlocked 16010 (void) getc_unlocked; 16011#endif 16012 16013 ; 16014 return 0; 16015} 16016_ACEOF 16017rm -f conftest.$ac_objext 16018if { (ac_try="$ac_compile" 16019case "(($ac_try" in 16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16021 *) ac_try_echo=$ac_try;; 16022esac 16023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16024$as_echo "$ac_try_echo") >&5 16025 (eval "$ac_compile") 2>conftest.er1 16026 ac_status=$? 16027 grep -v '^ *+' conftest.er1 >conftest.err 16028 rm -f conftest.er1 16029 cat conftest.err >&5 16030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 (exit $ac_status); } && { 16032 test -z "$ac_c_werror_flag" || 16033 test ! -s conftest.err 16034 } && test -s conftest.$ac_objext; then 16035 ac_cv_have_decl_getc_unlocked=yes 16036else 16037 $as_echo "$as_me: failed program was:" >&5 16038sed 's/^/| /' conftest.$ac_ext >&5 16039 16040 ac_cv_have_decl_getc_unlocked=no 16041fi 16042 16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16044fi 16045{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 16046$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 16047if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then 16048 16049cat >>confdefs.h <<_ACEOF 16050#define HAVE_DECL_GETC_UNLOCKED 1 16051_ACEOF 16052 16053 16054else 16055 cat >>confdefs.h <<_ACEOF 16056#define HAVE_DECL_GETC_UNLOCKED 0 16057_ACEOF 16058 16059 16060fi 16061 16062 16063 16064 fi 16065 16066 if test $ac_cv_have_decl_getdelim = no; then 16067 HAVE_DECL_GETDELIM=0 16068 fi 16069 16070 16071 fi 16072 16073 16074 16075 GNULIB_GETLINE=1 16076 16077 16078 16079 if test -n "$GETOPT_H"; then 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 16100 16101 16102 GETOPT_H=getopt.h 16103 16104cat >>confdefs.h <<\_ACEOF 16105#define __GETOPT_PREFIX rpl_ 16106_ACEOF 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117fi 16118 16119 16120 16121 16122 16123 16124for ac_func in getpagesize 16125do 16126as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16127{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16128$as_echo_n "checking for $ac_func... " >&6; } 16129if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16130 $as_echo_n "(cached) " >&6 16131else 16132 cat >conftest.$ac_ext <<_ACEOF 16133/* confdefs.h. */ 16134_ACEOF 16135cat confdefs.h >>conftest.$ac_ext 16136cat >>conftest.$ac_ext <<_ACEOF 16137/* end confdefs.h. */ 16138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16139 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16140#define $ac_func innocuous_$ac_func 16141 16142/* System header to define __stub macros and hopefully few prototypes, 16143 which can conflict with char $ac_func (); below. 16144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16145 <limits.h> exists even on freestanding compilers. */ 16146 16147#ifdef __STDC__ 16148# include <limits.h> 16149#else 16150# include <assert.h> 16151#endif 16152 16153#undef $ac_func 16154 16155/* Override any GCC internal prototype to avoid an error. 16156 Use char because int might match the return type of a GCC 16157 builtin and then its argument prototype would still apply. */ 16158#ifdef __cplusplus 16159extern "C" 16160#endif 16161char $ac_func (); 16162/* The GNU C library defines this for functions which it implements 16163 to always fail with ENOSYS. Some functions are actually named 16164 something starting with __ and the normal name is an alias. */ 16165#if defined __stub_$ac_func || defined __stub___$ac_func 16166choke me 16167#endif 16168 16169int 16170main () 16171{ 16172return $ac_func (); 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177rm -f conftest.$ac_objext conftest$ac_exeext 16178if { (ac_try="$ac_link" 16179case "(($ac_try" in 16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16181 *) ac_try_echo=$ac_try;; 16182esac 16183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16184$as_echo "$ac_try_echo") >&5 16185 (eval "$ac_link") 2>conftest.er1 16186 ac_status=$? 16187 grep -v '^ *+' conftest.er1 >conftest.err 16188 rm -f conftest.er1 16189 cat conftest.err >&5 16190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16191 (exit $ac_status); } && { 16192 test -z "$ac_c_werror_flag" || 16193 test ! -s conftest.err 16194 } && test -s conftest$ac_exeext && { 16195 test "$cross_compiling" = yes || 16196 $as_test_x conftest$ac_exeext 16197 }; then 16198 eval "$as_ac_var=yes" 16199else 16200 $as_echo "$as_me: failed program was:" >&5 16201sed 's/^/| /' conftest.$ac_ext >&5 16202 16203 eval "$as_ac_var=no" 16204fi 16205 16206rm -rf conftest.dSYM 16207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16208 conftest$ac_exeext conftest.$ac_ext 16209fi 16210ac_res=`eval 'as_val=${'$as_ac_var'} 16211 $as_echo "$as_val"'` 16212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16213$as_echo "$ac_res" >&6; } 16214as_val=`eval 'as_val=${'$as_ac_var'} 16215 $as_echo "$as_val"'` 16216 if test "x$as_val" = x""yes; then 16217 cat >>confdefs.h <<_ACEOF 16218#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16219_ACEOF 16220 16221fi 16222done 16223 16224 if test $ac_cv_func_getpagesize = no; then 16225 HAVE_GETPAGESIZE=0 16226 16227for ac_header in OS.h 16228do 16229as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16232$as_echo_n "checking for $ac_header... " >&6; } 16233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16234 $as_echo_n "(cached) " >&6 16235fi 16236ac_res=`eval 'as_val=${'$as_ac_Header'} 16237 $as_echo "$as_val"'` 16238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16239$as_echo "$ac_res" >&6; } 16240else 16241 # Is the header compilable? 16242{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16243$as_echo_n "checking $ac_header usability... " >&6; } 16244cat >conftest.$ac_ext <<_ACEOF 16245/* confdefs.h. */ 16246_ACEOF 16247cat confdefs.h >>conftest.$ac_ext 16248cat >>conftest.$ac_ext <<_ACEOF 16249/* end confdefs.h. */ 16250$ac_includes_default 16251#include <$ac_header> 16252_ACEOF 16253rm -f conftest.$ac_objext 16254if { (ac_try="$ac_compile" 16255case "(($ac_try" in 16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16257 *) ac_try_echo=$ac_try;; 16258esac 16259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16260$as_echo "$ac_try_echo") >&5 16261 (eval "$ac_compile") 2>conftest.er1 16262 ac_status=$? 16263 grep -v '^ *+' conftest.er1 >conftest.err 16264 rm -f conftest.er1 16265 cat conftest.err >&5 16266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16267 (exit $ac_status); } && { 16268 test -z "$ac_c_werror_flag" || 16269 test ! -s conftest.err 16270 } && test -s conftest.$ac_objext; then 16271 ac_header_compiler=yes 16272else 16273 $as_echo "$as_me: failed program was:" >&5 16274sed 's/^/| /' conftest.$ac_ext >&5 16275 16276 ac_header_compiler=no 16277fi 16278 16279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16280{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16281$as_echo "$ac_header_compiler" >&6; } 16282 16283# Is the header present? 16284{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16285$as_echo_n "checking $ac_header presence... " >&6; } 16286cat >conftest.$ac_ext <<_ACEOF 16287/* confdefs.h. */ 16288_ACEOF 16289cat confdefs.h >>conftest.$ac_ext 16290cat >>conftest.$ac_ext <<_ACEOF 16291/* end confdefs.h. */ 16292#include <$ac_header> 16293_ACEOF 16294if { (ac_try="$ac_cpp conftest.$ac_ext" 16295case "(($ac_try" in 16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16297 *) ac_try_echo=$ac_try;; 16298esac 16299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16300$as_echo "$ac_try_echo") >&5 16301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16302 ac_status=$? 16303 grep -v '^ *+' conftest.er1 >conftest.err 16304 rm -f conftest.er1 16305 cat conftest.err >&5 16306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16307 (exit $ac_status); } >/dev/null && { 16308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16309 test ! -s conftest.err 16310 }; then 16311 ac_header_preproc=yes 16312else 16313 $as_echo "$as_me: failed program was:" >&5 16314sed 's/^/| /' conftest.$ac_ext >&5 16315 16316 ac_header_preproc=no 16317fi 16318 16319rm -f conftest.err conftest.$ac_ext 16320{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16321$as_echo "$ac_header_preproc" >&6; } 16322 16323# So? What about this header? 16324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16325 yes:no: ) 16326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16327$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16329$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16330 ac_header_preproc=yes 16331 ;; 16332 no:yes:* ) 16333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16334$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16336$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16338$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16340$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16342$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16344$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16345 ( cat <<\_ASBOX 16346## ------------------------------------ ## 16347## Report this to bug-gnu-utils@gnu.org ## 16348## ------------------------------------ ## 16349_ASBOX 16350 ) | sed "s/^/$as_me: WARNING: /" >&2 16351 ;; 16352esac 16353{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16354$as_echo_n "checking for $ac_header... " >&6; } 16355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16356 $as_echo_n "(cached) " >&6 16357else 16358 eval "$as_ac_Header=\$ac_header_preproc" 16359fi 16360ac_res=`eval 'as_val=${'$as_ac_Header'} 16361 $as_echo "$as_val"'` 16362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16363$as_echo "$ac_res" >&6; } 16364 16365fi 16366as_val=`eval 'as_val=${'$as_ac_Header'} 16367 $as_echo "$as_val"'` 16368 if test "x$as_val" = x""yes; then 16369 cat >>confdefs.h <<_ACEOF 16370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16371_ACEOF 16372 16373fi 16374 16375done 16376 16377 if test $ac_cv_header_OS_h = yes; then 16378 HAVE_OS_H=1 16379 fi 16380 16381for ac_header in sys/param.h 16382do 16383as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16386$as_echo_n "checking for $ac_header... " >&6; } 16387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16388 $as_echo_n "(cached) " >&6 16389fi 16390ac_res=`eval 'as_val=${'$as_ac_Header'} 16391 $as_echo "$as_val"'` 16392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16393$as_echo "$ac_res" >&6; } 16394else 16395 # Is the header compilable? 16396{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16397$as_echo_n "checking $ac_header usability... " >&6; } 16398cat >conftest.$ac_ext <<_ACEOF 16399/* confdefs.h. */ 16400_ACEOF 16401cat confdefs.h >>conftest.$ac_ext 16402cat >>conftest.$ac_ext <<_ACEOF 16403/* end confdefs.h. */ 16404$ac_includes_default 16405#include <$ac_header> 16406_ACEOF 16407rm -f conftest.$ac_objext 16408if { (ac_try="$ac_compile" 16409case "(($ac_try" in 16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16411 *) ac_try_echo=$ac_try;; 16412esac 16413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16414$as_echo "$ac_try_echo") >&5 16415 (eval "$ac_compile") 2>conftest.er1 16416 ac_status=$? 16417 grep -v '^ *+' conftest.er1 >conftest.err 16418 rm -f conftest.er1 16419 cat conftest.err >&5 16420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16421 (exit $ac_status); } && { 16422 test -z "$ac_c_werror_flag" || 16423 test ! -s conftest.err 16424 } && test -s conftest.$ac_objext; then 16425 ac_header_compiler=yes 16426else 16427 $as_echo "$as_me: failed program was:" >&5 16428sed 's/^/| /' conftest.$ac_ext >&5 16429 16430 ac_header_compiler=no 16431fi 16432 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16434{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16435$as_echo "$ac_header_compiler" >&6; } 16436 16437# Is the header present? 16438{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16439$as_echo_n "checking $ac_header presence... " >&6; } 16440cat >conftest.$ac_ext <<_ACEOF 16441/* confdefs.h. */ 16442_ACEOF 16443cat confdefs.h >>conftest.$ac_ext 16444cat >>conftest.$ac_ext <<_ACEOF 16445/* end confdefs.h. */ 16446#include <$ac_header> 16447_ACEOF 16448if { (ac_try="$ac_cpp conftest.$ac_ext" 16449case "(($ac_try" in 16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16451 *) ac_try_echo=$ac_try;; 16452esac 16453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16454$as_echo "$ac_try_echo") >&5 16455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16456 ac_status=$? 16457 grep -v '^ *+' conftest.er1 >conftest.err 16458 rm -f conftest.er1 16459 cat conftest.err >&5 16460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16461 (exit $ac_status); } >/dev/null && { 16462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16463 test ! -s conftest.err 16464 }; then 16465 ac_header_preproc=yes 16466else 16467 $as_echo "$as_me: failed program was:" >&5 16468sed 's/^/| /' conftest.$ac_ext >&5 16469 16470 ac_header_preproc=no 16471fi 16472 16473rm -f conftest.err conftest.$ac_ext 16474{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16475$as_echo "$ac_header_preproc" >&6; } 16476 16477# So? What about this header? 16478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16479 yes:no: ) 16480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16481$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16483$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16484 ac_header_preproc=yes 16485 ;; 16486 no:yes:* ) 16487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16488$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16490$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16492$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16494$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16496$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16498$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16499 ( cat <<\_ASBOX 16500## ------------------------------------ ## 16501## Report this to bug-gnu-utils@gnu.org ## 16502## ------------------------------------ ## 16503_ASBOX 16504 ) | sed "s/^/$as_me: WARNING: /" >&2 16505 ;; 16506esac 16507{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16508$as_echo_n "checking for $ac_header... " >&6; } 16509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16510 $as_echo_n "(cached) " >&6 16511else 16512 eval "$as_ac_Header=\$ac_header_preproc" 16513fi 16514ac_res=`eval 'as_val=${'$as_ac_Header'} 16515 $as_echo "$as_val"'` 16516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16517$as_echo "$ac_res" >&6; } 16518 16519fi 16520as_val=`eval 'as_val=${'$as_ac_Header'} 16521 $as_echo "$as_val"'` 16522 if test "x$as_val" = x""yes; then 16523 cat >>confdefs.h <<_ACEOF 16524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16525_ACEOF 16526 16527fi 16528 16529done 16530 16531 if test $ac_cv_header_sys_param_h = yes; then 16532 HAVE_SYS_PARAM_H=1 16533 fi 16534 fi 16535 case "$host_os" in 16536 mingw*) 16537 REPLACE_GETPAGESIZE=1 16538 16539 16540 16541 16542 16543 16544 16545 16546 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext" 16547 16548 ;; 16549 esac 16550 16551 16552 16553 GNULIB_GETPAGESIZE=1 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5 16569$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } 16570if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then 16571 $as_echo_n "(cached) " >&6 16572else 16573 cat >conftest.$ac_ext <<_ACEOF 16574/* confdefs.h. */ 16575_ACEOF 16576cat confdefs.h >>conftest.$ac_ext 16577cat >>conftest.$ac_ext <<_ACEOF 16578/* end confdefs.h. */ 16579#include <sys/time.h> 16580 struct timeval c; 16581 16582int 16583main () 16584{ 16585 16586 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday; 16587 int x = f (&c, 0); 16588 return !(x | c.tv_sec | c.tv_usec); 16589 16590 ; 16591 return 0; 16592} 16593_ACEOF 16594rm -f conftest.$ac_objext 16595if { (ac_try="$ac_compile" 16596case "(($ac_try" in 16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16598 *) ac_try_echo=$ac_try;; 16599esac 16600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16601$as_echo "$ac_try_echo") >&5 16602 (eval "$ac_compile") 2>conftest.er1 16603 ac_status=$? 16604 grep -v '^ *+' conftest.er1 >conftest.err 16605 rm -f conftest.er1 16606 cat conftest.err >&5 16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16608 (exit $ac_status); } && { 16609 test -z "$ac_c_werror_flag" || 16610 test ! -s conftest.err 16611 } && test -s conftest.$ac_objext; then 16612 gl_cv_func_gettimeofday_posix_signature=yes 16613else 16614 $as_echo "$as_me: failed program was:" >&5 16615sed 's/^/| /' conftest.$ac_ext >&5 16616 16617 gl_cv_func_gettimeofday_posix_signature=no 16618fi 16619 16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16621fi 16622{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5 16623$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } 16624 16625 16626 16627 16628 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5 16629$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } 16630if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then 16631 $as_echo_n "(cached) " >&6 16632else 16633 if test "$cross_compiling" = yes; then 16634 gl_cv_func_gettimeofday_clobber=yes 16635else 16636 cat >conftest.$ac_ext <<_ACEOF 16637/* confdefs.h. */ 16638_ACEOF 16639cat confdefs.h >>conftest.$ac_ext 16640cat >>conftest.$ac_ext <<_ACEOF 16641/* end confdefs.h. */ 16642#include <string.h> 16643 #include <sys/time.h> 16644 #include <time.h> 16645 #include <stdlib.h> 16646 16647int 16648main () 16649{ 16650 16651 time_t t = 0; 16652 struct tm *lt; 16653 struct tm saved_lt; 16654 struct timeval tv; 16655 lt = localtime (&t); 16656 saved_lt = *lt; 16657 gettimeofday (&tv, NULL); 16658 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; 16659 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664rm -f conftest$ac_exeext 16665if { (ac_try="$ac_link" 16666case "(($ac_try" in 16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16668 *) ac_try_echo=$ac_try;; 16669esac 16670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16671$as_echo "$ac_try_echo") >&5 16672 (eval "$ac_link") 2>&5 16673 ac_status=$? 16674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16676 { (case "(($ac_try" in 16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16678 *) ac_try_echo=$ac_try;; 16679esac 16680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16681$as_echo "$ac_try_echo") >&5 16682 (eval "$ac_try") 2>&5 16683 ac_status=$? 16684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16685 (exit $ac_status); }; }; then 16686 gl_cv_func_gettimeofday_clobber=no 16687else 16688 $as_echo "$as_me: program exited with status $ac_status" >&5 16689$as_echo "$as_me: failed program was:" >&5 16690sed 's/^/| /' conftest.$ac_ext >&5 16691 16692( exit $ac_status ) 16693gl_cv_func_gettimeofday_clobber=yes 16694fi 16695rm -rf conftest.dSYM 16696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16697fi 16698 16699 16700fi 16701{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5 16702$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } 16703 16704 if test $gl_cv_func_gettimeofday_clobber = yes; then 16705 REPLACE_GETTIMEOFDAY=1 16706 SYS_TIME_H=sys/time.h 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" 16717 16718 16719 16720for ac_header in sys/timeb.h 16721do 16722as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16725$as_echo_n "checking for $ac_header... " >&6; } 16726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16727 $as_echo_n "(cached) " >&6 16728fi 16729ac_res=`eval 'as_val=${'$as_ac_Header'} 16730 $as_echo "$as_val"'` 16731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16732$as_echo "$ac_res" >&6; } 16733else 16734 # Is the header compilable? 16735{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16736$as_echo_n "checking $ac_header usability... " >&6; } 16737cat >conftest.$ac_ext <<_ACEOF 16738/* confdefs.h. */ 16739_ACEOF 16740cat confdefs.h >>conftest.$ac_ext 16741cat >>conftest.$ac_ext <<_ACEOF 16742/* end confdefs.h. */ 16743$ac_includes_default 16744#include <$ac_header> 16745_ACEOF 16746rm -f conftest.$ac_objext 16747if { (ac_try="$ac_compile" 16748case "(($ac_try" in 16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16750 *) ac_try_echo=$ac_try;; 16751esac 16752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16753$as_echo "$ac_try_echo") >&5 16754 (eval "$ac_compile") 2>conftest.er1 16755 ac_status=$? 16756 grep -v '^ *+' conftest.er1 >conftest.err 16757 rm -f conftest.er1 16758 cat conftest.err >&5 16759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16760 (exit $ac_status); } && { 16761 test -z "$ac_c_werror_flag" || 16762 test ! -s conftest.err 16763 } && test -s conftest.$ac_objext; then 16764 ac_header_compiler=yes 16765else 16766 $as_echo "$as_me: failed program was:" >&5 16767sed 's/^/| /' conftest.$ac_ext >&5 16768 16769 ac_header_compiler=no 16770fi 16771 16772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16773{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16774$as_echo "$ac_header_compiler" >&6; } 16775 16776# Is the header present? 16777{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16778$as_echo_n "checking $ac_header presence... " >&6; } 16779cat >conftest.$ac_ext <<_ACEOF 16780/* confdefs.h. */ 16781_ACEOF 16782cat confdefs.h >>conftest.$ac_ext 16783cat >>conftest.$ac_ext <<_ACEOF 16784/* end confdefs.h. */ 16785#include <$ac_header> 16786_ACEOF 16787if { (ac_try="$ac_cpp conftest.$ac_ext" 16788case "(($ac_try" in 16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16790 *) ac_try_echo=$ac_try;; 16791esac 16792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16793$as_echo "$ac_try_echo") >&5 16794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16795 ac_status=$? 16796 grep -v '^ *+' conftest.er1 >conftest.err 16797 rm -f conftest.er1 16798 cat conftest.err >&5 16799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16800 (exit $ac_status); } >/dev/null && { 16801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16802 test ! -s conftest.err 16803 }; then 16804 ac_header_preproc=yes 16805else 16806 $as_echo "$as_me: failed program was:" >&5 16807sed 's/^/| /' conftest.$ac_ext >&5 16808 16809 ac_header_preproc=no 16810fi 16811 16812rm -f conftest.err conftest.$ac_ext 16813{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16814$as_echo "$ac_header_preproc" >&6; } 16815 16816# So? What about this header? 16817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16818 yes:no: ) 16819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16820$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16822$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16823 ac_header_preproc=yes 16824 ;; 16825 no:yes:* ) 16826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16827$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16829$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16831$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16833$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16835$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16837$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16838 ( cat <<\_ASBOX 16839## ------------------------------------ ## 16840## Report this to bug-gnu-utils@gnu.org ## 16841## ------------------------------------ ## 16842_ASBOX 16843 ) | sed "s/^/$as_me: WARNING: /" >&2 16844 ;; 16845esac 16846{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16847$as_echo_n "checking for $ac_header... " >&6; } 16848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16849 $as_echo_n "(cached) " >&6 16850else 16851 eval "$as_ac_Header=\$ac_header_preproc" 16852fi 16853ac_res=`eval 'as_val=${'$as_ac_Header'} 16854 $as_echo "$as_val"'` 16855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16856$as_echo "$ac_res" >&6; } 16857 16858fi 16859as_val=`eval 'as_val=${'$as_ac_Header'} 16860 $as_echo "$as_val"'` 16861 if test "x$as_val" = x""yes; then 16862 cat >>confdefs.h <<_ACEOF 16863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16864_ACEOF 16865 16866fi 16867 16868done 16869 16870 16871for ac_func in _ftime 16872do 16873as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16874{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16875$as_echo_n "checking for $ac_func... " >&6; } 16876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16877 $as_echo_n "(cached) " >&6 16878else 16879 cat >conftest.$ac_ext <<_ACEOF 16880/* confdefs.h. */ 16881_ACEOF 16882cat confdefs.h >>conftest.$ac_ext 16883cat >>conftest.$ac_ext <<_ACEOF 16884/* end confdefs.h. */ 16885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16887#define $ac_func innocuous_$ac_func 16888 16889/* System header to define __stub macros and hopefully few prototypes, 16890 which can conflict with char $ac_func (); below. 16891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16892 <limits.h> exists even on freestanding compilers. */ 16893 16894#ifdef __STDC__ 16895# include <limits.h> 16896#else 16897# include <assert.h> 16898#endif 16899 16900#undef $ac_func 16901 16902/* Override any GCC internal prototype to avoid an error. 16903 Use char because int might match the return type of a GCC 16904 builtin and then its argument prototype would still apply. */ 16905#ifdef __cplusplus 16906extern "C" 16907#endif 16908char $ac_func (); 16909/* The GNU C library defines this for functions which it implements 16910 to always fail with ENOSYS. Some functions are actually named 16911 something starting with __ and the normal name is an alias. */ 16912#if defined __stub_$ac_func || defined __stub___$ac_func 16913choke me 16914#endif 16915 16916int 16917main () 16918{ 16919return $ac_func (); 16920 ; 16921 return 0; 16922} 16923_ACEOF 16924rm -f conftest.$ac_objext conftest$ac_exeext 16925if { (ac_try="$ac_link" 16926case "(($ac_try" in 16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16928 *) ac_try_echo=$ac_try;; 16929esac 16930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16931$as_echo "$ac_try_echo") >&5 16932 (eval "$ac_link") 2>conftest.er1 16933 ac_status=$? 16934 grep -v '^ *+' conftest.er1 >conftest.err 16935 rm -f conftest.er1 16936 cat conftest.err >&5 16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16938 (exit $ac_status); } && { 16939 test -z "$ac_c_werror_flag" || 16940 test ! -s conftest.err 16941 } && test -s conftest$ac_exeext && { 16942 test "$cross_compiling" = yes || 16943 $as_test_x conftest$ac_exeext 16944 }; then 16945 eval "$as_ac_var=yes" 16946else 16947 $as_echo "$as_me: failed program was:" >&5 16948sed 's/^/| /' conftest.$ac_ext >&5 16949 16950 eval "$as_ac_var=no" 16951fi 16952 16953rm -rf conftest.dSYM 16954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16955 conftest$ac_exeext conftest.$ac_ext 16956fi 16957ac_res=`eval 'as_val=${'$as_ac_var'} 16958 $as_echo "$as_val"'` 16959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16960$as_echo "$ac_res" >&6; } 16961as_val=`eval 'as_val=${'$as_ac_var'} 16962 $as_echo "$as_val"'` 16963 if test "x$as_val" = x""yes; then 16964 cat >>confdefs.h <<_ACEOF 16965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16966_ACEOF 16967 16968fi 16969done 16970 16971 16972 16973cat >>confdefs.h <<\_ACEOF 16974#define gmtime rpl_gmtime 16975_ACEOF 16976 16977 16978cat >>confdefs.h <<\_ACEOF 16979#define localtime rpl_localtime 16980_ACEOF 16981 16982 16983 16984cat >>confdefs.h <<\_ACEOF 16985#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1 16986_ACEOF 16987 16988 fi 16989 16990 16991 if test $gl_cv_func_gettimeofday_posix_signature != yes; then 16992 REPLACE_GETTIMEOFDAY=1 16993 SYS_TIME_H=sys/time.h 16994 if test $gl_cv_func_gettimeofday_clobber != yes; then 16995 16996 16997 16998 16999 17000 17001 17002 17003 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" 17004 17005 17006 17007for ac_header in sys/timeb.h 17008do 17009as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17012$as_echo_n "checking for $ac_header... " >&6; } 17013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17014 $as_echo_n "(cached) " >&6 17015fi 17016ac_res=`eval 'as_val=${'$as_ac_Header'} 17017 $as_echo "$as_val"'` 17018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17019$as_echo "$ac_res" >&6; } 17020else 17021 # Is the header compilable? 17022{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 17023$as_echo_n "checking $ac_header usability... " >&6; } 17024cat >conftest.$ac_ext <<_ACEOF 17025/* confdefs.h. */ 17026_ACEOF 17027cat confdefs.h >>conftest.$ac_ext 17028cat >>conftest.$ac_ext <<_ACEOF 17029/* end confdefs.h. */ 17030$ac_includes_default 17031#include <$ac_header> 17032_ACEOF 17033rm -f conftest.$ac_objext 17034if { (ac_try="$ac_compile" 17035case "(($ac_try" in 17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17037 *) ac_try_echo=$ac_try;; 17038esac 17039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17040$as_echo "$ac_try_echo") >&5 17041 (eval "$ac_compile") 2>conftest.er1 17042 ac_status=$? 17043 grep -v '^ *+' conftest.er1 >conftest.err 17044 rm -f conftest.er1 17045 cat conftest.err >&5 17046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17047 (exit $ac_status); } && { 17048 test -z "$ac_c_werror_flag" || 17049 test ! -s conftest.err 17050 } && test -s conftest.$ac_objext; then 17051 ac_header_compiler=yes 17052else 17053 $as_echo "$as_me: failed program was:" >&5 17054sed 's/^/| /' conftest.$ac_ext >&5 17055 17056 ac_header_compiler=no 17057fi 17058 17059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17060{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17061$as_echo "$ac_header_compiler" >&6; } 17062 17063# Is the header present? 17064{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 17065$as_echo_n "checking $ac_header presence... " >&6; } 17066cat >conftest.$ac_ext <<_ACEOF 17067/* confdefs.h. */ 17068_ACEOF 17069cat confdefs.h >>conftest.$ac_ext 17070cat >>conftest.$ac_ext <<_ACEOF 17071/* end confdefs.h. */ 17072#include <$ac_header> 17073_ACEOF 17074if { (ac_try="$ac_cpp conftest.$ac_ext" 17075case "(($ac_try" in 17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17077 *) ac_try_echo=$ac_try;; 17078esac 17079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17080$as_echo "$ac_try_echo") >&5 17081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17082 ac_status=$? 17083 grep -v '^ *+' conftest.er1 >conftest.err 17084 rm -f conftest.er1 17085 cat conftest.err >&5 17086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17087 (exit $ac_status); } >/dev/null && { 17088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17089 test ! -s conftest.err 17090 }; then 17091 ac_header_preproc=yes 17092else 17093 $as_echo "$as_me: failed program was:" >&5 17094sed 's/^/| /' conftest.$ac_ext >&5 17095 17096 ac_header_preproc=no 17097fi 17098 17099rm -f conftest.err conftest.$ac_ext 17100{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17101$as_echo "$ac_header_preproc" >&6; } 17102 17103# So? What about this header? 17104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17105 yes:no: ) 17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17107$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17109$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17110 ac_header_preproc=yes 17111 ;; 17112 no:yes:* ) 17113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17114$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17116$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17118$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17120$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17122$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17124$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17125 ( cat <<\_ASBOX 17126## ------------------------------------ ## 17127## Report this to bug-gnu-utils@gnu.org ## 17128## ------------------------------------ ## 17129_ASBOX 17130 ) | sed "s/^/$as_me: WARNING: /" >&2 17131 ;; 17132esac 17133{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17134$as_echo_n "checking for $ac_header... " >&6; } 17135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17136 $as_echo_n "(cached) " >&6 17137else 17138 eval "$as_ac_Header=\$ac_header_preproc" 17139fi 17140ac_res=`eval 'as_val=${'$as_ac_Header'} 17141 $as_echo "$as_val"'` 17142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17143$as_echo "$ac_res" >&6; } 17144 17145fi 17146as_val=`eval 'as_val=${'$as_ac_Header'} 17147 $as_echo "$as_val"'` 17148 if test "x$as_val" = x""yes; then 17149 cat >>confdefs.h <<_ACEOF 17150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17151_ACEOF 17152 17153fi 17154 17155done 17156 17157 17158for ac_func in _ftime 17159do 17160as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17161{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 17162$as_echo_n "checking for $ac_func... " >&6; } 17163if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17164 $as_echo_n "(cached) " >&6 17165else 17166 cat >conftest.$ac_ext <<_ACEOF 17167/* confdefs.h. */ 17168_ACEOF 17169cat confdefs.h >>conftest.$ac_ext 17170cat >>conftest.$ac_ext <<_ACEOF 17171/* end confdefs.h. */ 17172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17173 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17174#define $ac_func innocuous_$ac_func 17175 17176/* System header to define __stub macros and hopefully few prototypes, 17177 which can conflict with char $ac_func (); below. 17178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17179 <limits.h> exists even on freestanding compilers. */ 17180 17181#ifdef __STDC__ 17182# include <limits.h> 17183#else 17184# include <assert.h> 17185#endif 17186 17187#undef $ac_func 17188 17189/* Override any GCC internal prototype to avoid an error. 17190 Use char because int might match the return type of a GCC 17191 builtin and then its argument prototype would still apply. */ 17192#ifdef __cplusplus 17193extern "C" 17194#endif 17195char $ac_func (); 17196/* The GNU C library defines this for functions which it implements 17197 to always fail with ENOSYS. Some functions are actually named 17198 something starting with __ and the normal name is an alias. */ 17199#if defined __stub_$ac_func || defined __stub___$ac_func 17200choke me 17201#endif 17202 17203int 17204main () 17205{ 17206return $ac_func (); 17207 ; 17208 return 0; 17209} 17210_ACEOF 17211rm -f conftest.$ac_objext conftest$ac_exeext 17212if { (ac_try="$ac_link" 17213case "(($ac_try" in 17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17215 *) ac_try_echo=$ac_try;; 17216esac 17217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17218$as_echo "$ac_try_echo") >&5 17219 (eval "$ac_link") 2>conftest.er1 17220 ac_status=$? 17221 grep -v '^ *+' conftest.er1 >conftest.err 17222 rm -f conftest.er1 17223 cat conftest.err >&5 17224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17225 (exit $ac_status); } && { 17226 test -z "$ac_c_werror_flag" || 17227 test ! -s conftest.err 17228 } && test -s conftest$ac_exeext && { 17229 test "$cross_compiling" = yes || 17230 $as_test_x conftest$ac_exeext 17231 }; then 17232 eval "$as_ac_var=yes" 17233else 17234 $as_echo "$as_me: failed program was:" >&5 17235sed 's/^/| /' conftest.$ac_ext >&5 17236 17237 eval "$as_ac_var=no" 17238fi 17239 17240rm -rf conftest.dSYM 17241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17242 conftest$ac_exeext conftest.$ac_ext 17243fi 17244ac_res=`eval 'as_val=${'$as_ac_var'} 17245 $as_echo "$as_val"'` 17246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17247$as_echo "$ac_res" >&6; } 17248as_val=`eval 'as_val=${'$as_ac_var'} 17249 $as_echo "$as_val"'` 17250 if test "x$as_val" = x""yes; then 17251 cat >>confdefs.h <<_ACEOF 17252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17253_ACEOF 17254 17255fi 17256done 17257 17258 17259 fi 17260 fi 17261 17262 17263 17264 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5 17265$as_echo_n "checking whether the compiler generally respects inline... " >&6; } 17266if test "${gl_cv_c_inline_effective+set}" = set; then 17267 $as_echo_n "(cached) " >&6 17268else 17269 if test $ac_cv_c_inline = no; then 17270 gl_cv_c_inline_effective=no 17271 else 17272 cat >conftest.$ac_ext <<_ACEOF 17273/* confdefs.h. */ 17274_ACEOF 17275cat confdefs.h >>conftest.$ac_ext 17276cat >>conftest.$ac_ext <<_ACEOF 17277/* end confdefs.h. */ 17278 17279int 17280main () 17281{ 17282#ifdef __NO_INLINE__ 17283 #error "inline is not effective" 17284 #endif 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289rm -f conftest.$ac_objext 17290if { (ac_try="$ac_compile" 17291case "(($ac_try" in 17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17293 *) ac_try_echo=$ac_try;; 17294esac 17295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17296$as_echo "$ac_try_echo") >&5 17297 (eval "$ac_compile") 2>conftest.er1 17298 ac_status=$? 17299 grep -v '^ *+' conftest.er1 >conftest.err 17300 rm -f conftest.er1 17301 cat conftest.err >&5 17302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17303 (exit $ac_status); } && { 17304 test -z "$ac_c_werror_flag" || 17305 test ! -s conftest.err 17306 } && test -s conftest.$ac_objext; then 17307 gl_cv_c_inline_effective=yes 17308else 17309 $as_echo "$as_me: failed program was:" >&5 17310sed 's/^/| /' conftest.$ac_ext >&5 17311 17312 gl_cv_c_inline_effective=no 17313fi 17314 17315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17316 fi 17317 17318fi 17319{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5 17320$as_echo "$gl_cv_c_inline_effective" >&6; } 17321 if test $gl_cv_c_inline_effective = yes; then 17322 17323cat >>confdefs.h <<\_ACEOF 17324#define HAVE_INLINE 1 17325_ACEOF 17326 17327 fi 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 if test $ac_cv_func_lstat = yes; then 17350 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 17351$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } 17352if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 17353 $as_echo_n "(cached) " >&6 17354else 17355 rm -f conftest.sym conftest.file 17356echo >conftest.file 17357if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 17358 if test "$cross_compiling" = yes; then 17359 ac_cv_func_lstat_dereferences_slashed_symlink=no 17360else 17361 cat >conftest.$ac_ext <<_ACEOF 17362/* confdefs.h. */ 17363_ACEOF 17364cat confdefs.h >>conftest.$ac_ext 17365cat >>conftest.$ac_ext <<_ACEOF 17366/* end confdefs.h. */ 17367$ac_includes_default 17368int 17369main () 17370{ 17371struct stat sbuf; 17372 /* Linux will dereference the symlink and fail. 17373 That is better in the sense that it means we will not 17374 have to compile and use the lstat wrapper. */ 17375 return lstat ("conftest.sym/", &sbuf) == 0; 17376 ; 17377 return 0; 17378} 17379_ACEOF 17380rm -f conftest$ac_exeext 17381if { (ac_try="$ac_link" 17382case "(($ac_try" in 17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17384 *) ac_try_echo=$ac_try;; 17385esac 17386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17387$as_echo "$ac_try_echo") >&5 17388 (eval "$ac_link") 2>&5 17389 ac_status=$? 17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17392 { (case "(($ac_try" in 17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17394 *) ac_try_echo=$ac_try;; 17395esac 17396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17397$as_echo "$ac_try_echo") >&5 17398 (eval "$ac_try") 2>&5 17399 ac_status=$? 17400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17401 (exit $ac_status); }; }; then 17402 ac_cv_func_lstat_dereferences_slashed_symlink=yes 17403else 17404 $as_echo "$as_me: program exited with status $ac_status" >&5 17405$as_echo "$as_me: failed program was:" >&5 17406sed 's/^/| /' conftest.$ac_ext >&5 17407 17408( exit $ac_status ) 17409ac_cv_func_lstat_dereferences_slashed_symlink=no 17410fi 17411rm -rf conftest.dSYM 17412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17413fi 17414 17415 17416else 17417 # If the `ln -s' command failed, then we probably don't even 17418 # have an lstat function. 17419 ac_cv_func_lstat_dereferences_slashed_symlink=no 17420fi 17421rm -f conftest.sym conftest.file 17422 17423fi 17424{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 17425$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 17426 17427test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 17428 17429cat >>confdefs.h <<_ACEOF 17430#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 17431_ACEOF 17432 17433 17434if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 17435 17436 17437 17438 17439 17440 17441 17442 17443 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" 17444 17445fi 17446 17447 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 17448 REPLACE_LSTAT=1 17449 fi 17450 # Prerequisites of lib/lstat.c. 17451 17452 fi 17453 17454 17455 17456 GNULIB_LSTAT=1 17457 17458 17459for ac_header in stdlib.h 17460do 17461as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17464$as_echo_n "checking for $ac_header... " >&6; } 17465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17466 $as_echo_n "(cached) " >&6 17467fi 17468ac_res=`eval 'as_val=${'$as_ac_Header'} 17469 $as_echo "$as_val"'` 17470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17471$as_echo "$ac_res" >&6; } 17472else 17473 # Is the header compilable? 17474{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 17475$as_echo_n "checking $ac_header usability... " >&6; } 17476cat >conftest.$ac_ext <<_ACEOF 17477/* confdefs.h. */ 17478_ACEOF 17479cat confdefs.h >>conftest.$ac_ext 17480cat >>conftest.$ac_ext <<_ACEOF 17481/* end confdefs.h. */ 17482$ac_includes_default 17483#include <$ac_header> 17484_ACEOF 17485rm -f conftest.$ac_objext 17486if { (ac_try="$ac_compile" 17487case "(($ac_try" in 17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17489 *) ac_try_echo=$ac_try;; 17490esac 17491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17492$as_echo "$ac_try_echo") >&5 17493 (eval "$ac_compile") 2>conftest.er1 17494 ac_status=$? 17495 grep -v '^ *+' conftest.er1 >conftest.err 17496 rm -f conftest.er1 17497 cat conftest.err >&5 17498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17499 (exit $ac_status); } && { 17500 test -z "$ac_c_werror_flag" || 17501 test ! -s conftest.err 17502 } && test -s conftest.$ac_objext; then 17503 ac_header_compiler=yes 17504else 17505 $as_echo "$as_me: failed program was:" >&5 17506sed 's/^/| /' conftest.$ac_ext >&5 17507 17508 ac_header_compiler=no 17509fi 17510 17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17512{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17513$as_echo "$ac_header_compiler" >&6; } 17514 17515# Is the header present? 17516{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 17517$as_echo_n "checking $ac_header presence... " >&6; } 17518cat >conftest.$ac_ext <<_ACEOF 17519/* confdefs.h. */ 17520_ACEOF 17521cat confdefs.h >>conftest.$ac_ext 17522cat >>conftest.$ac_ext <<_ACEOF 17523/* end confdefs.h. */ 17524#include <$ac_header> 17525_ACEOF 17526if { (ac_try="$ac_cpp conftest.$ac_ext" 17527case "(($ac_try" in 17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17529 *) ac_try_echo=$ac_try;; 17530esac 17531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17532$as_echo "$ac_try_echo") >&5 17533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17534 ac_status=$? 17535 grep -v '^ *+' conftest.er1 >conftest.err 17536 rm -f conftest.er1 17537 cat conftest.err >&5 17538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17539 (exit $ac_status); } >/dev/null && { 17540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17541 test ! -s conftest.err 17542 }; then 17543 ac_header_preproc=yes 17544else 17545 $as_echo "$as_me: failed program was:" >&5 17546sed 's/^/| /' conftest.$ac_ext >&5 17547 17548 ac_header_preproc=no 17549fi 17550 17551rm -f conftest.err conftest.$ac_ext 17552{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17553$as_echo "$ac_header_preproc" >&6; } 17554 17555# So? What about this header? 17556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17557 yes:no: ) 17558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17559$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17561$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17562 ac_header_preproc=yes 17563 ;; 17564 no:yes:* ) 17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17566$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17568$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17570$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17572$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17574$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17576$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17577 ( cat <<\_ASBOX 17578## ------------------------------------ ## 17579## Report this to bug-gnu-utils@gnu.org ## 17580## ------------------------------------ ## 17581_ASBOX 17582 ) | sed "s/^/$as_me: WARNING: /" >&2 17583 ;; 17584esac 17585{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17586$as_echo_n "checking for $ac_header... " >&6; } 17587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17588 $as_echo_n "(cached) " >&6 17589else 17590 eval "$as_ac_Header=\$ac_header_preproc" 17591fi 17592ac_res=`eval 'as_val=${'$as_ac_Header'} 17593 $as_echo "$as_val"'` 17594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17595$as_echo "$ac_res" >&6; } 17596 17597fi 17598as_val=`eval 'as_val=${'$as_ac_Header'} 17599 $as_echo "$as_val"'` 17600 if test "x$as_val" = x""yes; then 17601 cat >>confdefs.h <<_ACEOF 17602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17603_ACEOF 17604 17605fi 17606 17607done 17608 17609{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 17610$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 17611if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 17612 $as_echo_n "(cached) " >&6 17613else 17614 if test "$cross_compiling" = yes; then 17615 ac_cv_func_malloc_0_nonnull=no 17616else 17617 cat >conftest.$ac_ext <<_ACEOF 17618/* confdefs.h. */ 17619_ACEOF 17620cat confdefs.h >>conftest.$ac_ext 17621cat >>conftest.$ac_ext <<_ACEOF 17622/* end confdefs.h. */ 17623#if defined STDC_HEADERS || defined HAVE_STDLIB_H 17624# include <stdlib.h> 17625#else 17626char *malloc (); 17627#endif 17628 17629int 17630main () 17631{ 17632return ! malloc (0); 17633 ; 17634 return 0; 17635} 17636_ACEOF 17637rm -f conftest$ac_exeext 17638if { (ac_try="$ac_link" 17639case "(($ac_try" in 17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17641 *) ac_try_echo=$ac_try;; 17642esac 17643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17644$as_echo "$ac_try_echo") >&5 17645 (eval "$ac_link") 2>&5 17646 ac_status=$? 17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17649 { (case "(($ac_try" in 17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17651 *) ac_try_echo=$ac_try;; 17652esac 17653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17654$as_echo "$ac_try_echo") >&5 17655 (eval "$ac_try") 2>&5 17656 ac_status=$? 17657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17658 (exit $ac_status); }; }; then 17659 ac_cv_func_malloc_0_nonnull=yes 17660else 17661 $as_echo "$as_me: program exited with status $ac_status" >&5 17662$as_echo "$as_me: failed program was:" >&5 17663sed 's/^/| /' conftest.$ac_ext >&5 17664 17665( exit $ac_status ) 17666ac_cv_func_malloc_0_nonnull=no 17667fi 17668rm -rf conftest.dSYM 17669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17670fi 17671 17672 17673fi 17674{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 17675$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 17676if test $ac_cv_func_malloc_0_nonnull = yes; then 17677 17678cat >>confdefs.h <<\_ACEOF 17679#define HAVE_MALLOC 1 17680_ACEOF 17681 17682else 17683 cat >>confdefs.h <<\_ACEOF 17684#define HAVE_MALLOC 0 17685_ACEOF 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 17696 17697 17698cat >>confdefs.h <<\_ACEOF 17699#define malloc rpl_malloc 17700_ACEOF 17701 17702fi 17703 17704 17705 17706 17707cat >>confdefs.h <<\_ACEOF 17708#define GNULIB_MALLOC_GNU 1 17709_ACEOF 17710 17711 17712 17713 if test $gl_cv_func_malloc_posix = yes; then 17714 HAVE_MALLOC_POSIX=1 17715 17716cat >>confdefs.h <<\_ACEOF 17717#define HAVE_MALLOC_POSIX 1 17718_ACEOF 17719 17720 else 17721 17722 17723 17724 17725 17726 17727 17728 17729 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 17730 17731 HAVE_MALLOC_POSIX=0 17732 fi 17733 17734 17735 17736 17737 GNULIB_MALLOC_POSIX=1 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 if test $ac_cv_func_mbrlen = no; then 17751 HAVE_MBRLEN=0 17752 else 17753 if test $REPLACE_MBRTOWC = 1; then 17754 REPLACE_MBRLEN=1 17755 fi 17756 fi 17757 if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then 17758 17759 17760 WCHAR_H=wchar.h 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 gl_LIBOBJS="$gl_LIBOBJS mbrlen.$ac_objext" 17771 17772 17773 : 17774 17775 fi 17776 17777 17778 17779 GNULIB_MBRLEN=1 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 17802 17803 17804 17805 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5 17806$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 17807if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then 17808 $as_echo_n "(cached) " >&6 17809else 17810 17811 case "$host_os" in 17812 # Guess no on AIX and OSF/1. 17813 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 17814 # Guess yes otherwise. 17815 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 17816 esac 17817 if test $LOCALE_JA != none; then 17818 if test "$cross_compiling" = yes; then 17819 : 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 17828#include <locale.h> 17829#include <string.h> 17830#include <wchar.h> 17831int main () 17832{ 17833 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 17834 { 17835 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 17836 mbstate_t state; 17837 wchar_t wc; 17838 17839 memset (&state, '\0', sizeof (mbstate_t)); 17840 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 17841 if (mbsinit (&state)) 17842 return 1; 17843 } 17844 return 0; 17845} 17846_ACEOF 17847rm -f conftest$ac_exeext 17848if { (ac_try="$ac_link" 17849case "(($ac_try" in 17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17851 *) ac_try_echo=$ac_try;; 17852esac 17853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17854$as_echo "$ac_try_echo") >&5 17855 (eval "$ac_link") 2>&5 17856 ac_status=$? 17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17859 { (case "(($ac_try" in 17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17861 *) ac_try_echo=$ac_try;; 17862esac 17863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17864$as_echo "$ac_try_echo") >&5 17865 (eval "$ac_try") 2>&5 17866 ac_status=$? 17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17868 (exit $ac_status); }; }; then 17869 gl_cv_func_mbrtowc_incomplete_state=yes 17870else 17871 $as_echo "$as_me: program exited with status $ac_status" >&5 17872$as_echo "$as_me: failed program was:" >&5 17873sed 's/^/| /' conftest.$ac_ext >&5 17874 17875( exit $ac_status ) 17876gl_cv_func_mbrtowc_incomplete_state=no 17877fi 17878rm -rf conftest.dSYM 17879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17880fi 17881 17882 17883 fi 17884 17885fi 17886{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 17887$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 17888 17889 17890 17891 17892 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5 17893$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 17894if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then 17895 $as_echo_n "(cached) " >&6 17896else 17897 17898 case "$host_os" in 17899 # Guess no on Solaris 8. 17900 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 17901 # Guess yes otherwise. 17902 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 17903 esac 17904 if test $LOCALE_ZH_CN != none; then 17905 if test "$cross_compiling" = yes; then 17906 : 17907else 17908 cat >conftest.$ac_ext <<_ACEOF 17909/* confdefs.h. */ 17910_ACEOF 17911cat confdefs.h >>conftest.$ac_ext 17912cat >>conftest.$ac_ext <<_ACEOF 17913/* end confdefs.h. */ 17914 17915#include <locale.h> 17916#include <stdlib.h> 17917#include <string.h> 17918#include <wchar.h> 17919int main () 17920{ 17921 /* This fails on Solaris 8: 17922 mbrtowc returns 2, and sets wc to 0x00F0. 17923 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 17924 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 17925 { 17926 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 17927 mbstate_t state; 17928 wchar_t wc; 17929 17930 memset (&state, '\0', sizeof (mbstate_t)); 17931 if (mbrtowc (&wc, input + 3, 6, &state) != 4 17932 && mbtowc (&wc, input + 3, 6) == 4) 17933 return 1; 17934 } 17935 return 0; 17936} 17937_ACEOF 17938rm -f conftest$ac_exeext 17939if { (ac_try="$ac_link" 17940case "(($ac_try" in 17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17942 *) ac_try_echo=$ac_try;; 17943esac 17944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17945$as_echo "$ac_try_echo") >&5 17946 (eval "$ac_link") 2>&5 17947 ac_status=$? 17948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17950 { (case "(($ac_try" in 17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17952 *) ac_try_echo=$ac_try;; 17953esac 17954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17955$as_echo "$ac_try_echo") >&5 17956 (eval "$ac_try") 2>&5 17957 ac_status=$? 17958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17959 (exit $ac_status); }; }; then 17960 gl_cv_func_mbrtowc_sanitycheck=yes 17961else 17962 $as_echo "$as_me: program exited with status $ac_status" >&5 17963$as_echo "$as_me: failed program was:" >&5 17964sed 's/^/| /' conftest.$ac_ext >&5 17965 17966( exit $ac_status ) 17967gl_cv_func_mbrtowc_sanitycheck=no 17968fi 17969rm -rf conftest.dSYM 17970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17971fi 17972 17973 17974 fi 17975 17976fi 17977{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 17978$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 17979 17980 REPLACE_MBSTATE_T=0 17981 case "$gl_cv_func_mbrtowc_incomplete_state" in 17982 *yes) ;; 17983 *) REPLACE_MBSTATE_T=1 ;; 17984 esac 17985 case "$gl_cv_func_mbrtowc_sanitycheck" in 17986 *yes) ;; 17987 *) REPLACE_MBSTATE_T=1 ;; 17988 esac 17989 else 17990 REPLACE_MBSTATE_T=1 17991 fi 17992 if test $REPLACE_MBSTATE_T = 1; then 17993 17994 17995 WCHAR_H=wchar.h 17996 17997 fi 17998 17999 if test $REPLACE_MBSTATE_T = 1; then 18000 REPLACE_MBRTOWC=1 18001 fi 18002 18003 18004 18005 18006 18007 18008 if test $ac_cv_func_mbrtowc = no; then 18009 HAVE_MBRTOWC=0 18010 fi 18011 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then 18012 18013 18014 18015 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5 18016$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } 18017if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then 18018 $as_echo_n "(cached) " >&6 18019else 18020 18021 case "$host_os" in 18022 # Guess no on OSF/1. 18023 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; 18024 # Guess yes otherwise. 18025 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; 18026 esac 18027 if test $LOCALE_FR_UTF8 != none; then 18028 if test "$cross_compiling" = yes; then 18029 : 18030else 18031 cat >conftest.$ac_ext <<_ACEOF 18032/* confdefs.h. */ 18033_ACEOF 18034cat confdefs.h >>conftest.$ac_ext 18035cat >>conftest.$ac_ext <<_ACEOF 18036/* end confdefs.h. */ 18037 18038#include <locale.h> 18039#include <string.h> 18040#include <wchar.h> 18041int main () 18042{ 18043 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 18044 { 18045 mbstate_t state; 18046 wchar_t wc; 18047 int ret; 18048 18049 memset (&state, '\0', sizeof (mbstate_t)); 18050 wc = (wchar_t) 0xBADFACE; 18051 mbrtowc (&wc, NULL, 5, &state); 18052 /* Check that wc was not modified. */ 18053 if (wc != (wchar_t) 0xBADFACE) 18054 return 1; 18055 } 18056 return 0; 18057} 18058_ACEOF 18059rm -f conftest$ac_exeext 18060if { (ac_try="$ac_link" 18061case "(($ac_try" in 18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18063 *) ac_try_echo=$ac_try;; 18064esac 18065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18066$as_echo "$ac_try_echo") >&5 18067 (eval "$ac_link") 2>&5 18068 ac_status=$? 18069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18071 { (case "(($ac_try" in 18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18073 *) ac_try_echo=$ac_try;; 18074esac 18075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18076$as_echo "$ac_try_echo") >&5 18077 (eval "$ac_try") 2>&5 18078 ac_status=$? 18079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18080 (exit $ac_status); }; }; then 18081 gl_cv_func_mbrtowc_null_arg=yes 18082else 18083 $as_echo "$as_me: program exited with status $ac_status" >&5 18084$as_echo "$as_me: failed program was:" >&5 18085sed 's/^/| /' conftest.$ac_ext >&5 18086 18087( exit $ac_status ) 18088gl_cv_func_mbrtowc_null_arg=no 18089fi 18090rm -rf conftest.dSYM 18091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18092fi 18093 18094 18095 fi 18096 18097fi 18098{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5 18099$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; } 18100 18101 18102 18103 18104 18105 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5 18106$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } 18107if test "${gl_cv_func_mbrtowc_retval+set}" = set; then 18108 $as_echo_n "(cached) " >&6 18109else 18110 18111 case "$host_os" in 18112 # Guess no on HP-UX and Solaris. 18113 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; 18114 # Guess yes otherwise. 18115 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 18116 esac 18117 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then 18118 if test "$cross_compiling" = yes; then 18119 : 18120else 18121 cat >conftest.$ac_ext <<_ACEOF 18122/* confdefs.h. */ 18123_ACEOF 18124cat confdefs.h >>conftest.$ac_ext 18125cat >>conftest.$ac_ext <<_ACEOF 18126/* end confdefs.h. */ 18127 18128#include <locale.h> 18129#include <string.h> 18130#include <wchar.h> 18131int main () 18132{ 18133 /* This fails on Solaris. */ 18134 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 18135 { 18136 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 18137 mbstate_t state; 18138 wchar_t wc; 18139 18140 memset (&state, '\0', sizeof (mbstate_t)); 18141 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 18142 { 18143 input[1] = '\0'; 18144 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 18145 return 1; 18146 } 18147 } 18148 /* This fails on HP-UX 11.11. */ 18149 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 18150 { 18151 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 18152 mbstate_t state; 18153 wchar_t wc; 18154 18155 memset (&state, '\0', sizeof (mbstate_t)); 18156 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 18157 { 18158 input[1] = '\0'; 18159 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 18160 return 1; 18161 } 18162 } 18163 return 0; 18164} 18165_ACEOF 18166rm -f conftest$ac_exeext 18167if { (ac_try="$ac_link" 18168case "(($ac_try" in 18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18170 *) ac_try_echo=$ac_try;; 18171esac 18172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18173$as_echo "$ac_try_echo") >&5 18174 (eval "$ac_link") 2>&5 18175 ac_status=$? 18176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18178 { (case "(($ac_try" in 18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18180 *) ac_try_echo=$ac_try;; 18181esac 18182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18183$as_echo "$ac_try_echo") >&5 18184 (eval "$ac_try") 2>&5 18185 ac_status=$? 18186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18187 (exit $ac_status); }; }; then 18188 gl_cv_func_mbrtowc_retval=yes 18189else 18190 $as_echo "$as_me: program exited with status $ac_status" >&5 18191$as_echo "$as_me: failed program was:" >&5 18192sed 's/^/| /' conftest.$ac_ext >&5 18193 18194( exit $ac_status ) 18195gl_cv_func_mbrtowc_retval=no 18196fi 18197rm -rf conftest.dSYM 18198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18199fi 18200 18201 18202 fi 18203 18204fi 18205{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5 18206$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } 18207 18208 18209 18210 18211 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 18212$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 18213if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then 18214 $as_echo_n "(cached) " >&6 18215else 18216 18217 case "$host_os" in 18218 # Guess no on Solaris 8 and 9. 18219 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 18220 # Guess yes otherwise. 18221 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 18222 esac 18223 if test $LOCALE_ZH_CN != none; then 18224 if test "$cross_compiling" = yes; then 18225 : 18226else 18227 cat >conftest.$ac_ext <<_ACEOF 18228/* confdefs.h. */ 18229_ACEOF 18230cat confdefs.h >>conftest.$ac_ext 18231cat >>conftest.$ac_ext <<_ACEOF 18232/* end confdefs.h. */ 18233 18234#include <locale.h> 18235#include <string.h> 18236#include <wchar.h> 18237int main () 18238{ 18239 /* This fails on Solaris 8 and 9. */ 18240 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 18241 { 18242 mbstate_t state; 18243 wchar_t wc; 18244 18245 memset (&state, '\0', sizeof (mbstate_t)); 18246 if (mbrtowc (&wc, "", 1, &state) != 0) 18247 return 1; 18248 } 18249 return 0; 18250} 18251_ACEOF 18252rm -f conftest$ac_exeext 18253if { (ac_try="$ac_link" 18254case "(($ac_try" in 18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18256 *) ac_try_echo=$ac_try;; 18257esac 18258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18259$as_echo "$ac_try_echo") >&5 18260 (eval "$ac_link") 2>&5 18261 ac_status=$? 18262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18264 { (case "(($ac_try" in 18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18266 *) ac_try_echo=$ac_try;; 18267esac 18268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18269$as_echo "$ac_try_echo") >&5 18270 (eval "$ac_try") 2>&5 18271 ac_status=$? 18272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18273 (exit $ac_status); }; }; then 18274 gl_cv_func_mbrtowc_nul_retval=yes 18275else 18276 $as_echo "$as_me: program exited with status $ac_status" >&5 18277$as_echo "$as_me: failed program was:" >&5 18278sed 's/^/| /' conftest.$ac_ext >&5 18279 18280( exit $ac_status ) 18281gl_cv_func_mbrtowc_nul_retval=no 18282fi 18283rm -rf conftest.dSYM 18284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18285fi 18286 18287 18288 fi 18289 18290fi 18291{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5 18292$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } 18293 18294 case "$gl_cv_func_mbrtowc_null_arg" in 18295 *yes) ;; 18296 *) 18297cat >>confdefs.h <<\_ACEOF 18298#define MBRTOWC_NULL_ARG_BUG 1 18299_ACEOF 18300 18301 REPLACE_MBRTOWC=1 18302 ;; 18303 esac 18304 case "$gl_cv_func_mbrtowc_retval" in 18305 *yes) ;; 18306 *) 18307cat >>confdefs.h <<\_ACEOF 18308#define MBRTOWC_RETVAL_BUG 1 18309_ACEOF 18310 18311 REPLACE_MBRTOWC=1 18312 ;; 18313 esac 18314 case "$gl_cv_func_mbrtowc_nul_retval" in 18315 *yes) ;; 18316 *) 18317cat >>confdefs.h <<\_ACEOF 18318#define MBRTOWC_NUL_RETVAL_BUG 1 18319_ACEOF 18320 18321 REPLACE_MBRTOWC=1 18322 ;; 18323 esac 18324 fi 18325 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 18326 18327 18328 WCHAR_H=wchar.h 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 18339 18340 18341 : 18342 18343 fi 18344 18345 18346 18347 GNULIB_MBRTOWC=1 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 18370 18371 18372 18373 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5 18374$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 18375if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then 18376 $as_echo_n "(cached) " >&6 18377else 18378 18379 case "$host_os" in 18380 # Guess no on AIX and OSF/1. 18381 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 18382 # Guess yes otherwise. 18383 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 18384 esac 18385 if test $LOCALE_JA != none; then 18386 if test "$cross_compiling" = yes; then 18387 : 18388else 18389 cat >conftest.$ac_ext <<_ACEOF 18390/* confdefs.h. */ 18391_ACEOF 18392cat confdefs.h >>conftest.$ac_ext 18393cat >>conftest.$ac_ext <<_ACEOF 18394/* end confdefs.h. */ 18395 18396#include <locale.h> 18397#include <string.h> 18398#include <wchar.h> 18399int main () 18400{ 18401 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 18402 { 18403 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 18404 mbstate_t state; 18405 wchar_t wc; 18406 18407 memset (&state, '\0', sizeof (mbstate_t)); 18408 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 18409 if (mbsinit (&state)) 18410 return 1; 18411 } 18412 return 0; 18413} 18414_ACEOF 18415rm -f conftest$ac_exeext 18416if { (ac_try="$ac_link" 18417case "(($ac_try" in 18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18419 *) ac_try_echo=$ac_try;; 18420esac 18421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18422$as_echo "$ac_try_echo") >&5 18423 (eval "$ac_link") 2>&5 18424 ac_status=$? 18425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18427 { (case "(($ac_try" in 18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18429 *) ac_try_echo=$ac_try;; 18430esac 18431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18432$as_echo "$ac_try_echo") >&5 18433 (eval "$ac_try") 2>&5 18434 ac_status=$? 18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18436 (exit $ac_status); }; }; then 18437 gl_cv_func_mbrtowc_incomplete_state=yes 18438else 18439 $as_echo "$as_me: program exited with status $ac_status" >&5 18440$as_echo "$as_me: failed program was:" >&5 18441sed 's/^/| /' conftest.$ac_ext >&5 18442 18443( exit $ac_status ) 18444gl_cv_func_mbrtowc_incomplete_state=no 18445fi 18446rm -rf conftest.dSYM 18447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18448fi 18449 18450 18451 fi 18452 18453fi 18454{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 18455$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 18456 18457 18458 18459 18460 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5 18461$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 18462if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then 18463 $as_echo_n "(cached) " >&6 18464else 18465 18466 case "$host_os" in 18467 # Guess no on Solaris 8. 18468 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 18469 # Guess yes otherwise. 18470 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 18471 esac 18472 if test $LOCALE_ZH_CN != none; then 18473 if test "$cross_compiling" = yes; then 18474 : 18475else 18476 cat >conftest.$ac_ext <<_ACEOF 18477/* confdefs.h. */ 18478_ACEOF 18479cat confdefs.h >>conftest.$ac_ext 18480cat >>conftest.$ac_ext <<_ACEOF 18481/* end confdefs.h. */ 18482 18483#include <locale.h> 18484#include <stdlib.h> 18485#include <string.h> 18486#include <wchar.h> 18487int main () 18488{ 18489 /* This fails on Solaris 8: 18490 mbrtowc returns 2, and sets wc to 0x00F0. 18491 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 18492 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 18493 { 18494 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 18495 mbstate_t state; 18496 wchar_t wc; 18497 18498 memset (&state, '\0', sizeof (mbstate_t)); 18499 if (mbrtowc (&wc, input + 3, 6, &state) != 4 18500 && mbtowc (&wc, input + 3, 6) == 4) 18501 return 1; 18502 } 18503 return 0; 18504} 18505_ACEOF 18506rm -f conftest$ac_exeext 18507if { (ac_try="$ac_link" 18508case "(($ac_try" in 18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18510 *) ac_try_echo=$ac_try;; 18511esac 18512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18513$as_echo "$ac_try_echo") >&5 18514 (eval "$ac_link") 2>&5 18515 ac_status=$? 18516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18518 { (case "(($ac_try" in 18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18520 *) ac_try_echo=$ac_try;; 18521esac 18522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18523$as_echo "$ac_try_echo") >&5 18524 (eval "$ac_try") 2>&5 18525 ac_status=$? 18526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18527 (exit $ac_status); }; }; then 18528 gl_cv_func_mbrtowc_sanitycheck=yes 18529else 18530 $as_echo "$as_me: program exited with status $ac_status" >&5 18531$as_echo "$as_me: failed program was:" >&5 18532sed 's/^/| /' conftest.$ac_ext >&5 18533 18534( exit $ac_status ) 18535gl_cv_func_mbrtowc_sanitycheck=no 18536fi 18537rm -rf conftest.dSYM 18538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18539fi 18540 18541 18542 fi 18543 18544fi 18545{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 18546$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 18547 18548 REPLACE_MBSTATE_T=0 18549 case "$gl_cv_func_mbrtowc_incomplete_state" in 18550 *yes) ;; 18551 *) REPLACE_MBSTATE_T=1 ;; 18552 esac 18553 case "$gl_cv_func_mbrtowc_sanitycheck" in 18554 *yes) ;; 18555 *) REPLACE_MBSTATE_T=1 ;; 18556 esac 18557 else 18558 REPLACE_MBSTATE_T=1 18559 fi 18560 if test $REPLACE_MBSTATE_T = 1; then 18561 18562 18563 WCHAR_H=wchar.h 18564 18565 fi 18566 18567 if test $REPLACE_MBSTATE_T = 1; then 18568 REPLACE_MBSINIT=1 18569 fi 18570 18571 18572 18573 18574 18575 18576 if test $ac_cv_func_mbsinit = no; then 18577 HAVE_MBSINIT=0 18578 fi 18579 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 18580 18581 18582 WCHAR_H=wchar.h 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 18593 18594 18595 : 18596 18597 fi 18598 18599 18600 18601 GNULIB_MBSINIT=1 18602 18603 18604 18605 18606 GNULIB_MEMCHR=1 18607 18608 18609 18610 18611 18612 { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5 18613$as_echo_n "checking for working mkstemp... " >&6; } 18614if test "${gl_cv_func_working_mkstemp+set}" = set; then 18615 $as_echo_n "(cached) " >&6 18616else 18617 18618 mkdir conftest.mkstemp 18619 if test "$cross_compiling" = yes; then 18620 gl_cv_func_working_mkstemp=no 18621else 18622 cat >conftest.$ac_ext <<_ACEOF 18623/* confdefs.h. */ 18624_ACEOF 18625cat confdefs.h >>conftest.$ac_ext 18626cat >>conftest.$ac_ext <<_ACEOF 18627/* end confdefs.h. */ 18628$ac_includes_default 18629int 18630main () 18631{ 18632int i; 18633 off_t large = (off_t) 4294967295u; 18634 if (large < 0) 18635 large = 2147483647; 18636 for (i = 0; i < 70; i++) 18637 { 18638 char templ[] = "conftest.mkstemp/coXXXXXX"; 18639 int (*mkstemp_function) (char *) = mkstemp; 18640 int fd = mkstemp_function (templ); 18641 if (fd < 0 || lseek (fd, large, SEEK_SET) != large) 18642 return 1; 18643 close (fd); 18644 } 18645 return 0; 18646 ; 18647 return 0; 18648} 18649_ACEOF 18650rm -f conftest$ac_exeext 18651if { (ac_try="$ac_link" 18652case "(($ac_try" in 18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18654 *) ac_try_echo=$ac_try;; 18655esac 18656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18657$as_echo "$ac_try_echo") >&5 18658 (eval "$ac_link") 2>&5 18659 ac_status=$? 18660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18662 { (case "(($ac_try" in 18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18664 *) ac_try_echo=$ac_try;; 18665esac 18666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18667$as_echo "$ac_try_echo") >&5 18668 (eval "$ac_try") 2>&5 18669 ac_status=$? 18670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18671 (exit $ac_status); }; }; then 18672 gl_cv_func_working_mkstemp=yes 18673else 18674 $as_echo "$as_me: program exited with status $ac_status" >&5 18675$as_echo "$as_me: failed program was:" >&5 18676sed 's/^/| /' conftest.$ac_ext >&5 18677 18678( exit $ac_status ) 18679gl_cv_func_working_mkstemp=no 18680fi 18681rm -rf conftest.dSYM 18682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18683fi 18684 18685 18686 rm -rf conftest.mkstemp 18687 18688fi 18689{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_mkstemp" >&5 18690$as_echo "$gl_cv_func_working_mkstemp" >&6; } 18691 18692 if test $gl_cv_func_working_mkstemp != yes; then 18693 REPLACE_MKSTEMP=1 18694 18695 18696 18697 18698 18699 18700 18701 18702 gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext" 18703 18704 18705 18706 fi 18707 18708 18709 18710 GNULIB_MKSTEMP=1 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725{ $as_echo "$as_me:$LINENO: checking for obstacks" >&5 18726$as_echo_n "checking for obstacks... " >&6; } 18727if test "${ac_cv_func_obstack+set}" = set; then 18728 $as_echo_n "(cached) " >&6 18729else 18730 cat >conftest.$ac_ext <<_ACEOF 18731/* confdefs.h. */ 18732_ACEOF 18733cat confdefs.h >>conftest.$ac_ext 18734cat >>conftest.$ac_ext <<_ACEOF 18735/* end confdefs.h. */ 18736$ac_includes_default 18737 #include "obstack.h" 18738int 18739main () 18740{ 18741struct obstack mem; 18742 #define obstack_chunk_alloc malloc 18743 #define obstack_chunk_free free 18744 obstack_init (&mem); 18745 obstack_free (&mem, 0); 18746 ; 18747 return 0; 18748} 18749_ACEOF 18750rm -f conftest.$ac_objext conftest$ac_exeext 18751if { (ac_try="$ac_link" 18752case "(($ac_try" in 18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18754 *) ac_try_echo=$ac_try;; 18755esac 18756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18757$as_echo "$ac_try_echo") >&5 18758 (eval "$ac_link") 2>conftest.er1 18759 ac_status=$? 18760 grep -v '^ *+' conftest.er1 >conftest.err 18761 rm -f conftest.er1 18762 cat conftest.err >&5 18763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18764 (exit $ac_status); } && { 18765 test -z "$ac_c_werror_flag" || 18766 test ! -s conftest.err 18767 } && test -s conftest$ac_exeext && { 18768 test "$cross_compiling" = yes || 18769 $as_test_x conftest$ac_exeext 18770 }; then 18771 ac_cv_func_obstack=yes 18772else 18773 $as_echo "$as_me: failed program was:" >&5 18774sed 's/^/| /' conftest.$ac_ext >&5 18775 18776 ac_cv_func_obstack=no 18777fi 18778 18779rm -rf conftest.dSYM 18780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18781 conftest$ac_exeext conftest.$ac_ext 18782fi 18783{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 18784$as_echo "$ac_cv_func_obstack" >&6; } 18785if test $ac_cv_func_obstack = yes; then 18786 18787cat >>confdefs.h <<\_ACEOF 18788#define HAVE_OBSTACK 1 18789_ACEOF 18790 18791else 18792 18793 18794 18795 18796 18797 18798 18799 18800 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext" 18801 18802fi 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext" 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext" 18841 18842 18843 18844 18845 if test $gl_cv_func_malloc_posix = yes; then 18846 HAVE_REALLOC_POSIX=1 18847 18848cat >>confdefs.h <<\_ACEOF 18849#define HAVE_REALLOC_POSIX 1 18850_ACEOF 18851 18852 else 18853 18854 18855 18856 18857 18858 18859 18860 18861 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" 18862 18863 HAVE_REALLOC_POSIX=0 18864 fi 18865 18866 18867 18868 18869 GNULIB_REALLOC_POSIX=1 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880# Check whether --with-included-regex was given. 18881if test "${with_included_regex+set}" = set; then 18882 withval=$with_included_regex; 18883fi 18884 18885 18886 case $with_included_regex in #( 18887 yes|no) ac_use_included_regex=$with_included_regex 18888 ;; 18889 '') 18890 # If the system regex support is good enough that it passes the 18891 # following run test, then default to *not* using the included regex.c. 18892 # If cross compiling, assume the test would fail and use the included 18893 # regex.c. 18894 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5 18895$as_echo_n "checking for working re_compile_pattern... " >&6; } 18896if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then 18897 $as_echo_n "(cached) " >&6 18898else 18899 if test "$cross_compiling" = yes; then 18900 gl_cv_func_re_compile_pattern_working=no 18901else 18902 cat >conftest.$ac_ext <<_ACEOF 18903/* confdefs.h. */ 18904_ACEOF 18905cat confdefs.h >>conftest.$ac_ext 18906cat >>conftest.$ac_ext <<_ACEOF 18907/* end confdefs.h. */ 18908$ac_includes_default 18909 #if HAVE_LOCALE_H 18910 #include <locale.h> 18911 #endif 18912 #include <limits.h> 18913 #include <regex.h> 18914 18915int 18916main () 18917{ 18918static struct re_pattern_buffer regex; 18919 unsigned char folded_chars[UCHAR_MAX + 1]; 18920 int i; 18921 const char *s; 18922 struct re_registers regs; 18923 18924 #if HAVE_LOCALE_H 18925 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html 18926 This test needs valgrind to catch the bug on Debian 18927 GNU/Linux 3.1 x86, but it might catch the bug better 18928 on other platforms and it shouldn't hurt to try the 18929 test here. */ 18930 if (setlocale (LC_ALL, "en_US.UTF-8")) 18931 { 18932 static char const pat[] = "insert into"; 18933 static char const data[] = 18934 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; 18935 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE 18936 | RE_ICASE); 18937 memset (®ex, 0, sizeof regex); 18938 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 18939 if (s) 18940 return 1; 18941 if (re_search (®ex, data, sizeof data - 1, 18942 0, sizeof data - 1, ®s) 18943 != -1) 18944 return 1; 18945 if (! setlocale (LC_ALL, "C")) 18946 return 1; 18947 } 18948 #endif 18949 18950 /* This test is from glibc bug 3957, reported by Andrew Mackey. */ 18951 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); 18952 memset (®ex, 0, sizeof regex); 18953 s = re_compile_pattern ("a[^x]b", 6, ®ex); 18954 if (s) 18955 return 1; 18956 18957 /* This should fail, but succeeds for glibc-2.5. */ 18958 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) 18959 return 1; 18960 18961 /* This regular expression is from Spencer ere test number 75 18962 in grep-2.3. */ 18963 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 18964 memset (®ex, 0, sizeof regex); 18965 for (i = 0; i <= UCHAR_MAX; i++) 18966 folded_chars[i] = i; 18967 regex.translate = folded_chars; 18968 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex); 18969 /* This should fail with _Invalid character class name_ error. */ 18970 if (!s) 18971 return 1; 18972 18973 /* This should succeed, but does not for glibc-2.1.3. */ 18974 memset (®ex, 0, sizeof regex); 18975 s = re_compile_pattern ("{1", 2, ®ex); 18976 18977 if (s) 18978 return 1; 18979 18980 /* The following example is derived from a problem report 18981 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ 18982 memset (®ex, 0, sizeof regex); 18983 s = re_compile_pattern ("[an\371]*n", 7, ®ex); 18984 if (s) 18985 return 1; 18986 18987 /* This should match, but does not for glibc-2.2.1. */ 18988 if (re_match (®ex, "an", 2, 0, ®s) != 2) 18989 return 1; 18990 18991 memset (®ex, 0, sizeof regex); 18992 s = re_compile_pattern ("x", 1, ®ex); 18993 if (s) 18994 return 1; 18995 18996 /* glibc-2.2.93 does not work with a negative RANGE argument. */ 18997 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) 18998 return 1; 18999 19000 /* The version of regex.c in older versions of gnulib 19001 ignored RE_ICASE. Detect that problem too. */ 19002 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); 19003 memset (®ex, 0, sizeof regex); 19004 s = re_compile_pattern ("x", 1, ®ex); 19005 if (s) 19006 return 1; 19007 19008 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) 19009 return 1; 19010 19011 /* Catch a bug reported by Vin Shelton in 19012 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html 19013 */ 19014 re_set_syntax (RE_SYNTAX_POSIX_BASIC 19015 & ~RE_CONTEXT_INVALID_DUP 19016 & ~RE_NO_EMPTY_RANGES); 19017 memset (®ex, 0, sizeof regex); 19018 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex); 19019 if (s) 19020 return 1; 19021 19022 /* REG_STARTEND was added to glibc on 2004-01-15. 19023 Reject older versions. */ 19024 if (! REG_STARTEND) 19025 return 1; 19026 19027 /* Reject hosts whose regoff_t values are too narrow. 19028 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t 19029 and 32-bit int. */ 19030 if (sizeof (regoff_t) < sizeof (ptrdiff_t) 19031 || sizeof (regoff_t) < sizeof (ssize_t)) 19032 return 1; 19033 19034 return 0; 19035 ; 19036 return 0; 19037} 19038_ACEOF 19039rm -f conftest$ac_exeext 19040if { (ac_try="$ac_link" 19041case "(($ac_try" in 19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19043 *) ac_try_echo=$ac_try;; 19044esac 19045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19046$as_echo "$ac_try_echo") >&5 19047 (eval "$ac_link") 2>&5 19048 ac_status=$? 19049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19051 { (case "(($ac_try" in 19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19053 *) ac_try_echo=$ac_try;; 19054esac 19055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19056$as_echo "$ac_try_echo") >&5 19057 (eval "$ac_try") 2>&5 19058 ac_status=$? 19059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19060 (exit $ac_status); }; }; then 19061 gl_cv_func_re_compile_pattern_working=yes 19062else 19063 $as_echo "$as_me: program exited with status $ac_status" >&5 19064$as_echo "$as_me: failed program was:" >&5 19065sed 's/^/| /' conftest.$ac_ext >&5 19066 19067( exit $ac_status ) 19068gl_cv_func_re_compile_pattern_working=no 19069fi 19070rm -rf conftest.dSYM 19071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19072fi 19073 19074 19075fi 19076{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5 19077$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; } 19078 case $gl_cv_func_re_compile_pattern_working in #( 19079 yes) ac_use_included_regex=no;; #( 19080 no) ac_use_included_regex=yes;; 19081 esac 19082 ;; 19083 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5 19084$as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;} 19085 { (exit 1); exit 1; }; } 19086 ;; 19087 esac 19088 19089 if test $ac_use_included_regex = yes; then 19090 19091cat >>confdefs.h <<\_ACEOF 19092#define _REGEX_LARGE_OFFSETS 1 19093_ACEOF 19094 19095 19096cat >>confdefs.h <<\_ACEOF 19097#define re_syntax_options rpl_re_syntax_options 19098_ACEOF 19099 19100 19101cat >>confdefs.h <<\_ACEOF 19102#define re_set_syntax rpl_re_set_syntax 19103_ACEOF 19104 19105 19106cat >>confdefs.h <<\_ACEOF 19107#define re_compile_pattern rpl_re_compile_pattern 19108_ACEOF 19109 19110 19111cat >>confdefs.h <<\_ACEOF 19112#define re_compile_fastmap rpl_re_compile_fastmap 19113_ACEOF 19114 19115 19116cat >>confdefs.h <<\_ACEOF 19117#define re_search rpl_re_search 19118_ACEOF 19119 19120 19121cat >>confdefs.h <<\_ACEOF 19122#define re_search_2 rpl_re_search_2 19123_ACEOF 19124 19125 19126cat >>confdefs.h <<\_ACEOF 19127#define re_match rpl_re_match 19128_ACEOF 19129 19130 19131cat >>confdefs.h <<\_ACEOF 19132#define re_match_2 rpl_re_match_2 19133_ACEOF 19134 19135 19136cat >>confdefs.h <<\_ACEOF 19137#define re_set_registers rpl_re_set_registers 19138_ACEOF 19139 19140 19141cat >>confdefs.h <<\_ACEOF 19142#define re_comp rpl_re_comp 19143_ACEOF 19144 19145 19146cat >>confdefs.h <<\_ACEOF 19147#define re_exec rpl_re_exec 19148_ACEOF 19149 19150 19151cat >>confdefs.h <<\_ACEOF 19152#define regcomp rpl_regcomp 19153_ACEOF 19154 19155 19156cat >>confdefs.h <<\_ACEOF 19157#define regexec rpl_regexec 19158_ACEOF 19159 19160 19161cat >>confdefs.h <<\_ACEOF 19162#define regerror rpl_regerror 19163_ACEOF 19164 19165 19166cat >>confdefs.h <<\_ACEOF 19167#define regfree rpl_regfree 19168_ACEOF 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext" 19179 19180 19181 19182 19183 19184 19185for ac_header in libintl.h 19186do 19187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19190$as_echo_n "checking for $ac_header... " >&6; } 19191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19192 $as_echo_n "(cached) " >&6 19193fi 19194ac_res=`eval 'as_val=${'$as_ac_Header'} 19195 $as_echo "$as_val"'` 19196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19197$as_echo "$ac_res" >&6; } 19198else 19199 # Is the header compilable? 19200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 19201$as_echo_n "checking $ac_header usability... " >&6; } 19202cat >conftest.$ac_ext <<_ACEOF 19203/* confdefs.h. */ 19204_ACEOF 19205cat confdefs.h >>conftest.$ac_ext 19206cat >>conftest.$ac_ext <<_ACEOF 19207/* end confdefs.h. */ 19208$ac_includes_default 19209#include <$ac_header> 19210_ACEOF 19211rm -f conftest.$ac_objext 19212if { (ac_try="$ac_compile" 19213case "(($ac_try" in 19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19215 *) ac_try_echo=$ac_try;; 19216esac 19217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19218$as_echo "$ac_try_echo") >&5 19219 (eval "$ac_compile") 2>conftest.er1 19220 ac_status=$? 19221 grep -v '^ *+' conftest.er1 >conftest.err 19222 rm -f conftest.er1 19223 cat conftest.err >&5 19224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19225 (exit $ac_status); } && { 19226 test -z "$ac_c_werror_flag" || 19227 test ! -s conftest.err 19228 } && test -s conftest.$ac_objext; then 19229 ac_header_compiler=yes 19230else 19231 $as_echo "$as_me: failed program was:" >&5 19232sed 's/^/| /' conftest.$ac_ext >&5 19233 19234 ac_header_compiler=no 19235fi 19236 19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19239$as_echo "$ac_header_compiler" >&6; } 19240 19241# Is the header present? 19242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 19243$as_echo_n "checking $ac_header presence... " >&6; } 19244cat >conftest.$ac_ext <<_ACEOF 19245/* confdefs.h. */ 19246_ACEOF 19247cat confdefs.h >>conftest.$ac_ext 19248cat >>conftest.$ac_ext <<_ACEOF 19249/* end confdefs.h. */ 19250#include <$ac_header> 19251_ACEOF 19252if { (ac_try="$ac_cpp conftest.$ac_ext" 19253case "(($ac_try" in 19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19255 *) ac_try_echo=$ac_try;; 19256esac 19257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19258$as_echo "$ac_try_echo") >&5 19259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19260 ac_status=$? 19261 grep -v '^ *+' conftest.er1 >conftest.err 19262 rm -f conftest.er1 19263 cat conftest.err >&5 19264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19265 (exit $ac_status); } >/dev/null && { 19266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19267 test ! -s conftest.err 19268 }; then 19269 ac_header_preproc=yes 19270else 19271 $as_echo "$as_me: failed program was:" >&5 19272sed 's/^/| /' conftest.$ac_ext >&5 19273 19274 ac_header_preproc=no 19275fi 19276 19277rm -f conftest.err conftest.$ac_ext 19278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19279$as_echo "$ac_header_preproc" >&6; } 19280 19281# So? What about this header? 19282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19283 yes:no: ) 19284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19288 ac_header_preproc=yes 19289 ;; 19290 no:yes:* ) 19291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19294$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19298$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19303 ( cat <<\_ASBOX 19304## ------------------------------------ ## 19305## Report this to bug-gnu-utils@gnu.org ## 19306## ------------------------------------ ## 19307_ASBOX 19308 ) | sed "s/^/$as_me: WARNING: /" >&2 19309 ;; 19310esac 19311{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19312$as_echo_n "checking for $ac_header... " >&6; } 19313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19314 $as_echo_n "(cached) " >&6 19315else 19316 eval "$as_ac_Header=\$ac_header_preproc" 19317fi 19318ac_res=`eval 'as_val=${'$as_ac_Header'} 19319 $as_echo "$as_val"'` 19320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19321$as_echo "$ac_res" >&6; } 19322 19323fi 19324as_val=`eval 'as_val=${'$as_ac_Header'} 19325 $as_echo "$as_val"'` 19326 if test "x$as_val" = x""yes; then 19327 cat >>confdefs.h <<_ACEOF 19328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19329_ACEOF 19330 19331fi 19332 19333done 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5 19346$as_echo_n "checking whether isblank is declared... " >&6; } 19347if test "${ac_cv_have_decl_isblank+set}" = set; then 19348 $as_echo_n "(cached) " >&6 19349else 19350 cat >conftest.$ac_ext <<_ACEOF 19351/* confdefs.h. */ 19352_ACEOF 19353cat confdefs.h >>conftest.$ac_ext 19354cat >>conftest.$ac_ext <<_ACEOF 19355/* end confdefs.h. */ 19356#include <ctype.h> 19357 19358int 19359main () 19360{ 19361#ifndef isblank 19362 (void) isblank; 19363#endif 19364 19365 ; 19366 return 0; 19367} 19368_ACEOF 19369rm -f conftest.$ac_objext 19370if { (ac_try="$ac_compile" 19371case "(($ac_try" in 19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19373 *) ac_try_echo=$ac_try;; 19374esac 19375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19376$as_echo "$ac_try_echo") >&5 19377 (eval "$ac_compile") 2>conftest.er1 19378 ac_status=$? 19379 grep -v '^ *+' conftest.er1 >conftest.err 19380 rm -f conftest.er1 19381 cat conftest.err >&5 19382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); } && { 19384 test -z "$ac_c_werror_flag" || 19385 test ! -s conftest.err 19386 } && test -s conftest.$ac_objext; then 19387 ac_cv_have_decl_isblank=yes 19388else 19389 $as_echo "$as_me: failed program was:" >&5 19390sed 's/^/| /' conftest.$ac_ext >&5 19391 19392 ac_cv_have_decl_isblank=no 19393fi 19394 19395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19396fi 19397{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5 19398$as_echo "$ac_cv_have_decl_isblank" >&6; } 19399if test "x$ac_cv_have_decl_isblank" = x""yes; then 19400 19401cat >>confdefs.h <<_ACEOF 19402#define HAVE_DECL_ISBLANK 1 19403_ACEOF 19404 19405 19406else 19407 cat >>confdefs.h <<_ACEOF 19408#define HAVE_DECL_ISBLANK 0 19409_ACEOF 19410 19411 19412fi 19413 19414 19415 19416 fi 19417 19418 19419 19420 { $as_echo "$as_me:$LINENO: checking whether rename is broken with a trailing slash" >&5 19421$as_echo_n "checking whether rename is broken with a trailing slash... " >&6; } 19422if test "${gl_cv_func_rename_trailing_slash_bug+set}" = set; then 19423 $as_echo_n "(cached) " >&6 19424else 19425 19426 rm -rf conftest.d1 conftest.d2 19427 mkdir conftest.d1 || 19428 { { $as_echo "$as_me:$LINENO: error: cannot create temporary directory" >&5 19429$as_echo "$as_me: error: cannot create temporary directory" >&2;} 19430 { (exit 1); exit 1; }; } 19431 if test "$cross_compiling" = yes; then 19432 gl_cv_func_rename_trailing_slash_bug=yes 19433else 19434 cat >conftest.$ac_ext <<_ACEOF 19435/* confdefs.h. */ 19436_ACEOF 19437cat confdefs.h >>conftest.$ac_ext 19438cat >>conftest.$ac_ext <<_ACEOF 19439/* end confdefs.h. */ 19440 19441# include <stdio.h> 19442# include <stdlib.h> 19443 int 19444 main () 19445 { 19446 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0); 19447 } 19448 19449_ACEOF 19450rm -f conftest$ac_exeext 19451if { (ac_try="$ac_link" 19452case "(($ac_try" in 19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19454 *) ac_try_echo=$ac_try;; 19455esac 19456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19457$as_echo "$ac_try_echo") >&5 19458 (eval "$ac_link") 2>&5 19459 ac_status=$? 19460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19462 { (case "(($ac_try" in 19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19464 *) ac_try_echo=$ac_try;; 19465esac 19466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19467$as_echo "$ac_try_echo") >&5 19468 (eval "$ac_try") 2>&5 19469 ac_status=$? 19470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19471 (exit $ac_status); }; }; then 19472 gl_cv_func_rename_trailing_slash_bug=no 19473else 19474 $as_echo "$as_me: program exited with status $ac_status" >&5 19475$as_echo "$as_me: failed program was:" >&5 19476sed 's/^/| /' conftest.$ac_ext >&5 19477 19478( exit $ac_status ) 19479gl_cv_func_rename_trailing_slash_bug=yes 19480fi 19481rm -rf conftest.dSYM 19482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19483fi 19484 19485 19486 19487 rm -rf conftest.d1 conftest.d2 19488 19489fi 19490{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_trailing_slash_bug" >&5 19491$as_echo "$gl_cv_func_rename_trailing_slash_bug" >&6; } 19492 { $as_echo "$as_me:$LINENO: checking whether rename is broken when the destination exists" >&5 19493$as_echo_n "checking whether rename is broken when the destination exists... " >&6; } 19494if test "${gl_cv_func_rename_dest_exists_bug+set}" = set; then 19495 $as_echo_n "(cached) " >&6 19496else 19497 19498 case "$host_os" in 19499 mingw*) gl_cv_func_rename_dest_exists_bug=yes ;; 19500 *) gl_cv_func_rename_dest_exists_bug=no ;; 19501 esac 19502 19503fi 19504{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_exists_bug" >&5 19505$as_echo "$gl_cv_func_rename_dest_exists_bug" >&6; } 19506 if test $gl_cv_func_rename_trailing_slash_bug = yes || 19507 test $gl_cv_func_rename_dest_exists_bug = yes; then 19508 19509 19510 19511 19512 19513 19514 19515 19516 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext" 19517 19518 19519cat >>confdefs.h <<\_ACEOF 19520#define rename rpl_rename 19521_ACEOF 19522 19523 if test $gl_cv_func_rename_trailing_slash_bug = yes; then 19524 19525cat >>confdefs.h <<\_ACEOF 19526#define RENAME_TRAILING_SLASH_BUG 1 19527_ACEOF 19528 19529 fi 19530 if test $gl_cv_func_rename_dest_exists_bug = yes; then 19531 19532cat >>confdefs.h <<\_ACEOF 19533#define RENAME_DEST_EXISTS_BUG 1 19534_ACEOF 19535 19536 fi 19537 : 19538 fi 19539 19540 19541 19542 19543for ac_header in selinux/selinux.h 19544do 19545as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19548$as_echo_n "checking for $ac_header... " >&6; } 19549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19550 $as_echo_n "(cached) " >&6 19551fi 19552ac_res=`eval 'as_val=${'$as_ac_Header'} 19553 $as_echo "$as_val"'` 19554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19555$as_echo "$ac_res" >&6; } 19556else 19557 # Is the header compilable? 19558{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 19559$as_echo_n "checking $ac_header usability... " >&6; } 19560cat >conftest.$ac_ext <<_ACEOF 19561/* confdefs.h. */ 19562_ACEOF 19563cat confdefs.h >>conftest.$ac_ext 19564cat >>conftest.$ac_ext <<_ACEOF 19565/* end confdefs.h. */ 19566$ac_includes_default 19567#include <$ac_header> 19568_ACEOF 19569rm -f conftest.$ac_objext 19570if { (ac_try="$ac_compile" 19571case "(($ac_try" in 19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19573 *) ac_try_echo=$ac_try;; 19574esac 19575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19576$as_echo "$ac_try_echo") >&5 19577 (eval "$ac_compile") 2>conftest.er1 19578 ac_status=$? 19579 grep -v '^ *+' conftest.er1 >conftest.err 19580 rm -f conftest.er1 19581 cat conftest.err >&5 19582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19583 (exit $ac_status); } && { 19584 test -z "$ac_c_werror_flag" || 19585 test ! -s conftest.err 19586 } && test -s conftest.$ac_objext; then 19587 ac_header_compiler=yes 19588else 19589 $as_echo "$as_me: failed program was:" >&5 19590sed 's/^/| /' conftest.$ac_ext >&5 19591 19592 ac_header_compiler=no 19593fi 19594 19595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19596{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19597$as_echo "$ac_header_compiler" >&6; } 19598 19599# Is the header present? 19600{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 19601$as_echo_n "checking $ac_header presence... " >&6; } 19602cat >conftest.$ac_ext <<_ACEOF 19603/* confdefs.h. */ 19604_ACEOF 19605cat confdefs.h >>conftest.$ac_ext 19606cat >>conftest.$ac_ext <<_ACEOF 19607/* end confdefs.h. */ 19608#include <$ac_header> 19609_ACEOF 19610if { (ac_try="$ac_cpp conftest.$ac_ext" 19611case "(($ac_try" in 19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19613 *) ac_try_echo=$ac_try;; 19614esac 19615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19616$as_echo "$ac_try_echo") >&5 19617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19618 ac_status=$? 19619 grep -v '^ *+' conftest.er1 >conftest.err 19620 rm -f conftest.er1 19621 cat conftest.err >&5 19622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19623 (exit $ac_status); } >/dev/null && { 19624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19625 test ! -s conftest.err 19626 }; then 19627 ac_header_preproc=yes 19628else 19629 $as_echo "$as_me: failed program was:" >&5 19630sed 's/^/| /' conftest.$ac_ext >&5 19631 19632 ac_header_preproc=no 19633fi 19634 19635rm -f conftest.err conftest.$ac_ext 19636{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19637$as_echo "$ac_header_preproc" >&6; } 19638 19639# So? What about this header? 19640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19641 yes:no: ) 19642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19643$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19645$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19646 ac_header_preproc=yes 19647 ;; 19648 no:yes:* ) 19649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19650$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19652$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19654$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19656$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19658$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19660$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19661 ( cat <<\_ASBOX 19662## ------------------------------------ ## 19663## Report this to bug-gnu-utils@gnu.org ## 19664## ------------------------------------ ## 19665_ASBOX 19666 ) | sed "s/^/$as_me: WARNING: /" >&2 19667 ;; 19668esac 19669{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19670$as_echo_n "checking for $ac_header... " >&6; } 19671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19672 $as_echo_n "(cached) " >&6 19673else 19674 eval "$as_ac_Header=\$ac_header_preproc" 19675fi 19676ac_res=`eval 'as_val=${'$as_ac_Header'} 19677 $as_echo "$as_val"'` 19678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19679$as_echo "$ac_res" >&6; } 19680 19681fi 19682as_val=`eval 'as_val=${'$as_ac_Header'} 19683 $as_echo "$as_val"'` 19684 if test "x$as_val" = x""yes; then 19685 cat >>confdefs.h <<_ACEOF 19686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19687_ACEOF 19688 SELINUX_SELINUX_H= 19689else 19690 SELINUX_SELINUX_H=selinux/selinux.h 19691fi 19692 19693done 19694 19695 19696 19697 case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in 19698 no:*) # already warned 19699 ;; 19700 *:no) 19701 { $as_echo "$as_me:$LINENO: WARNING: libselinux was found but selinux/selinux.h is missing." >&5 19702$as_echo "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;} 19703 { $as_echo "$as_me:$LINENO: WARNING: sed will be compiled without SELinux support." >&5 19704$as_echo "$as_me: WARNING: sed will be compiled without SELinux support." >&2;} 19705 esac 19706 19707 19708 19709for ac_header in selinux/context.h 19710do 19711as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19714$as_echo_n "checking for $ac_header... " >&6; } 19715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19716 $as_echo_n "(cached) " >&6 19717fi 19718ac_res=`eval 'as_val=${'$as_ac_Header'} 19719 $as_echo "$as_val"'` 19720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19721$as_echo "$ac_res" >&6; } 19722else 19723 # Is the header compilable? 19724{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 19725$as_echo_n "checking $ac_header usability... " >&6; } 19726cat >conftest.$ac_ext <<_ACEOF 19727/* confdefs.h. */ 19728_ACEOF 19729cat confdefs.h >>conftest.$ac_ext 19730cat >>conftest.$ac_ext <<_ACEOF 19731/* end confdefs.h. */ 19732$ac_includes_default 19733#include <$ac_header> 19734_ACEOF 19735rm -f conftest.$ac_objext 19736if { (ac_try="$ac_compile" 19737case "(($ac_try" in 19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19739 *) ac_try_echo=$ac_try;; 19740esac 19741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19742$as_echo "$ac_try_echo") >&5 19743 (eval "$ac_compile") 2>conftest.er1 19744 ac_status=$? 19745 grep -v '^ *+' conftest.er1 >conftest.err 19746 rm -f conftest.er1 19747 cat conftest.err >&5 19748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); } && { 19750 test -z "$ac_c_werror_flag" || 19751 test ! -s conftest.err 19752 } && test -s conftest.$ac_objext; then 19753 ac_header_compiler=yes 19754else 19755 $as_echo "$as_me: failed program was:" >&5 19756sed 's/^/| /' conftest.$ac_ext >&5 19757 19758 ac_header_compiler=no 19759fi 19760 19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19763$as_echo "$ac_header_compiler" >&6; } 19764 19765# Is the header present? 19766{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 19767$as_echo_n "checking $ac_header presence... " >&6; } 19768cat >conftest.$ac_ext <<_ACEOF 19769/* confdefs.h. */ 19770_ACEOF 19771cat confdefs.h >>conftest.$ac_ext 19772cat >>conftest.$ac_ext <<_ACEOF 19773/* end confdefs.h. */ 19774#include <$ac_header> 19775_ACEOF 19776if { (ac_try="$ac_cpp conftest.$ac_ext" 19777case "(($ac_try" in 19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19779 *) ac_try_echo=$ac_try;; 19780esac 19781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19782$as_echo "$ac_try_echo") >&5 19783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19784 ac_status=$? 19785 grep -v '^ *+' conftest.er1 >conftest.err 19786 rm -f conftest.er1 19787 cat conftest.err >&5 19788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19789 (exit $ac_status); } >/dev/null && { 19790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19791 test ! -s conftest.err 19792 }; then 19793 ac_header_preproc=yes 19794else 19795 $as_echo "$as_me: failed program was:" >&5 19796sed 's/^/| /' conftest.$ac_ext >&5 19797 19798 ac_header_preproc=no 19799fi 19800 19801rm -f conftest.err conftest.$ac_ext 19802{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19803$as_echo "$ac_header_preproc" >&6; } 19804 19805# So? What about this header? 19806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19807 yes:no: ) 19808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19809$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19811$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19812 ac_header_preproc=yes 19813 ;; 19814 no:yes:* ) 19815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19816$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19818$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19820$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19822$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19824$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19826$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19827 ( cat <<\_ASBOX 19828## ------------------------------------ ## 19829## Report this to bug-gnu-utils@gnu.org ## 19830## ------------------------------------ ## 19831_ASBOX 19832 ) | sed "s/^/$as_me: WARNING: /" >&2 19833 ;; 19834esac 19835{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19836$as_echo_n "checking for $ac_header... " >&6; } 19837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19838 $as_echo_n "(cached) " >&6 19839else 19840 eval "$as_ac_Header=\$ac_header_preproc" 19841fi 19842ac_res=`eval 'as_val=${'$as_ac_Header'} 19843 $as_echo "$as_val"'` 19844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19845$as_echo "$ac_res" >&6; } 19846 19847fi 19848as_val=`eval 'as_val=${'$as_ac_Header'} 19849 $as_echo "$as_val"'` 19850 if test "x$as_val" = x""yes; then 19851 cat >>confdefs.h <<_ACEOF 19852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19853_ACEOF 19854 SELINUX_CONTEXT_H= 19855else 19856 SELINUX_CONTEXT_H=selinux/context.h 19857fi 19858 19859done 19860 19861 19862 19863 19864 19865 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 19866$as_echo_n "checking for ssize_t... " >&6; } 19867if test "${gt_cv_ssize_t+set}" = set; then 19868 $as_echo_n "(cached) " >&6 19869else 19870 cat >conftest.$ac_ext <<_ACEOF 19871/* confdefs.h. */ 19872_ACEOF 19873cat confdefs.h >>conftest.$ac_ext 19874cat >>conftest.$ac_ext <<_ACEOF 19875/* end confdefs.h. */ 19876#include <sys/types.h> 19877int 19878main () 19879{ 19880int x = sizeof (ssize_t *) + sizeof (ssize_t); 19881 return !x; 19882 ; 19883 return 0; 19884} 19885_ACEOF 19886rm -f conftest.$ac_objext 19887if { (ac_try="$ac_compile" 19888case "(($ac_try" in 19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19890 *) ac_try_echo=$ac_try;; 19891esac 19892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19893$as_echo "$ac_try_echo") >&5 19894 (eval "$ac_compile") 2>conftest.er1 19895 ac_status=$? 19896 grep -v '^ *+' conftest.er1 >conftest.err 19897 rm -f conftest.er1 19898 cat conftest.err >&5 19899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19900 (exit $ac_status); } && { 19901 test -z "$ac_c_werror_flag" || 19902 test ! -s conftest.err 19903 } && test -s conftest.$ac_objext; then 19904 gt_cv_ssize_t=yes 19905else 19906 $as_echo "$as_me: failed program was:" >&5 19907sed 's/^/| /' conftest.$ac_ext >&5 19908 19909 gt_cv_ssize_t=no 19910fi 19911 19912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19913fi 19914{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 19915$as_echo "$gt_cv_ssize_t" >&6; } 19916 if test $gt_cv_ssize_t = no; then 19917 19918cat >>confdefs.h <<\_ACEOF 19919#define ssize_t int 19920_ACEOF 19921 19922 fi 19923 19924 19925 19926 19927 # Define two additional variables used in the Makefile substitution. 19928 19929 if test "$ac_cv_header_stdbool_h" = yes; then 19930 STDBOOL_H='' 19931 else 19932 STDBOOL_H='stdbool.h' 19933 fi 19934 19935 19936 if test "$ac_cv_type__Bool" = yes; then 19937 HAVE__BOOL=1 19938 else 19939 HAVE__BOOL=0 19940 fi 19941 19942 19943 19944 19945 19946 if test $ac_cv_type_long_long_int = yes; then 19947 HAVE_LONG_LONG_INT=1 19948 else 19949 HAVE_LONG_LONG_INT=0 19950 fi 19951 19952 19953 if test $ac_cv_type_unsigned_long_long_int = yes; then 19954 HAVE_UNSIGNED_LONG_LONG_INT=1 19955 else 19956 HAVE_UNSIGNED_LONG_LONG_INT=0 19957 fi 19958 19959 19960 if test $ac_cv_header_inttypes_h = yes; then 19961 HAVE_INTTYPES_H=1 19962 else 19963 HAVE_INTTYPES_H=0 19964 fi 19965 19966 19967 if test $ac_cv_header_sys_types_h = yes; then 19968 HAVE_SYS_TYPES_H=1 19969 else 19970 HAVE_SYS_TYPES_H=0 19971 fi 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 if test $gl_cv_have_include_next = yes; then 19986 gl_cv_next_stdint_h='<'stdint.h'>' 19987 else 19988 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 19989$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 19990if test "${gl_cv_next_stdint_h+set}" = set; then 19991 $as_echo_n "(cached) " >&6 19992else 19993 19994 if test $ac_cv_header_stdint_h = yes; then 19995 cat >conftest.$ac_ext <<_ACEOF 19996/* confdefs.h. */ 19997_ACEOF 19998cat confdefs.h >>conftest.$ac_ext 19999cat >>conftest.$ac_ext <<_ACEOF 20000/* end confdefs.h. */ 20001#include <stdint.h> 20002 20003_ACEOF 20004 case "$host_os" in 20005 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20006 *) gl_absname_cpp="$ac_cpp" ;; 20007 esac 20008 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20009 sed -n '\#/stdint.h#{ 20010 s#.*"\(.*/stdint.h\)".*#\1# 20011 s#^/[^/]#//&# 20012 p 20013 q 20014 }'`'"' 20015 else 20016 gl_cv_next_stdint_h='<'stdint.h'>' 20017 fi 20018 20019fi 20020{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 20021$as_echo "$gl_cv_next_stdint_h" >&6; } 20022 fi 20023 NEXT_STDINT_H=$gl_cv_next_stdint_h 20024 20025 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20027 gl_next_as_first_directive='<'stdint.h'>' 20028 else 20029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20030 gl_next_as_first_directive=$gl_cv_next_stdint_h 20031 fi 20032 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 20033 20034 20035 20036 if test $ac_cv_header_stdint_h = yes; then 20037 HAVE_STDINT_H=1 20038 else 20039 HAVE_STDINT_H=0 20040 fi 20041 20042 20043 if test $ac_cv_header_stdint_h = yes; then 20044 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 20045$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 20046if test "${gl_cv_header_working_stdint_h+set}" = set; then 20047 $as_echo_n "(cached) " >&6 20048else 20049 gl_cv_header_working_stdint_h=no 20050 cat >conftest.$ac_ext <<_ACEOF 20051 20052 /* confdefs.h. */ 20053_ACEOF 20054cat confdefs.h >>conftest.$ac_ext 20055cat >>conftest.$ac_ext <<_ACEOF 20056/* end confdefs.h. */ 20057 20058#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ 20059#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ 20060#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 20061#include <stdint.h> 20062/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 20063#if !(defined WCHAR_MIN && defined WCHAR_MAX) 20064#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 20065#endif 20066 20067 20068 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20069 included before <wchar.h>. */ 20070 #include <stddef.h> 20071 #include <signal.h> 20072 #if HAVE_WCHAR_H 20073 # include <stdio.h> 20074 # include <time.h> 20075 # include <wchar.h> 20076 #endif 20077 20078 20079#ifdef INT8_MAX 20080int8_t a1 = INT8_MAX; 20081int8_t a1min = INT8_MIN; 20082#endif 20083#ifdef INT16_MAX 20084int16_t a2 = INT16_MAX; 20085int16_t a2min = INT16_MIN; 20086#endif 20087#ifdef INT32_MAX 20088int32_t a3 = INT32_MAX; 20089int32_t a3min = INT32_MIN; 20090#endif 20091#ifdef INT64_MAX 20092int64_t a4 = INT64_MAX; 20093int64_t a4min = INT64_MIN; 20094#endif 20095#ifdef UINT8_MAX 20096uint8_t b1 = UINT8_MAX; 20097#else 20098typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 20099#endif 20100#ifdef UINT16_MAX 20101uint16_t b2 = UINT16_MAX; 20102#endif 20103#ifdef UINT32_MAX 20104uint32_t b3 = UINT32_MAX; 20105#endif 20106#ifdef UINT64_MAX 20107uint64_t b4 = UINT64_MAX; 20108#endif 20109int_least8_t c1 = INT8_C (0x7f); 20110int_least8_t c1max = INT_LEAST8_MAX; 20111int_least8_t c1min = INT_LEAST8_MIN; 20112int_least16_t c2 = INT16_C (0x7fff); 20113int_least16_t c2max = INT_LEAST16_MAX; 20114int_least16_t c2min = INT_LEAST16_MIN; 20115int_least32_t c3 = INT32_C (0x7fffffff); 20116int_least32_t c3max = INT_LEAST32_MAX; 20117int_least32_t c3min = INT_LEAST32_MIN; 20118int_least64_t c4 = INT64_C (0x7fffffffffffffff); 20119int_least64_t c4max = INT_LEAST64_MAX; 20120int_least64_t c4min = INT_LEAST64_MIN; 20121uint_least8_t d1 = UINT8_C (0xff); 20122uint_least8_t d1max = UINT_LEAST8_MAX; 20123uint_least16_t d2 = UINT16_C (0xffff); 20124uint_least16_t d2max = UINT_LEAST16_MAX; 20125uint_least32_t d3 = UINT32_C (0xffffffff); 20126uint_least32_t d3max = UINT_LEAST32_MAX; 20127uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 20128uint_least64_t d4max = UINT_LEAST64_MAX; 20129int_fast8_t e1 = INT_FAST8_MAX; 20130int_fast8_t e1min = INT_FAST8_MIN; 20131int_fast16_t e2 = INT_FAST16_MAX; 20132int_fast16_t e2min = INT_FAST16_MIN; 20133int_fast32_t e3 = INT_FAST32_MAX; 20134int_fast32_t e3min = INT_FAST32_MIN; 20135int_fast64_t e4 = INT_FAST64_MAX; 20136int_fast64_t e4min = INT_FAST64_MIN; 20137uint_fast8_t f1 = UINT_FAST8_MAX; 20138uint_fast16_t f2 = UINT_FAST16_MAX; 20139uint_fast32_t f3 = UINT_FAST32_MAX; 20140uint_fast64_t f4 = UINT_FAST64_MAX; 20141#ifdef INTPTR_MAX 20142intptr_t g = INTPTR_MAX; 20143intptr_t gmin = INTPTR_MIN; 20144#endif 20145#ifdef UINTPTR_MAX 20146uintptr_t h = UINTPTR_MAX; 20147#endif 20148intmax_t i = INTMAX_MAX; 20149uintmax_t j = UINTMAX_MAX; 20150 20151#include <limits.h> /* for CHAR_BIT */ 20152#define TYPE_MINIMUM(t) \ 20153 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) 20154#define TYPE_MAXIMUM(t) \ 20155 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) 20156struct s { 20157 int check_PTRDIFF: 20158 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 20159 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 20160 ? 1 : -1; 20161 /* Detect bug in FreeBSD 6.0 / ia64. */ 20162 int check_SIG_ATOMIC: 20163 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 20164 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 20165 ? 1 : -1; 20166 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 20167 int check_WCHAR: 20168 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 20169 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 20170 ? 1 : -1; 20171 /* Detect bug in mingw. */ 20172 int check_WINT: 20173 WINT_MIN == TYPE_MINIMUM (wint_t) 20174 && WINT_MAX == TYPE_MAXIMUM (wint_t) 20175 ? 1 : -1; 20176 20177 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 20178 int check_UINT8_C: 20179 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 20180 int check_UINT16_C: 20181 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 20182 20183 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 20184#ifdef UINT8_MAX 20185 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 20186#endif 20187#ifdef UINT16_MAX 20188 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 20189#endif 20190#ifdef UINT32_MAX 20191 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 20192#endif 20193#ifdef UINT64_MAX 20194 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 20195#endif 20196 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 20197 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 20198 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 20199 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 20200 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 20201 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 20202 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 20203 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 20204 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 20205 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 20206 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 20207}; 20208 20209int 20210main () 20211{ 20212 20213 ; 20214 return 0; 20215} 20216_ACEOF 20217rm -f conftest.$ac_objext 20218if { (ac_try="$ac_compile" 20219case "(($ac_try" in 20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20221 *) ac_try_echo=$ac_try;; 20222esac 20223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20224$as_echo "$ac_try_echo") >&5 20225 (eval "$ac_compile") 2>conftest.er1 20226 ac_status=$? 20227 grep -v '^ *+' conftest.er1 >conftest.err 20228 rm -f conftest.er1 20229 cat conftest.err >&5 20230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20231 (exit $ac_status); } && { 20232 test -z "$ac_c_werror_flag" || 20233 test ! -s conftest.err 20234 } && test -s conftest.$ac_objext; then 20235 if test "$cross_compiling" = yes; then 20236 gl_cv_header_working_stdint_h=yes 20237 20238else 20239 cat >conftest.$ac_ext <<_ACEOF 20240 20241 /* confdefs.h. */ 20242_ACEOF 20243cat confdefs.h >>conftest.$ac_ext 20244cat >>conftest.$ac_ext <<_ACEOF 20245/* end confdefs.h. */ 20246 20247#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ 20248#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ 20249#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 20250#include <stdint.h> 20251 20252 20253 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20254 included before <wchar.h>. */ 20255 #include <stddef.h> 20256 #include <signal.h> 20257 #if HAVE_WCHAR_H 20258 # include <stdio.h> 20259 # include <time.h> 20260 # include <wchar.h> 20261 #endif 20262 20263 20264#include <stdio.h> 20265#include <string.h> 20266#define MVAL(macro) MVAL1(macro) 20267#define MVAL1(expression) #expression 20268static const char *macro_values[] = 20269 { 20270#ifdef INT8_MAX 20271 MVAL (INT8_MAX), 20272#endif 20273#ifdef INT16_MAX 20274 MVAL (INT16_MAX), 20275#endif 20276#ifdef INT32_MAX 20277 MVAL (INT32_MAX), 20278#endif 20279#ifdef INT64_MAX 20280 MVAL (INT64_MAX), 20281#endif 20282#ifdef UINT8_MAX 20283 MVAL (UINT8_MAX), 20284#endif 20285#ifdef UINT16_MAX 20286 MVAL (UINT16_MAX), 20287#endif 20288#ifdef UINT32_MAX 20289 MVAL (UINT32_MAX), 20290#endif 20291#ifdef UINT64_MAX 20292 MVAL (UINT64_MAX), 20293#endif 20294 NULL 20295 }; 20296 20297int 20298main () 20299{ 20300 20301 const char **mv; 20302 for (mv = macro_values; *mv != NULL; mv++) 20303 { 20304 const char *value = *mv; 20305 /* Test whether it looks like a cast expression. */ 20306 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 20307 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 20308 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 20309 || strncmp (value, "((int)"/*)*/, 6) == 0 20310 || strncmp (value, "((signed short)"/*)*/, 15) == 0 20311 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 20312 return 1; 20313 } 20314 return 0; 20315 20316 ; 20317 return 0; 20318} 20319_ACEOF 20320rm -f conftest$ac_exeext 20321if { (ac_try="$ac_link" 20322case "(($ac_try" in 20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20324 *) ac_try_echo=$ac_try;; 20325esac 20326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20327$as_echo "$ac_try_echo") >&5 20328 (eval "$ac_link") 2>&5 20329 ac_status=$? 20330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20332 { (case "(($ac_try" in 20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20334 *) ac_try_echo=$ac_try;; 20335esac 20336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20337$as_echo "$ac_try_echo") >&5 20338 (eval "$ac_try") 2>&5 20339 ac_status=$? 20340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20341 (exit $ac_status); }; }; then 20342 gl_cv_header_working_stdint_h=yes 20343else 20344 $as_echo "$as_me: program exited with status $ac_status" >&5 20345$as_echo "$as_me: failed program was:" >&5 20346sed 's/^/| /' conftest.$ac_ext >&5 20347 20348fi 20349rm -rf conftest.dSYM 20350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20351fi 20352 20353 20354 20355else 20356 $as_echo "$as_me: failed program was:" >&5 20357sed 's/^/| /' conftest.$ac_ext >&5 20358 20359 20360fi 20361 20362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20363 20364fi 20365{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 20366$as_echo "$gl_cv_header_working_stdint_h" >&6; } 20367 fi 20368 if test "$gl_cv_header_working_stdint_h" = yes; then 20369 STDINT_H= 20370 else 20371 20372 20373for ac_header in sys/inttypes.h sys/bitypes.h 20374do 20375as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20378$as_echo_n "checking for $ac_header... " >&6; } 20379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20380 $as_echo_n "(cached) " >&6 20381fi 20382ac_res=`eval 'as_val=${'$as_ac_Header'} 20383 $as_echo "$as_val"'` 20384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20385$as_echo "$ac_res" >&6; } 20386else 20387 # Is the header compilable? 20388{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 20389$as_echo_n "checking $ac_header usability... " >&6; } 20390cat >conftest.$ac_ext <<_ACEOF 20391/* confdefs.h. */ 20392_ACEOF 20393cat confdefs.h >>conftest.$ac_ext 20394cat >>conftest.$ac_ext <<_ACEOF 20395/* end confdefs.h. */ 20396$ac_includes_default 20397#include <$ac_header> 20398_ACEOF 20399rm -f conftest.$ac_objext 20400if { (ac_try="$ac_compile" 20401case "(($ac_try" in 20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20403 *) ac_try_echo=$ac_try;; 20404esac 20405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20406$as_echo "$ac_try_echo") >&5 20407 (eval "$ac_compile") 2>conftest.er1 20408 ac_status=$? 20409 grep -v '^ *+' conftest.er1 >conftest.err 20410 rm -f conftest.er1 20411 cat conftest.err >&5 20412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20413 (exit $ac_status); } && { 20414 test -z "$ac_c_werror_flag" || 20415 test ! -s conftest.err 20416 } && test -s conftest.$ac_objext; then 20417 ac_header_compiler=yes 20418else 20419 $as_echo "$as_me: failed program was:" >&5 20420sed 's/^/| /' conftest.$ac_ext >&5 20421 20422 ac_header_compiler=no 20423fi 20424 20425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20426{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20427$as_echo "$ac_header_compiler" >&6; } 20428 20429# Is the header present? 20430{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 20431$as_echo_n "checking $ac_header presence... " >&6; } 20432cat >conftest.$ac_ext <<_ACEOF 20433/* confdefs.h. */ 20434_ACEOF 20435cat confdefs.h >>conftest.$ac_ext 20436cat >>conftest.$ac_ext <<_ACEOF 20437/* end confdefs.h. */ 20438#include <$ac_header> 20439_ACEOF 20440if { (ac_try="$ac_cpp conftest.$ac_ext" 20441case "(($ac_try" in 20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20443 *) ac_try_echo=$ac_try;; 20444esac 20445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20446$as_echo "$ac_try_echo") >&5 20447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20448 ac_status=$? 20449 grep -v '^ *+' conftest.er1 >conftest.err 20450 rm -f conftest.er1 20451 cat conftest.err >&5 20452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20453 (exit $ac_status); } >/dev/null && { 20454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20455 test ! -s conftest.err 20456 }; then 20457 ac_header_preproc=yes 20458else 20459 $as_echo "$as_me: failed program was:" >&5 20460sed 's/^/| /' conftest.$ac_ext >&5 20461 20462 ac_header_preproc=no 20463fi 20464 20465rm -f conftest.err conftest.$ac_ext 20466{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20467$as_echo "$ac_header_preproc" >&6; } 20468 20469# So? What about this header? 20470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20471 yes:no: ) 20472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20473$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20475$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20476 ac_header_preproc=yes 20477 ;; 20478 no:yes:* ) 20479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20480$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20482$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20484$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20486$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20488$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20490$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20491 ( cat <<\_ASBOX 20492## ------------------------------------ ## 20493## Report this to bug-gnu-utils@gnu.org ## 20494## ------------------------------------ ## 20495_ASBOX 20496 ) | sed "s/^/$as_me: WARNING: /" >&2 20497 ;; 20498esac 20499{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 20500$as_echo_n "checking for $ac_header... " >&6; } 20501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20502 $as_echo_n "(cached) " >&6 20503else 20504 eval "$as_ac_Header=\$ac_header_preproc" 20505fi 20506ac_res=`eval 'as_val=${'$as_ac_Header'} 20507 $as_echo "$as_val"'` 20508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20509$as_echo "$ac_res" >&6; } 20510 20511fi 20512as_val=`eval 'as_val=${'$as_ac_Header'} 20513 $as_echo "$as_val"'` 20514 if test "x$as_val" = x""yes; then 20515 cat >>confdefs.h <<_ACEOF 20516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20517_ACEOF 20518 20519fi 20520 20521done 20522 20523 if test $ac_cv_header_sys_inttypes_h = yes; then 20524 HAVE_SYS_INTTYPES_H=1 20525 else 20526 HAVE_SYS_INTTYPES_H=0 20527 fi 20528 20529 if test $ac_cv_header_sys_bitypes_h = yes; then 20530 HAVE_SYS_BITYPES_H=1 20531 else 20532 HAVE_SYS_BITYPES_H=0 20533 fi 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 if test $APPLE_UNIVERSAL_BUILD = 0; then 20546 20547 20548 20549 20550 for gltype in ptrdiff_t size_t ; do 20551 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 20552$as_echo_n "checking for bit size of $gltype... " >&6; } 20553if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then 20554 $as_echo_n "(cached) " >&6 20555else 20556 if test "$cross_compiling" = yes; then 20557 # Depending upon the size, compute the lo and hi bounds. 20558cat >conftest.$ac_ext <<_ACEOF 20559/* confdefs.h. */ 20560_ACEOF 20561cat confdefs.h >>conftest.$ac_ext 20562cat >>conftest.$ac_ext <<_ACEOF 20563/* end confdefs.h. */ 20564 20565 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20566 included before <wchar.h>. */ 20567 #include <stddef.h> 20568 #include <signal.h> 20569 #if HAVE_WCHAR_H 20570 # include <stdio.h> 20571 # include <time.h> 20572 # include <wchar.h> 20573 #endif 20574 20575#include <limits.h> 20576int 20577main () 20578{ 20579static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; 20580test_array [0] = 0 20581 20582 ; 20583 return 0; 20584} 20585_ACEOF 20586rm -f conftest.$ac_objext 20587if { (ac_try="$ac_compile" 20588case "(($ac_try" in 20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20590 *) ac_try_echo=$ac_try;; 20591esac 20592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20593$as_echo "$ac_try_echo") >&5 20594 (eval "$ac_compile") 2>conftest.er1 20595 ac_status=$? 20596 grep -v '^ *+' conftest.er1 >conftest.err 20597 rm -f conftest.er1 20598 cat conftest.err >&5 20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); } && { 20601 test -z "$ac_c_werror_flag" || 20602 test ! -s conftest.err 20603 } && test -s conftest.$ac_objext; then 20604 ac_lo=0 ac_mid=0 20605 while :; do 20606 cat >conftest.$ac_ext <<_ACEOF 20607/* confdefs.h. */ 20608_ACEOF 20609cat confdefs.h >>conftest.$ac_ext 20610cat >>conftest.$ac_ext <<_ACEOF 20611/* end confdefs.h. */ 20612 20613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20614 included before <wchar.h>. */ 20615 #include <stddef.h> 20616 #include <signal.h> 20617 #if HAVE_WCHAR_H 20618 # include <stdio.h> 20619 # include <time.h> 20620 # include <wchar.h> 20621 #endif 20622 20623#include <limits.h> 20624int 20625main () 20626{ 20627static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; 20628test_array [0] = 0 20629 20630 ; 20631 return 0; 20632} 20633_ACEOF 20634rm -f conftest.$ac_objext 20635if { (ac_try="$ac_compile" 20636case "(($ac_try" in 20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20638 *) ac_try_echo=$ac_try;; 20639esac 20640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20641$as_echo "$ac_try_echo") >&5 20642 (eval "$ac_compile") 2>conftest.er1 20643 ac_status=$? 20644 grep -v '^ *+' conftest.er1 >conftest.err 20645 rm -f conftest.er1 20646 cat conftest.err >&5 20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20648 (exit $ac_status); } && { 20649 test -z "$ac_c_werror_flag" || 20650 test ! -s conftest.err 20651 } && test -s conftest.$ac_objext; then 20652 ac_hi=$ac_mid; break 20653else 20654 $as_echo "$as_me: failed program was:" >&5 20655sed 's/^/| /' conftest.$ac_ext >&5 20656 20657 ac_lo=`expr $ac_mid + 1` 20658 if test $ac_lo -le $ac_mid; then 20659 ac_lo= ac_hi= 20660 break 20661 fi 20662 ac_mid=`expr 2 '*' $ac_mid + 1` 20663fi 20664 20665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20666 done 20667else 20668 $as_echo "$as_me: failed program was:" >&5 20669sed 's/^/| /' conftest.$ac_ext >&5 20670 20671 cat >conftest.$ac_ext <<_ACEOF 20672/* confdefs.h. */ 20673_ACEOF 20674cat confdefs.h >>conftest.$ac_ext 20675cat >>conftest.$ac_ext <<_ACEOF 20676/* end confdefs.h. */ 20677 20678 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20679 included before <wchar.h>. */ 20680 #include <stddef.h> 20681 #include <signal.h> 20682 #if HAVE_WCHAR_H 20683 # include <stdio.h> 20684 # include <time.h> 20685 # include <wchar.h> 20686 #endif 20687 20688#include <limits.h> 20689int 20690main () 20691{ 20692static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; 20693test_array [0] = 0 20694 20695 ; 20696 return 0; 20697} 20698_ACEOF 20699rm -f conftest.$ac_objext 20700if { (ac_try="$ac_compile" 20701case "(($ac_try" in 20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20703 *) ac_try_echo=$ac_try;; 20704esac 20705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20706$as_echo "$ac_try_echo") >&5 20707 (eval "$ac_compile") 2>conftest.er1 20708 ac_status=$? 20709 grep -v '^ *+' conftest.er1 >conftest.err 20710 rm -f conftest.er1 20711 cat conftest.err >&5 20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20713 (exit $ac_status); } && { 20714 test -z "$ac_c_werror_flag" || 20715 test ! -s conftest.err 20716 } && test -s conftest.$ac_objext; then 20717 ac_hi=-1 ac_mid=-1 20718 while :; do 20719 cat >conftest.$ac_ext <<_ACEOF 20720/* confdefs.h. */ 20721_ACEOF 20722cat confdefs.h >>conftest.$ac_ext 20723cat >>conftest.$ac_ext <<_ACEOF 20724/* end confdefs.h. */ 20725 20726 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20727 included before <wchar.h>. */ 20728 #include <stddef.h> 20729 #include <signal.h> 20730 #if HAVE_WCHAR_H 20731 # include <stdio.h> 20732 # include <time.h> 20733 # include <wchar.h> 20734 #endif 20735 20736#include <limits.h> 20737int 20738main () 20739{ 20740static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; 20741test_array [0] = 0 20742 20743 ; 20744 return 0; 20745} 20746_ACEOF 20747rm -f conftest.$ac_objext 20748if { (ac_try="$ac_compile" 20749case "(($ac_try" in 20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20751 *) ac_try_echo=$ac_try;; 20752esac 20753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20754$as_echo "$ac_try_echo") >&5 20755 (eval "$ac_compile") 2>conftest.er1 20756 ac_status=$? 20757 grep -v '^ *+' conftest.er1 >conftest.err 20758 rm -f conftest.er1 20759 cat conftest.err >&5 20760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20761 (exit $ac_status); } && { 20762 test -z "$ac_c_werror_flag" || 20763 test ! -s conftest.err 20764 } && test -s conftest.$ac_objext; then 20765 ac_lo=$ac_mid; break 20766else 20767 $as_echo "$as_me: failed program was:" >&5 20768sed 's/^/| /' conftest.$ac_ext >&5 20769 20770 ac_hi=`expr '(' $ac_mid ')' - 1` 20771 if test $ac_mid -le $ac_hi; then 20772 ac_lo= ac_hi= 20773 break 20774 fi 20775 ac_mid=`expr 2 '*' $ac_mid` 20776fi 20777 20778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20779 done 20780else 20781 $as_echo "$as_me: failed program was:" >&5 20782sed 's/^/| /' conftest.$ac_ext >&5 20783 20784 ac_lo= ac_hi= 20785fi 20786 20787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20788fi 20789 20790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20791# Binary search between lo and hi bounds. 20792while test "x$ac_lo" != "x$ac_hi"; do 20793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20794 cat >conftest.$ac_ext <<_ACEOF 20795/* confdefs.h. */ 20796_ACEOF 20797cat confdefs.h >>conftest.$ac_ext 20798cat >>conftest.$ac_ext <<_ACEOF 20799/* end confdefs.h. */ 20800 20801 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20802 included before <wchar.h>. */ 20803 #include <stddef.h> 20804 #include <signal.h> 20805 #if HAVE_WCHAR_H 20806 # include <stdio.h> 20807 # include <time.h> 20808 # include <wchar.h> 20809 #endif 20810 20811#include <limits.h> 20812int 20813main () 20814{ 20815static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; 20816test_array [0] = 0 20817 20818 ; 20819 return 0; 20820} 20821_ACEOF 20822rm -f conftest.$ac_objext 20823if { (ac_try="$ac_compile" 20824case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827esac 20828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20829$as_echo "$ac_try_echo") >&5 20830 (eval "$ac_compile") 2>conftest.er1 20831 ac_status=$? 20832 grep -v '^ *+' conftest.er1 >conftest.err 20833 rm -f conftest.er1 20834 cat conftest.err >&5 20835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20836 (exit $ac_status); } && { 20837 test -z "$ac_c_werror_flag" || 20838 test ! -s conftest.err 20839 } && test -s conftest.$ac_objext; then 20840 ac_hi=$ac_mid 20841else 20842 $as_echo "$as_me: failed program was:" >&5 20843sed 's/^/| /' conftest.$ac_ext >&5 20844 20845 ac_lo=`expr '(' $ac_mid ')' + 1` 20846fi 20847 20848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20849done 20850case $ac_lo in 20851?*) result=$ac_lo;; 20852'') result=unknown ;; 20853esac 20854else 20855 cat >conftest.$ac_ext <<_ACEOF 20856/* confdefs.h. */ 20857_ACEOF 20858cat confdefs.h >>conftest.$ac_ext 20859cat >>conftest.$ac_ext <<_ACEOF 20860/* end confdefs.h. */ 20861 20862 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20863 included before <wchar.h>. */ 20864 #include <stddef.h> 20865 #include <signal.h> 20866 #if HAVE_WCHAR_H 20867 # include <stdio.h> 20868 # include <time.h> 20869 # include <wchar.h> 20870 #endif 20871 20872#include <limits.h> 20873static long int longval () { return sizeof ($gltype) * CHAR_BIT; } 20874static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } 20875#include <stdio.h> 20876#include <stdlib.h> 20877int 20878main () 20879{ 20880 20881 FILE *f = fopen ("conftest.val", "w"); 20882 if (! f) 20883 return 1; 20884 if ((sizeof ($gltype) * CHAR_BIT) < 0) 20885 { 20886 long int i = longval (); 20887 if (i != (sizeof ($gltype) * CHAR_BIT)) 20888 return 1; 20889 fprintf (f, "%ld", i); 20890 } 20891 else 20892 { 20893 unsigned long int i = ulongval (); 20894 if (i != (sizeof ($gltype) * CHAR_BIT)) 20895 return 1; 20896 fprintf (f, "%lu", i); 20897 } 20898 /* Do not output a trailing newline, as this causes \r\n confusion 20899 on some platforms. */ 20900 return ferror (f) || fclose (f) != 0; 20901 20902 ; 20903 return 0; 20904} 20905_ACEOF 20906rm -f conftest$ac_exeext 20907if { (ac_try="$ac_link" 20908case "(($ac_try" in 20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20910 *) ac_try_echo=$ac_try;; 20911esac 20912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20913$as_echo "$ac_try_echo") >&5 20914 (eval "$ac_link") 2>&5 20915 ac_status=$? 20916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20918 { (case "(($ac_try" in 20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20920 *) ac_try_echo=$ac_try;; 20921esac 20922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20923$as_echo "$ac_try_echo") >&5 20924 (eval "$ac_try") 2>&5 20925 ac_status=$? 20926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20927 (exit $ac_status); }; }; then 20928 result=`cat conftest.val` 20929else 20930 $as_echo "$as_me: program exited with status $ac_status" >&5 20931$as_echo "$as_me: failed program was:" >&5 20932sed 's/^/| /' conftest.$ac_ext >&5 20933 20934( exit $ac_status ) 20935result=unknown 20936fi 20937rm -rf conftest.dSYM 20938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20939fi 20940rm -f conftest.val 20941 eval gl_cv_bitsizeof_${gltype}=\$result 20942 20943fi 20944ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'} 20945 $as_echo "$as_val"'` 20946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20947$as_echo "$ac_res" >&6; } 20948 eval result=\$gl_cv_bitsizeof_${gltype} 20949 if test $result = unknown; then 20950 result=0 20951 fi 20952 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 20953 cat >>confdefs.h <<_ACEOF 20954#define BITSIZEOF_${GLTYPE} $result 20955_ACEOF 20956 20957 eval BITSIZEOF_${GLTYPE}=\$result 20958 done 20959 20960 20961 fi 20962 20963 20964 20965 20966 20967 for gltype in sig_atomic_t wchar_t wint_t ; do 20968 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 20969$as_echo_n "checking for bit size of $gltype... " >&6; } 20970if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then 20971 $as_echo_n "(cached) " >&6 20972else 20973 if test "$cross_compiling" = yes; then 20974 # Depending upon the size, compute the lo and hi bounds. 20975cat >conftest.$ac_ext <<_ACEOF 20976/* confdefs.h. */ 20977_ACEOF 20978cat confdefs.h >>conftest.$ac_ext 20979cat >>conftest.$ac_ext <<_ACEOF 20980/* end confdefs.h. */ 20981 20982 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20983 included before <wchar.h>. */ 20984 #include <stddef.h> 20985 #include <signal.h> 20986 #if HAVE_WCHAR_H 20987 # include <stdio.h> 20988 # include <time.h> 20989 # include <wchar.h> 20990 #endif 20991 20992#include <limits.h> 20993int 20994main () 20995{ 20996static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; 20997test_array [0] = 0 20998 20999 ; 21000 return 0; 21001} 21002_ACEOF 21003rm -f conftest.$ac_objext 21004if { (ac_try="$ac_compile" 21005case "(($ac_try" in 21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21007 *) ac_try_echo=$ac_try;; 21008esac 21009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21010$as_echo "$ac_try_echo") >&5 21011 (eval "$ac_compile") 2>conftest.er1 21012 ac_status=$? 21013 grep -v '^ *+' conftest.er1 >conftest.err 21014 rm -f conftest.er1 21015 cat conftest.err >&5 21016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21017 (exit $ac_status); } && { 21018 test -z "$ac_c_werror_flag" || 21019 test ! -s conftest.err 21020 } && test -s conftest.$ac_objext; then 21021 ac_lo=0 ac_mid=0 21022 while :; do 21023 cat >conftest.$ac_ext <<_ACEOF 21024/* confdefs.h. */ 21025_ACEOF 21026cat confdefs.h >>conftest.$ac_ext 21027cat >>conftest.$ac_ext <<_ACEOF 21028/* end confdefs.h. */ 21029 21030 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21031 included before <wchar.h>. */ 21032 #include <stddef.h> 21033 #include <signal.h> 21034 #if HAVE_WCHAR_H 21035 # include <stdio.h> 21036 # include <time.h> 21037 # include <wchar.h> 21038 #endif 21039 21040#include <limits.h> 21041int 21042main () 21043{ 21044static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; 21045test_array [0] = 0 21046 21047 ; 21048 return 0; 21049} 21050_ACEOF 21051rm -f conftest.$ac_objext 21052if { (ac_try="$ac_compile" 21053case "(($ac_try" in 21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21055 *) ac_try_echo=$ac_try;; 21056esac 21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21058$as_echo "$ac_try_echo") >&5 21059 (eval "$ac_compile") 2>conftest.er1 21060 ac_status=$? 21061 grep -v '^ *+' conftest.er1 >conftest.err 21062 rm -f conftest.er1 21063 cat conftest.err >&5 21064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21065 (exit $ac_status); } && { 21066 test -z "$ac_c_werror_flag" || 21067 test ! -s conftest.err 21068 } && test -s conftest.$ac_objext; then 21069 ac_hi=$ac_mid; break 21070else 21071 $as_echo "$as_me: failed program was:" >&5 21072sed 's/^/| /' conftest.$ac_ext >&5 21073 21074 ac_lo=`expr $ac_mid + 1` 21075 if test $ac_lo -le $ac_mid; then 21076 ac_lo= ac_hi= 21077 break 21078 fi 21079 ac_mid=`expr 2 '*' $ac_mid + 1` 21080fi 21081 21082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21083 done 21084else 21085 $as_echo "$as_me: failed program was:" >&5 21086sed 's/^/| /' conftest.$ac_ext >&5 21087 21088 cat >conftest.$ac_ext <<_ACEOF 21089/* confdefs.h. */ 21090_ACEOF 21091cat confdefs.h >>conftest.$ac_ext 21092cat >>conftest.$ac_ext <<_ACEOF 21093/* end confdefs.h. */ 21094 21095 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21096 included before <wchar.h>. */ 21097 #include <stddef.h> 21098 #include <signal.h> 21099 #if HAVE_WCHAR_H 21100 # include <stdio.h> 21101 # include <time.h> 21102 # include <wchar.h> 21103 #endif 21104 21105#include <limits.h> 21106int 21107main () 21108{ 21109static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; 21110test_array [0] = 0 21111 21112 ; 21113 return 0; 21114} 21115_ACEOF 21116rm -f conftest.$ac_objext 21117if { (ac_try="$ac_compile" 21118case "(($ac_try" in 21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21120 *) ac_try_echo=$ac_try;; 21121esac 21122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21123$as_echo "$ac_try_echo") >&5 21124 (eval "$ac_compile") 2>conftest.er1 21125 ac_status=$? 21126 grep -v '^ *+' conftest.er1 >conftest.err 21127 rm -f conftest.er1 21128 cat conftest.err >&5 21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21130 (exit $ac_status); } && { 21131 test -z "$ac_c_werror_flag" || 21132 test ! -s conftest.err 21133 } && test -s conftest.$ac_objext; then 21134 ac_hi=-1 ac_mid=-1 21135 while :; do 21136 cat >conftest.$ac_ext <<_ACEOF 21137/* confdefs.h. */ 21138_ACEOF 21139cat confdefs.h >>conftest.$ac_ext 21140cat >>conftest.$ac_ext <<_ACEOF 21141/* end confdefs.h. */ 21142 21143 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21144 included before <wchar.h>. */ 21145 #include <stddef.h> 21146 #include <signal.h> 21147 #if HAVE_WCHAR_H 21148 # include <stdio.h> 21149 # include <time.h> 21150 # include <wchar.h> 21151 #endif 21152 21153#include <limits.h> 21154int 21155main () 21156{ 21157static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; 21158test_array [0] = 0 21159 21160 ; 21161 return 0; 21162} 21163_ACEOF 21164rm -f conftest.$ac_objext 21165if { (ac_try="$ac_compile" 21166case "(($ac_try" in 21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21168 *) ac_try_echo=$ac_try;; 21169esac 21170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21171$as_echo "$ac_try_echo") >&5 21172 (eval "$ac_compile") 2>conftest.er1 21173 ac_status=$? 21174 grep -v '^ *+' conftest.er1 >conftest.err 21175 rm -f conftest.er1 21176 cat conftest.err >&5 21177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21178 (exit $ac_status); } && { 21179 test -z "$ac_c_werror_flag" || 21180 test ! -s conftest.err 21181 } && test -s conftest.$ac_objext; then 21182 ac_lo=$ac_mid; break 21183else 21184 $as_echo "$as_me: failed program was:" >&5 21185sed 's/^/| /' conftest.$ac_ext >&5 21186 21187 ac_hi=`expr '(' $ac_mid ')' - 1` 21188 if test $ac_mid -le $ac_hi; then 21189 ac_lo= ac_hi= 21190 break 21191 fi 21192 ac_mid=`expr 2 '*' $ac_mid` 21193fi 21194 21195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21196 done 21197else 21198 $as_echo "$as_me: failed program was:" >&5 21199sed 's/^/| /' conftest.$ac_ext >&5 21200 21201 ac_lo= ac_hi= 21202fi 21203 21204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21205fi 21206 21207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21208# Binary search between lo and hi bounds. 21209while test "x$ac_lo" != "x$ac_hi"; do 21210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21211 cat >conftest.$ac_ext <<_ACEOF 21212/* confdefs.h. */ 21213_ACEOF 21214cat confdefs.h >>conftest.$ac_ext 21215cat >>conftest.$ac_ext <<_ACEOF 21216/* end confdefs.h. */ 21217 21218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21219 included before <wchar.h>. */ 21220 #include <stddef.h> 21221 #include <signal.h> 21222 #if HAVE_WCHAR_H 21223 # include <stdio.h> 21224 # include <time.h> 21225 # include <wchar.h> 21226 #endif 21227 21228#include <limits.h> 21229int 21230main () 21231{ 21232static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; 21233test_array [0] = 0 21234 21235 ; 21236 return 0; 21237} 21238_ACEOF 21239rm -f conftest.$ac_objext 21240if { (ac_try="$ac_compile" 21241case "(($ac_try" in 21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21243 *) ac_try_echo=$ac_try;; 21244esac 21245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21246$as_echo "$ac_try_echo") >&5 21247 (eval "$ac_compile") 2>conftest.er1 21248 ac_status=$? 21249 grep -v '^ *+' conftest.er1 >conftest.err 21250 rm -f conftest.er1 21251 cat conftest.err >&5 21252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21253 (exit $ac_status); } && { 21254 test -z "$ac_c_werror_flag" || 21255 test ! -s conftest.err 21256 } && test -s conftest.$ac_objext; then 21257 ac_hi=$ac_mid 21258else 21259 $as_echo "$as_me: failed program was:" >&5 21260sed 's/^/| /' conftest.$ac_ext >&5 21261 21262 ac_lo=`expr '(' $ac_mid ')' + 1` 21263fi 21264 21265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21266done 21267case $ac_lo in 21268?*) result=$ac_lo;; 21269'') result=unknown ;; 21270esac 21271else 21272 cat >conftest.$ac_ext <<_ACEOF 21273/* confdefs.h. */ 21274_ACEOF 21275cat confdefs.h >>conftest.$ac_ext 21276cat >>conftest.$ac_ext <<_ACEOF 21277/* end confdefs.h. */ 21278 21279 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21280 included before <wchar.h>. */ 21281 #include <stddef.h> 21282 #include <signal.h> 21283 #if HAVE_WCHAR_H 21284 # include <stdio.h> 21285 # include <time.h> 21286 # include <wchar.h> 21287 #endif 21288 21289#include <limits.h> 21290static long int longval () { return sizeof ($gltype) * CHAR_BIT; } 21291static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } 21292#include <stdio.h> 21293#include <stdlib.h> 21294int 21295main () 21296{ 21297 21298 FILE *f = fopen ("conftest.val", "w"); 21299 if (! f) 21300 return 1; 21301 if ((sizeof ($gltype) * CHAR_BIT) < 0) 21302 { 21303 long int i = longval (); 21304 if (i != (sizeof ($gltype) * CHAR_BIT)) 21305 return 1; 21306 fprintf (f, "%ld", i); 21307 } 21308 else 21309 { 21310 unsigned long int i = ulongval (); 21311 if (i != (sizeof ($gltype) * CHAR_BIT)) 21312 return 1; 21313 fprintf (f, "%lu", i); 21314 } 21315 /* Do not output a trailing newline, as this causes \r\n confusion 21316 on some platforms. */ 21317 return ferror (f) || fclose (f) != 0; 21318 21319 ; 21320 return 0; 21321} 21322_ACEOF 21323rm -f conftest$ac_exeext 21324if { (ac_try="$ac_link" 21325case "(($ac_try" in 21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21327 *) ac_try_echo=$ac_try;; 21328esac 21329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21330$as_echo "$ac_try_echo") >&5 21331 (eval "$ac_link") 2>&5 21332 ac_status=$? 21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21335 { (case "(($ac_try" in 21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21337 *) ac_try_echo=$ac_try;; 21338esac 21339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21340$as_echo "$ac_try_echo") >&5 21341 (eval "$ac_try") 2>&5 21342 ac_status=$? 21343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21344 (exit $ac_status); }; }; then 21345 result=`cat conftest.val` 21346else 21347 $as_echo "$as_me: program exited with status $ac_status" >&5 21348$as_echo "$as_me: failed program was:" >&5 21349sed 's/^/| /' conftest.$ac_ext >&5 21350 21351( exit $ac_status ) 21352result=unknown 21353fi 21354rm -rf conftest.dSYM 21355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21356fi 21357rm -f conftest.val 21358 eval gl_cv_bitsizeof_${gltype}=\$result 21359 21360fi 21361ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'} 21362 $as_echo "$as_val"'` 21363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21364$as_echo "$ac_res" >&6; } 21365 eval result=\$gl_cv_bitsizeof_${gltype} 21366 if test $result = unknown; then 21367 result=0 21368 fi 21369 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21370 cat >>confdefs.h <<_ACEOF 21371#define BITSIZEOF_${GLTYPE} $result 21372_ACEOF 21373 21374 eval BITSIZEOF_${GLTYPE}=\$result 21375 done 21376 21377 21378 21379 21380 21381 21382 21383 for gltype in sig_atomic_t wchar_t wint_t ; do 21384 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 21385$as_echo_n "checking whether $gltype is signed... " >&6; } 21386if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then 21387 $as_echo_n "(cached) " >&6 21388else 21389 cat >conftest.$ac_ext <<_ACEOF 21390/* confdefs.h. */ 21391_ACEOF 21392cat confdefs.h >>conftest.$ac_ext 21393cat >>conftest.$ac_ext <<_ACEOF 21394/* end confdefs.h. */ 21395 21396 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21397 included before <wchar.h>. */ 21398 #include <stddef.h> 21399 #include <signal.h> 21400 #if HAVE_WCHAR_H 21401 # include <stdio.h> 21402 # include <time.h> 21403 # include <wchar.h> 21404 #endif 21405 21406 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 21407int 21408main () 21409{ 21410 21411 ; 21412 return 0; 21413} 21414_ACEOF 21415rm -f conftest.$ac_objext 21416if { (ac_try="$ac_compile" 21417case "(($ac_try" in 21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21419 *) ac_try_echo=$ac_try;; 21420esac 21421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21422$as_echo "$ac_try_echo") >&5 21423 (eval "$ac_compile") 2>conftest.er1 21424 ac_status=$? 21425 grep -v '^ *+' conftest.er1 >conftest.err 21426 rm -f conftest.er1 21427 cat conftest.err >&5 21428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21429 (exit $ac_status); } && { 21430 test -z "$ac_c_werror_flag" || 21431 test ! -s conftest.err 21432 } && test -s conftest.$ac_objext; then 21433 result=yes 21434else 21435 $as_echo "$as_me: failed program was:" >&5 21436sed 's/^/| /' conftest.$ac_ext >&5 21437 21438 result=no 21439fi 21440 21441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21442 eval gl_cv_type_${gltype}_signed=\$result 21443 21444fi 21445ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'} 21446 $as_echo "$as_val"'` 21447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21448$as_echo "$ac_res" >&6; } 21449 eval result=\$gl_cv_type_${gltype}_signed 21450 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21451 if test "$result" = yes; then 21452 cat >>confdefs.h <<_ACEOF 21453#define HAVE_SIGNED_${GLTYPE} 1 21454_ACEOF 21455 21456 eval HAVE_SIGNED_${GLTYPE}=1 21457 else 21458 eval HAVE_SIGNED_${GLTYPE}=0 21459 fi 21460 done 21461 21462 21463 gl_cv_type_ptrdiff_t_signed=yes 21464 gl_cv_type_size_t_signed=no 21465 if test $APPLE_UNIVERSAL_BUILD = 0; then 21466 21467 21468 21469 21470 for gltype in ptrdiff_t size_t ; do 21471 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 21472$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 21473if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then 21474 $as_echo_n "(cached) " >&6 21475else 21476 eval gl_cv_type_${gltype}_suffix=no 21477 eval result=\$gl_cv_type_${gltype}_signed 21478 if test "$result" = yes; then 21479 glsufu= 21480 else 21481 glsufu=u 21482 fi 21483 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 21484 case $glsuf in 21485 '') gltype1='int';; 21486 l) gltype1='long int';; 21487 ll) gltype1='long long int';; 21488 i64) gltype1='__int64';; 21489 u) gltype1='unsigned int';; 21490 ul) gltype1='unsigned long int';; 21491 ull) gltype1='unsigned long long int';; 21492 ui64)gltype1='unsigned __int64';; 21493 esac 21494 cat >conftest.$ac_ext <<_ACEOF 21495/* confdefs.h. */ 21496_ACEOF 21497cat confdefs.h >>conftest.$ac_ext 21498cat >>conftest.$ac_ext <<_ACEOF 21499/* end confdefs.h. */ 21500 21501 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21502 included before <wchar.h>. */ 21503 #include <stddef.h> 21504 #include <signal.h> 21505 #if HAVE_WCHAR_H 21506 # include <stdio.h> 21507 # include <time.h> 21508 # include <wchar.h> 21509 #endif 21510 21511 extern $gltype foo; 21512 extern $gltype1 foo; 21513int 21514main () 21515{ 21516 21517 ; 21518 return 0; 21519} 21520_ACEOF 21521rm -f conftest.$ac_objext 21522if { (ac_try="$ac_compile" 21523case "(($ac_try" in 21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21525 *) ac_try_echo=$ac_try;; 21526esac 21527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21528$as_echo "$ac_try_echo") >&5 21529 (eval "$ac_compile") 2>conftest.er1 21530 ac_status=$? 21531 grep -v '^ *+' conftest.er1 >conftest.err 21532 rm -f conftest.er1 21533 cat conftest.err >&5 21534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21535 (exit $ac_status); } && { 21536 test -z "$ac_c_werror_flag" || 21537 test ! -s conftest.err 21538 } && test -s conftest.$ac_objext; then 21539 eval gl_cv_type_${gltype}_suffix=\$glsuf 21540else 21541 $as_echo "$as_me: failed program was:" >&5 21542sed 's/^/| /' conftest.$ac_ext >&5 21543 21544 21545fi 21546 21547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21548 eval result=\$gl_cv_type_${gltype}_suffix 21549 test "$result" != no && break 21550 done 21551fi 21552ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'} 21553 $as_echo "$as_val"'` 21554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21555$as_echo "$ac_res" >&6; } 21556 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21557 eval result=\$gl_cv_type_${gltype}_suffix 21558 test "$result" = no && result= 21559 eval ${GLTYPE}_SUFFIX=\$result 21560 cat >>confdefs.h <<_ACEOF 21561#define ${GLTYPE}_SUFFIX $result 21562_ACEOF 21563 21564 done 21565 21566 21567 fi 21568 21569 21570 21571 21572 21573 for gltype in sig_atomic_t wchar_t wint_t ; do 21574 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 21575$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 21576if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then 21577 $as_echo_n "(cached) " >&6 21578else 21579 eval gl_cv_type_${gltype}_suffix=no 21580 eval result=\$gl_cv_type_${gltype}_signed 21581 if test "$result" = yes; then 21582 glsufu= 21583 else 21584 glsufu=u 21585 fi 21586 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 21587 case $glsuf in 21588 '') gltype1='int';; 21589 l) gltype1='long int';; 21590 ll) gltype1='long long int';; 21591 i64) gltype1='__int64';; 21592 u) gltype1='unsigned int';; 21593 ul) gltype1='unsigned long int';; 21594 ull) gltype1='unsigned long long int';; 21595 ui64)gltype1='unsigned __int64';; 21596 esac 21597 cat >conftest.$ac_ext <<_ACEOF 21598/* confdefs.h. */ 21599_ACEOF 21600cat confdefs.h >>conftest.$ac_ext 21601cat >>conftest.$ac_ext <<_ACEOF 21602/* end confdefs.h. */ 21603 21604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21605 included before <wchar.h>. */ 21606 #include <stddef.h> 21607 #include <signal.h> 21608 #if HAVE_WCHAR_H 21609 # include <stdio.h> 21610 # include <time.h> 21611 # include <wchar.h> 21612 #endif 21613 21614 extern $gltype foo; 21615 extern $gltype1 foo; 21616int 21617main () 21618{ 21619 21620 ; 21621 return 0; 21622} 21623_ACEOF 21624rm -f conftest.$ac_objext 21625if { (ac_try="$ac_compile" 21626case "(($ac_try" in 21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21628 *) ac_try_echo=$ac_try;; 21629esac 21630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21631$as_echo "$ac_try_echo") >&5 21632 (eval "$ac_compile") 2>conftest.er1 21633 ac_status=$? 21634 grep -v '^ *+' conftest.er1 >conftest.err 21635 rm -f conftest.er1 21636 cat conftest.err >&5 21637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21638 (exit $ac_status); } && { 21639 test -z "$ac_c_werror_flag" || 21640 test ! -s conftest.err 21641 } && test -s conftest.$ac_objext; then 21642 eval gl_cv_type_${gltype}_suffix=\$glsuf 21643else 21644 $as_echo "$as_me: failed program was:" >&5 21645sed 's/^/| /' conftest.$ac_ext >&5 21646 21647 21648fi 21649 21650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21651 eval result=\$gl_cv_type_${gltype}_suffix 21652 test "$result" != no && break 21653 done 21654fi 21655ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'} 21656 $as_echo "$as_val"'` 21657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21658$as_echo "$ac_res" >&6; } 21659 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21660 eval result=\$gl_cv_type_${gltype}_suffix 21661 test "$result" = no && result= 21662 eval ${GLTYPE}_SUFFIX=\$result 21663 cat >>confdefs.h <<_ACEOF 21664#define ${GLTYPE}_SUFFIX $result 21665_ACEOF 21666 21667 done 21668 21669 21670 21671 STDINT_H=stdint.h 21672 fi 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 if test $gl_cv_have_include_next = yes; then 21689 gl_cv_next_stdio_h='<'stdio.h'>' 21690 else 21691 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5 21692$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 21693if test "${gl_cv_next_stdio_h+set}" = set; then 21694 $as_echo_n "(cached) " >&6 21695else 21696 21697 if test $ac_cv_header_stdio_h = yes; then 21698 cat >conftest.$ac_ext <<_ACEOF 21699/* confdefs.h. */ 21700_ACEOF 21701cat confdefs.h >>conftest.$ac_ext 21702cat >>conftest.$ac_ext <<_ACEOF 21703/* end confdefs.h. */ 21704#include <stdio.h> 21705 21706_ACEOF 21707 case "$host_os" in 21708 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21709 *) gl_absname_cpp="$ac_cpp" ;; 21710 esac 21711 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21712 sed -n '\#/stdio.h#{ 21713 s#.*"\(.*/stdio.h\)".*#\1# 21714 s#^/[^/]#//&# 21715 p 21716 q 21717 }'`'"' 21718 else 21719 gl_cv_next_stdio_h='<'stdio.h'>' 21720 fi 21721 21722fi 21723{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5 21724$as_echo "$gl_cv_next_stdio_h" >&6; } 21725 fi 21726 NEXT_STDIO_H=$gl_cv_next_stdio_h 21727 21728 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21730 gl_next_as_first_directive='<'stdio.h'>' 21731 else 21732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21733 gl_next_as_first_directive=$gl_cv_next_stdio_h 21734 fi 21735 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 21736 21737 21738 21739 GNULIB_FPRINTF=1 21740 GNULIB_PRINTF=1 21741 GNULIB_VFPRINTF=1 21742 GNULIB_VPRINTF=1 21743 GNULIB_FPUTC=1 21744 GNULIB_PUTC=1 21745 GNULIB_PUTCHAR=1 21746 GNULIB_FPUTS=1 21747 GNULIB_PUTS=1 21748 GNULIB_FWRITE=1 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 if test $gl_cv_have_include_next = yes; then 21765 gl_cv_next_stdlib_h='<'stdlib.h'>' 21766 else 21767 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5 21768$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 21769if test "${gl_cv_next_stdlib_h+set}" = set; then 21770 $as_echo_n "(cached) " >&6 21771else 21772 21773 if test $ac_cv_header_stdlib_h = yes; then 21774 cat >conftest.$ac_ext <<_ACEOF 21775/* confdefs.h. */ 21776_ACEOF 21777cat confdefs.h >>conftest.$ac_ext 21778cat >>conftest.$ac_ext <<_ACEOF 21779/* end confdefs.h. */ 21780#include <stdlib.h> 21781 21782_ACEOF 21783 case "$host_os" in 21784 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21785 *) gl_absname_cpp="$ac_cpp" ;; 21786 esac 21787 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21788 sed -n '\#/stdlib.h#{ 21789 s#.*"\(.*/stdlib.h\)".*#\1# 21790 s#^/[^/]#//&# 21791 p 21792 q 21793 }'`'"' 21794 else 21795 gl_cv_next_stdlib_h='<'stdlib.h'>' 21796 fi 21797 21798fi 21799{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5 21800$as_echo "$gl_cv_next_stdlib_h" >&6; } 21801 fi 21802 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 21803 21804 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21806 gl_next_as_first_directive='<'stdlib.h'>' 21807 else 21808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21809 gl_next_as_first_directive=$gl_cv_next_stdlib_h 21810 fi 21811 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 21812 21813 21814 21815 21816for ac_header in random.h 21817do 21818as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21819{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 21820$as_echo_n "checking for $ac_header... " >&6; } 21821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21822 $as_echo_n "(cached) " >&6 21823else 21824 cat >conftest.$ac_ext <<_ACEOF 21825/* confdefs.h. */ 21826_ACEOF 21827cat confdefs.h >>conftest.$ac_ext 21828cat >>conftest.$ac_ext <<_ACEOF 21829/* end confdefs.h. */ 21830$ac_includes_default 21831 21832#include <$ac_header> 21833_ACEOF 21834rm -f conftest.$ac_objext 21835if { (ac_try="$ac_compile" 21836case "(($ac_try" in 21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21838 *) ac_try_echo=$ac_try;; 21839esac 21840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21841$as_echo "$ac_try_echo") >&5 21842 (eval "$ac_compile") 2>conftest.er1 21843 ac_status=$? 21844 grep -v '^ *+' conftest.er1 >conftest.err 21845 rm -f conftest.er1 21846 cat conftest.err >&5 21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21848 (exit $ac_status); } && { 21849 test -z "$ac_c_werror_flag" || 21850 test ! -s conftest.err 21851 } && test -s conftest.$ac_objext; then 21852 eval "$as_ac_Header=yes" 21853else 21854 $as_echo "$as_me: failed program was:" >&5 21855sed 's/^/| /' conftest.$ac_ext >&5 21856 21857 eval "$as_ac_Header=no" 21858fi 21859 21860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21861fi 21862ac_res=`eval 'as_val=${'$as_ac_Header'} 21863 $as_echo "$as_val"'` 21864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21865$as_echo "$ac_res" >&6; } 21866as_val=`eval 'as_val=${'$as_ac_Header'} 21867 $as_echo "$as_val"'` 21868 if test "x$as_val" = x""yes; then 21869 cat >>confdefs.h <<_ACEOF 21870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21871_ACEOF 21872 21873fi 21874 21875done 21876 21877 if test $ac_cv_header_random_h = yes; then 21878 HAVE_RANDOM_H=1 21879 else 21880 HAVE_RANDOM_H=0 21881 fi 21882 21883 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5 21884$as_echo_n "checking for struct random_data... " >&6; } 21885if test "${ac_cv_type_struct_random_data+set}" = set; then 21886 $as_echo_n "(cached) " >&6 21887else 21888 ac_cv_type_struct_random_data=no 21889cat >conftest.$ac_ext <<_ACEOF 21890/* confdefs.h. */ 21891_ACEOF 21892cat confdefs.h >>conftest.$ac_ext 21893cat >>conftest.$ac_ext <<_ACEOF 21894/* end confdefs.h. */ 21895#include <stdlib.h> 21896 #if HAVE_RANDOM_H 21897 # include <random.h> 21898 #endif 21899 21900 21901int 21902main () 21903{ 21904if (sizeof (struct random_data)) 21905 return 0; 21906 ; 21907 return 0; 21908} 21909_ACEOF 21910rm -f conftest.$ac_objext 21911if { (ac_try="$ac_compile" 21912case "(($ac_try" in 21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21914 *) ac_try_echo=$ac_try;; 21915esac 21916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21917$as_echo "$ac_try_echo") >&5 21918 (eval "$ac_compile") 2>conftest.er1 21919 ac_status=$? 21920 grep -v '^ *+' conftest.er1 >conftest.err 21921 rm -f conftest.er1 21922 cat conftest.err >&5 21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21924 (exit $ac_status); } && { 21925 test -z "$ac_c_werror_flag" || 21926 test ! -s conftest.err 21927 } && test -s conftest.$ac_objext; then 21928 cat >conftest.$ac_ext <<_ACEOF 21929/* confdefs.h. */ 21930_ACEOF 21931cat confdefs.h >>conftest.$ac_ext 21932cat >>conftest.$ac_ext <<_ACEOF 21933/* end confdefs.h. */ 21934#include <stdlib.h> 21935 #if HAVE_RANDOM_H 21936 # include <random.h> 21937 #endif 21938 21939 21940int 21941main () 21942{ 21943if (sizeof ((struct random_data))) 21944 return 0; 21945 ; 21946 return 0; 21947} 21948_ACEOF 21949rm -f conftest.$ac_objext 21950if { (ac_try="$ac_compile" 21951case "(($ac_try" in 21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21953 *) ac_try_echo=$ac_try;; 21954esac 21955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21956$as_echo "$ac_try_echo") >&5 21957 (eval "$ac_compile") 2>conftest.er1 21958 ac_status=$? 21959 grep -v '^ *+' conftest.er1 >conftest.err 21960 rm -f conftest.er1 21961 cat conftest.err >&5 21962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21963 (exit $ac_status); } && { 21964 test -z "$ac_c_werror_flag" || 21965 test ! -s conftest.err 21966 } && test -s conftest.$ac_objext; then 21967 : 21968else 21969 $as_echo "$as_me: failed program was:" >&5 21970sed 's/^/| /' conftest.$ac_ext >&5 21971 21972 ac_cv_type_struct_random_data=yes 21973fi 21974 21975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21976else 21977 $as_echo "$as_me: failed program was:" >&5 21978sed 's/^/| /' conftest.$ac_ext >&5 21979 21980 21981fi 21982 21983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21984fi 21985{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5 21986$as_echo "$ac_cv_type_struct_random_data" >&6; } 21987if test "x$ac_cv_type_struct_random_data" = x""yes; then 21988 21989cat >>confdefs.h <<_ACEOF 21990#define HAVE_STRUCT_RANDOM_DATA 1 21991_ACEOF 21992 21993 21994else 21995 HAVE_STRUCT_RANDOM_DATA=0 21996fi 21997 21998 21999 22000 22001 if test $REPLACE_STRERROR = 1; then 22002 22003 22004 22005 22006 22007 22008 22009 22010 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 22011 22012 22013cat >>confdefs.h <<_ACEOF 22014#define REPLACE_STRERROR $REPLACE_STRERROR 22015_ACEOF 22016 22017 fi 22018 22019 22020 22021 GNULIB_STRERROR=1 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 if test $ac_cv_have_decl_strndup = no; then 22035 HAVE_DECL_STRNDUP=0 22036 fi 22037 22038 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. 22039 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5 22040$as_echo_n "checking for working strndup... " >&6; } 22041if test "${gl_cv_func_strndup+set}" = set; then 22042 $as_echo_n "(cached) " >&6 22043else 22044 if test "$cross_compiling" = yes; then 22045 { $as_echo "$as_me:$LINENO: checking for strndup" >&5 22046$as_echo_n "checking for strndup... " >&6; } 22047if test "${ac_cv_func_strndup+set}" = set; then 22048 $as_echo_n "(cached) " >&6 22049else 22050 cat >conftest.$ac_ext <<_ACEOF 22051/* confdefs.h. */ 22052_ACEOF 22053cat confdefs.h >>conftest.$ac_ext 22054cat >>conftest.$ac_ext <<_ACEOF 22055/* end confdefs.h. */ 22056/* Define strndup to an innocuous variant, in case <limits.h> declares strndup. 22057 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22058#define strndup innocuous_strndup 22059 22060/* System header to define __stub macros and hopefully few prototypes, 22061 which can conflict with char strndup (); below. 22062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22063 <limits.h> exists even on freestanding compilers. */ 22064 22065#ifdef __STDC__ 22066# include <limits.h> 22067#else 22068# include <assert.h> 22069#endif 22070 22071#undef strndup 22072 22073/* Override any GCC internal prototype to avoid an error. 22074 Use char because int might match the return type of a GCC 22075 builtin and then its argument prototype would still apply. */ 22076#ifdef __cplusplus 22077extern "C" 22078#endif 22079char strndup (); 22080/* The GNU C library defines this for functions which it implements 22081 to always fail with ENOSYS. Some functions are actually named 22082 something starting with __ and the normal name is an alias. */ 22083#if defined __stub_strndup || defined __stub___strndup 22084choke me 22085#endif 22086 22087int 22088main () 22089{ 22090return strndup (); 22091 ; 22092 return 0; 22093} 22094_ACEOF 22095rm -f conftest.$ac_objext conftest$ac_exeext 22096if { (ac_try="$ac_link" 22097case "(($ac_try" in 22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22099 *) ac_try_echo=$ac_try;; 22100esac 22101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22102$as_echo "$ac_try_echo") >&5 22103 (eval "$ac_link") 2>conftest.er1 22104 ac_status=$? 22105 grep -v '^ *+' conftest.er1 >conftest.err 22106 rm -f conftest.er1 22107 cat conftest.err >&5 22108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22109 (exit $ac_status); } && { 22110 test -z "$ac_c_werror_flag" || 22111 test ! -s conftest.err 22112 } && test -s conftest$ac_exeext && { 22113 test "$cross_compiling" = yes || 22114 $as_test_x conftest$ac_exeext 22115 }; then 22116 ac_cv_func_strndup=yes 22117else 22118 $as_echo "$as_me: failed program was:" >&5 22119sed 's/^/| /' conftest.$ac_ext >&5 22120 22121 ac_cv_func_strndup=no 22122fi 22123 22124rm -rf conftest.dSYM 22125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22126 conftest$ac_exeext conftest.$ac_ext 22127fi 22128{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 22129$as_echo "$ac_cv_func_strndup" >&6; } 22130if test "x$ac_cv_func_strndup" = x""yes; then 22131 cat >conftest.$ac_ext <<_ACEOF 22132/* confdefs.h. */ 22133_ACEOF 22134cat confdefs.h >>conftest.$ac_ext 22135cat >>conftest.$ac_ext <<_ACEOF 22136/* end confdefs.h. */ 22137 22138#ifdef _AIX 22139 too risky 22140#endif 22141 22142_ACEOF 22143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22144 $EGREP "too risky" >/dev/null 2>&1; then 22145 gl_cv_func_strndup=no 22146else 22147 gl_cv_func_strndup=yes 22148fi 22149rm -f conftest* 22150 22151else 22152 gl_cv_func_strndup=no 22153fi 22154 22155else 22156 cat >conftest.$ac_ext <<_ACEOF 22157 22158 /* confdefs.h. */ 22159_ACEOF 22160cat confdefs.h >>conftest.$ac_ext 22161cat >>conftest.$ac_ext <<_ACEOF 22162/* end confdefs.h. */ 22163#include <string.h> 22164 #include <stdlib.h> 22165int 22166main () 22167{ 22168 22169#ifndef HAVE_DECL_STRNDUP 22170 extern char *strndup (const char *, size_t); 22171#endif 22172 char *s; 22173 s = strndup ("some longer string", 15); 22174 free (s); 22175 s = strndup ("shorter string", 13); 22176 return s[13] != '\0'; 22177 ; 22178 return 0; 22179} 22180_ACEOF 22181rm -f conftest$ac_exeext 22182if { (ac_try="$ac_link" 22183case "(($ac_try" in 22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22185 *) ac_try_echo=$ac_try;; 22186esac 22187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22188$as_echo "$ac_try_echo") >&5 22189 (eval "$ac_link") 2>&5 22190 ac_status=$? 22191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22193 { (case "(($ac_try" in 22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22195 *) ac_try_echo=$ac_try;; 22196esac 22197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22198$as_echo "$ac_try_echo") >&5 22199 (eval "$ac_try") 2>&5 22200 ac_status=$? 22201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22202 (exit $ac_status); }; }; then 22203 gl_cv_func_strndup=yes 22204else 22205 $as_echo "$as_me: program exited with status $ac_status" >&5 22206$as_echo "$as_me: failed program was:" >&5 22207sed 's/^/| /' conftest.$ac_ext >&5 22208 22209( exit $ac_status ) 22210gl_cv_func_strndup=no 22211fi 22212rm -rf conftest.dSYM 22213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22214fi 22215 22216 22217fi 22218{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5 22219$as_echo "$gl_cv_func_strndup" >&6; } 22220 if test $gl_cv_func_strndup = yes; then 22221 22222cat >>confdefs.h <<\_ACEOF 22223#define HAVE_STRNDUP 1 22224_ACEOF 22225 22226 else 22227 HAVE_STRNDUP=0 22228 22229 22230 22231 22232 22233 22234 22235 22236 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext" 22237 22238 : 22239 fi 22240 22241 22242 22243 GNULIB_STRNDUP=1 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 if test $ac_cv_have_decl_strnlen = no; then 22254 HAVE_DECL_STRNLEN=0 22255 fi 22256 22257 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5 22258$as_echo_n "checking for working strnlen... " >&6; } 22259if test "${ac_cv_func_strnlen_working+set}" = set; then 22260 $as_echo_n "(cached) " >&6 22261else 22262 if test "$cross_compiling" = yes; then 22263 ac_cv_func_strnlen_working=no 22264else 22265 cat >conftest.$ac_ext <<_ACEOF 22266/* confdefs.h. */ 22267_ACEOF 22268cat confdefs.h >>conftest.$ac_ext 22269cat >>conftest.$ac_ext <<_ACEOF 22270/* end confdefs.h. */ 22271$ac_includes_default 22272int 22273main () 22274{ 22275 22276#define S "foobar" 22277#define S_LEN (sizeof S - 1) 22278 22279 /* At least one implementation is buggy: that of AIX 4.3 would 22280 give strnlen (S, 1) == 3. */ 22281 22282 int i; 22283 for (i = 0; i < S_LEN + 1; ++i) 22284 { 22285 int expected = i <= S_LEN ? i : S_LEN; 22286 if (strnlen (S, i) != expected) 22287 return 1; 22288 } 22289 return 0; 22290 22291 ; 22292 return 0; 22293} 22294_ACEOF 22295rm -f conftest$ac_exeext 22296if { (ac_try="$ac_link" 22297case "(($ac_try" in 22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22299 *) ac_try_echo=$ac_try;; 22300esac 22301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22302$as_echo "$ac_try_echo") >&5 22303 (eval "$ac_link") 2>&5 22304 ac_status=$? 22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22307 { (case "(($ac_try" in 22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22309 *) ac_try_echo=$ac_try;; 22310esac 22311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22312$as_echo "$ac_try_echo") >&5 22313 (eval "$ac_try") 2>&5 22314 ac_status=$? 22315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22316 (exit $ac_status); }; }; then 22317 ac_cv_func_strnlen_working=yes 22318else 22319 $as_echo "$as_me: program exited with status $ac_status" >&5 22320$as_echo "$as_me: failed program was:" >&5 22321sed 's/^/| /' conftest.$ac_ext >&5 22322 22323( exit $ac_status ) 22324ac_cv_func_strnlen_working=no 22325fi 22326rm -rf conftest.dSYM 22327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22328fi 22329 22330 22331fi 22332{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 22333$as_echo "$ac_cv_func_strnlen_working" >&6; } 22334test $ac_cv_func_strnlen_working = no && 22335 22336 22337 22338 22339 22340 22341 22342 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" 22343 22344 22345 if test $ac_cv_func_strnlen_working = no; then 22346 # This is necessary because automake-1.6.1 doesn't understand 22347 # that the above use of AC_FUNC_STRNLEN means we may have to use 22348 # lib/strnlen.c. 22349 #AC_LIBOBJ([strnlen]) 22350 22351cat >>confdefs.h <<\_ACEOF 22352#define strnlen rpl_strnlen 22353_ACEOF 22354 22355 : 22356 fi 22357 22358 22359 22360 GNULIB_STRNLEN=1 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375for ac_func in strverscmp 22376do 22377as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22378{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 22379$as_echo_n "checking for $ac_func... " >&6; } 22380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22381 $as_echo_n "(cached) " >&6 22382else 22383 cat >conftest.$ac_ext <<_ACEOF 22384/* confdefs.h. */ 22385_ACEOF 22386cat confdefs.h >>conftest.$ac_ext 22387cat >>conftest.$ac_ext <<_ACEOF 22388/* end confdefs.h. */ 22389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22391#define $ac_func innocuous_$ac_func 22392 22393/* System header to define __stub macros and hopefully few prototypes, 22394 which can conflict with char $ac_func (); below. 22395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22396 <limits.h> exists even on freestanding compilers. */ 22397 22398#ifdef __STDC__ 22399# include <limits.h> 22400#else 22401# include <assert.h> 22402#endif 22403 22404#undef $ac_func 22405 22406/* Override any GCC internal prototype to avoid an error. 22407 Use char because int might match the return type of a GCC 22408 builtin and then its argument prototype would still apply. */ 22409#ifdef __cplusplus 22410extern "C" 22411#endif 22412char $ac_func (); 22413/* The GNU C library defines this for functions which it implements 22414 to always fail with ENOSYS. Some functions are actually named 22415 something starting with __ and the normal name is an alias. */ 22416#if defined __stub_$ac_func || defined __stub___$ac_func 22417choke me 22418#endif 22419 22420int 22421main () 22422{ 22423return $ac_func (); 22424 ; 22425 return 0; 22426} 22427_ACEOF 22428rm -f conftest.$ac_objext conftest$ac_exeext 22429if { (ac_try="$ac_link" 22430case "(($ac_try" in 22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22432 *) ac_try_echo=$ac_try;; 22433esac 22434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22435$as_echo "$ac_try_echo") >&5 22436 (eval "$ac_link") 2>conftest.er1 22437 ac_status=$? 22438 grep -v '^ *+' conftest.er1 >conftest.err 22439 rm -f conftest.er1 22440 cat conftest.err >&5 22441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22442 (exit $ac_status); } && { 22443 test -z "$ac_c_werror_flag" || 22444 test ! -s conftest.err 22445 } && test -s conftest$ac_exeext && { 22446 test "$cross_compiling" = yes || 22447 $as_test_x conftest$ac_exeext 22448 }; then 22449 eval "$as_ac_var=yes" 22450else 22451 $as_echo "$as_me: failed program was:" >&5 22452sed 's/^/| /' conftest.$ac_ext >&5 22453 22454 eval "$as_ac_var=no" 22455fi 22456 22457rm -rf conftest.dSYM 22458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22459 conftest$ac_exeext conftest.$ac_ext 22460fi 22461ac_res=`eval 'as_val=${'$as_ac_var'} 22462 $as_echo "$as_val"'` 22463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22464$as_echo "$ac_res" >&6; } 22465as_val=`eval 'as_val=${'$as_ac_var'} 22466 $as_echo "$as_val"'` 22467 if test "x$as_val" = x""yes; then 22468 cat >>confdefs.h <<_ACEOF 22469#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22470_ACEOF 22471 22472else 22473 22474 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 22475 22476fi 22477done 22478 22479 22480 if test $ac_cv_func_strverscmp = no; then 22481 22482 : 22483 22484 HAVE_STRVERSCMP=0 22485 fi 22486 22487 22488 22489 GNULIB_STRVERSCMP=1 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 if test $ac_cv_func_lstat = yes; then 22501 HAVE_LSTAT=1 22502 else 22503 HAVE_LSTAT=0 22504 fi 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 if test $gl_cv_have_include_next = yes; then 22523 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22524 else 22525 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5 22526$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 22527if test "${gl_cv_next_sys_stat_h+set}" = set; then 22528 $as_echo_n "(cached) " >&6 22529else 22530 22531 if test $ac_cv_header_sys_stat_h = yes; then 22532 cat >conftest.$ac_ext <<_ACEOF 22533/* confdefs.h. */ 22534_ACEOF 22535cat confdefs.h >>conftest.$ac_ext 22536cat >>conftest.$ac_ext <<_ACEOF 22537/* end confdefs.h. */ 22538#include <sys/stat.h> 22539 22540_ACEOF 22541 case "$host_os" in 22542 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22543 *) gl_absname_cpp="$ac_cpp" ;; 22544 esac 22545 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22546 sed -n '\#/sys/stat.h#{ 22547 s#.*"\(.*/sys/stat.h\)".*#\1# 22548 s#^/[^/]#//&# 22549 p 22550 q 22551 }'`'"' 22552 else 22553 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22554 fi 22555 22556fi 22557{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5 22558$as_echo "$gl_cv_next_sys_stat_h" >&6; } 22559 fi 22560 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 22561 22562 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22564 gl_next_as_first_directive='<'sys/stat.h'>' 22565 else 22566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22567 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 22568 fi 22569 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 22570 22571 22572 22573 SYS_STAT_H='sys/stat.h' 22574 22575 22576 { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5 22577$as_echo_n "checking for nlink_t... " >&6; } 22578if test "${ac_cv_type_nlink_t+set}" = set; then 22579 $as_echo_n "(cached) " >&6 22580else 22581 ac_cv_type_nlink_t=no 22582cat >conftest.$ac_ext <<_ACEOF 22583/* confdefs.h. */ 22584_ACEOF 22585cat confdefs.h >>conftest.$ac_ext 22586cat >>conftest.$ac_ext <<_ACEOF 22587/* end confdefs.h. */ 22588#include <sys/types.h> 22589 #include <sys/stat.h> 22590 22591int 22592main () 22593{ 22594if (sizeof (nlink_t)) 22595 return 0; 22596 ; 22597 return 0; 22598} 22599_ACEOF 22600rm -f conftest.$ac_objext 22601if { (ac_try="$ac_compile" 22602case "(($ac_try" in 22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22604 *) ac_try_echo=$ac_try;; 22605esac 22606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22607$as_echo "$ac_try_echo") >&5 22608 (eval "$ac_compile") 2>conftest.er1 22609 ac_status=$? 22610 grep -v '^ *+' conftest.er1 >conftest.err 22611 rm -f conftest.er1 22612 cat conftest.err >&5 22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22614 (exit $ac_status); } && { 22615 test -z "$ac_c_werror_flag" || 22616 test ! -s conftest.err 22617 } && test -s conftest.$ac_objext; then 22618 cat >conftest.$ac_ext <<_ACEOF 22619/* confdefs.h. */ 22620_ACEOF 22621cat confdefs.h >>conftest.$ac_ext 22622cat >>conftest.$ac_ext <<_ACEOF 22623/* end confdefs.h. */ 22624#include <sys/types.h> 22625 #include <sys/stat.h> 22626 22627int 22628main () 22629{ 22630if (sizeof ((nlink_t))) 22631 return 0; 22632 ; 22633 return 0; 22634} 22635_ACEOF 22636rm -f conftest.$ac_objext 22637if { (ac_try="$ac_compile" 22638case "(($ac_try" in 22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22640 *) ac_try_echo=$ac_try;; 22641esac 22642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22643$as_echo "$ac_try_echo") >&5 22644 (eval "$ac_compile") 2>conftest.er1 22645 ac_status=$? 22646 grep -v '^ *+' conftest.er1 >conftest.err 22647 rm -f conftest.er1 22648 cat conftest.err >&5 22649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22650 (exit $ac_status); } && { 22651 test -z "$ac_c_werror_flag" || 22652 test ! -s conftest.err 22653 } && test -s conftest.$ac_objext; then 22654 : 22655else 22656 $as_echo "$as_me: failed program was:" >&5 22657sed 's/^/| /' conftest.$ac_ext >&5 22658 22659 ac_cv_type_nlink_t=yes 22660fi 22661 22662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22663else 22664 $as_echo "$as_me: failed program was:" >&5 22665sed 's/^/| /' conftest.$ac_ext >&5 22666 22667 22668fi 22669 22670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22671fi 22672{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5 22673$as_echo "$ac_cv_type_nlink_t" >&6; } 22674if test "x$ac_cv_type_nlink_t" = x""yes; then 22675 : 22676else 22677 22678cat >>confdefs.h <<\_ACEOF 22679#define nlink_t int 22680_ACEOF 22681 22682fi 22683 22684 22685 22686 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 22687$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 22688if test -z "$MKDIR_P"; then 22689 if test "${ac_cv_path_mkdir+set}" = set; then 22690 $as_echo_n "(cached) " >&6 22691else 22692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22693for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 22694do 22695 IFS=$as_save_IFS 22696 test -z "$as_dir" && as_dir=. 22697 for ac_prog in mkdir gmkdir; do 22698 for ac_exec_ext in '' $ac_executable_extensions; do 22699 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 22700 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 22701 'mkdir (GNU coreutils) '* | \ 22702 'mkdir (coreutils) '* | \ 22703 'mkdir (fileutils) '4.1*) 22704 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 22705 break 3;; 22706 esac 22707 done 22708 done 22709done 22710IFS=$as_save_IFS 22711 22712fi 22713 22714 if test "${ac_cv_path_mkdir+set}" = set; then 22715 MKDIR_P="$ac_cv_path_mkdir -p" 22716 else 22717 # As a last resort, use the slow shell script. Don't cache a 22718 # value for MKDIR_P within a source directory, because that will 22719 # break other packages using the cache if that directory is 22720 # removed, or if the value is a relative name. 22721 test -d ./--version && rmdir ./--version 22722 MKDIR_P="$ac_install_sh -d" 22723 fi 22724fi 22725{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 22726$as_echo "$MKDIR_P" >&6; } 22727 22728 22729 22730 22731 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 22732$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 22733if test -z "$MKDIR_P"; then 22734 if test "${ac_cv_path_mkdir+set}" = set; then 22735 $as_echo_n "(cached) " >&6 22736else 22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22738for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 22739do 22740 IFS=$as_save_IFS 22741 test -z "$as_dir" && as_dir=. 22742 for ac_prog in mkdir gmkdir; do 22743 for ac_exec_ext in '' $ac_executable_extensions; do 22744 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 22745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 22746 'mkdir (GNU coreutils) '* | \ 22747 'mkdir (coreutils) '* | \ 22748 'mkdir (fileutils) '4.1*) 22749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 22750 break 3;; 22751 esac 22752 done 22753 done 22754done 22755IFS=$as_save_IFS 22756 22757fi 22758 22759 if test "${ac_cv_path_mkdir+set}" = set; then 22760 MKDIR_P="$ac_cv_path_mkdir -p" 22761 else 22762 # As a last resort, use the slow shell script. Don't cache a 22763 # value for MKDIR_P within a source directory, because that will 22764 # break other packages using the cache if that directory is 22765 # removed, or if the value is a relative name. 22766 test -d ./--version && rmdir ./--version 22767 MKDIR_P="$ac_install_sh -d" 22768 fi 22769fi 22770{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 22771$as_echo "$MKDIR_P" >&6; } 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext" 22785 22786 22787 : 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 if test $gl_cv_have_include_next = yes; then 22805 gl_cv_next_unistd_h='<'unistd.h'>' 22806 else 22807 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5 22808$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 22809if test "${gl_cv_next_unistd_h+set}" = set; then 22810 $as_echo_n "(cached) " >&6 22811else 22812 22813 if test $ac_cv_header_unistd_h = yes; then 22814 cat >conftest.$ac_ext <<_ACEOF 22815/* confdefs.h. */ 22816_ACEOF 22817cat confdefs.h >>conftest.$ac_ext 22818cat >>conftest.$ac_ext <<_ACEOF 22819/* end confdefs.h. */ 22820#include <unistd.h> 22821 22822_ACEOF 22823 case "$host_os" in 22824 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22825 *) gl_absname_cpp="$ac_cpp" ;; 22826 esac 22827 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22828 sed -n '\#/unistd.h#{ 22829 s#.*"\(.*/unistd.h\)".*#\1# 22830 s#^/[^/]#//&# 22831 p 22832 q 22833 }'`'"' 22834 else 22835 gl_cv_next_unistd_h='<'unistd.h'>' 22836 fi 22837 22838fi 22839{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5 22840$as_echo "$gl_cv_next_unistd_h" >&6; } 22841 fi 22842 NEXT_UNISTD_H=$gl_cv_next_unistd_h 22843 22844 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22846 gl_next_as_first_directive='<'unistd.h'>' 22847 else 22848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22849 gl_next_as_first_directive=$gl_cv_next_unistd_h 22850 fi 22851 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 if test $ac_cv_header_unistd_h = yes; then 22863 HAVE_UNISTD_H=1 22864 else 22865 HAVE_UNISTD_H=0 22866 fi 22867 22868 22869 22870 22871cat >>confdefs.h <<\_ACEOF 22872#define USE_UNLOCKED_IO 1 22873_ACEOF 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 22934$as_echo_n "checking whether <wchar.h> is standalone... " >&6; } 22935if test "${gl_cv_header_wchar_h_standalone+set}" = set; then 22936 $as_echo_n "(cached) " >&6 22937else 22938 cat >conftest.$ac_ext <<_ACEOF 22939#include <wchar.h> 22940wchar_t w; 22941_ACEOF 22942rm -f conftest.$ac_objext 22943if { (ac_try="$ac_compile" 22944case "(($ac_try" in 22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22946 *) ac_try_echo=$ac_try;; 22947esac 22948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22949$as_echo "$ac_try_echo") >&5 22950 (eval "$ac_compile") 2>conftest.er1 22951 ac_status=$? 22952 grep -v '^ *+' conftest.er1 >conftest.err 22953 rm -f conftest.er1 22954 cat conftest.err >&5 22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22956 (exit $ac_status); } && { 22957 test -z "$ac_c_werror_flag" || 22958 test ! -s conftest.err 22959 } && test -s conftest.$ac_objext; then 22960 gl_cv_header_wchar_h_standalone=yes 22961else 22962 $as_echo "$as_me: failed program was:" >&5 22963sed 's/^/| /' conftest.$ac_ext >&5 22964 22965 gl_cv_header_wchar_h_standalone=no 22966fi 22967 22968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22969fi 22970{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 22971$as_echo "$gl_cv_header_wchar_h_standalone" >&6; } 22972 22973 22974 if test $gt_cv_c_wint_t = yes; then 22975 HAVE_WINT_T=1 22976 else 22977 HAVE_WINT_T=0 22978 fi 22979 22980 22981 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then 22982 WCHAR_H=wchar.h 22983 fi 22984 22985 22986 22987 22988 22989 22990 22991 if test $ac_cv_header_wchar_h = yes; then 22992 HAVE_WCHAR_H=1 22993 else 22994 HAVE_WCHAR_H=0 22995 fi 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 if test $gl_cv_have_include_next = yes; then 23009 gl_cv_next_wchar_h='<'wchar.h'>' 23010 else 23011 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 23012$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 23013if test "${gl_cv_next_wchar_h+set}" = set; then 23014 $as_echo_n "(cached) " >&6 23015else 23016 23017 if test $ac_cv_header_wchar_h = yes; then 23018 cat >conftest.$ac_ext <<_ACEOF 23019/* confdefs.h. */ 23020_ACEOF 23021cat confdefs.h >>conftest.$ac_ext 23022cat >>conftest.$ac_ext <<_ACEOF 23023/* end confdefs.h. */ 23024#include <wchar.h> 23025 23026_ACEOF 23027 case "$host_os" in 23028 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23029 *) gl_absname_cpp="$ac_cpp" ;; 23030 esac 23031 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23032 sed -n '\#/wchar.h#{ 23033 s#.*"\(.*/wchar.h\)".*#\1# 23034 s#^/[^/]#//&# 23035 p 23036 q 23037 }'`'"' 23038 else 23039 gl_cv_next_wchar_h='<'wchar.h'>' 23040 fi 23041 23042fi 23043{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 23044$as_echo "$gl_cv_next_wchar_h" >&6; } 23045 fi 23046 NEXT_WCHAR_H=$gl_cv_next_wchar_h 23047 23048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23050 gl_next_as_first_directive='<'wchar.h'>' 23051 else 23052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23053 gl_next_as_first_directive=$gl_cv_next_wchar_h 23054 fi 23055 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 23081 23082 23083 23084 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5 23085$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 23086if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then 23087 $as_echo_n "(cached) " >&6 23088else 23089 23090 case "$host_os" in 23091 # Guess no on AIX and OSF/1. 23092 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 23093 # Guess yes otherwise. 23094 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 23095 esac 23096 if test $LOCALE_JA != none; then 23097 if test "$cross_compiling" = yes; then 23098 : 23099else 23100 cat >conftest.$ac_ext <<_ACEOF 23101/* confdefs.h. */ 23102_ACEOF 23103cat confdefs.h >>conftest.$ac_ext 23104cat >>conftest.$ac_ext <<_ACEOF 23105/* end confdefs.h. */ 23106 23107#include <locale.h> 23108#include <string.h> 23109#include <wchar.h> 23110int main () 23111{ 23112 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 23113 { 23114 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 23115 mbstate_t state; 23116 wchar_t wc; 23117 23118 memset (&state, '\0', sizeof (mbstate_t)); 23119 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 23120 if (mbsinit (&state)) 23121 return 1; 23122 } 23123 return 0; 23124} 23125_ACEOF 23126rm -f conftest$ac_exeext 23127if { (ac_try="$ac_link" 23128case "(($ac_try" in 23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23130 *) ac_try_echo=$ac_try;; 23131esac 23132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23133$as_echo "$ac_try_echo") >&5 23134 (eval "$ac_link") 2>&5 23135 ac_status=$? 23136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23138 { (case "(($ac_try" in 23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23140 *) ac_try_echo=$ac_try;; 23141esac 23142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23143$as_echo "$ac_try_echo") >&5 23144 (eval "$ac_try") 2>&5 23145 ac_status=$? 23146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23147 (exit $ac_status); }; }; then 23148 gl_cv_func_mbrtowc_incomplete_state=yes 23149else 23150 $as_echo "$as_me: program exited with status $ac_status" >&5 23151$as_echo "$as_me: failed program was:" >&5 23152sed 's/^/| /' conftest.$ac_ext >&5 23153 23154( exit $ac_status ) 23155gl_cv_func_mbrtowc_incomplete_state=no 23156fi 23157rm -rf conftest.dSYM 23158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23159fi 23160 23161 23162 fi 23163 23164fi 23165{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 23166$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 23167 23168 23169 23170 23171 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5 23172$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 23173if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then 23174 $as_echo_n "(cached) " >&6 23175else 23176 23177 case "$host_os" in 23178 # Guess no on Solaris 8. 23179 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 23180 # Guess yes otherwise. 23181 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 23182 esac 23183 if test $LOCALE_ZH_CN != none; then 23184 if test "$cross_compiling" = yes; then 23185 : 23186else 23187 cat >conftest.$ac_ext <<_ACEOF 23188/* confdefs.h. */ 23189_ACEOF 23190cat confdefs.h >>conftest.$ac_ext 23191cat >>conftest.$ac_ext <<_ACEOF 23192/* end confdefs.h. */ 23193 23194#include <locale.h> 23195#include <stdlib.h> 23196#include <string.h> 23197#include <wchar.h> 23198int main () 23199{ 23200 /* This fails on Solaris 8: 23201 mbrtowc returns 2, and sets wc to 0x00F0. 23202 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 23203 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 23204 { 23205 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 23206 mbstate_t state; 23207 wchar_t wc; 23208 23209 memset (&state, '\0', sizeof (mbstate_t)); 23210 if (mbrtowc (&wc, input + 3, 6, &state) != 4 23211 && mbtowc (&wc, input + 3, 6) == 4) 23212 return 1; 23213 } 23214 return 0; 23215} 23216_ACEOF 23217rm -f conftest$ac_exeext 23218if { (ac_try="$ac_link" 23219case "(($ac_try" in 23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23221 *) ac_try_echo=$ac_try;; 23222esac 23223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23224$as_echo "$ac_try_echo") >&5 23225 (eval "$ac_link") 2>&5 23226 ac_status=$? 23227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23229 { (case "(($ac_try" in 23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23231 *) ac_try_echo=$ac_try;; 23232esac 23233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23234$as_echo "$ac_try_echo") >&5 23235 (eval "$ac_try") 2>&5 23236 ac_status=$? 23237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23238 (exit $ac_status); }; }; then 23239 gl_cv_func_mbrtowc_sanitycheck=yes 23240else 23241 $as_echo "$as_me: program exited with status $ac_status" >&5 23242$as_echo "$as_me: failed program was:" >&5 23243sed 's/^/| /' conftest.$ac_ext >&5 23244 23245( exit $ac_status ) 23246gl_cv_func_mbrtowc_sanitycheck=no 23247fi 23248rm -rf conftest.dSYM 23249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23250fi 23251 23252 23253 fi 23254 23255fi 23256{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 23257$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 23258 23259 REPLACE_MBSTATE_T=0 23260 case "$gl_cv_func_mbrtowc_incomplete_state" in 23261 *yes) ;; 23262 *) REPLACE_MBSTATE_T=1 ;; 23263 esac 23264 case "$gl_cv_func_mbrtowc_sanitycheck" in 23265 *yes) ;; 23266 *) REPLACE_MBSTATE_T=1 ;; 23267 esac 23268 else 23269 REPLACE_MBSTATE_T=1 23270 fi 23271 if test $REPLACE_MBSTATE_T = 1; then 23272 23273 23274 WCHAR_H=wchar.h 23275 23276 fi 23277 23278 if test $REPLACE_MBSTATE_T = 1; then 23279 REPLACE_WCRTOMB=1 23280 fi 23281 23282 23283 23284 23285 23286 23287 if test $ac_cv_func_wcrtomb = no; then 23288 HAVE_WCRTOMB=0 23289 fi 23290 if test $HAVE_WCRTOMB != 0 && test $REPLACE_WCRTOMB != 1; then 23291 23292 23293 23294 23295 23296 { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5 23297$as_echo_n "checking whether wcrtomb return value is correct... " >&6; } 23298if test "${gl_cv_func_wcrtomb_retval+set}" = set; then 23299 $as_echo_n "(cached) " >&6 23300else 23301 23302 case "$host_os" in 23303 # Guess no on AIX 4, OSF/1 and Solaris. 23304 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;; 23305 # Guess yes otherwise. 23306 *) gl_cv_func_wcrtomb_retval="guessing yes" ;; 23307 esac 23308 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 23309 if test "$cross_compiling" = yes; then 23310 : 23311else 23312 cat >conftest.$ac_ext <<_ACEOF 23313/* confdefs.h. */ 23314_ACEOF 23315cat confdefs.h >>conftest.$ac_ext 23316cat >>conftest.$ac_ext <<_ACEOF 23317/* end confdefs.h. */ 23318 23319#include <locale.h> 23320#include <stdio.h> 23321#include <string.h> 23322#include <wchar.h> 23323int main () 23324{ 23325 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 23326 { 23327 if (wcrtomb (NULL, 0, NULL) != 1) 23328 return 1; 23329 } 23330 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 23331 { 23332 if (wcrtomb (NULL, 0, NULL) != 1) 23333 return 1; 23334 } 23335 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 23336 { 23337 if (wcrtomb (NULL, 0, NULL) != 1) 23338 return 1; 23339 } 23340 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 23341 { 23342 if (wcrtomb (NULL, 0, NULL) != 1) 23343 return 1; 23344 } 23345 return 0; 23346} 23347_ACEOF 23348rm -f conftest$ac_exeext 23349if { (ac_try="$ac_link" 23350case "(($ac_try" in 23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23352 *) ac_try_echo=$ac_try;; 23353esac 23354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23355$as_echo "$ac_try_echo") >&5 23356 (eval "$ac_link") 2>&5 23357 ac_status=$? 23358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23360 { (case "(($ac_try" in 23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23362 *) ac_try_echo=$ac_try;; 23363esac 23364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23365$as_echo "$ac_try_echo") >&5 23366 (eval "$ac_try") 2>&5 23367 ac_status=$? 23368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23369 (exit $ac_status); }; }; then 23370 gl_cv_func_wcrtomb_retval=yes 23371else 23372 $as_echo "$as_me: program exited with status $ac_status" >&5 23373$as_echo "$as_me: failed program was:" >&5 23374sed 's/^/| /' conftest.$ac_ext >&5 23375 23376( exit $ac_status ) 23377gl_cv_func_wcrtomb_retval=no 23378fi 23379rm -rf conftest.dSYM 23380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23381fi 23382 23383 23384 fi 23385 23386fi 23387{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5 23388$as_echo "$gl_cv_func_wcrtomb_retval" >&6; } 23389 case "$gl_cv_func_wcrtomb_retval" in 23390 *yes) ;; 23391 *) REPLACE_WCRTOMB=1 ;; 23392 esac 23393 fi 23394 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 23395 23396 23397 WCHAR_H=wchar.h 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext" 23408 23409 23410 : 23411 23412 fi 23413 23414 23415 23416 GNULIB_WCRTOMB=1 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 if test $ac_cv_func_wctob = no; then 23428 HAVE_DECL_WCTOB=0 23429 23430 23431 WCHAR_H=wchar.h 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 gl_LIBOBJS="$gl_LIBOBJS wctob.$ac_objext" 23442 23443 23444 : 23445 23446 else 23447 23448 23449 23450 { $as_echo "$as_me:$LINENO: checking whether wctob works" >&5 23451$as_echo_n "checking whether wctob works... " >&6; } 23452if test "${gl_cv_func_wctob_works+set}" = set; then 23453 $as_echo_n "(cached) " >&6 23454else 23455 23456 case "$host_os" in 23457 # Guess no on Solaris <= 9. 23458 solaris2.[1-9] | solaris2.[1-9].*) 23459 gl_cv_func_wctob_works="guessing no" ;; 23460 # Guess yes otherwise. 23461 *) gl_cv_func_wctob_works="guessing yes" ;; 23462 esac 23463 if test $LOCALE_FR != none; then 23464 if test "$cross_compiling" = yes; then 23465 : 23466else 23467 cat >conftest.$ac_ext <<_ACEOF 23468/* confdefs.h. */ 23469_ACEOF 23470cat confdefs.h >>conftest.$ac_ext 23471cat >>conftest.$ac_ext <<_ACEOF 23472/* end confdefs.h. */ 23473 23474#include <locale.h> 23475#include <string.h> 23476#include <wchar.h> 23477int main () 23478{ 23479 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 23480 { 23481 wchar_t wc; 23482 23483 if (mbtowc (&wc, "\374", 1) == 1) 23484 if (wctob (wc) != (unsigned char) '\374') 23485 return 1; 23486 } 23487 return 0; 23488} 23489_ACEOF 23490rm -f conftest$ac_exeext 23491if { (ac_try="$ac_link" 23492case "(($ac_try" in 23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23494 *) ac_try_echo=$ac_try;; 23495esac 23496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23497$as_echo "$ac_try_echo") >&5 23498 (eval "$ac_link") 2>&5 23499 ac_status=$? 23500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23502 { (case "(($ac_try" in 23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23504 *) ac_try_echo=$ac_try;; 23505esac 23506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23507$as_echo "$ac_try_echo") >&5 23508 (eval "$ac_try") 2>&5 23509 ac_status=$? 23510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23511 (exit $ac_status); }; }; then 23512 gl_cv_func_wctob_works=yes 23513else 23514 $as_echo "$as_me: program exited with status $ac_status" >&5 23515$as_echo "$as_me: failed program was:" >&5 23516sed 's/^/| /' conftest.$ac_ext >&5 23517 23518( exit $ac_status ) 23519gl_cv_func_wctob_works=no 23520fi 23521rm -rf conftest.dSYM 23522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23523fi 23524 23525 23526 fi 23527 23528fi 23529{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wctob_works" >&5 23530$as_echo "$gl_cv_func_wctob_works" >&6; } 23531 case "$gl_cv_func_wctob_works" in 23532 *yes) ;; 23533 *) REPLACE_WCTOB=1 ;; 23534 esac 23535 if test $REPLACE_WCTOB = 1; then 23536 23537 23538 WCHAR_H=wchar.h 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 gl_LIBOBJS="$gl_LIBOBJS wctob.$ac_objext" 23549 23550 23551 : 23552 23553 else 23554 23555 { $as_echo "$as_me:$LINENO: checking whether wctob is declared" >&5 23556$as_echo_n "checking whether wctob is declared... " >&6; } 23557if test "${ac_cv_have_decl_wctob+set}" = set; then 23558 $as_echo_n "(cached) " >&6 23559else 23560 cat >conftest.$ac_ext <<_ACEOF 23561/* confdefs.h. */ 23562_ACEOF 23563cat confdefs.h >>conftest.$ac_ext 23564cat >>conftest.$ac_ext <<_ACEOF 23565/* end confdefs.h. */ 23566 23567/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 23568 <wchar.h>. 23569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 23570 before <wchar.h>. */ 23571#include <stddef.h> 23572#include <stdio.h> 23573#include <time.h> 23574#include <wchar.h> 23575 23576 23577int 23578main () 23579{ 23580#ifndef wctob 23581 (void) wctob; 23582#endif 23583 23584 ; 23585 return 0; 23586} 23587_ACEOF 23588rm -f conftest.$ac_objext 23589if { (ac_try="$ac_compile" 23590case "(($ac_try" in 23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23592 *) ac_try_echo=$ac_try;; 23593esac 23594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23595$as_echo "$ac_try_echo") >&5 23596 (eval "$ac_compile") 2>conftest.er1 23597 ac_status=$? 23598 grep -v '^ *+' conftest.er1 >conftest.err 23599 rm -f conftest.er1 23600 cat conftest.err >&5 23601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23602 (exit $ac_status); } && { 23603 test -z "$ac_c_werror_flag" || 23604 test ! -s conftest.err 23605 } && test -s conftest.$ac_objext; then 23606 ac_cv_have_decl_wctob=yes 23607else 23608 $as_echo "$as_me: failed program was:" >&5 23609sed 's/^/| /' conftest.$ac_ext >&5 23610 23611 ac_cv_have_decl_wctob=no 23612fi 23613 23614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23615fi 23616{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wctob" >&5 23617$as_echo "$ac_cv_have_decl_wctob" >&6; } 23618if test "x$ac_cv_have_decl_wctob" = x""yes; then 23619 23620cat >>confdefs.h <<_ACEOF 23621#define HAVE_DECL_WCTOB 1 23622_ACEOF 23623 23624 23625else 23626 cat >>confdefs.h <<_ACEOF 23627#define HAVE_DECL_WCTOB 0 23628_ACEOF 23629 23630 23631fi 23632 23633 23634 if test $ac_cv_have_decl_wctob != yes; then 23635 HAVE_DECL_WCTOB=0 23636 23637 23638 WCHAR_H=wchar.h 23639 23640 fi 23641 fi 23642 fi 23643 23644 23645 23646 GNULIB_WCTOB=1 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 if test $ac_cv_func_iswcntrl = yes; then 23657 HAVE_ISWCNTRL=1 23658 else 23659 HAVE_ISWCNTRL=0 23660 fi 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 if test $gt_cv_c_wint_t = yes; then 23672 HAVE_WINT_T=1 23673 else 23674 HAVE_WINT_T=0 23675 fi 23676 23677 23678 WCTYPE_H=wctype.h 23679 if test $ac_cv_header_wctype_h = yes; then 23680 if test $ac_cv_func_iswcntrl = yes; then 23681 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5 23682$as_echo_n "checking whether iswcntrl works... " >&6; } 23683if test "${gl_cv_func_iswcntrl_works+set}" = set; then 23684 $as_echo_n "(cached) " >&6 23685else 23686 23687 if test "$cross_compiling" = yes; then 23688 cat >conftest.$ac_ext <<_ACEOF 23689/* confdefs.h. */ 23690_ACEOF 23691cat confdefs.h >>conftest.$ac_ext 23692cat >>conftest.$ac_ext <<_ACEOF 23693/* end confdefs.h. */ 23694#include <stdlib.h> 23695 #if __GNU_LIBRARY__ == 1 23696 Linux libc5 i18n is broken. 23697 #endif 23698int 23699main () 23700{ 23701 23702 ; 23703 return 0; 23704} 23705_ACEOF 23706rm -f conftest.$ac_objext 23707if { (ac_try="$ac_compile" 23708case "(($ac_try" in 23709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23710 *) ac_try_echo=$ac_try;; 23711esac 23712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23713$as_echo "$ac_try_echo") >&5 23714 (eval "$ac_compile") 2>conftest.er1 23715 ac_status=$? 23716 grep -v '^ *+' conftest.er1 >conftest.err 23717 rm -f conftest.er1 23718 cat conftest.err >&5 23719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23720 (exit $ac_status); } && { 23721 test -z "$ac_c_werror_flag" || 23722 test ! -s conftest.err 23723 } && test -s conftest.$ac_objext; then 23724 gl_cv_func_iswcntrl_works=yes 23725else 23726 $as_echo "$as_me: failed program was:" >&5 23727sed 's/^/| /' conftest.$ac_ext >&5 23728 23729 gl_cv_func_iswcntrl_works=no 23730fi 23731 23732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23733 23734else 23735 cat >conftest.$ac_ext <<_ACEOF 23736/* confdefs.h. */ 23737_ACEOF 23738cat confdefs.h >>conftest.$ac_ext 23739cat >>conftest.$ac_ext <<_ACEOF 23740/* end confdefs.h. */ 23741#include <stddef.h> 23742 #include <stdio.h> 23743 #include <time.h> 23744 #include <wchar.h> 23745 #include <wctype.h> 23746 int main () { return iswprint ('x') == 0; } 23747_ACEOF 23748rm -f conftest$ac_exeext 23749if { (ac_try="$ac_link" 23750case "(($ac_try" in 23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23752 *) ac_try_echo=$ac_try;; 23753esac 23754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23755$as_echo "$ac_try_echo") >&5 23756 (eval "$ac_link") 2>&5 23757 ac_status=$? 23758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23760 { (case "(($ac_try" in 23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23762 *) ac_try_echo=$ac_try;; 23763esac 23764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23765$as_echo "$ac_try_echo") >&5 23766 (eval "$ac_try") 2>&5 23767 ac_status=$? 23768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23769 (exit $ac_status); }; }; then 23770 gl_cv_func_iswcntrl_works=yes 23771else 23772 $as_echo "$as_me: program exited with status $ac_status" >&5 23773$as_echo "$as_me: failed program was:" >&5 23774sed 's/^/| /' conftest.$ac_ext >&5 23775 23776( exit $ac_status ) 23777gl_cv_func_iswcntrl_works=no 23778fi 23779rm -rf conftest.dSYM 23780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23781fi 23782 23783 23784 23785fi 23786{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5 23787$as_echo "$gl_cv_func_iswcntrl_works" >&6; } 23788 if test $gl_cv_func_iswcntrl_works = yes; then 23789 WCTYPE_H= 23790 fi 23791 fi 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 if test $gl_cv_have_include_next = yes; then 23804 gl_cv_next_wctype_h='<'wctype.h'>' 23805 else 23806 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5 23807$as_echo_n "checking absolute name of <wctype.h>... " >&6; } 23808if test "${gl_cv_next_wctype_h+set}" = set; then 23809 $as_echo_n "(cached) " >&6 23810else 23811 23812 if test $ac_cv_header_wctype_h = yes; then 23813 cat >conftest.$ac_ext <<_ACEOF 23814/* confdefs.h. */ 23815_ACEOF 23816cat confdefs.h >>conftest.$ac_ext 23817cat >>conftest.$ac_ext <<_ACEOF 23818/* end confdefs.h. */ 23819#include <wctype.h> 23820 23821_ACEOF 23822 case "$host_os" in 23823 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23824 *) gl_absname_cpp="$ac_cpp" ;; 23825 esac 23826 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23827 sed -n '\#/wctype.h#{ 23828 s#.*"\(.*/wctype.h\)".*#\1# 23829 s#^/[^/]#//&# 23830 p 23831 q 23832 }'`'"' 23833 else 23834 gl_cv_next_wctype_h='<'wctype.h'>' 23835 fi 23836 23837fi 23838{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5 23839$as_echo "$gl_cv_next_wctype_h" >&6; } 23840 fi 23841 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 23842 23843 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23845 gl_next_as_first_directive='<'wctype.h'>' 23846 else 23847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23848 gl_next_as_first_directive=$gl_cv_next_wctype_h 23849 fi 23850 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 23851 23852 23853 23854 HAVE_WCTYPE_H=1 23855 else 23856 HAVE_WCTYPE_H=0 23857 fi 23858 23859 23860 23861 if test "$gl_cv_func_iswcntrl_works" = no; then 23862 REPLACE_ISWCNTRL=1 23863 else 23864 REPLACE_ISWCNTRL=0 23865 fi 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext" 23878 23879 23880 23881 23882 : 23883 23884 23885 : 23886 23887 23888 23889 23890 : 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 gltests_libdeps= 23903 gltests_ltlibdeps= 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 gl_source_base='tests' 23914 23915 23916 23917 23918 23919 23920 23921 LIBSED_LIBDEPS="$gl_libdeps" 23922 23923 LIBSED_LTLIBDEPS="$gl_ltlibdeps" 23924 23925 23926 23927 23928 23929{ $as_echo "$as_me:$LINENO: checking for long file names" >&5 23930$as_echo_n "checking for long file names... " >&6; } 23931if test "${ac_cv_sys_long_file_names+set}" = set; then 23932 $as_echo_n "(cached) " >&6 23933else 23934 ac_cv_sys_long_file_names=yes 23935# Test for long file names in all the places we know might matter: 23936# . the current directory, where building will happen 23937# $prefix/lib where we will be installing things 23938# $exec_prefix/lib likewise 23939# $TMPDIR if set, where it might want to write temporary files 23940# /tmp where it might want to write temporary files 23941# /var/tmp likewise 23942# /usr/tmp likewise 23943for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do 23944 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib 23945 # in the usual case where exec_prefix is '${prefix}'. 23946 case $ac_dir in #( 23947 . | /* | ?:[\\/]*) ;; #( 23948 *) continue;; 23949 esac 23950 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. 23951 ac_xdir=$ac_dir/cf$$ 23952 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 23953 ac_tf1=$ac_xdir/conftest9012345 23954 ac_tf2=$ac_xdir/conftest9012346 23955 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || 23956 ac_cv_sys_long_file_names=no 23957 rm -f -r "$ac_xdir" 2>/dev/null 23958 test $ac_cv_sys_long_file_names = no && break 23959done 23960fi 23961{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 23962$as_echo "$ac_cv_sys_long_file_names" >&6; } 23963if test $ac_cv_sys_long_file_names = yes; then 23964 23965cat >>confdefs.h <<\_ACEOF 23966#define HAVE_LONG_FILE_NAMES 1 23967_ACEOF 23968 23969fi 23970 23971{ $as_echo "$as_me:$LINENO: checking whether -lcP is needed" >&5 23972$as_echo_n "checking whether -lcP is needed... " >&6; } 23973if test "${sed_cv_libcp_needed+set}" = set; then 23974 $as_echo_n "(cached) " >&6 23975else 23976 23977if test "$cross_compiling" = yes; then 23978 sed_cv_libcp_needed="assuming no" 23979else 23980 cat >conftest.$ac_ext <<_ACEOF 23981/* confdefs.h. */ 23982_ACEOF 23983cat confdefs.h >>conftest.$ac_ext 23984cat >>conftest.$ac_ext <<_ACEOF 23985/* end confdefs.h. */ 23986 23987#include <stdio.h> 23988#include <errno.h> 23989 23990int main() 23991{ 23992 FILE *fp; 23993 int result; 23994 errno = 0; 23995 fp = fopen ("conftest.c", "r"); 23996 if (!fp) return 0; /* error, assume not needed */ 23997 result = fflush (fp) == EOF && errno == 0; 23998 fclose (fp); 23999 return result; 24000} 24001_ACEOF 24002rm -f conftest$ac_exeext 24003if { (ac_try="$ac_link" 24004case "(($ac_try" in 24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24006 *) ac_try_echo=$ac_try;; 24007esac 24008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24009$as_echo "$ac_try_echo") >&5 24010 (eval "$ac_link") 2>&5 24011 ac_status=$? 24012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24014 { (case "(($ac_try" in 24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24016 *) ac_try_echo=$ac_try;; 24017esac 24018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24019$as_echo "$ac_try_echo") >&5 24020 (eval "$ac_try") 2>&5 24021 ac_status=$? 24022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24023 (exit $ac_status); }; }; then 24024 sed_cv_libcp_needed=no 24025else 24026 $as_echo "$as_me: program exited with status $ac_status" >&5 24027$as_echo "$as_me: failed program was:" >&5 24028sed 's/^/| /' conftest.$ac_ext >&5 24029 24030( exit $ac_status ) 24031sed_cv_libcp_needed=yes 24032fi 24033rm -rf conftest.dSYM 24034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24035fi 24036 24037 24038 24039fi 24040{ $as_echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5 24041$as_echo "$sed_cv_libcp_needed" >&6; } 24042if test "$sed_cv_libcp_needed" = yes; then 24043 LIBS="-lcP $LIBS" 24044fi 24045 24046 24047 24048 24049 24050 24051ac_header_dirent=no 24052for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 24053 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 24054{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 24055$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 24056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24057 $as_echo_n "(cached) " >&6 24058else 24059 cat >conftest.$ac_ext <<_ACEOF 24060/* confdefs.h. */ 24061_ACEOF 24062cat confdefs.h >>conftest.$ac_ext 24063cat >>conftest.$ac_ext <<_ACEOF 24064/* end confdefs.h. */ 24065#include <sys/types.h> 24066#include <$ac_hdr> 24067 24068int 24069main () 24070{ 24071if ((DIR *) 0) 24072return 0; 24073 ; 24074 return 0; 24075} 24076_ACEOF 24077rm -f conftest.$ac_objext 24078if { (ac_try="$ac_compile" 24079case "(($ac_try" in 24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24081 *) ac_try_echo=$ac_try;; 24082esac 24083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24084$as_echo "$ac_try_echo") >&5 24085 (eval "$ac_compile") 2>conftest.er1 24086 ac_status=$? 24087 grep -v '^ *+' conftest.er1 >conftest.err 24088 rm -f conftest.er1 24089 cat conftest.err >&5 24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24091 (exit $ac_status); } && { 24092 test -z "$ac_c_werror_flag" || 24093 test ! -s conftest.err 24094 } && test -s conftest.$ac_objext; then 24095 eval "$as_ac_Header=yes" 24096else 24097 $as_echo "$as_me: failed program was:" >&5 24098sed 's/^/| /' conftest.$ac_ext >&5 24099 24100 eval "$as_ac_Header=no" 24101fi 24102 24103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24104fi 24105ac_res=`eval 'as_val=${'$as_ac_Header'} 24106 $as_echo "$as_val"'` 24107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24108$as_echo "$ac_res" >&6; } 24109as_val=`eval 'as_val=${'$as_ac_Header'} 24110 $as_echo "$as_val"'` 24111 if test "x$as_val" = x""yes; then 24112 cat >>confdefs.h <<_ACEOF 24113#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 24114_ACEOF 24115 24116ac_header_dirent=$ac_hdr; break 24117fi 24118 24119done 24120# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 24121if test $ac_header_dirent = dirent.h; then 24122 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 24123$as_echo_n "checking for library containing opendir... " >&6; } 24124if test "${ac_cv_search_opendir+set}" = set; then 24125 $as_echo_n "(cached) " >&6 24126else 24127 ac_func_search_save_LIBS=$LIBS 24128cat >conftest.$ac_ext <<_ACEOF 24129/* confdefs.h. */ 24130_ACEOF 24131cat confdefs.h >>conftest.$ac_ext 24132cat >>conftest.$ac_ext <<_ACEOF 24133/* end confdefs.h. */ 24134 24135/* Override any GCC internal prototype to avoid an error. 24136 Use char because int might match the return type of a GCC 24137 builtin and then its argument prototype would still apply. */ 24138#ifdef __cplusplus 24139extern "C" 24140#endif 24141char opendir (); 24142int 24143main () 24144{ 24145return opendir (); 24146 ; 24147 return 0; 24148} 24149_ACEOF 24150for ac_lib in '' dir; do 24151 if test -z "$ac_lib"; then 24152 ac_res="none required" 24153 else 24154 ac_res=-l$ac_lib 24155 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24156 fi 24157 rm -f conftest.$ac_objext conftest$ac_exeext 24158if { (ac_try="$ac_link" 24159case "(($ac_try" in 24160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24161 *) ac_try_echo=$ac_try;; 24162esac 24163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24164$as_echo "$ac_try_echo") >&5 24165 (eval "$ac_link") 2>conftest.er1 24166 ac_status=$? 24167 grep -v '^ *+' conftest.er1 >conftest.err 24168 rm -f conftest.er1 24169 cat conftest.err >&5 24170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24171 (exit $ac_status); } && { 24172 test -z "$ac_c_werror_flag" || 24173 test ! -s conftest.err 24174 } && test -s conftest$ac_exeext && { 24175 test "$cross_compiling" = yes || 24176 $as_test_x conftest$ac_exeext 24177 }; then 24178 ac_cv_search_opendir=$ac_res 24179else 24180 $as_echo "$as_me: failed program was:" >&5 24181sed 's/^/| /' conftest.$ac_ext >&5 24182 24183 24184fi 24185 24186rm -rf conftest.dSYM 24187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24188 conftest$ac_exeext 24189 if test "${ac_cv_search_opendir+set}" = set; then 24190 break 24191fi 24192done 24193if test "${ac_cv_search_opendir+set}" = set; then 24194 : 24195else 24196 ac_cv_search_opendir=no 24197fi 24198rm conftest.$ac_ext 24199LIBS=$ac_func_search_save_LIBS 24200fi 24201{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 24202$as_echo "$ac_cv_search_opendir" >&6; } 24203ac_res=$ac_cv_search_opendir 24204if test "$ac_res" != no; then 24205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24206 24207fi 24208 24209else 24210 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 24211$as_echo_n "checking for library containing opendir... " >&6; } 24212if test "${ac_cv_search_opendir+set}" = set; then 24213 $as_echo_n "(cached) " >&6 24214else 24215 ac_func_search_save_LIBS=$LIBS 24216cat >conftest.$ac_ext <<_ACEOF 24217/* confdefs.h. */ 24218_ACEOF 24219cat confdefs.h >>conftest.$ac_ext 24220cat >>conftest.$ac_ext <<_ACEOF 24221/* end confdefs.h. */ 24222 24223/* Override any GCC internal prototype to avoid an error. 24224 Use char because int might match the return type of a GCC 24225 builtin and then its argument prototype would still apply. */ 24226#ifdef __cplusplus 24227extern "C" 24228#endif 24229char opendir (); 24230int 24231main () 24232{ 24233return opendir (); 24234 ; 24235 return 0; 24236} 24237_ACEOF 24238for ac_lib in '' x; do 24239 if test -z "$ac_lib"; then 24240 ac_res="none required" 24241 else 24242 ac_res=-l$ac_lib 24243 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24244 fi 24245 rm -f conftest.$ac_objext conftest$ac_exeext 24246if { (ac_try="$ac_link" 24247case "(($ac_try" in 24248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24249 *) ac_try_echo=$ac_try;; 24250esac 24251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24252$as_echo "$ac_try_echo") >&5 24253 (eval "$ac_link") 2>conftest.er1 24254 ac_status=$? 24255 grep -v '^ *+' conftest.er1 >conftest.err 24256 rm -f conftest.er1 24257 cat conftest.err >&5 24258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24259 (exit $ac_status); } && { 24260 test -z "$ac_c_werror_flag" || 24261 test ! -s conftest.err 24262 } && test -s conftest$ac_exeext && { 24263 test "$cross_compiling" = yes || 24264 $as_test_x conftest$ac_exeext 24265 }; then 24266 ac_cv_search_opendir=$ac_res 24267else 24268 $as_echo "$as_me: failed program was:" >&5 24269sed 's/^/| /' conftest.$ac_ext >&5 24270 24271 24272fi 24273 24274rm -rf conftest.dSYM 24275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24276 conftest$ac_exeext 24277 if test "${ac_cv_search_opendir+set}" = set; then 24278 break 24279fi 24280done 24281if test "${ac_cv_search_opendir+set}" = set; then 24282 : 24283else 24284 ac_cv_search_opendir=no 24285fi 24286rm conftest.$ac_ext 24287LIBS=$ac_func_search_save_LIBS 24288fi 24289{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 24290$as_echo "$ac_cv_search_opendir" >&6; } 24291ac_res=$ac_cv_search_opendir 24292if test "$ac_res" != no; then 24293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24294 24295fi 24296 24297fi 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 24340$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 24341if test "${ac_cv_c_const+set}" = set; then 24342 $as_echo_n "(cached) " >&6 24343else 24344 cat >conftest.$ac_ext <<_ACEOF 24345/* confdefs.h. */ 24346_ACEOF 24347cat confdefs.h >>conftest.$ac_ext 24348cat >>conftest.$ac_ext <<_ACEOF 24349/* end confdefs.h. */ 24350 24351int 24352main () 24353{ 24354/* FIXME: Include the comments suggested by Paul. */ 24355#ifndef __cplusplus 24356 /* Ultrix mips cc rejects this. */ 24357 typedef int charset[2]; 24358 const charset cs; 24359 /* SunOS 4.1.1 cc rejects this. */ 24360 char const *const *pcpcc; 24361 char **ppc; 24362 /* NEC SVR4.0.2 mips cc rejects this. */ 24363 struct point {int x, y;}; 24364 static struct point const zero = {0,0}; 24365 /* AIX XL C 1.02.0.0 rejects this. 24366 It does not let you subtract one const X* pointer from another in 24367 an arm of an if-expression whose if-part is not a constant 24368 expression */ 24369 const char *g = "string"; 24370 pcpcc = &g + (g ? g-g : 0); 24371 /* HPUX 7.0 cc rejects these. */ 24372 ++pcpcc; 24373 ppc = (char**) pcpcc; 24374 pcpcc = (char const *const *) ppc; 24375 { /* SCO 3.2v4 cc rejects this. */ 24376 char *t; 24377 char const *s = 0 ? (char *) 0 : (char const *) 0; 24378 24379 *t++ = 0; 24380 if (s) return 0; 24381 } 24382 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24383 int x[] = {25, 17}; 24384 const int *foo = &x[0]; 24385 ++foo; 24386 } 24387 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24388 typedef const int *iptr; 24389 iptr p = 0; 24390 ++p; 24391 } 24392 { /* AIX XL C 1.02.0.0 rejects this saying 24393 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24394 struct s { int j; const int *ap[3]; }; 24395 struct s *b; b->j = 5; 24396 } 24397 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 24398 const int foo = 10; 24399 if (!foo) return 0; 24400 } 24401 return !cs[0] && !zero.x; 24402#endif 24403 24404 ; 24405 return 0; 24406} 24407_ACEOF 24408rm -f conftest.$ac_objext 24409if { (ac_try="$ac_compile" 24410case "(($ac_try" in 24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24412 *) ac_try_echo=$ac_try;; 24413esac 24414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24415$as_echo "$ac_try_echo") >&5 24416 (eval "$ac_compile") 2>conftest.er1 24417 ac_status=$? 24418 grep -v '^ *+' conftest.er1 >conftest.err 24419 rm -f conftest.er1 24420 cat conftest.err >&5 24421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24422 (exit $ac_status); } && { 24423 test -z "$ac_c_werror_flag" || 24424 test ! -s conftest.err 24425 } && test -s conftest.$ac_objext; then 24426 ac_cv_c_const=yes 24427else 24428 $as_echo "$as_me: failed program was:" >&5 24429sed 's/^/| /' conftest.$ac_ext >&5 24430 24431 ac_cv_c_const=no 24432fi 24433 24434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24435fi 24436{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 24437$as_echo "$ac_cv_c_const" >&6; } 24438if test $ac_cv_c_const = no; then 24439 24440cat >>confdefs.h <<\_ACEOF 24441#define const /**/ 24442_ACEOF 24443 24444fi 24445 24446{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 24447$as_echo_n "checking for size_t... " >&6; } 24448if test "${ac_cv_type_size_t+set}" = set; then 24449 $as_echo_n "(cached) " >&6 24450else 24451 ac_cv_type_size_t=no 24452cat >conftest.$ac_ext <<_ACEOF 24453/* confdefs.h. */ 24454_ACEOF 24455cat confdefs.h >>conftest.$ac_ext 24456cat >>conftest.$ac_ext <<_ACEOF 24457/* end confdefs.h. */ 24458$ac_includes_default 24459int 24460main () 24461{ 24462if (sizeof (size_t)) 24463 return 0; 24464 ; 24465 return 0; 24466} 24467_ACEOF 24468rm -f conftest.$ac_objext 24469if { (ac_try="$ac_compile" 24470case "(($ac_try" in 24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24472 *) ac_try_echo=$ac_try;; 24473esac 24474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24475$as_echo "$ac_try_echo") >&5 24476 (eval "$ac_compile") 2>conftest.er1 24477 ac_status=$? 24478 grep -v '^ *+' conftest.er1 >conftest.err 24479 rm -f conftest.er1 24480 cat conftest.err >&5 24481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24482 (exit $ac_status); } && { 24483 test -z "$ac_c_werror_flag" || 24484 test ! -s conftest.err 24485 } && test -s conftest.$ac_objext; then 24486 cat >conftest.$ac_ext <<_ACEOF 24487/* confdefs.h. */ 24488_ACEOF 24489cat confdefs.h >>conftest.$ac_ext 24490cat >>conftest.$ac_ext <<_ACEOF 24491/* end confdefs.h. */ 24492$ac_includes_default 24493int 24494main () 24495{ 24496if (sizeof ((size_t))) 24497 return 0; 24498 ; 24499 return 0; 24500} 24501_ACEOF 24502rm -f conftest.$ac_objext 24503if { (ac_try="$ac_compile" 24504case "(($ac_try" in 24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24506 *) ac_try_echo=$ac_try;; 24507esac 24508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24509$as_echo "$ac_try_echo") >&5 24510 (eval "$ac_compile") 2>conftest.er1 24511 ac_status=$? 24512 grep -v '^ *+' conftest.er1 >conftest.err 24513 rm -f conftest.er1 24514 cat conftest.err >&5 24515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24516 (exit $ac_status); } && { 24517 test -z "$ac_c_werror_flag" || 24518 test ! -s conftest.err 24519 } && test -s conftest.$ac_objext; then 24520 : 24521else 24522 $as_echo "$as_me: failed program was:" >&5 24523sed 's/^/| /' conftest.$ac_ext >&5 24524 24525 ac_cv_type_size_t=yes 24526fi 24527 24528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24529else 24530 $as_echo "$as_me: failed program was:" >&5 24531sed 's/^/| /' conftest.$ac_ext >&5 24532 24533 24534fi 24535 24536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24537fi 24538{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 24539$as_echo "$ac_cv_type_size_t" >&6; } 24540if test "x$ac_cv_type_size_t" = x""yes; then 24541 : 24542else 24543 24544cat >>confdefs.h <<_ACEOF 24545#define size_t unsigned int 24546_ACEOF 24547 24548fi 24549 24550{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 24551$as_echo_n "checking for ssize_t... " >&6; } 24552if test "${ac_cv_type_ssize_t+set}" = set; then 24553 $as_echo_n "(cached) " >&6 24554else 24555 ac_cv_type_ssize_t=no 24556cat >conftest.$ac_ext <<_ACEOF 24557/* confdefs.h. */ 24558_ACEOF 24559cat confdefs.h >>conftest.$ac_ext 24560cat >>conftest.$ac_ext <<_ACEOF 24561/* end confdefs.h. */ 24562$ac_includes_default 24563int 24564main () 24565{ 24566if (sizeof (ssize_t)) 24567 return 0; 24568 ; 24569 return 0; 24570} 24571_ACEOF 24572rm -f conftest.$ac_objext 24573if { (ac_try="$ac_compile" 24574case "(($ac_try" in 24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24576 *) ac_try_echo=$ac_try;; 24577esac 24578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24579$as_echo "$ac_try_echo") >&5 24580 (eval "$ac_compile") 2>conftest.er1 24581 ac_status=$? 24582 grep -v '^ *+' conftest.er1 >conftest.err 24583 rm -f conftest.er1 24584 cat conftest.err >&5 24585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24586 (exit $ac_status); } && { 24587 test -z "$ac_c_werror_flag" || 24588 test ! -s conftest.err 24589 } && test -s conftest.$ac_objext; then 24590 cat >conftest.$ac_ext <<_ACEOF 24591/* confdefs.h. */ 24592_ACEOF 24593cat confdefs.h >>conftest.$ac_ext 24594cat >>conftest.$ac_ext <<_ACEOF 24595/* end confdefs.h. */ 24596$ac_includes_default 24597int 24598main () 24599{ 24600if (sizeof ((ssize_t))) 24601 return 0; 24602 ; 24603 return 0; 24604} 24605_ACEOF 24606rm -f conftest.$ac_objext 24607if { (ac_try="$ac_compile" 24608case "(($ac_try" in 24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24610 *) ac_try_echo=$ac_try;; 24611esac 24612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24613$as_echo "$ac_try_echo") >&5 24614 (eval "$ac_compile") 2>conftest.er1 24615 ac_status=$? 24616 grep -v '^ *+' conftest.er1 >conftest.err 24617 rm -f conftest.er1 24618 cat conftest.err >&5 24619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24620 (exit $ac_status); } && { 24621 test -z "$ac_c_werror_flag" || 24622 test ! -s conftest.err 24623 } && test -s conftest.$ac_objext; then 24624 : 24625else 24626 $as_echo "$as_me: failed program was:" >&5 24627sed 's/^/| /' conftest.$ac_ext >&5 24628 24629 ac_cv_type_ssize_t=yes 24630fi 24631 24632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24633else 24634 $as_echo "$as_me: failed program was:" >&5 24635sed 's/^/| /' conftest.$ac_ext >&5 24636 24637 24638fi 24639 24640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24641fi 24642{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 24643$as_echo "$ac_cv_type_ssize_t" >&6; } 24644if test "x$ac_cv_type_ssize_t" = x""yes; then 24645 : 24646else 24647 24648cat >>confdefs.h <<_ACEOF 24649#define ssize_t int 24650_ACEOF 24651 24652fi 24653 24654 24655 24656for ac_func in vprintf 24657do 24658as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24659{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 24660$as_echo_n "checking for $ac_func... " >&6; } 24661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24662 $as_echo_n "(cached) " >&6 24663else 24664 cat >conftest.$ac_ext <<_ACEOF 24665/* confdefs.h. */ 24666_ACEOF 24667cat confdefs.h >>conftest.$ac_ext 24668cat >>conftest.$ac_ext <<_ACEOF 24669/* end confdefs.h. */ 24670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24671 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24672#define $ac_func innocuous_$ac_func 24673 24674/* System header to define __stub macros and hopefully few prototypes, 24675 which can conflict with char $ac_func (); below. 24676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24677 <limits.h> exists even on freestanding compilers. */ 24678 24679#ifdef __STDC__ 24680# include <limits.h> 24681#else 24682# include <assert.h> 24683#endif 24684 24685#undef $ac_func 24686 24687/* Override any GCC internal prototype to avoid an error. 24688 Use char because int might match the return type of a GCC 24689 builtin and then its argument prototype would still apply. */ 24690#ifdef __cplusplus 24691extern "C" 24692#endif 24693char $ac_func (); 24694/* The GNU C library defines this for functions which it implements 24695 to always fail with ENOSYS. Some functions are actually named 24696 something starting with __ and the normal name is an alias. */ 24697#if defined __stub_$ac_func || defined __stub___$ac_func 24698choke me 24699#endif 24700 24701int 24702main () 24703{ 24704return $ac_func (); 24705 ; 24706 return 0; 24707} 24708_ACEOF 24709rm -f conftest.$ac_objext conftest$ac_exeext 24710if { (ac_try="$ac_link" 24711case "(($ac_try" in 24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24713 *) ac_try_echo=$ac_try;; 24714esac 24715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24716$as_echo "$ac_try_echo") >&5 24717 (eval "$ac_link") 2>conftest.er1 24718 ac_status=$? 24719 grep -v '^ *+' conftest.er1 >conftest.err 24720 rm -f conftest.er1 24721 cat conftest.err >&5 24722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24723 (exit $ac_status); } && { 24724 test -z "$ac_c_werror_flag" || 24725 test ! -s conftest.err 24726 } && test -s conftest$ac_exeext && { 24727 test "$cross_compiling" = yes || 24728 $as_test_x conftest$ac_exeext 24729 }; then 24730 eval "$as_ac_var=yes" 24731else 24732 $as_echo "$as_me: failed program was:" >&5 24733sed 's/^/| /' conftest.$ac_ext >&5 24734 24735 eval "$as_ac_var=no" 24736fi 24737 24738rm -rf conftest.dSYM 24739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24740 conftest$ac_exeext conftest.$ac_ext 24741fi 24742ac_res=`eval 'as_val=${'$as_ac_var'} 24743 $as_echo "$as_val"'` 24744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 24745$as_echo "$ac_res" >&6; } 24746as_val=`eval 'as_val=${'$as_ac_var'} 24747 $as_echo "$as_val"'` 24748 if test "x$as_val" = x""yes; then 24749 cat >>confdefs.h <<_ACEOF 24750#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24751_ACEOF 24752 24753{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 24754$as_echo_n "checking for _doprnt... " >&6; } 24755if test "${ac_cv_func__doprnt+set}" = set; then 24756 $as_echo_n "(cached) " >&6 24757else 24758 cat >conftest.$ac_ext <<_ACEOF 24759/* confdefs.h. */ 24760_ACEOF 24761cat confdefs.h >>conftest.$ac_ext 24762cat >>conftest.$ac_ext <<_ACEOF 24763/* end confdefs.h. */ 24764/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 24765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24766#define _doprnt innocuous__doprnt 24767 24768/* System header to define __stub macros and hopefully few prototypes, 24769 which can conflict with char _doprnt (); below. 24770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24771 <limits.h> exists even on freestanding compilers. */ 24772 24773#ifdef __STDC__ 24774# include <limits.h> 24775#else 24776# include <assert.h> 24777#endif 24778 24779#undef _doprnt 24780 24781/* Override any GCC internal prototype to avoid an error. 24782 Use char because int might match the return type of a GCC 24783 builtin and then its argument prototype would still apply. */ 24784#ifdef __cplusplus 24785extern "C" 24786#endif 24787char _doprnt (); 24788/* The GNU C library defines this for functions which it implements 24789 to always fail with ENOSYS. Some functions are actually named 24790 something starting with __ and the normal name is an alias. */ 24791#if defined __stub__doprnt || defined __stub____doprnt 24792choke me 24793#endif 24794 24795int 24796main () 24797{ 24798return _doprnt (); 24799 ; 24800 return 0; 24801} 24802_ACEOF 24803rm -f conftest.$ac_objext conftest$ac_exeext 24804if { (ac_try="$ac_link" 24805case "(($ac_try" in 24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24807 *) ac_try_echo=$ac_try;; 24808esac 24809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24810$as_echo "$ac_try_echo") >&5 24811 (eval "$ac_link") 2>conftest.er1 24812 ac_status=$? 24813 grep -v '^ *+' conftest.er1 >conftest.err 24814 rm -f conftest.er1 24815 cat conftest.err >&5 24816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24817 (exit $ac_status); } && { 24818 test -z "$ac_c_werror_flag" || 24819 test ! -s conftest.err 24820 } && test -s conftest$ac_exeext && { 24821 test "$cross_compiling" = yes || 24822 $as_test_x conftest$ac_exeext 24823 }; then 24824 ac_cv_func__doprnt=yes 24825else 24826 $as_echo "$as_me: failed program was:" >&5 24827sed 's/^/| /' conftest.$ac_ext >&5 24828 24829 ac_cv_func__doprnt=no 24830fi 24831 24832rm -rf conftest.dSYM 24833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24834 conftest$ac_exeext conftest.$ac_ext 24835fi 24836{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 24837$as_echo "$ac_cv_func__doprnt" >&6; } 24838if test "x$ac_cv_func__doprnt" = x""yes; then 24839 24840cat >>confdefs.h <<\_ACEOF 24841#define HAVE_DOPRNT 1 24842_ACEOF 24843 24844fi 24845 24846fi 24847done 24848 24849 24850 24851 24852 24853 24854 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 24855$as_echo_n "checking whether NLS is requested... " >&6; } 24856 # Check whether --enable-nls was given. 24857if test "${enable_nls+set}" = set; then 24858 enableval=$enable_nls; USE_NLS=$enableval 24859else 24860 USE_NLS=yes 24861fi 24862 24863 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 24864$as_echo "$USE_NLS" >&6; } 24865 24866 24867 24868 24869 GETTEXT_MACRO_VERSION=0.17 24870 24871 24872 24873 24874# Prepare PATH_SEPARATOR. 24875# The user is always right. 24876if test "${PATH_SEPARATOR+set}" != set; then 24877 echo "#! /bin/sh" >conf$$.sh 24878 echo "exit 0" >>conf$$.sh 24879 chmod +x conf$$.sh 24880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24881 PATH_SEPARATOR=';' 24882 else 24883 PATH_SEPARATOR=: 24884 fi 24885 rm -f conf$$.sh 24886fi 24887 24888# Find out how to test for executable files. Don't use a zero-byte file, 24889# as systems may use methods other than mode bits to determine executability. 24890cat >conf$$.file <<_ASEOF 24891#! /bin/sh 24892exit 0 24893_ASEOF 24894chmod +x conf$$.file 24895if test -x conf$$.file >/dev/null 2>&1; then 24896 ac_executable_p="test -x" 24897else 24898 ac_executable_p="test -f" 24899fi 24900rm -f conf$$.file 24901 24902# Extract the first word of "msgfmt", so it can be a program name with args. 24903set dummy msgfmt; ac_word=$2 24904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 24905$as_echo_n "checking for $ac_word... " >&6; } 24906if test "${ac_cv_path_MSGFMT+set}" = set; then 24907 $as_echo_n "(cached) " >&6 24908else 24909 case "$MSGFMT" in 24910 [\\/]* | ?:[\\/]*) 24911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 24912 ;; 24913 *) 24914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 24915 for ac_dir in $PATH; do 24916 IFS="$ac_save_IFS" 24917 test -z "$ac_dir" && ac_dir=. 24918 for ac_exec_ext in '' $ac_executable_extensions; do 24919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 24920 echo "$as_me: trying $ac_dir/$ac_word..." >&5 24921 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 24922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 24923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 24924 break 2 24925 fi 24926 fi 24927 done 24928 done 24929 IFS="$ac_save_IFS" 24930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 24931 ;; 24932esac 24933fi 24934MSGFMT="$ac_cv_path_MSGFMT" 24935if test "$MSGFMT" != ":"; then 24936 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 24937$as_echo "$MSGFMT" >&6; } 24938else 24939 { $as_echo "$as_me:$LINENO: result: no" >&5 24940$as_echo "no" >&6; } 24941fi 24942 24943 # Extract the first word of "gmsgfmt", so it can be a program name with args. 24944set dummy gmsgfmt; ac_word=$2 24945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 24946$as_echo_n "checking for $ac_word... " >&6; } 24947if test "${ac_cv_path_GMSGFMT+set}" = set; then 24948 $as_echo_n "(cached) " >&6 24949else 24950 case $GMSGFMT in 24951 [\\/]* | ?:[\\/]*) 24952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 24953 ;; 24954 *) 24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24956for as_dir in $PATH 24957do 24958 IFS=$as_save_IFS 24959 test -z "$as_dir" && as_dir=. 24960 for ac_exec_ext in '' $ac_executable_extensions; do 24961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24962 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 24963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24964 break 2 24965 fi 24966done 24967done 24968IFS=$as_save_IFS 24969 24970 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 24971 ;; 24972esac 24973fi 24974GMSGFMT=$ac_cv_path_GMSGFMT 24975if test -n "$GMSGFMT"; then 24976 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 24977$as_echo "$GMSGFMT" >&6; } 24978else 24979 { $as_echo "$as_me:$LINENO: result: no" >&5 24980$as_echo "no" >&6; } 24981fi 24982 24983 24984 24985 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 24986 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 24987 *) MSGFMT_015=$MSGFMT ;; 24988 esac 24989 24990 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 24991 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 24992 *) GMSGFMT_015=$GMSGFMT ;; 24993 esac 24994 24995 24996 24997# Prepare PATH_SEPARATOR. 24998# The user is always right. 24999if test "${PATH_SEPARATOR+set}" != set; then 25000 echo "#! /bin/sh" >conf$$.sh 25001 echo "exit 0" >>conf$$.sh 25002 chmod +x conf$$.sh 25003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25004 PATH_SEPARATOR=';' 25005 else 25006 PATH_SEPARATOR=: 25007 fi 25008 rm -f conf$$.sh 25009fi 25010 25011# Find out how to test for executable files. Don't use a zero-byte file, 25012# as systems may use methods other than mode bits to determine executability. 25013cat >conf$$.file <<_ASEOF 25014#! /bin/sh 25015exit 0 25016_ASEOF 25017chmod +x conf$$.file 25018if test -x conf$$.file >/dev/null 2>&1; then 25019 ac_executable_p="test -x" 25020else 25021 ac_executable_p="test -f" 25022fi 25023rm -f conf$$.file 25024 25025# Extract the first word of "xgettext", so it can be a program name with args. 25026set dummy xgettext; ac_word=$2 25027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 25028$as_echo_n "checking for $ac_word... " >&6; } 25029if test "${ac_cv_path_XGETTEXT+set}" = set; then 25030 $as_echo_n "(cached) " >&6 25031else 25032 case "$XGETTEXT" in 25033 [\\/]* | ?:[\\/]*) 25034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 25035 ;; 25036 *) 25037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 25038 for ac_dir in $PATH; do 25039 IFS="$ac_save_IFS" 25040 test -z "$ac_dir" && ac_dir=. 25041 for ac_exec_ext in '' $ac_executable_extensions; do 25042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 25043 echo "$as_me: trying $ac_dir/$ac_word..." >&5 25044 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 25045 (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 25046 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 25047 break 2 25048 fi 25049 fi 25050 done 25051 done 25052 IFS="$ac_save_IFS" 25053 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 25054 ;; 25055esac 25056fi 25057XGETTEXT="$ac_cv_path_XGETTEXT" 25058if test "$XGETTEXT" != ":"; then 25059 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 25060$as_echo "$XGETTEXT" >&6; } 25061else 25062 { $as_echo "$as_me:$LINENO: result: no" >&5 25063$as_echo "no" >&6; } 25064fi 25065 25066 rm -f messages.po 25067 25068 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 25069 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 25070 *) XGETTEXT_015=$XGETTEXT ;; 25071 esac 25072 25073 25074 25075# Prepare PATH_SEPARATOR. 25076# The user is always right. 25077if test "${PATH_SEPARATOR+set}" != set; then 25078 echo "#! /bin/sh" >conf$$.sh 25079 echo "exit 0" >>conf$$.sh 25080 chmod +x conf$$.sh 25081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25082 PATH_SEPARATOR=';' 25083 else 25084 PATH_SEPARATOR=: 25085 fi 25086 rm -f conf$$.sh 25087fi 25088 25089# Find out how to test for executable files. Don't use a zero-byte file, 25090# as systems may use methods other than mode bits to determine executability. 25091cat >conf$$.file <<_ASEOF 25092#! /bin/sh 25093exit 0 25094_ASEOF 25095chmod +x conf$$.file 25096if test -x conf$$.file >/dev/null 2>&1; then 25097 ac_executable_p="test -x" 25098else 25099 ac_executable_p="test -f" 25100fi 25101rm -f conf$$.file 25102 25103# Extract the first word of "msgmerge", so it can be a program name with args. 25104set dummy msgmerge; ac_word=$2 25105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 25106$as_echo_n "checking for $ac_word... " >&6; } 25107if test "${ac_cv_path_MSGMERGE+set}" = set; then 25108 $as_echo_n "(cached) " >&6 25109else 25110 case "$MSGMERGE" in 25111 [\\/]* | ?:[\\/]*) 25112 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 25113 ;; 25114 *) 25115 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 25116 for ac_dir in $PATH; do 25117 IFS="$ac_save_IFS" 25118 test -z "$ac_dir" && ac_dir=. 25119 for ac_exec_ext in '' $ac_executable_extensions; do 25120 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 25121 echo "$as_me: trying $ac_dir/$ac_word..." >&5 25122 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 25123 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 25124 break 2 25125 fi 25126 fi 25127 done 25128 done 25129 IFS="$ac_save_IFS" 25130 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 25131 ;; 25132esac 25133fi 25134MSGMERGE="$ac_cv_path_MSGMERGE" 25135if test "$MSGMERGE" != ":"; then 25136 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 25137$as_echo "$MSGMERGE" >&6; } 25138else 25139 { $as_echo "$as_me:$LINENO: result: no" >&5 25140$as_echo "no" >&6; } 25141fi 25142 25143 25144 test -n "$localedir" || localedir='${datadir}/locale' 25145 25146 25147 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 25148 25149 25150 ac_config_commands="$ac_config_commands po-directories" 25151 25152 25153 25154 if test "X$prefix" = "XNONE"; then 25155 acl_final_prefix="$ac_default_prefix" 25156 else 25157 acl_final_prefix="$prefix" 25158 fi 25159 if test "X$exec_prefix" = "XNONE"; then 25160 acl_final_exec_prefix='${prefix}' 25161 else 25162 acl_final_exec_prefix="$exec_prefix" 25163 fi 25164 acl_save_prefix="$prefix" 25165 prefix="$acl_final_prefix" 25166 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 25167 prefix="$acl_save_prefix" 25168 25169 25170# Check whether --with-gnu-ld was given. 25171if test "${with_gnu_ld+set}" = set; then 25172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 25173else 25174 with_gnu_ld=no 25175fi 25176 25177# Prepare PATH_SEPARATOR. 25178# The user is always right. 25179if test "${PATH_SEPARATOR+set}" != set; then 25180 echo "#! /bin/sh" >conf$$.sh 25181 echo "exit 0" >>conf$$.sh 25182 chmod +x conf$$.sh 25183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25184 PATH_SEPARATOR=';' 25185 else 25186 PATH_SEPARATOR=: 25187 fi 25188 rm -f conf$$.sh 25189fi 25190ac_prog=ld 25191if test "$GCC" = yes; then 25192 # Check if gcc -print-prog-name=ld gives a path. 25193 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 25194$as_echo_n "checking for ld used by GCC... " >&6; } 25195 case $host in 25196 *-*-mingw*) 25197 # gcc leaves a trailing carriage return which upsets mingw 25198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 25199 *) 25200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 25201 esac 25202 case $ac_prog in 25203 # Accept absolute paths. 25204 [\\/]* | [A-Za-z]:[\\/]*) 25205 re_direlt='/[^/][^/]*/\.\./' 25206 # Canonicalize the path of ld 25207 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 25208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 25209 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 25210 done 25211 test -z "$LD" && LD="$ac_prog" 25212 ;; 25213 "") 25214 # If it fails, then pretend we aren't using GCC. 25215 ac_prog=ld 25216 ;; 25217 *) 25218 # If it is relative, then search for the first ld in PATH. 25219 with_gnu_ld=unknown 25220 ;; 25221 esac 25222elif test "$with_gnu_ld" = yes; then 25223 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 25224$as_echo_n "checking for GNU ld... " >&6; } 25225else 25226 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 25227$as_echo_n "checking for non-GNU ld... " >&6; } 25228fi 25229if test "${acl_cv_path_LD+set}" = set; then 25230 $as_echo_n "(cached) " >&6 25231else 25232 if test -z "$LD"; then 25233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 25234 for ac_dir in $PATH; do 25235 test -z "$ac_dir" && ac_dir=. 25236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 25237 acl_cv_path_LD="$ac_dir/$ac_prog" 25238 # Check to see if the program is GNU ld. I'd rather use --version, 25239 # but apparently some GNU ld's only accept -v. 25240 # Break only if it was the GNU/non-GNU ld that we prefer. 25241 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 25242 *GNU* | *'with BFD'*) 25243 test "$with_gnu_ld" != no && break ;; 25244 *) 25245 test "$with_gnu_ld" != yes && break ;; 25246 esac 25247 fi 25248 done 25249 IFS="$ac_save_ifs" 25250else 25251 acl_cv_path_LD="$LD" # Let the user override the test with a path. 25252fi 25253fi 25254 25255LD="$acl_cv_path_LD" 25256if test -n "$LD"; then 25257 { $as_echo "$as_me:$LINENO: result: $LD" >&5 25258$as_echo "$LD" >&6; } 25259else 25260 { $as_echo "$as_me:$LINENO: result: no" >&5 25261$as_echo "no" >&6; } 25262fi 25263test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 25264$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 25265 { (exit 1); exit 1; }; } 25266{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 25267$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 25268if test "${acl_cv_prog_gnu_ld+set}" = set; then 25269 $as_echo_n "(cached) " >&6 25270else 25271 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 25272case `$LD -v 2>&1 </dev/null` in 25273*GNU* | *'with BFD'*) 25274 acl_cv_prog_gnu_ld=yes ;; 25275*) 25276 acl_cv_prog_gnu_ld=no ;; 25277esac 25278fi 25279{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 25280$as_echo "$acl_cv_prog_gnu_ld" >&6; } 25281with_gnu_ld=$acl_cv_prog_gnu_ld 25282 25283 25284 25285 25286 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 25287$as_echo_n "checking for shared library run path origin... " >&6; } 25288if test "${acl_cv_rpath+set}" = set; then 25289 $as_echo_n "(cached) " >&6 25290else 25291 25292 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 25293 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 25294 . ./conftest.sh 25295 rm -f ./conftest.sh 25296 acl_cv_rpath=done 25297 25298fi 25299{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 25300$as_echo "$acl_cv_rpath" >&6; } 25301 wl="$acl_cv_wl" 25302 acl_libext="$acl_cv_libext" 25303 acl_shlibext="$acl_cv_shlibext" 25304 acl_libname_spec="$acl_cv_libname_spec" 25305 acl_library_names_spec="$acl_cv_library_names_spec" 25306 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 25307 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 25308 acl_hardcode_direct="$acl_cv_hardcode_direct" 25309 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 25310 # Check whether --enable-rpath was given. 25311if test "${enable_rpath+set}" = set; then 25312 enableval=$enable_rpath; : 25313else 25314 enable_rpath=yes 25315fi 25316 25317 25318 25319 25320 acl_libdirstem=lib 25321 acl_libdirstem2= 25322 case "$host_os" in 25323 solaris*) 25324 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5 25325$as_echo_n "checking for 64-bit host... " >&6; } 25326if test "${gl_cv_solaris_64bit+set}" = set; then 25327 $as_echo_n "(cached) " >&6 25328else 25329 cat >conftest.$ac_ext <<_ACEOF 25330/* confdefs.h. */ 25331_ACEOF 25332cat confdefs.h >>conftest.$ac_ext 25333cat >>conftest.$ac_ext <<_ACEOF 25334/* end confdefs.h. */ 25335 25336#ifdef _LP64 25337sixtyfour bits 25338#endif 25339 25340_ACEOF 25341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25342 $EGREP "sixtyfour bits" >/dev/null 2>&1; then 25343 gl_cv_solaris_64bit=yes 25344else 25345 gl_cv_solaris_64bit=no 25346fi 25347rm -f conftest* 25348 25349 25350fi 25351{ $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5 25352$as_echo "$gl_cv_solaris_64bit" >&6; } 25353 if test $gl_cv_solaris_64bit = yes; then 25354 acl_libdirstem=lib/64 25355 case "$host_cpu" in 25356 sparc*) acl_libdirstem2=lib/sparcv9 ;; 25357 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 25358 esac 25359 fi 25360 ;; 25361 *) 25362 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 25363 if test -n "$searchpath"; then 25364 acl_save_IFS="${IFS= }"; IFS=":" 25365 for searchdir in $searchpath; do 25366 if test -d "$searchdir"; then 25367 case "$searchdir" in 25368 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 25369 */../ | */.. ) 25370 # Better ignore directories of this form. They are misleading. 25371 ;; 25372 *) searchdir=`cd "$searchdir" && pwd` 25373 case "$searchdir" in 25374 */lib64 ) acl_libdirstem=lib64 ;; 25375 esac ;; 25376 esac 25377 fi 25378 done 25379 IFS="$acl_save_IFS" 25380 fi 25381 ;; 25382 esac 25383 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 use_additional=yes 25397 25398 acl_save_prefix="$prefix" 25399 prefix="$acl_final_prefix" 25400 acl_save_exec_prefix="$exec_prefix" 25401 exec_prefix="$acl_final_exec_prefix" 25402 25403 eval additional_includedir=\"$includedir\" 25404 eval additional_libdir=\"$libdir\" 25405 25406 exec_prefix="$acl_save_exec_prefix" 25407 prefix="$acl_save_prefix" 25408 25409 25410# Check whether --with-libiconv-prefix was given. 25411if test "${with_libiconv_prefix+set}" = set; then 25412 withval=$with_libiconv_prefix; 25413 if test "X$withval" = "Xno"; then 25414 use_additional=no 25415 else 25416 if test "X$withval" = "X"; then 25417 25418 acl_save_prefix="$prefix" 25419 prefix="$acl_final_prefix" 25420 acl_save_exec_prefix="$exec_prefix" 25421 exec_prefix="$acl_final_exec_prefix" 25422 25423 eval additional_includedir=\"$includedir\" 25424 eval additional_libdir=\"$libdir\" 25425 25426 exec_prefix="$acl_save_exec_prefix" 25427 prefix="$acl_save_prefix" 25428 25429 else 25430 additional_includedir="$withval/include" 25431 additional_libdir="$withval/$acl_libdirstem" 25432 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 25433 && ! test -d "$withval/$acl_libdirstem"; then 25434 additional_libdir="$withval/$acl_libdirstem2" 25435 fi 25436 fi 25437 fi 25438 25439fi 25440 25441 LIBICONV= 25442 LTLIBICONV= 25443 INCICONV= 25444 LIBICONV_PREFIX= 25445 HAVE_LIBICONV= 25446 rpathdirs= 25447 ltrpathdirs= 25448 names_already_handled= 25449 names_next_round='iconv ' 25450 while test -n "$names_next_round"; do 25451 names_this_round="$names_next_round" 25452 names_next_round= 25453 for name in $names_this_round; do 25454 already_handled= 25455 for n in $names_already_handled; do 25456 if test "$n" = "$name"; then 25457 already_handled=yes 25458 break 25459 fi 25460 done 25461 if test -z "$already_handled"; then 25462 names_already_handled="$names_already_handled $name" 25463 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 25464 eval value=\"\$HAVE_LIB$uppername\" 25465 if test -n "$value"; then 25466 if test "$value" = yes; then 25467 eval value=\"\$LIB$uppername\" 25468 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 25469 eval value=\"\$LTLIB$uppername\" 25470 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 25471 else 25472 : 25473 fi 25474 else 25475 found_dir= 25476 found_la= 25477 found_so= 25478 found_a= 25479 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 25480 if test -n "$acl_shlibext"; then 25481 shrext=".$acl_shlibext" # typically: shrext=.so 25482 else 25483 shrext= 25484 fi 25485 if test $use_additional = yes; then 25486 dir="$additional_libdir" 25487 if test -n "$acl_shlibext"; then 25488 if test -f "$dir/$libname$shrext"; then 25489 found_dir="$dir" 25490 found_so="$dir/$libname$shrext" 25491 else 25492 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 25493 ver=`(cd "$dir" && \ 25494 for f in "$libname$shrext".*; do echo "$f"; done \ 25495 | sed -e "s,^$libname$shrext\\\\.,," \ 25496 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 25497 | sed 1q ) 2>/dev/null` 25498 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 25499 found_dir="$dir" 25500 found_so="$dir/$libname$shrext.$ver" 25501 fi 25502 else 25503 eval library_names=\"$acl_library_names_spec\" 25504 for f in $library_names; do 25505 if test -f "$dir/$f"; then 25506 found_dir="$dir" 25507 found_so="$dir/$f" 25508 break 25509 fi 25510 done 25511 fi 25512 fi 25513 fi 25514 if test "X$found_dir" = "X"; then 25515 if test -f "$dir/$libname.$acl_libext"; then 25516 found_dir="$dir" 25517 found_a="$dir/$libname.$acl_libext" 25518 fi 25519 fi 25520 if test "X$found_dir" != "X"; then 25521 if test -f "$dir/$libname.la"; then 25522 found_la="$dir/$libname.la" 25523 fi 25524 fi 25525 fi 25526 if test "X$found_dir" = "X"; then 25527 for x in $LDFLAGS $LTLIBICONV; do 25528 25529 acl_save_prefix="$prefix" 25530 prefix="$acl_final_prefix" 25531 acl_save_exec_prefix="$exec_prefix" 25532 exec_prefix="$acl_final_exec_prefix" 25533 eval x=\"$x\" 25534 exec_prefix="$acl_save_exec_prefix" 25535 prefix="$acl_save_prefix" 25536 25537 case "$x" in 25538 -L*) 25539 dir=`echo "X$x" | sed -e 's/^X-L//'` 25540 if test -n "$acl_shlibext"; then 25541 if test -f "$dir/$libname$shrext"; then 25542 found_dir="$dir" 25543 found_so="$dir/$libname$shrext" 25544 else 25545 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 25546 ver=`(cd "$dir" && \ 25547 for f in "$libname$shrext".*; do echo "$f"; done \ 25548 | sed -e "s,^$libname$shrext\\\\.,," \ 25549 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 25550 | sed 1q ) 2>/dev/null` 25551 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 25552 found_dir="$dir" 25553 found_so="$dir/$libname$shrext.$ver" 25554 fi 25555 else 25556 eval library_names=\"$acl_library_names_spec\" 25557 for f in $library_names; do 25558 if test -f "$dir/$f"; then 25559 found_dir="$dir" 25560 found_so="$dir/$f" 25561 break 25562 fi 25563 done 25564 fi 25565 fi 25566 fi 25567 if test "X$found_dir" = "X"; then 25568 if test -f "$dir/$libname.$acl_libext"; then 25569 found_dir="$dir" 25570 found_a="$dir/$libname.$acl_libext" 25571 fi 25572 fi 25573 if test "X$found_dir" != "X"; then 25574 if test -f "$dir/$libname.la"; then 25575 found_la="$dir/$libname.la" 25576 fi 25577 fi 25578 ;; 25579 esac 25580 if test "X$found_dir" != "X"; then 25581 break 25582 fi 25583 done 25584 fi 25585 if test "X$found_dir" != "X"; then 25586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 25587 if test "X$found_so" != "X"; then 25588 if test "$enable_rpath" = no \ 25589 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 25590 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 25591 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25592 else 25593 haveit= 25594 for x in $ltrpathdirs; do 25595 if test "X$x" = "X$found_dir"; then 25596 haveit=yes 25597 break 25598 fi 25599 done 25600 if test -z "$haveit"; then 25601 ltrpathdirs="$ltrpathdirs $found_dir" 25602 fi 25603 if test "$acl_hardcode_direct" = yes; then 25604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25605 else 25606 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 25607 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25608 haveit= 25609 for x in $rpathdirs; do 25610 if test "X$x" = "X$found_dir"; then 25611 haveit=yes 25612 break 25613 fi 25614 done 25615 if test -z "$haveit"; then 25616 rpathdirs="$rpathdirs $found_dir" 25617 fi 25618 else 25619 haveit= 25620 for x in $LDFLAGS $LIBICONV; do 25621 25622 acl_save_prefix="$prefix" 25623 prefix="$acl_final_prefix" 25624 acl_save_exec_prefix="$exec_prefix" 25625 exec_prefix="$acl_final_exec_prefix" 25626 eval x=\"$x\" 25627 exec_prefix="$acl_save_exec_prefix" 25628 prefix="$acl_save_prefix" 25629 25630 if test "X$x" = "X-L$found_dir"; then 25631 haveit=yes 25632 break 25633 fi 25634 done 25635 if test -z "$haveit"; then 25636 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 25637 fi 25638 if test "$acl_hardcode_minus_L" != no; then 25639 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25640 else 25641 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 25642 fi 25643 fi 25644 fi 25645 fi 25646 else 25647 if test "X$found_a" != "X"; then 25648 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 25649 else 25650 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 25651 fi 25652 fi 25653 additional_includedir= 25654 case "$found_dir" in 25655 */$acl_libdirstem | */$acl_libdirstem/) 25656 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 25657 if test "$name" = 'iconv'; then 25658 LIBICONV_PREFIX="$basedir" 25659 fi 25660 additional_includedir="$basedir/include" 25661 ;; 25662 */$acl_libdirstem2 | */$acl_libdirstem2/) 25663 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 25664 if test "$name" = 'iconv'; then 25665 LIBICONV_PREFIX="$basedir" 25666 fi 25667 additional_includedir="$basedir/include" 25668 ;; 25669 esac 25670 if test "X$additional_includedir" != "X"; then 25671 if test "X$additional_includedir" != "X/usr/include"; then 25672 haveit= 25673 if test "X$additional_includedir" = "X/usr/local/include"; then 25674 if test -n "$GCC"; then 25675 case $host_os in 25676 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 25677 esac 25678 fi 25679 fi 25680 if test -z "$haveit"; then 25681 for x in $CPPFLAGS $INCICONV; do 25682 25683 acl_save_prefix="$prefix" 25684 prefix="$acl_final_prefix" 25685 acl_save_exec_prefix="$exec_prefix" 25686 exec_prefix="$acl_final_exec_prefix" 25687 eval x=\"$x\" 25688 exec_prefix="$acl_save_exec_prefix" 25689 prefix="$acl_save_prefix" 25690 25691 if test "X$x" = "X-I$additional_includedir"; then 25692 haveit=yes 25693 break 25694 fi 25695 done 25696 if test -z "$haveit"; then 25697 if test -d "$additional_includedir"; then 25698 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 25699 fi 25700 fi 25701 fi 25702 fi 25703 fi 25704 if test -n "$found_la"; then 25705 save_libdir="$libdir" 25706 case "$found_la" in 25707 */* | *\\*) . "$found_la" ;; 25708 *) . "./$found_la" ;; 25709 esac 25710 libdir="$save_libdir" 25711 for dep in $dependency_libs; do 25712 case "$dep" in 25713 -L*) 25714 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 25715 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 25716 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 25717 haveit= 25718 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 25719 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 25720 if test -n "$GCC"; then 25721 case $host_os in 25722 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 25723 esac 25724 fi 25725 fi 25726 if test -z "$haveit"; then 25727 haveit= 25728 for x in $LDFLAGS $LIBICONV; do 25729 25730 acl_save_prefix="$prefix" 25731 prefix="$acl_final_prefix" 25732 acl_save_exec_prefix="$exec_prefix" 25733 exec_prefix="$acl_final_exec_prefix" 25734 eval x=\"$x\" 25735 exec_prefix="$acl_save_exec_prefix" 25736 prefix="$acl_save_prefix" 25737 25738 if test "X$x" = "X-L$additional_libdir"; then 25739 haveit=yes 25740 break 25741 fi 25742 done 25743 if test -z "$haveit"; then 25744 if test -d "$additional_libdir"; then 25745 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 25746 fi 25747 fi 25748 haveit= 25749 for x in $LDFLAGS $LTLIBICONV; do 25750 25751 acl_save_prefix="$prefix" 25752 prefix="$acl_final_prefix" 25753 acl_save_exec_prefix="$exec_prefix" 25754 exec_prefix="$acl_final_exec_prefix" 25755 eval x=\"$x\" 25756 exec_prefix="$acl_save_exec_prefix" 25757 prefix="$acl_save_prefix" 25758 25759 if test "X$x" = "X-L$additional_libdir"; then 25760 haveit=yes 25761 break 25762 fi 25763 done 25764 if test -z "$haveit"; then 25765 if test -d "$additional_libdir"; then 25766 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 25767 fi 25768 fi 25769 fi 25770 fi 25771 ;; 25772 -R*) 25773 dir=`echo "X$dep" | sed -e 's/^X-R//'` 25774 if test "$enable_rpath" != no; then 25775 haveit= 25776 for x in $rpathdirs; do 25777 if test "X$x" = "X$dir"; then 25778 haveit=yes 25779 break 25780 fi 25781 done 25782 if test -z "$haveit"; then 25783 rpathdirs="$rpathdirs $dir" 25784 fi 25785 haveit= 25786 for x in $ltrpathdirs; do 25787 if test "X$x" = "X$dir"; then 25788 haveit=yes 25789 break 25790 fi 25791 done 25792 if test -z "$haveit"; then 25793 ltrpathdirs="$ltrpathdirs $dir" 25794 fi 25795 fi 25796 ;; 25797 -l*) 25798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 25799 ;; 25800 *.la) 25801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 25802 ;; 25803 *) 25804 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 25805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 25806 ;; 25807 esac 25808 done 25809 fi 25810 else 25811 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 25812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 25813 fi 25814 fi 25815 fi 25816 done 25817 done 25818 if test "X$rpathdirs" != "X"; then 25819 if test -n "$acl_hardcode_libdir_separator"; then 25820 alldirs= 25821 for found_dir in $rpathdirs; do 25822 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 25823 done 25824 acl_save_libdir="$libdir" 25825 libdir="$alldirs" 25826 eval flag=\"$acl_hardcode_libdir_flag_spec\" 25827 libdir="$acl_save_libdir" 25828 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 25829 else 25830 for found_dir in $rpathdirs; do 25831 acl_save_libdir="$libdir" 25832 libdir="$found_dir" 25833 eval flag=\"$acl_hardcode_libdir_flag_spec\" 25834 libdir="$acl_save_libdir" 25835 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 25836 done 25837 fi 25838 fi 25839 if test "X$ltrpathdirs" != "X"; then 25840 for found_dir in $ltrpathdirs; do 25841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 25842 done 25843 fi 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 25875$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 25876if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 25877 $as_echo_n "(cached) " >&6 25878else 25879 gt_save_LIBS="$LIBS" 25880 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 25881 cat >conftest.$ac_ext <<_ACEOF 25882/* confdefs.h. */ 25883_ACEOF 25884cat confdefs.h >>conftest.$ac_ext 25885cat >>conftest.$ac_ext <<_ACEOF 25886/* end confdefs.h. */ 25887#include <CoreFoundation/CFPreferences.h> 25888int 25889main () 25890{ 25891CFPreferencesCopyAppValue(NULL, NULL) 25892 ; 25893 return 0; 25894} 25895_ACEOF 25896rm -f conftest.$ac_objext conftest$ac_exeext 25897if { (ac_try="$ac_link" 25898case "(($ac_try" in 25899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25900 *) ac_try_echo=$ac_try;; 25901esac 25902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25903$as_echo "$ac_try_echo") >&5 25904 (eval "$ac_link") 2>conftest.er1 25905 ac_status=$? 25906 grep -v '^ *+' conftest.er1 >conftest.err 25907 rm -f conftest.er1 25908 cat conftest.err >&5 25909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25910 (exit $ac_status); } && { 25911 test -z "$ac_c_werror_flag" || 25912 test ! -s conftest.err 25913 } && test -s conftest$ac_exeext && { 25914 test "$cross_compiling" = yes || 25915 $as_test_x conftest$ac_exeext 25916 }; then 25917 gt_cv_func_CFPreferencesCopyAppValue=yes 25918else 25919 $as_echo "$as_me: failed program was:" >&5 25920sed 's/^/| /' conftest.$ac_ext >&5 25921 25922 gt_cv_func_CFPreferencesCopyAppValue=no 25923fi 25924 25925rm -rf conftest.dSYM 25926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25927 conftest$ac_exeext conftest.$ac_ext 25928 LIBS="$gt_save_LIBS" 25929fi 25930{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 25931$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 25932 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 25933 25934cat >>confdefs.h <<\_ACEOF 25935#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 25936_ACEOF 25937 25938 fi 25939 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 25940$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 25941if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 25942 $as_echo_n "(cached) " >&6 25943else 25944 gt_save_LIBS="$LIBS" 25945 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 25946 cat >conftest.$ac_ext <<_ACEOF 25947/* confdefs.h. */ 25948_ACEOF 25949cat confdefs.h >>conftest.$ac_ext 25950cat >>conftest.$ac_ext <<_ACEOF 25951/* end confdefs.h. */ 25952#include <CoreFoundation/CFLocale.h> 25953int 25954main () 25955{ 25956CFLocaleCopyCurrent(); 25957 ; 25958 return 0; 25959} 25960_ACEOF 25961rm -f conftest.$ac_objext conftest$ac_exeext 25962if { (ac_try="$ac_link" 25963case "(($ac_try" in 25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25965 *) ac_try_echo=$ac_try;; 25966esac 25967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25968$as_echo "$ac_try_echo") >&5 25969 (eval "$ac_link") 2>conftest.er1 25970 ac_status=$? 25971 grep -v '^ *+' conftest.er1 >conftest.err 25972 rm -f conftest.er1 25973 cat conftest.err >&5 25974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25975 (exit $ac_status); } && { 25976 test -z "$ac_c_werror_flag" || 25977 test ! -s conftest.err 25978 } && test -s conftest$ac_exeext && { 25979 test "$cross_compiling" = yes || 25980 $as_test_x conftest$ac_exeext 25981 }; then 25982 gt_cv_func_CFLocaleCopyCurrent=yes 25983else 25984 $as_echo "$as_me: failed program was:" >&5 25985sed 's/^/| /' conftest.$ac_ext >&5 25986 25987 gt_cv_func_CFLocaleCopyCurrent=no 25988fi 25989 25990rm -rf conftest.dSYM 25991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25992 conftest$ac_exeext conftest.$ac_ext 25993 LIBS="$gt_save_LIBS" 25994fi 25995{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 25996$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 25997 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 25998 25999cat >>confdefs.h <<\_ACEOF 26000#define HAVE_CFLOCALECOPYCURRENT 1 26001_ACEOF 26002 26003 fi 26004 INTL_MACOSX_LIBS= 26005 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 26006 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 26007 fi 26008 26009 26010 26011 26012 26013 26014 LIBINTL= 26015 LTLIBINTL= 26016 POSUB= 26017 26018 case " $gt_needs " in 26019 *" need-formatstring-macros "*) gt_api_version=3 ;; 26020 *" need-ngettext "*) gt_api_version=2 ;; 26021 *) gt_api_version=1 ;; 26022 esac 26023 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 26024 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 26025 26026 if test "$USE_NLS" = "yes"; then 26027 gt_use_preinstalled_gnugettext=no 26028 26029 26030 if test $gt_api_version -ge 3; then 26031 gt_revision_test_code=' 26032#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 26033#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 26034#endif 26035typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 26036' 26037 else 26038 gt_revision_test_code= 26039 fi 26040 if test $gt_api_version -ge 2; then 26041 gt_expression_test_code=' + * ngettext ("", "", 0)' 26042 else 26043 gt_expression_test_code= 26044 fi 26045 26046 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 26047$as_echo_n "checking for GNU gettext in libc... " >&6; } 26048if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then 26049 $as_echo_n "(cached) " >&6 26050else 26051 cat >conftest.$ac_ext <<_ACEOF 26052/* confdefs.h. */ 26053_ACEOF 26054cat confdefs.h >>conftest.$ac_ext 26055cat >>conftest.$ac_ext <<_ACEOF 26056/* end confdefs.h. */ 26057#include <libintl.h> 26058$gt_revision_test_code 26059extern int _nl_msg_cat_cntr; 26060extern int *_nl_domain_bindings; 26061int 26062main () 26063{ 26064bindtextdomain ("", ""); 26065return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 26066 ; 26067 return 0; 26068} 26069_ACEOF 26070rm -f conftest.$ac_objext conftest$ac_exeext 26071if { (ac_try="$ac_link" 26072case "(($ac_try" in 26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26074 *) ac_try_echo=$ac_try;; 26075esac 26076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26077$as_echo "$ac_try_echo") >&5 26078 (eval "$ac_link") 2>conftest.er1 26079 ac_status=$? 26080 grep -v '^ *+' conftest.er1 >conftest.err 26081 rm -f conftest.er1 26082 cat conftest.err >&5 26083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26084 (exit $ac_status); } && { 26085 test -z "$ac_c_werror_flag" || 26086 test ! -s conftest.err 26087 } && test -s conftest$ac_exeext && { 26088 test "$cross_compiling" = yes || 26089 $as_test_x conftest$ac_exeext 26090 }; then 26091 eval "$gt_func_gnugettext_libc=yes" 26092else 26093 $as_echo "$as_me: failed program was:" >&5 26094sed 's/^/| /' conftest.$ac_ext >&5 26095 26096 eval "$gt_func_gnugettext_libc=no" 26097fi 26098 26099rm -rf conftest.dSYM 26100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26101 conftest$ac_exeext conftest.$ac_ext 26102fi 26103ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'} 26104 $as_echo "$as_val"'` 26105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 26106$as_echo "$ac_res" >&6; } 26107 26108 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 26109 26110 26111 26112 26113 26114 am_save_CPPFLAGS="$CPPFLAGS" 26115 26116 for element in $INCICONV; do 26117 haveit= 26118 for x in $CPPFLAGS; do 26119 26120 acl_save_prefix="$prefix" 26121 prefix="$acl_final_prefix" 26122 acl_save_exec_prefix="$exec_prefix" 26123 exec_prefix="$acl_final_exec_prefix" 26124 eval x=\"$x\" 26125 exec_prefix="$acl_save_exec_prefix" 26126 prefix="$acl_save_prefix" 26127 26128 if test "X$x" = "X$element"; then 26129 haveit=yes 26130 break 26131 fi 26132 done 26133 if test -z "$haveit"; then 26134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 26135 fi 26136 done 26137 26138 26139 { $as_echo "$as_me:$LINENO: checking for iconv" >&5 26140$as_echo_n "checking for iconv... " >&6; } 26141if test "${am_cv_func_iconv+set}" = set; then 26142 $as_echo_n "(cached) " >&6 26143else 26144 26145 am_cv_func_iconv="no, consider installing GNU libiconv" 26146 am_cv_lib_iconv=no 26147 cat >conftest.$ac_ext <<_ACEOF 26148/* confdefs.h. */ 26149_ACEOF 26150cat confdefs.h >>conftest.$ac_ext 26151cat >>conftest.$ac_ext <<_ACEOF 26152/* end confdefs.h. */ 26153#include <stdlib.h> 26154#include <iconv.h> 26155int 26156main () 26157{ 26158iconv_t cd = iconv_open("",""); 26159 iconv(cd,NULL,NULL,NULL,NULL); 26160 iconv_close(cd); 26161 ; 26162 return 0; 26163} 26164_ACEOF 26165rm -f conftest.$ac_objext conftest$ac_exeext 26166if { (ac_try="$ac_link" 26167case "(($ac_try" in 26168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26169 *) ac_try_echo=$ac_try;; 26170esac 26171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26172$as_echo "$ac_try_echo") >&5 26173 (eval "$ac_link") 2>conftest.er1 26174 ac_status=$? 26175 grep -v '^ *+' conftest.er1 >conftest.err 26176 rm -f conftest.er1 26177 cat conftest.err >&5 26178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26179 (exit $ac_status); } && { 26180 test -z "$ac_c_werror_flag" || 26181 test ! -s conftest.err 26182 } && test -s conftest$ac_exeext && { 26183 test "$cross_compiling" = yes || 26184 $as_test_x conftest$ac_exeext 26185 }; then 26186 am_cv_func_iconv=yes 26187else 26188 $as_echo "$as_me: failed program was:" >&5 26189sed 's/^/| /' conftest.$ac_ext >&5 26190 26191 26192fi 26193 26194rm -rf conftest.dSYM 26195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26196 conftest$ac_exeext conftest.$ac_ext 26197 if test "$am_cv_func_iconv" != yes; then 26198 am_save_LIBS="$LIBS" 26199 LIBS="$LIBS $LIBICONV" 26200 cat >conftest.$ac_ext <<_ACEOF 26201/* confdefs.h. */ 26202_ACEOF 26203cat confdefs.h >>conftest.$ac_ext 26204cat >>conftest.$ac_ext <<_ACEOF 26205/* end confdefs.h. */ 26206#include <stdlib.h> 26207#include <iconv.h> 26208int 26209main () 26210{ 26211iconv_t cd = iconv_open("",""); 26212 iconv(cd,NULL,NULL,NULL,NULL); 26213 iconv_close(cd); 26214 ; 26215 return 0; 26216} 26217_ACEOF 26218rm -f conftest.$ac_objext conftest$ac_exeext 26219if { (ac_try="$ac_link" 26220case "(($ac_try" in 26221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26222 *) ac_try_echo=$ac_try;; 26223esac 26224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26225$as_echo "$ac_try_echo") >&5 26226 (eval "$ac_link") 2>conftest.er1 26227 ac_status=$? 26228 grep -v '^ *+' conftest.er1 >conftest.err 26229 rm -f conftest.er1 26230 cat conftest.err >&5 26231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26232 (exit $ac_status); } && { 26233 test -z "$ac_c_werror_flag" || 26234 test ! -s conftest.err 26235 } && test -s conftest$ac_exeext && { 26236 test "$cross_compiling" = yes || 26237 $as_test_x conftest$ac_exeext 26238 }; then 26239 am_cv_lib_iconv=yes 26240 am_cv_func_iconv=yes 26241else 26242 $as_echo "$as_me: failed program was:" >&5 26243sed 's/^/| /' conftest.$ac_ext >&5 26244 26245 26246fi 26247 26248rm -rf conftest.dSYM 26249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26250 conftest$ac_exeext conftest.$ac_ext 26251 LIBS="$am_save_LIBS" 26252 fi 26253 26254fi 26255{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 26256$as_echo "$am_cv_func_iconv" >&6; } 26257 if test "$am_cv_func_iconv" = yes; then 26258 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5 26259$as_echo_n "checking for working iconv... " >&6; } 26260if test "${am_cv_func_iconv_works+set}" = set; then 26261 $as_echo_n "(cached) " >&6 26262else 26263 26264 am_save_LIBS="$LIBS" 26265 if test $am_cv_lib_iconv = yes; then 26266 LIBS="$LIBS $LIBICONV" 26267 fi 26268 if test "$cross_compiling" = yes; then 26269 case "$host_os" in 26270 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 26271 *) am_cv_func_iconv_works="guessing yes" ;; 26272 esac 26273else 26274 cat >conftest.$ac_ext <<_ACEOF 26275/* confdefs.h. */ 26276_ACEOF 26277cat confdefs.h >>conftest.$ac_ext 26278cat >>conftest.$ac_ext <<_ACEOF 26279/* end confdefs.h. */ 26280 26281#include <iconv.h> 26282#include <string.h> 26283int main () 26284{ 26285 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 26286 returns. */ 26287 { 26288 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 26289 if (cd_utf8_to_88591 != (iconv_t)(-1)) 26290 { 26291 static const char input[] = "\342\202\254"; /* EURO SIGN */ 26292 char buf[10]; 26293 const char *inptr = input; 26294 size_t inbytesleft = strlen (input); 26295 char *outptr = buf; 26296 size_t outbytesleft = sizeof (buf); 26297 size_t res = iconv (cd_utf8_to_88591, 26298 (char **) &inptr, &inbytesleft, 26299 &outptr, &outbytesleft); 26300 if (res == 0) 26301 return 1; 26302 } 26303 } 26304#if 0 /* This bug could be worked around by the caller. */ 26305 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 26306 { 26307 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 26308 if (cd_88591_to_utf8 != (iconv_t)(-1)) 26309 { 26310 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 26311 char buf[50]; 26312 const char *inptr = input; 26313 size_t inbytesleft = strlen (input); 26314 char *outptr = buf; 26315 size_t outbytesleft = sizeof (buf); 26316 size_t res = iconv (cd_88591_to_utf8, 26317 (char **) &inptr, &inbytesleft, 26318 &outptr, &outbytesleft); 26319 if ((int)res > 0) 26320 return 1; 26321 } 26322 } 26323#endif 26324 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 26325 provided. */ 26326 if (/* Try standardized names. */ 26327 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 26328 /* Try IRIX, OSF/1 names. */ 26329 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 26330 /* Try AIX names. */ 26331 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 26332 /* Try HP-UX names. */ 26333 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 26334 return 1; 26335 return 0; 26336} 26337_ACEOF 26338rm -f conftest$ac_exeext 26339if { (ac_try="$ac_link" 26340case "(($ac_try" in 26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26342 *) ac_try_echo=$ac_try;; 26343esac 26344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26345$as_echo "$ac_try_echo") >&5 26346 (eval "$ac_link") 2>&5 26347 ac_status=$? 26348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26350 { (case "(($ac_try" in 26351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26352 *) ac_try_echo=$ac_try;; 26353esac 26354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26355$as_echo "$ac_try_echo") >&5 26356 (eval "$ac_try") 2>&5 26357 ac_status=$? 26358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26359 (exit $ac_status); }; }; then 26360 am_cv_func_iconv_works=yes 26361else 26362 $as_echo "$as_me: program exited with status $ac_status" >&5 26363$as_echo "$as_me: failed program was:" >&5 26364sed 's/^/| /' conftest.$ac_ext >&5 26365 26366( exit $ac_status ) 26367am_cv_func_iconv_works=no 26368fi 26369rm -rf conftest.dSYM 26370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26371fi 26372 26373 26374 LIBS="$am_save_LIBS" 26375 26376fi 26377{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 26378$as_echo "$am_cv_func_iconv_works" >&6; } 26379 case "$am_cv_func_iconv_works" in 26380 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 26381 *) am_func_iconv=yes ;; 26382 esac 26383 else 26384 am_func_iconv=no am_cv_lib_iconv=no 26385 fi 26386 if test "$am_func_iconv" = yes; then 26387 26388cat >>confdefs.h <<\_ACEOF 26389#define HAVE_ICONV 1 26390_ACEOF 26391 26392 fi 26393 if test "$am_cv_lib_iconv" = yes; then 26394 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 26395$as_echo_n "checking how to link with libiconv... " >&6; } 26396 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 26397$as_echo "$LIBICONV" >&6; } 26398 else 26399 CPPFLAGS="$am_save_CPPFLAGS" 26400 LIBICONV= 26401 LTLIBICONV= 26402 fi 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 use_additional=yes 26415 26416 acl_save_prefix="$prefix" 26417 prefix="$acl_final_prefix" 26418 acl_save_exec_prefix="$exec_prefix" 26419 exec_prefix="$acl_final_exec_prefix" 26420 26421 eval additional_includedir=\"$includedir\" 26422 eval additional_libdir=\"$libdir\" 26423 26424 exec_prefix="$acl_save_exec_prefix" 26425 prefix="$acl_save_prefix" 26426 26427 26428# Check whether --with-libintl-prefix was given. 26429if test "${with_libintl_prefix+set}" = set; then 26430 withval=$with_libintl_prefix; 26431 if test "X$withval" = "Xno"; then 26432 use_additional=no 26433 else 26434 if test "X$withval" = "X"; then 26435 26436 acl_save_prefix="$prefix" 26437 prefix="$acl_final_prefix" 26438 acl_save_exec_prefix="$exec_prefix" 26439 exec_prefix="$acl_final_exec_prefix" 26440 26441 eval additional_includedir=\"$includedir\" 26442 eval additional_libdir=\"$libdir\" 26443 26444 exec_prefix="$acl_save_exec_prefix" 26445 prefix="$acl_save_prefix" 26446 26447 else 26448 additional_includedir="$withval/include" 26449 additional_libdir="$withval/$acl_libdirstem" 26450 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 26451 && ! test -d "$withval/$acl_libdirstem"; then 26452 additional_libdir="$withval/$acl_libdirstem2" 26453 fi 26454 fi 26455 fi 26456 26457fi 26458 26459 LIBINTL= 26460 LTLIBINTL= 26461 INCINTL= 26462 LIBINTL_PREFIX= 26463 HAVE_LIBINTL= 26464 rpathdirs= 26465 ltrpathdirs= 26466 names_already_handled= 26467 names_next_round='intl ' 26468 while test -n "$names_next_round"; do 26469 names_this_round="$names_next_round" 26470 names_next_round= 26471 for name in $names_this_round; do 26472 already_handled= 26473 for n in $names_already_handled; do 26474 if test "$n" = "$name"; then 26475 already_handled=yes 26476 break 26477 fi 26478 done 26479 if test -z "$already_handled"; then 26480 names_already_handled="$names_already_handled $name" 26481 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 26482 eval value=\"\$HAVE_LIB$uppername\" 26483 if test -n "$value"; then 26484 if test "$value" = yes; then 26485 eval value=\"\$LIB$uppername\" 26486 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 26487 eval value=\"\$LTLIB$uppername\" 26488 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 26489 else 26490 : 26491 fi 26492 else 26493 found_dir= 26494 found_la= 26495 found_so= 26496 found_a= 26497 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 26498 if test -n "$acl_shlibext"; then 26499 shrext=".$acl_shlibext" # typically: shrext=.so 26500 else 26501 shrext= 26502 fi 26503 if test $use_additional = yes; then 26504 dir="$additional_libdir" 26505 if test -n "$acl_shlibext"; then 26506 if test -f "$dir/$libname$shrext"; then 26507 found_dir="$dir" 26508 found_so="$dir/$libname$shrext" 26509 else 26510 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 26511 ver=`(cd "$dir" && \ 26512 for f in "$libname$shrext".*; do echo "$f"; done \ 26513 | sed -e "s,^$libname$shrext\\\\.,," \ 26514 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 26515 | sed 1q ) 2>/dev/null` 26516 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 26517 found_dir="$dir" 26518 found_so="$dir/$libname$shrext.$ver" 26519 fi 26520 else 26521 eval library_names=\"$acl_library_names_spec\" 26522 for f in $library_names; do 26523 if test -f "$dir/$f"; then 26524 found_dir="$dir" 26525 found_so="$dir/$f" 26526 break 26527 fi 26528 done 26529 fi 26530 fi 26531 fi 26532 if test "X$found_dir" = "X"; then 26533 if test -f "$dir/$libname.$acl_libext"; then 26534 found_dir="$dir" 26535 found_a="$dir/$libname.$acl_libext" 26536 fi 26537 fi 26538 if test "X$found_dir" != "X"; then 26539 if test -f "$dir/$libname.la"; then 26540 found_la="$dir/$libname.la" 26541 fi 26542 fi 26543 fi 26544 if test "X$found_dir" = "X"; then 26545 for x in $LDFLAGS $LTLIBINTL; do 26546 26547 acl_save_prefix="$prefix" 26548 prefix="$acl_final_prefix" 26549 acl_save_exec_prefix="$exec_prefix" 26550 exec_prefix="$acl_final_exec_prefix" 26551 eval x=\"$x\" 26552 exec_prefix="$acl_save_exec_prefix" 26553 prefix="$acl_save_prefix" 26554 26555 case "$x" in 26556 -L*) 26557 dir=`echo "X$x" | sed -e 's/^X-L//'` 26558 if test -n "$acl_shlibext"; then 26559 if test -f "$dir/$libname$shrext"; then 26560 found_dir="$dir" 26561 found_so="$dir/$libname$shrext" 26562 else 26563 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 26564 ver=`(cd "$dir" && \ 26565 for f in "$libname$shrext".*; do echo "$f"; done \ 26566 | sed -e "s,^$libname$shrext\\\\.,," \ 26567 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 26568 | sed 1q ) 2>/dev/null` 26569 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 26570 found_dir="$dir" 26571 found_so="$dir/$libname$shrext.$ver" 26572 fi 26573 else 26574 eval library_names=\"$acl_library_names_spec\" 26575 for f in $library_names; do 26576 if test -f "$dir/$f"; then 26577 found_dir="$dir" 26578 found_so="$dir/$f" 26579 break 26580 fi 26581 done 26582 fi 26583 fi 26584 fi 26585 if test "X$found_dir" = "X"; then 26586 if test -f "$dir/$libname.$acl_libext"; then 26587 found_dir="$dir" 26588 found_a="$dir/$libname.$acl_libext" 26589 fi 26590 fi 26591 if test "X$found_dir" != "X"; then 26592 if test -f "$dir/$libname.la"; then 26593 found_la="$dir/$libname.la" 26594 fi 26595 fi 26596 ;; 26597 esac 26598 if test "X$found_dir" != "X"; then 26599 break 26600 fi 26601 done 26602 fi 26603 if test "X$found_dir" != "X"; then 26604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 26605 if test "X$found_so" != "X"; then 26606 if test "$enable_rpath" = no \ 26607 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 26608 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 26609 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26610 else 26611 haveit= 26612 for x in $ltrpathdirs; do 26613 if test "X$x" = "X$found_dir"; then 26614 haveit=yes 26615 break 26616 fi 26617 done 26618 if test -z "$haveit"; then 26619 ltrpathdirs="$ltrpathdirs $found_dir" 26620 fi 26621 if test "$acl_hardcode_direct" = yes; then 26622 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26623 else 26624 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 26625 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26626 haveit= 26627 for x in $rpathdirs; do 26628 if test "X$x" = "X$found_dir"; then 26629 haveit=yes 26630 break 26631 fi 26632 done 26633 if test -z "$haveit"; then 26634 rpathdirs="$rpathdirs $found_dir" 26635 fi 26636 else 26637 haveit= 26638 for x in $LDFLAGS $LIBINTL; do 26639 26640 acl_save_prefix="$prefix" 26641 prefix="$acl_final_prefix" 26642 acl_save_exec_prefix="$exec_prefix" 26643 exec_prefix="$acl_final_exec_prefix" 26644 eval x=\"$x\" 26645 exec_prefix="$acl_save_exec_prefix" 26646 prefix="$acl_save_prefix" 26647 26648 if test "X$x" = "X-L$found_dir"; then 26649 haveit=yes 26650 break 26651 fi 26652 done 26653 if test -z "$haveit"; then 26654 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 26655 fi 26656 if test "$acl_hardcode_minus_L" != no; then 26657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26658 else 26659 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 26660 fi 26661 fi 26662 fi 26663 fi 26664 else 26665 if test "X$found_a" != "X"; then 26666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 26667 else 26668 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 26669 fi 26670 fi 26671 additional_includedir= 26672 case "$found_dir" in 26673 */$acl_libdirstem | */$acl_libdirstem/) 26674 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 26675 if test "$name" = 'intl'; then 26676 LIBINTL_PREFIX="$basedir" 26677 fi 26678 additional_includedir="$basedir/include" 26679 ;; 26680 */$acl_libdirstem2 | */$acl_libdirstem2/) 26681 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 26682 if test "$name" = 'intl'; then 26683 LIBINTL_PREFIX="$basedir" 26684 fi 26685 additional_includedir="$basedir/include" 26686 ;; 26687 esac 26688 if test "X$additional_includedir" != "X"; then 26689 if test "X$additional_includedir" != "X/usr/include"; then 26690 haveit= 26691 if test "X$additional_includedir" = "X/usr/local/include"; then 26692 if test -n "$GCC"; then 26693 case $host_os in 26694 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 26695 esac 26696 fi 26697 fi 26698 if test -z "$haveit"; then 26699 for x in $CPPFLAGS $INCINTL; do 26700 26701 acl_save_prefix="$prefix" 26702 prefix="$acl_final_prefix" 26703 acl_save_exec_prefix="$exec_prefix" 26704 exec_prefix="$acl_final_exec_prefix" 26705 eval x=\"$x\" 26706 exec_prefix="$acl_save_exec_prefix" 26707 prefix="$acl_save_prefix" 26708 26709 if test "X$x" = "X-I$additional_includedir"; then 26710 haveit=yes 26711 break 26712 fi 26713 done 26714 if test -z "$haveit"; then 26715 if test -d "$additional_includedir"; then 26716 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 26717 fi 26718 fi 26719 fi 26720 fi 26721 fi 26722 if test -n "$found_la"; then 26723 save_libdir="$libdir" 26724 case "$found_la" in 26725 */* | *\\*) . "$found_la" ;; 26726 *) . "./$found_la" ;; 26727 esac 26728 libdir="$save_libdir" 26729 for dep in $dependency_libs; do 26730 case "$dep" in 26731 -L*) 26732 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 26733 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 26734 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 26735 haveit= 26736 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 26737 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 26738 if test -n "$GCC"; then 26739 case $host_os in 26740 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 26741 esac 26742 fi 26743 fi 26744 if test -z "$haveit"; then 26745 haveit= 26746 for x in $LDFLAGS $LIBINTL; do 26747 26748 acl_save_prefix="$prefix" 26749 prefix="$acl_final_prefix" 26750 acl_save_exec_prefix="$exec_prefix" 26751 exec_prefix="$acl_final_exec_prefix" 26752 eval x=\"$x\" 26753 exec_prefix="$acl_save_exec_prefix" 26754 prefix="$acl_save_prefix" 26755 26756 if test "X$x" = "X-L$additional_libdir"; then 26757 haveit=yes 26758 break 26759 fi 26760 done 26761 if test -z "$haveit"; then 26762 if test -d "$additional_libdir"; then 26763 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 26764 fi 26765 fi 26766 haveit= 26767 for x in $LDFLAGS $LTLIBINTL; do 26768 26769 acl_save_prefix="$prefix" 26770 prefix="$acl_final_prefix" 26771 acl_save_exec_prefix="$exec_prefix" 26772 exec_prefix="$acl_final_exec_prefix" 26773 eval x=\"$x\" 26774 exec_prefix="$acl_save_exec_prefix" 26775 prefix="$acl_save_prefix" 26776 26777 if test "X$x" = "X-L$additional_libdir"; then 26778 haveit=yes 26779 break 26780 fi 26781 done 26782 if test -z "$haveit"; then 26783 if test -d "$additional_libdir"; then 26784 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 26785 fi 26786 fi 26787 fi 26788 fi 26789 ;; 26790 -R*) 26791 dir=`echo "X$dep" | sed -e 's/^X-R//'` 26792 if test "$enable_rpath" != no; then 26793 haveit= 26794 for x in $rpathdirs; do 26795 if test "X$x" = "X$dir"; then 26796 haveit=yes 26797 break 26798 fi 26799 done 26800 if test -z "$haveit"; then 26801 rpathdirs="$rpathdirs $dir" 26802 fi 26803 haveit= 26804 for x in $ltrpathdirs; do 26805 if test "X$x" = "X$dir"; then 26806 haveit=yes 26807 break 26808 fi 26809 done 26810 if test -z "$haveit"; then 26811 ltrpathdirs="$ltrpathdirs $dir" 26812 fi 26813 fi 26814 ;; 26815 -l*) 26816 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 26817 ;; 26818 *.la) 26819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 26820 ;; 26821 *) 26822 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 26823 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 26824 ;; 26825 esac 26826 done 26827 fi 26828 else 26829 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 26830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 26831 fi 26832 fi 26833 fi 26834 done 26835 done 26836 if test "X$rpathdirs" != "X"; then 26837 if test -n "$acl_hardcode_libdir_separator"; then 26838 alldirs= 26839 for found_dir in $rpathdirs; do 26840 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 26841 done 26842 acl_save_libdir="$libdir" 26843 libdir="$alldirs" 26844 eval flag=\"$acl_hardcode_libdir_flag_spec\" 26845 libdir="$acl_save_libdir" 26846 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 26847 else 26848 for found_dir in $rpathdirs; do 26849 acl_save_libdir="$libdir" 26850 libdir="$found_dir" 26851 eval flag=\"$acl_hardcode_libdir_flag_spec\" 26852 libdir="$acl_save_libdir" 26853 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 26854 done 26855 fi 26856 fi 26857 if test "X$ltrpathdirs" != "X"; then 26858 for found_dir in $ltrpathdirs; do 26859 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 26860 done 26861 fi 26862 26863 26864 26865 26866 26867 26868 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 26869$as_echo_n "checking for GNU gettext in libintl... " >&6; } 26870if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then 26871 $as_echo_n "(cached) " >&6 26872else 26873 gt_save_CPPFLAGS="$CPPFLAGS" 26874 CPPFLAGS="$CPPFLAGS $INCINTL" 26875 gt_save_LIBS="$LIBS" 26876 LIBS="$LIBS $LIBINTL" 26877 cat >conftest.$ac_ext <<_ACEOF 26878/* confdefs.h. */ 26879_ACEOF 26880cat confdefs.h >>conftest.$ac_ext 26881cat >>conftest.$ac_ext <<_ACEOF 26882/* end confdefs.h. */ 26883#include <libintl.h> 26884$gt_revision_test_code 26885extern int _nl_msg_cat_cntr; 26886extern 26887#ifdef __cplusplus 26888"C" 26889#endif 26890const char *_nl_expand_alias (const char *); 26891int 26892main () 26893{ 26894bindtextdomain ("", ""); 26895return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 26896 ; 26897 return 0; 26898} 26899_ACEOF 26900rm -f conftest.$ac_objext conftest$ac_exeext 26901if { (ac_try="$ac_link" 26902case "(($ac_try" in 26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26904 *) ac_try_echo=$ac_try;; 26905esac 26906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26907$as_echo "$ac_try_echo") >&5 26908 (eval "$ac_link") 2>conftest.er1 26909 ac_status=$? 26910 grep -v '^ *+' conftest.er1 >conftest.err 26911 rm -f conftest.er1 26912 cat conftest.err >&5 26913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26914 (exit $ac_status); } && { 26915 test -z "$ac_c_werror_flag" || 26916 test ! -s conftest.err 26917 } && test -s conftest$ac_exeext && { 26918 test "$cross_compiling" = yes || 26919 $as_test_x conftest$ac_exeext 26920 }; then 26921 eval "$gt_func_gnugettext_libintl=yes" 26922else 26923 $as_echo "$as_me: failed program was:" >&5 26924sed 's/^/| /' conftest.$ac_ext >&5 26925 26926 eval "$gt_func_gnugettext_libintl=no" 26927fi 26928 26929rm -rf conftest.dSYM 26930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26931 conftest$ac_exeext conftest.$ac_ext 26932 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 26933 LIBS="$LIBS $LIBICONV" 26934 cat >conftest.$ac_ext <<_ACEOF 26935/* confdefs.h. */ 26936_ACEOF 26937cat confdefs.h >>conftest.$ac_ext 26938cat >>conftest.$ac_ext <<_ACEOF 26939/* end confdefs.h. */ 26940#include <libintl.h> 26941$gt_revision_test_code 26942extern int _nl_msg_cat_cntr; 26943extern 26944#ifdef __cplusplus 26945"C" 26946#endif 26947const char *_nl_expand_alias (const char *); 26948int 26949main () 26950{ 26951bindtextdomain ("", ""); 26952return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 26953 ; 26954 return 0; 26955} 26956_ACEOF 26957rm -f conftest.$ac_objext conftest$ac_exeext 26958if { (ac_try="$ac_link" 26959case "(($ac_try" in 26960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26961 *) ac_try_echo=$ac_try;; 26962esac 26963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26964$as_echo "$ac_try_echo") >&5 26965 (eval "$ac_link") 2>conftest.er1 26966 ac_status=$? 26967 grep -v '^ *+' conftest.er1 >conftest.err 26968 rm -f conftest.er1 26969 cat conftest.err >&5 26970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26971 (exit $ac_status); } && { 26972 test -z "$ac_c_werror_flag" || 26973 test ! -s conftest.err 26974 } && test -s conftest$ac_exeext && { 26975 test "$cross_compiling" = yes || 26976 $as_test_x conftest$ac_exeext 26977 }; then 26978 LIBINTL="$LIBINTL $LIBICONV" 26979 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 26980 eval "$gt_func_gnugettext_libintl=yes" 26981 26982else 26983 $as_echo "$as_me: failed program was:" >&5 26984sed 's/^/| /' conftest.$ac_ext >&5 26985 26986 26987fi 26988 26989rm -rf conftest.dSYM 26990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26991 conftest$ac_exeext conftest.$ac_ext 26992 fi 26993 CPPFLAGS="$gt_save_CPPFLAGS" 26994 LIBS="$gt_save_LIBS" 26995fi 26996ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'} 26997 $as_echo "$as_val"'` 26998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 26999$as_echo "$ac_res" >&6; } 27000 fi 27001 27002 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 27003 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 27004 && test "$PACKAGE" != gettext-runtime \ 27005 && test "$PACKAGE" != gettext-tools; }; then 27006 gt_use_preinstalled_gnugettext=yes 27007 else 27008 LIBINTL= 27009 LTLIBINTL= 27010 INCINTL= 27011 fi 27012 27013 27014 27015 if test -n "$INTL_MACOSX_LIBS"; then 27016 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 27017 || test "$nls_cv_use_gnu_gettext" = "yes"; then 27018 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 27019 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 27020 fi 27021 fi 27022 27023 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 27024 || test "$nls_cv_use_gnu_gettext" = "yes"; then 27025 27026cat >>confdefs.h <<\_ACEOF 27027#define ENABLE_NLS 1 27028_ACEOF 27029 27030 else 27031 USE_NLS=no 27032 fi 27033 fi 27034 27035 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 27036$as_echo_n "checking whether to use NLS... " >&6; } 27037 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 27038$as_echo "$USE_NLS" >&6; } 27039 if test "$USE_NLS" = "yes"; then 27040 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 27041$as_echo_n "checking where the gettext function comes from... " >&6; } 27042 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 27043 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 27044 gt_source="external libintl" 27045 else 27046 gt_source="libc" 27047 fi 27048 else 27049 gt_source="included intl directory" 27050 fi 27051 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 27052$as_echo "$gt_source" >&6; } 27053 fi 27054 27055 if test "$USE_NLS" = "yes"; then 27056 27057 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 27058 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 27059 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 27060$as_echo_n "checking how to link with libintl... " >&6; } 27061 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 27062$as_echo "$LIBINTL" >&6; } 27063 27064 for element in $INCINTL; do 27065 haveit= 27066 for x in $CPPFLAGS; do 27067 27068 acl_save_prefix="$prefix" 27069 prefix="$acl_final_prefix" 27070 acl_save_exec_prefix="$exec_prefix" 27071 exec_prefix="$acl_final_exec_prefix" 27072 eval x=\"$x\" 27073 exec_prefix="$acl_save_exec_prefix" 27074 prefix="$acl_save_prefix" 27075 27076 if test "X$x" = "X$element"; then 27077 haveit=yes 27078 break 27079 fi 27080 done 27081 if test -z "$haveit"; then 27082 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 27083 fi 27084 done 27085 27086 fi 27087 27088 27089cat >>confdefs.h <<\_ACEOF 27090#define HAVE_GETTEXT 1 27091_ACEOF 27092 27093 27094cat >>confdefs.h <<\_ACEOF 27095#define HAVE_DCGETTEXT 1 27096_ACEOF 27097 27098 fi 27099 27100 POSUB=po 27101 fi 27102 27103 27104 27105 INTLLIBS="$LIBINTL" 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168# Check whether --enable-i18n was given. 27169if test "${enable_i18n+set}" = set; then 27170 enableval=$enable_i18n; 27171else 27172 enable_i18n=yes 27173fi 27174 27175if test "x$enable_i18n" = xno; then 27176 ac_cv_func_wcscoll=false 27177fi 27178 27179# Check whether --enable-regex-tests was given. 27180if test "${enable_regex_tests+set}" = set; then 27181 enableval=$enable_regex_tests; if test "x$with_included_regex" = xno; then 27182 enable_regex_tests=no 27183fi 27184else 27185 enable_regex_tests=$with_included_regex 27186fi 27187 27188 27189 if test "x$enable_regex_tests" = xyes; then 27190 TEST_REGEX_TRUE= 27191 TEST_REGEX_FALSE='#' 27192else 27193 TEST_REGEX_TRUE='#' 27194 TEST_REGEX_FALSE= 27195fi 27196 27197if test "x$enable_regex_tests" = xyes; then 27198 27199cat >>confdefs.h <<_ACEOF 27200#define _REGEX_RE_COMP 1 27201_ACEOF 27202 27203fi 27204 27205# Check whether we are able to follow symlinks 27206{ $as_echo "$as_me:$LINENO: checking for lstat" >&5 27207$as_echo_n "checking for lstat... " >&6; } 27208if test "${ac_cv_func_lstat+set}" = set; then 27209 $as_echo_n "(cached) " >&6 27210else 27211 cat >conftest.$ac_ext <<_ACEOF 27212/* confdefs.h. */ 27213_ACEOF 27214cat confdefs.h >>conftest.$ac_ext 27215cat >>conftest.$ac_ext <<_ACEOF 27216/* end confdefs.h. */ 27217/* Define lstat to an innocuous variant, in case <limits.h> declares lstat. 27218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27219#define lstat innocuous_lstat 27220 27221/* System header to define __stub macros and hopefully few prototypes, 27222 which can conflict with char lstat (); below. 27223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27224 <limits.h> exists even on freestanding compilers. */ 27225 27226#ifdef __STDC__ 27227# include <limits.h> 27228#else 27229# include <assert.h> 27230#endif 27231 27232#undef lstat 27233 27234/* Override any GCC internal prototype to avoid an error. 27235 Use char because int might match the return type of a GCC 27236 builtin and then its argument prototype would still apply. */ 27237#ifdef __cplusplus 27238extern "C" 27239#endif 27240char lstat (); 27241/* The GNU C library defines this for functions which it implements 27242 to always fail with ENOSYS. Some functions are actually named 27243 something starting with __ and the normal name is an alias. */ 27244#if defined __stub_lstat || defined __stub___lstat 27245choke me 27246#endif 27247 27248int 27249main () 27250{ 27251return lstat (); 27252 ; 27253 return 0; 27254} 27255_ACEOF 27256rm -f conftest.$ac_objext conftest$ac_exeext 27257if { (ac_try="$ac_link" 27258case "(($ac_try" in 27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27260 *) ac_try_echo=$ac_try;; 27261esac 27262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27263$as_echo "$ac_try_echo") >&5 27264 (eval "$ac_link") 2>conftest.er1 27265 ac_status=$? 27266 grep -v '^ *+' conftest.er1 >conftest.err 27267 rm -f conftest.er1 27268 cat conftest.err >&5 27269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27270 (exit $ac_status); } && { 27271 test -z "$ac_c_werror_flag" || 27272 test ! -s conftest.err 27273 } && test -s conftest$ac_exeext && { 27274 test "$cross_compiling" = yes || 27275 $as_test_x conftest$ac_exeext 27276 }; then 27277 ac_cv_func_lstat=yes 27278else 27279 $as_echo "$as_me: failed program was:" >&5 27280sed 's/^/| /' conftest.$ac_ext >&5 27281 27282 ac_cv_func_lstat=no 27283fi 27284 27285rm -rf conftest.dSYM 27286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27287 conftest$ac_exeext conftest.$ac_ext 27288fi 27289{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5 27290$as_echo "$ac_cv_func_lstat" >&6; } 27291if test "x$ac_cv_func_lstat" = x""yes; then 27292 have_lstat=yes 27293fi 27294 27295{ $as_echo "$as_me:$LINENO: checking for readlink" >&5 27296$as_echo_n "checking for readlink... " >&6; } 27297if test "${ac_cv_func_readlink+set}" = set; then 27298 $as_echo_n "(cached) " >&6 27299else 27300 cat >conftest.$ac_ext <<_ACEOF 27301/* confdefs.h. */ 27302_ACEOF 27303cat confdefs.h >>conftest.$ac_ext 27304cat >>conftest.$ac_ext <<_ACEOF 27305/* end confdefs.h. */ 27306/* Define readlink to an innocuous variant, in case <limits.h> declares readlink. 27307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27308#define readlink innocuous_readlink 27309 27310/* System header to define __stub macros and hopefully few prototypes, 27311 which can conflict with char readlink (); below. 27312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27313 <limits.h> exists even on freestanding compilers. */ 27314 27315#ifdef __STDC__ 27316# include <limits.h> 27317#else 27318# include <assert.h> 27319#endif 27320 27321#undef readlink 27322 27323/* Override any GCC internal prototype to avoid an error. 27324 Use char because int might match the return type of a GCC 27325 builtin and then its argument prototype would still apply. */ 27326#ifdef __cplusplus 27327extern "C" 27328#endif 27329char readlink (); 27330/* The GNU C library defines this for functions which it implements 27331 to always fail with ENOSYS. Some functions are actually named 27332 something starting with __ and the normal name is an alias. */ 27333#if defined __stub_readlink || defined __stub___readlink 27334choke me 27335#endif 27336 27337int 27338main () 27339{ 27340return readlink (); 27341 ; 27342 return 0; 27343} 27344_ACEOF 27345rm -f conftest.$ac_objext conftest$ac_exeext 27346if { (ac_try="$ac_link" 27347case "(($ac_try" in 27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27349 *) ac_try_echo=$ac_try;; 27350esac 27351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27352$as_echo "$ac_try_echo") >&5 27353 (eval "$ac_link") 2>conftest.er1 27354 ac_status=$? 27355 grep -v '^ *+' conftest.er1 >conftest.err 27356 rm -f conftest.er1 27357 cat conftest.err >&5 27358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27359 (exit $ac_status); } && { 27360 test -z "$ac_c_werror_flag" || 27361 test ! -s conftest.err 27362 } && test -s conftest$ac_exeext && { 27363 test "$cross_compiling" = yes || 27364 $as_test_x conftest$ac_exeext 27365 }; then 27366 ac_cv_func_readlink=yes 27367else 27368 $as_echo "$as_me: failed program was:" >&5 27369sed 's/^/| /' conftest.$ac_ext >&5 27370 27371 ac_cv_func_readlink=no 27372fi 27373 27374rm -rf conftest.dSYM 27375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27376 conftest$ac_exeext conftest.$ac_ext 27377fi 27378{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_readlink" >&5 27379$as_echo "$ac_cv_func_readlink" >&6; } 27380if test "x$ac_cv_func_readlink" = x""yes; then 27381 have_readlink=yes 27382fi 27383 27384if test "x$have_lstat" = xyes -a "x$have_readlink" = xyes; then 27385 27386cat >>confdefs.h <<\_ACEOF 27387#define ENABLE_FOLLOW_SYMLINKS /**/ 27388_ACEOF 27389 27390fi 27391 27392# Determine whether we should run UTF-8 tests by checking if cyrillic 27393# letters are case-folded properly. The test for UTF-8 locales (bot 27394# in general and specifically for a Russian one) is a bit weak, but it 27395# should match exactly what is done in the testsuite. In fact, sed's 27396# logic is portable (though testing it requires care) so it is enough to 27397# have a couple of platforms where these tests pass. Right now, only 27398# Windows and HP/UX do not support the tests. 27399{ $as_echo "$as_me:$LINENO: checking whether UTF-8 case folding tests should pass" >&5 27400$as_echo_n "checking whether UTF-8 case folding tests should pass... " >&6; } 27401if test "$cross_compiling" = yes; then 27402 { $as_echo "$as_me:$LINENO: result: don't care (cross compiling)" >&5 27403$as_echo "don't care (cross compiling)" >&6; }; XFAIL_TESTS= 27404else 27405 cat >conftest.$ac_ext <<_ACEOF 27406/* confdefs.h. */ 27407_ACEOF 27408cat confdefs.h >>conftest.$ac_ext 27409cat >>conftest.$ac_ext <<_ACEOF 27410/* end confdefs.h. */ 27411 27412#include <locale.h> 27413#include <string.h> 27414#include <stdlib.h> 27415#include <wchar.h> 27416#ifdef HAVE_WCTYPE_H 27417#include <wctype.h> 27418#endif 27419 27420int test(void) 27421{ 27422 char in[] = "\xD0\xB4"; 27423 char good[] = "\xD0\x94"; 27424 char out[10]; 27425 wchar_t in_wc, good_wc; 27426 if (mbtowc (&in_wc, in, 3) == -1) 27427 return 0; 27428 if (mbtowc (&good_wc, good, 3) == -1) 27429 return 0; 27430 if (towupper (in_wc) != good_wc) 27431 return 0; 27432 if (wctomb (out, good_wc) != 2) 27433 return 0; 27434 if (memcmp (out, good, 2)) 27435 return 0; 27436 return 1; 27437} 27438 27439int main() 27440{ 27441 char *old; 27442 int len; 27443 27444 /* Try hardcoding a Russian UTF-8 locale. If the name "ru_RU.UTF-8" 27445 is invalid, use setlocale again just to get the current locale. */ 27446 old = setlocale (LC_CTYPE, "ru_RU.UTF-8"); 27447 if (old) 27448 { 27449 if (test()) 27450 exit (0); 27451 } 27452 else 27453 old = setlocale (LC_CTYPE, "C"); 27454 27455 /* Maybe cyrillic case folding is implemented for all UTF-8 locales. 27456 If the current locale is not UTF-8, the test will be skipped. */ 27457 len = strlen (old); 27458 if ((len > 6 && !strcmp (old + len - 6, ".UTF-8")) 27459 || (len > 6 && !strcmp (old + len - 6, ".utf-8")) 27460 || (len > 5 && !strcmp (old + len - 5, ".UTF8")) 27461 || (len > 5 && !strcmp (old + len - 5, ".utf8"))) 27462 27463 /* ok */ 27464 ; 27465 else 27466 exit (1); 27467 27468 /* Run the test in the detected UTF-8 locale. */ 27469 setlocale (LC_CTYPE, old); 27470 exit (!test ()); 27471} 27472 27473_ACEOF 27474rm -f conftest$ac_exeext 27475if { (ac_try="$ac_link" 27476case "(($ac_try" in 27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27478 *) ac_try_echo=$ac_try;; 27479esac 27480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27481$as_echo "$ac_try_echo") >&5 27482 (eval "$ac_link") 2>&5 27483 ac_status=$? 27484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27486 { (case "(($ac_try" in 27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27488 *) ac_try_echo=$ac_try;; 27489esac 27490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27491$as_echo "$ac_try_echo") >&5 27492 (eval "$ac_try") 2>&5 27493 ac_status=$? 27494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27495 (exit $ac_status); }; }; then 27496 { $as_echo "$as_me:$LINENO: result: yes" >&5 27497$as_echo "yes" >&6; }; XFAIL_TESTS= 27498else 27499 $as_echo "$as_me: program exited with status $ac_status" >&5 27500$as_echo "$as_me: failed program was:" >&5 27501sed 's/^/| /' conftest.$ac_ext >&5 27502 27503( exit $ac_status ) 27504{ $as_echo "$as_me:$LINENO: result: no" >&5 27505$as_echo "no" >&6; }; XFAIL_TESTS='utf8-1 utf8-2 utf8-3 utf8-4' 27506fi 27507rm -rf conftest.dSYM 27508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27509fi 27510 27511 27512 27513# Under MinGW, the bsd.sh test fails because of the EOF character (^Z). 27514case $host in 27515 *mingw*) XFAIL_TESTS="$XFAIL_TESTS bsd" ;; 27516 *) ;; 27517esac 27518 27519 27520ac_config_files="$ac_config_files bootstrap.sh" 27521 27522ac_config_files="$ac_config_files testsuite/version.good:testsuite/version.gin" 27523 27524ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in" 27525 27526cat >confcache <<\_ACEOF 27527# This file is a shell script that caches the results of configure 27528# tests run on this system so they can be shared between configure 27529# scripts and configure runs, see configure's option --config-cache. 27530# It is not useful on other systems. If it contains results you don't 27531# want to keep, you may remove or edit it. 27532# 27533# config.status only pays attention to the cache file if you give it 27534# the --recheck option to rerun configure. 27535# 27536# `ac_cv_env_foo' variables (set or unset) will be overridden when 27537# loading this file, other *unset* `ac_cv_foo' will be assigned the 27538# following values. 27539 27540_ACEOF 27541 27542# The following way of writing the cache mishandles newlines in values, 27543# but we know of no workaround that is simple, portable, and efficient. 27544# So, we kill variables containing newlines. 27545# Ultrix sh set writes to stderr and can't be redirected directly, 27546# and sets the high bit in the cache file unless we assign to the vars. 27547( 27548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27549 eval ac_val=\$$ac_var 27550 case $ac_val in #( 27551 *${as_nl}*) 27552 case $ac_var in #( 27553 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 27554$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27555 esac 27556 case $ac_var in #( 27557 _ | IFS | as_nl) ;; #( 27558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27559 *) $as_unset $ac_var ;; 27560 esac ;; 27561 esac 27562 done 27563 27564 (set) 2>&1 | 27565 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27566 *${as_nl}ac_space=\ *) 27567 # `set' does not quote correctly, so add quotes (double-quote 27568 # substitution turns \\\\ into \\, and sed turns \\ into \). 27569 sed -n \ 27570 "s/'/'\\\\''/g; 27571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27572 ;; #( 27573 *) 27574 # `set' quotes correctly as required by POSIX, so do not add quotes. 27575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27576 ;; 27577 esac | 27578 sort 27579) | 27580 sed ' 27581 /^ac_cv_env_/b end 27582 t clear 27583 :clear 27584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27585 t end 27586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27587 :end' >>confcache 27588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27589 if test -w "$cache_file"; then 27590 test "x$cache_file" != "x/dev/null" && 27591 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 27592$as_echo "$as_me: updating cache $cache_file" >&6;} 27593 cat confcache >$cache_file 27594 else 27595 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 27596$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27597 fi 27598fi 27599rm -f confcache 27600 27601test "x$prefix" = xNONE && prefix=$ac_default_prefix 27602# Let make expand exec_prefix. 27603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27604 27605DEFS=-DHAVE_CONFIG_H 27606 27607ac_libobjs= 27608ac_ltlibobjs= 27609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27610 # 1. Remove the extension, and $U if already installed. 27611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27614 # will be set to the directory where LIBOBJS objects are built. 27615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 27617done 27618LIBOBJS=$ac_libobjs 27619 27620LTLIBOBJS=$ac_ltlibobjs 27621 27622 27623if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27624 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27625Usually this means the macro was only invoked conditionally." >&5 27626$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 27627Usually this means the macro was only invoked conditionally." >&2;} 27628 { (exit 1); exit 1; }; } 27629fi 27630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27631 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27632Usually this means the macro was only invoked conditionally." >&5 27633$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27634Usually this means the macro was only invoked conditionally." >&2;} 27635 { (exit 1); exit 1; }; } 27636fi 27637if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 27638 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. 27639Usually this means the macro was only invoked conditionally." >&5 27640$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. 27641Usually this means the macro was only invoked conditionally." >&2;} 27642 { (exit 1); exit 1; }; } 27643fi 27644 27645 gl_libobjs= 27646 gl_ltlibobjs= 27647 if test -n "$gl_LIBOBJS"; then 27648 # Remove the extension. 27649 sed_drop_objext='s/\.o$//;s/\.obj$//' 27650 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do 27651 gl_libobjs="$gl_libobjs $i.$ac_objext" 27652 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 27653 done 27654 fi 27655 gl_LIBOBJS=$gl_libobjs 27656 27657 gl_LTLIBOBJS=$gl_ltlibobjs 27658 27659 27660 27661 gltests_libobjs= 27662 gltests_ltlibobjs= 27663 if test -n "$gltests_LIBOBJS"; then 27664 # Remove the extension. 27665 sed_drop_objext='s/\.o$//;s/\.obj$//' 27666 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do 27667 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 27668 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 27669 done 27670 fi 27671 gltests_LIBOBJS=$gltests_libobjs 27672 27673 gltests_LTLIBOBJS=$gltests_ltlibobjs 27674 27675 27676if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then 27677 { { $as_echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined. 27678Usually this means the macro was only invoked conditionally." >&5 27679$as_echo "$as_me: error: conditional \"TEST_REGEX\" was never defined. 27680Usually this means the macro was only invoked conditionally." >&2;} 27681 { (exit 1); exit 1; }; } 27682fi 27683 27684: ${CONFIG_STATUS=./config.status} 27685ac_write_fail=0 27686ac_clean_files_save=$ac_clean_files 27687ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27688{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27689$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27690cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27691#! $SHELL 27692# Generated by $as_me. 27693# Run this file to recreate the current configuration. 27694# Compiler output produced by configure, useful for debugging 27695# configure, is in config.log if it exists. 27696 27697debug=false 27698ac_cs_recheck=false 27699ac_cs_silent=false 27700SHELL=\${CONFIG_SHELL-$SHELL} 27701_ACEOF 27702 27703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27704## --------------------- ## 27705## M4sh Initialization. ## 27706## --------------------- ## 27707 27708# Be more Bourne compatible 27709DUALCASE=1; export DUALCASE # for MKS sh 27710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27711 emulate sh 27712 NULLCMD=: 27713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27714 # is contrary to our usage. Disable this feature. 27715 alias -g '${1+"$@"}'='"$@"' 27716 setopt NO_GLOB_SUBST 27717else 27718 case `(set -o) 2>/dev/null` in 27719 *posix*) set -o posix ;; 27720esac 27721 27722fi 27723 27724 27725 27726 27727# PATH needs CR 27728# Avoid depending upon Character Ranges. 27729as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27730as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27731as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27732as_cr_digits='0123456789' 27733as_cr_alnum=$as_cr_Letters$as_cr_digits 27734 27735as_nl=' 27736' 27737export as_nl 27738# Printing a long string crashes Solaris 7 /usr/bin/printf. 27739as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27740as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27741as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27742if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27743 as_echo='printf %s\n' 27744 as_echo_n='printf %s' 27745else 27746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27748 as_echo_n='/usr/ucb/echo -n' 27749 else 27750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27751 as_echo_n_body='eval 27752 arg=$1; 27753 case $arg in 27754 *"$as_nl"*) 27755 expr "X$arg" : "X\\(.*\\)$as_nl"; 27756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27757 esac; 27758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27759 ' 27760 export as_echo_n_body 27761 as_echo_n='sh -c $as_echo_n_body as_echo' 27762 fi 27763 export as_echo_body 27764 as_echo='sh -c $as_echo_body as_echo' 27765fi 27766 27767# The user is always right. 27768if test "${PATH_SEPARATOR+set}" != set; then 27769 PATH_SEPARATOR=: 27770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27772 PATH_SEPARATOR=';' 27773 } 27774fi 27775 27776# Support unset when possible. 27777if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27778 as_unset=unset 27779else 27780 as_unset=false 27781fi 27782 27783 27784# IFS 27785# We need space, tab and new line, in precisely that order. Quoting is 27786# there to prevent editors from complaining about space-tab. 27787# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27788# splitting by setting IFS to empty value.) 27789IFS=" "" $as_nl" 27790 27791# Find who we are. Look in the path if we contain no directory separator. 27792case $0 in 27793 *[\\/]* ) as_myself=$0 ;; 27794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27795for as_dir in $PATH 27796do 27797 IFS=$as_save_IFS 27798 test -z "$as_dir" && as_dir=. 27799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27800done 27801IFS=$as_save_IFS 27802 27803 ;; 27804esac 27805# We did not find ourselves, most probably we were run as `sh COMMAND' 27806# in which case we are not to be found in the path. 27807if test "x$as_myself" = x; then 27808 as_myself=$0 27809fi 27810if test ! -f "$as_myself"; then 27811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27812 { (exit 1); exit 1; } 27813fi 27814 27815# Work around bugs in pre-3.0 UWIN ksh. 27816for as_var in ENV MAIL MAILPATH 27817do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27818done 27819PS1='$ ' 27820PS2='> ' 27821PS4='+ ' 27822 27823# NLS nuisances. 27824LC_ALL=C 27825export LC_ALL 27826LANGUAGE=C 27827export LANGUAGE 27828 27829# Required to use basename. 27830if expr a : '\(a\)' >/dev/null 2>&1 && 27831 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27832 as_expr=expr 27833else 27834 as_expr=false 27835fi 27836 27837if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27838 as_basename=basename 27839else 27840 as_basename=false 27841fi 27842 27843 27844# Name of the executable. 27845as_me=`$as_basename -- "$0" || 27846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27847 X"$0" : 'X\(//\)$' \| \ 27848 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27849$as_echo X/"$0" | 27850 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27851 s//\1/ 27852 q 27853 } 27854 /^X\/\(\/\/\)$/{ 27855 s//\1/ 27856 q 27857 } 27858 /^X\/\(\/\).*/{ 27859 s//\1/ 27860 q 27861 } 27862 s/.*/./; q'` 27863 27864# CDPATH. 27865$as_unset CDPATH 27866 27867 27868 27869 as_lineno_1=$LINENO 27870 as_lineno_2=$LINENO 27871 test "x$as_lineno_1" != "x$as_lineno_2" && 27872 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 27873 27874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27875 # uniformly replaced by the line number. The first 'sed' inserts a 27876 # line-number line after each line using $LINENO; the second 'sed' 27877 # does the real work. The second script uses 'N' to pair each 27878 # line-number line with the line containing $LINENO, and appends 27879 # trailing '-' during substitution so that $LINENO is not a special 27880 # case at line end. 27881 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27882 # scripts with optimization help from Paolo Bonzini. Blame Lee 27883 # E. McMahon (1931-1989) for sed's syntax. :-) 27884 sed -n ' 27885 p 27886 /[$]LINENO/= 27887 ' <$as_myself | 27888 sed ' 27889 s/[$]LINENO.*/&-/ 27890 t lineno 27891 b 27892 :lineno 27893 N 27894 :loop 27895 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 27896 t loop 27897 s/-\n.*// 27898 ' >$as_me.lineno && 27899 chmod +x "$as_me.lineno" || 27900 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 27901 { (exit 1); exit 1; }; } 27902 27903 # Don't try to exec as it changes $[0], causing all sort of problems 27904 # (the dirname of $[0] is not the place where we might find the 27905 # original and so on. Autoconf is especially sensitive to this). 27906 . "./$as_me.lineno" 27907 # Exit status is that of the last command. 27908 exit 27909} 27910 27911 27912if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27913 as_dirname=dirname 27914else 27915 as_dirname=false 27916fi 27917 27918ECHO_C= ECHO_N= ECHO_T= 27919case `echo -n x` in 27920-n*) 27921 case `echo 'x\c'` in 27922 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27923 *) ECHO_C='\c';; 27924 esac;; 27925*) 27926 ECHO_N='-n';; 27927esac 27928if expr a : '\(a\)' >/dev/null 2>&1 && 27929 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27930 as_expr=expr 27931else 27932 as_expr=false 27933fi 27934 27935rm -f conf$$ conf$$.exe conf$$.file 27936if test -d conf$$.dir; then 27937 rm -f conf$$.dir/conf$$.file 27938else 27939 rm -f conf$$.dir 27940 mkdir conf$$.dir 2>/dev/null 27941fi 27942if (echo >conf$$.file) 2>/dev/null; then 27943 if ln -s conf$$.file conf$$ 2>/dev/null; then 27944 as_ln_s='ln -s' 27945 # ... but there are two gotchas: 27946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27948 # In both cases, we have to default to `cp -p'. 27949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27950 as_ln_s='cp -p' 27951 elif ln conf$$.file conf$$ 2>/dev/null; then 27952 as_ln_s=ln 27953 else 27954 as_ln_s='cp -p' 27955 fi 27956else 27957 as_ln_s='cp -p' 27958fi 27959rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27960rmdir conf$$.dir 2>/dev/null 27961 27962if mkdir -p . 2>/dev/null; then 27963 as_mkdir_p=: 27964else 27965 test -d ./-p && rmdir ./-p 27966 as_mkdir_p=false 27967fi 27968 27969if test -x / >/dev/null 2>&1; then 27970 as_test_x='test -x' 27971else 27972 if ls -dL / >/dev/null 2>&1; then 27973 as_ls_L_option=L 27974 else 27975 as_ls_L_option= 27976 fi 27977 as_test_x=' 27978 eval sh -c '\'' 27979 if test -d "$1"; then 27980 test -d "$1/."; 27981 else 27982 case $1 in 27983 -*)set "./$1";; 27984 esac; 27985 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 27986 ???[sx]*):;;*)false;;esac;fi 27987 '\'' sh 27988 ' 27989fi 27990as_executable_p=$as_test_x 27991 27992# Sed expression to map a string onto a valid CPP name. 27993as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27994 27995# Sed expression to map a string onto a valid variable name. 27996as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27997 27998 27999exec 6>&1 28000 28001# Save the log message, to keep $[0] and so on meaningful, and to 28002# report actual input values of CONFIG_FILES etc. instead of their 28003# values after options handling. 28004ac_log=" 28005This file was extended by sed $as_me 4.2.1, which was 28006generated by GNU Autoconf 2.63. Invocation command line was 28007 28008 CONFIG_FILES = $CONFIG_FILES 28009 CONFIG_HEADERS = $CONFIG_HEADERS 28010 CONFIG_LINKS = $CONFIG_LINKS 28011 CONFIG_COMMANDS = $CONFIG_COMMANDS 28012 $ $0 $@ 28013 28014on `(hostname || uname -n) 2>/dev/null | sed 1q` 28015" 28016 28017_ACEOF 28018 28019case $ac_config_files in *" 28020"*) set x $ac_config_files; shift; ac_config_files=$*;; 28021esac 28022 28023case $ac_config_headers in *" 28024"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 28025esac 28026 28027 28028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28029# Files that config.status was made for. 28030config_files="$ac_config_files" 28031config_headers="$ac_config_headers" 28032config_commands="$ac_config_commands" 28033 28034_ACEOF 28035 28036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28037ac_cs_usage="\ 28038\`$as_me' instantiates files from templates according to the 28039current configuration. 28040 28041Usage: $0 [OPTION]... [FILE]... 28042 28043 -h, --help print this help, then exit 28044 -V, --version print version number and configuration settings, then exit 28045 -q, --quiet, --silent 28046 do not print progress messages 28047 -d, --debug don't remove temporary files 28048 --recheck update $as_me by reconfiguring in the same conditions 28049 --file=FILE[:TEMPLATE] 28050 instantiate the configuration file FILE 28051 --header=FILE[:TEMPLATE] 28052 instantiate the configuration header FILE 28053 28054Configuration files: 28055$config_files 28056 28057Configuration headers: 28058$config_headers 28059 28060Configuration commands: 28061$config_commands 28062 28063Report bugs to <bug-autoconf@gnu.org>." 28064 28065_ACEOF 28066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28067ac_cs_version="\\ 28068sed config.status 4.2.1 28069configured by $0, generated by GNU Autoconf 2.63, 28070 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 28071 28072Copyright (C) 2008 Free Software Foundation, Inc. 28073This config.status script is free software; the Free Software Foundation 28074gives unlimited permission to copy, distribute and modify it." 28075 28076ac_pwd='$ac_pwd' 28077srcdir='$srcdir' 28078INSTALL='$INSTALL' 28079MKDIR_P='$MKDIR_P' 28080AWK='$AWK' 28081test -n "\$AWK" || AWK=awk 28082_ACEOF 28083 28084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28085# The default lists apply if the user does not specify any file. 28086ac_need_defaults=: 28087while test $# != 0 28088do 28089 case $1 in 28090 --*=*) 28091 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28092 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 28093 ac_shift=: 28094 ;; 28095 *) 28096 ac_option=$1 28097 ac_optarg=$2 28098 ac_shift=shift 28099 ;; 28100 esac 28101 28102 case $ac_option in 28103 # Handling of the options. 28104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28105 ac_cs_recheck=: ;; 28106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 28107 $as_echo "$ac_cs_version"; exit ;; 28108 --debug | --debu | --deb | --de | --d | -d ) 28109 debug=: ;; 28110 --file | --fil | --fi | --f ) 28111 $ac_shift 28112 case $ac_optarg in 28113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28114 esac 28115 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 28116 ac_need_defaults=false;; 28117 --header | --heade | --head | --hea ) 28118 $ac_shift 28119 case $ac_optarg in 28120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28121 esac 28122 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 28123 ac_need_defaults=false;; 28124 --he | --h) 28125 # Conflict between --help and --header 28126 { $as_echo "$as_me: error: ambiguous option: $1 28127Try \`$0 --help' for more information." >&2 28128 { (exit 1); exit 1; }; };; 28129 --help | --hel | -h ) 28130 $as_echo "$ac_cs_usage"; exit ;; 28131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28132 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28133 ac_cs_silent=: ;; 28134 28135 # This is an error. 28136 -*) { $as_echo "$as_me: error: unrecognized option: $1 28137Try \`$0 --help' for more information." >&2 28138 { (exit 1); exit 1; }; } ;; 28139 28140 *) ac_config_targets="$ac_config_targets $1" 28141 ac_need_defaults=false ;; 28142 28143 esac 28144 shift 28145done 28146 28147ac_configure_extra_args= 28148 28149if $ac_cs_silent; then 28150 exec 6>/dev/null 28151 ac_configure_extra_args="$ac_configure_extra_args --silent" 28152fi 28153 28154_ACEOF 28155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28156if \$ac_cs_recheck; then 28157 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28158 shift 28159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 28160 CONFIG_SHELL='$SHELL' 28161 export CONFIG_SHELL 28162 exec "\$@" 28163fi 28164 28165_ACEOF 28166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28167exec 5>>config.log 28168{ 28169 echo 28170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28171## Running $as_me. ## 28172_ASBOX 28173 $as_echo "$ac_log" 28174} >&5 28175 28176_ACEOF 28177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28178# 28179# INIT-COMMANDS 28180# 28181AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28182# Capture the value of obsolete ALL_LINGUAS because we need it to compute 28183 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 28184 # from automake < 1.5. 28185 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 28186 # Capture the value of LINGUAS because we need it to compute CATALOGS. 28187 LINGUAS="${LINGUAS-%UNSET%}" 28188 28189 28190_ACEOF 28191 28192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28193 28194# Handling of arguments. 28195for ac_config_target in $ac_config_targets 28196do 28197 case $ac_config_target in 28198 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 28199 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28200 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 28201 "bootstrap.sh") CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;; 28202 "testsuite/version.good") CONFIG_FILES="$CONFIG_FILES testsuite/version.good:testsuite/version.gin" ;; 28203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28204 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 28205 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 28206 "sed/Makefile") CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;; 28207 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 28208 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 28209 28210 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 28211$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28212 { (exit 1); exit 1; }; };; 28213 esac 28214done 28215 28216 28217# If the user did not use the arguments to specify the items to instantiate, 28218# then the envvar interface is used. Set only those that are not. 28219# We use the long form for the default assignment because of an extremely 28220# bizarre bug on SunOS 4.1.3. 28221if $ac_need_defaults; then 28222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28225fi 28226 28227# Have a temporary directory for convenience. Make it in the build tree 28228# simply because there is no reason against having it here, and in addition, 28229# creating and moving files from /tmp can sometimes cause problems. 28230# Hook for its removal unless debugging. 28231# Note that there is a small window in which the directory will not be cleaned: 28232# after its creation but before its name has been assigned to `$tmp'. 28233$debug || 28234{ 28235 tmp= 28236 trap 'exit_status=$? 28237 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 28238' 0 28239 trap '{ (exit 1); exit 1; }' 1 2 13 15 28240} 28241# Create a (secure) tmp directory for tmp files. 28242 28243{ 28244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28245 test -n "$tmp" && test -d "$tmp" 28246} || 28247{ 28248 tmp=./conf$$-$RANDOM 28249 (umask 077 && mkdir "$tmp") 28250} || 28251{ 28252 $as_echo "$as_me: cannot create a temporary directory in ." >&2 28253 { (exit 1); exit 1; } 28254} 28255 28256# Set up the scripts for CONFIG_FILES section. 28257# No need to generate them if there are no CONFIG_FILES. 28258# This happens for instance with `./config.status config.h'. 28259if test -n "$CONFIG_FILES"; then 28260 28261 28262ac_cr=' 28263' 28264ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28265if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28266 ac_cs_awk_cr='\\r' 28267else 28268 ac_cs_awk_cr=$ac_cr 28269fi 28270 28271echo 'BEGIN {' >"$tmp/subs1.awk" && 28272_ACEOF 28273 28274 28275{ 28276 echo "cat >conf$$subs.awk <<_ACEOF" && 28277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28278 echo "_ACEOF" 28279} >conf$$subs.sh || 28280 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28281$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28282 { (exit 1); exit 1; }; } 28283ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 28284ac_delim='%!_!# ' 28285for ac_last_try in false false false false false :; do 28286 . ./conf$$subs.sh || 28287 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28288$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28289 { (exit 1); exit 1; }; } 28290 28291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28292 if test $ac_delim_n = $ac_delim_num; then 28293 break 28294 elif $ac_last_try; then 28295 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28296$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28297 { (exit 1); exit 1; }; } 28298 else 28299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28300 fi 28301done 28302rm -f conf$$subs.sh 28303 28304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28305cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 28306_ACEOF 28307sed -n ' 28308h 28309s/^/S["/; s/!.*/"]=/ 28310p 28311g 28312s/^[^!]*!// 28313:repl 28314t repl 28315s/'"$ac_delim"'$// 28316t delim 28317:nl 28318h 28319s/\(.\{148\}\).*/\1/ 28320t more1 28321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28322p 28323n 28324b repl 28325:more1 28326s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28327p 28328g 28329s/.\{148\}// 28330t nl 28331:delim 28332h 28333s/\(.\{148\}\).*/\1/ 28334t more2 28335s/["\\]/\\&/g; s/^/"/; s/$/"/ 28336p 28337b 28338:more2 28339s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28340p 28341g 28342s/.\{148\}// 28343t delim 28344' <conf$$subs.awk | sed ' 28345/^[^""]/{ 28346 N 28347 s/\n// 28348} 28349' >>$CONFIG_STATUS || ac_write_fail=1 28350rm -f conf$$subs.awk 28351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28352_ACAWK 28353cat >>"\$tmp/subs1.awk" <<_ACAWK && 28354 for (key in S) S_is_set[key] = 1 28355 FS = "" 28356 28357} 28358{ 28359 line = $ 0 28360 nfields = split(line, field, "@") 28361 substed = 0 28362 len = length(field[1]) 28363 for (i = 2; i < nfields; i++) { 28364 key = field[i] 28365 keylen = length(key) 28366 if (S_is_set[key]) { 28367 value = S[key] 28368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28369 len += length(value) + length(field[++i]) 28370 substed = 1 28371 } else 28372 len += 1 + keylen 28373 } 28374 28375 print line 28376} 28377 28378_ACAWK 28379_ACEOF 28380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28383else 28384 cat 28385fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 28386 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 28387$as_echo "$as_me: error: could not setup config files machinery" >&2;} 28388 { (exit 1); exit 1; }; } 28389_ACEOF 28390 28391# VPATH may cause trouble with some makes, so we remove $(srcdir), 28392# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28393# trailing colons and then remove the whole line if VPATH becomes empty 28394# (actually we leave an empty line to preserve line numbers). 28395if test "x$srcdir" = x.; then 28396 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28397s/:*\$(srcdir):*/:/ 28398s/:*\${srcdir}:*/:/ 28399s/:*@srcdir@:*/:/ 28400s/^\([^=]*=[ ]*\):*/\1/ 28401s/:*$// 28402s/^[^=]*=[ ]*$// 28403}' 28404fi 28405 28406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28407fi # test -n "$CONFIG_FILES" 28408 28409# Set up the scripts for CONFIG_HEADERS section. 28410# No need to generate them if there are no CONFIG_HEADERS. 28411# This happens for instance with `./config.status Makefile'. 28412if test -n "$CONFIG_HEADERS"; then 28413cat >"$tmp/defines.awk" <<\_ACAWK || 28414BEGIN { 28415_ACEOF 28416 28417# Transform confdefs.h into an awk script `defines.awk', embedded as 28418# here-document in config.status, that substitutes the proper values into 28419# config.h.in to produce config.h. 28420 28421# Create a delimiter string that does not exist in confdefs.h, to ease 28422# handling of long lines. 28423ac_delim='%!_!# ' 28424for ac_last_try in false false :; do 28425 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 28426 if test -z "$ac_t"; then 28427 break 28428 elif $ac_last_try; then 28429 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 28430$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 28431 { (exit 1); exit 1; }; } 28432 else 28433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28434 fi 28435done 28436 28437# For the awk script, D is an array of macro values keyed by name, 28438# likewise P contains macro parameters if any. Preserve backslash 28439# newline sequences. 28440 28441ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28442sed -n ' 28443s/.\{148\}/&'"$ac_delim"'/g 28444t rset 28445:rset 28446s/^[ ]*#[ ]*define[ ][ ]*/ / 28447t def 28448d 28449:def 28450s/\\$// 28451t bsnl 28452s/["\\]/\\&/g 28453s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28454D["\1"]=" \3"/p 28455s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28456d 28457:bsnl 28458s/["\\]/\\&/g 28459s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28460D["\1"]=" \3\\\\\\n"\\/p 28461t cont 28462s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28463t cont 28464d 28465:cont 28466n 28467s/.\{148\}/&'"$ac_delim"'/g 28468t clear 28469:clear 28470s/\\$// 28471t bsnlc 28472s/["\\]/\\&/g; s/^/"/; s/$/"/p 28473d 28474:bsnlc 28475s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28476b cont 28477' <confdefs.h | sed ' 28478s/'"$ac_delim"'/"\\\ 28479"/g' >>$CONFIG_STATUS || ac_write_fail=1 28480 28481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28482 for (key in D) D_is_set[key] = 1 28483 FS = "" 28484} 28485/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28486 line = \$ 0 28487 split(line, arg, " ") 28488 if (arg[1] == "#") { 28489 defundef = arg[2] 28490 mac1 = arg[3] 28491 } else { 28492 defundef = substr(arg[1], 2) 28493 mac1 = arg[2] 28494 } 28495 split(mac1, mac2, "(") #) 28496 macro = mac2[1] 28497 prefix = substr(line, 1, index(line, defundef) - 1) 28498 if (D_is_set[macro]) { 28499 # Preserve the white space surrounding the "#". 28500 print prefix "define", macro P[macro] D[macro] 28501 next 28502 } else { 28503 # Replace #undef with comments. This is necessary, for example, 28504 # in the case of _POSIX_SOURCE, which is predefined and required 28505 # on some systems where configure will not decide to define it. 28506 if (defundef == "undef") { 28507 print "/*", prefix defundef, macro, "*/" 28508 next 28509 } 28510 } 28511} 28512{ print } 28513_ACAWK 28514_ACEOF 28515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28516 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 28517$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 28518 { (exit 1); exit 1; }; } 28519fi # test -n "$CONFIG_HEADERS" 28520 28521 28522eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28523shift 28524for ac_tag 28525do 28526 case $ac_tag in 28527 :[FHLC]) ac_mode=$ac_tag; continue;; 28528 esac 28529 case $ac_mode$ac_tag in 28530 :[FHL]*:*);; 28531 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 28532$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 28533 { (exit 1); exit 1; }; };; 28534 :[FH]-) ac_tag=-:-;; 28535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28536 esac 28537 ac_save_IFS=$IFS 28538 IFS=: 28539 set x $ac_tag 28540 IFS=$ac_save_IFS 28541 shift 28542 ac_file=$1 28543 shift 28544 28545 case $ac_mode in 28546 :L) ac_source=$1;; 28547 :[FH]) 28548 ac_file_inputs= 28549 for ac_f 28550 do 28551 case $ac_f in 28552 -) ac_f="$tmp/stdin";; 28553 *) # Look for the file first in the build tree, then in the source tree 28554 # (if the path is not absolute). The absolute path cannot be DOS-style, 28555 # because $ac_f cannot contain `:'. 28556 test -f "$ac_f" || 28557 case $ac_f in 28558 [\\/$]*) false;; 28559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28560 esac || 28561 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 28562$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 28563 { (exit 1); exit 1; }; };; 28564 esac 28565 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28566 ac_file_inputs="$ac_file_inputs '$ac_f'" 28567 done 28568 28569 # Let's still pretend it is `configure' which instantiates (i.e., don't 28570 # use $as_me), people would be surprised to read: 28571 # /* config.h. Generated by config.status. */ 28572 configure_input='Generated from '` 28573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28574 `' by configure.' 28575 if test x"$ac_file" != x-; then 28576 configure_input="$ac_file. $configure_input" 28577 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 28578$as_echo "$as_me: creating $ac_file" >&6;} 28579 fi 28580 # Neutralize special characters interpreted by sed in replacement strings. 28581 case $configure_input in #( 28582 *\&* | *\|* | *\\* ) 28583 ac_sed_conf_input=`$as_echo "$configure_input" | 28584 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28585 *) ac_sed_conf_input=$configure_input;; 28586 esac 28587 28588 case $ac_tag in 28589 *:-:* | *:-) cat >"$tmp/stdin" \ 28590 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28591$as_echo "$as_me: error: could not create $ac_file" >&2;} 28592 { (exit 1); exit 1; }; } ;; 28593 esac 28594 ;; 28595 esac 28596 28597 ac_dir=`$as_dirname -- "$ac_file" || 28598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28599 X"$ac_file" : 'X\(//\)[^/]' \| \ 28600 X"$ac_file" : 'X\(//\)$' \| \ 28601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28602$as_echo X"$ac_file" | 28603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28604 s//\1/ 28605 q 28606 } 28607 /^X\(\/\/\)[^/].*/{ 28608 s//\1/ 28609 q 28610 } 28611 /^X\(\/\/\)$/{ 28612 s//\1/ 28613 q 28614 } 28615 /^X\(\/\).*/{ 28616 s//\1/ 28617 q 28618 } 28619 s/.*/./; q'` 28620 { as_dir="$ac_dir" 28621 case $as_dir in #( 28622 -*) as_dir=./$as_dir;; 28623 esac 28624 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28625 as_dirs= 28626 while :; do 28627 case $as_dir in #( 28628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28629 *) as_qdir=$as_dir;; 28630 esac 28631 as_dirs="'$as_qdir' $as_dirs" 28632 as_dir=`$as_dirname -- "$as_dir" || 28633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28634 X"$as_dir" : 'X\(//\)[^/]' \| \ 28635 X"$as_dir" : 'X\(//\)$' \| \ 28636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28637$as_echo X"$as_dir" | 28638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28639 s//\1/ 28640 q 28641 } 28642 /^X\(\/\/\)[^/].*/{ 28643 s//\1/ 28644 q 28645 } 28646 /^X\(\/\/\)$/{ 28647 s//\1/ 28648 q 28649 } 28650 /^X\(\/\).*/{ 28651 s//\1/ 28652 q 28653 } 28654 s/.*/./; q'` 28655 test -d "$as_dir" && break 28656 done 28657 test -z "$as_dirs" || eval "mkdir $as_dirs" 28658 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28659$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 28660 { (exit 1); exit 1; }; }; } 28661 ac_builddir=. 28662 28663case "$ac_dir" in 28664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28665*) 28666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28667 # A ".." for each directory in $ac_dir_suffix. 28668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28669 case $ac_top_builddir_sub in 28670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28672 esac ;; 28673esac 28674ac_abs_top_builddir=$ac_pwd 28675ac_abs_builddir=$ac_pwd$ac_dir_suffix 28676# for backward compatibility: 28677ac_top_builddir=$ac_top_build_prefix 28678 28679case $srcdir in 28680 .) # We are building in place. 28681 ac_srcdir=. 28682 ac_top_srcdir=$ac_top_builddir_sub 28683 ac_abs_top_srcdir=$ac_pwd ;; 28684 [\\/]* | ?:[\\/]* ) # Absolute name. 28685 ac_srcdir=$srcdir$ac_dir_suffix; 28686 ac_top_srcdir=$srcdir 28687 ac_abs_top_srcdir=$srcdir ;; 28688 *) # Relative name. 28689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28690 ac_top_srcdir=$ac_top_build_prefix$srcdir 28691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28692esac 28693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28694 28695 28696 case $ac_mode in 28697 :F) 28698 # 28699 # CONFIG_FILE 28700 # 28701 28702 case $INSTALL in 28703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28705 esac 28706 ac_MKDIR_P=$MKDIR_P 28707 case $MKDIR_P in 28708 [\\/$]* | ?:[\\/]* ) ;; 28709 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28710 esac 28711_ACEOF 28712 28713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28714# If the template does not know about datarootdir, expand it. 28715# FIXME: This hack should be removed a few years after 2.60. 28716ac_datarootdir_hack=; ac_datarootdir_seen= 28717 28718ac_sed_dataroot=' 28719/datarootdir/ { 28720 p 28721 q 28722} 28723/@datadir@/p 28724/@docdir@/p 28725/@infodir@/p 28726/@localedir@/p 28727/@mandir@/p 28728' 28729case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28730*datarootdir*) ac_datarootdir_seen=yes;; 28731*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28732 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28733$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28734_ACEOF 28735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28736 ac_datarootdir_hack=' 28737 s&@datadir@&$datadir&g 28738 s&@docdir@&$docdir&g 28739 s&@infodir@&$infodir&g 28740 s&@localedir@&$localedir&g 28741 s&@mandir@&$mandir&g 28742 s&\\\${datarootdir}&$datarootdir&g' ;; 28743esac 28744_ACEOF 28745 28746# Neutralize VPATH when `$srcdir' = `.'. 28747# Shell code in configure.ac might set extrasub. 28748# FIXME: do we really want to maintain this feature? 28749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28750ac_sed_extra="$ac_vpsub 28751$extrasub 28752_ACEOF 28753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28754:t 28755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28756s|@configure_input@|$ac_sed_conf_input|;t t 28757s&@top_builddir@&$ac_top_builddir_sub&;t t 28758s&@top_build_prefix@&$ac_top_build_prefix&;t t 28759s&@srcdir@&$ac_srcdir&;t t 28760s&@abs_srcdir@&$ac_abs_srcdir&;t t 28761s&@top_srcdir@&$ac_top_srcdir&;t t 28762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28763s&@builddir@&$ac_builddir&;t t 28764s&@abs_builddir@&$ac_abs_builddir&;t t 28765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28766s&@INSTALL@&$ac_INSTALL&;t t 28767s&@MKDIR_P@&$ac_MKDIR_P&;t t 28768$ac_datarootdir_hack 28769" 28770eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 28771 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28772$as_echo "$as_me: error: could not create $ac_file" >&2;} 28773 { (exit 1); exit 1; }; } 28774 28775test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28776 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 28777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 28778 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28779which seems to be undefined. Please make sure it is defined." >&5 28780$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28781which seems to be undefined. Please make sure it is defined." >&2;} 28782 28783 rm -f "$tmp/stdin" 28784 case $ac_file in 28785 -) cat "$tmp/out" && rm -f "$tmp/out";; 28786 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 28787 esac \ 28788 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28789$as_echo "$as_me: error: could not create $ac_file" >&2;} 28790 { (exit 1); exit 1; }; } 28791 ;; 28792 :H) 28793 # 28794 # CONFIG_HEADER 28795 # 28796 if test x"$ac_file" != x-; then 28797 { 28798 $as_echo "/* $configure_input */" \ 28799 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 28800 } >"$tmp/config.h" \ 28801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28802$as_echo "$as_me: error: could not create $ac_file" >&2;} 28803 { (exit 1); exit 1; }; } 28804 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 28805 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28806$as_echo "$as_me: $ac_file is unchanged" >&6;} 28807 else 28808 rm -f "$ac_file" 28809 mv "$tmp/config.h" "$ac_file" \ 28810 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 28811$as_echo "$as_me: error: could not create $ac_file" >&2;} 28812 { (exit 1); exit 1; }; } 28813 fi 28814 else 28815 $as_echo "/* $configure_input */" \ 28816 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 28817 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 28818$as_echo "$as_me: error: could not create -" >&2;} 28819 { (exit 1); exit 1; }; } 28820 fi 28821# Compute "$ac_file"'s index in $config_headers. 28822_am_arg="$ac_file" 28823_am_stamp_count=1 28824for _am_header in $config_headers :; do 28825 case $_am_header in 28826 $_am_arg | $_am_arg:* ) 28827 break ;; 28828 * ) 28829 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28830 esac 28831done 28832echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28833$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28834 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28835 X"$_am_arg" : 'X\(//\)$' \| \ 28836 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28837$as_echo X"$_am_arg" | 28838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28839 s//\1/ 28840 q 28841 } 28842 /^X\(\/\/\)[^/].*/{ 28843 s//\1/ 28844 q 28845 } 28846 /^X\(\/\/\)$/{ 28847 s//\1/ 28848 q 28849 } 28850 /^X\(\/\).*/{ 28851 s//\1/ 28852 q 28853 } 28854 s/.*/./; q'`/stamp-h$_am_stamp_count 28855 ;; 28856 28857 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 28858$as_echo "$as_me: executing $ac_file commands" >&6;} 28859 ;; 28860 esac 28861 28862 28863 case $ac_file$ac_mode in 28864 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28865 # Strip MF so we end up with the name of the file. 28866 mf=`echo "$mf" | sed -e 's/:.*$//'` 28867 # Check whether this is an Automake generated Makefile or not. 28868 # We used to match only the files named `Makefile.in', but 28869 # some people rename them; so instead we look at the file content. 28870 # Grep'ing the first line is not enough: some people post-process 28871 # each Makefile.in and add a new line on top of each file to say so. 28872 # Grep'ing the whole file is not good either: AIX grep has a line 28873 # limit of 2048, but all sed's we know have understand at least 4000. 28874 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28875 dirpart=`$as_dirname -- "$mf" || 28876$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28877 X"$mf" : 'X\(//\)[^/]' \| \ 28878 X"$mf" : 'X\(//\)$' \| \ 28879 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28880$as_echo X"$mf" | 28881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28882 s//\1/ 28883 q 28884 } 28885 /^X\(\/\/\)[^/].*/{ 28886 s//\1/ 28887 q 28888 } 28889 /^X\(\/\/\)$/{ 28890 s//\1/ 28891 q 28892 } 28893 /^X\(\/\).*/{ 28894 s//\1/ 28895 q 28896 } 28897 s/.*/./; q'` 28898 else 28899 continue 28900 fi 28901 # Extract the definition of DEPDIR, am__include, and am__quote 28902 # from the Makefile without running `make'. 28903 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28904 test -z "$DEPDIR" && continue 28905 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28906 test -z "am__include" && continue 28907 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28908 # When using ansi2knr, U may be empty or an underscore; expand it 28909 U=`sed -n 's/^U = //p' < "$mf"` 28910 # Find all dependency output files, they are included files with 28911 # $(DEPDIR) in their names. We invoke sed twice because it is the 28912 # simplest approach to changing $(DEPDIR) to its actual value in the 28913 # expansion. 28914 for file in `sed -n " 28915 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28916 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28917 # Make sure the directory exists. 28918 test -f "$dirpart/$file" && continue 28919 fdir=`$as_dirname -- "$file" || 28920$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28921 X"$file" : 'X\(//\)[^/]' \| \ 28922 X"$file" : 'X\(//\)$' \| \ 28923 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28924$as_echo X"$file" | 28925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28926 s//\1/ 28927 q 28928 } 28929 /^X\(\/\/\)[^/].*/{ 28930 s//\1/ 28931 q 28932 } 28933 /^X\(\/\/\)$/{ 28934 s//\1/ 28935 q 28936 } 28937 /^X\(\/\).*/{ 28938 s//\1/ 28939 q 28940 } 28941 s/.*/./; q'` 28942 { as_dir=$dirpart/$fdir 28943 case $as_dir in #( 28944 -*) as_dir=./$as_dir;; 28945 esac 28946 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28947 as_dirs= 28948 while :; do 28949 case $as_dir in #( 28950 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28951 *) as_qdir=$as_dir;; 28952 esac 28953 as_dirs="'$as_qdir' $as_dirs" 28954 as_dir=`$as_dirname -- "$as_dir" || 28955$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28956 X"$as_dir" : 'X\(//\)[^/]' \| \ 28957 X"$as_dir" : 'X\(//\)$' \| \ 28958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28959$as_echo X"$as_dir" | 28960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28961 s//\1/ 28962 q 28963 } 28964 /^X\(\/\/\)[^/].*/{ 28965 s//\1/ 28966 q 28967 } 28968 /^X\(\/\/\)$/{ 28969 s//\1/ 28970 q 28971 } 28972 /^X\(\/\).*/{ 28973 s//\1/ 28974 q 28975 } 28976 s/.*/./; q'` 28977 test -d "$as_dir" && break 28978 done 28979 test -z "$as_dirs" || eval "mkdir $as_dirs" 28980 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28981$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 28982 { (exit 1); exit 1; }; }; } 28983 # echo "creating $dirpart/$file" 28984 echo '# dummy' > "$dirpart/$file" 28985 done 28986done 28987 ;; 28988 "po-directories":C) 28989 for ac_file in $CONFIG_FILES; do 28990 # Support "outfile[:infile[:infile...]]" 28991 case "$ac_file" in 28992 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 28993 esac 28994 # PO directories have a Makefile.in generated from Makefile.in.in. 28995 case "$ac_file" in */Makefile.in) 28996 # Adjust a relative srcdir. 28997 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 28998 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 28999 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 29000 # In autoconf-2.13 it is called $ac_given_srcdir. 29001 # In autoconf-2.50 it is called $srcdir. 29002 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 29003 case "$ac_given_srcdir" in 29004 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 29005 /*) top_srcdir="$ac_given_srcdir" ;; 29006 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 29007 esac 29008 # Treat a directory as a PO directory if and only if it has a 29009 # POTFILES.in file. This allows packages to have multiple PO 29010 # directories under different names or in different locations. 29011 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 29012 rm -f "$ac_dir/POTFILES" 29013 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 29014 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 29015 POMAKEFILEDEPS="POTFILES.in" 29016 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 29017 # on $ac_dir but don't depend on user-specified configuration 29018 # parameters. 29019 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 29020 # The LINGUAS file contains the set of available languages. 29021 if test -n "$OBSOLETE_ALL_LINGUAS"; then 29022 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 29023 fi 29024 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 29025 # Hide the ALL_LINGUAS assigment from automake < 1.5. 29026 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 29027 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 29028 else 29029 # The set of available languages was given in configure.in. 29030 # Hide the ALL_LINGUAS assigment from automake < 1.5. 29031 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 29032 fi 29033 # Compute POFILES 29034 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 29035 # Compute UPDATEPOFILES 29036 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 29037 # Compute DUMMYPOFILES 29038 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 29039 # Compute GMOFILES 29040 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 29041 case "$ac_given_srcdir" in 29042 .) srcdirpre= ;; 29043 *) srcdirpre='$(srcdir)/' ;; 29044 esac 29045 POFILES= 29046 UPDATEPOFILES= 29047 DUMMYPOFILES= 29048 GMOFILES= 29049 for lang in $ALL_LINGUAS; do 29050 POFILES="$POFILES $srcdirpre$lang.po" 29051 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 29052 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 29053 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 29054 done 29055 # CATALOGS depends on both $ac_dir and the user's LINGUAS 29056 # environment variable. 29057 INST_LINGUAS= 29058 if test -n "$ALL_LINGUAS"; then 29059 for presentlang in $ALL_LINGUAS; do 29060 useit=no 29061 if test "%UNSET%" != "$LINGUAS"; then 29062 desiredlanguages="$LINGUAS" 29063 else 29064 desiredlanguages="$ALL_LINGUAS" 29065 fi 29066 for desiredlang in $desiredlanguages; do 29067 # Use the presentlang catalog if desiredlang is 29068 # a. equal to presentlang, or 29069 # b. a variant of presentlang (because in this case, 29070 # presentlang can be used as a fallback for messages 29071 # which are not translated in the desiredlang catalog). 29072 case "$desiredlang" in 29073 "$presentlang"*) useit=yes;; 29074 esac 29075 done 29076 if test $useit = yes; then 29077 INST_LINGUAS="$INST_LINGUAS $presentlang" 29078 fi 29079 done 29080 fi 29081 CATALOGS= 29082 if test -n "$INST_LINGUAS"; then 29083 for lang in $INST_LINGUAS; do 29084 CATALOGS="$CATALOGS $lang.gmo" 29085 done 29086 fi 29087 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 29088 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" 29089 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 29090 if test -f "$f"; then 29091 case "$f" in 29092 *.orig | *.bak | *~) ;; 29093 *) cat "$f" >> "$ac_dir/Makefile" ;; 29094 esac 29095 fi 29096 done 29097 fi 29098 ;; 29099 esac 29100 done ;; 29101 "bootstrap.sh":F) chmod +x bootstrap.sh ;; 29102 29103 esac 29104done # for ac_tag 29105 29106 29107{ (exit 0); exit 0; } 29108_ACEOF 29109chmod +x $CONFIG_STATUS 29110ac_clean_files=$ac_clean_files_save 29111 29112test $ac_write_fail = 0 || 29113 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 29114$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 29115 { (exit 1); exit 1; }; } 29116 29117 29118# configure is writing to config.log, and then calls config.status. 29119# config.status does its own redirection, appending to config.log. 29120# Unfortunately, on DOS this fails, as config.log is still kept open 29121# by configure, so config.status won't be able to write to it; its 29122# output is simply discarded. So we exec the FD to /dev/null, 29123# effectively closing config.log, so it can be properly (re)opened and 29124# appended to by config.status. When coming back to configure, we 29125# need to make the FD available again. 29126if test "$no_create" != yes; then 29127 ac_cs_success=: 29128 ac_config_status_args= 29129 test "$silent" = yes && 29130 ac_config_status_args="$ac_config_status_args --quiet" 29131 exec 5>/dev/null 29132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29133 exec 5>>config.log 29134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29135 # would make configure fail if this is the last instruction. 29136 $ac_cs_success || { (exit 1); exit 1; } 29137fi 29138if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 29139 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 29140$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 29141fi 29142 29143