1#! /bin/sh 2# From configure.in for Bash 4.0, version 4.013. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.63 for bash 4.0-release. 5# 6# Report bugs to <bug-bash@gnu.org>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in 27 *posix*) set -o posix ;; 28esac 29 30fi 31 32 33 34 35# PATH needs CR 36# Avoid depending upon Character Ranges. 37as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS 40as_cr_digits='0123456789' 41as_cr_alnum=$as_cr_Letters$as_cr_digits 42 43as_nl=' 44' 45export as_nl 46# Printing a long string crashes Solaris 7 /usr/bin/printf. 47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84# Support unset when possible. 85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 86 as_unset=unset 87else 88 as_unset=false 89fi 90 91 92# IFS 93# We need space, tab and new line, in precisely that order. Quoting is 94# there to prevent editors from complaining about space-tab. 95# (If _AS_PATH_WALK were called with IFS unset, it would disable word 96# splitting by setting IFS to empty value.) 97IFS=" "" $as_nl" 98 99# Find who we are. Look in the path if we contain no directory separator. 100case $0 in 101 *[\\/]* ) as_myself=$0 ;; 102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 103for as_dir in $PATH 104do 105 IFS=$as_save_IFS 106 test -z "$as_dir" && as_dir=. 107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 108done 109IFS=$as_save_IFS 110 111 ;; 112esac 113# We did not find ourselves, most probably we were run as `sh COMMAND' 114# in which case we are not to be found in the path. 115if test "x$as_myself" = x; then 116 as_myself=$0 117fi 118if test ! -f "$as_myself"; then 119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 120 { (exit 1); exit 1; } 121fi 122 123# Work around bugs in pre-3.0 UWIN ksh. 124for as_var in ENV MAIL MAILPATH 125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 126done 127PS1='$ ' 128PS2='> ' 129PS4='+ ' 130 131# NLS nuisances. 132LC_ALL=C 133export LC_ALL 134LANGUAGE=C 135export LANGUAGE 136 137# Required to use basename. 138if expr a : '\(a\)' >/dev/null 2>&1 && 139 test "X`expr 00001 : '.*\(...\)'`" = X001; then 140 as_expr=expr 141else 142 as_expr=false 143fi 144 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 146 as_basename=basename 147else 148 as_basename=false 149fi 150 151 152# Name of the executable. 153as_me=`$as_basename -- "$0" || 154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 155 X"$0" : 'X\(//\)$' \| \ 156 X"$0" : 'X\(/\)' \| . 2>/dev/null || 157$as_echo X/"$0" | 158 sed '/^.*\/\([^/][^/]*\)\/*$/{ 159 s//\1/ 160 q 161 } 162 /^X\/\(\/\/\)$/{ 163 s//\1/ 164 q 165 } 166 /^X\/\(\/\).*/{ 167 s//\1/ 168 q 169 } 170 s/.*/./; q'` 171 172# CDPATH. 173$as_unset CDPATH 174 175 176if test "x$CONFIG_SHELL" = x; then 177 if (eval ":") 2>/dev/null; then 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 183 if test $as_have_required = yes && (eval ": 184(as_func_return () { 185 (exit \$1) 186} 187as_func_success () { 188 as_func_return 0 189} 190as_func_failure () { 191 as_func_return 1 192} 193as_func_ret_success () { 194 return 0 195} 196as_func_ret_failure () { 197 return 1 198} 199 200exitcode=0 201if as_func_success; then 202 : 203else 204 exitcode=1 205 echo as_func_success failed. 206fi 207 208if as_func_failure; then 209 exitcode=1 210 echo as_func_failure succeeded. 211fi 212 213if as_func_ret_success; then 214 : 215else 216 exitcode=1 217 echo as_func_ret_success failed. 218fi 219 220if as_func_ret_failure; then 221 exitcode=1 222 echo as_func_ret_failure succeeded. 223fi 224 225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 226 : 227else 228 exitcode=1 229 echo positional parameters were not saved. 230fi 231 232test \$exitcode = 0) || { (exit 1); exit 1; } 233 234( 235 as_lineno_1=\$LINENO 236 as_lineno_2=\$LINENO 237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 239") 2> /dev/null; then 240 : 241else 242 as_candidate_shells= 243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 245do 246 IFS=$as_save_IFS 247 test -z "$as_dir" && as_dir=. 248 case $as_dir in 249 /*) 250 for as_base in sh bash ksh sh5; do 251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 252 done;; 253 esac 254done 255IFS=$as_save_IFS 256 257 258 for as_shell in $as_candidate_shells $SHELL; do 259 # Try only shells that exist, to save several forks. 260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 261 { ("$as_shell") 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278_ASEOF 279}; then 280 CONFIG_SHELL=$as_shell 281 as_have_required=yes 282 if { "$as_shell" 2> /dev/null <<\_ASEOF 283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 284 emulate sh 285 NULLCMD=: 286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 287 # is contrary to our usage. Disable this feature. 288 alias -g '${1+"$@"}'='"$@"' 289 setopt NO_GLOB_SUBST 290else 291 case `(set -o) 2>/dev/null` in 292 *posix*) set -o posix ;; 293esac 294 295fi 296 297 298: 299(as_func_return () { 300 (exit $1) 301} 302as_func_success () { 303 as_func_return 0 304} 305as_func_failure () { 306 as_func_return 1 307} 308as_func_ret_success () { 309 return 0 310} 311as_func_ret_failure () { 312 return 1 313} 314 315exitcode=0 316if as_func_success; then 317 : 318else 319 exitcode=1 320 echo as_func_success failed. 321fi 322 323if as_func_failure; then 324 exitcode=1 325 echo as_func_failure succeeded. 326fi 327 328if as_func_ret_success; then 329 : 330else 331 exitcode=1 332 echo as_func_ret_success failed. 333fi 334 335if as_func_ret_failure; then 336 exitcode=1 337 echo as_func_ret_failure succeeded. 338fi 339 340if ( set x; as_func_ret_success y && test x = "$1" ); then 341 : 342else 343 exitcode=1 344 echo positional parameters were not saved. 345fi 346 347test $exitcode = 0) || { (exit 1); exit 1; } 348 349( 350 as_lineno_1=$LINENO 351 as_lineno_2=$LINENO 352 test "x$as_lineno_1" != "x$as_lineno_2" && 353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 354 355_ASEOF 356}; then 357 break 358fi 359 360fi 361 362 done 363 364 if test "x$CONFIG_SHELL" != x; then 365 for as_var in BASH_ENV ENV 366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 367 done 368 export CONFIG_SHELL 369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 370fi 371 372 373 if test $as_have_required = no; then 374 echo This script requires a shell more modern than all the 375 echo shells that I found on your system. Please install a 376 echo modern shell, or manually run the script under such a 377 echo shell if you do have one. 378 { (exit 1); exit 1; } 379fi 380 381 382fi 383 384fi 385 386 387 388(eval "as_func_return () { 389 (exit \$1) 390} 391as_func_success () { 392 as_func_return 0 393} 394as_func_failure () { 395 as_func_return 1 396} 397as_func_ret_success () { 398 return 0 399} 400as_func_ret_failure () { 401 return 1 402} 403 404exitcode=0 405if as_func_success; then 406 : 407else 408 exitcode=1 409 echo as_func_success failed. 410fi 411 412if as_func_failure; then 413 exitcode=1 414 echo as_func_failure succeeded. 415fi 416 417if as_func_ret_success; then 418 : 419else 420 exitcode=1 421 echo as_func_ret_success failed. 422fi 423 424if as_func_ret_failure; then 425 exitcode=1 426 echo as_func_ret_failure succeeded. 427fi 428 429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 430 : 431else 432 exitcode=1 433 echo positional parameters were not saved. 434fi 435 436test \$exitcode = 0") || { 437 echo No shell found that supports shell functions. 438 echo Please tell bug-autoconf@gnu.org about your system, 439 echo including any error possibly output before this message. 440 echo This can help us improve future autoconf versions. 441 echo Configuration will now proceed without shell functions. 442} 443 444 445 446 as_lineno_1=$LINENO 447 as_lineno_2=$LINENO 448 test "x$as_lineno_1" != "x$as_lineno_2" && 449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 450 451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 452 # uniformly replaced by the line number. The first 'sed' inserts a 453 # line-number line after each line using $LINENO; the second 'sed' 454 # does the real work. The second script uses 'N' to pair each 455 # line-number line with the line containing $LINENO, and appends 456 # trailing '-' during substitution so that $LINENO is not a special 457 # case at line end. 458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 459 # scripts with optimization help from Paolo Bonzini. Blame Lee 460 # E. McMahon (1931-1989) for sed's syntax. :-) 461 sed -n ' 462 p 463 /[$]LINENO/= 464 ' <$as_myself | 465 sed ' 466 s/[$]LINENO.*/&-/ 467 t lineno 468 b 469 :lineno 470 N 471 :loop 472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 473 t loop 474 s/-\n.*// 475 ' >$as_me.lineno && 476 chmod +x "$as_me.lineno" || 477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 478 { (exit 1); exit 1; }; } 479 480 # Don't try to exec as it changes $[0], causing all sort of problems 481 # (the dirname of $[0] is not the place where we might find the 482 # original and so on. Autoconf is especially sensitive to this). 483 . "./$as_me.lineno" 484 # Exit status is that of the last command. 485 exit 486} 487 488 489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 490 as_dirname=dirname 491else 492 as_dirname=false 493fi 494 495ECHO_C= ECHO_N= ECHO_T= 496case `echo -n x` in 497-n*) 498 case `echo 'x\c'` in 499 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 500 *) ECHO_C='\c';; 501 esac;; 502*) 503 ECHO_N='-n';; 504esac 505if expr a : '\(a\)' >/dev/null 2>&1 && 506 test "X`expr 00001 : '.*\(...\)'`" = X001; then 507 as_expr=expr 508else 509 as_expr=false 510fi 511 512rm -f conf$$ conf$$.exe conf$$.file 513if test -d conf$$.dir; then 514 rm -f conf$$.dir/conf$$.file 515else 516 rm -f conf$$.dir 517 mkdir conf$$.dir 2>/dev/null 518fi 519if (echo >conf$$.file) 2>/dev/null; then 520 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 as_ln_s='ln -s' 522 # ... but there are two gotchas: 523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # In both cases, we have to default to `cp -p'. 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 as_ln_s='cp -p' 528 elif ln conf$$.file conf$$ 2>/dev/null; then 529 as_ln_s=ln 530 else 531 as_ln_s='cp -p' 532 fi 533else 534 as_ln_s='cp -p' 535fi 536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rmdir conf$$.dir 2>/dev/null 538 539if mkdir -p . 2>/dev/null; then 540 as_mkdir_p=: 541else 542 test -d ./-p && rmdir ./-p 543 as_mkdir_p=false 544fi 545 546if test -x / >/dev/null 2>&1; then 547 as_test_x='test -x' 548else 549 if ls -dL / >/dev/null 2>&1; then 550 as_ls_L_option=L 551 else 552 as_ls_L_option= 553 fi 554 as_test_x=' 555 eval sh -c '\'' 556 if test -d "$1"; then 557 test -d "$1/."; 558 else 559 case $1 in 560 -*)set "./$1";; 561 esac; 562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 563 ???[sx]*):;;*)false;;esac;fi 564 '\'' sh 565 ' 566fi 567as_executable_p=$as_test_x 568 569# Sed expression to map a string onto a valid CPP name. 570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 571 572# Sed expression to map a string onto a valid variable name. 573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 574 575 576 577exec 7<&0 </dev/null 6>&1 578 579# Name of the host. 580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 581# so uname gets run too. 582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 583 584# 585# Initializations. 586# 587ac_default_prefix=/usr/local 588ac_clean_files= 589ac_config_libobj_dir=. 590LIBOBJS= 591cross_compiling=no 592subdirs= 593MFLAGS= 594MAKEFLAGS= 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597# Identity of this package. 598PACKAGE_NAME='bash' 599PACKAGE_TARNAME='bash' 600PACKAGE_VERSION='4.0-release' 601PACKAGE_STRING='bash 4.0-release' 602PACKAGE_BUGREPORT='bug-bash@gnu.org' 603 604ac_unique_file="shell.h" 605# Factoring default headers for most tests. 606ac_includes_default="\ 607#include <stdio.h> 608#ifdef HAVE_SYS_TYPES_H 609# include <sys/types.h> 610#endif 611#ifdef HAVE_SYS_STAT_H 612# include <sys/stat.h> 613#endif 614#ifdef STDC_HEADERS 615# include <stdlib.h> 616# include <stddef.h> 617#else 618# ifdef HAVE_STDLIB_H 619# include <stdlib.h> 620# endif 621#endif 622#ifdef HAVE_STRING_H 623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 624# include <memory.h> 625# endif 626# include <string.h> 627#endif 628#ifdef HAVE_STRINGS_H 629# include <strings.h> 630#endif 631#ifdef HAVE_INTTYPES_H 632# include <inttypes.h> 633#endif 634#ifdef HAVE_STDINT_H 635# include <stdint.h> 636#endif 637#ifdef HAVE_UNISTD_H 638# include <unistd.h> 639#endif" 640 641ac_header_list= 642ac_func_list= 643ac_subst_vars='LTLIBOBJS 644LOCAL_DEFS 645LOCAL_LDFLAGS 646LOCAL_CFLAGS 647LOCAL_LIBS 648MALLOC_DEBUG 649DEBUG 650RELSTATUS 651BASHVERS 652ARFLAGS 653BUILD_DIR 654incdir 655PROFILE_FLAGS 656SHOBJ_STATUS 657SHOBJ_LIBS 658SHOBJ_XLDFLAGS 659SHOBJ_LDFLAGS 660SHOBJ_LD 661SHOBJ_CFLAGS 662SHOBJ_CC 663JOBS_O 664TERMCAP_DEP 665TERMCAP_LIB 666SIGLIST_O 667LIBINTL_H 668INTL_INC 669INTL_DEP 670LIBOBJS 671POSUB 672LTLIBINTL 673LIBINTL 674INTLLIBS 675INTL_LIBTOOL_SUFFIX_PREFIX 676INTLOBJS 677GENCAT 678INSTOBJEXT 679DATADIRNAME 680CATOBJEXT 681USE_INCLUDED_LIBINTL 682BUILD_INCLUDED_LIBINTL 683INTLBISON 684LTLIBICONV 685LIBICONV 686GLIBC21 687ALLOCA 688MSGMERGE 689XGETTEXT 690GMSGFMT 691MSGFMT 692USE_NLS 693MKINSTALLDIRS 694SIZE 695MAKE_SHELL 696SET_MAKE 697YFLAGS 698YACC 699RANLIB 700AR 701INSTALL_DATA 702INSTALL_SCRIPT 703INSTALL_PROGRAM 704TILDE_LIB 705HIST_LIBDIR 706HISTORY_DEP 707HISTORY_LIB 708RL_INCLUDE 709RL_INCLUDEDIR 710RL_LIBDIR 711READLINE_DEP 712READLINE_LIB 713RL_MINOR 714RL_MAJOR 715RL_VERSION 716LDFLAGS_FOR_BUILD 717CPPFLAGS_FOR_BUILD 718CFLAGS_FOR_BUILD 719STATIC_LD 720CC_FOR_BUILD 721SIGNAMES_O 722SIGNAMES_H 723CROSS_COMPILE 724EGREP 725GREP 726CPP 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734HELPSTRINGS 735HELPINSTALL 736HELPDIRDEFINE 737HELPDIR 738MALLOC_DEP 739MALLOC_LDFLAGS 740MALLOC_LIBRARY 741MALLOC_LIB 742MALLOC_SRC 743MALLOC_TARGET 744PURIFY 745TESTSCRIPT 746DEBUGGER_START_FILE 747lispdir 748EMACS 749host_os 750host_vendor 751host_cpu 752host 753build_os 754build_vendor 755build_cpu 756build 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797with_lispdir 798with_afs 799with_bash_malloc 800with_curses 801with_gnu_malloc 802with_installed_readline 803with_purecov 804with_purify 805enable_minimal_config 806enable_alias 807enable_arith_for_command 808enable_array_variables 809enable_bang_history 810enable_brace_expansion 811enable_casemod_attributes 812enable_casemod_expansions 813enable_command_timing 814enable_cond_command 815enable_cond_regexp 816enable_coprocesses 817enable_debugger 818enable_directory_stack 819enable_disabled_builtins 820enable_dparen_arithmetic 821enable_extended_glob 822enable_help_builtin 823enable_history 824enable_job_control 825enable_multibyte 826enable_net_redirections 827enable_process_substitution 828enable_progcomp 829enable_prompt_string_decoding 830enable_readline 831enable_restricted 832enable_select 833enable_separate_helpfiles 834enable_single_help_strings 835enable_strict_posix_default 836enable_usg_echo_default 837enable_xpg_echo_default 838enable_mem_scramble 839enable_profiling 840enable_static_link 841enable_largefile 842enable_nls 843with_gnu_ld 844enable_rpath 845with_libiconv_prefix 846with_included_gettext 847with_libintl_prefix 848' 849 ac_precious_vars='build_alias 850host_alias 851target_alias 852DEBUGGER_START_FILE 853CC 854CFLAGS 855LDFLAGS 856LIBS 857CPPFLAGS 858CPP 859YACC 860YFLAGS' 861 862 863# Initialize some variables set by options. 864ac_init_help= 865ac_init_version=false 866ac_unrecognized_opts= 867ac_unrecognized_sep= 868# The variables have the same names as the options, with 869# dashes changed to underlines. 870cache_file=/dev/null 871exec_prefix=NONE 872no_create= 873no_recursion= 874prefix=NONE 875program_prefix=NONE 876program_suffix=NONE 877program_transform_name=s,x,x, 878silent= 879site= 880srcdir= 881verbose= 882x_includes=NONE 883x_libraries=NONE 884 885# Installation directory options. 886# These are left unexpanded so users can "make install exec_prefix=/foo" 887# and all the variables that are supposed to be based on exec_prefix 888# by default will actually change. 889# Use braces instead of parens because sh, perl, etc. also accept them. 890# (The list follows the same order as the GNU Coding Standards.) 891bindir='${exec_prefix}/bin' 892sbindir='${exec_prefix}/sbin' 893libexecdir='${exec_prefix}/libexec' 894datarootdir='${prefix}/share' 895datadir='${datarootdir}' 896sysconfdir='${prefix}/etc' 897sharedstatedir='${prefix}/com' 898localstatedir='${prefix}/var' 899includedir='${prefix}/include' 900oldincludedir='/usr/include' 901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 902infodir='${datarootdir}/info' 903htmldir='${docdir}' 904dvidir='${docdir}' 905pdfdir='${docdir}' 906psdir='${docdir}' 907libdir='${exec_prefix}/lib' 908localedir='${datarootdir}/locale' 909mandir='${datarootdir}/man' 910 911ac_prev= 912ac_dashdash= 913for ac_option 914do 915 # If the previous option needs an argument, assign it. 916 if test -n "$ac_prev"; then 917 eval $ac_prev=\$ac_option 918 ac_prev= 919 continue 920 fi 921 922 case $ac_option in 923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 970 { (exit 1); exit 1; }; } 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=no ;; 981 982 -docdir | --docdir | --docdi | --doc | --do) 983 ac_prev=docdir ;; 984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 985 docdir=$ac_optarg ;; 986 987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 988 ac_prev=dvidir ;; 989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 990 dvidir=$ac_optarg ;; 991 992 -enable-* | --enable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 997 { (exit 1); exit 1; }; } 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1202 { (exit 1); exit 1; }; } 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=\$ac_optarg ;; 1213 1214 -without-* | --without-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1219 { (exit 1); exit 1; }; } 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1250Try \`$0 --help' for more information." >&2 1251 { (exit 1); exit 1; }; } 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1259 { (exit 1); exit 1; }; } 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280if test -n "$ac_unrecognized_opts"; then 1281 case $enable_option_checking in 1282 no) ;; 1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1284 { (exit 1); exit 1; }; } ;; 1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1286 esac 1287fi 1288 1289# Check all directory arguments for consistency. 1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir 1294do 1295 eval ac_val=\$$ac_var 1296 # Remove trailing slashes. 1297 case $ac_val in 1298 */ ) 1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1300 eval $ac_var=\$ac_val;; 1301 esac 1302 # Be sure to have absolute directory names. 1303 case $ac_val in 1304 [\\/$]* | ?:[\\/]* ) continue;; 1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1306 esac 1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1308 { (exit 1); exit 1; }; } 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1323 If a cross compiler is detected then cross compile mode will be used." >&2 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1339 { (exit 1); exit 1; }; } 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1342 { (exit 1); exit 1; }; } 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354$as_echo X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1382 { (exit 1); exit 1; }; } 1383fi 1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1385ac_abs_confdir=`( 1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1387 { (exit 1); exit 1; }; } 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures bash 4.0-release to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --libdir=DIR object code libraries [EPREFIX/lib] 1454 --includedir=DIR C header files [PREFIX/include] 1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1458 --infodir=DIR info documentation [DATAROOTDIR/info] 1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1460 --mandir=DIR man documentation [DATAROOTDIR/man] 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473_ACEOF 1474fi 1475 1476if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of bash 4.0-release:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-minimal-config a minimal sh-like configuration 1487 --enable-alias enable shell aliases 1488 --enable-arith-for-command 1489 enable arithmetic for command 1490 --enable-array-variables 1491 include shell array variables 1492 --enable-bang-history turn on csh-style history substitution 1493 --enable-brace-expansion 1494 include brace expansion 1495 --enable-casemod-attributes 1496 include case-modifying variable attributes 1497 --enable-casemod-expansions 1498 include case-modifying word expansions 1499 --enable-command-timing enable the time reserved word and command timing 1500 --enable-cond-command enable the conditional command 1501 --enable-cond-regexp enable extended regular expression matching in 1502 conditional commands 1503 --enable-coprocesses enable coprocess support and the coproc reserved 1504 word 1505 --enable-debugger enable support for bash debugger 1506 --enable-directory-stack 1507 enable builtins pushd/popd/dirs 1508 --enable-disabled-builtins 1509 allow disabled builtins to still be invoked 1510 --enable-dparen-arithmetic 1511 include ((...)) command 1512 --enable-extended-glob include ksh-style extended pattern matching 1513 --enable-help-builtin include the help builtin 1514 --enable-history turn on command history 1515 --enable-job-control enable job control features 1516 --enable-multibyte enable multibyte characters if OS supports them 1517 --enable-net-redirections 1518 enable /dev/tcp/host/port redirection 1519 --enable-process-substitution 1520 enable process substitution 1521 --enable-progcomp enable programmable completion and the complete 1522 builtin 1523 --enable-prompt-string-decoding 1524 turn on escape character decoding in prompts 1525 --enable-readline turn on command line editing 1526 --enable-restricted enable a restricted shell 1527 --enable-select include select command 1528 --enable-separate-helpfiles 1529 use external files for help builtin documentation 1530 --enable-single-help-strings 1531 store help documentation as a single string to ease 1532 translation 1533 --enable-strict-posix-default 1534 configure bash to be posix-conformant by default 1535 --enable-usg-echo-default 1536 a synonym for --enable-xpg-echo-default 1537 --enable-xpg-echo-default 1538 make the echo builtin expand escape sequences by 1539 default 1540 --enable-mem-scramble scramble memory on calls to malloc and free 1541 --enable-profiling allow profiling with gprof 1542 --enable-static-link link bash statically, for use as a root shell 1543 --disable-largefile omit support for large files 1544 --disable-nls do not use Native Language Support 1545 --disable-rpath do not hardcode runtime library paths 1546 1547Optional Packages: 1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1550 --with-lispdir override the default lisp directory 1551 --with-afs if you are running AFS 1552 --with-bash-malloc use the Bash version of malloc 1553 --with-curses use the curses library instead of the termcap 1554 library 1555 --with-gnu-malloc synonym for --with-bash-malloc 1556 --with-installed-readline 1557 use a version of the readline library that is 1558 already installed 1559 --with-purecov configure to postprocess with pure coverage 1560 --with-purify configure to postprocess with purify 1561 --with-gnu-ld assume the C compiler uses GNU ld default=no 1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1564 --with-included-gettext use the GNU gettext library included here 1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1566 --without-libintl-prefix don't search for libintl in includedir and libdir 1567 1568Some influential environment variables: 1569 DEBUGGER_START_FILE 1570 location of bash debugger initialization file 1571 CC C compiler command 1572 CFLAGS C compiler flags 1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1574 nonstandard directory <lib dir> 1575 LIBS libraries to pass to the linker, e.g. -l<library> 1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1577 you have headers in a nonstandard directory <include dir> 1578 CPP C preprocessor 1579 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1580 the first program found out of: `bison -y', `byacc', `yacc'. 1581 YFLAGS The list of arguments that will be passed by default to $YACC. 1582 This script will default YFLAGS to the empty string to avoid a 1583 default value of `-d' given by some make applications. 1584 1585Use these variables to override the choices made by `configure' or to help 1586it to find libraries and programs with nonstandard names/locations. 1587 1588Report bugs to <bug-bash@gnu.org>. 1589_ACEOF 1590ac_status=$? 1591fi 1592 1593if test "$ac_init_help" = "recursive"; then 1594 # If there are subdirs, report their specific --help. 1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1596 test -d "$ac_dir" || 1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1598 continue 1599 ac_builddir=. 1600 1601case "$ac_dir" in 1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1603*) 1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1605 # A ".." for each directory in $ac_dir_suffix. 1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1607 case $ac_top_builddir_sub in 1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1610 esac ;; 1611esac 1612ac_abs_top_builddir=$ac_pwd 1613ac_abs_builddir=$ac_pwd$ac_dir_suffix 1614# for backward compatibility: 1615ac_top_builddir=$ac_top_build_prefix 1616 1617case $srcdir in 1618 .) # We are building in place. 1619 ac_srcdir=. 1620 ac_top_srcdir=$ac_top_builddir_sub 1621 ac_abs_top_srcdir=$ac_pwd ;; 1622 [\\/]* | ?:[\\/]* ) # Absolute name. 1623 ac_srcdir=$srcdir$ac_dir_suffix; 1624 ac_top_srcdir=$srcdir 1625 ac_abs_top_srcdir=$srcdir ;; 1626 *) # Relative name. 1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1628 ac_top_srcdir=$ac_top_build_prefix$srcdir 1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1630esac 1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1632 1633 cd "$ac_dir" || { ac_status=$?; continue; } 1634 # Check for guested configure. 1635 if test -f "$ac_srcdir/configure.gnu"; then 1636 echo && 1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1638 elif test -f "$ac_srcdir/configure"; then 1639 echo && 1640 $SHELL "$ac_srcdir/configure" --help=recursive 1641 else 1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1643 fi || ac_status=$? 1644 cd "$ac_pwd" || { ac_status=$?; break; } 1645 done 1646fi 1647 1648test -n "$ac_init_help" && exit $ac_status 1649if $ac_init_version; then 1650 cat <<\_ACEOF 1651bash configure 4.0-release 1652generated by GNU Autoconf 2.63 1653 1654Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1656This configure script is free software; the Free Software Foundation 1657gives unlimited permission to copy, distribute and modify it. 1658_ACEOF 1659 exit 1660fi 1661cat >config.log <<_ACEOF 1662This file contains any messages produced by compilers while 1663running configure, to aid debugging if configure makes a mistake. 1664 1665It was created by bash $as_me 4.0-release, which was 1666generated by GNU Autoconf 2.63. Invocation command line was 1667 1668 $ $0 $@ 1669 1670_ACEOF 1671exec 5>>config.log 1672{ 1673cat <<_ASUNAME 1674## --------- ## 1675## Platform. ## 1676## --------- ## 1677 1678hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1679uname -m = `(uname -m) 2>/dev/null || echo unknown` 1680uname -r = `(uname -r) 2>/dev/null || echo unknown` 1681uname -s = `(uname -s) 2>/dev/null || echo unknown` 1682uname -v = `(uname -v) 2>/dev/null || echo unknown` 1683 1684/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1685/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1686 1687/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1688/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1689/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1690/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1691/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1692/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1693/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1694 1695_ASUNAME 1696 1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1698for as_dir in $PATH 1699do 1700 IFS=$as_save_IFS 1701 test -z "$as_dir" && as_dir=. 1702 $as_echo "PATH: $as_dir" 1703done 1704IFS=$as_save_IFS 1705 1706} >&5 1707 1708cat >&5 <<_ACEOF 1709 1710 1711## ----------- ## 1712## Core tests. ## 1713## ----------- ## 1714 1715_ACEOF 1716 1717 1718# Keep a trace of the command line. 1719# Strip out --no-create and --no-recursion so they do not pile up. 1720# Strip out --silent because we don't want to record it for future runs. 1721# Also quote any args containing shell meta-characters. 1722# Make two passes to allow for proper duplicate-argument suppression. 1723ac_configure_args= 1724ac_configure_args0= 1725ac_configure_args1= 1726ac_must_keep_next=false 1727for ac_pass in 1 2 1728do 1729 for ac_arg 1730 do 1731 case $ac_arg in 1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1734 | -silent | --silent | --silen | --sile | --sil) 1735 continue ;; 1736 *\'*) 1737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1738 esac 1739 case $ac_pass in 1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1741 2) 1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1743 if test $ac_must_keep_next = true; then 1744 ac_must_keep_next=false # Got value, back to normal. 1745 else 1746 case $ac_arg in 1747 *=* | --config-cache | -C | -disable-* | --disable-* \ 1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1750 | -with-* | --with-* | -without-* | --without-* | --x) 1751 case "$ac_configure_args0 " in 1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1753 esac 1754 ;; 1755 -* ) ac_must_keep_next=true ;; 1756 esac 1757 fi 1758 ac_configure_args="$ac_configure_args '$ac_arg'" 1759 ;; 1760 esac 1761 done 1762done 1763$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1764$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1765 1766# When interrupted or exit'd, cleanup temporary files, and complete 1767# config.log. We remove comments because anyway the quotes in there 1768# would cause problems or look ugly. 1769# WARNING: Use '\'' to represent an apostrophe within the trap. 1770# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1771trap 'exit_status=$? 1772 # Save into config.log some information that might help in debugging. 1773 { 1774 echo 1775 1776 cat <<\_ASBOX 1777## ---------------- ## 1778## Cache variables. ## 1779## ---------------- ## 1780_ASBOX 1781 echo 1782 # The following way of writing the cache mishandles newlines in values, 1783( 1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1785 eval ac_val=\$$ac_var 1786 case $ac_val in #( 1787 *${as_nl}*) 1788 case $ac_var in #( 1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1790$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1791 esac 1792 case $ac_var in #( 1793 _ | IFS | as_nl) ;; #( 1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1795 *) $as_unset $ac_var ;; 1796 esac ;; 1797 esac 1798 done 1799 (set) 2>&1 | 1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1801 *${as_nl}ac_space=\ *) 1802 sed -n \ 1803 "s/'\''/'\''\\\\'\'''\''/g; 1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1805 ;; #( 1806 *) 1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1808 ;; 1809 esac | 1810 sort 1811) 1812 echo 1813 1814 cat <<\_ASBOX 1815## ----------------- ## 1816## Output variables. ## 1817## ----------------- ## 1818_ASBOX 1819 echo 1820 for ac_var in $ac_subst_vars 1821 do 1822 eval ac_val=\$$ac_var 1823 case $ac_val in 1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1825 esac 1826 $as_echo "$ac_var='\''$ac_val'\''" 1827 done | sort 1828 echo 1829 1830 if test -n "$ac_subst_files"; then 1831 cat <<\_ASBOX 1832## ------------------- ## 1833## File substitutions. ## 1834## ------------------- ## 1835_ASBOX 1836 echo 1837 for ac_var in $ac_subst_files 1838 do 1839 eval ac_val=\$$ac_var 1840 case $ac_val in 1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1842 esac 1843 $as_echo "$ac_var='\''$ac_val'\''" 1844 done | sort 1845 echo 1846 fi 1847 1848 if test -s confdefs.h; then 1849 cat <<\_ASBOX 1850## ----------- ## 1851## confdefs.h. ## 1852## ----------- ## 1853_ASBOX 1854 echo 1855 cat confdefs.h 1856 echo 1857 fi 1858 test "$ac_signal" != 0 && 1859 $as_echo "$as_me: caught signal $ac_signal" 1860 $as_echo "$as_me: exit $exit_status" 1861 } >&5 1862 rm -f core *.core core.conftest.* && 1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1864 exit $exit_status 1865' 0 1866for ac_signal in 1 2 13 15; do 1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1868done 1869ac_signal=0 1870 1871# confdefs.h avoids OS command line length limits that DEFS can exceed. 1872rm -f -r conftest* confdefs.h 1873 1874# Predefined preprocessor variables. 1875 1876cat >>confdefs.h <<_ACEOF 1877#define PACKAGE_NAME "$PACKAGE_NAME" 1878_ACEOF 1879 1880 1881cat >>confdefs.h <<_ACEOF 1882#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1883_ACEOF 1884 1885 1886cat >>confdefs.h <<_ACEOF 1887#define PACKAGE_VERSION "$PACKAGE_VERSION" 1888_ACEOF 1889 1890 1891cat >>confdefs.h <<_ACEOF 1892#define PACKAGE_STRING "$PACKAGE_STRING" 1893_ACEOF 1894 1895 1896cat >>confdefs.h <<_ACEOF 1897#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1898_ACEOF 1899 1900 1901# Let the site file select an alternate cache file if it wants to. 1902# Prefer an explicitly selected file to automatically selected ones. 1903ac_site_file1=NONE 1904ac_site_file2=NONE 1905if test -n "$CONFIG_SITE"; then 1906 ac_site_file1=$CONFIG_SITE 1907elif test "x$prefix" != xNONE; then 1908 ac_site_file1=$prefix/share/config.site 1909 ac_site_file2=$prefix/etc/config.site 1910else 1911 ac_site_file1=$ac_default_prefix/share/config.site 1912 ac_site_file2=$ac_default_prefix/etc/config.site 1913fi 1914for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1915do 1916 test "x$ac_site_file" = xNONE && continue 1917 if test -r "$ac_site_file"; then 1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1919$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1920 sed 's/^/| /' "$ac_site_file" >&5 1921 . "$ac_site_file" 1922 fi 1923done 1924 1925if test -r "$cache_file"; then 1926 # Some versions of bash will fail to source /dev/null (special 1927 # files actually), so we avoid doing that. 1928 if test -f "$cache_file"; then 1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1930$as_echo "$as_me: loading cache $cache_file" >&6;} 1931 case $cache_file in 1932 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1933 *) . "./$cache_file";; 1934 esac 1935 fi 1936else 1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1938$as_echo "$as_me: creating cache $cache_file" >&6;} 1939 >$cache_file 1940fi 1941 1942ac_header_list="$ac_header_list sys/time.h" 1943ac_header_list="$ac_header_list unistd.h" 1944ac_func_list="$ac_func_list alarm" 1945ac_func_list="$ac_func_list fpurge" 1946ac_func_list="$ac_func_list __fpurge" 1947# Check that the precious variables saved in the cache have kept the same 1948# value. 1949ac_cache_corrupted=false 1950for ac_var in $ac_precious_vars; do 1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1952 eval ac_new_set=\$ac_env_${ac_var}_set 1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1954 eval ac_new_val=\$ac_env_${ac_var}_value 1955 case $ac_old_set,$ac_new_set in 1956 set,) 1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1958$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1959 ac_cache_corrupted=: ;; 1960 ,set) 1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1962$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1963 ac_cache_corrupted=: ;; 1964 ,);; 1965 *) 1966 if test "x$ac_old_val" != "x$ac_new_val"; then 1967 # differences in whitespace do not lead to failure. 1968 ac_old_val_w=`echo x $ac_old_val` 1969 ac_new_val_w=`echo x $ac_new_val` 1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1972$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1973 ac_cache_corrupted=: 1974 else 1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1976$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1977 eval $ac_var=\$ac_old_val 1978 fi 1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1980$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1982$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1983 fi;; 1984 esac 1985 # Pass precious variables to config.status. 1986 if test "$ac_new_set" = set; then 1987 case $ac_new_val in 1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1989 *) ac_arg=$ac_var=$ac_new_val ;; 1990 esac 1991 case " $ac_configure_args " in 1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1994 esac 1995 fi 1996done 1997if $ac_cache_corrupted; then 1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2001$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2003$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2004 { (exit 1); exit 1; }; } 2005fi 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031ac_ext=c 2032ac_cpp='$CPP $CPPFLAGS' 2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2035ac_compiler_gnu=$ac_cv_c_compiler_gnu 2036 2037 2038 2039 2040 2041 2042ac_aux_dir= 2043for ac_dir in ./support "$srcdir"/./support; do 2044 if test -f "$ac_dir/install-sh"; then 2045 ac_aux_dir=$ac_dir 2046 ac_install_sh="$ac_aux_dir/install-sh -c" 2047 break 2048 elif test -f "$ac_dir/install.sh"; then 2049 ac_aux_dir=$ac_dir 2050 ac_install_sh="$ac_aux_dir/install.sh -c" 2051 break 2052 elif test -f "$ac_dir/shtool"; then 2053 ac_aux_dir=$ac_dir 2054 ac_install_sh="$ac_aux_dir/shtool install -c" 2055 break 2056 fi 2057done 2058if test -z "$ac_aux_dir"; then 2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5 2060$as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;} 2061 { (exit 1); exit 1; }; } 2062fi 2063 2064# These three variables are undocumented and unsupported, 2065# and are intended to be withdrawn in a future Autoconf release. 2066# They can cause serious problems if a builder's source tree is in a directory 2067# whose full name contains unusual characters. 2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2071 2072 2073ac_config_headers="$ac_config_headers config.h" 2074 2075 2076BASHVERS=4.0 2077RELSTATUS=release 2078 2079case "$RELSTATUS" in 2080alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; 2081*) DEBUG= MALLOC_DEBUG= ;; 2082esac 2083 2084# Make sure we can run config.sub. 2085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2087$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2088 { (exit 1); exit 1; }; } 2089 2090{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2091$as_echo_n "checking build system type... " >&6; } 2092if test "${ac_cv_build+set}" = set; then 2093 $as_echo_n "(cached) " >&6 2094else 2095 ac_build_alias=$build_alias 2096test "x$ac_build_alias" = x && 2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2098test "x$ac_build_alias" = x && 2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2100$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2101 { (exit 1); exit 1; }; } 2102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2104$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2105 { (exit 1); exit 1; }; } 2106 2107fi 2108{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2109$as_echo "$ac_cv_build" >&6; } 2110case $ac_cv_build in 2111*-*-*) ;; 2112*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2113$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2114 { (exit 1); exit 1; }; };; 2115esac 2116build=$ac_cv_build 2117ac_save_IFS=$IFS; IFS='-' 2118set x $ac_cv_build 2119shift 2120build_cpu=$1 2121build_vendor=$2 2122shift; shift 2123# Remember, the first character of IFS is used to create $*, 2124# except with old shells: 2125build_os=$* 2126IFS=$ac_save_IFS 2127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2128 2129 2130{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2131$as_echo_n "checking host system type... " >&6; } 2132if test "${ac_cv_host+set}" = set; then 2133 $as_echo_n "(cached) " >&6 2134else 2135 if test "x$host_alias" = x; then 2136 ac_cv_host=$ac_cv_build 2137else 2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2140$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2141 { (exit 1); exit 1; }; } 2142fi 2143 2144fi 2145{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2146$as_echo "$ac_cv_host" >&6; } 2147case $ac_cv_host in 2148*-*-*) ;; 2149*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2150$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2151 { (exit 1); exit 1; }; };; 2152esac 2153host=$ac_cv_host 2154ac_save_IFS=$IFS; IFS='-' 2155set x $ac_cv_host 2156shift 2157host_cpu=$1 2158host_vendor=$2 2159shift; shift 2160# Remember, the first character of IFS is used to create $*, 2161# except with old shells: 2162host_os=$* 2163IFS=$ac_save_IFS 2164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2165 2166 2167 2168opt_bash_malloc=yes 2169opt_purify=no 2170opt_purecov=no 2171opt_afs=no 2172opt_curses=no 2173opt_with_installed_readline=no 2174 2175#htmldir= 2176 2177case "${host_cpu}-${host_os}" in 2178alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux 2179*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays 2180*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines 2181sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 2182sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment 2183mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment 2184m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir 2185sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF 2186#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here 2187#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree 2188*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment 2189*-aix*) opt_bash_malloc=no ;; # AIX machines 2190*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep 2191*-macos*) opt_bash_malloc=no ;; # Apple MacOS X 2192*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) 2193*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) 2194*-dgux*) opt_bash_malloc=no ;; # DG/UX machines 2195*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x 2196*-machten4) opt_bash_malloc=no ;; # MachTen 4.x 2197*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins 2198*-beos*) opt_bash_malloc=no ;; # they say it's suitable 2199*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment 2200*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft 2201esac 2202 2203# memory scrambling on free() 2204case "${host_os}" in 2205sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; 2206*) opt_memscramble=yes ;; 2207esac 2208 2209 2210# Check whether --with-lispdir was given. 2211if test "${with_lispdir+set}" = set; then 2212 withval=$with_lispdir; lispdir="$withval" 2213 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 2214$as_echo_n "checking where .elc files should go... " >&6; } 2215 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5 2216$as_echo "$lispdir" >&6; } 2217else 2218 2219 # If set to t, that means we are running in a shell under Emacs. 2220 # If you have an Emacs named "t", then use the full path. 2221 test x"$EMACS" = xt && EMACS= 2222 for ac_prog in emacs xemacs 2223do 2224 # Extract the first word of "$ac_prog", so it can be a program name with args. 2225set dummy $ac_prog; ac_word=$2 2226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2227$as_echo_n "checking for $ac_word... " >&6; } 2228if test "${ac_cv_prog_EMACS+set}" = set; then 2229 $as_echo_n "(cached) " >&6 2230else 2231 if test -n "$EMACS"; then 2232 ac_cv_prog_EMACS="$EMACS" # Let the user override the test. 2233else 2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2235for as_dir in $PATH 2236do 2237 IFS=$as_save_IFS 2238 test -z "$as_dir" && as_dir=. 2239 for ac_exec_ext in '' $ac_executable_extensions; do 2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2241 ac_cv_prog_EMACS="$ac_prog" 2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2243 break 2 2244 fi 2245done 2246done 2247IFS=$as_save_IFS 2248 2249fi 2250fi 2251EMACS=$ac_cv_prog_EMACS 2252if test -n "$EMACS"; then 2253 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5 2254$as_echo "$EMACS" >&6; } 2255else 2256 { $as_echo "$as_me:$LINENO: result: no" >&5 2257$as_echo "no" >&6; } 2258fi 2259 2260 2261 test -n "$EMACS" && break 2262done 2263test -n "$EMACS" || EMACS="no" 2264 2265 if test $EMACS != "no"; then 2266 if test x${lispdir+set} != xset; then 2267 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 2268$as_echo_n "checking where .elc files should go... " >&6; } 2269if test "${am_cv_lispdir+set}" = set; then 2270 $as_echo_n "(cached) " >&6 2271else 2272 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` 2273 if test -z "$am_cv_lispdir"; then 2274 am_cv_lispdir='${datadir}/emacs/site-lisp' 2275 fi 2276 2277fi 2278{ $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 2279$as_echo "$am_cv_lispdir" >&6; } 2280 lispdir="$am_cv_lispdir" 2281 fi 2282 fi 2283 2284fi 2285 2286 2287 2288 2289 2290 2291# Check whether --with-afs was given. 2292if test "${with_afs+set}" = set; then 2293 withval=$with_afs; opt_afs=$withval 2294fi 2295 2296 2297# Check whether --with-bash-malloc was given. 2298if test "${with_bash_malloc+set}" = set; then 2299 withval=$with_bash_malloc; opt_bash_malloc=$withval 2300fi 2301 2302 2303# Check whether --with-curses was given. 2304if test "${with_curses+set}" = set; then 2305 withval=$with_curses; opt_curses=$withval 2306fi 2307 2308 2309# Check whether --with-gnu-malloc was given. 2310if test "${with_gnu_malloc+set}" = set; then 2311 withval=$with_gnu_malloc; opt_bash_malloc=$withval 2312fi 2313 2314 2315# Check whether --with-installed-readline was given. 2316if test "${with_installed_readline+set}" = set; then 2317 withval=$with_installed_readline; opt_with_installed_readline=$withval 2318fi 2319 2320 2321# Check whether --with-purecov was given. 2322if test "${with_purecov+set}" = set; then 2323 withval=$with_purecov; opt_purecov=$withval 2324fi 2325 2326 2327# Check whether --with-purify was given. 2328if test "${with_purify+set}" = set; then 2329 withval=$with_purify; opt_purify=$withval 2330fi 2331 2332 2333if test "$opt_bash_malloc" = yes; then 2334 MALLOC_TARGET=malloc 2335 MALLOC_SRC=malloc.c 2336 2337 MALLOC_LIB='-lmalloc' 2338 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' 2339 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' 2340 MALLOC_DEP='$(MALLOC_LIBRARY)' 2341 2342 cat >>confdefs.h <<\_ACEOF 2343#define USING_BASH_MALLOC 1 2344_ACEOF 2345 2346else 2347 MALLOC_LIB= 2348 MALLOC_LIBRARY= 2349 MALLOC_LDFLAGS= 2350 MALLOC_DEP= 2351fi 2352 2353if test "$opt_purify" = yes; then 2354 PURIFY="purify " 2355 cat >>confdefs.h <<\_ACEOF 2356#define DISABLE_MALLOC_WRAPPERS 1 2357_ACEOF 2358 2359else 2360 PURIFY= 2361fi 2362 2363if test "$opt_purecov" = yes; then 2364 PURIFY="${PURIFY}purecov" 2365fi 2366 2367if test "$opt_afs" = yes; then 2368 cat >>confdefs.h <<\_ACEOF 2369#define AFS 1 2370_ACEOF 2371 2372fi 2373 2374if test "$opt_curses" = yes; then 2375 prefer_curses=yes 2376fi 2377 2378if test -z "${DEBUGGER_START_FILE}"; then 2379 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' 2380fi 2381 2382opt_minimal_config=no 2383 2384opt_job_control=yes 2385opt_alias=yes 2386opt_readline=yes 2387opt_history=yes 2388opt_bang_history=yes 2389opt_dirstack=yes 2390opt_restricted=yes 2391opt_process_subst=yes 2392opt_prompt_decoding=yes 2393opt_select=yes 2394opt_help=yes 2395opt_array_variables=yes 2396opt_dparen_arith=yes 2397opt_extended_glob=yes 2398opt_brace_expansion=yes 2399opt_disabled_builtins=no 2400opt_command_timing=yes 2401opt_xpg_echo=no 2402opt_strict_posix=no 2403opt_cond_command=yes 2404opt_cond_regexp=yes 2405opt_coproc=yes 2406opt_arith_for_command=yes 2407opt_net_redirs=yes 2408opt_progcomp=yes 2409opt_separate_help=no 2410opt_multibyte=yes 2411opt_debugger=yes 2412opt_single_longdoc_strings=yes 2413opt_casemod_attrs=yes 2414opt_casemod_expansions=yes 2415 2416opt_static_link=no 2417opt_profiling=no 2418 2419# Check whether --enable-minimal-config was given. 2420if test "${enable_minimal_config+set}" = set; then 2421 enableval=$enable_minimal_config; opt_minimal_config=$enableval 2422fi 2423 2424 2425if test $opt_minimal_config = yes; then 2426 opt_job_control=no opt_alias=no opt_readline=no 2427 opt_history=no opt_bang_history=no opt_dirstack=no 2428 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no 2429 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no 2430 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no 2431 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no 2432 opt_net_redirs=no opt_progcomp=no opt_separate_help=no 2433 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no 2434 opt_casemod_attrs=no opt_casemod_expansions=no 2435fi 2436 2437# Check whether --enable-alias was given. 2438if test "${enable_alias+set}" = set; then 2439 enableval=$enable_alias; opt_alias=$enableval 2440fi 2441 2442# Check whether --enable-arith-for-command was given. 2443if test "${enable_arith_for_command+set}" = set; then 2444 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval 2445fi 2446 2447# Check whether --enable-array-variables was given. 2448if test "${enable_array_variables+set}" = set; then 2449 enableval=$enable_array_variables; opt_array_variables=$enableval 2450fi 2451 2452# Check whether --enable-bang-history was given. 2453if test "${enable_bang_history+set}" = set; then 2454 enableval=$enable_bang_history; opt_bang_history=$enableval 2455fi 2456 2457# Check whether --enable-brace-expansion was given. 2458if test "${enable_brace_expansion+set}" = set; then 2459 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval 2460fi 2461 2462# Check whether --enable-casemod-attributes was given. 2463if test "${enable_casemod_attributes+set}" = set; then 2464 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval 2465fi 2466 2467# Check whether --enable-casemod-expansions was given. 2468if test "${enable_casemod_expansions+set}" = set; then 2469 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval 2470fi 2471 2472# Check whether --enable-command-timing was given. 2473if test "${enable_command_timing+set}" = set; then 2474 enableval=$enable_command_timing; opt_command_timing=$enableval 2475fi 2476 2477# Check whether --enable-cond-command was given. 2478if test "${enable_cond_command+set}" = set; then 2479 enableval=$enable_cond_command; opt_cond_command=$enableval 2480fi 2481 2482# Check whether --enable-cond-regexp was given. 2483if test "${enable_cond_regexp+set}" = set; then 2484 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval 2485fi 2486 2487# Check whether --enable-coprocesses was given. 2488if test "${enable_coprocesses+set}" = set; then 2489 enableval=$enable_coprocesses; opt_coproc=$enableval 2490fi 2491 2492# Check whether --enable-debugger was given. 2493if test "${enable_debugger+set}" = set; then 2494 enableval=$enable_debugger; opt_debugger=$enableval 2495fi 2496 2497# Check whether --enable-directory-stack was given. 2498if test "${enable_directory_stack+set}" = set; then 2499 enableval=$enable_directory_stack; opt_dirstack=$enableval 2500fi 2501 2502# Check whether --enable-disabled-builtins was given. 2503if test "${enable_disabled_builtins+set}" = set; then 2504 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval 2505fi 2506 2507# Check whether --enable-dparen-arithmetic was given. 2508if test "${enable_dparen_arithmetic+set}" = set; then 2509 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval 2510fi 2511 2512# Check whether --enable-extended-glob was given. 2513if test "${enable_extended_glob+set}" = set; then 2514 enableval=$enable_extended_glob; opt_extended_glob=$enableval 2515fi 2516 2517# Check whether --enable-help-builtin was given. 2518if test "${enable_help_builtin+set}" = set; then 2519 enableval=$enable_help_builtin; opt_help=$enableval 2520fi 2521 2522# Check whether --enable-history was given. 2523if test "${enable_history+set}" = set; then 2524 enableval=$enable_history; opt_history=$enableval 2525fi 2526 2527# Check whether --enable-job-control was given. 2528if test "${enable_job_control+set}" = set; then 2529 enableval=$enable_job_control; opt_job_control=$enableval 2530fi 2531 2532# Check whether --enable-multibyte was given. 2533if test "${enable_multibyte+set}" = set; then 2534 enableval=$enable_multibyte; opt_multibyte=$enableval 2535fi 2536 2537# Check whether --enable-net-redirections was given. 2538if test "${enable_net_redirections+set}" = set; then 2539 enableval=$enable_net_redirections; opt_net_redirs=$enableval 2540fi 2541 2542# Check whether --enable-process-substitution was given. 2543if test "${enable_process_substitution+set}" = set; then 2544 enableval=$enable_process_substitution; opt_process_subst=$enableval 2545fi 2546 2547# Check whether --enable-progcomp was given. 2548if test "${enable_progcomp+set}" = set; then 2549 enableval=$enable_progcomp; opt_progcomp=$enableval 2550fi 2551 2552# Check whether --enable-prompt-string-decoding was given. 2553if test "${enable_prompt_string_decoding+set}" = set; then 2554 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval 2555fi 2556 2557# Check whether --enable-readline was given. 2558if test "${enable_readline+set}" = set; then 2559 enableval=$enable_readline; opt_readline=$enableval 2560fi 2561 2562# Check whether --enable-restricted was given. 2563if test "${enable_restricted+set}" = set; then 2564 enableval=$enable_restricted; opt_restricted=$enableval 2565fi 2566 2567# Check whether --enable-select was given. 2568if test "${enable_select+set}" = set; then 2569 enableval=$enable_select; opt_select=$enableval 2570fi 2571 2572# Check whether --enable-separate-helpfiles was given. 2573if test "${enable_separate_helpfiles+set}" = set; then 2574 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval 2575fi 2576 2577# Check whether --enable-single-help-strings was given. 2578if test "${enable_single_help_strings+set}" = set; then 2579 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval 2580fi 2581 2582# Check whether --enable-strict-posix-default was given. 2583if test "${enable_strict_posix_default+set}" = set; then 2584 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval 2585fi 2586 2587# Check whether --enable-usg-echo-default was given. 2588if test "${enable_usg_echo_default+set}" = set; then 2589 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval 2590fi 2591 2592# Check whether --enable-xpg-echo-default was given. 2593if test "${enable_xpg_echo_default+set}" = set; then 2594 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval 2595fi 2596 2597 2598# Check whether --enable-mem-scramble was given. 2599if test "${enable_mem_scramble+set}" = set; then 2600 enableval=$enable_mem_scramble; opt_memscramble=$enableval 2601fi 2602 2603# Check whether --enable-profiling was given. 2604if test "${enable_profiling+set}" = set; then 2605 enableval=$enable_profiling; opt_profiling=$enableval 2606fi 2607 2608# Check whether --enable-static-link was given. 2609if test "${enable_static_link+set}" = set; then 2610 enableval=$enable_static_link; opt_static_link=$enableval 2611fi 2612 2613 2614 2615 2616if test $opt_alias = yes; then 2617cat >>confdefs.h <<\_ACEOF 2618#define ALIAS 1 2619_ACEOF 2620 2621fi 2622if test $opt_dirstack = yes; then 2623cat >>confdefs.h <<\_ACEOF 2624#define PUSHD_AND_POPD 1 2625_ACEOF 2626 2627fi 2628if test $opt_restricted = yes; then 2629cat >>confdefs.h <<\_ACEOF 2630#define RESTRICTED_SHELL 1 2631_ACEOF 2632 2633fi 2634if test $opt_process_subst = yes; then 2635cat >>confdefs.h <<\_ACEOF 2636#define PROCESS_SUBSTITUTION 1 2637_ACEOF 2638 2639fi 2640if test $opt_prompt_decoding = yes; then 2641cat >>confdefs.h <<\_ACEOF 2642#define PROMPT_STRING_DECODE 1 2643_ACEOF 2644 2645fi 2646if test $opt_select = yes; then 2647cat >>confdefs.h <<\_ACEOF 2648#define SELECT_COMMAND 1 2649_ACEOF 2650 2651fi 2652if test $opt_help = yes; then 2653cat >>confdefs.h <<\_ACEOF 2654#define HELP_BUILTIN 1 2655_ACEOF 2656 2657fi 2658if test $opt_array_variables = yes; then 2659cat >>confdefs.h <<\_ACEOF 2660#define ARRAY_VARS 1 2661_ACEOF 2662 2663fi 2664if test $opt_dparen_arith = yes; then 2665cat >>confdefs.h <<\_ACEOF 2666#define DPAREN_ARITHMETIC 1 2667_ACEOF 2668 2669fi 2670if test $opt_brace_expansion = yes; then 2671cat >>confdefs.h <<\_ACEOF 2672#define BRACE_EXPANSION 1 2673_ACEOF 2674 2675fi 2676if test $opt_disabled_builtins = yes; then 2677cat >>confdefs.h <<\_ACEOF 2678#define DISABLED_BUILTINS 1 2679_ACEOF 2680 2681fi 2682if test $opt_command_timing = yes; then 2683cat >>confdefs.h <<\_ACEOF 2684#define COMMAND_TIMING 1 2685_ACEOF 2686 2687fi 2688if test $opt_xpg_echo = yes ; then 2689cat >>confdefs.h <<\_ACEOF 2690#define DEFAULT_ECHO_TO_XPG 1 2691_ACEOF 2692 2693fi 2694if test $opt_strict_posix = yes; then 2695cat >>confdefs.h <<\_ACEOF 2696#define STRICT_POSIX 1 2697_ACEOF 2698 2699fi 2700if test $opt_extended_glob = yes ; then 2701cat >>confdefs.h <<\_ACEOF 2702#define EXTENDED_GLOB 1 2703_ACEOF 2704 2705fi 2706if test $opt_cond_command = yes ; then 2707cat >>confdefs.h <<\_ACEOF 2708#define COND_COMMAND 1 2709_ACEOF 2710 2711fi 2712if test $opt_cond_regexp = yes ; then 2713cat >>confdefs.h <<\_ACEOF 2714#define COND_REGEXP 1 2715_ACEOF 2716 2717fi 2718if test $opt_coproc = yes; then 2719cat >>confdefs.h <<\_ACEOF 2720#define COPROCESS_SUPPORT 1 2721_ACEOF 2722 2723fi 2724if test $opt_arith_for_command = yes; then 2725cat >>confdefs.h <<\_ACEOF 2726#define ARITH_FOR_COMMAND 1 2727_ACEOF 2728 2729fi 2730if test $opt_net_redirs = yes; then 2731cat >>confdefs.h <<\_ACEOF 2732#define NETWORK_REDIRECTIONS 1 2733_ACEOF 2734 2735fi 2736if test $opt_progcomp = yes; then 2737cat >>confdefs.h <<\_ACEOF 2738#define PROGRAMMABLE_COMPLETION 1 2739_ACEOF 2740 2741fi 2742if test $opt_multibyte = no; then 2743cat >>confdefs.h <<\_ACEOF 2744#define NO_MULTIBYTE_SUPPORT 1 2745_ACEOF 2746 2747fi 2748if test $opt_debugger = yes; then 2749cat >>confdefs.h <<\_ACEOF 2750#define DEBUGGER 1 2751_ACEOF 2752 2753fi 2754if test $opt_casemod_attrs = yes; then 2755cat >>confdefs.h <<\_ACEOF 2756#define CASEMOD_ATTRS 1 2757_ACEOF 2758 2759fi 2760if test $opt_casemod_expansions = yes; then 2761cat >>confdefs.h <<\_ACEOF 2762#define CASEMOD_EXPANSIONS 1 2763_ACEOF 2764 2765fi 2766 2767if test $opt_memscramble = yes; then 2768cat >>confdefs.h <<\_ACEOF 2769#define MEMSCRAMBLE 1 2770_ACEOF 2771 2772fi 2773 2774if test "$opt_minimal_config" = yes; then 2775 TESTSCRIPT=run-minimal 2776else 2777 TESTSCRIPT=run-all 2778fi 2779 2780HELPDIR= HELPDIRDEFINE= HELPINSTALL= 2781if test "$opt_separate_help" != no; then 2782 if test "$opt_separate_help" = "yes" ; then 2783 HELPDIR='${datadir}/bash' 2784 else 2785 HELPDIR=$opt_separate_help 2786 fi 2787 HELPDIRDEFINE='-H ${HELPDIR}' 2788 HELPINSTALL='install-help' 2789fi 2790HELPSTRINGS= 2791if test "$opt_single_longdoc_strings" != "yes"; then 2792 HELPSTRINGS='-S' 2793fi 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812echo "" 2813echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" 2814echo "" 2815 2816ac_ext=c 2817ac_cpp='$CPP $CPPFLAGS' 2818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2820ac_compiler_gnu=$ac_cv_c_compiler_gnu 2821if test -n "$ac_tool_prefix"; then 2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2823set dummy ${ac_tool_prefix}gcc; ac_word=$2 2824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if test "${ac_cv_prog_CC+set}" = set; then 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$CC"; then 2830 ac_cv_prog_CC="$CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2839 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2852$as_echo "$CC" >&6; } 2853else 2854 { $as_echo "$as_me:$LINENO: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 2859fi 2860if test -z "$ac_cv_prog_CC"; then 2861 ac_ct_CC=$CC 2862 # Extract the first word of "gcc", so it can be a program name with args. 2863set dummy gcc; ac_word=$2 2864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2865$as_echo_n "checking for $ac_word... " >&6; } 2866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2867 $as_echo_n "(cached) " >&6 2868else 2869 if test -n "$ac_ct_CC"; then 2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 test -z "$as_dir" && as_dir=. 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2879 ac_cv_prog_ac_ct_CC="gcc" 2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884done 2885IFS=$as_save_IFS 2886 2887fi 2888fi 2889ac_ct_CC=$ac_cv_prog_ac_ct_CC 2890if test -n "$ac_ct_CC"; then 2891 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2892$as_echo "$ac_ct_CC" >&6; } 2893else 2894 { $as_echo "$as_me:$LINENO: result: no" >&5 2895$as_echo "no" >&6; } 2896fi 2897 2898 if test "x$ac_ct_CC" = x; then 2899 CC="" 2900 else 2901 case $cross_compiling:$ac_tool_warned in 2902yes:) 2903{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2905ac_tool_warned=yes ;; 2906esac 2907 CC=$ac_ct_CC 2908 fi 2909else 2910 CC="$ac_cv_prog_CC" 2911fi 2912 2913if test -z "$CC"; then 2914 if test -n "$ac_tool_prefix"; then 2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2916set dummy ${ac_tool_prefix}cc; ac_word=$2 2917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if test "${ac_cv_prog_CC+set}" = set; then 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$CC"; then 2923 ac_cv_prog_CC="$CC" # Let the user override the test. 2924else 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2932 ac_cv_prog_CC="${ac_tool_prefix}cc" 2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937done 2938IFS=$as_save_IFS 2939 2940fi 2941fi 2942CC=$ac_cv_prog_CC 2943if test -n "$CC"; then 2944 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2945$as_echo "$CC" >&6; } 2946else 2947 { $as_echo "$as_me:$LINENO: result: no" >&5 2948$as_echo "no" >&6; } 2949fi 2950 2951 2952 fi 2953fi 2954if test -z "$CC"; then 2955 # Extract the first word of "cc", so it can be a program name with args. 2956set dummy cc; ac_word=$2 2957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2958$as_echo_n "checking for $ac_word... " >&6; } 2959if test "${ac_cv_prog_CC+set}" = set; then 2960 $as_echo_n "(cached) " >&6 2961else 2962 if test -n "$CC"; then 2963 ac_cv_prog_CC="$CC" # Let the user override the test. 2964else 2965 ac_prog_rejected=no 2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 test -z "$as_dir" && as_dir=. 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2974 ac_prog_rejected=yes 2975 continue 2976 fi 2977 ac_cv_prog_CC="cc" 2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982done 2983IFS=$as_save_IFS 2984 2985if test $ac_prog_rejected = yes; then 2986 # We found a bogon in the path, so make sure we never use it. 2987 set dummy $ac_cv_prog_CC 2988 shift 2989 if test $# != 0; then 2990 # We chose a different compiler from the bogus one. 2991 # However, it has the same basename, so the bogon will be chosen 2992 # first if we set CC to just the basename; use the full file name. 2993 shift 2994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2995 fi 2996fi 2997fi 2998fi 2999CC=$ac_cv_prog_CC 3000if test -n "$CC"; then 3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3002$as_echo "$CC" >&6; } 3003else 3004 { $as_echo "$as_me:$LINENO: result: no" >&5 3005$as_echo "no" >&6; } 3006fi 3007 3008 3009fi 3010if test -z "$CC"; then 3011 if test -n "$ac_tool_prefix"; then 3012 for ac_prog in cl.exe 3013 do 3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3015set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3017$as_echo_n "checking for $ac_word... " >&6; } 3018if test "${ac_cv_prog_CC+set}" = set; then 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test -n "$CC"; then 3022 ac_cv_prog_CC="$CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036done 3037IFS=$as_save_IFS 3038 3039fi 3040fi 3041CC=$ac_cv_prog_CC 3042if test -n "$CC"; then 3043 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3044$as_echo "$CC" >&6; } 3045else 3046 { $as_echo "$as_me:$LINENO: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 3051 test -n "$CC" && break 3052 done 3053fi 3054if test -z "$CC"; then 3055 ac_ct_CC=$CC 3056 for ac_prog in cl.exe 3057do 3058 # Extract the first word of "$ac_prog", so it can be a program name with args. 3059set dummy $ac_prog; ac_word=$2 3060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3061$as_echo_n "checking for $ac_word... " >&6; } 3062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3063 $as_echo_n "(cached) " >&6 3064else 3065 if test -n "$ac_ct_CC"; then 3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3075 ac_cv_prog_ac_ct_CC="$ac_prog" 3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079done 3080done 3081IFS=$as_save_IFS 3082 3083fi 3084fi 3085ac_ct_CC=$ac_cv_prog_ac_ct_CC 3086if test -n "$ac_ct_CC"; then 3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3088$as_echo "$ac_ct_CC" >&6; } 3089else 3090 { $as_echo "$as_me:$LINENO: result: no" >&5 3091$as_echo "no" >&6; } 3092fi 3093 3094 3095 test -n "$ac_ct_CC" && break 3096done 3097 3098 if test "x$ac_ct_CC" = x; then 3099 CC="" 3100 else 3101 case $cross_compiling:$ac_tool_warned in 3102yes:) 3103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3105ac_tool_warned=yes ;; 3106esac 3107 CC=$ac_ct_CC 3108 fi 3109fi 3110 3111fi 3112 3113 3114test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3116{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3117See \`config.log' for more details." >&5 3118$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3119See \`config.log' for more details." >&2;} 3120 { (exit 1); exit 1; }; }; } 3121 3122# Provide some information about the compiler. 3123$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3124set X $ac_compile 3125ac_compiler=$2 3126{ (ac_try="$ac_compiler --version >&5" 3127case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3132$as_echo "$ac_try_echo") >&5 3133 (eval "$ac_compiler --version >&5") 2>&5 3134 ac_status=$? 3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); } 3137{ (ac_try="$ac_compiler -v >&5" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3143$as_echo "$ac_try_echo") >&5 3144 (eval "$ac_compiler -v >&5") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); } 3148{ (ac_try="$ac_compiler -V >&5" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3154$as_echo "$ac_try_echo") >&5 3155 (eval "$ac_compiler -V >&5") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); } 3159 3160cat >conftest.$ac_ext <<_ACEOF 3161/* confdefs.h. */ 3162_ACEOF 3163cat confdefs.h >>conftest.$ac_ext 3164cat >>conftest.$ac_ext <<_ACEOF 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175ac_clean_files_save=$ac_clean_files 3176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3177# Try to create an executable without -o first, disregard a.out. 3178# It will help us diagnose broken compilers, and finding out an intuition 3179# of exeext. 3180{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3181$as_echo_n "checking for C compiler default output file name... " >&6; } 3182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3183 3184# The possible output files: 3185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3186 3187ac_rmfiles= 3188for ac_file in $ac_files 3189do 3190 case $ac_file in 3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3193 esac 3194done 3195rm -f $ac_rmfiles 3196 3197if { (ac_try="$ac_link_default" 3198case "(($ac_try" in 3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3200 *) ac_try_echo=$ac_try;; 3201esac 3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3203$as_echo "$ac_try_echo") >&5 3204 (eval "$ac_link_default") 2>&5 3205 ac_status=$? 3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); }; then 3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3210# in a Makefile. We should not override ac_cv_exeext if it was cached, 3211# so that the user can short-circuit this test for compilers unknown to 3212# Autoconf. 3213for ac_file in $ac_files '' 3214do 3215 test -f "$ac_file" || continue 3216 case $ac_file in 3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3218 ;; 3219 [ab].out ) 3220 # We found the default executable, but exeext='' is most 3221 # certainly right. 3222 break;; 3223 *.* ) 3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3225 then :; else 3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227 fi 3228 # We set ac_cv_exeext here because the later test for it is not 3229 # safe: cross compilers may not add the suffix if given an `-o' 3230 # argument, so we may need to know it at that point already. 3231 # Even if this section looks crufty: it has the advantage of 3232 # actually working. 3233 break;; 3234 * ) 3235 break;; 3236 esac 3237done 3238test "$ac_cv_exeext" = no && ac_cv_exeext= 3239 3240else 3241 ac_file='' 3242fi 3243 3244{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3245$as_echo "$ac_file" >&6; } 3246if test -z "$ac_file"; then 3247 $as_echo "$as_me: failed program was:" >&5 3248sed 's/^/| /' conftest.$ac_ext >&5 3249 3250{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3253See \`config.log' for more details." >&5 3254$as_echo "$as_me: error: C compiler cannot create executables 3255See \`config.log' for more details." >&2;} 3256 { (exit 77); exit 77; }; }; } 3257fi 3258 3259ac_exeext=$ac_cv_exeext 3260 3261# Check that the compiler produces executables we can run. If not, either 3262# the compiler is broken, or we cross compile. 3263{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3264$as_echo_n "checking whether the C compiler works... " >&6; } 3265# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3266# If not cross compiling, check that we can run a simple program. 3267if test "$cross_compiling" != yes; then 3268 if { ac_try='./$ac_file' 3269 { (case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3274$as_echo "$ac_try_echo") >&5 3275 (eval "$ac_try") 2>&5 3276 ac_status=$? 3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3278 (exit $ac_status); }; }; then 3279 cross_compiling=no 3280 else 3281 if test "$cross_compiling" = maybe; then 3282 cross_compiling=yes 3283 else 3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3286{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3287If you meant to cross compile, use \`--host'. 3288See \`config.log' for more details." >&5 3289$as_echo "$as_me: error: cannot run C compiled programs. 3290If you meant to cross compile, use \`--host'. 3291See \`config.log' for more details." >&2;} 3292 { (exit 1); exit 1; }; }; } 3293 fi 3294 fi 3295fi 3296{ $as_echo "$as_me:$LINENO: result: yes" >&5 3297$as_echo "yes" >&6; } 3298 3299rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3300ac_clean_files=$ac_clean_files_save 3301# Check that the compiler produces executables we can run. If not, either 3302# the compiler is broken, or we cross compile. 3303{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3304$as_echo_n "checking whether we are cross compiling... " >&6; } 3305{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3306$as_echo "$cross_compiling" >&6; } 3307 3308{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3309$as_echo_n "checking for suffix of executables... " >&6; } 3310if { (ac_try="$ac_link" 3311case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314esac 3315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3316$as_echo "$ac_try_echo") >&5 3317 (eval "$ac_link") 2>&5 3318 ac_status=$? 3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3320 (exit $ac_status); }; then 3321 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3323# work properly (i.e., refer to `conftest.exe'), while it won't with 3324# `rm'. 3325for ac_file in conftest.exe conftest conftest.*; do 3326 test -f "$ac_file" || continue 3327 case $ac_file in 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3330 break;; 3331 * ) break;; 3332 esac 3333done 3334else 3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3337{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3338See \`config.log' for more details." >&5 3339$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3340See \`config.log' for more details." >&2;} 3341 { (exit 1); exit 1; }; }; } 3342fi 3343 3344rm -f conftest$ac_cv_exeext 3345{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3346$as_echo "$ac_cv_exeext" >&6; } 3347 3348rm -f conftest.$ac_ext 3349EXEEXT=$ac_cv_exeext 3350ac_exeext=$EXEEXT 3351{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3352$as_echo_n "checking for suffix of object files... " >&6; } 3353if test "${ac_cv_objext+set}" = set; then 3354 $as_echo_n "(cached) " >&6 3355else 3356 cat >conftest.$ac_ext <<_ACEOF 3357/* confdefs.h. */ 3358_ACEOF 3359cat confdefs.h >>conftest.$ac_ext 3360cat >>conftest.$ac_ext <<_ACEOF 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371rm -f conftest.o conftest.obj 3372if { (ac_try="$ac_compile" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3378$as_echo "$ac_try_echo") >&5 3379 (eval "$ac_compile") 2>&5 3380 ac_status=$? 3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; then 3383 for ac_file in conftest.o conftest.obj conftest.*; do 3384 test -f "$ac_file" || continue; 3385 case $ac_file in 3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3388 break;; 3389 esac 3390done 3391else 3392 $as_echo "$as_me: failed program was:" >&5 3393sed 's/^/| /' conftest.$ac_ext >&5 3394 3395{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3398See \`config.log' for more details." >&5 3399$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3400See \`config.log' for more details." >&2;} 3401 { (exit 1); exit 1; }; }; } 3402fi 3403 3404rm -f conftest.$ac_cv_objext conftest.$ac_ext 3405fi 3406{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3407$as_echo "$ac_cv_objext" >&6; } 3408OBJEXT=$ac_cv_objext 3409ac_objext=$OBJEXT 3410{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3411$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3412if test "${ac_cv_c_compiler_gnu+set}" = set; then 3413 $as_echo_n "(cached) " >&6 3414else 3415 cat >conftest.$ac_ext <<_ACEOF 3416/* confdefs.h. */ 3417_ACEOF 3418cat confdefs.h >>conftest.$ac_ext 3419cat >>conftest.$ac_ext <<_ACEOF 3420/* end confdefs.h. */ 3421 3422int 3423main () 3424{ 3425#ifndef __GNUC__ 3426 choke me 3427#endif 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433rm -f conftest.$ac_objext 3434if { (ac_try="$ac_compile" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3440$as_echo "$ac_try_echo") >&5 3441 (eval "$ac_compile") 2>conftest.er1 3442 ac_status=$? 3443 grep -v '^ *+' conftest.er1 >conftest.err 3444 rm -f conftest.er1 3445 cat conftest.err >&5 3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } && { 3448 test -z "$ac_c_werror_flag" || 3449 test ! -s conftest.err 3450 } && test -s conftest.$ac_objext; then 3451 ac_compiler_gnu=yes 3452else 3453 $as_echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456 ac_compiler_gnu=no 3457fi 3458 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460ac_cv_c_compiler_gnu=$ac_compiler_gnu 3461 3462fi 3463{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3464$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3465if test $ac_compiler_gnu = yes; then 3466 GCC=yes 3467else 3468 GCC= 3469fi 3470ac_test_CFLAGS=${CFLAGS+set} 3471ac_save_CFLAGS=$CFLAGS 3472{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3473$as_echo_n "checking whether $CC accepts -g... " >&6; } 3474if test "${ac_cv_prog_cc_g+set}" = set; then 3475 $as_echo_n "(cached) " >&6 3476else 3477 ac_save_c_werror_flag=$ac_c_werror_flag 3478 ac_c_werror_flag=yes 3479 ac_cv_prog_cc_g=no 3480 CFLAGS="-g" 3481 cat >conftest.$ac_ext <<_ACEOF 3482/* confdefs.h. */ 3483_ACEOF 3484cat confdefs.h >>conftest.$ac_ext 3485cat >>conftest.$ac_ext <<_ACEOF 3486/* end confdefs.h. */ 3487 3488int 3489main () 3490{ 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496rm -f conftest.$ac_objext 3497if { (ac_try="$ac_compile" 3498case "(($ac_try" in 3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 *) ac_try_echo=$ac_try;; 3501esac 3502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3503$as_echo "$ac_try_echo") >&5 3504 (eval "$ac_compile") 2>conftest.er1 3505 ac_status=$? 3506 grep -v '^ *+' conftest.er1 >conftest.err 3507 rm -f conftest.er1 3508 cat conftest.err >&5 3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); } && { 3511 test -z "$ac_c_werror_flag" || 3512 test ! -s conftest.err 3513 } && test -s conftest.$ac_objext; then 3514 ac_cv_prog_cc_g=yes 3515else 3516 $as_echo "$as_me: failed program was:" >&5 3517sed 's/^/| /' conftest.$ac_ext >&5 3518 3519 CFLAGS="" 3520 cat >conftest.$ac_ext <<_ACEOF 3521/* confdefs.h. */ 3522_ACEOF 3523cat confdefs.h >>conftest.$ac_ext 3524cat >>conftest.$ac_ext <<_ACEOF 3525/* end confdefs.h. */ 3526 3527int 3528main () 3529{ 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535rm -f conftest.$ac_objext 3536if { (ac_try="$ac_compile" 3537case "(($ac_try" in 3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3539 *) ac_try_echo=$ac_try;; 3540esac 3541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3542$as_echo "$ac_try_echo") >&5 3543 (eval "$ac_compile") 2>conftest.er1 3544 ac_status=$? 3545 grep -v '^ *+' conftest.er1 >conftest.err 3546 rm -f conftest.er1 3547 cat conftest.err >&5 3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); } && { 3550 test -z "$ac_c_werror_flag" || 3551 test ! -s conftest.err 3552 } && test -s conftest.$ac_objext; then 3553 : 3554else 3555 $as_echo "$as_me: failed program was:" >&5 3556sed 's/^/| /' conftest.$ac_ext >&5 3557 3558 ac_c_werror_flag=$ac_save_c_werror_flag 3559 CFLAGS="-g" 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575rm -f conftest.$ac_objext 3576if { (ac_try="$ac_compile" 3577case "(($ac_try" in 3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3579 *) ac_try_echo=$ac_try;; 3580esac 3581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3582$as_echo "$ac_try_echo") >&5 3583 (eval "$ac_compile") 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } && { 3590 test -z "$ac_c_werror_flag" || 3591 test ! -s conftest.err 3592 } && test -s conftest.$ac_objext; then 3593 ac_cv_prog_cc_g=yes 3594else 3595 $as_echo "$as_me: failed program was:" >&5 3596sed 's/^/| /' conftest.$ac_ext >&5 3597 3598 3599fi 3600 3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3602fi 3603 3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3605fi 3606 3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3608 ac_c_werror_flag=$ac_save_c_werror_flag 3609fi 3610{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3611$as_echo "$ac_cv_prog_cc_g" >&6; } 3612if test "$ac_test_CFLAGS" = set; then 3613 CFLAGS=$ac_save_CFLAGS 3614elif test $ac_cv_prog_cc_g = yes; then 3615 if test "$GCC" = yes; then 3616 CFLAGS="-g -O2" 3617 else 3618 CFLAGS="-g" 3619 fi 3620else 3621 if test "$GCC" = yes; then 3622 CFLAGS="-O2" 3623 else 3624 CFLAGS= 3625 fi 3626fi 3627{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3628$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3629if test "${ac_cv_prog_cc_c89+set}" = set; then 3630 $as_echo_n "(cached) " >&6 3631else 3632 ac_cv_prog_cc_c89=no 3633ac_save_CC=$CC 3634cat >conftest.$ac_ext <<_ACEOF 3635/* confdefs.h. */ 3636_ACEOF 3637cat confdefs.h >>conftest.$ac_ext 3638cat >>conftest.$ac_ext <<_ACEOF 3639/* end confdefs.h. */ 3640#include <stdarg.h> 3641#include <stdio.h> 3642#include <sys/types.h> 3643#include <sys/stat.h> 3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3645struct buf { int x; }; 3646FILE * (*rcsopen) (struct buf *, struct stat *, int); 3647static char *e (p, i) 3648 char **p; 3649 int i; 3650{ 3651 return p[i]; 3652} 3653static char *f (char * (*g) (char **, int), char **p, ...) 3654{ 3655 char *s; 3656 va_list v; 3657 va_start (v,p); 3658 s = g (p, va_arg (v,int)); 3659 va_end (v); 3660 return s; 3661} 3662 3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3664 function prototypes and stuff, but not '\xHH' hex character constants. 3665 These don't provoke an error unfortunately, instead are silently treated 3666 as 'x'. The following induces an error, until -std is added to get 3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3668 array size at least. It's necessary to write '\x00'==0 to get something 3669 that's true only with -std. */ 3670int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3671 3672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3673 inside strings and character constants. */ 3674#define FOO(x) 'x' 3675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3676 3677int test (int i, double x); 3678struct s1 {int (*f) (int a);}; 3679struct s2 {int (*f) (double a);}; 3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3681int argc; 3682char **argv; 3683int 3684main () 3685{ 3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3693do 3694 CC="$ac_save_CC $ac_arg" 3695 rm -f conftest.$ac_objext 3696if { (ac_try="$ac_compile" 3697case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3702$as_echo "$ac_try_echo") >&5 3703 (eval "$ac_compile") 2>conftest.er1 3704 ac_status=$? 3705 grep -v '^ *+' conftest.er1 >conftest.err 3706 rm -f conftest.er1 3707 cat conftest.err >&5 3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); } && { 3710 test -z "$ac_c_werror_flag" || 3711 test ! -s conftest.err 3712 } && test -s conftest.$ac_objext; then 3713 ac_cv_prog_cc_c89=$ac_arg 3714else 3715 $as_echo "$as_me: failed program was:" >&5 3716sed 's/^/| /' conftest.$ac_ext >&5 3717 3718 3719fi 3720 3721rm -f core conftest.err conftest.$ac_objext 3722 test "x$ac_cv_prog_cc_c89" != "xno" && break 3723done 3724rm -f conftest.$ac_ext 3725CC=$ac_save_CC 3726 3727fi 3728# AC_CACHE_VAL 3729case "x$ac_cv_prog_cc_c89" in 3730 x) 3731 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3732$as_echo "none needed" >&6; } ;; 3733 xno) 3734 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3735$as_echo "unsupported" >&6; } ;; 3736 *) 3737 CC="$CC $ac_cv_prog_cc_c89" 3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3740esac 3741 3742 3743ac_ext=c 3744ac_cpp='$CPP $CPPFLAGS' 3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749 3750 3751 3752 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 3753$as_echo_n "checking for strerror in -lcposix... " >&6; } 3754if test "${ac_cv_lib_cposix_strerror+set}" = set; then 3755 $as_echo_n "(cached) " >&6 3756else 3757 ac_check_lib_save_LIBS=$LIBS 3758LIBS="-lcposix $LIBS" 3759cat >conftest.$ac_ext <<_ACEOF 3760/* confdefs.h. */ 3761_ACEOF 3762cat confdefs.h >>conftest.$ac_ext 3763cat >>conftest.$ac_ext <<_ACEOF 3764/* end confdefs.h. */ 3765 3766/* Override any GCC internal prototype to avoid an error. 3767 Use char because int might match the return type of a GCC 3768 builtin and then its argument prototype would still apply. */ 3769#ifdef __cplusplus 3770extern "C" 3771#endif 3772char strerror (); 3773int 3774main () 3775{ 3776return strerror (); 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781rm -f conftest.$ac_objext conftest$ac_exeext 3782if { (ac_try="$ac_link" 3783case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786esac 3787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3788$as_echo "$ac_try_echo") >&5 3789 (eval "$ac_link") 2>conftest.er1 3790 ac_status=$? 3791 grep -v '^ *+' conftest.er1 >conftest.err 3792 rm -f conftest.er1 3793 cat conftest.err >&5 3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); } && { 3796 test -z "$ac_c_werror_flag" || 3797 test ! -s conftest.err 3798 } && test -s conftest$ac_exeext && { 3799 test "$cross_compiling" = yes || 3800 $as_test_x conftest$ac_exeext 3801 }; then 3802 ac_cv_lib_cposix_strerror=yes 3803else 3804 $as_echo "$as_me: failed program was:" >&5 3805sed 's/^/| /' conftest.$ac_ext >&5 3806 3807 ac_cv_lib_cposix_strerror=no 3808fi 3809 3810rm -rf conftest.dSYM 3811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3812 conftest$ac_exeext conftest.$ac_ext 3813LIBS=$ac_check_lib_save_LIBS 3814fi 3815{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 3816$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 3817if test "x$ac_cv_lib_cposix_strerror" = x""yes; then 3818 LIBS="$LIBS -lcposix" 3819fi 3820 3821 3822 3823ac_ext=c 3824ac_cpp='$CPP $CPPFLAGS' 3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_c_compiler_gnu 3828{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3829$as_echo_n "checking how to run the C preprocessor... " >&6; } 3830# On Suns, sometimes $CPP names a directory. 3831if test -n "$CPP" && test -d "$CPP"; then 3832 CPP= 3833fi 3834if test -z "$CPP"; then 3835 if test "${ac_cv_prog_CPP+set}" = set; then 3836 $as_echo_n "(cached) " >&6 3837else 3838 # Double quotes because CPP needs to be expanded 3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3840 do 3841 ac_preproc_ok=false 3842for ac_c_preproc_warn_flag in '' yes 3843do 3844 # Use a header file that comes with gcc, so configuring glibc 3845 # with a fresh cross-compiler works. 3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3847 # <limits.h> exists even on freestanding compilers. 3848 # On the NeXT, cc -E runs the code through the compiler's parser, 3849 # not just through cpp. "Syntax error" is here to catch this case. 3850 cat >conftest.$ac_ext <<_ACEOF 3851/* confdefs.h. */ 3852_ACEOF 3853cat confdefs.h >>conftest.$ac_ext 3854cat >>conftest.$ac_ext <<_ACEOF 3855/* end confdefs.h. */ 3856#ifdef __STDC__ 3857# include <limits.h> 3858#else 3859# include <assert.h> 3860#endif 3861 Syntax error 3862_ACEOF 3863if { (ac_try="$ac_cpp conftest.$ac_ext" 3864case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3869$as_echo "$ac_try_echo") >&5 3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3871 ac_status=$? 3872 grep -v '^ *+' conftest.er1 >conftest.err 3873 rm -f conftest.er1 3874 cat conftest.err >&5 3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3876 (exit $ac_status); } >/dev/null && { 3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3878 test ! -s conftest.err 3879 }; then 3880 : 3881else 3882 $as_echo "$as_me: failed program was:" >&5 3883sed 's/^/| /' conftest.$ac_ext >&5 3884 3885 # Broken: fails on valid input. 3886continue 3887fi 3888 3889rm -f conftest.err conftest.$ac_ext 3890 3891 # OK, works on sane cases. Now check whether nonexistent headers 3892 # can be detected and how. 3893 cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#include <ac_nonexistent.h> 3900_ACEOF 3901if { (ac_try="$ac_cpp conftest.$ac_ext" 3902case "(($ac_try" in 3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3904 *) ac_try_echo=$ac_try;; 3905esac 3906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3907$as_echo "$ac_try_echo") >&5 3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3909 ac_status=$? 3910 grep -v '^ *+' conftest.er1 >conftest.err 3911 rm -f conftest.er1 3912 cat conftest.err >&5 3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); } >/dev/null && { 3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3916 test ! -s conftest.err 3917 }; then 3918 # Broken: success on invalid input. 3919continue 3920else 3921 $as_echo "$as_me: failed program was:" >&5 3922sed 's/^/| /' conftest.$ac_ext >&5 3923 3924 # Passes both tests. 3925ac_preproc_ok=: 3926break 3927fi 3928 3929rm -f conftest.err conftest.$ac_ext 3930 3931done 3932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3933rm -f conftest.err conftest.$ac_ext 3934if $ac_preproc_ok; then 3935 break 3936fi 3937 3938 done 3939 ac_cv_prog_CPP=$CPP 3940 3941fi 3942 CPP=$ac_cv_prog_CPP 3943else 3944 ac_cv_prog_CPP=$CPP 3945fi 3946{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3947$as_echo "$CPP" >&6; } 3948ac_preproc_ok=false 3949for ac_c_preproc_warn_flag in '' yes 3950do 3951 # Use a header file that comes with gcc, so configuring glibc 3952 # with a fresh cross-compiler works. 3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3954 # <limits.h> exists even on freestanding compilers. 3955 # On the NeXT, cc -E runs the code through the compiler's parser, 3956 # not just through cpp. "Syntax error" is here to catch this case. 3957 cat >conftest.$ac_ext <<_ACEOF 3958/* confdefs.h. */ 3959_ACEOF 3960cat confdefs.h >>conftest.$ac_ext 3961cat >>conftest.$ac_ext <<_ACEOF 3962/* end confdefs.h. */ 3963#ifdef __STDC__ 3964# include <limits.h> 3965#else 3966# include <assert.h> 3967#endif 3968 Syntax error 3969_ACEOF 3970if { (ac_try="$ac_cpp conftest.$ac_ext" 3971case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3976$as_echo "$ac_try_echo") >&5 3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3978 ac_status=$? 3979 grep -v '^ *+' conftest.er1 >conftest.err 3980 rm -f conftest.er1 3981 cat conftest.err >&5 3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); } >/dev/null && { 3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3985 test ! -s conftest.err 3986 }; then 3987 : 3988else 3989 $as_echo "$as_me: failed program was:" >&5 3990sed 's/^/| /' conftest.$ac_ext >&5 3991 3992 # Broken: fails on valid input. 3993continue 3994fi 3995 3996rm -f conftest.err conftest.$ac_ext 3997 3998 # OK, works on sane cases. Now check whether nonexistent headers 3999 # can be detected and how. 4000 cat >conftest.$ac_ext <<_ACEOF 4001/* confdefs.h. */ 4002_ACEOF 4003cat confdefs.h >>conftest.$ac_ext 4004cat >>conftest.$ac_ext <<_ACEOF 4005/* end confdefs.h. */ 4006#include <ac_nonexistent.h> 4007_ACEOF 4008if { (ac_try="$ac_cpp conftest.$ac_ext" 4009case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4014$as_echo "$ac_try_echo") >&5 4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4016 ac_status=$? 4017 grep -v '^ *+' conftest.er1 >conftest.err 4018 rm -f conftest.er1 4019 cat conftest.err >&5 4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4021 (exit $ac_status); } >/dev/null && { 4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4023 test ! -s conftest.err 4024 }; then 4025 # Broken: success on invalid input. 4026continue 4027else 4028 $as_echo "$as_me: failed program was:" >&5 4029sed 's/^/| /' conftest.$ac_ext >&5 4030 4031 # Passes both tests. 4032ac_preproc_ok=: 4033break 4034fi 4035 4036rm -f conftest.err conftest.$ac_ext 4037 4038done 4039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4040rm -f conftest.err conftest.$ac_ext 4041if $ac_preproc_ok; then 4042 : 4043else 4044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4046{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4047See \`config.log' for more details." >&5 4048$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4049See \`config.log' for more details." >&2;} 4050 { (exit 1); exit 1; }; }; } 4051fi 4052 4053ac_ext=c 4054ac_cpp='$CPP $CPPFLAGS' 4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4057ac_compiler_gnu=$ac_cv_c_compiler_gnu 4058 4059 4060{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4062if test "${ac_cv_path_GREP+set}" = set; then 4063 $as_echo_n "(cached) " >&6 4064else 4065 if test -z "$GREP"; then 4066 ac_path_GREP_found=false 4067 # Loop through the user's path and test for each of PROGNAME-LIST 4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070do 4071 IFS=$as_save_IFS 4072 test -z "$as_dir" && as_dir=. 4073 for ac_prog in grep ggrep; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4077# Check for GNU ac_path_GREP and select it if it is found. 4078 # Check for GNU $ac_path_GREP 4079case `"$ac_path_GREP" --version 2>&1` in 4080*GNU*) 4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4082*) 4083 ac_count=0 4084 $as_echo_n 0123456789 >"conftest.in" 4085 while : 4086 do 4087 cat "conftest.in" "conftest.in" >"conftest.tmp" 4088 mv "conftest.tmp" "conftest.in" 4089 cp "conftest.in" "conftest.nl" 4090 $as_echo 'GREP' >> "conftest.nl" 4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093 ac_count=`expr $ac_count + 1` 4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4095 # Best one so far, save it but keep looking for a better one 4096 ac_cv_path_GREP="$ac_path_GREP" 4097 ac_path_GREP_max=$ac_count 4098 fi 4099 # 10*(2^10) chars as input seems more than enough 4100 test $ac_count -gt 10 && break 4101 done 4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103esac 4104 4105 $ac_path_GREP_found && break 3 4106 done 4107 done 4108done 4109IFS=$as_save_IFS 4110 if test -z "$ac_cv_path_GREP"; then 4111 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4112$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4113 { (exit 1); exit 1; }; } 4114 fi 4115else 4116 ac_cv_path_GREP=$GREP 4117fi 4118 4119fi 4120{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4121$as_echo "$ac_cv_path_GREP" >&6; } 4122 GREP="$ac_cv_path_GREP" 4123 4124 4125{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4126$as_echo_n "checking for egrep... " >&6; } 4127if test "${ac_cv_path_EGREP+set}" = set; then 4128 $as_echo_n "(cached) " >&6 4129else 4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4131 then ac_cv_path_EGREP="$GREP -E" 4132 else 4133 if test -z "$EGREP"; then 4134 ac_path_EGREP_found=false 4135 # Loop through the user's path and test for each of PROGNAME-LIST 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_prog in egrep; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4145# Check for GNU ac_path_EGREP and select it if it is found. 4146 # Check for GNU $ac_path_EGREP 4147case `"$ac_path_EGREP" --version 2>&1` in 4148*GNU*) 4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4150*) 4151 ac_count=0 4152 $as_echo_n 0123456789 >"conftest.in" 4153 while : 4154 do 4155 cat "conftest.in" "conftest.in" >"conftest.tmp" 4156 mv "conftest.tmp" "conftest.in" 4157 cp "conftest.in" "conftest.nl" 4158 $as_echo 'EGREP' >> "conftest.nl" 4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4161 ac_count=`expr $ac_count + 1` 4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4163 # Best one so far, save it but keep looking for a better one 4164 ac_cv_path_EGREP="$ac_path_EGREP" 4165 ac_path_EGREP_max=$ac_count 4166 fi 4167 # 10*(2^10) chars as input seems more than enough 4168 test $ac_count -gt 10 && break 4169 done 4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4171esac 4172 4173 $ac_path_EGREP_found && break 3 4174 done 4175 done 4176done 4177IFS=$as_save_IFS 4178 if test -z "$ac_cv_path_EGREP"; then 4179 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4180$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4181 { (exit 1); exit 1; }; } 4182 fi 4183else 4184 ac_cv_path_EGREP=$EGREP 4185fi 4186 4187 fi 4188fi 4189{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4190$as_echo "$ac_cv_path_EGREP" >&6; } 4191 EGREP="$ac_cv_path_EGREP" 4192 4193 4194{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4195$as_echo_n "checking for ANSI C header files... " >&6; } 4196if test "${ac_cv_header_stdc+set}" = set; then 4197 $as_echo_n "(cached) " >&6 4198else 4199 cat >conftest.$ac_ext <<_ACEOF 4200/* confdefs.h. */ 4201_ACEOF 4202cat confdefs.h >>conftest.$ac_ext 4203cat >>conftest.$ac_ext <<_ACEOF 4204/* end confdefs.h. */ 4205#include <stdlib.h> 4206#include <stdarg.h> 4207#include <string.h> 4208#include <float.h> 4209 4210int 4211main () 4212{ 4213 4214 ; 4215 return 0; 4216} 4217_ACEOF 4218rm -f conftest.$ac_objext 4219if { (ac_try="$ac_compile" 4220case "(($ac_try" in 4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4222 *) ac_try_echo=$ac_try;; 4223esac 4224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4225$as_echo "$ac_try_echo") >&5 4226 (eval "$ac_compile") 2>conftest.er1 4227 ac_status=$? 4228 grep -v '^ *+' conftest.er1 >conftest.err 4229 rm -f conftest.er1 4230 cat conftest.err >&5 4231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); } && { 4233 test -z "$ac_c_werror_flag" || 4234 test ! -s conftest.err 4235 } && test -s conftest.$ac_objext; then 4236 ac_cv_header_stdc=yes 4237else 4238 $as_echo "$as_me: failed program was:" >&5 4239sed 's/^/| /' conftest.$ac_ext >&5 4240 4241 ac_cv_header_stdc=no 4242fi 4243 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 4246if test $ac_cv_header_stdc = yes; then 4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4248 cat >conftest.$ac_ext <<_ACEOF 4249/* confdefs.h. */ 4250_ACEOF 4251cat confdefs.h >>conftest.$ac_ext 4252cat >>conftest.$ac_ext <<_ACEOF 4253/* end confdefs.h. */ 4254#include <string.h> 4255 4256_ACEOF 4257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4258 $EGREP "memchr" >/dev/null 2>&1; then 4259 : 4260else 4261 ac_cv_header_stdc=no 4262fi 4263rm -f conftest* 4264 4265fi 4266 4267if test $ac_cv_header_stdc = yes; then 4268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4269 cat >conftest.$ac_ext <<_ACEOF 4270/* confdefs.h. */ 4271_ACEOF 4272cat confdefs.h >>conftest.$ac_ext 4273cat >>conftest.$ac_ext <<_ACEOF 4274/* end confdefs.h. */ 4275#include <stdlib.h> 4276 4277_ACEOF 4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4279 $EGREP "free" >/dev/null 2>&1; then 4280 : 4281else 4282 ac_cv_header_stdc=no 4283fi 4284rm -f conftest* 4285 4286fi 4287 4288if test $ac_cv_header_stdc = yes; then 4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4290 if test "$cross_compiling" = yes; then 4291 : 4292else 4293 cat >conftest.$ac_ext <<_ACEOF 4294/* confdefs.h. */ 4295_ACEOF 4296cat confdefs.h >>conftest.$ac_ext 4297cat >>conftest.$ac_ext <<_ACEOF 4298/* end confdefs.h. */ 4299#include <ctype.h> 4300#include <stdlib.h> 4301#if ((' ' & 0x0FF) == 0x020) 4302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4304#else 4305# define ISLOWER(c) \ 4306 (('a' <= (c) && (c) <= 'i') \ 4307 || ('j' <= (c) && (c) <= 'r') \ 4308 || ('s' <= (c) && (c) <= 'z')) 4309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4310#endif 4311 4312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4313int 4314main () 4315{ 4316 int i; 4317 for (i = 0; i < 256; i++) 4318 if (XOR (islower (i), ISLOWER (i)) 4319 || toupper (i) != TOUPPER (i)) 4320 return 2; 4321 return 0; 4322} 4323_ACEOF 4324rm -f conftest$ac_exeext 4325if { (ac_try="$ac_link" 4326case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329esac 4330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4331$as_echo "$ac_try_echo") >&5 4332 (eval "$ac_link") 2>&5 4333 ac_status=$? 4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4336 { (case "(($ac_try" in 4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4338 *) ac_try_echo=$ac_try;; 4339esac 4340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4341$as_echo "$ac_try_echo") >&5 4342 (eval "$ac_try") 2>&5 4343 ac_status=$? 4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); }; }; then 4346 : 4347else 4348 $as_echo "$as_me: program exited with status $ac_status" >&5 4349$as_echo "$as_me: failed program was:" >&5 4350sed 's/^/| /' conftest.$ac_ext >&5 4351 4352( exit $ac_status ) 4353ac_cv_header_stdc=no 4354fi 4355rm -rf conftest.dSYM 4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4357fi 4358 4359 4360fi 4361fi 4362{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4363$as_echo "$ac_cv_header_stdc" >&6; } 4364if test $ac_cv_header_stdc = yes; then 4365 4366cat >>confdefs.h <<\_ACEOF 4367#define STDC_HEADERS 1 4368_ACEOF 4369 4370fi 4371 4372# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4383 inttypes.h stdint.h unistd.h 4384do 4385as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4386{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4387$as_echo_n "checking for $ac_header... " >&6; } 4388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4389 $as_echo_n "(cached) " >&6 4390else 4391 cat >conftest.$ac_ext <<_ACEOF 4392/* confdefs.h. */ 4393_ACEOF 4394cat confdefs.h >>conftest.$ac_ext 4395cat >>conftest.$ac_ext <<_ACEOF 4396/* end confdefs.h. */ 4397$ac_includes_default 4398 4399#include <$ac_header> 4400_ACEOF 4401rm -f conftest.$ac_objext 4402if { (ac_try="$ac_compile" 4403case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406esac 4407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4408$as_echo "$ac_try_echo") >&5 4409 (eval "$ac_compile") 2>conftest.er1 4410 ac_status=$? 4411 grep -v '^ *+' conftest.er1 >conftest.err 4412 rm -f conftest.er1 4413 cat conftest.err >&5 4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); } && { 4416 test -z "$ac_c_werror_flag" || 4417 test ! -s conftest.err 4418 } && test -s conftest.$ac_objext; then 4419 eval "$as_ac_Header=yes" 4420else 4421 $as_echo "$as_me: failed program was:" >&5 4422sed 's/^/| /' conftest.$ac_ext >&5 4423 4424 eval "$as_ac_Header=no" 4425fi 4426 4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4428fi 4429ac_res=`eval 'as_val=${'$as_ac_Header'} 4430 $as_echo "$as_val"'` 4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4432$as_echo "$ac_res" >&6; } 4433as_val=`eval 'as_val=${'$as_ac_Header'} 4434 $as_echo "$as_val"'` 4435 if test "x$as_val" = x""yes; then 4436 cat >>confdefs.h <<_ACEOF 4437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4438_ACEOF 4439 4440fi 4441 4442done 4443 4444 4445 4446 if test "${ac_cv_header_minix_config_h+set}" = set; then 4447 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4448$as_echo_n "checking for minix/config.h... " >&6; } 4449if test "${ac_cv_header_minix_config_h+set}" = set; then 4450 $as_echo_n "(cached) " >&6 4451fi 4452{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4453$as_echo "$ac_cv_header_minix_config_h" >&6; } 4454else 4455 # Is the header compilable? 4456{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4457$as_echo_n "checking minix/config.h usability... " >&6; } 4458cat >conftest.$ac_ext <<_ACEOF 4459/* confdefs.h. */ 4460_ACEOF 4461cat confdefs.h >>conftest.$ac_ext 4462cat >>conftest.$ac_ext <<_ACEOF 4463/* end confdefs.h. */ 4464$ac_includes_default 4465#include <minix/config.h> 4466_ACEOF 4467rm -f conftest.$ac_objext 4468if { (ac_try="$ac_compile" 4469case "(($ac_try" in 4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4471 *) ac_try_echo=$ac_try;; 4472esac 4473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4474$as_echo "$ac_try_echo") >&5 4475 (eval "$ac_compile") 2>conftest.er1 4476 ac_status=$? 4477 grep -v '^ *+' conftest.er1 >conftest.err 4478 rm -f conftest.er1 4479 cat conftest.err >&5 4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); } && { 4482 test -z "$ac_c_werror_flag" || 4483 test ! -s conftest.err 4484 } && test -s conftest.$ac_objext; then 4485 ac_header_compiler=yes 4486else 4487 $as_echo "$as_me: failed program was:" >&5 4488sed 's/^/| /' conftest.$ac_ext >&5 4489 4490 ac_header_compiler=no 4491fi 4492 4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4494{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4495$as_echo "$ac_header_compiler" >&6; } 4496 4497# Is the header present? 4498{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4499$as_echo_n "checking minix/config.h presence... " >&6; } 4500cat >conftest.$ac_ext <<_ACEOF 4501/* confdefs.h. */ 4502_ACEOF 4503cat confdefs.h >>conftest.$ac_ext 4504cat >>conftest.$ac_ext <<_ACEOF 4505/* end confdefs.h. */ 4506#include <minix/config.h> 4507_ACEOF 4508if { (ac_try="$ac_cpp conftest.$ac_ext" 4509case "(($ac_try" in 4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4511 *) ac_try_echo=$ac_try;; 4512esac 4513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4514$as_echo "$ac_try_echo") >&5 4515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4516 ac_status=$? 4517 grep -v '^ *+' conftest.er1 >conftest.err 4518 rm -f conftest.er1 4519 cat conftest.err >&5 4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); } >/dev/null && { 4522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4523 test ! -s conftest.err 4524 }; then 4525 ac_header_preproc=yes 4526else 4527 $as_echo "$as_me: failed program was:" >&5 4528sed 's/^/| /' conftest.$ac_ext >&5 4529 4530 ac_header_preproc=no 4531fi 4532 4533rm -f conftest.err conftest.$ac_ext 4534{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4535$as_echo "$ac_header_preproc" >&6; } 4536 4537# So? What about this header? 4538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4539 yes:no: ) 4540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4541$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4543$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4544 ac_header_preproc=yes 4545 ;; 4546 no:yes:* ) 4547 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4548$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4549 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4550$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4551 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4552$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4553 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4554$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4555 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4556$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4557 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4558$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4559 ( cat <<\_ASBOX 4560## ------------------------------- ## 4561## Report this to bug-bash@gnu.org ## 4562## ------------------------------- ## 4563_ASBOX 4564 ) | sed "s/^/$as_me: WARNING: /" >&2 4565 ;; 4566esac 4567{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4568$as_echo_n "checking for minix/config.h... " >&6; } 4569if test "${ac_cv_header_minix_config_h+set}" = set; then 4570 $as_echo_n "(cached) " >&6 4571else 4572 ac_cv_header_minix_config_h=$ac_header_preproc 4573fi 4574{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4575$as_echo "$ac_cv_header_minix_config_h" >&6; } 4576 4577fi 4578if test "x$ac_cv_header_minix_config_h" = x""yes; then 4579 MINIX=yes 4580else 4581 MINIX= 4582fi 4583 4584 4585 if test "$MINIX" = yes; then 4586 4587cat >>confdefs.h <<\_ACEOF 4588#define _POSIX_SOURCE 1 4589_ACEOF 4590 4591 4592cat >>confdefs.h <<\_ACEOF 4593#define _POSIX_1_SOURCE 2 4594_ACEOF 4595 4596 4597cat >>confdefs.h <<\_ACEOF 4598#define _MINIX 1 4599_ACEOF 4600 4601 fi 4602 4603 4604 4605 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 4606$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4607if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 4608 $as_echo_n "(cached) " >&6 4609else 4610 cat >conftest.$ac_ext <<_ACEOF 4611/* confdefs.h. */ 4612_ACEOF 4613cat confdefs.h >>conftest.$ac_ext 4614cat >>conftest.$ac_ext <<_ACEOF 4615/* end confdefs.h. */ 4616 4617# define __EXTENSIONS__ 1 4618 $ac_includes_default 4619int 4620main () 4621{ 4622 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627rm -f conftest.$ac_objext 4628if { (ac_try="$ac_compile" 4629case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4634$as_echo "$ac_try_echo") >&5 4635 (eval "$ac_compile") 2>conftest.er1 4636 ac_status=$? 4637 grep -v '^ *+' conftest.er1 >conftest.err 4638 rm -f conftest.er1 4639 cat conftest.err >&5 4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } && { 4642 test -z "$ac_c_werror_flag" || 4643 test ! -s conftest.err 4644 } && test -s conftest.$ac_objext; then 4645 ac_cv_safe_to_define___extensions__=yes 4646else 4647 $as_echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650 ac_cv_safe_to_define___extensions__=no 4651fi 4652 4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4654fi 4655{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4656$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4657 test $ac_cv_safe_to_define___extensions__ = yes && 4658 cat >>confdefs.h <<\_ACEOF 4659#define __EXTENSIONS__ 1 4660_ACEOF 4661 4662 cat >>confdefs.h <<\_ACEOF 4663#define _ALL_SOURCE 1 4664_ACEOF 4665 4666 cat >>confdefs.h <<\_ACEOF 4667#define _GNU_SOURCE 1 4668_ACEOF 4669 4670 cat >>confdefs.h <<\_ACEOF 4671#define _POSIX_PTHREAD_SEMANTICS 1 4672_ACEOF 4673 4674 cat >>confdefs.h <<\_ACEOF 4675#define _TANDEM_SOURCE 1 4676_ACEOF 4677 4678 4679 4680# Check whether --enable-largefile was given. 4681if test "${enable_largefile+set}" = set; then 4682 enableval=$enable_largefile; 4683fi 4684 4685if test "$enable_largefile" != no; then 4686 4687 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4688$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4689if test "${ac_cv_sys_largefile_CC+set}" = set; then 4690 $as_echo_n "(cached) " >&6 4691else 4692 ac_cv_sys_largefile_CC=no 4693 if test "$GCC" != yes; then 4694 ac_save_CC=$CC 4695 while :; do 4696 # IRIX 6.2 and later do not support large files by default, 4697 # so use the C compiler's -n32 option if that helps. 4698 cat >conftest.$ac_ext <<_ACEOF 4699/* confdefs.h. */ 4700_ACEOF 4701cat confdefs.h >>conftest.$ac_ext 4702cat >>conftest.$ac_ext <<_ACEOF 4703/* end confdefs.h. */ 4704#include <sys/types.h> 4705 /* Check that off_t can represent 2**63 - 1 correctly. 4706 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4707 since some C++ compilers masquerading as C compilers 4708 incorrectly reject 9223372036854775807. */ 4709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4711 && LARGE_OFF_T % 2147483647 == 1) 4712 ? 1 : -1]; 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721 rm -f conftest.$ac_objext 4722if { (ac_try="$ac_compile" 4723case "(($ac_try" in 4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4725 *) ac_try_echo=$ac_try;; 4726esac 4727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4728$as_echo "$ac_try_echo") >&5 4729 (eval "$ac_compile") 2>conftest.er1 4730 ac_status=$? 4731 grep -v '^ *+' conftest.er1 >conftest.err 4732 rm -f conftest.er1 4733 cat conftest.err >&5 4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); } && { 4736 test -z "$ac_c_werror_flag" || 4737 test ! -s conftest.err 4738 } && test -s conftest.$ac_objext; then 4739 break 4740else 4741 $as_echo "$as_me: failed program was:" >&5 4742sed 's/^/| /' conftest.$ac_ext >&5 4743 4744 4745fi 4746 4747rm -f core conftest.err conftest.$ac_objext 4748 CC="$CC -n32" 4749 rm -f conftest.$ac_objext 4750if { (ac_try="$ac_compile" 4751case "(($ac_try" in 4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4753 *) ac_try_echo=$ac_try;; 4754esac 4755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4756$as_echo "$ac_try_echo") >&5 4757 (eval "$ac_compile") 2>conftest.er1 4758 ac_status=$? 4759 grep -v '^ *+' conftest.er1 >conftest.err 4760 rm -f conftest.er1 4761 cat conftest.err >&5 4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); } && { 4764 test -z "$ac_c_werror_flag" || 4765 test ! -s conftest.err 4766 } && test -s conftest.$ac_objext; then 4767 ac_cv_sys_largefile_CC=' -n32'; break 4768else 4769 $as_echo "$as_me: failed program was:" >&5 4770sed 's/^/| /' conftest.$ac_ext >&5 4771 4772 4773fi 4774 4775rm -f core conftest.err conftest.$ac_objext 4776 break 4777 done 4778 CC=$ac_save_CC 4779 rm -f conftest.$ac_ext 4780 fi 4781fi 4782{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 4783$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4784 if test "$ac_cv_sys_largefile_CC" != no; then 4785 CC=$CC$ac_cv_sys_largefile_CC 4786 fi 4787 4788 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4789$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4790if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4791 $as_echo_n "(cached) " >&6 4792else 4793 while :; do 4794 cat >conftest.$ac_ext <<_ACEOF 4795/* confdefs.h. */ 4796_ACEOF 4797cat confdefs.h >>conftest.$ac_ext 4798cat >>conftest.$ac_ext <<_ACEOF 4799/* end confdefs.h. */ 4800#include <sys/types.h> 4801 /* Check that off_t can represent 2**63 - 1 correctly. 4802 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4803 since some C++ compilers masquerading as C compilers 4804 incorrectly reject 9223372036854775807. */ 4805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4807 && LARGE_OFF_T % 2147483647 == 1) 4808 ? 1 : -1]; 4809int 4810main () 4811{ 4812 4813 ; 4814 return 0; 4815} 4816_ACEOF 4817rm -f conftest.$ac_objext 4818if { (ac_try="$ac_compile" 4819case "(($ac_try" in 4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4821 *) ac_try_echo=$ac_try;; 4822esac 4823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4824$as_echo "$ac_try_echo") >&5 4825 (eval "$ac_compile") 2>conftest.er1 4826 ac_status=$? 4827 grep -v '^ *+' conftest.er1 >conftest.err 4828 rm -f conftest.er1 4829 cat conftest.err >&5 4830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); } && { 4832 test -z "$ac_c_werror_flag" || 4833 test ! -s conftest.err 4834 } && test -s conftest.$ac_objext; then 4835 ac_cv_sys_file_offset_bits=no; break 4836else 4837 $as_echo "$as_me: failed program was:" >&5 4838sed 's/^/| /' conftest.$ac_ext >&5 4839 4840 4841fi 4842 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844 cat >conftest.$ac_ext <<_ACEOF 4845/* confdefs.h. */ 4846_ACEOF 4847cat confdefs.h >>conftest.$ac_ext 4848cat >>conftest.$ac_ext <<_ACEOF 4849/* end confdefs.h. */ 4850#define _FILE_OFFSET_BITS 64 4851#include <sys/types.h> 4852 /* Check that off_t can represent 2**63 - 1 correctly. 4853 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4854 since some C++ compilers masquerading as C compilers 4855 incorrectly reject 9223372036854775807. */ 4856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4858 && LARGE_OFF_T % 2147483647 == 1) 4859 ? 1 : -1]; 4860int 4861main () 4862{ 4863 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest.$ac_objext 4869if { (ac_try="$ac_compile" 4870case "(($ac_try" in 4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4872 *) ac_try_echo=$ac_try;; 4873esac 4874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4875$as_echo "$ac_try_echo") >&5 4876 (eval "$ac_compile") 2>conftest.er1 4877 ac_status=$? 4878 grep -v '^ *+' conftest.er1 >conftest.err 4879 rm -f conftest.er1 4880 cat conftest.err >&5 4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4882 (exit $ac_status); } && { 4883 test -z "$ac_c_werror_flag" || 4884 test ! -s conftest.err 4885 } && test -s conftest.$ac_objext; then 4886 ac_cv_sys_file_offset_bits=64; break 4887else 4888 $as_echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891 4892fi 4893 4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4895 ac_cv_sys_file_offset_bits=unknown 4896 break 4897done 4898fi 4899{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 4900$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4901case $ac_cv_sys_file_offset_bits in #( 4902 no | unknown) ;; 4903 *) 4904cat >>confdefs.h <<_ACEOF 4905#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4906_ACEOF 4907;; 4908esac 4909rm -rf conftest* 4910 if test $ac_cv_sys_file_offset_bits = unknown; then 4911 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 4912$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4913if test "${ac_cv_sys_large_files+set}" = set; then 4914 $as_echo_n "(cached) " >&6 4915else 4916 while :; do 4917 cat >conftest.$ac_ext <<_ACEOF 4918/* confdefs.h. */ 4919_ACEOF 4920cat confdefs.h >>conftest.$ac_ext 4921cat >>conftest.$ac_ext <<_ACEOF 4922/* end confdefs.h. */ 4923#include <sys/types.h> 4924 /* Check that off_t can represent 2**63 - 1 correctly. 4925 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4926 since some C++ compilers masquerading as C compilers 4927 incorrectly reject 9223372036854775807. */ 4928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4930 && LARGE_OFF_T % 2147483647 == 1) 4931 ? 1 : -1]; 4932int 4933main () 4934{ 4935 4936 ; 4937 return 0; 4938} 4939_ACEOF 4940rm -f conftest.$ac_objext 4941if { (ac_try="$ac_compile" 4942case "(($ac_try" in 4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4944 *) ac_try_echo=$ac_try;; 4945esac 4946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4947$as_echo "$ac_try_echo") >&5 4948 (eval "$ac_compile") 2>conftest.er1 4949 ac_status=$? 4950 grep -v '^ *+' conftest.er1 >conftest.err 4951 rm -f conftest.er1 4952 cat conftest.err >&5 4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4954 (exit $ac_status); } && { 4955 test -z "$ac_c_werror_flag" || 4956 test ! -s conftest.err 4957 } && test -s conftest.$ac_objext; then 4958 ac_cv_sys_large_files=no; break 4959else 4960 $as_echo "$as_me: failed program was:" >&5 4961sed 's/^/| /' conftest.$ac_ext >&5 4962 4963 4964fi 4965 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967 cat >conftest.$ac_ext <<_ACEOF 4968/* confdefs.h. */ 4969_ACEOF 4970cat confdefs.h >>conftest.$ac_ext 4971cat >>conftest.$ac_ext <<_ACEOF 4972/* end confdefs.h. */ 4973#define _LARGE_FILES 1 4974#include <sys/types.h> 4975 /* Check that off_t can represent 2**63 - 1 correctly. 4976 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4977 since some C++ compilers masquerading as C compilers 4978 incorrectly reject 9223372036854775807. */ 4979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4981 && LARGE_OFF_T % 2147483647 == 1) 4982 ? 1 : -1]; 4983int 4984main () 4985{ 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991rm -f conftest.$ac_objext 4992if { (ac_try="$ac_compile" 4993case "(($ac_try" in 4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4995 *) ac_try_echo=$ac_try;; 4996esac 4997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4998$as_echo "$ac_try_echo") >&5 4999 (eval "$ac_compile") 2>conftest.er1 5000 ac_status=$? 5001 grep -v '^ *+' conftest.er1 >conftest.err 5002 rm -f conftest.er1 5003 cat conftest.err >&5 5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); } && { 5006 test -z "$ac_c_werror_flag" || 5007 test ! -s conftest.err 5008 } && test -s conftest.$ac_objext; then 5009 ac_cv_sys_large_files=1; break 5010else 5011 $as_echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014 5015fi 5016 5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5018 ac_cv_sys_large_files=unknown 5019 break 5020done 5021fi 5022{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5023$as_echo "$ac_cv_sys_large_files" >&6; } 5024case $ac_cv_sys_large_files in #( 5025 no | unknown) ;; 5026 *) 5027cat >>confdefs.h <<_ACEOF 5028#define _LARGE_FILES $ac_cv_sys_large_files 5029_ACEOF 5030;; 5031esac 5032rm -rf conftest* 5033 fi 5034fi 5035 5036 5037 5038SIGNAMES_O= 5039SIGNAMES_H=lsignames.h 5040 5041 5042 5043CROSS_COMPILE= 5044if test "x$cross_compiling" = "xyes"; then 5045 case "${host}" in 5046 *-cygwin*) 5047 cross_cache=${srcdir}/cross-build/cygwin32.cache 5048 ;; 5049 *-mingw*) 5050 cross_cache=${srcdir}/cross-build/cygwin32.cache 5051 ;; 5052 i[3456]86-*-beos*) 5053 cross_cache=${srcdir}/cross-build/x86-beos.cache 5054 ;; 5055 *) echo "configure: cross-compiling for $host is not supported" >&2 5056 ;; 5057 esac 5058 if test -n "${cross_cache}" && test -r "${cross_cache}"; then 5059 echo "loading cross-build cache file ${cross_cache}" 5060 . ${cross_cache} 5061 fi 5062 unset cross_cache 5063 SIGNAMES_O='signames.o' 5064 CROSS_COMPILE='-DCROSS_COMPILING' 5065 5066fi 5067 5068 5069 5070if test -z "$CC_FOR_BUILD"; then 5071 if test "x$cross_compiling" = "xno"; then 5072 CC_FOR_BUILD='$(CC)' 5073 else 5074 CC_FOR_BUILD=gcc 5075 fi 5076fi 5077 5078 5079 5080test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 5081 5082test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2" 5083 5084if test "$opt_profiling" = "yes"; then 5085 PROFILE_FLAGS=-pg 5086 case "$host_os" in 5087 solaris2*) ;; 5088 *) opt_static_link=yes ;; 5089 esac 5090 DEBUG= MALLOC_DEBUG= 5091fi 5092 5093if test "$opt_static_link" = yes; then 5094 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 5095 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then 5096 STATIC_LD="-static" 5097 case "$host_os" in 5098 solaris2*) ;; 5099 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental 5100 esac 5101 fi 5102fi 5103 5104if test "X$cross_compiling" = "Xno"; then 5105 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} 5106 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} 5107else 5108 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} 5109 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} 5110fi 5111 5112test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g" 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123if test $ac_cv_c_compiler_gnu = yes; then 5124 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5125$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5126if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5127 $as_echo_n "(cached) " >&6 5128else 5129 ac_pattern="Autoconf.*'x'" 5130 cat >conftest.$ac_ext <<_ACEOF 5131/* confdefs.h. */ 5132_ACEOF 5133cat confdefs.h >>conftest.$ac_ext 5134cat >>conftest.$ac_ext <<_ACEOF 5135/* end confdefs.h. */ 5136#include <sgtty.h> 5137Autoconf TIOCGETP 5138_ACEOF 5139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5140 $EGREP "$ac_pattern" >/dev/null 2>&1; then 5141 ac_cv_prog_gcc_traditional=yes 5142else 5143 ac_cv_prog_gcc_traditional=no 5144fi 5145rm -f conftest* 5146 5147 5148 if test $ac_cv_prog_gcc_traditional = no; then 5149 cat >conftest.$ac_ext <<_ACEOF 5150/* confdefs.h. */ 5151_ACEOF 5152cat confdefs.h >>conftest.$ac_ext 5153cat >>conftest.$ac_ext <<_ACEOF 5154/* end confdefs.h. */ 5155#include <termio.h> 5156Autoconf TCGETA 5157_ACEOF 5158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5159 $EGREP "$ac_pattern" >/dev/null 2>&1; then 5160 ac_cv_prog_gcc_traditional=yes 5161fi 5162rm -f conftest* 5163 5164 fi 5165fi 5166{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5167$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5168 if test $ac_cv_prog_gcc_traditional = yes; then 5169 CC="$CC -traditional" 5170 fi 5171fi 5172 5173 5174 5175if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" 5176then 5177 # If the user specified --with-installed-readline=PREFIX and PREFIX 5178 # is not `yes', set ac_cv_rl_prefix to PREFIX 5179 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline 5180 5181 5182if test "X$bash_cv_termcap_lib" = "X"; then 5183_bash_needmsg=yes 5184else 5185{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 5186$as_echo_n "checking which library has the termcap functions... " >&6; } 5187_bash_needmsg= 5188fi 5189if test "${bash_cv_termcap_lib+set}" = set; then 5190 $as_echo_n "(cached) " >&6 5191else 5192 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 5193$as_echo_n "checking for tgetent... " >&6; } 5194if test "${ac_cv_func_tgetent+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/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. 5204 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5205#define tgetent innocuous_tgetent 5206 5207/* System header to define __stub macros and hopefully few prototypes, 5208 which can conflict with char tgetent (); below. 5209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5210 <limits.h> exists even on freestanding compilers. */ 5211 5212#ifdef __STDC__ 5213# include <limits.h> 5214#else 5215# include <assert.h> 5216#endif 5217 5218#undef tgetent 5219 5220/* Override any GCC internal prototype to avoid an error. 5221 Use char because int might match the return type of a GCC 5222 builtin and then its argument prototype would still apply. */ 5223#ifdef __cplusplus 5224extern "C" 5225#endif 5226char tgetent (); 5227/* The GNU C library defines this for functions which it implements 5228 to always fail with ENOSYS. Some functions are actually named 5229 something starting with __ and the normal name is an alias. */ 5230#if defined __stub_tgetent || defined __stub___tgetent 5231choke me 5232#endif 5233 5234int 5235main () 5236{ 5237return tgetent (); 5238 ; 5239 return 0; 5240} 5241_ACEOF 5242rm -f conftest.$ac_objext conftest$ac_exeext 5243if { (ac_try="$ac_link" 5244case "(($ac_try" in 5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5246 *) ac_try_echo=$ac_try;; 5247esac 5248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5249$as_echo "$ac_try_echo") >&5 5250 (eval "$ac_link") 2>conftest.er1 5251 ac_status=$? 5252 grep -v '^ *+' conftest.er1 >conftest.err 5253 rm -f conftest.er1 5254 cat conftest.err >&5 5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); } && { 5257 test -z "$ac_c_werror_flag" || 5258 test ! -s conftest.err 5259 } && test -s conftest$ac_exeext && { 5260 test "$cross_compiling" = yes || 5261 $as_test_x conftest$ac_exeext 5262 }; then 5263 ac_cv_func_tgetent=yes 5264else 5265 $as_echo "$as_me: failed program was:" >&5 5266sed 's/^/| /' conftest.$ac_ext >&5 5267 5268 ac_cv_func_tgetent=no 5269fi 5270 5271rm -rf conftest.dSYM 5272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5273 conftest$ac_exeext conftest.$ac_ext 5274fi 5275{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 5276$as_echo "$ac_cv_func_tgetent" >&6; } 5277if test "x$ac_cv_func_tgetent" = x""yes; then 5278 bash_cv_termcap_lib=libc 5279else 5280 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 5281$as_echo_n "checking for tgetent in -ltermcap... " >&6; } 5282if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 5283 $as_echo_n "(cached) " >&6 5284else 5285 ac_check_lib_save_LIBS=$LIBS 5286LIBS="-ltermcap $LIBS" 5287cat >conftest.$ac_ext <<_ACEOF 5288/* confdefs.h. */ 5289_ACEOF 5290cat confdefs.h >>conftest.$ac_ext 5291cat >>conftest.$ac_ext <<_ACEOF 5292/* end confdefs.h. */ 5293 5294/* Override any GCC internal prototype to avoid an error. 5295 Use char because int might match the return type of a GCC 5296 builtin and then its argument prototype would still apply. */ 5297#ifdef __cplusplus 5298extern "C" 5299#endif 5300char tgetent (); 5301int 5302main () 5303{ 5304return tgetent (); 5305 ; 5306 return 0; 5307} 5308_ACEOF 5309rm -f conftest.$ac_objext conftest$ac_exeext 5310if { (ac_try="$ac_link" 5311case "(($ac_try" in 5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5313 *) ac_try_echo=$ac_try;; 5314esac 5315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5316$as_echo "$ac_try_echo") >&5 5317 (eval "$ac_link") 2>conftest.er1 5318 ac_status=$? 5319 grep -v '^ *+' conftest.er1 >conftest.err 5320 rm -f conftest.er1 5321 cat conftest.err >&5 5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); } && { 5324 test -z "$ac_c_werror_flag" || 5325 test ! -s conftest.err 5326 } && test -s conftest$ac_exeext && { 5327 test "$cross_compiling" = yes || 5328 $as_test_x conftest$ac_exeext 5329 }; then 5330 ac_cv_lib_termcap_tgetent=yes 5331else 5332 $as_echo "$as_me: failed program was:" >&5 5333sed 's/^/| /' conftest.$ac_ext >&5 5334 5335 ac_cv_lib_termcap_tgetent=no 5336fi 5337 5338rm -rf conftest.dSYM 5339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5340 conftest$ac_exeext conftest.$ac_ext 5341LIBS=$ac_check_lib_save_LIBS 5342fi 5343{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 5344$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } 5345if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then 5346 bash_cv_termcap_lib=libtermcap 5347else 5348 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 5349$as_echo_n "checking for tgetent in -ltinfo... " >&6; } 5350if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then 5351 $as_echo_n "(cached) " >&6 5352else 5353 ac_check_lib_save_LIBS=$LIBS 5354LIBS="-ltinfo $LIBS" 5355cat >conftest.$ac_ext <<_ACEOF 5356/* confdefs.h. */ 5357_ACEOF 5358cat confdefs.h >>conftest.$ac_ext 5359cat >>conftest.$ac_ext <<_ACEOF 5360/* end confdefs.h. */ 5361 5362/* Override any GCC internal prototype to avoid an error. 5363 Use char because int might match the return type of a GCC 5364 builtin and then its argument prototype would still apply. */ 5365#ifdef __cplusplus 5366extern "C" 5367#endif 5368char tgetent (); 5369int 5370main () 5371{ 5372return tgetent (); 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377rm -f conftest.$ac_objext conftest$ac_exeext 5378if { (ac_try="$ac_link" 5379case "(($ac_try" in 5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5381 *) ac_try_echo=$ac_try;; 5382esac 5383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5384$as_echo "$ac_try_echo") >&5 5385 (eval "$ac_link") 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } && { 5392 test -z "$ac_c_werror_flag" || 5393 test ! -s conftest.err 5394 } && test -s conftest$ac_exeext && { 5395 test "$cross_compiling" = yes || 5396 $as_test_x conftest$ac_exeext 5397 }; then 5398 ac_cv_lib_tinfo_tgetent=yes 5399else 5400 $as_echo "$as_me: failed program was:" >&5 5401sed 's/^/| /' conftest.$ac_ext >&5 5402 5403 ac_cv_lib_tinfo_tgetent=no 5404fi 5405 5406rm -rf conftest.dSYM 5407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5408 conftest$ac_exeext conftest.$ac_ext 5409LIBS=$ac_check_lib_save_LIBS 5410fi 5411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 5412$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 5413if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then 5414 bash_cv_termcap_lib=libtinfo 5415else 5416 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 5417$as_echo_n "checking for tgetent in -lcurses... " >&6; } 5418if test "${ac_cv_lib_curses_tgetent+set}" = set; then 5419 $as_echo_n "(cached) " >&6 5420else 5421 ac_check_lib_save_LIBS=$LIBS 5422LIBS="-lcurses $LIBS" 5423cat >conftest.$ac_ext <<_ACEOF 5424/* confdefs.h. */ 5425_ACEOF 5426cat confdefs.h >>conftest.$ac_ext 5427cat >>conftest.$ac_ext <<_ACEOF 5428/* end confdefs.h. */ 5429 5430/* Override any GCC internal prototype to avoid an error. 5431 Use char because int might match the return type of a GCC 5432 builtin and then its argument prototype would still apply. */ 5433#ifdef __cplusplus 5434extern "C" 5435#endif 5436char tgetent (); 5437int 5438main () 5439{ 5440return tgetent (); 5441 ; 5442 return 0; 5443} 5444_ACEOF 5445rm -f conftest.$ac_objext conftest$ac_exeext 5446if { (ac_try="$ac_link" 5447case "(($ac_try" in 5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5449 *) ac_try_echo=$ac_try;; 5450esac 5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5452$as_echo "$ac_try_echo") >&5 5453 (eval "$ac_link") 2>conftest.er1 5454 ac_status=$? 5455 grep -v '^ *+' conftest.er1 >conftest.err 5456 rm -f conftest.er1 5457 cat conftest.err >&5 5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5459 (exit $ac_status); } && { 5460 test -z "$ac_c_werror_flag" || 5461 test ! -s conftest.err 5462 } && test -s conftest$ac_exeext && { 5463 test "$cross_compiling" = yes || 5464 $as_test_x conftest$ac_exeext 5465 }; then 5466 ac_cv_lib_curses_tgetent=yes 5467else 5468 $as_echo "$as_me: failed program was:" >&5 5469sed 's/^/| /' conftest.$ac_ext >&5 5470 5471 ac_cv_lib_curses_tgetent=no 5472fi 5473 5474rm -rf conftest.dSYM 5475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5476 conftest$ac_exeext conftest.$ac_ext 5477LIBS=$ac_check_lib_save_LIBS 5478fi 5479{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 5480$as_echo "$ac_cv_lib_curses_tgetent" >&6; } 5481if test "x$ac_cv_lib_curses_tgetent" = x""yes; then 5482 bash_cv_termcap_lib=libcurses 5483else 5484 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 5485$as_echo_n "checking for tgetent in -lncurses... " >&6; } 5486if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 5487 $as_echo_n "(cached) " >&6 5488else 5489 ac_check_lib_save_LIBS=$LIBS 5490LIBS="-lncurses $LIBS" 5491cat >conftest.$ac_ext <<_ACEOF 5492/* confdefs.h. */ 5493_ACEOF 5494cat confdefs.h >>conftest.$ac_ext 5495cat >>conftest.$ac_ext <<_ACEOF 5496/* end confdefs.h. */ 5497 5498/* Override any GCC internal prototype to avoid an error. 5499 Use char because int might match the return type of a GCC 5500 builtin and then its argument prototype would still apply. */ 5501#ifdef __cplusplus 5502extern "C" 5503#endif 5504char tgetent (); 5505int 5506main () 5507{ 5508return tgetent (); 5509 ; 5510 return 0; 5511} 5512_ACEOF 5513rm -f conftest.$ac_objext conftest$ac_exeext 5514if { (ac_try="$ac_link" 5515case "(($ac_try" in 5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5517 *) ac_try_echo=$ac_try;; 5518esac 5519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5520$as_echo "$ac_try_echo") >&5 5521 (eval "$ac_link") 2>conftest.er1 5522 ac_status=$? 5523 grep -v '^ *+' conftest.er1 >conftest.err 5524 rm -f conftest.er1 5525 cat conftest.err >&5 5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5527 (exit $ac_status); } && { 5528 test -z "$ac_c_werror_flag" || 5529 test ! -s conftest.err 5530 } && test -s conftest$ac_exeext && { 5531 test "$cross_compiling" = yes || 5532 $as_test_x conftest$ac_exeext 5533 }; then 5534 ac_cv_lib_ncurses_tgetent=yes 5535else 5536 $as_echo "$as_me: failed program was:" >&5 5537sed 's/^/| /' conftest.$ac_ext >&5 5538 5539 ac_cv_lib_ncurses_tgetent=no 5540fi 5541 5542rm -rf conftest.dSYM 5543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5544 conftest$ac_exeext conftest.$ac_ext 5545LIBS=$ac_check_lib_save_LIBS 5546fi 5547{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 5548$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } 5549if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then 5550 bash_cv_termcap_lib=libncurses 5551else 5552 bash_cv_termcap_lib=gnutermcap 5553fi 5554 5555fi 5556 5557fi 5558 5559fi 5560 5561fi 5562 5563fi 5564 5565if test "X$_bash_needmsg" = "Xyes"; then 5566{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 5567$as_echo_n "checking which library has the termcap functions... " >&6; } 5568fi 5569{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 5570$as_echo "using $bash_cv_termcap_lib" >&6; } 5571if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then 5572LDFLAGS="$LDFLAGS -L./lib/termcap" 5573TERMCAP_LIB="./lib/termcap/libtermcap.a" 5574TERMCAP_DEP="./lib/termcap/libtermcap.a" 5575elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then 5576TERMCAP_LIB=-ltermcap 5577TERMCAP_DEP= 5578elif test $bash_cv_termcap_lib = libtinfo; then 5579TERMCAP_LIB=-ltinfo 5580TERMCAP_DEP= 5581elif test $bash_cv_termcap_lib = libncurses; then 5582TERMCAP_LIB=-lncurses 5583TERMCAP_DEP= 5584elif test $bash_cv_termcap_lib = libc; then 5585TERMCAP_LIB= 5586TERMCAP_DEP= 5587else 5588TERMCAP_LIB=-lcurses 5589TERMCAP_DEP= 5590fi 5591 5592 5593 5594 5595{ $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5 5596$as_echo_n "checking version of installed readline library... " >&6; } 5597 5598# What a pain in the ass this is. 5599 5600# save cpp and ld options 5601_save_CFLAGS="$CFLAGS" 5602_save_LDFLAGS="$LDFLAGS" 5603_save_LIBS="$LIBS" 5604 5605# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This 5606# allows the caller to do something like $_rl_prefix=$withval if the user 5607# specifies --with-installed-readline=PREFIX as an argument to configure 5608 5609if test -z "$ac_cv_rl_prefix"; then 5610test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} 5611fi 5612 5613eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include 5614eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib 5615 5616LIBS="$LIBS -lreadline ${TERMCAP_LIB}" 5617CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" 5618LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" 5619 5620if test "${ac_cv_rl_version+set}" = set; then 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test "$cross_compiling" = yes; then 5624 ac_cv_rl_version='4.2' 5625else 5626 cat >conftest.$ac_ext <<_ACEOF 5627/* confdefs.h. */ 5628_ACEOF 5629cat confdefs.h >>conftest.$ac_ext 5630cat >>conftest.$ac_ext <<_ACEOF 5631/* end confdefs.h. */ 5632 5633#include <stdio.h> 5634#include <readline/readline.h> 5635 5636extern int rl_gnu_readline_p; 5637 5638main() 5639{ 5640 FILE *fp; 5641 fp = fopen("conftest.rlv", "w"); 5642 if (fp == 0) 5643 exit(1); 5644 if (rl_gnu_readline_p != 1) 5645 fprintf(fp, "0.0\n"); 5646 else 5647 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); 5648 fclose(fp); 5649 exit(0); 5650} 5651 5652_ACEOF 5653rm -f conftest$ac_exeext 5654if { (ac_try="$ac_link" 5655case "(($ac_try" in 5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5657 *) ac_try_echo=$ac_try;; 5658esac 5659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5660$as_echo "$ac_try_echo") >&5 5661 (eval "$ac_link") 2>&5 5662 ac_status=$? 5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5665 { (case "(($ac_try" in 5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5667 *) ac_try_echo=$ac_try;; 5668esac 5669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5670$as_echo "$ac_try_echo") >&5 5671 (eval "$ac_try") 2>&5 5672 ac_status=$? 5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; }; then 5675 ac_cv_rl_version=`cat conftest.rlv` 5676else 5677 $as_echo "$as_me: program exited with status $ac_status" >&5 5678$as_echo "$as_me: failed program was:" >&5 5679sed 's/^/| /' conftest.$ac_ext >&5 5680 5681( exit $ac_status ) 5682ac_cv_rl_version='0.0' 5683fi 5684rm -rf conftest.dSYM 5685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5686fi 5687 5688 5689fi 5690 5691 5692CFLAGS="$_save_CFLAGS" 5693LDFLAGS="$_save_LDFLAGS" 5694LIBS="$_save_LIBS" 5695 5696RL_MAJOR=0 5697RL_MINOR=0 5698 5699# ( 5700case "$ac_cv_rl_version" in 57012*|3*|4*|5*|6*|7*|8*|9*) 5702 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` 5703 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` 5704 ;; 5705esac 5706 5707# ((( 5708case $RL_MAJOR in 5709[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; 5710[0-9]) _RL_MAJOR=0$RL_MAJOR ;; 5711*) _RL_MAJOR=00 ;; 5712esac 5713 5714# ((( 5715case $RL_MINOR in 5716[0-9][0-9]) _RL_MINOR=$RL_MINOR ;; 5717[0-9]) _RL_MINOR=0$RL_MINOR ;; 5718*) _RL_MINOR=00 ;; 5719esac 5720 5721RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" 5722 5723# Readline versions greater than 4.2 have these defines in readline.h 5724 5725if test $ac_cv_rl_version = '0.0' ; then 5726 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5 5727$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} 5728elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then 5729 # set these for use by the caller 5730 RL_PREFIX=$ac_cv_rl_prefix 5731 RL_LIBDIR=$ac_cv_rl_libdir 5732 RL_INCLUDEDIR=$ac_cv_rl_includedir 5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 5734$as_echo "$ac_cv_rl_version" >&6; } 5735else 5736 5737 5738cat >>confdefs.h <<_ACEOF 5739#define RL_READLINE_VERSION $RL_VERSION 5740_ACEOF 5741 5742 5743cat >>confdefs.h <<_ACEOF 5744#define RL_VERSION_MAJOR $RL_MAJOR 5745_ACEOF 5746 5747 5748cat >>confdefs.h <<_ACEOF 5749#define RL_VERSION_MINOR $RL_MINOR 5750_ACEOF 5751 5752 5753 5754 5755 5756 5757# set these for use by the caller 5758RL_PREFIX=$ac_cv_rl_prefix 5759RL_LIBDIR=$ac_cv_rl_libdir 5760RL_INCLUDEDIR=$ac_cv_rl_includedir 5761 5762{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 5763$as_echo "$ac_cv_rl_version" >&6; } 5764 5765fi 5766 5767 5768 case "$ac_cv_rl_version" in 5769 5*|6*|7*|8*|9*) ;; 5770 *) opt_with_installed_readline=no 5771 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5 5772$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} 5773 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5 5774$as_echo "$as_me: WARNING: using private bash version" >&2;} 5775 ;; 5776 esac 5777fi 5778 5779TILDE_LIB=-ltilde 5780if test $opt_readline = yes; then 5781 cat >>confdefs.h <<\_ACEOF 5782#define READLINE 1 5783_ACEOF 5784 5785 if test "$opt_with_installed_readline" != "no" ; then 5786 case "$opt_with_installed_readline" in 5787 yes) RL_INCLUDE= ;; 5788 *) case "$RL_INCLUDEDIR" in 5789 /usr/include) ;; 5790 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; 5791 esac 5792 ;; 5793 esac 5794 READLINE_DEP= 5795 READLINE_LIB=-lreadline 5796 # section for OS versions that don't allow unresolved symbols 5797 # to be compiled into dynamic libraries. 5798 case "$host_os" in 5799 cygwin*) TILDE_LIB= ;; 5800 esac 5801 else 5802 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' 5803 READLINE_DEP='$(READLINE_LIBRARY)' 5804 # section for OS versions that ship an older/broken version of 5805 # readline as a standard dynamic library and don't allow a 5806 # static version specified as -llibname to override the 5807 # dynamic version 5808 case "${host_os}" in 5809 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;; 5810 *) READLINE_LIB=-lreadline ;; 5811 esac 5812 fi 5813else 5814 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' 5815 READLINE_LIB= READLINE_DEP= 5816fi 5817if test $opt_history = yes || test $opt_bang_history = yes; then 5818 if test $opt_history = yes; then 5819 cat >>confdefs.h <<\_ACEOF 5820#define HISTORY 1 5821_ACEOF 5822 5823 fi 5824 if test $opt_bang_history = yes; then 5825 cat >>confdefs.h <<\_ACEOF 5826#define BANG_HISTORY 1 5827_ACEOF 5828 5829 fi 5830 if test "$opt_with_installed_readline" != "no"; then 5831 HIST_LIBDIR=$RL_LIBDIR 5832 HISTORY_DEP= 5833 HISTORY_LIB=-lhistory 5834 case "$opt_with_installed_readline" in 5835 yes) RL_INCLUDE= ;; 5836 *) case "$RL_INCLUDEDIR" in 5837 /usr/include) ;; 5838 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; 5839 esac 5840 ;; 5841 esac 5842 else 5843 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' 5844 HISTORY_DEP='$(HISTORY_LIBRARY)' 5845 # section for OS versions that ship an older version of 5846 # readline as a standard dynamic library and don't allow a 5847 # static version specified as -llibname to override the 5848 # dynamic version 5849 case "${host_os}" in 5850 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; 5851 *) HISTORY_LIB=-lhistory ;; 5852 esac 5853 fi 5854else 5855 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' 5856 HISTORY_LIB= HISTORY_DEP= 5857fi 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869# Find a good install program. We prefer a C program (faster), 5870# so one script is as good as another. But avoid the broken or 5871# incompatible versions: 5872# SysV /etc/install, /usr/sbin/install 5873# SunOS /usr/etc/install 5874# IRIX /sbin/install 5875# AIX /bin/install 5876# AmigaOS /C/install, which installs bootblocks on floppy discs 5877# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5878# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5879# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5880# OS/2's system install, which has a completely different semantic 5881# ./install, which can be erroneously created by make from ./install.sh. 5882# Reject install programs that cannot install multiple files. 5883{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 5884$as_echo_n "checking for a BSD-compatible install... " >&6; } 5885if test -z "$INSTALL"; then 5886if test "${ac_cv_path_install+set}" = set; then 5887 $as_echo_n "(cached) " >&6 5888else 5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5890for as_dir in $PATH 5891do 5892 IFS=$as_save_IFS 5893 test -z "$as_dir" && as_dir=. 5894 # Account for people who put trailing slashes in PATH elements. 5895case $as_dir/ in 5896 ./ | .// | /cC/* | \ 5897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 5899 /usr/ucb/* ) ;; 5900 *) 5901 # OSF1 and SCO ODT 3.0 have their own names for install. 5902 # Don't use installbsd from OSF since it installs stuff as root 5903 # by default. 5904 for ac_prog in ginstall scoinst install; do 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 5907 if test $ac_prog = install && 5908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5909 # AIX install. It has an incompatible calling convention. 5910 : 5911 elif test $ac_prog = install && 5912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5913 # program-specific install script used by HP pwplus--don't use. 5914 : 5915 else 5916 rm -rf conftest.one conftest.two conftest.dir 5917 echo one > conftest.one 5918 echo two > conftest.two 5919 mkdir conftest.dir 5920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5921 test -s conftest.one && test -s conftest.two && 5922 test -s conftest.dir/conftest.one && 5923 test -s conftest.dir/conftest.two 5924 then 5925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5926 break 3 5927 fi 5928 fi 5929 fi 5930 done 5931 done 5932 ;; 5933esac 5934 5935done 5936IFS=$as_save_IFS 5937 5938rm -rf conftest.one conftest.two conftest.dir 5939 5940fi 5941 if test "${ac_cv_path_install+set}" = set; then 5942 INSTALL=$ac_cv_path_install 5943 else 5944 # As a last resort, use the slow shell script. Don't cache a 5945 # value for INSTALL within a source directory, because that will 5946 # break other packages using the cache if that directory is 5947 # removed, or if the value is a relative name. 5948 INSTALL=$ac_install_sh 5949 fi 5950fi 5951{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 5952$as_echo "$INSTALL" >&6; } 5953 5954# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5955# It thinks the first close brace ends the variable substitution. 5956test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5957 5958test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5959 5960test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5961 5962# Extract the first word of "ar", so it can be a program name with args. 5963set dummy ar; ac_word=$2 5964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if test "${ac_cv_prog_AR+set}" = set; then 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$AR"; then 5970 ac_cv_prog_AR="$AR" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_prog_AR="" 5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984done 5985IFS=$as_save_IFS 5986 5987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 5988fi 5989fi 5990AR=$ac_cv_prog_AR 5991if test -n "$AR"; then 5992 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5993$as_echo "$AR" >&6; } 5994else 5995 { $as_echo "$as_me:$LINENO: result: no" >&5 5996$as_echo "no" >&6; } 5997fi 5998 5999 6000test -n "$ARFLAGS" || ARFLAGS="cr" 6001if test -n "$ac_tool_prefix"; then 6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6003set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6005$as_echo_n "checking for $ac_word... " >&6; } 6006if test "${ac_cv_prog_RANLIB+set}" = set; then 6007 $as_echo_n "(cached) " >&6 6008else 6009 if test -n "$RANLIB"; then 6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6011else 6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024done 6025IFS=$as_save_IFS 6026 6027fi 6028fi 6029RANLIB=$ac_cv_prog_RANLIB 6030if test -n "$RANLIB"; then 6031 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6032$as_echo "$RANLIB" >&6; } 6033else 6034 { $as_echo "$as_me:$LINENO: result: no" >&5 6035$as_echo "no" >&6; } 6036fi 6037 6038 6039fi 6040if test -z "$ac_cv_prog_RANLIB"; then 6041 ac_ct_RANLIB=$RANLIB 6042 # Extract the first word of "ranlib", so it can be a program name with args. 6043set dummy ranlib; ac_word=$2 6044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6045$as_echo_n "checking for $ac_word... " >&6; } 6046if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6047 $as_echo_n "(cached) " >&6 6048else 6049 if test -n "$ac_ct_RANLIB"; then 6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6051else 6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053for as_dir in $PATH 6054do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6059 ac_cv_prog_ac_ct_RANLIB="ranlib" 6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063done 6064done 6065IFS=$as_save_IFS 6066 6067fi 6068fi 6069ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6070if test -n "$ac_ct_RANLIB"; then 6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6072$as_echo "$ac_ct_RANLIB" >&6; } 6073else 6074 { $as_echo "$as_me:$LINENO: result: no" >&5 6075$as_echo "no" >&6; } 6076fi 6077 6078 if test "x$ac_ct_RANLIB" = x; then 6079 RANLIB=":" 6080 else 6081 case $cross_compiling:$ac_tool_warned in 6082yes:) 6083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6085ac_tool_warned=yes ;; 6086esac 6087 RANLIB=$ac_ct_RANLIB 6088 fi 6089else 6090 RANLIB="$ac_cv_prog_RANLIB" 6091fi 6092 6093for ac_prog in 'bison -y' byacc 6094do 6095 # Extract the first word of "$ac_prog", so it can be a program name with args. 6096set dummy $ac_prog; ac_word=$2 6097{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6098$as_echo_n "checking for $ac_word... " >&6; } 6099if test "${ac_cv_prog_YACC+set}" = set; then 6100 $as_echo_n "(cached) " >&6 6101else 6102 if test -n "$YACC"; then 6103 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6104else 6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106for as_dir in $PATH 6107do 6108 IFS=$as_save_IFS 6109 test -z "$as_dir" && as_dir=. 6110 for ac_exec_ext in '' $ac_executable_extensions; do 6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6112 ac_cv_prog_YACC="$ac_prog" 6113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6114 break 2 6115 fi 6116done 6117done 6118IFS=$as_save_IFS 6119 6120fi 6121fi 6122YACC=$ac_cv_prog_YACC 6123if test -n "$YACC"; then 6124 { $as_echo "$as_me:$LINENO: result: $YACC" >&5 6125$as_echo "$YACC" >&6; } 6126else 6127 { $as_echo "$as_me:$LINENO: result: no" >&5 6128$as_echo "no" >&6; } 6129fi 6130 6131 6132 test -n "$YACC" && break 6133done 6134test -n "$YACC" || YACC="yacc" 6135 6136{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6137$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6138set x ${MAKE-make} 6139ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6140if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6141 $as_echo_n "(cached) " >&6 6142else 6143 cat >conftest.make <<\_ACEOF 6144SHELL = /bin/sh 6145all: 6146 @echo '@@@%%%=$(MAKE)=@@@%%%' 6147_ACEOF 6148# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6149case `${MAKE-make} -f conftest.make 2>/dev/null` in 6150 *@@@%%%=?*=@@@%%%*) 6151 eval ac_cv_prog_make_${ac_make}_set=yes;; 6152 *) 6153 eval ac_cv_prog_make_${ac_make}_set=no;; 6154esac 6155rm -f conftest.make 6156fi 6157if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6158 { $as_echo "$as_me:$LINENO: result: yes" >&5 6159$as_echo "yes" >&6; } 6160 SET_MAKE= 6161else 6162 { $as_echo "$as_me:$LINENO: result: no" >&5 6163$as_echo "no" >&6; } 6164 SET_MAKE="MAKE=${MAKE-make}" 6165fi 6166 6167 6168case "$host_os" in 6169opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; 6170*) MAKE_SHELL=/bin/sh ;; 6171esac 6172 6173 6174if test x$SIZE = x; then 6175 if test x$ac_tool_prefix = x; then 6176 SIZE=size 6177 else 6178 SIZE=${ac_tool_prefix}size 6179 save_IFS=$IFS ; IFS=: 6180 size_found=0 6181 for dir in $PATH; do 6182 if test -x $dir/$SIZE ; then 6183 size_found=1 6184 break 6185 fi 6186 done 6187 if test $size_found -eq 0; then 6188 SIZE=: 6189 fi 6190 IFS=$save_IFS 6191 fi 6192fi 6193 6194 6195cat >>confdefs.h <<\_ACEOF 6196#define _GNU_SOURCE 1 6197_ACEOF 6198 6199 6200{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6201$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6202if test "${ac_cv_c_const+set}" = set; then 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat >conftest.$ac_ext <<_ACEOF 6206/* confdefs.h. */ 6207_ACEOF 6208cat confdefs.h >>conftest.$ac_ext 6209cat >>conftest.$ac_ext <<_ACEOF 6210/* end confdefs.h. */ 6211 6212int 6213main () 6214{ 6215/* FIXME: Include the comments suggested by Paul. */ 6216#ifndef __cplusplus 6217 /* Ultrix mips cc rejects this. */ 6218 typedef int charset[2]; 6219 const charset cs; 6220 /* SunOS 4.1.1 cc rejects this. */ 6221 char const *const *pcpcc; 6222 char **ppc; 6223 /* NEC SVR4.0.2 mips cc rejects this. */ 6224 struct point {int x, y;}; 6225 static struct point const zero = {0,0}; 6226 /* AIX XL C 1.02.0.0 rejects this. 6227 It does not let you subtract one const X* pointer from another in 6228 an arm of an if-expression whose if-part is not a constant 6229 expression */ 6230 const char *g = "string"; 6231 pcpcc = &g + (g ? g-g : 0); 6232 /* HPUX 7.0 cc rejects these. */ 6233 ++pcpcc; 6234 ppc = (char**) pcpcc; 6235 pcpcc = (char const *const *) ppc; 6236 { /* SCO 3.2v4 cc rejects this. */ 6237 char *t; 6238 char const *s = 0 ? (char *) 0 : (char const *) 0; 6239 6240 *t++ = 0; 6241 if (s) return 0; 6242 } 6243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6244 int x[] = {25, 17}; 6245 const int *foo = &x[0]; 6246 ++foo; 6247 } 6248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6249 typedef const int *iptr; 6250 iptr p = 0; 6251 ++p; 6252 } 6253 { /* AIX XL C 1.02.0.0 rejects this saying 6254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6255 struct s { int j; const int *ap[3]; }; 6256 struct s *b; b->j = 5; 6257 } 6258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6259 const int foo = 10; 6260 if (!foo) return 0; 6261 } 6262 return !cs[0] && !zero.x; 6263#endif 6264 6265 ; 6266 return 0; 6267} 6268_ACEOF 6269rm -f conftest.$ac_objext 6270if { (ac_try="$ac_compile" 6271case "(($ac_try" in 6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6273 *) ac_try_echo=$ac_try;; 6274esac 6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6276$as_echo "$ac_try_echo") >&5 6277 (eval "$ac_compile") 2>conftest.er1 6278 ac_status=$? 6279 grep -v '^ *+' conftest.er1 >conftest.err 6280 rm -f conftest.er1 6281 cat conftest.err >&5 6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6283 (exit $ac_status); } && { 6284 test -z "$ac_c_werror_flag" || 6285 test ! -s conftest.err 6286 } && test -s conftest.$ac_objext; then 6287 ac_cv_c_const=yes 6288else 6289 $as_echo "$as_me: failed program was:" >&5 6290sed 's/^/| /' conftest.$ac_ext >&5 6291 6292 ac_cv_c_const=no 6293fi 6294 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296fi 6297{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6298$as_echo "$ac_cv_c_const" >&6; } 6299if test $ac_cv_c_const = no; then 6300 6301cat >>confdefs.h <<\_ACEOF 6302#define const /**/ 6303_ACEOF 6304 6305fi 6306 6307{ $as_echo "$as_me:$LINENO: checking for inline" >&5 6308$as_echo_n "checking for inline... " >&6; } 6309if test "${ac_cv_c_inline+set}" = set; then 6310 $as_echo_n "(cached) " >&6 6311else 6312 ac_cv_c_inline=no 6313for ac_kw in inline __inline__ __inline; do 6314 cat >conftest.$ac_ext <<_ACEOF 6315/* confdefs.h. */ 6316_ACEOF 6317cat confdefs.h >>conftest.$ac_ext 6318cat >>conftest.$ac_ext <<_ACEOF 6319/* end confdefs.h. */ 6320#ifndef __cplusplus 6321typedef int foo_t; 6322static $ac_kw foo_t static_foo () {return 0; } 6323$ac_kw foo_t foo () {return 0; } 6324#endif 6325 6326_ACEOF 6327rm -f conftest.$ac_objext 6328if { (ac_try="$ac_compile" 6329case "(($ac_try" in 6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6331 *) ac_try_echo=$ac_try;; 6332esac 6333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6334$as_echo "$ac_try_echo") >&5 6335 (eval "$ac_compile") 2>conftest.er1 6336 ac_status=$? 6337 grep -v '^ *+' conftest.er1 >conftest.err 6338 rm -f conftest.er1 6339 cat conftest.err >&5 6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); } && { 6342 test -z "$ac_c_werror_flag" || 6343 test ! -s conftest.err 6344 } && test -s conftest.$ac_objext; then 6345 ac_cv_c_inline=$ac_kw 6346else 6347 $as_echo "$as_me: failed program was:" >&5 6348sed 's/^/| /' conftest.$ac_ext >&5 6349 6350 6351fi 6352 6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6354 test "$ac_cv_c_inline" != no && break 6355done 6356 6357fi 6358{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6359$as_echo "$ac_cv_c_inline" >&6; } 6360 6361 6362case $ac_cv_c_inline in 6363 inline | yes) ;; 6364 *) 6365 case $ac_cv_c_inline in 6366 no) ac_val=;; 6367 *) ac_val=$ac_cv_c_inline;; 6368 esac 6369 cat >>confdefs.h <<_ACEOF 6370#ifndef __cplusplus 6371#define inline $ac_val 6372#endif 6373_ACEOF 6374 ;; 6375esac 6376 6377 6378 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 6379$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6380if test "${ac_cv_c_bigendian+set}" = set; then 6381 $as_echo_n "(cached) " >&6 6382else 6383 ac_cv_c_bigendian=unknown 6384 # See if we're dealing with a universal compiler. 6385 cat >conftest.$ac_ext <<_ACEOF 6386/* confdefs.h. */ 6387_ACEOF 6388cat confdefs.h >>conftest.$ac_ext 6389cat >>conftest.$ac_ext <<_ACEOF 6390/* end confdefs.h. */ 6391#ifndef __APPLE_CC__ 6392 not a universal capable compiler 6393 #endif 6394 typedef int dummy; 6395 6396_ACEOF 6397rm -f conftest.$ac_objext 6398if { (ac_try="$ac_compile" 6399case "(($ac_try" in 6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6401 *) ac_try_echo=$ac_try;; 6402esac 6403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6404$as_echo "$ac_try_echo") >&5 6405 (eval "$ac_compile") 2>conftest.er1 6406 ac_status=$? 6407 grep -v '^ *+' conftest.er1 >conftest.err 6408 rm -f conftest.er1 6409 cat conftest.err >&5 6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); } && { 6412 test -z "$ac_c_werror_flag" || 6413 test ! -s conftest.err 6414 } && test -s conftest.$ac_objext; then 6415 6416 # Check for potential -arch flags. It is not universal unless 6417 # there are some -arch flags. Note that *ppc* also matches 6418 # ppc64. This check is also rather less than ideal. 6419 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 6420 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 6421 esac 6422else 6423 $as_echo "$as_me: failed program was:" >&5 6424sed 's/^/| /' conftest.$ac_ext >&5 6425 6426 6427fi 6428 6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6430 if test $ac_cv_c_bigendian = unknown; then 6431 # See if sys/param.h defines the BYTE_ORDER macro. 6432 cat >conftest.$ac_ext <<_ACEOF 6433/* confdefs.h. */ 6434_ACEOF 6435cat confdefs.h >>conftest.$ac_ext 6436cat >>conftest.$ac_ext <<_ACEOF 6437/* end confdefs.h. */ 6438#include <sys/types.h> 6439 #include <sys/param.h> 6440 6441int 6442main () 6443{ 6444#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6446 && LITTLE_ENDIAN) 6447 bogus endian macros 6448 #endif 6449 6450 ; 6451 return 0; 6452} 6453_ACEOF 6454rm -f conftest.$ac_objext 6455if { (ac_try="$ac_compile" 6456case "(($ac_try" in 6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6458 *) ac_try_echo=$ac_try;; 6459esac 6460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6461$as_echo "$ac_try_echo") >&5 6462 (eval "$ac_compile") 2>conftest.er1 6463 ac_status=$? 6464 grep -v '^ *+' conftest.er1 >conftest.err 6465 rm -f conftest.er1 6466 cat conftest.err >&5 6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6468 (exit $ac_status); } && { 6469 test -z "$ac_c_werror_flag" || 6470 test ! -s conftest.err 6471 } && test -s conftest.$ac_objext; then 6472 # It does; now see whether it defined to BIG_ENDIAN or not. 6473 cat >conftest.$ac_ext <<_ACEOF 6474/* confdefs.h. */ 6475_ACEOF 6476cat confdefs.h >>conftest.$ac_ext 6477cat >>conftest.$ac_ext <<_ACEOF 6478/* end confdefs.h. */ 6479#include <sys/types.h> 6480 #include <sys/param.h> 6481 6482int 6483main () 6484{ 6485#if BYTE_ORDER != BIG_ENDIAN 6486 not big endian 6487 #endif 6488 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493rm -f conftest.$ac_objext 6494if { (ac_try="$ac_compile" 6495case "(($ac_try" in 6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6497 *) ac_try_echo=$ac_try;; 6498esac 6499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6500$as_echo "$ac_try_echo") >&5 6501 (eval "$ac_compile") 2>conftest.er1 6502 ac_status=$? 6503 grep -v '^ *+' conftest.er1 >conftest.err 6504 rm -f conftest.er1 6505 cat conftest.err >&5 6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6507 (exit $ac_status); } && { 6508 test -z "$ac_c_werror_flag" || 6509 test ! -s conftest.err 6510 } && test -s conftest.$ac_objext; then 6511 ac_cv_c_bigendian=yes 6512else 6513 $as_echo "$as_me: failed program was:" >&5 6514sed 's/^/| /' conftest.$ac_ext >&5 6515 6516 ac_cv_c_bigendian=no 6517fi 6518 6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6520else 6521 $as_echo "$as_me: failed program was:" >&5 6522sed 's/^/| /' conftest.$ac_ext >&5 6523 6524 6525fi 6526 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528 fi 6529 if test $ac_cv_c_bigendian = unknown; then 6530 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6531 cat >conftest.$ac_ext <<_ACEOF 6532/* confdefs.h. */ 6533_ACEOF 6534cat confdefs.h >>conftest.$ac_ext 6535cat >>conftest.$ac_ext <<_ACEOF 6536/* end confdefs.h. */ 6537#include <limits.h> 6538 6539int 6540main () 6541{ 6542#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6543 bogus endian macros 6544 #endif 6545 6546 ; 6547 return 0; 6548} 6549_ACEOF 6550rm -f conftest.$ac_objext 6551if { (ac_try="$ac_compile" 6552case "(($ac_try" in 6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6554 *) ac_try_echo=$ac_try;; 6555esac 6556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6557$as_echo "$ac_try_echo") >&5 6558 (eval "$ac_compile") 2>conftest.er1 6559 ac_status=$? 6560 grep -v '^ *+' conftest.er1 >conftest.err 6561 rm -f conftest.er1 6562 cat conftest.err >&5 6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6564 (exit $ac_status); } && { 6565 test -z "$ac_c_werror_flag" || 6566 test ! -s conftest.err 6567 } && test -s conftest.$ac_objext; then 6568 # It does; now see whether it defined to _BIG_ENDIAN or not. 6569 cat >conftest.$ac_ext <<_ACEOF 6570/* confdefs.h. */ 6571_ACEOF 6572cat confdefs.h >>conftest.$ac_ext 6573cat >>conftest.$ac_ext <<_ACEOF 6574/* end confdefs.h. */ 6575#include <limits.h> 6576 6577int 6578main () 6579{ 6580#ifndef _BIG_ENDIAN 6581 not big endian 6582 #endif 6583 6584 ; 6585 return 0; 6586} 6587_ACEOF 6588rm -f conftest.$ac_objext 6589if { (ac_try="$ac_compile" 6590case "(($ac_try" in 6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6592 *) ac_try_echo=$ac_try;; 6593esac 6594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6595$as_echo "$ac_try_echo") >&5 6596 (eval "$ac_compile") 2>conftest.er1 6597 ac_status=$? 6598 grep -v '^ *+' conftest.er1 >conftest.err 6599 rm -f conftest.er1 6600 cat conftest.err >&5 6601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6602 (exit $ac_status); } && { 6603 test -z "$ac_c_werror_flag" || 6604 test ! -s conftest.err 6605 } && test -s conftest.$ac_objext; then 6606 ac_cv_c_bigendian=yes 6607else 6608 $as_echo "$as_me: failed program was:" >&5 6609sed 's/^/| /' conftest.$ac_ext >&5 6610 6611 ac_cv_c_bigendian=no 6612fi 6613 6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6615else 6616 $as_echo "$as_me: failed program was:" >&5 6617sed 's/^/| /' conftest.$ac_ext >&5 6618 6619 6620fi 6621 6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6623 fi 6624 if test $ac_cv_c_bigendian = unknown; then 6625 # Compile a test program. 6626 if test "$cross_compiling" = yes; then 6627 # Try to guess by grepping values from an object file. 6628 cat >conftest.$ac_ext <<_ACEOF 6629/* confdefs.h. */ 6630_ACEOF 6631cat confdefs.h >>conftest.$ac_ext 6632cat >>conftest.$ac_ext <<_ACEOF 6633/* end confdefs.h. */ 6634short int ascii_mm[] = 6635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6636 short int ascii_ii[] = 6637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6638 int use_ascii (int i) { 6639 return ascii_mm[i] + ascii_ii[i]; 6640 } 6641 short int ebcdic_ii[] = 6642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6643 short int ebcdic_mm[] = 6644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6645 int use_ebcdic (int i) { 6646 return ebcdic_mm[i] + ebcdic_ii[i]; 6647 } 6648 extern int foo; 6649 6650int 6651main () 6652{ 6653return use_ascii (foo) == use_ebcdic (foo); 6654 ; 6655 return 0; 6656} 6657_ACEOF 6658rm -f conftest.$ac_objext 6659if { (ac_try="$ac_compile" 6660case "(($ac_try" in 6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6662 *) ac_try_echo=$ac_try;; 6663esac 6664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6665$as_echo "$ac_try_echo") >&5 6666 (eval "$ac_compile") 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } && { 6673 test -z "$ac_c_werror_flag" || 6674 test ! -s conftest.err 6675 } && test -s conftest.$ac_objext; then 6676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6677 ac_cv_c_bigendian=yes 6678 fi 6679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6680 if test "$ac_cv_c_bigendian" = unknown; then 6681 ac_cv_c_bigendian=no 6682 else 6683 # finding both strings is unlikely to happen, but who knows? 6684 ac_cv_c_bigendian=unknown 6685 fi 6686 fi 6687else 6688 $as_echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691 6692fi 6693 6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6695else 6696 cat >conftest.$ac_ext <<_ACEOF 6697/* confdefs.h. */ 6698_ACEOF 6699cat confdefs.h >>conftest.$ac_ext 6700cat >>conftest.$ac_ext <<_ACEOF 6701/* end confdefs.h. */ 6702$ac_includes_default 6703int 6704main () 6705{ 6706 6707 /* Are we little or big endian? From Harbison&Steele. */ 6708 union 6709 { 6710 long int l; 6711 char c[sizeof (long int)]; 6712 } u; 6713 u.l = 1; 6714 return u.c[sizeof (long int) - 1] == 1; 6715 6716 ; 6717 return 0; 6718} 6719_ACEOF 6720rm -f conftest$ac_exeext 6721if { (ac_try="$ac_link" 6722case "(($ac_try" in 6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6724 *) ac_try_echo=$ac_try;; 6725esac 6726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6727$as_echo "$ac_try_echo") >&5 6728 (eval "$ac_link") 2>&5 6729 ac_status=$? 6730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6732 { (case "(($ac_try" in 6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6734 *) ac_try_echo=$ac_try;; 6735esac 6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6737$as_echo "$ac_try_echo") >&5 6738 (eval "$ac_try") 2>&5 6739 ac_status=$? 6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 (exit $ac_status); }; }; then 6742 ac_cv_c_bigendian=no 6743else 6744 $as_echo "$as_me: program exited with status $ac_status" >&5 6745$as_echo "$as_me: failed program was:" >&5 6746sed 's/^/| /' conftest.$ac_ext >&5 6747 6748( exit $ac_status ) 6749ac_cv_c_bigendian=yes 6750fi 6751rm -rf conftest.dSYM 6752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6753fi 6754 6755 6756 fi 6757fi 6758{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 6759$as_echo "$ac_cv_c_bigendian" >&6; } 6760 case $ac_cv_c_bigendian in #( 6761 yes) 6762 cat >>confdefs.h <<\_ACEOF 6763#define WORDS_BIGENDIAN 1 6764_ACEOF 6765;; #( 6766 no) 6767 ;; #( 6768 universal) 6769 6770cat >>confdefs.h <<\_ACEOF 6771#define AC_APPLE_UNIVERSAL_BUILD 1 6772_ACEOF 6773 6774 ;; #( 6775 *) 6776 { { $as_echo "$as_me:$LINENO: error: unknown endianness 6777 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 6778$as_echo "$as_me: error: unknown endianness 6779 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 6780 { (exit 1); exit 1; }; } ;; 6781 esac 6782 6783{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 6784$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 6785if test "${ac_cv_c_stringize+set}" = set; then 6786 $as_echo_n "(cached) " >&6 6787else 6788 cat >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#define x(y) #y 6795 6796char *s = x(teststring); 6797_ACEOF 6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6799 $EGREP "#teststring" >/dev/null 2>&1; then 6800 ac_cv_c_stringize=no 6801else 6802 ac_cv_c_stringize=yes 6803fi 6804rm -f conftest* 6805 6806fi 6807{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 6808$as_echo "$ac_cv_c_stringize" >&6; } 6809if test $ac_cv_c_stringize = yes; then 6810 6811cat >>confdefs.h <<\_ACEOF 6812#define HAVE_STRINGIZE 1 6813_ACEOF 6814 6815fi 6816 6817 6818 6819 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 6820$as_echo_n "checking for long double with more range or precision than double... " >&6; } 6821if test "${ac_cv_type_long_double_wider+set}" = set; then 6822 $as_echo_n "(cached) " >&6 6823else 6824 cat >conftest.$ac_ext <<_ACEOF 6825/* confdefs.h. */ 6826_ACEOF 6827cat confdefs.h >>conftest.$ac_ext 6828cat >>conftest.$ac_ext <<_ACEOF 6829/* end confdefs.h. */ 6830#include <float.h> 6831 long double const a[] = 6832 { 6833 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 6834 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 6835 }; 6836 long double 6837 f (long double x) 6838 { 6839 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 6840 + (x ? f (x) : 'c')); 6841 } 6842 6843int 6844main () 6845{ 6846static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 6847 + (DBL_MANT_DIG < LDBL_MANT_DIG) 6848 - (LDBL_MAX_EXP < DBL_MAX_EXP) 6849 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 6850 && (int) LDBL_EPSILON == 0 6851 )]; 6852test_array [0] = 0 6853 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858rm -f conftest.$ac_objext 6859if { (ac_try="$ac_compile" 6860case "(($ac_try" in 6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6862 *) ac_try_echo=$ac_try;; 6863esac 6864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6865$as_echo "$ac_try_echo") >&5 6866 (eval "$ac_compile") 2>conftest.er1 6867 ac_status=$? 6868 grep -v '^ *+' conftest.er1 >conftest.err 6869 rm -f conftest.er1 6870 cat conftest.err >&5 6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872 (exit $ac_status); } && { 6873 test -z "$ac_c_werror_flag" || 6874 test ! -s conftest.err 6875 } && test -s conftest.$ac_objext; then 6876 ac_cv_type_long_double_wider=yes 6877else 6878 $as_echo "$as_me: failed program was:" >&5 6879sed 's/^/| /' conftest.$ac_ext >&5 6880 6881 ac_cv_type_long_double_wider=no 6882fi 6883 6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6885fi 6886{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 6887$as_echo "$ac_cv_type_long_double_wider" >&6; } 6888 if test $ac_cv_type_long_double_wider = yes; then 6889 6890cat >>confdefs.h <<\_ACEOF 6891#define HAVE_LONG_DOUBLE_WIDER 1 6892_ACEOF 6893 6894 fi 6895 6896 ac_cv_c_long_double=$ac_cv_type_long_double_wider 6897 if test $ac_cv_c_long_double = yes; then 6898 6899cat >>confdefs.h <<\_ACEOF 6900#define HAVE_LONG_DOUBLE 1 6901_ACEOF 6902 6903 fi 6904 6905{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 6906$as_echo_n "checking for function prototypes... " >&6; } 6907if test "$ac_cv_prog_cc_c89" != no; then 6908 { $as_echo "$as_me:$LINENO: result: yes" >&5 6909$as_echo "yes" >&6; } 6910 6911cat >>confdefs.h <<\_ACEOF 6912#define PROTOTYPES 1 6913_ACEOF 6914 6915 6916cat >>confdefs.h <<\_ACEOF 6917#define __PROTOTYPES 1 6918_ACEOF 6919 6920else 6921 { $as_echo "$as_me:$LINENO: result: no" >&5 6922$as_echo "no" >&6; } 6923fi 6924 6925 6926{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 6927$as_echo_n "checking whether char is unsigned... " >&6; } 6928if test "${ac_cv_c_char_unsigned+set}" = set; then 6929 $as_echo_n "(cached) " >&6 6930else 6931 cat >conftest.$ac_ext <<_ACEOF 6932/* confdefs.h. */ 6933_ACEOF 6934cat confdefs.h >>conftest.$ac_ext 6935cat >>conftest.$ac_ext <<_ACEOF 6936/* end confdefs.h. */ 6937$ac_includes_default 6938int 6939main () 6940{ 6941static int test_array [1 - 2 * !(((char) -1) < 0)]; 6942test_array [0] = 0 6943 6944 ; 6945 return 0; 6946} 6947_ACEOF 6948rm -f conftest.$ac_objext 6949if { (ac_try="$ac_compile" 6950case "(($ac_try" in 6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6952 *) ac_try_echo=$ac_try;; 6953esac 6954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6955$as_echo "$ac_try_echo") >&5 6956 (eval "$ac_compile") 2>conftest.er1 6957 ac_status=$? 6958 grep -v '^ *+' conftest.er1 >conftest.err 6959 rm -f conftest.er1 6960 cat conftest.err >&5 6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6962 (exit $ac_status); } && { 6963 test -z "$ac_c_werror_flag" || 6964 test ! -s conftest.err 6965 } && test -s conftest.$ac_objext; then 6966 ac_cv_c_char_unsigned=no 6967else 6968 $as_echo "$as_me: failed program was:" >&5 6969sed 's/^/| /' conftest.$ac_ext >&5 6970 6971 ac_cv_c_char_unsigned=yes 6972fi 6973 6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6975fi 6976{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 6977$as_echo "$ac_cv_c_char_unsigned" >&6; } 6978if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 6979 cat >>confdefs.h <<\_ACEOF 6980#define __CHAR_UNSIGNED__ 1 6981_ACEOF 6982 6983fi 6984 6985{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5 6986$as_echo_n "checking for working volatile... " >&6; } 6987if test "${ac_cv_c_volatile+set}" = set; then 6988 $as_echo_n "(cached) " >&6 6989else 6990 cat >conftest.$ac_ext <<_ACEOF 6991/* confdefs.h. */ 6992_ACEOF 6993cat confdefs.h >>conftest.$ac_ext 6994cat >>conftest.$ac_ext <<_ACEOF 6995/* end confdefs.h. */ 6996 6997int 6998main () 6999{ 7000 7001volatile int x; 7002int * volatile y = (int *) 0; 7003return !x && !y; 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008rm -f conftest.$ac_objext 7009if { (ac_try="$ac_compile" 7010case "(($ac_try" in 7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7012 *) ac_try_echo=$ac_try;; 7013esac 7014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7015$as_echo "$ac_try_echo") >&5 7016 (eval "$ac_compile") 2>conftest.er1 7017 ac_status=$? 7018 grep -v '^ *+' conftest.er1 >conftest.err 7019 rm -f conftest.er1 7020 cat conftest.err >&5 7021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7022 (exit $ac_status); } && { 7023 test -z "$ac_c_werror_flag" || 7024 test ! -s conftest.err 7025 } && test -s conftest.$ac_objext; then 7026 ac_cv_c_volatile=yes 7027else 7028 $as_echo "$as_me: failed program was:" >&5 7029sed 's/^/| /' conftest.$ac_ext >&5 7030 7031 ac_cv_c_volatile=no 7032fi 7033 7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7035fi 7036{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 7037$as_echo "$ac_cv_c_volatile" >&6; } 7038if test $ac_cv_c_volatile = no; then 7039 7040cat >>confdefs.h <<\_ACEOF 7041#define volatile /**/ 7042_ACEOF 7043 7044fi 7045 7046{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 7047$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 7048if test "${ac_cv_c_restrict+set}" = set; then 7049 $as_echo_n "(cached) " >&6 7050else 7051 ac_cv_c_restrict=no 7052 # The order here caters to the fact that C++ does not require restrict. 7053 for ac_kw in __restrict __restrict__ _Restrict restrict; do 7054 cat >conftest.$ac_ext <<_ACEOF 7055/* confdefs.h. */ 7056_ACEOF 7057cat confdefs.h >>conftest.$ac_ext 7058cat >>conftest.$ac_ext <<_ACEOF 7059/* end confdefs.h. */ 7060typedef int * int_ptr; 7061 int foo (int_ptr $ac_kw ip) { 7062 return ip[0]; 7063 } 7064int 7065main () 7066{ 7067int s[1]; 7068 int * $ac_kw t = s; 7069 t[0] = 0; 7070 return foo(t) 7071 ; 7072 return 0; 7073} 7074_ACEOF 7075rm -f conftest.$ac_objext 7076if { (ac_try="$ac_compile" 7077case "(($ac_try" in 7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7079 *) ac_try_echo=$ac_try;; 7080esac 7081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7082$as_echo "$ac_try_echo") >&5 7083 (eval "$ac_compile") 2>conftest.er1 7084 ac_status=$? 7085 grep -v '^ *+' conftest.er1 >conftest.err 7086 rm -f conftest.er1 7087 cat conftest.err >&5 7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7089 (exit $ac_status); } && { 7090 test -z "$ac_c_werror_flag" || 7091 test ! -s conftest.err 7092 } && test -s conftest.$ac_objext; then 7093 ac_cv_c_restrict=$ac_kw 7094else 7095 $as_echo "$as_me: failed program was:" >&5 7096sed 's/^/| /' conftest.$ac_ext >&5 7097 7098 7099fi 7100 7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7102 test "$ac_cv_c_restrict" != no && break 7103 done 7104 7105fi 7106{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 7107$as_echo "$ac_cv_c_restrict" >&6; } 7108 7109 7110 case $ac_cv_c_restrict in 7111 restrict) ;; 7112 no) cat >>confdefs.h <<\_ACEOF 7113#define restrict /**/ 7114_ACEOF 7115 ;; 7116 *) cat >>confdefs.h <<_ACEOF 7117#define restrict $ac_cv_c_restrict 7118_ACEOF 7119 ;; 7120 esac 7121 7122 7123 7124 MKINSTALLDIRS= 7125 if test -n "$ac_aux_dir"; then 7126 case "$ac_aux_dir" in 7127 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 7128 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 7129 esac 7130 fi 7131 if test -z "$MKINSTALLDIRS"; then 7132 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7133 fi 7134 7135 7136 7137 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7138$as_echo_n "checking whether NLS is requested... " >&6; } 7139 # Check whether --enable-nls was given. 7140if test "${enable_nls+set}" = set; then 7141 enableval=$enable_nls; USE_NLS=$enableval 7142else 7143 USE_NLS=yes 7144fi 7145 7146 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 7147$as_echo "$USE_NLS" >&6; } 7148 7149 7150 7151 7152 7153 7154# Prepare PATH_SEPARATOR. 7155# The user is always right. 7156if test "${PATH_SEPARATOR+set}" != set; then 7157 echo "#! /bin/sh" >conf$$.sh 7158 echo "exit 0" >>conf$$.sh 7159 chmod +x conf$$.sh 7160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7161 PATH_SEPARATOR=';' 7162 else 7163 PATH_SEPARATOR=: 7164 fi 7165 rm -f conf$$.sh 7166fi 7167 7168# Find out how to test for executable files. Don't use a zero-byte file, 7169# as systems may use methods other than mode bits to determine executability. 7170cat >conf$$.file <<_ASEOF 7171#! /bin/sh 7172exit 0 7173_ASEOF 7174chmod +x conf$$.file 7175if test -x conf$$.file >/dev/null 2>&1; then 7176 ac_executable_p="test -x" 7177else 7178 ac_executable_p="test -f" 7179fi 7180rm -f conf$$.file 7181 7182# Extract the first word of "msgfmt", so it can be a program name with args. 7183set dummy msgfmt; ac_word=$2 7184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7185$as_echo_n "checking for $ac_word... " >&6; } 7186if test "${ac_cv_path_MSGFMT+set}" = set; then 7187 $as_echo_n "(cached) " >&6 7188else 7189 case "$MSGFMT" in 7190 [\\/]* | ?:[\\/]*) 7191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7192 ;; 7193 *) 7194 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7195 for ac_dir in $PATH; do 7196 IFS="$ac_save_IFS" 7197 test -z "$ac_dir" && ac_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7200 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 7201 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7202 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7203 break 2 7204 fi 7205 fi 7206 done 7207 done 7208 IFS="$ac_save_IFS" 7209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7210 ;; 7211esac 7212fi 7213MSGFMT="$ac_cv_path_MSGFMT" 7214if test "$MSGFMT" != ":"; then 7215 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 7216$as_echo "$MSGFMT" >&6; } 7217else 7218 { $as_echo "$as_me:$LINENO: result: no" >&5 7219$as_echo "no" >&6; } 7220fi 7221 7222 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7223set dummy gmsgfmt; ac_word=$2 7224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7225$as_echo_n "checking for $ac_word... " >&6; } 7226if test "${ac_cv_path_GMSGFMT+set}" = set; then 7227 $as_echo_n "(cached) " >&6 7228else 7229 case $GMSGFMT in 7230 [\\/]* | ?:[\\/]*) 7231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7232 ;; 7233 *) 7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246done 7247IFS=$as_save_IFS 7248 7249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7250 ;; 7251esac 7252fi 7253GMSGFMT=$ac_cv_path_GMSGFMT 7254if test -n "$GMSGFMT"; then 7255 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7256$as_echo "$GMSGFMT" >&6; } 7257else 7258 { $as_echo "$as_me:$LINENO: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 7263 7264 7265# Prepare PATH_SEPARATOR. 7266# The user is always right. 7267if test "${PATH_SEPARATOR+set}" != set; then 7268 echo "#! /bin/sh" >conf$$.sh 7269 echo "exit 0" >>conf$$.sh 7270 chmod +x conf$$.sh 7271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7272 PATH_SEPARATOR=';' 7273 else 7274 PATH_SEPARATOR=: 7275 fi 7276 rm -f conf$$.sh 7277fi 7278 7279# Find out how to test for executable files. Don't use a zero-byte file, 7280# as systems may use methods other than mode bits to determine executability. 7281cat >conf$$.file <<_ASEOF 7282#! /bin/sh 7283exit 0 7284_ASEOF 7285chmod +x conf$$.file 7286if test -x conf$$.file >/dev/null 2>&1; then 7287 ac_executable_p="test -x" 7288else 7289 ac_executable_p="test -f" 7290fi 7291rm -f conf$$.file 7292 7293# Extract the first word of "xgettext", so it can be a program name with args. 7294set dummy xgettext; ac_word=$2 7295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if test "${ac_cv_path_XGETTEXT+set}" = set; then 7298 $as_echo_n "(cached) " >&6 7299else 7300 case "$XGETTEXT" in 7301 [\\/]* | ?:[\\/]*) 7302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7303 ;; 7304 *) 7305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7306 for ac_dir in $PATH; do 7307 IFS="$ac_save_IFS" 7308 test -z "$ac_dir" && ac_dir=. 7309 for ac_exec_ext in '' $ac_executable_extensions; do 7310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7312 (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 7313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7314 break 2 7315 fi 7316 fi 7317 done 7318 done 7319 IFS="$ac_save_IFS" 7320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7321 ;; 7322esac 7323fi 7324XGETTEXT="$ac_cv_path_XGETTEXT" 7325if test "$XGETTEXT" != ":"; then 7326 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7327$as_echo "$XGETTEXT" >&6; } 7328else 7329 { $as_echo "$as_me:$LINENO: result: no" >&5 7330$as_echo "no" >&6; } 7331fi 7332 7333 rm -f messages.po 7334 7335 7336# Prepare PATH_SEPARATOR. 7337# The user is always right. 7338if test "${PATH_SEPARATOR+set}" != set; then 7339 echo "#! /bin/sh" >conf$$.sh 7340 echo "exit 0" >>conf$$.sh 7341 chmod +x conf$$.sh 7342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7343 PATH_SEPARATOR=';' 7344 else 7345 PATH_SEPARATOR=: 7346 fi 7347 rm -f conf$$.sh 7348fi 7349 7350# Find out how to test for executable files. Don't use a zero-byte file, 7351# as systems may use methods other than mode bits to determine executability. 7352cat >conf$$.file <<_ASEOF 7353#! /bin/sh 7354exit 0 7355_ASEOF 7356chmod +x conf$$.file 7357if test -x conf$$.file >/dev/null 2>&1; then 7358 ac_executable_p="test -x" 7359else 7360 ac_executable_p="test -f" 7361fi 7362rm -f conf$$.file 7363 7364# Extract the first word of "msgmerge", so it can be a program name with args. 7365set dummy msgmerge; ac_word=$2 7366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7367$as_echo_n "checking for $ac_word... " >&6; } 7368if test "${ac_cv_path_MSGMERGE+set}" = set; then 7369 $as_echo_n "(cached) " >&6 7370else 7371 case "$MSGMERGE" in 7372 [\\/]* | ?:[\\/]*) 7373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7374 ;; 7375 *) 7376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7377 for ac_dir in $PATH; do 7378 IFS="$ac_save_IFS" 7379 test -z "$ac_dir" && ac_dir=. 7380 for ac_exec_ext in '' $ac_executable_extensions; do 7381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 7383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7384 break 2 7385 fi 7386 fi 7387 done 7388 done 7389 IFS="$ac_save_IFS" 7390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 7391 ;; 7392esac 7393fi 7394MSGMERGE="$ac_cv_path_MSGMERGE" 7395if test "$MSGMERGE" != ":"; then 7396 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 7397$as_echo "$MSGMERGE" >&6; } 7398else 7399 { $as_echo "$as_me:$LINENO: result: no" >&5 7400$as_echo "no" >&6; } 7401fi 7402 7403 7404 if test "$GMSGFMT" != ":"; then 7405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 7406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7407 : ; 7408 else 7409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 7410 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 7411$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 7412 GMSGFMT=":" 7413 fi 7414 fi 7415 7416 if test "$XGETTEXT" != ":"; then 7417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7418 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7419 : ; 7420 else 7421 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 7422$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 7423 XGETTEXT=":" 7424 fi 7425 rm -f messages.po 7426 fi 7427 7428 ac_config_commands="$ac_config_commands default-1" 7429 7430 7431{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 7432$as_echo_n "checking for off_t... " >&6; } 7433if test "${ac_cv_type_off_t+set}" = set; then 7434 $as_echo_n "(cached) " >&6 7435else 7436 ac_cv_type_off_t=no 7437cat >conftest.$ac_ext <<_ACEOF 7438/* confdefs.h. */ 7439_ACEOF 7440cat confdefs.h >>conftest.$ac_ext 7441cat >>conftest.$ac_ext <<_ACEOF 7442/* end confdefs.h. */ 7443$ac_includes_default 7444int 7445main () 7446{ 7447if (sizeof (off_t)) 7448 return 0; 7449 ; 7450 return 0; 7451} 7452_ACEOF 7453rm -f conftest.$ac_objext 7454if { (ac_try="$ac_compile" 7455case "(($ac_try" in 7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7457 *) ac_try_echo=$ac_try;; 7458esac 7459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7460$as_echo "$ac_try_echo") >&5 7461 (eval "$ac_compile") 2>conftest.er1 7462 ac_status=$? 7463 grep -v '^ *+' conftest.er1 >conftest.err 7464 rm -f conftest.er1 7465 cat conftest.err >&5 7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7467 (exit $ac_status); } && { 7468 test -z "$ac_c_werror_flag" || 7469 test ! -s conftest.err 7470 } && test -s conftest.$ac_objext; then 7471 cat >conftest.$ac_ext <<_ACEOF 7472/* confdefs.h. */ 7473_ACEOF 7474cat confdefs.h >>conftest.$ac_ext 7475cat >>conftest.$ac_ext <<_ACEOF 7476/* end confdefs.h. */ 7477$ac_includes_default 7478int 7479main () 7480{ 7481if (sizeof ((off_t))) 7482 return 0; 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487rm -f conftest.$ac_objext 7488if { (ac_try="$ac_compile" 7489case "(($ac_try" in 7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7491 *) ac_try_echo=$ac_try;; 7492esac 7493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7494$as_echo "$ac_try_echo") >&5 7495 (eval "$ac_compile") 2>conftest.er1 7496 ac_status=$? 7497 grep -v '^ *+' conftest.er1 >conftest.err 7498 rm -f conftest.er1 7499 cat conftest.err >&5 7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7501 (exit $ac_status); } && { 7502 test -z "$ac_c_werror_flag" || 7503 test ! -s conftest.err 7504 } && test -s conftest.$ac_objext; then 7505 : 7506else 7507 $as_echo "$as_me: failed program was:" >&5 7508sed 's/^/| /' conftest.$ac_ext >&5 7509 7510 ac_cv_type_off_t=yes 7511fi 7512 7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7514else 7515 $as_echo "$as_me: failed program was:" >&5 7516sed 's/^/| /' conftest.$ac_ext >&5 7517 7518 7519fi 7520 7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7522fi 7523{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 7524$as_echo "$ac_cv_type_off_t" >&6; } 7525if test "x$ac_cv_type_off_t" = x""yes; then 7526 : 7527else 7528 7529cat >>confdefs.h <<_ACEOF 7530#define off_t long int 7531_ACEOF 7532 7533fi 7534 7535{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 7536$as_echo_n "checking for size_t... " >&6; } 7537if test "${ac_cv_type_size_t+set}" = set; then 7538 $as_echo_n "(cached) " >&6 7539else 7540 ac_cv_type_size_t=no 7541cat >conftest.$ac_ext <<_ACEOF 7542/* confdefs.h. */ 7543_ACEOF 7544cat confdefs.h >>conftest.$ac_ext 7545cat >>conftest.$ac_ext <<_ACEOF 7546/* end confdefs.h. */ 7547$ac_includes_default 7548int 7549main () 7550{ 7551if (sizeof (size_t)) 7552 return 0; 7553 ; 7554 return 0; 7555} 7556_ACEOF 7557rm -f conftest.$ac_objext 7558if { (ac_try="$ac_compile" 7559case "(($ac_try" in 7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7561 *) ac_try_echo=$ac_try;; 7562esac 7563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7564$as_echo "$ac_try_echo") >&5 7565 (eval "$ac_compile") 2>conftest.er1 7566 ac_status=$? 7567 grep -v '^ *+' conftest.er1 >conftest.err 7568 rm -f conftest.er1 7569 cat conftest.err >&5 7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7571 (exit $ac_status); } && { 7572 test -z "$ac_c_werror_flag" || 7573 test ! -s conftest.err 7574 } && test -s conftest.$ac_objext; then 7575 cat >conftest.$ac_ext <<_ACEOF 7576/* confdefs.h. */ 7577_ACEOF 7578cat confdefs.h >>conftest.$ac_ext 7579cat >>conftest.$ac_ext <<_ACEOF 7580/* end confdefs.h. */ 7581$ac_includes_default 7582int 7583main () 7584{ 7585if (sizeof ((size_t))) 7586 return 0; 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591rm -f conftest.$ac_objext 7592if { (ac_try="$ac_compile" 7593case "(($ac_try" in 7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7595 *) ac_try_echo=$ac_try;; 7596esac 7597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7598$as_echo "$ac_try_echo") >&5 7599 (eval "$ac_compile") 2>conftest.er1 7600 ac_status=$? 7601 grep -v '^ *+' conftest.er1 >conftest.err 7602 rm -f conftest.er1 7603 cat conftest.err >&5 7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); } && { 7606 test -z "$ac_c_werror_flag" || 7607 test ! -s conftest.err 7608 } && test -s conftest.$ac_objext; then 7609 : 7610else 7611 $as_echo "$as_me: failed program was:" >&5 7612sed 's/^/| /' conftest.$ac_ext >&5 7613 7614 ac_cv_type_size_t=yes 7615fi 7616 7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7618else 7619 $as_echo "$as_me: failed program was:" >&5 7620sed 's/^/| /' conftest.$ac_ext >&5 7621 7622 7623fi 7624 7625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7626fi 7627{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 7628$as_echo "$ac_cv_type_size_t" >&6; } 7629if test "x$ac_cv_type_size_t" = x""yes; then 7630 : 7631else 7632 7633cat >>confdefs.h <<_ACEOF 7634#define size_t unsigned int 7635_ACEOF 7636 7637fi 7638 7639# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7640# for constant arguments. Useless! 7641{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 7642$as_echo_n "checking for working alloca.h... " >&6; } 7643if test "${ac_cv_working_alloca_h+set}" = set; then 7644 $as_echo_n "(cached) " >&6 7645else 7646 cat >conftest.$ac_ext <<_ACEOF 7647/* confdefs.h. */ 7648_ACEOF 7649cat confdefs.h >>conftest.$ac_ext 7650cat >>conftest.$ac_ext <<_ACEOF 7651/* end confdefs.h. */ 7652#include <alloca.h> 7653int 7654main () 7655{ 7656char *p = (char *) alloca (2 * sizeof (int)); 7657 if (p) return 0; 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662rm -f conftest.$ac_objext conftest$ac_exeext 7663if { (ac_try="$ac_link" 7664case "(($ac_try" in 7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7666 *) ac_try_echo=$ac_try;; 7667esac 7668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7669$as_echo "$ac_try_echo") >&5 7670 (eval "$ac_link") 2>conftest.er1 7671 ac_status=$? 7672 grep -v '^ *+' conftest.er1 >conftest.err 7673 rm -f conftest.er1 7674 cat conftest.err >&5 7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7676 (exit $ac_status); } && { 7677 test -z "$ac_c_werror_flag" || 7678 test ! -s conftest.err 7679 } && test -s conftest$ac_exeext && { 7680 test "$cross_compiling" = yes || 7681 $as_test_x conftest$ac_exeext 7682 }; then 7683 ac_cv_working_alloca_h=yes 7684else 7685 $as_echo "$as_me: failed program was:" >&5 7686sed 's/^/| /' conftest.$ac_ext >&5 7687 7688 ac_cv_working_alloca_h=no 7689fi 7690 7691rm -rf conftest.dSYM 7692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7693 conftest$ac_exeext conftest.$ac_ext 7694fi 7695{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 7696$as_echo "$ac_cv_working_alloca_h" >&6; } 7697if test $ac_cv_working_alloca_h = yes; then 7698 7699cat >>confdefs.h <<\_ACEOF 7700#define HAVE_ALLOCA_H 1 7701_ACEOF 7702 7703fi 7704 7705{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 7706$as_echo_n "checking for alloca... " >&6; } 7707if test "${ac_cv_func_alloca_works+set}" = set; then 7708 $as_echo_n "(cached) " >&6 7709else 7710 cat >conftest.$ac_ext <<_ACEOF 7711/* confdefs.h. */ 7712_ACEOF 7713cat confdefs.h >>conftest.$ac_ext 7714cat >>conftest.$ac_ext <<_ACEOF 7715/* end confdefs.h. */ 7716#ifdef __GNUC__ 7717# define alloca __builtin_alloca 7718#else 7719# ifdef _MSC_VER 7720# include <malloc.h> 7721# define alloca _alloca 7722# else 7723# ifdef HAVE_ALLOCA_H 7724# include <alloca.h> 7725# else 7726# ifdef _AIX 7727 #pragma alloca 7728# else 7729# ifndef alloca /* predefined by HP cc +Olibcalls */ 7730char *alloca (); 7731# endif 7732# endif 7733# endif 7734# endif 7735#endif 7736 7737int 7738main () 7739{ 7740char *p = (char *) alloca (1); 7741 if (p) return 0; 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746rm -f conftest.$ac_objext conftest$ac_exeext 7747if { (ac_try="$ac_link" 7748case "(($ac_try" in 7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7750 *) ac_try_echo=$ac_try;; 7751esac 7752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7753$as_echo "$ac_try_echo") >&5 7754 (eval "$ac_link") 2>conftest.er1 7755 ac_status=$? 7756 grep -v '^ *+' conftest.er1 >conftest.err 7757 rm -f conftest.er1 7758 cat conftest.err >&5 7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } && { 7761 test -z "$ac_c_werror_flag" || 7762 test ! -s conftest.err 7763 } && test -s conftest$ac_exeext && { 7764 test "$cross_compiling" = yes || 7765 $as_test_x conftest$ac_exeext 7766 }; then 7767 ac_cv_func_alloca_works=yes 7768else 7769 $as_echo "$as_me: failed program was:" >&5 7770sed 's/^/| /' conftest.$ac_ext >&5 7771 7772 ac_cv_func_alloca_works=no 7773fi 7774 7775rm -rf conftest.dSYM 7776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7777 conftest$ac_exeext conftest.$ac_ext 7778fi 7779{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 7780$as_echo "$ac_cv_func_alloca_works" >&6; } 7781 7782if test $ac_cv_func_alloca_works = yes; then 7783 7784cat >>confdefs.h <<\_ACEOF 7785#define HAVE_ALLOCA 1 7786_ACEOF 7787 7788else 7789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7790# that cause trouble. Some versions do not even contain alloca or 7791# contain a buggy version. If you still want to use their alloca, 7792# use ar to extract alloca.o from them instead of compiling alloca.c. 7793 7794ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7795 7796cat >>confdefs.h <<\_ACEOF 7797#define C_ALLOCA 1 7798_ACEOF 7799 7800 7801{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 7802$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 7803if test "${ac_cv_os_cray+set}" = set; then 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat >conftest.$ac_ext <<_ACEOF 7807/* confdefs.h. */ 7808_ACEOF 7809cat confdefs.h >>conftest.$ac_ext 7810cat >>conftest.$ac_ext <<_ACEOF 7811/* end confdefs.h. */ 7812#if defined CRAY && ! defined CRAY2 7813webecray 7814#else 7815wenotbecray 7816#endif 7817 7818_ACEOF 7819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7820 $EGREP "webecray" >/dev/null 2>&1; then 7821 ac_cv_os_cray=yes 7822else 7823 ac_cv_os_cray=no 7824fi 7825rm -f conftest* 7826 7827fi 7828{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 7829$as_echo "$ac_cv_os_cray" >&6; } 7830if test $ac_cv_os_cray = yes; then 7831 for ac_func in _getb67 GETB67 getb67; do 7832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7833{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7834$as_echo_n "checking for $ac_func... " >&6; } 7835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7836 $as_echo_n "(cached) " >&6 7837else 7838 cat >conftest.$ac_ext <<_ACEOF 7839/* confdefs.h. */ 7840_ACEOF 7841cat confdefs.h >>conftest.$ac_ext 7842cat >>conftest.$ac_ext <<_ACEOF 7843/* end confdefs.h. */ 7844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7846#define $ac_func innocuous_$ac_func 7847 7848/* System header to define __stub macros and hopefully few prototypes, 7849 which can conflict with char $ac_func (); below. 7850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7851 <limits.h> exists even on freestanding compilers. */ 7852 7853#ifdef __STDC__ 7854# include <limits.h> 7855#else 7856# include <assert.h> 7857#endif 7858 7859#undef $ac_func 7860 7861/* Override any GCC internal prototype to avoid an error. 7862 Use char because int might match the return type of a GCC 7863 builtin and then its argument prototype would still apply. */ 7864#ifdef __cplusplus 7865extern "C" 7866#endif 7867char $ac_func (); 7868/* The GNU C library defines this for functions which it implements 7869 to always fail with ENOSYS. Some functions are actually named 7870 something starting with __ and the normal name is an alias. */ 7871#if defined __stub_$ac_func || defined __stub___$ac_func 7872choke me 7873#endif 7874 7875int 7876main () 7877{ 7878return $ac_func (); 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883rm -f conftest.$ac_objext conftest$ac_exeext 7884if { (ac_try="$ac_link" 7885case "(($ac_try" in 7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7887 *) ac_try_echo=$ac_try;; 7888esac 7889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7890$as_echo "$ac_try_echo") >&5 7891 (eval "$ac_link") 2>conftest.er1 7892 ac_status=$? 7893 grep -v '^ *+' conftest.er1 >conftest.err 7894 rm -f conftest.er1 7895 cat conftest.err >&5 7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7897 (exit $ac_status); } && { 7898 test -z "$ac_c_werror_flag" || 7899 test ! -s conftest.err 7900 } && test -s conftest$ac_exeext && { 7901 test "$cross_compiling" = yes || 7902 $as_test_x conftest$ac_exeext 7903 }; then 7904 eval "$as_ac_var=yes" 7905else 7906 $as_echo "$as_me: failed program was:" >&5 7907sed 's/^/| /' conftest.$ac_ext >&5 7908 7909 eval "$as_ac_var=no" 7910fi 7911 7912rm -rf conftest.dSYM 7913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7914 conftest$ac_exeext conftest.$ac_ext 7915fi 7916ac_res=`eval 'as_val=${'$as_ac_var'} 7917 $as_echo "$as_val"'` 7918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7919$as_echo "$ac_res" >&6; } 7920as_val=`eval 'as_val=${'$as_ac_var'} 7921 $as_echo "$as_val"'` 7922 if test "x$as_val" = x""yes; then 7923 7924cat >>confdefs.h <<_ACEOF 7925#define CRAY_STACKSEG_END $ac_func 7926_ACEOF 7927 7928 break 7929fi 7930 7931 done 7932fi 7933 7934{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 7935$as_echo_n "checking stack direction for C alloca... " >&6; } 7936if test "${ac_cv_c_stack_direction+set}" = set; then 7937 $as_echo_n "(cached) " >&6 7938else 7939 if test "$cross_compiling" = yes; then 7940 ac_cv_c_stack_direction=0 7941else 7942 cat >conftest.$ac_ext <<_ACEOF 7943/* confdefs.h. */ 7944_ACEOF 7945cat confdefs.h >>conftest.$ac_ext 7946cat >>conftest.$ac_ext <<_ACEOF 7947/* end confdefs.h. */ 7948$ac_includes_default 7949int 7950find_stack_direction () 7951{ 7952 static char *addr = 0; 7953 auto char dummy; 7954 if (addr == 0) 7955 { 7956 addr = &dummy; 7957 return find_stack_direction (); 7958 } 7959 else 7960 return (&dummy > addr) ? 1 : -1; 7961} 7962 7963int 7964main () 7965{ 7966 return find_stack_direction () < 0; 7967} 7968_ACEOF 7969rm -f conftest$ac_exeext 7970if { (ac_try="$ac_link" 7971case "(($ac_try" in 7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7973 *) ac_try_echo=$ac_try;; 7974esac 7975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7976$as_echo "$ac_try_echo") >&5 7977 (eval "$ac_link") 2>&5 7978 ac_status=$? 7979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7981 { (case "(($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_try") 2>&5 7988 ac_status=$? 7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7990 (exit $ac_status); }; }; then 7991 ac_cv_c_stack_direction=1 7992else 7993 $as_echo "$as_me: program exited with status $ac_status" >&5 7994$as_echo "$as_me: failed program was:" >&5 7995sed 's/^/| /' conftest.$ac_ext >&5 7996 7997( exit $ac_status ) 7998ac_cv_c_stack_direction=-1 7999fi 8000rm -rf conftest.dSYM 8001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8002fi 8003 8004 8005fi 8006{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 8007$as_echo "$ac_cv_c_stack_direction" >&6; } 8008 8009cat >>confdefs.h <<_ACEOF 8010#define STACK_DIRECTION $ac_cv_c_stack_direction 8011_ACEOF 8012 8013 8014fi 8015 8016 8017 8018for ac_header in stdlib.h unistd.h 8019do 8020as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8023$as_echo_n "checking for $ac_header... " >&6; } 8024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8025 $as_echo_n "(cached) " >&6 8026fi 8027ac_res=`eval 'as_val=${'$as_ac_Header'} 8028 $as_echo "$as_val"'` 8029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8030$as_echo "$ac_res" >&6; } 8031else 8032 # Is the header compilable? 8033{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 8034$as_echo_n "checking $ac_header usability... " >&6; } 8035cat >conftest.$ac_ext <<_ACEOF 8036/* confdefs.h. */ 8037_ACEOF 8038cat confdefs.h >>conftest.$ac_ext 8039cat >>conftest.$ac_ext <<_ACEOF 8040/* end confdefs.h. */ 8041$ac_includes_default 8042#include <$ac_header> 8043_ACEOF 8044rm -f conftest.$ac_objext 8045if { (ac_try="$ac_compile" 8046case "(($ac_try" in 8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8048 *) ac_try_echo=$ac_try;; 8049esac 8050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8051$as_echo "$ac_try_echo") >&5 8052 (eval "$ac_compile") 2>conftest.er1 8053 ac_status=$? 8054 grep -v '^ *+' conftest.er1 >conftest.err 8055 rm -f conftest.er1 8056 cat conftest.err >&5 8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8058 (exit $ac_status); } && { 8059 test -z "$ac_c_werror_flag" || 8060 test ! -s conftest.err 8061 } && test -s conftest.$ac_objext; then 8062 ac_header_compiler=yes 8063else 8064 $as_echo "$as_me: failed program was:" >&5 8065sed 's/^/| /' conftest.$ac_ext >&5 8066 8067 ac_header_compiler=no 8068fi 8069 8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8071{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8072$as_echo "$ac_header_compiler" >&6; } 8073 8074# Is the header present? 8075{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 8076$as_echo_n "checking $ac_header presence... " >&6; } 8077cat >conftest.$ac_ext <<_ACEOF 8078/* confdefs.h. */ 8079_ACEOF 8080cat confdefs.h >>conftest.$ac_ext 8081cat >>conftest.$ac_ext <<_ACEOF 8082/* end confdefs.h. */ 8083#include <$ac_header> 8084_ACEOF 8085if { (ac_try="$ac_cpp conftest.$ac_ext" 8086case "(($ac_try" in 8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8088 *) ac_try_echo=$ac_try;; 8089esac 8090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8091$as_echo "$ac_try_echo") >&5 8092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8093 ac_status=$? 8094 grep -v '^ *+' conftest.er1 >conftest.err 8095 rm -f conftest.er1 8096 cat conftest.err >&5 8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 (exit $ac_status); } >/dev/null && { 8099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8100 test ! -s conftest.err 8101 }; then 8102 ac_header_preproc=yes 8103else 8104 $as_echo "$as_me: failed program was:" >&5 8105sed 's/^/| /' conftest.$ac_ext >&5 8106 8107 ac_header_preproc=no 8108fi 8109 8110rm -f conftest.err conftest.$ac_ext 8111{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8112$as_echo "$ac_header_preproc" >&6; } 8113 8114# So? What about this header? 8115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8116 yes:no: ) 8117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8118$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8120$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8121 ac_header_preproc=yes 8122 ;; 8123 no:yes:* ) 8124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8125$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8127$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8129$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8131$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8133$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8135$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8136 ( cat <<\_ASBOX 8137## ------------------------------- ## 8138## Report this to bug-bash@gnu.org ## 8139## ------------------------------- ## 8140_ASBOX 8141 ) | sed "s/^/$as_me: WARNING: /" >&2 8142 ;; 8143esac 8144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8145$as_echo_n "checking for $ac_header... " >&6; } 8146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8147 $as_echo_n "(cached) " >&6 8148else 8149 eval "$as_ac_Header=\$ac_header_preproc" 8150fi 8151ac_res=`eval 'as_val=${'$as_ac_Header'} 8152 $as_echo "$as_val"'` 8153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8154$as_echo "$ac_res" >&6; } 8155 8156fi 8157as_val=`eval 'as_val=${'$as_ac_Header'} 8158 $as_echo "$as_val"'` 8159 if test "x$as_val" = x""yes; then 8160 cat >>confdefs.h <<_ACEOF 8161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8162_ACEOF 8163 8164fi 8165 8166done 8167 8168 8169for ac_func in getpagesize 8170do 8171as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8172{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 8173$as_echo_n "checking for $ac_func... " >&6; } 8174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8175 $as_echo_n "(cached) " >&6 8176else 8177 cat >conftest.$ac_ext <<_ACEOF 8178/* confdefs.h. */ 8179_ACEOF 8180cat confdefs.h >>conftest.$ac_ext 8181cat >>conftest.$ac_ext <<_ACEOF 8182/* end confdefs.h. */ 8183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8185#define $ac_func innocuous_$ac_func 8186 8187/* System header to define __stub macros and hopefully few prototypes, 8188 which can conflict with char $ac_func (); below. 8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8190 <limits.h> exists even on freestanding compilers. */ 8191 8192#ifdef __STDC__ 8193# include <limits.h> 8194#else 8195# include <assert.h> 8196#endif 8197 8198#undef $ac_func 8199 8200/* Override any GCC internal prototype to avoid an error. 8201 Use char because int might match the return type of a GCC 8202 builtin and then its argument prototype would still apply. */ 8203#ifdef __cplusplus 8204extern "C" 8205#endif 8206char $ac_func (); 8207/* The GNU C library defines this for functions which it implements 8208 to always fail with ENOSYS. Some functions are actually named 8209 something starting with __ and the normal name is an alias. */ 8210#if defined __stub_$ac_func || defined __stub___$ac_func 8211choke me 8212#endif 8213 8214int 8215main () 8216{ 8217return $ac_func (); 8218 ; 8219 return 0; 8220} 8221_ACEOF 8222rm -f conftest.$ac_objext conftest$ac_exeext 8223if { (ac_try="$ac_link" 8224case "(($ac_try" in 8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8226 *) ac_try_echo=$ac_try;; 8227esac 8228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8229$as_echo "$ac_try_echo") >&5 8230 (eval "$ac_link") 2>conftest.er1 8231 ac_status=$? 8232 grep -v '^ *+' conftest.er1 >conftest.err 8233 rm -f conftest.er1 8234 cat conftest.err >&5 8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); } && { 8237 test -z "$ac_c_werror_flag" || 8238 test ! -s conftest.err 8239 } && test -s conftest$ac_exeext && { 8240 test "$cross_compiling" = yes || 8241 $as_test_x conftest$ac_exeext 8242 }; then 8243 eval "$as_ac_var=yes" 8244else 8245 $as_echo "$as_me: failed program was:" >&5 8246sed 's/^/| /' conftest.$ac_ext >&5 8247 8248 eval "$as_ac_var=no" 8249fi 8250 8251rm -rf conftest.dSYM 8252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8253 conftest$ac_exeext conftest.$ac_ext 8254fi 8255ac_res=`eval 'as_val=${'$as_ac_var'} 8256 $as_echo "$as_val"'` 8257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8258$as_echo "$ac_res" >&6; } 8259as_val=`eval 'as_val=${'$as_ac_var'} 8260 $as_echo "$as_val"'` 8261 if test "x$as_val" = x""yes; then 8262 cat >>confdefs.h <<_ACEOF 8263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8264_ACEOF 8265 8266fi 8267done 8268 8269{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5 8270$as_echo_n "checking for working mmap... " >&6; } 8271if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 8272 $as_echo_n "(cached) " >&6 8273else 8274 if test "$cross_compiling" = yes; then 8275 ac_cv_func_mmap_fixed_mapped=no 8276else 8277 cat >conftest.$ac_ext <<_ACEOF 8278/* confdefs.h. */ 8279_ACEOF 8280cat confdefs.h >>conftest.$ac_ext 8281cat >>conftest.$ac_ext <<_ACEOF 8282/* end confdefs.h. */ 8283$ac_includes_default 8284/* malloc might have been renamed as rpl_malloc. */ 8285#undef malloc 8286 8287/* Thanks to Mike Haertel and Jim Avera for this test. 8288 Here is a matrix of mmap possibilities: 8289 mmap private not fixed 8290 mmap private fixed at somewhere currently unmapped 8291 mmap private fixed at somewhere already mapped 8292 mmap shared not fixed 8293 mmap shared fixed at somewhere currently unmapped 8294 mmap shared fixed at somewhere already mapped 8295 For private mappings, we should verify that changes cannot be read() 8296 back from the file, nor mmap's back from the file at a different 8297 address. (There have been systems where private was not correctly 8298 implemented like the infamous i386 svr4.0, and systems where the 8299 VM page cache was not coherent with the file system buffer cache 8300 like early versions of FreeBSD and possibly contemporary NetBSD.) 8301 For shared mappings, we should conversely verify that changes get 8302 propagated back to all the places they're supposed to be. 8303 8304 Grep wants private fixed already mapped. 8305 The main things grep needs to know about mmap are: 8306 * does it exist and is it safe to write into the mmap'd area 8307 * how to use it (BSD variants) */ 8308 8309#include <fcntl.h> 8310#include <sys/mman.h> 8311 8312#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 8313char *malloc (); 8314#endif 8315 8316/* This mess was copied from the GNU getpagesize.h. */ 8317#ifndef HAVE_GETPAGESIZE 8318/* Assume that all systems that can run configure have sys/param.h. */ 8319# ifndef HAVE_SYS_PARAM_H 8320# define HAVE_SYS_PARAM_H 1 8321# endif 8322 8323# ifdef _SC_PAGESIZE 8324# define getpagesize() sysconf(_SC_PAGESIZE) 8325# else /* no _SC_PAGESIZE */ 8326# ifdef HAVE_SYS_PARAM_H 8327# include <sys/param.h> 8328# ifdef EXEC_PAGESIZE 8329# define getpagesize() EXEC_PAGESIZE 8330# else /* no EXEC_PAGESIZE */ 8331# ifdef NBPG 8332# define getpagesize() NBPG * CLSIZE 8333# ifndef CLSIZE 8334# define CLSIZE 1 8335# endif /* no CLSIZE */ 8336# else /* no NBPG */ 8337# ifdef NBPC 8338# define getpagesize() NBPC 8339# else /* no NBPC */ 8340# ifdef PAGESIZE 8341# define getpagesize() PAGESIZE 8342# endif /* PAGESIZE */ 8343# endif /* no NBPC */ 8344# endif /* no NBPG */ 8345# endif /* no EXEC_PAGESIZE */ 8346# else /* no HAVE_SYS_PARAM_H */ 8347# define getpagesize() 8192 /* punt totally */ 8348# endif /* no HAVE_SYS_PARAM_H */ 8349# endif /* no _SC_PAGESIZE */ 8350 8351#endif /* no HAVE_GETPAGESIZE */ 8352 8353int 8354main () 8355{ 8356 char *data, *data2, *data3; 8357 int i, pagesize; 8358 int fd; 8359 8360 pagesize = getpagesize (); 8361 8362 /* First, make a file with some known garbage in it. */ 8363 data = (char *) malloc (pagesize); 8364 if (!data) 8365 return 1; 8366 for (i = 0; i < pagesize; ++i) 8367 *(data + i) = rand (); 8368 umask (0); 8369 fd = creat ("conftest.mmap", 0600); 8370 if (fd < 0) 8371 return 1; 8372 if (write (fd, data, pagesize) != pagesize) 8373 return 1; 8374 close (fd); 8375 8376 /* Next, try to mmap the file at a fixed address which already has 8377 something else allocated at it. If we can, also make sure that 8378 we see the same garbage. */ 8379 fd = open ("conftest.mmap", O_RDWR); 8380 if (fd < 0) 8381 return 1; 8382 data2 = (char *) malloc (2 * pagesize); 8383 if (!data2) 8384 return 1; 8385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 8386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8387 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8388 return 1; 8389 for (i = 0; i < pagesize; ++i) 8390 if (*(data + i) != *(data2 + i)) 8391 return 1; 8392 8393 /* Finally, make sure that changes to the mapped area do not 8394 percolate back to the file as seen by read(). (This is a bug on 8395 some variants of i386 svr4.0.) */ 8396 for (i = 0; i < pagesize; ++i) 8397 *(data2 + i) = *(data2 + i) + 1; 8398 data3 = (char *) malloc (pagesize); 8399 if (!data3) 8400 return 1; 8401 if (read (fd, data3, pagesize) != pagesize) 8402 return 1; 8403 for (i = 0; i < pagesize; ++i) 8404 if (*(data + i) != *(data3 + i)) 8405 return 1; 8406 close (fd); 8407 return 0; 8408} 8409_ACEOF 8410rm -f conftest$ac_exeext 8411if { (ac_try="$ac_link" 8412case "(($ac_try" in 8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8414 *) ac_try_echo=$ac_try;; 8415esac 8416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8417$as_echo "$ac_try_echo") >&5 8418 (eval "$ac_link") 2>&5 8419 ac_status=$? 8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8422 { (case "(($ac_try" in 8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8424 *) ac_try_echo=$ac_try;; 8425esac 8426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8427$as_echo "$ac_try_echo") >&5 8428 (eval "$ac_try") 2>&5 8429 ac_status=$? 8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8431 (exit $ac_status); }; }; then 8432 ac_cv_func_mmap_fixed_mapped=yes 8433else 8434 $as_echo "$as_me: program exited with status $ac_status" >&5 8435$as_echo "$as_me: failed program was:" >&5 8436sed 's/^/| /' conftest.$ac_ext >&5 8437 8438( exit $ac_status ) 8439ac_cv_func_mmap_fixed_mapped=no 8440fi 8441rm -rf conftest.dSYM 8442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8443fi 8444 8445 8446fi 8447{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 8448$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 8449if test $ac_cv_func_mmap_fixed_mapped = yes; then 8450 8451cat >>confdefs.h <<\_ACEOF 8452#define HAVE_MMAP 1 8453_ACEOF 8454 8455fi 8456rm -f conftest.mmap 8457 8458 8459 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 8460$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 8461if test "${ac_cv_gnu_library_2_1+set}" = set; then 8462 $as_echo_n "(cached) " >&6 8463else 8464 cat >conftest.$ac_ext <<_ACEOF 8465/* confdefs.h. */ 8466_ACEOF 8467cat confdefs.h >>conftest.$ac_ext 8468cat >>conftest.$ac_ext <<_ACEOF 8469/* end confdefs.h. */ 8470 8471#include <features.h> 8472#ifdef __GNU_LIBRARY__ 8473 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 8474 Lucky GNU user 8475 #endif 8476#endif 8477 8478_ACEOF 8479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8480 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 8481 ac_cv_gnu_library_2_1=yes 8482else 8483 ac_cv_gnu_library_2_1=no 8484fi 8485rm -f conftest* 8486 8487 8488 8489fi 8490{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 8491$as_echo "$ac_cv_gnu_library_2_1" >&6; } 8492 8493 GLIBC21="$ac_cv_gnu_library_2_1" 8494 8495 8496 8497 8498 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 8499$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 8500if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 8501 $as_echo_n "(cached) " >&6 8502else 8503 8504 if test "$cross_compiling" = yes; then 8505 8506 # Guess based on the CPU. 8507 case "$host_cpu" in 8508 alpha* | i3456786 | m68k | s390*) 8509 gt_cv_int_divbyzero_sigfpe="guessing yes";; 8510 *) 8511 gt_cv_int_divbyzero_sigfpe="guessing no";; 8512 esac 8513 8514else 8515 cat >conftest.$ac_ext <<_ACEOF 8516/* confdefs.h. */ 8517_ACEOF 8518cat confdefs.h >>conftest.$ac_ext 8519cat >>conftest.$ac_ext <<_ACEOF 8520/* end confdefs.h. */ 8521 8522#include <stdlib.h> 8523#include <signal.h> 8524 8525static void 8526#ifdef __cplusplus 8527sigfpe_handler (int sig) 8528#else 8529sigfpe_handler (sig) int sig; 8530#endif 8531{ 8532 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 8533 exit (sig != SIGFPE); 8534} 8535 8536int x = 1; 8537int y = 0; 8538int z; 8539int nan; 8540 8541int main () 8542{ 8543 signal (SIGFPE, sigfpe_handler); 8544/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 8545#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 8546 signal (SIGTRAP, sigfpe_handler); 8547#endif 8548/* Linux/SPARC yields signal SIGILL. */ 8549#if defined (__sparc__) && defined (__linux__) 8550 signal (SIGILL, sigfpe_handler); 8551#endif 8552 8553 z = x / y; 8554 nan = y / y; 8555 exit (1); 8556} 8557 8558_ACEOF 8559rm -f conftest$ac_exeext 8560if { (ac_try="$ac_link" 8561case "(($ac_try" in 8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8563 *) ac_try_echo=$ac_try;; 8564esac 8565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8566$as_echo "$ac_try_echo") >&5 8567 (eval "$ac_link") 2>&5 8568 ac_status=$? 8569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8571 { (case "(($ac_try" in 8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8573 *) ac_try_echo=$ac_try;; 8574esac 8575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8576$as_echo "$ac_try_echo") >&5 8577 (eval "$ac_try") 2>&5 8578 ac_status=$? 8579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); }; }; then 8581 gt_cv_int_divbyzero_sigfpe=yes 8582else 8583 $as_echo "$as_me: program exited with status $ac_status" >&5 8584$as_echo "$as_me: failed program was:" >&5 8585sed 's/^/| /' conftest.$ac_ext >&5 8586 8587( exit $ac_status ) 8588gt_cv_int_divbyzero_sigfpe=no 8589fi 8590rm -rf conftest.dSYM 8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8592fi 8593 8594 8595 8596fi 8597{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 8598$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 8599 case "$gt_cv_int_divbyzero_sigfpe" in 8600 *yes) value=1;; 8601 *) value=0;; 8602 esac 8603 8604cat >>confdefs.h <<_ACEOF 8605#define INTDIV0_RAISES_SIGFPE $value 8606_ACEOF 8607 8608 8609 8610 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 8611$as_echo_n "checking for inttypes.h... " >&6; } 8612if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 8613 $as_echo_n "(cached) " >&6 8614else 8615 cat >conftest.$ac_ext <<_ACEOF 8616/* confdefs.h. */ 8617_ACEOF 8618cat confdefs.h >>conftest.$ac_ext 8619cat >>conftest.$ac_ext <<_ACEOF 8620/* end confdefs.h. */ 8621#include <sys/types.h> 8622#include <inttypes.h> 8623int 8624main () 8625{ 8626uintmax_t i = (uintmax_t) -1; 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631rm -f conftest.$ac_objext 8632if { (ac_try="$ac_compile" 8633case "(($ac_try" in 8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8635 *) ac_try_echo=$ac_try;; 8636esac 8637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8638$as_echo "$ac_try_echo") >&5 8639 (eval "$ac_compile") 2>conftest.er1 8640 ac_status=$? 8641 grep -v '^ *+' conftest.er1 >conftest.err 8642 rm -f conftest.er1 8643 cat conftest.err >&5 8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); } && { 8646 test -z "$ac_c_werror_flag" || 8647 test ! -s conftest.err 8648 } && test -s conftest.$ac_objext; then 8649 jm_ac_cv_header_inttypes_h=yes 8650else 8651 $as_echo "$as_me: failed program was:" >&5 8652sed 's/^/| /' conftest.$ac_ext >&5 8653 8654 jm_ac_cv_header_inttypes_h=no 8655fi 8656 8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8658fi 8659{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 8660$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 8661 if test $jm_ac_cv_header_inttypes_h = yes; then 8662 8663cat >>confdefs.h <<_ACEOF 8664#define HAVE_INTTYPES_H_WITH_UINTMAX 1 8665_ACEOF 8666 8667 fi 8668 8669 8670 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 8671$as_echo_n "checking for stdint.h... " >&6; } 8672if test "${jm_ac_cv_header_stdint_h+set}" = set; then 8673 $as_echo_n "(cached) " >&6 8674else 8675 cat >conftest.$ac_ext <<_ACEOF 8676/* confdefs.h. */ 8677_ACEOF 8678cat confdefs.h >>conftest.$ac_ext 8679cat >>conftest.$ac_ext <<_ACEOF 8680/* end confdefs.h. */ 8681#include <sys/types.h> 8682#include <stdint.h> 8683int 8684main () 8685{ 8686uintmax_t i = (uintmax_t) -1; 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691rm -f conftest.$ac_objext 8692if { (ac_try="$ac_compile" 8693case "(($ac_try" in 8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8695 *) ac_try_echo=$ac_try;; 8696esac 8697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8698$as_echo "$ac_try_echo") >&5 8699 (eval "$ac_compile") 2>conftest.er1 8700 ac_status=$? 8701 grep -v '^ *+' conftest.er1 >conftest.err 8702 rm -f conftest.er1 8703 cat conftest.err >&5 8704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8705 (exit $ac_status); } && { 8706 test -z "$ac_c_werror_flag" || 8707 test ! -s conftest.err 8708 } && test -s conftest.$ac_objext; then 8709 jm_ac_cv_header_stdint_h=yes 8710else 8711 $as_echo "$as_me: failed program was:" >&5 8712sed 's/^/| /' conftest.$ac_ext >&5 8713 8714 jm_ac_cv_header_stdint_h=no 8715fi 8716 8717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8718fi 8719{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 8720$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 8721 if test $jm_ac_cv_header_stdint_h = yes; then 8722 8723cat >>confdefs.h <<_ACEOF 8724#define HAVE_STDINT_H_WITH_UINTMAX 1 8725_ACEOF 8726 8727 fi 8728 8729 8730 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 8731$as_echo_n "checking for unsigned long long... " >&6; } 8732if test "${ac_cv_type_unsigned_long_long+set}" = set; then 8733 $as_echo_n "(cached) " >&6 8734else 8735 cat >conftest.$ac_ext <<_ACEOF 8736/* confdefs.h. */ 8737_ACEOF 8738cat confdefs.h >>conftest.$ac_ext 8739cat >>conftest.$ac_ext <<_ACEOF 8740/* end confdefs.h. */ 8741unsigned long long ull = 1; int i = 63; 8742int 8743main () 8744{ 8745unsigned long long ullmax = (unsigned long long) -1; 8746 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751rm -f conftest.$ac_objext conftest$ac_exeext 8752if { (ac_try="$ac_link" 8753case "(($ac_try" in 8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8755 *) ac_try_echo=$ac_try;; 8756esac 8757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8758$as_echo "$ac_try_echo") >&5 8759 (eval "$ac_link") 2>conftest.er1 8760 ac_status=$? 8761 grep -v '^ *+' conftest.er1 >conftest.err 8762 rm -f conftest.er1 8763 cat conftest.err >&5 8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 (exit $ac_status); } && { 8766 test -z "$ac_c_werror_flag" || 8767 test ! -s conftest.err 8768 } && test -s conftest$ac_exeext && { 8769 test "$cross_compiling" = yes || 8770 $as_test_x conftest$ac_exeext 8771 }; then 8772 ac_cv_type_unsigned_long_long=yes 8773else 8774 $as_echo "$as_me: failed program was:" >&5 8775sed 's/^/| /' conftest.$ac_ext >&5 8776 8777 ac_cv_type_unsigned_long_long=no 8778fi 8779 8780rm -rf conftest.dSYM 8781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8782 conftest$ac_exeext conftest.$ac_ext 8783fi 8784{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 8785$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 8786 if test $ac_cv_type_unsigned_long_long = yes; then 8787 8788cat >>confdefs.h <<\_ACEOF 8789#define HAVE_UNSIGNED_LONG_LONG 1 8790_ACEOF 8791 8792 fi 8793 8794 8795 8796 8797 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 8798 8799 test $ac_cv_type_unsigned_long_long = yes \ 8800 && ac_type='unsigned long long' \ 8801 || ac_type='unsigned long' 8802 8803cat >>confdefs.h <<_ACEOF 8804#define uintmax_t $ac_type 8805_ACEOF 8806 8807 else 8808 8809cat >>confdefs.h <<\_ACEOF 8810#define HAVE_UINTMAX_T 1 8811_ACEOF 8812 8813 fi 8814 8815 8816 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 8817$as_echo_n "checking for inttypes.h... " >&6; } 8818if test "${gt_cv_header_inttypes_h+set}" = set; then 8819 $as_echo_n "(cached) " >&6 8820else 8821 8822 cat >conftest.$ac_ext <<_ACEOF 8823/* confdefs.h. */ 8824_ACEOF 8825cat confdefs.h >>conftest.$ac_ext 8826cat >>conftest.$ac_ext <<_ACEOF 8827/* end confdefs.h. */ 8828#include <sys/types.h> 8829#include <inttypes.h> 8830int 8831main () 8832{ 8833 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838rm -f conftest.$ac_objext 8839if { (ac_try="$ac_compile" 8840case "(($ac_try" in 8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8842 *) ac_try_echo=$ac_try;; 8843esac 8844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8845$as_echo "$ac_try_echo") >&5 8846 (eval "$ac_compile") 2>conftest.er1 8847 ac_status=$? 8848 grep -v '^ *+' conftest.er1 >conftest.err 8849 rm -f conftest.er1 8850 cat conftest.err >&5 8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8852 (exit $ac_status); } && { 8853 test -z "$ac_c_werror_flag" || 8854 test ! -s conftest.err 8855 } && test -s conftest.$ac_objext; then 8856 gt_cv_header_inttypes_h=yes 8857else 8858 $as_echo "$as_me: failed program was:" >&5 8859sed 's/^/| /' conftest.$ac_ext >&5 8860 8861 gt_cv_header_inttypes_h=no 8862fi 8863 8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8865 8866fi 8867{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 8868$as_echo "$gt_cv_header_inttypes_h" >&6; } 8869 if test $gt_cv_header_inttypes_h = yes; then 8870 8871cat >>confdefs.h <<_ACEOF 8872#define HAVE_INTTYPES_H 1 8873_ACEOF 8874 8875 fi 8876 8877 8878 8879 if test $gt_cv_header_inttypes_h = yes; then 8880 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 8881$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 8882if test "${gt_cv_inttypes_pri_broken+set}" = set; then 8883 $as_echo_n "(cached) " >&6 8884else 8885 8886 cat >conftest.$ac_ext <<_ACEOF 8887/* confdefs.h. */ 8888_ACEOF 8889cat confdefs.h >>conftest.$ac_ext 8890cat >>conftest.$ac_ext <<_ACEOF 8891/* end confdefs.h. */ 8892#include <inttypes.h> 8893#ifdef PRId32 8894char *p = PRId32; 8895#endif 8896 8897int 8898main () 8899{ 8900 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905rm -f conftest.$ac_objext 8906if { (ac_try="$ac_compile" 8907case "(($ac_try" in 8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8909 *) ac_try_echo=$ac_try;; 8910esac 8911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8912$as_echo "$ac_try_echo") >&5 8913 (eval "$ac_compile") 2>conftest.er1 8914 ac_status=$? 8915 grep -v '^ *+' conftest.er1 >conftest.err 8916 rm -f conftest.er1 8917 cat conftest.err >&5 8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); } && { 8920 test -z "$ac_c_werror_flag" || 8921 test ! -s conftest.err 8922 } && test -s conftest.$ac_objext; then 8923 gt_cv_inttypes_pri_broken=no 8924else 8925 $as_echo "$as_me: failed program was:" >&5 8926sed 's/^/| /' conftest.$ac_ext >&5 8927 8928 gt_cv_inttypes_pri_broken=yes 8929fi 8930 8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8932 8933fi 8934{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 8935$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 8936 fi 8937 if test "$gt_cv_inttypes_pri_broken" = yes; then 8938 8939cat >>confdefs.h <<_ACEOF 8940#define PRI_MACROS_BROKEN 1 8941_ACEOF 8942 8943 fi 8944 8945 8946 if test "X$prefix" = "XNONE"; then 8947 acl_final_prefix="$ac_default_prefix" 8948 else 8949 acl_final_prefix="$prefix" 8950 fi 8951 if test "X$exec_prefix" = "XNONE"; then 8952 acl_final_exec_prefix='${prefix}' 8953 else 8954 acl_final_exec_prefix="$exec_prefix" 8955 fi 8956 acl_save_prefix="$prefix" 8957 prefix="$acl_final_prefix" 8958 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8959 prefix="$acl_save_prefix" 8960 8961 8962# Check whether --with-gnu-ld was given. 8963if test "${with_gnu_ld+set}" = set; then 8964 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8965else 8966 with_gnu_ld=no 8967fi 8968 8969# Prepare PATH_SEPARATOR. 8970# The user is always right. 8971if test "${PATH_SEPARATOR+set}" != set; then 8972 echo "#! /bin/sh" >conf$$.sh 8973 echo "exit 0" >>conf$$.sh 8974 chmod +x conf$$.sh 8975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8976 PATH_SEPARATOR=';' 8977 else 8978 PATH_SEPARATOR=: 8979 fi 8980 rm -f conf$$.sh 8981fi 8982ac_prog=ld 8983if test "$GCC" = yes; then 8984 # Check if gcc -print-prog-name=ld gives a path. 8985 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 8986$as_echo_n "checking for ld used by GCC... " >&6; } 8987 case $host in 8988 *-*-mingw*) 8989 # gcc leaves a trailing carriage return which upsets mingw 8990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8991 *) 8992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8993 esac 8994 case $ac_prog in 8995 # Accept absolute paths. 8996 [\\/]* | [A-Za-z]:[\\/]*) 8997 re_direlt='/[^/][^/]*/\.\./' 8998 # Canonicalize the path of ld 8999 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 9000 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9001 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 9002 done 9003 test -z "$LD" && LD="$ac_prog" 9004 ;; 9005 "") 9006 # If it fails, then pretend we aren't using GCC. 9007 ac_prog=ld 9008 ;; 9009 *) 9010 # If it is relative, then search for the first ld in PATH. 9011 with_gnu_ld=unknown 9012 ;; 9013 esac 9014elif test "$with_gnu_ld" = yes; then 9015 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 9016$as_echo_n "checking for GNU ld... " >&6; } 9017else 9018 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9019$as_echo_n "checking for non-GNU ld... " >&6; } 9020fi 9021if test "${acl_cv_path_LD+set}" = set; then 9022 $as_echo_n "(cached) " >&6 9023else 9024 if test -z "$LD"; then 9025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 9026 for ac_dir in $PATH; do 9027 test -z "$ac_dir" && ac_dir=. 9028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9029 acl_cv_path_LD="$ac_dir/$ac_prog" 9030 # Check to see if the program is GNU ld. I'd rather use --version, 9031 # but apparently some GNU ld's only accept -v. 9032 # Break only if it was the GNU/non-GNU ld that we prefer. 9033 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 9034 test "$with_gnu_ld" != no && break 9035 else 9036 test "$with_gnu_ld" != yes && break 9037 fi 9038 fi 9039 done 9040 IFS="$ac_save_ifs" 9041else 9042 acl_cv_path_LD="$LD" # Let the user override the test with a path. 9043fi 9044fi 9045 9046LD="$acl_cv_path_LD" 9047if test -n "$LD"; then 9048 { $as_echo "$as_me:$LINENO: result: $LD" >&5 9049$as_echo "$LD" >&6; } 9050else 9051 { $as_echo "$as_me:$LINENO: result: no" >&5 9052$as_echo "no" >&6; } 9053fi 9054test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9055$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9056 { (exit 1); exit 1; }; } 9057{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9058$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9059if test "${acl_cv_prog_gnu_ld+set}" = set; then 9060 $as_echo_n "(cached) " >&6 9061else 9062 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9063if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 9064 acl_cv_prog_gnu_ld=yes 9065else 9066 acl_cv_prog_gnu_ld=no 9067fi 9068fi 9069{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 9070$as_echo "$acl_cv_prog_gnu_ld" >&6; } 9071with_gnu_ld=$acl_cv_prog_gnu_ld 9072 9073 9074 9075 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 9076$as_echo_n "checking for shared library run path origin... " >&6; } 9077if test "${acl_cv_rpath+set}" = set; then 9078 $as_echo_n "(cached) " >&6 9079else 9080 9081 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 9082 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 9083 . ./conftest.sh 9084 rm -f ./conftest.sh 9085 acl_cv_rpath=done 9086 9087fi 9088{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 9089$as_echo "$acl_cv_rpath" >&6; } 9090 wl="$acl_cv_wl" 9091 libext="$acl_cv_libext" 9092 shlibext="$acl_cv_shlibext" 9093 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 9094 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 9095 hardcode_direct="$acl_cv_hardcode_direct" 9096 hardcode_minus_L="$acl_cv_hardcode_minus_L" 9097 # Check whether --enable-rpath was given. 9098if test "${enable_rpath+set}" = set; then 9099 enableval=$enable_rpath; : 9100else 9101 enable_rpath=yes 9102fi 9103 9104 9105 9106 9107 9108 9109 9110 9111 use_additional=yes 9112 9113 acl_save_prefix="$prefix" 9114 prefix="$acl_final_prefix" 9115 acl_save_exec_prefix="$exec_prefix" 9116 exec_prefix="$acl_final_exec_prefix" 9117 9118 eval additional_includedir=\"$includedir\" 9119 eval additional_libdir=\"$libdir\" 9120 9121 exec_prefix="$acl_save_exec_prefix" 9122 prefix="$acl_save_prefix" 9123 9124 9125# Check whether --with-libiconv-prefix was given. 9126if test "${with_libiconv_prefix+set}" = set; then 9127 withval=$with_libiconv_prefix; 9128 if test "X$withval" = "Xno"; then 9129 use_additional=no 9130 else 9131 if test "X$withval" = "X"; then 9132 9133 acl_save_prefix="$prefix" 9134 prefix="$acl_final_prefix" 9135 acl_save_exec_prefix="$exec_prefix" 9136 exec_prefix="$acl_final_exec_prefix" 9137 9138 eval additional_includedir=\"$includedir\" 9139 eval additional_libdir=\"$libdir\" 9140 9141 exec_prefix="$acl_save_exec_prefix" 9142 prefix="$acl_save_prefix" 9143 9144 else 9145 additional_includedir="$withval/include" 9146 additional_libdir="$withval/lib" 9147 fi 9148 fi 9149 9150fi 9151 9152 LIBICONV= 9153 LTLIBICONV= 9154 INCICONV= 9155 rpathdirs= 9156 ltrpathdirs= 9157 names_already_handled= 9158 names_next_round='iconv ' 9159 while test -n "$names_next_round"; do 9160 names_this_round="$names_next_round" 9161 names_next_round= 9162 for name in $names_this_round; do 9163 already_handled= 9164 for n in $names_already_handled; do 9165 if test "$n" = "$name"; then 9166 already_handled=yes 9167 break 9168 fi 9169 done 9170 if test -z "$already_handled"; then 9171 names_already_handled="$names_already_handled $name" 9172 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9173 eval value=\"\$HAVE_LIB$uppername\" 9174 if test -n "$value"; then 9175 if test "$value" = yes; then 9176 eval value=\"\$LIB$uppername\" 9177 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 9178 eval value=\"\$LTLIB$uppername\" 9179 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 9180 else 9181 : 9182 fi 9183 else 9184 found_dir= 9185 found_la= 9186 found_so= 9187 found_a= 9188 if test $use_additional = yes; then 9189 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 9190 found_dir="$additional_libdir" 9191 found_so="$additional_libdir/lib$name.$shlibext" 9192 if test -f "$additional_libdir/lib$name.la"; then 9193 found_la="$additional_libdir/lib$name.la" 9194 fi 9195 else 9196 if test -f "$additional_libdir/lib$name.$libext"; then 9197 found_dir="$additional_libdir" 9198 found_a="$additional_libdir/lib$name.$libext" 9199 if test -f "$additional_libdir/lib$name.la"; then 9200 found_la="$additional_libdir/lib$name.la" 9201 fi 9202 fi 9203 fi 9204 fi 9205 if test "X$found_dir" = "X"; then 9206 for x in $LDFLAGS $LTLIBICONV; do 9207 9208 acl_save_prefix="$prefix" 9209 prefix="$acl_final_prefix" 9210 acl_save_exec_prefix="$exec_prefix" 9211 exec_prefix="$acl_final_exec_prefix" 9212 eval x=\"$x\" 9213 exec_prefix="$acl_save_exec_prefix" 9214 prefix="$acl_save_prefix" 9215 9216 case "$x" in 9217 -L*) 9218 dir=`echo "X$x" | sed -e 's/^X-L//'` 9219 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 9220 found_dir="$dir" 9221 found_so="$dir/lib$name.$shlibext" 9222 if test -f "$dir/lib$name.la"; then 9223 found_la="$dir/lib$name.la" 9224 fi 9225 else 9226 if test -f "$dir/lib$name.$libext"; then 9227 found_dir="$dir" 9228 found_a="$dir/lib$name.$libext" 9229 if test -f "$dir/lib$name.la"; then 9230 found_la="$dir/lib$name.la" 9231 fi 9232 fi 9233 fi 9234 ;; 9235 esac 9236 if test "X$found_dir" != "X"; then 9237 break 9238 fi 9239 done 9240 fi 9241 if test "X$found_dir" != "X"; then 9242 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 9243 if test "X$found_so" != "X"; then 9244 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9246 else 9247 haveit= 9248 for x in $ltrpathdirs; do 9249 if test "X$x" = "X$found_dir"; then 9250 haveit=yes 9251 break 9252 fi 9253 done 9254 if test -z "$haveit"; then 9255 ltrpathdirs="$ltrpathdirs $found_dir" 9256 fi 9257 if test "$hardcode_direct" = yes; then 9258 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9259 else 9260 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 9261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9262 haveit= 9263 for x in $rpathdirs; do 9264 if test "X$x" = "X$found_dir"; then 9265 haveit=yes 9266 break 9267 fi 9268 done 9269 if test -z "$haveit"; then 9270 rpathdirs="$rpathdirs $found_dir" 9271 fi 9272 else 9273 haveit= 9274 for x in $LDFLAGS $LIBICONV; do 9275 9276 acl_save_prefix="$prefix" 9277 prefix="$acl_final_prefix" 9278 acl_save_exec_prefix="$exec_prefix" 9279 exec_prefix="$acl_final_exec_prefix" 9280 eval x=\"$x\" 9281 exec_prefix="$acl_save_exec_prefix" 9282 prefix="$acl_save_prefix" 9283 9284 if test "X$x" = "X-L$found_dir"; then 9285 haveit=yes 9286 break 9287 fi 9288 done 9289 if test -z "$haveit"; then 9290 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 9291 fi 9292 if test "$hardcode_minus_L" != no; then 9293 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9294 else 9295 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9296 fi 9297 fi 9298 fi 9299 fi 9300 else 9301 if test "X$found_a" != "X"; then 9302 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 9303 else 9304 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 9305 fi 9306 fi 9307 additional_includedir= 9308 case "$found_dir" in 9309 */lib | */lib/) 9310 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9311 additional_includedir="$basedir/include" 9312 ;; 9313 esac 9314 if test "X$additional_includedir" != "X"; then 9315 if test "X$additional_includedir" != "X/usr/include"; then 9316 haveit= 9317 if test "X$additional_includedir" = "X/usr/local/include"; then 9318 if test -n "$GCC"; then 9319 case $host_os in 9320 linux*) haveit=yes;; 9321 esac 9322 fi 9323 fi 9324 if test -z "$haveit"; then 9325 for x in $CPPFLAGS $INCICONV; do 9326 9327 acl_save_prefix="$prefix" 9328 prefix="$acl_final_prefix" 9329 acl_save_exec_prefix="$exec_prefix" 9330 exec_prefix="$acl_final_exec_prefix" 9331 eval x=\"$x\" 9332 exec_prefix="$acl_save_exec_prefix" 9333 prefix="$acl_save_prefix" 9334 9335 if test "X$x" = "X-I$additional_includedir"; then 9336 haveit=yes 9337 break 9338 fi 9339 done 9340 if test -z "$haveit"; then 9341 if test -d "$additional_includedir"; then 9342 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 9343 fi 9344 fi 9345 fi 9346 fi 9347 fi 9348 if test -n "$found_la"; then 9349 save_libdir="$libdir" 9350 case "$found_la" in 9351 */* | *\\*) . "$found_la" ;; 9352 *) . "./$found_la" ;; 9353 esac 9354 libdir="$save_libdir" 9355 for dep in $dependency_libs; do 9356 case "$dep" in 9357 -L*) 9358 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9359 if test "X$additional_libdir" != "X/usr/lib"; then 9360 haveit= 9361 if test "X$additional_libdir" = "X/usr/local/lib"; then 9362 if test -n "$GCC"; then 9363 case $host_os in 9364 linux*) haveit=yes;; 9365 esac 9366 fi 9367 fi 9368 if test -z "$haveit"; then 9369 haveit= 9370 for x in $LDFLAGS $LIBICONV; do 9371 9372 acl_save_prefix="$prefix" 9373 prefix="$acl_final_prefix" 9374 acl_save_exec_prefix="$exec_prefix" 9375 exec_prefix="$acl_final_exec_prefix" 9376 eval x=\"$x\" 9377 exec_prefix="$acl_save_exec_prefix" 9378 prefix="$acl_save_prefix" 9379 9380 if test "X$x" = "X-L$additional_libdir"; then 9381 haveit=yes 9382 break 9383 fi 9384 done 9385 if test -z "$haveit"; then 9386 if test -d "$additional_libdir"; then 9387 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 9388 fi 9389 fi 9390 haveit= 9391 for x in $LDFLAGS $LTLIBICONV; do 9392 9393 acl_save_prefix="$prefix" 9394 prefix="$acl_final_prefix" 9395 acl_save_exec_prefix="$exec_prefix" 9396 exec_prefix="$acl_final_exec_prefix" 9397 eval x=\"$x\" 9398 exec_prefix="$acl_save_exec_prefix" 9399 prefix="$acl_save_prefix" 9400 9401 if test "X$x" = "X-L$additional_libdir"; then 9402 haveit=yes 9403 break 9404 fi 9405 done 9406 if test -z "$haveit"; then 9407 if test -d "$additional_libdir"; then 9408 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 9409 fi 9410 fi 9411 fi 9412 fi 9413 ;; 9414 -R*) 9415 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9416 if test "$enable_rpath" != no; then 9417 haveit= 9418 for x in $rpathdirs; do 9419 if test "X$x" = "X$dir"; then 9420 haveit=yes 9421 break 9422 fi 9423 done 9424 if test -z "$haveit"; then 9425 rpathdirs="$rpathdirs $dir" 9426 fi 9427 haveit= 9428 for x in $ltrpathdirs; do 9429 if test "X$x" = "X$dir"; then 9430 haveit=yes 9431 break 9432 fi 9433 done 9434 if test -z "$haveit"; then 9435 ltrpathdirs="$ltrpathdirs $dir" 9436 fi 9437 fi 9438 ;; 9439 -l*) 9440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9441 ;; 9442 *.la) 9443 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9444 ;; 9445 *) 9446 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 9447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 9448 ;; 9449 esac 9450 done 9451 fi 9452 else 9453 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 9455 fi 9456 fi 9457 fi 9458 done 9459 done 9460 if test "X$rpathdirs" != "X"; then 9461 if test -n "$hardcode_libdir_separator"; then 9462 alldirs= 9463 for found_dir in $rpathdirs; do 9464 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9465 done 9466 acl_save_libdir="$libdir" 9467 libdir="$alldirs" 9468 eval flag=\"$hardcode_libdir_flag_spec\" 9469 libdir="$acl_save_libdir" 9470 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9471 else 9472 for found_dir in $rpathdirs; do 9473 acl_save_libdir="$libdir" 9474 libdir="$found_dir" 9475 eval flag=\"$hardcode_libdir_flag_spec\" 9476 libdir="$acl_save_libdir" 9477 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9478 done 9479 fi 9480 fi 9481 if test "X$ltrpathdirs" != "X"; then 9482 for found_dir in $ltrpathdirs; do 9483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 9484 done 9485 fi 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 9501stdlib.h string.h unistd.h sys/param.h 9502do 9503as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9506$as_echo_n "checking for $ac_header... " >&6; } 9507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9508 $as_echo_n "(cached) " >&6 9509fi 9510ac_res=`eval 'as_val=${'$as_ac_Header'} 9511 $as_echo "$as_val"'` 9512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9513$as_echo "$ac_res" >&6; } 9514else 9515 # Is the header compilable? 9516{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 9517$as_echo_n "checking $ac_header usability... " >&6; } 9518cat >conftest.$ac_ext <<_ACEOF 9519/* confdefs.h. */ 9520_ACEOF 9521cat confdefs.h >>conftest.$ac_ext 9522cat >>conftest.$ac_ext <<_ACEOF 9523/* end confdefs.h. */ 9524$ac_includes_default 9525#include <$ac_header> 9526_ACEOF 9527rm -f conftest.$ac_objext 9528if { (ac_try="$ac_compile" 9529case "(($ac_try" in 9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9531 *) ac_try_echo=$ac_try;; 9532esac 9533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9534$as_echo "$ac_try_echo") >&5 9535 (eval "$ac_compile") 2>conftest.er1 9536 ac_status=$? 9537 grep -v '^ *+' conftest.er1 >conftest.err 9538 rm -f conftest.er1 9539 cat conftest.err >&5 9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9541 (exit $ac_status); } && { 9542 test -z "$ac_c_werror_flag" || 9543 test ! -s conftest.err 9544 } && test -s conftest.$ac_objext; then 9545 ac_header_compiler=yes 9546else 9547 $as_echo "$as_me: failed program was:" >&5 9548sed 's/^/| /' conftest.$ac_ext >&5 9549 9550 ac_header_compiler=no 9551fi 9552 9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9554{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9555$as_echo "$ac_header_compiler" >&6; } 9556 9557# Is the header present? 9558{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 9559$as_echo_n "checking $ac_header presence... " >&6; } 9560cat >conftest.$ac_ext <<_ACEOF 9561/* confdefs.h. */ 9562_ACEOF 9563cat confdefs.h >>conftest.$ac_ext 9564cat >>conftest.$ac_ext <<_ACEOF 9565/* end confdefs.h. */ 9566#include <$ac_header> 9567_ACEOF 9568if { (ac_try="$ac_cpp conftest.$ac_ext" 9569case "(($ac_try" in 9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9571 *) ac_try_echo=$ac_try;; 9572esac 9573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9574$as_echo "$ac_try_echo") >&5 9575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9576 ac_status=$? 9577 grep -v '^ *+' conftest.er1 >conftest.err 9578 rm -f conftest.er1 9579 cat conftest.err >&5 9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 (exit $ac_status); } >/dev/null && { 9582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9583 test ! -s conftest.err 9584 }; then 9585 ac_header_preproc=yes 9586else 9587 $as_echo "$as_me: failed program was:" >&5 9588sed 's/^/| /' conftest.$ac_ext >&5 9589 9590 ac_header_preproc=no 9591fi 9592 9593rm -f conftest.err conftest.$ac_ext 9594{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9595$as_echo "$ac_header_preproc" >&6; } 9596 9597# So? What about this header? 9598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9599 yes:no: ) 9600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9601$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9603$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9604 ac_header_preproc=yes 9605 ;; 9606 no:yes:* ) 9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9608$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9610$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9612$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9614$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9616$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9618$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9619 ( cat <<\_ASBOX 9620## ------------------------------- ## 9621## Report this to bug-bash@gnu.org ## 9622## ------------------------------- ## 9623_ASBOX 9624 ) | sed "s/^/$as_me: WARNING: /" >&2 9625 ;; 9626esac 9627{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 9628$as_echo_n "checking for $ac_header... " >&6; } 9629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9630 $as_echo_n "(cached) " >&6 9631else 9632 eval "$as_ac_Header=\$ac_header_preproc" 9633fi 9634ac_res=`eval 'as_val=${'$as_ac_Header'} 9635 $as_echo "$as_val"'` 9636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9637$as_echo "$ac_res" >&6; } 9638 9639fi 9640as_val=`eval 'as_val=${'$as_ac_Header'} 9641 $as_echo "$as_val"'` 9642 if test "x$as_val" = x""yes; then 9643 cat >>confdefs.h <<_ACEOF 9644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9645_ACEOF 9646 9647fi 9648 9649done 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 9675geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ 9676strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ 9677__fsetlocking 9678do 9679as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9680{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9681$as_echo_n "checking for $ac_func... " >&6; } 9682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9683 $as_echo_n "(cached) " >&6 9684else 9685 cat >conftest.$ac_ext <<_ACEOF 9686/* confdefs.h. */ 9687_ACEOF 9688cat confdefs.h >>conftest.$ac_ext 9689cat >>conftest.$ac_ext <<_ACEOF 9690/* end confdefs.h. */ 9691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9693#define $ac_func innocuous_$ac_func 9694 9695/* System header to define __stub macros and hopefully few prototypes, 9696 which can conflict with char $ac_func (); below. 9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9698 <limits.h> exists even on freestanding compilers. */ 9699 9700#ifdef __STDC__ 9701# include <limits.h> 9702#else 9703# include <assert.h> 9704#endif 9705 9706#undef $ac_func 9707 9708/* Override any GCC internal prototype to avoid an error. 9709 Use char because int might match the return type of a GCC 9710 builtin and then its argument prototype would still apply. */ 9711#ifdef __cplusplus 9712extern "C" 9713#endif 9714char $ac_func (); 9715/* The GNU C library defines this for functions which it implements 9716 to always fail with ENOSYS. Some functions are actually named 9717 something starting with __ and the normal name is an alias. */ 9718#if defined __stub_$ac_func || defined __stub___$ac_func 9719choke me 9720#endif 9721 9722int 9723main () 9724{ 9725return $ac_func (); 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730rm -f conftest.$ac_objext conftest$ac_exeext 9731if { (ac_try="$ac_link" 9732case "(($ac_try" in 9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9734 *) ac_try_echo=$ac_try;; 9735esac 9736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9737$as_echo "$ac_try_echo") >&5 9738 (eval "$ac_link") 2>conftest.er1 9739 ac_status=$? 9740 grep -v '^ *+' conftest.er1 >conftest.err 9741 rm -f conftest.er1 9742 cat conftest.err >&5 9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } && { 9745 test -z "$ac_c_werror_flag" || 9746 test ! -s conftest.err 9747 } && test -s conftest$ac_exeext && { 9748 test "$cross_compiling" = yes || 9749 $as_test_x conftest$ac_exeext 9750 }; then 9751 eval "$as_ac_var=yes" 9752else 9753 $as_echo "$as_me: failed program was:" >&5 9754sed 's/^/| /' conftest.$ac_ext >&5 9755 9756 eval "$as_ac_var=no" 9757fi 9758 9759rm -rf conftest.dSYM 9760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9761 conftest$ac_exeext conftest.$ac_ext 9762fi 9763ac_res=`eval 'as_val=${'$as_ac_var'} 9764 $as_echo "$as_val"'` 9765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9766$as_echo "$ac_res" >&6; } 9767as_val=`eval 'as_val=${'$as_ac_var'} 9768 $as_echo "$as_val"'` 9769 if test "x$as_val" = x""yes; then 9770 cat >>confdefs.h <<_ACEOF 9771#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9772_ACEOF 9773 9774fi 9775done 9776 9777 9778 9779 9780 9781 9782 9783 am_save_CPPFLAGS="$CPPFLAGS" 9784 9785 for element in $INCICONV; do 9786 haveit= 9787 for x in $CPPFLAGS; do 9788 9789 acl_save_prefix="$prefix" 9790 prefix="$acl_final_prefix" 9791 acl_save_exec_prefix="$exec_prefix" 9792 exec_prefix="$acl_final_exec_prefix" 9793 eval x=\"$x\" 9794 exec_prefix="$acl_save_exec_prefix" 9795 prefix="$acl_save_prefix" 9796 9797 if test "X$x" = "X$element"; then 9798 haveit=yes 9799 break 9800 fi 9801 done 9802 if test -z "$haveit"; then 9803 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9804 fi 9805 done 9806 9807 9808 { $as_echo "$as_me:$LINENO: checking for iconv" >&5 9809$as_echo_n "checking for iconv... " >&6; } 9810if test "${am_cv_func_iconv+set}" = set; then 9811 $as_echo_n "(cached) " >&6 9812else 9813 9814 am_cv_func_iconv="no, consider installing GNU libiconv" 9815 am_cv_lib_iconv=no 9816 cat >conftest.$ac_ext <<_ACEOF 9817/* confdefs.h. */ 9818_ACEOF 9819cat confdefs.h >>conftest.$ac_ext 9820cat >>conftest.$ac_ext <<_ACEOF 9821/* end confdefs.h. */ 9822#include <stdlib.h> 9823#include <iconv.h> 9824int 9825main () 9826{ 9827iconv_t cd = iconv_open("",""); 9828 iconv(cd,NULL,NULL,NULL,NULL); 9829 iconv_close(cd); 9830 ; 9831 return 0; 9832} 9833_ACEOF 9834rm -f conftest.$ac_objext conftest$ac_exeext 9835if { (ac_try="$ac_link" 9836case "(($ac_try" in 9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9838 *) ac_try_echo=$ac_try;; 9839esac 9840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9841$as_echo "$ac_try_echo") >&5 9842 (eval "$ac_link") 2>conftest.er1 9843 ac_status=$? 9844 grep -v '^ *+' conftest.er1 >conftest.err 9845 rm -f conftest.er1 9846 cat conftest.err >&5 9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); } && { 9849 test -z "$ac_c_werror_flag" || 9850 test ! -s conftest.err 9851 } && test -s conftest$ac_exeext && { 9852 test "$cross_compiling" = yes || 9853 $as_test_x conftest$ac_exeext 9854 }; then 9855 am_cv_func_iconv=yes 9856else 9857 $as_echo "$as_me: failed program was:" >&5 9858sed 's/^/| /' conftest.$ac_ext >&5 9859 9860 9861fi 9862 9863rm -rf conftest.dSYM 9864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9865 conftest$ac_exeext conftest.$ac_ext 9866 if test "$am_cv_func_iconv" != yes; then 9867 am_save_LIBS="$LIBS" 9868 LIBS="$LIBS $LIBICONV" 9869 cat >conftest.$ac_ext <<_ACEOF 9870/* confdefs.h. */ 9871_ACEOF 9872cat confdefs.h >>conftest.$ac_ext 9873cat >>conftest.$ac_ext <<_ACEOF 9874/* end confdefs.h. */ 9875#include <stdlib.h> 9876#include <iconv.h> 9877int 9878main () 9879{ 9880iconv_t cd = iconv_open("",""); 9881 iconv(cd,NULL,NULL,NULL,NULL); 9882 iconv_close(cd); 9883 ; 9884 return 0; 9885} 9886_ACEOF 9887rm -f conftest.$ac_objext conftest$ac_exeext 9888if { (ac_try="$ac_link" 9889case "(($ac_try" in 9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9891 *) ac_try_echo=$ac_try;; 9892esac 9893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9894$as_echo "$ac_try_echo") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && { 9902 test -z "$ac_c_werror_flag" || 9903 test ! -s conftest.err 9904 } && test -s conftest$ac_exeext && { 9905 test "$cross_compiling" = yes || 9906 $as_test_x conftest$ac_exeext 9907 }; then 9908 am_cv_lib_iconv=yes 9909 am_cv_func_iconv=yes 9910else 9911 $as_echo "$as_me: failed program was:" >&5 9912sed 's/^/| /' conftest.$ac_ext >&5 9913 9914 9915fi 9916 9917rm -rf conftest.dSYM 9918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9919 conftest$ac_exeext conftest.$ac_ext 9920 LIBS="$am_save_LIBS" 9921 fi 9922 9923fi 9924{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 9925$as_echo "$am_cv_func_iconv" >&6; } 9926 if test "$am_cv_func_iconv" = yes; then 9927 9928cat >>confdefs.h <<\_ACEOF 9929#define HAVE_ICONV 1 9930_ACEOF 9931 9932 fi 9933 if test "$am_cv_lib_iconv" = yes; then 9934 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 9935$as_echo_n "checking how to link with libiconv... " >&6; } 9936 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 9937$as_echo "$LIBICONV" >&6; } 9938 else 9939 CPPFLAGS="$am_save_CPPFLAGS" 9940 LIBICONV= 9941 LTLIBICONV= 9942 fi 9943 9944 9945 9946 if test "$am_cv_func_iconv" = yes; then 9947 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 9948$as_echo_n "checking for iconv declaration... " >&6; } 9949 if test "${am_cv_proto_iconv+set}" = set; then 9950 $as_echo_n "(cached) " >&6 9951else 9952 9953 cat >conftest.$ac_ext <<_ACEOF 9954/* confdefs.h. */ 9955_ACEOF 9956cat confdefs.h >>conftest.$ac_ext 9957cat >>conftest.$ac_ext <<_ACEOF 9958/* end confdefs.h. */ 9959 9960#include <stdlib.h> 9961#include <iconv.h> 9962extern 9963#ifdef __cplusplus 9964"C" 9965#endif 9966#if defined(__STDC__) || defined(__cplusplus) 9967size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9968#else 9969size_t iconv(); 9970#endif 9971 9972int 9973main () 9974{ 9975 9976 ; 9977 return 0; 9978} 9979_ACEOF 9980rm -f conftest.$ac_objext 9981if { (ac_try="$ac_compile" 9982case "(($ac_try" in 9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9984 *) ac_try_echo=$ac_try;; 9985esac 9986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9987$as_echo "$ac_try_echo") >&5 9988 (eval "$ac_compile") 2>conftest.er1 9989 ac_status=$? 9990 grep -v '^ *+' conftest.er1 >conftest.err 9991 rm -f conftest.er1 9992 cat conftest.err >&5 9993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); } && { 9995 test -z "$ac_c_werror_flag" || 9996 test ! -s conftest.err 9997 } && test -s conftest.$ac_objext; then 9998 am_cv_proto_iconv_arg1="" 9999else 10000 $as_echo "$as_me: failed program was:" >&5 10001sed 's/^/| /' conftest.$ac_ext >&5 10002 10003 am_cv_proto_iconv_arg1="const" 10004fi 10005 10006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10007 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 10008fi 10009 10010 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 10011 { $as_echo "$as_me:$LINENO: result: ${ac_t:- 10012 }$am_cv_proto_iconv" >&5 10013$as_echo "${ac_t:- 10014 }$am_cv_proto_iconv" >&6; } 10015 10016cat >>confdefs.h <<_ACEOF 10017#define ICONV_CONST $am_cv_proto_iconv_arg1 10018_ACEOF 10019 10020 fi 10021 10022 10023 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 10024$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 10025if test "${am_cv_langinfo_codeset+set}" = set; then 10026 $as_echo_n "(cached) " >&6 10027else 10028 cat >conftest.$ac_ext <<_ACEOF 10029/* confdefs.h. */ 10030_ACEOF 10031cat confdefs.h >>conftest.$ac_ext 10032cat >>conftest.$ac_ext <<_ACEOF 10033/* end confdefs.h. */ 10034#include <langinfo.h> 10035int 10036main () 10037{ 10038char* cs = nl_langinfo(CODESET); 10039 ; 10040 return 0; 10041} 10042_ACEOF 10043rm -f conftest.$ac_objext conftest$ac_exeext 10044if { (ac_try="$ac_link" 10045case "(($ac_try" in 10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10047 *) ac_try_echo=$ac_try;; 10048esac 10049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10050$as_echo "$ac_try_echo") >&5 10051 (eval "$ac_link") 2>conftest.er1 10052 ac_status=$? 10053 grep -v '^ *+' conftest.er1 >conftest.err 10054 rm -f conftest.er1 10055 cat conftest.err >&5 10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10057 (exit $ac_status); } && { 10058 test -z "$ac_c_werror_flag" || 10059 test ! -s conftest.err 10060 } && test -s conftest$ac_exeext && { 10061 test "$cross_compiling" = yes || 10062 $as_test_x conftest$ac_exeext 10063 }; then 10064 am_cv_langinfo_codeset=yes 10065else 10066 $as_echo "$as_me: failed program was:" >&5 10067sed 's/^/| /' conftest.$ac_ext >&5 10068 10069 am_cv_langinfo_codeset=no 10070fi 10071 10072rm -rf conftest.dSYM 10073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10074 conftest$ac_exeext conftest.$ac_ext 10075 10076fi 10077{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 10078$as_echo "$am_cv_langinfo_codeset" >&6; } 10079 if test $am_cv_langinfo_codeset = yes; then 10080 10081cat >>confdefs.h <<\_ACEOF 10082#define HAVE_LANGINFO_CODESET 1 10083_ACEOF 10084 10085 fi 10086 10087 if test $ac_cv_header_locale_h = yes; then 10088 10089 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 10090$as_echo_n "checking for LC_MESSAGES... " >&6; } 10091if test "${am_cv_val_LC_MESSAGES+set}" = set; then 10092 $as_echo_n "(cached) " >&6 10093else 10094 cat >conftest.$ac_ext <<_ACEOF 10095/* confdefs.h. */ 10096_ACEOF 10097cat confdefs.h >>conftest.$ac_ext 10098cat >>conftest.$ac_ext <<_ACEOF 10099/* end confdefs.h. */ 10100#include <locale.h> 10101int 10102main () 10103{ 10104return LC_MESSAGES 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109rm -f conftest.$ac_objext conftest$ac_exeext 10110if { (ac_try="$ac_link" 10111case "(($ac_try" in 10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10113 *) ac_try_echo=$ac_try;; 10114esac 10115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10116$as_echo "$ac_try_echo") >&5 10117 (eval "$ac_link") 2>conftest.er1 10118 ac_status=$? 10119 grep -v '^ *+' conftest.er1 >conftest.err 10120 rm -f conftest.er1 10121 cat conftest.err >&5 10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10123 (exit $ac_status); } && { 10124 test -z "$ac_c_werror_flag" || 10125 test ! -s conftest.err 10126 } && test -s conftest$ac_exeext && { 10127 test "$cross_compiling" = yes || 10128 $as_test_x conftest$ac_exeext 10129 }; then 10130 am_cv_val_LC_MESSAGES=yes 10131else 10132 $as_echo "$as_me: failed program was:" >&5 10133sed 's/^/| /' conftest.$ac_ext >&5 10134 10135 am_cv_val_LC_MESSAGES=no 10136fi 10137 10138rm -rf conftest.dSYM 10139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10140 conftest$ac_exeext conftest.$ac_ext 10141fi 10142{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 10143$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 10144 if test $am_cv_val_LC_MESSAGES = yes; then 10145 10146cat >>confdefs.h <<\_ACEOF 10147#define HAVE_LC_MESSAGES 1 10148_ACEOF 10149 10150 fi 10151 10152 fi 10153 10154 for ac_prog in bison 10155do 10156 # Extract the first word of "$ac_prog", so it can be a program name with args. 10157set dummy $ac_prog; ac_word=$2 10158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10159$as_echo_n "checking for $ac_word... " >&6; } 10160if test "${ac_cv_prog_INTLBISON+set}" = set; then 10161 $as_echo_n "(cached) " >&6 10162else 10163 if test -n "$INTLBISON"; then 10164 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 10165else 10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10167for as_dir in $PATH 10168do 10169 IFS=$as_save_IFS 10170 test -z "$as_dir" && as_dir=. 10171 for ac_exec_ext in '' $ac_executable_extensions; do 10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10173 ac_cv_prog_INTLBISON="$ac_prog" 10174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10175 break 2 10176 fi 10177done 10178done 10179IFS=$as_save_IFS 10180 10181fi 10182fi 10183INTLBISON=$ac_cv_prog_INTLBISON 10184if test -n "$INTLBISON"; then 10185 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 10186$as_echo "$INTLBISON" >&6; } 10187else 10188 { $as_echo "$as_me:$LINENO: result: no" >&5 10189$as_echo "no" >&6; } 10190fi 10191 10192 10193 test -n "$INTLBISON" && break 10194done 10195 10196 if test -z "$INTLBISON"; then 10197 ac_verc_fail=yes 10198 else 10199 { $as_echo "$as_me:$LINENO: checking version of bison" >&5 10200$as_echo_n "checking version of bison... " >&6; } 10201 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 10202 case $ac_prog_version in 10203 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 10204 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 10205 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 10206 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 10207 esac 10208 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 10209$as_echo "$ac_prog_version" >&6; } 10210 fi 10211 if test $ac_verc_fail = yes; then 10212 INTLBISON=: 10213 fi 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 10231$as_echo_n "checking whether NLS is requested... " >&6; } 10232 # Check whether --enable-nls was given. 10233if test "${enable_nls+set}" = set; then 10234 enableval=$enable_nls; USE_NLS=$enableval 10235else 10236 USE_NLS=yes 10237fi 10238 10239 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 10240$as_echo "$USE_NLS" >&6; } 10241 10242 10243 10244 10245 BUILD_INCLUDED_LIBINTL=no 10246 USE_INCLUDED_LIBINTL=no 10247 10248 LIBINTL= 10249 LTLIBINTL= 10250 POSUB= 10251 10252 if test "$USE_NLS" = "yes"; then 10253 gt_use_preinstalled_gnugettext=no 10254 10255 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 10256$as_echo_n "checking whether included gettext is requested... " >&6; } 10257 10258# Check whether --with-included-gettext was given. 10259if test "${with_included_gettext+set}" = set; then 10260 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 10261else 10262 nls_cv_force_use_gnu_gettext=no 10263fi 10264 10265 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 10266$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 10267 10268 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 10269 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 10270 10271 10272 10273 10274 10275 10276 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 10277$as_echo_n "checking for GNU gettext in libc... " >&6; } 10278if test "${gt_cv_func_gnugettext2_libc+set}" = set; then 10279 $as_echo_n "(cached) " >&6 10280else 10281 cat >conftest.$ac_ext <<_ACEOF 10282/* confdefs.h. */ 10283_ACEOF 10284cat confdefs.h >>conftest.$ac_ext 10285cat >>conftest.$ac_ext <<_ACEOF 10286/* end confdefs.h. */ 10287#include <libintl.h> 10288extern int _nl_msg_cat_cntr; 10289extern int *_nl_domain_bindings; 10290int 10291main () 10292{ 10293bindtextdomain ("", ""); 10294return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299rm -f conftest.$ac_objext conftest$ac_exeext 10300if { (ac_try="$ac_link" 10301case "(($ac_try" in 10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10303 *) ac_try_echo=$ac_try;; 10304esac 10305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10306$as_echo "$ac_try_echo") >&5 10307 (eval "$ac_link") 2>conftest.er1 10308 ac_status=$? 10309 grep -v '^ *+' conftest.er1 >conftest.err 10310 rm -f conftest.er1 10311 cat conftest.err >&5 10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 (exit $ac_status); } && { 10314 test -z "$ac_c_werror_flag" || 10315 test ! -s conftest.err 10316 } && test -s conftest$ac_exeext && { 10317 test "$cross_compiling" = yes || 10318 $as_test_x conftest$ac_exeext 10319 }; then 10320 gt_cv_func_gnugettext2_libc=yes 10321else 10322 $as_echo "$as_me: failed program was:" >&5 10323sed 's/^/| /' conftest.$ac_ext >&5 10324 10325 gt_cv_func_gnugettext2_libc=no 10326fi 10327 10328rm -rf conftest.dSYM 10329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10330 conftest$ac_exeext conftest.$ac_ext 10331fi 10332{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 10333$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } 10334 10335 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then 10336 10337 10338 10339 use_additional=yes 10340 10341 acl_save_prefix="$prefix" 10342 prefix="$acl_final_prefix" 10343 acl_save_exec_prefix="$exec_prefix" 10344 exec_prefix="$acl_final_exec_prefix" 10345 10346 eval additional_includedir=\"$includedir\" 10347 eval additional_libdir=\"$libdir\" 10348 10349 exec_prefix="$acl_save_exec_prefix" 10350 prefix="$acl_save_prefix" 10351 10352 10353# Check whether --with-libintl-prefix was given. 10354if test "${with_libintl_prefix+set}" = set; then 10355 withval=$with_libintl_prefix; 10356 if test "X$withval" = "Xno"; then 10357 use_additional=no 10358 else 10359 if test "X$withval" = "X"; then 10360 10361 acl_save_prefix="$prefix" 10362 prefix="$acl_final_prefix" 10363 acl_save_exec_prefix="$exec_prefix" 10364 exec_prefix="$acl_final_exec_prefix" 10365 10366 eval additional_includedir=\"$includedir\" 10367 eval additional_libdir=\"$libdir\" 10368 10369 exec_prefix="$acl_save_exec_prefix" 10370 prefix="$acl_save_prefix" 10371 10372 else 10373 additional_includedir="$withval/include" 10374 additional_libdir="$withval/lib" 10375 fi 10376 fi 10377 10378fi 10379 10380 LIBINTL= 10381 LTLIBINTL= 10382 INCINTL= 10383 rpathdirs= 10384 ltrpathdirs= 10385 names_already_handled= 10386 names_next_round='intl ' 10387 while test -n "$names_next_round"; do 10388 names_this_round="$names_next_round" 10389 names_next_round= 10390 for name in $names_this_round; do 10391 already_handled= 10392 for n in $names_already_handled; do 10393 if test "$n" = "$name"; then 10394 already_handled=yes 10395 break 10396 fi 10397 done 10398 if test -z "$already_handled"; then 10399 names_already_handled="$names_already_handled $name" 10400 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10401 eval value=\"\$HAVE_LIB$uppername\" 10402 if test -n "$value"; then 10403 if test "$value" = yes; then 10404 eval value=\"\$LIB$uppername\" 10405 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 10406 eval value=\"\$LTLIB$uppername\" 10407 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 10408 else 10409 : 10410 fi 10411 else 10412 found_dir= 10413 found_la= 10414 found_so= 10415 found_a= 10416 if test $use_additional = yes; then 10417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10418 found_dir="$additional_libdir" 10419 found_so="$additional_libdir/lib$name.$shlibext" 10420 if test -f "$additional_libdir/lib$name.la"; then 10421 found_la="$additional_libdir/lib$name.la" 10422 fi 10423 else 10424 if test -f "$additional_libdir/lib$name.$libext"; then 10425 found_dir="$additional_libdir" 10426 found_a="$additional_libdir/lib$name.$libext" 10427 if test -f "$additional_libdir/lib$name.la"; then 10428 found_la="$additional_libdir/lib$name.la" 10429 fi 10430 fi 10431 fi 10432 fi 10433 if test "X$found_dir" = "X"; then 10434 for x in $LDFLAGS $LTLIBINTL; do 10435 10436 acl_save_prefix="$prefix" 10437 prefix="$acl_final_prefix" 10438 acl_save_exec_prefix="$exec_prefix" 10439 exec_prefix="$acl_final_exec_prefix" 10440 eval x=\"$x\" 10441 exec_prefix="$acl_save_exec_prefix" 10442 prefix="$acl_save_prefix" 10443 10444 case "$x" in 10445 -L*) 10446 dir=`echo "X$x" | sed -e 's/^X-L//'` 10447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10448 found_dir="$dir" 10449 found_so="$dir/lib$name.$shlibext" 10450 if test -f "$dir/lib$name.la"; then 10451 found_la="$dir/lib$name.la" 10452 fi 10453 else 10454 if test -f "$dir/lib$name.$libext"; then 10455 found_dir="$dir" 10456 found_a="$dir/lib$name.$libext" 10457 if test -f "$dir/lib$name.la"; then 10458 found_la="$dir/lib$name.la" 10459 fi 10460 fi 10461 fi 10462 ;; 10463 esac 10464 if test "X$found_dir" != "X"; then 10465 break 10466 fi 10467 done 10468 fi 10469 if test "X$found_dir" != "X"; then 10470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 10471 if test "X$found_so" != "X"; then 10472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10474 else 10475 haveit= 10476 for x in $ltrpathdirs; do 10477 if test "X$x" = "X$found_dir"; then 10478 haveit=yes 10479 break 10480 fi 10481 done 10482 if test -z "$haveit"; then 10483 ltrpathdirs="$ltrpathdirs $found_dir" 10484 fi 10485 if test "$hardcode_direct" = yes; then 10486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10487 else 10488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10490 haveit= 10491 for x in $rpathdirs; do 10492 if test "X$x" = "X$found_dir"; then 10493 haveit=yes 10494 break 10495 fi 10496 done 10497 if test -z "$haveit"; then 10498 rpathdirs="$rpathdirs $found_dir" 10499 fi 10500 else 10501 haveit= 10502 for x in $LDFLAGS $LIBINTL; do 10503 10504 acl_save_prefix="$prefix" 10505 prefix="$acl_final_prefix" 10506 acl_save_exec_prefix="$exec_prefix" 10507 exec_prefix="$acl_final_exec_prefix" 10508 eval x=\"$x\" 10509 exec_prefix="$acl_save_exec_prefix" 10510 prefix="$acl_save_prefix" 10511 10512 if test "X$x" = "X-L$found_dir"; then 10513 haveit=yes 10514 break 10515 fi 10516 done 10517 if test -z "$haveit"; then 10518 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10519 fi 10520 if test "$hardcode_minus_L" != no; then 10521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10522 else 10523 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10524 fi 10525 fi 10526 fi 10527 fi 10528 else 10529 if test "X$found_a" != "X"; then 10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10531 else 10532 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10533 fi 10534 fi 10535 additional_includedir= 10536 case "$found_dir" in 10537 */lib | */lib/) 10538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10539 additional_includedir="$basedir/include" 10540 ;; 10541 esac 10542 if test "X$additional_includedir" != "X"; then 10543 if test "X$additional_includedir" != "X/usr/include"; then 10544 haveit= 10545 if test "X$additional_includedir" = "X/usr/local/include"; then 10546 if test -n "$GCC"; then 10547 case $host_os in 10548 linux*) haveit=yes;; 10549 esac 10550 fi 10551 fi 10552 if test -z "$haveit"; then 10553 for x in $CPPFLAGS $INCINTL; do 10554 10555 acl_save_prefix="$prefix" 10556 prefix="$acl_final_prefix" 10557 acl_save_exec_prefix="$exec_prefix" 10558 exec_prefix="$acl_final_exec_prefix" 10559 eval x=\"$x\" 10560 exec_prefix="$acl_save_exec_prefix" 10561 prefix="$acl_save_prefix" 10562 10563 if test "X$x" = "X-I$additional_includedir"; then 10564 haveit=yes 10565 break 10566 fi 10567 done 10568 if test -z "$haveit"; then 10569 if test -d "$additional_includedir"; then 10570 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10571 fi 10572 fi 10573 fi 10574 fi 10575 fi 10576 if test -n "$found_la"; then 10577 save_libdir="$libdir" 10578 case "$found_la" in 10579 */* | *\\*) . "$found_la" ;; 10580 *) . "./$found_la" ;; 10581 esac 10582 libdir="$save_libdir" 10583 for dep in $dependency_libs; do 10584 case "$dep" in 10585 -L*) 10586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10587 if test "X$additional_libdir" != "X/usr/lib"; then 10588 haveit= 10589 if test "X$additional_libdir" = "X/usr/local/lib"; then 10590 if test -n "$GCC"; then 10591 case $host_os in 10592 linux*) haveit=yes;; 10593 esac 10594 fi 10595 fi 10596 if test -z "$haveit"; then 10597 haveit= 10598 for x in $LDFLAGS $LIBINTL; do 10599 10600 acl_save_prefix="$prefix" 10601 prefix="$acl_final_prefix" 10602 acl_save_exec_prefix="$exec_prefix" 10603 exec_prefix="$acl_final_exec_prefix" 10604 eval x=\"$x\" 10605 exec_prefix="$acl_save_exec_prefix" 10606 prefix="$acl_save_prefix" 10607 10608 if test "X$x" = "X-L$additional_libdir"; then 10609 haveit=yes 10610 break 10611 fi 10612 done 10613 if test -z "$haveit"; then 10614 if test -d "$additional_libdir"; then 10615 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 10616 fi 10617 fi 10618 haveit= 10619 for x in $LDFLAGS $LTLIBINTL; do 10620 10621 acl_save_prefix="$prefix" 10622 prefix="$acl_final_prefix" 10623 acl_save_exec_prefix="$exec_prefix" 10624 exec_prefix="$acl_final_exec_prefix" 10625 eval x=\"$x\" 10626 exec_prefix="$acl_save_exec_prefix" 10627 prefix="$acl_save_prefix" 10628 10629 if test "X$x" = "X-L$additional_libdir"; then 10630 haveit=yes 10631 break 10632 fi 10633 done 10634 if test -z "$haveit"; then 10635 if test -d "$additional_libdir"; then 10636 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 10637 fi 10638 fi 10639 fi 10640 fi 10641 ;; 10642 -R*) 10643 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10644 if test "$enable_rpath" != no; then 10645 haveit= 10646 for x in $rpathdirs; do 10647 if test "X$x" = "X$dir"; then 10648 haveit=yes 10649 break 10650 fi 10651 done 10652 if test -z "$haveit"; then 10653 rpathdirs="$rpathdirs $dir" 10654 fi 10655 haveit= 10656 for x in $ltrpathdirs; do 10657 if test "X$x" = "X$dir"; then 10658 haveit=yes 10659 break 10660 fi 10661 done 10662 if test -z "$haveit"; then 10663 ltrpathdirs="$ltrpathdirs $dir" 10664 fi 10665 fi 10666 ;; 10667 -l*) 10668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10669 ;; 10670 *.la) 10671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10672 ;; 10673 *) 10674 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10676 ;; 10677 esac 10678 done 10679 fi 10680 else 10681 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10683 fi 10684 fi 10685 fi 10686 done 10687 done 10688 if test "X$rpathdirs" != "X"; then 10689 if test -n "$hardcode_libdir_separator"; then 10690 alldirs= 10691 for found_dir in $rpathdirs; do 10692 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10693 done 10694 acl_save_libdir="$libdir" 10695 libdir="$alldirs" 10696 eval flag=\"$hardcode_libdir_flag_spec\" 10697 libdir="$acl_save_libdir" 10698 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10699 else 10700 for found_dir in $rpathdirs; do 10701 acl_save_libdir="$libdir" 10702 libdir="$found_dir" 10703 eval flag=\"$hardcode_libdir_flag_spec\" 10704 libdir="$acl_save_libdir" 10705 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10706 done 10707 fi 10708 fi 10709 if test "X$ltrpathdirs" != "X"; then 10710 for found_dir in $ltrpathdirs; do 10711 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10712 done 10713 fi 10714 10715 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 10716$as_echo_n "checking for GNU gettext in libintl... " >&6; } 10717if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then 10718 $as_echo_n "(cached) " >&6 10719else 10720 gt_save_CPPFLAGS="$CPPFLAGS" 10721 CPPFLAGS="$CPPFLAGS $INCINTL" 10722 gt_save_LIBS="$LIBS" 10723 LIBS="$LIBS $LIBINTL" 10724 cat >conftest.$ac_ext <<_ACEOF 10725/* confdefs.h. */ 10726_ACEOF 10727cat confdefs.h >>conftest.$ac_ext 10728cat >>conftest.$ac_ext <<_ACEOF 10729/* end confdefs.h. */ 10730#include <libintl.h> 10731extern int _nl_msg_cat_cntr; 10732extern 10733#ifdef __cplusplus 10734"C" 10735#endif 10736const char *_nl_expand_alias (); 10737int 10738main () 10739{ 10740bindtextdomain ("", ""); 10741return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10742 ; 10743 return 0; 10744} 10745_ACEOF 10746rm -f conftest.$ac_objext conftest$ac_exeext 10747if { (ac_try="$ac_link" 10748case "(($ac_try" in 10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10750 *) ac_try_echo=$ac_try;; 10751esac 10752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10753$as_echo "$ac_try_echo") >&5 10754 (eval "$ac_link") 2>conftest.er1 10755 ac_status=$? 10756 grep -v '^ *+' conftest.er1 >conftest.err 10757 rm -f conftest.er1 10758 cat conftest.err >&5 10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10760 (exit $ac_status); } && { 10761 test -z "$ac_c_werror_flag" || 10762 test ! -s conftest.err 10763 } && test -s conftest$ac_exeext && { 10764 test "$cross_compiling" = yes || 10765 $as_test_x conftest$ac_exeext 10766 }; then 10767 gt_cv_func_gnugettext2_libintl=yes 10768else 10769 $as_echo "$as_me: failed program was:" >&5 10770sed 's/^/| /' conftest.$ac_ext >&5 10771 10772 gt_cv_func_gnugettext2_libintl=no 10773fi 10774 10775rm -rf conftest.dSYM 10776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10777 conftest$ac_exeext conftest.$ac_ext 10778 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 10779 LIBS="$LIBS $LIBICONV" 10780 cat >conftest.$ac_ext <<_ACEOF 10781/* confdefs.h. */ 10782_ACEOF 10783cat confdefs.h >>conftest.$ac_ext 10784cat >>conftest.$ac_ext <<_ACEOF 10785/* end confdefs.h. */ 10786#include <libintl.h> 10787extern int _nl_msg_cat_cntr; 10788extern 10789#ifdef __cplusplus 10790"C" 10791#endif 10792const char *_nl_expand_alias (); 10793int 10794main () 10795{ 10796bindtextdomain ("", ""); 10797return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10798 ; 10799 return 0; 10800} 10801_ACEOF 10802rm -f conftest.$ac_objext conftest$ac_exeext 10803if { (ac_try="$ac_link" 10804case "(($ac_try" in 10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10806 *) ac_try_echo=$ac_try;; 10807esac 10808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10809$as_echo "$ac_try_echo") >&5 10810 (eval "$ac_link") 2>conftest.er1 10811 ac_status=$? 10812 grep -v '^ *+' conftest.er1 >conftest.err 10813 rm -f conftest.er1 10814 cat conftest.err >&5 10815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10816 (exit $ac_status); } && { 10817 test -z "$ac_c_werror_flag" || 10818 test ! -s conftest.err 10819 } && test -s conftest$ac_exeext && { 10820 test "$cross_compiling" = yes || 10821 $as_test_x conftest$ac_exeext 10822 }; then 10823 LIBINTL="$LIBINTL $LIBICONV" 10824 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10825 gt_cv_func_gnugettext2_libintl=yes 10826 10827else 10828 $as_echo "$as_me: failed program was:" >&5 10829sed 's/^/| /' conftest.$ac_ext >&5 10830 10831 10832fi 10833 10834rm -rf conftest.dSYM 10835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10836 conftest$ac_exeext conftest.$ac_ext 10837 fi 10838 CPPFLAGS="$gt_save_CPPFLAGS" 10839 LIBS="$gt_save_LIBS" 10840fi 10841{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 10842$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } 10843 fi 10844 10845 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 10846 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 10847 && test "$PACKAGE" != gettext-runtime \ 10848 && test "$PACKAGE" != gettext-tools; }; then 10849 gt_use_preinstalled_gnugettext=yes 10850 else 10851 LIBINTL= 10852 LTLIBINTL= 10853 INCINTL= 10854 fi 10855 10856 10857 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 10858 nls_cv_use_gnu_gettext=yes 10859 fi 10860 fi 10861 10862 if test "$nls_cv_use_gnu_gettext" = "yes"; then 10863 BUILD_INCLUDED_LIBINTL=yes 10864 USE_INCLUDED_LIBINTL=yes 10865 LIBINTL="lib/intl/libintl.a $LIBICONV" 10866 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" 10867 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 10868 fi 10869 10870 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10871 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10872 CATOBJEXT=.gmo 10873 fi 10874 10875 10876 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10877 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10878 10879cat >>confdefs.h <<\_ACEOF 10880#define ENABLE_NLS 1 10881_ACEOF 10882 10883 else 10884 USE_NLS=no 10885 fi 10886 fi 10887 10888 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 10889$as_echo_n "checking whether to use NLS... " >&6; } 10890 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 10891$as_echo "$USE_NLS" >&6; } 10892 if test "$USE_NLS" = "yes"; then 10893 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 10894$as_echo_n "checking where the gettext function comes from... " >&6; } 10895 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10896 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 10897 gt_source="external libintl" 10898 else 10899 gt_source="libc" 10900 fi 10901 else 10902 gt_source="included intl directory" 10903 fi 10904 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 10905$as_echo "$gt_source" >&6; } 10906 fi 10907 10908 if test "$USE_NLS" = "yes"; then 10909 10910 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10911 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 10912 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 10913$as_echo_n "checking how to link with libintl... " >&6; } 10914 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 10915$as_echo "$LIBINTL" >&6; } 10916 10917 for element in $INCINTL; do 10918 haveit= 10919 for x in $CPPFLAGS; do 10920 10921 acl_save_prefix="$prefix" 10922 prefix="$acl_final_prefix" 10923 acl_save_exec_prefix="$exec_prefix" 10924 exec_prefix="$acl_final_exec_prefix" 10925 eval x=\"$x\" 10926 exec_prefix="$acl_save_exec_prefix" 10927 prefix="$acl_save_prefix" 10928 10929 if test "X$x" = "X$element"; then 10930 haveit=yes 10931 break 10932 fi 10933 done 10934 if test -z "$haveit"; then 10935 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10936 fi 10937 done 10938 10939 fi 10940 10941 10942cat >>confdefs.h <<\_ACEOF 10943#define HAVE_GETTEXT 1 10944_ACEOF 10945 10946 10947cat >>confdefs.h <<\_ACEOF 10948#define HAVE_DCGETTEXT 1 10949_ACEOF 10950 10951 fi 10952 10953 POSUB=po 10954 fi 10955 10956 10957 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 10958 BUILD_INCLUDED_LIBINTL=yes 10959 fi 10960 10961 10962 10963 10964 10965 nls_cv_header_intl= 10966 nls_cv_header_libgt= 10967 10968 DATADIRNAME=share 10969 10970 10971 INSTOBJEXT=.mo 10972 10973 10974 GENCAT=gencat 10975 10976 10977 if test "$USE_INCLUDED_LIBINTL" = yes; then 10978 INTLOBJS="\$(GETTOBJS)" 10979 fi 10980 10981 10982 INTL_LIBTOOL_SUFFIX_PREFIX= 10983 10984 10985 10986 INTLLIBS="$LIBINTL" 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999ac_header_dirent=no 11000for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 11001 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 11002{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 11003$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 11004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11005 $as_echo_n "(cached) " >&6 11006else 11007 cat >conftest.$ac_ext <<_ACEOF 11008/* confdefs.h. */ 11009_ACEOF 11010cat confdefs.h >>conftest.$ac_ext 11011cat >>conftest.$ac_ext <<_ACEOF 11012/* end confdefs.h. */ 11013#include <sys/types.h> 11014#include <$ac_hdr> 11015 11016int 11017main () 11018{ 11019if ((DIR *) 0) 11020return 0; 11021 ; 11022 return 0; 11023} 11024_ACEOF 11025rm -f conftest.$ac_objext 11026if { (ac_try="$ac_compile" 11027case "(($ac_try" in 11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11029 *) ac_try_echo=$ac_try;; 11030esac 11031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11032$as_echo "$ac_try_echo") >&5 11033 (eval "$ac_compile") 2>conftest.er1 11034 ac_status=$? 11035 grep -v '^ *+' conftest.er1 >conftest.err 11036 rm -f conftest.er1 11037 cat conftest.err >&5 11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11039 (exit $ac_status); } && { 11040 test -z "$ac_c_werror_flag" || 11041 test ! -s conftest.err 11042 } && test -s conftest.$ac_objext; then 11043 eval "$as_ac_Header=yes" 11044else 11045 $as_echo "$as_me: failed program was:" >&5 11046sed 's/^/| /' conftest.$ac_ext >&5 11047 11048 eval "$as_ac_Header=no" 11049fi 11050 11051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11052fi 11053ac_res=`eval 'as_val=${'$as_ac_Header'} 11054 $as_echo "$as_val"'` 11055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11056$as_echo "$ac_res" >&6; } 11057as_val=`eval 'as_val=${'$as_ac_Header'} 11058 $as_echo "$as_val"'` 11059 if test "x$as_val" = x""yes; then 11060 cat >>confdefs.h <<_ACEOF 11061#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 11062_ACEOF 11063 11064ac_header_dirent=$ac_hdr; break 11065fi 11066 11067done 11068# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 11069if test $ac_header_dirent = dirent.h; then 11070 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 11071$as_echo_n "checking for library containing opendir... " >&6; } 11072if test "${ac_cv_search_opendir+set}" = set; then 11073 $as_echo_n "(cached) " >&6 11074else 11075 ac_func_search_save_LIBS=$LIBS 11076cat >conftest.$ac_ext <<_ACEOF 11077/* confdefs.h. */ 11078_ACEOF 11079cat confdefs.h >>conftest.$ac_ext 11080cat >>conftest.$ac_ext <<_ACEOF 11081/* end confdefs.h. */ 11082 11083/* Override any GCC internal prototype to avoid an error. 11084 Use char because int might match the return type of a GCC 11085 builtin and then its argument prototype would still apply. */ 11086#ifdef __cplusplus 11087extern "C" 11088#endif 11089char opendir (); 11090int 11091main () 11092{ 11093return opendir (); 11094 ; 11095 return 0; 11096} 11097_ACEOF 11098for ac_lib in '' dir; do 11099 if test -z "$ac_lib"; then 11100 ac_res="none required" 11101 else 11102 ac_res=-l$ac_lib 11103 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11104 fi 11105 rm -f conftest.$ac_objext conftest$ac_exeext 11106if { (ac_try="$ac_link" 11107case "(($ac_try" in 11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11109 *) ac_try_echo=$ac_try;; 11110esac 11111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11112$as_echo "$ac_try_echo") >&5 11113 (eval "$ac_link") 2>conftest.er1 11114 ac_status=$? 11115 grep -v '^ *+' conftest.er1 >conftest.err 11116 rm -f conftest.er1 11117 cat conftest.err >&5 11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11119 (exit $ac_status); } && { 11120 test -z "$ac_c_werror_flag" || 11121 test ! -s conftest.err 11122 } && test -s conftest$ac_exeext && { 11123 test "$cross_compiling" = yes || 11124 $as_test_x conftest$ac_exeext 11125 }; then 11126 ac_cv_search_opendir=$ac_res 11127else 11128 $as_echo "$as_me: failed program was:" >&5 11129sed 's/^/| /' conftest.$ac_ext >&5 11130 11131 11132fi 11133 11134rm -rf conftest.dSYM 11135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11136 conftest$ac_exeext 11137 if test "${ac_cv_search_opendir+set}" = set; then 11138 break 11139fi 11140done 11141if test "${ac_cv_search_opendir+set}" = set; then 11142 : 11143else 11144 ac_cv_search_opendir=no 11145fi 11146rm conftest.$ac_ext 11147LIBS=$ac_func_search_save_LIBS 11148fi 11149{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 11150$as_echo "$ac_cv_search_opendir" >&6; } 11151ac_res=$ac_cv_search_opendir 11152if test "$ac_res" != no; then 11153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11154 11155fi 11156 11157else 11158 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 11159$as_echo_n "checking for library containing opendir... " >&6; } 11160if test "${ac_cv_search_opendir+set}" = set; then 11161 $as_echo_n "(cached) " >&6 11162else 11163 ac_func_search_save_LIBS=$LIBS 11164cat >conftest.$ac_ext <<_ACEOF 11165/* confdefs.h. */ 11166_ACEOF 11167cat confdefs.h >>conftest.$ac_ext 11168cat >>conftest.$ac_ext <<_ACEOF 11169/* end confdefs.h. */ 11170 11171/* Override any GCC internal prototype to avoid an error. 11172 Use char because int might match the return type of a GCC 11173 builtin and then its argument prototype would still apply. */ 11174#ifdef __cplusplus 11175extern "C" 11176#endif 11177char opendir (); 11178int 11179main () 11180{ 11181return opendir (); 11182 ; 11183 return 0; 11184} 11185_ACEOF 11186for ac_lib in '' x; do 11187 if test -z "$ac_lib"; then 11188 ac_res="none required" 11189 else 11190 ac_res=-l$ac_lib 11191 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11192 fi 11193 rm -f conftest.$ac_objext conftest$ac_exeext 11194if { (ac_try="$ac_link" 11195case "(($ac_try" in 11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11197 *) ac_try_echo=$ac_try;; 11198esac 11199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11200$as_echo "$ac_try_echo") >&5 11201 (eval "$ac_link") 2>conftest.er1 11202 ac_status=$? 11203 grep -v '^ *+' conftest.er1 >conftest.err 11204 rm -f conftest.er1 11205 cat conftest.err >&5 11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11207 (exit $ac_status); } && { 11208 test -z "$ac_c_werror_flag" || 11209 test ! -s conftest.err 11210 } && test -s conftest$ac_exeext && { 11211 test "$cross_compiling" = yes || 11212 $as_test_x conftest$ac_exeext 11213 }; then 11214 ac_cv_search_opendir=$ac_res 11215else 11216 $as_echo "$as_me: failed program was:" >&5 11217sed 's/^/| /' conftest.$ac_ext >&5 11218 11219 11220fi 11221 11222rm -rf conftest.dSYM 11223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11224 conftest$ac_exeext 11225 if test "${ac_cv_search_opendir+set}" = set; then 11226 break 11227fi 11228done 11229if test "${ac_cv_search_opendir+set}" = set; then 11230 : 11231else 11232 ac_cv_search_opendir=no 11233fi 11234rm conftest.$ac_ext 11235LIBS=$ac_func_search_save_LIBS 11236fi 11237{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 11238$as_echo "$ac_cv_search_opendir" >&6; } 11239ac_res=$ac_cv_search_opendir 11240if test "$ac_res" != no; then 11241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11242 11243fi 11244 11245fi 11246 11247{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11248$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11249if test "${ac_cv_header_time+set}" = set; then 11250 $as_echo_n "(cached) " >&6 11251else 11252 cat >conftest.$ac_ext <<_ACEOF 11253/* confdefs.h. */ 11254_ACEOF 11255cat confdefs.h >>conftest.$ac_ext 11256cat >>conftest.$ac_ext <<_ACEOF 11257/* end confdefs.h. */ 11258#include <sys/types.h> 11259#include <sys/time.h> 11260#include <time.h> 11261 11262int 11263main () 11264{ 11265if ((struct tm *) 0) 11266return 0; 11267 ; 11268 return 0; 11269} 11270_ACEOF 11271rm -f conftest.$ac_objext 11272if { (ac_try="$ac_compile" 11273case "(($ac_try" in 11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11275 *) ac_try_echo=$ac_try;; 11276esac 11277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11278$as_echo "$ac_try_echo") >&5 11279 (eval "$ac_compile") 2>conftest.er1 11280 ac_status=$? 11281 grep -v '^ *+' conftest.er1 >conftest.err 11282 rm -f conftest.er1 11283 cat conftest.err >&5 11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11285 (exit $ac_status); } && { 11286 test -z "$ac_c_werror_flag" || 11287 test ! -s conftest.err 11288 } && test -s conftest.$ac_objext; then 11289 ac_cv_header_time=yes 11290else 11291 $as_echo "$as_me: failed program was:" >&5 11292sed 's/^/| /' conftest.$ac_ext >&5 11293 11294 ac_cv_header_time=no 11295fi 11296 11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11298fi 11299{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11300$as_echo "$ac_cv_header_time" >&6; } 11301if test $ac_cv_header_time = yes; then 11302 11303cat >>confdefs.h <<\_ACEOF 11304#define TIME_WITH_SYS_TIME 1 11305_ACEOF 11306 11307fi 11308 11309 11310 11311 11312for ac_header in inttypes.h 11313do 11314as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11316 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11317$as_echo_n "checking for $ac_header... " >&6; } 11318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11319 $as_echo_n "(cached) " >&6 11320fi 11321ac_res=`eval 'as_val=${'$as_ac_Header'} 11322 $as_echo "$as_val"'` 11323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11324$as_echo "$ac_res" >&6; } 11325else 11326 # Is the header compilable? 11327{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11328$as_echo_n "checking $ac_header usability... " >&6; } 11329cat >conftest.$ac_ext <<_ACEOF 11330/* confdefs.h. */ 11331_ACEOF 11332cat confdefs.h >>conftest.$ac_ext 11333cat >>conftest.$ac_ext <<_ACEOF 11334/* end confdefs.h. */ 11335$ac_includes_default 11336#include <$ac_header> 11337_ACEOF 11338rm -f conftest.$ac_objext 11339if { (ac_try="$ac_compile" 11340case "(($ac_try" in 11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11342 *) ac_try_echo=$ac_try;; 11343esac 11344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11345$as_echo "$ac_try_echo") >&5 11346 (eval "$ac_compile") 2>conftest.er1 11347 ac_status=$? 11348 grep -v '^ *+' conftest.er1 >conftest.err 11349 rm -f conftest.er1 11350 cat conftest.err >&5 11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); } && { 11353 test -z "$ac_c_werror_flag" || 11354 test ! -s conftest.err 11355 } && test -s conftest.$ac_objext; then 11356 ac_header_compiler=yes 11357else 11358 $as_echo "$as_me: failed program was:" >&5 11359sed 's/^/| /' conftest.$ac_ext >&5 11360 11361 ac_header_compiler=no 11362fi 11363 11364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11365{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11366$as_echo "$ac_header_compiler" >&6; } 11367 11368# Is the header present? 11369{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11370$as_echo_n "checking $ac_header presence... " >&6; } 11371cat >conftest.$ac_ext <<_ACEOF 11372/* confdefs.h. */ 11373_ACEOF 11374cat confdefs.h >>conftest.$ac_ext 11375cat >>conftest.$ac_ext <<_ACEOF 11376/* end confdefs.h. */ 11377#include <$ac_header> 11378_ACEOF 11379if { (ac_try="$ac_cpp conftest.$ac_ext" 11380case "(($ac_try" in 11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11382 *) ac_try_echo=$ac_try;; 11383esac 11384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11385$as_echo "$ac_try_echo") >&5 11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11387 ac_status=$? 11388 grep -v '^ *+' conftest.er1 >conftest.err 11389 rm -f conftest.er1 11390 cat conftest.err >&5 11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11392 (exit $ac_status); } >/dev/null && { 11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11394 test ! -s conftest.err 11395 }; then 11396 ac_header_preproc=yes 11397else 11398 $as_echo "$as_me: failed program was:" >&5 11399sed 's/^/| /' conftest.$ac_ext >&5 11400 11401 ac_header_preproc=no 11402fi 11403 11404rm -f conftest.err conftest.$ac_ext 11405{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11406$as_echo "$ac_header_preproc" >&6; } 11407 11408# So? What about this header? 11409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11410 yes:no: ) 11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11412$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11414$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11415 ac_header_preproc=yes 11416 ;; 11417 no:yes:* ) 11418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11419$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11421$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11423$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11425$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11427$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11429$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11430 ( cat <<\_ASBOX 11431## ------------------------------- ## 11432## Report this to bug-bash@gnu.org ## 11433## ------------------------------- ## 11434_ASBOX 11435 ) | sed "s/^/$as_me: WARNING: /" >&2 11436 ;; 11437esac 11438{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11439$as_echo_n "checking for $ac_header... " >&6; } 11440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11441 $as_echo_n "(cached) " >&6 11442else 11443 eval "$as_ac_Header=\$ac_header_preproc" 11444fi 11445ac_res=`eval 'as_val=${'$as_ac_Header'} 11446 $as_echo "$as_val"'` 11447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11448$as_echo "$ac_res" >&6; } 11449 11450fi 11451as_val=`eval 'as_val=${'$as_ac_Header'} 11452 $as_echo "$as_val"'` 11453 if test "x$as_val" = x""yes; then 11454 cat >>confdefs.h <<_ACEOF 11455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11456_ACEOF 11457 11458fi 11459 11460done 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ 11484 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ 11485 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h 11486do 11487as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11490$as_echo_n "checking for $ac_header... " >&6; } 11491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11492 $as_echo_n "(cached) " >&6 11493fi 11494ac_res=`eval 'as_val=${'$as_ac_Header'} 11495 $as_echo "$as_val"'` 11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11497$as_echo "$ac_res" >&6; } 11498else 11499 # Is the header compilable? 11500{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11501$as_echo_n "checking $ac_header usability... " >&6; } 11502cat >conftest.$ac_ext <<_ACEOF 11503/* confdefs.h. */ 11504_ACEOF 11505cat confdefs.h >>conftest.$ac_ext 11506cat >>conftest.$ac_ext <<_ACEOF 11507/* end confdefs.h. */ 11508$ac_includes_default 11509#include <$ac_header> 11510_ACEOF 11511rm -f conftest.$ac_objext 11512if { (ac_try="$ac_compile" 11513case "(($ac_try" in 11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11515 *) ac_try_echo=$ac_try;; 11516esac 11517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11518$as_echo "$ac_try_echo") >&5 11519 (eval "$ac_compile") 2>conftest.er1 11520 ac_status=$? 11521 grep -v '^ *+' conftest.er1 >conftest.err 11522 rm -f conftest.er1 11523 cat conftest.err >&5 11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11525 (exit $ac_status); } && { 11526 test -z "$ac_c_werror_flag" || 11527 test ! -s conftest.err 11528 } && test -s conftest.$ac_objext; then 11529 ac_header_compiler=yes 11530else 11531 $as_echo "$as_me: failed program was:" >&5 11532sed 's/^/| /' conftest.$ac_ext >&5 11533 11534 ac_header_compiler=no 11535fi 11536 11537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11538{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11539$as_echo "$ac_header_compiler" >&6; } 11540 11541# Is the header present? 11542{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11543$as_echo_n "checking $ac_header presence... " >&6; } 11544cat >conftest.$ac_ext <<_ACEOF 11545/* confdefs.h. */ 11546_ACEOF 11547cat confdefs.h >>conftest.$ac_ext 11548cat >>conftest.$ac_ext <<_ACEOF 11549/* end confdefs.h. */ 11550#include <$ac_header> 11551_ACEOF 11552if { (ac_try="$ac_cpp conftest.$ac_ext" 11553case "(($ac_try" in 11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11555 *) ac_try_echo=$ac_try;; 11556esac 11557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11558$as_echo "$ac_try_echo") >&5 11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11560 ac_status=$? 11561 grep -v '^ *+' conftest.er1 >conftest.err 11562 rm -f conftest.er1 11563 cat conftest.err >&5 11564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11565 (exit $ac_status); } >/dev/null && { 11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11567 test ! -s conftest.err 11568 }; then 11569 ac_header_preproc=yes 11570else 11571 $as_echo "$as_me: failed program was:" >&5 11572sed 's/^/| /' conftest.$ac_ext >&5 11573 11574 ac_header_preproc=no 11575fi 11576 11577rm -f conftest.err conftest.$ac_ext 11578{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11579$as_echo "$ac_header_preproc" >&6; } 11580 11581# So? What about this header? 11582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11583 yes:no: ) 11584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11585$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11587$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11588 ac_header_preproc=yes 11589 ;; 11590 no:yes:* ) 11591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11592$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11594$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11596$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11598$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11600$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11602$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11603 ( cat <<\_ASBOX 11604## ------------------------------- ## 11605## Report this to bug-bash@gnu.org ## 11606## ------------------------------- ## 11607_ASBOX 11608 ) | sed "s/^/$as_me: WARNING: /" >&2 11609 ;; 11610esac 11611{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11612$as_echo_n "checking for $ac_header... " >&6; } 11613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11614 $as_echo_n "(cached) " >&6 11615else 11616 eval "$as_ac_Header=\$ac_header_preproc" 11617fi 11618ac_res=`eval 'as_val=${'$as_ac_Header'} 11619 $as_echo "$as_val"'` 11620 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11621$as_echo "$ac_res" >&6; } 11622 11623fi 11624as_val=`eval 'as_val=${'$as_ac_Header'} 11625 $as_echo "$as_val"'` 11626 if test "x$as_val" = x""yes; then 11627 cat >>confdefs.h <<_ACEOF 11628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11629_ACEOF 11630 11631fi 11632 11633done 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ 11648 sys/resource.h sys/param.h sys/socket.h sys/stat.h \ 11649 sys/time.h sys/times.h sys/types.h sys/wait.h 11650do 11651as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11654$as_echo_n "checking for $ac_header... " >&6; } 11655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11656 $as_echo_n "(cached) " >&6 11657fi 11658ac_res=`eval 'as_val=${'$as_ac_Header'} 11659 $as_echo "$as_val"'` 11660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11661$as_echo "$ac_res" >&6; } 11662else 11663 # Is the header compilable? 11664{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11665$as_echo_n "checking $ac_header usability... " >&6; } 11666cat >conftest.$ac_ext <<_ACEOF 11667/* confdefs.h. */ 11668_ACEOF 11669cat confdefs.h >>conftest.$ac_ext 11670cat >>conftest.$ac_ext <<_ACEOF 11671/* end confdefs.h. */ 11672$ac_includes_default 11673#include <$ac_header> 11674_ACEOF 11675rm -f conftest.$ac_objext 11676if { (ac_try="$ac_compile" 11677case "(($ac_try" in 11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11679 *) ac_try_echo=$ac_try;; 11680esac 11681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11682$as_echo "$ac_try_echo") >&5 11683 (eval "$ac_compile") 2>conftest.er1 11684 ac_status=$? 11685 grep -v '^ *+' conftest.er1 >conftest.err 11686 rm -f conftest.er1 11687 cat conftest.err >&5 11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11689 (exit $ac_status); } && { 11690 test -z "$ac_c_werror_flag" || 11691 test ! -s conftest.err 11692 } && test -s conftest.$ac_objext; then 11693 ac_header_compiler=yes 11694else 11695 $as_echo "$as_me: failed program was:" >&5 11696sed 's/^/| /' conftest.$ac_ext >&5 11697 11698 ac_header_compiler=no 11699fi 11700 11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11702{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11703$as_echo "$ac_header_compiler" >&6; } 11704 11705# Is the header present? 11706{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11707$as_echo_n "checking $ac_header presence... " >&6; } 11708cat >conftest.$ac_ext <<_ACEOF 11709/* confdefs.h. */ 11710_ACEOF 11711cat confdefs.h >>conftest.$ac_ext 11712cat >>conftest.$ac_ext <<_ACEOF 11713/* end confdefs.h. */ 11714#include <$ac_header> 11715_ACEOF 11716if { (ac_try="$ac_cpp conftest.$ac_ext" 11717case "(($ac_try" in 11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11719 *) ac_try_echo=$ac_try;; 11720esac 11721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11722$as_echo "$ac_try_echo") >&5 11723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11724 ac_status=$? 11725 grep -v '^ *+' conftest.er1 >conftest.err 11726 rm -f conftest.er1 11727 cat conftest.err >&5 11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); } >/dev/null && { 11730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11731 test ! -s conftest.err 11732 }; then 11733 ac_header_preproc=yes 11734else 11735 $as_echo "$as_me: failed program was:" >&5 11736sed 's/^/| /' conftest.$ac_ext >&5 11737 11738 ac_header_preproc=no 11739fi 11740 11741rm -f conftest.err conftest.$ac_ext 11742{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11743$as_echo "$ac_header_preproc" >&6; } 11744 11745# So? What about this header? 11746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11747 yes:no: ) 11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11749$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11751$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11752 ac_header_preproc=yes 11753 ;; 11754 no:yes:* ) 11755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11756$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11758$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11760$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11762$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11764$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11766$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11767 ( cat <<\_ASBOX 11768## ------------------------------- ## 11769## Report this to bug-bash@gnu.org ## 11770## ------------------------------- ## 11771_ASBOX 11772 ) | sed "s/^/$as_me: WARNING: /" >&2 11773 ;; 11774esac 11775{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11776$as_echo_n "checking for $ac_header... " >&6; } 11777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11778 $as_echo_n "(cached) " >&6 11779else 11780 eval "$as_ac_Header=\$ac_header_preproc" 11781fi 11782ac_res=`eval 'as_val=${'$as_ac_Header'} 11783 $as_echo "$as_val"'` 11784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11785$as_echo "$ac_res" >&6; } 11786 11787fi 11788as_val=`eval 'as_val=${'$as_ac_Header'} 11789 $as_echo "$as_val"'` 11790 if test "x$as_val" = x""yes; then 11791 cat >>confdefs.h <<_ACEOF 11792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11793_ACEOF 11794 11795fi 11796 11797done 11798 11799 11800 11801for ac_header in netinet/in.h arpa/inet.h 11802do 11803as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11806$as_echo_n "checking for $ac_header... " >&6; } 11807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11808 $as_echo_n "(cached) " >&6 11809fi 11810ac_res=`eval 'as_val=${'$as_ac_Header'} 11811 $as_echo "$as_val"'` 11812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11813$as_echo "$ac_res" >&6; } 11814else 11815 # Is the header compilable? 11816{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11817$as_echo_n "checking $ac_header usability... " >&6; } 11818cat >conftest.$ac_ext <<_ACEOF 11819/* confdefs.h. */ 11820_ACEOF 11821cat confdefs.h >>conftest.$ac_ext 11822cat >>conftest.$ac_ext <<_ACEOF 11823/* end confdefs.h. */ 11824$ac_includes_default 11825#include <$ac_header> 11826_ACEOF 11827rm -f conftest.$ac_objext 11828if { (ac_try="$ac_compile" 11829case "(($ac_try" in 11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11831 *) ac_try_echo=$ac_try;; 11832esac 11833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11834$as_echo "$ac_try_echo") >&5 11835 (eval "$ac_compile") 2>conftest.er1 11836 ac_status=$? 11837 grep -v '^ *+' conftest.er1 >conftest.err 11838 rm -f conftest.er1 11839 cat conftest.err >&5 11840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11841 (exit $ac_status); } && { 11842 test -z "$ac_c_werror_flag" || 11843 test ! -s conftest.err 11844 } && test -s conftest.$ac_objext; then 11845 ac_header_compiler=yes 11846else 11847 $as_echo "$as_me: failed program was:" >&5 11848sed 's/^/| /' conftest.$ac_ext >&5 11849 11850 ac_header_compiler=no 11851fi 11852 11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11854{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11855$as_echo "$ac_header_compiler" >&6; } 11856 11857# Is the header present? 11858{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11859$as_echo_n "checking $ac_header presence... " >&6; } 11860cat >conftest.$ac_ext <<_ACEOF 11861/* confdefs.h. */ 11862_ACEOF 11863cat confdefs.h >>conftest.$ac_ext 11864cat >>conftest.$ac_ext <<_ACEOF 11865/* end confdefs.h. */ 11866#include <$ac_header> 11867_ACEOF 11868if { (ac_try="$ac_cpp conftest.$ac_ext" 11869case "(($ac_try" in 11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11871 *) ac_try_echo=$ac_try;; 11872esac 11873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11874$as_echo "$ac_try_echo") >&5 11875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11876 ac_status=$? 11877 grep -v '^ *+' conftest.er1 >conftest.err 11878 rm -f conftest.er1 11879 cat conftest.err >&5 11880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11881 (exit $ac_status); } >/dev/null && { 11882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11883 test ! -s conftest.err 11884 }; then 11885 ac_header_preproc=yes 11886else 11887 $as_echo "$as_me: failed program was:" >&5 11888sed 's/^/| /' conftest.$ac_ext >&5 11889 11890 ac_header_preproc=no 11891fi 11892 11893rm -f conftest.err conftest.$ac_ext 11894{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11895$as_echo "$ac_header_preproc" >&6; } 11896 11897# So? What about this header? 11898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11899 yes:no: ) 11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11901$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11903$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11904 ac_header_preproc=yes 11905 ;; 11906 no:yes:* ) 11907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11908$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11910$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11912$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11914$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11916$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11918$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11919 ( cat <<\_ASBOX 11920## ------------------------------- ## 11921## Report this to bug-bash@gnu.org ## 11922## ------------------------------- ## 11923_ASBOX 11924 ) | sed "s/^/$as_me: WARNING: /" >&2 11925 ;; 11926esac 11927{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11928$as_echo_n "checking for $ac_header... " >&6; } 11929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11930 $as_echo_n "(cached) " >&6 11931else 11932 eval "$as_ac_Header=\$ac_header_preproc" 11933fi 11934ac_res=`eval 'as_val=${'$as_ac_Header'} 11935 $as_echo "$as_val"'` 11936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11937$as_echo "$ac_res" >&6; } 11938 11939fi 11940as_val=`eval 'as_val=${'$as_ac_Header'} 11941 $as_echo "$as_val"'` 11942 if test "x$as_val" = x""yes; then 11943 cat >>confdefs.h <<_ACEOF 11944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11945_ACEOF 11946 11947fi 11948 11949done 11950 11951 11952{ $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 11953$as_echo_n "checking for sys/ptem.h... " >&6; } 11954if test "${ac_cv_header_sys_ptem_h+set}" = set; then 11955 $as_echo_n "(cached) " >&6 11956else 11957 cat >conftest.$ac_ext <<_ACEOF 11958/* confdefs.h. */ 11959_ACEOF 11960cat confdefs.h >>conftest.$ac_ext 11961cat >>conftest.$ac_ext <<_ACEOF 11962/* end confdefs.h. */ 11963 11964#if HAVE_SYS_STREAM_H 11965# include <sys/stream.h> 11966#endif 11967 11968 11969#include <sys/ptem.h> 11970_ACEOF 11971rm -f conftest.$ac_objext 11972if { (ac_try="$ac_compile" 11973case "(($ac_try" in 11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11975 *) ac_try_echo=$ac_try;; 11976esac 11977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11978$as_echo "$ac_try_echo") >&5 11979 (eval "$ac_compile") 2>conftest.er1 11980 ac_status=$? 11981 grep -v '^ *+' conftest.er1 >conftest.err 11982 rm -f conftest.er1 11983 cat conftest.err >&5 11984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11985 (exit $ac_status); } && { 11986 test -z "$ac_c_werror_flag" || 11987 test ! -s conftest.err 11988 } && test -s conftest.$ac_objext; then 11989 ac_cv_header_sys_ptem_h=yes 11990else 11991 $as_echo "$as_me: failed program was:" >&5 11992sed 's/^/| /' conftest.$ac_ext >&5 11993 11994 ac_cv_header_sys_ptem_h=no 11995fi 11996 11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11998fi 11999{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 12000$as_echo "$ac_cv_header_sys_ptem_h" >&6; } 12001 12002 12003 12004# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12005# for constant arguments. Useless! 12006{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 12007$as_echo_n "checking for working alloca.h... " >&6; } 12008if test "${ac_cv_working_alloca_h+set}" = set; then 12009 $as_echo_n "(cached) " >&6 12010else 12011 cat >conftest.$ac_ext <<_ACEOF 12012/* confdefs.h. */ 12013_ACEOF 12014cat confdefs.h >>conftest.$ac_ext 12015cat >>conftest.$ac_ext <<_ACEOF 12016/* end confdefs.h. */ 12017#include <alloca.h> 12018int 12019main () 12020{ 12021char *p = (char *) alloca (2 * sizeof (int)); 12022 if (p) return 0; 12023 ; 12024 return 0; 12025} 12026_ACEOF 12027rm -f conftest.$ac_objext conftest$ac_exeext 12028if { (ac_try="$ac_link" 12029case "(($ac_try" in 12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12031 *) ac_try_echo=$ac_try;; 12032esac 12033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12034$as_echo "$ac_try_echo") >&5 12035 (eval "$ac_link") 2>conftest.er1 12036 ac_status=$? 12037 grep -v '^ *+' conftest.er1 >conftest.err 12038 rm -f conftest.er1 12039 cat conftest.err >&5 12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); } && { 12042 test -z "$ac_c_werror_flag" || 12043 test ! -s conftest.err 12044 } && test -s conftest$ac_exeext && { 12045 test "$cross_compiling" = yes || 12046 $as_test_x conftest$ac_exeext 12047 }; then 12048 ac_cv_working_alloca_h=yes 12049else 12050 $as_echo "$as_me: failed program was:" >&5 12051sed 's/^/| /' conftest.$ac_ext >&5 12052 12053 ac_cv_working_alloca_h=no 12054fi 12055 12056rm -rf conftest.dSYM 12057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12058 conftest$ac_exeext conftest.$ac_ext 12059fi 12060{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 12061$as_echo "$ac_cv_working_alloca_h" >&6; } 12062if test $ac_cv_working_alloca_h = yes; then 12063 12064cat >>confdefs.h <<\_ACEOF 12065#define HAVE_ALLOCA_H 1 12066_ACEOF 12067 12068fi 12069 12070{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 12071$as_echo_n "checking for alloca... " >&6; } 12072if test "${ac_cv_func_alloca_works+set}" = set; then 12073 $as_echo_n "(cached) " >&6 12074else 12075 cat >conftest.$ac_ext <<_ACEOF 12076/* confdefs.h. */ 12077_ACEOF 12078cat confdefs.h >>conftest.$ac_ext 12079cat >>conftest.$ac_ext <<_ACEOF 12080/* end confdefs.h. */ 12081#ifdef __GNUC__ 12082# define alloca __builtin_alloca 12083#else 12084# ifdef _MSC_VER 12085# include <malloc.h> 12086# define alloca _alloca 12087# else 12088# ifdef HAVE_ALLOCA_H 12089# include <alloca.h> 12090# else 12091# ifdef _AIX 12092 #pragma alloca 12093# else 12094# ifndef alloca /* predefined by HP cc +Olibcalls */ 12095char *alloca (); 12096# endif 12097# endif 12098# endif 12099# endif 12100#endif 12101 12102int 12103main () 12104{ 12105char *p = (char *) alloca (1); 12106 if (p) return 0; 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111rm -f conftest.$ac_objext conftest$ac_exeext 12112if { (ac_try="$ac_link" 12113case "(($ac_try" in 12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12115 *) ac_try_echo=$ac_try;; 12116esac 12117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12118$as_echo "$ac_try_echo") >&5 12119 (eval "$ac_link") 2>conftest.er1 12120 ac_status=$? 12121 grep -v '^ *+' conftest.er1 >conftest.err 12122 rm -f conftest.er1 12123 cat conftest.err >&5 12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); } && { 12126 test -z "$ac_c_werror_flag" || 12127 test ! -s conftest.err 12128 } && test -s conftest$ac_exeext && { 12129 test "$cross_compiling" = yes || 12130 $as_test_x conftest$ac_exeext 12131 }; then 12132 ac_cv_func_alloca_works=yes 12133else 12134 $as_echo "$as_me: failed program was:" >&5 12135sed 's/^/| /' conftest.$ac_ext >&5 12136 12137 ac_cv_func_alloca_works=no 12138fi 12139 12140rm -rf conftest.dSYM 12141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12142 conftest$ac_exeext conftest.$ac_ext 12143fi 12144{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 12145$as_echo "$ac_cv_func_alloca_works" >&6; } 12146 12147if test $ac_cv_func_alloca_works = yes; then 12148 12149cat >>confdefs.h <<\_ACEOF 12150#define HAVE_ALLOCA 1 12151_ACEOF 12152 12153else 12154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 12155# that cause trouble. Some versions do not even contain alloca or 12156# contain a buggy version. If you still want to use their alloca, 12157# use ar to extract alloca.o from them instead of compiling alloca.c. 12158 12159ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 12160 12161cat >>confdefs.h <<\_ACEOF 12162#define C_ALLOCA 1 12163_ACEOF 12164 12165 12166{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 12167$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 12168if test "${ac_cv_os_cray+set}" = set; then 12169 $as_echo_n "(cached) " >&6 12170else 12171 cat >conftest.$ac_ext <<_ACEOF 12172/* confdefs.h. */ 12173_ACEOF 12174cat confdefs.h >>conftest.$ac_ext 12175cat >>conftest.$ac_ext <<_ACEOF 12176/* end confdefs.h. */ 12177#if defined CRAY && ! defined CRAY2 12178webecray 12179#else 12180wenotbecray 12181#endif 12182 12183_ACEOF 12184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12185 $EGREP "webecray" >/dev/null 2>&1; then 12186 ac_cv_os_cray=yes 12187else 12188 ac_cv_os_cray=no 12189fi 12190rm -f conftest* 12191 12192fi 12193{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 12194$as_echo "$ac_cv_os_cray" >&6; } 12195if test $ac_cv_os_cray = yes; then 12196 for ac_func in _getb67 GETB67 getb67; do 12197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12198{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12199$as_echo_n "checking for $ac_func... " >&6; } 12200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12201 $as_echo_n "(cached) " >&6 12202else 12203 cat >conftest.$ac_ext <<_ACEOF 12204/* confdefs.h. */ 12205_ACEOF 12206cat confdefs.h >>conftest.$ac_ext 12207cat >>conftest.$ac_ext <<_ACEOF 12208/* end confdefs.h. */ 12209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12210 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12211#define $ac_func innocuous_$ac_func 12212 12213/* System header to define __stub macros and hopefully few prototypes, 12214 which can conflict with char $ac_func (); below. 12215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12216 <limits.h> exists even on freestanding compilers. */ 12217 12218#ifdef __STDC__ 12219# include <limits.h> 12220#else 12221# include <assert.h> 12222#endif 12223 12224#undef $ac_func 12225 12226/* Override any GCC internal prototype to avoid an error. 12227 Use char because int might match the return type of a GCC 12228 builtin and then its argument prototype would still apply. */ 12229#ifdef __cplusplus 12230extern "C" 12231#endif 12232char $ac_func (); 12233/* The GNU C library defines this for functions which it implements 12234 to always fail with ENOSYS. Some functions are actually named 12235 something starting with __ and the normal name is an alias. */ 12236#if defined __stub_$ac_func || defined __stub___$ac_func 12237choke me 12238#endif 12239 12240int 12241main () 12242{ 12243return $ac_func (); 12244 ; 12245 return 0; 12246} 12247_ACEOF 12248rm -f conftest.$ac_objext conftest$ac_exeext 12249if { (ac_try="$ac_link" 12250case "(($ac_try" in 12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12252 *) ac_try_echo=$ac_try;; 12253esac 12254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12255$as_echo "$ac_try_echo") >&5 12256 (eval "$ac_link") 2>conftest.er1 12257 ac_status=$? 12258 grep -v '^ *+' conftest.er1 >conftest.err 12259 rm -f conftest.er1 12260 cat conftest.err >&5 12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12262 (exit $ac_status); } && { 12263 test -z "$ac_c_werror_flag" || 12264 test ! -s conftest.err 12265 } && test -s conftest$ac_exeext && { 12266 test "$cross_compiling" = yes || 12267 $as_test_x conftest$ac_exeext 12268 }; then 12269 eval "$as_ac_var=yes" 12270else 12271 $as_echo "$as_me: failed program was:" >&5 12272sed 's/^/| /' conftest.$ac_ext >&5 12273 12274 eval "$as_ac_var=no" 12275fi 12276 12277rm -rf conftest.dSYM 12278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12279 conftest$ac_exeext conftest.$ac_ext 12280fi 12281ac_res=`eval 'as_val=${'$as_ac_var'} 12282 $as_echo "$as_val"'` 12283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12284$as_echo "$ac_res" >&6; } 12285as_val=`eval 'as_val=${'$as_ac_var'} 12286 $as_echo "$as_val"'` 12287 if test "x$as_val" = x""yes; then 12288 12289cat >>confdefs.h <<_ACEOF 12290#define CRAY_STACKSEG_END $ac_func 12291_ACEOF 12292 12293 break 12294fi 12295 12296 done 12297fi 12298 12299{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 12300$as_echo_n "checking stack direction for C alloca... " >&6; } 12301if test "${ac_cv_c_stack_direction+set}" = set; then 12302 $as_echo_n "(cached) " >&6 12303else 12304 if test "$cross_compiling" = yes; then 12305 ac_cv_c_stack_direction=0 12306else 12307 cat >conftest.$ac_ext <<_ACEOF 12308/* confdefs.h. */ 12309_ACEOF 12310cat confdefs.h >>conftest.$ac_ext 12311cat >>conftest.$ac_ext <<_ACEOF 12312/* end confdefs.h. */ 12313$ac_includes_default 12314int 12315find_stack_direction () 12316{ 12317 static char *addr = 0; 12318 auto char dummy; 12319 if (addr == 0) 12320 { 12321 addr = &dummy; 12322 return find_stack_direction (); 12323 } 12324 else 12325 return (&dummy > addr) ? 1 : -1; 12326} 12327 12328int 12329main () 12330{ 12331 return find_stack_direction () < 0; 12332} 12333_ACEOF 12334rm -f conftest$ac_exeext 12335if { (ac_try="$ac_link" 12336case "(($ac_try" in 12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12338 *) ac_try_echo=$ac_try;; 12339esac 12340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12341$as_echo "$ac_try_echo") >&5 12342 (eval "$ac_link") 2>&5 12343 ac_status=$? 12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12346 { (case "(($ac_try" in 12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12348 *) ac_try_echo=$ac_try;; 12349esac 12350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12351$as_echo "$ac_try_echo") >&5 12352 (eval "$ac_try") 2>&5 12353 ac_status=$? 12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12355 (exit $ac_status); }; }; then 12356 ac_cv_c_stack_direction=1 12357else 12358 $as_echo "$as_me: program exited with status $ac_status" >&5 12359$as_echo "$as_me: failed program was:" >&5 12360sed 's/^/| /' conftest.$ac_ext >&5 12361 12362( exit $ac_status ) 12363ac_cv_c_stack_direction=-1 12364fi 12365rm -rf conftest.dSYM 12366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12367fi 12368 12369 12370fi 12371{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 12372$as_echo "$ac_cv_c_stack_direction" >&6; } 12373 12374cat >>confdefs.h <<_ACEOF 12375#define STACK_DIRECTION $ac_cv_c_stack_direction 12376_ACEOF 12377 12378 12379fi 12380 12381{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 12382$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 12383if test "${ac_cv_func_getpgrp_void+set}" = set; then 12384 $as_echo_n "(cached) " >&6 12385else 12386 # Use it with a single arg. 12387cat >conftest.$ac_ext <<_ACEOF 12388/* confdefs.h. */ 12389_ACEOF 12390cat confdefs.h >>conftest.$ac_ext 12391cat >>conftest.$ac_ext <<_ACEOF 12392/* end confdefs.h. */ 12393$ac_includes_default 12394int 12395main () 12396{ 12397getpgrp (0); 12398 ; 12399 return 0; 12400} 12401_ACEOF 12402rm -f conftest.$ac_objext 12403if { (ac_try="$ac_compile" 12404case "(($ac_try" in 12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12406 *) ac_try_echo=$ac_try;; 12407esac 12408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12409$as_echo "$ac_try_echo") >&5 12410 (eval "$ac_compile") 2>conftest.er1 12411 ac_status=$? 12412 grep -v '^ *+' conftest.er1 >conftest.err 12413 rm -f conftest.er1 12414 cat conftest.err >&5 12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); } && { 12417 test -z "$ac_c_werror_flag" || 12418 test ! -s conftest.err 12419 } && test -s conftest.$ac_objext; then 12420 ac_cv_func_getpgrp_void=no 12421else 12422 $as_echo "$as_me: failed program was:" >&5 12423sed 's/^/| /' conftest.$ac_ext >&5 12424 12425 ac_cv_func_getpgrp_void=yes 12426fi 12427 12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12429 12430fi 12431{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 12432$as_echo "$ac_cv_func_getpgrp_void" >&6; } 12433if test $ac_cv_func_getpgrp_void = yes; then 12434 12435cat >>confdefs.h <<\_ACEOF 12436#define GETPGRP_VOID 1 12437_ACEOF 12438 12439fi 12440 12441if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 12442 $as_echo_n "(cached) " >&6 12443else 12444 ac_cv_func_setvbuf_reversed=no 12445fi 12446 12447 12448 12449for ac_func in vprintf 12450do 12451as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12452{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12453$as_echo_n "checking for $ac_func... " >&6; } 12454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12455 $as_echo_n "(cached) " >&6 12456else 12457 cat >conftest.$ac_ext <<_ACEOF 12458/* confdefs.h. */ 12459_ACEOF 12460cat confdefs.h >>conftest.$ac_ext 12461cat >>conftest.$ac_ext <<_ACEOF 12462/* end confdefs.h. */ 12463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12465#define $ac_func innocuous_$ac_func 12466 12467/* System header to define __stub macros and hopefully few prototypes, 12468 which can conflict with char $ac_func (); below. 12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12470 <limits.h> exists even on freestanding compilers. */ 12471 12472#ifdef __STDC__ 12473# include <limits.h> 12474#else 12475# include <assert.h> 12476#endif 12477 12478#undef $ac_func 12479 12480/* Override any GCC internal prototype to avoid an error. 12481 Use char because int might match the return type of a GCC 12482 builtin and then its argument prototype would still apply. */ 12483#ifdef __cplusplus 12484extern "C" 12485#endif 12486char $ac_func (); 12487/* The GNU C library defines this for functions which it implements 12488 to always fail with ENOSYS. Some functions are actually named 12489 something starting with __ and the normal name is an alias. */ 12490#if defined __stub_$ac_func || defined __stub___$ac_func 12491choke me 12492#endif 12493 12494int 12495main () 12496{ 12497return $ac_func (); 12498 ; 12499 return 0; 12500} 12501_ACEOF 12502rm -f conftest.$ac_objext conftest$ac_exeext 12503if { (ac_try="$ac_link" 12504case "(($ac_try" in 12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12506 *) ac_try_echo=$ac_try;; 12507esac 12508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12509$as_echo "$ac_try_echo") >&5 12510 (eval "$ac_link") 2>conftest.er1 12511 ac_status=$? 12512 grep -v '^ *+' conftest.er1 >conftest.err 12513 rm -f conftest.er1 12514 cat conftest.err >&5 12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); } && { 12517 test -z "$ac_c_werror_flag" || 12518 test ! -s conftest.err 12519 } && test -s conftest$ac_exeext && { 12520 test "$cross_compiling" = yes || 12521 $as_test_x conftest$ac_exeext 12522 }; then 12523 eval "$as_ac_var=yes" 12524else 12525 $as_echo "$as_me: failed program was:" >&5 12526sed 's/^/| /' conftest.$ac_ext >&5 12527 12528 eval "$as_ac_var=no" 12529fi 12530 12531rm -rf conftest.dSYM 12532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12533 conftest$ac_exeext conftest.$ac_ext 12534fi 12535ac_res=`eval 'as_val=${'$as_ac_var'} 12536 $as_echo "$as_val"'` 12537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12538$as_echo "$ac_res" >&6; } 12539as_val=`eval 'as_val=${'$as_ac_var'} 12540 $as_echo "$as_val"'` 12541 if test "x$as_val" = x""yes; then 12542 cat >>confdefs.h <<_ACEOF 12543#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12544_ACEOF 12545 12546{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 12547$as_echo_n "checking for _doprnt... " >&6; } 12548if test "${ac_cv_func__doprnt+set}" = set; then 12549 $as_echo_n "(cached) " >&6 12550else 12551 cat >conftest.$ac_ext <<_ACEOF 12552/* confdefs.h. */ 12553_ACEOF 12554cat confdefs.h >>conftest.$ac_ext 12555cat >>conftest.$ac_ext <<_ACEOF 12556/* end confdefs.h. */ 12557/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 12558 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12559#define _doprnt innocuous__doprnt 12560 12561/* System header to define __stub macros and hopefully few prototypes, 12562 which can conflict with char _doprnt (); below. 12563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12564 <limits.h> exists even on freestanding compilers. */ 12565 12566#ifdef __STDC__ 12567# include <limits.h> 12568#else 12569# include <assert.h> 12570#endif 12571 12572#undef _doprnt 12573 12574/* Override any GCC internal prototype to avoid an error. 12575 Use char because int might match the return type of a GCC 12576 builtin and then its argument prototype would still apply. */ 12577#ifdef __cplusplus 12578extern "C" 12579#endif 12580char _doprnt (); 12581/* The GNU C library defines this for functions which it implements 12582 to always fail with ENOSYS. Some functions are actually named 12583 something starting with __ and the normal name is an alias. */ 12584#if defined __stub__doprnt || defined __stub____doprnt 12585choke me 12586#endif 12587 12588int 12589main () 12590{ 12591return _doprnt (); 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596rm -f conftest.$ac_objext conftest$ac_exeext 12597if { (ac_try="$ac_link" 12598case "(($ac_try" in 12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12600 *) ac_try_echo=$ac_try;; 12601esac 12602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12603$as_echo "$ac_try_echo") >&5 12604 (eval "$ac_link") 2>conftest.er1 12605 ac_status=$? 12606 grep -v '^ *+' conftest.er1 >conftest.err 12607 rm -f conftest.er1 12608 cat conftest.err >&5 12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12610 (exit $ac_status); } && { 12611 test -z "$ac_c_werror_flag" || 12612 test ! -s conftest.err 12613 } && test -s conftest$ac_exeext && { 12614 test "$cross_compiling" = yes || 12615 $as_test_x conftest$ac_exeext 12616 }; then 12617 ac_cv_func__doprnt=yes 12618else 12619 $as_echo "$as_me: failed program was:" >&5 12620sed 's/^/| /' conftest.$ac_ext >&5 12621 12622 ac_cv_func__doprnt=no 12623fi 12624 12625rm -rf conftest.dSYM 12626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12627 conftest$ac_exeext conftest.$ac_ext 12628fi 12629{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 12630$as_echo "$ac_cv_func__doprnt" >&6; } 12631if test "x$ac_cv_func__doprnt" = x""yes; then 12632 12633cat >>confdefs.h <<\_ACEOF 12634#define HAVE_DOPRNT 1 12635_ACEOF 12636 12637fi 12638 12639fi 12640done 12641 12642 12643{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5 12644$as_echo_n "checking for working strcoll... " >&6; } 12645if test "${ac_cv_func_strcoll_works+set}" = set; then 12646 $as_echo_n "(cached) " >&6 12647else 12648 if test "$cross_compiling" = yes; then 12649 ac_cv_func_strcoll_works=no 12650else 12651 cat >conftest.$ac_ext <<_ACEOF 12652/* confdefs.h. */ 12653_ACEOF 12654cat confdefs.h >>conftest.$ac_ext 12655cat >>conftest.$ac_ext <<_ACEOF 12656/* end confdefs.h. */ 12657$ac_includes_default 12658int 12659main () 12660{ 12661return (strcoll ("abc", "def") >= 0 || 12662 strcoll ("ABC", "DEF") >= 0 || 12663 strcoll ("123", "456") >= 0) 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668rm -f conftest$ac_exeext 12669if { (ac_try="$ac_link" 12670case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673esac 12674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12675$as_echo "$ac_try_echo") >&5 12676 (eval "$ac_link") 2>&5 12677 ac_status=$? 12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12680 { (case "(($ac_try" in 12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12682 *) ac_try_echo=$ac_try;; 12683esac 12684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12685$as_echo "$ac_try_echo") >&5 12686 (eval "$ac_try") 2>&5 12687 ac_status=$? 12688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12689 (exit $ac_status); }; }; then 12690 ac_cv_func_strcoll_works=yes 12691else 12692 $as_echo "$as_me: program exited with status $ac_status" >&5 12693$as_echo "$as_me: failed program was:" >&5 12694sed 's/^/| /' conftest.$ac_ext >&5 12695 12696( exit $ac_status ) 12697ac_cv_func_strcoll_works=no 12698fi 12699rm -rf conftest.dSYM 12700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12701fi 12702 12703 12704fi 12705{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 12706$as_echo "$ac_cv_func_strcoll_works" >&6; } 12707if test $ac_cv_func_strcoll_works = yes; then 12708 12709cat >>confdefs.h <<\_ACEOF 12710#define HAVE_STRCOLL 1 12711_ACEOF 12712 12713fi 12714 12715 12716 12717if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then 12718 MALLOC_TARGET=alloca 12719 MALLOC_SRC=alloca.c 12720 12721 MALLOC_LIB='-lmalloc' 12722 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' 12723 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' 12724 MALLOC_DEP='$(MALLOC_LIBRARY)' 12725fi 12726 12727if test "$ac_cv_func_vprintf" = no; then 12728 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5 12729$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } 12730 cat >conftest.$ac_ext <<_ACEOF 12731/* confdefs.h. */ 12732_ACEOF 12733cat confdefs.h >>conftest.$ac_ext 12734cat >>conftest.$ac_ext <<_ACEOF 12735/* end confdefs.h. */ 12736#include <stdio.h> 12737 12738_ACEOF 12739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12740 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then 12741 ac_cv_func_vprintf=yes 12742fi 12743rm -f conftest* 12744 12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5 12746$as_echo "$ac_cv_func_vprintf" >&6; } 12747 if test $ac_cv_func_vprintf = yes; then 12748 cat >>confdefs.h <<\_ACEOF 12749#define HAVE_VPRINTF 1 12750_ACEOF 12751 12752 fi 12753fi 12754 12755if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then 12756 case " $LIBOBJS " in 12757 *" vprint.$ac_objext "* ) ;; 12758 *) LIBOBJS="$LIBOBJS vprint.$ac_objext" 12759 ;; 12760esac 12761 12762fi 12763 12764{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 12765$as_echo_n "checking return type of signal handlers... " >&6; } 12766if test "${ac_cv_type_signal+set}" = set; then 12767 $as_echo_n "(cached) " >&6 12768else 12769 cat >conftest.$ac_ext <<_ACEOF 12770/* confdefs.h. */ 12771_ACEOF 12772cat confdefs.h >>conftest.$ac_ext 12773cat >>conftest.$ac_ext <<_ACEOF 12774/* end confdefs.h. */ 12775#include <sys/types.h> 12776#include <signal.h> 12777 12778int 12779main () 12780{ 12781return *(signal (0, 0)) (0) == 1; 12782 ; 12783 return 0; 12784} 12785_ACEOF 12786rm -f conftest.$ac_objext 12787if { (ac_try="$ac_compile" 12788case "(($ac_try" in 12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12790 *) ac_try_echo=$ac_try;; 12791esac 12792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12793$as_echo "$ac_try_echo") >&5 12794 (eval "$ac_compile") 2>conftest.er1 12795 ac_status=$? 12796 grep -v '^ *+' conftest.er1 >conftest.err 12797 rm -f conftest.er1 12798 cat conftest.err >&5 12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12800 (exit $ac_status); } && { 12801 test -z "$ac_c_werror_flag" || 12802 test ! -s conftest.err 12803 } && test -s conftest.$ac_objext; then 12804 ac_cv_type_signal=int 12805else 12806 $as_echo "$as_me: failed program was:" >&5 12807sed 's/^/| /' conftest.$ac_ext >&5 12808 12809 ac_cv_type_signal=void 12810fi 12811 12812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12813fi 12814{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 12815$as_echo "$ac_cv_type_signal" >&6; } 12816 12817cat >>confdefs.h <<_ACEOF 12818#define RETSIGTYPE $ac_cv_type_signal 12819_ACEOF 12820 12821 12822 12823{ $as_echo "$as_me:$LINENO: checking for __setostype" >&5 12824$as_echo_n "checking for __setostype... " >&6; } 12825if test "${ac_cv_func___setostype+set}" = set; then 12826 $as_echo_n "(cached) " >&6 12827else 12828 cat >conftest.$ac_ext <<_ACEOF 12829/* confdefs.h. */ 12830_ACEOF 12831cat confdefs.h >>conftest.$ac_ext 12832cat >>conftest.$ac_ext <<_ACEOF 12833/* end confdefs.h. */ 12834/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype. 12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12836#define __setostype innocuous___setostype 12837 12838/* System header to define __stub macros and hopefully few prototypes, 12839 which can conflict with char __setostype (); below. 12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12841 <limits.h> exists even on freestanding compilers. */ 12842 12843#ifdef __STDC__ 12844# include <limits.h> 12845#else 12846# include <assert.h> 12847#endif 12848 12849#undef __setostype 12850 12851/* Override any GCC internal prototype to avoid an error. 12852 Use char because int might match the return type of a GCC 12853 builtin and then its argument prototype would still apply. */ 12854#ifdef __cplusplus 12855extern "C" 12856#endif 12857char __setostype (); 12858/* The GNU C library defines this for functions which it implements 12859 to always fail with ENOSYS. Some functions are actually named 12860 something starting with __ and the normal name is an alias. */ 12861#if defined __stub___setostype || defined __stub_____setostype 12862choke me 12863#endif 12864 12865int 12866main () 12867{ 12868return __setostype (); 12869 ; 12870 return 0; 12871} 12872_ACEOF 12873rm -f conftest.$ac_objext conftest$ac_exeext 12874if { (ac_try="$ac_link" 12875case "(($ac_try" in 12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12877 *) ac_try_echo=$ac_try;; 12878esac 12879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12880$as_echo "$ac_try_echo") >&5 12881 (eval "$ac_link") 2>conftest.er1 12882 ac_status=$? 12883 grep -v '^ *+' conftest.er1 >conftest.err 12884 rm -f conftest.er1 12885 cat conftest.err >&5 12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12887 (exit $ac_status); } && { 12888 test -z "$ac_c_werror_flag" || 12889 test ! -s conftest.err 12890 } && test -s conftest$ac_exeext && { 12891 test "$cross_compiling" = yes || 12892 $as_test_x conftest$ac_exeext 12893 }; then 12894 ac_cv_func___setostype=yes 12895else 12896 $as_echo "$as_me: failed program was:" >&5 12897sed 's/^/| /' conftest.$ac_ext >&5 12898 12899 ac_cv_func___setostype=no 12900fi 12901 12902rm -rf conftest.dSYM 12903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12904 conftest$ac_exeext conftest.$ac_ext 12905fi 12906{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5 12907$as_echo "$ac_cv_func___setostype" >&6; } 12908if test "x$ac_cv_func___setostype" = x""yes; then 12909 cat >>confdefs.h <<\_ACEOF 12910#define HAVE_SETOSTYPE 1 12911_ACEOF 12912 12913fi 12914 12915{ $as_echo "$as_me:$LINENO: checking for wait3" >&5 12916$as_echo_n "checking for wait3... " >&6; } 12917if test "${ac_cv_func_wait3+set}" = set; then 12918 $as_echo_n "(cached) " >&6 12919else 12920 cat >conftest.$ac_ext <<_ACEOF 12921/* confdefs.h. */ 12922_ACEOF 12923cat confdefs.h >>conftest.$ac_ext 12924cat >>conftest.$ac_ext <<_ACEOF 12925/* end confdefs.h. */ 12926/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3. 12927 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12928#define wait3 innocuous_wait3 12929 12930/* System header to define __stub macros and hopefully few prototypes, 12931 which can conflict with char wait3 (); below. 12932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12933 <limits.h> exists even on freestanding compilers. */ 12934 12935#ifdef __STDC__ 12936# include <limits.h> 12937#else 12938# include <assert.h> 12939#endif 12940 12941#undef wait3 12942 12943/* Override any GCC internal prototype to avoid an error. 12944 Use char because int might match the return type of a GCC 12945 builtin and then its argument prototype would still apply. */ 12946#ifdef __cplusplus 12947extern "C" 12948#endif 12949char wait3 (); 12950/* The GNU C library defines this for functions which it implements 12951 to always fail with ENOSYS. Some functions are actually named 12952 something starting with __ and the normal name is an alias. */ 12953#if defined __stub_wait3 || defined __stub___wait3 12954choke me 12955#endif 12956 12957int 12958main () 12959{ 12960return wait3 (); 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965rm -f conftest.$ac_objext conftest$ac_exeext 12966if { (ac_try="$ac_link" 12967case "(($ac_try" in 12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12969 *) ac_try_echo=$ac_try;; 12970esac 12971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12972$as_echo "$ac_try_echo") >&5 12973 (eval "$ac_link") 2>conftest.er1 12974 ac_status=$? 12975 grep -v '^ *+' conftest.er1 >conftest.err 12976 rm -f conftest.er1 12977 cat conftest.err >&5 12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12979 (exit $ac_status); } && { 12980 test -z "$ac_c_werror_flag" || 12981 test ! -s conftest.err 12982 } && test -s conftest$ac_exeext && { 12983 test "$cross_compiling" = yes || 12984 $as_test_x conftest$ac_exeext 12985 }; then 12986 ac_cv_func_wait3=yes 12987else 12988 $as_echo "$as_me: failed program was:" >&5 12989sed 's/^/| /' conftest.$ac_ext >&5 12990 12991 ac_cv_func_wait3=no 12992fi 12993 12994rm -rf conftest.dSYM 12995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12996 conftest$ac_exeext conftest.$ac_ext 12997fi 12998{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5 12999$as_echo "$ac_cv_func_wait3" >&6; } 13000if test "x$ac_cv_func_wait3" = x""yes; then 13001 cat >>confdefs.h <<\_ACEOF 13002#define HAVE_WAIT3 1 13003_ACEOF 13004 13005fi 13006 13007{ $as_echo "$as_me:$LINENO: checking for isinf" >&5 13008$as_echo_n "checking for isinf... " >&6; } 13009if test "${ac_cv_func_isinf+set}" = set; then 13010 $as_echo_n "(cached) " >&6 13011else 13012 cat >conftest.$ac_ext <<_ACEOF 13013/* confdefs.h. */ 13014_ACEOF 13015cat confdefs.h >>conftest.$ac_ext 13016cat >>conftest.$ac_ext <<_ACEOF 13017/* end confdefs.h. */ 13018/* Define isinf to an innocuous variant, in case <limits.h> declares isinf. 13019 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13020#define isinf innocuous_isinf 13021 13022/* System header to define __stub macros and hopefully few prototypes, 13023 which can conflict with char isinf (); below. 13024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13025 <limits.h> exists even on freestanding compilers. */ 13026 13027#ifdef __STDC__ 13028# include <limits.h> 13029#else 13030# include <assert.h> 13031#endif 13032 13033#undef isinf 13034 13035/* Override any GCC internal prototype to avoid an error. 13036 Use char because int might match the return type of a GCC 13037 builtin and then its argument prototype would still apply. */ 13038#ifdef __cplusplus 13039extern "C" 13040#endif 13041char isinf (); 13042/* The GNU C library defines this for functions which it implements 13043 to always fail with ENOSYS. Some functions are actually named 13044 something starting with __ and the normal name is an alias. */ 13045#if defined __stub_isinf || defined __stub___isinf 13046choke me 13047#endif 13048 13049int 13050main () 13051{ 13052return isinf (); 13053 ; 13054 return 0; 13055} 13056_ACEOF 13057rm -f conftest.$ac_objext conftest$ac_exeext 13058if { (ac_try="$ac_link" 13059case "(($ac_try" in 13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13061 *) ac_try_echo=$ac_try;; 13062esac 13063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13064$as_echo "$ac_try_echo") >&5 13065 (eval "$ac_link") 2>conftest.er1 13066 ac_status=$? 13067 grep -v '^ *+' conftest.er1 >conftest.err 13068 rm -f conftest.er1 13069 cat conftest.err >&5 13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13071 (exit $ac_status); } && { 13072 test -z "$ac_c_werror_flag" || 13073 test ! -s conftest.err 13074 } && test -s conftest$ac_exeext && { 13075 test "$cross_compiling" = yes || 13076 $as_test_x conftest$ac_exeext 13077 }; then 13078 ac_cv_func_isinf=yes 13079else 13080 $as_echo "$as_me: failed program was:" >&5 13081sed 's/^/| /' conftest.$ac_ext >&5 13082 13083 ac_cv_func_isinf=no 13084fi 13085 13086rm -rf conftest.dSYM 13087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13088 conftest$ac_exeext conftest.$ac_ext 13089fi 13090{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 13091$as_echo "$ac_cv_func_isinf" >&6; } 13092if test "x$ac_cv_func_isinf" = x""yes; then 13093 cat >>confdefs.h <<\_ACEOF 13094#define HAVE_ISINF_IN_LIBC 1 13095_ACEOF 13096 13097fi 13098 13099{ $as_echo "$as_me:$LINENO: checking for isnan" >&5 13100$as_echo_n "checking for isnan... " >&6; } 13101if test "${ac_cv_func_isnan+set}" = set; then 13102 $as_echo_n "(cached) " >&6 13103else 13104 cat >conftest.$ac_ext <<_ACEOF 13105/* confdefs.h. */ 13106_ACEOF 13107cat confdefs.h >>conftest.$ac_ext 13108cat >>conftest.$ac_ext <<_ACEOF 13109/* end confdefs.h. */ 13110/* Define isnan to an innocuous variant, in case <limits.h> declares isnan. 13111 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13112#define isnan innocuous_isnan 13113 13114/* System header to define __stub macros and hopefully few prototypes, 13115 which can conflict with char isnan (); below. 13116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13117 <limits.h> exists even on freestanding compilers. */ 13118 13119#ifdef __STDC__ 13120# include <limits.h> 13121#else 13122# include <assert.h> 13123#endif 13124 13125#undef isnan 13126 13127/* Override any GCC internal prototype to avoid an error. 13128 Use char because int might match the return type of a GCC 13129 builtin and then its argument prototype would still apply. */ 13130#ifdef __cplusplus 13131extern "C" 13132#endif 13133char isnan (); 13134/* The GNU C library defines this for functions which it implements 13135 to always fail with ENOSYS. Some functions are actually named 13136 something starting with __ and the normal name is an alias. */ 13137#if defined __stub_isnan || defined __stub___isnan 13138choke me 13139#endif 13140 13141int 13142main () 13143{ 13144return isnan (); 13145 ; 13146 return 0; 13147} 13148_ACEOF 13149rm -f conftest.$ac_objext conftest$ac_exeext 13150if { (ac_try="$ac_link" 13151case "(($ac_try" in 13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13153 *) ac_try_echo=$ac_try;; 13154esac 13155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13156$as_echo "$ac_try_echo") >&5 13157 (eval "$ac_link") 2>conftest.er1 13158 ac_status=$? 13159 grep -v '^ *+' conftest.er1 >conftest.err 13160 rm -f conftest.er1 13161 cat conftest.err >&5 13162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13163 (exit $ac_status); } && { 13164 test -z "$ac_c_werror_flag" || 13165 test ! -s conftest.err 13166 } && test -s conftest$ac_exeext && { 13167 test "$cross_compiling" = yes || 13168 $as_test_x conftest$ac_exeext 13169 }; then 13170 ac_cv_func_isnan=yes 13171else 13172 $as_echo "$as_me: failed program was:" >&5 13173sed 's/^/| /' conftest.$ac_ext >&5 13174 13175 ac_cv_func_isnan=no 13176fi 13177 13178rm -rf conftest.dSYM 13179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13180 conftest$ac_exeext conftest.$ac_ext 13181fi 13182{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5 13183$as_echo "$ac_cv_func_isnan" >&6; } 13184if test "x$ac_cv_func_isnan" = x""yes; then 13185 cat >>confdefs.h <<\_ACEOF 13186#define HAVE_ISNAN_IN_LIBC 1 13187_ACEOF 13188 13189fi 13190 13191 13192{ $as_echo "$as_me:$LINENO: checking for mkfifo" >&5 13193$as_echo_n "checking for mkfifo... " >&6; } 13194if test "${ac_cv_func_mkfifo+set}" = set; then 13195 $as_echo_n "(cached) " >&6 13196else 13197 cat >conftest.$ac_ext <<_ACEOF 13198/* confdefs.h. */ 13199_ACEOF 13200cat confdefs.h >>conftest.$ac_ext 13201cat >>conftest.$ac_ext <<_ACEOF 13202/* end confdefs.h. */ 13203/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo. 13204 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13205#define mkfifo innocuous_mkfifo 13206 13207/* System header to define __stub macros and hopefully few prototypes, 13208 which can conflict with char mkfifo (); below. 13209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13210 <limits.h> exists even on freestanding compilers. */ 13211 13212#ifdef __STDC__ 13213# include <limits.h> 13214#else 13215# include <assert.h> 13216#endif 13217 13218#undef mkfifo 13219 13220/* Override any GCC internal prototype to avoid an error. 13221 Use char because int might match the return type of a GCC 13222 builtin and then its argument prototype would still apply. */ 13223#ifdef __cplusplus 13224extern "C" 13225#endif 13226char mkfifo (); 13227/* The GNU C library defines this for functions which it implements 13228 to always fail with ENOSYS. Some functions are actually named 13229 something starting with __ and the normal name is an alias. */ 13230#if defined __stub_mkfifo || defined __stub___mkfifo 13231choke me 13232#endif 13233 13234int 13235main () 13236{ 13237return mkfifo (); 13238 ; 13239 return 0; 13240} 13241_ACEOF 13242rm -f conftest.$ac_objext conftest$ac_exeext 13243if { (ac_try="$ac_link" 13244case "(($ac_try" in 13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13246 *) ac_try_echo=$ac_try;; 13247esac 13248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13249$as_echo "$ac_try_echo") >&5 13250 (eval "$ac_link") 2>conftest.er1 13251 ac_status=$? 13252 grep -v '^ *+' conftest.er1 >conftest.err 13253 rm -f conftest.er1 13254 cat conftest.err >&5 13255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); } && { 13257 test -z "$ac_c_werror_flag" || 13258 test ! -s conftest.err 13259 } && test -s conftest$ac_exeext && { 13260 test "$cross_compiling" = yes || 13261 $as_test_x conftest$ac_exeext 13262 }; then 13263 ac_cv_func_mkfifo=yes 13264else 13265 $as_echo "$as_me: failed program was:" >&5 13266sed 's/^/| /' conftest.$ac_ext >&5 13267 13268 ac_cv_func_mkfifo=no 13269fi 13270 13271rm -rf conftest.dSYM 13272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13273 conftest$ac_exeext conftest.$ac_ext 13274fi 13275{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5 13276$as_echo "$ac_cv_func_mkfifo" >&6; } 13277if test "x$ac_cv_func_mkfifo" = x""yes; then 13278 cat >>confdefs.h <<\_ACEOF 13279#define HAVE_MKFIFO 1 13280_ACEOF 13281 13282else 13283 cat >>confdefs.h <<\_ACEOF 13284#define MKFIFO_MISSING 1 13285_ACEOF 13286 13287fi 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ 13314 getpagesize getpeername getrlimit getrusage gettimeofday \ 13315 kill killpg lstat readlink sbrk select setdtablesize \ 13316 setitimer tcgetpgrp uname ulimit waitpid 13317do 13318as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13319{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13320$as_echo_n "checking for $ac_func... " >&6; } 13321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13322 $as_echo_n "(cached) " >&6 13323else 13324 cat >conftest.$ac_ext <<_ACEOF 13325/* confdefs.h. */ 13326_ACEOF 13327cat confdefs.h >>conftest.$ac_ext 13328cat >>conftest.$ac_ext <<_ACEOF 13329/* end confdefs.h. */ 13330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13331 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13332#define $ac_func innocuous_$ac_func 13333 13334/* System header to define __stub macros and hopefully few prototypes, 13335 which can conflict with char $ac_func (); below. 13336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13337 <limits.h> exists even on freestanding compilers. */ 13338 13339#ifdef __STDC__ 13340# include <limits.h> 13341#else 13342# include <assert.h> 13343#endif 13344 13345#undef $ac_func 13346 13347/* Override any GCC internal prototype to avoid an error. 13348 Use char because int might match the return type of a GCC 13349 builtin and then its argument prototype would still apply. */ 13350#ifdef __cplusplus 13351extern "C" 13352#endif 13353char $ac_func (); 13354/* The GNU C library defines this for functions which it implements 13355 to always fail with ENOSYS. Some functions are actually named 13356 something starting with __ and the normal name is an alias. */ 13357#if defined __stub_$ac_func || defined __stub___$ac_func 13358choke me 13359#endif 13360 13361int 13362main () 13363{ 13364return $ac_func (); 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369rm -f conftest.$ac_objext conftest$ac_exeext 13370if { (ac_try="$ac_link" 13371case "(($ac_try" in 13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13373 *) ac_try_echo=$ac_try;; 13374esac 13375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13376$as_echo "$ac_try_echo") >&5 13377 (eval "$ac_link") 2>conftest.er1 13378 ac_status=$? 13379 grep -v '^ *+' conftest.er1 >conftest.err 13380 rm -f conftest.er1 13381 cat conftest.err >&5 13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13383 (exit $ac_status); } && { 13384 test -z "$ac_c_werror_flag" || 13385 test ! -s conftest.err 13386 } && test -s conftest$ac_exeext && { 13387 test "$cross_compiling" = yes || 13388 $as_test_x conftest$ac_exeext 13389 }; then 13390 eval "$as_ac_var=yes" 13391else 13392 $as_echo "$as_me: failed program was:" >&5 13393sed 's/^/| /' conftest.$ac_ext >&5 13394 13395 eval "$as_ac_var=no" 13396fi 13397 13398rm -rf conftest.dSYM 13399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13400 conftest$ac_exeext conftest.$ac_ext 13401fi 13402ac_res=`eval 'as_val=${'$as_ac_var'} 13403 $as_echo "$as_val"'` 13404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13405$as_echo "$ac_res" >&6; } 13406as_val=`eval 'as_val=${'$as_ac_var'} 13407 $as_echo "$as_val"'` 13408 if test "x$as_val" = x""yes; then 13409 cat >>confdefs.h <<_ACEOF 13410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13411_ACEOF 13412 13413fi 13414done 13415 13416 13417for ac_func in rename 13418do 13419as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13420{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13421$as_echo_n "checking for $ac_func... " >&6; } 13422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13423 $as_echo_n "(cached) " >&6 13424else 13425 cat >conftest.$ac_ext <<_ACEOF 13426/* confdefs.h. */ 13427_ACEOF 13428cat confdefs.h >>conftest.$ac_ext 13429cat >>conftest.$ac_ext <<_ACEOF 13430/* end confdefs.h. */ 13431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13432 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13433#define $ac_func innocuous_$ac_func 13434 13435/* System header to define __stub macros and hopefully few prototypes, 13436 which can conflict with char $ac_func (); below. 13437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13438 <limits.h> exists even on freestanding compilers. */ 13439 13440#ifdef __STDC__ 13441# include <limits.h> 13442#else 13443# include <assert.h> 13444#endif 13445 13446#undef $ac_func 13447 13448/* Override any GCC internal prototype to avoid an error. 13449 Use char because int might match the return type of a GCC 13450 builtin and then its argument prototype would still apply. */ 13451#ifdef __cplusplus 13452extern "C" 13453#endif 13454char $ac_func (); 13455/* The GNU C library defines this for functions which it implements 13456 to always fail with ENOSYS. Some functions are actually named 13457 something starting with __ and the normal name is an alias. */ 13458#if defined __stub_$ac_func || defined __stub___$ac_func 13459choke me 13460#endif 13461 13462int 13463main () 13464{ 13465return $ac_func (); 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470rm -f conftest.$ac_objext conftest$ac_exeext 13471if { (ac_try="$ac_link" 13472case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13477$as_echo "$ac_try_echo") >&5 13478 (eval "$ac_link") 2>conftest.er1 13479 ac_status=$? 13480 grep -v '^ *+' conftest.er1 >conftest.err 13481 rm -f conftest.er1 13482 cat conftest.err >&5 13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13484 (exit $ac_status); } && { 13485 test -z "$ac_c_werror_flag" || 13486 test ! -s conftest.err 13487 } && test -s conftest$ac_exeext && { 13488 test "$cross_compiling" = yes || 13489 $as_test_x conftest$ac_exeext 13490 }; then 13491 eval "$as_ac_var=yes" 13492else 13493 $as_echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 eval "$as_ac_var=no" 13497fi 13498 13499rm -rf conftest.dSYM 13500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13501 conftest$ac_exeext conftest.$ac_ext 13502fi 13503ac_res=`eval 'as_val=${'$as_ac_var'} 13504 $as_echo "$as_val"'` 13505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13506$as_echo "$ac_res" >&6; } 13507as_val=`eval 'as_val=${'$as_ac_var'} 13508 $as_echo "$as_val"'` 13509 if test "x$as_val" = x""yes; then 13510 cat >>confdefs.h <<_ACEOF 13511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13512_ACEOF 13513 13514else 13515 case " $LIBOBJS " in 13516 *" $ac_func.$ac_objext "* ) ;; 13517 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13518 ;; 13519esac 13520 13521fi 13522done 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553for ac_func in bcopy bzero confstr fnmatch \ 13554 getaddrinfo gethostbyname getservbyname getservent inet_aton \ 13555 memmove pathconf putenv raise regcomp regexec \ 13556 setenv setlinebuf setlocale setvbuf siginterrupt strchr \ 13557 sysconf tcgetattr times ttyname tzset unsetenv 13558do 13559as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13560{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13561$as_echo_n "checking for $ac_func... " >&6; } 13562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13563 $as_echo_n "(cached) " >&6 13564else 13565 cat >conftest.$ac_ext <<_ACEOF 13566/* confdefs.h. */ 13567_ACEOF 13568cat confdefs.h >>conftest.$ac_ext 13569cat >>conftest.$ac_ext <<_ACEOF 13570/* end confdefs.h. */ 13571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13572 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13573#define $ac_func innocuous_$ac_func 13574 13575/* System header to define __stub macros and hopefully few prototypes, 13576 which can conflict with char $ac_func (); below. 13577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13578 <limits.h> exists even on freestanding compilers. */ 13579 13580#ifdef __STDC__ 13581# include <limits.h> 13582#else 13583# include <assert.h> 13584#endif 13585 13586#undef $ac_func 13587 13588/* Override any GCC internal prototype to avoid an error. 13589 Use char because int might match the return type of a GCC 13590 builtin and then its argument prototype would still apply. */ 13591#ifdef __cplusplus 13592extern "C" 13593#endif 13594char $ac_func (); 13595/* The GNU C library defines this for functions which it implements 13596 to always fail with ENOSYS. Some functions are actually named 13597 something starting with __ and the normal name is an alias. */ 13598#if defined __stub_$ac_func || defined __stub___$ac_func 13599choke me 13600#endif 13601 13602int 13603main () 13604{ 13605return $ac_func (); 13606 ; 13607 return 0; 13608} 13609_ACEOF 13610rm -f conftest.$ac_objext conftest$ac_exeext 13611if { (ac_try="$ac_link" 13612case "(($ac_try" in 13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13614 *) ac_try_echo=$ac_try;; 13615esac 13616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13617$as_echo "$ac_try_echo") >&5 13618 (eval "$ac_link") 2>conftest.er1 13619 ac_status=$? 13620 grep -v '^ *+' conftest.er1 >conftest.err 13621 rm -f conftest.er1 13622 cat conftest.err >&5 13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); } && { 13625 test -z "$ac_c_werror_flag" || 13626 test ! -s conftest.err 13627 } && test -s conftest$ac_exeext && { 13628 test "$cross_compiling" = yes || 13629 $as_test_x conftest$ac_exeext 13630 }; then 13631 eval "$as_ac_var=yes" 13632else 13633 $as_echo "$as_me: failed program was:" >&5 13634sed 's/^/| /' conftest.$ac_ext >&5 13635 13636 eval "$as_ac_var=no" 13637fi 13638 13639rm -rf conftest.dSYM 13640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13641 conftest$ac_exeext conftest.$ac_ext 13642fi 13643ac_res=`eval 'as_val=${'$as_ac_var'} 13644 $as_echo "$as_val"'` 13645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13646$as_echo "$ac_res" >&6; } 13647as_val=`eval 'as_val=${'$as_ac_var'} 13648 $as_echo "$as_val"'` 13649 if test "x$as_val" = x""yes; then 13650 cat >>confdefs.h <<_ACEOF 13651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13652_ACEOF 13653 13654fi 13655done 13656 13657 13658 13659 13660 13661 13662for ac_func in vsnprintf snprintf vasprintf asprintf 13663do 13664as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13665{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13666$as_echo_n "checking for $ac_func... " >&6; } 13667if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13668 $as_echo_n "(cached) " >&6 13669else 13670 cat >conftest.$ac_ext <<_ACEOF 13671/* confdefs.h. */ 13672_ACEOF 13673cat confdefs.h >>conftest.$ac_ext 13674cat >>conftest.$ac_ext <<_ACEOF 13675/* end confdefs.h. */ 13676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13678#define $ac_func innocuous_$ac_func 13679 13680/* System header to define __stub macros and hopefully few prototypes, 13681 which can conflict with char $ac_func (); below. 13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13683 <limits.h> exists even on freestanding compilers. */ 13684 13685#ifdef __STDC__ 13686# include <limits.h> 13687#else 13688# include <assert.h> 13689#endif 13690 13691#undef $ac_func 13692 13693/* Override any GCC internal prototype to avoid an error. 13694 Use char because int might match the return type of a GCC 13695 builtin and then its argument prototype would still apply. */ 13696#ifdef __cplusplus 13697extern "C" 13698#endif 13699char $ac_func (); 13700/* The GNU C library defines this for functions which it implements 13701 to always fail with ENOSYS. Some functions are actually named 13702 something starting with __ and the normal name is an alias. */ 13703#if defined __stub_$ac_func || defined __stub___$ac_func 13704choke me 13705#endif 13706 13707int 13708main () 13709{ 13710return $ac_func (); 13711 ; 13712 return 0; 13713} 13714_ACEOF 13715rm -f conftest.$ac_objext conftest$ac_exeext 13716if { (ac_try="$ac_link" 13717case "(($ac_try" in 13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13719 *) ac_try_echo=$ac_try;; 13720esac 13721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13722$as_echo "$ac_try_echo") >&5 13723 (eval "$ac_link") 2>conftest.er1 13724 ac_status=$? 13725 grep -v '^ *+' conftest.er1 >conftest.err 13726 rm -f conftest.er1 13727 cat conftest.err >&5 13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13729 (exit $ac_status); } && { 13730 test -z "$ac_c_werror_flag" || 13731 test ! -s conftest.err 13732 } && test -s conftest$ac_exeext && { 13733 test "$cross_compiling" = yes || 13734 $as_test_x conftest$ac_exeext 13735 }; then 13736 eval "$as_ac_var=yes" 13737else 13738 $as_echo "$as_me: failed program was:" >&5 13739sed 's/^/| /' conftest.$ac_ext >&5 13740 13741 eval "$as_ac_var=no" 13742fi 13743 13744rm -rf conftest.dSYM 13745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13746 conftest$ac_exeext conftest.$ac_ext 13747fi 13748ac_res=`eval 'as_val=${'$as_ac_var'} 13749 $as_echo "$as_val"'` 13750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13751$as_echo "$ac_res" >&6; } 13752as_val=`eval 'as_val=${'$as_ac_var'} 13753 $as_echo "$as_val"'` 13754 if test "x$as_val" = x""yes; then 13755 cat >>confdefs.h <<_ACEOF 13756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13757_ACEOF 13758 13759fi 13760done 13761 13762 13763 13764 13765 13766 13767 13768for ac_func in isascii isblank isgraph isprint isspace isxdigit 13769do 13770as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13771{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13772$as_echo_n "checking for $ac_func... " >&6; } 13773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13774 $as_echo_n "(cached) " >&6 13775else 13776 cat >conftest.$ac_ext <<_ACEOF 13777/* confdefs.h. */ 13778_ACEOF 13779cat confdefs.h >>conftest.$ac_ext 13780cat >>conftest.$ac_ext <<_ACEOF 13781/* end confdefs.h. */ 13782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13784#define $ac_func innocuous_$ac_func 13785 13786/* System header to define __stub macros and hopefully few prototypes, 13787 which can conflict with char $ac_func (); below. 13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13789 <limits.h> exists even on freestanding compilers. */ 13790 13791#ifdef __STDC__ 13792# include <limits.h> 13793#else 13794# include <assert.h> 13795#endif 13796 13797#undef $ac_func 13798 13799/* Override any GCC internal prototype to avoid an error. 13800 Use char because int might match the return type of a GCC 13801 builtin and then its argument prototype would still apply. */ 13802#ifdef __cplusplus 13803extern "C" 13804#endif 13805char $ac_func (); 13806/* The GNU C library defines this for functions which it implements 13807 to always fail with ENOSYS. Some functions are actually named 13808 something starting with __ and the normal name is an alias. */ 13809#if defined __stub_$ac_func || defined __stub___$ac_func 13810choke me 13811#endif 13812 13813int 13814main () 13815{ 13816return $ac_func (); 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821rm -f conftest.$ac_objext conftest$ac_exeext 13822if { (ac_try="$ac_link" 13823case "(($ac_try" in 13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13825 *) ac_try_echo=$ac_try;; 13826esac 13827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13828$as_echo "$ac_try_echo") >&5 13829 (eval "$ac_link") 2>conftest.er1 13830 ac_status=$? 13831 grep -v '^ *+' conftest.er1 >conftest.err 13832 rm -f conftest.er1 13833 cat conftest.err >&5 13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13835 (exit $ac_status); } && { 13836 test -z "$ac_c_werror_flag" || 13837 test ! -s conftest.err 13838 } && test -s conftest$ac_exeext && { 13839 test "$cross_compiling" = yes || 13840 $as_test_x conftest$ac_exeext 13841 }; then 13842 eval "$as_ac_var=yes" 13843else 13844 $as_echo "$as_me: failed program was:" >&5 13845sed 's/^/| /' conftest.$ac_ext >&5 13846 13847 eval "$as_ac_var=no" 13848fi 13849 13850rm -rf conftest.dSYM 13851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13852 conftest$ac_exeext conftest.$ac_ext 13853fi 13854ac_res=`eval 'as_val=${'$as_ac_var'} 13855 $as_echo "$as_val"'` 13856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13857$as_echo "$ac_res" >&6; } 13858as_val=`eval 'as_val=${'$as_ac_var'} 13859 $as_echo "$as_val"'` 13860 if test "x$as_val" = x""yes; then 13861 cat >>confdefs.h <<_ACEOF 13862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13863_ACEOF 13864 13865fi 13866done 13867 13868 13869 13870 13871for ac_func in getpwent getpwnam getpwuid 13872do 13873as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13874{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13875$as_echo_n "checking for $ac_func... " >&6; } 13876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13877 $as_echo_n "(cached) " >&6 13878else 13879 cat >conftest.$ac_ext <<_ACEOF 13880/* confdefs.h. */ 13881_ACEOF 13882cat confdefs.h >>conftest.$ac_ext 13883cat >>conftest.$ac_ext <<_ACEOF 13884/* end confdefs.h. */ 13885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13887#define $ac_func innocuous_$ac_func 13888 13889/* System header to define __stub macros and hopefully few prototypes, 13890 which can conflict with char $ac_func (); below. 13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13892 <limits.h> exists even on freestanding compilers. */ 13893 13894#ifdef __STDC__ 13895# include <limits.h> 13896#else 13897# include <assert.h> 13898#endif 13899 13900#undef $ac_func 13901 13902/* Override any GCC internal prototype to avoid an error. 13903 Use char because int might match the return type of a GCC 13904 builtin and then its argument prototype would still apply. */ 13905#ifdef __cplusplus 13906extern "C" 13907#endif 13908char $ac_func (); 13909/* The GNU C library defines this for functions which it implements 13910 to always fail with ENOSYS. Some functions are actually named 13911 something starting with __ and the normal name is an alias. */ 13912#if defined __stub_$ac_func || defined __stub___$ac_func 13913choke me 13914#endif 13915 13916int 13917main () 13918{ 13919return $ac_func (); 13920 ; 13921 return 0; 13922} 13923_ACEOF 13924rm -f conftest.$ac_objext conftest$ac_exeext 13925if { (ac_try="$ac_link" 13926case "(($ac_try" in 13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13928 *) ac_try_echo=$ac_try;; 13929esac 13930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13931$as_echo "$ac_try_echo") >&5 13932 (eval "$ac_link") 2>conftest.er1 13933 ac_status=$? 13934 grep -v '^ *+' conftest.er1 >conftest.err 13935 rm -f conftest.er1 13936 cat conftest.err >&5 13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13938 (exit $ac_status); } && { 13939 test -z "$ac_c_werror_flag" || 13940 test ! -s conftest.err 13941 } && test -s conftest$ac_exeext && { 13942 test "$cross_compiling" = yes || 13943 $as_test_x conftest$ac_exeext 13944 }; then 13945 eval "$as_ac_var=yes" 13946else 13947 $as_echo "$as_me: failed program was:" >&5 13948sed 's/^/| /' conftest.$ac_ext >&5 13949 13950 eval "$as_ac_var=no" 13951fi 13952 13953rm -rf conftest.dSYM 13954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13955 conftest$ac_exeext conftest.$ac_ext 13956fi 13957ac_res=`eval 'as_val=${'$as_ac_var'} 13958 $as_echo "$as_val"'` 13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13960$as_echo "$ac_res" >&6; } 13961as_val=`eval 'as_val=${'$as_ac_var'} 13962 $as_echo "$as_val"'` 13963 if test "x$as_val" = x""yes; then 13964 cat >>confdefs.h <<_ACEOF 13965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13966_ACEOF 13967 13968fi 13969done 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr 13980do 13981as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13982{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13983$as_echo_n "checking for $ac_func... " >&6; } 13984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13985 $as_echo_n "(cached) " >&6 13986else 13987 cat >conftest.$ac_ext <<_ACEOF 13988/* confdefs.h. */ 13989_ACEOF 13990cat confdefs.h >>conftest.$ac_ext 13991cat >>conftest.$ac_ext <<_ACEOF 13992/* end confdefs.h. */ 13993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13995#define $ac_func innocuous_$ac_func 13996 13997/* System header to define __stub macros and hopefully few prototypes, 13998 which can conflict with char $ac_func (); below. 13999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14000 <limits.h> exists even on freestanding compilers. */ 14001 14002#ifdef __STDC__ 14003# include <limits.h> 14004#else 14005# include <assert.h> 14006#endif 14007 14008#undef $ac_func 14009 14010/* Override any GCC internal prototype to avoid an error. 14011 Use char because int might match the return type of a GCC 14012 builtin and then its argument prototype would still apply. */ 14013#ifdef __cplusplus 14014extern "C" 14015#endif 14016char $ac_func (); 14017/* The GNU C library defines this for functions which it implements 14018 to always fail with ENOSYS. Some functions are actually named 14019 something starting with __ and the normal name is an alias. */ 14020#if defined __stub_$ac_func || defined __stub___$ac_func 14021choke me 14022#endif 14023 14024int 14025main () 14026{ 14027return $ac_func (); 14028 ; 14029 return 0; 14030} 14031_ACEOF 14032rm -f conftest.$ac_objext conftest$ac_exeext 14033if { (ac_try="$ac_link" 14034case "(($ac_try" in 14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14036 *) ac_try_echo=$ac_try;; 14037esac 14038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14039$as_echo "$ac_try_echo") >&5 14040 (eval "$ac_link") 2>conftest.er1 14041 ac_status=$? 14042 grep -v '^ *+' conftest.er1 >conftest.err 14043 rm -f conftest.er1 14044 cat conftest.err >&5 14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14046 (exit $ac_status); } && { 14047 test -z "$ac_c_werror_flag" || 14048 test ! -s conftest.err 14049 } && test -s conftest$ac_exeext && { 14050 test "$cross_compiling" = yes || 14051 $as_test_x conftest$ac_exeext 14052 }; then 14053 eval "$as_ac_var=yes" 14054else 14055 $as_echo "$as_me: failed program was:" >&5 14056sed 's/^/| /' conftest.$ac_ext >&5 14057 14058 eval "$as_ac_var=no" 14059fi 14060 14061rm -rf conftest.dSYM 14062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14063 conftest$ac_exeext conftest.$ac_ext 14064fi 14065ac_res=`eval 'as_val=${'$as_ac_var'} 14066 $as_echo "$as_val"'` 14067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14068$as_echo "$ac_res" >&6; } 14069as_val=`eval 'as_val=${'$as_ac_var'} 14070 $as_echo "$as_val"'` 14071 if test "x$as_val" = x""yes; then 14072 cat >>confdefs.h <<_ACEOF 14073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14074_ACEOF 14075 14076else 14077 case " $LIBOBJS " in 14078 *" $ac_func.$ac_objext "* ) ;; 14079 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14080 ;; 14081esac 14082 14083fi 14084done 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax 14095do 14096as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14097{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14098$as_echo_n "checking for $ac_func... " >&6; } 14099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14100 $as_echo_n "(cached) " >&6 14101else 14102 cat >conftest.$ac_ext <<_ACEOF 14103/* confdefs.h. */ 14104_ACEOF 14105cat confdefs.h >>conftest.$ac_ext 14106cat >>conftest.$ac_ext <<_ACEOF 14107/* end confdefs.h. */ 14108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14109 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14110#define $ac_func innocuous_$ac_func 14111 14112/* System header to define __stub macros and hopefully few prototypes, 14113 which can conflict with char $ac_func (); below. 14114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14115 <limits.h> exists even on freestanding compilers. */ 14116 14117#ifdef __STDC__ 14118# include <limits.h> 14119#else 14120# include <assert.h> 14121#endif 14122 14123#undef $ac_func 14124 14125/* Override any GCC internal prototype to avoid an error. 14126 Use char because int might match the return type of a GCC 14127 builtin and then its argument prototype would still apply. */ 14128#ifdef __cplusplus 14129extern "C" 14130#endif 14131char $ac_func (); 14132/* The GNU C library defines this for functions which it implements 14133 to always fail with ENOSYS. Some functions are actually named 14134 something starting with __ and the normal name is an alias. */ 14135#if defined __stub_$ac_func || defined __stub___$ac_func 14136choke me 14137#endif 14138 14139int 14140main () 14141{ 14142return $ac_func (); 14143 ; 14144 return 0; 14145} 14146_ACEOF 14147rm -f conftest.$ac_objext conftest$ac_exeext 14148if { (ac_try="$ac_link" 14149case "(($ac_try" in 14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14151 *) ac_try_echo=$ac_try;; 14152esac 14153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14154$as_echo "$ac_try_echo") >&5 14155 (eval "$ac_link") 2>conftest.er1 14156 ac_status=$? 14157 grep -v '^ *+' conftest.er1 >conftest.err 14158 rm -f conftest.er1 14159 cat conftest.err >&5 14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14161 (exit $ac_status); } && { 14162 test -z "$ac_c_werror_flag" || 14163 test ! -s conftest.err 14164 } && test -s conftest$ac_exeext && { 14165 test "$cross_compiling" = yes || 14166 $as_test_x conftest$ac_exeext 14167 }; then 14168 eval "$as_ac_var=yes" 14169else 14170 $as_echo "$as_me: failed program was:" >&5 14171sed 's/^/| /' conftest.$ac_ext >&5 14172 14173 eval "$as_ac_var=no" 14174fi 14175 14176rm -rf conftest.dSYM 14177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14178 conftest$ac_exeext conftest.$ac_ext 14179fi 14180ac_res=`eval 'as_val=${'$as_ac_var'} 14181 $as_echo "$as_val"'` 14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14183$as_echo "$ac_res" >&6; } 14184as_val=`eval 'as_val=${'$as_ac_var'} 14185 $as_echo "$as_val"'` 14186 if test "x$as_val" = x""yes; then 14187 cat >>confdefs.h <<_ACEOF 14188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14189_ACEOF 14190 14191else 14192 case " $LIBOBJS " in 14193 *" $ac_func.$ac_objext "* ) ;; 14194 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14195 ;; 14196esac 14197 14198fi 14199done 14200 14201 14202 14203for ac_func in fdprintf 14204do 14205as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14206{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 14207$as_echo_n "checking for $ac_func... " >&6; } 14208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14209 $as_echo_n "(cached) " >&6 14210else 14211 cat >conftest.$ac_ext <<_ACEOF 14212/* confdefs.h. */ 14213_ACEOF 14214cat confdefs.h >>conftest.$ac_ext 14215cat >>conftest.$ac_ext <<_ACEOF 14216/* end confdefs.h. */ 14217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14219#define $ac_func innocuous_$ac_func 14220 14221/* System header to define __stub macros and hopefully few prototypes, 14222 which can conflict with char $ac_func (); below. 14223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14224 <limits.h> exists even on freestanding compilers. */ 14225 14226#ifdef __STDC__ 14227# include <limits.h> 14228#else 14229# include <assert.h> 14230#endif 14231 14232#undef $ac_func 14233 14234/* Override any GCC internal prototype to avoid an error. 14235 Use char because int might match the return type of a GCC 14236 builtin and then its argument prototype would still apply. */ 14237#ifdef __cplusplus 14238extern "C" 14239#endif 14240char $ac_func (); 14241/* The GNU C library defines this for functions which it implements 14242 to always fail with ENOSYS. Some functions are actually named 14243 something starting with __ and the normal name is an alias. */ 14244#if defined __stub_$ac_func || defined __stub___$ac_func 14245choke me 14246#endif 14247 14248int 14249main () 14250{ 14251return $ac_func (); 14252 ; 14253 return 0; 14254} 14255_ACEOF 14256rm -f conftest.$ac_objext conftest$ac_exeext 14257if { (ac_try="$ac_link" 14258case "(($ac_try" in 14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14260 *) ac_try_echo=$ac_try;; 14261esac 14262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14263$as_echo "$ac_try_echo") >&5 14264 (eval "$ac_link") 2>conftest.er1 14265 ac_status=$? 14266 grep -v '^ *+' conftest.er1 >conftest.err 14267 rm -f conftest.er1 14268 cat conftest.err >&5 14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14270 (exit $ac_status); } && { 14271 test -z "$ac_c_werror_flag" || 14272 test ! -s conftest.err 14273 } && test -s conftest$ac_exeext && { 14274 test "$cross_compiling" = yes || 14275 $as_test_x conftest$ac_exeext 14276 }; then 14277 eval "$as_ac_var=yes" 14278else 14279 $as_echo "$as_me: failed program was:" >&5 14280sed 's/^/| /' conftest.$ac_ext >&5 14281 14282 eval "$as_ac_var=no" 14283fi 14284 14285rm -rf conftest.dSYM 14286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14287 conftest$ac_exeext conftest.$ac_ext 14288fi 14289ac_res=`eval 'as_val=${'$as_ac_var'} 14290 $as_echo "$as_val"'` 14291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14292$as_echo "$ac_res" >&6; } 14293as_val=`eval 'as_val=${'$as_ac_var'} 14294 $as_echo "$as_val"'` 14295 if test "x$as_val" = x""yes; then 14296 cat >>confdefs.h <<_ACEOF 14297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14298_ACEOF 14299 14300else 14301 case " $LIBOBJS " in 14302 *" $ac_func.$ac_objext "* ) ;; 14303 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14304 ;; 14305esac 14306 14307fi 14308done 14309 14310 14311 14312{ $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5 14313$as_echo_n "checking whether confstr is declared... " >&6; } 14314if test "${ac_cv_have_decl_confstr+set}" = set; then 14315 $as_echo_n "(cached) " >&6 14316else 14317 cat >conftest.$ac_ext <<_ACEOF 14318/* confdefs.h. */ 14319_ACEOF 14320cat confdefs.h >>conftest.$ac_ext 14321cat >>conftest.$ac_ext <<_ACEOF 14322/* end confdefs.h. */ 14323$ac_includes_default 14324int 14325main () 14326{ 14327#ifndef confstr 14328 (void) confstr; 14329#endif 14330 14331 ; 14332 return 0; 14333} 14334_ACEOF 14335rm -f conftest.$ac_objext 14336if { (ac_try="$ac_compile" 14337case "(($ac_try" in 14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14339 *) ac_try_echo=$ac_try;; 14340esac 14341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14342$as_echo "$ac_try_echo") >&5 14343 (eval "$ac_compile") 2>conftest.er1 14344 ac_status=$? 14345 grep -v '^ *+' conftest.er1 >conftest.err 14346 rm -f conftest.er1 14347 cat conftest.err >&5 14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14349 (exit $ac_status); } && { 14350 test -z "$ac_c_werror_flag" || 14351 test ! -s conftest.err 14352 } && test -s conftest.$ac_objext; then 14353 ac_cv_have_decl_confstr=yes 14354else 14355 $as_echo "$as_me: failed program was:" >&5 14356sed 's/^/| /' conftest.$ac_ext >&5 14357 14358 ac_cv_have_decl_confstr=no 14359fi 14360 14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14362fi 14363{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5 14364$as_echo "$ac_cv_have_decl_confstr" >&6; } 14365if test "x$ac_cv_have_decl_confstr" = x""yes; then 14366 14367cat >>confdefs.h <<_ACEOF 14368#define HAVE_DECL_CONFSTR 1 14369_ACEOF 14370 14371 14372else 14373 cat >>confdefs.h <<_ACEOF 14374#define HAVE_DECL_CONFSTR 0 14375_ACEOF 14376 14377 14378fi 14379 14380 14381{ $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5 14382$as_echo_n "checking whether printf is declared... " >&6; } 14383if test "${ac_cv_have_decl_printf+set}" = set; then 14384 $as_echo_n "(cached) " >&6 14385else 14386 cat >conftest.$ac_ext <<_ACEOF 14387/* confdefs.h. */ 14388_ACEOF 14389cat confdefs.h >>conftest.$ac_ext 14390cat >>conftest.$ac_ext <<_ACEOF 14391/* end confdefs.h. */ 14392$ac_includes_default 14393int 14394main () 14395{ 14396#ifndef printf 14397 (void) printf; 14398#endif 14399 14400 ; 14401 return 0; 14402} 14403_ACEOF 14404rm -f conftest.$ac_objext 14405if { (ac_try="$ac_compile" 14406case "(($ac_try" in 14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14408 *) ac_try_echo=$ac_try;; 14409esac 14410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14411$as_echo "$ac_try_echo") >&5 14412 (eval "$ac_compile") 2>conftest.er1 14413 ac_status=$? 14414 grep -v '^ *+' conftest.er1 >conftest.err 14415 rm -f conftest.er1 14416 cat conftest.err >&5 14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14418 (exit $ac_status); } && { 14419 test -z "$ac_c_werror_flag" || 14420 test ! -s conftest.err 14421 } && test -s conftest.$ac_objext; then 14422 ac_cv_have_decl_printf=yes 14423else 14424 $as_echo "$as_me: failed program was:" >&5 14425sed 's/^/| /' conftest.$ac_ext >&5 14426 14427 ac_cv_have_decl_printf=no 14428fi 14429 14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14431fi 14432{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5 14433$as_echo "$ac_cv_have_decl_printf" >&6; } 14434if test "x$ac_cv_have_decl_printf" = x""yes; then 14435 14436cat >>confdefs.h <<_ACEOF 14437#define HAVE_DECL_PRINTF 1 14438_ACEOF 14439 14440 14441else 14442 cat >>confdefs.h <<_ACEOF 14443#define HAVE_DECL_PRINTF 0 14444_ACEOF 14445 14446 14447fi 14448 14449 14450{ $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 14451$as_echo_n "checking whether sbrk is declared... " >&6; } 14452if test "${ac_cv_have_decl_sbrk+set}" = set; then 14453 $as_echo_n "(cached) " >&6 14454else 14455 cat >conftest.$ac_ext <<_ACEOF 14456/* confdefs.h. */ 14457_ACEOF 14458cat confdefs.h >>conftest.$ac_ext 14459cat >>conftest.$ac_ext <<_ACEOF 14460/* end confdefs.h. */ 14461$ac_includes_default 14462int 14463main () 14464{ 14465#ifndef sbrk 14466 (void) sbrk; 14467#endif 14468 14469 ; 14470 return 0; 14471} 14472_ACEOF 14473rm -f conftest.$ac_objext 14474if { (ac_try="$ac_compile" 14475case "(($ac_try" in 14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14477 *) ac_try_echo=$ac_try;; 14478esac 14479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14480$as_echo "$ac_try_echo") >&5 14481 (eval "$ac_compile") 2>conftest.er1 14482 ac_status=$? 14483 grep -v '^ *+' conftest.er1 >conftest.err 14484 rm -f conftest.er1 14485 cat conftest.err >&5 14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 (exit $ac_status); } && { 14488 test -z "$ac_c_werror_flag" || 14489 test ! -s conftest.err 14490 } && test -s conftest.$ac_objext; then 14491 ac_cv_have_decl_sbrk=yes 14492else 14493 $as_echo "$as_me: failed program was:" >&5 14494sed 's/^/| /' conftest.$ac_ext >&5 14495 14496 ac_cv_have_decl_sbrk=no 14497fi 14498 14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14500fi 14501{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 14502$as_echo "$ac_cv_have_decl_sbrk" >&6; } 14503if test "x$ac_cv_have_decl_sbrk" = x""yes; then 14504 14505cat >>confdefs.h <<_ACEOF 14506#define HAVE_DECL_SBRK 1 14507_ACEOF 14508 14509 14510else 14511 cat >>confdefs.h <<_ACEOF 14512#define HAVE_DECL_SBRK 0 14513_ACEOF 14514 14515 14516fi 14517 14518 14519{ $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5 14520$as_echo_n "checking whether setregid is declared... " >&6; } 14521if test "${ac_cv_have_decl_setregid+set}" = set; then 14522 $as_echo_n "(cached) " >&6 14523else 14524 cat >conftest.$ac_ext <<_ACEOF 14525/* confdefs.h. */ 14526_ACEOF 14527cat confdefs.h >>conftest.$ac_ext 14528cat >>conftest.$ac_ext <<_ACEOF 14529/* end confdefs.h. */ 14530$ac_includes_default 14531int 14532main () 14533{ 14534#ifndef setregid 14535 (void) setregid; 14536#endif 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542rm -f conftest.$ac_objext 14543if { (ac_try="$ac_compile" 14544case "(($ac_try" in 14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14546 *) ac_try_echo=$ac_try;; 14547esac 14548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14549$as_echo "$ac_try_echo") >&5 14550 (eval "$ac_compile") 2>conftest.er1 14551 ac_status=$? 14552 grep -v '^ *+' conftest.er1 >conftest.err 14553 rm -f conftest.er1 14554 cat conftest.err >&5 14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14556 (exit $ac_status); } && { 14557 test -z "$ac_c_werror_flag" || 14558 test ! -s conftest.err 14559 } && test -s conftest.$ac_objext; then 14560 ac_cv_have_decl_setregid=yes 14561else 14562 $as_echo "$as_me: failed program was:" >&5 14563sed 's/^/| /' conftest.$ac_ext >&5 14564 14565 ac_cv_have_decl_setregid=no 14566fi 14567 14568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14569fi 14570{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5 14571$as_echo "$ac_cv_have_decl_setregid" >&6; } 14572if test "x$ac_cv_have_decl_setregid" = x""yes; then 14573 14574cat >>confdefs.h <<_ACEOF 14575#define HAVE_DECL_SETREGID 1 14576_ACEOF 14577 14578 14579else 14580 cat >>confdefs.h <<_ACEOF 14581#define HAVE_DECL_SETREGID 0 14582_ACEOF 14583 14584 14585fi 14586 14587 14588{ $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5 14589$as_echo_n "checking whether strcpy is declared... " >&6; } 14590if test "${ac_cv_have_decl_strcpy+set}" = set; then 14591 $as_echo_n "(cached) " >&6 14592else 14593 cat >conftest.$ac_ext <<_ACEOF 14594/* confdefs.h. */ 14595_ACEOF 14596cat confdefs.h >>conftest.$ac_ext 14597cat >>conftest.$ac_ext <<_ACEOF 14598/* end confdefs.h. */ 14599$ac_includes_default 14600int 14601main () 14602{ 14603#ifndef strcpy 14604 (void) strcpy; 14605#endif 14606 14607 ; 14608 return 0; 14609} 14610_ACEOF 14611rm -f conftest.$ac_objext 14612if { (ac_try="$ac_compile" 14613case "(($ac_try" in 14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14615 *) ac_try_echo=$ac_try;; 14616esac 14617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14618$as_echo "$ac_try_echo") >&5 14619 (eval "$ac_compile") 2>conftest.er1 14620 ac_status=$? 14621 grep -v '^ *+' conftest.er1 >conftest.err 14622 rm -f conftest.er1 14623 cat conftest.err >&5 14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14625 (exit $ac_status); } && { 14626 test -z "$ac_c_werror_flag" || 14627 test ! -s conftest.err 14628 } && test -s conftest.$ac_objext; then 14629 ac_cv_have_decl_strcpy=yes 14630else 14631 $as_echo "$as_me: failed program was:" >&5 14632sed 's/^/| /' conftest.$ac_ext >&5 14633 14634 ac_cv_have_decl_strcpy=no 14635fi 14636 14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14638fi 14639{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5 14640$as_echo "$ac_cv_have_decl_strcpy" >&6; } 14641if test "x$ac_cv_have_decl_strcpy" = x""yes; then 14642 14643cat >>confdefs.h <<_ACEOF 14644#define HAVE_DECL_STRCPY 1 14645_ACEOF 14646 14647 14648else 14649 cat >>confdefs.h <<_ACEOF 14650#define HAVE_DECL_STRCPY 0 14651_ACEOF 14652 14653 14654fi 14655 14656 14657{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5 14658$as_echo_n "checking whether strsignal is declared... " >&6; } 14659if test "${ac_cv_have_decl_strsignal+set}" = set; then 14660 $as_echo_n "(cached) " >&6 14661else 14662 cat >conftest.$ac_ext <<_ACEOF 14663/* confdefs.h. */ 14664_ACEOF 14665cat confdefs.h >>conftest.$ac_ext 14666cat >>conftest.$ac_ext <<_ACEOF 14667/* end confdefs.h. */ 14668$ac_includes_default 14669int 14670main () 14671{ 14672#ifndef strsignal 14673 (void) strsignal; 14674#endif 14675 14676 ; 14677 return 0; 14678} 14679_ACEOF 14680rm -f conftest.$ac_objext 14681if { (ac_try="$ac_compile" 14682case "(($ac_try" in 14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14684 *) ac_try_echo=$ac_try;; 14685esac 14686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14687$as_echo "$ac_try_echo") >&5 14688 (eval "$ac_compile") 2>conftest.er1 14689 ac_status=$? 14690 grep -v '^ *+' conftest.er1 >conftest.err 14691 rm -f conftest.er1 14692 cat conftest.err >&5 14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14694 (exit $ac_status); } && { 14695 test -z "$ac_c_werror_flag" || 14696 test ! -s conftest.err 14697 } && test -s conftest.$ac_objext; then 14698 ac_cv_have_decl_strsignal=yes 14699else 14700 $as_echo "$as_me: failed program was:" >&5 14701sed 's/^/| /' conftest.$ac_ext >&5 14702 14703 ac_cv_have_decl_strsignal=no 14704fi 14705 14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14707fi 14708{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5 14709$as_echo "$ac_cv_have_decl_strsignal" >&6; } 14710if test "x$ac_cv_have_decl_strsignal" = x""yes; then 14711 14712cat >>confdefs.h <<_ACEOF 14713#define HAVE_DECL_STRSIGNAL 1 14714_ACEOF 14715 14716 14717else 14718 cat >>confdefs.h <<_ACEOF 14719#define HAVE_DECL_STRSIGNAL 0 14720_ACEOF 14721 14722 14723fi 14724 14725 14726 14727{ $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5 14728$as_echo_n "checking whether strtold is declared... " >&6; } 14729if test "${ac_cv_have_decl_strtold+set}" = set; then 14730 $as_echo_n "(cached) " >&6 14731else 14732 cat >conftest.$ac_ext <<_ACEOF 14733/* confdefs.h. */ 14734_ACEOF 14735cat confdefs.h >>conftest.$ac_ext 14736cat >>conftest.$ac_ext <<_ACEOF 14737/* end confdefs.h. */ 14738$ac_includes_default 14739int 14740main () 14741{ 14742#ifndef strtold 14743 (void) strtold; 14744#endif 14745 14746 ; 14747 return 0; 14748} 14749_ACEOF 14750rm -f conftest.$ac_objext 14751if { (ac_try="$ac_compile" 14752case "(($ac_try" in 14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14754 *) ac_try_echo=$ac_try;; 14755esac 14756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14757$as_echo "$ac_try_echo") >&5 14758 (eval "$ac_compile") 2>conftest.er1 14759 ac_status=$? 14760 grep -v '^ *+' conftest.er1 >conftest.err 14761 rm -f conftest.er1 14762 cat conftest.err >&5 14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14764 (exit $ac_status); } && { 14765 test -z "$ac_c_werror_flag" || 14766 test ! -s conftest.err 14767 } && test -s conftest.$ac_objext; then 14768 ac_cv_have_decl_strtold=yes 14769else 14770 $as_echo "$as_me: failed program was:" >&5 14771sed 's/^/| /' conftest.$ac_ext >&5 14772 14773 ac_cv_have_decl_strtold=no 14774fi 14775 14776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14777fi 14778{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5 14779$as_echo "$ac_cv_have_decl_strtold" >&6; } 14780if test "x$ac_cv_have_decl_strtold" = x""yes; then 14781 14782cat >>confdefs.h <<_ACEOF 14783#define HAVE_DECL_STRTOLD 1 14784_ACEOF 14785 14786 14787 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5 14788$as_echo_n "checking for broken strtold... " >&6; } 14789 if test "${bash_cv_strtold_broken+set}" = set; then 14790 $as_echo_n "(cached) " >&6 14791else 14792 cat >conftest.$ac_ext <<_ACEOF 14793/* confdefs.h. */ 14794_ACEOF 14795cat confdefs.h >>conftest.$ac_ext 14796cat >>conftest.$ac_ext <<_ACEOF 14797/* end confdefs.h. */ 14798#include <stdlib.h> 14799int 14800main () 14801{ 14802int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} 14803 ; 14804 return 0; 14805} 14806_ACEOF 14807rm -f conftest.$ac_objext 14808if { (ac_try="$ac_compile" 14809case "(($ac_try" in 14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14811 *) ac_try_echo=$ac_try;; 14812esac 14813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14814$as_echo "$ac_try_echo") >&5 14815 (eval "$ac_compile") 2>conftest.er1 14816 ac_status=$? 14817 grep -v '^ *+' conftest.er1 >conftest.err 14818 rm -f conftest.er1 14819 cat conftest.err >&5 14820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14821 (exit $ac_status); } && { 14822 test -z "$ac_c_werror_flag" || 14823 test ! -s conftest.err 14824 } && test -s conftest.$ac_objext; then 14825 bash_cv_strtold_broken=no 14826else 14827 $as_echo "$as_me: failed program was:" >&5 14828sed 's/^/| /' conftest.$ac_ext >&5 14829 14830 bash_cv_strtold_broken=yes 14831fi 14832 14833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14834 14835 14836fi 14837 14838 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5 14839$as_echo "$bash_cv_strtold_broken" >&6; } 14840 if test "$bash_cv_strtold_broken" = "yes" ; then 14841 cat >>confdefs.h <<\_ACEOF 14842#define STRTOLD_BROKEN 1 14843_ACEOF 14844 14845 fi 14846 14847else 14848 cat >>confdefs.h <<_ACEOF 14849#define HAVE_DECL_STRTOLD 0 14850_ACEOF 14851 14852 14853fi 14854 14855 14856 14857 14858 14859 14860 14861{ $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5 14862$as_echo_n "checking for declaration of strtoimax... " >&6; } 14863if test "${bash_cv_decl_strtoimax+set}" = set; then 14864 $as_echo_n "(cached) " >&6 14865else 14866 cat >conftest.$ac_ext <<_ACEOF 14867/* confdefs.h. */ 14868_ACEOF 14869cat confdefs.h >>conftest.$ac_ext 14870cat >>conftest.$ac_ext <<_ACEOF 14871/* end confdefs.h. */ 14872 14873#if STDC_HEADERS 14874# include <stdlib.h> 14875#endif 14876#if HAVE_INTTYPES_H 14877# include <inttypes.h> 14878#endif 14879 14880int 14881main () 14882{ 14883return !strtoimax; 14884 ; 14885 return 0; 14886} 14887_ACEOF 14888rm -f conftest.$ac_objext conftest$ac_exeext 14889if { (ac_try="$ac_link" 14890case "(($ac_try" in 14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14892 *) ac_try_echo=$ac_try;; 14893esac 14894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14895$as_echo "$ac_try_echo") >&5 14896 (eval "$ac_link") 2>conftest.er1 14897 ac_status=$? 14898 grep -v '^ *+' conftest.er1 >conftest.err 14899 rm -f conftest.er1 14900 cat conftest.err >&5 14901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14902 (exit $ac_status); } && { 14903 test -z "$ac_c_werror_flag" || 14904 test ! -s conftest.err 14905 } && test -s conftest$ac_exeext && { 14906 test "$cross_compiling" = yes || 14907 $as_test_x conftest$ac_exeext 14908 }; then 14909 bash_cv_decl_strtoimax=yes 14910else 14911 $as_echo "$as_me: failed program was:" >&5 14912sed 's/^/| /' conftest.$ac_ext >&5 14913 14914 bash_cv_decl_strtoimax=no 14915fi 14916 14917rm -rf conftest.dSYM 14918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14919 conftest$ac_exeext conftest.$ac_ext 14920fi 14921{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5 14922$as_echo "$bash_cv_decl_strtoimax" >&6; } 14923bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14924if test $bash_cv_decl_strtoimax = yes; then 14925 cat >>confdefs.h <<_ACEOF 14926#define $bash_tr_func 1 14927_ACEOF 14928 14929else 14930 cat >>confdefs.h <<_ACEOF 14931#define $bash_tr_func 0 14932_ACEOF 14933 14934fi 14935 14936 14937 14938 14939{ $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5 14940$as_echo_n "checking for declaration of strtol... " >&6; } 14941if test "${bash_cv_decl_strtol+set}" = set; then 14942 $as_echo_n "(cached) " >&6 14943else 14944 cat >conftest.$ac_ext <<_ACEOF 14945/* confdefs.h. */ 14946_ACEOF 14947cat confdefs.h >>conftest.$ac_ext 14948cat >>conftest.$ac_ext <<_ACEOF 14949/* end confdefs.h. */ 14950 14951#if STDC_HEADERS 14952# include <stdlib.h> 14953#endif 14954#if HAVE_INTTYPES_H 14955# include <inttypes.h> 14956#endif 14957 14958int 14959main () 14960{ 14961return !strtol; 14962 ; 14963 return 0; 14964} 14965_ACEOF 14966rm -f conftest.$ac_objext conftest$ac_exeext 14967if { (ac_try="$ac_link" 14968case "(($ac_try" in 14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14970 *) ac_try_echo=$ac_try;; 14971esac 14972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14973$as_echo "$ac_try_echo") >&5 14974 (eval "$ac_link") 2>conftest.er1 14975 ac_status=$? 14976 grep -v '^ *+' conftest.er1 >conftest.err 14977 rm -f conftest.er1 14978 cat conftest.err >&5 14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14980 (exit $ac_status); } && { 14981 test -z "$ac_c_werror_flag" || 14982 test ! -s conftest.err 14983 } && test -s conftest$ac_exeext && { 14984 test "$cross_compiling" = yes || 14985 $as_test_x conftest$ac_exeext 14986 }; then 14987 bash_cv_decl_strtol=yes 14988else 14989 $as_echo "$as_me: failed program was:" >&5 14990sed 's/^/| /' conftest.$ac_ext >&5 14991 14992 bash_cv_decl_strtol=no 14993fi 14994 14995rm -rf conftest.dSYM 14996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14997 conftest$ac_exeext conftest.$ac_ext 14998fi 14999{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5 15000$as_echo "$bash_cv_decl_strtol" >&6; } 15001bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15002if test $bash_cv_decl_strtol = yes; then 15003 cat >>confdefs.h <<_ACEOF 15004#define $bash_tr_func 1 15005_ACEOF 15006 15007else 15008 cat >>confdefs.h <<_ACEOF 15009#define $bash_tr_func 0 15010_ACEOF 15011 15012fi 15013 15014 15015 15016 15017{ $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5 15018$as_echo_n "checking for declaration of strtoll... " >&6; } 15019if test "${bash_cv_decl_strtoll+set}" = set; then 15020 $as_echo_n "(cached) " >&6 15021else 15022 cat >conftest.$ac_ext <<_ACEOF 15023/* confdefs.h. */ 15024_ACEOF 15025cat confdefs.h >>conftest.$ac_ext 15026cat >>conftest.$ac_ext <<_ACEOF 15027/* end confdefs.h. */ 15028 15029#if STDC_HEADERS 15030# include <stdlib.h> 15031#endif 15032#if HAVE_INTTYPES_H 15033# include <inttypes.h> 15034#endif 15035 15036int 15037main () 15038{ 15039return !strtoll; 15040 ; 15041 return 0; 15042} 15043_ACEOF 15044rm -f conftest.$ac_objext conftest$ac_exeext 15045if { (ac_try="$ac_link" 15046case "(($ac_try" in 15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15048 *) ac_try_echo=$ac_try;; 15049esac 15050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15051$as_echo "$ac_try_echo") >&5 15052 (eval "$ac_link") 2>conftest.er1 15053 ac_status=$? 15054 grep -v '^ *+' conftest.er1 >conftest.err 15055 rm -f conftest.er1 15056 cat conftest.err >&5 15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15058 (exit $ac_status); } && { 15059 test -z "$ac_c_werror_flag" || 15060 test ! -s conftest.err 15061 } && test -s conftest$ac_exeext && { 15062 test "$cross_compiling" = yes || 15063 $as_test_x conftest$ac_exeext 15064 }; then 15065 bash_cv_decl_strtoll=yes 15066else 15067 $as_echo "$as_me: failed program was:" >&5 15068sed 's/^/| /' conftest.$ac_ext >&5 15069 15070 bash_cv_decl_strtoll=no 15071fi 15072 15073rm -rf conftest.dSYM 15074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15075 conftest$ac_exeext conftest.$ac_ext 15076fi 15077{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5 15078$as_echo "$bash_cv_decl_strtoll" >&6; } 15079bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15080if test $bash_cv_decl_strtoll = yes; then 15081 cat >>confdefs.h <<_ACEOF 15082#define $bash_tr_func 1 15083_ACEOF 15084 15085else 15086 cat >>confdefs.h <<_ACEOF 15087#define $bash_tr_func 0 15088_ACEOF 15089 15090fi 15091 15092 15093 15094 15095{ $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5 15096$as_echo_n "checking for declaration of strtoul... " >&6; } 15097if test "${bash_cv_decl_strtoul+set}" = set; then 15098 $as_echo_n "(cached) " >&6 15099else 15100 cat >conftest.$ac_ext <<_ACEOF 15101/* confdefs.h. */ 15102_ACEOF 15103cat confdefs.h >>conftest.$ac_ext 15104cat >>conftest.$ac_ext <<_ACEOF 15105/* end confdefs.h. */ 15106 15107#if STDC_HEADERS 15108# include <stdlib.h> 15109#endif 15110#if HAVE_INTTYPES_H 15111# include <inttypes.h> 15112#endif 15113 15114int 15115main () 15116{ 15117return !strtoul; 15118 ; 15119 return 0; 15120} 15121_ACEOF 15122rm -f conftest.$ac_objext conftest$ac_exeext 15123if { (ac_try="$ac_link" 15124case "(($ac_try" in 15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15126 *) ac_try_echo=$ac_try;; 15127esac 15128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15129$as_echo "$ac_try_echo") >&5 15130 (eval "$ac_link") 2>conftest.er1 15131 ac_status=$? 15132 grep -v '^ *+' conftest.er1 >conftest.err 15133 rm -f conftest.er1 15134 cat conftest.err >&5 15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15136 (exit $ac_status); } && { 15137 test -z "$ac_c_werror_flag" || 15138 test ! -s conftest.err 15139 } && test -s conftest$ac_exeext && { 15140 test "$cross_compiling" = yes || 15141 $as_test_x conftest$ac_exeext 15142 }; then 15143 bash_cv_decl_strtoul=yes 15144else 15145 $as_echo "$as_me: failed program was:" >&5 15146sed 's/^/| /' conftest.$ac_ext >&5 15147 15148 bash_cv_decl_strtoul=no 15149fi 15150 15151rm -rf conftest.dSYM 15152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15153 conftest$ac_exeext conftest.$ac_ext 15154fi 15155{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5 15156$as_echo "$bash_cv_decl_strtoul" >&6; } 15157bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15158if test $bash_cv_decl_strtoul = yes; then 15159 cat >>confdefs.h <<_ACEOF 15160#define $bash_tr_func 1 15161_ACEOF 15162 15163else 15164 cat >>confdefs.h <<_ACEOF 15165#define $bash_tr_func 0 15166_ACEOF 15167 15168fi 15169 15170 15171 15172 15173{ $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5 15174$as_echo_n "checking for declaration of strtoull... " >&6; } 15175if test "${bash_cv_decl_strtoull+set}" = set; then 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat >conftest.$ac_ext <<_ACEOF 15179/* confdefs.h. */ 15180_ACEOF 15181cat confdefs.h >>conftest.$ac_ext 15182cat >>conftest.$ac_ext <<_ACEOF 15183/* end confdefs.h. */ 15184 15185#if STDC_HEADERS 15186# include <stdlib.h> 15187#endif 15188#if HAVE_INTTYPES_H 15189# include <inttypes.h> 15190#endif 15191 15192int 15193main () 15194{ 15195return !strtoull; 15196 ; 15197 return 0; 15198} 15199_ACEOF 15200rm -f conftest.$ac_objext conftest$ac_exeext 15201if { (ac_try="$ac_link" 15202case "(($ac_try" in 15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15204 *) ac_try_echo=$ac_try;; 15205esac 15206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15207$as_echo "$ac_try_echo") >&5 15208 (eval "$ac_link") 2>conftest.er1 15209 ac_status=$? 15210 grep -v '^ *+' conftest.er1 >conftest.err 15211 rm -f conftest.er1 15212 cat conftest.err >&5 15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15214 (exit $ac_status); } && { 15215 test -z "$ac_c_werror_flag" || 15216 test ! -s conftest.err 15217 } && test -s conftest$ac_exeext && { 15218 test "$cross_compiling" = yes || 15219 $as_test_x conftest$ac_exeext 15220 }; then 15221 bash_cv_decl_strtoull=yes 15222else 15223 $as_echo "$as_me: failed program was:" >&5 15224sed 's/^/| /' conftest.$ac_ext >&5 15225 15226 bash_cv_decl_strtoull=no 15227fi 15228 15229rm -rf conftest.dSYM 15230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15231 conftest$ac_exeext conftest.$ac_ext 15232fi 15233{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5 15234$as_echo "$bash_cv_decl_strtoull" >&6; } 15235bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15236if test $bash_cv_decl_strtoull = yes; then 15237 cat >>confdefs.h <<_ACEOF 15238#define $bash_tr_func 1 15239_ACEOF 15240 15241else 15242 cat >>confdefs.h <<_ACEOF 15243#define $bash_tr_func 0 15244_ACEOF 15245 15246fi 15247 15248 15249 15250 15251{ $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5 15252$as_echo_n "checking for declaration of strtoumax... " >&6; } 15253if test "${bash_cv_decl_strtoumax+set}" = set; then 15254 $as_echo_n "(cached) " >&6 15255else 15256 cat >conftest.$ac_ext <<_ACEOF 15257/* confdefs.h. */ 15258_ACEOF 15259cat confdefs.h >>conftest.$ac_ext 15260cat >>conftest.$ac_ext <<_ACEOF 15261/* end confdefs.h. */ 15262 15263#if STDC_HEADERS 15264# include <stdlib.h> 15265#endif 15266#if HAVE_INTTYPES_H 15267# include <inttypes.h> 15268#endif 15269 15270int 15271main () 15272{ 15273return !strtoumax; 15274 ; 15275 return 0; 15276} 15277_ACEOF 15278rm -f conftest.$ac_objext conftest$ac_exeext 15279if { (ac_try="$ac_link" 15280case "(($ac_try" in 15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15282 *) ac_try_echo=$ac_try;; 15283esac 15284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15285$as_echo "$ac_try_echo") >&5 15286 (eval "$ac_link") 2>conftest.er1 15287 ac_status=$? 15288 grep -v '^ *+' conftest.er1 >conftest.err 15289 rm -f conftest.er1 15290 cat conftest.err >&5 15291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15292 (exit $ac_status); } && { 15293 test -z "$ac_c_werror_flag" || 15294 test ! -s conftest.err 15295 } && test -s conftest$ac_exeext && { 15296 test "$cross_compiling" = yes || 15297 $as_test_x conftest$ac_exeext 15298 }; then 15299 bash_cv_decl_strtoumax=yes 15300else 15301 $as_echo "$as_me: failed program was:" >&5 15302sed 's/^/| /' conftest.$ac_ext >&5 15303 15304 bash_cv_decl_strtoumax=no 15305fi 15306 15307rm -rf conftest.dSYM 15308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15309 conftest$ac_exeext conftest.$ac_ext 15310fi 15311{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5 15312$as_echo "$bash_cv_decl_strtoumax" >&6; } 15313bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15314if test $bash_cv_decl_strtoumax = yes; then 15315 cat >>confdefs.h <<_ACEOF 15316#define $bash_tr_func 1 15317_ACEOF 15318 15319else 15320 cat >>confdefs.h <<_ACEOF 15321#define $bash_tr_func 0 15322_ACEOF 15323 15324fi 15325 15326 15327 15328 15329 15330 15331for ac_header in $ac_header_list 15332do 15333as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15336$as_echo_n "checking for $ac_header... " >&6; } 15337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15338 $as_echo_n "(cached) " >&6 15339fi 15340ac_res=`eval 'as_val=${'$as_ac_Header'} 15341 $as_echo "$as_val"'` 15342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15343$as_echo "$ac_res" >&6; } 15344else 15345 # Is the header compilable? 15346{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15347$as_echo_n "checking $ac_header usability... " >&6; } 15348cat >conftest.$ac_ext <<_ACEOF 15349/* confdefs.h. */ 15350_ACEOF 15351cat confdefs.h >>conftest.$ac_ext 15352cat >>conftest.$ac_ext <<_ACEOF 15353/* end confdefs.h. */ 15354$ac_includes_default 15355#include <$ac_header> 15356_ACEOF 15357rm -f conftest.$ac_objext 15358if { (ac_try="$ac_compile" 15359case "(($ac_try" in 15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15361 *) ac_try_echo=$ac_try;; 15362esac 15363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15364$as_echo "$ac_try_echo") >&5 15365 (eval "$ac_compile") 2>conftest.er1 15366 ac_status=$? 15367 grep -v '^ *+' conftest.er1 >conftest.err 15368 rm -f conftest.er1 15369 cat conftest.err >&5 15370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15371 (exit $ac_status); } && { 15372 test -z "$ac_c_werror_flag" || 15373 test ! -s conftest.err 15374 } && test -s conftest.$ac_objext; then 15375 ac_header_compiler=yes 15376else 15377 $as_echo "$as_me: failed program was:" >&5 15378sed 's/^/| /' conftest.$ac_ext >&5 15379 15380 ac_header_compiler=no 15381fi 15382 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15385$as_echo "$ac_header_compiler" >&6; } 15386 15387# Is the header present? 15388{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15389$as_echo_n "checking $ac_header presence... " >&6; } 15390cat >conftest.$ac_ext <<_ACEOF 15391/* confdefs.h. */ 15392_ACEOF 15393cat confdefs.h >>conftest.$ac_ext 15394cat >>conftest.$ac_ext <<_ACEOF 15395/* end confdefs.h. */ 15396#include <$ac_header> 15397_ACEOF 15398if { (ac_try="$ac_cpp conftest.$ac_ext" 15399case "(($ac_try" in 15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15401 *) ac_try_echo=$ac_try;; 15402esac 15403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15404$as_echo "$ac_try_echo") >&5 15405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15406 ac_status=$? 15407 grep -v '^ *+' conftest.er1 >conftest.err 15408 rm -f conftest.er1 15409 cat conftest.err >&5 15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15411 (exit $ac_status); } >/dev/null && { 15412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15413 test ! -s conftest.err 15414 }; then 15415 ac_header_preproc=yes 15416else 15417 $as_echo "$as_me: failed program was:" >&5 15418sed 's/^/| /' conftest.$ac_ext >&5 15419 15420 ac_header_preproc=no 15421fi 15422 15423rm -f conftest.err conftest.$ac_ext 15424{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15425$as_echo "$ac_header_preproc" >&6; } 15426 15427# So? What about this header? 15428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15429 yes:no: ) 15430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15431$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15433$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15434 ac_header_preproc=yes 15435 ;; 15436 no:yes:* ) 15437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15438$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15440$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15442$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15444$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15446$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15448$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15449 ( cat <<\_ASBOX 15450## ------------------------------- ## 15451## Report this to bug-bash@gnu.org ## 15452## ------------------------------- ## 15453_ASBOX 15454 ) | sed "s/^/$as_me: WARNING: /" >&2 15455 ;; 15456esac 15457{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15458$as_echo_n "checking for $ac_header... " >&6; } 15459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15460 $as_echo_n "(cached) " >&6 15461else 15462 eval "$as_ac_Header=\$ac_header_preproc" 15463fi 15464ac_res=`eval 'as_val=${'$as_ac_Header'} 15465 $as_echo "$as_val"'` 15466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15467$as_echo "$ac_res" >&6; } 15468 15469fi 15470as_val=`eval 'as_val=${'$as_ac_Header'} 15471 $as_echo "$as_val"'` 15472 if test "x$as_val" = x""yes; then 15473 cat >>confdefs.h <<_ACEOF 15474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15475_ACEOF 15476 15477fi 15478 15479done 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489for ac_func in $ac_func_list 15490do 15491as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15492{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15493$as_echo_n "checking for $ac_func... " >&6; } 15494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15495 $as_echo_n "(cached) " >&6 15496else 15497 cat >conftest.$ac_ext <<_ACEOF 15498/* confdefs.h. */ 15499_ACEOF 15500cat confdefs.h >>conftest.$ac_ext 15501cat >>conftest.$ac_ext <<_ACEOF 15502/* end confdefs.h. */ 15503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15505#define $ac_func innocuous_$ac_func 15506 15507/* System header to define __stub macros and hopefully few prototypes, 15508 which can conflict with char $ac_func (); below. 15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15510 <limits.h> exists even on freestanding compilers. */ 15511 15512#ifdef __STDC__ 15513# include <limits.h> 15514#else 15515# include <assert.h> 15516#endif 15517 15518#undef $ac_func 15519 15520/* Override any GCC internal prototype to avoid an error. 15521 Use char because int might match the return type of a GCC 15522 builtin and then its argument prototype would still apply. */ 15523#ifdef __cplusplus 15524extern "C" 15525#endif 15526char $ac_func (); 15527/* The GNU C library defines this for functions which it implements 15528 to always fail with ENOSYS. Some functions are actually named 15529 something starting with __ and the normal name is an alias. */ 15530#if defined __stub_$ac_func || defined __stub___$ac_func 15531choke me 15532#endif 15533 15534int 15535main () 15536{ 15537return $ac_func (); 15538 ; 15539 return 0; 15540} 15541_ACEOF 15542rm -f conftest.$ac_objext conftest$ac_exeext 15543if { (ac_try="$ac_link" 15544case "(($ac_try" in 15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15546 *) ac_try_echo=$ac_try;; 15547esac 15548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15549$as_echo "$ac_try_echo") >&5 15550 (eval "$ac_link") 2>conftest.er1 15551 ac_status=$? 15552 grep -v '^ *+' conftest.er1 >conftest.err 15553 rm -f conftest.er1 15554 cat conftest.err >&5 15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15556 (exit $ac_status); } && { 15557 test -z "$ac_c_werror_flag" || 15558 test ! -s conftest.err 15559 } && test -s conftest$ac_exeext && { 15560 test "$cross_compiling" = yes || 15561 $as_test_x conftest$ac_exeext 15562 }; then 15563 eval "$as_ac_var=yes" 15564else 15565 $as_echo "$as_me: failed program was:" >&5 15566sed 's/^/| /' conftest.$ac_ext >&5 15567 15568 eval "$as_ac_var=no" 15569fi 15570 15571rm -rf conftest.dSYM 15572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15573 conftest$ac_exeext conftest.$ac_ext 15574fi 15575ac_res=`eval 'as_val=${'$as_ac_var'} 15576 $as_echo "$as_val"'` 15577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15578$as_echo "$ac_res" >&6; } 15579as_val=`eval 'as_val=${'$as_ac_var'} 15580 $as_echo "$as_val"'` 15581 if test "x$as_val" = x""yes; then 15582 cat >>confdefs.h <<_ACEOF 15583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15584_ACEOF 15585 15586fi 15587done 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5 15606$as_echo_n "checking for working mktime... " >&6; } 15607if test "${ac_cv_func_working_mktime+set}" = set; then 15608 $as_echo_n "(cached) " >&6 15609else 15610 if test "$cross_compiling" = yes; then 15611 ac_cv_func_working_mktime=no 15612else 15613 cat >conftest.$ac_ext <<_ACEOF 15614/* confdefs.h. */ 15615_ACEOF 15616cat confdefs.h >>conftest.$ac_ext 15617cat >>conftest.$ac_ext <<_ACEOF 15618/* end confdefs.h. */ 15619/* Test program from Paul Eggert and Tony Leneis. */ 15620#ifdef TIME_WITH_SYS_TIME 15621# include <sys/time.h> 15622# include <time.h> 15623#else 15624# ifdef HAVE_SYS_TIME_H 15625# include <sys/time.h> 15626# else 15627# include <time.h> 15628# endif 15629#endif 15630 15631#include <limits.h> 15632#include <stdlib.h> 15633 15634#ifdef HAVE_UNISTD_H 15635# include <unistd.h> 15636#endif 15637 15638#ifndef HAVE_ALARM 15639# define alarm(X) /* empty */ 15640#endif 15641 15642/* Work around redefinition to rpl_putenv by other config tests. */ 15643#undef putenv 15644 15645static time_t time_t_max; 15646static time_t time_t_min; 15647 15648/* Values we'll use to set the TZ environment variable. */ 15649static char *tz_strings[] = { 15650 (char *) 0, "TZ=GMT0", "TZ=JST-9", 15651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 15652}; 15653#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 15654 15655/* Return 0 if mktime fails to convert a date in the spring-forward gap. 15656 Based on a problem report from Andreas Jaeger. */ 15657static int 15658spring_forward_gap () 15659{ 15660 /* glibc (up to about 1998-10-07) failed this test. */ 15661 struct tm tm; 15662 15663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 15664 instead of "TZ=America/Vancouver" in order to detect the bug even 15665 on systems that don't support the Olson extension, or don't have the 15666 full zoneinfo tables installed. */ 15667 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 15668 15669 tm.tm_year = 98; 15670 tm.tm_mon = 3; 15671 tm.tm_mday = 5; 15672 tm.tm_hour = 2; 15673 tm.tm_min = 0; 15674 tm.tm_sec = 0; 15675 tm.tm_isdst = -1; 15676 return mktime (&tm) != (time_t) -1; 15677} 15678 15679static int 15680mktime_test1 (now) 15681 time_t now; 15682{ 15683 struct tm *lt; 15684 return ! (lt = localtime (&now)) || mktime (lt) == now; 15685} 15686 15687static int 15688mktime_test (now) 15689 time_t now; 15690{ 15691 return (mktime_test1 (now) 15692 && mktime_test1 ((time_t) (time_t_max - now)) 15693 && mktime_test1 ((time_t) (time_t_min + now))); 15694} 15695 15696static int 15697irix_6_4_bug () 15698{ 15699 /* Based on code from Ariel Faigon. */ 15700 struct tm tm; 15701 tm.tm_year = 96; 15702 tm.tm_mon = 3; 15703 tm.tm_mday = 0; 15704 tm.tm_hour = 0; 15705 tm.tm_min = 0; 15706 tm.tm_sec = 0; 15707 tm.tm_isdst = -1; 15708 mktime (&tm); 15709 return tm.tm_mon == 2 && tm.tm_mday == 31; 15710} 15711 15712static int 15713bigtime_test (j) 15714 int j; 15715{ 15716 struct tm tm; 15717 time_t now; 15718 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 15719 now = mktime (&tm); 15720 if (now != (time_t) -1) 15721 { 15722 struct tm *lt = localtime (&now); 15723 if (! (lt 15724 && lt->tm_year == tm.tm_year 15725 && lt->tm_mon == tm.tm_mon 15726 && lt->tm_mday == tm.tm_mday 15727 && lt->tm_hour == tm.tm_hour 15728 && lt->tm_min == tm.tm_min 15729 && lt->tm_sec == tm.tm_sec 15730 && lt->tm_yday == tm.tm_yday 15731 && lt->tm_wday == tm.tm_wday 15732 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 15733 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 15734 return 0; 15735 } 15736 return 1; 15737} 15738 15739static int 15740year_2050_test () 15741{ 15742 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 15743 ignoring leap seconds. */ 15744 unsigned long int answer = 2527315200UL; 15745 15746 struct tm tm; 15747 time_t t; 15748 tm.tm_year = 2050 - 1900; 15749 tm.tm_mon = 2 - 1; 15750 tm.tm_mday = 1; 15751 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 15752 tm.tm_isdst = -1; 15753 15754 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 15755 instead of "TZ=America/Vancouver" in order to detect the bug even 15756 on systems that don't support the Olson extension, or don't have the 15757 full zoneinfo tables installed. */ 15758 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 15759 15760 t = mktime (&tm); 15761 15762 /* Check that the result is either a failure, or close enough 15763 to the correct answer that we can assume the discrepancy is 15764 due to leap seconds. */ 15765 return (t == (time_t) -1 15766 || (0 < t && answer - 120 <= t && t <= answer + 120)); 15767} 15768 15769int 15770main () 15771{ 15772 time_t t, delta; 15773 int i, j; 15774 15775 /* This test makes some buggy mktime implementations loop. 15776 Give up after 60 seconds; a mktime slower than that 15777 isn't worth using anyway. */ 15778 alarm (60); 15779 15780 for (;;) 15781 { 15782 t = (time_t_max << 1) + 1; 15783 if (t <= time_t_max) 15784 break; 15785 time_t_max = t; 15786 } 15787 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 15788 15789 delta = time_t_max / 997; /* a suitable prime number */ 15790 for (i = 0; i < N_STRINGS; i++) 15791 { 15792 if (tz_strings[i]) 15793 putenv (tz_strings[i]); 15794 15795 for (t = 0; t <= time_t_max - delta; t += delta) 15796 if (! mktime_test (t)) 15797 return 1; 15798 if (! (mktime_test ((time_t) 1) 15799 && mktime_test ((time_t) (60 * 60)) 15800 && mktime_test ((time_t) (60 * 60 * 24)))) 15801 return 1; 15802 15803 for (j = 1; ; j <<= 1) 15804 if (! bigtime_test (j)) 15805 return 1; 15806 else if (INT_MAX / 2 < j) 15807 break; 15808 if (! bigtime_test (INT_MAX)) 15809 return 1; 15810 } 15811 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 15812} 15813_ACEOF 15814rm -f conftest$ac_exeext 15815if { (ac_try="$ac_link" 15816case "(($ac_try" in 15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15818 *) ac_try_echo=$ac_try;; 15819esac 15820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15821$as_echo "$ac_try_echo") >&5 15822 (eval "$ac_link") 2>&5 15823 ac_status=$? 15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15826 { (case "(($ac_try" in 15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15828 *) ac_try_echo=$ac_try;; 15829esac 15830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15831$as_echo "$ac_try_echo") >&5 15832 (eval "$ac_try") 2>&5 15833 ac_status=$? 15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15835 (exit $ac_status); }; }; then 15836 ac_cv_func_working_mktime=yes 15837else 15838 $as_echo "$as_me: program exited with status $ac_status" >&5 15839$as_echo "$as_me: failed program was:" >&5 15840sed 's/^/| /' conftest.$ac_ext >&5 15841 15842( exit $ac_status ) 15843ac_cv_func_working_mktime=no 15844fi 15845rm -rf conftest.dSYM 15846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15847fi 15848 15849 15850fi 15851{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 15852$as_echo "$ac_cv_func_working_mktime" >&6; } 15853if test $ac_cv_func_working_mktime = no; then 15854 case " $LIBOBJS " in 15855 *" mktime.$ac_objext "* ) ;; 15856 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 15857 ;; 15858esac 15859 15860fi 15861 15862 15863 15864 15865 15866 15867 15868 15869for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h 15870do 15871as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15874$as_echo_n "checking for $ac_header... " >&6; } 15875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15876 $as_echo_n "(cached) " >&6 15877fi 15878ac_res=`eval 'as_val=${'$as_ac_Header'} 15879 $as_echo "$as_val"'` 15880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15881$as_echo "$ac_res" >&6; } 15882else 15883 # Is the header compilable? 15884{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15885$as_echo_n "checking $ac_header usability... " >&6; } 15886cat >conftest.$ac_ext <<_ACEOF 15887/* confdefs.h. */ 15888_ACEOF 15889cat confdefs.h >>conftest.$ac_ext 15890cat >>conftest.$ac_ext <<_ACEOF 15891/* end confdefs.h. */ 15892$ac_includes_default 15893#include <$ac_header> 15894_ACEOF 15895rm -f conftest.$ac_objext 15896if { (ac_try="$ac_compile" 15897case "(($ac_try" in 15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15899 *) ac_try_echo=$ac_try;; 15900esac 15901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15902$as_echo "$ac_try_echo") >&5 15903 (eval "$ac_compile") 2>conftest.er1 15904 ac_status=$? 15905 grep -v '^ *+' conftest.er1 >conftest.err 15906 rm -f conftest.er1 15907 cat conftest.err >&5 15908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15909 (exit $ac_status); } && { 15910 test -z "$ac_c_werror_flag" || 15911 test ! -s conftest.err 15912 } && test -s conftest.$ac_objext; then 15913 ac_header_compiler=yes 15914else 15915 $as_echo "$as_me: failed program was:" >&5 15916sed 's/^/| /' conftest.$ac_ext >&5 15917 15918 ac_header_compiler=no 15919fi 15920 15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15922{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15923$as_echo "$ac_header_compiler" >&6; } 15924 15925# Is the header present? 15926{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15927$as_echo_n "checking $ac_header presence... " >&6; } 15928cat >conftest.$ac_ext <<_ACEOF 15929/* confdefs.h. */ 15930_ACEOF 15931cat confdefs.h >>conftest.$ac_ext 15932cat >>conftest.$ac_ext <<_ACEOF 15933/* end confdefs.h. */ 15934#include <$ac_header> 15935_ACEOF 15936if { (ac_try="$ac_cpp conftest.$ac_ext" 15937case "(($ac_try" in 15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15939 *) ac_try_echo=$ac_try;; 15940esac 15941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15942$as_echo "$ac_try_echo") >&5 15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15944 ac_status=$? 15945 grep -v '^ *+' conftest.er1 >conftest.err 15946 rm -f conftest.er1 15947 cat conftest.err >&5 15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15949 (exit $ac_status); } >/dev/null && { 15950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15951 test ! -s conftest.err 15952 }; then 15953 ac_header_preproc=yes 15954else 15955 $as_echo "$as_me: failed program was:" >&5 15956sed 's/^/| /' conftest.$ac_ext >&5 15957 15958 ac_header_preproc=no 15959fi 15960 15961rm -f conftest.err conftest.$ac_ext 15962{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15963$as_echo "$ac_header_preproc" >&6; } 15964 15965# So? What about this header? 15966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15967 yes:no: ) 15968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15969$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15971$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15972 ac_header_preproc=yes 15973 ;; 15974 no:yes:* ) 15975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15976$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15978$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15980$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15982$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15984$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15986$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15987 ( cat <<\_ASBOX 15988## ------------------------------- ## 15989## Report this to bug-bash@gnu.org ## 15990## ------------------------------- ## 15991_ASBOX 15992 ) | sed "s/^/$as_me: WARNING: /" >&2 15993 ;; 15994esac 15995{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15996$as_echo_n "checking for $ac_header... " >&6; } 15997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15998 $as_echo_n "(cached) " >&6 15999else 16000 eval "$as_ac_Header=\$ac_header_preproc" 16001fi 16002ac_res=`eval 'as_val=${'$as_ac_Header'} 16003 $as_echo "$as_val"'` 16004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16005$as_echo "$ac_res" >&6; } 16006 16007fi 16008as_val=`eval 'as_val=${'$as_ac_Header'} 16009 $as_echo "$as_val"'` 16010 if test "x$as_val" = x""yes; then 16011 cat >>confdefs.h <<_ACEOF 16012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16013_ACEOF 16014 16015fi 16016 16017done 16018 16019 16020 16021 16022for ac_header in stdlib.h unistd.h 16023do 16024as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16027$as_echo_n "checking for $ac_header... " >&6; } 16028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16029 $as_echo_n "(cached) " >&6 16030fi 16031ac_res=`eval 'as_val=${'$as_ac_Header'} 16032 $as_echo "$as_val"'` 16033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16034$as_echo "$ac_res" >&6; } 16035else 16036 # Is the header compilable? 16037{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16038$as_echo_n "checking $ac_header usability... " >&6; } 16039cat >conftest.$ac_ext <<_ACEOF 16040/* confdefs.h. */ 16041_ACEOF 16042cat confdefs.h >>conftest.$ac_ext 16043cat >>conftest.$ac_ext <<_ACEOF 16044/* end confdefs.h. */ 16045$ac_includes_default 16046#include <$ac_header> 16047_ACEOF 16048rm -f conftest.$ac_objext 16049if { (ac_try="$ac_compile" 16050case "(($ac_try" in 16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16052 *) ac_try_echo=$ac_try;; 16053esac 16054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16055$as_echo "$ac_try_echo") >&5 16056 (eval "$ac_compile") 2>conftest.er1 16057 ac_status=$? 16058 grep -v '^ *+' conftest.er1 >conftest.err 16059 rm -f conftest.er1 16060 cat conftest.err >&5 16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16062 (exit $ac_status); } && { 16063 test -z "$ac_c_werror_flag" || 16064 test ! -s conftest.err 16065 } && test -s conftest.$ac_objext; then 16066 ac_header_compiler=yes 16067else 16068 $as_echo "$as_me: failed program was:" >&5 16069sed 's/^/| /' conftest.$ac_ext >&5 16070 16071 ac_header_compiler=no 16072fi 16073 16074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16075{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16076$as_echo "$ac_header_compiler" >&6; } 16077 16078# Is the header present? 16079{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16080$as_echo_n "checking $ac_header presence... " >&6; } 16081cat >conftest.$ac_ext <<_ACEOF 16082/* confdefs.h. */ 16083_ACEOF 16084cat confdefs.h >>conftest.$ac_ext 16085cat >>conftest.$ac_ext <<_ACEOF 16086/* end confdefs.h. */ 16087#include <$ac_header> 16088_ACEOF 16089if { (ac_try="$ac_cpp conftest.$ac_ext" 16090case "(($ac_try" in 16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16092 *) ac_try_echo=$ac_try;; 16093esac 16094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16095$as_echo "$ac_try_echo") >&5 16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16097 ac_status=$? 16098 grep -v '^ *+' conftest.er1 >conftest.err 16099 rm -f conftest.er1 16100 cat conftest.err >&5 16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16102 (exit $ac_status); } >/dev/null && { 16103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16104 test ! -s conftest.err 16105 }; then 16106 ac_header_preproc=yes 16107else 16108 $as_echo "$as_me: failed program was:" >&5 16109sed 's/^/| /' conftest.$ac_ext >&5 16110 16111 ac_header_preproc=no 16112fi 16113 16114rm -f conftest.err conftest.$ac_ext 16115{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16116$as_echo "$ac_header_preproc" >&6; } 16117 16118# So? What about this header? 16119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16120 yes:no: ) 16121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16122$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16124$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16125 ac_header_preproc=yes 16126 ;; 16127 no:yes:* ) 16128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16129$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16131$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16133$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16135$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16137$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16139$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16140 ( cat <<\_ASBOX 16141## ------------------------------- ## 16142## Report this to bug-bash@gnu.org ## 16143## ------------------------------- ## 16144_ASBOX 16145 ) | sed "s/^/$as_me: WARNING: /" >&2 16146 ;; 16147esac 16148{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16149$as_echo_n "checking for $ac_header... " >&6; } 16150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16151 $as_echo_n "(cached) " >&6 16152else 16153 eval "$as_ac_Header=\$ac_header_preproc" 16154fi 16155ac_res=`eval 'as_val=${'$as_ac_Header'} 16156 $as_echo "$as_val"'` 16157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16158$as_echo "$ac_res" >&6; } 16159 16160fi 16161as_val=`eval 'as_val=${'$as_ac_Header'} 16162 $as_echo "$as_val"'` 16163 if test "x$as_val" = x""yes; then 16164 cat >>confdefs.h <<_ACEOF 16165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16166_ACEOF 16167 16168fi 16169 16170done 16171 16172 16173for ac_func in getpagesize 16174do 16175as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16176{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16177$as_echo_n "checking for $ac_func... " >&6; } 16178if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16179 $as_echo_n "(cached) " >&6 16180else 16181 cat >conftest.$ac_ext <<_ACEOF 16182/* confdefs.h. */ 16183_ACEOF 16184cat confdefs.h >>conftest.$ac_ext 16185cat >>conftest.$ac_ext <<_ACEOF 16186/* end confdefs.h. */ 16187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16188 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16189#define $ac_func innocuous_$ac_func 16190 16191/* System header to define __stub macros and hopefully few prototypes, 16192 which can conflict with char $ac_func (); below. 16193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16194 <limits.h> exists even on freestanding compilers. */ 16195 16196#ifdef __STDC__ 16197# include <limits.h> 16198#else 16199# include <assert.h> 16200#endif 16201 16202#undef $ac_func 16203 16204/* Override any GCC internal prototype to avoid an error. 16205 Use char because int might match the return type of a GCC 16206 builtin and then its argument prototype would still apply. */ 16207#ifdef __cplusplus 16208extern "C" 16209#endif 16210char $ac_func (); 16211/* The GNU C library defines this for functions which it implements 16212 to always fail with ENOSYS. Some functions are actually named 16213 something starting with __ and the normal name is an alias. */ 16214#if defined __stub_$ac_func || defined __stub___$ac_func 16215choke me 16216#endif 16217 16218int 16219main () 16220{ 16221return $ac_func (); 16222 ; 16223 return 0; 16224} 16225_ACEOF 16226rm -f conftest.$ac_objext conftest$ac_exeext 16227if { (ac_try="$ac_link" 16228case "(($ac_try" in 16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16230 *) ac_try_echo=$ac_try;; 16231esac 16232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16233$as_echo "$ac_try_echo") >&5 16234 (eval "$ac_link") 2>conftest.er1 16235 ac_status=$? 16236 grep -v '^ *+' conftest.er1 >conftest.err 16237 rm -f conftest.er1 16238 cat conftest.err >&5 16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16240 (exit $ac_status); } && { 16241 test -z "$ac_c_werror_flag" || 16242 test ! -s conftest.err 16243 } && test -s conftest$ac_exeext && { 16244 test "$cross_compiling" = yes || 16245 $as_test_x conftest$ac_exeext 16246 }; then 16247 eval "$as_ac_var=yes" 16248else 16249 $as_echo "$as_me: failed program was:" >&5 16250sed 's/^/| /' conftest.$ac_ext >&5 16251 16252 eval "$as_ac_var=no" 16253fi 16254 16255rm -rf conftest.dSYM 16256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16257 conftest$ac_exeext conftest.$ac_ext 16258fi 16259ac_res=`eval 'as_val=${'$as_ac_var'} 16260 $as_echo "$as_val"'` 16261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16262$as_echo "$ac_res" >&6; } 16263as_val=`eval 'as_val=${'$as_ac_var'} 16264 $as_echo "$as_val"'` 16265 if test "x$as_val" = x""yes; then 16266 cat >>confdefs.h <<_ACEOF 16267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16268_ACEOF 16269 16270fi 16271done 16272 16273{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5 16274$as_echo_n "checking for working mmap... " >&6; } 16275if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 16276 $as_echo_n "(cached) " >&6 16277else 16278 if test "$cross_compiling" = yes; then 16279 ac_cv_func_mmap_fixed_mapped=no 16280else 16281 cat >conftest.$ac_ext <<_ACEOF 16282/* confdefs.h. */ 16283_ACEOF 16284cat confdefs.h >>conftest.$ac_ext 16285cat >>conftest.$ac_ext <<_ACEOF 16286/* end confdefs.h. */ 16287$ac_includes_default 16288/* malloc might have been renamed as rpl_malloc. */ 16289#undef malloc 16290 16291/* Thanks to Mike Haertel and Jim Avera for this test. 16292 Here is a matrix of mmap possibilities: 16293 mmap private not fixed 16294 mmap private fixed at somewhere currently unmapped 16295 mmap private fixed at somewhere already mapped 16296 mmap shared not fixed 16297 mmap shared fixed at somewhere currently unmapped 16298 mmap shared fixed at somewhere already mapped 16299 For private mappings, we should verify that changes cannot be read() 16300 back from the file, nor mmap's back from the file at a different 16301 address. (There have been systems where private was not correctly 16302 implemented like the infamous i386 svr4.0, and systems where the 16303 VM page cache was not coherent with the file system buffer cache 16304 like early versions of FreeBSD and possibly contemporary NetBSD.) 16305 For shared mappings, we should conversely verify that changes get 16306 propagated back to all the places they're supposed to be. 16307 16308 Grep wants private fixed already mapped. 16309 The main things grep needs to know about mmap are: 16310 * does it exist and is it safe to write into the mmap'd area 16311 * how to use it (BSD variants) */ 16312 16313#include <fcntl.h> 16314#include <sys/mman.h> 16315 16316#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16317char *malloc (); 16318#endif 16319 16320/* This mess was copied from the GNU getpagesize.h. */ 16321#ifndef HAVE_GETPAGESIZE 16322/* Assume that all systems that can run configure have sys/param.h. */ 16323# ifndef HAVE_SYS_PARAM_H 16324# define HAVE_SYS_PARAM_H 1 16325# endif 16326 16327# ifdef _SC_PAGESIZE 16328# define getpagesize() sysconf(_SC_PAGESIZE) 16329# else /* no _SC_PAGESIZE */ 16330# ifdef HAVE_SYS_PARAM_H 16331# include <sys/param.h> 16332# ifdef EXEC_PAGESIZE 16333# define getpagesize() EXEC_PAGESIZE 16334# else /* no EXEC_PAGESIZE */ 16335# ifdef NBPG 16336# define getpagesize() NBPG * CLSIZE 16337# ifndef CLSIZE 16338# define CLSIZE 1 16339# endif /* no CLSIZE */ 16340# else /* no NBPG */ 16341# ifdef NBPC 16342# define getpagesize() NBPC 16343# else /* no NBPC */ 16344# ifdef PAGESIZE 16345# define getpagesize() PAGESIZE 16346# endif /* PAGESIZE */ 16347# endif /* no NBPC */ 16348# endif /* no NBPG */ 16349# endif /* no EXEC_PAGESIZE */ 16350# else /* no HAVE_SYS_PARAM_H */ 16351# define getpagesize() 8192 /* punt totally */ 16352# endif /* no HAVE_SYS_PARAM_H */ 16353# endif /* no _SC_PAGESIZE */ 16354 16355#endif /* no HAVE_GETPAGESIZE */ 16356 16357int 16358main () 16359{ 16360 char *data, *data2, *data3; 16361 int i, pagesize; 16362 int fd; 16363 16364 pagesize = getpagesize (); 16365 16366 /* First, make a file with some known garbage in it. */ 16367 data = (char *) malloc (pagesize); 16368 if (!data) 16369 return 1; 16370 for (i = 0; i < pagesize; ++i) 16371 *(data + i) = rand (); 16372 umask (0); 16373 fd = creat ("conftest.mmap", 0600); 16374 if (fd < 0) 16375 return 1; 16376 if (write (fd, data, pagesize) != pagesize) 16377 return 1; 16378 close (fd); 16379 16380 /* Next, try to mmap the file at a fixed address which already has 16381 something else allocated at it. If we can, also make sure that 16382 we see the same garbage. */ 16383 fd = open ("conftest.mmap", O_RDWR); 16384 if (fd < 0) 16385 return 1; 16386 data2 = (char *) malloc (2 * pagesize); 16387 if (!data2) 16388 return 1; 16389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 16390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16391 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16392 return 1; 16393 for (i = 0; i < pagesize; ++i) 16394 if (*(data + i) != *(data2 + i)) 16395 return 1; 16396 16397 /* Finally, make sure that changes to the mapped area do not 16398 percolate back to the file as seen by read(). (This is a bug on 16399 some variants of i386 svr4.0.) */ 16400 for (i = 0; i < pagesize; ++i) 16401 *(data2 + i) = *(data2 + i) + 1; 16402 data3 = (char *) malloc (pagesize); 16403 if (!data3) 16404 return 1; 16405 if (read (fd, data3, pagesize) != pagesize) 16406 return 1; 16407 for (i = 0; i < pagesize; ++i) 16408 if (*(data + i) != *(data3 + i)) 16409 return 1; 16410 close (fd); 16411 return 0; 16412} 16413_ACEOF 16414rm -f conftest$ac_exeext 16415if { (ac_try="$ac_link" 16416case "(($ac_try" in 16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16418 *) ac_try_echo=$ac_try;; 16419esac 16420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16421$as_echo "$ac_try_echo") >&5 16422 (eval "$ac_link") 2>&5 16423 ac_status=$? 16424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16426 { (case "(($ac_try" in 16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16428 *) ac_try_echo=$ac_try;; 16429esac 16430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16431$as_echo "$ac_try_echo") >&5 16432 (eval "$ac_try") 2>&5 16433 ac_status=$? 16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16435 (exit $ac_status); }; }; then 16436 ac_cv_func_mmap_fixed_mapped=yes 16437else 16438 $as_echo "$as_me: program exited with status $ac_status" >&5 16439$as_echo "$as_me: failed program was:" >&5 16440sed 's/^/| /' conftest.$ac_ext >&5 16441 16442( exit $ac_status ) 16443ac_cv_func_mmap_fixed_mapped=no 16444fi 16445rm -rf conftest.dSYM 16446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16447fi 16448 16449 16450fi 16451{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 16452$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16453if test $ac_cv_func_mmap_fixed_mapped = yes; then 16454 16455cat >>confdefs.h <<\_ACEOF 16456#define HAVE_MMAP 1 16457_ACEOF 16458 16459fi 16460rm -f conftest.mmap 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ 16472 munmap stpcpy strcspn strdup 16473do 16474as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16475{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16476$as_echo_n "checking for $ac_func... " >&6; } 16477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16478 $as_echo_n "(cached) " >&6 16479else 16480 cat >conftest.$ac_ext <<_ACEOF 16481/* confdefs.h. */ 16482_ACEOF 16483cat confdefs.h >>conftest.$ac_ext 16484cat >>conftest.$ac_ext <<_ACEOF 16485/* end confdefs.h. */ 16486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16487 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16488#define $ac_func innocuous_$ac_func 16489 16490/* System header to define __stub macros and hopefully few prototypes, 16491 which can conflict with char $ac_func (); below. 16492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16493 <limits.h> exists even on freestanding compilers. */ 16494 16495#ifdef __STDC__ 16496# include <limits.h> 16497#else 16498# include <assert.h> 16499#endif 16500 16501#undef $ac_func 16502 16503/* Override any GCC internal prototype to avoid an error. 16504 Use char because int might match the return type of a GCC 16505 builtin and then its argument prototype would still apply. */ 16506#ifdef __cplusplus 16507extern "C" 16508#endif 16509char $ac_func (); 16510/* The GNU C library defines this for functions which it implements 16511 to always fail with ENOSYS. Some functions are actually named 16512 something starting with __ and the normal name is an alias. */ 16513#if defined __stub_$ac_func || defined __stub___$ac_func 16514choke me 16515#endif 16516 16517int 16518main () 16519{ 16520return $ac_func (); 16521 ; 16522 return 0; 16523} 16524_ACEOF 16525rm -f conftest.$ac_objext conftest$ac_exeext 16526if { (ac_try="$ac_link" 16527case "(($ac_try" in 16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16529 *) ac_try_echo=$ac_try;; 16530esac 16531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16532$as_echo "$ac_try_echo") >&5 16533 (eval "$ac_link") 2>conftest.er1 16534 ac_status=$? 16535 grep -v '^ *+' conftest.er1 >conftest.err 16536 rm -f conftest.er1 16537 cat conftest.err >&5 16538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16539 (exit $ac_status); } && { 16540 test -z "$ac_c_werror_flag" || 16541 test ! -s conftest.err 16542 } && test -s conftest$ac_exeext && { 16543 test "$cross_compiling" = yes || 16544 $as_test_x conftest$ac_exeext 16545 }; then 16546 eval "$as_ac_var=yes" 16547else 16548 $as_echo "$as_me: failed program was:" >&5 16549sed 's/^/| /' conftest.$ac_ext >&5 16550 16551 eval "$as_ac_var=no" 16552fi 16553 16554rm -rf conftest.dSYM 16555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16556 conftest$ac_exeext conftest.$ac_ext 16557fi 16558ac_res=`eval 'as_val=${'$as_ac_var'} 16559 $as_echo "$as_val"'` 16560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16561$as_echo "$ac_res" >&6; } 16562as_val=`eval 'as_val=${'$as_ac_var'} 16563 $as_echo "$as_val"'` 16564 if test "x$as_val" = x""yes; then 16565 cat >>confdefs.h <<_ACEOF 16566#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16567_ACEOF 16568 16569fi 16570done 16571 16572 16573INTL_DEP= INTL_INC= LIBINTL_H= 16574if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then 16575 INTL_DEP='${INTL_LIBDIR}/libintl.a' 16576 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' 16577 LIBINTL_H='${INTL_BUILDDIR}/libintl.h' 16578fi 16579 16580 16581 16582 16583 16584 16585 16586for ac_header in wctype.h 16587do 16588as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16591$as_echo_n "checking for $ac_header... " >&6; } 16592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16593 $as_echo_n "(cached) " >&6 16594fi 16595ac_res=`eval 'as_val=${'$as_ac_Header'} 16596 $as_echo "$as_val"'` 16597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16598$as_echo "$ac_res" >&6; } 16599else 16600 # Is the header compilable? 16601{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16602$as_echo_n "checking $ac_header usability... " >&6; } 16603cat >conftest.$ac_ext <<_ACEOF 16604/* confdefs.h. */ 16605_ACEOF 16606cat confdefs.h >>conftest.$ac_ext 16607cat >>conftest.$ac_ext <<_ACEOF 16608/* end confdefs.h. */ 16609$ac_includes_default 16610#include <$ac_header> 16611_ACEOF 16612rm -f conftest.$ac_objext 16613if { (ac_try="$ac_compile" 16614case "(($ac_try" in 16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16616 *) ac_try_echo=$ac_try;; 16617esac 16618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16619$as_echo "$ac_try_echo") >&5 16620 (eval "$ac_compile") 2>conftest.er1 16621 ac_status=$? 16622 grep -v '^ *+' conftest.er1 >conftest.err 16623 rm -f conftest.er1 16624 cat conftest.err >&5 16625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16626 (exit $ac_status); } && { 16627 test -z "$ac_c_werror_flag" || 16628 test ! -s conftest.err 16629 } && test -s conftest.$ac_objext; then 16630 ac_header_compiler=yes 16631else 16632 $as_echo "$as_me: failed program was:" >&5 16633sed 's/^/| /' conftest.$ac_ext >&5 16634 16635 ac_header_compiler=no 16636fi 16637 16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16639{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16640$as_echo "$ac_header_compiler" >&6; } 16641 16642# Is the header present? 16643{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16644$as_echo_n "checking $ac_header presence... " >&6; } 16645cat >conftest.$ac_ext <<_ACEOF 16646/* confdefs.h. */ 16647_ACEOF 16648cat confdefs.h >>conftest.$ac_ext 16649cat >>conftest.$ac_ext <<_ACEOF 16650/* end confdefs.h. */ 16651#include <$ac_header> 16652_ACEOF 16653if { (ac_try="$ac_cpp conftest.$ac_ext" 16654case "(($ac_try" in 16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16656 *) ac_try_echo=$ac_try;; 16657esac 16658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16659$as_echo "$ac_try_echo") >&5 16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16661 ac_status=$? 16662 grep -v '^ *+' conftest.er1 >conftest.err 16663 rm -f conftest.er1 16664 cat conftest.err >&5 16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16666 (exit $ac_status); } >/dev/null && { 16667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16668 test ! -s conftest.err 16669 }; then 16670 ac_header_preproc=yes 16671else 16672 $as_echo "$as_me: failed program was:" >&5 16673sed 's/^/| /' conftest.$ac_ext >&5 16674 16675 ac_header_preproc=no 16676fi 16677 16678rm -f conftest.err conftest.$ac_ext 16679{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16680$as_echo "$ac_header_preproc" >&6; } 16681 16682# So? What about this header? 16683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16684 yes:no: ) 16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16686$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16688$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16689 ac_header_preproc=yes 16690 ;; 16691 no:yes:* ) 16692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16693$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16695$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16697$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16699$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16701$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16703$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16704 ( cat <<\_ASBOX 16705## ------------------------------- ## 16706## Report this to bug-bash@gnu.org ## 16707## ------------------------------- ## 16708_ASBOX 16709 ) | sed "s/^/$as_me: WARNING: /" >&2 16710 ;; 16711esac 16712{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16713$as_echo_n "checking for $ac_header... " >&6; } 16714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16715 $as_echo_n "(cached) " >&6 16716else 16717 eval "$as_ac_Header=\$ac_header_preproc" 16718fi 16719ac_res=`eval 'as_val=${'$as_ac_Header'} 16720 $as_echo "$as_val"'` 16721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16722$as_echo "$ac_res" >&6; } 16723 16724fi 16725as_val=`eval 'as_val=${'$as_ac_Header'} 16726 $as_echo "$as_val"'` 16727 if test "x$as_val" = x""yes; then 16728 cat >>confdefs.h <<_ACEOF 16729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16730_ACEOF 16731 16732fi 16733 16734done 16735 16736 16737for ac_header in wchar.h 16738do 16739as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16742$as_echo_n "checking for $ac_header... " >&6; } 16743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16744 $as_echo_n "(cached) " >&6 16745fi 16746ac_res=`eval 'as_val=${'$as_ac_Header'} 16747 $as_echo "$as_val"'` 16748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16749$as_echo "$ac_res" >&6; } 16750else 16751 # Is the header compilable? 16752{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16753$as_echo_n "checking $ac_header usability... " >&6; } 16754cat >conftest.$ac_ext <<_ACEOF 16755/* confdefs.h. */ 16756_ACEOF 16757cat confdefs.h >>conftest.$ac_ext 16758cat >>conftest.$ac_ext <<_ACEOF 16759/* end confdefs.h. */ 16760$ac_includes_default 16761#include <$ac_header> 16762_ACEOF 16763rm -f conftest.$ac_objext 16764if { (ac_try="$ac_compile" 16765case "(($ac_try" in 16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16767 *) ac_try_echo=$ac_try;; 16768esac 16769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16770$as_echo "$ac_try_echo") >&5 16771 (eval "$ac_compile") 2>conftest.er1 16772 ac_status=$? 16773 grep -v '^ *+' conftest.er1 >conftest.err 16774 rm -f conftest.er1 16775 cat conftest.err >&5 16776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16777 (exit $ac_status); } && { 16778 test -z "$ac_c_werror_flag" || 16779 test ! -s conftest.err 16780 } && test -s conftest.$ac_objext; then 16781 ac_header_compiler=yes 16782else 16783 $as_echo "$as_me: failed program was:" >&5 16784sed 's/^/| /' conftest.$ac_ext >&5 16785 16786 ac_header_compiler=no 16787fi 16788 16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16790{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16791$as_echo "$ac_header_compiler" >&6; } 16792 16793# Is the header present? 16794{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16795$as_echo_n "checking $ac_header presence... " >&6; } 16796cat >conftest.$ac_ext <<_ACEOF 16797/* confdefs.h. */ 16798_ACEOF 16799cat confdefs.h >>conftest.$ac_ext 16800cat >>conftest.$ac_ext <<_ACEOF 16801/* end confdefs.h. */ 16802#include <$ac_header> 16803_ACEOF 16804if { (ac_try="$ac_cpp conftest.$ac_ext" 16805case "(($ac_try" in 16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16807 *) ac_try_echo=$ac_try;; 16808esac 16809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16810$as_echo "$ac_try_echo") >&5 16811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16812 ac_status=$? 16813 grep -v '^ *+' conftest.er1 >conftest.err 16814 rm -f conftest.er1 16815 cat conftest.err >&5 16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16817 (exit $ac_status); } >/dev/null && { 16818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16819 test ! -s conftest.err 16820 }; then 16821 ac_header_preproc=yes 16822else 16823 $as_echo "$as_me: failed program was:" >&5 16824sed 's/^/| /' conftest.$ac_ext >&5 16825 16826 ac_header_preproc=no 16827fi 16828 16829rm -f conftest.err conftest.$ac_ext 16830{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16831$as_echo "$ac_header_preproc" >&6; } 16832 16833# So? What about this header? 16834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16835 yes:no: ) 16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16837$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16839$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16840 ac_header_preproc=yes 16841 ;; 16842 no:yes:* ) 16843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16844$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16846$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16848$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16850$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16852$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16854$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16855 ( cat <<\_ASBOX 16856## ------------------------------- ## 16857## Report this to bug-bash@gnu.org ## 16858## ------------------------------- ## 16859_ASBOX 16860 ) | sed "s/^/$as_me: WARNING: /" >&2 16861 ;; 16862esac 16863{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16864$as_echo_n "checking for $ac_header... " >&6; } 16865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16866 $as_echo_n "(cached) " >&6 16867else 16868 eval "$as_ac_Header=\$ac_header_preproc" 16869fi 16870ac_res=`eval 'as_val=${'$as_ac_Header'} 16871 $as_echo "$as_val"'` 16872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16873$as_echo "$ac_res" >&6; } 16874 16875fi 16876as_val=`eval 'as_val=${'$as_ac_Header'} 16877 $as_echo "$as_val"'` 16878 if test "x$as_val" = x""yes; then 16879 cat >>confdefs.h <<_ACEOF 16880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16881_ACEOF 16882 16883fi 16884 16885done 16886 16887 16888for ac_header in langinfo.h 16889do 16890as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 16893$as_echo_n "checking for $ac_header... " >&6; } 16894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16895 $as_echo_n "(cached) " >&6 16896fi 16897ac_res=`eval 'as_val=${'$as_ac_Header'} 16898 $as_echo "$as_val"'` 16899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16900$as_echo "$ac_res" >&6; } 16901else 16902 # Is the header compilable? 16903{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 16904$as_echo_n "checking $ac_header usability... " >&6; } 16905cat >conftest.$ac_ext <<_ACEOF 16906/* confdefs.h. */ 16907_ACEOF 16908cat confdefs.h >>conftest.$ac_ext 16909cat >>conftest.$ac_ext <<_ACEOF 16910/* end confdefs.h. */ 16911$ac_includes_default 16912#include <$ac_header> 16913_ACEOF 16914rm -f conftest.$ac_objext 16915if { (ac_try="$ac_compile" 16916case "(($ac_try" in 16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16918 *) ac_try_echo=$ac_try;; 16919esac 16920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16921$as_echo "$ac_try_echo") >&5 16922 (eval "$ac_compile") 2>conftest.er1 16923 ac_status=$? 16924 grep -v '^ *+' conftest.er1 >conftest.err 16925 rm -f conftest.er1 16926 cat conftest.err >&5 16927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16928 (exit $ac_status); } && { 16929 test -z "$ac_c_werror_flag" || 16930 test ! -s conftest.err 16931 } && test -s conftest.$ac_objext; then 16932 ac_header_compiler=yes 16933else 16934 $as_echo "$as_me: failed program was:" >&5 16935sed 's/^/| /' conftest.$ac_ext >&5 16936 16937 ac_header_compiler=no 16938fi 16939 16940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16941{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16942$as_echo "$ac_header_compiler" >&6; } 16943 16944# Is the header present? 16945{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 16946$as_echo_n "checking $ac_header presence... " >&6; } 16947cat >conftest.$ac_ext <<_ACEOF 16948/* confdefs.h. */ 16949_ACEOF 16950cat confdefs.h >>conftest.$ac_ext 16951cat >>conftest.$ac_ext <<_ACEOF 16952/* end confdefs.h. */ 16953#include <$ac_header> 16954_ACEOF 16955if { (ac_try="$ac_cpp conftest.$ac_ext" 16956case "(($ac_try" in 16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16958 *) ac_try_echo=$ac_try;; 16959esac 16960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16961$as_echo "$ac_try_echo") >&5 16962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16963 ac_status=$? 16964 grep -v '^ *+' conftest.er1 >conftest.err 16965 rm -f conftest.er1 16966 cat conftest.err >&5 16967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16968 (exit $ac_status); } >/dev/null && { 16969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16970 test ! -s conftest.err 16971 }; then 16972 ac_header_preproc=yes 16973else 16974 $as_echo "$as_me: failed program was:" >&5 16975sed 's/^/| /' conftest.$ac_ext >&5 16976 16977 ac_header_preproc=no 16978fi 16979 16980rm -f conftest.err conftest.$ac_ext 16981{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16982$as_echo "$ac_header_preproc" >&6; } 16983 16984# So? What about this header? 16985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16986 yes:no: ) 16987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16988$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16990$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16991 ac_header_preproc=yes 16992 ;; 16993 no:yes:* ) 16994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16995$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16997$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16999$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17001$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17003$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17005$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17006 ( cat <<\_ASBOX 17007## ------------------------------- ## 17008## Report this to bug-bash@gnu.org ## 17009## ------------------------------- ## 17010_ASBOX 17011 ) | sed "s/^/$as_me: WARNING: /" >&2 17012 ;; 17013esac 17014{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17015$as_echo_n "checking for $ac_header... " >&6; } 17016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17017 $as_echo_n "(cached) " >&6 17018else 17019 eval "$as_ac_Header=\$ac_header_preproc" 17020fi 17021ac_res=`eval 'as_val=${'$as_ac_Header'} 17022 $as_echo "$as_val"'` 17023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17024$as_echo "$ac_res" >&6; } 17025 17026fi 17027as_val=`eval 'as_val=${'$as_ac_Header'} 17028 $as_echo "$as_val"'` 17029 if test "x$as_val" = x""yes; then 17030 cat >>confdefs.h <<_ACEOF 17031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17032_ACEOF 17033 17034fi 17035 17036done 17037 17038 17039{ $as_echo "$as_me:$LINENO: checking for mbrlen" >&5 17040$as_echo_n "checking for mbrlen... " >&6; } 17041if test "${ac_cv_func_mbrlen+set}" = set; then 17042 $as_echo_n "(cached) " >&6 17043else 17044 cat >conftest.$ac_ext <<_ACEOF 17045/* confdefs.h. */ 17046_ACEOF 17047cat confdefs.h >>conftest.$ac_ext 17048cat >>conftest.$ac_ext <<_ACEOF 17049/* end confdefs.h. */ 17050/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. 17051 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17052#define mbrlen innocuous_mbrlen 17053 17054/* System header to define __stub macros and hopefully few prototypes, 17055 which can conflict with char mbrlen (); below. 17056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17057 <limits.h> exists even on freestanding compilers. */ 17058 17059#ifdef __STDC__ 17060# include <limits.h> 17061#else 17062# include <assert.h> 17063#endif 17064 17065#undef mbrlen 17066 17067/* Override any GCC internal prototype to avoid an error. 17068 Use char because int might match the return type of a GCC 17069 builtin and then its argument prototype would still apply. */ 17070#ifdef __cplusplus 17071extern "C" 17072#endif 17073char mbrlen (); 17074/* The GNU C library defines this for functions which it implements 17075 to always fail with ENOSYS. Some functions are actually named 17076 something starting with __ and the normal name is an alias. */ 17077#if defined __stub_mbrlen || defined __stub___mbrlen 17078choke me 17079#endif 17080 17081int 17082main () 17083{ 17084return mbrlen (); 17085 ; 17086 return 0; 17087} 17088_ACEOF 17089rm -f conftest.$ac_objext conftest$ac_exeext 17090if { (ac_try="$ac_link" 17091case "(($ac_try" in 17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17093 *) ac_try_echo=$ac_try;; 17094esac 17095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17096$as_echo "$ac_try_echo") >&5 17097 (eval "$ac_link") 2>conftest.er1 17098 ac_status=$? 17099 grep -v '^ *+' conftest.er1 >conftest.err 17100 rm -f conftest.er1 17101 cat conftest.err >&5 17102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17103 (exit $ac_status); } && { 17104 test -z "$ac_c_werror_flag" || 17105 test ! -s conftest.err 17106 } && test -s conftest$ac_exeext && { 17107 test "$cross_compiling" = yes || 17108 $as_test_x conftest$ac_exeext 17109 }; then 17110 ac_cv_func_mbrlen=yes 17111else 17112 $as_echo "$as_me: failed program was:" >&5 17113sed 's/^/| /' conftest.$ac_ext >&5 17114 17115 ac_cv_func_mbrlen=no 17116fi 17117 17118rm -rf conftest.dSYM 17119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17120 conftest$ac_exeext conftest.$ac_ext 17121fi 17122{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 17123$as_echo "$ac_cv_func_mbrlen" >&6; } 17124if test "x$ac_cv_func_mbrlen" = x""yes; then 17125 cat >>confdefs.h <<\_ACEOF 17126#define HAVE_MBRLEN 1 17127_ACEOF 17128 17129fi 17130 17131{ $as_echo "$as_me:$LINENO: checking for mbscmp" >&5 17132$as_echo_n "checking for mbscmp... " >&6; } 17133if test "${ac_cv_func_mbscmp+set}" = set; then 17134 $as_echo_n "(cached) " >&6 17135else 17136 cat >conftest.$ac_ext <<_ACEOF 17137/* confdefs.h. */ 17138_ACEOF 17139cat confdefs.h >>conftest.$ac_ext 17140cat >>conftest.$ac_ext <<_ACEOF 17141/* end confdefs.h. */ 17142/* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp. 17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17144#define mbscmp innocuous_mbscmp 17145 17146/* System header to define __stub macros and hopefully few prototypes, 17147 which can conflict with char mbscmp (); below. 17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17149 <limits.h> exists even on freestanding compilers. */ 17150 17151#ifdef __STDC__ 17152# include <limits.h> 17153#else 17154# include <assert.h> 17155#endif 17156 17157#undef mbscmp 17158 17159/* Override any GCC internal prototype to avoid an error. 17160 Use char because int might match the return type of a GCC 17161 builtin and then its argument prototype would still apply. */ 17162#ifdef __cplusplus 17163extern "C" 17164#endif 17165char mbscmp (); 17166/* The GNU C library defines this for functions which it implements 17167 to always fail with ENOSYS. Some functions are actually named 17168 something starting with __ and the normal name is an alias. */ 17169#if defined __stub_mbscmp || defined __stub___mbscmp 17170choke me 17171#endif 17172 17173int 17174main () 17175{ 17176return mbscmp (); 17177 ; 17178 return 0; 17179} 17180_ACEOF 17181rm -f conftest.$ac_objext conftest$ac_exeext 17182if { (ac_try="$ac_link" 17183case "(($ac_try" in 17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17185 *) ac_try_echo=$ac_try;; 17186esac 17187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17188$as_echo "$ac_try_echo") >&5 17189 (eval "$ac_link") 2>conftest.er1 17190 ac_status=$? 17191 grep -v '^ *+' conftest.er1 >conftest.err 17192 rm -f conftest.er1 17193 cat conftest.err >&5 17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17195 (exit $ac_status); } && { 17196 test -z "$ac_c_werror_flag" || 17197 test ! -s conftest.err 17198 } && test -s conftest$ac_exeext && { 17199 test "$cross_compiling" = yes || 17200 $as_test_x conftest$ac_exeext 17201 }; then 17202 ac_cv_func_mbscmp=yes 17203else 17204 $as_echo "$as_me: failed program was:" >&5 17205sed 's/^/| /' conftest.$ac_ext >&5 17206 17207 ac_cv_func_mbscmp=no 17208fi 17209 17210rm -rf conftest.dSYM 17211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17212 conftest$ac_exeext conftest.$ac_ext 17213fi 17214{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5 17215$as_echo "$ac_cv_func_mbscmp" >&6; } 17216if test "x$ac_cv_func_mbscmp" = x""yes; then 17217 cat >>confdefs.h <<\_ACEOF 17218#define HAVE_MBSCMP 1 17219_ACEOF 17220 17221fi 17222 17223{ $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 17224$as_echo_n "checking for mbsrtowcs... " >&6; } 17225if test "${ac_cv_func_mbsrtowcs+set}" = set; then 17226 $as_echo_n "(cached) " >&6 17227else 17228 cat >conftest.$ac_ext <<_ACEOF 17229/* confdefs.h. */ 17230_ACEOF 17231cat confdefs.h >>conftest.$ac_ext 17232cat >>conftest.$ac_ext <<_ACEOF 17233/* end confdefs.h. */ 17234/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. 17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17236#define mbsrtowcs innocuous_mbsrtowcs 17237 17238/* System header to define __stub macros and hopefully few prototypes, 17239 which can conflict with char mbsrtowcs (); below. 17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17241 <limits.h> exists even on freestanding compilers. */ 17242 17243#ifdef __STDC__ 17244# include <limits.h> 17245#else 17246# include <assert.h> 17247#endif 17248 17249#undef mbsrtowcs 17250 17251/* Override any GCC internal prototype to avoid an error. 17252 Use char because int might match the return type of a GCC 17253 builtin and then its argument prototype would still apply. */ 17254#ifdef __cplusplus 17255extern "C" 17256#endif 17257char mbsrtowcs (); 17258/* The GNU C library defines this for functions which it implements 17259 to always fail with ENOSYS. Some functions are actually named 17260 something starting with __ and the normal name is an alias. */ 17261#if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs 17262choke me 17263#endif 17264 17265int 17266main () 17267{ 17268return mbsrtowcs (); 17269 ; 17270 return 0; 17271} 17272_ACEOF 17273rm -f conftest.$ac_objext conftest$ac_exeext 17274if { (ac_try="$ac_link" 17275case "(($ac_try" in 17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17277 *) ac_try_echo=$ac_try;; 17278esac 17279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17280$as_echo "$ac_try_echo") >&5 17281 (eval "$ac_link") 2>conftest.er1 17282 ac_status=$? 17283 grep -v '^ *+' conftest.er1 >conftest.err 17284 rm -f conftest.er1 17285 cat conftest.err >&5 17286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17287 (exit $ac_status); } && { 17288 test -z "$ac_c_werror_flag" || 17289 test ! -s conftest.err 17290 } && test -s conftest$ac_exeext && { 17291 test "$cross_compiling" = yes || 17292 $as_test_x conftest$ac_exeext 17293 }; then 17294 ac_cv_func_mbsrtowcs=yes 17295else 17296 $as_echo "$as_me: failed program was:" >&5 17297sed 's/^/| /' conftest.$ac_ext >&5 17298 17299 ac_cv_func_mbsrtowcs=no 17300fi 17301 17302rm -rf conftest.dSYM 17303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17304 conftest$ac_exeext conftest.$ac_ext 17305fi 17306{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 17307$as_echo "$ac_cv_func_mbsrtowcs" >&6; } 17308if test "x$ac_cv_func_mbsrtowcs" = x""yes; then 17309 cat >>confdefs.h <<\_ACEOF 17310#define HAVE_MBSRTOWCS 1 17311_ACEOF 17312 17313fi 17314 17315 17316{ $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5 17317$as_echo_n "checking for wcrtomb... " >&6; } 17318if test "${ac_cv_func_wcrtomb+set}" = set; then 17319 $as_echo_n "(cached) " >&6 17320else 17321 cat >conftest.$ac_ext <<_ACEOF 17322/* confdefs.h. */ 17323_ACEOF 17324cat confdefs.h >>conftest.$ac_ext 17325cat >>conftest.$ac_ext <<_ACEOF 17326/* end confdefs.h. */ 17327/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb. 17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17329#define wcrtomb innocuous_wcrtomb 17330 17331/* System header to define __stub macros and hopefully few prototypes, 17332 which can conflict with char wcrtomb (); below. 17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17334 <limits.h> exists even on freestanding compilers. */ 17335 17336#ifdef __STDC__ 17337# include <limits.h> 17338#else 17339# include <assert.h> 17340#endif 17341 17342#undef wcrtomb 17343 17344/* Override any GCC internal prototype to avoid an error. 17345 Use char because int might match the return type of a GCC 17346 builtin and then its argument prototype would still apply. */ 17347#ifdef __cplusplus 17348extern "C" 17349#endif 17350char wcrtomb (); 17351/* The GNU C library defines this for functions which it implements 17352 to always fail with ENOSYS. Some functions are actually named 17353 something starting with __ and the normal name is an alias. */ 17354#if defined __stub_wcrtomb || defined __stub___wcrtomb 17355choke me 17356#endif 17357 17358int 17359main () 17360{ 17361return wcrtomb (); 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366rm -f conftest.$ac_objext conftest$ac_exeext 17367if { (ac_try="$ac_link" 17368case "(($ac_try" in 17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17370 *) ac_try_echo=$ac_try;; 17371esac 17372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17373$as_echo "$ac_try_echo") >&5 17374 (eval "$ac_link") 2>conftest.er1 17375 ac_status=$? 17376 grep -v '^ *+' conftest.er1 >conftest.err 17377 rm -f conftest.er1 17378 cat conftest.err >&5 17379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17380 (exit $ac_status); } && { 17381 test -z "$ac_c_werror_flag" || 17382 test ! -s conftest.err 17383 } && test -s conftest$ac_exeext && { 17384 test "$cross_compiling" = yes || 17385 $as_test_x conftest$ac_exeext 17386 }; then 17387 ac_cv_func_wcrtomb=yes 17388else 17389 $as_echo "$as_me: failed program was:" >&5 17390sed 's/^/| /' conftest.$ac_ext >&5 17391 17392 ac_cv_func_wcrtomb=no 17393fi 17394 17395rm -rf conftest.dSYM 17396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17397 conftest$ac_exeext conftest.$ac_ext 17398fi 17399{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5 17400$as_echo "$ac_cv_func_wcrtomb" >&6; } 17401if test "x$ac_cv_func_wcrtomb" = x""yes; then 17402 cat >>confdefs.h <<\_ACEOF 17403#define HAVE_WCRTOMB 1 17404_ACEOF 17405 17406fi 17407 17408{ $as_echo "$as_me:$LINENO: checking for wcscoll" >&5 17409$as_echo_n "checking for wcscoll... " >&6; } 17410if test "${ac_cv_func_wcscoll+set}" = set; then 17411 $as_echo_n "(cached) " >&6 17412else 17413 cat >conftest.$ac_ext <<_ACEOF 17414/* confdefs.h. */ 17415_ACEOF 17416cat confdefs.h >>conftest.$ac_ext 17417cat >>conftest.$ac_ext <<_ACEOF 17418/* end confdefs.h. */ 17419/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll. 17420 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17421#define wcscoll innocuous_wcscoll 17422 17423/* System header to define __stub macros and hopefully few prototypes, 17424 which can conflict with char wcscoll (); below. 17425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17426 <limits.h> exists even on freestanding compilers. */ 17427 17428#ifdef __STDC__ 17429# include <limits.h> 17430#else 17431# include <assert.h> 17432#endif 17433 17434#undef wcscoll 17435 17436/* Override any GCC internal prototype to avoid an error. 17437 Use char because int might match the return type of a GCC 17438 builtin and then its argument prototype would still apply. */ 17439#ifdef __cplusplus 17440extern "C" 17441#endif 17442char wcscoll (); 17443/* The GNU C library defines this for functions which it implements 17444 to always fail with ENOSYS. Some functions are actually named 17445 something starting with __ and the normal name is an alias. */ 17446#if defined __stub_wcscoll || defined __stub___wcscoll 17447choke me 17448#endif 17449 17450int 17451main () 17452{ 17453return wcscoll (); 17454 ; 17455 return 0; 17456} 17457_ACEOF 17458rm -f conftest.$ac_objext conftest$ac_exeext 17459if { (ac_try="$ac_link" 17460case "(($ac_try" in 17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17462 *) ac_try_echo=$ac_try;; 17463esac 17464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17465$as_echo "$ac_try_echo") >&5 17466 (eval "$ac_link") 2>conftest.er1 17467 ac_status=$? 17468 grep -v '^ *+' conftest.er1 >conftest.err 17469 rm -f conftest.er1 17470 cat conftest.err >&5 17471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17472 (exit $ac_status); } && { 17473 test -z "$ac_c_werror_flag" || 17474 test ! -s conftest.err 17475 } && test -s conftest$ac_exeext && { 17476 test "$cross_compiling" = yes || 17477 $as_test_x conftest$ac_exeext 17478 }; then 17479 ac_cv_func_wcscoll=yes 17480else 17481 $as_echo "$as_me: failed program was:" >&5 17482sed 's/^/| /' conftest.$ac_ext >&5 17483 17484 ac_cv_func_wcscoll=no 17485fi 17486 17487rm -rf conftest.dSYM 17488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17489 conftest$ac_exeext conftest.$ac_ext 17490fi 17491{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 17492$as_echo "$ac_cv_func_wcscoll" >&6; } 17493if test "x$ac_cv_func_wcscoll" = x""yes; then 17494 cat >>confdefs.h <<\_ACEOF 17495#define HAVE_WCSCOLL 1 17496_ACEOF 17497 17498fi 17499 17500{ $as_echo "$as_me:$LINENO: checking for wcsdup" >&5 17501$as_echo_n "checking for wcsdup... " >&6; } 17502if test "${ac_cv_func_wcsdup+set}" = set; then 17503 $as_echo_n "(cached) " >&6 17504else 17505 cat >conftest.$ac_ext <<_ACEOF 17506/* confdefs.h. */ 17507_ACEOF 17508cat confdefs.h >>conftest.$ac_ext 17509cat >>conftest.$ac_ext <<_ACEOF 17510/* end confdefs.h. */ 17511/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. 17512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17513#define wcsdup innocuous_wcsdup 17514 17515/* System header to define __stub macros and hopefully few prototypes, 17516 which can conflict with char wcsdup (); below. 17517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17518 <limits.h> exists even on freestanding compilers. */ 17519 17520#ifdef __STDC__ 17521# include <limits.h> 17522#else 17523# include <assert.h> 17524#endif 17525 17526#undef wcsdup 17527 17528/* Override any GCC internal prototype to avoid an error. 17529 Use char because int might match the return type of a GCC 17530 builtin and then its argument prototype would still apply. */ 17531#ifdef __cplusplus 17532extern "C" 17533#endif 17534char wcsdup (); 17535/* The GNU C library defines this for functions which it implements 17536 to always fail with ENOSYS. Some functions are actually named 17537 something starting with __ and the normal name is an alias. */ 17538#if defined __stub_wcsdup || defined __stub___wcsdup 17539choke me 17540#endif 17541 17542int 17543main () 17544{ 17545return wcsdup (); 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550rm -f conftest.$ac_objext conftest$ac_exeext 17551if { (ac_try="$ac_link" 17552case "(($ac_try" in 17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17554 *) ac_try_echo=$ac_try;; 17555esac 17556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17557$as_echo "$ac_try_echo") >&5 17558 (eval "$ac_link") 2>conftest.er1 17559 ac_status=$? 17560 grep -v '^ *+' conftest.er1 >conftest.err 17561 rm -f conftest.er1 17562 cat conftest.err >&5 17563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17564 (exit $ac_status); } && { 17565 test -z "$ac_c_werror_flag" || 17566 test ! -s conftest.err 17567 } && test -s conftest$ac_exeext && { 17568 test "$cross_compiling" = yes || 17569 $as_test_x conftest$ac_exeext 17570 }; then 17571 ac_cv_func_wcsdup=yes 17572else 17573 $as_echo "$as_me: failed program was:" >&5 17574sed 's/^/| /' conftest.$ac_ext >&5 17575 17576 ac_cv_func_wcsdup=no 17577fi 17578 17579rm -rf conftest.dSYM 17580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17581 conftest$ac_exeext conftest.$ac_ext 17582fi 17583{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 17584$as_echo "$ac_cv_func_wcsdup" >&6; } 17585if test "x$ac_cv_func_wcsdup" = x""yes; then 17586 cat >>confdefs.h <<\_ACEOF 17587#define HAVE_WCSDUP 1 17588_ACEOF 17589 17590fi 17591 17592{ $as_echo "$as_me:$LINENO: checking for wcwidth" >&5 17593$as_echo_n "checking for wcwidth... " >&6; } 17594if test "${ac_cv_func_wcwidth+set}" = set; then 17595 $as_echo_n "(cached) " >&6 17596else 17597 cat >conftest.$ac_ext <<_ACEOF 17598/* confdefs.h. */ 17599_ACEOF 17600cat confdefs.h >>conftest.$ac_ext 17601cat >>conftest.$ac_ext <<_ACEOF 17602/* end confdefs.h. */ 17603/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. 17604 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17605#define wcwidth innocuous_wcwidth 17606 17607/* System header to define __stub macros and hopefully few prototypes, 17608 which can conflict with char wcwidth (); below. 17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17610 <limits.h> exists even on freestanding compilers. */ 17611 17612#ifdef __STDC__ 17613# include <limits.h> 17614#else 17615# include <assert.h> 17616#endif 17617 17618#undef wcwidth 17619 17620/* Override any GCC internal prototype to avoid an error. 17621 Use char because int might match the return type of a GCC 17622 builtin and then its argument prototype would still apply. */ 17623#ifdef __cplusplus 17624extern "C" 17625#endif 17626char wcwidth (); 17627/* The GNU C library defines this for functions which it implements 17628 to always fail with ENOSYS. Some functions are actually named 17629 something starting with __ and the normal name is an alias. */ 17630#if defined __stub_wcwidth || defined __stub___wcwidth 17631choke me 17632#endif 17633 17634int 17635main () 17636{ 17637return wcwidth (); 17638 ; 17639 return 0; 17640} 17641_ACEOF 17642rm -f conftest.$ac_objext conftest$ac_exeext 17643if { (ac_try="$ac_link" 17644case "(($ac_try" in 17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17646 *) ac_try_echo=$ac_try;; 17647esac 17648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17649$as_echo "$ac_try_echo") >&5 17650 (eval "$ac_link") 2>conftest.er1 17651 ac_status=$? 17652 grep -v '^ *+' conftest.er1 >conftest.err 17653 rm -f conftest.er1 17654 cat conftest.err >&5 17655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); } && { 17657 test -z "$ac_c_werror_flag" || 17658 test ! -s conftest.err 17659 } && test -s conftest$ac_exeext && { 17660 test "$cross_compiling" = yes || 17661 $as_test_x conftest$ac_exeext 17662 }; then 17663 ac_cv_func_wcwidth=yes 17664else 17665 $as_echo "$as_me: failed program was:" >&5 17666sed 's/^/| /' conftest.$ac_ext >&5 17667 17668 ac_cv_func_wcwidth=no 17669fi 17670 17671rm -rf conftest.dSYM 17672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17673 conftest$ac_exeext conftest.$ac_ext 17674fi 17675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 17676$as_echo "$ac_cv_func_wcwidth" >&6; } 17677if test "x$ac_cv_func_wcwidth" = x""yes; then 17678 cat >>confdefs.h <<\_ACEOF 17679#define HAVE_WCWIDTH 1 17680_ACEOF 17681 17682fi 17683 17684{ $as_echo "$as_me:$LINENO: checking for wctype" >&5 17685$as_echo_n "checking for wctype... " >&6; } 17686if test "${ac_cv_func_wctype+set}" = set; then 17687 $as_echo_n "(cached) " >&6 17688else 17689 cat >conftest.$ac_ext <<_ACEOF 17690/* confdefs.h. */ 17691_ACEOF 17692cat confdefs.h >>conftest.$ac_ext 17693cat >>conftest.$ac_ext <<_ACEOF 17694/* end confdefs.h. */ 17695/* Define wctype to an innocuous variant, in case <limits.h> declares wctype. 17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17697#define wctype innocuous_wctype 17698 17699/* System header to define __stub macros and hopefully few prototypes, 17700 which can conflict with char wctype (); below. 17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17702 <limits.h> exists even on freestanding compilers. */ 17703 17704#ifdef __STDC__ 17705# include <limits.h> 17706#else 17707# include <assert.h> 17708#endif 17709 17710#undef wctype 17711 17712/* Override any GCC internal prototype to avoid an error. 17713 Use char because int might match the return type of a GCC 17714 builtin and then its argument prototype would still apply. */ 17715#ifdef __cplusplus 17716extern "C" 17717#endif 17718char wctype (); 17719/* The GNU C library defines this for functions which it implements 17720 to always fail with ENOSYS. Some functions are actually named 17721 something starting with __ and the normal name is an alias. */ 17722#if defined __stub_wctype || defined __stub___wctype 17723choke me 17724#endif 17725 17726int 17727main () 17728{ 17729return wctype (); 17730 ; 17731 return 0; 17732} 17733_ACEOF 17734rm -f conftest.$ac_objext conftest$ac_exeext 17735if { (ac_try="$ac_link" 17736case "(($ac_try" in 17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17738 *) ac_try_echo=$ac_try;; 17739esac 17740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17741$as_echo "$ac_try_echo") >&5 17742 (eval "$ac_link") 2>conftest.er1 17743 ac_status=$? 17744 grep -v '^ *+' conftest.er1 >conftest.err 17745 rm -f conftest.er1 17746 cat conftest.err >&5 17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17748 (exit $ac_status); } && { 17749 test -z "$ac_c_werror_flag" || 17750 test ! -s conftest.err 17751 } && test -s conftest$ac_exeext && { 17752 test "$cross_compiling" = yes || 17753 $as_test_x conftest$ac_exeext 17754 }; then 17755 ac_cv_func_wctype=yes 17756else 17757 $as_echo "$as_me: failed program was:" >&5 17758sed 's/^/| /' conftest.$ac_ext >&5 17759 17760 ac_cv_func_wctype=no 17761fi 17762 17763rm -rf conftest.dSYM 17764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17765 conftest$ac_exeext conftest.$ac_ext 17766fi 17767{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 17768$as_echo "$ac_cv_func_wctype" >&6; } 17769if test "x$ac_cv_func_wctype" = x""yes; then 17770 cat >>confdefs.h <<\_ACEOF 17771#define HAVE_WCTYPE 1 17772_ACEOF 17773 17774fi 17775 17776 17777 17778 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 17779$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 17780if test "${ac_cv_func_mbrtowc+set}" = set; then 17781 $as_echo_n "(cached) " >&6 17782else 17783 cat >conftest.$ac_ext <<_ACEOF 17784/* confdefs.h. */ 17785_ACEOF 17786cat confdefs.h >>conftest.$ac_ext 17787cat >>conftest.$ac_ext <<_ACEOF 17788/* end confdefs.h. */ 17789#include <wchar.h> 17790int 17791main () 17792{ 17793wchar_t wc; 17794 char const s[] = ""; 17795 size_t n = 1; 17796 mbstate_t state; 17797 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 17798 ; 17799 return 0; 17800} 17801_ACEOF 17802rm -f conftest.$ac_objext conftest$ac_exeext 17803if { (ac_try="$ac_link" 17804case "(($ac_try" in 17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17806 *) ac_try_echo=$ac_try;; 17807esac 17808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17809$as_echo "$ac_try_echo") >&5 17810 (eval "$ac_link") 2>conftest.er1 17811 ac_status=$? 17812 grep -v '^ *+' conftest.er1 >conftest.err 17813 rm -f conftest.er1 17814 cat conftest.err >&5 17815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17816 (exit $ac_status); } && { 17817 test -z "$ac_c_werror_flag" || 17818 test ! -s conftest.err 17819 } && test -s conftest$ac_exeext && { 17820 test "$cross_compiling" = yes || 17821 $as_test_x conftest$ac_exeext 17822 }; then 17823 ac_cv_func_mbrtowc=yes 17824else 17825 $as_echo "$as_me: failed program was:" >&5 17826sed 's/^/| /' conftest.$ac_ext >&5 17827 17828 ac_cv_func_mbrtowc=no 17829fi 17830 17831rm -rf conftest.dSYM 17832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17833 conftest$ac_exeext conftest.$ac_ext 17834fi 17835{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 17836$as_echo "$ac_cv_func_mbrtowc" >&6; } 17837 if test $ac_cv_func_mbrtowc = yes; then 17838 17839cat >>confdefs.h <<\_ACEOF 17840#define HAVE_MBRTOWC 1 17841_ACEOF 17842 17843 fi 17844 17845if test $ac_cv_func_mbrtowc = yes; then 17846 cat >>confdefs.h <<\_ACEOF 17847#define HAVE_MBSTATE_T 1 17848_ACEOF 17849 17850fi 17851 17852 17853 17854 17855 17856 17857for ac_func in iswlower iswupper towlower towupper iswctype 17858do 17859as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17860{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 17861$as_echo_n "checking for $ac_func... " >&6; } 17862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17863 $as_echo_n "(cached) " >&6 17864else 17865 cat >conftest.$ac_ext <<_ACEOF 17866/* confdefs.h. */ 17867_ACEOF 17868cat confdefs.h >>conftest.$ac_ext 17869cat >>conftest.$ac_ext <<_ACEOF 17870/* end confdefs.h. */ 17871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17873#define $ac_func innocuous_$ac_func 17874 17875/* System header to define __stub macros and hopefully few prototypes, 17876 which can conflict with char $ac_func (); below. 17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17878 <limits.h> exists even on freestanding compilers. */ 17879 17880#ifdef __STDC__ 17881# include <limits.h> 17882#else 17883# include <assert.h> 17884#endif 17885 17886#undef $ac_func 17887 17888/* Override any GCC internal prototype to avoid an error. 17889 Use char because int might match the return type of a GCC 17890 builtin and then its argument prototype would still apply. */ 17891#ifdef __cplusplus 17892extern "C" 17893#endif 17894char $ac_func (); 17895/* The GNU C library defines this for functions which it implements 17896 to always fail with ENOSYS. Some functions are actually named 17897 something starting with __ and the normal name is an alias. */ 17898#if defined __stub_$ac_func || defined __stub___$ac_func 17899choke me 17900#endif 17901 17902int 17903main () 17904{ 17905return $ac_func (); 17906 ; 17907 return 0; 17908} 17909_ACEOF 17910rm -f conftest.$ac_objext conftest$ac_exeext 17911if { (ac_try="$ac_link" 17912case "(($ac_try" in 17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17914 *) ac_try_echo=$ac_try;; 17915esac 17916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17917$as_echo "$ac_try_echo") >&5 17918 (eval "$ac_link") 2>conftest.er1 17919 ac_status=$? 17920 grep -v '^ *+' conftest.er1 >conftest.err 17921 rm -f conftest.er1 17922 cat conftest.err >&5 17923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17924 (exit $ac_status); } && { 17925 test -z "$ac_c_werror_flag" || 17926 test ! -s conftest.err 17927 } && test -s conftest$ac_exeext && { 17928 test "$cross_compiling" = yes || 17929 $as_test_x conftest$ac_exeext 17930 }; then 17931 eval "$as_ac_var=yes" 17932else 17933 $as_echo "$as_me: failed program was:" >&5 17934sed 's/^/| /' conftest.$ac_ext >&5 17935 17936 eval "$as_ac_var=no" 17937fi 17938 17939rm -rf conftest.dSYM 17940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17941 conftest$ac_exeext conftest.$ac_ext 17942fi 17943ac_res=`eval 'as_val=${'$as_ac_var'} 17944 $as_echo "$as_val"'` 17945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17946$as_echo "$ac_res" >&6; } 17947as_val=`eval 'as_val=${'$as_ac_var'} 17948 $as_echo "$as_val"'` 17949 if test "x$as_val" = x""yes; then 17950 cat >>confdefs.h <<_ACEOF 17951#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17952_ACEOF 17953 17954fi 17955done 17956 17957 17958{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 17959$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 17960if test "${bash_cv_langinfo_codeset+set}" = set; then 17961 $as_echo_n "(cached) " >&6 17962else 17963 cat >conftest.$ac_ext <<_ACEOF 17964/* confdefs.h. */ 17965_ACEOF 17966cat confdefs.h >>conftest.$ac_ext 17967cat >>conftest.$ac_ext <<_ACEOF 17968/* end confdefs.h. */ 17969#include <langinfo.h> 17970int 17971main () 17972{ 17973char* cs = nl_langinfo(CODESET); 17974 ; 17975 return 0; 17976} 17977_ACEOF 17978rm -f conftest.$ac_objext conftest$ac_exeext 17979if { (ac_try="$ac_link" 17980case "(($ac_try" in 17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17982 *) ac_try_echo=$ac_try;; 17983esac 17984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17985$as_echo "$ac_try_echo") >&5 17986 (eval "$ac_link") 2>conftest.er1 17987 ac_status=$? 17988 grep -v '^ *+' conftest.er1 >conftest.err 17989 rm -f conftest.er1 17990 cat conftest.err >&5 17991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17992 (exit $ac_status); } && { 17993 test -z "$ac_c_werror_flag" || 17994 test ! -s conftest.err 17995 } && test -s conftest$ac_exeext && { 17996 test "$cross_compiling" = yes || 17997 $as_test_x conftest$ac_exeext 17998 }; then 17999 bash_cv_langinfo_codeset=yes 18000else 18001 $as_echo "$as_me: failed program was:" >&5 18002sed 's/^/| /' conftest.$ac_ext >&5 18003 18004 bash_cv_langinfo_codeset=no 18005fi 18006 18007rm -rf conftest.dSYM 18008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18009 conftest$ac_exeext conftest.$ac_ext 18010fi 18011{ $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 18012$as_echo "$bash_cv_langinfo_codeset" >&6; } 18013if test $bash_cv_langinfo_codeset = yes; then 18014 cat >>confdefs.h <<\_ACEOF 18015#define HAVE_LANGINFO_CODESET 1 18016_ACEOF 18017 18018fi 18019 18020{ $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5 18021$as_echo_n "checking for wchar_t in wchar.h... " >&6; } 18022if test "${bash_cv_type_wchar_t+set}" = set; then 18023 $as_echo_n "(cached) " >&6 18024else 18025 cat >conftest.$ac_ext <<_ACEOF 18026/* confdefs.h. */ 18027_ACEOF 18028cat confdefs.h >>conftest.$ac_ext 18029cat >>conftest.$ac_ext <<_ACEOF 18030/* end confdefs.h. */ 18031#include <wchar.h> 18032 18033int 18034main () 18035{ 18036 18037 wchar_t foo; 18038 foo = 0; 18039 18040 ; 18041 return 0; 18042} 18043_ACEOF 18044rm -f conftest.$ac_objext 18045if { (ac_try="$ac_compile" 18046case "(($ac_try" in 18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18048 *) ac_try_echo=$ac_try;; 18049esac 18050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18051$as_echo "$ac_try_echo") >&5 18052 (eval "$ac_compile") 2>conftest.er1 18053 ac_status=$? 18054 grep -v '^ *+' conftest.er1 >conftest.err 18055 rm -f conftest.er1 18056 cat conftest.err >&5 18057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18058 (exit $ac_status); } && { 18059 test -z "$ac_c_werror_flag" || 18060 test ! -s conftest.err 18061 } && test -s conftest.$ac_objext; then 18062 bash_cv_type_wchar_t=yes 18063else 18064 $as_echo "$as_me: failed program was:" >&5 18065sed 's/^/| /' conftest.$ac_ext >&5 18066 18067 bash_cv_type_wchar_t=no 18068fi 18069 18070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18071fi 18072{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5 18073$as_echo "$bash_cv_type_wchar_t" >&6; } 18074if test $bash_cv_type_wchar_t = yes; then 18075 18076cat >>confdefs.h <<\_ACEOF 18077#define HAVE_WCHAR_T 1 18078_ACEOF 18079 18080fi 18081 18082{ $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5 18083$as_echo_n "checking for wctype_t in wctype.h... " >&6; } 18084if test "${bash_cv_type_wctype_t+set}" = set; then 18085 $as_echo_n "(cached) " >&6 18086else 18087 cat >conftest.$ac_ext <<_ACEOF 18088/* confdefs.h. */ 18089_ACEOF 18090cat confdefs.h >>conftest.$ac_ext 18091cat >>conftest.$ac_ext <<_ACEOF 18092/* end confdefs.h. */ 18093#include <wctype.h> 18094int 18095main () 18096{ 18097 18098 wctype_t foo; 18099 foo = 0; 18100 18101 ; 18102 return 0; 18103} 18104_ACEOF 18105rm -f conftest.$ac_objext 18106if { (ac_try="$ac_compile" 18107case "(($ac_try" in 18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18109 *) ac_try_echo=$ac_try;; 18110esac 18111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18112$as_echo "$ac_try_echo") >&5 18113 (eval "$ac_compile") 2>conftest.er1 18114 ac_status=$? 18115 grep -v '^ *+' conftest.er1 >conftest.err 18116 rm -f conftest.er1 18117 cat conftest.err >&5 18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18119 (exit $ac_status); } && { 18120 test -z "$ac_c_werror_flag" || 18121 test ! -s conftest.err 18122 } && test -s conftest.$ac_objext; then 18123 bash_cv_type_wctype_t=yes 18124else 18125 $as_echo "$as_me: failed program was:" >&5 18126sed 's/^/| /' conftest.$ac_ext >&5 18127 18128 bash_cv_type_wctype_t=no 18129fi 18130 18131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18132fi 18133{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5 18134$as_echo "$bash_cv_type_wctype_t" >&6; } 18135if test $bash_cv_type_wctype_t = yes; then 18136 18137cat >>confdefs.h <<\_ACEOF 18138#define HAVE_WCTYPE_T 1 18139_ACEOF 18140 18141fi 18142 18143{ $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5 18144$as_echo_n "checking for wint_t in wctype.h... " >&6; } 18145if test "${bash_cv_type_wint_t+set}" = set; then 18146 $as_echo_n "(cached) " >&6 18147else 18148 cat >conftest.$ac_ext <<_ACEOF 18149/* confdefs.h. */ 18150_ACEOF 18151cat confdefs.h >>conftest.$ac_ext 18152cat >>conftest.$ac_ext <<_ACEOF 18153/* end confdefs.h. */ 18154#include <wctype.h> 18155int 18156main () 18157{ 18158 18159 wint_t foo; 18160 foo = 0; 18161 18162 ; 18163 return 0; 18164} 18165_ACEOF 18166rm -f conftest.$ac_objext 18167if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 18175 ac_status=$? 18176 grep -v '^ *+' conftest.er1 >conftest.err 18177 rm -f conftest.er1 18178 cat conftest.err >&5 18179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18180 (exit $ac_status); } && { 18181 test -z "$ac_c_werror_flag" || 18182 test ! -s conftest.err 18183 } && test -s conftest.$ac_objext; then 18184 bash_cv_type_wint_t=yes 18185else 18186 $as_echo "$as_me: failed program was:" >&5 18187sed 's/^/| /' conftest.$ac_ext >&5 18188 18189 bash_cv_type_wint_t=no 18190fi 18191 18192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18193fi 18194{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5 18195$as_echo "$bash_cv_type_wint_t" >&6; } 18196if test $bash_cv_type_wint_t = yes; then 18197 18198cat >>confdefs.h <<\_ACEOF 18199#define HAVE_WINT_T 1 18200_ACEOF 18201 18202fi 18203 18204 18205 18206if test "$opt_static_link" != yes; then 18207 18208{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18209$as_echo_n "checking for dlopen in -ldl... " >&6; } 18210if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18211 $as_echo_n "(cached) " >&6 18212else 18213 ac_check_lib_save_LIBS=$LIBS 18214LIBS="-ldl $LIBS" 18215cat >conftest.$ac_ext <<_ACEOF 18216/* confdefs.h. */ 18217_ACEOF 18218cat confdefs.h >>conftest.$ac_ext 18219cat >>conftest.$ac_ext <<_ACEOF 18220/* end confdefs.h. */ 18221 18222/* Override any GCC internal prototype to avoid an error. 18223 Use char because int might match the return type of a GCC 18224 builtin and then its argument prototype would still apply. */ 18225#ifdef __cplusplus 18226extern "C" 18227#endif 18228char dlopen (); 18229int 18230main () 18231{ 18232return dlopen (); 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237rm -f conftest.$ac_objext conftest$ac_exeext 18238if { (ac_try="$ac_link" 18239case "(($ac_try" in 18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18241 *) ac_try_echo=$ac_try;; 18242esac 18243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18244$as_echo "$ac_try_echo") >&5 18245 (eval "$ac_link") 2>conftest.er1 18246 ac_status=$? 18247 grep -v '^ *+' conftest.er1 >conftest.err 18248 rm -f conftest.er1 18249 cat conftest.err >&5 18250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18251 (exit $ac_status); } && { 18252 test -z "$ac_c_werror_flag" || 18253 test ! -s conftest.err 18254 } && test -s conftest$ac_exeext && { 18255 test "$cross_compiling" = yes || 18256 $as_test_x conftest$ac_exeext 18257 }; then 18258 ac_cv_lib_dl_dlopen=yes 18259else 18260 $as_echo "$as_me: failed program was:" >&5 18261sed 's/^/| /' conftest.$ac_ext >&5 18262 18263 ac_cv_lib_dl_dlopen=no 18264fi 18265 18266rm -rf conftest.dSYM 18267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18268 conftest$ac_exeext conftest.$ac_ext 18269LIBS=$ac_check_lib_save_LIBS 18270fi 18271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18272$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18273if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 18274 cat >>confdefs.h <<_ACEOF 18275#define HAVE_LIBDL 1 18276_ACEOF 18277 18278 LIBS="-ldl $LIBS" 18279 18280fi 18281 18282 18283 18284 18285for ac_func in dlopen dlclose dlsym 18286do 18287as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18288{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 18289$as_echo_n "checking for $ac_func... " >&6; } 18290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18291 $as_echo_n "(cached) " >&6 18292else 18293 cat >conftest.$ac_ext <<_ACEOF 18294/* confdefs.h. */ 18295_ACEOF 18296cat confdefs.h >>conftest.$ac_ext 18297cat >>conftest.$ac_ext <<_ACEOF 18298/* end confdefs.h. */ 18299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18300 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18301#define $ac_func innocuous_$ac_func 18302 18303/* System header to define __stub macros and hopefully few prototypes, 18304 which can conflict with char $ac_func (); below. 18305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18306 <limits.h> exists even on freestanding compilers. */ 18307 18308#ifdef __STDC__ 18309# include <limits.h> 18310#else 18311# include <assert.h> 18312#endif 18313 18314#undef $ac_func 18315 18316/* Override any GCC internal prototype to avoid an error. 18317 Use char because int might match the return type of a GCC 18318 builtin and then its argument prototype would still apply. */ 18319#ifdef __cplusplus 18320extern "C" 18321#endif 18322char $ac_func (); 18323/* The GNU C library defines this for functions which it implements 18324 to always fail with ENOSYS. Some functions are actually named 18325 something starting with __ and the normal name is an alias. */ 18326#if defined __stub_$ac_func || defined __stub___$ac_func 18327choke me 18328#endif 18329 18330int 18331main () 18332{ 18333return $ac_func (); 18334 ; 18335 return 0; 18336} 18337_ACEOF 18338rm -f conftest.$ac_objext conftest$ac_exeext 18339if { (ac_try="$ac_link" 18340case "(($ac_try" in 18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18342 *) ac_try_echo=$ac_try;; 18343esac 18344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18345$as_echo "$ac_try_echo") >&5 18346 (eval "$ac_link") 2>conftest.er1 18347 ac_status=$? 18348 grep -v '^ *+' conftest.er1 >conftest.err 18349 rm -f conftest.er1 18350 cat conftest.err >&5 18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18352 (exit $ac_status); } && { 18353 test -z "$ac_c_werror_flag" || 18354 test ! -s conftest.err 18355 } && test -s conftest$ac_exeext && { 18356 test "$cross_compiling" = yes || 18357 $as_test_x conftest$ac_exeext 18358 }; then 18359 eval "$as_ac_var=yes" 18360else 18361 $as_echo "$as_me: failed program was:" >&5 18362sed 's/^/| /' conftest.$ac_ext >&5 18363 18364 eval "$as_ac_var=no" 18365fi 18366 18367rm -rf conftest.dSYM 18368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18369 conftest$ac_exeext conftest.$ac_ext 18370fi 18371ac_res=`eval 'as_val=${'$as_ac_var'} 18372 $as_echo "$as_val"'` 18373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 18374$as_echo "$ac_res" >&6; } 18375as_val=`eval 'as_val=${'$as_ac_var'} 18376 $as_echo "$as_val"'` 18377 if test "x$as_val" = x""yes; then 18378 cat >>confdefs.h <<_ACEOF 18379#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18380_ACEOF 18381 18382fi 18383done 18384 18385fi 18386 18387{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 18388$as_echo_n "checking whether sys_siglist is declared... " >&6; } 18389if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 18390 $as_echo_n "(cached) " >&6 18391else 18392 cat >conftest.$ac_ext <<_ACEOF 18393/* confdefs.h. */ 18394_ACEOF 18395cat confdefs.h >>conftest.$ac_ext 18396cat >>conftest.$ac_ext <<_ACEOF 18397/* end confdefs.h. */ 18398#include <signal.h> 18399/* NetBSD declares sys_siglist in unistd.h. */ 18400#ifdef HAVE_UNISTD_H 18401# include <unistd.h> 18402#endif 18403 18404 18405int 18406main () 18407{ 18408#ifndef sys_siglist 18409 (void) sys_siglist; 18410#endif 18411 18412 ; 18413 return 0; 18414} 18415_ACEOF 18416rm -f conftest.$ac_objext 18417if { (ac_try="$ac_compile" 18418case "(($ac_try" in 18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18420 *) ac_try_echo=$ac_try;; 18421esac 18422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18423$as_echo "$ac_try_echo") >&5 18424 (eval "$ac_compile") 2>conftest.er1 18425 ac_status=$? 18426 grep -v '^ *+' conftest.er1 >conftest.err 18427 rm -f conftest.er1 18428 cat conftest.err >&5 18429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18430 (exit $ac_status); } && { 18431 test -z "$ac_c_werror_flag" || 18432 test ! -s conftest.err 18433 } && test -s conftest.$ac_objext; then 18434 ac_cv_have_decl_sys_siglist=yes 18435else 18436 $as_echo "$as_me: failed program was:" >&5 18437sed 's/^/| /' conftest.$ac_ext >&5 18438 18439 ac_cv_have_decl_sys_siglist=no 18440fi 18441 18442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18443fi 18444{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 18445$as_echo "$ac_cv_have_decl_sys_siglist" >&6; } 18446if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then 18447 18448cat >>confdefs.h <<_ACEOF 18449#define HAVE_DECL_SYS_SIGLIST 1 18450_ACEOF 18451 18452 18453else 18454 cat >>confdefs.h <<_ACEOF 18455#define HAVE_DECL_SYS_SIGLIST 0 18456_ACEOF 18457 18458 18459fi 18460 18461 18462 18463 18464if test "$ac_cv_func_inet_aton" != 'yes'; then 18465 18466{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 18467$as_echo_n "checking for inet_aton... " >&6; } 18468if test "${bash_cv_func_inet_aton+set}" = set; then 18469 $as_echo_n "(cached) " >&6 18470else 18471 cat >conftest.$ac_ext <<_ACEOF 18472/* confdefs.h. */ 18473_ACEOF 18474cat confdefs.h >>conftest.$ac_ext 18475cat >>conftest.$ac_ext <<_ACEOF 18476/* end confdefs.h. */ 18477 18478#include <sys/types.h> 18479#include <netinet/in.h> 18480#include <arpa/inet.h> 18481struct in_addr ap; 18482int 18483main () 18484{ 18485 inet_aton("127.0.0.1", &ap); 18486 ; 18487 return 0; 18488} 18489_ACEOF 18490rm -f conftest.$ac_objext conftest$ac_exeext 18491if { (ac_try="$ac_link" 18492case "(($ac_try" in 18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18494 *) ac_try_echo=$ac_try;; 18495esac 18496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18497$as_echo "$ac_try_echo") >&5 18498 (eval "$ac_link") 2>conftest.er1 18499 ac_status=$? 18500 grep -v '^ *+' conftest.er1 >conftest.err 18501 rm -f conftest.er1 18502 cat conftest.err >&5 18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18504 (exit $ac_status); } && { 18505 test -z "$ac_c_werror_flag" || 18506 test ! -s conftest.err 18507 } && test -s conftest$ac_exeext && { 18508 test "$cross_compiling" = yes || 18509 $as_test_x conftest$ac_exeext 18510 }; then 18511 bash_cv_func_inet_aton=yes 18512else 18513 $as_echo "$as_me: failed program was:" >&5 18514sed 's/^/| /' conftest.$ac_ext >&5 18515 18516 bash_cv_func_inet_aton=no 18517fi 18518 18519rm -rf conftest.dSYM 18520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18521 conftest$ac_exeext conftest.$ac_ext 18522fi 18523{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5 18524$as_echo "$bash_cv_func_inet_aton" >&6; } 18525if test $bash_cv_func_inet_aton = yes; then 18526 cat >>confdefs.h <<\_ACEOF 18527#define HAVE_INET_ATON 1 18528_ACEOF 18529 18530else 18531 case " $LIBOBJS " in 18532 *" inet_aton.$ac_objext "* ) ;; 18533 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 18534 ;; 18535esac 18536 18537fi 18538 18539fi 18540 18541case "$host_os" in 18542irix4*) 18543{ $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5 18544$as_echo_n "checking for getpwent in -lsun... " >&6; } 18545if test "${ac_cv_lib_sun_getpwent+set}" = set; then 18546 $as_echo_n "(cached) " >&6 18547else 18548 ac_check_lib_save_LIBS=$LIBS 18549LIBS="-lsun $LIBS" 18550cat >conftest.$ac_ext <<_ACEOF 18551/* confdefs.h. */ 18552_ACEOF 18553cat confdefs.h >>conftest.$ac_ext 18554cat >>conftest.$ac_ext <<_ACEOF 18555/* end confdefs.h. */ 18556 18557/* Override any GCC internal prototype to avoid an error. 18558 Use char because int might match the return type of a GCC 18559 builtin and then its argument prototype would still apply. */ 18560#ifdef __cplusplus 18561extern "C" 18562#endif 18563char getpwent (); 18564int 18565main () 18566{ 18567return getpwent (); 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572rm -f conftest.$ac_objext conftest$ac_exeext 18573if { (ac_try="$ac_link" 18574case "(($ac_try" in 18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18576 *) ac_try_echo=$ac_try;; 18577esac 18578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18579$as_echo "$ac_try_echo") >&5 18580 (eval "$ac_link") 2>conftest.er1 18581 ac_status=$? 18582 grep -v '^ *+' conftest.er1 >conftest.err 18583 rm -f conftest.er1 18584 cat conftest.err >&5 18585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18586 (exit $ac_status); } && { 18587 test -z "$ac_c_werror_flag" || 18588 test ! -s conftest.err 18589 } && test -s conftest$ac_exeext && { 18590 test "$cross_compiling" = yes || 18591 $as_test_x conftest$ac_exeext 18592 }; then 18593 ac_cv_lib_sun_getpwent=yes 18594else 18595 $as_echo "$as_me: failed program was:" >&5 18596sed 's/^/| /' conftest.$ac_ext >&5 18597 18598 ac_cv_lib_sun_getpwent=no 18599fi 18600 18601rm -rf conftest.dSYM 18602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18603 conftest$ac_exeext conftest.$ac_ext 18604LIBS=$ac_check_lib_save_LIBS 18605fi 18606{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5 18607$as_echo "$ac_cv_lib_sun_getpwent" >&6; } 18608if test "x$ac_cv_lib_sun_getpwent" = x""yes; then 18609 cat >>confdefs.h <<_ACEOF 18610#define HAVE_LIBSUN 1 18611_ACEOF 18612 18613 LIBS="-lsun $LIBS" 18614 18615fi 18616 ;; 18617esac 18618 18619if test "$ac_cv_func_getpeername" = no; then 18620 18621if test "X$bash_cv_have_socklib" = "X"; then 18622_bash_needmsg= 18623else 18624{ $as_echo "$as_me:$LINENO: checking for socket library" >&5 18625$as_echo_n "checking for socket library... " >&6; } 18626_bash_needmsg=yes 18627fi 18628if test "${bash_cv_have_socklib+set}" = set; then 18629 $as_echo_n "(cached) " >&6 18630else 18631 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5 18632$as_echo_n "checking for getpeername in -lsocket... " >&6; } 18633if test "${ac_cv_lib_socket_getpeername+set}" = set; then 18634 $as_echo_n "(cached) " >&6 18635else 18636 ac_check_lib_save_LIBS=$LIBS 18637LIBS="-lsocket -lnsl $LIBS" 18638cat >conftest.$ac_ext <<_ACEOF 18639/* confdefs.h. */ 18640_ACEOF 18641cat confdefs.h >>conftest.$ac_ext 18642cat >>conftest.$ac_ext <<_ACEOF 18643/* end confdefs.h. */ 18644 18645/* Override any GCC internal prototype to avoid an error. 18646 Use char because int might match the return type of a GCC 18647 builtin and then its argument prototype would still apply. */ 18648#ifdef __cplusplus 18649extern "C" 18650#endif 18651char getpeername (); 18652int 18653main () 18654{ 18655return getpeername (); 18656 ; 18657 return 0; 18658} 18659_ACEOF 18660rm -f conftest.$ac_objext conftest$ac_exeext 18661if { (ac_try="$ac_link" 18662case "(($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_link") 2>conftest.er1 18669 ac_status=$? 18670 grep -v '^ *+' conftest.er1 >conftest.err 18671 rm -f conftest.er1 18672 cat conftest.err >&5 18673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18674 (exit $ac_status); } && { 18675 test -z "$ac_c_werror_flag" || 18676 test ! -s conftest.err 18677 } && test -s conftest$ac_exeext && { 18678 test "$cross_compiling" = yes || 18679 $as_test_x conftest$ac_exeext 18680 }; then 18681 ac_cv_lib_socket_getpeername=yes 18682else 18683 $as_echo "$as_me: failed program was:" >&5 18684sed 's/^/| /' conftest.$ac_ext >&5 18685 18686 ac_cv_lib_socket_getpeername=no 18687fi 18688 18689rm -rf conftest.dSYM 18690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18691 conftest$ac_exeext conftest.$ac_ext 18692LIBS=$ac_check_lib_save_LIBS 18693fi 18694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5 18695$as_echo "$ac_cv_lib_socket_getpeername" >&6; } 18696if test "x$ac_cv_lib_socket_getpeername" = x""yes; then 18697 bash_cv_have_socklib=yes 18698else 18699 bash_cv_have_socklib=no 18700fi 18701 18702fi 18703 18704if test "X$_bash_needmsg" = Xyes; then 18705 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5 18706$as_echo "$bash_cv_have_socklib" >&6; } 18707 _bash_needmsg= 18708fi 18709if test $bash_cv_have_socklib = yes; then 18710 # check for libnsl, add it to LIBS if present 18711 if test "X$bash_cv_have_libnsl" = "X"; then 18712 _bash_needmsg= 18713 else 18714 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5 18715$as_echo_n "checking for libnsl... " >&6; } 18716 _bash_needmsg=yes 18717 fi 18718 if test "${bash_cv_have_libnsl+set}" = set; then 18719 $as_echo_n "(cached) " >&6 18720else 18721 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 18722$as_echo_n "checking for t_open in -lnsl... " >&6; } 18723if test "${ac_cv_lib_nsl_t_open+set}" = set; then 18724 $as_echo_n "(cached) " >&6 18725else 18726 ac_check_lib_save_LIBS=$LIBS 18727LIBS="-lnsl $LIBS" 18728cat >conftest.$ac_ext <<_ACEOF 18729/* confdefs.h. */ 18730_ACEOF 18731cat confdefs.h >>conftest.$ac_ext 18732cat >>conftest.$ac_ext <<_ACEOF 18733/* end confdefs.h. */ 18734 18735/* Override any GCC internal prototype to avoid an error. 18736 Use char because int might match the return type of a GCC 18737 builtin and then its argument prototype would still apply. */ 18738#ifdef __cplusplus 18739extern "C" 18740#endif 18741char t_open (); 18742int 18743main () 18744{ 18745return t_open (); 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_lib_nsl_t_open=yes 18772else 18773 $as_echo "$as_me: failed program was:" >&5 18774sed 's/^/| /' conftest.$ac_ext >&5 18775 18776 ac_cv_lib_nsl_t_open=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 18782LIBS=$ac_check_lib_save_LIBS 18783fi 18784{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 18785$as_echo "$ac_cv_lib_nsl_t_open" >&6; } 18786if test "x$ac_cv_lib_nsl_t_open" = x""yes; then 18787 bash_cv_have_libnsl=yes 18788else 18789 bash_cv_have_libnsl=no 18790fi 18791 18792fi 18793 18794 if test "X$_bash_needmsg" = Xyes; then 18795 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5 18796$as_echo "$bash_cv_have_libnsl" >&6; } 18797 _bash_needmsg= 18798 fi 18799 if test $bash_cv_have_libnsl = yes; then 18800 LIBS="-lsocket -lnsl $LIBS" 18801 else 18802 LIBS="-lsocket $LIBS" 18803 fi 18804 cat >>confdefs.h <<\_ACEOF 18805#define HAVE_LIBSOCKET 1 18806_ACEOF 18807 18808 cat >>confdefs.h <<\_ACEOF 18809#define HAVE_GETPEERNAME 1 18810_ACEOF 18811 18812fi 18813 18814fi 18815if test "$ac_cv_func_gethostbyname" = no; then 18816 if test "X$bash_cv_have_gethostbyname" = "X"; then 18817_bash_needmsg=yes 18818else 18819{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 18820$as_echo_n "checking for gethostbyname in socket library... " >&6; } 18821_bash_needmsg= 18822fi 18823if test "${bash_cv_have_gethostbyname+set}" = set; then 18824 $as_echo_n "(cached) " >&6 18825else 18826 cat >conftest.$ac_ext <<_ACEOF 18827/* confdefs.h. */ 18828_ACEOF 18829cat confdefs.h >>conftest.$ac_ext 18830cat >>conftest.$ac_ext <<_ACEOF 18831/* end confdefs.h. */ 18832#include <netdb.h> 18833int 18834main () 18835{ 18836 struct hostent *hp; 18837 hp = gethostbyname("localhost"); 18838 18839 ; 18840 return 0; 18841} 18842_ACEOF 18843rm -f conftest.$ac_objext conftest$ac_exeext 18844if { (ac_try="$ac_link" 18845case "(($ac_try" in 18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18847 *) ac_try_echo=$ac_try;; 18848esac 18849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18850$as_echo "$ac_try_echo") >&5 18851 (eval "$ac_link") 2>conftest.er1 18852 ac_status=$? 18853 grep -v '^ *+' conftest.er1 >conftest.err 18854 rm -f conftest.er1 18855 cat conftest.err >&5 18856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18857 (exit $ac_status); } && { 18858 test -z "$ac_c_werror_flag" || 18859 test ! -s conftest.err 18860 } && test -s conftest$ac_exeext && { 18861 test "$cross_compiling" = yes || 18862 $as_test_x conftest$ac_exeext 18863 }; then 18864 bash_cv_have_gethostbyname=yes 18865else 18866 $as_echo "$as_me: failed program was:" >&5 18867sed 's/^/| /' conftest.$ac_ext >&5 18868 18869 bash_cv_have_gethostbyname=no 18870fi 18871 18872rm -rf conftest.dSYM 18873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18874 conftest$ac_exeext conftest.$ac_ext 18875 18876fi 18877 18878if test "X$_bash_needmsg" = Xyes; then 18879 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 18880$as_echo_n "checking for gethostbyname in socket library... " >&6; } 18881fi 18882{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5 18883$as_echo "$bash_cv_have_gethostbyname" >&6; } 18884if test "$bash_cv_have_gethostbyname" = yes; then 18885cat >>confdefs.h <<\_ACEOF 18886#define HAVE_GETHOSTBYNAME 1 18887_ACEOF 18888 18889fi 18890 18891fi 18892 18893{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 18894$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 18895if test "${ac_cv_type_uid_t+set}" = set; then 18896 $as_echo_n "(cached) " >&6 18897else 18898 cat >conftest.$ac_ext <<_ACEOF 18899/* confdefs.h. */ 18900_ACEOF 18901cat confdefs.h >>conftest.$ac_ext 18902cat >>conftest.$ac_ext <<_ACEOF 18903/* end confdefs.h. */ 18904#include <sys/types.h> 18905 18906_ACEOF 18907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18908 $EGREP "uid_t" >/dev/null 2>&1; then 18909 ac_cv_type_uid_t=yes 18910else 18911 ac_cv_type_uid_t=no 18912fi 18913rm -f conftest* 18914 18915fi 18916{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 18917$as_echo "$ac_cv_type_uid_t" >&6; } 18918if test $ac_cv_type_uid_t = no; then 18919 18920cat >>confdefs.h <<\_ACEOF 18921#define uid_t int 18922_ACEOF 18923 18924 18925cat >>confdefs.h <<\_ACEOF 18926#define gid_t int 18927_ACEOF 18928 18929fi 18930 18931{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 18932$as_echo_n "checking type of array argument to getgroups... " >&6; } 18933if test "${ac_cv_type_getgroups+set}" = set; then 18934 $as_echo_n "(cached) " >&6 18935else 18936 if test "$cross_compiling" = yes; then 18937 ac_cv_type_getgroups=cross 18938else 18939 cat >conftest.$ac_ext <<_ACEOF 18940/* confdefs.h. */ 18941_ACEOF 18942cat confdefs.h >>conftest.$ac_ext 18943cat >>conftest.$ac_ext <<_ACEOF 18944/* end confdefs.h. */ 18945/* Thanks to Mike Rendell for this test. */ 18946$ac_includes_default 18947#define NGID 256 18948#undef MAX 18949#define MAX(x, y) ((x) > (y) ? (x) : (y)) 18950 18951int 18952main () 18953{ 18954 gid_t gidset[NGID]; 18955 int i, n; 18956 union { gid_t gval; long int lval; } val; 18957 18958 val.lval = -1; 18959 for (i = 0; i < NGID; i++) 18960 gidset[i] = val.gval; 18961 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 18962 gidset); 18963 /* Exit non-zero if getgroups seems to require an array of ints. This 18964 happens when gid_t is short int but getgroups modifies an array 18965 of ints. */ 18966 return n > 0 && gidset[n] != val.gval; 18967} 18968_ACEOF 18969rm -f conftest$ac_exeext 18970if { (ac_try="$ac_link" 18971case "(($ac_try" in 18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18973 *) ac_try_echo=$ac_try;; 18974esac 18975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18976$as_echo "$ac_try_echo") >&5 18977 (eval "$ac_link") 2>&5 18978 ac_status=$? 18979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18981 { (case "(($ac_try" in 18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18983 *) ac_try_echo=$ac_try;; 18984esac 18985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18986$as_echo "$ac_try_echo") >&5 18987 (eval "$ac_try") 2>&5 18988 ac_status=$? 18989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18990 (exit $ac_status); }; }; then 18991 ac_cv_type_getgroups=gid_t 18992else 18993 $as_echo "$as_me: program exited with status $ac_status" >&5 18994$as_echo "$as_me: failed program was:" >&5 18995sed 's/^/| /' conftest.$ac_ext >&5 18996 18997( exit $ac_status ) 18998ac_cv_type_getgroups=int 18999fi 19000rm -rf conftest.dSYM 19001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19002fi 19003 19004 19005if test $ac_cv_type_getgroups = cross; then 19006 cat >conftest.$ac_ext <<_ACEOF 19007/* confdefs.h. */ 19008_ACEOF 19009cat confdefs.h >>conftest.$ac_ext 19010cat >>conftest.$ac_ext <<_ACEOF 19011/* end confdefs.h. */ 19012#include <unistd.h> 19013 19014_ACEOF 19015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19016 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then 19017 ac_cv_type_getgroups=gid_t 19018else 19019 ac_cv_type_getgroups=int 19020fi 19021rm -f conftest* 19022 19023fi 19024fi 19025{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 19026$as_echo "$ac_cv_type_getgroups" >&6; } 19027 19028cat >>confdefs.h <<_ACEOF 19029#define GETGROUPS_T $ac_cv_type_getgroups 19030_ACEOF 19031 19032 19033{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 19034$as_echo_n "checking for off_t... " >&6; } 19035if test "${ac_cv_type_off_t+set}" = set; then 19036 $as_echo_n "(cached) " >&6 19037else 19038 ac_cv_type_off_t=no 19039cat >conftest.$ac_ext <<_ACEOF 19040/* confdefs.h. */ 19041_ACEOF 19042cat confdefs.h >>conftest.$ac_ext 19043cat >>conftest.$ac_ext <<_ACEOF 19044/* end confdefs.h. */ 19045$ac_includes_default 19046int 19047main () 19048{ 19049if (sizeof (off_t)) 19050 return 0; 19051 ; 19052 return 0; 19053} 19054_ACEOF 19055rm -f conftest.$ac_objext 19056if { (ac_try="$ac_compile" 19057case "(($ac_try" in 19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19059 *) ac_try_echo=$ac_try;; 19060esac 19061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19062$as_echo "$ac_try_echo") >&5 19063 (eval "$ac_compile") 2>conftest.er1 19064 ac_status=$? 19065 grep -v '^ *+' conftest.er1 >conftest.err 19066 rm -f conftest.er1 19067 cat conftest.err >&5 19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19069 (exit $ac_status); } && { 19070 test -z "$ac_c_werror_flag" || 19071 test ! -s conftest.err 19072 } && test -s conftest.$ac_objext; then 19073 cat >conftest.$ac_ext <<_ACEOF 19074/* confdefs.h. */ 19075_ACEOF 19076cat confdefs.h >>conftest.$ac_ext 19077cat >>conftest.$ac_ext <<_ACEOF 19078/* end confdefs.h. */ 19079$ac_includes_default 19080int 19081main () 19082{ 19083if (sizeof ((off_t))) 19084 return 0; 19085 ; 19086 return 0; 19087} 19088_ACEOF 19089rm -f conftest.$ac_objext 19090if { (ac_try="$ac_compile" 19091case "(($ac_try" in 19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19093 *) ac_try_echo=$ac_try;; 19094esac 19095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19096$as_echo "$ac_try_echo") >&5 19097 (eval "$ac_compile") 2>conftest.er1 19098 ac_status=$? 19099 grep -v '^ *+' conftest.er1 >conftest.err 19100 rm -f conftest.er1 19101 cat conftest.err >&5 19102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19103 (exit $ac_status); } && { 19104 test -z "$ac_c_werror_flag" || 19105 test ! -s conftest.err 19106 } && test -s conftest.$ac_objext; then 19107 : 19108else 19109 $as_echo "$as_me: failed program was:" >&5 19110sed 's/^/| /' conftest.$ac_ext >&5 19111 19112 ac_cv_type_off_t=yes 19113fi 19114 19115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19116else 19117 $as_echo "$as_me: failed program was:" >&5 19118sed 's/^/| /' conftest.$ac_ext >&5 19119 19120 19121fi 19122 19123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19124fi 19125{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 19126$as_echo "$ac_cv_type_off_t" >&6; } 19127if test "x$ac_cv_type_off_t" = x""yes; then 19128 : 19129else 19130 19131cat >>confdefs.h <<_ACEOF 19132#define off_t long int 19133_ACEOF 19134 19135fi 19136 19137{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5 19138$as_echo_n "checking for mode_t... " >&6; } 19139if test "${ac_cv_type_mode_t+set}" = set; then 19140 $as_echo_n "(cached) " >&6 19141else 19142 ac_cv_type_mode_t=no 19143cat >conftest.$ac_ext <<_ACEOF 19144/* confdefs.h. */ 19145_ACEOF 19146cat confdefs.h >>conftest.$ac_ext 19147cat >>conftest.$ac_ext <<_ACEOF 19148/* end confdefs.h. */ 19149$ac_includes_default 19150int 19151main () 19152{ 19153if (sizeof (mode_t)) 19154 return 0; 19155 ; 19156 return 0; 19157} 19158_ACEOF 19159rm -f conftest.$ac_objext 19160if { (ac_try="$ac_compile" 19161case "(($ac_try" in 19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19163 *) ac_try_echo=$ac_try;; 19164esac 19165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19166$as_echo "$ac_try_echo") >&5 19167 (eval "$ac_compile") 2>conftest.er1 19168 ac_status=$? 19169 grep -v '^ *+' conftest.er1 >conftest.err 19170 rm -f conftest.er1 19171 cat conftest.err >&5 19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19173 (exit $ac_status); } && { 19174 test -z "$ac_c_werror_flag" || 19175 test ! -s conftest.err 19176 } && test -s conftest.$ac_objext; then 19177 cat >conftest.$ac_ext <<_ACEOF 19178/* confdefs.h. */ 19179_ACEOF 19180cat confdefs.h >>conftest.$ac_ext 19181cat >>conftest.$ac_ext <<_ACEOF 19182/* end confdefs.h. */ 19183$ac_includes_default 19184int 19185main () 19186{ 19187if (sizeof ((mode_t))) 19188 return 0; 19189 ; 19190 return 0; 19191} 19192_ACEOF 19193rm -f conftest.$ac_objext 19194if { (ac_try="$ac_compile" 19195case "(($ac_try" in 19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19197 *) ac_try_echo=$ac_try;; 19198esac 19199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19200$as_echo "$ac_try_echo") >&5 19201 (eval "$ac_compile") 2>conftest.er1 19202 ac_status=$? 19203 grep -v '^ *+' conftest.er1 >conftest.err 19204 rm -f conftest.er1 19205 cat conftest.err >&5 19206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19207 (exit $ac_status); } && { 19208 test -z "$ac_c_werror_flag" || 19209 test ! -s conftest.err 19210 } && test -s conftest.$ac_objext; then 19211 : 19212else 19213 $as_echo "$as_me: failed program was:" >&5 19214sed 's/^/| /' conftest.$ac_ext >&5 19215 19216 ac_cv_type_mode_t=yes 19217fi 19218 19219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19220else 19221 $as_echo "$as_me: failed program was:" >&5 19222sed 's/^/| /' conftest.$ac_ext >&5 19223 19224 19225fi 19226 19227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19228fi 19229{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 19230$as_echo "$ac_cv_type_mode_t" >&6; } 19231if test "x$ac_cv_type_mode_t" = x""yes; then 19232 : 19233else 19234 19235cat >>confdefs.h <<_ACEOF 19236#define mode_t int 19237_ACEOF 19238 19239fi 19240 19241{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 19242$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 19243if test "${ac_cv_type_uid_t+set}" = set; then 19244 $as_echo_n "(cached) " >&6 19245else 19246 cat >conftest.$ac_ext <<_ACEOF 19247/* confdefs.h. */ 19248_ACEOF 19249cat confdefs.h >>conftest.$ac_ext 19250cat >>conftest.$ac_ext <<_ACEOF 19251/* end confdefs.h. */ 19252#include <sys/types.h> 19253 19254_ACEOF 19255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19256 $EGREP "uid_t" >/dev/null 2>&1; then 19257 ac_cv_type_uid_t=yes 19258else 19259 ac_cv_type_uid_t=no 19260fi 19261rm -f conftest* 19262 19263fi 19264{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 19265$as_echo "$ac_cv_type_uid_t" >&6; } 19266if test $ac_cv_type_uid_t = no; then 19267 19268cat >>confdefs.h <<\_ACEOF 19269#define uid_t int 19270_ACEOF 19271 19272 19273cat >>confdefs.h <<\_ACEOF 19274#define gid_t int 19275_ACEOF 19276 19277fi 19278 19279{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 19280$as_echo_n "checking for pid_t... " >&6; } 19281if test "${ac_cv_type_pid_t+set}" = set; then 19282 $as_echo_n "(cached) " >&6 19283else 19284 ac_cv_type_pid_t=no 19285cat >conftest.$ac_ext <<_ACEOF 19286/* confdefs.h. */ 19287_ACEOF 19288cat confdefs.h >>conftest.$ac_ext 19289cat >>conftest.$ac_ext <<_ACEOF 19290/* end confdefs.h. */ 19291$ac_includes_default 19292int 19293main () 19294{ 19295if (sizeof (pid_t)) 19296 return 0; 19297 ; 19298 return 0; 19299} 19300_ACEOF 19301rm -f conftest.$ac_objext 19302if { (ac_try="$ac_compile" 19303case "(($ac_try" in 19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19305 *) ac_try_echo=$ac_try;; 19306esac 19307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19308$as_echo "$ac_try_echo") >&5 19309 (eval "$ac_compile") 2>conftest.er1 19310 ac_status=$? 19311 grep -v '^ *+' conftest.er1 >conftest.err 19312 rm -f conftest.er1 19313 cat conftest.err >&5 19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19315 (exit $ac_status); } && { 19316 test -z "$ac_c_werror_flag" || 19317 test ! -s conftest.err 19318 } && test -s conftest.$ac_objext; then 19319 cat >conftest.$ac_ext <<_ACEOF 19320/* confdefs.h. */ 19321_ACEOF 19322cat confdefs.h >>conftest.$ac_ext 19323cat >>conftest.$ac_ext <<_ACEOF 19324/* end confdefs.h. */ 19325$ac_includes_default 19326int 19327main () 19328{ 19329if (sizeof ((pid_t))) 19330 return 0; 19331 ; 19332 return 0; 19333} 19334_ACEOF 19335rm -f conftest.$ac_objext 19336if { (ac_try="$ac_compile" 19337case "(($ac_try" in 19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19339 *) ac_try_echo=$ac_try;; 19340esac 19341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19342$as_echo "$ac_try_echo") >&5 19343 (eval "$ac_compile") 2>conftest.er1 19344 ac_status=$? 19345 grep -v '^ *+' conftest.er1 >conftest.err 19346 rm -f conftest.er1 19347 cat conftest.err >&5 19348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19349 (exit $ac_status); } && { 19350 test -z "$ac_c_werror_flag" || 19351 test ! -s conftest.err 19352 } && test -s conftest.$ac_objext; then 19353 : 19354else 19355 $as_echo "$as_me: failed program was:" >&5 19356sed 's/^/| /' conftest.$ac_ext >&5 19357 19358 ac_cv_type_pid_t=yes 19359fi 19360 19361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19362else 19363 $as_echo "$as_me: failed program was:" >&5 19364sed 's/^/| /' conftest.$ac_ext >&5 19365 19366 19367fi 19368 19369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19370fi 19371{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 19372$as_echo "$ac_cv_type_pid_t" >&6; } 19373if test "x$ac_cv_type_pid_t" = x""yes; then 19374 : 19375else 19376 19377cat >>confdefs.h <<_ACEOF 19378#define pid_t int 19379_ACEOF 19380 19381fi 19382 19383{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 19384$as_echo_n "checking for size_t... " >&6; } 19385if test "${ac_cv_type_size_t+set}" = set; then 19386 $as_echo_n "(cached) " >&6 19387else 19388 ac_cv_type_size_t=no 19389cat >conftest.$ac_ext <<_ACEOF 19390/* confdefs.h. */ 19391_ACEOF 19392cat confdefs.h >>conftest.$ac_ext 19393cat >>conftest.$ac_ext <<_ACEOF 19394/* end confdefs.h. */ 19395$ac_includes_default 19396int 19397main () 19398{ 19399if (sizeof (size_t)) 19400 return 0; 19401 ; 19402 return 0; 19403} 19404_ACEOF 19405rm -f conftest.$ac_objext 19406if { (ac_try="$ac_compile" 19407case "(($ac_try" in 19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19409 *) ac_try_echo=$ac_try;; 19410esac 19411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19412$as_echo "$ac_try_echo") >&5 19413 (eval "$ac_compile") 2>conftest.er1 19414 ac_status=$? 19415 grep -v '^ *+' conftest.er1 >conftest.err 19416 rm -f conftest.er1 19417 cat conftest.err >&5 19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19419 (exit $ac_status); } && { 19420 test -z "$ac_c_werror_flag" || 19421 test ! -s conftest.err 19422 } && test -s conftest.$ac_objext; then 19423 cat >conftest.$ac_ext <<_ACEOF 19424/* confdefs.h. */ 19425_ACEOF 19426cat confdefs.h >>conftest.$ac_ext 19427cat >>conftest.$ac_ext <<_ACEOF 19428/* end confdefs.h. */ 19429$ac_includes_default 19430int 19431main () 19432{ 19433if (sizeof ((size_t))) 19434 return 0; 19435 ; 19436 return 0; 19437} 19438_ACEOF 19439rm -f conftest.$ac_objext 19440if { (ac_try="$ac_compile" 19441case "(($ac_try" in 19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19443 *) ac_try_echo=$ac_try;; 19444esac 19445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19446$as_echo "$ac_try_echo") >&5 19447 (eval "$ac_compile") 2>conftest.er1 19448 ac_status=$? 19449 grep -v '^ *+' conftest.er1 >conftest.err 19450 rm -f conftest.er1 19451 cat conftest.err >&5 19452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19453 (exit $ac_status); } && { 19454 test -z "$ac_c_werror_flag" || 19455 test ! -s conftest.err 19456 } && test -s conftest.$ac_objext; then 19457 : 19458else 19459 $as_echo "$as_me: failed program was:" >&5 19460sed 's/^/| /' conftest.$ac_ext >&5 19461 19462 ac_cv_type_size_t=yes 19463fi 19464 19465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19466else 19467 $as_echo "$as_me: failed program was:" >&5 19468sed 's/^/| /' conftest.$ac_ext >&5 19469 19470 19471fi 19472 19473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19474fi 19475{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19476$as_echo "$ac_cv_type_size_t" >&6; } 19477if test "x$ac_cv_type_size_t" = x""yes; then 19478 : 19479else 19480 19481cat >>confdefs.h <<_ACEOF 19482#define size_t unsigned int 19483_ACEOF 19484 19485fi 19486 19487{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 19488$as_echo_n "checking for ssize_t... " >&6; } 19489if test "${ac_cv_type_ssize_t+set}" = set; then 19490 $as_echo_n "(cached) " >&6 19491else 19492 ac_cv_type_ssize_t=no 19493cat >conftest.$ac_ext <<_ACEOF 19494/* confdefs.h. */ 19495_ACEOF 19496cat confdefs.h >>conftest.$ac_ext 19497cat >>conftest.$ac_ext <<_ACEOF 19498/* end confdefs.h. */ 19499$ac_includes_default 19500int 19501main () 19502{ 19503if (sizeof (ssize_t)) 19504 return 0; 19505 ; 19506 return 0; 19507} 19508_ACEOF 19509rm -f conftest.$ac_objext 19510if { (ac_try="$ac_compile" 19511case "(($ac_try" in 19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19513 *) ac_try_echo=$ac_try;; 19514esac 19515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19516$as_echo "$ac_try_echo") >&5 19517 (eval "$ac_compile") 2>conftest.er1 19518 ac_status=$? 19519 grep -v '^ *+' conftest.er1 >conftest.err 19520 rm -f conftest.er1 19521 cat conftest.err >&5 19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19523 (exit $ac_status); } && { 19524 test -z "$ac_c_werror_flag" || 19525 test ! -s conftest.err 19526 } && test -s conftest.$ac_objext; then 19527 cat >conftest.$ac_ext <<_ACEOF 19528/* confdefs.h. */ 19529_ACEOF 19530cat confdefs.h >>conftest.$ac_ext 19531cat >>conftest.$ac_ext <<_ACEOF 19532/* end confdefs.h. */ 19533$ac_includes_default 19534int 19535main () 19536{ 19537if (sizeof ((ssize_t))) 19538 return 0; 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543rm -f conftest.$ac_objext 19544if { (ac_try="$ac_compile" 19545case "(($ac_try" in 19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19547 *) ac_try_echo=$ac_try;; 19548esac 19549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19550$as_echo "$ac_try_echo") >&5 19551 (eval "$ac_compile") 2>conftest.er1 19552 ac_status=$? 19553 grep -v '^ *+' conftest.er1 >conftest.err 19554 rm -f conftest.er1 19555 cat conftest.err >&5 19556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19557 (exit $ac_status); } && { 19558 test -z "$ac_c_werror_flag" || 19559 test ! -s conftest.err 19560 } && test -s conftest.$ac_objext; then 19561 : 19562else 19563 $as_echo "$as_me: failed program was:" >&5 19564sed 's/^/| /' conftest.$ac_ext >&5 19565 19566 ac_cv_type_ssize_t=yes 19567fi 19568 19569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19570else 19571 $as_echo "$as_me: failed program was:" >&5 19572sed 's/^/| /' conftest.$ac_ext >&5 19573 19574 19575fi 19576 19577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19578fi 19579{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 19580$as_echo "$ac_cv_type_ssize_t" >&6; } 19581if test "x$ac_cv_type_ssize_t" = x""yes; then 19582 : 19583else 19584 19585cat >>confdefs.h <<_ACEOF 19586#define ssize_t int 19587_ACEOF 19588 19589fi 19590 19591{ $as_echo "$as_me:$LINENO: checking for time_t" >&5 19592$as_echo_n "checking for time_t... " >&6; } 19593if test "${ac_cv_type_time_t+set}" = set; then 19594 $as_echo_n "(cached) " >&6 19595else 19596 ac_cv_type_time_t=no 19597cat >conftest.$ac_ext <<_ACEOF 19598/* confdefs.h. */ 19599_ACEOF 19600cat confdefs.h >>conftest.$ac_ext 19601cat >>conftest.$ac_ext <<_ACEOF 19602/* end confdefs.h. */ 19603$ac_includes_default 19604int 19605main () 19606{ 19607if (sizeof (time_t)) 19608 return 0; 19609 ; 19610 return 0; 19611} 19612_ACEOF 19613rm -f conftest.$ac_objext 19614if { (ac_try="$ac_compile" 19615case "(($ac_try" in 19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19617 *) ac_try_echo=$ac_try;; 19618esac 19619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19620$as_echo "$ac_try_echo") >&5 19621 (eval "$ac_compile") 2>conftest.er1 19622 ac_status=$? 19623 grep -v '^ *+' conftest.er1 >conftest.err 19624 rm -f conftest.er1 19625 cat conftest.err >&5 19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19627 (exit $ac_status); } && { 19628 test -z "$ac_c_werror_flag" || 19629 test ! -s conftest.err 19630 } && test -s conftest.$ac_objext; then 19631 cat >conftest.$ac_ext <<_ACEOF 19632/* confdefs.h. */ 19633_ACEOF 19634cat confdefs.h >>conftest.$ac_ext 19635cat >>conftest.$ac_ext <<_ACEOF 19636/* end confdefs.h. */ 19637$ac_includes_default 19638int 19639main () 19640{ 19641if (sizeof ((time_t))) 19642 return 0; 19643 ; 19644 return 0; 19645} 19646_ACEOF 19647rm -f conftest.$ac_objext 19648if { (ac_try="$ac_compile" 19649case "(($ac_try" in 19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19651 *) ac_try_echo=$ac_try;; 19652esac 19653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19654$as_echo "$ac_try_echo") >&5 19655 (eval "$ac_compile") 2>conftest.er1 19656 ac_status=$? 19657 grep -v '^ *+' conftest.er1 >conftest.err 19658 rm -f conftest.er1 19659 cat conftest.err >&5 19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19661 (exit $ac_status); } && { 19662 test -z "$ac_c_werror_flag" || 19663 test ! -s conftest.err 19664 } && test -s conftest.$ac_objext; then 19665 : 19666else 19667 $as_echo "$as_me: failed program was:" >&5 19668sed 's/^/| /' conftest.$ac_ext >&5 19669 19670 ac_cv_type_time_t=yes 19671fi 19672 19673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19674else 19675 $as_echo "$as_me: failed program was:" >&5 19676sed 's/^/| /' conftest.$ac_ext >&5 19677 19678 19679fi 19680 19681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19682fi 19683{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 19684$as_echo "$ac_cv_type_time_t" >&6; } 19685if test "x$ac_cv_type_time_t" = x""yes; then 19686 : 19687else 19688 19689cat >>confdefs.h <<_ACEOF 19690#define time_t long 19691_ACEOF 19692 19693fi 19694 19695 19696 19697{ $as_echo "$as_me:$LINENO: checking for long long" >&5 19698$as_echo_n "checking for long long... " >&6; } 19699if test "${bash_cv_type_long_long+set}" = set; then 19700 $as_echo_n "(cached) " >&6 19701else 19702 cat >conftest.$ac_ext <<_ACEOF 19703/* confdefs.h. */ 19704_ACEOF 19705cat confdefs.h >>conftest.$ac_ext 19706cat >>conftest.$ac_ext <<_ACEOF 19707/* end confdefs.h. */ 19708 19709long long ll = 1; int i = 63; 19710int 19711main () 19712{ 19713 19714long long llm = (long long) -1; 19715return ll << i | ll >> i | llm / ll | llm % ll; 19716 19717 ; 19718 return 0; 19719} 19720_ACEOF 19721rm -f conftest.$ac_objext conftest$ac_exeext 19722if { (ac_try="$ac_link" 19723case "(($ac_try" in 19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19725 *) ac_try_echo=$ac_try;; 19726esac 19727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19728$as_echo "$ac_try_echo") >&5 19729 (eval "$ac_link") 2>conftest.er1 19730 ac_status=$? 19731 grep -v '^ *+' conftest.er1 >conftest.err 19732 rm -f conftest.er1 19733 cat conftest.err >&5 19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19735 (exit $ac_status); } && { 19736 test -z "$ac_c_werror_flag" || 19737 test ! -s conftest.err 19738 } && test -s conftest$ac_exeext && { 19739 test "$cross_compiling" = yes || 19740 $as_test_x conftest$ac_exeext 19741 }; then 19742 bash_cv_type_long_long='long long' 19743else 19744 $as_echo "$as_me: failed program was:" >&5 19745sed 's/^/| /' conftest.$ac_ext >&5 19746 19747 bash_cv_type_long_long='long' 19748fi 19749 19750rm -rf conftest.dSYM 19751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19752 conftest$ac_exeext conftest.$ac_ext 19753fi 19754{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5 19755$as_echo "$bash_cv_type_long_long" >&6; } 19756if test "$bash_cv_type_long_long" = 'long long'; then 19757 cat >>confdefs.h <<\_ACEOF 19758#define HAVE_LONG_LONG 1 19759_ACEOF 19760 19761fi 19762 19763 19764{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 19765$as_echo_n "checking for unsigned long long... " >&6; } 19766if test "${bash_cv_type_unsigned_long_long+set}" = set; then 19767 $as_echo_n "(cached) " >&6 19768else 19769 cat >conftest.$ac_ext <<_ACEOF 19770/* confdefs.h. */ 19771_ACEOF 19772cat confdefs.h >>conftest.$ac_ext 19773cat >>conftest.$ac_ext <<_ACEOF 19774/* end confdefs.h. */ 19775 19776unsigned long long ull = 1; int i = 63; 19777int 19778main () 19779{ 19780 19781unsigned long long ullmax = (unsigned long long) -1; 19782return ull << i | ull >> i | ullmax / ull | ullmax % ull; 19783 19784 ; 19785 return 0; 19786} 19787_ACEOF 19788rm -f conftest.$ac_objext conftest$ac_exeext 19789if { (ac_try="$ac_link" 19790case "(($ac_try" in 19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19792 *) ac_try_echo=$ac_try;; 19793esac 19794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19795$as_echo "$ac_try_echo") >&5 19796 (eval "$ac_link") 2>conftest.er1 19797 ac_status=$? 19798 grep -v '^ *+' conftest.er1 >conftest.err 19799 rm -f conftest.er1 19800 cat conftest.err >&5 19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19802 (exit $ac_status); } && { 19803 test -z "$ac_c_werror_flag" || 19804 test ! -s conftest.err 19805 } && test -s conftest$ac_exeext && { 19806 test "$cross_compiling" = yes || 19807 $as_test_x conftest$ac_exeext 19808 }; then 19809 bash_cv_type_unsigned_long_long='unsigned long long' 19810else 19811 $as_echo "$as_me: failed program was:" >&5 19812sed 's/^/| /' conftest.$ac_ext >&5 19813 19814 bash_cv_type_unsigned_long_long='unsigned long' 19815fi 19816 19817rm -rf conftest.dSYM 19818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19819 conftest$ac_exeext conftest.$ac_ext 19820fi 19821{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5 19822$as_echo "$bash_cv_type_unsigned_long_long" >&6; } 19823if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then 19824 cat >>confdefs.h <<\_ACEOF 19825#define HAVE_UNSIGNED_LONG_LONG 1 19826_ACEOF 19827 19828fi 19829 19830 19831{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 19832$as_echo_n "checking return type of signal handlers... " >&6; } 19833if test "${ac_cv_type_signal+set}" = set; then 19834 $as_echo_n "(cached) " >&6 19835else 19836 cat >conftest.$ac_ext <<_ACEOF 19837/* confdefs.h. */ 19838_ACEOF 19839cat confdefs.h >>conftest.$ac_ext 19840cat >>conftest.$ac_ext <<_ACEOF 19841/* end confdefs.h. */ 19842#include <sys/types.h> 19843#include <signal.h> 19844 19845int 19846main () 19847{ 19848return *(signal (0, 0)) (0) == 1; 19849 ; 19850 return 0; 19851} 19852_ACEOF 19853rm -f conftest.$ac_objext 19854if { (ac_try="$ac_compile" 19855case "(($ac_try" in 19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19857 *) ac_try_echo=$ac_try;; 19858esac 19859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19860$as_echo "$ac_try_echo") >&5 19861 (eval "$ac_compile") 2>conftest.er1 19862 ac_status=$? 19863 grep -v '^ *+' conftest.er1 >conftest.err 19864 rm -f conftest.er1 19865 cat conftest.err >&5 19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19867 (exit $ac_status); } && { 19868 test -z "$ac_c_werror_flag" || 19869 test ! -s conftest.err 19870 } && test -s conftest.$ac_objext; then 19871 ac_cv_type_signal=int 19872else 19873 $as_echo "$as_me: failed program was:" >&5 19874sed 's/^/| /' conftest.$ac_ext >&5 19875 19876 ac_cv_type_signal=void 19877fi 19878 19879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19880fi 19881{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 19882$as_echo "$ac_cv_type_signal" >&6; } 19883 19884cat >>confdefs.h <<_ACEOF 19885#define RETSIGTYPE $ac_cv_type_signal 19886_ACEOF 19887 19888 19889{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5 19890$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } 19891if test "${ac_cv_have_sig_atomic_t+set}" = set; then 19892 $as_echo_n "(cached) " >&6 19893else 19894 cat >conftest.$ac_ext <<_ACEOF 19895/* confdefs.h. */ 19896_ACEOF 19897cat confdefs.h >>conftest.$ac_ext 19898cat >>conftest.$ac_ext <<_ACEOF 19899/* end confdefs.h. */ 19900 19901#include <signal.h> 19902 19903int 19904main () 19905{ 19906 sig_atomic_t x; 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911rm -f conftest.$ac_objext conftest$ac_exeext 19912if { (ac_try="$ac_link" 19913case "(($ac_try" in 19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19915 *) ac_try_echo=$ac_try;; 19916esac 19917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19918$as_echo "$ac_try_echo") >&5 19919 (eval "$ac_link") 2>conftest.er1 19920 ac_status=$? 19921 grep -v '^ *+' conftest.er1 >conftest.err 19922 rm -f conftest.er1 19923 cat conftest.err >&5 19924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19925 (exit $ac_status); } && { 19926 test -z "$ac_c_werror_flag" || 19927 test ! -s conftest.err 19928 } && test -s conftest$ac_exeext && { 19929 test "$cross_compiling" = yes || 19930 $as_test_x conftest$ac_exeext 19931 }; then 19932 ac_cv_have_sig_atomic_t=yes 19933else 19934 $as_echo "$as_me: failed program was:" >&5 19935sed 's/^/| /' conftest.$ac_ext >&5 19936 19937 ac_cv_have_sig_atomic_t=no 19938fi 19939 19940rm -rf conftest.dSYM 19941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19942 conftest$ac_exeext conftest.$ac_ext 19943fi 19944{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5 19945$as_echo "$ac_cv_have_sig_atomic_t" >&6; } 19946if test "$ac_cv_have_sig_atomic_t" = "no" 19947then 19948 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 19949$as_echo_n "checking for sig_atomic_t... " >&6; } 19950if test "${ac_cv_type_sig_atomic_t+set}" = set; then 19951 $as_echo_n "(cached) " >&6 19952else 19953 ac_cv_type_sig_atomic_t=no 19954cat >conftest.$ac_ext <<_ACEOF 19955/* confdefs.h. */ 19956_ACEOF 19957cat confdefs.h >>conftest.$ac_ext 19958cat >>conftest.$ac_ext <<_ACEOF 19959/* end confdefs.h. */ 19960$ac_includes_default 19961int 19962main () 19963{ 19964if (sizeof (sig_atomic_t)) 19965 return 0; 19966 ; 19967 return 0; 19968} 19969_ACEOF 19970rm -f conftest.$ac_objext 19971if { (ac_try="$ac_compile" 19972case "(($ac_try" in 19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19974 *) ac_try_echo=$ac_try;; 19975esac 19976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19977$as_echo "$ac_try_echo") >&5 19978 (eval "$ac_compile") 2>conftest.er1 19979 ac_status=$? 19980 grep -v '^ *+' conftest.er1 >conftest.err 19981 rm -f conftest.er1 19982 cat conftest.err >&5 19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19984 (exit $ac_status); } && { 19985 test -z "$ac_c_werror_flag" || 19986 test ! -s conftest.err 19987 } && test -s conftest.$ac_objext; then 19988 cat >conftest.$ac_ext <<_ACEOF 19989/* confdefs.h. */ 19990_ACEOF 19991cat confdefs.h >>conftest.$ac_ext 19992cat >>conftest.$ac_ext <<_ACEOF 19993/* end confdefs.h. */ 19994$ac_includes_default 19995int 19996main () 19997{ 19998if (sizeof ((sig_atomic_t))) 19999 return 0; 20000 ; 20001 return 0; 20002} 20003_ACEOF 20004rm -f conftest.$ac_objext 20005if { (ac_try="$ac_compile" 20006case "(($ac_try" in 20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20008 *) ac_try_echo=$ac_try;; 20009esac 20010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20011$as_echo "$ac_try_echo") >&5 20012 (eval "$ac_compile") 2>conftest.er1 20013 ac_status=$? 20014 grep -v '^ *+' conftest.er1 >conftest.err 20015 rm -f conftest.er1 20016 cat conftest.err >&5 20017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20018 (exit $ac_status); } && { 20019 test -z "$ac_c_werror_flag" || 20020 test ! -s conftest.err 20021 } && test -s conftest.$ac_objext; then 20022 : 20023else 20024 $as_echo "$as_me: failed program was:" >&5 20025sed 's/^/| /' conftest.$ac_ext >&5 20026 20027 ac_cv_type_sig_atomic_t=yes 20028fi 20029 20030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20031else 20032 $as_echo "$as_me: failed program was:" >&5 20033sed 's/^/| /' conftest.$ac_ext >&5 20034 20035 20036fi 20037 20038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20039fi 20040{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 20041$as_echo "$ac_cv_type_sig_atomic_t" >&6; } 20042if test "x$ac_cv_type_sig_atomic_t" = x""yes; then 20043 : 20044else 20045 20046cat >>confdefs.h <<_ACEOF 20047#define sig_atomic_t int 20048_ACEOF 20049 20050fi 20051 20052fi 20053 20054 20055# The cast to long int works around a bug in the HP C Compiler 20056# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20057# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20058# This bug is HP SR number 8606223364. 20059{ $as_echo "$as_me:$LINENO: checking size of char" >&5 20060$as_echo_n "checking size of char... " >&6; } 20061if test "${ac_cv_sizeof_char+set}" = set; then 20062 $as_echo_n "(cached) " >&6 20063else 20064 if test "$cross_compiling" = yes; then 20065 # Depending upon the size, compute the lo and hi bounds. 20066cat >conftest.$ac_ext <<_ACEOF 20067/* confdefs.h. */ 20068_ACEOF 20069cat confdefs.h >>conftest.$ac_ext 20070cat >>conftest.$ac_ext <<_ACEOF 20071/* end confdefs.h. */ 20072$ac_includes_default 20073int 20074main () 20075{ 20076static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; 20077test_array [0] = 0 20078 20079 ; 20080 return 0; 20081} 20082_ACEOF 20083rm -f conftest.$ac_objext 20084if { (ac_try="$ac_compile" 20085case "(($ac_try" in 20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20087 *) ac_try_echo=$ac_try;; 20088esac 20089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20090$as_echo "$ac_try_echo") >&5 20091 (eval "$ac_compile") 2>conftest.er1 20092 ac_status=$? 20093 grep -v '^ *+' conftest.er1 >conftest.err 20094 rm -f conftest.er1 20095 cat conftest.err >&5 20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20097 (exit $ac_status); } && { 20098 test -z "$ac_c_werror_flag" || 20099 test ! -s conftest.err 20100 } && test -s conftest.$ac_objext; then 20101 ac_lo=0 ac_mid=0 20102 while :; do 20103 cat >conftest.$ac_ext <<_ACEOF 20104/* confdefs.h. */ 20105_ACEOF 20106cat confdefs.h >>conftest.$ac_ext 20107cat >>conftest.$ac_ext <<_ACEOF 20108/* end confdefs.h. */ 20109$ac_includes_default 20110int 20111main () 20112{ 20113static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 20114test_array [0] = 0 20115 20116 ; 20117 return 0; 20118} 20119_ACEOF 20120rm -f conftest.$ac_objext 20121if { (ac_try="$ac_compile" 20122case "(($ac_try" in 20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20124 *) ac_try_echo=$ac_try;; 20125esac 20126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20127$as_echo "$ac_try_echo") >&5 20128 (eval "$ac_compile") 2>conftest.er1 20129 ac_status=$? 20130 grep -v '^ *+' conftest.er1 >conftest.err 20131 rm -f conftest.er1 20132 cat conftest.err >&5 20133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); } && { 20135 test -z "$ac_c_werror_flag" || 20136 test ! -s conftest.err 20137 } && test -s conftest.$ac_objext; then 20138 ac_hi=$ac_mid; break 20139else 20140 $as_echo "$as_me: failed program was:" >&5 20141sed 's/^/| /' conftest.$ac_ext >&5 20142 20143 ac_lo=`expr $ac_mid + 1` 20144 if test $ac_lo -le $ac_mid; then 20145 ac_lo= ac_hi= 20146 break 20147 fi 20148 ac_mid=`expr 2 '*' $ac_mid + 1` 20149fi 20150 20151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20152 done 20153else 20154 $as_echo "$as_me: failed program was:" >&5 20155sed 's/^/| /' conftest.$ac_ext >&5 20156 20157 cat >conftest.$ac_ext <<_ACEOF 20158/* confdefs.h. */ 20159_ACEOF 20160cat confdefs.h >>conftest.$ac_ext 20161cat >>conftest.$ac_ext <<_ACEOF 20162/* end confdefs.h. */ 20163$ac_includes_default 20164int 20165main () 20166{ 20167static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; 20168test_array [0] = 0 20169 20170 ; 20171 return 0; 20172} 20173_ACEOF 20174rm -f conftest.$ac_objext 20175if { (ac_try="$ac_compile" 20176case "(($ac_try" in 20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20178 *) ac_try_echo=$ac_try;; 20179esac 20180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20181$as_echo "$ac_try_echo") >&5 20182 (eval "$ac_compile") 2>conftest.er1 20183 ac_status=$? 20184 grep -v '^ *+' conftest.er1 >conftest.err 20185 rm -f conftest.er1 20186 cat conftest.err >&5 20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20188 (exit $ac_status); } && { 20189 test -z "$ac_c_werror_flag" || 20190 test ! -s conftest.err 20191 } && test -s conftest.$ac_objext; then 20192 ac_hi=-1 ac_mid=-1 20193 while :; do 20194 cat >conftest.$ac_ext <<_ACEOF 20195/* confdefs.h. */ 20196_ACEOF 20197cat confdefs.h >>conftest.$ac_ext 20198cat >>conftest.$ac_ext <<_ACEOF 20199/* end confdefs.h. */ 20200$ac_includes_default 20201int 20202main () 20203{ 20204static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; 20205test_array [0] = 0 20206 20207 ; 20208 return 0; 20209} 20210_ACEOF 20211rm -f conftest.$ac_objext 20212if { (ac_try="$ac_compile" 20213case "(($ac_try" in 20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20215 *) ac_try_echo=$ac_try;; 20216esac 20217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20218$as_echo "$ac_try_echo") >&5 20219 (eval "$ac_compile") 2>conftest.er1 20220 ac_status=$? 20221 grep -v '^ *+' conftest.er1 >conftest.err 20222 rm -f conftest.er1 20223 cat conftest.err >&5 20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20225 (exit $ac_status); } && { 20226 test -z "$ac_c_werror_flag" || 20227 test ! -s conftest.err 20228 } && test -s conftest.$ac_objext; then 20229 ac_lo=$ac_mid; break 20230else 20231 $as_echo "$as_me: failed program was:" >&5 20232sed 's/^/| /' conftest.$ac_ext >&5 20233 20234 ac_hi=`expr '(' $ac_mid ')' - 1` 20235 if test $ac_mid -le $ac_hi; then 20236 ac_lo= ac_hi= 20237 break 20238 fi 20239 ac_mid=`expr 2 '*' $ac_mid` 20240fi 20241 20242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20243 done 20244else 20245 $as_echo "$as_me: failed program was:" >&5 20246sed 's/^/| /' conftest.$ac_ext >&5 20247 20248 ac_lo= ac_hi= 20249fi 20250 20251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20252fi 20253 20254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20255# Binary search between lo and hi bounds. 20256while test "x$ac_lo" != "x$ac_hi"; do 20257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20258 cat >conftest.$ac_ext <<_ACEOF 20259/* confdefs.h. */ 20260_ACEOF 20261cat confdefs.h >>conftest.$ac_ext 20262cat >>conftest.$ac_ext <<_ACEOF 20263/* end confdefs.h. */ 20264$ac_includes_default 20265int 20266main () 20267{ 20268static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 20269test_array [0] = 0 20270 20271 ; 20272 return 0; 20273} 20274_ACEOF 20275rm -f conftest.$ac_objext 20276if { (ac_try="$ac_compile" 20277case "(($ac_try" in 20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20279 *) ac_try_echo=$ac_try;; 20280esac 20281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20282$as_echo "$ac_try_echo") >&5 20283 (eval "$ac_compile") 2>conftest.er1 20284 ac_status=$? 20285 grep -v '^ *+' conftest.er1 >conftest.err 20286 rm -f conftest.er1 20287 cat conftest.err >&5 20288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20289 (exit $ac_status); } && { 20290 test -z "$ac_c_werror_flag" || 20291 test ! -s conftest.err 20292 } && test -s conftest.$ac_objext; then 20293 ac_hi=$ac_mid 20294else 20295 $as_echo "$as_me: failed program was:" >&5 20296sed 's/^/| /' conftest.$ac_ext >&5 20297 20298 ac_lo=`expr '(' $ac_mid ')' + 1` 20299fi 20300 20301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20302done 20303case $ac_lo in 20304?*) ac_cv_sizeof_char=$ac_lo;; 20305'') if test "$ac_cv_type_char" = yes; then 20306 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20308{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 20309See \`config.log' for more details." >&5 20310$as_echo "$as_me: error: cannot compute sizeof (char) 20311See \`config.log' for more details." >&2;} 20312 { (exit 77); exit 77; }; }; } 20313 else 20314 ac_cv_sizeof_char=0 20315 fi ;; 20316esac 20317else 20318 cat >conftest.$ac_ext <<_ACEOF 20319/* confdefs.h. */ 20320_ACEOF 20321cat confdefs.h >>conftest.$ac_ext 20322cat >>conftest.$ac_ext <<_ACEOF 20323/* end confdefs.h. */ 20324$ac_includes_default 20325static long int longval () { return (long int) (sizeof (char)); } 20326static unsigned long int ulongval () { return (long int) (sizeof (char)); } 20327#include <stdio.h> 20328#include <stdlib.h> 20329int 20330main () 20331{ 20332 20333 FILE *f = fopen ("conftest.val", "w"); 20334 if (! f) 20335 return 1; 20336 if (((long int) (sizeof (char))) < 0) 20337 { 20338 long int i = longval (); 20339 if (i != ((long int) (sizeof (char)))) 20340 return 1; 20341 fprintf (f, "%ld", i); 20342 } 20343 else 20344 { 20345 unsigned long int i = ulongval (); 20346 if (i != ((long int) (sizeof (char)))) 20347 return 1; 20348 fprintf (f, "%lu", i); 20349 } 20350 /* Do not output a trailing newline, as this causes \r\n confusion 20351 on some platforms. */ 20352 return ferror (f) || fclose (f) != 0; 20353 20354 ; 20355 return 0; 20356} 20357_ACEOF 20358rm -f conftest$ac_exeext 20359if { (ac_try="$ac_link" 20360case "(($ac_try" in 20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20362 *) ac_try_echo=$ac_try;; 20363esac 20364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20365$as_echo "$ac_try_echo") >&5 20366 (eval "$ac_link") 2>&5 20367 ac_status=$? 20368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20370 { (case "(($ac_try" in 20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20372 *) ac_try_echo=$ac_try;; 20373esac 20374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20375$as_echo "$ac_try_echo") >&5 20376 (eval "$ac_try") 2>&5 20377 ac_status=$? 20378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20379 (exit $ac_status); }; }; then 20380 ac_cv_sizeof_char=`cat conftest.val` 20381else 20382 $as_echo "$as_me: program exited with status $ac_status" >&5 20383$as_echo "$as_me: failed program was:" >&5 20384sed 's/^/| /' conftest.$ac_ext >&5 20385 20386( exit $ac_status ) 20387if test "$ac_cv_type_char" = yes; then 20388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20390{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 20391See \`config.log' for more details." >&5 20392$as_echo "$as_me: error: cannot compute sizeof (char) 20393See \`config.log' for more details." >&2;} 20394 { (exit 77); exit 77; }; }; } 20395 else 20396 ac_cv_sizeof_char=0 20397 fi 20398fi 20399rm -rf conftest.dSYM 20400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20401fi 20402rm -f conftest.val 20403fi 20404{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 20405$as_echo "$ac_cv_sizeof_char" >&6; } 20406 20407 20408 20409cat >>confdefs.h <<_ACEOF 20410#define SIZEOF_CHAR $ac_cv_sizeof_char 20411_ACEOF 20412 20413 20414# The cast to long int works around a bug in the HP C Compiler 20415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20417# This bug is HP SR number 8606223364. 20418{ $as_echo "$as_me:$LINENO: checking size of short" >&5 20419$as_echo_n "checking size of short... " >&6; } 20420if test "${ac_cv_sizeof_short+set}" = set; then 20421 $as_echo_n "(cached) " >&6 20422else 20423 if test "$cross_compiling" = yes; then 20424 # Depending upon the size, compute the lo and hi bounds. 20425cat >conftest.$ac_ext <<_ACEOF 20426/* confdefs.h. */ 20427_ACEOF 20428cat confdefs.h >>conftest.$ac_ext 20429cat >>conftest.$ac_ext <<_ACEOF 20430/* end confdefs.h. */ 20431$ac_includes_default 20432int 20433main () 20434{ 20435static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; 20436test_array [0] = 0 20437 20438 ; 20439 return 0; 20440} 20441_ACEOF 20442rm -f conftest.$ac_objext 20443if { (ac_try="$ac_compile" 20444case "(($ac_try" in 20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20446 *) ac_try_echo=$ac_try;; 20447esac 20448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20449$as_echo "$ac_try_echo") >&5 20450 (eval "$ac_compile") 2>conftest.er1 20451 ac_status=$? 20452 grep -v '^ *+' conftest.er1 >conftest.err 20453 rm -f conftest.er1 20454 cat conftest.err >&5 20455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20456 (exit $ac_status); } && { 20457 test -z "$ac_c_werror_flag" || 20458 test ! -s conftest.err 20459 } && test -s conftest.$ac_objext; then 20460 ac_lo=0 ac_mid=0 20461 while :; do 20462 cat >conftest.$ac_ext <<_ACEOF 20463/* confdefs.h. */ 20464_ACEOF 20465cat confdefs.h >>conftest.$ac_ext 20466cat >>conftest.$ac_ext <<_ACEOF 20467/* end confdefs.h. */ 20468$ac_includes_default 20469int 20470main () 20471{ 20472static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; 20473test_array [0] = 0 20474 20475 ; 20476 return 0; 20477} 20478_ACEOF 20479rm -f conftest.$ac_objext 20480if { (ac_try="$ac_compile" 20481case "(($ac_try" in 20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20483 *) ac_try_echo=$ac_try;; 20484esac 20485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20486$as_echo "$ac_try_echo") >&5 20487 (eval "$ac_compile") 2>conftest.er1 20488 ac_status=$? 20489 grep -v '^ *+' conftest.er1 >conftest.err 20490 rm -f conftest.er1 20491 cat conftest.err >&5 20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20493 (exit $ac_status); } && { 20494 test -z "$ac_c_werror_flag" || 20495 test ! -s conftest.err 20496 } && test -s conftest.$ac_objext; then 20497 ac_hi=$ac_mid; break 20498else 20499 $as_echo "$as_me: failed program was:" >&5 20500sed 's/^/| /' conftest.$ac_ext >&5 20501 20502 ac_lo=`expr $ac_mid + 1` 20503 if test $ac_lo -le $ac_mid; then 20504 ac_lo= ac_hi= 20505 break 20506 fi 20507 ac_mid=`expr 2 '*' $ac_mid + 1` 20508fi 20509 20510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20511 done 20512else 20513 $as_echo "$as_me: failed program was:" >&5 20514sed 's/^/| /' conftest.$ac_ext >&5 20515 20516 cat >conftest.$ac_ext <<_ACEOF 20517/* confdefs.h. */ 20518_ACEOF 20519cat confdefs.h >>conftest.$ac_ext 20520cat >>conftest.$ac_ext <<_ACEOF 20521/* end confdefs.h. */ 20522$ac_includes_default 20523int 20524main () 20525{ 20526static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; 20527test_array [0] = 0 20528 20529 ; 20530 return 0; 20531} 20532_ACEOF 20533rm -f conftest.$ac_objext 20534if { (ac_try="$ac_compile" 20535case "(($ac_try" in 20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20537 *) ac_try_echo=$ac_try;; 20538esac 20539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20540$as_echo "$ac_try_echo") >&5 20541 (eval "$ac_compile") 2>conftest.er1 20542 ac_status=$? 20543 grep -v '^ *+' conftest.er1 >conftest.err 20544 rm -f conftest.er1 20545 cat conftest.err >&5 20546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20547 (exit $ac_status); } && { 20548 test -z "$ac_c_werror_flag" || 20549 test ! -s conftest.err 20550 } && test -s conftest.$ac_objext; then 20551 ac_hi=-1 ac_mid=-1 20552 while :; do 20553 cat >conftest.$ac_ext <<_ACEOF 20554/* confdefs.h. */ 20555_ACEOF 20556cat confdefs.h >>conftest.$ac_ext 20557cat >>conftest.$ac_ext <<_ACEOF 20558/* end confdefs.h. */ 20559$ac_includes_default 20560int 20561main () 20562{ 20563static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; 20564test_array [0] = 0 20565 20566 ; 20567 return 0; 20568} 20569_ACEOF 20570rm -f conftest.$ac_objext 20571if { (ac_try="$ac_compile" 20572case "(($ac_try" in 20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20574 *) ac_try_echo=$ac_try;; 20575esac 20576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20577$as_echo "$ac_try_echo") >&5 20578 (eval "$ac_compile") 2>conftest.er1 20579 ac_status=$? 20580 grep -v '^ *+' conftest.er1 >conftest.err 20581 rm -f conftest.er1 20582 cat conftest.err >&5 20583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20584 (exit $ac_status); } && { 20585 test -z "$ac_c_werror_flag" || 20586 test ! -s conftest.err 20587 } && test -s conftest.$ac_objext; then 20588 ac_lo=$ac_mid; break 20589else 20590 $as_echo "$as_me: failed program was:" >&5 20591sed 's/^/| /' conftest.$ac_ext >&5 20592 20593 ac_hi=`expr '(' $ac_mid ')' - 1` 20594 if test $ac_mid -le $ac_hi; then 20595 ac_lo= ac_hi= 20596 break 20597 fi 20598 ac_mid=`expr 2 '*' $ac_mid` 20599fi 20600 20601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20602 done 20603else 20604 $as_echo "$as_me: failed program was:" >&5 20605sed 's/^/| /' conftest.$ac_ext >&5 20606 20607 ac_lo= ac_hi= 20608fi 20609 20610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20611fi 20612 20613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20614# Binary search between lo and hi bounds. 20615while test "x$ac_lo" != "x$ac_hi"; do 20616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20617 cat >conftest.$ac_ext <<_ACEOF 20618/* confdefs.h. */ 20619_ACEOF 20620cat confdefs.h >>conftest.$ac_ext 20621cat >>conftest.$ac_ext <<_ACEOF 20622/* end confdefs.h. */ 20623$ac_includes_default 20624int 20625main () 20626{ 20627static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $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 20653else 20654 $as_echo "$as_me: failed program was:" >&5 20655sed 's/^/| /' conftest.$ac_ext >&5 20656 20657 ac_lo=`expr '(' $ac_mid ')' + 1` 20658fi 20659 20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20661done 20662case $ac_lo in 20663?*) ac_cv_sizeof_short=$ac_lo;; 20664'') if test "$ac_cv_type_short" = yes; then 20665 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20667{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 20668See \`config.log' for more details." >&5 20669$as_echo "$as_me: error: cannot compute sizeof (short) 20670See \`config.log' for more details." >&2;} 20671 { (exit 77); exit 77; }; }; } 20672 else 20673 ac_cv_sizeof_short=0 20674 fi ;; 20675esac 20676else 20677 cat >conftest.$ac_ext <<_ACEOF 20678/* confdefs.h. */ 20679_ACEOF 20680cat confdefs.h >>conftest.$ac_ext 20681cat >>conftest.$ac_ext <<_ACEOF 20682/* end confdefs.h. */ 20683$ac_includes_default 20684static long int longval () { return (long int) (sizeof (short)); } 20685static unsigned long int ulongval () { return (long int) (sizeof (short)); } 20686#include <stdio.h> 20687#include <stdlib.h> 20688int 20689main () 20690{ 20691 20692 FILE *f = fopen ("conftest.val", "w"); 20693 if (! f) 20694 return 1; 20695 if (((long int) (sizeof (short))) < 0) 20696 { 20697 long int i = longval (); 20698 if (i != ((long int) (sizeof (short)))) 20699 return 1; 20700 fprintf (f, "%ld", i); 20701 } 20702 else 20703 { 20704 unsigned long int i = ulongval (); 20705 if (i != ((long int) (sizeof (short)))) 20706 return 1; 20707 fprintf (f, "%lu", i); 20708 } 20709 /* Do not output a trailing newline, as this causes \r\n confusion 20710 on some platforms. */ 20711 return ferror (f) || fclose (f) != 0; 20712 20713 ; 20714 return 0; 20715} 20716_ACEOF 20717rm -f conftest$ac_exeext 20718if { (ac_try="$ac_link" 20719case "(($ac_try" in 20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20721 *) ac_try_echo=$ac_try;; 20722esac 20723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20724$as_echo "$ac_try_echo") >&5 20725 (eval "$ac_link") 2>&5 20726 ac_status=$? 20727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20729 { (case "(($ac_try" in 20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20731 *) ac_try_echo=$ac_try;; 20732esac 20733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20734$as_echo "$ac_try_echo") >&5 20735 (eval "$ac_try") 2>&5 20736 ac_status=$? 20737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20738 (exit $ac_status); }; }; then 20739 ac_cv_sizeof_short=`cat conftest.val` 20740else 20741 $as_echo "$as_me: program exited with status $ac_status" >&5 20742$as_echo "$as_me: failed program was:" >&5 20743sed 's/^/| /' conftest.$ac_ext >&5 20744 20745( exit $ac_status ) 20746if test "$ac_cv_type_short" = yes; then 20747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20749{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 20750See \`config.log' for more details." >&5 20751$as_echo "$as_me: error: cannot compute sizeof (short) 20752See \`config.log' for more details." >&2;} 20753 { (exit 77); exit 77; }; }; } 20754 else 20755 ac_cv_sizeof_short=0 20756 fi 20757fi 20758rm -rf conftest.dSYM 20759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20760fi 20761rm -f conftest.val 20762fi 20763{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 20764$as_echo "$ac_cv_sizeof_short" >&6; } 20765 20766 20767 20768cat >>confdefs.h <<_ACEOF 20769#define SIZEOF_SHORT $ac_cv_sizeof_short 20770_ACEOF 20771 20772 20773# The cast to long int works around a bug in the HP C Compiler 20774# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20775# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20776# This bug is HP SR number 8606223364. 20777{ $as_echo "$as_me:$LINENO: checking size of int" >&5 20778$as_echo_n "checking size of int... " >&6; } 20779if test "${ac_cv_sizeof_int+set}" = set; then 20780 $as_echo_n "(cached) " >&6 20781else 20782 if test "$cross_compiling" = yes; then 20783 # Depending upon the size, compute the lo and hi bounds. 20784cat >conftest.$ac_ext <<_ACEOF 20785/* confdefs.h. */ 20786_ACEOF 20787cat confdefs.h >>conftest.$ac_ext 20788cat >>conftest.$ac_ext <<_ACEOF 20789/* end confdefs.h. */ 20790$ac_includes_default 20791int 20792main () 20793{ 20794static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; 20795test_array [0] = 0 20796 20797 ; 20798 return 0; 20799} 20800_ACEOF 20801rm -f conftest.$ac_objext 20802if { (ac_try="$ac_compile" 20803case "(($ac_try" in 20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20805 *) ac_try_echo=$ac_try;; 20806esac 20807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20808$as_echo "$ac_try_echo") >&5 20809 (eval "$ac_compile") 2>conftest.er1 20810 ac_status=$? 20811 grep -v '^ *+' conftest.er1 >conftest.err 20812 rm -f conftest.er1 20813 cat conftest.err >&5 20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20815 (exit $ac_status); } && { 20816 test -z "$ac_c_werror_flag" || 20817 test ! -s conftest.err 20818 } && test -s conftest.$ac_objext; then 20819 ac_lo=0 ac_mid=0 20820 while :; do 20821 cat >conftest.$ac_ext <<_ACEOF 20822/* confdefs.h. */ 20823_ACEOF 20824cat confdefs.h >>conftest.$ac_ext 20825cat >>conftest.$ac_ext <<_ACEOF 20826/* end confdefs.h. */ 20827$ac_includes_default 20828int 20829main () 20830{ 20831static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 20832test_array [0] = 0 20833 20834 ; 20835 return 0; 20836} 20837_ACEOF 20838rm -f conftest.$ac_objext 20839if { (ac_try="$ac_compile" 20840case "(($ac_try" in 20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20842 *) ac_try_echo=$ac_try;; 20843esac 20844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20845$as_echo "$ac_try_echo") >&5 20846 (eval "$ac_compile") 2>conftest.er1 20847 ac_status=$? 20848 grep -v '^ *+' conftest.er1 >conftest.err 20849 rm -f conftest.er1 20850 cat conftest.err >&5 20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20852 (exit $ac_status); } && { 20853 test -z "$ac_c_werror_flag" || 20854 test ! -s conftest.err 20855 } && test -s conftest.$ac_objext; then 20856 ac_hi=$ac_mid; break 20857else 20858 $as_echo "$as_me: failed program was:" >&5 20859sed 's/^/| /' conftest.$ac_ext >&5 20860 20861 ac_lo=`expr $ac_mid + 1` 20862 if test $ac_lo -le $ac_mid; then 20863 ac_lo= ac_hi= 20864 break 20865 fi 20866 ac_mid=`expr 2 '*' $ac_mid + 1` 20867fi 20868 20869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20870 done 20871else 20872 $as_echo "$as_me: failed program was:" >&5 20873sed 's/^/| /' conftest.$ac_ext >&5 20874 20875 cat >conftest.$ac_ext <<_ACEOF 20876/* confdefs.h. */ 20877_ACEOF 20878cat confdefs.h >>conftest.$ac_ext 20879cat >>conftest.$ac_ext <<_ACEOF 20880/* end confdefs.h. */ 20881$ac_includes_default 20882int 20883main () 20884{ 20885static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; 20886test_array [0] = 0 20887 20888 ; 20889 return 0; 20890} 20891_ACEOF 20892rm -f conftest.$ac_objext 20893if { (ac_try="$ac_compile" 20894case "(($ac_try" in 20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20896 *) ac_try_echo=$ac_try;; 20897esac 20898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20899$as_echo "$ac_try_echo") >&5 20900 (eval "$ac_compile") 2>conftest.er1 20901 ac_status=$? 20902 grep -v '^ *+' conftest.er1 >conftest.err 20903 rm -f conftest.er1 20904 cat conftest.err >&5 20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20906 (exit $ac_status); } && { 20907 test -z "$ac_c_werror_flag" || 20908 test ! -s conftest.err 20909 } && test -s conftest.$ac_objext; then 20910 ac_hi=-1 ac_mid=-1 20911 while :; do 20912 cat >conftest.$ac_ext <<_ACEOF 20913/* confdefs.h. */ 20914_ACEOF 20915cat confdefs.h >>conftest.$ac_ext 20916cat >>conftest.$ac_ext <<_ACEOF 20917/* end confdefs.h. */ 20918$ac_includes_default 20919int 20920main () 20921{ 20922static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; 20923test_array [0] = 0 20924 20925 ; 20926 return 0; 20927} 20928_ACEOF 20929rm -f conftest.$ac_objext 20930if { (ac_try="$ac_compile" 20931case "(($ac_try" in 20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20933 *) ac_try_echo=$ac_try;; 20934esac 20935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20936$as_echo "$ac_try_echo") >&5 20937 (eval "$ac_compile") 2>conftest.er1 20938 ac_status=$? 20939 grep -v '^ *+' conftest.er1 >conftest.err 20940 rm -f conftest.er1 20941 cat conftest.err >&5 20942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20943 (exit $ac_status); } && { 20944 test -z "$ac_c_werror_flag" || 20945 test ! -s conftest.err 20946 } && test -s conftest.$ac_objext; then 20947 ac_lo=$ac_mid; break 20948else 20949 $as_echo "$as_me: failed program was:" >&5 20950sed 's/^/| /' conftest.$ac_ext >&5 20951 20952 ac_hi=`expr '(' $ac_mid ')' - 1` 20953 if test $ac_mid -le $ac_hi; then 20954 ac_lo= ac_hi= 20955 break 20956 fi 20957 ac_mid=`expr 2 '*' $ac_mid` 20958fi 20959 20960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20961 done 20962else 20963 $as_echo "$as_me: failed program was:" >&5 20964sed 's/^/| /' conftest.$ac_ext >&5 20965 20966 ac_lo= ac_hi= 20967fi 20968 20969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20970fi 20971 20972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20973# Binary search between lo and hi bounds. 20974while test "x$ac_lo" != "x$ac_hi"; do 20975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20976 cat >conftest.$ac_ext <<_ACEOF 20977/* confdefs.h. */ 20978_ACEOF 20979cat confdefs.h >>conftest.$ac_ext 20980cat >>conftest.$ac_ext <<_ACEOF 20981/* end confdefs.h. */ 20982$ac_includes_default 20983int 20984main () 20985{ 20986static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 20987test_array [0] = 0 20988 20989 ; 20990 return 0; 20991} 20992_ACEOF 20993rm -f conftest.$ac_objext 20994if { (ac_try="$ac_compile" 20995case "(($ac_try" in 20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20997 *) ac_try_echo=$ac_try;; 20998esac 20999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21000$as_echo "$ac_try_echo") >&5 21001 (eval "$ac_compile") 2>conftest.er1 21002 ac_status=$? 21003 grep -v '^ *+' conftest.er1 >conftest.err 21004 rm -f conftest.er1 21005 cat conftest.err >&5 21006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21007 (exit $ac_status); } && { 21008 test -z "$ac_c_werror_flag" || 21009 test ! -s conftest.err 21010 } && test -s conftest.$ac_objext; then 21011 ac_hi=$ac_mid 21012else 21013 $as_echo "$as_me: failed program was:" >&5 21014sed 's/^/| /' conftest.$ac_ext >&5 21015 21016 ac_lo=`expr '(' $ac_mid ')' + 1` 21017fi 21018 21019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21020done 21021case $ac_lo in 21022?*) ac_cv_sizeof_int=$ac_lo;; 21023'') if test "$ac_cv_type_int" = yes; then 21024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21026{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 21027See \`config.log' for more details." >&5 21028$as_echo "$as_me: error: cannot compute sizeof (int) 21029See \`config.log' for more details." >&2;} 21030 { (exit 77); exit 77; }; }; } 21031 else 21032 ac_cv_sizeof_int=0 21033 fi ;; 21034esac 21035else 21036 cat >conftest.$ac_ext <<_ACEOF 21037/* confdefs.h. */ 21038_ACEOF 21039cat confdefs.h >>conftest.$ac_ext 21040cat >>conftest.$ac_ext <<_ACEOF 21041/* end confdefs.h. */ 21042$ac_includes_default 21043static long int longval () { return (long int) (sizeof (int)); } 21044static unsigned long int ulongval () { return (long int) (sizeof (int)); } 21045#include <stdio.h> 21046#include <stdlib.h> 21047int 21048main () 21049{ 21050 21051 FILE *f = fopen ("conftest.val", "w"); 21052 if (! f) 21053 return 1; 21054 if (((long int) (sizeof (int))) < 0) 21055 { 21056 long int i = longval (); 21057 if (i != ((long int) (sizeof (int)))) 21058 return 1; 21059 fprintf (f, "%ld", i); 21060 } 21061 else 21062 { 21063 unsigned long int i = ulongval (); 21064 if (i != ((long int) (sizeof (int)))) 21065 return 1; 21066 fprintf (f, "%lu", i); 21067 } 21068 /* Do not output a trailing newline, as this causes \r\n confusion 21069 on some platforms. */ 21070 return ferror (f) || fclose (f) != 0; 21071 21072 ; 21073 return 0; 21074} 21075_ACEOF 21076rm -f conftest$ac_exeext 21077if { (ac_try="$ac_link" 21078case "(($ac_try" in 21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21080 *) ac_try_echo=$ac_try;; 21081esac 21082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21083$as_echo "$ac_try_echo") >&5 21084 (eval "$ac_link") 2>&5 21085 ac_status=$? 21086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21088 { (case "(($ac_try" in 21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21090 *) ac_try_echo=$ac_try;; 21091esac 21092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21093$as_echo "$ac_try_echo") >&5 21094 (eval "$ac_try") 2>&5 21095 ac_status=$? 21096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); }; }; then 21098 ac_cv_sizeof_int=`cat conftest.val` 21099else 21100 $as_echo "$as_me: program exited with status $ac_status" >&5 21101$as_echo "$as_me: failed program was:" >&5 21102sed 's/^/| /' conftest.$ac_ext >&5 21103 21104( exit $ac_status ) 21105if test "$ac_cv_type_int" = yes; then 21106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21108{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 21109See \`config.log' for more details." >&5 21110$as_echo "$as_me: error: cannot compute sizeof (int) 21111See \`config.log' for more details." >&2;} 21112 { (exit 77); exit 77; }; }; } 21113 else 21114 ac_cv_sizeof_int=0 21115 fi 21116fi 21117rm -rf conftest.dSYM 21118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21119fi 21120rm -f conftest.val 21121fi 21122{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 21123$as_echo "$ac_cv_sizeof_int" >&6; } 21124 21125 21126 21127cat >>confdefs.h <<_ACEOF 21128#define SIZEOF_INT $ac_cv_sizeof_int 21129_ACEOF 21130 21131 21132# The cast to long int works around a bug in the HP C Compiler 21133# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21134# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21135# This bug is HP SR number 8606223364. 21136{ $as_echo "$as_me:$LINENO: checking size of long" >&5 21137$as_echo_n "checking size of long... " >&6; } 21138if test "${ac_cv_sizeof_long+set}" = set; then 21139 $as_echo_n "(cached) " >&6 21140else 21141 if test "$cross_compiling" = yes; then 21142 # Depending upon the size, compute the lo and hi bounds. 21143cat >conftest.$ac_ext <<_ACEOF 21144/* confdefs.h. */ 21145_ACEOF 21146cat confdefs.h >>conftest.$ac_ext 21147cat >>conftest.$ac_ext <<_ACEOF 21148/* end confdefs.h. */ 21149$ac_includes_default 21150int 21151main () 21152{ 21153static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; 21154test_array [0] = 0 21155 21156 ; 21157 return 0; 21158} 21159_ACEOF 21160rm -f conftest.$ac_objext 21161if { (ac_try="$ac_compile" 21162case "(($ac_try" in 21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21164 *) ac_try_echo=$ac_try;; 21165esac 21166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21167$as_echo "$ac_try_echo") >&5 21168 (eval "$ac_compile") 2>conftest.er1 21169 ac_status=$? 21170 grep -v '^ *+' conftest.er1 >conftest.err 21171 rm -f conftest.er1 21172 cat conftest.err >&5 21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21174 (exit $ac_status); } && { 21175 test -z "$ac_c_werror_flag" || 21176 test ! -s conftest.err 21177 } && test -s conftest.$ac_objext; then 21178 ac_lo=0 ac_mid=0 21179 while :; do 21180 cat >conftest.$ac_ext <<_ACEOF 21181/* confdefs.h. */ 21182_ACEOF 21183cat confdefs.h >>conftest.$ac_ext 21184cat >>conftest.$ac_ext <<_ACEOF 21185/* end confdefs.h. */ 21186$ac_includes_default 21187int 21188main () 21189{ 21190static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 21191test_array [0] = 0 21192 21193 ; 21194 return 0; 21195} 21196_ACEOF 21197rm -f conftest.$ac_objext 21198if { (ac_try="$ac_compile" 21199case "(($ac_try" in 21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21201 *) ac_try_echo=$ac_try;; 21202esac 21203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21204$as_echo "$ac_try_echo") >&5 21205 (eval "$ac_compile") 2>conftest.er1 21206 ac_status=$? 21207 grep -v '^ *+' conftest.er1 >conftest.err 21208 rm -f conftest.er1 21209 cat conftest.err >&5 21210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21211 (exit $ac_status); } && { 21212 test -z "$ac_c_werror_flag" || 21213 test ! -s conftest.err 21214 } && test -s conftest.$ac_objext; then 21215 ac_hi=$ac_mid; break 21216else 21217 $as_echo "$as_me: failed program was:" >&5 21218sed 's/^/| /' conftest.$ac_ext >&5 21219 21220 ac_lo=`expr $ac_mid + 1` 21221 if test $ac_lo -le $ac_mid; then 21222 ac_lo= ac_hi= 21223 break 21224 fi 21225 ac_mid=`expr 2 '*' $ac_mid + 1` 21226fi 21227 21228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21229 done 21230else 21231 $as_echo "$as_me: failed program was:" >&5 21232sed 's/^/| /' conftest.$ac_ext >&5 21233 21234 cat >conftest.$ac_ext <<_ACEOF 21235/* confdefs.h. */ 21236_ACEOF 21237cat confdefs.h >>conftest.$ac_ext 21238cat >>conftest.$ac_ext <<_ACEOF 21239/* end confdefs.h. */ 21240$ac_includes_default 21241int 21242main () 21243{ 21244static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; 21245test_array [0] = 0 21246 21247 ; 21248 return 0; 21249} 21250_ACEOF 21251rm -f conftest.$ac_objext 21252if { (ac_try="$ac_compile" 21253case "(($ac_try" in 21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21255 *) ac_try_echo=$ac_try;; 21256esac 21257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21258$as_echo "$ac_try_echo") >&5 21259 (eval "$ac_compile") 2>conftest.er1 21260 ac_status=$? 21261 grep -v '^ *+' conftest.er1 >conftest.err 21262 rm -f conftest.er1 21263 cat conftest.err >&5 21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21265 (exit $ac_status); } && { 21266 test -z "$ac_c_werror_flag" || 21267 test ! -s conftest.err 21268 } && test -s conftest.$ac_objext; then 21269 ac_hi=-1 ac_mid=-1 21270 while :; do 21271 cat >conftest.$ac_ext <<_ACEOF 21272/* confdefs.h. */ 21273_ACEOF 21274cat confdefs.h >>conftest.$ac_ext 21275cat >>conftest.$ac_ext <<_ACEOF 21276/* end confdefs.h. */ 21277$ac_includes_default 21278int 21279main () 21280{ 21281static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; 21282test_array [0] = 0 21283 21284 ; 21285 return 0; 21286} 21287_ACEOF 21288rm -f conftest.$ac_objext 21289if { (ac_try="$ac_compile" 21290case "(($ac_try" in 21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21292 *) ac_try_echo=$ac_try;; 21293esac 21294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21295$as_echo "$ac_try_echo") >&5 21296 (eval "$ac_compile") 2>conftest.er1 21297 ac_status=$? 21298 grep -v '^ *+' conftest.er1 >conftest.err 21299 rm -f conftest.er1 21300 cat conftest.err >&5 21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21302 (exit $ac_status); } && { 21303 test -z "$ac_c_werror_flag" || 21304 test ! -s conftest.err 21305 } && test -s conftest.$ac_objext; then 21306 ac_lo=$ac_mid; break 21307else 21308 $as_echo "$as_me: failed program was:" >&5 21309sed 's/^/| /' conftest.$ac_ext >&5 21310 21311 ac_hi=`expr '(' $ac_mid ')' - 1` 21312 if test $ac_mid -le $ac_hi; then 21313 ac_lo= ac_hi= 21314 break 21315 fi 21316 ac_mid=`expr 2 '*' $ac_mid` 21317fi 21318 21319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21320 done 21321else 21322 $as_echo "$as_me: failed program was:" >&5 21323sed 's/^/| /' conftest.$ac_ext >&5 21324 21325 ac_lo= ac_hi= 21326fi 21327 21328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21329fi 21330 21331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21332# Binary search between lo and hi bounds. 21333while test "x$ac_lo" != "x$ac_hi"; do 21334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21335 cat >conftest.$ac_ext <<_ACEOF 21336/* confdefs.h. */ 21337_ACEOF 21338cat confdefs.h >>conftest.$ac_ext 21339cat >>conftest.$ac_ext <<_ACEOF 21340/* end confdefs.h. */ 21341$ac_includes_default 21342int 21343main () 21344{ 21345static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 21346test_array [0] = 0 21347 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352rm -f conftest.$ac_objext 21353if { (ac_try="$ac_compile" 21354case "(($ac_try" in 21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21356 *) ac_try_echo=$ac_try;; 21357esac 21358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21359$as_echo "$ac_try_echo") >&5 21360 (eval "$ac_compile") 2>conftest.er1 21361 ac_status=$? 21362 grep -v '^ *+' conftest.er1 >conftest.err 21363 rm -f conftest.er1 21364 cat conftest.err >&5 21365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21366 (exit $ac_status); } && { 21367 test -z "$ac_c_werror_flag" || 21368 test ! -s conftest.err 21369 } && test -s conftest.$ac_objext; then 21370 ac_hi=$ac_mid 21371else 21372 $as_echo "$as_me: failed program was:" >&5 21373sed 's/^/| /' conftest.$ac_ext >&5 21374 21375 ac_lo=`expr '(' $ac_mid ')' + 1` 21376fi 21377 21378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21379done 21380case $ac_lo in 21381?*) ac_cv_sizeof_long=$ac_lo;; 21382'') if test "$ac_cv_type_long" = yes; then 21383 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21385{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 21386See \`config.log' for more details." >&5 21387$as_echo "$as_me: error: cannot compute sizeof (long) 21388See \`config.log' for more details." >&2;} 21389 { (exit 77); exit 77; }; }; } 21390 else 21391 ac_cv_sizeof_long=0 21392 fi ;; 21393esac 21394else 21395 cat >conftest.$ac_ext <<_ACEOF 21396/* confdefs.h. */ 21397_ACEOF 21398cat confdefs.h >>conftest.$ac_ext 21399cat >>conftest.$ac_ext <<_ACEOF 21400/* end confdefs.h. */ 21401$ac_includes_default 21402static long int longval () { return (long int) (sizeof (long)); } 21403static unsigned long int ulongval () { return (long int) (sizeof (long)); } 21404#include <stdio.h> 21405#include <stdlib.h> 21406int 21407main () 21408{ 21409 21410 FILE *f = fopen ("conftest.val", "w"); 21411 if (! f) 21412 return 1; 21413 if (((long int) (sizeof (long))) < 0) 21414 { 21415 long int i = longval (); 21416 if (i != ((long int) (sizeof (long)))) 21417 return 1; 21418 fprintf (f, "%ld", i); 21419 } 21420 else 21421 { 21422 unsigned long int i = ulongval (); 21423 if (i != ((long int) (sizeof (long)))) 21424 return 1; 21425 fprintf (f, "%lu", i); 21426 } 21427 /* Do not output a trailing newline, as this causes \r\n confusion 21428 on some platforms. */ 21429 return ferror (f) || fclose (f) != 0; 21430 21431 ; 21432 return 0; 21433} 21434_ACEOF 21435rm -f conftest$ac_exeext 21436if { (ac_try="$ac_link" 21437case "(($ac_try" in 21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21439 *) ac_try_echo=$ac_try;; 21440esac 21441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21442$as_echo "$ac_try_echo") >&5 21443 (eval "$ac_link") 2>&5 21444 ac_status=$? 21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21447 { (case "(($ac_try" in 21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21449 *) ac_try_echo=$ac_try;; 21450esac 21451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21452$as_echo "$ac_try_echo") >&5 21453 (eval "$ac_try") 2>&5 21454 ac_status=$? 21455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21456 (exit $ac_status); }; }; then 21457 ac_cv_sizeof_long=`cat conftest.val` 21458else 21459 $as_echo "$as_me: program exited with status $ac_status" >&5 21460$as_echo "$as_me: failed program was:" >&5 21461sed 's/^/| /' conftest.$ac_ext >&5 21462 21463( exit $ac_status ) 21464if test "$ac_cv_type_long" = yes; then 21465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21467{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 21468See \`config.log' for more details." >&5 21469$as_echo "$as_me: error: cannot compute sizeof (long) 21470See \`config.log' for more details." >&2;} 21471 { (exit 77); exit 77; }; }; } 21472 else 21473 ac_cv_sizeof_long=0 21474 fi 21475fi 21476rm -rf conftest.dSYM 21477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21478fi 21479rm -f conftest.val 21480fi 21481{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 21482$as_echo "$ac_cv_sizeof_long" >&6; } 21483 21484 21485 21486cat >>confdefs.h <<_ACEOF 21487#define SIZEOF_LONG $ac_cv_sizeof_long 21488_ACEOF 21489 21490 21491# The cast to long int works around a bug in the HP C Compiler 21492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21494# This bug is HP SR number 8606223364. 21495{ $as_echo "$as_me:$LINENO: checking size of char *" >&5 21496$as_echo_n "checking size of char *... " >&6; } 21497if test "${ac_cv_sizeof_char_p+set}" = set; then 21498 $as_echo_n "(cached) " >&6 21499else 21500 if test "$cross_compiling" = yes; then 21501 # Depending upon the size, compute the lo and hi bounds. 21502cat >conftest.$ac_ext <<_ACEOF 21503/* confdefs.h. */ 21504_ACEOF 21505cat confdefs.h >>conftest.$ac_ext 21506cat >>conftest.$ac_ext <<_ACEOF 21507/* end confdefs.h. */ 21508$ac_includes_default 21509int 21510main () 21511{ 21512static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)]; 21513test_array [0] = 0 21514 21515 ; 21516 return 0; 21517} 21518_ACEOF 21519rm -f conftest.$ac_objext 21520if { (ac_try="$ac_compile" 21521case "(($ac_try" in 21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21523 *) ac_try_echo=$ac_try;; 21524esac 21525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21526$as_echo "$ac_try_echo") >&5 21527 (eval "$ac_compile") 2>conftest.er1 21528 ac_status=$? 21529 grep -v '^ *+' conftest.er1 >conftest.err 21530 rm -f conftest.er1 21531 cat conftest.err >&5 21532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21533 (exit $ac_status); } && { 21534 test -z "$ac_c_werror_flag" || 21535 test ! -s conftest.err 21536 } && test -s conftest.$ac_objext; then 21537 ac_lo=0 ac_mid=0 21538 while :; do 21539 cat >conftest.$ac_ext <<_ACEOF 21540/* confdefs.h. */ 21541_ACEOF 21542cat confdefs.h >>conftest.$ac_ext 21543cat >>conftest.$ac_ext <<_ACEOF 21544/* end confdefs.h. */ 21545$ac_includes_default 21546int 21547main () 21548{ 21549static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; 21550test_array [0] = 0 21551 21552 ; 21553 return 0; 21554} 21555_ACEOF 21556rm -f conftest.$ac_objext 21557if { (ac_try="$ac_compile" 21558case "(($ac_try" in 21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21560 *) ac_try_echo=$ac_try;; 21561esac 21562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21563$as_echo "$ac_try_echo") >&5 21564 (eval "$ac_compile") 2>conftest.er1 21565 ac_status=$? 21566 grep -v '^ *+' conftest.er1 >conftest.err 21567 rm -f conftest.er1 21568 cat conftest.err >&5 21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21570 (exit $ac_status); } && { 21571 test -z "$ac_c_werror_flag" || 21572 test ! -s conftest.err 21573 } && test -s conftest.$ac_objext; then 21574 ac_hi=$ac_mid; break 21575else 21576 $as_echo "$as_me: failed program was:" >&5 21577sed 's/^/| /' conftest.$ac_ext >&5 21578 21579 ac_lo=`expr $ac_mid + 1` 21580 if test $ac_lo -le $ac_mid; then 21581 ac_lo= ac_hi= 21582 break 21583 fi 21584 ac_mid=`expr 2 '*' $ac_mid + 1` 21585fi 21586 21587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21588 done 21589else 21590 $as_echo "$as_me: failed program was:" >&5 21591sed 's/^/| /' conftest.$ac_ext >&5 21592 21593 cat >conftest.$ac_ext <<_ACEOF 21594/* confdefs.h. */ 21595_ACEOF 21596cat confdefs.h >>conftest.$ac_ext 21597cat >>conftest.$ac_ext <<_ACEOF 21598/* end confdefs.h. */ 21599$ac_includes_default 21600int 21601main () 21602{ 21603static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)]; 21604test_array [0] = 0 21605 21606 ; 21607 return 0; 21608} 21609_ACEOF 21610rm -f conftest.$ac_objext 21611if { (ac_try="$ac_compile" 21612case "(($ac_try" in 21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21614 *) ac_try_echo=$ac_try;; 21615esac 21616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21617$as_echo "$ac_try_echo") >&5 21618 (eval "$ac_compile") 2>conftest.er1 21619 ac_status=$? 21620 grep -v '^ *+' conftest.er1 >conftest.err 21621 rm -f conftest.er1 21622 cat conftest.err >&5 21623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21624 (exit $ac_status); } && { 21625 test -z "$ac_c_werror_flag" || 21626 test ! -s conftest.err 21627 } && test -s conftest.$ac_objext; then 21628 ac_hi=-1 ac_mid=-1 21629 while :; do 21630 cat >conftest.$ac_ext <<_ACEOF 21631/* confdefs.h. */ 21632_ACEOF 21633cat confdefs.h >>conftest.$ac_ext 21634cat >>conftest.$ac_ext <<_ACEOF 21635/* end confdefs.h. */ 21636$ac_includes_default 21637int 21638main () 21639{ 21640static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)]; 21641test_array [0] = 0 21642 21643 ; 21644 return 0; 21645} 21646_ACEOF 21647rm -f conftest.$ac_objext 21648if { (ac_try="$ac_compile" 21649case "(($ac_try" in 21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21651 *) ac_try_echo=$ac_try;; 21652esac 21653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21654$as_echo "$ac_try_echo") >&5 21655 (eval "$ac_compile") 2>conftest.er1 21656 ac_status=$? 21657 grep -v '^ *+' conftest.er1 >conftest.err 21658 rm -f conftest.er1 21659 cat conftest.err >&5 21660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21661 (exit $ac_status); } && { 21662 test -z "$ac_c_werror_flag" || 21663 test ! -s conftest.err 21664 } && test -s conftest.$ac_objext; then 21665 ac_lo=$ac_mid; break 21666else 21667 $as_echo "$as_me: failed program was:" >&5 21668sed 's/^/| /' conftest.$ac_ext >&5 21669 21670 ac_hi=`expr '(' $ac_mid ')' - 1` 21671 if test $ac_mid -le $ac_hi; then 21672 ac_lo= ac_hi= 21673 break 21674 fi 21675 ac_mid=`expr 2 '*' $ac_mid` 21676fi 21677 21678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21679 done 21680else 21681 $as_echo "$as_me: failed program was:" >&5 21682sed 's/^/| /' conftest.$ac_ext >&5 21683 21684 ac_lo= ac_hi= 21685fi 21686 21687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21688fi 21689 21690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21691# Binary search between lo and hi bounds. 21692while test "x$ac_lo" != "x$ac_hi"; do 21693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21694 cat >conftest.$ac_ext <<_ACEOF 21695/* confdefs.h. */ 21696_ACEOF 21697cat confdefs.h >>conftest.$ac_ext 21698cat >>conftest.$ac_ext <<_ACEOF 21699/* end confdefs.h. */ 21700$ac_includes_default 21701int 21702main () 21703{ 21704static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)]; 21705test_array [0] = 0 21706 21707 ; 21708 return 0; 21709} 21710_ACEOF 21711rm -f conftest.$ac_objext 21712if { (ac_try="$ac_compile" 21713case "(($ac_try" in 21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21715 *) ac_try_echo=$ac_try;; 21716esac 21717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21718$as_echo "$ac_try_echo") >&5 21719 (eval "$ac_compile") 2>conftest.er1 21720 ac_status=$? 21721 grep -v '^ *+' conftest.er1 >conftest.err 21722 rm -f conftest.er1 21723 cat conftest.err >&5 21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21725 (exit $ac_status); } && { 21726 test -z "$ac_c_werror_flag" || 21727 test ! -s conftest.err 21728 } && test -s conftest.$ac_objext; then 21729 ac_hi=$ac_mid 21730else 21731 $as_echo "$as_me: failed program was:" >&5 21732sed 's/^/| /' conftest.$ac_ext >&5 21733 21734 ac_lo=`expr '(' $ac_mid ')' + 1` 21735fi 21736 21737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21738done 21739case $ac_lo in 21740?*) ac_cv_sizeof_char_p=$ac_lo;; 21741'') if test "$ac_cv_type_char_p" = yes; then 21742 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21744{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) 21745See \`config.log' for more details." >&5 21746$as_echo "$as_me: error: cannot compute sizeof (char *) 21747See \`config.log' for more details." >&2;} 21748 { (exit 77); exit 77; }; }; } 21749 else 21750 ac_cv_sizeof_char_p=0 21751 fi ;; 21752esac 21753else 21754 cat >conftest.$ac_ext <<_ACEOF 21755/* confdefs.h. */ 21756_ACEOF 21757cat confdefs.h >>conftest.$ac_ext 21758cat >>conftest.$ac_ext <<_ACEOF 21759/* end confdefs.h. */ 21760$ac_includes_default 21761static long int longval () { return (long int) (sizeof (char *)); } 21762static unsigned long int ulongval () { return (long int) (sizeof (char *)); } 21763#include <stdio.h> 21764#include <stdlib.h> 21765int 21766main () 21767{ 21768 21769 FILE *f = fopen ("conftest.val", "w"); 21770 if (! f) 21771 return 1; 21772 if (((long int) (sizeof (char *))) < 0) 21773 { 21774 long int i = longval (); 21775 if (i != ((long int) (sizeof (char *)))) 21776 return 1; 21777 fprintf (f, "%ld", i); 21778 } 21779 else 21780 { 21781 unsigned long int i = ulongval (); 21782 if (i != ((long int) (sizeof (char *)))) 21783 return 1; 21784 fprintf (f, "%lu", i); 21785 } 21786 /* Do not output a trailing newline, as this causes \r\n confusion 21787 on some platforms. */ 21788 return ferror (f) || fclose (f) != 0; 21789 21790 ; 21791 return 0; 21792} 21793_ACEOF 21794rm -f conftest$ac_exeext 21795if { (ac_try="$ac_link" 21796case "(($ac_try" in 21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21798 *) ac_try_echo=$ac_try;; 21799esac 21800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21801$as_echo "$ac_try_echo") >&5 21802 (eval "$ac_link") 2>&5 21803 ac_status=$? 21804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21806 { (case "(($ac_try" in 21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21808 *) ac_try_echo=$ac_try;; 21809esac 21810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21811$as_echo "$ac_try_echo") >&5 21812 (eval "$ac_try") 2>&5 21813 ac_status=$? 21814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21815 (exit $ac_status); }; }; then 21816 ac_cv_sizeof_char_p=`cat conftest.val` 21817else 21818 $as_echo "$as_me: program exited with status $ac_status" >&5 21819$as_echo "$as_me: failed program was:" >&5 21820sed 's/^/| /' conftest.$ac_ext >&5 21821 21822( exit $ac_status ) 21823if test "$ac_cv_type_char_p" = yes; then 21824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21826{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) 21827See \`config.log' for more details." >&5 21828$as_echo "$as_me: error: cannot compute sizeof (char *) 21829See \`config.log' for more details." >&2;} 21830 { (exit 77); exit 77; }; }; } 21831 else 21832 ac_cv_sizeof_char_p=0 21833 fi 21834fi 21835rm -rf conftest.dSYM 21836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21837fi 21838rm -f conftest.val 21839fi 21840{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 21841$as_echo "$ac_cv_sizeof_char_p" >&6; } 21842 21843 21844 21845cat >>confdefs.h <<_ACEOF 21846#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 21847_ACEOF 21848 21849 21850# The cast to long int works around a bug in the HP C Compiler 21851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21853# This bug is HP SR number 8606223364. 21854{ $as_echo "$as_me:$LINENO: checking size of double" >&5 21855$as_echo_n "checking size of double... " >&6; } 21856if test "${ac_cv_sizeof_double+set}" = set; then 21857 $as_echo_n "(cached) " >&6 21858else 21859 if test "$cross_compiling" = yes; then 21860 # Depending upon the size, compute the lo and hi bounds. 21861cat >conftest.$ac_ext <<_ACEOF 21862/* confdefs.h. */ 21863_ACEOF 21864cat confdefs.h >>conftest.$ac_ext 21865cat >>conftest.$ac_ext <<_ACEOF 21866/* end confdefs.h. */ 21867$ac_includes_default 21868int 21869main () 21870{ 21871static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)]; 21872test_array [0] = 0 21873 21874 ; 21875 return 0; 21876} 21877_ACEOF 21878rm -f conftest.$ac_objext 21879if { (ac_try="$ac_compile" 21880case "(($ac_try" in 21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21882 *) ac_try_echo=$ac_try;; 21883esac 21884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21885$as_echo "$ac_try_echo") >&5 21886 (eval "$ac_compile") 2>conftest.er1 21887 ac_status=$? 21888 grep -v '^ *+' conftest.er1 >conftest.err 21889 rm -f conftest.er1 21890 cat conftest.err >&5 21891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21892 (exit $ac_status); } && { 21893 test -z "$ac_c_werror_flag" || 21894 test ! -s conftest.err 21895 } && test -s conftest.$ac_objext; then 21896 ac_lo=0 ac_mid=0 21897 while :; do 21898 cat >conftest.$ac_ext <<_ACEOF 21899/* confdefs.h. */ 21900_ACEOF 21901cat confdefs.h >>conftest.$ac_ext 21902cat >>conftest.$ac_ext <<_ACEOF 21903/* end confdefs.h. */ 21904$ac_includes_default 21905int 21906main () 21907{ 21908static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; 21909test_array [0] = 0 21910 21911 ; 21912 return 0; 21913} 21914_ACEOF 21915rm -f conftest.$ac_objext 21916if { (ac_try="$ac_compile" 21917case "(($ac_try" in 21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21919 *) ac_try_echo=$ac_try;; 21920esac 21921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21922$as_echo "$ac_try_echo") >&5 21923 (eval "$ac_compile") 2>conftest.er1 21924 ac_status=$? 21925 grep -v '^ *+' conftest.er1 >conftest.err 21926 rm -f conftest.er1 21927 cat conftest.err >&5 21928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21929 (exit $ac_status); } && { 21930 test -z "$ac_c_werror_flag" || 21931 test ! -s conftest.err 21932 } && test -s conftest.$ac_objext; then 21933 ac_hi=$ac_mid; break 21934else 21935 $as_echo "$as_me: failed program was:" >&5 21936sed 's/^/| /' conftest.$ac_ext >&5 21937 21938 ac_lo=`expr $ac_mid + 1` 21939 if test $ac_lo -le $ac_mid; then 21940 ac_lo= ac_hi= 21941 break 21942 fi 21943 ac_mid=`expr 2 '*' $ac_mid + 1` 21944fi 21945 21946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21947 done 21948else 21949 $as_echo "$as_me: failed program was:" >&5 21950sed 's/^/| /' conftest.$ac_ext >&5 21951 21952 cat >conftest.$ac_ext <<_ACEOF 21953/* confdefs.h. */ 21954_ACEOF 21955cat confdefs.h >>conftest.$ac_ext 21956cat >>conftest.$ac_ext <<_ACEOF 21957/* end confdefs.h. */ 21958$ac_includes_default 21959int 21960main () 21961{ 21962static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)]; 21963test_array [0] = 0 21964 21965 ; 21966 return 0; 21967} 21968_ACEOF 21969rm -f conftest.$ac_objext 21970if { (ac_try="$ac_compile" 21971case "(($ac_try" in 21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21973 *) ac_try_echo=$ac_try;; 21974esac 21975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21976$as_echo "$ac_try_echo") >&5 21977 (eval "$ac_compile") 2>conftest.er1 21978 ac_status=$? 21979 grep -v '^ *+' conftest.er1 >conftest.err 21980 rm -f conftest.er1 21981 cat conftest.err >&5 21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21983 (exit $ac_status); } && { 21984 test -z "$ac_c_werror_flag" || 21985 test ! -s conftest.err 21986 } && test -s conftest.$ac_objext; then 21987 ac_hi=-1 ac_mid=-1 21988 while :; do 21989 cat >conftest.$ac_ext <<_ACEOF 21990/* confdefs.h. */ 21991_ACEOF 21992cat confdefs.h >>conftest.$ac_ext 21993cat >>conftest.$ac_ext <<_ACEOF 21994/* end confdefs.h. */ 21995$ac_includes_default 21996int 21997main () 21998{ 21999static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)]; 22000test_array [0] = 0 22001 22002 ; 22003 return 0; 22004} 22005_ACEOF 22006rm -f conftest.$ac_objext 22007if { (ac_try="$ac_compile" 22008case "(($ac_try" in 22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22010 *) ac_try_echo=$ac_try;; 22011esac 22012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22013$as_echo "$ac_try_echo") >&5 22014 (eval "$ac_compile") 2>conftest.er1 22015 ac_status=$? 22016 grep -v '^ *+' conftest.er1 >conftest.err 22017 rm -f conftest.er1 22018 cat conftest.err >&5 22019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22020 (exit $ac_status); } && { 22021 test -z "$ac_c_werror_flag" || 22022 test ! -s conftest.err 22023 } && test -s conftest.$ac_objext; then 22024 ac_lo=$ac_mid; break 22025else 22026 $as_echo "$as_me: failed program was:" >&5 22027sed 's/^/| /' conftest.$ac_ext >&5 22028 22029 ac_hi=`expr '(' $ac_mid ')' - 1` 22030 if test $ac_mid -le $ac_hi; then 22031 ac_lo= ac_hi= 22032 break 22033 fi 22034 ac_mid=`expr 2 '*' $ac_mid` 22035fi 22036 22037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22038 done 22039else 22040 $as_echo "$as_me: failed program was:" >&5 22041sed 's/^/| /' conftest.$ac_ext >&5 22042 22043 ac_lo= ac_hi= 22044fi 22045 22046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22047fi 22048 22049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22050# Binary search between lo and hi bounds. 22051while test "x$ac_lo" != "x$ac_hi"; do 22052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22053 cat >conftest.$ac_ext <<_ACEOF 22054/* confdefs.h. */ 22055_ACEOF 22056cat confdefs.h >>conftest.$ac_ext 22057cat >>conftest.$ac_ext <<_ACEOF 22058/* end confdefs.h. */ 22059$ac_includes_default 22060int 22061main () 22062{ 22063static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; 22064test_array [0] = 0 22065 22066 ; 22067 return 0; 22068} 22069_ACEOF 22070rm -f conftest.$ac_objext 22071if { (ac_try="$ac_compile" 22072case "(($ac_try" in 22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22074 *) ac_try_echo=$ac_try;; 22075esac 22076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22077$as_echo "$ac_try_echo") >&5 22078 (eval "$ac_compile") 2>conftest.er1 22079 ac_status=$? 22080 grep -v '^ *+' conftest.er1 >conftest.err 22081 rm -f conftest.er1 22082 cat conftest.err >&5 22083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22084 (exit $ac_status); } && { 22085 test -z "$ac_c_werror_flag" || 22086 test ! -s conftest.err 22087 } && test -s conftest.$ac_objext; then 22088 ac_hi=$ac_mid 22089else 22090 $as_echo "$as_me: failed program was:" >&5 22091sed 's/^/| /' conftest.$ac_ext >&5 22092 22093 ac_lo=`expr '(' $ac_mid ')' + 1` 22094fi 22095 22096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22097done 22098case $ac_lo in 22099?*) ac_cv_sizeof_double=$ac_lo;; 22100'') if test "$ac_cv_type_double" = yes; then 22101 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22103{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) 22104See \`config.log' for more details." >&5 22105$as_echo "$as_me: error: cannot compute sizeof (double) 22106See \`config.log' for more details." >&2;} 22107 { (exit 77); exit 77; }; }; } 22108 else 22109 ac_cv_sizeof_double=0 22110 fi ;; 22111esac 22112else 22113 cat >conftest.$ac_ext <<_ACEOF 22114/* confdefs.h. */ 22115_ACEOF 22116cat confdefs.h >>conftest.$ac_ext 22117cat >>conftest.$ac_ext <<_ACEOF 22118/* end confdefs.h. */ 22119$ac_includes_default 22120static long int longval () { return (long int) (sizeof (double)); } 22121static unsigned long int ulongval () { return (long int) (sizeof (double)); } 22122#include <stdio.h> 22123#include <stdlib.h> 22124int 22125main () 22126{ 22127 22128 FILE *f = fopen ("conftest.val", "w"); 22129 if (! f) 22130 return 1; 22131 if (((long int) (sizeof (double))) < 0) 22132 { 22133 long int i = longval (); 22134 if (i != ((long int) (sizeof (double)))) 22135 return 1; 22136 fprintf (f, "%ld", i); 22137 } 22138 else 22139 { 22140 unsigned long int i = ulongval (); 22141 if (i != ((long int) (sizeof (double)))) 22142 return 1; 22143 fprintf (f, "%lu", i); 22144 } 22145 /* Do not output a trailing newline, as this causes \r\n confusion 22146 on some platforms. */ 22147 return ferror (f) || fclose (f) != 0; 22148 22149 ; 22150 return 0; 22151} 22152_ACEOF 22153rm -f conftest$ac_exeext 22154if { (ac_try="$ac_link" 22155case "(($ac_try" in 22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22157 *) ac_try_echo=$ac_try;; 22158esac 22159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22160$as_echo "$ac_try_echo") >&5 22161 (eval "$ac_link") 2>&5 22162 ac_status=$? 22163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22165 { (case "(($ac_try" in 22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22167 *) ac_try_echo=$ac_try;; 22168esac 22169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22170$as_echo "$ac_try_echo") >&5 22171 (eval "$ac_try") 2>&5 22172 ac_status=$? 22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22174 (exit $ac_status); }; }; then 22175 ac_cv_sizeof_double=`cat conftest.val` 22176else 22177 $as_echo "$as_me: program exited with status $ac_status" >&5 22178$as_echo "$as_me: failed program was:" >&5 22179sed 's/^/| /' conftest.$ac_ext >&5 22180 22181( exit $ac_status ) 22182if test "$ac_cv_type_double" = yes; then 22183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22185{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) 22186See \`config.log' for more details." >&5 22187$as_echo "$as_me: error: cannot compute sizeof (double) 22188See \`config.log' for more details." >&2;} 22189 { (exit 77); exit 77; }; }; } 22190 else 22191 ac_cv_sizeof_double=0 22192 fi 22193fi 22194rm -rf conftest.dSYM 22195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22196fi 22197rm -f conftest.val 22198fi 22199{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 22200$as_echo "$ac_cv_sizeof_double" >&6; } 22201 22202 22203 22204cat >>confdefs.h <<_ACEOF 22205#define SIZEOF_DOUBLE $ac_cv_sizeof_double 22206_ACEOF 22207 22208 22209# The cast to long int works around a bug in the HP C Compiler 22210# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22211# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22212# This bug is HP SR number 8606223364. 22213{ $as_echo "$as_me:$LINENO: checking size of long long" >&5 22214$as_echo_n "checking size of long long... " >&6; } 22215if test "${ac_cv_sizeof_long_long+set}" = set; then 22216 $as_echo_n "(cached) " >&6 22217else 22218 if test "$cross_compiling" = yes; then 22219 # Depending upon the size, compute the lo and hi bounds. 22220cat >conftest.$ac_ext <<_ACEOF 22221/* confdefs.h. */ 22222_ACEOF 22223cat confdefs.h >>conftest.$ac_ext 22224cat >>conftest.$ac_ext <<_ACEOF 22225/* end confdefs.h. */ 22226$ac_includes_default 22227int 22228main () 22229{ 22230static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; 22231test_array [0] = 0 22232 22233 ; 22234 return 0; 22235} 22236_ACEOF 22237rm -f conftest.$ac_objext 22238if { (ac_try="$ac_compile" 22239case "(($ac_try" in 22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22241 *) ac_try_echo=$ac_try;; 22242esac 22243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22244$as_echo "$ac_try_echo") >&5 22245 (eval "$ac_compile") 2>conftest.er1 22246 ac_status=$? 22247 grep -v '^ *+' conftest.er1 >conftest.err 22248 rm -f conftest.er1 22249 cat conftest.err >&5 22250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22251 (exit $ac_status); } && { 22252 test -z "$ac_c_werror_flag" || 22253 test ! -s conftest.err 22254 } && test -s conftest.$ac_objext; then 22255 ac_lo=0 ac_mid=0 22256 while :; do 22257 cat >conftest.$ac_ext <<_ACEOF 22258/* confdefs.h. */ 22259_ACEOF 22260cat confdefs.h >>conftest.$ac_ext 22261cat >>conftest.$ac_ext <<_ACEOF 22262/* end confdefs.h. */ 22263$ac_includes_default 22264int 22265main () 22266{ 22267static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 22268test_array [0] = 0 22269 22270 ; 22271 return 0; 22272} 22273_ACEOF 22274rm -f conftest.$ac_objext 22275if { (ac_try="$ac_compile" 22276case "(($ac_try" in 22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22278 *) ac_try_echo=$ac_try;; 22279esac 22280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22281$as_echo "$ac_try_echo") >&5 22282 (eval "$ac_compile") 2>conftest.er1 22283 ac_status=$? 22284 grep -v '^ *+' conftest.er1 >conftest.err 22285 rm -f conftest.er1 22286 cat conftest.err >&5 22287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22288 (exit $ac_status); } && { 22289 test -z "$ac_c_werror_flag" || 22290 test ! -s conftest.err 22291 } && test -s conftest.$ac_objext; then 22292 ac_hi=$ac_mid; break 22293else 22294 $as_echo "$as_me: failed program was:" >&5 22295sed 's/^/| /' conftest.$ac_ext >&5 22296 22297 ac_lo=`expr $ac_mid + 1` 22298 if test $ac_lo -le $ac_mid; then 22299 ac_lo= ac_hi= 22300 break 22301 fi 22302 ac_mid=`expr 2 '*' $ac_mid + 1` 22303fi 22304 22305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22306 done 22307else 22308 $as_echo "$as_me: failed program was:" >&5 22309sed 's/^/| /' conftest.$ac_ext >&5 22310 22311 cat >conftest.$ac_ext <<_ACEOF 22312/* confdefs.h. */ 22313_ACEOF 22314cat confdefs.h >>conftest.$ac_ext 22315cat >>conftest.$ac_ext <<_ACEOF 22316/* end confdefs.h. */ 22317$ac_includes_default 22318int 22319main () 22320{ 22321static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; 22322test_array [0] = 0 22323 22324 ; 22325 return 0; 22326} 22327_ACEOF 22328rm -f conftest.$ac_objext 22329if { (ac_try="$ac_compile" 22330case "(($ac_try" in 22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22332 *) ac_try_echo=$ac_try;; 22333esac 22334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22335$as_echo "$ac_try_echo") >&5 22336 (eval "$ac_compile") 2>conftest.er1 22337 ac_status=$? 22338 grep -v '^ *+' conftest.er1 >conftest.err 22339 rm -f conftest.er1 22340 cat conftest.err >&5 22341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22342 (exit $ac_status); } && { 22343 test -z "$ac_c_werror_flag" || 22344 test ! -s conftest.err 22345 } && test -s conftest.$ac_objext; then 22346 ac_hi=-1 ac_mid=-1 22347 while :; do 22348 cat >conftest.$ac_ext <<_ACEOF 22349/* confdefs.h. */ 22350_ACEOF 22351cat confdefs.h >>conftest.$ac_ext 22352cat >>conftest.$ac_ext <<_ACEOF 22353/* end confdefs.h. */ 22354$ac_includes_default 22355int 22356main () 22357{ 22358static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; 22359test_array [0] = 0 22360 22361 ; 22362 return 0; 22363} 22364_ACEOF 22365rm -f conftest.$ac_objext 22366if { (ac_try="$ac_compile" 22367case "(($ac_try" in 22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22369 *) ac_try_echo=$ac_try;; 22370esac 22371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22372$as_echo "$ac_try_echo") >&5 22373 (eval "$ac_compile") 2>conftest.er1 22374 ac_status=$? 22375 grep -v '^ *+' conftest.er1 >conftest.err 22376 rm -f conftest.er1 22377 cat conftest.err >&5 22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22379 (exit $ac_status); } && { 22380 test -z "$ac_c_werror_flag" || 22381 test ! -s conftest.err 22382 } && test -s conftest.$ac_objext; then 22383 ac_lo=$ac_mid; break 22384else 22385 $as_echo "$as_me: failed program was:" >&5 22386sed 's/^/| /' conftest.$ac_ext >&5 22387 22388 ac_hi=`expr '(' $ac_mid ')' - 1` 22389 if test $ac_mid -le $ac_hi; then 22390 ac_lo= ac_hi= 22391 break 22392 fi 22393 ac_mid=`expr 2 '*' $ac_mid` 22394fi 22395 22396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22397 done 22398else 22399 $as_echo "$as_me: failed program was:" >&5 22400sed 's/^/| /' conftest.$ac_ext >&5 22401 22402 ac_lo= ac_hi= 22403fi 22404 22405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22406fi 22407 22408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22409# Binary search between lo and hi bounds. 22410while test "x$ac_lo" != "x$ac_hi"; do 22411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22412 cat >conftest.$ac_ext <<_ACEOF 22413/* confdefs.h. */ 22414_ACEOF 22415cat confdefs.h >>conftest.$ac_ext 22416cat >>conftest.$ac_ext <<_ACEOF 22417/* end confdefs.h. */ 22418$ac_includes_default 22419int 22420main () 22421{ 22422static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 22423test_array [0] = 0 22424 22425 ; 22426 return 0; 22427} 22428_ACEOF 22429rm -f conftest.$ac_objext 22430if { (ac_try="$ac_compile" 22431case "(($ac_try" in 22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22433 *) ac_try_echo=$ac_try;; 22434esac 22435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22436$as_echo "$ac_try_echo") >&5 22437 (eval "$ac_compile") 2>conftest.er1 22438 ac_status=$? 22439 grep -v '^ *+' conftest.er1 >conftest.err 22440 rm -f conftest.er1 22441 cat conftest.err >&5 22442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22443 (exit $ac_status); } && { 22444 test -z "$ac_c_werror_flag" || 22445 test ! -s conftest.err 22446 } && test -s conftest.$ac_objext; then 22447 ac_hi=$ac_mid 22448else 22449 $as_echo "$as_me: failed program was:" >&5 22450sed 's/^/| /' conftest.$ac_ext >&5 22451 22452 ac_lo=`expr '(' $ac_mid ')' + 1` 22453fi 22454 22455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22456done 22457case $ac_lo in 22458?*) ac_cv_sizeof_long_long=$ac_lo;; 22459'') if test "$ac_cv_type_long_long" = yes; then 22460 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22462{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 22463See \`config.log' for more details." >&5 22464$as_echo "$as_me: error: cannot compute sizeof (long long) 22465See \`config.log' for more details." >&2;} 22466 { (exit 77); exit 77; }; }; } 22467 else 22468 ac_cv_sizeof_long_long=0 22469 fi ;; 22470esac 22471else 22472 cat >conftest.$ac_ext <<_ACEOF 22473/* confdefs.h. */ 22474_ACEOF 22475cat confdefs.h >>conftest.$ac_ext 22476cat >>conftest.$ac_ext <<_ACEOF 22477/* end confdefs.h. */ 22478$ac_includes_default 22479static long int longval () { return (long int) (sizeof (long long)); } 22480static unsigned long int ulongval () { return (long int) (sizeof (long long)); } 22481#include <stdio.h> 22482#include <stdlib.h> 22483int 22484main () 22485{ 22486 22487 FILE *f = fopen ("conftest.val", "w"); 22488 if (! f) 22489 return 1; 22490 if (((long int) (sizeof (long long))) < 0) 22491 { 22492 long int i = longval (); 22493 if (i != ((long int) (sizeof (long long)))) 22494 return 1; 22495 fprintf (f, "%ld", i); 22496 } 22497 else 22498 { 22499 unsigned long int i = ulongval (); 22500 if (i != ((long int) (sizeof (long long)))) 22501 return 1; 22502 fprintf (f, "%lu", i); 22503 } 22504 /* Do not output a trailing newline, as this causes \r\n confusion 22505 on some platforms. */ 22506 return ferror (f) || fclose (f) != 0; 22507 22508 ; 22509 return 0; 22510} 22511_ACEOF 22512rm -f conftest$ac_exeext 22513if { (ac_try="$ac_link" 22514case "(($ac_try" in 22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22516 *) ac_try_echo=$ac_try;; 22517esac 22518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22519$as_echo "$ac_try_echo") >&5 22520 (eval "$ac_link") 2>&5 22521 ac_status=$? 22522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22524 { (case "(($ac_try" in 22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22526 *) ac_try_echo=$ac_try;; 22527esac 22528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22529$as_echo "$ac_try_echo") >&5 22530 (eval "$ac_try") 2>&5 22531 ac_status=$? 22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22533 (exit $ac_status); }; }; then 22534 ac_cv_sizeof_long_long=`cat conftest.val` 22535else 22536 $as_echo "$as_me: program exited with status $ac_status" >&5 22537$as_echo "$as_me: failed program was:" >&5 22538sed 's/^/| /' conftest.$ac_ext >&5 22539 22540( exit $ac_status ) 22541if test "$ac_cv_type_long_long" = yes; then 22542 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22544{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 22545See \`config.log' for more details." >&5 22546$as_echo "$as_me: error: cannot compute sizeof (long long) 22547See \`config.log' for more details." >&2;} 22548 { (exit 77); exit 77; }; }; } 22549 else 22550 ac_cv_sizeof_long_long=0 22551 fi 22552fi 22553rm -rf conftest.dSYM 22554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22555fi 22556rm -f conftest.val 22557fi 22558{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 22559$as_echo "$ac_cv_sizeof_long_long" >&6; } 22560 22561 22562 22563cat >>confdefs.h <<_ACEOF 22564#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 22565_ACEOF 22566 22567 22568 22569{ $as_echo "$as_me:$LINENO: checking for u_int" >&5 22570$as_echo_n "checking for u_int... " >&6; } 22571if test "${ac_cv_type_u_int+set}" = set; then 22572 $as_echo_n "(cached) " >&6 22573else 22574 ac_cv_type_u_int=no 22575cat >conftest.$ac_ext <<_ACEOF 22576/* confdefs.h. */ 22577_ACEOF 22578cat confdefs.h >>conftest.$ac_ext 22579cat >>conftest.$ac_ext <<_ACEOF 22580/* end confdefs.h. */ 22581$ac_includes_default 22582int 22583main () 22584{ 22585if (sizeof (u_int)) 22586 return 0; 22587 ; 22588 return 0; 22589} 22590_ACEOF 22591rm -f conftest.$ac_objext 22592if { (ac_try="$ac_compile" 22593case "(($ac_try" in 22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22595 *) ac_try_echo=$ac_try;; 22596esac 22597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22598$as_echo "$ac_try_echo") >&5 22599 (eval "$ac_compile") 2>conftest.er1 22600 ac_status=$? 22601 grep -v '^ *+' conftest.er1 >conftest.err 22602 rm -f conftest.er1 22603 cat conftest.err >&5 22604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22605 (exit $ac_status); } && { 22606 test -z "$ac_c_werror_flag" || 22607 test ! -s conftest.err 22608 } && test -s conftest.$ac_objext; then 22609 cat >conftest.$ac_ext <<_ACEOF 22610/* confdefs.h. */ 22611_ACEOF 22612cat confdefs.h >>conftest.$ac_ext 22613cat >>conftest.$ac_ext <<_ACEOF 22614/* end confdefs.h. */ 22615$ac_includes_default 22616int 22617main () 22618{ 22619if (sizeof ((u_int))) 22620 return 0; 22621 ; 22622 return 0; 22623} 22624_ACEOF 22625rm -f conftest.$ac_objext 22626if { (ac_try="$ac_compile" 22627case "(($ac_try" in 22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22629 *) ac_try_echo=$ac_try;; 22630esac 22631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22632$as_echo "$ac_try_echo") >&5 22633 (eval "$ac_compile") 2>conftest.er1 22634 ac_status=$? 22635 grep -v '^ *+' conftest.er1 >conftest.err 22636 rm -f conftest.er1 22637 cat conftest.err >&5 22638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22639 (exit $ac_status); } && { 22640 test -z "$ac_c_werror_flag" || 22641 test ! -s conftest.err 22642 } && test -s conftest.$ac_objext; then 22643 : 22644else 22645 $as_echo "$as_me: failed program was:" >&5 22646sed 's/^/| /' conftest.$ac_ext >&5 22647 22648 ac_cv_type_u_int=yes 22649fi 22650 22651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22652else 22653 $as_echo "$as_me: failed program was:" >&5 22654sed 's/^/| /' conftest.$ac_ext >&5 22655 22656 22657fi 22658 22659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22660fi 22661{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 22662$as_echo "$ac_cv_type_u_int" >&6; } 22663if test "x$ac_cv_type_u_int" = x""yes; then 22664 : 22665else 22666 22667cat >>confdefs.h <<_ACEOF 22668#define u_int unsigned int 22669_ACEOF 22670 22671fi 22672 22673{ $as_echo "$as_me:$LINENO: checking for u_long" >&5 22674$as_echo_n "checking for u_long... " >&6; } 22675if test "${ac_cv_type_u_long+set}" = set; then 22676 $as_echo_n "(cached) " >&6 22677else 22678 ac_cv_type_u_long=no 22679cat >conftest.$ac_ext <<_ACEOF 22680/* confdefs.h. */ 22681_ACEOF 22682cat confdefs.h >>conftest.$ac_ext 22683cat >>conftest.$ac_ext <<_ACEOF 22684/* end confdefs.h. */ 22685$ac_includes_default 22686int 22687main () 22688{ 22689if (sizeof (u_long)) 22690 return 0; 22691 ; 22692 return 0; 22693} 22694_ACEOF 22695rm -f conftest.$ac_objext 22696if { (ac_try="$ac_compile" 22697case "(($ac_try" in 22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22699 *) ac_try_echo=$ac_try;; 22700esac 22701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22702$as_echo "$ac_try_echo") >&5 22703 (eval "$ac_compile") 2>conftest.er1 22704 ac_status=$? 22705 grep -v '^ *+' conftest.er1 >conftest.err 22706 rm -f conftest.er1 22707 cat conftest.err >&5 22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22709 (exit $ac_status); } && { 22710 test -z "$ac_c_werror_flag" || 22711 test ! -s conftest.err 22712 } && test -s conftest.$ac_objext; then 22713 cat >conftest.$ac_ext <<_ACEOF 22714/* confdefs.h. */ 22715_ACEOF 22716cat confdefs.h >>conftest.$ac_ext 22717cat >>conftest.$ac_ext <<_ACEOF 22718/* end confdefs.h. */ 22719$ac_includes_default 22720int 22721main () 22722{ 22723if (sizeof ((u_long))) 22724 return 0; 22725 ; 22726 return 0; 22727} 22728_ACEOF 22729rm -f conftest.$ac_objext 22730if { (ac_try="$ac_compile" 22731case "(($ac_try" in 22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22733 *) ac_try_echo=$ac_try;; 22734esac 22735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22736$as_echo "$ac_try_echo") >&5 22737 (eval "$ac_compile") 2>conftest.er1 22738 ac_status=$? 22739 grep -v '^ *+' conftest.er1 >conftest.err 22740 rm -f conftest.er1 22741 cat conftest.err >&5 22742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22743 (exit $ac_status); } && { 22744 test -z "$ac_c_werror_flag" || 22745 test ! -s conftest.err 22746 } && test -s conftest.$ac_objext; then 22747 : 22748else 22749 $as_echo "$as_me: failed program was:" >&5 22750sed 's/^/| /' conftest.$ac_ext >&5 22751 22752 ac_cv_type_u_long=yes 22753fi 22754 22755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22756else 22757 $as_echo "$as_me: failed program was:" >&5 22758sed 's/^/| /' conftest.$ac_ext >&5 22759 22760 22761fi 22762 22763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22764fi 22765{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 22766$as_echo "$ac_cv_type_u_long" >&6; } 22767if test "x$ac_cv_type_u_long" = x""yes; then 22768 : 22769else 22770 22771cat >>confdefs.h <<_ACEOF 22772#define u_long unsigned long 22773_ACEOF 22774 22775fi 22776 22777 22778 22779if test "$ac_cv_sizeof_short" = 2; then 22780 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 22781$as_echo_n "checking for bits16_t... " >&6; } 22782if test "${ac_cv_type_bits16_t+set}" = set; then 22783 $as_echo_n "(cached) " >&6 22784else 22785 ac_cv_type_bits16_t=no 22786cat >conftest.$ac_ext <<_ACEOF 22787/* confdefs.h. */ 22788_ACEOF 22789cat confdefs.h >>conftest.$ac_ext 22790cat >>conftest.$ac_ext <<_ACEOF 22791/* end confdefs.h. */ 22792$ac_includes_default 22793int 22794main () 22795{ 22796if (sizeof (bits16_t)) 22797 return 0; 22798 ; 22799 return 0; 22800} 22801_ACEOF 22802rm -f conftest.$ac_objext 22803if { (ac_try="$ac_compile" 22804case "(($ac_try" in 22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22806 *) ac_try_echo=$ac_try;; 22807esac 22808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22809$as_echo "$ac_try_echo") >&5 22810 (eval "$ac_compile") 2>conftest.er1 22811 ac_status=$? 22812 grep -v '^ *+' conftest.er1 >conftest.err 22813 rm -f conftest.er1 22814 cat conftest.err >&5 22815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22816 (exit $ac_status); } && { 22817 test -z "$ac_c_werror_flag" || 22818 test ! -s conftest.err 22819 } && test -s conftest.$ac_objext; then 22820 cat >conftest.$ac_ext <<_ACEOF 22821/* confdefs.h. */ 22822_ACEOF 22823cat confdefs.h >>conftest.$ac_ext 22824cat >>conftest.$ac_ext <<_ACEOF 22825/* end confdefs.h. */ 22826$ac_includes_default 22827int 22828main () 22829{ 22830if (sizeof ((bits16_t))) 22831 return 0; 22832 ; 22833 return 0; 22834} 22835_ACEOF 22836rm -f conftest.$ac_objext 22837if { (ac_try="$ac_compile" 22838case "(($ac_try" in 22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22840 *) ac_try_echo=$ac_try;; 22841esac 22842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22843$as_echo "$ac_try_echo") >&5 22844 (eval "$ac_compile") 2>conftest.er1 22845 ac_status=$? 22846 grep -v '^ *+' conftest.er1 >conftest.err 22847 rm -f conftest.er1 22848 cat conftest.err >&5 22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22850 (exit $ac_status); } && { 22851 test -z "$ac_c_werror_flag" || 22852 test ! -s conftest.err 22853 } && test -s conftest.$ac_objext; then 22854 : 22855else 22856 $as_echo "$as_me: failed program was:" >&5 22857sed 's/^/| /' conftest.$ac_ext >&5 22858 22859 ac_cv_type_bits16_t=yes 22860fi 22861 22862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22863else 22864 $as_echo "$as_me: failed program was:" >&5 22865sed 's/^/| /' conftest.$ac_ext >&5 22866 22867 22868fi 22869 22870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22871fi 22872{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 22873$as_echo "$ac_cv_type_bits16_t" >&6; } 22874if test "x$ac_cv_type_bits16_t" = x""yes; then 22875 : 22876else 22877 22878cat >>confdefs.h <<_ACEOF 22879#define bits16_t short 22880_ACEOF 22881 22882fi 22883 22884elif test "$ac_cv_sizeof_char" = 2; then 22885 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 22886$as_echo_n "checking for bits16_t... " >&6; } 22887if test "${ac_cv_type_bits16_t+set}" = set; then 22888 $as_echo_n "(cached) " >&6 22889else 22890 ac_cv_type_bits16_t=no 22891cat >conftest.$ac_ext <<_ACEOF 22892/* confdefs.h. */ 22893_ACEOF 22894cat confdefs.h >>conftest.$ac_ext 22895cat >>conftest.$ac_ext <<_ACEOF 22896/* end confdefs.h. */ 22897$ac_includes_default 22898int 22899main () 22900{ 22901if (sizeof (bits16_t)) 22902 return 0; 22903 ; 22904 return 0; 22905} 22906_ACEOF 22907rm -f conftest.$ac_objext 22908if { (ac_try="$ac_compile" 22909case "(($ac_try" in 22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22911 *) ac_try_echo=$ac_try;; 22912esac 22913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22914$as_echo "$ac_try_echo") >&5 22915 (eval "$ac_compile") 2>conftest.er1 22916 ac_status=$? 22917 grep -v '^ *+' conftest.er1 >conftest.err 22918 rm -f conftest.er1 22919 cat conftest.err >&5 22920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22921 (exit $ac_status); } && { 22922 test -z "$ac_c_werror_flag" || 22923 test ! -s conftest.err 22924 } && test -s conftest.$ac_objext; then 22925 cat >conftest.$ac_ext <<_ACEOF 22926/* confdefs.h. */ 22927_ACEOF 22928cat confdefs.h >>conftest.$ac_ext 22929cat >>conftest.$ac_ext <<_ACEOF 22930/* end confdefs.h. */ 22931$ac_includes_default 22932int 22933main () 22934{ 22935if (sizeof ((bits16_t))) 22936 return 0; 22937 ; 22938 return 0; 22939} 22940_ACEOF 22941rm -f conftest.$ac_objext 22942if { (ac_try="$ac_compile" 22943case "(($ac_try" in 22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22945 *) ac_try_echo=$ac_try;; 22946esac 22947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22948$as_echo "$ac_try_echo") >&5 22949 (eval "$ac_compile") 2>conftest.er1 22950 ac_status=$? 22951 grep -v '^ *+' conftest.er1 >conftest.err 22952 rm -f conftest.er1 22953 cat conftest.err >&5 22954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22955 (exit $ac_status); } && { 22956 test -z "$ac_c_werror_flag" || 22957 test ! -s conftest.err 22958 } && test -s conftest.$ac_objext; then 22959 : 22960else 22961 $as_echo "$as_me: failed program was:" >&5 22962sed 's/^/| /' conftest.$ac_ext >&5 22963 22964 ac_cv_type_bits16_t=yes 22965fi 22966 22967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22968else 22969 $as_echo "$as_me: failed program was:" >&5 22970sed 's/^/| /' conftest.$ac_ext >&5 22971 22972 22973fi 22974 22975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22976fi 22977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 22978$as_echo "$ac_cv_type_bits16_t" >&6; } 22979if test "x$ac_cv_type_bits16_t" = x""yes; then 22980 : 22981else 22982 22983cat >>confdefs.h <<_ACEOF 22984#define bits16_t char 22985_ACEOF 22986 22987fi 22988 22989else 22990 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 22991$as_echo_n "checking for bits16_t... " >&6; } 22992if test "${ac_cv_type_bits16_t+set}" = set; then 22993 $as_echo_n "(cached) " >&6 22994else 22995 ac_cv_type_bits16_t=no 22996cat >conftest.$ac_ext <<_ACEOF 22997/* confdefs.h. */ 22998_ACEOF 22999cat confdefs.h >>conftest.$ac_ext 23000cat >>conftest.$ac_ext <<_ACEOF 23001/* end confdefs.h. */ 23002$ac_includes_default 23003int 23004main () 23005{ 23006if (sizeof (bits16_t)) 23007 return 0; 23008 ; 23009 return 0; 23010} 23011_ACEOF 23012rm -f conftest.$ac_objext 23013if { (ac_try="$ac_compile" 23014case "(($ac_try" in 23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23016 *) ac_try_echo=$ac_try;; 23017esac 23018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23019$as_echo "$ac_try_echo") >&5 23020 (eval "$ac_compile") 2>conftest.er1 23021 ac_status=$? 23022 grep -v '^ *+' conftest.er1 >conftest.err 23023 rm -f conftest.er1 23024 cat conftest.err >&5 23025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23026 (exit $ac_status); } && { 23027 test -z "$ac_c_werror_flag" || 23028 test ! -s conftest.err 23029 } && test -s conftest.$ac_objext; then 23030 cat >conftest.$ac_ext <<_ACEOF 23031/* confdefs.h. */ 23032_ACEOF 23033cat confdefs.h >>conftest.$ac_ext 23034cat >>conftest.$ac_ext <<_ACEOF 23035/* end confdefs.h. */ 23036$ac_includes_default 23037int 23038main () 23039{ 23040if (sizeof ((bits16_t))) 23041 return 0; 23042 ; 23043 return 0; 23044} 23045_ACEOF 23046rm -f conftest.$ac_objext 23047if { (ac_try="$ac_compile" 23048case "(($ac_try" in 23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23050 *) ac_try_echo=$ac_try;; 23051esac 23052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23053$as_echo "$ac_try_echo") >&5 23054 (eval "$ac_compile") 2>conftest.er1 23055 ac_status=$? 23056 grep -v '^ *+' conftest.er1 >conftest.err 23057 rm -f conftest.er1 23058 cat conftest.err >&5 23059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23060 (exit $ac_status); } && { 23061 test -z "$ac_c_werror_flag" || 23062 test ! -s conftest.err 23063 } && test -s conftest.$ac_objext; then 23064 : 23065else 23066 $as_echo "$as_me: failed program was:" >&5 23067sed 's/^/| /' conftest.$ac_ext >&5 23068 23069 ac_cv_type_bits16_t=yes 23070fi 23071 23072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23073else 23074 $as_echo "$as_me: failed program was:" >&5 23075sed 's/^/| /' conftest.$ac_ext >&5 23076 23077 23078fi 23079 23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23081fi 23082{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 23083$as_echo "$ac_cv_type_bits16_t" >&6; } 23084if test "x$ac_cv_type_bits16_t" = x""yes; then 23085 : 23086else 23087 23088cat >>confdefs.h <<_ACEOF 23089#define bits16_t short 23090_ACEOF 23091 23092fi 23093 23094fi 23095 23096 23097if test "$ac_cv_sizeof_short" = 2; then 23098 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 23099$as_echo_n "checking for u_bits16_t... " >&6; } 23100if test "${ac_cv_type_u_bits16_t+set}" = set; then 23101 $as_echo_n "(cached) " >&6 23102else 23103 ac_cv_type_u_bits16_t=no 23104cat >conftest.$ac_ext <<_ACEOF 23105/* confdefs.h. */ 23106_ACEOF 23107cat confdefs.h >>conftest.$ac_ext 23108cat >>conftest.$ac_ext <<_ACEOF 23109/* end confdefs.h. */ 23110$ac_includes_default 23111int 23112main () 23113{ 23114if (sizeof (u_bits16_t)) 23115 return 0; 23116 ; 23117 return 0; 23118} 23119_ACEOF 23120rm -f conftest.$ac_objext 23121if { (ac_try="$ac_compile" 23122case "(($ac_try" in 23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23124 *) ac_try_echo=$ac_try;; 23125esac 23126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23127$as_echo "$ac_try_echo") >&5 23128 (eval "$ac_compile") 2>conftest.er1 23129 ac_status=$? 23130 grep -v '^ *+' conftest.er1 >conftest.err 23131 rm -f conftest.er1 23132 cat conftest.err >&5 23133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23134 (exit $ac_status); } && { 23135 test -z "$ac_c_werror_flag" || 23136 test ! -s conftest.err 23137 } && test -s conftest.$ac_objext; then 23138 cat >conftest.$ac_ext <<_ACEOF 23139/* confdefs.h. */ 23140_ACEOF 23141cat confdefs.h >>conftest.$ac_ext 23142cat >>conftest.$ac_ext <<_ACEOF 23143/* end confdefs.h. */ 23144$ac_includes_default 23145int 23146main () 23147{ 23148if (sizeof ((u_bits16_t))) 23149 return 0; 23150 ; 23151 return 0; 23152} 23153_ACEOF 23154rm -f conftest.$ac_objext 23155if { (ac_try="$ac_compile" 23156case "(($ac_try" in 23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23158 *) ac_try_echo=$ac_try;; 23159esac 23160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23161$as_echo "$ac_try_echo") >&5 23162 (eval "$ac_compile") 2>conftest.er1 23163 ac_status=$? 23164 grep -v '^ *+' conftest.er1 >conftest.err 23165 rm -f conftest.er1 23166 cat conftest.err >&5 23167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23168 (exit $ac_status); } && { 23169 test -z "$ac_c_werror_flag" || 23170 test ! -s conftest.err 23171 } && test -s conftest.$ac_objext; then 23172 : 23173else 23174 $as_echo "$as_me: failed program was:" >&5 23175sed 's/^/| /' conftest.$ac_ext >&5 23176 23177 ac_cv_type_u_bits16_t=yes 23178fi 23179 23180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23181else 23182 $as_echo "$as_me: failed program was:" >&5 23183sed 's/^/| /' conftest.$ac_ext >&5 23184 23185 23186fi 23187 23188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23189fi 23190{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 23191$as_echo "$ac_cv_type_u_bits16_t" >&6; } 23192if test "x$ac_cv_type_u_bits16_t" = x""yes; then 23193 : 23194else 23195 23196cat >>confdefs.h <<_ACEOF 23197#define u_bits16_t unsigned short 23198_ACEOF 23199 23200fi 23201 23202elif test "$ac_cv_sizeof_char" = 2; then 23203 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 23204$as_echo_n "checking for u_bits16_t... " >&6; } 23205if test "${ac_cv_type_u_bits16_t+set}" = set; then 23206 $as_echo_n "(cached) " >&6 23207else 23208 ac_cv_type_u_bits16_t=no 23209cat >conftest.$ac_ext <<_ACEOF 23210/* confdefs.h. */ 23211_ACEOF 23212cat confdefs.h >>conftest.$ac_ext 23213cat >>conftest.$ac_ext <<_ACEOF 23214/* end confdefs.h. */ 23215$ac_includes_default 23216int 23217main () 23218{ 23219if (sizeof (u_bits16_t)) 23220 return 0; 23221 ; 23222 return 0; 23223} 23224_ACEOF 23225rm -f conftest.$ac_objext 23226if { (ac_try="$ac_compile" 23227case "(($ac_try" in 23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23229 *) ac_try_echo=$ac_try;; 23230esac 23231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23232$as_echo "$ac_try_echo") >&5 23233 (eval "$ac_compile") 2>conftest.er1 23234 ac_status=$? 23235 grep -v '^ *+' conftest.er1 >conftest.err 23236 rm -f conftest.er1 23237 cat conftest.err >&5 23238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23239 (exit $ac_status); } && { 23240 test -z "$ac_c_werror_flag" || 23241 test ! -s conftest.err 23242 } && test -s conftest.$ac_objext; then 23243 cat >conftest.$ac_ext <<_ACEOF 23244/* confdefs.h. */ 23245_ACEOF 23246cat confdefs.h >>conftest.$ac_ext 23247cat >>conftest.$ac_ext <<_ACEOF 23248/* end confdefs.h. */ 23249$ac_includes_default 23250int 23251main () 23252{ 23253if (sizeof ((u_bits16_t))) 23254 return 0; 23255 ; 23256 return 0; 23257} 23258_ACEOF 23259rm -f conftest.$ac_objext 23260if { (ac_try="$ac_compile" 23261case "(($ac_try" in 23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23263 *) ac_try_echo=$ac_try;; 23264esac 23265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23266$as_echo "$ac_try_echo") >&5 23267 (eval "$ac_compile") 2>conftest.er1 23268 ac_status=$? 23269 grep -v '^ *+' conftest.er1 >conftest.err 23270 rm -f conftest.er1 23271 cat conftest.err >&5 23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23273 (exit $ac_status); } && { 23274 test -z "$ac_c_werror_flag" || 23275 test ! -s conftest.err 23276 } && test -s conftest.$ac_objext; then 23277 : 23278else 23279 $as_echo "$as_me: failed program was:" >&5 23280sed 's/^/| /' conftest.$ac_ext >&5 23281 23282 ac_cv_type_u_bits16_t=yes 23283fi 23284 23285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23286else 23287 $as_echo "$as_me: failed program was:" >&5 23288sed 's/^/| /' conftest.$ac_ext >&5 23289 23290 23291fi 23292 23293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23294fi 23295{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 23296$as_echo "$ac_cv_type_u_bits16_t" >&6; } 23297if test "x$ac_cv_type_u_bits16_t" = x""yes; then 23298 : 23299else 23300 23301cat >>confdefs.h <<_ACEOF 23302#define u_bits16_t unsigned char 23303_ACEOF 23304 23305fi 23306 23307else 23308 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 23309$as_echo_n "checking for u_bits16_t... " >&6; } 23310if test "${ac_cv_type_u_bits16_t+set}" = set; then 23311 $as_echo_n "(cached) " >&6 23312else 23313 ac_cv_type_u_bits16_t=no 23314cat >conftest.$ac_ext <<_ACEOF 23315/* confdefs.h. */ 23316_ACEOF 23317cat confdefs.h >>conftest.$ac_ext 23318cat >>conftest.$ac_ext <<_ACEOF 23319/* end confdefs.h. */ 23320$ac_includes_default 23321int 23322main () 23323{ 23324if (sizeof (u_bits16_t)) 23325 return 0; 23326 ; 23327 return 0; 23328} 23329_ACEOF 23330rm -f conftest.$ac_objext 23331if { (ac_try="$ac_compile" 23332case "(($ac_try" in 23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23334 *) ac_try_echo=$ac_try;; 23335esac 23336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23337$as_echo "$ac_try_echo") >&5 23338 (eval "$ac_compile") 2>conftest.er1 23339 ac_status=$? 23340 grep -v '^ *+' conftest.er1 >conftest.err 23341 rm -f conftest.er1 23342 cat conftest.err >&5 23343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23344 (exit $ac_status); } && { 23345 test -z "$ac_c_werror_flag" || 23346 test ! -s conftest.err 23347 } && test -s conftest.$ac_objext; then 23348 cat >conftest.$ac_ext <<_ACEOF 23349/* confdefs.h. */ 23350_ACEOF 23351cat confdefs.h >>conftest.$ac_ext 23352cat >>conftest.$ac_ext <<_ACEOF 23353/* end confdefs.h. */ 23354$ac_includes_default 23355int 23356main () 23357{ 23358if (sizeof ((u_bits16_t))) 23359 return 0; 23360 ; 23361 return 0; 23362} 23363_ACEOF 23364rm -f conftest.$ac_objext 23365if { (ac_try="$ac_compile" 23366case "(($ac_try" in 23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23368 *) ac_try_echo=$ac_try;; 23369esac 23370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23371$as_echo "$ac_try_echo") >&5 23372 (eval "$ac_compile") 2>conftest.er1 23373 ac_status=$? 23374 grep -v '^ *+' conftest.er1 >conftest.err 23375 rm -f conftest.er1 23376 cat conftest.err >&5 23377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23378 (exit $ac_status); } && { 23379 test -z "$ac_c_werror_flag" || 23380 test ! -s conftest.err 23381 } && test -s conftest.$ac_objext; then 23382 : 23383else 23384 $as_echo "$as_me: failed program was:" >&5 23385sed 's/^/| /' conftest.$ac_ext >&5 23386 23387 ac_cv_type_u_bits16_t=yes 23388fi 23389 23390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23391else 23392 $as_echo "$as_me: failed program was:" >&5 23393sed 's/^/| /' conftest.$ac_ext >&5 23394 23395 23396fi 23397 23398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23399fi 23400{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 23401$as_echo "$ac_cv_type_u_bits16_t" >&6; } 23402if test "x$ac_cv_type_u_bits16_t" = x""yes; then 23403 : 23404else 23405 23406cat >>confdefs.h <<_ACEOF 23407#define u_bits16_t unsigned short 23408_ACEOF 23409 23410fi 23411 23412fi 23413 23414 23415if test "$ac_cv_sizeof_int" = 4; then 23416 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 23417$as_echo_n "checking for bits32_t... " >&6; } 23418if test "${ac_cv_type_bits32_t+set}" = set; then 23419 $as_echo_n "(cached) " >&6 23420else 23421 ac_cv_type_bits32_t=no 23422cat >conftest.$ac_ext <<_ACEOF 23423/* confdefs.h. */ 23424_ACEOF 23425cat confdefs.h >>conftest.$ac_ext 23426cat >>conftest.$ac_ext <<_ACEOF 23427/* end confdefs.h. */ 23428$ac_includes_default 23429int 23430main () 23431{ 23432if (sizeof (bits32_t)) 23433 return 0; 23434 ; 23435 return 0; 23436} 23437_ACEOF 23438rm -f conftest.$ac_objext 23439if { (ac_try="$ac_compile" 23440case "(($ac_try" in 23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23442 *) ac_try_echo=$ac_try;; 23443esac 23444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23445$as_echo "$ac_try_echo") >&5 23446 (eval "$ac_compile") 2>conftest.er1 23447 ac_status=$? 23448 grep -v '^ *+' conftest.er1 >conftest.err 23449 rm -f conftest.er1 23450 cat conftest.err >&5 23451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23452 (exit $ac_status); } && { 23453 test -z "$ac_c_werror_flag" || 23454 test ! -s conftest.err 23455 } && test -s conftest.$ac_objext; then 23456 cat >conftest.$ac_ext <<_ACEOF 23457/* confdefs.h. */ 23458_ACEOF 23459cat confdefs.h >>conftest.$ac_ext 23460cat >>conftest.$ac_ext <<_ACEOF 23461/* end confdefs.h. */ 23462$ac_includes_default 23463int 23464main () 23465{ 23466if (sizeof ((bits32_t))) 23467 return 0; 23468 ; 23469 return 0; 23470} 23471_ACEOF 23472rm -f conftest.$ac_objext 23473if { (ac_try="$ac_compile" 23474case "(($ac_try" in 23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23476 *) ac_try_echo=$ac_try;; 23477esac 23478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23479$as_echo "$ac_try_echo") >&5 23480 (eval "$ac_compile") 2>conftest.er1 23481 ac_status=$? 23482 grep -v '^ *+' conftest.er1 >conftest.err 23483 rm -f conftest.er1 23484 cat conftest.err >&5 23485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23486 (exit $ac_status); } && { 23487 test -z "$ac_c_werror_flag" || 23488 test ! -s conftest.err 23489 } && test -s conftest.$ac_objext; then 23490 : 23491else 23492 $as_echo "$as_me: failed program was:" >&5 23493sed 's/^/| /' conftest.$ac_ext >&5 23494 23495 ac_cv_type_bits32_t=yes 23496fi 23497 23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23499else 23500 $as_echo "$as_me: failed program was:" >&5 23501sed 's/^/| /' conftest.$ac_ext >&5 23502 23503 23504fi 23505 23506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23507fi 23508{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 23509$as_echo "$ac_cv_type_bits32_t" >&6; } 23510if test "x$ac_cv_type_bits32_t" = x""yes; then 23511 : 23512else 23513 23514cat >>confdefs.h <<_ACEOF 23515#define bits32_t int 23516_ACEOF 23517 23518fi 23519 23520elif test "$ac_cv_sizeof_long" = 4; then 23521 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 23522$as_echo_n "checking for bits32_t... " >&6; } 23523if test "${ac_cv_type_bits32_t+set}" = set; then 23524 $as_echo_n "(cached) " >&6 23525else 23526 ac_cv_type_bits32_t=no 23527cat >conftest.$ac_ext <<_ACEOF 23528/* confdefs.h. */ 23529_ACEOF 23530cat confdefs.h >>conftest.$ac_ext 23531cat >>conftest.$ac_ext <<_ACEOF 23532/* end confdefs.h. */ 23533$ac_includes_default 23534int 23535main () 23536{ 23537if (sizeof (bits32_t)) 23538 return 0; 23539 ; 23540 return 0; 23541} 23542_ACEOF 23543rm -f conftest.$ac_objext 23544if { (ac_try="$ac_compile" 23545case "(($ac_try" in 23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23547 *) ac_try_echo=$ac_try;; 23548esac 23549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23550$as_echo "$ac_try_echo") >&5 23551 (eval "$ac_compile") 2>conftest.er1 23552 ac_status=$? 23553 grep -v '^ *+' conftest.er1 >conftest.err 23554 rm -f conftest.er1 23555 cat conftest.err >&5 23556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23557 (exit $ac_status); } && { 23558 test -z "$ac_c_werror_flag" || 23559 test ! -s conftest.err 23560 } && test -s conftest.$ac_objext; then 23561 cat >conftest.$ac_ext <<_ACEOF 23562/* confdefs.h. */ 23563_ACEOF 23564cat confdefs.h >>conftest.$ac_ext 23565cat >>conftest.$ac_ext <<_ACEOF 23566/* end confdefs.h. */ 23567$ac_includes_default 23568int 23569main () 23570{ 23571if (sizeof ((bits32_t))) 23572 return 0; 23573 ; 23574 return 0; 23575} 23576_ACEOF 23577rm -f conftest.$ac_objext 23578if { (ac_try="$ac_compile" 23579case "(($ac_try" in 23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23581 *) ac_try_echo=$ac_try;; 23582esac 23583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23584$as_echo "$ac_try_echo") >&5 23585 (eval "$ac_compile") 2>conftest.er1 23586 ac_status=$? 23587 grep -v '^ *+' conftest.er1 >conftest.err 23588 rm -f conftest.er1 23589 cat conftest.err >&5 23590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23591 (exit $ac_status); } && { 23592 test -z "$ac_c_werror_flag" || 23593 test ! -s conftest.err 23594 } && test -s conftest.$ac_objext; then 23595 : 23596else 23597 $as_echo "$as_me: failed program was:" >&5 23598sed 's/^/| /' conftest.$ac_ext >&5 23599 23600 ac_cv_type_bits32_t=yes 23601fi 23602 23603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23604else 23605 $as_echo "$as_me: failed program was:" >&5 23606sed 's/^/| /' conftest.$ac_ext >&5 23607 23608 23609fi 23610 23611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23612fi 23613{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 23614$as_echo "$ac_cv_type_bits32_t" >&6; } 23615if test "x$ac_cv_type_bits32_t" = x""yes; then 23616 : 23617else 23618 23619cat >>confdefs.h <<_ACEOF 23620#define bits32_t long 23621_ACEOF 23622 23623fi 23624 23625else 23626 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 23627$as_echo_n "checking for bits32_t... " >&6; } 23628if test "${ac_cv_type_bits32_t+set}" = set; then 23629 $as_echo_n "(cached) " >&6 23630else 23631 ac_cv_type_bits32_t=no 23632cat >conftest.$ac_ext <<_ACEOF 23633/* confdefs.h. */ 23634_ACEOF 23635cat confdefs.h >>conftest.$ac_ext 23636cat >>conftest.$ac_ext <<_ACEOF 23637/* end confdefs.h. */ 23638$ac_includes_default 23639int 23640main () 23641{ 23642if (sizeof (bits32_t)) 23643 return 0; 23644 ; 23645 return 0; 23646} 23647_ACEOF 23648rm -f conftest.$ac_objext 23649if { (ac_try="$ac_compile" 23650case "(($ac_try" in 23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23652 *) ac_try_echo=$ac_try;; 23653esac 23654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23655$as_echo "$ac_try_echo") >&5 23656 (eval "$ac_compile") 2>conftest.er1 23657 ac_status=$? 23658 grep -v '^ *+' conftest.er1 >conftest.err 23659 rm -f conftest.er1 23660 cat conftest.err >&5 23661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23662 (exit $ac_status); } && { 23663 test -z "$ac_c_werror_flag" || 23664 test ! -s conftest.err 23665 } && test -s conftest.$ac_objext; then 23666 cat >conftest.$ac_ext <<_ACEOF 23667/* confdefs.h. */ 23668_ACEOF 23669cat confdefs.h >>conftest.$ac_ext 23670cat >>conftest.$ac_ext <<_ACEOF 23671/* end confdefs.h. */ 23672$ac_includes_default 23673int 23674main () 23675{ 23676if (sizeof ((bits32_t))) 23677 return 0; 23678 ; 23679 return 0; 23680} 23681_ACEOF 23682rm -f conftest.$ac_objext 23683if { (ac_try="$ac_compile" 23684case "(($ac_try" in 23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23686 *) ac_try_echo=$ac_try;; 23687esac 23688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23689$as_echo "$ac_try_echo") >&5 23690 (eval "$ac_compile") 2>conftest.er1 23691 ac_status=$? 23692 grep -v '^ *+' conftest.er1 >conftest.err 23693 rm -f conftest.er1 23694 cat conftest.err >&5 23695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23696 (exit $ac_status); } && { 23697 test -z "$ac_c_werror_flag" || 23698 test ! -s conftest.err 23699 } && test -s conftest.$ac_objext; then 23700 : 23701else 23702 $as_echo "$as_me: failed program was:" >&5 23703sed 's/^/| /' conftest.$ac_ext >&5 23704 23705 ac_cv_type_bits32_t=yes 23706fi 23707 23708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23709else 23710 $as_echo "$as_me: failed program was:" >&5 23711sed 's/^/| /' conftest.$ac_ext >&5 23712 23713 23714fi 23715 23716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23717fi 23718{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 23719$as_echo "$ac_cv_type_bits32_t" >&6; } 23720if test "x$ac_cv_type_bits32_t" = x""yes; then 23721 : 23722else 23723 23724cat >>confdefs.h <<_ACEOF 23725#define bits32_t int 23726_ACEOF 23727 23728fi 23729 23730fi 23731 23732 23733if test "$ac_cv_sizeof_int" = 4; then 23734 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 23735$as_echo_n "checking for u_bits32_t... " >&6; } 23736if test "${ac_cv_type_u_bits32_t+set}" = set; then 23737 $as_echo_n "(cached) " >&6 23738else 23739 ac_cv_type_u_bits32_t=no 23740cat >conftest.$ac_ext <<_ACEOF 23741/* confdefs.h. */ 23742_ACEOF 23743cat confdefs.h >>conftest.$ac_ext 23744cat >>conftest.$ac_ext <<_ACEOF 23745/* end confdefs.h. */ 23746$ac_includes_default 23747int 23748main () 23749{ 23750if (sizeof (u_bits32_t)) 23751 return 0; 23752 ; 23753 return 0; 23754} 23755_ACEOF 23756rm -f conftest.$ac_objext 23757if { (ac_try="$ac_compile" 23758case "(($ac_try" in 23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23760 *) ac_try_echo=$ac_try;; 23761esac 23762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23763$as_echo "$ac_try_echo") >&5 23764 (eval "$ac_compile") 2>conftest.er1 23765 ac_status=$? 23766 grep -v '^ *+' conftest.er1 >conftest.err 23767 rm -f conftest.er1 23768 cat conftest.err >&5 23769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23770 (exit $ac_status); } && { 23771 test -z "$ac_c_werror_flag" || 23772 test ! -s conftest.err 23773 } && test -s conftest.$ac_objext; then 23774 cat >conftest.$ac_ext <<_ACEOF 23775/* confdefs.h. */ 23776_ACEOF 23777cat confdefs.h >>conftest.$ac_ext 23778cat >>conftest.$ac_ext <<_ACEOF 23779/* end confdefs.h. */ 23780$ac_includes_default 23781int 23782main () 23783{ 23784if (sizeof ((u_bits32_t))) 23785 return 0; 23786 ; 23787 return 0; 23788} 23789_ACEOF 23790rm -f conftest.$ac_objext 23791if { (ac_try="$ac_compile" 23792case "(($ac_try" in 23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23794 *) ac_try_echo=$ac_try;; 23795esac 23796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23797$as_echo "$ac_try_echo") >&5 23798 (eval "$ac_compile") 2>conftest.er1 23799 ac_status=$? 23800 grep -v '^ *+' conftest.er1 >conftest.err 23801 rm -f conftest.er1 23802 cat conftest.err >&5 23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23804 (exit $ac_status); } && { 23805 test -z "$ac_c_werror_flag" || 23806 test ! -s conftest.err 23807 } && test -s conftest.$ac_objext; then 23808 : 23809else 23810 $as_echo "$as_me: failed program was:" >&5 23811sed 's/^/| /' conftest.$ac_ext >&5 23812 23813 ac_cv_type_u_bits32_t=yes 23814fi 23815 23816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23817else 23818 $as_echo "$as_me: failed program was:" >&5 23819sed 's/^/| /' conftest.$ac_ext >&5 23820 23821 23822fi 23823 23824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23825fi 23826{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 23827$as_echo "$ac_cv_type_u_bits32_t" >&6; } 23828if test "x$ac_cv_type_u_bits32_t" = x""yes; then 23829 : 23830else 23831 23832cat >>confdefs.h <<_ACEOF 23833#define u_bits32_t unsigned int 23834_ACEOF 23835 23836fi 23837 23838elif test "$ac_cv_sizeof_long" = 4; then 23839 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 23840$as_echo_n "checking for u_bits32_t... " >&6; } 23841if test "${ac_cv_type_u_bits32_t+set}" = set; then 23842 $as_echo_n "(cached) " >&6 23843else 23844 ac_cv_type_u_bits32_t=no 23845cat >conftest.$ac_ext <<_ACEOF 23846/* confdefs.h. */ 23847_ACEOF 23848cat confdefs.h >>conftest.$ac_ext 23849cat >>conftest.$ac_ext <<_ACEOF 23850/* end confdefs.h. */ 23851$ac_includes_default 23852int 23853main () 23854{ 23855if (sizeof (u_bits32_t)) 23856 return 0; 23857 ; 23858 return 0; 23859} 23860_ACEOF 23861rm -f conftest.$ac_objext 23862if { (ac_try="$ac_compile" 23863case "(($ac_try" in 23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23865 *) ac_try_echo=$ac_try;; 23866esac 23867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23868$as_echo "$ac_try_echo") >&5 23869 (eval "$ac_compile") 2>conftest.er1 23870 ac_status=$? 23871 grep -v '^ *+' conftest.er1 >conftest.err 23872 rm -f conftest.er1 23873 cat conftest.err >&5 23874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23875 (exit $ac_status); } && { 23876 test -z "$ac_c_werror_flag" || 23877 test ! -s conftest.err 23878 } && test -s conftest.$ac_objext; then 23879 cat >conftest.$ac_ext <<_ACEOF 23880/* confdefs.h. */ 23881_ACEOF 23882cat confdefs.h >>conftest.$ac_ext 23883cat >>conftest.$ac_ext <<_ACEOF 23884/* end confdefs.h. */ 23885$ac_includes_default 23886int 23887main () 23888{ 23889if (sizeof ((u_bits32_t))) 23890 return 0; 23891 ; 23892 return 0; 23893} 23894_ACEOF 23895rm -f conftest.$ac_objext 23896if { (ac_try="$ac_compile" 23897case "(($ac_try" in 23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23899 *) ac_try_echo=$ac_try;; 23900esac 23901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23902$as_echo "$ac_try_echo") >&5 23903 (eval "$ac_compile") 2>conftest.er1 23904 ac_status=$? 23905 grep -v '^ *+' conftest.er1 >conftest.err 23906 rm -f conftest.er1 23907 cat conftest.err >&5 23908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23909 (exit $ac_status); } && { 23910 test -z "$ac_c_werror_flag" || 23911 test ! -s conftest.err 23912 } && test -s conftest.$ac_objext; then 23913 : 23914else 23915 $as_echo "$as_me: failed program was:" >&5 23916sed 's/^/| /' conftest.$ac_ext >&5 23917 23918 ac_cv_type_u_bits32_t=yes 23919fi 23920 23921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23922else 23923 $as_echo "$as_me: failed program was:" >&5 23924sed 's/^/| /' conftest.$ac_ext >&5 23925 23926 23927fi 23928 23929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23930fi 23931{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 23932$as_echo "$ac_cv_type_u_bits32_t" >&6; } 23933if test "x$ac_cv_type_u_bits32_t" = x""yes; then 23934 : 23935else 23936 23937cat >>confdefs.h <<_ACEOF 23938#define u_bits32_t unsigned long 23939_ACEOF 23940 23941fi 23942 23943else 23944 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 23945$as_echo_n "checking for u_bits32_t... " >&6; } 23946if test "${ac_cv_type_u_bits32_t+set}" = set; then 23947 $as_echo_n "(cached) " >&6 23948else 23949 ac_cv_type_u_bits32_t=no 23950cat >conftest.$ac_ext <<_ACEOF 23951/* confdefs.h. */ 23952_ACEOF 23953cat confdefs.h >>conftest.$ac_ext 23954cat >>conftest.$ac_ext <<_ACEOF 23955/* end confdefs.h. */ 23956$ac_includes_default 23957int 23958main () 23959{ 23960if (sizeof (u_bits32_t)) 23961 return 0; 23962 ; 23963 return 0; 23964} 23965_ACEOF 23966rm -f conftest.$ac_objext 23967if { (ac_try="$ac_compile" 23968case "(($ac_try" in 23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23970 *) ac_try_echo=$ac_try;; 23971esac 23972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 23973$as_echo "$ac_try_echo") >&5 23974 (eval "$ac_compile") 2>conftest.er1 23975 ac_status=$? 23976 grep -v '^ *+' conftest.er1 >conftest.err 23977 rm -f conftest.er1 23978 cat conftest.err >&5 23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 23980 (exit $ac_status); } && { 23981 test -z "$ac_c_werror_flag" || 23982 test ! -s conftest.err 23983 } && test -s conftest.$ac_objext; then 23984 cat >conftest.$ac_ext <<_ACEOF 23985/* confdefs.h. */ 23986_ACEOF 23987cat confdefs.h >>conftest.$ac_ext 23988cat >>conftest.$ac_ext <<_ACEOF 23989/* end confdefs.h. */ 23990$ac_includes_default 23991int 23992main () 23993{ 23994if (sizeof ((u_bits32_t))) 23995 return 0; 23996 ; 23997 return 0; 23998} 23999_ACEOF 24000rm -f conftest.$ac_objext 24001if { (ac_try="$ac_compile" 24002case "(($ac_try" in 24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24004 *) ac_try_echo=$ac_try;; 24005esac 24006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24007$as_echo "$ac_try_echo") >&5 24008 (eval "$ac_compile") 2>conftest.er1 24009 ac_status=$? 24010 grep -v '^ *+' conftest.er1 >conftest.err 24011 rm -f conftest.er1 24012 cat conftest.err >&5 24013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24014 (exit $ac_status); } && { 24015 test -z "$ac_c_werror_flag" || 24016 test ! -s conftest.err 24017 } && test -s conftest.$ac_objext; then 24018 : 24019else 24020 $as_echo "$as_me: failed program was:" >&5 24021sed 's/^/| /' conftest.$ac_ext >&5 24022 24023 ac_cv_type_u_bits32_t=yes 24024fi 24025 24026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24027else 24028 $as_echo "$as_me: failed program was:" >&5 24029sed 's/^/| /' conftest.$ac_ext >&5 24030 24031 24032fi 24033 24034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24035fi 24036{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 24037$as_echo "$ac_cv_type_u_bits32_t" >&6; } 24038if test "x$ac_cv_type_u_bits32_t" = x""yes; then 24039 : 24040else 24041 24042cat >>confdefs.h <<_ACEOF 24043#define u_bits32_t unsigned int 24044_ACEOF 24045 24046fi 24047 24048fi 24049 24050 24051if test "$ac_cv_sizeof_char_p" = 8; then 24052 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 24053$as_echo_n "checking for bits64_t... " >&6; } 24054if test "${ac_cv_type_bits64_t+set}" = set; then 24055 $as_echo_n "(cached) " >&6 24056else 24057 ac_cv_type_bits64_t=no 24058cat >conftest.$ac_ext <<_ACEOF 24059/* confdefs.h. */ 24060_ACEOF 24061cat confdefs.h >>conftest.$ac_ext 24062cat >>conftest.$ac_ext <<_ACEOF 24063/* end confdefs.h. */ 24064$ac_includes_default 24065int 24066main () 24067{ 24068if (sizeof (bits64_t)) 24069 return 0; 24070 ; 24071 return 0; 24072} 24073_ACEOF 24074rm -f conftest.$ac_objext 24075if { (ac_try="$ac_compile" 24076case "(($ac_try" in 24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24078 *) ac_try_echo=$ac_try;; 24079esac 24080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24081$as_echo "$ac_try_echo") >&5 24082 (eval "$ac_compile") 2>conftest.er1 24083 ac_status=$? 24084 grep -v '^ *+' conftest.er1 >conftest.err 24085 rm -f conftest.er1 24086 cat conftest.err >&5 24087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24088 (exit $ac_status); } && { 24089 test -z "$ac_c_werror_flag" || 24090 test ! -s conftest.err 24091 } && test -s conftest.$ac_objext; then 24092 cat >conftest.$ac_ext <<_ACEOF 24093/* confdefs.h. */ 24094_ACEOF 24095cat confdefs.h >>conftest.$ac_ext 24096cat >>conftest.$ac_ext <<_ACEOF 24097/* end confdefs.h. */ 24098$ac_includes_default 24099int 24100main () 24101{ 24102if (sizeof ((bits64_t))) 24103 return 0; 24104 ; 24105 return 0; 24106} 24107_ACEOF 24108rm -f conftest.$ac_objext 24109if { (ac_try="$ac_compile" 24110case "(($ac_try" in 24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24112 *) ac_try_echo=$ac_try;; 24113esac 24114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24115$as_echo "$ac_try_echo") >&5 24116 (eval "$ac_compile") 2>conftest.er1 24117 ac_status=$? 24118 grep -v '^ *+' conftest.er1 >conftest.err 24119 rm -f conftest.er1 24120 cat conftest.err >&5 24121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24122 (exit $ac_status); } && { 24123 test -z "$ac_c_werror_flag" || 24124 test ! -s conftest.err 24125 } && test -s conftest.$ac_objext; then 24126 : 24127else 24128 $as_echo "$as_me: failed program was:" >&5 24129sed 's/^/| /' conftest.$ac_ext >&5 24130 24131 ac_cv_type_bits64_t=yes 24132fi 24133 24134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24135else 24136 $as_echo "$as_me: failed program was:" >&5 24137sed 's/^/| /' conftest.$ac_ext >&5 24138 24139 24140fi 24141 24142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24143fi 24144{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 24145$as_echo "$ac_cv_type_bits64_t" >&6; } 24146if test "x$ac_cv_type_bits64_t" = x""yes; then 24147 : 24148else 24149 24150cat >>confdefs.h <<_ACEOF 24151#define bits64_t char * 24152_ACEOF 24153 24154fi 24155 24156elif test "$ac_cv_sizeof_double" = 8; then 24157 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 24158$as_echo_n "checking for bits64_t... " >&6; } 24159if test "${ac_cv_type_bits64_t+set}" = set; then 24160 $as_echo_n "(cached) " >&6 24161else 24162 ac_cv_type_bits64_t=no 24163cat >conftest.$ac_ext <<_ACEOF 24164/* confdefs.h. */ 24165_ACEOF 24166cat confdefs.h >>conftest.$ac_ext 24167cat >>conftest.$ac_ext <<_ACEOF 24168/* end confdefs.h. */ 24169$ac_includes_default 24170int 24171main () 24172{ 24173if (sizeof (bits64_t)) 24174 return 0; 24175 ; 24176 return 0; 24177} 24178_ACEOF 24179rm -f conftest.$ac_objext 24180if { (ac_try="$ac_compile" 24181case "(($ac_try" in 24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24183 *) ac_try_echo=$ac_try;; 24184esac 24185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24186$as_echo "$ac_try_echo") >&5 24187 (eval "$ac_compile") 2>conftest.er1 24188 ac_status=$? 24189 grep -v '^ *+' conftest.er1 >conftest.err 24190 rm -f conftest.er1 24191 cat conftest.err >&5 24192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24193 (exit $ac_status); } && { 24194 test -z "$ac_c_werror_flag" || 24195 test ! -s conftest.err 24196 } && test -s conftest.$ac_objext; then 24197 cat >conftest.$ac_ext <<_ACEOF 24198/* confdefs.h. */ 24199_ACEOF 24200cat confdefs.h >>conftest.$ac_ext 24201cat >>conftest.$ac_ext <<_ACEOF 24202/* end confdefs.h. */ 24203$ac_includes_default 24204int 24205main () 24206{ 24207if (sizeof ((bits64_t))) 24208 return 0; 24209 ; 24210 return 0; 24211} 24212_ACEOF 24213rm -f conftest.$ac_objext 24214if { (ac_try="$ac_compile" 24215case "(($ac_try" in 24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24217 *) ac_try_echo=$ac_try;; 24218esac 24219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24220$as_echo "$ac_try_echo") >&5 24221 (eval "$ac_compile") 2>conftest.er1 24222 ac_status=$? 24223 grep -v '^ *+' conftest.er1 >conftest.err 24224 rm -f conftest.er1 24225 cat conftest.err >&5 24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24227 (exit $ac_status); } && { 24228 test -z "$ac_c_werror_flag" || 24229 test ! -s conftest.err 24230 } && test -s conftest.$ac_objext; then 24231 : 24232else 24233 $as_echo "$as_me: failed program was:" >&5 24234sed 's/^/| /' conftest.$ac_ext >&5 24235 24236 ac_cv_type_bits64_t=yes 24237fi 24238 24239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24240else 24241 $as_echo "$as_me: failed program was:" >&5 24242sed 's/^/| /' conftest.$ac_ext >&5 24243 24244 24245fi 24246 24247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24248fi 24249{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 24250$as_echo "$ac_cv_type_bits64_t" >&6; } 24251if test "x$ac_cv_type_bits64_t" = x""yes; then 24252 : 24253else 24254 24255cat >>confdefs.h <<_ACEOF 24256#define bits64_t double 24257_ACEOF 24258 24259fi 24260 24261elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then 24262 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 24263$as_echo_n "checking for bits64_t... " >&6; } 24264if test "${ac_cv_type_bits64_t+set}" = set; then 24265 $as_echo_n "(cached) " >&6 24266else 24267 ac_cv_type_bits64_t=no 24268cat >conftest.$ac_ext <<_ACEOF 24269/* confdefs.h. */ 24270_ACEOF 24271cat confdefs.h >>conftest.$ac_ext 24272cat >>conftest.$ac_ext <<_ACEOF 24273/* end confdefs.h. */ 24274$ac_includes_default 24275int 24276main () 24277{ 24278if (sizeof (bits64_t)) 24279 return 0; 24280 ; 24281 return 0; 24282} 24283_ACEOF 24284rm -f conftest.$ac_objext 24285if { (ac_try="$ac_compile" 24286case "(($ac_try" in 24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24288 *) ac_try_echo=$ac_try;; 24289esac 24290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24291$as_echo "$ac_try_echo") >&5 24292 (eval "$ac_compile") 2>conftest.er1 24293 ac_status=$? 24294 grep -v '^ *+' conftest.er1 >conftest.err 24295 rm -f conftest.er1 24296 cat conftest.err >&5 24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24298 (exit $ac_status); } && { 24299 test -z "$ac_c_werror_flag" || 24300 test ! -s conftest.err 24301 } && test -s conftest.$ac_objext; then 24302 cat >conftest.$ac_ext <<_ACEOF 24303/* confdefs.h. */ 24304_ACEOF 24305cat confdefs.h >>conftest.$ac_ext 24306cat >>conftest.$ac_ext <<_ACEOF 24307/* end confdefs.h. */ 24308$ac_includes_default 24309int 24310main () 24311{ 24312if (sizeof ((bits64_t))) 24313 return 0; 24314 ; 24315 return 0; 24316} 24317_ACEOF 24318rm -f conftest.$ac_objext 24319if { (ac_try="$ac_compile" 24320case "(($ac_try" in 24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24322 *) ac_try_echo=$ac_try;; 24323esac 24324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24325$as_echo "$ac_try_echo") >&5 24326 (eval "$ac_compile") 2>conftest.er1 24327 ac_status=$? 24328 grep -v '^ *+' conftest.er1 >conftest.err 24329 rm -f conftest.er1 24330 cat conftest.err >&5 24331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24332 (exit $ac_status); } && { 24333 test -z "$ac_c_werror_flag" || 24334 test ! -s conftest.err 24335 } && test -s conftest.$ac_objext; then 24336 : 24337else 24338 $as_echo "$as_me: failed program was:" >&5 24339sed 's/^/| /' conftest.$ac_ext >&5 24340 24341 ac_cv_type_bits64_t=yes 24342fi 24343 24344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24345else 24346 $as_echo "$as_me: failed program was:" >&5 24347sed 's/^/| /' conftest.$ac_ext >&5 24348 24349 24350fi 24351 24352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24353fi 24354{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 24355$as_echo "$ac_cv_type_bits64_t" >&6; } 24356if test "x$ac_cv_type_bits64_t" = x""yes; then 24357 : 24358else 24359 24360cat >>confdefs.h <<_ACEOF 24361#define bits64_t long long 24362_ACEOF 24363 24364fi 24365 24366elif test "$ac_cv_sizeof_long" = 8; then 24367 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 24368$as_echo_n "checking for bits64_t... " >&6; } 24369if test "${ac_cv_type_bits64_t+set}" = set; then 24370 $as_echo_n "(cached) " >&6 24371else 24372 ac_cv_type_bits64_t=no 24373cat >conftest.$ac_ext <<_ACEOF 24374/* confdefs.h. */ 24375_ACEOF 24376cat confdefs.h >>conftest.$ac_ext 24377cat >>conftest.$ac_ext <<_ACEOF 24378/* end confdefs.h. */ 24379$ac_includes_default 24380int 24381main () 24382{ 24383if (sizeof (bits64_t)) 24384 return 0; 24385 ; 24386 return 0; 24387} 24388_ACEOF 24389rm -f conftest.$ac_objext 24390if { (ac_try="$ac_compile" 24391case "(($ac_try" in 24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24393 *) ac_try_echo=$ac_try;; 24394esac 24395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24396$as_echo "$ac_try_echo") >&5 24397 (eval "$ac_compile") 2>conftest.er1 24398 ac_status=$? 24399 grep -v '^ *+' conftest.er1 >conftest.err 24400 rm -f conftest.er1 24401 cat conftest.err >&5 24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24403 (exit $ac_status); } && { 24404 test -z "$ac_c_werror_flag" || 24405 test ! -s conftest.err 24406 } && test -s conftest.$ac_objext; then 24407 cat >conftest.$ac_ext <<_ACEOF 24408/* confdefs.h. */ 24409_ACEOF 24410cat confdefs.h >>conftest.$ac_ext 24411cat >>conftest.$ac_ext <<_ACEOF 24412/* end confdefs.h. */ 24413$ac_includes_default 24414int 24415main () 24416{ 24417if (sizeof ((bits64_t))) 24418 return 0; 24419 ; 24420 return 0; 24421} 24422_ACEOF 24423rm -f conftest.$ac_objext 24424if { (ac_try="$ac_compile" 24425case "(($ac_try" in 24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24427 *) ac_try_echo=$ac_try;; 24428esac 24429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24430$as_echo "$ac_try_echo") >&5 24431 (eval "$ac_compile") 2>conftest.er1 24432 ac_status=$? 24433 grep -v '^ *+' conftest.er1 >conftest.err 24434 rm -f conftest.er1 24435 cat conftest.err >&5 24436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24437 (exit $ac_status); } && { 24438 test -z "$ac_c_werror_flag" || 24439 test ! -s conftest.err 24440 } && test -s conftest.$ac_objext; then 24441 : 24442else 24443 $as_echo "$as_me: failed program was:" >&5 24444sed 's/^/| /' conftest.$ac_ext >&5 24445 24446 ac_cv_type_bits64_t=yes 24447fi 24448 24449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24450else 24451 $as_echo "$as_me: failed program was:" >&5 24452sed 's/^/| /' conftest.$ac_ext >&5 24453 24454 24455fi 24456 24457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24458fi 24459{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 24460$as_echo "$ac_cv_type_bits64_t" >&6; } 24461if test "x$ac_cv_type_bits64_t" = x""yes; then 24462 : 24463else 24464 24465cat >>confdefs.h <<_ACEOF 24466#define bits64_t long 24467_ACEOF 24468 24469fi 24470 24471else 24472 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 24473$as_echo_n "checking for bits64_t... " >&6; } 24474if test "${ac_cv_type_bits64_t+set}" = set; then 24475 $as_echo_n "(cached) " >&6 24476else 24477 ac_cv_type_bits64_t=no 24478cat >conftest.$ac_ext <<_ACEOF 24479/* confdefs.h. */ 24480_ACEOF 24481cat confdefs.h >>conftest.$ac_ext 24482cat >>conftest.$ac_ext <<_ACEOF 24483/* end confdefs.h. */ 24484$ac_includes_default 24485int 24486main () 24487{ 24488if (sizeof (bits64_t)) 24489 return 0; 24490 ; 24491 return 0; 24492} 24493_ACEOF 24494rm -f conftest.$ac_objext 24495if { (ac_try="$ac_compile" 24496case "(($ac_try" in 24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24498 *) ac_try_echo=$ac_try;; 24499esac 24500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24501$as_echo "$ac_try_echo") >&5 24502 (eval "$ac_compile") 2>conftest.er1 24503 ac_status=$? 24504 grep -v '^ *+' conftest.er1 >conftest.err 24505 rm -f conftest.er1 24506 cat conftest.err >&5 24507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24508 (exit $ac_status); } && { 24509 test -z "$ac_c_werror_flag" || 24510 test ! -s conftest.err 24511 } && test -s conftest.$ac_objext; then 24512 cat >conftest.$ac_ext <<_ACEOF 24513/* confdefs.h. */ 24514_ACEOF 24515cat confdefs.h >>conftest.$ac_ext 24516cat >>conftest.$ac_ext <<_ACEOF 24517/* end confdefs.h. */ 24518$ac_includes_default 24519int 24520main () 24521{ 24522if (sizeof ((bits64_t))) 24523 return 0; 24524 ; 24525 return 0; 24526} 24527_ACEOF 24528rm -f conftest.$ac_objext 24529if { (ac_try="$ac_compile" 24530case "(($ac_try" in 24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24532 *) ac_try_echo=$ac_try;; 24533esac 24534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24535$as_echo "$ac_try_echo") >&5 24536 (eval "$ac_compile") 2>conftest.er1 24537 ac_status=$? 24538 grep -v '^ *+' conftest.er1 >conftest.err 24539 rm -f conftest.er1 24540 cat conftest.err >&5 24541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24542 (exit $ac_status); } && { 24543 test -z "$ac_c_werror_flag" || 24544 test ! -s conftest.err 24545 } && test -s conftest.$ac_objext; then 24546 : 24547else 24548 $as_echo "$as_me: failed program was:" >&5 24549sed 's/^/| /' conftest.$ac_ext >&5 24550 24551 ac_cv_type_bits64_t=yes 24552fi 24553 24554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24555else 24556 $as_echo "$as_me: failed program was:" >&5 24557sed 's/^/| /' conftest.$ac_ext >&5 24558 24559 24560fi 24561 24562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24563fi 24564{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 24565$as_echo "$ac_cv_type_bits64_t" >&6; } 24566if test "x$ac_cv_type_bits64_t" = x""yes; then 24567 : 24568else 24569 24570cat >>confdefs.h <<_ACEOF 24571#define bits64_t double 24572_ACEOF 24573 24574fi 24575 24576fi 24577 24578 24579 24580if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then 24581 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 24582$as_echo_n "checking for ptrdiff_t... " >&6; } 24583if test "${ac_cv_type_ptrdiff_t+set}" = set; then 24584 $as_echo_n "(cached) " >&6 24585else 24586 ac_cv_type_ptrdiff_t=no 24587cat >conftest.$ac_ext <<_ACEOF 24588/* confdefs.h. */ 24589_ACEOF 24590cat confdefs.h >>conftest.$ac_ext 24591cat >>conftest.$ac_ext <<_ACEOF 24592/* end confdefs.h. */ 24593$ac_includes_default 24594int 24595main () 24596{ 24597if (sizeof (ptrdiff_t)) 24598 return 0; 24599 ; 24600 return 0; 24601} 24602_ACEOF 24603rm -f conftest.$ac_objext 24604if { (ac_try="$ac_compile" 24605case "(($ac_try" in 24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24607 *) ac_try_echo=$ac_try;; 24608esac 24609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24610$as_echo "$ac_try_echo") >&5 24611 (eval "$ac_compile") 2>conftest.er1 24612 ac_status=$? 24613 grep -v '^ *+' conftest.er1 >conftest.err 24614 rm -f conftest.er1 24615 cat conftest.err >&5 24616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24617 (exit $ac_status); } && { 24618 test -z "$ac_c_werror_flag" || 24619 test ! -s conftest.err 24620 } && test -s conftest.$ac_objext; then 24621 cat >conftest.$ac_ext <<_ACEOF 24622/* confdefs.h. */ 24623_ACEOF 24624cat confdefs.h >>conftest.$ac_ext 24625cat >>conftest.$ac_ext <<_ACEOF 24626/* end confdefs.h. */ 24627$ac_includes_default 24628int 24629main () 24630{ 24631if (sizeof ((ptrdiff_t))) 24632 return 0; 24633 ; 24634 return 0; 24635} 24636_ACEOF 24637rm -f conftest.$ac_objext 24638if { (ac_try="$ac_compile" 24639case "(($ac_try" in 24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24641 *) ac_try_echo=$ac_try;; 24642esac 24643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24644$as_echo "$ac_try_echo") >&5 24645 (eval "$ac_compile") 2>conftest.er1 24646 ac_status=$? 24647 grep -v '^ *+' conftest.er1 >conftest.err 24648 rm -f conftest.er1 24649 cat conftest.err >&5 24650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24651 (exit $ac_status); } && { 24652 test -z "$ac_c_werror_flag" || 24653 test ! -s conftest.err 24654 } && test -s conftest.$ac_objext; then 24655 : 24656else 24657 $as_echo "$as_me: failed program was:" >&5 24658sed 's/^/| /' conftest.$ac_ext >&5 24659 24660 ac_cv_type_ptrdiff_t=yes 24661fi 24662 24663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24664else 24665 $as_echo "$as_me: failed program was:" >&5 24666sed 's/^/| /' conftest.$ac_ext >&5 24667 24668 24669fi 24670 24671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24672fi 24673{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 24674$as_echo "$ac_cv_type_ptrdiff_t" >&6; } 24675if test "x$ac_cv_type_ptrdiff_t" = x""yes; then 24676 : 24677else 24678 24679cat >>confdefs.h <<_ACEOF 24680#define ptrdiff_t int 24681_ACEOF 24682 24683fi 24684 24685elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then 24686 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 24687$as_echo_n "checking for ptrdiff_t... " >&6; } 24688if test "${ac_cv_type_ptrdiff_t+set}" = set; then 24689 $as_echo_n "(cached) " >&6 24690else 24691 ac_cv_type_ptrdiff_t=no 24692cat >conftest.$ac_ext <<_ACEOF 24693/* confdefs.h. */ 24694_ACEOF 24695cat confdefs.h >>conftest.$ac_ext 24696cat >>conftest.$ac_ext <<_ACEOF 24697/* end confdefs.h. */ 24698$ac_includes_default 24699int 24700main () 24701{ 24702if (sizeof (ptrdiff_t)) 24703 return 0; 24704 ; 24705 return 0; 24706} 24707_ACEOF 24708rm -f conftest.$ac_objext 24709if { (ac_try="$ac_compile" 24710case "(($ac_try" in 24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24712 *) ac_try_echo=$ac_try;; 24713esac 24714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24715$as_echo "$ac_try_echo") >&5 24716 (eval "$ac_compile") 2>conftest.er1 24717 ac_status=$? 24718 grep -v '^ *+' conftest.er1 >conftest.err 24719 rm -f conftest.er1 24720 cat conftest.err >&5 24721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24722 (exit $ac_status); } && { 24723 test -z "$ac_c_werror_flag" || 24724 test ! -s conftest.err 24725 } && test -s conftest.$ac_objext; then 24726 cat >conftest.$ac_ext <<_ACEOF 24727/* confdefs.h. */ 24728_ACEOF 24729cat confdefs.h >>conftest.$ac_ext 24730cat >>conftest.$ac_ext <<_ACEOF 24731/* end confdefs.h. */ 24732$ac_includes_default 24733int 24734main () 24735{ 24736if (sizeof ((ptrdiff_t))) 24737 return 0; 24738 ; 24739 return 0; 24740} 24741_ACEOF 24742rm -f conftest.$ac_objext 24743if { (ac_try="$ac_compile" 24744case "(($ac_try" in 24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24746 *) ac_try_echo=$ac_try;; 24747esac 24748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24749$as_echo "$ac_try_echo") >&5 24750 (eval "$ac_compile") 2>conftest.er1 24751 ac_status=$? 24752 grep -v '^ *+' conftest.er1 >conftest.err 24753 rm -f conftest.er1 24754 cat conftest.err >&5 24755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24756 (exit $ac_status); } && { 24757 test -z "$ac_c_werror_flag" || 24758 test ! -s conftest.err 24759 } && test -s conftest.$ac_objext; then 24760 : 24761else 24762 $as_echo "$as_me: failed program was:" >&5 24763sed 's/^/| /' conftest.$ac_ext >&5 24764 24765 ac_cv_type_ptrdiff_t=yes 24766fi 24767 24768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24769else 24770 $as_echo "$as_me: failed program was:" >&5 24771sed 's/^/| /' conftest.$ac_ext >&5 24772 24773 24774fi 24775 24776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24777fi 24778{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 24779$as_echo "$ac_cv_type_ptrdiff_t" >&6; } 24780if test "x$ac_cv_type_ptrdiff_t" = x""yes; then 24781 : 24782else 24783 24784cat >>confdefs.h <<_ACEOF 24785#define ptrdiff_t long 24786_ACEOF 24787 24788fi 24789 24790elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then 24791 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 24792$as_echo_n "checking for ptrdiff_t... " >&6; } 24793if test "${ac_cv_type_ptrdiff_t+set}" = set; then 24794 $as_echo_n "(cached) " >&6 24795else 24796 ac_cv_type_ptrdiff_t=no 24797cat >conftest.$ac_ext <<_ACEOF 24798/* confdefs.h. */ 24799_ACEOF 24800cat confdefs.h >>conftest.$ac_ext 24801cat >>conftest.$ac_ext <<_ACEOF 24802/* end confdefs.h. */ 24803$ac_includes_default 24804int 24805main () 24806{ 24807if (sizeof (ptrdiff_t)) 24808 return 0; 24809 ; 24810 return 0; 24811} 24812_ACEOF 24813rm -f conftest.$ac_objext 24814if { (ac_try="$ac_compile" 24815case "(($ac_try" in 24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24817 *) ac_try_echo=$ac_try;; 24818esac 24819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24820$as_echo "$ac_try_echo") >&5 24821 (eval "$ac_compile") 2>conftest.er1 24822 ac_status=$? 24823 grep -v '^ *+' conftest.er1 >conftest.err 24824 rm -f conftest.er1 24825 cat conftest.err >&5 24826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24827 (exit $ac_status); } && { 24828 test -z "$ac_c_werror_flag" || 24829 test ! -s conftest.err 24830 } && test -s conftest.$ac_objext; then 24831 cat >conftest.$ac_ext <<_ACEOF 24832/* confdefs.h. */ 24833_ACEOF 24834cat confdefs.h >>conftest.$ac_ext 24835cat >>conftest.$ac_ext <<_ACEOF 24836/* end confdefs.h. */ 24837$ac_includes_default 24838int 24839main () 24840{ 24841if (sizeof ((ptrdiff_t))) 24842 return 0; 24843 ; 24844 return 0; 24845} 24846_ACEOF 24847rm -f conftest.$ac_objext 24848if { (ac_try="$ac_compile" 24849case "(($ac_try" in 24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24851 *) ac_try_echo=$ac_try;; 24852esac 24853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24854$as_echo "$ac_try_echo") >&5 24855 (eval "$ac_compile") 2>conftest.er1 24856 ac_status=$? 24857 grep -v '^ *+' conftest.er1 >conftest.err 24858 rm -f conftest.er1 24859 cat conftest.err >&5 24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24861 (exit $ac_status); } && { 24862 test -z "$ac_c_werror_flag" || 24863 test ! -s conftest.err 24864 } && test -s conftest.$ac_objext; then 24865 : 24866else 24867 $as_echo "$as_me: failed program was:" >&5 24868sed 's/^/| /' conftest.$ac_ext >&5 24869 24870 ac_cv_type_ptrdiff_t=yes 24871fi 24872 24873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24874else 24875 $as_echo "$as_me: failed program was:" >&5 24876sed 's/^/| /' conftest.$ac_ext >&5 24877 24878 24879fi 24880 24881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24882fi 24883{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 24884$as_echo "$ac_cv_type_ptrdiff_t" >&6; } 24885if test "x$ac_cv_type_ptrdiff_t" = x""yes; then 24886 : 24887else 24888 24889cat >>confdefs.h <<_ACEOF 24890#define ptrdiff_t long long 24891_ACEOF 24892 24893fi 24894 24895else 24896 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 24897$as_echo_n "checking for ptrdiff_t... " >&6; } 24898if test "${ac_cv_type_ptrdiff_t+set}" = set; then 24899 $as_echo_n "(cached) " >&6 24900else 24901 ac_cv_type_ptrdiff_t=no 24902cat >conftest.$ac_ext <<_ACEOF 24903/* confdefs.h. */ 24904_ACEOF 24905cat confdefs.h >>conftest.$ac_ext 24906cat >>conftest.$ac_ext <<_ACEOF 24907/* end confdefs.h. */ 24908$ac_includes_default 24909int 24910main () 24911{ 24912if (sizeof (ptrdiff_t)) 24913 return 0; 24914 ; 24915 return 0; 24916} 24917_ACEOF 24918rm -f conftest.$ac_objext 24919if { (ac_try="$ac_compile" 24920case "(($ac_try" in 24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24922 *) ac_try_echo=$ac_try;; 24923esac 24924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24925$as_echo "$ac_try_echo") >&5 24926 (eval "$ac_compile") 2>conftest.er1 24927 ac_status=$? 24928 grep -v '^ *+' conftest.er1 >conftest.err 24929 rm -f conftest.er1 24930 cat conftest.err >&5 24931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24932 (exit $ac_status); } && { 24933 test -z "$ac_c_werror_flag" || 24934 test ! -s conftest.err 24935 } && test -s conftest.$ac_objext; then 24936 cat >conftest.$ac_ext <<_ACEOF 24937/* confdefs.h. */ 24938_ACEOF 24939cat confdefs.h >>conftest.$ac_ext 24940cat >>conftest.$ac_ext <<_ACEOF 24941/* end confdefs.h. */ 24942$ac_includes_default 24943int 24944main () 24945{ 24946if (sizeof ((ptrdiff_t))) 24947 return 0; 24948 ; 24949 return 0; 24950} 24951_ACEOF 24952rm -f conftest.$ac_objext 24953if { (ac_try="$ac_compile" 24954case "(($ac_try" in 24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24956 *) ac_try_echo=$ac_try;; 24957esac 24958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 24959$as_echo "$ac_try_echo") >&5 24960 (eval "$ac_compile") 2>conftest.er1 24961 ac_status=$? 24962 grep -v '^ *+' conftest.er1 >conftest.err 24963 rm -f conftest.er1 24964 cat conftest.err >&5 24965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 24966 (exit $ac_status); } && { 24967 test -z "$ac_c_werror_flag" || 24968 test ! -s conftest.err 24969 } && test -s conftest.$ac_objext; then 24970 : 24971else 24972 $as_echo "$as_me: failed program was:" >&5 24973sed 's/^/| /' conftest.$ac_ext >&5 24974 24975 ac_cv_type_ptrdiff_t=yes 24976fi 24977 24978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24979else 24980 $as_echo "$as_me: failed program was:" >&5 24981sed 's/^/| /' conftest.$ac_ext >&5 24982 24983 24984fi 24985 24986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24987fi 24988{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 24989$as_echo "$ac_cv_type_ptrdiff_t" >&6; } 24990if test "x$ac_cv_type_ptrdiff_t" = x""yes; then 24991 : 24992else 24993 24994cat >>confdefs.h <<_ACEOF 24995#define ptrdiff_t int 24996_ACEOF 24997 24998fi 24999 25000fi 25001 25002 25003{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 25004$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 25005if test "${ac_cv_header_stat_broken+set}" = set; then 25006 $as_echo_n "(cached) " >&6 25007else 25008 cat >conftest.$ac_ext <<_ACEOF 25009/* confdefs.h. */ 25010_ACEOF 25011cat confdefs.h >>conftest.$ac_ext 25012cat >>conftest.$ac_ext <<_ACEOF 25013/* end confdefs.h. */ 25014#include <sys/types.h> 25015#include <sys/stat.h> 25016 25017#if defined S_ISBLK && defined S_IFDIR 25018extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 25019#endif 25020 25021#if defined S_ISBLK && defined S_IFCHR 25022extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 25023#endif 25024 25025#if defined S_ISLNK && defined S_IFREG 25026extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 25027#endif 25028 25029#if defined S_ISSOCK && defined S_IFREG 25030extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 25031#endif 25032 25033_ACEOF 25034rm -f conftest.$ac_objext 25035if { (ac_try="$ac_compile" 25036case "(($ac_try" in 25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25038 *) ac_try_echo=$ac_try;; 25039esac 25040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25041$as_echo "$ac_try_echo") >&5 25042 (eval "$ac_compile") 2>conftest.er1 25043 ac_status=$? 25044 grep -v '^ *+' conftest.er1 >conftest.err 25045 rm -f conftest.er1 25046 cat conftest.err >&5 25047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25048 (exit $ac_status); } && { 25049 test -z "$ac_c_werror_flag" || 25050 test ! -s conftest.err 25051 } && test -s conftest.$ac_objext; then 25052 ac_cv_header_stat_broken=no 25053else 25054 $as_echo "$as_me: failed program was:" >&5 25055sed 's/^/| /' conftest.$ac_ext >&5 25056 25057 ac_cv_header_stat_broken=yes 25058fi 25059 25060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25061fi 25062{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 25063$as_echo "$ac_cv_header_stat_broken" >&6; } 25064if test $ac_cv_header_stat_broken = yes; then 25065 25066cat >>confdefs.h <<\_ACEOF 25067#define STAT_MACROS_BROKEN 1 25068_ACEOF 25069 25070fi 25071 25072 25073{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5 25074$as_echo_n "checking whether #! works in shell scripts... " >&6; } 25075if test "${ac_cv_sys_interpreter+set}" = set; then 25076 $as_echo_n "(cached) " >&6 25077else 25078 echo '#! /bin/cat 25079exit 69 25080' >conftest 25081chmod u+x conftest 25082(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 25083if test $? -ne 69; then 25084 ac_cv_sys_interpreter=yes 25085else 25086 ac_cv_sys_interpreter=no 25087fi 25088rm -f conftest 25089fi 25090{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 25091$as_echo "$ac_cv_sys_interpreter" >&6; } 25092interpval=$ac_cv_sys_interpreter 25093 25094if test $ac_cv_sys_interpreter = yes; then 25095cat >>confdefs.h <<\_ACEOF 25096#define HAVE_HASH_BANG_EXEC 1 25097_ACEOF 25098 25099fi 25100 25101if test "$ac_cv_func_lstat" = "no"; then 25102{ $as_echo "$as_me:$LINENO: checking for lstat" >&5 25103$as_echo_n "checking for lstat... " >&6; } 25104if test "${bash_cv_func_lstat+set}" = set; then 25105 $as_echo_n "(cached) " >&6 25106else 25107 cat >conftest.$ac_ext <<_ACEOF 25108/* confdefs.h. */ 25109_ACEOF 25110cat confdefs.h >>conftest.$ac_ext 25111cat >>conftest.$ac_ext <<_ACEOF 25112/* end confdefs.h. */ 25113 25114#include <sys/types.h> 25115#include <sys/stat.h> 25116 25117int 25118main () 25119{ 25120 lstat(".",(struct stat *)0); 25121 ; 25122 return 0; 25123} 25124_ACEOF 25125rm -f conftest.$ac_objext conftest$ac_exeext 25126if { (ac_try="$ac_link" 25127case "(($ac_try" in 25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25129 *) ac_try_echo=$ac_try;; 25130esac 25131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25132$as_echo "$ac_try_echo") >&5 25133 (eval "$ac_link") 2>conftest.er1 25134 ac_status=$? 25135 grep -v '^ *+' conftest.er1 >conftest.err 25136 rm -f conftest.er1 25137 cat conftest.err >&5 25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25139 (exit $ac_status); } && { 25140 test -z "$ac_c_werror_flag" || 25141 test ! -s conftest.err 25142 } && test -s conftest$ac_exeext && { 25143 test "$cross_compiling" = yes || 25144 $as_test_x conftest$ac_exeext 25145 }; then 25146 bash_cv_func_lstat=yes 25147else 25148 $as_echo "$as_me: failed program was:" >&5 25149sed 's/^/| /' conftest.$ac_ext >&5 25150 25151 bash_cv_func_lstat=no 25152fi 25153 25154rm -rf conftest.dSYM 25155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25156 conftest$ac_exeext conftest.$ac_ext 25157fi 25158{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 25159$as_echo "$bash_cv_func_lstat" >&6; } 25160if test $bash_cv_func_lstat = yes; then 25161 cat >>confdefs.h <<\_ACEOF 25162#define HAVE_LSTAT 1 25163_ACEOF 25164 25165fi 25166 25167fi 25168 25169 25170{ $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 25171$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } 25172if test "${bash_cv_func_ctype_nonascii+set}" = set; then 25173 $as_echo_n "(cached) " >&6 25174else 25175 if test "$cross_compiling" = yes; then 25176 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 25177$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} 25178 bash_cv_func_ctype_nonascii=no 25179 25180else 25181 cat >conftest.$ac_ext <<_ACEOF 25182/* confdefs.h. */ 25183_ACEOF 25184cat confdefs.h >>conftest.$ac_ext 25185cat >>conftest.$ac_ext <<_ACEOF 25186/* end confdefs.h. */ 25187 25188#ifdef HAVE_LOCALE_H 25189#include <locale.h> 25190#endif 25191#include <stdio.h> 25192#include <ctype.h> 25193 25194main(c, v) 25195int c; 25196char *v[]; 25197{ 25198 char *deflocale; 25199 unsigned char x; 25200 int r1, r2; 25201 25202#ifdef HAVE_SETLOCALE 25203 /* We take a shot here. If that locale is not known, try the 25204 system default. We try this one because '\342' (226) is 25205 known to be a printable character in that locale. */ 25206 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); 25207 if (deflocale == 0) 25208 deflocale = setlocale(LC_ALL, ""); 25209#endif 25210 25211 x = '\342'; 25212 r1 = isprint(x); 25213 x -= 128; 25214 r2 = isprint(x); 25215 exit (r1 == 0 || r2 == 0); 25216} 25217 25218_ACEOF 25219rm -f conftest$ac_exeext 25220if { (ac_try="$ac_link" 25221case "(($ac_try" in 25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25223 *) ac_try_echo=$ac_try;; 25224esac 25225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25226$as_echo "$ac_try_echo") >&5 25227 (eval "$ac_link") 2>&5 25228 ac_status=$? 25229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25231 { (case "(($ac_try" in 25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25233 *) ac_try_echo=$ac_try;; 25234esac 25235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25236$as_echo "$ac_try_echo") >&5 25237 (eval "$ac_try") 2>&5 25238 ac_status=$? 25239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25240 (exit $ac_status); }; }; then 25241 bash_cv_func_ctype_nonascii=yes 25242else 25243 $as_echo "$as_me: program exited with status $ac_status" >&5 25244$as_echo "$as_me: failed program was:" >&5 25245sed 's/^/| /' conftest.$ac_ext >&5 25246 25247( exit $ac_status ) 25248bash_cv_func_ctype_nonascii=no 25249fi 25250rm -rf conftest.dSYM 25251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25252fi 25253 25254 25255fi 25256 25257{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 25258$as_echo "$bash_cv_func_ctype_nonascii" >&6; } 25259if test $bash_cv_func_ctype_nonascii = yes; then 25260cat >>confdefs.h <<\_ACEOF 25261#define CTYPE_NON_ASCII 1 25262_ACEOF 25263 25264fi 25265 25266{ $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 25267$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } 25268if test "${bash_cv_dup2_broken+set}" = set; then 25269 $as_echo_n "(cached) " >&6 25270else 25271 if test "$cross_compiling" = yes; then 25272 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 25273$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} 25274 bash_cv_dup2_broken=no 25275else 25276 cat >conftest.$ac_ext <<_ACEOF 25277/* confdefs.h. */ 25278_ACEOF 25279cat confdefs.h >>conftest.$ac_ext 25280cat >>conftest.$ac_ext <<_ACEOF 25281/* end confdefs.h. */ 25282 25283#include <sys/types.h> 25284#include <fcntl.h> 25285main() 25286{ 25287 int fd1, fd2, fl; 25288 fd1 = open("/dev/null", 2); 25289 if (fcntl(fd1, 2, 1) < 0) 25290 exit(1); 25291 fd2 = dup2(fd1, 1); 25292 if (fd2 < 0) 25293 exit(2); 25294 fl = fcntl(fd2, 1, 0); 25295 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ 25296 exit(fl != 1); 25297} 25298 25299_ACEOF 25300rm -f conftest$ac_exeext 25301if { (ac_try="$ac_link" 25302case "(($ac_try" in 25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25304 *) ac_try_echo=$ac_try;; 25305esac 25306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25307$as_echo "$ac_try_echo") >&5 25308 (eval "$ac_link") 2>&5 25309 ac_status=$? 25310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25312 { (case "(($ac_try" in 25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25314 *) ac_try_echo=$ac_try;; 25315esac 25316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25317$as_echo "$ac_try_echo") >&5 25318 (eval "$ac_try") 2>&5 25319 ac_status=$? 25320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25321 (exit $ac_status); }; }; then 25322 bash_cv_dup2_broken=yes 25323else 25324 $as_echo "$as_me: program exited with status $ac_status" >&5 25325$as_echo "$as_me: failed program was:" >&5 25326sed 's/^/| /' conftest.$ac_ext >&5 25327 25328( exit $ac_status ) 25329bash_cv_dup2_broken=no 25330fi 25331rm -rf conftest.dSYM 25332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25333fi 25334 25335 25336 25337fi 25338 25339{ $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5 25340$as_echo "$bash_cv_dup2_broken" >&6; } 25341if test $bash_cv_dup2_broken = yes; then 25342cat >>confdefs.h <<\_ACEOF 25343#define DUP2_BROKEN 1 25344_ACEOF 25345 25346fi 25347 25348 25349{ $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5 25350$as_echo_n "checking whether pgrps need synchronization... " >&6; } 25351if test "${bash_cv_pgrp_pipe+set}" = set; then 25352 $as_echo_n "(cached) " >&6 25353else 25354 if test "$cross_compiling" = yes; then 25355 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 25356$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} 25357 bash_cv_pgrp_pipe=no 25358else 25359 cat >conftest.$ac_ext <<_ACEOF 25360/* confdefs.h. */ 25361_ACEOF 25362cat confdefs.h >>conftest.$ac_ext 25363cat >>conftest.$ac_ext <<_ACEOF 25364/* end confdefs.h. */ 25365 25366#ifdef HAVE_UNISTD_H 25367# include <unistd.h> 25368#endif 25369main() 25370{ 25371# ifdef GETPGRP_VOID 25372# define getpgID() getpgrp() 25373# else 25374# define getpgID() getpgrp(0) 25375# define setpgid(x,y) setpgrp(x,y) 25376# endif 25377 int pid1, pid2, fds[2]; 25378 int status; 25379 char ok; 25380 25381 switch (pid1 = fork()) { 25382 case -1: 25383 exit(1); 25384 case 0: 25385 setpgid(0, getpid()); 25386 exit(0); 25387 } 25388 setpgid(pid1, pid1); 25389 25390 sleep(2); /* let first child die */ 25391 25392 if (pipe(fds) < 0) 25393 exit(2); 25394 25395 switch (pid2 = fork()) { 25396 case -1: 25397 exit(3); 25398 case 0: 25399 setpgid(0, pid1); 25400 ok = getpgID() == pid1; 25401 write(fds[1], &ok, 1); 25402 exit(0); 25403 } 25404 setpgid(pid2, pid1); 25405 25406 close(fds[1]); 25407 if (read(fds[0], &ok, 1) != 1) 25408 exit(4); 25409 wait(&status); 25410 wait(&status); 25411 exit(ok ? 0 : 5); 25412} 25413 25414_ACEOF 25415rm -f conftest$ac_exeext 25416if { (ac_try="$ac_link" 25417case "(($ac_try" in 25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25419 *) ac_try_echo=$ac_try;; 25420esac 25421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25422$as_echo "$ac_try_echo") >&5 25423 (eval "$ac_link") 2>&5 25424 ac_status=$? 25425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25427 { (case "(($ac_try" in 25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25429 *) ac_try_echo=$ac_try;; 25430esac 25431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25432$as_echo "$ac_try_echo") >&5 25433 (eval "$ac_try") 2>&5 25434 ac_status=$? 25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25436 (exit $ac_status); }; }; then 25437 bash_cv_pgrp_pipe=no 25438else 25439 $as_echo "$as_me: program exited with status $ac_status" >&5 25440$as_echo "$as_me: failed program was:" >&5 25441sed 's/^/| /' conftest.$ac_ext >&5 25442 25443( exit $ac_status ) 25444bash_cv_pgrp_pipe=yes 25445fi 25446rm -rf conftest.dSYM 25447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25448fi 25449 25450 25451 25452fi 25453 25454{ $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5 25455$as_echo "$bash_cv_pgrp_pipe" >&6; } 25456if test $bash_cv_pgrp_pipe = yes; then 25457cat >>confdefs.h <<\_ACEOF 25458#define PGRP_PIPE 1 25459_ACEOF 25460 25461fi 25462 25463 25464{ $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5 25465$as_echo_n "checking for type of signal functions... " >&6; } 25466if test "${bash_cv_signal_vintage+set}" = set; then 25467 $as_echo_n "(cached) " >&6 25468else 25469 25470 cat >conftest.$ac_ext <<_ACEOF 25471/* confdefs.h. */ 25472_ACEOF 25473cat confdefs.h >>conftest.$ac_ext 25474cat >>conftest.$ac_ext <<_ACEOF 25475/* end confdefs.h. */ 25476#include <signal.h> 25477int 25478main () 25479{ 25480 25481 sigset_t ss; 25482 struct sigaction sa; 25483 sigemptyset(&ss); sigsuspend(&ss); 25484 sigaction(SIGINT, &sa, (struct sigaction *) 0); 25485 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); 25486 25487 ; 25488 return 0; 25489} 25490_ACEOF 25491rm -f conftest.$ac_objext conftest$ac_exeext 25492if { (ac_try="$ac_link" 25493case "(($ac_try" in 25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25495 *) ac_try_echo=$ac_try;; 25496esac 25497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25498$as_echo "$ac_try_echo") >&5 25499 (eval "$ac_link") 2>conftest.er1 25500 ac_status=$? 25501 grep -v '^ *+' conftest.er1 >conftest.err 25502 rm -f conftest.er1 25503 cat conftest.err >&5 25504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25505 (exit $ac_status); } && { 25506 test -z "$ac_c_werror_flag" || 25507 test ! -s conftest.err 25508 } && test -s conftest$ac_exeext && { 25509 test "$cross_compiling" = yes || 25510 $as_test_x conftest$ac_exeext 25511 }; then 25512 bash_cv_signal_vintage=posix 25513else 25514 $as_echo "$as_me: failed program was:" >&5 25515sed 's/^/| /' conftest.$ac_ext >&5 25516 25517 25518 cat >conftest.$ac_ext <<_ACEOF 25519/* confdefs.h. */ 25520_ACEOF 25521cat confdefs.h >>conftest.$ac_ext 25522cat >>conftest.$ac_ext <<_ACEOF 25523/* end confdefs.h. */ 25524#include <signal.h> 25525int 25526main () 25527{ 25528 25529 int mask = sigmask(SIGINT); 25530 sigsetmask(mask); sigblock(mask); sigpause(mask); 25531 25532 ; 25533 return 0; 25534} 25535_ACEOF 25536rm -f conftest.$ac_objext conftest$ac_exeext 25537if { (ac_try="$ac_link" 25538case "(($ac_try" in 25539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25540 *) ac_try_echo=$ac_try;; 25541esac 25542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25543$as_echo "$ac_try_echo") >&5 25544 (eval "$ac_link") 2>conftest.er1 25545 ac_status=$? 25546 grep -v '^ *+' conftest.er1 >conftest.err 25547 rm -f conftest.er1 25548 cat conftest.err >&5 25549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25550 (exit $ac_status); } && { 25551 test -z "$ac_c_werror_flag" || 25552 test ! -s conftest.err 25553 } && test -s conftest$ac_exeext && { 25554 test "$cross_compiling" = yes || 25555 $as_test_x conftest$ac_exeext 25556 }; then 25557 bash_cv_signal_vintage=4.2bsd 25558else 25559 $as_echo "$as_me: failed program was:" >&5 25560sed 's/^/| /' conftest.$ac_ext >&5 25561 25562 25563 cat >conftest.$ac_ext <<_ACEOF 25564/* confdefs.h. */ 25565_ACEOF 25566cat confdefs.h >>conftest.$ac_ext 25567cat >>conftest.$ac_ext <<_ACEOF 25568/* end confdefs.h. */ 25569 25570 #include <signal.h> 25571 RETSIGTYPE foo() { } 25572int 25573main () 25574{ 25575 25576 int mask = sigmask(SIGINT); 25577 sigset(SIGINT, foo); sigrelse(SIGINT); 25578 sighold(SIGINT); sigpause(SIGINT); 25579 25580 ; 25581 return 0; 25582} 25583_ACEOF 25584rm -f conftest.$ac_objext conftest$ac_exeext 25585if { (ac_try="$ac_link" 25586case "(($ac_try" in 25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25588 *) ac_try_echo=$ac_try;; 25589esac 25590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25591$as_echo "$ac_try_echo") >&5 25592 (eval "$ac_link") 2>conftest.er1 25593 ac_status=$? 25594 grep -v '^ *+' conftest.er1 >conftest.err 25595 rm -f conftest.er1 25596 cat conftest.err >&5 25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25598 (exit $ac_status); } && { 25599 test -z "$ac_c_werror_flag" || 25600 test ! -s conftest.err 25601 } && test -s conftest$ac_exeext && { 25602 test "$cross_compiling" = yes || 25603 $as_test_x conftest$ac_exeext 25604 }; then 25605 bash_cv_signal_vintage=svr3 25606else 25607 $as_echo "$as_me: failed program was:" >&5 25608sed 's/^/| /' conftest.$ac_ext >&5 25609 25610 bash_cv_signal_vintage=v7 25611 25612fi 25613 25614rm -rf conftest.dSYM 25615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25616 conftest$ac_exeext conftest.$ac_ext 25617 25618fi 25619 25620rm -rf conftest.dSYM 25621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25622 conftest$ac_exeext conftest.$ac_ext 25623 25624fi 25625 25626rm -rf conftest.dSYM 25627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25628 conftest$ac_exeext conftest.$ac_ext 25629 25630fi 25631 25632{ $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 25633$as_echo "$bash_cv_signal_vintage" >&6; } 25634if test "$bash_cv_signal_vintage" = posix; then 25635cat >>confdefs.h <<\_ACEOF 25636#define HAVE_POSIX_SIGNALS 1 25637_ACEOF 25638 25639elif test "$bash_cv_signal_vintage" = "4.2bsd"; then 25640cat >>confdefs.h <<\_ACEOF 25641#define HAVE_BSD_SIGNALS 1 25642_ACEOF 25643 25644elif test "$bash_cv_signal_vintage" = svr3; then 25645cat >>confdefs.h <<\_ACEOF 25646#define HAVE_USG_SIGHOLD 1 25647_ACEOF 25648 25649fi 25650 25651 25652{ $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5 25653$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } 25654if test "${bash_cv_sys_errlist+set}" = set; then 25655 $as_echo_n "(cached) " >&6 25656else 25657 cat >conftest.$ac_ext <<_ACEOF 25658/* confdefs.h. */ 25659_ACEOF 25660cat confdefs.h >>conftest.$ac_ext 25661cat >>conftest.$ac_ext <<_ACEOF 25662/* end confdefs.h. */ 25663#include <errno.h> 25664int 25665main () 25666{ 25667extern char *sys_errlist[]; 25668 extern int sys_nerr; 25669 char *msg = sys_errlist[sys_nerr - 1]; 25670 ; 25671 return 0; 25672} 25673_ACEOF 25674rm -f conftest.$ac_objext conftest$ac_exeext 25675if { (ac_try="$ac_link" 25676case "(($ac_try" in 25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25678 *) ac_try_echo=$ac_try;; 25679esac 25680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25681$as_echo "$ac_try_echo") >&5 25682 (eval "$ac_link") 2>conftest.er1 25683 ac_status=$? 25684 grep -v '^ *+' conftest.er1 >conftest.err 25685 rm -f conftest.er1 25686 cat conftest.err >&5 25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25688 (exit $ac_status); } && { 25689 test -z "$ac_c_werror_flag" || 25690 test ! -s conftest.err 25691 } && test -s conftest$ac_exeext && { 25692 test "$cross_compiling" = yes || 25693 $as_test_x conftest$ac_exeext 25694 }; then 25695 bash_cv_sys_errlist=yes 25696else 25697 $as_echo "$as_me: failed program was:" >&5 25698sed 's/^/| /' conftest.$ac_ext >&5 25699 25700 bash_cv_sys_errlist=no 25701fi 25702 25703rm -rf conftest.dSYM 25704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25705 conftest$ac_exeext conftest.$ac_ext 25706fi 25707{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5 25708$as_echo "$bash_cv_sys_errlist" >&6; } 25709if test $bash_cv_sys_errlist = yes; then 25710cat >>confdefs.h <<\_ACEOF 25711#define HAVE_SYS_ERRLIST 1 25712_ACEOF 25713 25714fi 25715 25716 25717{ $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5 25718$as_echo_n "checking for sys_siglist in system C library... " >&6; } 25719if test "${bash_cv_sys_siglist+set}" = set; then 25720 $as_echo_n "(cached) " >&6 25721else 25722 if test "$cross_compiling" = yes; then 25723 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 25724$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} 25725 bash_cv_sys_siglist=no 25726else 25727 cat >conftest.$ac_ext <<_ACEOF 25728/* confdefs.h. */ 25729_ACEOF 25730cat confdefs.h >>conftest.$ac_ext 25731cat >>conftest.$ac_ext <<_ACEOF 25732/* end confdefs.h. */ 25733 25734#include <sys/types.h> 25735#include <signal.h> 25736#ifdef HAVE_UNISTD_H 25737#include <unistd.h> 25738#endif 25739#if !HAVE_DECL_SYS_SIGLIST 25740extern char *sys_siglist[]; 25741#endif 25742main() 25743{ 25744char *msg = sys_siglist[2]; 25745exit(msg == 0); 25746} 25747_ACEOF 25748rm -f conftest$ac_exeext 25749if { (ac_try="$ac_link" 25750case "(($ac_try" in 25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25752 *) ac_try_echo=$ac_try;; 25753esac 25754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25755$as_echo "$ac_try_echo") >&5 25756 (eval "$ac_link") 2>&5 25757 ac_status=$? 25758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25760 { (case "(($ac_try" in 25761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25762 *) ac_try_echo=$ac_try;; 25763esac 25764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25765$as_echo "$ac_try_echo") >&5 25766 (eval "$ac_try") 2>&5 25767 ac_status=$? 25768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25769 (exit $ac_status); }; }; then 25770 bash_cv_sys_siglist=yes 25771else 25772 $as_echo "$as_me: program exited with status $ac_status" >&5 25773$as_echo "$as_me: failed program was:" >&5 25774sed 's/^/| /' conftest.$ac_ext >&5 25775 25776( exit $ac_status ) 25777bash_cv_sys_siglist=no 25778fi 25779rm -rf conftest.dSYM 25780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25781fi 25782 25783 25784fi 25785 25786{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5 25787$as_echo "$bash_cv_sys_siglist" >&6; } 25788if test $bash_cv_sys_siglist = yes; then 25789cat >>confdefs.h <<\_ACEOF 25790#define HAVE_SYS_SIGLIST 1 25791_ACEOF 25792 25793fi 25794 25795{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5 25796$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } 25797if test "${bash_cv_decl_under_sys_siglist+set}" = set; then 25798 $as_echo_n "(cached) " >&6 25799else 25800 cat >conftest.$ac_ext <<_ACEOF 25801/* confdefs.h. */ 25802_ACEOF 25803cat confdefs.h >>conftest.$ac_ext 25804cat >>conftest.$ac_ext <<_ACEOF 25805/* end confdefs.h. */ 25806 25807#include <sys/types.h> 25808#include <signal.h> 25809#ifdef HAVE_UNISTD_H 25810#include <unistd.h> 25811#endif 25812int 25813main () 25814{ 25815 char *msg = _sys_siglist[2]; 25816 ; 25817 return 0; 25818} 25819_ACEOF 25820rm -f conftest.$ac_objext 25821if { (ac_try="$ac_compile" 25822case "(($ac_try" in 25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25824 *) ac_try_echo=$ac_try;; 25825esac 25826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25827$as_echo "$ac_try_echo") >&5 25828 (eval "$ac_compile") 2>conftest.er1 25829 ac_status=$? 25830 grep -v '^ *+' conftest.er1 >conftest.err 25831 rm -f conftest.er1 25832 cat conftest.err >&5 25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25834 (exit $ac_status); } && { 25835 test -z "$ac_c_werror_flag" || 25836 test ! -s conftest.err 25837 } && test -s conftest.$ac_objext; then 25838 bash_cv_decl_under_sys_siglist=yes 25839else 25840 $as_echo "$as_me: failed program was:" >&5 25841sed 's/^/| /' conftest.$ac_ext >&5 25842 25843 bash_cv_decl_under_sys_siglist=no 25844fi 25845 25846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25847fi 25848{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5 25849$as_echo "$bash_cv_decl_under_sys_siglist" >&6; } 25850if test $bash_cv_decl_under_sys_siglist = yes; then 25851cat >>confdefs.h <<\_ACEOF 25852#define UNDER_SYS_SIGLIST_DECLARED 1 25853_ACEOF 25854 25855fi 25856 25857 25858{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5 25859$as_echo_n "checking for _sys_siglist in system C library... " >&6; } 25860if test "${bash_cv_under_sys_siglist+set}" = set; then 25861 $as_echo_n "(cached) " >&6 25862else 25863 if test "$cross_compiling" = yes; then 25864 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 25865$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} 25866 bash_cv_under_sys_siglist=no 25867else 25868 cat >conftest.$ac_ext <<_ACEOF 25869/* confdefs.h. */ 25870_ACEOF 25871cat confdefs.h >>conftest.$ac_ext 25872cat >>conftest.$ac_ext <<_ACEOF 25873/* end confdefs.h. */ 25874 25875#include <sys/types.h> 25876#include <signal.h> 25877#ifdef HAVE_UNISTD_H 25878#include <unistd.h> 25879#endif 25880#ifndef UNDER_SYS_SIGLIST_DECLARED 25881extern char *_sys_siglist[]; 25882#endif 25883main() 25884{ 25885char *msg = (char *)_sys_siglist[2]; 25886exit(msg == 0); 25887} 25888_ACEOF 25889rm -f conftest$ac_exeext 25890if { (ac_try="$ac_link" 25891case "(($ac_try" in 25892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25893 *) ac_try_echo=$ac_try;; 25894esac 25895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25896$as_echo "$ac_try_echo") >&5 25897 (eval "$ac_link") 2>&5 25898 ac_status=$? 25899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25901 { (case "(($ac_try" in 25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25903 *) ac_try_echo=$ac_try;; 25904esac 25905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25906$as_echo "$ac_try_echo") >&5 25907 (eval "$ac_try") 2>&5 25908 ac_status=$? 25909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25910 (exit $ac_status); }; }; then 25911 bash_cv_under_sys_siglist=yes 25912else 25913 $as_echo "$as_me: program exited with status $ac_status" >&5 25914$as_echo "$as_me: failed program was:" >&5 25915sed 's/^/| /' conftest.$ac_ext >&5 25916 25917( exit $ac_status ) 25918bash_cv_under_sys_siglist=no 25919fi 25920rm -rf conftest.dSYM 25921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25922fi 25923 25924 25925fi 25926 25927{ $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5 25928$as_echo "$bash_cv_under_sys_siglist" >&6; } 25929if test $bash_cv_under_sys_siglist = yes; then 25930cat >>confdefs.h <<\_ACEOF 25931#define HAVE_UNDER_SYS_SIGLIST 1 25932_ACEOF 25933 25934fi 25935 25936 25937{ $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 25938$as_echo_n "checking whether signal handlers are of type void... " >&6; } 25939if test "${bash_cv_void_sighandler+set}" = set; then 25940 $as_echo_n "(cached) " >&6 25941else 25942 cat >conftest.$ac_ext <<_ACEOF 25943/* confdefs.h. */ 25944_ACEOF 25945cat confdefs.h >>conftest.$ac_ext 25946cat >>conftest.$ac_ext <<_ACEOF 25947/* end confdefs.h. */ 25948#include <sys/types.h> 25949#include <signal.h> 25950#ifdef signal 25951#undef signal 25952#endif 25953#ifdef __cplusplus 25954extern "C" 25955#endif 25956void (*signal ()) (); 25957int 25958main () 25959{ 25960int i; 25961 ; 25962 return 0; 25963} 25964_ACEOF 25965rm -f conftest.$ac_objext 25966if { (ac_try="$ac_compile" 25967case "(($ac_try" in 25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25969 *) ac_try_echo=$ac_try;; 25970esac 25971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 25972$as_echo "$ac_try_echo") >&5 25973 (eval "$ac_compile") 2>conftest.er1 25974 ac_status=$? 25975 grep -v '^ *+' conftest.er1 >conftest.err 25976 rm -f conftest.er1 25977 cat conftest.err >&5 25978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 25979 (exit $ac_status); } && { 25980 test -z "$ac_c_werror_flag" || 25981 test ! -s conftest.err 25982 } && test -s conftest.$ac_objext; then 25983 bash_cv_void_sighandler=yes 25984else 25985 $as_echo "$as_me: failed program was:" >&5 25986sed 's/^/| /' conftest.$ac_ext >&5 25987 25988 bash_cv_void_sighandler=no 25989fi 25990 25991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25992fi 25993{ $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 25994$as_echo "$bash_cv_void_sighandler" >&6; } 25995if test $bash_cv_void_sighandler = yes; then 25996cat >>confdefs.h <<\_ACEOF 25997#define VOID_SIGHANDLER 1 25998_ACEOF 25999 26000fi 26001 26002 26003 26004{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5 26005$as_echo_n "checking for clock_t... " >&6; } 26006if test "${bash_cv_type_clock_t+set}" = set; then 26007 $as_echo_n "(cached) " >&6 26008else 26009 cat >conftest.$ac_ext <<_ACEOF 26010/* confdefs.h. */ 26011_ACEOF 26012cat confdefs.h >>conftest.$ac_ext 26013cat >>conftest.$ac_ext <<_ACEOF 26014/* end confdefs.h. */ 26015#include <sys/types.h> 26016#if STDC_HEADERS 26017#include <stdlib.h> 26018#include <stddef.h> 26019#endif 26020#if HAVE_INTTYPES_H 26021#include <inttypes.h> 26022#endif 26023#include <sys/times.h> 26024 26025_ACEOF 26026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26027 $EGREP "clock_t" >/dev/null 2>&1; then 26028 bash_cv_type_clock_t=yes 26029else 26030 bash_cv_type_clock_t=no 26031fi 26032rm -f conftest* 26033 26034fi 26035 26036{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5 26037$as_echo "$bash_cv_type_clock_t" >&6; } 26038 26039if test $bash_cv_type_clock_t = no; then 26040 cat >>confdefs.h <<_ACEOF 26041#define clock_t long 26042_ACEOF 26043 26044fi 26045 26046 26047 26048{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5 26049$as_echo_n "checking for sigset_t... " >&6; } 26050if test "${bash_cv_type_sigset_t+set}" = set; then 26051 $as_echo_n "(cached) " >&6 26052else 26053 cat >conftest.$ac_ext <<_ACEOF 26054/* confdefs.h. */ 26055_ACEOF 26056cat confdefs.h >>conftest.$ac_ext 26057cat >>conftest.$ac_ext <<_ACEOF 26058/* end confdefs.h. */ 26059#include <sys/types.h> 26060#if STDC_HEADERS 26061#include <stdlib.h> 26062#include <stddef.h> 26063#endif 26064#if HAVE_INTTYPES_H 26065#include <inttypes.h> 26066#endif 26067#include <signal.h> 26068 26069_ACEOF 26070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26071 $EGREP "sigset_t" >/dev/null 2>&1; then 26072 bash_cv_type_sigset_t=yes 26073else 26074 bash_cv_type_sigset_t=no 26075fi 26076rm -f conftest* 26077 26078fi 26079 26080{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5 26081$as_echo "$bash_cv_type_sigset_t" >&6; } 26082 26083if test $bash_cv_type_sigset_t = no; then 26084 cat >>confdefs.h <<_ACEOF 26085#define sigset_t int 26086_ACEOF 26087 26088fi 26089 26090 26091 26092{ $as_echo "$as_me:$LINENO: checking for quad_t" >&5 26093$as_echo_n "checking for quad_t... " >&6; } 26094if test "${bash_cv_type_quad_t+set}" = set; then 26095 $as_echo_n "(cached) " >&6 26096else 26097 cat >conftest.$ac_ext <<_ACEOF 26098/* confdefs.h. */ 26099_ACEOF 26100cat confdefs.h >>conftest.$ac_ext 26101cat >>conftest.$ac_ext <<_ACEOF 26102/* end confdefs.h. */ 26103#include <sys/types.h> 26104#if STDC_HEADERS 26105#include <stdlib.h> 26106#include <stddef.h> 26107#endif 26108#if HAVE_INTTYPES_H 26109#include <inttypes.h> 26110#endif 26111 26112 26113_ACEOF 26114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26115 $EGREP "quad_t" >/dev/null 2>&1; then 26116 bash_cv_type_quad_t=yes 26117else 26118 bash_cv_type_quad_t=no 26119fi 26120rm -f conftest* 26121 26122fi 26123 26124{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5 26125$as_echo "$bash_cv_type_quad_t" >&6; } 26126if test $bash_cv_type_quad_t = yes; then 26127 cat >>confdefs.h <<\_ACEOF 26128#define HAVE_QUAD_T 1 26129_ACEOF 26130 26131 fi 26132if test $bash_cv_type_quad_t = no; then 26133 cat >>confdefs.h <<_ACEOF 26134#define quad_t long 26135_ACEOF 26136 26137fi 26138 26139 26140 26141{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 26142$as_echo_n "checking for intmax_t... " >&6; } 26143if test "${bash_cv_type_intmax_t+set}" = set; then 26144 $as_echo_n "(cached) " >&6 26145else 26146 cat >conftest.$ac_ext <<_ACEOF 26147/* confdefs.h. */ 26148_ACEOF 26149cat confdefs.h >>conftest.$ac_ext 26150cat >>conftest.$ac_ext <<_ACEOF 26151/* end confdefs.h. */ 26152#include <sys/types.h> 26153#if STDC_HEADERS 26154#include <stdlib.h> 26155#include <stddef.h> 26156#endif 26157#if HAVE_INTTYPES_H 26158#include <inttypes.h> 26159#endif 26160 26161 26162_ACEOF 26163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26164 $EGREP "intmax_t" >/dev/null 2>&1; then 26165 bash_cv_type_intmax_t=yes 26166else 26167 bash_cv_type_intmax_t=no 26168fi 26169rm -f conftest* 26170 26171fi 26172 26173{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5 26174$as_echo "$bash_cv_type_intmax_t" >&6; } 26175 26176if test $bash_cv_type_intmax_t = no; then 26177 cat >>confdefs.h <<_ACEOF 26178#define intmax_t $bash_cv_type_long_long 26179_ACEOF 26180 26181fi 26182 26183 26184 26185{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 26186$as_echo_n "checking for uintmax_t... " >&6; } 26187if test "${bash_cv_type_uintmax_t+set}" = set; then 26188 $as_echo_n "(cached) " >&6 26189else 26190 cat >conftest.$ac_ext <<_ACEOF 26191/* confdefs.h. */ 26192_ACEOF 26193cat confdefs.h >>conftest.$ac_ext 26194cat >>conftest.$ac_ext <<_ACEOF 26195/* end confdefs.h. */ 26196#include <sys/types.h> 26197#if STDC_HEADERS 26198#include <stdlib.h> 26199#include <stddef.h> 26200#endif 26201#if HAVE_INTTYPES_H 26202#include <inttypes.h> 26203#endif 26204 26205 26206_ACEOF 26207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26208 $EGREP "uintmax_t" >/dev/null 2>&1; then 26209 bash_cv_type_uintmax_t=yes 26210else 26211 bash_cv_type_uintmax_t=no 26212fi 26213rm -f conftest* 26214 26215fi 26216 26217{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5 26218$as_echo "$bash_cv_type_uintmax_t" >&6; } 26219 26220if test $bash_cv_type_uintmax_t = no; then 26221 cat >>confdefs.h <<_ACEOF 26222#define uintmax_t $bash_cv_type_unsigned_long_long 26223_ACEOF 26224 26225fi 26226 26227if test "$ac_cv_header_sys_socket_h" = "yes"; then 26228 26229 26230{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 26231$as_echo_n "checking for socklen_t... " >&6; } 26232if test "${bash_cv_type_socklen_t+set}" = set; then 26233 $as_echo_n "(cached) " >&6 26234else 26235 cat >conftest.$ac_ext <<_ACEOF 26236/* confdefs.h. */ 26237_ACEOF 26238cat confdefs.h >>conftest.$ac_ext 26239cat >>conftest.$ac_ext <<_ACEOF 26240/* end confdefs.h. */ 26241#include <sys/types.h> 26242#if STDC_HEADERS 26243#include <stdlib.h> 26244#include <stddef.h> 26245#endif 26246#if HAVE_INTTYPES_H 26247#include <inttypes.h> 26248#endif 26249#include <sys/socket.h> 26250 26251_ACEOF 26252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26253 $EGREP "socklen_t" >/dev/null 2>&1; then 26254 bash_cv_type_socklen_t=yes 26255else 26256 bash_cv_type_socklen_t=no 26257fi 26258rm -f conftest* 26259 26260fi 26261 26262{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5 26263$as_echo "$bash_cv_type_socklen_t" >&6; } 26264if test $bash_cv_type_socklen_t = yes; then 26265 cat >>confdefs.h <<\_ACEOF 26266#define HAVE_SOCKLEN_T 1 26267_ACEOF 26268 26269 fi 26270if test $bash_cv_type_socklen_t = no; then 26271 cat >>confdefs.h <<_ACEOF 26272#define socklen_t int 26273_ACEOF 26274 26275fi 26276 26277fi 26278{ $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5 26279$as_echo_n "checking for size and type of struct rlimit fields... " >&6; } 26280if test "${bash_cv_type_rlimit+set}" = set; then 26281 $as_echo_n "(cached) " >&6 26282else 26283 cat >conftest.$ac_ext <<_ACEOF 26284/* confdefs.h. */ 26285_ACEOF 26286cat confdefs.h >>conftest.$ac_ext 26287cat >>conftest.$ac_ext <<_ACEOF 26288/* end confdefs.h. */ 26289#include <sys/types.h> 26290#include <sys/resource.h> 26291int 26292main () 26293{ 26294rlim_t xxx; 26295 ; 26296 return 0; 26297} 26298_ACEOF 26299rm -f conftest.$ac_objext 26300if { (ac_try="$ac_compile" 26301case "(($ac_try" in 26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26303 *) ac_try_echo=$ac_try;; 26304esac 26305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26306$as_echo "$ac_try_echo") >&5 26307 (eval "$ac_compile") 2>conftest.er1 26308 ac_status=$? 26309 grep -v '^ *+' conftest.er1 >conftest.err 26310 rm -f conftest.er1 26311 cat conftest.err >&5 26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26313 (exit $ac_status); } && { 26314 test -z "$ac_c_werror_flag" || 26315 test ! -s conftest.err 26316 } && test -s conftest.$ac_objext; then 26317 bash_cv_type_rlimit=rlim_t 26318else 26319 $as_echo "$as_me: failed program was:" >&5 26320sed 's/^/| /' conftest.$ac_ext >&5 26321 26322 26323if test "$cross_compiling" = yes; then 26324 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 26325$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} 26326 bash_cv_type_rlimit=long 26327else 26328 cat >conftest.$ac_ext <<_ACEOF 26329/* confdefs.h. */ 26330_ACEOF 26331cat confdefs.h >>conftest.$ac_ext 26332cat >>conftest.$ac_ext <<_ACEOF 26333/* end confdefs.h. */ 26334 26335#include <sys/types.h> 26336#include <sys/time.h> 26337#include <sys/resource.h> 26338main() 26339{ 26340#ifdef HAVE_QUAD_T 26341 struct rlimit rl; 26342 if (sizeof(rl.rlim_cur) == sizeof(quad_t)) 26343 exit(0); 26344#endif 26345 exit(1); 26346} 26347_ACEOF 26348rm -f conftest$ac_exeext 26349if { (ac_try="$ac_link" 26350case "(($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_link") 2>&5 26357 ac_status=$? 26358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26360 { (case "(($ac_try" in 26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26362 *) ac_try_echo=$ac_try;; 26363esac 26364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26365$as_echo "$ac_try_echo") >&5 26366 (eval "$ac_try") 2>&5 26367 ac_status=$? 26368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26369 (exit $ac_status); }; }; then 26370 bash_cv_type_rlimit=quad_t 26371else 26372 $as_echo "$as_me: program exited with status $ac_status" >&5 26373$as_echo "$as_me: failed program was:" >&5 26374sed 's/^/| /' conftest.$ac_ext >&5 26375 26376( exit $ac_status ) 26377bash_cv_type_rlimit=long 26378fi 26379rm -rf conftest.dSYM 26380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26381fi 26382 26383 26384fi 26385 26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26387 26388fi 26389 26390{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5 26391$as_echo "$bash_cv_type_rlimit" >&6; } 26392if test $bash_cv_type_rlimit = quad_t; then 26393cat >>confdefs.h <<\_ACEOF 26394#define RLIMTYPE quad_t 26395_ACEOF 26396 26397elif test $bash_cv_type_rlimit = rlim_t; then 26398cat >>confdefs.h <<\_ACEOF 26399#define RLIMTYPE rlim_t 26400_ACEOF 26401 26402fi 26403 26404 26405 26406{ $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5 26407$as_echo_n "checking for struct termios.c_line... " >&6; } 26408if test "${ac_cv_member_struct_termios_c_line+set}" = set; then 26409 $as_echo_n "(cached) " >&6 26410else 26411 cat >conftest.$ac_ext <<_ACEOF 26412/* confdefs.h. */ 26413_ACEOF 26414cat confdefs.h >>conftest.$ac_ext 26415cat >>conftest.$ac_ext <<_ACEOF 26416/* end confdefs.h. */ 26417 26418#include <sys/types.h> 26419#include <termios.h> 26420 26421 26422int 26423main () 26424{ 26425static struct termios ac_aggr; 26426if (ac_aggr.c_line) 26427return 0; 26428 ; 26429 return 0; 26430} 26431_ACEOF 26432rm -f conftest.$ac_objext 26433if { (ac_try="$ac_compile" 26434case "(($ac_try" in 26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26436 *) ac_try_echo=$ac_try;; 26437esac 26438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26439$as_echo "$ac_try_echo") >&5 26440 (eval "$ac_compile") 2>conftest.er1 26441 ac_status=$? 26442 grep -v '^ *+' conftest.er1 >conftest.err 26443 rm -f conftest.er1 26444 cat conftest.err >&5 26445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26446 (exit $ac_status); } && { 26447 test -z "$ac_c_werror_flag" || 26448 test ! -s conftest.err 26449 } && test -s conftest.$ac_objext; then 26450 ac_cv_member_struct_termios_c_line=yes 26451else 26452 $as_echo "$as_me: failed program was:" >&5 26453sed 's/^/| /' conftest.$ac_ext >&5 26454 26455 cat >conftest.$ac_ext <<_ACEOF 26456/* confdefs.h. */ 26457_ACEOF 26458cat confdefs.h >>conftest.$ac_ext 26459cat >>conftest.$ac_ext <<_ACEOF 26460/* end confdefs.h. */ 26461 26462#include <sys/types.h> 26463#include <termios.h> 26464 26465 26466int 26467main () 26468{ 26469static struct termios ac_aggr; 26470if (sizeof ac_aggr.c_line) 26471return 0; 26472 ; 26473 return 0; 26474} 26475_ACEOF 26476rm -f conftest.$ac_objext 26477if { (ac_try="$ac_compile" 26478case "(($ac_try" in 26479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26480 *) ac_try_echo=$ac_try;; 26481esac 26482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26483$as_echo "$ac_try_echo") >&5 26484 (eval "$ac_compile") 2>conftest.er1 26485 ac_status=$? 26486 grep -v '^ *+' conftest.er1 >conftest.err 26487 rm -f conftest.er1 26488 cat conftest.err >&5 26489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26490 (exit $ac_status); } && { 26491 test -z "$ac_c_werror_flag" || 26492 test ! -s conftest.err 26493 } && test -s conftest.$ac_objext; then 26494 ac_cv_member_struct_termios_c_line=yes 26495else 26496 $as_echo "$as_me: failed program was:" >&5 26497sed 's/^/| /' conftest.$ac_ext >&5 26498 26499 ac_cv_member_struct_termios_c_line=no 26500fi 26501 26502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26503fi 26504 26505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26506fi 26507{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5 26508$as_echo "$ac_cv_member_struct_termios_c_line" >&6; } 26509if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then 26510 cat >>confdefs.h <<\_ACEOF 26511#define TERMIOS_LDISC 1 26512_ACEOF 26513 26514fi 26515 26516 26517 26518{ $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5 26519$as_echo_n "checking for struct termio.c_line... " >&6; } 26520if test "${ac_cv_member_struct_termio_c_line+set}" = set; then 26521 $as_echo_n "(cached) " >&6 26522else 26523 cat >conftest.$ac_ext <<_ACEOF 26524/* confdefs.h. */ 26525_ACEOF 26526cat confdefs.h >>conftest.$ac_ext 26527cat >>conftest.$ac_ext <<_ACEOF 26528/* end confdefs.h. */ 26529 26530#include <sys/types.h> 26531#include <termio.h> 26532 26533 26534int 26535main () 26536{ 26537static struct termio ac_aggr; 26538if (ac_aggr.c_line) 26539return 0; 26540 ; 26541 return 0; 26542} 26543_ACEOF 26544rm -f conftest.$ac_objext 26545if { (ac_try="$ac_compile" 26546case "(($ac_try" in 26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26548 *) ac_try_echo=$ac_try;; 26549esac 26550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26551$as_echo "$ac_try_echo") >&5 26552 (eval "$ac_compile") 2>conftest.er1 26553 ac_status=$? 26554 grep -v '^ *+' conftest.er1 >conftest.err 26555 rm -f conftest.er1 26556 cat conftest.err >&5 26557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26558 (exit $ac_status); } && { 26559 test -z "$ac_c_werror_flag" || 26560 test ! -s conftest.err 26561 } && test -s conftest.$ac_objext; then 26562 ac_cv_member_struct_termio_c_line=yes 26563else 26564 $as_echo "$as_me: failed program was:" >&5 26565sed 's/^/| /' conftest.$ac_ext >&5 26566 26567 cat >conftest.$ac_ext <<_ACEOF 26568/* confdefs.h. */ 26569_ACEOF 26570cat confdefs.h >>conftest.$ac_ext 26571cat >>conftest.$ac_ext <<_ACEOF 26572/* end confdefs.h. */ 26573 26574#include <sys/types.h> 26575#include <termio.h> 26576 26577 26578int 26579main () 26580{ 26581static struct termio ac_aggr; 26582if (sizeof ac_aggr.c_line) 26583return 0; 26584 ; 26585 return 0; 26586} 26587_ACEOF 26588rm -f conftest.$ac_objext 26589if { (ac_try="$ac_compile" 26590case "(($ac_try" in 26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26592 *) ac_try_echo=$ac_try;; 26593esac 26594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26595$as_echo "$ac_try_echo") >&5 26596 (eval "$ac_compile") 2>conftest.er1 26597 ac_status=$? 26598 grep -v '^ *+' conftest.er1 >conftest.err 26599 rm -f conftest.er1 26600 cat conftest.err >&5 26601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26602 (exit $ac_status); } && { 26603 test -z "$ac_c_werror_flag" || 26604 test ! -s conftest.err 26605 } && test -s conftest.$ac_objext; then 26606 ac_cv_member_struct_termio_c_line=yes 26607else 26608 $as_echo "$as_me: failed program was:" >&5 26609sed 's/^/| /' conftest.$ac_ext >&5 26610 26611 ac_cv_member_struct_termio_c_line=no 26612fi 26613 26614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26615fi 26616 26617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26618fi 26619{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5 26620$as_echo "$ac_cv_member_struct_termio_c_line" >&6; } 26621if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then 26622 cat >>confdefs.h <<\_ACEOF 26623#define TERMIO_LDISC 1 26624_ACEOF 26625 26626fi 26627 26628 26629 26630{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 26631$as_echo_n "checking for struct dirent.d_ino... " >&6; } 26632if test "${bash_cv_dirent_has_dino+set}" = set; then 26633 $as_echo_n "(cached) " >&6 26634else 26635 cat >conftest.$ac_ext <<_ACEOF 26636/* confdefs.h. */ 26637_ACEOF 26638cat confdefs.h >>conftest.$ac_ext 26639cat >>conftest.$ac_ext <<_ACEOF 26640/* end confdefs.h. */ 26641 26642#include <stdio.h> 26643#include <sys/types.h> 26644#ifdef HAVE_UNISTD_H 26645# include <unistd.h> 26646#endif /* HAVE_UNISTD_H */ 26647#if defined(HAVE_DIRENT_H) 26648# include <dirent.h> 26649#else 26650# define dirent direct 26651# ifdef HAVE_SYS_NDIR_H 26652# include <sys/ndir.h> 26653# endif /* SYSNDIR */ 26654# ifdef HAVE_SYS_DIR_H 26655# include <sys/dir.h> 26656# endif /* SYSDIR */ 26657# ifdef HAVE_NDIR_H 26658# include <ndir.h> 26659# endif 26660#endif /* HAVE_DIRENT_H */ 26661 26662int 26663main () 26664{ 26665 26666struct dirent d; int z; z = d.d_ino; 26667 26668 ; 26669 return 0; 26670} 26671_ACEOF 26672rm -f conftest.$ac_objext 26673if { (ac_try="$ac_compile" 26674case "(($ac_try" in 26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26676 *) ac_try_echo=$ac_try;; 26677esac 26678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26679$as_echo "$ac_try_echo") >&5 26680 (eval "$ac_compile") 2>conftest.er1 26681 ac_status=$? 26682 grep -v '^ *+' conftest.er1 >conftest.err 26683 rm -f conftest.er1 26684 cat conftest.err >&5 26685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26686 (exit $ac_status); } && { 26687 test -z "$ac_c_werror_flag" || 26688 test ! -s conftest.err 26689 } && test -s conftest.$ac_objext; then 26690 bash_cv_dirent_has_dino=yes 26691else 26692 $as_echo "$as_me: failed program was:" >&5 26693sed 's/^/| /' conftest.$ac_ext >&5 26694 26695 bash_cv_dirent_has_dino=no 26696fi 26697 26698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26699fi 26700 26701{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 26702$as_echo "$bash_cv_dirent_has_dino" >&6; } 26703if test $bash_cv_dirent_has_dino = yes; then 26704cat >>confdefs.h <<\_ACEOF 26705#define HAVE_STRUCT_DIRENT_D_INO 1 26706_ACEOF 26707 26708fi 26709 26710 26711{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 26712$as_echo_n "checking for struct dirent.d_fileno... " >&6; } 26713if test "${bash_cv_dirent_has_d_fileno+set}" = set; then 26714 $as_echo_n "(cached) " >&6 26715else 26716 cat >conftest.$ac_ext <<_ACEOF 26717/* confdefs.h. */ 26718_ACEOF 26719cat confdefs.h >>conftest.$ac_ext 26720cat >>conftest.$ac_ext <<_ACEOF 26721/* end confdefs.h. */ 26722 26723#include <stdio.h> 26724#include <sys/types.h> 26725#ifdef HAVE_UNISTD_H 26726# include <unistd.h> 26727#endif /* HAVE_UNISTD_H */ 26728#if defined(HAVE_DIRENT_H) 26729# include <dirent.h> 26730#else 26731# define dirent direct 26732# ifdef HAVE_SYS_NDIR_H 26733# include <sys/ndir.h> 26734# endif /* SYSNDIR */ 26735# ifdef HAVE_SYS_DIR_H 26736# include <sys/dir.h> 26737# endif /* SYSDIR */ 26738# ifdef HAVE_NDIR_H 26739# include <ndir.h> 26740# endif 26741#endif /* HAVE_DIRENT_H */ 26742 26743int 26744main () 26745{ 26746 26747struct dirent d; int z; z = d.d_fileno; 26748 26749 ; 26750 return 0; 26751} 26752_ACEOF 26753rm -f conftest.$ac_objext 26754if { (ac_try="$ac_compile" 26755case "(($ac_try" in 26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26757 *) ac_try_echo=$ac_try;; 26758esac 26759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26760$as_echo "$ac_try_echo") >&5 26761 (eval "$ac_compile") 2>conftest.er1 26762 ac_status=$? 26763 grep -v '^ *+' conftest.er1 >conftest.err 26764 rm -f conftest.er1 26765 cat conftest.err >&5 26766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26767 (exit $ac_status); } && { 26768 test -z "$ac_c_werror_flag" || 26769 test ! -s conftest.err 26770 } && test -s conftest.$ac_objext; then 26771 bash_cv_dirent_has_d_fileno=yes 26772else 26773 $as_echo "$as_me: failed program was:" >&5 26774sed 's/^/| /' conftest.$ac_ext >&5 26775 26776 bash_cv_dirent_has_d_fileno=no 26777fi 26778 26779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26780fi 26781 26782{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 26783$as_echo "$bash_cv_dirent_has_d_fileno" >&6; } 26784if test $bash_cv_dirent_has_d_fileno = yes; then 26785cat >>confdefs.h <<\_ACEOF 26786#define HAVE_STRUCT_DIRENT_D_FILENO 1 26787_ACEOF 26788 26789fi 26790 26791 26792{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 26793$as_echo_n "checking for struct dirent.d_namlen... " >&6; } 26794if test "${bash_cv_dirent_has_d_namlen+set}" = set; then 26795 $as_echo_n "(cached) " >&6 26796else 26797 cat >conftest.$ac_ext <<_ACEOF 26798/* confdefs.h. */ 26799_ACEOF 26800cat confdefs.h >>conftest.$ac_ext 26801cat >>conftest.$ac_ext <<_ACEOF 26802/* end confdefs.h. */ 26803 26804#include <stdio.h> 26805#include <sys/types.h> 26806#ifdef HAVE_UNISTD_H 26807# include <unistd.h> 26808#endif /* HAVE_UNISTD_H */ 26809#if defined(HAVE_DIRENT_H) 26810# include <dirent.h> 26811#else 26812# define dirent direct 26813# ifdef HAVE_SYS_NDIR_H 26814# include <sys/ndir.h> 26815# endif /* SYSNDIR */ 26816# ifdef HAVE_SYS_DIR_H 26817# include <sys/dir.h> 26818# endif /* SYSDIR */ 26819# ifdef HAVE_NDIR_H 26820# include <ndir.h> 26821# endif 26822#endif /* HAVE_DIRENT_H */ 26823 26824int 26825main () 26826{ 26827 26828struct dirent d; int z; z = d.d_namlen; 26829 26830 ; 26831 return 0; 26832} 26833_ACEOF 26834rm -f conftest.$ac_objext 26835if { (ac_try="$ac_compile" 26836case "(($ac_try" in 26837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26838 *) ac_try_echo=$ac_try;; 26839esac 26840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26841$as_echo "$ac_try_echo") >&5 26842 (eval "$ac_compile") 2>conftest.er1 26843 ac_status=$? 26844 grep -v '^ *+' conftest.er1 >conftest.err 26845 rm -f conftest.er1 26846 cat conftest.err >&5 26847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26848 (exit $ac_status); } && { 26849 test -z "$ac_c_werror_flag" || 26850 test ! -s conftest.err 26851 } && test -s conftest.$ac_objext; then 26852 bash_cv_dirent_has_d_namlen=yes 26853else 26854 $as_echo "$as_me: failed program was:" >&5 26855sed 's/^/| /' conftest.$ac_ext >&5 26856 26857 bash_cv_dirent_has_d_namlen=no 26858fi 26859 26860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26861fi 26862 26863{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5 26864$as_echo "$bash_cv_dirent_has_d_namlen" >&6; } 26865if test $bash_cv_dirent_has_d_namlen = yes; then 26866cat >>confdefs.h <<\_ACEOF 26867#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 26868_ACEOF 26869 26870fi 26871 26872{ $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 26873$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } 26874if test "${bash_cv_struct_winsize_header+set}" = set; then 26875 $as_echo_n "(cached) " >&6 26876else 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 <sys/types.h> 26884#include <sys/ioctl.h> 26885int 26886main () 26887{ 26888struct winsize x; 26889 ; 26890 return 0; 26891} 26892_ACEOF 26893rm -f conftest.$ac_objext 26894if { (ac_try="$ac_compile" 26895case "(($ac_try" in 26896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26897 *) ac_try_echo=$ac_try;; 26898esac 26899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26900$as_echo "$ac_try_echo") >&5 26901 (eval "$ac_compile") 2>conftest.er1 26902 ac_status=$? 26903 grep -v '^ *+' conftest.er1 >conftest.err 26904 rm -f conftest.er1 26905 cat conftest.err >&5 26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26907 (exit $ac_status); } && { 26908 test -z "$ac_c_werror_flag" || 26909 test ! -s conftest.err 26910 } && test -s conftest.$ac_objext; then 26911 bash_cv_struct_winsize_header=ioctl_h 26912else 26913 $as_echo "$as_me: failed program was:" >&5 26914sed 's/^/| /' conftest.$ac_ext >&5 26915 26916 cat >conftest.$ac_ext <<_ACEOF 26917/* confdefs.h. */ 26918_ACEOF 26919cat confdefs.h >>conftest.$ac_ext 26920cat >>conftest.$ac_ext <<_ACEOF 26921/* end confdefs.h. */ 26922#include <sys/types.h> 26923#include <termios.h> 26924int 26925main () 26926{ 26927struct winsize x; 26928 ; 26929 return 0; 26930} 26931_ACEOF 26932rm -f conftest.$ac_objext 26933if { (ac_try="$ac_compile" 26934case "(($ac_try" in 26935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26936 *) ac_try_echo=$ac_try;; 26937esac 26938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 26939$as_echo "$ac_try_echo") >&5 26940 (eval "$ac_compile") 2>conftest.er1 26941 ac_status=$? 26942 grep -v '^ *+' conftest.er1 >conftest.err 26943 rm -f conftest.er1 26944 cat conftest.err >&5 26945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 26946 (exit $ac_status); } && { 26947 test -z "$ac_c_werror_flag" || 26948 test ! -s conftest.err 26949 } && test -s conftest.$ac_objext; then 26950 bash_cv_struct_winsize_header=termios_h 26951else 26952 $as_echo "$as_me: failed program was:" >&5 26953sed 's/^/| /' conftest.$ac_ext >&5 26954 26955 bash_cv_struct_winsize_header=other 26956fi 26957 26958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26959 26960fi 26961 26962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26963fi 26964 26965if test $bash_cv_struct_winsize_header = ioctl_h; then 26966 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 26967$as_echo "sys/ioctl.h" >&6; } 26968 cat >>confdefs.h <<\_ACEOF 26969#define STRUCT_WINSIZE_IN_SYS_IOCTL 1 26970_ACEOF 26971 26972elif test $bash_cv_struct_winsize_header = termios_h; then 26973 { $as_echo "$as_me:$LINENO: result: termios.h" >&5 26974$as_echo "termios.h" >&6; } 26975 cat >>confdefs.h <<\_ACEOF 26976#define STRUCT_WINSIZE_IN_TERMIOS 1 26977_ACEOF 26978 26979else 26980 { $as_echo "$as_me:$LINENO: result: not found" >&5 26981$as_echo "not found" >&6; } 26982fi 26983 26984{ $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5 26985$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } 26986if test "${bash_cv_struct_timeval+set}" = set; then 26987 $as_echo_n "(cached) " >&6 26988else 26989 26990cat >conftest.$ac_ext <<_ACEOF 26991/* confdefs.h. */ 26992_ACEOF 26993cat confdefs.h >>conftest.$ac_ext 26994cat >>conftest.$ac_ext <<_ACEOF 26995/* end confdefs.h. */ 26996#include <sys/time.h> 26997 26998_ACEOF 26999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27000 $EGREP "struct timeval" >/dev/null 2>&1; then 27001 bash_cv_struct_timeval=yes 27002else 27003 cat >conftest.$ac_ext <<_ACEOF 27004/* confdefs.h. */ 27005_ACEOF 27006cat confdefs.h >>conftest.$ac_ext 27007cat >>conftest.$ac_ext <<_ACEOF 27008/* end confdefs.h. */ 27009#include <time.h> 27010 27011_ACEOF 27012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27013 $EGREP "struct timeval" >/dev/null 2>&1; then 27014 bash_cv_struct_timeval=yes 27015else 27016 bash_cv_struct_timeval=no 27017fi 27018rm -f conftest* 27019 27020fi 27021rm -f conftest* 27022 27023 27024fi 27025 27026{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5 27027$as_echo "$bash_cv_struct_timeval" >&6; } 27028if test $bash_cv_struct_timeval = yes; then 27029 cat >>confdefs.h <<\_ACEOF 27030#define HAVE_TIMEVAL 1 27031_ACEOF 27032 27033fi 27034 27035{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 27036$as_echo_n "checking for struct stat.st_blocks... " >&6; } 27037if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then 27038 $as_echo_n "(cached) " >&6 27039else 27040 cat >conftest.$ac_ext <<_ACEOF 27041/* confdefs.h. */ 27042_ACEOF 27043cat confdefs.h >>conftest.$ac_ext 27044cat >>conftest.$ac_ext <<_ACEOF 27045/* end confdefs.h. */ 27046$ac_includes_default 27047int 27048main () 27049{ 27050static struct stat ac_aggr; 27051if (ac_aggr.st_blocks) 27052return 0; 27053 ; 27054 return 0; 27055} 27056_ACEOF 27057rm -f conftest.$ac_objext 27058if { (ac_try="$ac_compile" 27059case "(($ac_try" in 27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27061 *) ac_try_echo=$ac_try;; 27062esac 27063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27064$as_echo "$ac_try_echo") >&5 27065 (eval "$ac_compile") 2>conftest.er1 27066 ac_status=$? 27067 grep -v '^ *+' conftest.er1 >conftest.err 27068 rm -f conftest.er1 27069 cat conftest.err >&5 27070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27071 (exit $ac_status); } && { 27072 test -z "$ac_c_werror_flag" || 27073 test ! -s conftest.err 27074 } && test -s conftest.$ac_objext; then 27075 ac_cv_member_struct_stat_st_blocks=yes 27076else 27077 $as_echo "$as_me: failed program was:" >&5 27078sed 's/^/| /' conftest.$ac_ext >&5 27079 27080 cat >conftest.$ac_ext <<_ACEOF 27081/* confdefs.h. */ 27082_ACEOF 27083cat confdefs.h >>conftest.$ac_ext 27084cat >>conftest.$ac_ext <<_ACEOF 27085/* end confdefs.h. */ 27086$ac_includes_default 27087int 27088main () 27089{ 27090static struct stat ac_aggr; 27091if (sizeof ac_aggr.st_blocks) 27092return 0; 27093 ; 27094 return 0; 27095} 27096_ACEOF 27097rm -f conftest.$ac_objext 27098if { (ac_try="$ac_compile" 27099case "(($ac_try" in 27100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27101 *) ac_try_echo=$ac_try;; 27102esac 27103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27104$as_echo "$ac_try_echo") >&5 27105 (eval "$ac_compile") 2>conftest.er1 27106 ac_status=$? 27107 grep -v '^ *+' conftest.er1 >conftest.err 27108 rm -f conftest.er1 27109 cat conftest.err >&5 27110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27111 (exit $ac_status); } && { 27112 test -z "$ac_c_werror_flag" || 27113 test ! -s conftest.err 27114 } && test -s conftest.$ac_objext; then 27115 ac_cv_member_struct_stat_st_blocks=yes 27116else 27117 $as_echo "$as_me: failed program was:" >&5 27118sed 's/^/| /' conftest.$ac_ext >&5 27119 27120 ac_cv_member_struct_stat_st_blocks=no 27121fi 27122 27123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27124fi 27125 27126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27127fi 27128{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 27129$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } 27130if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then 27131 27132cat >>confdefs.h <<_ACEOF 27133#define HAVE_STRUCT_STAT_ST_BLOCKS 1 27134_ACEOF 27135 27136 27137fi 27138 27139{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 27140$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 27141if test "${ac_cv_struct_tm+set}" = set; then 27142 $as_echo_n "(cached) " >&6 27143else 27144 cat >conftest.$ac_ext <<_ACEOF 27145/* confdefs.h. */ 27146_ACEOF 27147cat confdefs.h >>conftest.$ac_ext 27148cat >>conftest.$ac_ext <<_ACEOF 27149/* end confdefs.h. */ 27150#include <sys/types.h> 27151#include <time.h> 27152 27153int 27154main () 27155{ 27156struct tm tm; 27157 int *p = &tm.tm_sec; 27158 return !p; 27159 ; 27160 return 0; 27161} 27162_ACEOF 27163rm -f conftest.$ac_objext 27164if { (ac_try="$ac_compile" 27165case "(($ac_try" in 27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27167 *) ac_try_echo=$ac_try;; 27168esac 27169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27170$as_echo "$ac_try_echo") >&5 27171 (eval "$ac_compile") 2>conftest.er1 27172 ac_status=$? 27173 grep -v '^ *+' conftest.er1 >conftest.err 27174 rm -f conftest.er1 27175 cat conftest.err >&5 27176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27177 (exit $ac_status); } && { 27178 test -z "$ac_c_werror_flag" || 27179 test ! -s conftest.err 27180 } && test -s conftest.$ac_objext; then 27181 ac_cv_struct_tm=time.h 27182else 27183 $as_echo "$as_me: failed program was:" >&5 27184sed 's/^/| /' conftest.$ac_ext >&5 27185 27186 ac_cv_struct_tm=sys/time.h 27187fi 27188 27189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27190fi 27191{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 27192$as_echo "$ac_cv_struct_tm" >&6; } 27193if test $ac_cv_struct_tm = sys/time.h; then 27194 27195cat >>confdefs.h <<\_ACEOF 27196#define TM_IN_SYS_TIME 1 27197_ACEOF 27198 27199fi 27200 27201{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 27202$as_echo_n "checking for struct tm.tm_zone... " >&6; } 27203if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 27204 $as_echo_n "(cached) " >&6 27205else 27206 cat >conftest.$ac_ext <<_ACEOF 27207/* confdefs.h. */ 27208_ACEOF 27209cat confdefs.h >>conftest.$ac_ext 27210cat >>conftest.$ac_ext <<_ACEOF 27211/* end confdefs.h. */ 27212#include <sys/types.h> 27213#include <$ac_cv_struct_tm> 27214 27215 27216int 27217main () 27218{ 27219static struct tm ac_aggr; 27220if (ac_aggr.tm_zone) 27221return 0; 27222 ; 27223 return 0; 27224} 27225_ACEOF 27226rm -f conftest.$ac_objext 27227if { (ac_try="$ac_compile" 27228case "(($ac_try" in 27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27230 *) ac_try_echo=$ac_try;; 27231esac 27232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27233$as_echo "$ac_try_echo") >&5 27234 (eval "$ac_compile") 2>conftest.er1 27235 ac_status=$? 27236 grep -v '^ *+' conftest.er1 >conftest.err 27237 rm -f conftest.er1 27238 cat conftest.err >&5 27239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27240 (exit $ac_status); } && { 27241 test -z "$ac_c_werror_flag" || 27242 test ! -s conftest.err 27243 } && test -s conftest.$ac_objext; then 27244 ac_cv_member_struct_tm_tm_zone=yes 27245else 27246 $as_echo "$as_me: failed program was:" >&5 27247sed 's/^/| /' conftest.$ac_ext >&5 27248 27249 cat >conftest.$ac_ext <<_ACEOF 27250/* confdefs.h. */ 27251_ACEOF 27252cat confdefs.h >>conftest.$ac_ext 27253cat >>conftest.$ac_ext <<_ACEOF 27254/* end confdefs.h. */ 27255#include <sys/types.h> 27256#include <$ac_cv_struct_tm> 27257 27258 27259int 27260main () 27261{ 27262static struct tm ac_aggr; 27263if (sizeof ac_aggr.tm_zone) 27264return 0; 27265 ; 27266 return 0; 27267} 27268_ACEOF 27269rm -f conftest.$ac_objext 27270if { (ac_try="$ac_compile" 27271case "(($ac_try" in 27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27273 *) ac_try_echo=$ac_try;; 27274esac 27275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27276$as_echo "$ac_try_echo") >&5 27277 (eval "$ac_compile") 2>conftest.er1 27278 ac_status=$? 27279 grep -v '^ *+' conftest.er1 >conftest.err 27280 rm -f conftest.er1 27281 cat conftest.err >&5 27282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27283 (exit $ac_status); } && { 27284 test -z "$ac_c_werror_flag" || 27285 test ! -s conftest.err 27286 } && test -s conftest.$ac_objext; then 27287 ac_cv_member_struct_tm_tm_zone=yes 27288else 27289 $as_echo "$as_me: failed program was:" >&5 27290sed 's/^/| /' conftest.$ac_ext >&5 27291 27292 ac_cv_member_struct_tm_tm_zone=no 27293fi 27294 27295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27296fi 27297 27298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27299fi 27300{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 27301$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } 27302if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then 27303 27304cat >>confdefs.h <<_ACEOF 27305#define HAVE_STRUCT_TM_TM_ZONE 1 27306_ACEOF 27307 27308 27309fi 27310 27311if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 27312 27313cat >>confdefs.h <<\_ACEOF 27314#define HAVE_TM_ZONE 1 27315_ACEOF 27316 27317else 27318 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 27319$as_echo_n "checking whether tzname is declared... " >&6; } 27320if test "${ac_cv_have_decl_tzname+set}" = set; then 27321 $as_echo_n "(cached) " >&6 27322else 27323 cat >conftest.$ac_ext <<_ACEOF 27324/* confdefs.h. */ 27325_ACEOF 27326cat confdefs.h >>conftest.$ac_ext 27327cat >>conftest.$ac_ext <<_ACEOF 27328/* end confdefs.h. */ 27329#include <time.h> 27330 27331int 27332main () 27333{ 27334#ifndef tzname 27335 (void) tzname; 27336#endif 27337 27338 ; 27339 return 0; 27340} 27341_ACEOF 27342rm -f conftest.$ac_objext 27343if { (ac_try="$ac_compile" 27344case "(($ac_try" in 27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27346 *) ac_try_echo=$ac_try;; 27347esac 27348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27349$as_echo "$ac_try_echo") >&5 27350 (eval "$ac_compile") 2>conftest.er1 27351 ac_status=$? 27352 grep -v '^ *+' conftest.er1 >conftest.err 27353 rm -f conftest.er1 27354 cat conftest.err >&5 27355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27356 (exit $ac_status); } && { 27357 test -z "$ac_c_werror_flag" || 27358 test ! -s conftest.err 27359 } && test -s conftest.$ac_objext; then 27360 ac_cv_have_decl_tzname=yes 27361else 27362 $as_echo "$as_me: failed program was:" >&5 27363sed 's/^/| /' conftest.$ac_ext >&5 27364 27365 ac_cv_have_decl_tzname=no 27366fi 27367 27368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27369fi 27370{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 27371$as_echo "$ac_cv_have_decl_tzname" >&6; } 27372if test "x$ac_cv_have_decl_tzname" = x""yes; then 27373 27374cat >>confdefs.h <<_ACEOF 27375#define HAVE_DECL_TZNAME 1 27376_ACEOF 27377 27378 27379else 27380 cat >>confdefs.h <<_ACEOF 27381#define HAVE_DECL_TZNAME 0 27382_ACEOF 27383 27384 27385fi 27386 27387 27388 { $as_echo "$as_me:$LINENO: checking for tzname" >&5 27389$as_echo_n "checking for tzname... " >&6; } 27390if test "${ac_cv_var_tzname+set}" = set; then 27391 $as_echo_n "(cached) " >&6 27392else 27393 cat >conftest.$ac_ext <<_ACEOF 27394/* confdefs.h. */ 27395_ACEOF 27396cat confdefs.h >>conftest.$ac_ext 27397cat >>conftest.$ac_ext <<_ACEOF 27398/* end confdefs.h. */ 27399#include <time.h> 27400#if !HAVE_DECL_TZNAME 27401extern char *tzname[]; 27402#endif 27403 27404int 27405main () 27406{ 27407return tzname[0][0]; 27408 ; 27409 return 0; 27410} 27411_ACEOF 27412rm -f conftest.$ac_objext conftest$ac_exeext 27413if { (ac_try="$ac_link" 27414case "(($ac_try" in 27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27416 *) ac_try_echo=$ac_try;; 27417esac 27418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27419$as_echo "$ac_try_echo") >&5 27420 (eval "$ac_link") 2>conftest.er1 27421 ac_status=$? 27422 grep -v '^ *+' conftest.er1 >conftest.err 27423 rm -f conftest.er1 27424 cat conftest.err >&5 27425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27426 (exit $ac_status); } && { 27427 test -z "$ac_c_werror_flag" || 27428 test ! -s conftest.err 27429 } && test -s conftest$ac_exeext && { 27430 test "$cross_compiling" = yes || 27431 $as_test_x conftest$ac_exeext 27432 }; then 27433 ac_cv_var_tzname=yes 27434else 27435 $as_echo "$as_me: failed program was:" >&5 27436sed 's/^/| /' conftest.$ac_ext >&5 27437 27438 ac_cv_var_tzname=no 27439fi 27440 27441rm -rf conftest.dSYM 27442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27443 conftest$ac_exeext conftest.$ac_ext 27444fi 27445{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 27446$as_echo "$ac_cv_var_tzname" >&6; } 27447 if test $ac_cv_var_tzname = yes; then 27448 27449cat >>confdefs.h <<\_ACEOF 27450#define HAVE_TZNAME 1 27451_ACEOF 27452 27453 fi 27454fi 27455 27456{ $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5 27457$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } 27458if test "${bash_cv_struct_timezone+set}" = set; then 27459 $as_echo_n "(cached) " >&6 27460else 27461 27462cat >conftest.$ac_ext <<_ACEOF 27463/* confdefs.h. */ 27464_ACEOF 27465cat confdefs.h >>conftest.$ac_ext 27466cat >>conftest.$ac_ext <<_ACEOF 27467/* end confdefs.h. */ 27468#include <sys/time.h> 27469 27470_ACEOF 27471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27472 $EGREP "struct timezone" >/dev/null 2>&1; then 27473 bash_cv_struct_timezone=yes 27474else 27475 cat >conftest.$ac_ext <<_ACEOF 27476/* confdefs.h. */ 27477_ACEOF 27478cat confdefs.h >>conftest.$ac_ext 27479cat >>conftest.$ac_ext <<_ACEOF 27480/* end confdefs.h. */ 27481#include <time.h> 27482 27483_ACEOF 27484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27485 $EGREP "struct timezone" >/dev/null 2>&1; then 27486 bash_cv_struct_timezone=yes 27487else 27488 bash_cv_struct_timezone=no 27489fi 27490rm -f conftest* 27491 27492fi 27493rm -f conftest* 27494 27495 27496fi 27497 27498{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5 27499$as_echo "$bash_cv_struct_timezone" >&6; } 27500if test $bash_cv_struct_timezone = yes; then 27501 cat >>confdefs.h <<\_ACEOF 27502#define HAVE_STRUCT_TIMEZONE 1 27503_ACEOF 27504 27505fi 27506 27507 27508{ $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5 27509$as_echo_n "checking for the existence of strsignal... " >&6; } 27510if test "${bash_cv_have_strsignal+set}" = set; then 27511 $as_echo_n "(cached) " >&6 27512else 27513 cat >conftest.$ac_ext <<_ACEOF 27514/* confdefs.h. */ 27515_ACEOF 27516cat confdefs.h >>conftest.$ac_ext 27517cat >>conftest.$ac_ext <<_ACEOF 27518/* end confdefs.h. */ 27519#include <sys/types.h> 27520#include <signal.h> 27521int 27522main () 27523{ 27524char *s = (char *)strsignal(2); 27525 ; 27526 return 0; 27527} 27528_ACEOF 27529rm -f conftest.$ac_objext conftest$ac_exeext 27530if { (ac_try="$ac_link" 27531case "(($ac_try" in 27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27533 *) ac_try_echo=$ac_try;; 27534esac 27535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27536$as_echo "$ac_try_echo") >&5 27537 (eval "$ac_link") 2>conftest.er1 27538 ac_status=$? 27539 grep -v '^ *+' conftest.er1 >conftest.err 27540 rm -f conftest.er1 27541 cat conftest.err >&5 27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27543 (exit $ac_status); } && { 27544 test -z "$ac_c_werror_flag" || 27545 test ! -s conftest.err 27546 } && test -s conftest$ac_exeext && { 27547 test "$cross_compiling" = yes || 27548 $as_test_x conftest$ac_exeext 27549 }; then 27550 bash_cv_have_strsignal=yes 27551else 27552 $as_echo "$as_me: failed program was:" >&5 27553sed 's/^/| /' conftest.$ac_ext >&5 27554 27555 bash_cv_have_strsignal=no 27556fi 27557 27558rm -rf conftest.dSYM 27559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27560 conftest$ac_exeext conftest.$ac_ext 27561fi 27562 27563{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5 27564$as_echo "$bash_cv_have_strsignal" >&6; } 27565if test $bash_cv_have_strsignal = yes; then 27566cat >>confdefs.h <<\_ACEOF 27567#define HAVE_STRSIGNAL 1 27568_ACEOF 27569 27570fi 27571 27572{ $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5 27573$as_echo_n "checking if opendir() opens non-directories... " >&6; } 27574if test "${bash_cv_opendir_not_robust+set}" = set; then 27575 $as_echo_n "(cached) " >&6 27576else 27577 if test "$cross_compiling" = yes; then 27578 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 27579$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} 27580 bash_cv_opendir_not_robust=no 27581 27582else 27583 cat >conftest.$ac_ext <<_ACEOF 27584/* confdefs.h. */ 27585_ACEOF 27586cat confdefs.h >>conftest.$ac_ext 27587cat >>conftest.$ac_ext <<_ACEOF 27588/* end confdefs.h. */ 27589 27590#include <stdio.h> 27591#include <sys/types.h> 27592#include <fcntl.h> 27593#ifdef HAVE_UNISTD_H 27594# include <unistd.h> 27595#endif /* HAVE_UNISTD_H */ 27596#if defined(HAVE_DIRENT_H) 27597# include <dirent.h> 27598#else 27599# define dirent direct 27600# ifdef HAVE_SYS_NDIR_H 27601# include <sys/ndir.h> 27602# endif /* SYSNDIR */ 27603# ifdef HAVE_SYS_DIR_H 27604# include <sys/dir.h> 27605# endif /* SYSDIR */ 27606# ifdef HAVE_NDIR_H 27607# include <ndir.h> 27608# endif 27609#endif /* HAVE_DIRENT_H */ 27610main() 27611{ 27612DIR *dir; 27613int fd, err; 27614err = mkdir("bash-aclocal", 0700); 27615if (err < 0) { 27616 perror("mkdir"); 27617 exit(1); 27618} 27619unlink("bash-aclocal/not_a_directory"); 27620fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); 27621write(fd, "\n", 1); 27622close(fd); 27623dir = opendir("bash-aclocal/not_a_directory"); 27624unlink("bash-aclocal/not_a_directory"); 27625rmdir("bash-aclocal"); 27626exit (dir == 0); 27627} 27628_ACEOF 27629rm -f conftest$ac_exeext 27630if { (ac_try="$ac_link" 27631case "(($ac_try" in 27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27633 *) ac_try_echo=$ac_try;; 27634esac 27635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27636$as_echo "$ac_try_echo") >&5 27637 (eval "$ac_link") 2>&5 27638 ac_status=$? 27639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27641 { (case "(($ac_try" in 27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27643 *) ac_try_echo=$ac_try;; 27644esac 27645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27646$as_echo "$ac_try_echo") >&5 27647 (eval "$ac_try") 2>&5 27648 ac_status=$? 27649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27650 (exit $ac_status); }; }; then 27651 bash_cv_opendir_not_robust=yes 27652else 27653 $as_echo "$as_me: program exited with status $ac_status" >&5 27654$as_echo "$as_me: failed program was:" >&5 27655sed 's/^/| /' conftest.$ac_ext >&5 27656 27657( exit $ac_status ) 27658bash_cv_opendir_not_robust=no 27659fi 27660rm -rf conftest.dSYM 27661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27662fi 27663 27664 27665fi 27666 27667{ $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5 27668$as_echo "$bash_cv_opendir_not_robust" >&6; } 27669if test $bash_cv_opendir_not_robust = yes; then 27670cat >>confdefs.h <<\_ACEOF 27671#define OPENDIR_NOT_ROBUST 1 27672_ACEOF 27673 27674fi 27675 27676{ $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5 27677$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } 27678if test "${bash_cv_ulimit_maxfds+set}" = set; then 27679 $as_echo_n "(cached) " >&6 27680else 27681 if test "$cross_compiling" = yes; then 27682 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 27683$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} 27684 bash_cv_ulimit_maxfds=no 27685 27686else 27687 cat >conftest.$ac_ext <<_ACEOF 27688/* confdefs.h. */ 27689_ACEOF 27690cat confdefs.h >>conftest.$ac_ext 27691cat >>conftest.$ac_ext <<_ACEOF 27692/* end confdefs.h. */ 27693 27694main() 27695{ 27696long maxfds = ulimit(4, 0L); 27697exit (maxfds == -1L); 27698} 27699 27700_ACEOF 27701rm -f conftest$ac_exeext 27702if { (ac_try="$ac_link" 27703case "(($ac_try" in 27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27705 *) ac_try_echo=$ac_try;; 27706esac 27707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27708$as_echo "$ac_try_echo") >&5 27709 (eval "$ac_link") 2>&5 27710 ac_status=$? 27711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27713 { (case "(($ac_try" in 27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27715 *) ac_try_echo=$ac_try;; 27716esac 27717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27718$as_echo "$ac_try_echo") >&5 27719 (eval "$ac_try") 2>&5 27720 ac_status=$? 27721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27722 (exit $ac_status); }; }; then 27723 bash_cv_ulimit_maxfds=yes 27724else 27725 $as_echo "$as_me: program exited with status $ac_status" >&5 27726$as_echo "$as_me: failed program was:" >&5 27727sed 's/^/| /' conftest.$ac_ext >&5 27728 27729( exit $ac_status ) 27730bash_cv_ulimit_maxfds=no 27731fi 27732rm -rf conftest.dSYM 27733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27734fi 27735 27736 27737fi 27738 27739{ $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5 27740$as_echo "$bash_cv_ulimit_maxfds" >&6; } 27741if test $bash_cv_ulimit_maxfds = yes; then 27742cat >>confdefs.h <<\_ACEOF 27743#define ULIMIT_MAXFDS 1 27744_ACEOF 27745 27746fi 27747 27748 27749 27750 27751 27752 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5 27766$as_echo_n "checking whether fpurge is declared... " >&6; } 27767if test "${ac_cv_have_decl_fpurge+set}" = set; then 27768 $as_echo_n "(cached) " >&6 27769else 27770 cat >conftest.$ac_ext <<_ACEOF 27771/* confdefs.h. */ 27772_ACEOF 27773cat confdefs.h >>conftest.$ac_ext 27774cat >>conftest.$ac_ext <<_ACEOF 27775/* end confdefs.h. */ 27776#include <stdio.h> 27777 27778int 27779main () 27780{ 27781#ifndef fpurge 27782 (void) fpurge; 27783#endif 27784 27785 ; 27786 return 0; 27787} 27788_ACEOF 27789rm -f conftest.$ac_objext 27790if { (ac_try="$ac_compile" 27791case "(($ac_try" in 27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27793 *) ac_try_echo=$ac_try;; 27794esac 27795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27796$as_echo "$ac_try_echo") >&5 27797 (eval "$ac_compile") 2>conftest.er1 27798 ac_status=$? 27799 grep -v '^ *+' conftest.er1 >conftest.err 27800 rm -f conftest.er1 27801 cat conftest.err >&5 27802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27803 (exit $ac_status); } && { 27804 test -z "$ac_c_werror_flag" || 27805 test ! -s conftest.err 27806 } && test -s conftest.$ac_objext; then 27807 ac_cv_have_decl_fpurge=yes 27808else 27809 $as_echo "$as_me: failed program was:" >&5 27810sed 's/^/| /' conftest.$ac_ext >&5 27811 27812 ac_cv_have_decl_fpurge=no 27813fi 27814 27815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27816fi 27817{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5 27818$as_echo "$ac_cv_have_decl_fpurge" >&6; } 27819if test "x$ac_cv_have_decl_fpurge" = x""yes; then 27820 27821cat >>confdefs.h <<_ACEOF 27822#define HAVE_DECL_FPURGE 1 27823_ACEOF 27824 27825 27826else 27827 cat >>confdefs.h <<_ACEOF 27828#define HAVE_DECL_FPURGE 0 27829_ACEOF 27830 27831 27832fi 27833 27834 27835 27836{ $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5 27837$as_echo_n "checking to see if getenv can be redefined... " >&6; } 27838if test "${bash_cv_getenv_redef+set}" = set; then 27839 $as_echo_n "(cached) " >&6 27840else 27841 if test "$cross_compiling" = yes; then 27842 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 27843$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} 27844 bash_cv_getenv_redef=yes 27845 27846else 27847 cat >conftest.$ac_ext <<_ACEOF 27848/* confdefs.h. */ 27849_ACEOF 27850cat confdefs.h >>conftest.$ac_ext 27851cat >>conftest.$ac_ext <<_ACEOF 27852/* end confdefs.h. */ 27853 27854#ifdef HAVE_UNISTD_H 27855# include <unistd.h> 27856#endif 27857#ifndef __STDC__ 27858# ifndef const 27859# define const 27860# endif 27861#endif 27862char * 27863getenv (name) 27864#if defined (__linux__) || defined (__bsdi__) || defined (convex) 27865 const char *name; 27866#else 27867 char const *name; 27868#endif /* !__linux__ && !__bsdi__ && !convex */ 27869{ 27870return "42"; 27871} 27872main() 27873{ 27874char *s; 27875/* The next allows this program to run, but does not allow bash to link 27876 when it redefines getenv. I'm not really interested in figuring out 27877 why not. */ 27878#if defined (NeXT) 27879exit(1); 27880#endif 27881s = getenv("ABCDE"); 27882exit(s == 0); /* force optimizer to leave getenv in */ 27883} 27884 27885_ACEOF 27886rm -f conftest$ac_exeext 27887if { (ac_try="$ac_link" 27888case "(($ac_try" in 27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27890 *) ac_try_echo=$ac_try;; 27891esac 27892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27893$as_echo "$ac_try_echo") >&5 27894 (eval "$ac_link") 2>&5 27895 ac_status=$? 27896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27898 { (case "(($ac_try" in 27899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27900 *) ac_try_echo=$ac_try;; 27901esac 27902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27903$as_echo "$ac_try_echo") >&5 27904 (eval "$ac_try") 2>&5 27905 ac_status=$? 27906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27907 (exit $ac_status); }; }; then 27908 bash_cv_getenv_redef=yes 27909else 27910 $as_echo "$as_me: program exited with status $ac_status" >&5 27911$as_echo "$as_me: failed program was:" >&5 27912sed 's/^/| /' conftest.$ac_ext >&5 27913 27914( exit $ac_status ) 27915bash_cv_getenv_redef=no 27916fi 27917rm -rf conftest.dSYM 27918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27919fi 27920 27921 27922fi 27923 27924{ $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5 27925$as_echo "$bash_cv_getenv_redef" >&6; } 27926if test $bash_cv_getenv_redef = yes; then 27927cat >>confdefs.h <<\_ACEOF 27928#define CAN_REDEFINE_GETENV 1 27929_ACEOF 27930 27931fi 27932 27933if test "$ac_cv_func_getcwd" = "yes"; then 27934{ $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5 27935$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } 27936if test "${bash_cv_getcwd_malloc+set}" = set; then 27937 $as_echo_n "(cached) " >&6 27938else 27939 if test "$cross_compiling" = yes; then 27940 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 27941$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} 27942 bash_cv_getcwd_malloc=no 27943 27944else 27945 cat >conftest.$ac_ext <<_ACEOF 27946/* confdefs.h. */ 27947_ACEOF 27948cat confdefs.h >>conftest.$ac_ext 27949cat >>conftest.$ac_ext <<_ACEOF 27950/* end confdefs.h. */ 27951 27952#include <stdio.h> 27953#ifdef HAVE_UNISTD_H 27954#include <unistd.h> 27955#endif 27956 27957main() 27958{ 27959 char *xpwd; 27960 xpwd = getcwd(0, 0); 27961 exit (xpwd == 0); 27962} 27963 27964_ACEOF 27965rm -f conftest$ac_exeext 27966if { (ac_try="$ac_link" 27967case "(($ac_try" in 27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27969 *) ac_try_echo=$ac_try;; 27970esac 27971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27972$as_echo "$ac_try_echo") >&5 27973 (eval "$ac_link") 2>&5 27974 ac_status=$? 27975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27977 { (case "(($ac_try" in 27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27979 *) ac_try_echo=$ac_try;; 27980esac 27981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 27982$as_echo "$ac_try_echo") >&5 27983 (eval "$ac_try") 2>&5 27984 ac_status=$? 27985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27986 (exit $ac_status); }; }; then 27987 bash_cv_getcwd_malloc=yes 27988else 27989 $as_echo "$as_me: program exited with status $ac_status" >&5 27990$as_echo "$as_me: failed program was:" >&5 27991sed 's/^/| /' conftest.$ac_ext >&5 27992 27993( exit $ac_status ) 27994bash_cv_getcwd_malloc=no 27995fi 27996rm -rf conftest.dSYM 27997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27998fi 27999 28000 28001fi 28002 28003{ $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5 28004$as_echo "$bash_cv_getcwd_malloc" >&6; } 28005if test $bash_cv_getcwd_malloc = no; then 28006cat >>confdefs.h <<\_ACEOF 28007#define GETCWD_BROKEN 1 28008_ACEOF 28009 28010case " $LIBOBJS " in 28011 *" getcwd.$ac_objext "* ) ;; 28012 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 28013 ;; 28014esac 28015 28016fi 28017 28018fi 28019 28020{ $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 28021$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } 28022if test "${bash_cv_func_sigsetjmp+set}" = set; then 28023 $as_echo_n "(cached) " >&6 28024else 28025 if test "$cross_compiling" = yes; then 28026 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 28027$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} 28028 bash_cv_func_sigsetjmp=missing 28029 28030else 28031 cat >conftest.$ac_ext <<_ACEOF 28032/* confdefs.h. */ 28033_ACEOF 28034cat confdefs.h >>conftest.$ac_ext 28035cat >>conftest.$ac_ext <<_ACEOF 28036/* end confdefs.h. */ 28037 28038#ifdef HAVE_UNISTD_H 28039#include <unistd.h> 28040#endif 28041#include <sys/types.h> 28042#include <signal.h> 28043#include <setjmp.h> 28044 28045main() 28046{ 28047#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) 28048exit (1); 28049#else 28050 28051int code; 28052sigset_t set, oset; 28053sigjmp_buf xx; 28054 28055/* get the mask */ 28056sigemptyset(&set); 28057sigemptyset(&oset); 28058sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); 28059sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); 28060 28061/* save it */ 28062code = sigsetjmp(xx, 1); 28063if (code) 28064 exit(0); /* could get sigmask and compare to oset here. */ 28065 28066/* change it */ 28067sigaddset(&set, SIGINT); 28068sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); 28069 28070/* and siglongjmp */ 28071siglongjmp(xx, 10); 28072exit(1); 28073#endif 28074} 28075_ACEOF 28076rm -f conftest$ac_exeext 28077if { (ac_try="$ac_link" 28078case "(($ac_try" in 28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28080 *) ac_try_echo=$ac_try;; 28081esac 28082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28083$as_echo "$ac_try_echo") >&5 28084 (eval "$ac_link") 2>&5 28085 ac_status=$? 28086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28088 { (case "(($ac_try" in 28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28090 *) ac_try_echo=$ac_try;; 28091esac 28092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28093$as_echo "$ac_try_echo") >&5 28094 (eval "$ac_try") 2>&5 28095 ac_status=$? 28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28097 (exit $ac_status); }; }; then 28098 bash_cv_func_sigsetjmp=present 28099else 28100 $as_echo "$as_me: program exited with status $ac_status" >&5 28101$as_echo "$as_me: failed program was:" >&5 28102sed 's/^/| /' conftest.$ac_ext >&5 28103 28104( exit $ac_status ) 28105bash_cv_func_sigsetjmp=missing 28106fi 28107rm -rf conftest.dSYM 28108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28109fi 28110 28111 28112fi 28113 28114{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 28115$as_echo "$bash_cv_func_sigsetjmp" >&6; } 28116if test $bash_cv_func_sigsetjmp = present; then 28117cat >>confdefs.h <<\_ACEOF 28118#define HAVE_POSIX_SIGSETJMP 1 28119_ACEOF 28120 28121fi 28122 28123 28124{ $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 28125$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } 28126if test "${bash_cv_func_strcoll_broken+set}" = set; then 28127 $as_echo_n "(cached) " >&6 28128else 28129 if test "$cross_compiling" = yes; then 28130 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 28131$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} 28132 bash_cv_func_strcoll_broken=no 28133 28134else 28135 cat >conftest.$ac_ext <<_ACEOF 28136/* confdefs.h. */ 28137_ACEOF 28138cat confdefs.h >>conftest.$ac_ext 28139cat >>conftest.$ac_ext <<_ACEOF 28140/* end confdefs.h. */ 28141 28142#include <stdio.h> 28143#if defined (HAVE_LOCALE_H) 28144#include <locale.h> 28145#endif 28146 28147main(c, v) 28148int c; 28149char *v[]; 28150{ 28151 int r1, r2; 28152 char *deflocale, *defcoll; 28153 28154#ifdef HAVE_SETLOCALE 28155 deflocale = setlocale(LC_ALL, ""); 28156 defcoll = setlocale(LC_COLLATE, ""); 28157#endif 28158 28159#ifdef HAVE_STRCOLL 28160 /* These two values are taken from tests/glob-test. */ 28161 r1 = strcoll("abd", "aXd"); 28162#else 28163 r1 = 0; 28164#endif 28165 r2 = strcmp("abd", "aXd"); 28166 28167 /* These two should both be greater than 0. It is permissible for 28168 a system to return different values, as long as the sign is the 28169 same. */ 28170 28171 /* Exit with 1 (failure) if these two values are both > 0, since 28172 this tests whether strcoll(3) is broken with respect to strcmp(3) 28173 in the default locale. */ 28174 exit (r1 > 0 && r2 > 0); 28175} 28176 28177_ACEOF 28178rm -f conftest$ac_exeext 28179if { (ac_try="$ac_link" 28180case "(($ac_try" in 28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28182 *) ac_try_echo=$ac_try;; 28183esac 28184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28185$as_echo "$ac_try_echo") >&5 28186 (eval "$ac_link") 2>&5 28187 ac_status=$? 28188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28190 { (case "(($ac_try" in 28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28192 *) ac_try_echo=$ac_try;; 28193esac 28194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28195$as_echo "$ac_try_echo") >&5 28196 (eval "$ac_try") 2>&5 28197 ac_status=$? 28198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28199 (exit $ac_status); }; }; then 28200 bash_cv_func_strcoll_broken=yes 28201else 28202 $as_echo "$as_me: program exited with status $ac_status" >&5 28203$as_echo "$as_me: failed program was:" >&5 28204sed 's/^/| /' conftest.$ac_ext >&5 28205 28206( exit $ac_status ) 28207bash_cv_func_strcoll_broken=no 28208fi 28209rm -rf conftest.dSYM 28210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28211fi 28212 28213 28214fi 28215 28216{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 28217$as_echo "$bash_cv_func_strcoll_broken" >&6; } 28218if test $bash_cv_func_strcoll_broken = yes; then 28219cat >>confdefs.h <<\_ACEOF 28220#define STRCOLL_BROKEN 1 28221_ACEOF 28222 28223fi 28224 28225 28226 28227if test "$ac_cv_func_putenv" = "yes"; then 28228 28229 28230 28231{ $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5 28232$as_echo_n "checking for standard-conformant putenv declaration... " >&6; } 28233if test "${bash_cv_std_putenv+set}" = set; then 28234 $as_echo_n "(cached) " >&6 28235else 28236 cat >conftest.$ac_ext <<_ACEOF 28237/* confdefs.h. */ 28238_ACEOF 28239cat confdefs.h >>conftest.$ac_ext 28240cat >>conftest.$ac_ext <<_ACEOF 28241/* end confdefs.h. */ 28242 28243#if STDC_HEADERS 28244#include <stdlib.h> 28245#include <stddef.h> 28246#endif 28247#ifndef __STDC__ 28248# ifndef const 28249# define const 28250# endif 28251#endif 28252#ifdef PROTOTYPES 28253extern int putenv (char *); 28254#else 28255extern int putenv (); 28256#endif 28257 28258int 28259main () 28260{ 28261return (putenv == 0); 28262 ; 28263 return 0; 28264} 28265_ACEOF 28266rm -f conftest.$ac_objext conftest$ac_exeext 28267if { (ac_try="$ac_link" 28268case "(($ac_try" in 28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28270 *) ac_try_echo=$ac_try;; 28271esac 28272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28273$as_echo "$ac_try_echo") >&5 28274 (eval "$ac_link") 2>conftest.er1 28275 ac_status=$? 28276 grep -v '^ *+' conftest.er1 >conftest.err 28277 rm -f conftest.er1 28278 cat conftest.err >&5 28279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28280 (exit $ac_status); } && { 28281 test -z "$ac_c_werror_flag" || 28282 test ! -s conftest.err 28283 } && test -s conftest$ac_exeext && { 28284 test "$cross_compiling" = yes || 28285 $as_test_x conftest$ac_exeext 28286 }; then 28287 bash_cv_std_putenv=yes 28288else 28289 $as_echo "$as_me: failed program was:" >&5 28290sed 's/^/| /' conftest.$ac_ext >&5 28291 28292 bash_cv_std_putenv=no 28293 28294fi 28295 28296rm -rf conftest.dSYM 28297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28298 conftest$ac_exeext conftest.$ac_ext 28299fi 28300{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5 28301$as_echo "$bash_cv_std_putenv" >&6; } 28302if test $bash_cv_std_putenv = yes; then 28303cat >>confdefs.h <<\_ACEOF 28304#define HAVE_STD_PUTENV 1 28305_ACEOF 28306 28307fi 28308 28309else 28310cat >>confdefs.h <<\_ACEOF 28311#define HAVE_STD_PUTENV 1 28312_ACEOF 28313 28314fi 28315if test "$ac_cv_func_unsetenv" = "yes"; then 28316 28317 28318 28319{ $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5 28320$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } 28321if test "${bash_cv_std_unsetenv+set}" = set; then 28322 $as_echo_n "(cached) " >&6 28323else 28324 cat >conftest.$ac_ext <<_ACEOF 28325/* confdefs.h. */ 28326_ACEOF 28327cat confdefs.h >>conftest.$ac_ext 28328cat >>conftest.$ac_ext <<_ACEOF 28329/* end confdefs.h. */ 28330 28331#if STDC_HEADERS 28332#include <stdlib.h> 28333#include <stddef.h> 28334#endif 28335#ifndef __STDC__ 28336# ifndef const 28337# define const 28338# endif 28339#endif 28340#ifdef PROTOTYPES 28341extern int unsetenv (const char *); 28342#else 28343extern int unsetenv (); 28344#endif 28345 28346int 28347main () 28348{ 28349return (unsetenv == 0); 28350 ; 28351 return 0; 28352} 28353_ACEOF 28354rm -f conftest.$ac_objext conftest$ac_exeext 28355if { (ac_try="$ac_link" 28356case "(($ac_try" in 28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28358 *) ac_try_echo=$ac_try;; 28359esac 28360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28361$as_echo "$ac_try_echo") >&5 28362 (eval "$ac_link") 2>conftest.er1 28363 ac_status=$? 28364 grep -v '^ *+' conftest.er1 >conftest.err 28365 rm -f conftest.er1 28366 cat conftest.err >&5 28367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28368 (exit $ac_status); } && { 28369 test -z "$ac_c_werror_flag" || 28370 test ! -s conftest.err 28371 } && test -s conftest$ac_exeext && { 28372 test "$cross_compiling" = yes || 28373 $as_test_x conftest$ac_exeext 28374 }; then 28375 bash_cv_std_unsetenv=yes 28376else 28377 $as_echo "$as_me: failed program was:" >&5 28378sed 's/^/| /' conftest.$ac_ext >&5 28379 28380 bash_cv_std_unsetenv=no 28381 28382fi 28383 28384rm -rf conftest.dSYM 28385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28386 conftest$ac_exeext conftest.$ac_ext 28387fi 28388{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5 28389$as_echo "$bash_cv_std_unsetenv" >&6; } 28390if test $bash_cv_std_unsetenv = yes; then 28391cat >>confdefs.h <<\_ACEOF 28392#define HAVE_STD_UNSETENV 1 28393_ACEOF 28394 28395fi 28396 28397else 28398cat >>confdefs.h <<\_ACEOF 28399#define HAVE_STD_UNSETENV 1 28400_ACEOF 28401 28402fi 28403 28404{ $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5 28405$as_echo_n "checking for printf floating point output in hex notation... " >&6; } 28406if test "${bash_cv_printf_a_format+set}" = set; then 28407 $as_echo_n "(cached) " >&6 28408else 28409 if test "$cross_compiling" = yes; then 28410 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 28411$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} 28412 bash_cv_printf_a_format=no 28413 28414else 28415 cat >conftest.$ac_ext <<_ACEOF 28416/* confdefs.h. */ 28417_ACEOF 28418cat confdefs.h >>conftest.$ac_ext 28419cat >>conftest.$ac_ext <<_ACEOF 28420/* end confdefs.h. */ 28421 28422#include <stdio.h> 28423#include <string.h> 28424 28425int 28426main() 28427{ 28428 double y = 0.0; 28429 char abuf[1024]; 28430 28431 sprintf(abuf, "%A", y); 28432 exit(strchr(abuf, 'P') == (char *)0); 28433} 28434 28435_ACEOF 28436rm -f conftest$ac_exeext 28437if { (ac_try="$ac_link" 28438case "(($ac_try" in 28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28440 *) ac_try_echo=$ac_try;; 28441esac 28442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28443$as_echo "$ac_try_echo") >&5 28444 (eval "$ac_link") 2>&5 28445 ac_status=$? 28446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28448 { (case "(($ac_try" in 28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28450 *) ac_try_echo=$ac_try;; 28451esac 28452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28453$as_echo "$ac_try_echo") >&5 28454 (eval "$ac_try") 2>&5 28455 ac_status=$? 28456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28457 (exit $ac_status); }; }; then 28458 bash_cv_printf_a_format=yes 28459else 28460 $as_echo "$as_me: program exited with status $ac_status" >&5 28461$as_echo "$as_me: failed program was:" >&5 28462sed 's/^/| /' conftest.$ac_ext >&5 28463 28464( exit $ac_status ) 28465bash_cv_printf_a_format=no 28466fi 28467rm -rf conftest.dSYM 28468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28469fi 28470 28471 28472fi 28473 28474{ $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5 28475$as_echo "$bash_cv_printf_a_format" >&6; } 28476if test $bash_cv_printf_a_format = yes; then 28477cat >>confdefs.h <<\_ACEOF 28478#define HAVE_PRINTF_A_FORMAT 1 28479_ACEOF 28480 28481fi 28482 28483 28484 28485 28486{ $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 28487$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } 28488if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then 28489 $as_echo_n "(cached) " >&6 28490else 28491 if test "$cross_compiling" = yes; then 28492 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 28493$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} 28494 bash_cv_must_reinstall_sighandlers=no 28495 28496else 28497 cat >conftest.$ac_ext <<_ACEOF 28498/* confdefs.h. */ 28499_ACEOF 28500cat confdefs.h >>conftest.$ac_ext 28501cat >>conftest.$ac_ext <<_ACEOF 28502/* end confdefs.h. */ 28503 28504#include <signal.h> 28505#ifdef HAVE_UNISTD_H 28506#include <unistd.h> 28507#endif 28508 28509typedef RETSIGTYPE sigfunc(); 28510 28511int nsigint; 28512 28513#ifdef HAVE_POSIX_SIGNALS 28514sigfunc * 28515set_signal_handler(sig, handler) 28516 int sig; 28517 sigfunc *handler; 28518{ 28519 struct sigaction act, oact; 28520 act.sa_handler = handler; 28521 act.sa_flags = 0; 28522 sigemptyset (&act.sa_mask); 28523 sigemptyset (&oact.sa_mask); 28524 sigaction (sig, &act, &oact); 28525 return (oact.sa_handler); 28526} 28527#else 28528#define set_signal_handler(s, h) signal(s, h) 28529#endif 28530 28531RETSIGTYPE 28532sigint(s) 28533int s; 28534{ 28535 nsigint++; 28536} 28537 28538main() 28539{ 28540 nsigint = 0; 28541 set_signal_handler(SIGINT, sigint); 28542 kill((int)getpid(), SIGINT); 28543 kill((int)getpid(), SIGINT); 28544 exit(nsigint != 2); 28545} 28546 28547_ACEOF 28548rm -f conftest$ac_exeext 28549if { (ac_try="$ac_link" 28550case "(($ac_try" in 28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28552 *) ac_try_echo=$ac_try;; 28553esac 28554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28555$as_echo "$ac_try_echo") >&5 28556 (eval "$ac_link") 2>&5 28557 ac_status=$? 28558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28560 { (case "(($ac_try" in 28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28562 *) ac_try_echo=$ac_try;; 28563esac 28564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28565$as_echo "$ac_try_echo") >&5 28566 (eval "$ac_try") 2>&5 28567 ac_status=$? 28568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28569 (exit $ac_status); }; }; then 28570 bash_cv_must_reinstall_sighandlers=no 28571else 28572 $as_echo "$as_me: program exited with status $ac_status" >&5 28573$as_echo "$as_me: failed program was:" >&5 28574sed 's/^/| /' conftest.$ac_ext >&5 28575 28576( exit $ac_status ) 28577bash_cv_must_reinstall_sighandlers=yes 28578fi 28579rm -rf conftest.dSYM 28580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28581fi 28582 28583 28584fi 28585 28586{ $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 28587$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } 28588if test $bash_cv_must_reinstall_sighandlers = yes; then 28589cat >>confdefs.h <<\_ACEOF 28590#define MUST_REINSTALL_SIGHANDLERS 1 28591_ACEOF 28592 28593fi 28594 28595 28596{ $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5 28597$as_echo_n "checking for presence of necessary job control definitions... " >&6; } 28598if test "${bash_cv_job_control_missing+set}" = set; then 28599 $as_echo_n "(cached) " >&6 28600else 28601 if test "$cross_compiling" = yes; then 28602 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 28603$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} 28604 bash_cv_job_control_missing=missing 28605 28606else 28607 cat >conftest.$ac_ext <<_ACEOF 28608/* confdefs.h. */ 28609_ACEOF 28610cat confdefs.h >>conftest.$ac_ext 28611cat >>conftest.$ac_ext <<_ACEOF 28612/* end confdefs.h. */ 28613 28614#include <sys/types.h> 28615#ifdef HAVE_SYS_WAIT_H 28616#include <sys/wait.h> 28617#endif 28618#ifdef HAVE_UNISTD_H 28619#include <unistd.h> 28620#endif 28621#include <signal.h> 28622 28623/* Add more tests in here as appropriate. */ 28624main() 28625{ 28626/* signal type */ 28627#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) 28628exit(1); 28629#endif 28630 28631/* signals and tty control. */ 28632#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) 28633exit (1); 28634#endif 28635 28636/* process control */ 28637#if !defined (WNOHANG) || !defined (WUNTRACED) 28638exit(1); 28639#endif 28640 28641/* Posix systems have tcgetpgrp and waitpid. */ 28642#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) 28643exit(1); 28644#endif 28645 28646#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) 28647exit(1); 28648#endif 28649 28650/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ 28651#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) 28652exit(1); 28653#endif 28654 28655exit(0); 28656} 28657_ACEOF 28658rm -f conftest$ac_exeext 28659if { (ac_try="$ac_link" 28660case "(($ac_try" in 28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28662 *) ac_try_echo=$ac_try;; 28663esac 28664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28665$as_echo "$ac_try_echo") >&5 28666 (eval "$ac_link") 2>&5 28667 ac_status=$? 28668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28670 { (case "(($ac_try" in 28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28672 *) ac_try_echo=$ac_try;; 28673esac 28674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28675$as_echo "$ac_try_echo") >&5 28676 (eval "$ac_try") 2>&5 28677 ac_status=$? 28678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28679 (exit $ac_status); }; }; then 28680 bash_cv_job_control_missing=present 28681else 28682 $as_echo "$as_me: program exited with status $ac_status" >&5 28683$as_echo "$as_me: failed program was:" >&5 28684sed 's/^/| /' conftest.$ac_ext >&5 28685 28686( exit $ac_status ) 28687bash_cv_job_control_missing=missing 28688fi 28689rm -rf conftest.dSYM 28690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28691fi 28692 28693 28694fi 28695 28696{ $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5 28697$as_echo "$bash_cv_job_control_missing" >&6; } 28698if test $bash_cv_job_control_missing = missing; then 28699cat >>confdefs.h <<\_ACEOF 28700#define JOB_CONTROL_MISSING 1 28701_ACEOF 28702 28703fi 28704 28705{ $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5 28706$as_echo_n "checking for presence of named pipes... " >&6; } 28707if test "${bash_cv_sys_named_pipes+set}" = set; then 28708 $as_echo_n "(cached) " >&6 28709else 28710 if test "$cross_compiling" = yes; then 28711 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 28712$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} 28713 bash_cv_sys_named_pipes=missing 28714 28715else 28716 cat >conftest.$ac_ext <<_ACEOF 28717/* confdefs.h. */ 28718_ACEOF 28719cat confdefs.h >>conftest.$ac_ext 28720cat >>conftest.$ac_ext <<_ACEOF 28721/* end confdefs.h. */ 28722 28723#include <sys/types.h> 28724#include <sys/stat.h> 28725#ifdef HAVE_UNISTD_H 28726#include <unistd.h> 28727#endif 28728 28729/* Add more tests in here as appropriate. */ 28730main() 28731{ 28732int fd, err; 28733 28734#if defined (HAVE_MKFIFO) 28735exit (0); 28736#endif 28737 28738#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) 28739exit (1); 28740#endif 28741 28742#if defined (NeXT) 28743exit (1); 28744#endif 28745err = mkdir("bash-aclocal", 0700); 28746if (err < 0) { 28747 perror ("mkdir"); 28748 exit(1); 28749} 28750fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); 28751if (fd == -1) { 28752 rmdir ("bash-aclocal"); 28753 exit (1); 28754} 28755close(fd); 28756unlink ("bash-aclocal/sh-np-autoconf"); 28757rmdir ("bash-aclocal"); 28758exit(0); 28759} 28760_ACEOF 28761rm -f conftest$ac_exeext 28762if { (ac_try="$ac_link" 28763case "(($ac_try" in 28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28765 *) ac_try_echo=$ac_try;; 28766esac 28767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28768$as_echo "$ac_try_echo") >&5 28769 (eval "$ac_link") 2>&5 28770 ac_status=$? 28771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28773 { (case "(($ac_try" in 28774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28775 *) ac_try_echo=$ac_try;; 28776esac 28777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28778$as_echo "$ac_try_echo") >&5 28779 (eval "$ac_try") 2>&5 28780 ac_status=$? 28781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28782 (exit $ac_status); }; }; then 28783 bash_cv_sys_named_pipes=present 28784else 28785 $as_echo "$as_me: program exited with status $ac_status" >&5 28786$as_echo "$as_me: failed program was:" >&5 28787sed 's/^/| /' conftest.$ac_ext >&5 28788 28789( exit $ac_status ) 28790bash_cv_sys_named_pipes=missing 28791fi 28792rm -rf conftest.dSYM 28793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28794fi 28795 28796 28797fi 28798 28799{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5 28800$as_echo "$bash_cv_sys_named_pipes" >&6; } 28801if test $bash_cv_sys_named_pipes = missing; then 28802cat >>confdefs.h <<\_ACEOF 28803#define NAMED_PIPES_MISSING 1 28804_ACEOF 28805 28806fi 28807 28808 28809{ $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 28810$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 28811if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 28812 $as_echo_n "(cached) " >&6 28813else 28814 cat >conftest.$ac_ext <<_ACEOF 28815/* confdefs.h. */ 28816_ACEOF 28817cat confdefs.h >>conftest.$ac_ext 28818cat >>conftest.$ac_ext <<_ACEOF 28819/* end confdefs.h. */ 28820#include <sys/types.h> 28821#include <termios.h> 28822#ifdef TIOCGWINSZ 28823 yes 28824#endif 28825 28826_ACEOF 28827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28828 $EGREP "yes" >/dev/null 2>&1; then 28829 ac_cv_sys_tiocgwinsz_in_termios_h=yes 28830else 28831 ac_cv_sys_tiocgwinsz_in_termios_h=no 28832fi 28833rm -f conftest* 28834 28835fi 28836{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 28837$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 28838 28839if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 28840 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 28841$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 28842if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 28843 $as_echo_n "(cached) " >&6 28844else 28845 cat >conftest.$ac_ext <<_ACEOF 28846/* confdefs.h. */ 28847_ACEOF 28848cat confdefs.h >>conftest.$ac_ext 28849cat >>conftest.$ac_ext <<_ACEOF 28850/* end confdefs.h. */ 28851#include <sys/types.h> 28852#include <sys/ioctl.h> 28853#ifdef TIOCGWINSZ 28854 yes 28855#endif 28856 28857_ACEOF 28858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28859 $EGREP "yes" >/dev/null 2>&1; then 28860 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 28861else 28862 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 28863fi 28864rm -f conftest* 28865 28866fi 28867{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 28868$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 28869 28870 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 28871 28872cat >>confdefs.h <<\_ACEOF 28873#define GWINSZ_IN_SYS_IOCTL 1 28874_ACEOF 28875 28876 fi 28877fi 28878 28879{ $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 28880$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } 28881if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then 28882 $as_echo_n "(cached) " >&6 28883else 28884 cat >conftest.$ac_ext <<_ACEOF 28885/* confdefs.h. */ 28886_ACEOF 28887cat confdefs.h >>conftest.$ac_ext 28888cat >>conftest.$ac_ext <<_ACEOF 28889/* end confdefs.h. */ 28890#include <sys/types.h> 28891#include <sys/ioctl.h> 28892int 28893main () 28894{ 28895int x = TIOCSTAT; 28896 ; 28897 return 0; 28898} 28899_ACEOF 28900rm -f conftest.$ac_objext 28901if { (ac_try="$ac_compile" 28902case "(($ac_try" in 28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28904 *) ac_try_echo=$ac_try;; 28905esac 28906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28907$as_echo "$ac_try_echo") >&5 28908 (eval "$ac_compile") 2>conftest.er1 28909 ac_status=$? 28910 grep -v '^ *+' conftest.er1 >conftest.err 28911 rm -f conftest.er1 28912 cat conftest.err >&5 28913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28914 (exit $ac_status); } && { 28915 test -z "$ac_c_werror_flag" || 28916 test ! -s conftest.err 28917 } && test -s conftest.$ac_objext; then 28918 bash_cv_tiocstat_in_ioctl=yes 28919else 28920 $as_echo "$as_me: failed program was:" >&5 28921sed 's/^/| /' conftest.$ac_ext >&5 28922 28923 bash_cv_tiocstat_in_ioctl=no 28924fi 28925 28926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28927fi 28928 28929{ $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 28930$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } 28931if test $bash_cv_tiocstat_in_ioctl = yes; then 28932cat >>confdefs.h <<\_ACEOF 28933#define TIOCSTAT_IN_SYS_IOCTL 1 28934_ACEOF 28935 28936fi 28937 28938{ $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 28939$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } 28940if test "${bash_cv_fionread_in_ioctl+set}" = set; then 28941 $as_echo_n "(cached) " >&6 28942else 28943 cat >conftest.$ac_ext <<_ACEOF 28944/* confdefs.h. */ 28945_ACEOF 28946cat confdefs.h >>conftest.$ac_ext 28947cat >>conftest.$ac_ext <<_ACEOF 28948/* end confdefs.h. */ 28949#include <sys/types.h> 28950#include <sys/ioctl.h> 28951int 28952main () 28953{ 28954int x = FIONREAD; 28955 ; 28956 return 0; 28957} 28958_ACEOF 28959rm -f conftest.$ac_objext 28960if { (ac_try="$ac_compile" 28961case "(($ac_try" in 28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28963 *) ac_try_echo=$ac_try;; 28964esac 28965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 28966$as_echo "$ac_try_echo") >&5 28967 (eval "$ac_compile") 2>conftest.er1 28968 ac_status=$? 28969 grep -v '^ *+' conftest.er1 >conftest.err 28970 rm -f conftest.er1 28971 cat conftest.err >&5 28972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28973 (exit $ac_status); } && { 28974 test -z "$ac_c_werror_flag" || 28975 test ! -s conftest.err 28976 } && test -s conftest.$ac_objext; then 28977 bash_cv_fionread_in_ioctl=yes 28978else 28979 $as_echo "$as_me: failed program was:" >&5 28980sed 's/^/| /' conftest.$ac_ext >&5 28981 28982 bash_cv_fionread_in_ioctl=no 28983fi 28984 28985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28986fi 28987 28988{ $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 28989$as_echo "$bash_cv_fionread_in_ioctl" >&6; } 28990if test $bash_cv_fionread_in_ioctl = yes; then 28991cat >>confdefs.h <<\_ACEOF 28992#define FIONREAD_IN_SYS_IOCTL 1 28993_ACEOF 28994 28995fi 28996 28997 28998 28999{ $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 29000$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } 29001if test "${bash_cv_wcontinued_broken+set}" = set; then 29002 $as_echo_n "(cached) " >&6 29003else 29004 if test "$cross_compiling" = yes; then 29005 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 29006$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} 29007 bash_cv_wcontinued_broken=no 29008 29009else 29010 cat >conftest.$ac_ext <<_ACEOF 29011/* confdefs.h. */ 29012_ACEOF 29013cat confdefs.h >>conftest.$ac_ext 29014cat >>conftest.$ac_ext <<_ACEOF 29015/* end confdefs.h. */ 29016 29017#include <sys/types.h> 29018#include <sys/wait.h> 29019#include <unistd.h> 29020#include <errno.h> 29021 29022#ifndef errno 29023extern int errno; 29024#endif 29025main() 29026{ 29027 int x; 29028 29029 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); 29030 if (x == -1 && errno == EINVAL) 29031 exit (1); 29032 else 29033 exit (0); 29034} 29035 29036_ACEOF 29037rm -f conftest$ac_exeext 29038if { (ac_try="$ac_link" 29039case "(($ac_try" in 29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29041 *) ac_try_echo=$ac_try;; 29042esac 29043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29044$as_echo "$ac_try_echo") >&5 29045 (eval "$ac_link") 2>&5 29046 ac_status=$? 29047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 29049 { (case "(($ac_try" in 29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29051 *) ac_try_echo=$ac_try;; 29052esac 29053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29054$as_echo "$ac_try_echo") >&5 29055 (eval "$ac_try") 2>&5 29056 ac_status=$? 29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29058 (exit $ac_status); }; }; then 29059 bash_cv_wcontinued_broken=no 29060else 29061 $as_echo "$as_me: program exited with status $ac_status" >&5 29062$as_echo "$as_me: failed program was:" >&5 29063sed 's/^/| /' conftest.$ac_ext >&5 29064 29065( exit $ac_status ) 29066bash_cv_wcontinued_broken=yes 29067fi 29068rm -rf conftest.dSYM 29069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 29070fi 29071 29072 29073fi 29074 29075{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5 29076$as_echo "$bash_cv_wcontinued_broken" >&6; } 29077if test $bash_cv_wcontinued_broken = yes; then 29078cat >>confdefs.h <<\_ACEOF 29079#define WCONTINUED_BROKEN 1 29080_ACEOF 29081 29082fi 29083 29084 29085{ $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 29086$as_echo_n "checking for speed_t in sys/types.h... " >&6; } 29087if test "${bash_cv_speed_t_in_sys_types+set}" = set; then 29088 $as_echo_n "(cached) " >&6 29089else 29090 cat >conftest.$ac_ext <<_ACEOF 29091/* confdefs.h. */ 29092_ACEOF 29093cat confdefs.h >>conftest.$ac_ext 29094cat >>conftest.$ac_ext <<_ACEOF 29095/* end confdefs.h. */ 29096#include <sys/types.h> 29097int 29098main () 29099{ 29100speed_t x; 29101 ; 29102 return 0; 29103} 29104_ACEOF 29105rm -f conftest.$ac_objext 29106if { (ac_try="$ac_compile" 29107case "(($ac_try" in 29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29109 *) ac_try_echo=$ac_try;; 29110esac 29111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29112$as_echo "$ac_try_echo") >&5 29113 (eval "$ac_compile") 2>conftest.er1 29114 ac_status=$? 29115 grep -v '^ *+' conftest.er1 >conftest.err 29116 rm -f conftest.er1 29117 cat conftest.err >&5 29118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29119 (exit $ac_status); } && { 29120 test -z "$ac_c_werror_flag" || 29121 test ! -s conftest.err 29122 } && test -s conftest.$ac_objext; then 29123 bash_cv_speed_t_in_sys_types=yes 29124else 29125 $as_echo "$as_me: failed program was:" >&5 29126sed 's/^/| /' conftest.$ac_ext >&5 29127 29128 bash_cv_speed_t_in_sys_types=no 29129fi 29130 29131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29132fi 29133 29134{ $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 29135$as_echo "$bash_cv_speed_t_in_sys_types" >&6; } 29136if test $bash_cv_speed_t_in_sys_types = yes; then 29137cat >>confdefs.h <<\_ACEOF 29138#define SPEED_T_IN_SYS_TYPES 1 29139_ACEOF 29140 29141fi 29142 29143{ $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 29144$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } 29145if test "${bash_cv_getpw_declared+set}" = set; then 29146 $as_echo_n "(cached) " >&6 29147else 29148 cat >conftest.$ac_ext <<_ACEOF 29149/* confdefs.h. */ 29150_ACEOF 29151cat confdefs.h >>conftest.$ac_ext 29152cat >>conftest.$ac_ext <<_ACEOF 29153/* end confdefs.h. */ 29154 29155#include <sys/types.h> 29156#ifdef HAVE_UNISTD_H 29157# include <unistd.h> 29158#endif 29159#include <pwd.h> 29160 29161_ACEOF 29162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29163 $EGREP "getpwuid" >/dev/null 2>&1; then 29164 bash_cv_getpw_declared=yes 29165else 29166 bash_cv_getpw_declared=no 29167fi 29168rm -f conftest* 29169 29170fi 29171 29172{ $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 29173$as_echo "$bash_cv_getpw_declared" >&6; } 29174if test $bash_cv_getpw_declared = yes; then 29175cat >>confdefs.h <<\_ACEOF 29176#define HAVE_GETPW_DECLS 1 29177_ACEOF 29178 29179fi 29180 29181{ $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5 29182$as_echo_n "checking for unusable real-time signals due to large values... " >&6; } 29183if test "${bash_cv_unusable_rtsigs+set}" = set; then 29184 $as_echo_n "(cached) " >&6 29185else 29186 if test "$cross_compiling" = yes; then 29187 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 29188$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} 29189 bash_cv_unusable_rtsigs=yes 29190 29191else 29192 cat >conftest.$ac_ext <<_ACEOF 29193/* confdefs.h. */ 29194_ACEOF 29195cat confdefs.h >>conftest.$ac_ext 29196cat >>conftest.$ac_ext <<_ACEOF 29197/* end confdefs.h. */ 29198 29199#include <sys/types.h> 29200#include <signal.h> 29201 29202#ifndef NSIG 29203# define NSIG 64 29204#endif 29205 29206main () 29207{ 29208 int n_sigs = 2 * NSIG; 29209#ifdef SIGRTMIN 29210 int rtmin = SIGRTMIN; 29211#else 29212 int rtmin = 0; 29213#endif 29214 29215 exit(rtmin < n_sigs); 29216} 29217_ACEOF 29218rm -f conftest$ac_exeext 29219if { (ac_try="$ac_link" 29220case "(($ac_try" in 29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29222 *) ac_try_echo=$ac_try;; 29223esac 29224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29225$as_echo "$ac_try_echo") >&5 29226 (eval "$ac_link") 2>&5 29227 ac_status=$? 29228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 29230 { (case "(($ac_try" in 29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29232 *) ac_try_echo=$ac_try;; 29233esac 29234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29235$as_echo "$ac_try_echo") >&5 29236 (eval "$ac_try") 2>&5 29237 ac_status=$? 29238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29239 (exit $ac_status); }; }; then 29240 bash_cv_unusable_rtsigs=yes 29241else 29242 $as_echo "$as_me: program exited with status $ac_status" >&5 29243$as_echo "$as_me: failed program was:" >&5 29244sed 's/^/| /' conftest.$ac_ext >&5 29245 29246( exit $ac_status ) 29247bash_cv_unusable_rtsigs=no 29248fi 29249rm -rf conftest.dSYM 29250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 29251fi 29252 29253 29254fi 29255 29256{ $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5 29257$as_echo "$bash_cv_unusable_rtsigs" >&6; } 29258if test $bash_cv_unusable_rtsigs = yes; then 29259cat >>confdefs.h <<\_ACEOF 29260#define UNUSABLE_RT_SIGNALS 1 29261_ACEOF 29262 29263fi 29264 29265 29266 29267 29268 29269if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then 29270 SIGLIST_O=siglist.o 29271else 29272 SIGLIST_O= 29273fi 29274 29275 29276 29277case "$host_os" in 29278hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 29279$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } 29280if test "${bash_cv_kernel_rlimit+set}" = set; then 29281 $as_echo_n "(cached) " >&6 29282else 29283 cat >conftest.$ac_ext <<_ACEOF 29284/* confdefs.h. */ 29285_ACEOF 29286cat confdefs.h >>conftest.$ac_ext 29287cat >>conftest.$ac_ext <<_ACEOF 29288/* end confdefs.h. */ 29289 29290#include <sys/types.h> 29291#include <sys/resource.h> 29292 29293int 29294main () 29295{ 29296 29297 int f; 29298 f = RLIMIT_DATA; 29299 29300 ; 29301 return 0; 29302} 29303_ACEOF 29304rm -f conftest.$ac_objext 29305if { (ac_try="$ac_compile" 29306case "(($ac_try" in 29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29308 *) ac_try_echo=$ac_try;; 29309esac 29310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29311$as_echo "$ac_try_echo") >&5 29312 (eval "$ac_compile") 2>conftest.er1 29313 ac_status=$? 29314 grep -v '^ *+' conftest.er1 >conftest.err 29315 rm -f conftest.er1 29316 cat conftest.err >&5 29317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29318 (exit $ac_status); } && { 29319 test -z "$ac_c_werror_flag" || 29320 test ! -s conftest.err 29321 } && test -s conftest.$ac_objext; then 29322 bash_cv_kernel_rlimit=no 29323else 29324 $as_echo "$as_me: failed program was:" >&5 29325sed 's/^/| /' conftest.$ac_ext >&5 29326 29327 cat >conftest.$ac_ext <<_ACEOF 29328/* confdefs.h. */ 29329_ACEOF 29330cat confdefs.h >>conftest.$ac_ext 29331cat >>conftest.$ac_ext <<_ACEOF 29332/* end confdefs.h. */ 29333 29334#include <sys/types.h> 29335#define _KERNEL 29336#include <sys/resource.h> 29337#undef _KERNEL 29338 29339int 29340main () 29341{ 29342 29343 int f; 29344 f = RLIMIT_DATA; 29345 29346 ; 29347 return 0; 29348} 29349_ACEOF 29350rm -f conftest.$ac_objext 29351if { (ac_try="$ac_compile" 29352case "(($ac_try" in 29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29354 *) ac_try_echo=$ac_try;; 29355esac 29356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29357$as_echo "$ac_try_echo") >&5 29358 (eval "$ac_compile") 2>conftest.er1 29359 ac_status=$? 29360 grep -v '^ *+' conftest.er1 >conftest.err 29361 rm -f conftest.er1 29362 cat conftest.err >&5 29363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29364 (exit $ac_status); } && { 29365 test -z "$ac_c_werror_flag" || 29366 test ! -s conftest.err 29367 } && test -s conftest.$ac_objext; then 29368 bash_cv_kernel_rlimit=yes 29369else 29370 $as_echo "$as_me: failed program was:" >&5 29371sed 's/^/| /' conftest.$ac_ext >&5 29372 29373 bash_cv_kernel_rlimit=no 29374fi 29375 29376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29377 29378fi 29379 29380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29381fi 29382 29383{ $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5 29384$as_echo "$bash_cv_kernel_rlimit" >&6; } 29385if test $bash_cv_kernel_rlimit = yes; then 29386cat >>confdefs.h <<\_ACEOF 29387#define RLIMIT_NEEDS_KERNEL 1 29388_ACEOF 29389 29390fi 29391 ;; 29392esac 29393 29394if test "$opt_readline" = yes; then 29395case "$host_os" in 29396aix*) prefer_curses=yes ;; 29397esac 29398 29399if test "X$bash_cv_termcap_lib" = "X"; then 29400_bash_needmsg=yes 29401else 29402{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 29403$as_echo_n "checking which library has the termcap functions... " >&6; } 29404_bash_needmsg= 29405fi 29406if test "${bash_cv_termcap_lib+set}" = set; then 29407 $as_echo_n "(cached) " >&6 29408else 29409 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 29410$as_echo_n "checking for tgetent... " >&6; } 29411if test "${ac_cv_func_tgetent+set}" = set; then 29412 $as_echo_n "(cached) " >&6 29413else 29414 cat >conftest.$ac_ext <<_ACEOF 29415/* confdefs.h. */ 29416_ACEOF 29417cat confdefs.h >>conftest.$ac_ext 29418cat >>conftest.$ac_ext <<_ACEOF 29419/* end confdefs.h. */ 29420/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. 29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29422#define tgetent innocuous_tgetent 29423 29424/* System header to define __stub macros and hopefully few prototypes, 29425 which can conflict with char tgetent (); below. 29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29427 <limits.h> exists even on freestanding compilers. */ 29428 29429#ifdef __STDC__ 29430# include <limits.h> 29431#else 29432# include <assert.h> 29433#endif 29434 29435#undef tgetent 29436 29437/* Override any GCC internal prototype to avoid an error. 29438 Use char because int might match the return type of a GCC 29439 builtin and then its argument prototype would still apply. */ 29440#ifdef __cplusplus 29441extern "C" 29442#endif 29443char tgetent (); 29444/* The GNU C library defines this for functions which it implements 29445 to always fail with ENOSYS. Some functions are actually named 29446 something starting with __ and the normal name is an alias. */ 29447#if defined __stub_tgetent || defined __stub___tgetent 29448choke me 29449#endif 29450 29451int 29452main () 29453{ 29454return tgetent (); 29455 ; 29456 return 0; 29457} 29458_ACEOF 29459rm -f conftest.$ac_objext conftest$ac_exeext 29460if { (ac_try="$ac_link" 29461case "(($ac_try" in 29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29463 *) ac_try_echo=$ac_try;; 29464esac 29465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29466$as_echo "$ac_try_echo") >&5 29467 (eval "$ac_link") 2>conftest.er1 29468 ac_status=$? 29469 grep -v '^ *+' conftest.er1 >conftest.err 29470 rm -f conftest.er1 29471 cat conftest.err >&5 29472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29473 (exit $ac_status); } && { 29474 test -z "$ac_c_werror_flag" || 29475 test ! -s conftest.err 29476 } && test -s conftest$ac_exeext && { 29477 test "$cross_compiling" = yes || 29478 $as_test_x conftest$ac_exeext 29479 }; then 29480 ac_cv_func_tgetent=yes 29481else 29482 $as_echo "$as_me: failed program was:" >&5 29483sed 's/^/| /' conftest.$ac_ext >&5 29484 29485 ac_cv_func_tgetent=no 29486fi 29487 29488rm -rf conftest.dSYM 29489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29490 conftest$ac_exeext conftest.$ac_ext 29491fi 29492{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 29493$as_echo "$ac_cv_func_tgetent" >&6; } 29494if test "x$ac_cv_func_tgetent" = x""yes; then 29495 bash_cv_termcap_lib=libc 29496else 29497 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 29498$as_echo_n "checking for tgetent in -ltermcap... " >&6; } 29499if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 29500 $as_echo_n "(cached) " >&6 29501else 29502 ac_check_lib_save_LIBS=$LIBS 29503LIBS="-ltermcap $LIBS" 29504cat >conftest.$ac_ext <<_ACEOF 29505/* confdefs.h. */ 29506_ACEOF 29507cat confdefs.h >>conftest.$ac_ext 29508cat >>conftest.$ac_ext <<_ACEOF 29509/* end confdefs.h. */ 29510 29511/* Override any GCC internal prototype to avoid an error. 29512 Use char because int might match the return type of a GCC 29513 builtin and then its argument prototype would still apply. */ 29514#ifdef __cplusplus 29515extern "C" 29516#endif 29517char tgetent (); 29518int 29519main () 29520{ 29521return tgetent (); 29522 ; 29523 return 0; 29524} 29525_ACEOF 29526rm -f conftest.$ac_objext conftest$ac_exeext 29527if { (ac_try="$ac_link" 29528case "(($ac_try" in 29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29530 *) ac_try_echo=$ac_try;; 29531esac 29532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29533$as_echo "$ac_try_echo") >&5 29534 (eval "$ac_link") 2>conftest.er1 29535 ac_status=$? 29536 grep -v '^ *+' conftest.er1 >conftest.err 29537 rm -f conftest.er1 29538 cat conftest.err >&5 29539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29540 (exit $ac_status); } && { 29541 test -z "$ac_c_werror_flag" || 29542 test ! -s conftest.err 29543 } && test -s conftest$ac_exeext && { 29544 test "$cross_compiling" = yes || 29545 $as_test_x conftest$ac_exeext 29546 }; then 29547 ac_cv_lib_termcap_tgetent=yes 29548else 29549 $as_echo "$as_me: failed program was:" >&5 29550sed 's/^/| /' conftest.$ac_ext >&5 29551 29552 ac_cv_lib_termcap_tgetent=no 29553fi 29554 29555rm -rf conftest.dSYM 29556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29557 conftest$ac_exeext conftest.$ac_ext 29558LIBS=$ac_check_lib_save_LIBS 29559fi 29560{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 29561$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } 29562if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then 29563 bash_cv_termcap_lib=libtermcap 29564else 29565 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 29566$as_echo_n "checking for tgetent in -ltinfo... " >&6; } 29567if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then 29568 $as_echo_n "(cached) " >&6 29569else 29570 ac_check_lib_save_LIBS=$LIBS 29571LIBS="-ltinfo $LIBS" 29572cat >conftest.$ac_ext <<_ACEOF 29573/* confdefs.h. */ 29574_ACEOF 29575cat confdefs.h >>conftest.$ac_ext 29576cat >>conftest.$ac_ext <<_ACEOF 29577/* end confdefs.h. */ 29578 29579/* Override any GCC internal prototype to avoid an error. 29580 Use char because int might match the return type of a GCC 29581 builtin and then its argument prototype would still apply. */ 29582#ifdef __cplusplus 29583extern "C" 29584#endif 29585char tgetent (); 29586int 29587main () 29588{ 29589return tgetent (); 29590 ; 29591 return 0; 29592} 29593_ACEOF 29594rm -f conftest.$ac_objext conftest$ac_exeext 29595if { (ac_try="$ac_link" 29596case "(($ac_try" in 29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29598 *) ac_try_echo=$ac_try;; 29599esac 29600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29601$as_echo "$ac_try_echo") >&5 29602 (eval "$ac_link") 2>conftest.er1 29603 ac_status=$? 29604 grep -v '^ *+' conftest.er1 >conftest.err 29605 rm -f conftest.er1 29606 cat conftest.err >&5 29607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29608 (exit $ac_status); } && { 29609 test -z "$ac_c_werror_flag" || 29610 test ! -s conftest.err 29611 } && test -s conftest$ac_exeext && { 29612 test "$cross_compiling" = yes || 29613 $as_test_x conftest$ac_exeext 29614 }; then 29615 ac_cv_lib_tinfo_tgetent=yes 29616else 29617 $as_echo "$as_me: failed program was:" >&5 29618sed 's/^/| /' conftest.$ac_ext >&5 29619 29620 ac_cv_lib_tinfo_tgetent=no 29621fi 29622 29623rm -rf conftest.dSYM 29624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29625 conftest$ac_exeext conftest.$ac_ext 29626LIBS=$ac_check_lib_save_LIBS 29627fi 29628{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 29629$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 29630if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then 29631 bash_cv_termcap_lib=libtinfo 29632else 29633 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 29634$as_echo_n "checking for tgetent in -lcurses... " >&6; } 29635if test "${ac_cv_lib_curses_tgetent+set}" = set; then 29636 $as_echo_n "(cached) " >&6 29637else 29638 ac_check_lib_save_LIBS=$LIBS 29639LIBS="-lcurses $LIBS" 29640cat >conftest.$ac_ext <<_ACEOF 29641/* confdefs.h. */ 29642_ACEOF 29643cat confdefs.h >>conftest.$ac_ext 29644cat >>conftest.$ac_ext <<_ACEOF 29645/* end confdefs.h. */ 29646 29647/* Override any GCC internal prototype to avoid an error. 29648 Use char because int might match the return type of a GCC 29649 builtin and then its argument prototype would still apply. */ 29650#ifdef __cplusplus 29651extern "C" 29652#endif 29653char tgetent (); 29654int 29655main () 29656{ 29657return tgetent (); 29658 ; 29659 return 0; 29660} 29661_ACEOF 29662rm -f conftest.$ac_objext conftest$ac_exeext 29663if { (ac_try="$ac_link" 29664case "(($ac_try" in 29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29666 *) ac_try_echo=$ac_try;; 29667esac 29668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29669$as_echo "$ac_try_echo") >&5 29670 (eval "$ac_link") 2>conftest.er1 29671 ac_status=$? 29672 grep -v '^ *+' conftest.er1 >conftest.err 29673 rm -f conftest.er1 29674 cat conftest.err >&5 29675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29676 (exit $ac_status); } && { 29677 test -z "$ac_c_werror_flag" || 29678 test ! -s conftest.err 29679 } && test -s conftest$ac_exeext && { 29680 test "$cross_compiling" = yes || 29681 $as_test_x conftest$ac_exeext 29682 }; then 29683 ac_cv_lib_curses_tgetent=yes 29684else 29685 $as_echo "$as_me: failed program was:" >&5 29686sed 's/^/| /' conftest.$ac_ext >&5 29687 29688 ac_cv_lib_curses_tgetent=no 29689fi 29690 29691rm -rf conftest.dSYM 29692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29693 conftest$ac_exeext conftest.$ac_ext 29694LIBS=$ac_check_lib_save_LIBS 29695fi 29696{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 29697$as_echo "$ac_cv_lib_curses_tgetent" >&6; } 29698if test "x$ac_cv_lib_curses_tgetent" = x""yes; then 29699 bash_cv_termcap_lib=libcurses 29700else 29701 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 29702$as_echo_n "checking for tgetent in -lncurses... " >&6; } 29703if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 29704 $as_echo_n "(cached) " >&6 29705else 29706 ac_check_lib_save_LIBS=$LIBS 29707LIBS="-lncurses $LIBS" 29708cat >conftest.$ac_ext <<_ACEOF 29709/* confdefs.h. */ 29710_ACEOF 29711cat confdefs.h >>conftest.$ac_ext 29712cat >>conftest.$ac_ext <<_ACEOF 29713/* end confdefs.h. */ 29714 29715/* Override any GCC internal prototype to avoid an error. 29716 Use char because int might match the return type of a GCC 29717 builtin and then its argument prototype would still apply. */ 29718#ifdef __cplusplus 29719extern "C" 29720#endif 29721char tgetent (); 29722int 29723main () 29724{ 29725return tgetent (); 29726 ; 29727 return 0; 29728} 29729_ACEOF 29730rm -f conftest.$ac_objext conftest$ac_exeext 29731if { (ac_try="$ac_link" 29732case "(($ac_try" in 29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29734 *) ac_try_echo=$ac_try;; 29735esac 29736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 29737$as_echo "$ac_try_echo") >&5 29738 (eval "$ac_link") 2>conftest.er1 29739 ac_status=$? 29740 grep -v '^ *+' conftest.er1 >conftest.err 29741 rm -f conftest.er1 29742 cat conftest.err >&5 29743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29744 (exit $ac_status); } && { 29745 test -z "$ac_c_werror_flag" || 29746 test ! -s conftest.err 29747 } && test -s conftest$ac_exeext && { 29748 test "$cross_compiling" = yes || 29749 $as_test_x conftest$ac_exeext 29750 }; then 29751 ac_cv_lib_ncurses_tgetent=yes 29752else 29753 $as_echo "$as_me: failed program was:" >&5 29754sed 's/^/| /' conftest.$ac_ext >&5 29755 29756 ac_cv_lib_ncurses_tgetent=no 29757fi 29758 29759rm -rf conftest.dSYM 29760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29761 conftest$ac_exeext conftest.$ac_ext 29762LIBS=$ac_check_lib_save_LIBS 29763fi 29764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 29765$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } 29766if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then 29767 bash_cv_termcap_lib=libncurses 29768else 29769 bash_cv_termcap_lib=gnutermcap 29770fi 29771 29772fi 29773 29774fi 29775 29776fi 29777 29778fi 29779 29780fi 29781 29782if test "X$_bash_needmsg" = "Xyes"; then 29783{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 29784$as_echo_n "checking which library has the termcap functions... " >&6; } 29785fi 29786{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 29787$as_echo "using $bash_cv_termcap_lib" >&6; } 29788if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then 29789LDFLAGS="$LDFLAGS -L./lib/termcap" 29790TERMCAP_LIB="./lib/termcap/libtermcap.a" 29791TERMCAP_DEP="./lib/termcap/libtermcap.a" 29792elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then 29793TERMCAP_LIB=-ltermcap 29794TERMCAP_DEP= 29795elif test $bash_cv_termcap_lib = libtinfo; then 29796TERMCAP_LIB=-ltinfo 29797TERMCAP_DEP= 29798elif test $bash_cv_termcap_lib = libncurses; then 29799TERMCAP_LIB=-lncurses 29800TERMCAP_DEP= 29801elif test $bash_cv_termcap_lib = libc; then 29802TERMCAP_LIB= 29803TERMCAP_DEP= 29804else 29805TERMCAP_LIB=-lcurses 29806TERMCAP_DEP= 29807fi 29808 29809fi 29810 29811 29812 29813{ $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 29814$as_echo_n "checking whether /dev/fd is available... " >&6; } 29815if test "${bash_cv_dev_fd+set}" = set; then 29816 $as_echo_n "(cached) " >&6 29817else 29818 bash_cv_dev_fd="" 29819if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then 29820# check for systems like FreeBSD 5 that only provide /dev/fd/[012] 29821 if (exec test -r /dev/fd/3 3</dev/null) ; then 29822 bash_cv_dev_fd=standard 29823 else 29824 bash_cv_dev_fd=absent 29825 fi 29826fi 29827if test -z "$bash_cv_dev_fd" ; then 29828 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then 29829 bash_cv_dev_fd=whacky 29830 else 29831 bash_cv_dev_fd=absent 29832 fi 29833fi 29834 29835fi 29836 29837{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5 29838$as_echo "$bash_cv_dev_fd" >&6; } 29839if test $bash_cv_dev_fd = "standard"; then 29840 cat >>confdefs.h <<\_ACEOF 29841#define HAVE_DEV_FD 1 29842_ACEOF 29843 29844 cat >>confdefs.h <<\_ACEOF 29845#define DEV_FD_PREFIX "/dev/fd/" 29846_ACEOF 29847 29848elif test $bash_cv_dev_fd = "whacky"; then 29849 cat >>confdefs.h <<\_ACEOF 29850#define HAVE_DEV_FD 1 29851_ACEOF 29852 29853 cat >>confdefs.h <<\_ACEOF 29854#define DEV_FD_PREFIX "/proc/self/fd/" 29855_ACEOF 29856 29857fi 29858 29859{ $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5 29860$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } 29861if test "${bash_cv_dev_stdin+set}" = set; then 29862 $as_echo_n "(cached) " >&6 29863else 29864 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then 29865 bash_cv_dev_stdin=present 29866 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then 29867 bash_cv_dev_stdin=present 29868 else 29869 bash_cv_dev_stdin=absent 29870 fi 29871 29872fi 29873 29874{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5 29875$as_echo "$bash_cv_dev_stdin" >&6; } 29876if test $bash_cv_dev_stdin = "present"; then 29877 cat >>confdefs.h <<\_ACEOF 29878#define HAVE_DEV_STDIN 1 29879_ACEOF 29880 29881fi 29882 29883{ $as_echo "$as_me:$LINENO: checking for default mail directory" >&5 29884$as_echo_n "checking for default mail directory... " >&6; } 29885if test "${bash_cv_mail_dir+set}" = set; then 29886 $as_echo_n "(cached) " >&6 29887else 29888 if test -d /var/mail; then 29889 bash_cv_mail_dir=/var/mail 29890 elif test -d /var/spool/mail; then 29891 bash_cv_mail_dir=/var/spool/mail 29892 elif test -d /usr/mail; then 29893 bash_cv_mail_dir=/usr/mail 29894 elif test -d /usr/spool/mail; then 29895 bash_cv_mail_dir=/usr/spool/mail 29896 else 29897 bash_cv_mail_dir=unknown 29898 fi 29899 29900fi 29901 29902{ $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5 29903$as_echo "$bash_cv_mail_dir" >&6; } 29904cat >>confdefs.h <<_ACEOF 29905#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" 29906_ACEOF 29907 29908 29909 29910if test "$bash_cv_job_control_missing" = missing; then 29911 opt_job_control=no 29912fi 29913 29914if test "$opt_job_control" = yes; then 29915cat >>confdefs.h <<\_ACEOF 29916#define JOB_CONTROL 1 29917_ACEOF 29918 29919JOBS_O=jobs.o 29920else 29921JOBS_O=nojobs.o 29922fi 29923 29924 29925 29926 29927LOCAL_DEFS=-DSHELL 29928 29929 29930case "${host_os}" in 29931sysv4.2*) cat >>confdefs.h <<\_ACEOF 29932#define SVR4_2 1 29933_ACEOF 29934 29935 cat >>confdefs.h <<\_ACEOF 29936#define SVR4 1 29937_ACEOF 29938 ;; 29939sysv4*) cat >>confdefs.h <<\_ACEOF 29940#define SVR4 1 29941_ACEOF 29942 ;; 29943sysv5*) cat >>confdefs.h <<\_ACEOF 29944#define SVR5 1 29945_ACEOF 29946 ;; 29947hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; 29948hpux*) LOCAL_CFLAGS=-DHPUX ;; 29949dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; 29950isc*) LOCAL_CFLAGS=-Disc386 ;; 29951rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; 29952darwin*) LOCAL_CFLAGS=-DMACOSX ;; 29953sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; 29954sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; 29955sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; 29956sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; 29957solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; 29958solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;; 29959solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;; 29960solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;; 29961solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; 29962lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; 29963linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading 29964 case "`uname -r`" in 29965 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF 29966#define PGRP_PIPE 1 29967_ACEOF 29968 ;; 29969 esac ;; 29970*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; 29971*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; 29972powerux*) LOCAL_LIBS="-lgen" ;; 29973cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; 29974opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; 29975esac 29976 29977case "${host_os}-${CC}" in 29978aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; 29979aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; 29980bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux 29981esac 29982 29983case "${host_os}" in 29984freebsd[3-9]*) 29985 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then 29986 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading 29987 fi ;; 29988freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading 29989dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading 29990esac 29991 29992case "$host_cpu" in 29993*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it 29994esac 29995 29996case "$host_cpu-$host_os" in 29997ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; 29998esac 29999 30000case "$host_cpu-$host_vendor-$host_os" in 30001m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; 30002mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; 30003esac 30004 30005# 30006# Shared object configuration section. These values are generated by 30007# ${srcdir}/support/shobj-conf 30008# 30009if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf 30010then 30011 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5 30012$as_echo_n "checking shared object configuration for loadable builtins... " >&6; } 30013 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` 30014 30015 30016 30017 30018 30019 30020 30021 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5 30022$as_echo "$SHOBJ_STATUS" >&6; } 30023fi 30024 30025# try to create a directory tree if the source is elsewhere 30026# this should be packaged into a script accessible via ${srcdir}/support 30027case "$srcdir" in 30028.) ;; 30029*) for d in doc tests support lib examples; do # dirs 30030 test -d $d || mkdir $d 30031 done 30032 for ld in readline glob tilde malloc sh termcap; do # libdirs 30033 test -d lib/$ld || mkdir lib/$ld 30034 done 30035 test -d examples/loadables || mkdir examples/loadables # loadable builtins 30036 test -d examples/loadables/perl || mkdir examples/loadables/perl 30037 ;; 30038esac 30039 30040BUILD_DIR=`pwd` 30041case "$BUILD_DIR" in 30042*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; 30043*) ;; 30044esac 30045 30046if test -z "$localedir"; then 30047 localedir='${datarootdir}/locale' 30048fi 30049if test -z "$datarootdir"; then 30050 datarootdir='${prefix}/share' 30051fi 30052 30053 30054 30055 30056 30057 30058# Some versions of autoconf don't substitute these automatically 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080#AC_SUBST(ALLOCA_SOURCE) 30081#AC_SUBST(ALLOCA_OBJECT) 30082 30083ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile" 30084 30085ac_config_commands="$ac_config_commands default" 30086 30087cat >confcache <<\_ACEOF 30088# This file is a shell script that caches the results of configure 30089# tests run on this system so they can be shared between configure 30090# scripts and configure runs, see configure's option --config-cache. 30091# It is not useful on other systems. If it contains results you don't 30092# want to keep, you may remove or edit it. 30093# 30094# config.status only pays attention to the cache file if you give it 30095# the --recheck option to rerun configure. 30096# 30097# `ac_cv_env_foo' variables (set or unset) will be overridden when 30098# loading this file, other *unset* `ac_cv_foo' will be assigned the 30099# following values. 30100 30101_ACEOF 30102 30103# The following way of writing the cache mishandles newlines in values, 30104# but we know of no workaround that is simple, portable, and efficient. 30105# So, we kill variables containing newlines. 30106# Ultrix sh set writes to stderr and can't be redirected directly, 30107# and sets the high bit in the cache file unless we assign to the vars. 30108( 30109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30110 eval ac_val=\$$ac_var 30111 case $ac_val in #( 30112 *${as_nl}*) 30113 case $ac_var in #( 30114 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 30115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30116 esac 30117 case $ac_var in #( 30118 _ | IFS | as_nl) ;; #( 30119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30120 *) $as_unset $ac_var ;; 30121 esac ;; 30122 esac 30123 done 30124 30125 (set) 2>&1 | 30126 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30127 *${as_nl}ac_space=\ *) 30128 # `set' does not quote correctly, so add quotes (double-quote 30129 # substitution turns \\\\ into \\, and sed turns \\ into \). 30130 sed -n \ 30131 "s/'/'\\\\''/g; 30132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30133 ;; #( 30134 *) 30135 # `set' quotes correctly as required by POSIX, so do not add quotes. 30136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30137 ;; 30138 esac | 30139 sort 30140) | 30141 sed ' 30142 /^ac_cv_env_/b end 30143 t clear 30144 :clear 30145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30146 t end 30147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30148 :end' >>confcache 30149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30150 if test -w "$cache_file"; then 30151 test "x$cache_file" != "x/dev/null" && 30152 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 30153$as_echo "$as_me: updating cache $cache_file" >&6;} 30154 cat confcache >$cache_file 30155 else 30156 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 30157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30158 fi 30159fi 30160rm -f confcache 30161 30162test "x$prefix" = xNONE && prefix=$ac_default_prefix 30163# Let make expand exec_prefix. 30164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30165 30166DEFS=-DHAVE_CONFIG_H 30167 30168ac_libobjs= 30169ac_ltlibobjs= 30170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30171 # 1. Remove the extension, and $U if already installed. 30172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30175 # will be set to the directory where LIBOBJS objects are built. 30176 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30177 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 30178done 30179LIBOBJS=$ac_libobjs 30180 30181LTLIBOBJS=$ac_ltlibobjs 30182 30183 30184 30185 30186: ${CONFIG_STATUS=./config.status} 30187ac_write_fail=0 30188ac_clean_files_save=$ac_clean_files 30189ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30190{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 30191$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 30192cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30193#! $SHELL 30194# Generated by $as_me. 30195# Run this file to recreate the current configuration. 30196# Compiler output produced by configure, useful for debugging 30197# configure, is in config.log if it exists. 30198 30199debug=false 30200ac_cs_recheck=false 30201ac_cs_silent=false 30202SHELL=\${CONFIG_SHELL-$SHELL} 30203_ACEOF 30204 30205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30206## --------------------- ## 30207## M4sh Initialization. ## 30208## --------------------- ## 30209 30210# Be more Bourne compatible 30211DUALCASE=1; export DUALCASE # for MKS sh 30212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 30213 emulate sh 30214 NULLCMD=: 30215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30216 # is contrary to our usage. Disable this feature. 30217 alias -g '${1+"$@"}'='"$@"' 30218 setopt NO_GLOB_SUBST 30219else 30220 case `(set -o) 2>/dev/null` in 30221 *posix*) set -o posix ;; 30222esac 30223 30224fi 30225 30226 30227 30228 30229# PATH needs CR 30230# Avoid depending upon Character Ranges. 30231as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30233as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30234as_cr_digits='0123456789' 30235as_cr_alnum=$as_cr_Letters$as_cr_digits 30236 30237as_nl=' 30238' 30239export as_nl 30240# Printing a long string crashes Solaris 7 /usr/bin/printf. 30241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 30242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 30243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 30244if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 30245 as_echo='printf %s\n' 30246 as_echo_n='printf %s' 30247else 30248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 30249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 30250 as_echo_n='/usr/ucb/echo -n' 30251 else 30252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 30253 as_echo_n_body='eval 30254 arg=$1; 30255 case $arg in 30256 *"$as_nl"*) 30257 expr "X$arg" : "X\\(.*\\)$as_nl"; 30258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 30259 esac; 30260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 30261 ' 30262 export as_echo_n_body 30263 as_echo_n='sh -c $as_echo_n_body as_echo' 30264 fi 30265 export as_echo_body 30266 as_echo='sh -c $as_echo_body as_echo' 30267fi 30268 30269# The user is always right. 30270if test "${PATH_SEPARATOR+set}" != set; then 30271 PATH_SEPARATOR=: 30272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30274 PATH_SEPARATOR=';' 30275 } 30276fi 30277 30278# Support unset when possible. 30279if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 30280 as_unset=unset 30281else 30282 as_unset=false 30283fi 30284 30285 30286# IFS 30287# We need space, tab and new line, in precisely that order. Quoting is 30288# there to prevent editors from complaining about space-tab. 30289# (If _AS_PATH_WALK were called with IFS unset, it would disable word 30290# splitting by setting IFS to empty value.) 30291IFS=" "" $as_nl" 30292 30293# Find who we are. Look in the path if we contain no directory separator. 30294case $0 in 30295 *[\\/]* ) as_myself=$0 ;; 30296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30297for as_dir in $PATH 30298do 30299 IFS=$as_save_IFS 30300 test -z "$as_dir" && as_dir=. 30301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 30302done 30303IFS=$as_save_IFS 30304 30305 ;; 30306esac 30307# We did not find ourselves, most probably we were run as `sh COMMAND' 30308# in which case we are not to be found in the path. 30309if test "x$as_myself" = x; then 30310 as_myself=$0 30311fi 30312if test ! -f "$as_myself"; then 30313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30314 { (exit 1); exit 1; } 30315fi 30316 30317# Work around bugs in pre-3.0 UWIN ksh. 30318for as_var in ENV MAIL MAILPATH 30319do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 30320done 30321PS1='$ ' 30322PS2='> ' 30323PS4='+ ' 30324 30325# NLS nuisances. 30326LC_ALL=C 30327export LC_ALL 30328LANGUAGE=C 30329export LANGUAGE 30330 30331# Required to use basename. 30332if expr a : '\(a\)' >/dev/null 2>&1 && 30333 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30334 as_expr=expr 30335else 30336 as_expr=false 30337fi 30338 30339if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30340 as_basename=basename 30341else 30342 as_basename=false 30343fi 30344 30345 30346# Name of the executable. 30347as_me=`$as_basename -- "$0" || 30348$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30349 X"$0" : 'X\(//\)$' \| \ 30350 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30351$as_echo X/"$0" | 30352 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30353 s//\1/ 30354 q 30355 } 30356 /^X\/\(\/\/\)$/{ 30357 s//\1/ 30358 q 30359 } 30360 /^X\/\(\/\).*/{ 30361 s//\1/ 30362 q 30363 } 30364 s/.*/./; q'` 30365 30366# CDPATH. 30367$as_unset CDPATH 30368 30369 30370 30371 as_lineno_1=$LINENO 30372 as_lineno_2=$LINENO 30373 test "x$as_lineno_1" != "x$as_lineno_2" && 30374 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 30375 30376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 30377 # uniformly replaced by the line number. The first 'sed' inserts a 30378 # line-number line after each line using $LINENO; the second 'sed' 30379 # does the real work. The second script uses 'N' to pair each 30380 # line-number line with the line containing $LINENO, and appends 30381 # trailing '-' during substitution so that $LINENO is not a special 30382 # case at line end. 30383 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 30384 # scripts with optimization help from Paolo Bonzini. Blame Lee 30385 # E. McMahon (1931-1989) for sed's syntax. :-) 30386 sed -n ' 30387 p 30388 /[$]LINENO/= 30389 ' <$as_myself | 30390 sed ' 30391 s/[$]LINENO.*/&-/ 30392 t lineno 30393 b 30394 :lineno 30395 N 30396 :loop 30397 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 30398 t loop 30399 s/-\n.*// 30400 ' >$as_me.lineno && 30401 chmod +x "$as_me.lineno" || 30402 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 30403 { (exit 1); exit 1; }; } 30404 30405 # Don't try to exec as it changes $[0], causing all sort of problems 30406 # (the dirname of $[0] is not the place where we might find the 30407 # original and so on. Autoconf is especially sensitive to this). 30408 . "./$as_me.lineno" 30409 # Exit status is that of the last command. 30410 exit 30411} 30412 30413 30414if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30415 as_dirname=dirname 30416else 30417 as_dirname=false 30418fi 30419 30420ECHO_C= ECHO_N= ECHO_T= 30421case `echo -n x` in 30422-n*) 30423 case `echo 'x\c'` in 30424 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30425 *) ECHO_C='\c';; 30426 esac;; 30427*) 30428 ECHO_N='-n';; 30429esac 30430if expr a : '\(a\)' >/dev/null 2>&1 && 30431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30432 as_expr=expr 30433else 30434 as_expr=false 30435fi 30436 30437rm -f conf$$ conf$$.exe conf$$.file 30438if test -d conf$$.dir; then 30439 rm -f conf$$.dir/conf$$.file 30440else 30441 rm -f conf$$.dir 30442 mkdir conf$$.dir 2>/dev/null 30443fi 30444if (echo >conf$$.file) 2>/dev/null; then 30445 if ln -s conf$$.file conf$$ 2>/dev/null; then 30446 as_ln_s='ln -s' 30447 # ... but there are two gotchas: 30448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 30449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 30450 # In both cases, we have to default to `cp -p'. 30451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30452 as_ln_s='cp -p' 30453 elif ln conf$$.file conf$$ 2>/dev/null; then 30454 as_ln_s=ln 30455 else 30456 as_ln_s='cp -p' 30457 fi 30458else 30459 as_ln_s='cp -p' 30460fi 30461rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30462rmdir conf$$.dir 2>/dev/null 30463 30464if mkdir -p . 2>/dev/null; then 30465 as_mkdir_p=: 30466else 30467 test -d ./-p && rmdir ./-p 30468 as_mkdir_p=false 30469fi 30470 30471if test -x / >/dev/null 2>&1; then 30472 as_test_x='test -x' 30473else 30474 if ls -dL / >/dev/null 2>&1; then 30475 as_ls_L_option=L 30476 else 30477 as_ls_L_option= 30478 fi 30479 as_test_x=' 30480 eval sh -c '\'' 30481 if test -d "$1"; then 30482 test -d "$1/."; 30483 else 30484 case $1 in 30485 -*)set "./$1";; 30486 esac; 30487 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 30488 ???[sx]*):;;*)false;;esac;fi 30489 '\'' sh 30490 ' 30491fi 30492as_executable_p=$as_test_x 30493 30494# Sed expression to map a string onto a valid CPP name. 30495as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 30496 30497# Sed expression to map a string onto a valid variable name. 30498as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 30499 30500 30501exec 6>&1 30502 30503# Save the log message, to keep $[0] and so on meaningful, and to 30504# report actual input values of CONFIG_FILES etc. instead of their 30505# values after options handling. 30506ac_log=" 30507This file was extended by bash $as_me 4.0-release, which was 30508generated by GNU Autoconf 2.63. Invocation command line was 30509 30510 CONFIG_FILES = $CONFIG_FILES 30511 CONFIG_HEADERS = $CONFIG_HEADERS 30512 CONFIG_LINKS = $CONFIG_LINKS 30513 CONFIG_COMMANDS = $CONFIG_COMMANDS 30514 $ $0 $@ 30515 30516on `(hostname || uname -n) 2>/dev/null | sed 1q` 30517" 30518 30519_ACEOF 30520 30521case $ac_config_files in *" 30522"*) set x $ac_config_files; shift; ac_config_files=$*;; 30523esac 30524 30525case $ac_config_headers in *" 30526"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30527esac 30528 30529 30530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30531# Files that config.status was made for. 30532config_files="$ac_config_files" 30533config_headers="$ac_config_headers" 30534config_commands="$ac_config_commands" 30535 30536_ACEOF 30537 30538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30539ac_cs_usage="\ 30540\`$as_me' instantiates files from templates according to the 30541current configuration. 30542 30543Usage: $0 [OPTION]... [FILE]... 30544 30545 -h, --help print this help, then exit 30546 -V, --version print version number and configuration settings, then exit 30547 -q, --quiet, --silent 30548 do not print progress messages 30549 -d, --debug don't remove temporary files 30550 --recheck update $as_me by reconfiguring in the same conditions 30551 --file=FILE[:TEMPLATE] 30552 instantiate the configuration file FILE 30553 --header=FILE[:TEMPLATE] 30554 instantiate the configuration header FILE 30555 30556Configuration files: 30557$config_files 30558 30559Configuration headers: 30560$config_headers 30561 30562Configuration commands: 30563$config_commands 30564 30565Report bugs to <bug-autoconf@gnu.org>." 30566 30567_ACEOF 30568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30569ac_cs_version="\\ 30570bash config.status 4.0-release 30571configured by $0, generated by GNU Autoconf 2.63, 30572 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 30573 30574Copyright (C) 2008 Free Software Foundation, Inc. 30575This config.status script is free software; the Free Software Foundation 30576gives unlimited permission to copy, distribute and modify it." 30577 30578ac_pwd='$ac_pwd' 30579srcdir='$srcdir' 30580INSTALL='$INSTALL' 30581test -n "\$AWK" || AWK=awk 30582_ACEOF 30583 30584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30585# The default lists apply if the user does not specify any file. 30586ac_need_defaults=: 30587while test $# != 0 30588do 30589 case $1 in 30590 --*=*) 30591 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30592 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30593 ac_shift=: 30594 ;; 30595 *) 30596 ac_option=$1 30597 ac_optarg=$2 30598 ac_shift=shift 30599 ;; 30600 esac 30601 30602 case $ac_option in 30603 # Handling of the options. 30604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30605 ac_cs_recheck=: ;; 30606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30607 $as_echo "$ac_cs_version"; exit ;; 30608 --debug | --debu | --deb | --de | --d | -d ) 30609 debug=: ;; 30610 --file | --fil | --fi | --f ) 30611 $ac_shift 30612 case $ac_optarg in 30613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30614 esac 30615 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 30616 ac_need_defaults=false;; 30617 --header | --heade | --head | --hea ) 30618 $ac_shift 30619 case $ac_optarg in 30620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30621 esac 30622 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 30623 ac_need_defaults=false;; 30624 --he | --h) 30625 # Conflict between --help and --header 30626 { $as_echo "$as_me: error: ambiguous option: $1 30627Try \`$0 --help' for more information." >&2 30628 { (exit 1); exit 1; }; };; 30629 --help | --hel | -h ) 30630 $as_echo "$ac_cs_usage"; exit ;; 30631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30632 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30633 ac_cs_silent=: ;; 30634 30635 # This is an error. 30636 -*) { $as_echo "$as_me: error: unrecognized option: $1 30637Try \`$0 --help' for more information." >&2 30638 { (exit 1); exit 1; }; } ;; 30639 30640 *) ac_config_targets="$ac_config_targets $1" 30641 ac_need_defaults=false ;; 30642 30643 esac 30644 shift 30645done 30646 30647ac_configure_extra_args= 30648 30649if $ac_cs_silent; then 30650 exec 6>/dev/null 30651 ac_configure_extra_args="$ac_configure_extra_args --silent" 30652fi 30653 30654_ACEOF 30655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30656if \$ac_cs_recheck; then 30657 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30658 shift 30659 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30660 CONFIG_SHELL='$SHELL' 30661 export CONFIG_SHELL 30662 exec "\$@" 30663fi 30664 30665_ACEOF 30666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30667exec 5>>config.log 30668{ 30669 echo 30670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30671## Running $as_me. ## 30672_ASBOX 30673 $as_echo "$ac_log" 30674} >&5 30675 30676_ACEOF 30677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30678# 30679# INIT-COMMANDS 30680# 30681# Capture the value of obsolete ALL_LINGUAS because we need it to compute 30682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 30683 # from automake. 30684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 30685 # Capture the value of LINGUAS because we need it to compute CATALOGS. 30686 LINGUAS="${LINGUAS-%UNSET%}" 30687 30688 30689_ACEOF 30690 30691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30692 30693# Handling of arguments. 30694for ac_config_target in $ac_config_targets 30695do 30696 case $ac_config_target in 30697 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 30698 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 30699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30700 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; 30701 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; 30702 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; 30703 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; 30704 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; 30705 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; 30706 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; 30707 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; 30708 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 30709 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; 30710 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 30711 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; 30712 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; 30713 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 30714 30715 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 30716$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 30717 { (exit 1); exit 1; }; };; 30718 esac 30719done 30720 30721 30722# If the user did not use the arguments to specify the items to instantiate, 30723# then the envvar interface is used. Set only those that are not. 30724# We use the long form for the default assignment because of an extremely 30725# bizarre bug on SunOS 4.1.3. 30726if $ac_need_defaults; then 30727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 30728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 30729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 30730fi 30731 30732# Have a temporary directory for convenience. Make it in the build tree 30733# simply because there is no reason against having it here, and in addition, 30734# creating and moving files from /tmp can sometimes cause problems. 30735# Hook for its removal unless debugging. 30736# Note that there is a small window in which the directory will not be cleaned: 30737# after its creation but before its name has been assigned to `$tmp'. 30738$debug || 30739{ 30740 tmp= 30741 trap 'exit_status=$? 30742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 30743' 0 30744 trap '{ (exit 1); exit 1; }' 1 2 13 15 30745} 30746# Create a (secure) tmp directory for tmp files. 30747 30748{ 30749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 30750 test -n "$tmp" && test -d "$tmp" 30751} || 30752{ 30753 tmp=./conf$$-$RANDOM 30754 (umask 077 && mkdir "$tmp") 30755} || 30756{ 30757 $as_echo "$as_me: cannot create a temporary directory in ." >&2 30758 { (exit 1); exit 1; } 30759} 30760 30761# Set up the scripts for CONFIG_FILES section. 30762# No need to generate them if there are no CONFIG_FILES. 30763# This happens for instance with `./config.status config.h'. 30764if test -n "$CONFIG_FILES"; then 30765 30766 30767ac_cr=' 30768' 30769ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 30770if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 30771 ac_cs_awk_cr='\\r' 30772else 30773 ac_cs_awk_cr=$ac_cr 30774fi 30775 30776echo 'BEGIN {' >"$tmp/subs1.awk" && 30777_ACEOF 30778 30779 30780{ 30781 echo "cat >conf$$subs.awk <<_ACEOF" && 30782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 30783 echo "_ACEOF" 30784} >conf$$subs.sh || 30785 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30786$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 30787 { (exit 1); exit 1; }; } 30788ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 30789ac_delim='%!_!# ' 30790for ac_last_try in false false false false false :; do 30791 . ./conf$$subs.sh || 30792 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30793$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 30794 { (exit 1); exit 1; }; } 30795 30796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 30797 if test $ac_delim_n = $ac_delim_num; then 30798 break 30799 elif $ac_last_try; then 30800 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30801$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 30802 { (exit 1); exit 1; }; } 30803 else 30804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30805 fi 30806done 30807rm -f conf$$subs.sh 30808 30809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30810cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 30811_ACEOF 30812sed -n ' 30813h 30814s/^/S["/; s/!.*/"]=/ 30815p 30816g 30817s/^[^!]*!// 30818:repl 30819t repl 30820s/'"$ac_delim"'$// 30821t delim 30822:nl 30823h 30824s/\(.\{148\}\).*/\1/ 30825t more1 30826s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 30827p 30828n 30829b repl 30830:more1 30831s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30832p 30833g 30834s/.\{148\}// 30835t nl 30836:delim 30837h 30838s/\(.\{148\}\).*/\1/ 30839t more2 30840s/["\\]/\\&/g; s/^/"/; s/$/"/ 30841p 30842b 30843:more2 30844s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30845p 30846g 30847s/.\{148\}// 30848t delim 30849' <conf$$subs.awk | sed ' 30850/^[^""]/{ 30851 N 30852 s/\n// 30853} 30854' >>$CONFIG_STATUS || ac_write_fail=1 30855rm -f conf$$subs.awk 30856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30857_ACAWK 30858cat >>"\$tmp/subs1.awk" <<_ACAWK && 30859 for (key in S) S_is_set[key] = 1 30860 FS = "" 30861 30862} 30863{ 30864 line = $ 0 30865 nfields = split(line, field, "@") 30866 substed = 0 30867 len = length(field[1]) 30868 for (i = 2; i < nfields; i++) { 30869 key = field[i] 30870 keylen = length(key) 30871 if (S_is_set[key]) { 30872 value = S[key] 30873 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30874 len += length(value) + length(field[++i]) 30875 substed = 1 30876 } else 30877 len += 1 + keylen 30878 } 30879 30880 print line 30881} 30882 30883_ACAWK 30884_ACEOF 30885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30886if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30888else 30889 cat 30890fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 30891 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 30892$as_echo "$as_me: error: could not setup config files machinery" >&2;} 30893 { (exit 1); exit 1; }; } 30894_ACEOF 30895 30896# VPATH may cause trouble with some makes, so we remove $(srcdir), 30897# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 30898# trailing colons and then remove the whole line if VPATH becomes empty 30899# (actually we leave an empty line to preserve line numbers). 30900if test "x$srcdir" = x.; then 30901 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 30902s/:*\$(srcdir):*/:/ 30903s/:*\${srcdir}:*/:/ 30904s/:*@srcdir@:*/:/ 30905s/^\([^=]*=[ ]*\):*/\1/ 30906s/:*$// 30907s/^[^=]*=[ ]*$// 30908}' 30909fi 30910 30911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30912fi # test -n "$CONFIG_FILES" 30913 30914# Set up the scripts for CONFIG_HEADERS section. 30915# No need to generate them if there are no CONFIG_HEADERS. 30916# This happens for instance with `./config.status Makefile'. 30917if test -n "$CONFIG_HEADERS"; then 30918cat >"$tmp/defines.awk" <<\_ACAWK || 30919BEGIN { 30920_ACEOF 30921 30922# Transform confdefs.h into an awk script `defines.awk', embedded as 30923# here-document in config.status, that substitutes the proper values into 30924# config.h.in to produce config.h. 30925 30926# Create a delimiter string that does not exist in confdefs.h, to ease 30927# handling of long lines. 30928ac_delim='%!_!# ' 30929for ac_last_try in false false :; do 30930 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 30931 if test -z "$ac_t"; then 30932 break 30933 elif $ac_last_try; then 30934 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 30935$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 30936 { (exit 1); exit 1; }; } 30937 else 30938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30939 fi 30940done 30941 30942# For the awk script, D is an array of macro values keyed by name, 30943# likewise P contains macro parameters if any. Preserve backslash 30944# newline sequences. 30945 30946ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30947sed -n ' 30948s/.\{148\}/&'"$ac_delim"'/g 30949t rset 30950:rset 30951s/^[ ]*#[ ]*define[ ][ ]*/ / 30952t def 30953d 30954:def 30955s/\\$// 30956t bsnl 30957s/["\\]/\\&/g 30958s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30959D["\1"]=" \3"/p 30960s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30961d 30962:bsnl 30963s/["\\]/\\&/g 30964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30965D["\1"]=" \3\\\\\\n"\\/p 30966t cont 30967s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30968t cont 30969d 30970:cont 30971n 30972s/.\{148\}/&'"$ac_delim"'/g 30973t clear 30974:clear 30975s/\\$// 30976t bsnlc 30977s/["\\]/\\&/g; s/^/"/; s/$/"/p 30978d 30979:bsnlc 30980s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30981b cont 30982' <confdefs.h | sed ' 30983s/'"$ac_delim"'/"\\\ 30984"/g' >>$CONFIG_STATUS || ac_write_fail=1 30985 30986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30987 for (key in D) D_is_set[key] = 1 30988 FS = "" 30989} 30990/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30991 line = \$ 0 30992 split(line, arg, " ") 30993 if (arg[1] == "#") { 30994 defundef = arg[2] 30995 mac1 = arg[3] 30996 } else { 30997 defundef = substr(arg[1], 2) 30998 mac1 = arg[2] 30999 } 31000 split(mac1, mac2, "(") #) 31001 macro = mac2[1] 31002 prefix = substr(line, 1, index(line, defundef) - 1) 31003 if (D_is_set[macro]) { 31004 # Preserve the white space surrounding the "#". 31005 print prefix "define", macro P[macro] D[macro] 31006 next 31007 } else { 31008 # Replace #undef with comments. This is necessary, for example, 31009 # in the case of _POSIX_SOURCE, which is predefined and required 31010 # on some systems where configure will not decide to define it. 31011 if (defundef == "undef") { 31012 print "/*", prefix defundef, macro, "*/" 31013 next 31014 } 31015 } 31016} 31017{ print } 31018_ACAWK 31019_ACEOF 31020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31021 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 31022$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 31023 { (exit 1); exit 1; }; } 31024fi # test -n "$CONFIG_HEADERS" 31025 31026 31027eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31028shift 31029for ac_tag 31030do 31031 case $ac_tag in 31032 :[FHLC]) ac_mode=$ac_tag; continue;; 31033 esac 31034 case $ac_mode$ac_tag in 31035 :[FHL]*:*);; 31036 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 31037$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 31038 { (exit 1); exit 1; }; };; 31039 :[FH]-) ac_tag=-:-;; 31040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31041 esac 31042 ac_save_IFS=$IFS 31043 IFS=: 31044 set x $ac_tag 31045 IFS=$ac_save_IFS 31046 shift 31047 ac_file=$1 31048 shift 31049 31050 case $ac_mode in 31051 :L) ac_source=$1;; 31052 :[FH]) 31053 ac_file_inputs= 31054 for ac_f 31055 do 31056 case $ac_f in 31057 -) ac_f="$tmp/stdin";; 31058 *) # Look for the file first in the build tree, then in the source tree 31059 # (if the path is not absolute). The absolute path cannot be DOS-style, 31060 # because $ac_f cannot contain `:'. 31061 test -f "$ac_f" || 31062 case $ac_f in 31063 [\\/$]*) false;; 31064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31065 esac || 31066 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 31067$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 31068 { (exit 1); exit 1; }; };; 31069 esac 31070 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31071 ac_file_inputs="$ac_file_inputs '$ac_f'" 31072 done 31073 31074 # Let's still pretend it is `configure' which instantiates (i.e., don't 31075 # use $as_me), people would be surprised to read: 31076 # /* config.h. Generated by config.status. */ 31077 configure_input='Generated from '` 31078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31079 `' by configure.' 31080 if test x"$ac_file" != x-; then 31081 configure_input="$ac_file. $configure_input" 31082 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 31083$as_echo "$as_me: creating $ac_file" >&6;} 31084 fi 31085 # Neutralize special characters interpreted by sed in replacement strings. 31086 case $configure_input in #( 31087 *\&* | *\|* | *\\* ) 31088 ac_sed_conf_input=`$as_echo "$configure_input" | 31089 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31090 *) ac_sed_conf_input=$configure_input;; 31091 esac 31092 31093 case $ac_tag in 31094 *:-:* | *:-) cat >"$tmp/stdin" \ 31095 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 31096$as_echo "$as_me: error: could not create $ac_file" >&2;} 31097 { (exit 1); exit 1; }; } ;; 31098 esac 31099 ;; 31100 esac 31101 31102 ac_dir=`$as_dirname -- "$ac_file" || 31103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31104 X"$ac_file" : 'X\(//\)[^/]' \| \ 31105 X"$ac_file" : 'X\(//\)$' \| \ 31106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31107$as_echo X"$ac_file" | 31108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31109 s//\1/ 31110 q 31111 } 31112 /^X\(\/\/\)[^/].*/{ 31113 s//\1/ 31114 q 31115 } 31116 /^X\(\/\/\)$/{ 31117 s//\1/ 31118 q 31119 } 31120 /^X\(\/\).*/{ 31121 s//\1/ 31122 q 31123 } 31124 s/.*/./; q'` 31125 { as_dir="$ac_dir" 31126 case $as_dir in #( 31127 -*) as_dir=./$as_dir;; 31128 esac 31129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 31130 as_dirs= 31131 while :; do 31132 case $as_dir in #( 31133 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31134 *) as_qdir=$as_dir;; 31135 esac 31136 as_dirs="'$as_qdir' $as_dirs" 31137 as_dir=`$as_dirname -- "$as_dir" || 31138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31139 X"$as_dir" : 'X\(//\)[^/]' \| \ 31140 X"$as_dir" : 'X\(//\)$' \| \ 31141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31142$as_echo X"$as_dir" | 31143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31144 s//\1/ 31145 q 31146 } 31147 /^X\(\/\/\)[^/].*/{ 31148 s//\1/ 31149 q 31150 } 31151 /^X\(\/\/\)$/{ 31152 s//\1/ 31153 q 31154 } 31155 /^X\(\/\).*/{ 31156 s//\1/ 31157 q 31158 } 31159 s/.*/./; q'` 31160 test -d "$as_dir" && break 31161 done 31162 test -z "$as_dirs" || eval "mkdir $as_dirs" 31163 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 31164$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 31165 { (exit 1); exit 1; }; }; } 31166 ac_builddir=. 31167 31168case "$ac_dir" in 31169.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31170*) 31171 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31172 # A ".." for each directory in $ac_dir_suffix. 31173 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31174 case $ac_top_builddir_sub in 31175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31177 esac ;; 31178esac 31179ac_abs_top_builddir=$ac_pwd 31180ac_abs_builddir=$ac_pwd$ac_dir_suffix 31181# for backward compatibility: 31182ac_top_builddir=$ac_top_build_prefix 31183 31184case $srcdir in 31185 .) # We are building in place. 31186 ac_srcdir=. 31187 ac_top_srcdir=$ac_top_builddir_sub 31188 ac_abs_top_srcdir=$ac_pwd ;; 31189 [\\/]* | ?:[\\/]* ) # Absolute name. 31190 ac_srcdir=$srcdir$ac_dir_suffix; 31191 ac_top_srcdir=$srcdir 31192 ac_abs_top_srcdir=$srcdir ;; 31193 *) # Relative name. 31194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31195 ac_top_srcdir=$ac_top_build_prefix$srcdir 31196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31197esac 31198ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31199 31200 31201 case $ac_mode in 31202 :F) 31203 # 31204 # CONFIG_FILE 31205 # 31206 31207 case $INSTALL in 31208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31210 esac 31211_ACEOF 31212 31213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31214# If the template does not know about datarootdir, expand it. 31215# FIXME: This hack should be removed a few years after 2.60. 31216ac_datarootdir_hack=; ac_datarootdir_seen= 31217 31218ac_sed_dataroot=' 31219/datarootdir/ { 31220 p 31221 q 31222} 31223/@datadir@/p 31224/@docdir@/p 31225/@infodir@/p 31226/@localedir@/p 31227/@mandir@/p 31228' 31229case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31230*datarootdir*) ac_datarootdir_seen=yes;; 31231*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31232 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31233$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31234_ACEOF 31235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31236 ac_datarootdir_hack=' 31237 s&@datadir@&$datadir&g 31238 s&@docdir@&$docdir&g 31239 s&@infodir@&$infodir&g 31240 s&@localedir@&$localedir&g 31241 s&@mandir@&$mandir&g 31242 s&\\\${datarootdir}&$datarootdir&g' ;; 31243esac 31244_ACEOF 31245 31246# Neutralize VPATH when `$srcdir' = `.'. 31247# Shell code in configure.ac might set extrasub. 31248# FIXME: do we really want to maintain this feature? 31249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31250ac_sed_extra="$ac_vpsub 31251$extrasub 31252_ACEOF 31253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31254:t 31255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31256s|@configure_input@|$ac_sed_conf_input|;t t 31257s&@top_builddir@&$ac_top_builddir_sub&;t t 31258s&@top_build_prefix@&$ac_top_build_prefix&;t t 31259s&@srcdir@&$ac_srcdir&;t t 31260s&@abs_srcdir@&$ac_abs_srcdir&;t t 31261s&@top_srcdir@&$ac_top_srcdir&;t t 31262s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31263s&@builddir@&$ac_builddir&;t t 31264s&@abs_builddir@&$ac_abs_builddir&;t t 31265s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31266s&@INSTALL@&$ac_INSTALL&;t t 31267$ac_datarootdir_hack 31268" 31269eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 31270 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 31271$as_echo "$as_me: error: could not create $ac_file" >&2;} 31272 { (exit 1); exit 1; }; } 31273 31274test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31275 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 31276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 31277 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31278which seems to be undefined. Please make sure it is defined." >&5 31279$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31280which seems to be undefined. Please make sure it is defined." >&2;} 31281 31282 rm -f "$tmp/stdin" 31283 case $ac_file in 31284 -) cat "$tmp/out" && rm -f "$tmp/out";; 31285 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 31286 esac \ 31287 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 31288$as_echo "$as_me: error: could not create $ac_file" >&2;} 31289 { (exit 1); exit 1; }; } 31290 ;; 31291 :H) 31292 # 31293 # CONFIG_HEADER 31294 # 31295 if test x"$ac_file" != x-; then 31296 { 31297 $as_echo "/* $configure_input */" \ 31298 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 31299 } >"$tmp/config.h" \ 31300 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 31301$as_echo "$as_me: error: could not create $ac_file" >&2;} 31302 { (exit 1); exit 1; }; } 31303 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 31304 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 31305$as_echo "$as_me: $ac_file is unchanged" >&6;} 31306 else 31307 rm -f "$ac_file" 31308 mv "$tmp/config.h" "$ac_file" \ 31309 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 31310$as_echo "$as_me: error: could not create $ac_file" >&2;} 31311 { (exit 1); exit 1; }; } 31312 fi 31313 else 31314 $as_echo "/* $configure_input */" \ 31315 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 31316 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 31317$as_echo "$as_me: error: could not create -" >&2;} 31318 { (exit 1); exit 1; }; } 31319 fi 31320 ;; 31321 31322 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 31323$as_echo "$as_me: executing $ac_file commands" >&6;} 31324 ;; 31325 esac 31326 31327 31328 case $ac_file$ac_mode in 31329 "default-1":C) 31330 for ac_file in $CONFIG_FILES; do 31331 # Support "outfile[:infile[:infile...]]" 31332 case "$ac_file" in 31333 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 31334 esac 31335 # PO directories have a Makefile.in generated from Makefile.in.in. 31336 case "$ac_file" in */Makefile.in) 31337 # Adjust a relative srcdir. 31338 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 31339 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 31340 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 31341 # In autoconf-2.13 it is called $ac_given_srcdir. 31342 # In autoconf-2.50 it is called $srcdir. 31343 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 31344 case "$ac_given_srcdir" in 31345 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 31346 /*) top_srcdir="$ac_given_srcdir" ;; 31347 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 31348 esac 31349 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 31350 rm -f "$ac_dir/POTFILES" 31351 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 31352 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 31353 POMAKEFILEDEPS="POTFILES.in" 31354 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 31355 # on $ac_dir but don't depend on user-specified configuration 31356 # parameters. 31357 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 31358 # The LINGUAS file contains the set of available languages. 31359 if test -n "$OBSOLETE_ALL_LINGUAS"; then 31360 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 31361 fi 31362 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 31363 # Hide the ALL_LINGUAS assigment from automake. 31364 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 31365 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 31366 else 31367 # The set of available languages was given in configure.in. 31368 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 31369 fi 31370 case "$ac_given_srcdir" in 31371 .) srcdirpre= ;; 31372 *) srcdirpre='$(srcdir)/' ;; 31373 esac 31374 POFILES= 31375 GMOFILES= 31376 UPDATEPOFILES= 31377 DUMMYPOFILES= 31378 for lang in $ALL_LINGUAS; do 31379 POFILES="$POFILES $srcdirpre$lang.po" 31380 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 31381 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 31382 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 31383 done 31384 # CATALOGS depends on both $ac_dir and the user's LINGUAS 31385 # environment variable. 31386 INST_LINGUAS= 31387 if test -n "$ALL_LINGUAS"; then 31388 for presentlang in $ALL_LINGUAS; do 31389 useit=no 31390 if test "%UNSET%" != "$LINGUAS"; then 31391 desiredlanguages="$LINGUAS" 31392 else 31393 desiredlanguages="$ALL_LINGUAS" 31394 fi 31395 for desiredlang in $desiredlanguages; do 31396 # Use the presentlang catalog if desiredlang is 31397 # a. equal to presentlang, or 31398 # b. a variant of presentlang (because in this case, 31399 # presentlang can be used as a fallback for messages 31400 # which are not translated in the desiredlang catalog). 31401 case "$desiredlang" in 31402 "$presentlang"*) useit=yes;; 31403 esac 31404 done 31405 if test $useit = yes; then 31406 INST_LINGUAS="$INST_LINGUAS $presentlang" 31407 fi 31408 done 31409 fi 31410 CATALOGS= 31411 if test -n "$INST_LINGUAS"; then 31412 for lang in $INST_LINGUAS; do 31413 CATALOGS="$CATALOGS $lang.gmo" 31414 done 31415 fi 31416 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 31417 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 31418 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 31419 if test -f "$f"; then 31420 case "$f" in 31421 *.orig | *.bak | *~) ;; 31422 *) cat "$f" >> "$ac_dir/Makefile" ;; 31423 esac 31424 fi 31425 done 31426 fi 31427 ;; 31428 esac 31429 done ;; 31430 "default":C) 31431# Makefile uses this timestamp file to record whether config.h is up to date. 31432echo timestamp > stamp-h 31433 ;; 31434 31435 esac 31436done # for ac_tag 31437 31438 31439{ (exit 0); exit 0; } 31440_ACEOF 31441chmod +x $CONFIG_STATUS 31442ac_clean_files=$ac_clean_files_save 31443 31444test $ac_write_fail = 0 || 31445 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 31446$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 31447 { (exit 1); exit 1; }; } 31448 31449 31450# configure is writing to config.log, and then calls config.status. 31451# config.status does its own redirection, appending to config.log. 31452# Unfortunately, on DOS this fails, as config.log is still kept open 31453# by configure, so config.status won't be able to write to it; its 31454# output is simply discarded. So we exec the FD to /dev/null, 31455# effectively closing config.log, so it can be properly (re)opened and 31456# appended to by config.status. When coming back to configure, we 31457# need to make the FD available again. 31458if test "$no_create" != yes; then 31459 ac_cs_success=: 31460 ac_config_status_args= 31461 test "$silent" = yes && 31462 ac_config_status_args="$ac_config_status_args --quiet" 31463 exec 5>/dev/null 31464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 31465 exec 5>>config.log 31466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 31467 # would make configure fail if this is the last instruction. 31468 $ac_cs_success || { (exit 1); exit 1; } 31469fi 31470if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 31471 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 31472$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 31473fi 31474 31475