1#! /bin/sh 2# From configure.ac Revision: 1.11 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tnftp 20070806. 5# 6# Report bugs to <lukem@NetBSD.org>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 43# The user is always right. 44if test "${PATH_SEPARATOR+set}" != set; then 45 echo "#! /bin/sh" >conf$$.sh 46 echo "exit 0" >>conf$$.sh 47 chmod +x conf$$.sh 48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 49 PATH_SEPARATOR=';' 50 else 51 PATH_SEPARATOR=: 52 fi 53 rm -f conf$$.sh 54fi 55 56# Support unset when possible. 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 58 as_unset=unset 59else 60 as_unset=false 61fi 62 63 64# IFS 65# We need space, tab and new line, in precisely that order. Quoting is 66# there to prevent editors from complaining about space-tab. 67# (If _AS_PATH_WALK were called with IFS unset, it would disable word 68# splitting by setting IFS to empty value.) 69as_nl=' 70' 71IFS=" "" $as_nl" 72 73# Find who we are. Look in the path if we contain no directory separator. 74case $0 in 75 *[\\/]* ) as_myself=$0 ;; 76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 77for as_dir in $PATH 78do 79 IFS=$as_save_IFS 80 test -z "$as_dir" && as_dir=. 81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 82done 83IFS=$as_save_IFS 84 85 ;; 86esac 87# We did not find ourselves, most probably we were run as `sh COMMAND' 88# in which case we are not to be found in the path. 89if test "x$as_myself" = x; then 90 as_myself=$0 91fi 92if test ! -f "$as_myself"; then 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 94 { (exit 1); exit 1; } 95fi 96 97# Work around bugs in pre-3.0 UWIN ksh. 98for as_var in ENV MAIL MAILPATH 99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 100done 101PS1='$ ' 102PS2='> ' 103PS4='+ ' 104 105# NLS nuisances. 106for as_var in \ 107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 109 LC_TELEPHONE LC_TIME 110do 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 112 eval $as_var=C; export $as_var 113 else 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 115 fi 116done 117 118# Required to use basename. 119if expr a : '\(a\)' >/dev/null 2>&1 && 120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 121 as_expr=expr 122else 123 as_expr=false 124fi 125 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 127 as_basename=basename 128else 129 as_basename=false 130fi 131 132 133# Name of the executable. 134as_me=`$as_basename -- "$0" || 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 136 X"$0" : 'X\(//\)$' \| \ 137 X"$0" : 'X\(/\)' \| . 2>/dev/null || 138echo X/"$0" | 139 sed '/^.*\/\([^/][^/]*\)\/*$/{ 140 s//\1/ 141 q 142 } 143 /^X\/\(\/\/\)$/{ 144 s//\1/ 145 q 146 } 147 /^X\/\(\/\).*/{ 148 s//\1/ 149 q 150 } 151 s/.*/./; q'` 152 153# CDPATH. 154$as_unset CDPATH 155 156 157if test "x$CONFIG_SHELL" = x; then 158 if (eval ":") 2>/dev/null; then 159 as_have_required=yes 160else 161 as_have_required=no 162fi 163 164 if test $as_have_required = yes && (eval ": 165(as_func_return () { 166 (exit \$1) 167} 168as_func_success () { 169 as_func_return 0 170} 171as_func_failure () { 172 as_func_return 1 173} 174as_func_ret_success () { 175 return 0 176} 177as_func_ret_failure () { 178 return 1 179} 180 181exitcode=0 182if as_func_success; then 183 : 184else 185 exitcode=1 186 echo as_func_success failed. 187fi 188 189if as_func_failure; then 190 exitcode=1 191 echo as_func_failure succeeded. 192fi 193 194if as_func_ret_success; then 195 : 196else 197 exitcode=1 198 echo as_func_ret_success failed. 199fi 200 201if as_func_ret_failure; then 202 exitcode=1 203 echo as_func_ret_failure succeeded. 204fi 205 206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 207 : 208else 209 exitcode=1 210 echo positional parameters were not saved. 211fi 212 213test \$exitcode = 0) || { (exit 1); exit 1; } 214 215( 216 as_lineno_1=\$LINENO 217 as_lineno_2=\$LINENO 218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 220") 2> /dev/null; then 221 : 222else 223 as_candidate_shells= 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 226do 227 IFS=$as_save_IFS 228 test -z "$as_dir" && as_dir=. 229 case $as_dir in 230 /*) 231 for as_base in sh bash ksh sh5; do 232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 233 done;; 234 esac 235done 236IFS=$as_save_IFS 237 238 239 for as_shell in $as_candidate_shells $SHELL; do 240 # Try only shells that exist, to save several forks. 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 242 { ("$as_shell") 2> /dev/null <<\_ASEOF 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 244 emulate sh 245 NULLCMD=: 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 247 # is contrary to our usage. Disable this feature. 248 alias -g '${1+"$@"}'='"$@"' 249 setopt NO_GLOB_SUBST 250else 251 case `(set -o) 2>/dev/null` in 252 *posix*) set -o posix ;; 253esac 254 255fi 256 257 258: 259_ASEOF 260}; then 261 CONFIG_SHELL=$as_shell 262 as_have_required=yes 263 if { "$as_shell" 2> /dev/null <<\_ASEOF 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 265 emulate sh 266 NULLCMD=: 267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 268 # is contrary to our usage. Disable this feature. 269 alias -g '${1+"$@"}'='"$@"' 270 setopt NO_GLOB_SUBST 271else 272 case `(set -o) 2>/dev/null` in 273 *posix*) set -o posix ;; 274esac 275 276fi 277 278 279: 280(as_func_return () { 281 (exit $1) 282} 283as_func_success () { 284 as_func_return 0 285} 286as_func_failure () { 287 as_func_return 1 288} 289as_func_ret_success () { 290 return 0 291} 292as_func_ret_failure () { 293 return 1 294} 295 296exitcode=0 297if as_func_success; then 298 : 299else 300 exitcode=1 301 echo as_func_success failed. 302fi 303 304if as_func_failure; then 305 exitcode=1 306 echo as_func_failure succeeded. 307fi 308 309if as_func_ret_success; then 310 : 311else 312 exitcode=1 313 echo as_func_ret_success failed. 314fi 315 316if as_func_ret_failure; then 317 exitcode=1 318 echo as_func_ret_failure succeeded. 319fi 320 321if ( set x; as_func_ret_success y && test x = "$1" ); then 322 : 323else 324 exitcode=1 325 echo positional parameters were not saved. 326fi 327 328test $exitcode = 0) || { (exit 1); exit 1; } 329 330( 331 as_lineno_1=$LINENO 332 as_lineno_2=$LINENO 333 test "x$as_lineno_1" != "x$as_lineno_2" && 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 335 336_ASEOF 337}; then 338 break 339fi 340 341fi 342 343 done 344 345 if test "x$CONFIG_SHELL" != x; then 346 for as_var in BASH_ENV ENV 347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 348 done 349 export CONFIG_SHELL 350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 351fi 352 353 354 if test $as_have_required = no; then 355 echo This script requires a shell more modern than all the 356 echo shells that I found on your system. Please install a 357 echo modern shell, or manually run the script under such a 358 echo shell if you do have one. 359 { (exit 1); exit 1; } 360fi 361 362 363fi 364 365fi 366 367 368 369(eval "as_func_return () { 370 (exit \$1) 371} 372as_func_success () { 373 as_func_return 0 374} 375as_func_failure () { 376 as_func_return 1 377} 378as_func_ret_success () { 379 return 0 380} 381as_func_ret_failure () { 382 return 1 383} 384 385exitcode=0 386if as_func_success; then 387 : 388else 389 exitcode=1 390 echo as_func_success failed. 391fi 392 393if as_func_failure; then 394 exitcode=1 395 echo as_func_failure succeeded. 396fi 397 398if as_func_ret_success; then 399 : 400else 401 exitcode=1 402 echo as_func_ret_success failed. 403fi 404 405if as_func_ret_failure; then 406 exitcode=1 407 echo as_func_ret_failure succeeded. 408fi 409 410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 411 : 412else 413 exitcode=1 414 echo positional parameters were not saved. 415fi 416 417test \$exitcode = 0") || { 418 echo No shell found that supports shell functions. 419 echo Please tell autoconf@gnu.org about your system, 420 echo including any error possibly output before this 421 echo message 422} 423 424 425 426 as_lineno_1=$LINENO 427 as_lineno_2=$LINENO 428 test "x$as_lineno_1" != "x$as_lineno_2" && 429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 430 431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 432 # uniformly replaced by the line number. The first 'sed' inserts a 433 # line-number line after each line using $LINENO; the second 'sed' 434 # does the real work. The second script uses 'N' to pair each 435 # line-number line with the line containing $LINENO, and appends 436 # trailing '-' during substitution so that $LINENO is not a special 437 # case at line end. 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 439 # scripts with optimization help from Paolo Bonzini. Blame Lee 440 # E. McMahon (1931-1989) for sed's syntax. :-) 441 sed -n ' 442 p 443 /[$]LINENO/= 444 ' <$as_myself | 445 sed ' 446 s/[$]LINENO.*/&-/ 447 t lineno 448 b 449 :lineno 450 N 451 :loop 452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 453 t loop 454 s/-\n.*// 455 ' >$as_me.lineno && 456 chmod +x "$as_me.lineno" || 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 458 { (exit 1); exit 1; }; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 470 as_dirname=dirname 471else 472 as_dirname=false 473fi 474 475ECHO_C= ECHO_N= ECHO_T= 476case `echo -n x` in 477-n*) 478 case `echo 'x\c'` in 479 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 480 *) ECHO_C='\c';; 481 esac;; 482*) 483 ECHO_N='-n';; 484esac 485 486if expr a : '\(a\)' >/dev/null 2>&1 && 487 test "X`expr 00001 : '.*\(...\)'`" = X001; then 488 as_expr=expr 489else 490 as_expr=false 491fi 492 493rm -f conf$$ conf$$.exe conf$$.file 494if test -d conf$$.dir; then 495 rm -f conf$$.dir/conf$$.file 496else 497 rm -f conf$$.dir 498 mkdir conf$$.dir 499fi 500echo >conf$$.file 501if ln -s conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s='ln -s' 503 # ... but there are two gotchas: 504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 506 # In both cases, we have to default to `cp -p'. 507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 508 as_ln_s='cp -p' 509elif ln conf$$.file conf$$ 2>/dev/null; then 510 as_ln_s=ln 511else 512 as_ln_s='cp -p' 513fi 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 515rmdir conf$$.dir 2>/dev/null 516 517if mkdir -p . 2>/dev/null; then 518 as_mkdir_p=: 519else 520 test -d ./-p && rmdir ./-p 521 as_mkdir_p=false 522fi 523 524if test -x / >/dev/null 2>&1; then 525 as_test_x='test -x' 526else 527 if ls -dL / >/dev/null 2>&1; then 528 as_ls_L_option=L 529 else 530 as_ls_L_option= 531 fi 532 as_test_x=' 533 eval sh -c '\'' 534 if test -d "$1"; then 535 test -d "$1/."; 536 else 537 case $1 in 538 -*)set "./$1";; 539 esac; 540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 541 ???[sx]*):;;*)false;;esac;fi 542 '\'' sh 543 ' 544fi 545as_executable_p=$as_test_x 546 547# Sed expression to map a string onto a valid CPP name. 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 549 550# Sed expression to map a string onto a valid variable name. 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 552 553 554 555exec 7<&0 </dev/null 6>&1 556 557# Name of the host. 558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 559# so uname gets run too. 560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 561 562# 563# Initializations. 564# 565ac_default_prefix=/usr/local 566ac_clean_files= 567ac_config_libobj_dir=. 568LIBOBJS= 569cross_compiling=no 570subdirs= 571MFLAGS= 572MAKEFLAGS= 573SHELL=${CONFIG_SHELL-/bin/sh} 574 575# Identity of this package. 576PACKAGE_NAME='tnftp' 577PACKAGE_TARNAME='tnftp' 578PACKAGE_VERSION='20070806' 579PACKAGE_STRING='tnftp 20070806' 580PACKAGE_BUGREPORT='lukem@NetBSD.org' 581 582ac_unique_file="tnftp.h" 583# Factoring default headers for most tests. 584ac_includes_default="\ 585#include <stdio.h> 586#ifdef HAVE_SYS_TYPES_H 587# include <sys/types.h> 588#endif 589#ifdef HAVE_SYS_STAT_H 590# include <sys/stat.h> 591#endif 592#ifdef STDC_HEADERS 593# include <stdlib.h> 594# include <stddef.h> 595#else 596# ifdef HAVE_STDLIB_H 597# include <stdlib.h> 598# endif 599#endif 600#ifdef HAVE_STRING_H 601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 602# include <memory.h> 603# endif 604# include <string.h> 605#endif 606#ifdef HAVE_STRINGS_H 607# include <strings.h> 608#endif 609#ifdef HAVE_INTTYPES_H 610# include <inttypes.h> 611#endif 612#ifdef HAVE_STDINT_H 613# include <stdint.h> 614#endif 615#ifdef HAVE_UNISTD_H 616# include <unistd.h> 617#endif" 618 619ac_subst_vars='SHELL 620PATH_SEPARATOR 621PACKAGE_NAME 622PACKAGE_TARNAME 623PACKAGE_VERSION 624PACKAGE_STRING 625PACKAGE_BUGREPORT 626exec_prefix 627prefix 628program_transform_name 629bindir 630sbindir 631libexecdir 632datarootdir 633datadir 634sysconfdir 635sharedstatedir 636localstatedir 637includedir 638oldincludedir 639docdir 640infodir 641htmldir 642dvidir 643pdfdir 644psdir 645libdir 646localedir 647mandir 648DEFS 649ECHO_C 650ECHO_N 651ECHO_T 652LIBS 653build_alias 654host_alias 655target_alias 656build 657build_cpu 658build_vendor 659build_os 660host 661host_cpu 662host_vendor 663host_os 664target 665target_cpu 666target_vendor 667target_os 668SET_MAKE 669CC 670CFLAGS 671LDFLAGS 672CPPFLAGS 673ac_ct_CC 674EXEEXT 675OBJEXT 676AWK 677INSTALL_PROGRAM 678INSTALL_SCRIPT 679INSTALL_DATA 680AR 681RANLIB 682CPP 683GREP 684EGREP 685ALLOCA 686LIBOBJS 687INCLUDES 688LIBEDIT 689LIBNETBSD 690LIBDEPENDS 691LTLIBOBJS' 692ac_subst_files='' 693 ac_precious_vars='build_alias 694host_alias 695target_alias 696CC 697CFLAGS 698LDFLAGS 699LIBS 700CPPFLAGS 701CPP' 702 703 704# Initialize some variables set by options. 705ac_init_help= 706ac_init_version=false 707# The variables have the same names as the options, with 708# dashes changed to underlines. 709cache_file=/dev/null 710exec_prefix=NONE 711no_create= 712no_recursion= 713prefix=NONE 714program_prefix=NONE 715program_suffix=NONE 716program_transform_name=s,x,x, 717silent= 718site= 719srcdir= 720verbose= 721x_includes=NONE 722x_libraries=NONE 723 724# Installation directory options. 725# These are left unexpanded so users can "make install exec_prefix=/foo" 726# and all the variables that are supposed to be based on exec_prefix 727# by default will actually change. 728# Use braces instead of parens because sh, perl, etc. also accept them. 729# (The list follows the same order as the GNU Coding Standards.) 730bindir='${exec_prefix}/bin' 731sbindir='${exec_prefix}/sbin' 732libexecdir='${exec_prefix}/libexec' 733datarootdir='${prefix}/share' 734datadir='${datarootdir}' 735sysconfdir='${prefix}/etc' 736sharedstatedir='${prefix}/com' 737localstatedir='${prefix}/var' 738includedir='${prefix}/include' 739oldincludedir='/usr/include' 740docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 741infodir='${datarootdir}/info' 742htmldir='${docdir}' 743dvidir='${docdir}' 744pdfdir='${docdir}' 745psdir='${docdir}' 746libdir='${exec_prefix}/lib' 747localedir='${datarootdir}/locale' 748mandir='${datarootdir}/man' 749 750ac_prev= 751ac_dashdash= 752for ac_option 753do 754 # If the previous option needs an argument, assign it. 755 if test -n "$ac_prev"; then 756 eval $ac_prev=\$ac_option 757 ac_prev= 758 continue 759 fi 760 761 case $ac_option in 762 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 763 *) ac_optarg=yes ;; 764 esac 765 766 # Accept the important Cygnus configure options, so we can diagnose typos. 767 768 case $ac_dashdash$ac_option in 769 --) 770 ac_dashdash=yes ;; 771 772 -bindir | --bindir | --bindi | --bind | --bin | --bi) 773 ac_prev=bindir ;; 774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 775 bindir=$ac_optarg ;; 776 777 -build | --build | --buil | --bui | --bu) 778 ac_prev=build_alias ;; 779 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 780 build_alias=$ac_optarg ;; 781 782 -cache-file | --cache-file | --cache-fil | --cache-fi \ 783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 784 ac_prev=cache_file ;; 785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 787 cache_file=$ac_optarg ;; 788 789 --config-cache | -C) 790 cache_file=config.cache ;; 791 792 -datadir | --datadir | --datadi | --datad) 793 ac_prev=datadir ;; 794 -datadir=* | --datadir=* | --datadi=* | --datad=*) 795 datadir=$ac_optarg ;; 796 797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 798 | --dataroo | --dataro | --datar) 799 ac_prev=datarootdir ;; 800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 802 datarootdir=$ac_optarg ;; 803 804 -disable-* | --disable-*) 805 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 806 # Reject names that are not valid shell variable names. 807 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 808 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 809 { (exit 1); exit 1; }; } 810 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 811 eval enable_$ac_feature=no ;; 812 813 -docdir | --docdir | --docdi | --doc | --do) 814 ac_prev=docdir ;; 815 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 816 docdir=$ac_optarg ;; 817 818 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 819 ac_prev=dvidir ;; 820 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 821 dvidir=$ac_optarg ;; 822 823 -enable-* | --enable-*) 824 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 825 # Reject names that are not valid shell variable names. 826 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 827 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 828 { (exit 1); exit 1; }; } 829 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 830 eval enable_$ac_feature=\$ac_optarg ;; 831 832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 834 | --exec | --exe | --ex) 835 ac_prev=exec_prefix ;; 836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 838 | --exec=* | --exe=* | --ex=*) 839 exec_prefix=$ac_optarg ;; 840 841 -gas | --gas | --ga | --g) 842 # Obsolete; use --with-gas. 843 with_gas=yes ;; 844 845 -help | --help | --hel | --he | -h) 846 ac_init_help=long ;; 847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 848 ac_init_help=recursive ;; 849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 850 ac_init_help=short ;; 851 852 -host | --host | --hos | --ho) 853 ac_prev=host_alias ;; 854 -host=* | --host=* | --hos=* | --ho=*) 855 host_alias=$ac_optarg ;; 856 857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 858 ac_prev=htmldir ;; 859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 860 | --ht=*) 861 htmldir=$ac_optarg ;; 862 863 -includedir | --includedir | --includedi | --included | --include \ 864 | --includ | --inclu | --incl | --inc) 865 ac_prev=includedir ;; 866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 867 | --includ=* | --inclu=* | --incl=* | --inc=*) 868 includedir=$ac_optarg ;; 869 870 -infodir | --infodir | --infodi | --infod | --info | --inf) 871 ac_prev=infodir ;; 872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 873 infodir=$ac_optarg ;; 874 875 -libdir | --libdir | --libdi | --libd) 876 ac_prev=libdir ;; 877 -libdir=* | --libdir=* | --libdi=* | --libd=*) 878 libdir=$ac_optarg ;; 879 880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 881 | --libexe | --libex | --libe) 882 ac_prev=libexecdir ;; 883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 884 | --libexe=* | --libex=* | --libe=*) 885 libexecdir=$ac_optarg ;; 886 887 -localedir | --localedir | --localedi | --localed | --locale) 888 ac_prev=localedir ;; 889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 890 localedir=$ac_optarg ;; 891 892 -localstatedir | --localstatedir | --localstatedi | --localstated \ 893 | --localstate | --localstat | --localsta | --localst | --locals) 894 ac_prev=localstatedir ;; 895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 897 localstatedir=$ac_optarg ;; 898 899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 900 ac_prev=mandir ;; 901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 902 mandir=$ac_optarg ;; 903 904 -nfp | --nfp | --nf) 905 # Obsolete; use --without-fp. 906 with_fp=no ;; 907 908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 909 | --no-cr | --no-c | -n) 910 no_create=yes ;; 911 912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 914 no_recursion=yes ;; 915 916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 918 | --oldin | --oldi | --old | --ol | --o) 919 ac_prev=oldincludedir ;; 920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 923 oldincludedir=$ac_optarg ;; 924 925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 926 ac_prev=prefix ;; 927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 928 prefix=$ac_optarg ;; 929 930 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 931 | --program-pre | --program-pr | --program-p) 932 ac_prev=program_prefix ;; 933 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 935 program_prefix=$ac_optarg ;; 936 937 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 938 | --program-suf | --program-su | --program-s) 939 ac_prev=program_suffix ;; 940 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 942 program_suffix=$ac_optarg ;; 943 944 -program-transform-name | --program-transform-name \ 945 | --program-transform-nam | --program-transform-na \ 946 | --program-transform-n | --program-transform- \ 947 | --program-transform | --program-transfor \ 948 | --program-transfo | --program-transf \ 949 | --program-trans | --program-tran \ 950 | --progr-tra | --program-tr | --program-t) 951 ac_prev=program_transform_name ;; 952 -program-transform-name=* | --program-transform-name=* \ 953 | --program-transform-nam=* | --program-transform-na=* \ 954 | --program-transform-n=* | --program-transform-=* \ 955 | --program-transform=* | --program-transfor=* \ 956 | --program-transfo=* | --program-transf=* \ 957 | --program-trans=* | --program-tran=* \ 958 | --progr-tra=* | --program-tr=* | --program-t=*) 959 program_transform_name=$ac_optarg ;; 960 961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 962 ac_prev=pdfdir ;; 963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 964 pdfdir=$ac_optarg ;; 965 966 -psdir | --psdir | --psdi | --psd | --ps) 967 ac_prev=psdir ;; 968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 969 psdir=$ac_optarg ;; 970 971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 972 | -silent | --silent | --silen | --sile | --sil) 973 silent=yes ;; 974 975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 976 ac_prev=sbindir ;; 977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 978 | --sbi=* | --sb=*) 979 sbindir=$ac_optarg ;; 980 981 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 983 | --sharedst | --shareds | --shared | --share | --shar \ 984 | --sha | --sh) 985 ac_prev=sharedstatedir ;; 986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 989 | --sha=* | --sh=*) 990 sharedstatedir=$ac_optarg ;; 991 992 -site | --site | --sit) 993 ac_prev=site ;; 994 -site=* | --site=* | --sit=*) 995 site=$ac_optarg ;; 996 997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 998 ac_prev=srcdir ;; 999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1000 srcdir=$ac_optarg ;; 1001 1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1003 | --syscon | --sysco | --sysc | --sys | --sy) 1004 ac_prev=sysconfdir ;; 1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1007 sysconfdir=$ac_optarg ;; 1008 1009 -target | --target | --targe | --targ | --tar | --ta | --t) 1010 ac_prev=target_alias ;; 1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1012 target_alias=$ac_optarg ;; 1013 1014 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1015 verbose=yes ;; 1016 1017 -version | --version | --versio | --versi | --vers | -V) 1018 ac_init_version=: ;; 1019 1020 -with-* | --with-*) 1021 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid package name: $ac_package" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1027 eval with_$ac_package=\$ac_optarg ;; 1028 1029 -without-* | --without-*) 1030 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1033 { echo "$as_me: error: invalid package name: $ac_package" >&2 1034 { (exit 1); exit 1; }; } 1035 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1036 eval with_$ac_package=no ;; 1037 1038 --x) 1039 # Obsolete; use --with-x. 1040 with_x=yes ;; 1041 1042 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1043 | --x-incl | --x-inc | --x-in | --x-i) 1044 ac_prev=x_includes ;; 1045 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1046 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1047 x_includes=$ac_optarg ;; 1048 1049 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1050 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1051 ac_prev=x_libraries ;; 1052 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1053 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1054 x_libraries=$ac_optarg ;; 1055 1056 -*) { echo "$as_me: error: unrecognized option: $ac_option 1057Try \`$0 --help' for more information." >&2 1058 { (exit 1); exit 1; }; } 1059 ;; 1060 1061 *=*) 1062 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1065 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1066 { (exit 1); exit 1; }; } 1067 eval $ac_envvar=\$ac_optarg 1068 export $ac_envvar ;; 1069 1070 *) 1071 # FIXME: should be removed in autoconf 3.0. 1072 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1073 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1074 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1075 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1076 ;; 1077 1078 esac 1079done 1080 1081if test -n "$ac_prev"; then 1082 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1083 { echo "$as_me: error: missing argument to $ac_option" >&2 1084 { (exit 1); exit 1; }; } 1085fi 1086 1087# Be sure to have absolute directory names. 1088for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1089 datadir sysconfdir sharedstatedir localstatedir includedir \ 1090 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1091 libdir localedir mandir 1092do 1093 eval ac_val=\$$ac_var 1094 case $ac_val in 1095 [\\/$]* | ?:[\\/]* ) continue;; 1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1097 esac 1098 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1099 { (exit 1); exit 1; }; } 1100done 1101 1102# There might be people who depend on the old broken behavior: `$host' 1103# used to hold the argument of --host etc. 1104# FIXME: To remove some day. 1105build=$build_alias 1106host=$host_alias 1107target=$target_alias 1108 1109# FIXME: To remove some day. 1110if test "x$host_alias" != x; then 1111 if test "x$build_alias" = x; then 1112 cross_compiling=maybe 1113 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1114 If a cross compiler is detected then cross compile mode will be used." >&2 1115 elif test "x$build_alias" != "x$host_alias"; then 1116 cross_compiling=yes 1117 fi 1118fi 1119 1120ac_tool_prefix= 1121test -n "$host_alias" && ac_tool_prefix=$host_alias- 1122 1123test "$silent" = yes && exec 6>/dev/null 1124 1125 1126ac_pwd=`pwd` && test -n "$ac_pwd" && 1127ac_ls_di=`ls -di .` && 1128ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1129 { echo "$as_me: error: Working directory cannot be determined" >&2 1130 { (exit 1); exit 1; }; } 1131test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1132 { echo "$as_me: error: pwd does not report name of working directory" >&2 1133 { (exit 1); exit 1; }; } 1134 1135 1136# Find the source files, if location was not specified. 1137if test -z "$srcdir"; then 1138 ac_srcdir_defaulted=yes 1139 # Try the directory containing this script, then the parent directory. 1140 ac_confdir=`$as_dirname -- "$0" || 1141$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1142 X"$0" : 'X\(//\)[^/]' \| \ 1143 X"$0" : 'X\(//\)$' \| \ 1144 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1145echo X"$0" | 1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1147 s//\1/ 1148 q 1149 } 1150 /^X\(\/\/\)[^/].*/{ 1151 s//\1/ 1152 q 1153 } 1154 /^X\(\/\/\)$/{ 1155 s//\1/ 1156 q 1157 } 1158 /^X\(\/\).*/{ 1159 s//\1/ 1160 q 1161 } 1162 s/.*/./; q'` 1163 srcdir=$ac_confdir 1164 if test ! -r "$srcdir/$ac_unique_file"; then 1165 srcdir=.. 1166 fi 1167else 1168 ac_srcdir_defaulted=no 1169fi 1170if test ! -r "$srcdir/$ac_unique_file"; then 1171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1172 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1173 { (exit 1); exit 1; }; } 1174fi 1175ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1176ac_abs_confdir=`( 1177 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1178 { (exit 1); exit 1; }; } 1179 pwd)` 1180# When building in place, set srcdir=. 1181if test "$ac_abs_confdir" = "$ac_pwd"; then 1182 srcdir=. 1183fi 1184# Remove unnecessary trailing slashes from srcdir. 1185# Double slashes in file names in object file debugging info 1186# mess up M-x gdb in Emacs. 1187case $srcdir in 1188*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1189esac 1190for ac_var in $ac_precious_vars; do 1191 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1192 eval ac_env_${ac_var}_value=\$${ac_var} 1193 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1194 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1195done 1196 1197# 1198# Report the --help message. 1199# 1200if test "$ac_init_help" = "long"; then 1201 # Omit some internal or obsolete options to make the list less imposing. 1202 # This message is too long to be a string in the A/UX 3.1 sh. 1203 cat <<_ACEOF 1204\`configure' configures tnftp 20070806 to adapt to many kinds of systems. 1205 1206Usage: $0 [OPTION]... [VAR=VALUE]... 1207 1208To assign environment variables (e.g., CC, CFLAGS...), specify them as 1209VAR=VALUE. See below for descriptions of some of the useful variables. 1210 1211Defaults for the options are specified in brackets. 1212 1213Configuration: 1214 -h, --help display this help and exit 1215 --help=short display options specific to this package 1216 --help=recursive display the short help of all the included packages 1217 -V, --version display version information and exit 1218 -q, --quiet, --silent do not print \`checking...' messages 1219 --cache-file=FILE cache test results in FILE [disabled] 1220 -C, --config-cache alias for \`--cache-file=config.cache' 1221 -n, --no-create do not create output files 1222 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1223 1224Installation directories: 1225 --prefix=PREFIX install architecture-independent files in PREFIX 1226 [$ac_default_prefix] 1227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1228 [PREFIX] 1229 1230By default, \`make install' will install all the files in 1231\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1232an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1233for instance \`--prefix=\$HOME'. 1234 1235For better control, use the options below. 1236 1237Fine tuning of the installation directories: 1238 --bindir=DIR user executables [EPREFIX/bin] 1239 --sbindir=DIR system admin executables [EPREFIX/sbin] 1240 --libexecdir=DIR program executables [EPREFIX/libexec] 1241 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1242 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1243 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1244 --libdir=DIR object code libraries [EPREFIX/lib] 1245 --includedir=DIR C header files [PREFIX/include] 1246 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1249 --infodir=DIR info documentation [DATAROOTDIR/info] 1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1251 --mandir=DIR man documentation [DATAROOTDIR/man] 1252 --docdir=DIR documentation root [DATAROOTDIR/doc/tnftp] 1253 --htmldir=DIR html documentation [DOCDIR] 1254 --dvidir=DIR dvi documentation [DOCDIR] 1255 --pdfdir=DIR pdf documentation [DOCDIR] 1256 --psdir=DIR ps documentation [DOCDIR] 1257_ACEOF 1258 1259 cat <<\_ACEOF 1260 1261Program names: 1262 --program-prefix=PREFIX prepend PREFIX to installed program names 1263 --program-suffix=SUFFIX append SUFFIX to installed program names 1264 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1265 1266System types: 1267 --build=BUILD configure for building on BUILD [guessed] 1268 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1269 --target=TARGET configure for building compilers for TARGET [HOST] 1270_ACEOF 1271fi 1272 1273if test -n "$ac_init_help"; then 1274 case $ac_init_help in 1275 short | recursive ) echo "Configuration of tnftp 20070806:";; 1276 esac 1277 cat <<\_ACEOF 1278 1279Optional Features: 1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1282 --enable-editcomplete turn on command line editing and completion. 1283 (default: enabled) 1284 --enable-ipv6 enable IPv6 support (if your OS supports it). 1285 (default: enabled) 1286 --disable-largefile omit support for large files 1287 1288Optional Packages: 1289 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1290 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1291 --with-socks enable support for (Dante) SOCKS5 proxy 1292 1293Some influential environment variables: 1294 CC C compiler command 1295 CFLAGS C compiler flags 1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1297 nonstandard directory <lib dir> 1298 LIBS libraries to pass to the linker, e.g. -l<library> 1299 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1300 you have headers in a nonstandard directory <include dir> 1301 CPP C preprocessor 1302 1303Use these variables to override the choices made by `configure' or to help 1304it to find libraries and programs with nonstandard names/locations. 1305 1306Report bugs to <lukem@NetBSD.org>. 1307_ACEOF 1308ac_status=$? 1309fi 1310 1311if test "$ac_init_help" = "recursive"; then 1312 # If there are subdirs, report their specific --help. 1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1314 test -d "$ac_dir" || continue 1315 ac_builddir=. 1316 1317case "$ac_dir" in 1318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1319*) 1320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1321 # A ".." for each directory in $ac_dir_suffix. 1322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1323 case $ac_top_builddir_sub in 1324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1326 esac ;; 1327esac 1328ac_abs_top_builddir=$ac_pwd 1329ac_abs_builddir=$ac_pwd$ac_dir_suffix 1330# for backward compatibility: 1331ac_top_builddir=$ac_top_build_prefix 1332 1333case $srcdir in 1334 .) # We are building in place. 1335 ac_srcdir=. 1336 ac_top_srcdir=$ac_top_builddir_sub 1337 ac_abs_top_srcdir=$ac_pwd ;; 1338 [\\/]* | ?:[\\/]* ) # Absolute name. 1339 ac_srcdir=$srcdir$ac_dir_suffix; 1340 ac_top_srcdir=$srcdir 1341 ac_abs_top_srcdir=$srcdir ;; 1342 *) # Relative name. 1343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1344 ac_top_srcdir=$ac_top_build_prefix$srcdir 1345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1346esac 1347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1348 1349 cd "$ac_dir" || { ac_status=$?; continue; } 1350 # Check for guested configure. 1351 if test -f "$ac_srcdir/configure.gnu"; then 1352 echo && 1353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1354 elif test -f "$ac_srcdir/configure"; then 1355 echo && 1356 $SHELL "$ac_srcdir/configure" --help=recursive 1357 else 1358 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1359 fi || ac_status=$? 1360 cd "$ac_pwd" || { ac_status=$?; break; } 1361 done 1362fi 1363 1364test -n "$ac_init_help" && exit $ac_status 1365if $ac_init_version; then 1366 cat <<\_ACEOF 1367tnftp configure 20070806 1368generated by GNU Autoconf 2.61 1369 1370Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1372This configure script is free software; the Free Software Foundation 1373gives unlimited permission to copy, distribute and modify it. 1374_ACEOF 1375 exit 1376fi 1377cat >config.log <<_ACEOF 1378This file contains any messages produced by compilers while 1379running configure, to aid debugging if configure makes a mistake. 1380 1381It was created by tnftp $as_me 20070806, which was 1382generated by GNU Autoconf 2.61. Invocation command line was 1383 1384 $ $0 $@ 1385 1386_ACEOF 1387exec 5>>config.log 1388{ 1389cat <<_ASUNAME 1390## --------- ## 1391## Platform. ## 1392## --------- ## 1393 1394hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1395uname -m = `(uname -m) 2>/dev/null || echo unknown` 1396uname -r = `(uname -r) 2>/dev/null || echo unknown` 1397uname -s = `(uname -s) 2>/dev/null || echo unknown` 1398uname -v = `(uname -v) 2>/dev/null || echo unknown` 1399 1400/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1401/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1402 1403/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1404/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1405/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1406/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1407/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1408/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1409/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1410 1411_ASUNAME 1412 1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1414for as_dir in $PATH 1415do 1416 IFS=$as_save_IFS 1417 test -z "$as_dir" && as_dir=. 1418 echo "PATH: $as_dir" 1419done 1420IFS=$as_save_IFS 1421 1422} >&5 1423 1424cat >&5 <<_ACEOF 1425 1426 1427## ----------- ## 1428## Core tests. ## 1429## ----------- ## 1430 1431_ACEOF 1432 1433 1434# Keep a trace of the command line. 1435# Strip out --no-create and --no-recursion so they do not pile up. 1436# Strip out --silent because we don't want to record it for future runs. 1437# Also quote any args containing shell meta-characters. 1438# Make two passes to allow for proper duplicate-argument suppression. 1439ac_configure_args= 1440ac_configure_args0= 1441ac_configure_args1= 1442ac_must_keep_next=false 1443for ac_pass in 1 2 1444do 1445 for ac_arg 1446 do 1447 case $ac_arg in 1448 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1450 | -silent | --silent | --silen | --sile | --sil) 1451 continue ;; 1452 *\'*) 1453 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1454 esac 1455 case $ac_pass in 1456 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1457 2) 1458 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1459 if test $ac_must_keep_next = true; then 1460 ac_must_keep_next=false # Got value, back to normal. 1461 else 1462 case $ac_arg in 1463 *=* | --config-cache | -C | -disable-* | --disable-* \ 1464 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1465 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1466 | -with-* | --with-* | -without-* | --without-* | --x) 1467 case "$ac_configure_args0 " in 1468 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1469 esac 1470 ;; 1471 -* ) ac_must_keep_next=true ;; 1472 esac 1473 fi 1474 ac_configure_args="$ac_configure_args '$ac_arg'" 1475 ;; 1476 esac 1477 done 1478done 1479$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1480$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1481 1482# When interrupted or exit'd, cleanup temporary files, and complete 1483# config.log. We remove comments because anyway the quotes in there 1484# would cause problems or look ugly. 1485# WARNING: Use '\'' to represent an apostrophe within the trap. 1486# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1487trap 'exit_status=$? 1488 # Save into config.log some information that might help in debugging. 1489 { 1490 echo 1491 1492 cat <<\_ASBOX 1493## ---------------- ## 1494## Cache variables. ## 1495## ---------------- ## 1496_ASBOX 1497 echo 1498 # The following way of writing the cache mishandles newlines in values, 1499( 1500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1501 eval ac_val=\$$ac_var 1502 case $ac_val in #( 1503 *${as_nl}*) 1504 case $ac_var in #( 1505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1506echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1507 esac 1508 case $ac_var in #( 1509 _ | IFS | as_nl) ;; #( 1510 *) $as_unset $ac_var ;; 1511 esac ;; 1512 esac 1513 done 1514 (set) 2>&1 | 1515 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1516 *${as_nl}ac_space=\ *) 1517 sed -n \ 1518 "s/'\''/'\''\\\\'\'''\''/g; 1519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1520 ;; #( 1521 *) 1522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1523 ;; 1524 esac | 1525 sort 1526) 1527 echo 1528 1529 cat <<\_ASBOX 1530## ----------------- ## 1531## Output variables. ## 1532## ----------------- ## 1533_ASBOX 1534 echo 1535 for ac_var in $ac_subst_vars 1536 do 1537 eval ac_val=\$$ac_var 1538 case $ac_val in 1539 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1540 esac 1541 echo "$ac_var='\''$ac_val'\''" 1542 done | sort 1543 echo 1544 1545 if test -n "$ac_subst_files"; then 1546 cat <<\_ASBOX 1547## ------------------- ## 1548## File substitutions. ## 1549## ------------------- ## 1550_ASBOX 1551 echo 1552 for ac_var in $ac_subst_files 1553 do 1554 eval ac_val=\$$ac_var 1555 case $ac_val in 1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1557 esac 1558 echo "$ac_var='\''$ac_val'\''" 1559 done | sort 1560 echo 1561 fi 1562 1563 if test -s confdefs.h; then 1564 cat <<\_ASBOX 1565## ----------- ## 1566## confdefs.h. ## 1567## ----------- ## 1568_ASBOX 1569 echo 1570 cat confdefs.h 1571 echo 1572 fi 1573 test "$ac_signal" != 0 && 1574 echo "$as_me: caught signal $ac_signal" 1575 echo "$as_me: exit $exit_status" 1576 } >&5 1577 rm -f core *.core core.conftest.* && 1578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1579 exit $exit_status 1580' 0 1581for ac_signal in 1 2 13 15; do 1582 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1583done 1584ac_signal=0 1585 1586# confdefs.h avoids OS command line length limits that DEFS can exceed. 1587rm -f -r conftest* confdefs.h 1588 1589# Predefined preprocessor variables. 1590 1591cat >>confdefs.h <<_ACEOF 1592#define PACKAGE_NAME "$PACKAGE_NAME" 1593_ACEOF 1594 1595 1596cat >>confdefs.h <<_ACEOF 1597#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1598_ACEOF 1599 1600 1601cat >>confdefs.h <<_ACEOF 1602#define PACKAGE_VERSION "$PACKAGE_VERSION" 1603_ACEOF 1604 1605 1606cat >>confdefs.h <<_ACEOF 1607#define PACKAGE_STRING "$PACKAGE_STRING" 1608_ACEOF 1609 1610 1611cat >>confdefs.h <<_ACEOF 1612#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1613_ACEOF 1614 1615 1616# Let the site file select an alternate cache file if it wants to. 1617# Prefer explicitly selected file to automatically selected ones. 1618if test -n "$CONFIG_SITE"; then 1619 set x "$CONFIG_SITE" 1620elif test "x$prefix" != xNONE; then 1621 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1622else 1623 set x "$ac_default_prefix/share/config.site" \ 1624 "$ac_default_prefix/etc/config.site" 1625fi 1626shift 1627for ac_site_file 1628do 1629 if test -r "$ac_site_file"; then 1630 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1631echo "$as_me: loading site script $ac_site_file" >&6;} 1632 sed 's/^/| /' "$ac_site_file" >&5 1633 . "$ac_site_file" 1634 fi 1635done 1636 1637if test -r "$cache_file"; then 1638 # Some versions of bash will fail to source /dev/null (special 1639 # files actually), so we avoid doing that. 1640 if test -f "$cache_file"; then 1641 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1642echo "$as_me: loading cache $cache_file" >&6;} 1643 case $cache_file in 1644 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1645 *) . "./$cache_file";; 1646 esac 1647 fi 1648else 1649 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1650echo "$as_me: creating cache $cache_file" >&6;} 1651 >$cache_file 1652fi 1653 1654# Check that the precious variables saved in the cache have kept the same 1655# value. 1656ac_cache_corrupted=false 1657for ac_var in $ac_precious_vars; do 1658 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1659 eval ac_new_set=\$ac_env_${ac_var}_set 1660 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1661 eval ac_new_val=\$ac_env_${ac_var}_value 1662 case $ac_old_set,$ac_new_set in 1663 set,) 1664 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1665echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1666 ac_cache_corrupted=: ;; 1667 ,set) 1668 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1669echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1670 ac_cache_corrupted=: ;; 1671 ,);; 1672 *) 1673 if test "x$ac_old_val" != "x$ac_new_val"; then 1674 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1675echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1676 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1677echo "$as_me: former value: $ac_old_val" >&2;} 1678 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1679echo "$as_me: current value: $ac_new_val" >&2;} 1680 ac_cache_corrupted=: 1681 fi;; 1682 esac 1683 # Pass precious variables to config.status. 1684 if test "$ac_new_set" = set; then 1685 case $ac_new_val in 1686 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1687 *) ac_arg=$ac_var=$ac_new_val ;; 1688 esac 1689 case " $ac_configure_args " in 1690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1691 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1692 esac 1693 fi 1694done 1695if $ac_cache_corrupted; then 1696 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1697echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1698 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1699echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1700 { (exit 1); exit 1; }; } 1701fi 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727ac_ext=c 1728ac_cpp='$CPP $CPPFLAGS' 1729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1731ac_compiler_gnu=$ac_cv_c_compiler_gnu 1732 1733 1734 1735 1736 1737## --------------------- ## 1738## M4sh Initialization. ## 1739## --------------------- ## 1740 1741# Be more Bourne compatible 1742DUALCASE=1; export DUALCASE # for MKS sh 1743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 1744 emulate sh 1745 NULLCMD=: 1746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 1747 # is contrary to our usage. Disable this feature. 1748 alias -g '${1+"$@"}'='"$@"' 1749 setopt NO_GLOB_SUBST 1750else 1751 case `(set -o) 2>/dev/null` in 1752 *posix*) set -o posix ;; 1753esac 1754 1755fi 1756 1757 1758 1759 1760# PATH needs CR 1761# Avoid depending upon Character Ranges. 1762as_cr_letters='abcdefghijklmnopqrstuvwxyz' 1763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1764as_cr_Letters=$as_cr_letters$as_cr_LETTERS 1765as_cr_digits='0123456789' 1766as_cr_alnum=$as_cr_Letters$as_cr_digits 1767 1768# The user is always right. 1769if test "${PATH_SEPARATOR+set}" != set; then 1770 echo "#! /bin/sh" >conf$$.sh 1771 echo "exit 0" >>conf$$.sh 1772 chmod +x conf$$.sh 1773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 1774 PATH_SEPARATOR=';' 1775 else 1776 PATH_SEPARATOR=: 1777 fi 1778 rm -f conf$$.sh 1779fi 1780 1781# Support unset when possible. 1782if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 1783 as_unset=unset 1784else 1785 as_unset=false 1786fi 1787 1788 1789# IFS 1790# We need space, tab and new line, in precisely that order. Quoting is 1791# there to prevent editors from complaining about space-tab. 1792# (If _AS_PATH_WALK were called with IFS unset, it would disable word 1793# splitting by setting IFS to empty value.) 1794as_nl=' 1795' 1796IFS=" "" $as_nl" 1797 1798# Find who we are. Look in the path if we contain no directory separator. 1799case $0 in 1800 *[\\/]* ) as_myself=$0 ;; 1801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1802for as_dir in $PATH 1803do 1804 IFS=$as_save_IFS 1805 test -z "$as_dir" && as_dir=. 1806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1807done 1808IFS=$as_save_IFS 1809 1810 ;; 1811esac 1812# We did not find ourselves, most probably we were run as `sh COMMAND' 1813# in which case we are not to be found in the path. 1814if test "x$as_myself" = x; then 1815 as_myself=$0 1816fi 1817if test ! -f "$as_myself"; then 1818 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1819 { (exit 1); exit 1; } 1820fi 1821 1822# Work around bugs in pre-3.0 UWIN ksh. 1823for as_var in ENV MAIL MAILPATH 1824do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 1825done 1826PS1='$ ' 1827PS2='> ' 1828PS4='+ ' 1829 1830# NLS nuisances. 1831for as_var in \ 1832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 1833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 1834 LC_TELEPHONE LC_TIME 1835do 1836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 1837 eval $as_var=C; export $as_var 1838 else 1839 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 1840 fi 1841done 1842 1843# Required to use basename. 1844if expr a : '\(a\)' >/dev/null 2>&1 && 1845 test "X`expr 00001 : '.*\(...\)'`" = X001; then 1846 as_expr=expr 1847else 1848 as_expr=false 1849fi 1850 1851if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1852 as_basename=basename 1853else 1854 as_basename=false 1855fi 1856 1857 1858# Name of the executable. 1859as_me=`$as_basename -- "$0" || 1860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1861 X"$0" : 'X\(//\)$' \| \ 1862 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1863echo X/"$0" | 1864 sed '/^.*\/\([^/][^/]*\)\/*$/{ 1865 s//\1/ 1866 q 1867 } 1868 /^X\/\(\/\/\)$/{ 1869 s//\1/ 1870 q 1871 } 1872 /^X\/\(\/\).*/{ 1873 s//\1/ 1874 q 1875 } 1876 s/.*/./; q'` 1877 1878# CDPATH. 1879$as_unset CDPATH 1880 1881 1882 1883ac_aux_dir= 1884for ac_dir in build-aux "$srcdir"/build-aux; do 1885 if test -f "$ac_dir/install-sh"; then 1886 ac_aux_dir=$ac_dir 1887 ac_install_sh="$ac_aux_dir/install-sh -c" 1888 break 1889 elif test -f "$ac_dir/install.sh"; then 1890 ac_aux_dir=$ac_dir 1891 ac_install_sh="$ac_aux_dir/install.sh -c" 1892 break 1893 elif test -f "$ac_dir/shtool"; then 1894 ac_aux_dir=$ac_dir 1895 ac_install_sh="$ac_aux_dir/shtool install -c" 1896 break 1897 fi 1898done 1899if test -z "$ac_aux_dir"; then 1900 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5 1901echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;} 1902 { (exit 1); exit 1; }; } 1903fi 1904 1905# These three variables are undocumented and unsupported, 1906# and are intended to be withdrawn in a future Autoconf release. 1907# They can cause serious problems if a builder's source tree is in a directory 1908# whose full name contains unusual characters. 1909ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1910ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1911ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1912 1913 1914ac_config_headers="$ac_config_headers config.h" 1915 1916 1917# 1918# Arguments for which features are included. 1919# 1920# Make sure we can run config.sub. 1921$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1922 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1923echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1924 { (exit 1); exit 1; }; } 1925 1926{ echo "$as_me:$LINENO: checking build system type" >&5 1927echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1928if test "${ac_cv_build+set}" = set; then 1929 echo $ECHO_N "(cached) $ECHO_C" >&6 1930else 1931 ac_build_alias=$build_alias 1932test "x$ac_build_alias" = x && 1933 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1934test "x$ac_build_alias" = x && 1935 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1936echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1937 { (exit 1); exit 1; }; } 1938ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1939 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1940echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1941 { (exit 1); exit 1; }; } 1942 1943fi 1944{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1945echo "${ECHO_T}$ac_cv_build" >&6; } 1946case $ac_cv_build in 1947*-*-*) ;; 1948*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1949echo "$as_me: error: invalid value of canonical build" >&2;} 1950 { (exit 1); exit 1; }; };; 1951esac 1952build=$ac_cv_build 1953ac_save_IFS=$IFS; IFS='-' 1954set x $ac_cv_build 1955shift 1956build_cpu=$1 1957build_vendor=$2 1958shift; shift 1959# Remember, the first character of IFS is used to create $*, 1960# except with old shells: 1961build_os=$* 1962IFS=$ac_save_IFS 1963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1964 1965 1966{ echo "$as_me:$LINENO: checking host system type" >&5 1967echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1968if test "${ac_cv_host+set}" = set; then 1969 echo $ECHO_N "(cached) $ECHO_C" >&6 1970else 1971 if test "x$host_alias" = x; then 1972 ac_cv_host=$ac_cv_build 1973else 1974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1975 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1976echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1977 { (exit 1); exit 1; }; } 1978fi 1979 1980fi 1981{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1982echo "${ECHO_T}$ac_cv_host" >&6; } 1983case $ac_cv_host in 1984*-*-*) ;; 1985*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1986echo "$as_me: error: invalid value of canonical host" >&2;} 1987 { (exit 1); exit 1; }; };; 1988esac 1989host=$ac_cv_host 1990ac_save_IFS=$IFS; IFS='-' 1991set x $ac_cv_host 1992shift 1993host_cpu=$1 1994host_vendor=$2 1995shift; shift 1996# Remember, the first character of IFS is used to create $*, 1997# except with old shells: 1998host_os=$* 1999IFS=$ac_save_IFS 2000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2001 2002 2003{ echo "$as_me:$LINENO: checking target system type" >&5 2004echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2005if test "${ac_cv_target+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 if test "x$target_alias" = x; then 2009 ac_cv_target=$ac_cv_host 2010else 2011 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2012 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2013echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2014 { (exit 1); exit 1; }; } 2015fi 2016 2017fi 2018{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2019echo "${ECHO_T}$ac_cv_target" >&6; } 2020case $ac_cv_target in 2021*-*-*) ;; 2022*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2023echo "$as_me: error: invalid value of canonical target" >&2;} 2024 { (exit 1); exit 1; }; };; 2025esac 2026target=$ac_cv_target 2027ac_save_IFS=$IFS; IFS='-' 2028set x $ac_cv_target 2029shift 2030target_cpu=$1 2031target_vendor=$2 2032shift; shift 2033# Remember, the first character of IFS is used to create $*, 2034# except with old shells: 2035target_os=$* 2036IFS=$ac_save_IFS 2037case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2038 2039 2040# The aliases save the names the user supplied, while $host etc. 2041# will get canonicalized. 2042test -n "$target_alias" && 2043 test "$program_prefix$program_suffix$program_transform_name" = \ 2044 NONENONEs,x,x, && 2045 program_prefix=${target_alias}- 2046test "$program_prefix" != NONE && 2047 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2048# Use a double $ so make ignores it. 2049test "$program_suffix" != NONE && 2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2051# Double any \ or $. echo might interpret backslashes. 2052# By default was `s,x,x', remove it if useless. 2053cat <<\_ACEOF >conftest.sed 2054s/[\\$]/&&/g;s/;s,x,x,$// 2055_ACEOF 2056program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2057rm -f conftest.sed 2058 2059# Check whether --enable-editcomplete was given. 2060if test "${enable_editcomplete+set}" = set; then 2061 enableval=$enable_editcomplete; opt_editcomplete=$enableval 2062else 2063 opt_editcomplete=yes 2064fi 2065 2066# Check whether --enable-ipv6 was given. 2067if test "${enable_ipv6+set}" = set; then 2068 enableval=$enable_ipv6; opt_ipv6=$enableval 2069else 2070 opt_ipv6=yes 2071fi 2072 2073 2074# Check whether --with-socks was given. 2075if test "${with_socks+set}" = set; then 2076 withval=$with_socks; 2077else 2078 with_socks=check 2079fi 2080 2081 2082# 2083# Autoheader templates symbols. 2084# 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094# 2095# Checks for programs. 2096# 2097{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2098echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2099set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2100if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2101 echo $ECHO_N "(cached) $ECHO_C" >&6 2102else 2103 cat >conftest.make <<\_ACEOF 2104SHELL = /bin/sh 2105all: 2106 @echo '@@@%%%=$(MAKE)=@@@%%%' 2107_ACEOF 2108# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2109case `${MAKE-make} -f conftest.make 2>/dev/null` in 2110 *@@@%%%=?*=@@@%%%*) 2111 eval ac_cv_prog_make_${ac_make}_set=yes;; 2112 *) 2113 eval ac_cv_prog_make_${ac_make}_set=no;; 2114esac 2115rm -f conftest.make 2116fi 2117if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2118 { echo "$as_me:$LINENO: result: yes" >&5 2119echo "${ECHO_T}yes" >&6; } 2120 SET_MAKE= 2121else 2122 { echo "$as_me:$LINENO: result: no" >&5 2123echo "${ECHO_T}no" >&6; } 2124 SET_MAKE="MAKE=${MAKE-make}" 2125fi 2126 2127ac_ext=c 2128ac_cpp='$CPP $CPPFLAGS' 2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2131ac_compiler_gnu=$ac_cv_c_compiler_gnu 2132if test -n "$ac_tool_prefix"; then 2133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2134set dummy ${ac_tool_prefix}gcc; ac_word=$2 2135{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2137if test "${ac_cv_prog_CC+set}" = set; then 2138 echo $ECHO_N "(cached) $ECHO_C" >&6 2139else 2140 if test -n "$CC"; then 2141 ac_cv_prog_CC="$CC" # Let the user override the test. 2142else 2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2144for as_dir in $PATH 2145do 2146 IFS=$as_save_IFS 2147 test -z "$as_dir" && as_dir=. 2148 for ac_exec_ext in '' $ac_executable_extensions; do 2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2150 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2152 break 2 2153 fi 2154done 2155done 2156IFS=$as_save_IFS 2157 2158fi 2159fi 2160CC=$ac_cv_prog_CC 2161if test -n "$CC"; then 2162 { echo "$as_me:$LINENO: result: $CC" >&5 2163echo "${ECHO_T}$CC" >&6; } 2164else 2165 { echo "$as_me:$LINENO: result: no" >&5 2166echo "${ECHO_T}no" >&6; } 2167fi 2168 2169 2170fi 2171if test -z "$ac_cv_prog_CC"; then 2172 ac_ct_CC=$CC 2173 # Extract the first word of "gcc", so it can be a program name with args. 2174set dummy gcc; ac_word=$2 2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2177if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&6 2179else 2180 if test -n "$ac_ct_CC"; then 2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2182else 2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2184for as_dir in $PATH 2185do 2186 IFS=$as_save_IFS 2187 test -z "$as_dir" && as_dir=. 2188 for ac_exec_ext in '' $ac_executable_extensions; do 2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2190 ac_cv_prog_ac_ct_CC="gcc" 2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2192 break 2 2193 fi 2194done 2195done 2196IFS=$as_save_IFS 2197 2198fi 2199fi 2200ac_ct_CC=$ac_cv_prog_ac_ct_CC 2201if test -n "$ac_ct_CC"; then 2202 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2203echo "${ECHO_T}$ac_ct_CC" >&6; } 2204else 2205 { echo "$as_me:$LINENO: result: no" >&5 2206echo "${ECHO_T}no" >&6; } 2207fi 2208 2209 if test "x$ac_ct_CC" = x; then 2210 CC="" 2211 else 2212 case $cross_compiling:$ac_tool_warned in 2213yes:) 2214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2215whose name does not start with the host triplet. If you think this 2216configuration is useful to you, please write to autoconf@gnu.org." >&5 2217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2218whose name does not start with the host triplet. If you think this 2219configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2220ac_tool_warned=yes ;; 2221esac 2222 CC=$ac_ct_CC 2223 fi 2224else 2225 CC="$ac_cv_prog_CC" 2226fi 2227 2228if test -z "$CC"; then 2229 if test -n "$ac_tool_prefix"; then 2230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2231set dummy ${ac_tool_prefix}cc; ac_word=$2 2232{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2234if test "${ac_cv_prog_CC+set}" = set; then 2235 echo $ECHO_N "(cached) $ECHO_C" >&6 2236else 2237 if test -n "$CC"; then 2238 ac_cv_prog_CC="$CC" # Let the user override the test. 2239else 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 for ac_exec_ext in '' $ac_executable_extensions; do 2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2247 ac_cv_prog_CC="${ac_tool_prefix}cc" 2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2249 break 2 2250 fi 2251done 2252done 2253IFS=$as_save_IFS 2254 2255fi 2256fi 2257CC=$ac_cv_prog_CC 2258if test -n "$CC"; then 2259 { echo "$as_me:$LINENO: result: $CC" >&5 2260echo "${ECHO_T}$CC" >&6; } 2261else 2262 { echo "$as_me:$LINENO: result: no" >&5 2263echo "${ECHO_T}no" >&6; } 2264fi 2265 2266 2267 fi 2268fi 2269if test -z "$CC"; then 2270 # Extract the first word of "cc", so it can be a program name with args. 2271set dummy cc; ac_word=$2 2272{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2274if test "${ac_cv_prog_CC+set}" = set; then 2275 echo $ECHO_N "(cached) $ECHO_C" >&6 2276else 2277 if test -n "$CC"; then 2278 ac_cv_prog_CC="$CC" # Let the user override the test. 2279else 2280 ac_prog_rejected=no 2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2282for as_dir in $PATH 2283do 2284 IFS=$as_save_IFS 2285 test -z "$as_dir" && as_dir=. 2286 for ac_exec_ext in '' $ac_executable_extensions; do 2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2289 ac_prog_rejected=yes 2290 continue 2291 fi 2292 ac_cv_prog_CC="cc" 2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2294 break 2 2295 fi 2296done 2297done 2298IFS=$as_save_IFS 2299 2300if test $ac_prog_rejected = yes; then 2301 # We found a bogon in the path, so make sure we never use it. 2302 set dummy $ac_cv_prog_CC 2303 shift 2304 if test $# != 0; then 2305 # We chose a different compiler from the bogus one. 2306 # However, it has the same basename, so the bogon will be chosen 2307 # first if we set CC to just the basename; use the full file name. 2308 shift 2309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2310 fi 2311fi 2312fi 2313fi 2314CC=$ac_cv_prog_CC 2315if test -n "$CC"; then 2316 { echo "$as_me:$LINENO: result: $CC" >&5 2317echo "${ECHO_T}$CC" >&6; } 2318else 2319 { echo "$as_me:$LINENO: result: no" >&5 2320echo "${ECHO_T}no" >&6; } 2321fi 2322 2323 2324fi 2325if test -z "$CC"; then 2326 if test -n "$ac_tool_prefix"; then 2327 for ac_prog in cl.exe 2328 do 2329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2330set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2333if test "${ac_cv_prog_CC+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 if test -n "$CC"; then 2337 ac_cv_prog_CC="$CC" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356CC=$ac_cv_prog_CC 2357if test -n "$CC"; then 2358 { echo "$as_me:$LINENO: result: $CC" >&5 2359echo "${ECHO_T}$CC" >&6; } 2360else 2361 { echo "$as_me:$LINENO: result: no" >&5 2362echo "${ECHO_T}no" >&6; } 2363fi 2364 2365 2366 test -n "$CC" && break 2367 done 2368fi 2369if test -z "$CC"; then 2370 ac_ct_CC=$CC 2371 for ac_prog in cl.exe 2372do 2373 # Extract the first word of "$ac_prog", so it can be a program name with args. 2374set dummy $ac_prog; ac_word=$2 2375{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2378 echo $ECHO_N "(cached) $ECHO_C" >&6 2379else 2380 if test -n "$ac_ct_CC"; then 2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2382else 2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2384for as_dir in $PATH 2385do 2386 IFS=$as_save_IFS 2387 test -z "$as_dir" && as_dir=. 2388 for ac_exec_ext in '' $ac_executable_extensions; do 2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2390 ac_cv_prog_ac_ct_CC="$ac_prog" 2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2392 break 2 2393 fi 2394done 2395done 2396IFS=$as_save_IFS 2397 2398fi 2399fi 2400ac_ct_CC=$ac_cv_prog_ac_ct_CC 2401if test -n "$ac_ct_CC"; then 2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2403echo "${ECHO_T}$ac_ct_CC" >&6; } 2404else 2405 { echo "$as_me:$LINENO: result: no" >&5 2406echo "${ECHO_T}no" >&6; } 2407fi 2408 2409 2410 test -n "$ac_ct_CC" && break 2411done 2412 2413 if test "x$ac_ct_CC" = x; then 2414 CC="" 2415 else 2416 case $cross_compiling:$ac_tool_warned in 2417yes:) 2418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2419whose name does not start with the host triplet. If you think this 2420configuration is useful to you, please write to autoconf@gnu.org." >&5 2421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2422whose name does not start with the host triplet. If you think this 2423configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2424ac_tool_warned=yes ;; 2425esac 2426 CC=$ac_ct_CC 2427 fi 2428fi 2429 2430fi 2431 2432 2433test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2434See \`config.log' for more details." >&5 2435echo "$as_me: error: no acceptable C compiler found in \$PATH 2436See \`config.log' for more details." >&2;} 2437 { (exit 1); exit 1; }; } 2438 2439# Provide some information about the compiler. 2440echo "$as_me:$LINENO: checking for C compiler version" >&5 2441ac_compiler=`set X $ac_compile; echo $2` 2442{ (ac_try="$ac_compiler --version >&5" 2443case "(($ac_try" in 2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2445 *) ac_try_echo=$ac_try;; 2446esac 2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2448 (eval "$ac_compiler --version >&5") 2>&5 2449 ac_status=$? 2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2451 (exit $ac_status); } 2452{ (ac_try="$ac_compiler -v >&5" 2453case "(($ac_try" in 2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 *) ac_try_echo=$ac_try;; 2456esac 2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2458 (eval "$ac_compiler -v >&5") 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); } 2462{ (ac_try="$ac_compiler -V >&5" 2463case "(($ac_try" in 2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2465 *) ac_try_echo=$ac_try;; 2466esac 2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2468 (eval "$ac_compiler -V >&5") 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); } 2472 2473cat >conftest.$ac_ext <<_ACEOF 2474/* confdefs.h. */ 2475_ACEOF 2476cat confdefs.h >>conftest.$ac_ext 2477cat >>conftest.$ac_ext <<_ACEOF 2478/* end confdefs.h. */ 2479 2480int 2481main () 2482{ 2483 2484 ; 2485 return 0; 2486} 2487_ACEOF 2488ac_clean_files_save=$ac_clean_files 2489ac_clean_files="$ac_clean_files a.out a.exe b.out" 2490# Try to create an executable without -o first, disregard a.out. 2491# It will help us diagnose broken compilers, and finding out an intuition 2492# of exeext. 2493{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2494echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2495ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2496# 2497# List of possible output files, starting from the most likely. 2498# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2499# only as a last resort. b.out is created by i960 compilers. 2500ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2501# 2502# The IRIX 6 linker writes into existing files which may not be 2503# executable, retaining their permissions. Remove them first so a 2504# subsequent execution test works. 2505ac_rmfiles= 2506for ac_file in $ac_files 2507do 2508 case $ac_file in 2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2510 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2511 esac 2512done 2513rm -f $ac_rmfiles 2514 2515if { (ac_try="$ac_link_default" 2516case "(($ac_try" in 2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2518 *) ac_try_echo=$ac_try;; 2519esac 2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2521 (eval "$ac_link_default") 2>&5 2522 ac_status=$? 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); }; then 2525 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2526# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2527# in a Makefile. We should not override ac_cv_exeext if it was cached, 2528# so that the user can short-circuit this test for compilers unknown to 2529# Autoconf. 2530for ac_file in $ac_files '' 2531do 2532 test -f "$ac_file" || continue 2533 case $ac_file in 2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2535 ;; 2536 [ab].out ) 2537 # We found the default executable, but exeext='' is most 2538 # certainly right. 2539 break;; 2540 *.* ) 2541 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2542 then :; else 2543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2544 fi 2545 # We set ac_cv_exeext here because the later test for it is not 2546 # safe: cross compilers may not add the suffix if given an `-o' 2547 # argument, so we may need to know it at that point already. 2548 # Even if this section looks crufty: it has the advantage of 2549 # actually working. 2550 break;; 2551 * ) 2552 break;; 2553 esac 2554done 2555test "$ac_cv_exeext" = no && ac_cv_exeext= 2556 2557else 2558 ac_file='' 2559fi 2560 2561{ echo "$as_me:$LINENO: result: $ac_file" >&5 2562echo "${ECHO_T}$ac_file" >&6; } 2563if test -z "$ac_file"; then 2564 echo "$as_me: failed program was:" >&5 2565sed 's/^/| /' conftest.$ac_ext >&5 2566 2567{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2568See \`config.log' for more details." >&5 2569echo "$as_me: error: C compiler cannot create executables 2570See \`config.log' for more details." >&2;} 2571 { (exit 77); exit 77; }; } 2572fi 2573 2574ac_exeext=$ac_cv_exeext 2575 2576# Check that the compiler produces executables we can run. If not, either 2577# the compiler is broken, or we cross compile. 2578{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2579echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2580# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2581# If not cross compiling, check that we can run a simple program. 2582if test "$cross_compiling" != yes; then 2583 if { ac_try='./$ac_file' 2584 { (case "(($ac_try" in 2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2586 *) ac_try_echo=$ac_try;; 2587esac 2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2589 (eval "$ac_try") 2>&5 2590 ac_status=$? 2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2592 (exit $ac_status); }; }; then 2593 cross_compiling=no 2594 else 2595 if test "$cross_compiling" = maybe; then 2596 cross_compiling=yes 2597 else 2598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2599If you meant to cross compile, use \`--host'. 2600See \`config.log' for more details." >&5 2601echo "$as_me: error: cannot run C compiled programs. 2602If you meant to cross compile, use \`--host'. 2603See \`config.log' for more details." >&2;} 2604 { (exit 1); exit 1; }; } 2605 fi 2606 fi 2607fi 2608{ echo "$as_me:$LINENO: result: yes" >&5 2609echo "${ECHO_T}yes" >&6; } 2610 2611rm -f a.out a.exe conftest$ac_cv_exeext b.out 2612ac_clean_files=$ac_clean_files_save 2613# Check that the compiler produces executables we can run. If not, either 2614# the compiler is broken, or we cross compile. 2615{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2616echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2617{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2618echo "${ECHO_T}$cross_compiling" >&6; } 2619 2620{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2621echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2622if { (ac_try="$ac_link" 2623case "(($ac_try" in 2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2625 *) ac_try_echo=$ac_try;; 2626esac 2627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2628 (eval "$ac_link") 2>&5 2629 ac_status=$? 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); }; then 2632 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2633# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2634# work properly (i.e., refer to `conftest.exe'), while it won't with 2635# `rm'. 2636for ac_file in conftest.exe conftest conftest.*; do 2637 test -f "$ac_file" || continue 2638 case $ac_file in 2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2641 break;; 2642 * ) break;; 2643 esac 2644done 2645else 2646 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2647See \`config.log' for more details." >&5 2648echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2649See \`config.log' for more details." >&2;} 2650 { (exit 1); exit 1; }; } 2651fi 2652 2653rm -f conftest$ac_cv_exeext 2654{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2655echo "${ECHO_T}$ac_cv_exeext" >&6; } 2656 2657rm -f conftest.$ac_ext 2658EXEEXT=$ac_cv_exeext 2659ac_exeext=$EXEEXT 2660{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2661echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2662if test "${ac_cv_objext+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 cat >conftest.$ac_ext <<_ACEOF 2666/* confdefs.h. */ 2667_ACEOF 2668cat confdefs.h >>conftest.$ac_ext 2669cat >>conftest.$ac_ext <<_ACEOF 2670/* end confdefs.h. */ 2671 2672int 2673main () 2674{ 2675 2676 ; 2677 return 0; 2678} 2679_ACEOF 2680rm -f conftest.o conftest.obj 2681if { (ac_try="$ac_compile" 2682case "(($ac_try" in 2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2684 *) ac_try_echo=$ac_try;; 2685esac 2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2687 (eval "$ac_compile") 2>&5 2688 ac_status=$? 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2690 (exit $ac_status); }; then 2691 for ac_file in conftest.o conftest.obj conftest.*; do 2692 test -f "$ac_file" || continue; 2693 case $ac_file in 2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2696 break;; 2697 esac 2698done 2699else 2700 echo "$as_me: failed program was:" >&5 2701sed 's/^/| /' conftest.$ac_ext >&5 2702 2703{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2704See \`config.log' for more details." >&5 2705echo "$as_me: error: cannot compute suffix of object files: cannot compile 2706See \`config.log' for more details." >&2;} 2707 { (exit 1); exit 1; }; } 2708fi 2709 2710rm -f conftest.$ac_cv_objext conftest.$ac_ext 2711fi 2712{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2713echo "${ECHO_T}$ac_cv_objext" >&6; } 2714OBJEXT=$ac_cv_objext 2715ac_objext=$OBJEXT 2716{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2717echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2718if test "${ac_cv_c_compiler_gnu+set}" = set; then 2719 echo $ECHO_N "(cached) $ECHO_C" >&6 2720else 2721 cat >conftest.$ac_ext <<_ACEOF 2722/* confdefs.h. */ 2723_ACEOF 2724cat confdefs.h >>conftest.$ac_ext 2725cat >>conftest.$ac_ext <<_ACEOF 2726/* end confdefs.h. */ 2727 2728int 2729main () 2730{ 2731#ifndef __GNUC__ 2732 choke me 2733#endif 2734 2735 ; 2736 return 0; 2737} 2738_ACEOF 2739rm -f conftest.$ac_objext 2740if { (ac_try="$ac_compile" 2741case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744esac 2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2746 (eval "$ac_compile") 2>conftest.er1 2747 ac_status=$? 2748 grep -v '^ *+' conftest.er1 >conftest.err 2749 rm -f conftest.er1 2750 cat conftest.err >&5 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); } && { 2753 test -z "$ac_c_werror_flag" || 2754 test ! -s conftest.err 2755 } && test -s conftest.$ac_objext; then 2756 ac_compiler_gnu=yes 2757else 2758 echo "$as_me: failed program was:" >&5 2759sed 's/^/| /' conftest.$ac_ext >&5 2760 2761 ac_compiler_gnu=no 2762fi 2763 2764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2765ac_cv_c_compiler_gnu=$ac_compiler_gnu 2766 2767fi 2768{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2770GCC=`test $ac_compiler_gnu = yes && echo yes` 2771ac_test_CFLAGS=${CFLAGS+set} 2772ac_save_CFLAGS=$CFLAGS 2773{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2775if test "${ac_cv_prog_cc_g+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777else 2778 ac_save_c_werror_flag=$ac_c_werror_flag 2779 ac_c_werror_flag=yes 2780 ac_cv_prog_cc_g=no 2781 CFLAGS="-g" 2782 cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788 2789int 2790main () 2791{ 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797rm -f conftest.$ac_objext 2798if { (ac_try="$ac_compile" 2799case "(($ac_try" in 2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2801 *) ac_try_echo=$ac_try;; 2802esac 2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2804 (eval "$ac_compile") 2>conftest.er1 2805 ac_status=$? 2806 grep -v '^ *+' conftest.er1 >conftest.err 2807 rm -f conftest.er1 2808 cat conftest.err >&5 2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2810 (exit $ac_status); } && { 2811 test -z "$ac_c_werror_flag" || 2812 test ! -s conftest.err 2813 } && test -s conftest.$ac_objext; then 2814 ac_cv_prog_cc_g=yes 2815else 2816 echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819 CFLAGS="" 2820 cat >conftest.$ac_ext <<_ACEOF 2821/* confdefs.h. */ 2822_ACEOF 2823cat confdefs.h >>conftest.$ac_ext 2824cat >>conftest.$ac_ext <<_ACEOF 2825/* end confdefs.h. */ 2826 2827int 2828main () 2829{ 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835rm -f conftest.$ac_objext 2836if { (ac_try="$ac_compile" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2842 (eval "$ac_compile") 2>conftest.er1 2843 ac_status=$? 2844 grep -v '^ *+' conftest.er1 >conftest.err 2845 rm -f conftest.er1 2846 cat conftest.err >&5 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } && { 2849 test -z "$ac_c_werror_flag" || 2850 test ! -s conftest.err 2851 } && test -s conftest.$ac_objext; then 2852 : 2853else 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857 ac_c_werror_flag=$ac_save_c_werror_flag 2858 CFLAGS="-g" 2859 cat >conftest.$ac_ext <<_ACEOF 2860/* confdefs.h. */ 2861_ACEOF 2862cat confdefs.h >>conftest.$ac_ext 2863cat >>conftest.$ac_ext <<_ACEOF 2864/* end confdefs.h. */ 2865 2866int 2867main () 2868{ 2869 2870 ; 2871 return 0; 2872} 2873_ACEOF 2874rm -f conftest.$ac_objext 2875if { (ac_try="$ac_compile" 2876case "(($ac_try" in 2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878 *) ac_try_echo=$ac_try;; 2879esac 2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2881 (eval "$ac_compile") 2>conftest.er1 2882 ac_status=$? 2883 grep -v '^ *+' conftest.er1 >conftest.err 2884 rm -f conftest.er1 2885 cat conftest.err >&5 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); } && { 2888 test -z "$ac_c_werror_flag" || 2889 test ! -s conftest.err 2890 } && test -s conftest.$ac_objext; then 2891 ac_cv_prog_cc_g=yes 2892else 2893 echo "$as_me: failed program was:" >&5 2894sed 's/^/| /' conftest.$ac_ext >&5 2895 2896 2897fi 2898 2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2900fi 2901 2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2903fi 2904 2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2906 ac_c_werror_flag=$ac_save_c_werror_flag 2907fi 2908{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2909echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2910if test "$ac_test_CFLAGS" = set; then 2911 CFLAGS=$ac_save_CFLAGS 2912elif test $ac_cv_prog_cc_g = yes; then 2913 if test "$GCC" = yes; then 2914 CFLAGS="-g -O2" 2915 else 2916 CFLAGS="-g" 2917 fi 2918else 2919 if test "$GCC" = yes; then 2920 CFLAGS="-O2" 2921 else 2922 CFLAGS= 2923 fi 2924fi 2925{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2926echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2927if test "${ac_cv_prog_cc_c89+set}" = set; then 2928 echo $ECHO_N "(cached) $ECHO_C" >&6 2929else 2930 ac_cv_prog_cc_c89=no 2931ac_save_CC=$CC 2932cat >conftest.$ac_ext <<_ACEOF 2933/* confdefs.h. */ 2934_ACEOF 2935cat confdefs.h >>conftest.$ac_ext 2936cat >>conftest.$ac_ext <<_ACEOF 2937/* end confdefs.h. */ 2938#include <stdarg.h> 2939#include <stdio.h> 2940#include <sys/types.h> 2941#include <sys/stat.h> 2942/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2943struct buf { int x; }; 2944FILE * (*rcsopen) (struct buf *, struct stat *, int); 2945static char *e (p, i) 2946 char **p; 2947 int i; 2948{ 2949 return p[i]; 2950} 2951static char *f (char * (*g) (char **, int), char **p, ...) 2952{ 2953 char *s; 2954 va_list v; 2955 va_start (v,p); 2956 s = g (p, va_arg (v,int)); 2957 va_end (v); 2958 return s; 2959} 2960 2961/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2962 function prototypes and stuff, but not '\xHH' hex character constants. 2963 These don't provoke an error unfortunately, instead are silently treated 2964 as 'x'. The following induces an error, until -std is added to get 2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2966 array size at least. It's necessary to write '\x00'==0 to get something 2967 that's true only with -std. */ 2968int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2969 2970/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2971 inside strings and character constants. */ 2972#define FOO(x) 'x' 2973int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2974 2975int test (int i, double x); 2976struct s1 {int (*f) (int a);}; 2977struct s2 {int (*f) (double a);}; 2978int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2979int argc; 2980char **argv; 2981int 2982main () 2983{ 2984return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2985 ; 2986 return 0; 2987} 2988_ACEOF 2989for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2991do 2992 CC="$ac_save_CC $ac_arg" 2993 rm -f conftest.$ac_objext 2994if { (ac_try="$ac_compile" 2995case "(($ac_try" in 2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2997 *) ac_try_echo=$ac_try;; 2998esac 2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3000 (eval "$ac_compile") 2>conftest.er1 3001 ac_status=$? 3002 grep -v '^ *+' conftest.er1 >conftest.err 3003 rm -f conftest.er1 3004 cat conftest.err >&5 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); } && { 3007 test -z "$ac_c_werror_flag" || 3008 test ! -s conftest.err 3009 } && test -s conftest.$ac_objext; then 3010 ac_cv_prog_cc_c89=$ac_arg 3011else 3012 echo "$as_me: failed program was:" >&5 3013sed 's/^/| /' conftest.$ac_ext >&5 3014 3015 3016fi 3017 3018rm -f core conftest.err conftest.$ac_objext 3019 test "x$ac_cv_prog_cc_c89" != "xno" && break 3020done 3021rm -f conftest.$ac_ext 3022CC=$ac_save_CC 3023 3024fi 3025# AC_CACHE_VAL 3026case "x$ac_cv_prog_cc_c89" in 3027 x) 3028 { echo "$as_me:$LINENO: result: none needed" >&5 3029echo "${ECHO_T}none needed" >&6; } ;; 3030 xno) 3031 { echo "$as_me:$LINENO: result: unsupported" >&5 3032echo "${ECHO_T}unsupported" >&6; } ;; 3033 *) 3034 CC="$CC $ac_cv_prog_cc_c89" 3035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3036echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3037esac 3038 3039 3040ac_ext=c 3041ac_cpp='$CPP $CPPFLAGS' 3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3044ac_compiler_gnu=$ac_cv_c_compiler_gnu 3045 3046for ac_prog in gawk mawk nawk awk 3047do 3048 # Extract the first word of "$ac_prog", so it can be a program name with args. 3049set dummy $ac_prog; ac_word=$2 3050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3052if test "${ac_cv_prog_AWK+set}" = set; then 3053 echo $ECHO_N "(cached) $ECHO_C" >&6 3054else 3055 if test -n "$AWK"; then 3056 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3065 ac_cv_prog_AWK="$ac_prog" 3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075AWK=$ac_cv_prog_AWK 3076if test -n "$AWK"; then 3077 { echo "$as_me:$LINENO: result: $AWK" >&5 3078echo "${ECHO_T}$AWK" >&6; } 3079else 3080 { echo "$as_me:$LINENO: result: no" >&5 3081echo "${ECHO_T}no" >&6; } 3082fi 3083 3084 3085 test -n "$AWK" && break 3086done 3087 3088# Find a good install program. We prefer a C program (faster), 3089# so one script is as good as another. But avoid the broken or 3090# incompatible versions: 3091# SysV /etc/install, /usr/sbin/install 3092# SunOS /usr/etc/install 3093# IRIX /sbin/install 3094# AIX /bin/install 3095# AmigaOS /C/install, which installs bootblocks on floppy discs 3096# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3097# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3098# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3099# OS/2's system install, which has a completely different semantic 3100# ./install, which can be erroneously created by make from ./install.sh. 3101{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3102echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3103if test -z "$INSTALL"; then 3104if test "${ac_cv_path_install+set}" = set; then 3105 echo $ECHO_N "(cached) $ECHO_C" >&6 3106else 3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108for as_dir in $PATH 3109do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 # Account for people who put trailing slashes in PATH elements. 3113case $as_dir/ in 3114 ./ | .// | /cC/* | \ 3115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3117 /usr/ucb/* ) ;; 3118 *) 3119 # OSF1 and SCO ODT 3.0 have their own names for install. 3120 # Don't use installbsd from OSF since it installs stuff as root 3121 # by default. 3122 for ac_prog in ginstall scoinst install; do 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3125 if test $ac_prog = install && 3126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3127 # AIX install. It has an incompatible calling convention. 3128 : 3129 elif test $ac_prog = install && 3130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3131 # program-specific install script used by HP pwplus--don't use. 3132 : 3133 else 3134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3135 break 3 3136 fi 3137 fi 3138 done 3139 done 3140 ;; 3141esac 3142done 3143IFS=$as_save_IFS 3144 3145 3146fi 3147 if test "${ac_cv_path_install+set}" = set; then 3148 INSTALL=$ac_cv_path_install 3149 else 3150 # As a last resort, use the slow shell script. Don't cache a 3151 # value for INSTALL within a source directory, because that will 3152 # break other packages using the cache if that directory is 3153 # removed, or if the value is a relative name. 3154 INSTALL=$ac_install_sh 3155 fi 3156fi 3157{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3158echo "${ECHO_T}$INSTALL" >&6; } 3159 3160# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3161# It thinks the first close brace ends the variable substitution. 3162test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3163 3164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3165 3166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3167 3168if test -n "$ac_tool_prefix"; then 3169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3170set dummy ${ac_tool_prefix}ar; ac_word=$2 3171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3173if test "${ac_cv_prog_AR+set}" = set; then 3174 echo $ECHO_N "(cached) $ECHO_C" >&6 3175else 3176 if test -n "$AR"; then 3177 ac_cv_prog_AR="$AR" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3186 ac_cv_prog_AR="${ac_tool_prefix}ar" 3187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191done 3192IFS=$as_save_IFS 3193 3194fi 3195fi 3196AR=$ac_cv_prog_AR 3197if test -n "$AR"; then 3198 { echo "$as_me:$LINENO: result: $AR" >&5 3199echo "${ECHO_T}$AR" >&6; } 3200else 3201 { echo "$as_me:$LINENO: result: no" >&5 3202echo "${ECHO_T}no" >&6; } 3203fi 3204 3205 3206fi 3207if test -z "$ac_cv_prog_AR"; then 3208 ac_ct_AR=$AR 3209 # Extract the first word of "ar", so it can be a program name with args. 3210set dummy ar; ac_word=$2 3211{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 3214 echo $ECHO_N "(cached) $ECHO_C" >&6 3215else 3216 if test -n "$ac_ct_AR"; then 3217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3218else 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3226 ac_cv_prog_ac_ct_AR="ar" 3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236ac_ct_AR=$ac_cv_prog_ac_ct_AR 3237if test -n "$ac_ct_AR"; then 3238 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3239echo "${ECHO_T}$ac_ct_AR" >&6; } 3240else 3241 { echo "$as_me:$LINENO: result: no" >&5 3242echo "${ECHO_T}no" >&6; } 3243fi 3244 3245 if test "x$ac_ct_AR" = x; then 3246 AR=":" 3247 else 3248 case $cross_compiling:$ac_tool_warned in 3249yes:) 3250{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3251whose name does not start with the host triplet. If you think this 3252configuration is useful to you, please write to autoconf@gnu.org." >&5 3253echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3254whose name does not start with the host triplet. If you think this 3255configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3256ac_tool_warned=yes ;; 3257esac 3258 AR=$ac_ct_AR 3259 fi 3260else 3261 AR="$ac_cv_prog_AR" 3262fi 3263 3264if test -n "$ac_tool_prefix"; then 3265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3266set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3267{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3269if test "${ac_cv_prog_RANLIB+set}" = set; then 3270 echo $ECHO_N "(cached) $ECHO_C" >&6 3271else 3272 if test -n "$RANLIB"; then 3273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292RANLIB=$ac_cv_prog_RANLIB 3293if test -n "$RANLIB"; then 3294 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3295echo "${ECHO_T}$RANLIB" >&6; } 3296else 3297 { echo "$as_me:$LINENO: result: no" >&5 3298echo "${ECHO_T}no" >&6; } 3299fi 3300 3301 3302fi 3303if test -z "$ac_cv_prog_RANLIB"; then 3304 ac_ct_RANLIB=$RANLIB 3305 # Extract the first word of "ranlib", so it can be a program name with args. 3306set dummy ranlib; ac_word=$2 3307{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3309if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3310 echo $ECHO_N "(cached) $ECHO_C" >&6 3311else 3312 if test -n "$ac_ct_RANLIB"; then 3313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3314else 3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3316for as_dir in $PATH 3317do 3318 IFS=$as_save_IFS 3319 test -z "$as_dir" && as_dir=. 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3322 ac_cv_prog_ac_ct_RANLIB="ranlib" 3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3324 break 2 3325 fi 3326done 3327done 3328IFS=$as_save_IFS 3329 3330fi 3331fi 3332ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3333if test -n "$ac_ct_RANLIB"; then 3334 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3335echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3336else 3337 { echo "$as_me:$LINENO: result: no" >&5 3338echo "${ECHO_T}no" >&6; } 3339fi 3340 3341 if test "x$ac_ct_RANLIB" = x; then 3342 RANLIB=":" 3343 else 3344 case $cross_compiling:$ac_tool_warned in 3345yes:) 3346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3347whose name does not start with the host triplet. If you think this 3348configuration is useful to you, please write to autoconf@gnu.org." >&5 3349echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3350whose name does not start with the host triplet. If you think this 3351configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3352ac_tool_warned=yes ;; 3353esac 3354 RANLIB=$ac_ct_RANLIB 3355 fi 3356else 3357 RANLIB="$ac_cv_prog_RANLIB" 3358fi 3359 3360 3361# 3362# Checks for tool features. 3363# 3364 3365case $target_os in 3366 darwin*) # Mac OS X linker needs -search_paths_first so our private libraries 3367 # are used before system libraries. 3368 # 3369 old_LDFLAGS=$LDFLAGS 3370 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 3371 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first" >&5 3372echo $ECHO_N "checking if ld accepts -search_paths_first... $ECHO_C" >&6; } 3373 cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379 3380int 3381main () 3382{ 3383int i; 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388rm -f conftest.$ac_objext conftest$ac_exeext 3389if { (ac_try="$ac_link" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3395 (eval "$ac_link") 2>conftest.er1 3396 ac_status=$? 3397 grep -v '^ *+' conftest.er1 >conftest.err 3398 rm -f conftest.er1 3399 cat conftest.err >&5 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 (exit $ac_status); } && { 3402 test -z "$ac_c_werror_flag" || 3403 test ! -s conftest.err 3404 } && test -s conftest$ac_exeext && 3405 $as_test_x conftest$ac_exeext; then 3406 { echo "$as_me:$LINENO: result: yes" >&5 3407echo "${ECHO_T}yes" >&6; } 3408else 3409 echo "$as_me: failed program was:" >&5 3410sed 's/^/| /' conftest.$ac_ext >&5 3411 3412 { echo "$as_me:$LINENO: result: no" >&5 3413echo "${ECHO_T}no" >&6; } 3414 LDFLAGS=$old_LDFLAGS 3415fi 3416 3417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3418 conftest$ac_exeext conftest.$ac_ext ;; 3419 *) ;; 3420esac 3421 3422 3423# 3424# Checks for libraries. 3425# 3426if test "$opt_editcomplete" = yes; then 3427 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 3428echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } 3429if test "${ac_cv_search_tgetent+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 ac_func_search_save_LIBS=$LIBS 3433cat >conftest.$ac_ext <<_ACEOF 3434/* confdefs.h. */ 3435_ACEOF 3436cat confdefs.h >>conftest.$ac_ext 3437cat >>conftest.$ac_ext <<_ACEOF 3438/* end confdefs.h. */ 3439 3440/* Override any GCC internal prototype to avoid an error. 3441 Use char because int might match the return type of a GCC 3442 builtin and then its argument prototype would still apply. */ 3443#ifdef __cplusplus 3444extern "C" 3445#endif 3446char tgetent (); 3447int 3448main () 3449{ 3450return tgetent (); 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455for ac_lib in '' termcap termlib curses ncurses tinfo; do 3456 if test -z "$ac_lib"; then 3457 ac_res="none required" 3458 else 3459 ac_res=-l$ac_lib 3460 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3461 fi 3462 rm -f conftest.$ac_objext conftest$ac_exeext 3463if { (ac_try="$ac_link" 3464case "(($ac_try" in 3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3466 *) ac_try_echo=$ac_try;; 3467esac 3468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3469 (eval "$ac_link") 2>conftest.er1 3470 ac_status=$? 3471 grep -v '^ *+' conftest.er1 >conftest.err 3472 rm -f conftest.er1 3473 cat conftest.err >&5 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } && { 3476 test -z "$ac_c_werror_flag" || 3477 test ! -s conftest.err 3478 } && test -s conftest$ac_exeext && 3479 $as_test_x conftest$ac_exeext; then 3480 ac_cv_search_tgetent=$ac_res 3481else 3482 echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 3485 3486fi 3487 3488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3489 conftest$ac_exeext 3490 if test "${ac_cv_search_tgetent+set}" = set; then 3491 break 3492fi 3493done 3494if test "${ac_cv_search_tgetent+set}" = set; then 3495 : 3496else 3497 ac_cv_search_tgetent=no 3498fi 3499rm conftest.$ac_ext 3500LIBS=$ac_func_search_save_LIBS 3501fi 3502{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 3503echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } 3504ac_res=$ac_cv_search_tgetent 3505if test "$ac_res" != no; then 3506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3507 3508else 3509 { { echo "$as_me:$LINENO: error: no relevant library found containing tgetent" >&5 3510echo "$as_me: error: no relevant library found containing tgetent" >&2;} 3511 { (exit 1); exit 1; }; } 3512fi 3513 3514 { echo "$as_me:$LINENO: checking for library containing el_init" >&5 3515echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; } 3516if test "${ac_cv_search_el_init+set}" = set; then 3517 echo $ECHO_N "(cached) $ECHO_C" >&6 3518else 3519 ac_func_search_save_LIBS=$LIBS 3520cat >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 3527/* Override any GCC internal prototype to avoid an error. 3528 Use char because int might match the return type of a GCC 3529 builtin and then its argument prototype would still apply. */ 3530#ifdef __cplusplus 3531extern "C" 3532#endif 3533char el_init (); 3534int 3535main () 3536{ 3537return el_init (); 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542for ac_lib in '' edit; do 3543 if test -z "$ac_lib"; then 3544 ac_res="none required" 3545 else 3546 ac_res=-l$ac_lib 3547 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3548 fi 3549 rm -f conftest.$ac_objext conftest$ac_exeext 3550if { (ac_try="$ac_link" 3551case "(($ac_try" in 3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3553 *) ac_try_echo=$ac_try;; 3554esac 3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3556 (eval "$ac_link") 2>conftest.er1 3557 ac_status=$? 3558 grep -v '^ *+' conftest.er1 >conftest.err 3559 rm -f conftest.er1 3560 cat conftest.err >&5 3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 (exit $ac_status); } && { 3563 test -z "$ac_c_werror_flag" || 3564 test ! -s conftest.err 3565 } && test -s conftest$ac_exeext && 3566 $as_test_x conftest$ac_exeext; then 3567 ac_cv_search_el_init=$ac_res 3568else 3569 echo "$as_me: failed program was:" >&5 3570sed 's/^/| /' conftest.$ac_ext >&5 3571 3572 3573fi 3574 3575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3576 conftest$ac_exeext 3577 if test "${ac_cv_search_el_init+set}" = set; then 3578 break 3579fi 3580done 3581if test "${ac_cv_search_el_init+set}" = set; then 3582 : 3583else 3584 ac_cv_search_el_init=no 3585fi 3586rm conftest.$ac_ext 3587LIBS=$ac_func_search_save_LIBS 3588fi 3589{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5 3590echo "${ECHO_T}$ac_cv_search_el_init" >&6; } 3591ac_res=$ac_cv_search_el_init 3592if test "$ac_res" != no; then 3593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3594 have_libedit=yes 3595else 3596 have_libedit=no 3597fi 3598 3599fi 3600 3601 3602{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 3603echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 3604if test "${ac_cv_search_gethostbyname+set}" = set; then 3605 echo $ECHO_N "(cached) $ECHO_C" >&6 3606else 3607 ac_func_search_save_LIBS=$LIBS 3608cat >conftest.$ac_ext <<_ACEOF 3609/* confdefs.h. */ 3610_ACEOF 3611cat confdefs.h >>conftest.$ac_ext 3612cat >>conftest.$ac_ext <<_ACEOF 3613/* end confdefs.h. */ 3614 3615/* Override any GCC internal prototype to avoid an error. 3616 Use char because int might match the return type of a GCC 3617 builtin and then its argument prototype would still apply. */ 3618#ifdef __cplusplus 3619extern "C" 3620#endif 3621char gethostbyname (); 3622int 3623main () 3624{ 3625return gethostbyname (); 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630for ac_lib in '' nsl; do 3631 if test -z "$ac_lib"; then 3632 ac_res="none required" 3633 else 3634 ac_res=-l$ac_lib 3635 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3636 fi 3637 rm -f conftest.$ac_objext conftest$ac_exeext 3638if { (ac_try="$ac_link" 3639case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3644 (eval "$ac_link") 2>conftest.er1 3645 ac_status=$? 3646 grep -v '^ *+' conftest.er1 >conftest.err 3647 rm -f conftest.er1 3648 cat conftest.err >&5 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } && { 3651 test -z "$ac_c_werror_flag" || 3652 test ! -s conftest.err 3653 } && test -s conftest$ac_exeext && 3654 $as_test_x conftest$ac_exeext; then 3655 ac_cv_search_gethostbyname=$ac_res 3656else 3657 echo "$as_me: failed program was:" >&5 3658sed 's/^/| /' conftest.$ac_ext >&5 3659 3660 3661fi 3662 3663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3664 conftest$ac_exeext 3665 if test "${ac_cv_search_gethostbyname+set}" = set; then 3666 break 3667fi 3668done 3669if test "${ac_cv_search_gethostbyname+set}" = set; then 3670 : 3671else 3672 ac_cv_search_gethostbyname=no 3673fi 3674rm conftest.$ac_ext 3675LIBS=$ac_func_search_save_LIBS 3676fi 3677{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 3678echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 3679ac_res=$ac_cv_search_gethostbyname 3680if test "$ac_res" != no; then 3681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3682 3683fi 3684 3685{ echo "$as_me:$LINENO: checking for library containing socket" >&5 3686echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } 3687if test "${ac_cv_search_socket+set}" = set; then 3688 echo $ECHO_N "(cached) $ECHO_C" >&6 3689else 3690 ac_func_search_save_LIBS=$LIBS 3691cat >conftest.$ac_ext <<_ACEOF 3692/* confdefs.h. */ 3693_ACEOF 3694cat confdefs.h >>conftest.$ac_ext 3695cat >>conftest.$ac_ext <<_ACEOF 3696/* end confdefs.h. */ 3697 3698/* Override any GCC internal prototype to avoid an error. 3699 Use char because int might match the return type of a GCC 3700 builtin and then its argument prototype would still apply. */ 3701#ifdef __cplusplus 3702extern "C" 3703#endif 3704char socket (); 3705int 3706main () 3707{ 3708return socket (); 3709 ; 3710 return 0; 3711} 3712_ACEOF 3713for ac_lib in '' socket; do 3714 if test -z "$ac_lib"; then 3715 ac_res="none required" 3716 else 3717 ac_res=-l$ac_lib 3718 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3719 fi 3720 rm -f conftest.$ac_objext conftest$ac_exeext 3721if { (ac_try="$ac_link" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3727 (eval "$ac_link") 2>conftest.er1 3728 ac_status=$? 3729 grep -v '^ *+' conftest.er1 >conftest.err 3730 rm -f conftest.er1 3731 cat conftest.err >&5 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); } && { 3734 test -z "$ac_c_werror_flag" || 3735 test ! -s conftest.err 3736 } && test -s conftest$ac_exeext && 3737 $as_test_x conftest$ac_exeext; then 3738 ac_cv_search_socket=$ac_res 3739else 3740 echo "$as_me: failed program was:" >&5 3741sed 's/^/| /' conftest.$ac_ext >&5 3742 3743 3744fi 3745 3746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3747 conftest$ac_exeext 3748 if test "${ac_cv_search_socket+set}" = set; then 3749 break 3750fi 3751done 3752if test "${ac_cv_search_socket+set}" = set; then 3753 : 3754else 3755 ac_cv_search_socket=no 3756fi 3757rm conftest.$ac_ext 3758LIBS=$ac_func_search_save_LIBS 3759fi 3760{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 3761echo "${ECHO_T}$ac_cv_search_socket" >&6; } 3762ac_res=$ac_cv_search_socket 3763if test "$ac_res" != no; then 3764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3765 3766else 3767 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3768echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 3769if test "${ac_cv_lib_socket_socket+set}" = set; then 3770 echo $ECHO_N "(cached) $ECHO_C" >&6 3771else 3772 ac_check_lib_save_LIBS=$LIBS 3773LIBS="-lsocket -lnsl $LIBS" 3774cat >conftest.$ac_ext <<_ACEOF 3775/* confdefs.h. */ 3776_ACEOF 3777cat confdefs.h >>conftest.$ac_ext 3778cat >>conftest.$ac_ext <<_ACEOF 3779/* end confdefs.h. */ 3780 3781/* Override any GCC internal prototype to avoid an error. 3782 Use char because int might match the return type of a GCC 3783 builtin and then its argument prototype would still apply. */ 3784#ifdef __cplusplus 3785extern "C" 3786#endif 3787char socket (); 3788int 3789main () 3790{ 3791return socket (); 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796rm -f conftest.$ac_objext conftest$ac_exeext 3797if { (ac_try="$ac_link" 3798case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801esac 3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3803 (eval "$ac_link") 2>conftest.er1 3804 ac_status=$? 3805 grep -v '^ *+' conftest.er1 >conftest.err 3806 rm -f conftest.er1 3807 cat conftest.err >&5 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); } && { 3810 test -z "$ac_c_werror_flag" || 3811 test ! -s conftest.err 3812 } && test -s conftest$ac_exeext && 3813 $as_test_x conftest$ac_exeext; then 3814 ac_cv_lib_socket_socket=yes 3815else 3816 echo "$as_me: failed program was:" >&5 3817sed 's/^/| /' conftest.$ac_ext >&5 3818 3819 ac_cv_lib_socket_socket=no 3820fi 3821 3822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3823 conftest$ac_exeext conftest.$ac_ext 3824LIBS=$ac_check_lib_save_LIBS 3825fi 3826{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 3827echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 3828if test $ac_cv_lib_socket_socket = yes; then 3829 LIBS="-lsocket -lnsl $LIBS" 3830fi 3831 3832fi 3833 3834 3835# Check for (Dante) SOCKS5. 3836# 3837if test "$with_socks" != no; then 3838 { echo "$as_me:$LINENO: checking for library containing SOCKSinit" >&5 3839echo $ECHO_N "checking for library containing SOCKSinit... $ECHO_C" >&6; } 3840if test "${ac_cv_search_SOCKSinit+set}" = set; then 3841 echo $ECHO_N "(cached) $ECHO_C" >&6 3842else 3843 ac_func_search_save_LIBS=$LIBS 3844cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850 3851/* Override any GCC internal prototype to avoid an error. 3852 Use char because int might match the return type of a GCC 3853 builtin and then its argument prototype would still apply. */ 3854#ifdef __cplusplus 3855extern "C" 3856#endif 3857char SOCKSinit (); 3858int 3859main () 3860{ 3861return SOCKSinit (); 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866for ac_lib in '' socksd socks; do 3867 if test -z "$ac_lib"; then 3868 ac_res="none required" 3869 else 3870 ac_res=-l$ac_lib 3871 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3872 fi 3873 rm -f conftest.$ac_objext conftest$ac_exeext 3874if { (ac_try="$ac_link" 3875case "(($ac_try" in 3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3877 *) ac_try_echo=$ac_try;; 3878esac 3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3880 (eval "$ac_link") 2>conftest.er1 3881 ac_status=$? 3882 grep -v '^ *+' conftest.er1 >conftest.err 3883 rm -f conftest.er1 3884 cat conftest.err >&5 3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3886 (exit $ac_status); } && { 3887 test -z "$ac_c_werror_flag" || 3888 test ! -s conftest.err 3889 } && test -s conftest$ac_exeext && 3890 $as_test_x conftest$ac_exeext; then 3891 ac_cv_search_SOCKSinit=$ac_res 3892else 3893 echo "$as_me: failed program was:" >&5 3894sed 's/^/| /' conftest.$ac_ext >&5 3895 3896 3897fi 3898 3899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3900 conftest$ac_exeext 3901 if test "${ac_cv_search_SOCKSinit+set}" = set; then 3902 break 3903fi 3904done 3905if test "${ac_cv_search_SOCKSinit+set}" = set; then 3906 : 3907else 3908 ac_cv_search_SOCKSinit=no 3909fi 3910rm conftest.$ac_ext 3911LIBS=$ac_func_search_save_LIBS 3912fi 3913{ echo "$as_me:$LINENO: result: $ac_cv_search_SOCKSinit" >&5 3914echo "${ECHO_T}$ac_cv_search_SOCKSinit" >&6; } 3915ac_res=$ac_cv_search_SOCKSinit 3916if test "$ac_res" != no; then 3917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3918 cat >>confdefs.h <<\_ACEOF 3919#define USE_SOCKS 1 3920_ACEOF 3921 3922 if test "$opt_ipv6" = yes; then 3923 { echo "$as_me:$LINENO: WARNING: IPv6 is incompatible with socks, disabling IPv6 support" >&5 3924echo "$as_me: WARNING: IPv6 is incompatible with socks, disabling IPv6 support" >&2;} 3925 opt_ipv6=no 3926fi 3927 3928else 3929 if test "$with_socks" != check; then 3930 { { echo "$as_me:$LINENO: error: --with-socks was given, but SOCKSinit() wasn't found 3931See \`config.log' for more details." >&5 3932echo "$as_me: error: --with-socks was given, but SOCKSinit() wasn't found 3933See \`config.log' for more details." >&2;} 3934 { (exit 1); exit 1; }; } 3935fi 3936 3937fi 3938 3939fi 3940 3941 3942# 3943# Checks for header files. 3944# 3945accheck_includes=' 3946#include <stdio.h> 3947#if defined(HAVE_SYS_TYPES_H) 3948# include <sys/types.h> 3949#endif 3950#if defined(HAVE_SYS_STAT_H) 3951# include <sys/stat.h> 3952#endif 3953#if defined(STDC_HEADERS) 3954# include <stdarg.h> 3955# include <stdlib.h> 3956# include <string.h> 3957#endif 3958#if defined(HAVE_LIBGEN_H) 3959# include <libgen.h> 3960#endif 3961#if defined(HAVE_PWD_H) 3962# include <pwd.h> 3963#endif 3964#if defined(HAVE_UNISTD_H) 3965# include <unistd.h> 3966#endif 3967#if defined(HAVE_POLL_H) 3968# include <poll.h> 3969#elif defined(HAVE_SYS_POLL_H) 3970# include <sys/poll.h> 3971#endif 3972#if defined(HAVE_SYS_SOCKET_H) 3973# include <sys/socket.h> 3974#endif 3975#if defined(HAVE_NETINET_IN_H) 3976# include <netinet/in.h> 3977#endif 3978#if defined(HAVE_NETINET_IN_SYSTM_H) 3979# include <netinet/in_systm.h> 3980#endif 3981#if defined(HAVE_NETDB_H) 3982# include <netdb.h> 3983#endif 3984#if defined(HAVE_ARPA_INET_H) 3985# include <arpa/inet.h> 3986#endif 3987#if defined(HAVE_DIRENT_H) 3988# include <dirent.h> 3989#else 3990# define dirent direct 3991# if defined(HAVE_SYS_NDIR_H) 3992# include <sys/ndir.h> 3993# endif 3994# if defined(HAVE_SYS_DIR_H) 3995# include <sys/dir.h> 3996# endif 3997# if defined(HAVE_NDIR_H) 3998# include <ndir.h> 3999# endif 4000#endif 4001' # accheck_includes 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011for ac_header in sys/types.h sys/ioctl.h sys/param.h sys/stat.h \ 4012 sys/socket.h sys/syslimits.h sys/time.h sys/wait.h 4013do 4014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4015{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4018 echo $ECHO_N "(cached) $ECHO_C" >&6 4019else 4020 cat >conftest.$ac_ext <<_ACEOF 4021/* confdefs.h. */ 4022_ACEOF 4023cat confdefs.h >>conftest.$ac_ext 4024cat >>conftest.$ac_ext <<_ACEOF 4025/* end confdefs.h. */ 4026$accheck_includes 4027 4028#include <$ac_header> 4029_ACEOF 4030rm -f conftest.$ac_objext 4031if { (ac_try="$ac_compile" 4032case "(($ac_try" in 4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4034 *) ac_try_echo=$ac_try;; 4035esac 4036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4037 (eval "$ac_compile") 2>conftest.er1 4038 ac_status=$? 4039 grep -v '^ *+' conftest.er1 >conftest.err 4040 rm -f conftest.er1 4041 cat conftest.err >&5 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); } && { 4044 test -z "$ac_c_werror_flag" || 4045 test ! -s conftest.err 4046 } && test -s conftest.$ac_objext; then 4047 eval "$as_ac_Header=yes" 4048else 4049 echo "$as_me: failed program was:" >&5 4050sed 's/^/| /' conftest.$ac_ext >&5 4051 4052 eval "$as_ac_Header=no" 4053fi 4054 4055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4056fi 4057ac_res=`eval echo '${'$as_ac_Header'}'` 4058 { echo "$as_me:$LINENO: result: $ac_res" >&5 4059echo "${ECHO_T}$ac_res" >&6; } 4060if test `eval echo '${'$as_ac_Header'}'` = yes; then 4061 cat >>confdefs.h <<_ACEOF 4062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4063_ACEOF 4064 4065fi 4066 4067done 4068 4069 4070 4071 4072 4073 4074ac_header_dirent=no 4075for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4076 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4077{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4078echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 4079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 cat >conftest.$ac_ext <<_ACEOF 4083/* confdefs.h. */ 4084_ACEOF 4085cat confdefs.h >>conftest.$ac_ext 4086cat >>conftest.$ac_ext <<_ACEOF 4087/* end confdefs.h. */ 4088#include <sys/types.h> 4089#include <$ac_hdr> 4090 4091int 4092main () 4093{ 4094if ((DIR *) 0) 4095return 0; 4096 ; 4097 return 0; 4098} 4099_ACEOF 4100rm -f conftest.$ac_objext 4101if { (ac_try="$ac_compile" 4102case "(($ac_try" in 4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4104 *) ac_try_echo=$ac_try;; 4105esac 4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4107 (eval "$ac_compile") 2>conftest.er1 4108 ac_status=$? 4109 grep -v '^ *+' conftest.er1 >conftest.err 4110 rm -f conftest.er1 4111 cat conftest.err >&5 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); } && { 4114 test -z "$ac_c_werror_flag" || 4115 test ! -s conftest.err 4116 } && test -s conftest.$ac_objext; then 4117 eval "$as_ac_Header=yes" 4118else 4119 echo "$as_me: failed program was:" >&5 4120sed 's/^/| /' conftest.$ac_ext >&5 4121 4122 eval "$as_ac_Header=no" 4123fi 4124 4125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4126fi 4127ac_res=`eval echo '${'$as_ac_Header'}'` 4128 { echo "$as_me:$LINENO: result: $ac_res" >&5 4129echo "${ECHO_T}$ac_res" >&6; } 4130if test `eval echo '${'$as_ac_Header'}'` = yes; then 4131 cat >>confdefs.h <<_ACEOF 4132#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4133_ACEOF 4134 4135ac_header_dirent=$ac_hdr; break 4136fi 4137 4138done 4139# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4140if test $ac_header_dirent = dirent.h; then 4141 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4142echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4143if test "${ac_cv_search_opendir+set}" = set; then 4144 echo $ECHO_N "(cached) $ECHO_C" >&6 4145else 4146 ac_func_search_save_LIBS=$LIBS 4147cat >conftest.$ac_ext <<_ACEOF 4148/* confdefs.h. */ 4149_ACEOF 4150cat confdefs.h >>conftest.$ac_ext 4151cat >>conftest.$ac_ext <<_ACEOF 4152/* end confdefs.h. */ 4153 4154/* Override any GCC internal prototype to avoid an error. 4155 Use char because int might match the return type of a GCC 4156 builtin and then its argument prototype would still apply. */ 4157#ifdef __cplusplus 4158extern "C" 4159#endif 4160char opendir (); 4161int 4162main () 4163{ 4164return opendir (); 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169for ac_lib in '' dir; do 4170 if test -z "$ac_lib"; then 4171 ac_res="none required" 4172 else 4173 ac_res=-l$ac_lib 4174 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4175 fi 4176 rm -f conftest.$ac_objext conftest$ac_exeext 4177if { (ac_try="$ac_link" 4178case "(($ac_try" in 4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4180 *) ac_try_echo=$ac_try;; 4181esac 4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4183 (eval "$ac_link") 2>conftest.er1 4184 ac_status=$? 4185 grep -v '^ *+' conftest.er1 >conftest.err 4186 rm -f conftest.er1 4187 cat conftest.err >&5 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); } && { 4190 test -z "$ac_c_werror_flag" || 4191 test ! -s conftest.err 4192 } && test -s conftest$ac_exeext && 4193 $as_test_x conftest$ac_exeext; then 4194 ac_cv_search_opendir=$ac_res 4195else 4196 echo "$as_me: failed program was:" >&5 4197sed 's/^/| /' conftest.$ac_ext >&5 4198 4199 4200fi 4201 4202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4203 conftest$ac_exeext 4204 if test "${ac_cv_search_opendir+set}" = set; then 4205 break 4206fi 4207done 4208if test "${ac_cv_search_opendir+set}" = set; then 4209 : 4210else 4211 ac_cv_search_opendir=no 4212fi 4213rm conftest.$ac_ext 4214LIBS=$ac_func_search_save_LIBS 4215fi 4216{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4217echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4218ac_res=$ac_cv_search_opendir 4219if test "$ac_res" != no; then 4220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4221 4222fi 4223 4224else 4225 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4226echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4227if test "${ac_cv_search_opendir+set}" = set; then 4228 echo $ECHO_N "(cached) $ECHO_C" >&6 4229else 4230 ac_func_search_save_LIBS=$LIBS 4231cat >conftest.$ac_ext <<_ACEOF 4232/* confdefs.h. */ 4233_ACEOF 4234cat confdefs.h >>conftest.$ac_ext 4235cat >>conftest.$ac_ext <<_ACEOF 4236/* end confdefs.h. */ 4237 4238/* Override any GCC internal prototype to avoid an error. 4239 Use char because int might match the return type of a GCC 4240 builtin and then its argument prototype would still apply. */ 4241#ifdef __cplusplus 4242extern "C" 4243#endif 4244char opendir (); 4245int 4246main () 4247{ 4248return opendir (); 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253for ac_lib in '' x; do 4254 if test -z "$ac_lib"; then 4255 ac_res="none required" 4256 else 4257 ac_res=-l$ac_lib 4258 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4259 fi 4260 rm -f conftest.$ac_objext conftest$ac_exeext 4261if { (ac_try="$ac_link" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_link") 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && { 4274 test -z "$ac_c_werror_flag" || 4275 test ! -s conftest.err 4276 } && test -s conftest$ac_exeext && 4277 $as_test_x conftest$ac_exeext; then 4278 ac_cv_search_opendir=$ac_res 4279else 4280 echo "$as_me: failed program was:" >&5 4281sed 's/^/| /' conftest.$ac_ext >&5 4282 4283 4284fi 4285 4286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4287 conftest$ac_exeext 4288 if test "${ac_cv_search_opendir+set}" = set; then 4289 break 4290fi 4291done 4292if test "${ac_cv_search_opendir+set}" = set; then 4293 : 4294else 4295 ac_cv_search_opendir=no 4296fi 4297rm conftest.$ac_ext 4298LIBS=$ac_func_search_save_LIBS 4299fi 4300{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4301echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4302ac_res=$ac_cv_search_opendir 4303if test "$ac_res" != no; then 4304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4305 4306fi 4307 4308fi 4309 4310 4311 4312 4313 4314 4315for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 4316do 4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4318{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 4322else 4323 cat >conftest.$ac_ext <<_ACEOF 4324/* confdefs.h. */ 4325_ACEOF 4326cat confdefs.h >>conftest.$ac_ext 4327cat >>conftest.$ac_ext <<_ACEOF 4328/* end confdefs.h. */ 4329#ifdef HAVE_SYS_TYPES_H 4330# include <sys/types.h> 4331#endif 4332#ifdef HAVE_NETINET_IN_H 4333# include <netinet/in.h> /* inet_ functions / structs */ 4334#endif 4335#ifdef HAVE_ARPA_NAMESER_H 4336# include <arpa/nameser.h> /* DNS HEADER struct */ 4337#endif 4338#ifdef HAVE_NETDB_H 4339# include <netdb.h> 4340#endif 4341 4342#include <$ac_header> 4343_ACEOF 4344rm -f conftest.$ac_objext 4345if { (ac_try="$ac_compile" 4346case "(($ac_try" in 4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4348 *) ac_try_echo=$ac_try;; 4349esac 4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4351 (eval "$ac_compile") 2>conftest.er1 4352 ac_status=$? 4353 grep -v '^ *+' conftest.er1 >conftest.err 4354 rm -f conftest.er1 4355 cat conftest.err >&5 4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4357 (exit $ac_status); } && { 4358 test -z "$ac_c_werror_flag" || 4359 test ! -s conftest.err 4360 } && test -s conftest.$ac_objext; then 4361 eval "$as_ac_Header=yes" 4362else 4363 echo "$as_me: failed program was:" >&5 4364sed 's/^/| /' conftest.$ac_ext >&5 4365 4366 eval "$as_ac_Header=no" 4367fi 4368 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4370fi 4371ac_res=`eval echo '${'$as_ac_Header'}'` 4372 { echo "$as_me:$LINENO: result: $ac_res" >&5 4373echo "${ECHO_T}$ac_res" >&6; } 4374if test `eval echo '${'$as_ac_Header'}'` = yes; then 4375 cat >>confdefs.h <<_ACEOF 4376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4377_ACEOF 4378 4379fi 4380 4381done 4382 4383 4384{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4385echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 4386if test "${ac_cv_header_stat_broken+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 cat >conftest.$ac_ext <<_ACEOF 4390/* confdefs.h. */ 4391_ACEOF 4392cat confdefs.h >>conftest.$ac_ext 4393cat >>conftest.$ac_ext <<_ACEOF 4394/* end confdefs.h. */ 4395#include <sys/types.h> 4396#include <sys/stat.h> 4397 4398#if defined S_ISBLK && defined S_IFDIR 4399extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 4400#endif 4401 4402#if defined S_ISBLK && defined S_IFCHR 4403extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 4404#endif 4405 4406#if defined S_ISLNK && defined S_IFREG 4407extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 4408#endif 4409 4410#if defined S_ISSOCK && defined S_IFREG 4411extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 4412#endif 4413 4414_ACEOF 4415rm -f conftest.$ac_objext 4416if { (ac_try="$ac_compile" 4417case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4422 (eval "$ac_compile") 2>conftest.er1 4423 ac_status=$? 4424 grep -v '^ *+' conftest.er1 >conftest.err 4425 rm -f conftest.er1 4426 cat conftest.err >&5 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } && { 4429 test -z "$ac_c_werror_flag" || 4430 test ! -s conftest.err 4431 } && test -s conftest.$ac_objext; then 4432 ac_cv_header_stat_broken=no 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_header_stat_broken=yes 4438fi 4439 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441fi 4442{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4443echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 4444if test $ac_cv_header_stat_broken = yes; then 4445 4446cat >>confdefs.h <<\_ACEOF 4447#define STAT_MACROS_BROKEN 1 4448_ACEOF 4449 4450fi 4451 4452ac_ext=c 4453ac_cpp='$CPP $CPPFLAGS' 4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4456ac_compiler_gnu=$ac_cv_c_compiler_gnu 4457{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4458echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4459# On Suns, sometimes $CPP names a directory. 4460if test -n "$CPP" && test -d "$CPP"; then 4461 CPP= 4462fi 4463if test -z "$CPP"; then 4464 if test "${ac_cv_prog_CPP+set}" = set; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 # Double quotes because CPP needs to be expanded 4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4469 do 4470 ac_preproc_ok=false 4471for ac_c_preproc_warn_flag in '' yes 4472do 4473 # Use a header file that comes with gcc, so configuring glibc 4474 # with a fresh cross-compiler works. 4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4476 # <limits.h> exists even on freestanding compilers. 4477 # On the NeXT, cc -E runs the code through the compiler's parser, 4478 # not just through cpp. "Syntax error" is here to catch this case. 4479 cat >conftest.$ac_ext <<_ACEOF 4480/* confdefs.h. */ 4481_ACEOF 4482cat confdefs.h >>conftest.$ac_ext 4483cat >>conftest.$ac_ext <<_ACEOF 4484/* end confdefs.h. */ 4485#ifdef __STDC__ 4486# include <limits.h> 4487#else 4488# include <assert.h> 4489#endif 4490 Syntax error 4491_ACEOF 4492if { (ac_try="$ac_cpp conftest.$ac_ext" 4493case "(($ac_try" in 4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4495 *) ac_try_echo=$ac_try;; 4496esac 4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4499 ac_status=$? 4500 grep -v '^ *+' conftest.er1 >conftest.err 4501 rm -f conftest.er1 4502 cat conftest.err >&5 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); } >/dev/null && { 4505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4506 test ! -s conftest.err 4507 }; then 4508 : 4509else 4510 echo "$as_me: failed program was:" >&5 4511sed 's/^/| /' conftest.$ac_ext >&5 4512 4513 # Broken: fails on valid input. 4514continue 4515fi 4516 4517rm -f conftest.err conftest.$ac_ext 4518 4519 # OK, works on sane cases. Now check whether nonexistent headers 4520 # can be detected and how. 4521 cat >conftest.$ac_ext <<_ACEOF 4522/* confdefs.h. */ 4523_ACEOF 4524cat confdefs.h >>conftest.$ac_ext 4525cat >>conftest.$ac_ext <<_ACEOF 4526/* end confdefs.h. */ 4527#include <ac_nonexistent.h> 4528_ACEOF 4529if { (ac_try="$ac_cpp conftest.$ac_ext" 4530case "(($ac_try" in 4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4532 *) ac_try_echo=$ac_try;; 4533esac 4534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4536 ac_status=$? 4537 grep -v '^ *+' conftest.er1 >conftest.err 4538 rm -f conftest.er1 4539 cat conftest.err >&5 4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4541 (exit $ac_status); } >/dev/null && { 4542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4543 test ! -s conftest.err 4544 }; then 4545 # Broken: success on invalid input. 4546continue 4547else 4548 echo "$as_me: failed program was:" >&5 4549sed 's/^/| /' conftest.$ac_ext >&5 4550 4551 # Passes both tests. 4552ac_preproc_ok=: 4553break 4554fi 4555 4556rm -f conftest.err conftest.$ac_ext 4557 4558done 4559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4560rm -f conftest.err conftest.$ac_ext 4561if $ac_preproc_ok; then 4562 break 4563fi 4564 4565 done 4566 ac_cv_prog_CPP=$CPP 4567 4568fi 4569 CPP=$ac_cv_prog_CPP 4570else 4571 ac_cv_prog_CPP=$CPP 4572fi 4573{ echo "$as_me:$LINENO: result: $CPP" >&5 4574echo "${ECHO_T}$CPP" >&6; } 4575ac_preproc_ok=false 4576for ac_c_preproc_warn_flag in '' yes 4577do 4578 # Use a header file that comes with gcc, so configuring glibc 4579 # with a fresh cross-compiler works. 4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4581 # <limits.h> exists even on freestanding compilers. 4582 # On the NeXT, cc -E runs the code through the compiler's parser, 4583 # not just through cpp. "Syntax error" is here to catch this case. 4584 cat >conftest.$ac_ext <<_ACEOF 4585/* confdefs.h. */ 4586_ACEOF 4587cat confdefs.h >>conftest.$ac_ext 4588cat >>conftest.$ac_ext <<_ACEOF 4589/* end confdefs.h. */ 4590#ifdef __STDC__ 4591# include <limits.h> 4592#else 4593# include <assert.h> 4594#endif 4595 Syntax error 4596_ACEOF 4597if { (ac_try="$ac_cpp conftest.$ac_ext" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4604 ac_status=$? 4605 grep -v '^ *+' conftest.er1 >conftest.err 4606 rm -f conftest.er1 4607 cat conftest.err >&5 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } >/dev/null && { 4610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4611 test ! -s conftest.err 4612 }; then 4613 : 4614else 4615 echo "$as_me: failed program was:" >&5 4616sed 's/^/| /' conftest.$ac_ext >&5 4617 4618 # Broken: fails on valid input. 4619continue 4620fi 4621 4622rm -f conftest.err conftest.$ac_ext 4623 4624 # OK, works on sane cases. Now check whether nonexistent headers 4625 # can be detected and how. 4626 cat >conftest.$ac_ext <<_ACEOF 4627/* confdefs.h. */ 4628_ACEOF 4629cat confdefs.h >>conftest.$ac_ext 4630cat >>conftest.$ac_ext <<_ACEOF 4631/* end confdefs.h. */ 4632#include <ac_nonexistent.h> 4633_ACEOF 4634if { (ac_try="$ac_cpp conftest.$ac_ext" 4635case "(($ac_try" in 4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4637 *) ac_try_echo=$ac_try;; 4638esac 4639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4641 ac_status=$? 4642 grep -v '^ *+' conftest.er1 >conftest.err 4643 rm -f conftest.er1 4644 cat conftest.err >&5 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); } >/dev/null && { 4647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4648 test ! -s conftest.err 4649 }; then 4650 # Broken: success on invalid input. 4651continue 4652else 4653 echo "$as_me: failed program was:" >&5 4654sed 's/^/| /' conftest.$ac_ext >&5 4655 4656 # Passes both tests. 4657ac_preproc_ok=: 4658break 4659fi 4660 4661rm -f conftest.err conftest.$ac_ext 4662 4663done 4664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4665rm -f conftest.err conftest.$ac_ext 4666if $ac_preproc_ok; then 4667 : 4668else 4669 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4670See \`config.log' for more details." >&5 4671echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4672See \`config.log' for more details." >&2;} 4673 { (exit 1); exit 1; }; } 4674fi 4675 4676ac_ext=c 4677ac_cpp='$CPP $CPPFLAGS' 4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4680ac_compiler_gnu=$ac_cv_c_compiler_gnu 4681 4682 4683{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4684echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4685if test "${ac_cv_path_GREP+set}" = set; then 4686 echo $ECHO_N "(cached) $ECHO_C" >&6 4687else 4688 # Extract the first word of "grep ggrep" to use in msg output 4689if test -z "$GREP"; then 4690set dummy grep ggrep; ac_prog_name=$2 4691if test "${ac_cv_path_GREP+set}" = set; then 4692 echo $ECHO_N "(cached) $ECHO_C" >&6 4693else 4694 ac_path_GREP_found=false 4695# Loop through the user's path and test for each of PROGNAME-LIST 4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4698do 4699 IFS=$as_save_IFS 4700 test -z "$as_dir" && as_dir=. 4701 for ac_prog in grep ggrep; do 4702 for ac_exec_ext in '' $ac_executable_extensions; do 4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4705 # Check for GNU ac_path_GREP and select it if it is found. 4706 # Check for GNU $ac_path_GREP 4707case `"$ac_path_GREP" --version 2>&1` in 4708*GNU*) 4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4710*) 4711 ac_count=0 4712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4713 while : 4714 do 4715 cat "conftest.in" "conftest.in" >"conftest.tmp" 4716 mv "conftest.tmp" "conftest.in" 4717 cp "conftest.in" "conftest.nl" 4718 echo 'GREP' >> "conftest.nl" 4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4721 ac_count=`expr $ac_count + 1` 4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4723 # Best one so far, save it but keep looking for a better one 4724 ac_cv_path_GREP="$ac_path_GREP" 4725 ac_path_GREP_max=$ac_count 4726 fi 4727 # 10*(2^10) chars as input seems more than enough 4728 test $ac_count -gt 10 && break 4729 done 4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4731esac 4732 4733 4734 $ac_path_GREP_found && break 3 4735 done 4736done 4737 4738done 4739IFS=$as_save_IFS 4740 4741 4742fi 4743 4744GREP="$ac_cv_path_GREP" 4745if test -z "$GREP"; then 4746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4748 { (exit 1); exit 1; }; } 4749fi 4750 4751else 4752 ac_cv_path_GREP=$GREP 4753fi 4754 4755 4756fi 4757{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4758echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4759 GREP="$ac_cv_path_GREP" 4760 4761 4762{ echo "$as_me:$LINENO: checking for egrep" >&5 4763echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4764if test "${ac_cv_path_EGREP+set}" = set; then 4765 echo $ECHO_N "(cached) $ECHO_C" >&6 4766else 4767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4768 then ac_cv_path_EGREP="$GREP -E" 4769 else 4770 # Extract the first word of "egrep" to use in msg output 4771if test -z "$EGREP"; then 4772set dummy egrep; ac_prog_name=$2 4773if test "${ac_cv_path_EGREP+set}" = set; then 4774 echo $ECHO_N "(cached) $ECHO_C" >&6 4775else 4776 ac_path_EGREP_found=false 4777# Loop through the user's path and test for each of PROGNAME-LIST 4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_prog in egrep; do 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4786 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4787 # Check for GNU ac_path_EGREP and select it if it is found. 4788 # Check for GNU $ac_path_EGREP 4789case `"$ac_path_EGREP" --version 2>&1` in 4790*GNU*) 4791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4792*) 4793 ac_count=0 4794 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4795 while : 4796 do 4797 cat "conftest.in" "conftest.in" >"conftest.tmp" 4798 mv "conftest.tmp" "conftest.in" 4799 cp "conftest.in" "conftest.nl" 4800 echo 'EGREP' >> "conftest.nl" 4801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4803 ac_count=`expr $ac_count + 1` 4804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4805 # Best one so far, save it but keep looking for a better one 4806 ac_cv_path_EGREP="$ac_path_EGREP" 4807 ac_path_EGREP_max=$ac_count 4808 fi 4809 # 10*(2^10) chars as input seems more than enough 4810 test $ac_count -gt 10 && break 4811 done 4812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4813esac 4814 4815 4816 $ac_path_EGREP_found && break 3 4817 done 4818done 4819 4820done 4821IFS=$as_save_IFS 4822 4823 4824fi 4825 4826EGREP="$ac_cv_path_EGREP" 4827if test -z "$EGREP"; then 4828 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4829echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4830 { (exit 1); exit 1; }; } 4831fi 4832 4833else 4834 ac_cv_path_EGREP=$EGREP 4835fi 4836 4837 4838 fi 4839fi 4840{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4841echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4842 EGREP="$ac_cv_path_EGREP" 4843 4844 4845{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4847if test "${ac_cv_header_stdc+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849else 4850 cat >conftest.$ac_ext <<_ACEOF 4851/* confdefs.h. */ 4852_ACEOF 4853cat confdefs.h >>conftest.$ac_ext 4854cat >>conftest.$ac_ext <<_ACEOF 4855/* end confdefs.h. */ 4856#include <stdlib.h> 4857#include <stdarg.h> 4858#include <string.h> 4859#include <float.h> 4860 4861int 4862main () 4863{ 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869rm -f conftest.$ac_objext 4870if { (ac_try="$ac_compile" 4871case "(($ac_try" in 4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4873 *) ac_try_echo=$ac_try;; 4874esac 4875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4876 (eval "$ac_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 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_header_stdc=yes 4887else 4888 echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891 ac_cv_header_stdc=no 4892fi 4893 4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4895 4896if test $ac_cv_header_stdc = yes; then 4897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4898 cat >conftest.$ac_ext <<_ACEOF 4899/* confdefs.h. */ 4900_ACEOF 4901cat confdefs.h >>conftest.$ac_ext 4902cat >>conftest.$ac_ext <<_ACEOF 4903/* end confdefs.h. */ 4904#include <string.h> 4905 4906_ACEOF 4907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4908 $EGREP "memchr" >/dev/null 2>&1; then 4909 : 4910else 4911 ac_cv_header_stdc=no 4912fi 4913rm -f conftest* 4914 4915fi 4916 4917if test $ac_cv_header_stdc = yes; then 4918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4919 cat >conftest.$ac_ext <<_ACEOF 4920/* confdefs.h. */ 4921_ACEOF 4922cat confdefs.h >>conftest.$ac_ext 4923cat >>conftest.$ac_ext <<_ACEOF 4924/* end confdefs.h. */ 4925#include <stdlib.h> 4926 4927_ACEOF 4928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4929 $EGREP "free" >/dev/null 2>&1; then 4930 : 4931else 4932 ac_cv_header_stdc=no 4933fi 4934rm -f conftest* 4935 4936fi 4937 4938if test $ac_cv_header_stdc = yes; then 4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4940 if test "$cross_compiling" = yes; then 4941 : 4942else 4943 cat >conftest.$ac_ext <<_ACEOF 4944/* confdefs.h. */ 4945_ACEOF 4946cat confdefs.h >>conftest.$ac_ext 4947cat >>conftest.$ac_ext <<_ACEOF 4948/* end confdefs.h. */ 4949#include <ctype.h> 4950#include <stdlib.h> 4951#if ((' ' & 0x0FF) == 0x020) 4952# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4953# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4954#else 4955# define ISLOWER(c) \ 4956 (('a' <= (c) && (c) <= 'i') \ 4957 || ('j' <= (c) && (c) <= 'r') \ 4958 || ('s' <= (c) && (c) <= 'z')) 4959# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4960#endif 4961 4962#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4963int 4964main () 4965{ 4966 int i; 4967 for (i = 0; i < 256; i++) 4968 if (XOR (islower (i), ISLOWER (i)) 4969 || toupper (i) != TOUPPER (i)) 4970 return 2; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest$ac_exeext 4975if { (ac_try="$ac_link" 4976case "(($ac_try" in 4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4978 *) ac_try_echo=$ac_try;; 4979esac 4980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4981 (eval "$ac_link") 2>&5 4982 ac_status=$? 4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4985 { (case "(($ac_try" in 4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4987 *) ac_try_echo=$ac_try;; 4988esac 4989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4990 (eval "$ac_try") 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; }; then 4994 : 4995else 4996 echo "$as_me: program exited with status $ac_status" >&5 4997echo "$as_me: failed program was:" >&5 4998sed 's/^/| /' conftest.$ac_ext >&5 4999 5000( exit $ac_status ) 5001ac_cv_header_stdc=no 5002fi 5003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5004fi 5005 5006 5007fi 5008fi 5009{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5010echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5011if test $ac_cv_header_stdc = yes; then 5012 5013cat >>confdefs.h <<\_ACEOF 5014#define STDC_HEADERS 1 5015_ACEOF 5016 5017fi 5018 5019{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5020echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5021if test "${ac_cv_header_time+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 cat >conftest.$ac_ext <<_ACEOF 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030#include <sys/types.h> 5031#include <sys/time.h> 5032#include <time.h> 5033 5034int 5035main () 5036{ 5037if ((struct tm *) 0) 5038return 0; 5039 ; 5040 return 0; 5041} 5042_ACEOF 5043rm -f conftest.$ac_objext 5044if { (ac_try="$ac_compile" 5045case "(($ac_try" in 5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5047 *) ac_try_echo=$ac_try;; 5048esac 5049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5050 (eval "$ac_compile") 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); } && { 5057 test -z "$ac_c_werror_flag" || 5058 test ! -s conftest.err 5059 } && test -s conftest.$ac_objext; then 5060 ac_cv_header_time=yes 5061else 5062 echo "$as_me: failed program was:" >&5 5063sed 's/^/| /' conftest.$ac_ext >&5 5064 5065 ac_cv_header_time=no 5066fi 5067 5068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5069fi 5070{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5071echo "${ECHO_T}$ac_cv_header_time" >&6; } 5072if test $ac_cv_header_time = yes; then 5073 5074cat >>confdefs.h <<\_ACEOF 5075#define TIME_WITH_SYS_TIME 1 5076_ACEOF 5077 5078fi 5079 5080{ echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 5081echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; } 5082if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 5083 echo $ECHO_N "(cached) $ECHO_C" >&6 5084else 5085 cat >conftest.$ac_ext <<_ACEOF 5086/* confdefs.h. */ 5087_ACEOF 5088cat confdefs.h >>conftest.$ac_ext 5089cat >>conftest.$ac_ext <<_ACEOF 5090/* end confdefs.h. */ 5091#include <sys/types.h> 5092#include <termios.h> 5093#ifdef TIOCGWINSZ 5094 yes 5095#endif 5096 5097_ACEOF 5098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5099 $EGREP "yes" >/dev/null 2>&1; then 5100 ac_cv_sys_tiocgwinsz_in_termios_h=yes 5101else 5102 ac_cv_sys_tiocgwinsz_in_termios_h=no 5103fi 5104rm -f conftest* 5105 5106fi 5107{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 5108echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 5109 5110if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 5111 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 5112echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; } 5113if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >conftest.$ac_ext <<_ACEOF 5117/* confdefs.h. */ 5118_ACEOF 5119cat confdefs.h >>conftest.$ac_ext 5120cat >>conftest.$ac_ext <<_ACEOF 5121/* end confdefs.h. */ 5122#include <sys/types.h> 5123#include <sys/ioctl.h> 5124#ifdef TIOCGWINSZ 5125 yes 5126#endif 5127 5128_ACEOF 5129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5130 $EGREP "yes" >/dev/null 2>&1; then 5131 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 5132else 5133 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 5134fi 5135rm -f conftest* 5136 5137fi 5138{ echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 5139echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 5140 5141 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 5142 5143cat >>confdefs.h <<\_ACEOF 5144#define GWINSZ_IN_SYS_IOCTL 1 5145_ACEOF 5146 5147 fi 5148fi 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174for ac_header in arpa/ftp.h arpa/inet.h arpa/nameser.h err.h \ 5175 fcntl.h libgen.h limits.h malloc.h \ 5176 netinet/in.h netinet/in_systm.h netinet/ip.h \ 5177 paths.h poll.h pwd.h sys/poll.h regex.h \ 5178 setjmp.h signal.h stddef.h termcap.h termios.h \ 5179 unistd.h utime.h vis.h 5180do 5181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5182{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5185 echo $ECHO_N "(cached) $ECHO_C" >&6 5186else 5187 cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193$accheck_includes 5194 5195#include <$ac_header> 5196_ACEOF 5197rm -f conftest.$ac_objext 5198if { (ac_try="$ac_compile" 5199case "(($ac_try" in 5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5201 *) ac_try_echo=$ac_try;; 5202esac 5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5204 (eval "$ac_compile") 2>conftest.er1 5205 ac_status=$? 5206 grep -v '^ *+' conftest.er1 >conftest.err 5207 rm -f conftest.er1 5208 cat conftest.err >&5 5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5210 (exit $ac_status); } && { 5211 test -z "$ac_c_werror_flag" || 5212 test ! -s conftest.err 5213 } && test -s conftest.$ac_objext; then 5214 eval "$as_ac_Header=yes" 5215else 5216 echo "$as_me: failed program was:" >&5 5217sed 's/^/| /' conftest.$ac_ext >&5 5218 5219 eval "$as_ac_Header=no" 5220fi 5221 5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5223fi 5224ac_res=`eval echo '${'$as_ac_Header'}'` 5225 { echo "$as_me:$LINENO: result: $ac_res" >&5 5226echo "${ECHO_T}$ac_res" >&6; } 5227if test `eval echo '${'$as_ac_Header'}'` = yes; then 5228 cat >>confdefs.h <<_ACEOF 5229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5230_ACEOF 5231 5232fi 5233 5234done 5235 5236 5237# 5238# Checks for typedefs, structures, and compiler characteristics. 5239# 5240{ echo "$as_me:$LINENO: checking whether AI_NUMERICHOST is declared" >&5 5241echo $ECHO_N "checking whether AI_NUMERICHOST is declared... $ECHO_C" >&6; } 5242if test "${ac_cv_have_decl_AI_NUMERICHOST+set}" = set; then 5243 echo $ECHO_N "(cached) $ECHO_C" >&6 5244else 5245 cat >conftest.$ac_ext <<_ACEOF 5246/* confdefs.h. */ 5247_ACEOF 5248cat confdefs.h >>conftest.$ac_ext 5249cat >>conftest.$ac_ext <<_ACEOF 5250/* end confdefs.h. */ 5251$accheck_includes 5252 5253int 5254main () 5255{ 5256#ifndef AI_NUMERICHOST 5257 (void) AI_NUMERICHOST; 5258#endif 5259 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264rm -f conftest.$ac_objext 5265if { (ac_try="$ac_compile" 5266case "(($ac_try" in 5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5268 *) ac_try_echo=$ac_try;; 5269esac 5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5271 (eval "$ac_compile") 2>conftest.er1 5272 ac_status=$? 5273 grep -v '^ *+' conftest.er1 >conftest.err 5274 rm -f conftest.er1 5275 cat conftest.err >&5 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); } && { 5278 test -z "$ac_c_werror_flag" || 5279 test ! -s conftest.err 5280 } && test -s conftest.$ac_objext; then 5281 ac_cv_have_decl_AI_NUMERICHOST=yes 5282else 5283 echo "$as_me: failed program was:" >&5 5284sed 's/^/| /' conftest.$ac_ext >&5 5285 5286 ac_cv_have_decl_AI_NUMERICHOST=no 5287fi 5288 5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5290fi 5291{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICHOST" >&5 5292echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICHOST" >&6; } 5293if test $ac_cv_have_decl_AI_NUMERICHOST = yes; then 5294 5295cat >>confdefs.h <<_ACEOF 5296#define HAVE_DECL_AI_NUMERICHOST 1 5297_ACEOF 5298 5299 5300else 5301 cat >>confdefs.h <<_ACEOF 5302#define HAVE_DECL_AI_NUMERICHOST 0 5303_ACEOF 5304 5305 5306fi 5307{ echo "$as_me:$LINENO: checking whether dirname is declared" >&5 5308echo $ECHO_N "checking whether dirname is declared... $ECHO_C" >&6; } 5309if test "${ac_cv_have_decl_dirname+set}" = set; then 5310 echo $ECHO_N "(cached) $ECHO_C" >&6 5311else 5312 cat >conftest.$ac_ext <<_ACEOF 5313/* confdefs.h. */ 5314_ACEOF 5315cat confdefs.h >>conftest.$ac_ext 5316cat >>conftest.$ac_ext <<_ACEOF 5317/* end confdefs.h. */ 5318$accheck_includes 5319 5320int 5321main () 5322{ 5323#ifndef dirname 5324 (void) dirname; 5325#endif 5326 5327 ; 5328 return 0; 5329} 5330_ACEOF 5331rm -f conftest.$ac_objext 5332if { (ac_try="$ac_compile" 5333case "(($ac_try" in 5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5335 *) ac_try_echo=$ac_try;; 5336esac 5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5338 (eval "$ac_compile") 2>conftest.er1 5339 ac_status=$? 5340 grep -v '^ *+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } && { 5345 test -z "$ac_c_werror_flag" || 5346 test ! -s conftest.err 5347 } && test -s conftest.$ac_objext; then 5348 ac_cv_have_decl_dirname=yes 5349else 5350 echo "$as_me: failed program was:" >&5 5351sed 's/^/| /' conftest.$ac_ext >&5 5352 5353 ac_cv_have_decl_dirname=no 5354fi 5355 5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5357fi 5358{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirname" >&5 5359echo "${ECHO_T}$ac_cv_have_decl_dirname" >&6; } 5360if test $ac_cv_have_decl_dirname = yes; then 5361 5362cat >>confdefs.h <<_ACEOF 5363#define HAVE_DECL_DIRNAME 1 5364_ACEOF 5365 5366 5367else 5368 cat >>confdefs.h <<_ACEOF 5369#define HAVE_DECL_DIRNAME 0 5370_ACEOF 5371 5372 5373fi 5374{ echo "$as_me:$LINENO: checking whether fclose is declared" >&5 5375echo $ECHO_N "checking whether fclose is declared... $ECHO_C" >&6; } 5376if test "${ac_cv_have_decl_fclose+set}" = set; then 5377 echo $ECHO_N "(cached) $ECHO_C" >&6 5378else 5379 cat >conftest.$ac_ext <<_ACEOF 5380/* confdefs.h. */ 5381_ACEOF 5382cat confdefs.h >>conftest.$ac_ext 5383cat >>conftest.$ac_ext <<_ACEOF 5384/* end confdefs.h. */ 5385$accheck_includes 5386 5387int 5388main () 5389{ 5390#ifndef fclose 5391 (void) fclose; 5392#endif 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398rm -f conftest.$ac_objext 5399if { (ac_try="$ac_compile" 5400case "(($ac_try" in 5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5402 *) ac_try_echo=$ac_try;; 5403esac 5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5405 (eval "$ac_compile") 2>conftest.er1 5406 ac_status=$? 5407 grep -v '^ *+' conftest.er1 >conftest.err 5408 rm -f conftest.er1 5409 cat conftest.err >&5 5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5411 (exit $ac_status); } && { 5412 test -z "$ac_c_werror_flag" || 5413 test ! -s conftest.err 5414 } && test -s conftest.$ac_objext; then 5415 ac_cv_have_decl_fclose=yes 5416else 5417 echo "$as_me: failed program was:" >&5 5418sed 's/^/| /' conftest.$ac_ext >&5 5419 5420 ac_cv_have_decl_fclose=no 5421fi 5422 5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5424fi 5425{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fclose" >&5 5426echo "${ECHO_T}$ac_cv_have_decl_fclose" >&6; } 5427if test $ac_cv_have_decl_fclose = yes; then 5428 5429cat >>confdefs.h <<_ACEOF 5430#define HAVE_DECL_FCLOSE 1 5431_ACEOF 5432 5433 5434else 5435 cat >>confdefs.h <<_ACEOF 5436#define HAVE_DECL_FCLOSE 0 5437_ACEOF 5438 5439 5440fi 5441{ echo "$as_me:$LINENO: checking whether getpass is declared" >&5 5442echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6; } 5443if test "${ac_cv_have_decl_getpass+set}" = set; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 cat >conftest.$ac_ext <<_ACEOF 5447/* confdefs.h. */ 5448_ACEOF 5449cat confdefs.h >>conftest.$ac_ext 5450cat >>conftest.$ac_ext <<_ACEOF 5451/* end confdefs.h. */ 5452$accheck_includes 5453 5454int 5455main () 5456{ 5457#ifndef getpass 5458 (void) getpass; 5459#endif 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465rm -f conftest.$ac_objext 5466if { (ac_try="$ac_compile" 5467case "(($ac_try" in 5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5469 *) ac_try_echo=$ac_try;; 5470esac 5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5472 (eval "$ac_compile") 2>conftest.er1 5473 ac_status=$? 5474 grep -v '^ *+' conftest.er1 >conftest.err 5475 rm -f conftest.er1 5476 cat conftest.err >&5 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); } && { 5479 test -z "$ac_c_werror_flag" || 5480 test ! -s conftest.err 5481 } && test -s conftest.$ac_objext; then 5482 ac_cv_have_decl_getpass=yes 5483else 5484 echo "$as_me: failed program was:" >&5 5485sed 's/^/| /' conftest.$ac_ext >&5 5486 5487 ac_cv_have_decl_getpass=no 5488fi 5489 5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5491fi 5492{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5 5493echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6; } 5494if test $ac_cv_have_decl_getpass = yes; then 5495 5496cat >>confdefs.h <<_ACEOF 5497#define HAVE_DECL_GETPASS 1 5498_ACEOF 5499 5500 5501else 5502 cat >>confdefs.h <<_ACEOF 5503#define HAVE_DECL_GETPASS 0 5504_ACEOF 5505 5506 5507fi 5508{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 5509echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } 5510if test "${ac_cv_have_decl_h_errno+set}" = set; then 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 5512else 5513 cat >conftest.$ac_ext <<_ACEOF 5514/* confdefs.h. */ 5515_ACEOF 5516cat confdefs.h >>conftest.$ac_ext 5517cat >>conftest.$ac_ext <<_ACEOF 5518/* end confdefs.h. */ 5519$accheck_includes 5520 5521int 5522main () 5523{ 5524#ifndef h_errno 5525 (void) h_errno; 5526#endif 5527 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532rm -f conftest.$ac_objext 5533if { (ac_try="$ac_compile" 5534case "(($ac_try" in 5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5536 *) ac_try_echo=$ac_try;; 5537esac 5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5539 (eval "$ac_compile") 2>conftest.er1 5540 ac_status=$? 5541 grep -v '^ *+' conftest.er1 >conftest.err 5542 rm -f conftest.er1 5543 cat conftest.err >&5 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545 (exit $ac_status); } && { 5546 test -z "$ac_c_werror_flag" || 5547 test ! -s conftest.err 5548 } && test -s conftest.$ac_objext; then 5549 ac_cv_have_decl_h_errno=yes 5550else 5551 echo "$as_me: failed program was:" >&5 5552sed 's/^/| /' conftest.$ac_ext >&5 5553 5554 ac_cv_have_decl_h_errno=no 5555fi 5556 5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5558fi 5559{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 5560echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } 5561if test $ac_cv_have_decl_h_errno = yes; then 5562 5563cat >>confdefs.h <<_ACEOF 5564#define HAVE_DECL_H_ERRNO 1 5565_ACEOF 5566 5567 5568else 5569 cat >>confdefs.h <<_ACEOF 5570#define HAVE_DECL_H_ERRNO 0 5571_ACEOF 5572 5573 5574fi 5575{ echo "$as_me:$LINENO: checking whether pclose is declared" >&5 5576echo $ECHO_N "checking whether pclose is declared... $ECHO_C" >&6; } 5577if test "${ac_cv_have_decl_pclose+set}" = set; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 cat >conftest.$ac_ext <<_ACEOF 5581/* confdefs.h. */ 5582_ACEOF 5583cat confdefs.h >>conftest.$ac_ext 5584cat >>conftest.$ac_ext <<_ACEOF 5585/* end confdefs.h. */ 5586$accheck_includes 5587 5588int 5589main () 5590{ 5591#ifndef pclose 5592 (void) pclose; 5593#endif 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599rm -f conftest.$ac_objext 5600if { (ac_try="$ac_compile" 5601case "(($ac_try" in 5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5603 *) ac_try_echo=$ac_try;; 5604esac 5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5606 (eval "$ac_compile") 2>conftest.er1 5607 ac_status=$? 5608 grep -v '^ *+' conftest.er1 >conftest.err 5609 rm -f conftest.er1 5610 cat conftest.err >&5 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); } && { 5613 test -z "$ac_c_werror_flag" || 5614 test ! -s conftest.err 5615 } && test -s conftest.$ac_objext; then 5616 ac_cv_have_decl_pclose=yes 5617else 5618 echo "$as_me: failed program was:" >&5 5619sed 's/^/| /' conftest.$ac_ext >&5 5620 5621 ac_cv_have_decl_pclose=no 5622fi 5623 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5625fi 5626{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pclose" >&5 5627echo "${ECHO_T}$ac_cv_have_decl_pclose" >&6; } 5628if test $ac_cv_have_decl_pclose = yes; then 5629 5630cat >>confdefs.h <<_ACEOF 5631#define HAVE_DECL_PCLOSE 1 5632_ACEOF 5633 5634 5635else 5636 cat >>confdefs.h <<_ACEOF 5637#define HAVE_DECL_PCLOSE 0 5638_ACEOF 5639 5640 5641fi 5642{ echo "$as_me:$LINENO: checking whether optarg is declared" >&5 5643echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; } 5644if test "${ac_cv_have_decl_optarg+set}" = set; then 5645 echo $ECHO_N "(cached) $ECHO_C" >&6 5646else 5647 cat >conftest.$ac_ext <<_ACEOF 5648/* confdefs.h. */ 5649_ACEOF 5650cat confdefs.h >>conftest.$ac_ext 5651cat >>conftest.$ac_ext <<_ACEOF 5652/* end confdefs.h. */ 5653$accheck_includes 5654 5655int 5656main () 5657{ 5658#ifndef optarg 5659 (void) optarg; 5660#endif 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666rm -f conftest.$ac_objext 5667if { (ac_try="$ac_compile" 5668case "(($ac_try" in 5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5670 *) ac_try_echo=$ac_try;; 5671esac 5672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5673 (eval "$ac_compile") 2>conftest.er1 5674 ac_status=$? 5675 grep -v '^ *+' conftest.er1 >conftest.err 5676 rm -f conftest.er1 5677 cat conftest.err >&5 5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5679 (exit $ac_status); } && { 5680 test -z "$ac_c_werror_flag" || 5681 test ! -s conftest.err 5682 } && test -s conftest.$ac_objext; then 5683 ac_cv_have_decl_optarg=yes 5684else 5685 echo "$as_me: failed program was:" >&5 5686sed 's/^/| /' conftest.$ac_ext >&5 5687 5688 ac_cv_have_decl_optarg=no 5689fi 5690 5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5692fi 5693{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5 5694echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; } 5695if test $ac_cv_have_decl_optarg = yes; then 5696 5697cat >>confdefs.h <<_ACEOF 5698#define HAVE_DECL_OPTARG 1 5699_ACEOF 5700 5701 5702else 5703 cat >>confdefs.h <<_ACEOF 5704#define HAVE_DECL_OPTARG 0 5705_ACEOF 5706 5707 5708fi 5709{ echo "$as_me:$LINENO: checking whether optind is declared" >&5 5710echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; } 5711if test "${ac_cv_have_decl_optind+set}" = set; then 5712 echo $ECHO_N "(cached) $ECHO_C" >&6 5713else 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720$accheck_includes 5721 5722int 5723main () 5724{ 5725#ifndef optind 5726 (void) optind; 5727#endif 5728 5729 ; 5730 return 0; 5731} 5732_ACEOF 5733rm -f conftest.$ac_objext 5734if { (ac_try="$ac_compile" 5735case "(($ac_try" in 5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5737 *) ac_try_echo=$ac_try;; 5738esac 5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5740 (eval "$ac_compile") 2>conftest.er1 5741 ac_status=$? 5742 grep -v '^ *+' conftest.er1 >conftest.err 5743 rm -f conftest.er1 5744 cat conftest.err >&5 5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5746 (exit $ac_status); } && { 5747 test -z "$ac_c_werror_flag" || 5748 test ! -s conftest.err 5749 } && test -s conftest.$ac_objext; then 5750 ac_cv_have_decl_optind=yes 5751else 5752 echo "$as_me: failed program was:" >&5 5753sed 's/^/| /' conftest.$ac_ext >&5 5754 5755 ac_cv_have_decl_optind=no 5756fi 5757 5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5759fi 5760{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5 5761echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; } 5762if test $ac_cv_have_decl_optind = yes; then 5763 5764cat >>confdefs.h <<_ACEOF 5765#define HAVE_DECL_OPTIND 1 5766_ACEOF 5767 5768 5769else 5770 cat >>confdefs.h <<_ACEOF 5771#define HAVE_DECL_OPTIND 0 5772_ACEOF 5773 5774 5775fi 5776 5777 5778 5779 { echo "$as_me:$LINENO: checking for long double" >&5 5780echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 5781if test "${ac_cv_type_long_double+set}" = set; then 5782 echo $ECHO_N "(cached) $ECHO_C" >&6 5783else 5784 if test "$GCC" = yes; then 5785 ac_cv_type_long_double=yes 5786 else 5787 cat >conftest.$ac_ext <<_ACEOF 5788/* confdefs.h. */ 5789_ACEOF 5790cat confdefs.h >>conftest.$ac_ext 5791cat >>conftest.$ac_ext <<_ACEOF 5792/* end confdefs.h. */ 5793/* The Stardent Vistra knows sizeof (long double), but does 5794 not support it. */ 5795 long double foo = 0.0L; 5796int 5797main () 5798{ 5799static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5800 sizeof (double) <= sizeof (long double))]; 5801test_array [0] = 0 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807rm -f conftest.$ac_objext 5808if { (ac_try="$ac_compile" 5809case "(($ac_try" in 5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5811 *) ac_try_echo=$ac_try;; 5812esac 5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5814 (eval "$ac_compile") 2>conftest.er1 5815 ac_status=$? 5816 grep -v '^ *+' conftest.er1 >conftest.err 5817 rm -f conftest.er1 5818 cat conftest.err >&5 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } && { 5821 test -z "$ac_c_werror_flag" || 5822 test ! -s conftest.err 5823 } && test -s conftest.$ac_objext; then 5824 ac_cv_type_long_double=yes 5825else 5826 echo "$as_me: failed program was:" >&5 5827sed 's/^/| /' conftest.$ac_ext >&5 5828 5829 ac_cv_type_long_double=no 5830fi 5831 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833 fi 5834fi 5835{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 5836echo "${ECHO_T}$ac_cv_type_long_double" >&6; } 5837 if test $ac_cv_type_long_double = yes; then 5838 5839cat >>confdefs.h <<\_ACEOF 5840#define HAVE_LONG_DOUBLE 1 5841_ACEOF 5842 5843 fi 5844 5845 5846 { echo "$as_me:$LINENO: checking for long long int" >&5 5847echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } 5848if test "${ac_cv_type_long_long_int+set}" = set; then 5849 echo $ECHO_N "(cached) $ECHO_C" >&6 5850else 5851 cat >conftest.$ac_ext <<_ACEOF 5852/* confdefs.h. */ 5853_ACEOF 5854cat confdefs.h >>conftest.$ac_ext 5855cat >>conftest.$ac_ext <<_ACEOF 5856/* end confdefs.h. */ 5857long long int ll = 9223372036854775807ll; 5858 long long int nll = -9223372036854775807LL; 5859 typedef int a[((-9223372036854775807LL < 0 5860 && 0 < 9223372036854775807ll) 5861 ? 1 : -1)]; 5862 int i = 63; 5863int 5864main () 5865{ 5866long long int llmax = 9223372036854775807ll; 5867 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 5868 | (llmax / ll) | (llmax % ll)); 5869 ; 5870 return 0; 5871} 5872_ACEOF 5873rm -f conftest.$ac_objext conftest$ac_exeext 5874if { (ac_try="$ac_link" 5875case "(($ac_try" in 5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5877 *) ac_try_echo=$ac_try;; 5878esac 5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5880 (eval "$ac_link") 2>conftest.er1 5881 ac_status=$? 5882 grep -v '^ *+' conftest.er1 >conftest.err 5883 rm -f conftest.er1 5884 cat conftest.err >&5 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); } && { 5887 test -z "$ac_c_werror_flag" || 5888 test ! -s conftest.err 5889 } && test -s conftest$ac_exeext && 5890 $as_test_x conftest$ac_exeext; then 5891 if test "$cross_compiling" = yes; then 5892 ac_cv_type_long_long_int=yes 5893else 5894 cat >conftest.$ac_ext <<_ACEOF 5895/* confdefs.h. */ 5896_ACEOF 5897cat confdefs.h >>conftest.$ac_ext 5898cat >>conftest.$ac_ext <<_ACEOF 5899/* end confdefs.h. */ 5900#include <limits.h> 5901 #ifndef LLONG_MAX 5902 # define HALF \ 5903 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 5904 # define LLONG_MAX (HALF - 1 + HALF) 5905 #endif 5906int 5907main () 5908{ 5909long long int n = 1; 5910 int i; 5911 for (i = 0; ; i++) 5912 { 5913 long long int m = n << i; 5914 if (m >> i != n) 5915 return 1; 5916 if (LLONG_MAX / 2 < m) 5917 break; 5918 } 5919 return 0; 5920 ; 5921 return 0; 5922} 5923_ACEOF 5924rm -f conftest$ac_exeext 5925if { (ac_try="$ac_link" 5926case "(($ac_try" in 5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5928 *) ac_try_echo=$ac_try;; 5929esac 5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5931 (eval "$ac_link") 2>&5 5932 ac_status=$? 5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5935 { (case "(($ac_try" in 5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5937 *) ac_try_echo=$ac_try;; 5938esac 5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5940 (eval "$ac_try") 2>&5 5941 ac_status=$? 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5943 (exit $ac_status); }; }; then 5944 ac_cv_type_long_long_int=yes 5945else 5946 echo "$as_me: program exited with status $ac_status" >&5 5947echo "$as_me: failed program was:" >&5 5948sed 's/^/| /' conftest.$ac_ext >&5 5949 5950( exit $ac_status ) 5951ac_cv_type_long_long_int=no 5952fi 5953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5954fi 5955 5956 5957else 5958 echo "$as_me: failed program was:" >&5 5959sed 's/^/| /' conftest.$ac_ext >&5 5960 5961 ac_cv_type_long_long_int=no 5962fi 5963 5964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5965 conftest$ac_exeext conftest.$ac_ext 5966fi 5967{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 5968echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } 5969 if test $ac_cv_type_long_long_int = yes; then 5970 5971cat >>confdefs.h <<\_ACEOF 5972#define HAVE_LONG_LONG_INT 1 5973_ACEOF 5974 5975 fi 5976 5977# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5988 inttypes.h stdint.h unistd.h 5989do 5990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5991{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5994 echo $ECHO_N "(cached) $ECHO_C" >&6 5995else 5996 cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002$ac_includes_default 6003 6004#include <$ac_header> 6005_ACEOF 6006rm -f conftest.$ac_objext 6007if { (ac_try="$ac_compile" 6008case "(($ac_try" in 6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6010 *) ac_try_echo=$ac_try;; 6011esac 6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6013 (eval "$ac_compile") 2>conftest.er1 6014 ac_status=$? 6015 grep -v '^ *+' conftest.er1 >conftest.err 6016 rm -f conftest.er1 6017 cat conftest.err >&5 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); } && { 6020 test -z "$ac_c_werror_flag" || 6021 test ! -s conftest.err 6022 } && test -s conftest.$ac_objext; then 6023 eval "$as_ac_Header=yes" 6024else 6025 echo "$as_me: failed program was:" >&5 6026sed 's/^/| /' conftest.$ac_ext >&5 6027 6028 eval "$as_ac_Header=no" 6029fi 6030 6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6032fi 6033ac_res=`eval echo '${'$as_ac_Header'}'` 6034 { echo "$as_me:$LINENO: result: $ac_res" >&5 6035echo "${ECHO_T}$ac_res" >&6; } 6036if test `eval echo '${'$as_ac_Header'}'` = yes; then 6037 cat >>confdefs.h <<_ACEOF 6038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6039_ACEOF 6040 6041fi 6042 6043done 6044 6045 6046 6047 { echo "$as_me:$LINENO: checking for uint32_t" >&5 6048echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 6049if test "${ac_cv_c_uint32_t+set}" = set; then 6050 echo $ECHO_N "(cached) $ECHO_C" >&6 6051else 6052 ac_cv_c_uint32_t=no 6053 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 6054 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 6055 cat >conftest.$ac_ext <<_ACEOF 6056/* confdefs.h. */ 6057_ACEOF 6058cat confdefs.h >>conftest.$ac_ext 6059cat >>conftest.$ac_ext <<_ACEOF 6060/* end confdefs.h. */ 6061$ac_includes_default 6062int 6063main () 6064{ 6065static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 6066test_array [0] = 0 6067 6068 ; 6069 return 0; 6070} 6071_ACEOF 6072rm -f conftest.$ac_objext 6073if { (ac_try="$ac_compile" 6074case "(($ac_try" in 6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6076 *) ac_try_echo=$ac_try;; 6077esac 6078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6079 (eval "$ac_compile") 2>conftest.er1 6080 ac_status=$? 6081 grep -v '^ *+' conftest.er1 >conftest.err 6082 rm -f conftest.er1 6083 cat conftest.err >&5 6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6085 (exit $ac_status); } && { 6086 test -z "$ac_c_werror_flag" || 6087 test ! -s conftest.err 6088 } && test -s conftest.$ac_objext; then 6089 case $ac_type in 6090 uint32_t) ac_cv_c_uint32_t=yes ;; 6091 *) ac_cv_c_uint32_t=$ac_type ;; 6092esac 6093 6094else 6095 echo "$as_me: failed program was:" >&5 6096sed 's/^/| /' conftest.$ac_ext >&5 6097 6098 6099fi 6100 6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6102 test "$ac_cv_c_uint32_t" != no && break 6103 done 6104fi 6105{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 6106echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } 6107 case $ac_cv_c_uint32_t in #( 6108 no|yes) ;; #( 6109 *) 6110 6111cat >>confdefs.h <<\_ACEOF 6112#define _UINT32_T 1 6113_ACEOF 6114 6115 6116cat >>confdefs.h <<_ACEOF 6117#define uint32_t $ac_cv_c_uint32_t 6118_ACEOF 6119;; 6120 esac 6121 6122{ echo "$as_me:$LINENO: checking for off_t" >&5 6123echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 6124if test "${ac_cv_type_off_t+set}" = set; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126else 6127 cat >conftest.$ac_ext <<_ACEOF 6128/* confdefs.h. */ 6129_ACEOF 6130cat confdefs.h >>conftest.$ac_ext 6131cat >>conftest.$ac_ext <<_ACEOF 6132/* end confdefs.h. */ 6133$ac_includes_default 6134typedef off_t ac__type_new_; 6135int 6136main () 6137{ 6138if ((ac__type_new_ *) 0) 6139 return 0; 6140if (sizeof (ac__type_new_)) 6141 return 0; 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146rm -f conftest.$ac_objext 6147if { (ac_try="$ac_compile" 6148case "(($ac_try" in 6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6150 *) ac_try_echo=$ac_try;; 6151esac 6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6153 (eval "$ac_compile") 2>conftest.er1 6154 ac_status=$? 6155 grep -v '^ *+' conftest.er1 >conftest.err 6156 rm -f conftest.er1 6157 cat conftest.err >&5 6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6159 (exit $ac_status); } && { 6160 test -z "$ac_c_werror_flag" || 6161 test ! -s conftest.err 6162 } && test -s conftest.$ac_objext; then 6163 ac_cv_type_off_t=yes 6164else 6165 echo "$as_me: failed program was:" >&5 6166sed 's/^/| /' conftest.$ac_ext >&5 6167 6168 ac_cv_type_off_t=no 6169fi 6170 6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6172fi 6173{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 6174echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 6175if test $ac_cv_type_off_t = yes; then 6176 : 6177else 6178 6179cat >>confdefs.h <<_ACEOF 6180#define off_t long int 6181_ACEOF 6182 6183fi 6184 6185{ echo "$as_me:$LINENO: checking for pid_t" >&5 6186echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 6187if test "${ac_cv_type_pid_t+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 cat >conftest.$ac_ext <<_ACEOF 6191/* confdefs.h. */ 6192_ACEOF 6193cat confdefs.h >>conftest.$ac_ext 6194cat >>conftest.$ac_ext <<_ACEOF 6195/* end confdefs.h. */ 6196$ac_includes_default 6197typedef pid_t ac__type_new_; 6198int 6199main () 6200{ 6201if ((ac__type_new_ *) 0) 6202 return 0; 6203if (sizeof (ac__type_new_)) 6204 return 0; 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209rm -f conftest.$ac_objext 6210if { (ac_try="$ac_compile" 6211case "(($ac_try" in 6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6213 *) ac_try_echo=$ac_try;; 6214esac 6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6216 (eval "$ac_compile") 2>conftest.er1 6217 ac_status=$? 6218 grep -v '^ *+' conftest.er1 >conftest.err 6219 rm -f conftest.er1 6220 cat conftest.err >&5 6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6222 (exit $ac_status); } && { 6223 test -z "$ac_c_werror_flag" || 6224 test ! -s conftest.err 6225 } && test -s conftest.$ac_objext; then 6226 ac_cv_type_pid_t=yes 6227else 6228 echo "$as_me: failed program was:" >&5 6229sed 's/^/| /' conftest.$ac_ext >&5 6230 6231 ac_cv_type_pid_t=no 6232fi 6233 6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6235fi 6236{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 6237echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 6238if test $ac_cv_type_pid_t = yes; then 6239 : 6240else 6241 6242cat >>confdefs.h <<_ACEOF 6243#define pid_t int 6244_ACEOF 6245 6246fi 6247 6248{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 6249echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 6250if test "${ac_cv_type_signal+set}" = set; then 6251 echo $ECHO_N "(cached) $ECHO_C" >&6 6252else 6253 cat >conftest.$ac_ext <<_ACEOF 6254/* confdefs.h. */ 6255_ACEOF 6256cat confdefs.h >>conftest.$ac_ext 6257cat >>conftest.$ac_ext <<_ACEOF 6258/* end confdefs.h. */ 6259#include <sys/types.h> 6260#include <signal.h> 6261 6262int 6263main () 6264{ 6265return *(signal (0, 0)) (0) == 1; 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270rm -f conftest.$ac_objext 6271if { (ac_try="$ac_compile" 6272case "(($ac_try" in 6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6274 *) ac_try_echo=$ac_try;; 6275esac 6276eval "echo \"\$as_me:$LINENO: $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 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_type_signal=int 6288else 6289 echo "$as_me: failed program was:" >&5 6290sed 's/^/| /' conftest.$ac_ext >&5 6291 6292 ac_cv_type_signal=void 6293fi 6294 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296fi 6297{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6298echo "${ECHO_T}$ac_cv_type_signal" >&6; } 6299 6300cat >>confdefs.h <<_ACEOF 6301#define RETSIGTYPE $ac_cv_type_signal 6302_ACEOF 6303 6304 6305{ echo "$as_me:$LINENO: checking for size_t" >&5 6306echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 6307if test "${ac_cv_type_size_t+set}" = set; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309else 6310 cat >conftest.$ac_ext <<_ACEOF 6311/* confdefs.h. */ 6312_ACEOF 6313cat confdefs.h >>conftest.$ac_ext 6314cat >>conftest.$ac_ext <<_ACEOF 6315/* end confdefs.h. */ 6316$ac_includes_default 6317typedef size_t ac__type_new_; 6318int 6319main () 6320{ 6321if ((ac__type_new_ *) 0) 6322 return 0; 6323if (sizeof (ac__type_new_)) 6324 return 0; 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329rm -f conftest.$ac_objext 6330if { (ac_try="$ac_compile" 6331case "(($ac_try" in 6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6333 *) ac_try_echo=$ac_try;; 6334esac 6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6336 (eval "$ac_compile") 2>conftest.er1 6337 ac_status=$? 6338 grep -v '^ *+' conftest.er1 >conftest.err 6339 rm -f conftest.er1 6340 cat conftest.err >&5 6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6342 (exit $ac_status); } && { 6343 test -z "$ac_c_werror_flag" || 6344 test ! -s conftest.err 6345 } && test -s conftest.$ac_objext; then 6346 ac_cv_type_size_t=yes 6347else 6348 echo "$as_me: failed program was:" >&5 6349sed 's/^/| /' conftest.$ac_ext >&5 6350 6351 ac_cv_type_size_t=no 6352fi 6353 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355fi 6356{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 6357echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 6358if test $ac_cv_type_size_t = yes; then 6359 : 6360else 6361 6362cat >>confdefs.h <<_ACEOF 6363#define size_t unsigned int 6364_ACEOF 6365 6366fi 6367 6368{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 6369echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 6370if test "${ac_cv_struct_tm+set}" = set; then 6371 echo $ECHO_N "(cached) $ECHO_C" >&6 6372else 6373 cat >conftest.$ac_ext <<_ACEOF 6374/* confdefs.h. */ 6375_ACEOF 6376cat confdefs.h >>conftest.$ac_ext 6377cat >>conftest.$ac_ext <<_ACEOF 6378/* end confdefs.h. */ 6379#include <sys/types.h> 6380#include <time.h> 6381 6382int 6383main () 6384{ 6385struct tm tm; 6386 int *p = &tm.tm_sec; 6387 return !p; 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392rm -f conftest.$ac_objext 6393if { (ac_try="$ac_compile" 6394case "(($ac_try" in 6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6396 *) ac_try_echo=$ac_try;; 6397esac 6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6399 (eval "$ac_compile") 2>conftest.er1 6400 ac_status=$? 6401 grep -v '^ *+' conftest.er1 >conftest.err 6402 rm -f conftest.er1 6403 cat conftest.err >&5 6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6405 (exit $ac_status); } && { 6406 test -z "$ac_c_werror_flag" || 6407 test ! -s conftest.err 6408 } && test -s conftest.$ac_objext; then 6409 ac_cv_struct_tm=time.h 6410else 6411 echo "$as_me: failed program was:" >&5 6412sed 's/^/| /' conftest.$ac_ext >&5 6413 6414 ac_cv_struct_tm=sys/time.h 6415fi 6416 6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6418fi 6419{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 6420echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 6421if test $ac_cv_struct_tm = sys/time.h; then 6422 6423cat >>confdefs.h <<\_ACEOF 6424#define TM_IN_SYS_TIME 1 6425_ACEOF 6426 6427fi 6428 6429{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 6430echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } 6431if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433else 6434 cat >conftest.$ac_ext <<_ACEOF 6435/* confdefs.h. */ 6436_ACEOF 6437cat confdefs.h >>conftest.$ac_ext 6438cat >>conftest.$ac_ext <<_ACEOF 6439/* end confdefs.h. */ 6440$accheck_includes 6441 6442int 6443main () 6444{ 6445static struct sockaddr ac_aggr; 6446if (ac_aggr.sa_len) 6447return 0; 6448 ; 6449 return 0; 6450} 6451_ACEOF 6452rm -f conftest.$ac_objext 6453if { (ac_try="$ac_compile" 6454case "(($ac_try" in 6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6456 *) ac_try_echo=$ac_try;; 6457esac 6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6459 (eval "$ac_compile") 2>conftest.er1 6460 ac_status=$? 6461 grep -v '^ *+' conftest.er1 >conftest.err 6462 rm -f conftest.er1 6463 cat conftest.err >&5 6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6465 (exit $ac_status); } && { 6466 test -z "$ac_c_werror_flag" || 6467 test ! -s conftest.err 6468 } && test -s conftest.$ac_objext; then 6469 ac_cv_member_struct_sockaddr_sa_len=yes 6470else 6471 echo "$as_me: failed program was:" >&5 6472sed 's/^/| /' conftest.$ac_ext >&5 6473 6474 cat >conftest.$ac_ext <<_ACEOF 6475/* confdefs.h. */ 6476_ACEOF 6477cat confdefs.h >>conftest.$ac_ext 6478cat >>conftest.$ac_ext <<_ACEOF 6479/* end confdefs.h. */ 6480$accheck_includes 6481 6482int 6483main () 6484{ 6485static struct sockaddr ac_aggr; 6486if (sizeof ac_aggr.sa_len) 6487return 0; 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492rm -f conftest.$ac_objext 6493if { (ac_try="$ac_compile" 6494case "(($ac_try" in 6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6496 *) ac_try_echo=$ac_try;; 6497esac 6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6499 (eval "$ac_compile") 2>conftest.er1 6500 ac_status=$? 6501 grep -v '^ *+' conftest.er1 >conftest.err 6502 rm -f conftest.er1 6503 cat conftest.err >&5 6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6505 (exit $ac_status); } && { 6506 test -z "$ac_c_werror_flag" || 6507 test ! -s conftest.err 6508 } && test -s conftest.$ac_objext; then 6509 ac_cv_member_struct_sockaddr_sa_len=yes 6510else 6511 echo "$as_me: failed program was:" >&5 6512sed 's/^/| /' conftest.$ac_ext >&5 6513 6514 ac_cv_member_struct_sockaddr_sa_len=no 6515fi 6516 6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6518fi 6519 6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6521fi 6522{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 6523echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } 6524if test $ac_cv_member_struct_sockaddr_sa_len = yes; then 6525 6526cat >>confdefs.h <<_ACEOF 6527#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 6528_ACEOF 6529 6530 6531fi 6532{ echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 6533echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; } 6534if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 6535 echo $ECHO_N "(cached) $ECHO_C" >&6 6536else 6537 cat >conftest.$ac_ext <<_ACEOF 6538/* confdefs.h. */ 6539_ACEOF 6540cat confdefs.h >>conftest.$ac_ext 6541cat >>conftest.$ac_ext <<_ACEOF 6542/* end confdefs.h. */ 6543$accheck_includes 6544 6545int 6546main () 6547{ 6548static struct sockaddr_in ac_aggr; 6549if (ac_aggr.sin_len) 6550return 0; 6551 ; 6552 return 0; 6553} 6554_ACEOF 6555rm -f conftest.$ac_objext 6556if { (ac_try="$ac_compile" 6557case "(($ac_try" in 6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6559 *) ac_try_echo=$ac_try;; 6560esac 6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6562 (eval "$ac_compile") 2>conftest.er1 6563 ac_status=$? 6564 grep -v '^ *+' conftest.er1 >conftest.err 6565 rm -f conftest.er1 6566 cat conftest.err >&5 6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6568 (exit $ac_status); } && { 6569 test -z "$ac_c_werror_flag" || 6570 test ! -s conftest.err 6571 } && test -s conftest.$ac_objext; then 6572 ac_cv_member_struct_sockaddr_in_sin_len=yes 6573else 6574 echo "$as_me: failed program was:" >&5 6575sed 's/^/| /' conftest.$ac_ext >&5 6576 6577 cat >conftest.$ac_ext <<_ACEOF 6578/* confdefs.h. */ 6579_ACEOF 6580cat confdefs.h >>conftest.$ac_ext 6581cat >>conftest.$ac_ext <<_ACEOF 6582/* end confdefs.h. */ 6583$accheck_includes 6584 6585int 6586main () 6587{ 6588static struct sockaddr_in ac_aggr; 6589if (sizeof ac_aggr.sin_len) 6590return 0; 6591 ; 6592 return 0; 6593} 6594_ACEOF 6595rm -f conftest.$ac_objext 6596if { (ac_try="$ac_compile" 6597case "(($ac_try" in 6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6599 *) ac_try_echo=$ac_try;; 6600esac 6601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6602 (eval "$ac_compile") 2>conftest.er1 6603 ac_status=$? 6604 grep -v '^ *+' conftest.er1 >conftest.err 6605 rm -f conftest.er1 6606 cat conftest.err >&5 6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6608 (exit $ac_status); } && { 6609 test -z "$ac_c_werror_flag" || 6610 test ! -s conftest.err 6611 } && test -s conftest.$ac_objext; then 6612 ac_cv_member_struct_sockaddr_in_sin_len=yes 6613else 6614 echo "$as_me: failed program was:" >&5 6615sed 's/^/| /' conftest.$ac_ext >&5 6616 6617 ac_cv_member_struct_sockaddr_in_sin_len=no 6618fi 6619 6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621fi 6622 6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6624fi 6625{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 6626echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 6627if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then 6628 6629cat >>confdefs.h <<_ACEOF 6630#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 6631_ACEOF 6632 6633 6634fi 6635{ echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 6636echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; } 6637if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then 6638 echo $ECHO_N "(cached) $ECHO_C" >&6 6639else 6640 cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646$accheck_includes 6647 6648int 6649main () 6650{ 6651static struct dirent ac_aggr; 6652if (ac_aggr.d_namlen) 6653return 0; 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6665 (eval "$ac_compile") 2>conftest.er1 6666 ac_status=$? 6667 grep -v '^ *+' conftest.er1 >conftest.err 6668 rm -f conftest.er1 6669 cat conftest.err >&5 6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6671 (exit $ac_status); } && { 6672 test -z "$ac_c_werror_flag" || 6673 test ! -s conftest.err 6674 } && test -s conftest.$ac_objext; then 6675 ac_cv_member_struct_dirent_d_namlen=yes 6676else 6677 echo "$as_me: failed program was:" >&5 6678sed 's/^/| /' conftest.$ac_ext >&5 6679 6680 cat >conftest.$ac_ext <<_ACEOF 6681/* confdefs.h. */ 6682_ACEOF 6683cat confdefs.h >>conftest.$ac_ext 6684cat >>conftest.$ac_ext <<_ACEOF 6685/* end confdefs.h. */ 6686$accheck_includes 6687 6688int 6689main () 6690{ 6691static struct dirent ac_aggr; 6692if (sizeof ac_aggr.d_namlen) 6693return 0; 6694 ; 6695 return 0; 6696} 6697_ACEOF 6698rm -f conftest.$ac_objext 6699if { (ac_try="$ac_compile" 6700case "(($ac_try" in 6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6702 *) ac_try_echo=$ac_try;; 6703esac 6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6705 (eval "$ac_compile") 2>conftest.er1 6706 ac_status=$? 6707 grep -v '^ *+' conftest.er1 >conftest.err 6708 rm -f conftest.er1 6709 cat conftest.err >&5 6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6711 (exit $ac_status); } && { 6712 test -z "$ac_c_werror_flag" || 6713 test ! -s conftest.err 6714 } && test -s conftest.$ac_objext; then 6715 ac_cv_member_struct_dirent_d_namlen=yes 6716else 6717 echo "$as_me: failed program was:" >&5 6718sed 's/^/| /' conftest.$ac_ext >&5 6719 6720 ac_cv_member_struct_dirent_d_namlen=no 6721fi 6722 6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6724fi 6725 6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6727fi 6728{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5 6729echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6; } 6730if test $ac_cv_member_struct_dirent_d_namlen = yes; then 6731 6732cat >>confdefs.h <<_ACEOF 6733#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 6734_ACEOF 6735 6736 6737fi 6738 6739{ echo "$as_me:$LINENO: checking for in_port_t" >&5 6740echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } 6741if test "${ac_cv_type_in_port_t+set}" = set; then 6742 echo $ECHO_N "(cached) $ECHO_C" >&6 6743else 6744 cat >conftest.$ac_ext <<_ACEOF 6745/* confdefs.h. */ 6746_ACEOF 6747cat confdefs.h >>conftest.$ac_ext 6748cat >>conftest.$ac_ext <<_ACEOF 6749/* end confdefs.h. */ 6750$accheck_includes 6751 6752typedef in_port_t ac__type_new_; 6753int 6754main () 6755{ 6756if ((ac__type_new_ *) 0) 6757 return 0; 6758if (sizeof (ac__type_new_)) 6759 return 0; 6760 ; 6761 return 0; 6762} 6763_ACEOF 6764rm -f conftest.$ac_objext 6765if { (ac_try="$ac_compile" 6766case "(($ac_try" in 6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6768 *) ac_try_echo=$ac_try;; 6769esac 6770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6771 (eval "$ac_compile") 2>conftest.er1 6772 ac_status=$? 6773 grep -v '^ *+' conftest.er1 >conftest.err 6774 rm -f conftest.er1 6775 cat conftest.err >&5 6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6777 (exit $ac_status); } && { 6778 test -z "$ac_c_werror_flag" || 6779 test ! -s conftest.err 6780 } && test -s conftest.$ac_objext; then 6781 ac_cv_type_in_port_t=yes 6782else 6783 echo "$as_me: failed program was:" >&5 6784sed 's/^/| /' conftest.$ac_ext >&5 6785 6786 ac_cv_type_in_port_t=no 6787fi 6788 6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6790fi 6791{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 6792echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } 6793if test $ac_cv_type_in_port_t = yes; then 6794 6795cat >>confdefs.h <<_ACEOF 6796#define HAVE_IN_PORT_T 1 6797_ACEOF 6798 6799 6800fi 6801{ echo "$as_me:$LINENO: checking for sa_family_t" >&5 6802echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } 6803if test "${ac_cv_type_sa_family_t+set}" = set; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 cat >conftest.$ac_ext <<_ACEOF 6807/* confdefs.h. */ 6808_ACEOF 6809cat confdefs.h >>conftest.$ac_ext 6810cat >>conftest.$ac_ext <<_ACEOF 6811/* end confdefs.h. */ 6812$accheck_includes 6813 6814typedef sa_family_t ac__type_new_; 6815int 6816main () 6817{ 6818if ((ac__type_new_ *) 0) 6819 return 0; 6820if (sizeof (ac__type_new_)) 6821 return 0; 6822 ; 6823 return 0; 6824} 6825_ACEOF 6826rm -f conftest.$ac_objext 6827if { (ac_try="$ac_compile" 6828case "(($ac_try" in 6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6830 *) ac_try_echo=$ac_try;; 6831esac 6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6833 (eval "$ac_compile") 2>conftest.er1 6834 ac_status=$? 6835 grep -v '^ *+' conftest.er1 >conftest.err 6836 rm -f conftest.er1 6837 cat conftest.err >&5 6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6839 (exit $ac_status); } && { 6840 test -z "$ac_c_werror_flag" || 6841 test ! -s conftest.err 6842 } && test -s conftest.$ac_objext; then 6843 ac_cv_type_sa_family_t=yes 6844else 6845 echo "$as_me: failed program was:" >&5 6846sed 's/^/| /' conftest.$ac_ext >&5 6847 6848 ac_cv_type_sa_family_t=no 6849fi 6850 6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6852fi 6853{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 6854echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } 6855if test $ac_cv_type_sa_family_t = yes; then 6856 6857cat >>confdefs.h <<_ACEOF 6858#define HAVE_SA_FAMILY_T 1 6859_ACEOF 6860 6861 6862fi 6863{ echo "$as_me:$LINENO: checking for socklen_t" >&5 6864echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 6865if test "${ac_cv_type_socklen_t+set}" = set; then 6866 echo $ECHO_N "(cached) $ECHO_C" >&6 6867else 6868 cat >conftest.$ac_ext <<_ACEOF 6869/* confdefs.h. */ 6870_ACEOF 6871cat confdefs.h >>conftest.$ac_ext 6872cat >>conftest.$ac_ext <<_ACEOF 6873/* end confdefs.h. */ 6874$accheck_includes 6875 6876typedef socklen_t ac__type_new_; 6877int 6878main () 6879{ 6880if ((ac__type_new_ *) 0) 6881 return 0; 6882if (sizeof (ac__type_new_)) 6883 return 0; 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888rm -f conftest.$ac_objext 6889if { (ac_try="$ac_compile" 6890case "(($ac_try" in 6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6892 *) ac_try_echo=$ac_try;; 6893esac 6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6895 (eval "$ac_compile") 2>conftest.er1 6896 ac_status=$? 6897 grep -v '^ *+' conftest.er1 >conftest.err 6898 rm -f conftest.er1 6899 cat conftest.err >&5 6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6901 (exit $ac_status); } && { 6902 test -z "$ac_c_werror_flag" || 6903 test ! -s conftest.err 6904 } && test -s conftest.$ac_objext; then 6905 ac_cv_type_socklen_t=yes 6906else 6907 echo "$as_me: failed program was:" >&5 6908sed 's/^/| /' conftest.$ac_ext >&5 6909 6910 ac_cv_type_socklen_t=no 6911fi 6912 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6914fi 6915{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 6916echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 6917if test $ac_cv_type_socklen_t = yes; then 6918 6919cat >>confdefs.h <<_ACEOF 6920#define HAVE_SOCKLEN_T 1 6921_ACEOF 6922 6923 6924fi 6925{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 6926echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 6927if test "${ac_cv_type_struct_addrinfo+set}" = set; then 6928 echo $ECHO_N "(cached) $ECHO_C" >&6 6929else 6930 cat >conftest.$ac_ext <<_ACEOF 6931/* confdefs.h. */ 6932_ACEOF 6933cat confdefs.h >>conftest.$ac_ext 6934cat >>conftest.$ac_ext <<_ACEOF 6935/* end confdefs.h. */ 6936$accheck_includes 6937 6938typedef struct addrinfo ac__type_new_; 6939int 6940main () 6941{ 6942if ((ac__type_new_ *) 0) 6943 return 0; 6944if (sizeof (ac__type_new_)) 6945 return 0; 6946 ; 6947 return 0; 6948} 6949_ACEOF 6950rm -f conftest.$ac_objext 6951if { (ac_try="$ac_compile" 6952case "(($ac_try" in 6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6954 *) ac_try_echo=$ac_try;; 6955esac 6956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6957 (eval "$ac_compile") 2>conftest.er1 6958 ac_status=$? 6959 grep -v '^ *+' conftest.er1 >conftest.err 6960 rm -f conftest.er1 6961 cat conftest.err >&5 6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6963 (exit $ac_status); } && { 6964 test -z "$ac_c_werror_flag" || 6965 test ! -s conftest.err 6966 } && test -s conftest.$ac_objext; then 6967 ac_cv_type_struct_addrinfo=yes 6968else 6969 echo "$as_me: failed program was:" >&5 6970sed 's/^/| /' conftest.$ac_ext >&5 6971 6972 ac_cv_type_struct_addrinfo=no 6973fi 6974 6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976fi 6977{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 6978echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; } 6979if test $ac_cv_type_struct_addrinfo = yes; then 6980 6981cat >>confdefs.h <<_ACEOF 6982#define HAVE_STRUCT_ADDRINFO 1 6983_ACEOF 6984 6985 6986fi 6987 6988# Check whether --enable-largefile was given. 6989if test "${enable_largefile+set}" = set; then 6990 enableval=$enable_largefile; 6991fi 6992 6993if test "$enable_largefile" != no; then 6994 6995 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 6996echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 6997if test "${ac_cv_sys_largefile_CC+set}" = set; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999else 7000 ac_cv_sys_largefile_CC=no 7001 if test "$GCC" != yes; then 7002 ac_save_CC=$CC 7003 while :; do 7004 # IRIX 6.2 and later do not support large files by default, 7005 # so use the C compiler's -n32 option if that helps. 7006 cat >conftest.$ac_ext <<_ACEOF 7007/* confdefs.h. */ 7008_ACEOF 7009cat confdefs.h >>conftest.$ac_ext 7010cat >>conftest.$ac_ext <<_ACEOF 7011/* end confdefs.h. */ 7012#include <sys/types.h> 7013 /* Check that off_t can represent 2**63 - 1 correctly. 7014 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7015 since some C++ compilers masquerading as C compilers 7016 incorrectly reject 9223372036854775807. */ 7017#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7019 && LARGE_OFF_T % 2147483647 == 1) 7020 ? 1 : -1]; 7021int 7022main () 7023{ 7024 7025 ; 7026 return 0; 7027} 7028_ACEOF 7029 rm -f conftest.$ac_objext 7030if { (ac_try="$ac_compile" 7031case "(($ac_try" in 7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7033 *) ac_try_echo=$ac_try;; 7034esac 7035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7036 (eval "$ac_compile") 2>conftest.er1 7037 ac_status=$? 7038 grep -v '^ *+' conftest.er1 >conftest.err 7039 rm -f conftest.er1 7040 cat conftest.err >&5 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); } && { 7043 test -z "$ac_c_werror_flag" || 7044 test ! -s conftest.err 7045 } && test -s conftest.$ac_objext; then 7046 break 7047else 7048 echo "$as_me: failed program was:" >&5 7049sed 's/^/| /' conftest.$ac_ext >&5 7050 7051 7052fi 7053 7054rm -f core conftest.err conftest.$ac_objext 7055 CC="$CC -n32" 7056 rm -f conftest.$ac_objext 7057if { (ac_try="$ac_compile" 7058case "(($ac_try" in 7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7060 *) ac_try_echo=$ac_try;; 7061esac 7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7063 (eval "$ac_compile") 2>conftest.er1 7064 ac_status=$? 7065 grep -v '^ *+' conftest.er1 >conftest.err 7066 rm -f conftest.er1 7067 cat conftest.err >&5 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); } && { 7070 test -z "$ac_c_werror_flag" || 7071 test ! -s conftest.err 7072 } && test -s conftest.$ac_objext; then 7073 ac_cv_sys_largefile_CC=' -n32'; break 7074else 7075 echo "$as_me: failed program was:" >&5 7076sed 's/^/| /' conftest.$ac_ext >&5 7077 7078 7079fi 7080 7081rm -f core conftest.err conftest.$ac_objext 7082 break 7083 done 7084 CC=$ac_save_CC 7085 rm -f conftest.$ac_ext 7086 fi 7087fi 7088{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 7089echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 7090 if test "$ac_cv_sys_largefile_CC" != no; then 7091 CC=$CC$ac_cv_sys_largefile_CC 7092 fi 7093 7094 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7095echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 7096if test "${ac_cv_sys_file_offset_bits+set}" = set; then 7097 echo $ECHO_N "(cached) $ECHO_C" >&6 7098else 7099 while :; do 7100 cat >conftest.$ac_ext <<_ACEOF 7101/* confdefs.h. */ 7102_ACEOF 7103cat confdefs.h >>conftest.$ac_ext 7104cat >>conftest.$ac_ext <<_ACEOF 7105/* end confdefs.h. */ 7106#include <sys/types.h> 7107 /* Check that off_t can represent 2**63 - 1 correctly. 7108 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7109 since some C++ compilers masquerading as C compilers 7110 incorrectly reject 9223372036854775807. */ 7111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7113 && LARGE_OFF_T % 2147483647 == 1) 7114 ? 1 : -1]; 7115int 7116main () 7117{ 7118 7119 ; 7120 return 0; 7121} 7122_ACEOF 7123rm -f conftest.$ac_objext 7124if { (ac_try="$ac_compile" 7125case "(($ac_try" in 7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7127 *) ac_try_echo=$ac_try;; 7128esac 7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7130 (eval "$ac_compile") 2>conftest.er1 7131 ac_status=$? 7132 grep -v '^ *+' conftest.er1 >conftest.err 7133 rm -f conftest.er1 7134 cat conftest.err >&5 7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7136 (exit $ac_status); } && { 7137 test -z "$ac_c_werror_flag" || 7138 test ! -s conftest.err 7139 } && test -s conftest.$ac_objext; then 7140 ac_cv_sys_file_offset_bits=no; break 7141else 7142 echo "$as_me: failed program was:" >&5 7143sed 's/^/| /' conftest.$ac_ext >&5 7144 7145 7146fi 7147 7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7149 cat >conftest.$ac_ext <<_ACEOF 7150/* confdefs.h. */ 7151_ACEOF 7152cat confdefs.h >>conftest.$ac_ext 7153cat >>conftest.$ac_ext <<_ACEOF 7154/* end confdefs.h. */ 7155#define _FILE_OFFSET_BITS 64 7156#include <sys/types.h> 7157 /* Check that off_t can represent 2**63 - 1 correctly. 7158 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7159 since some C++ compilers masquerading as C compilers 7160 incorrectly reject 9223372036854775807. */ 7161#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7163 && LARGE_OFF_T % 2147483647 == 1) 7164 ? 1 : -1]; 7165int 7166main () 7167{ 7168 7169 ; 7170 return 0; 7171} 7172_ACEOF 7173rm -f conftest.$ac_objext 7174if { (ac_try="$ac_compile" 7175case "(($ac_try" in 7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7177 *) ac_try_echo=$ac_try;; 7178esac 7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7180 (eval "$ac_compile") 2>conftest.er1 7181 ac_status=$? 7182 grep -v '^ *+' conftest.er1 >conftest.err 7183 rm -f conftest.er1 7184 cat conftest.err >&5 7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7186 (exit $ac_status); } && { 7187 test -z "$ac_c_werror_flag" || 7188 test ! -s conftest.err 7189 } && test -s conftest.$ac_objext; then 7190 ac_cv_sys_file_offset_bits=64; break 7191else 7192 echo "$as_me: failed program was:" >&5 7193sed 's/^/| /' conftest.$ac_ext >&5 7194 7195 7196fi 7197 7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7199 ac_cv_sys_file_offset_bits=unknown 7200 break 7201done 7202fi 7203{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 7204echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 7205case $ac_cv_sys_file_offset_bits in #( 7206 no | unknown) ;; 7207 *) 7208cat >>confdefs.h <<_ACEOF 7209#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7210_ACEOF 7211;; 7212esac 7213rm -f conftest* 7214 if test $ac_cv_sys_file_offset_bits = unknown; then 7215 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 7216echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 7217if test "${ac_cv_sys_large_files+set}" = set; then 7218 echo $ECHO_N "(cached) $ECHO_C" >&6 7219else 7220 while :; do 7221 cat >conftest.$ac_ext <<_ACEOF 7222/* confdefs.h. */ 7223_ACEOF 7224cat confdefs.h >>conftest.$ac_ext 7225cat >>conftest.$ac_ext <<_ACEOF 7226/* end confdefs.h. */ 7227#include <sys/types.h> 7228 /* Check that off_t can represent 2**63 - 1 correctly. 7229 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7230 since some C++ compilers masquerading as C compilers 7231 incorrectly reject 9223372036854775807. */ 7232#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7234 && LARGE_OFF_T % 2147483647 == 1) 7235 ? 1 : -1]; 7236int 7237main () 7238{ 7239 7240 ; 7241 return 0; 7242} 7243_ACEOF 7244rm -f conftest.$ac_objext 7245if { (ac_try="$ac_compile" 7246case "(($ac_try" in 7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7248 *) ac_try_echo=$ac_try;; 7249esac 7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7251 (eval "$ac_compile") 2>conftest.er1 7252 ac_status=$? 7253 grep -v '^ *+' conftest.er1 >conftest.err 7254 rm -f conftest.er1 7255 cat conftest.err >&5 7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7257 (exit $ac_status); } && { 7258 test -z "$ac_c_werror_flag" || 7259 test ! -s conftest.err 7260 } && test -s conftest.$ac_objext; then 7261 ac_cv_sys_large_files=no; break 7262else 7263 echo "$as_me: failed program was:" >&5 7264sed 's/^/| /' conftest.$ac_ext >&5 7265 7266 7267fi 7268 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7270 cat >conftest.$ac_ext <<_ACEOF 7271/* confdefs.h. */ 7272_ACEOF 7273cat confdefs.h >>conftest.$ac_ext 7274cat >>conftest.$ac_ext <<_ACEOF 7275/* end confdefs.h. */ 7276#define _LARGE_FILES 1 7277#include <sys/types.h> 7278 /* Check that off_t can represent 2**63 - 1 correctly. 7279 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7280 since some C++ compilers masquerading as C compilers 7281 incorrectly reject 9223372036854775807. */ 7282#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7284 && LARGE_OFF_T % 2147483647 == 1) 7285 ? 1 : -1]; 7286int 7287main () 7288{ 7289 7290 ; 7291 return 0; 7292} 7293_ACEOF 7294rm -f conftest.$ac_objext 7295if { (ac_try="$ac_compile" 7296case "(($ac_try" in 7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7298 *) ac_try_echo=$ac_try;; 7299esac 7300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7301 (eval "$ac_compile") 2>conftest.er1 7302 ac_status=$? 7303 grep -v '^ *+' conftest.er1 >conftest.err 7304 rm -f conftest.er1 7305 cat conftest.err >&5 7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); } && { 7308 test -z "$ac_c_werror_flag" || 7309 test ! -s conftest.err 7310 } && test -s conftest.$ac_objext; then 7311 ac_cv_sys_large_files=1; break 7312else 7313 echo "$as_me: failed program was:" >&5 7314sed 's/^/| /' conftest.$ac_ext >&5 7315 7316 7317fi 7318 7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7320 ac_cv_sys_large_files=unknown 7321 break 7322done 7323fi 7324{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 7325echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 7326case $ac_cv_sys_large_files in #( 7327 no | unknown) ;; 7328 *) 7329cat >>confdefs.h <<_ACEOF 7330#define _LARGE_FILES $ac_cv_sys_large_files 7331_ACEOF 7332;; 7333esac 7334rm -f conftest* 7335 fi 7336fi 7337 7338 7339# If IPv6 is enabled, check for necessary items. 7340# 7341if test "$opt_ipv6" = yes; then 7342 { echo "$as_me:$LINENO: checking whether AF_INET6 is declared" >&5 7343echo $ECHO_N "checking whether AF_INET6 is declared... $ECHO_C" >&6; } 7344if test "${ac_cv_have_decl_AF_INET6+set}" = set; then 7345 echo $ECHO_N "(cached) $ECHO_C" >&6 7346else 7347 cat >conftest.$ac_ext <<_ACEOF 7348/* confdefs.h. */ 7349_ACEOF 7350cat confdefs.h >>conftest.$ac_ext 7351cat >>conftest.$ac_ext <<_ACEOF 7352/* end confdefs.h. */ 7353$accheck_includes 7354#if defined(HAVE_ARPA_NAMESER_H) 7355#include <arpa/nameser.h> 7356#endif 7357 7358 7359int 7360main () 7361{ 7362#ifndef AF_INET6 7363 (void) AF_INET6; 7364#endif 7365 7366 ; 7367 return 0; 7368} 7369_ACEOF 7370rm -f conftest.$ac_objext 7371if { (ac_try="$ac_compile" 7372case "(($ac_try" in 7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7374 *) ac_try_echo=$ac_try;; 7375esac 7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7377 (eval "$ac_compile") 2>conftest.er1 7378 ac_status=$? 7379 grep -v '^ *+' conftest.er1 >conftest.err 7380 rm -f conftest.er1 7381 cat conftest.err >&5 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); } && { 7384 test -z "$ac_c_werror_flag" || 7385 test ! -s conftest.err 7386 } && test -s conftest.$ac_objext; then 7387 ac_cv_have_decl_AF_INET6=yes 7388else 7389 echo "$as_me: failed program was:" >&5 7390sed 's/^/| /' conftest.$ac_ext >&5 7391 7392 ac_cv_have_decl_AF_INET6=no 7393fi 7394 7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7396fi 7397{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AF_INET6" >&5 7398echo "${ECHO_T}$ac_cv_have_decl_AF_INET6" >&6; } 7399if test $ac_cv_have_decl_AF_INET6 = yes; then 7400 7401cat >>confdefs.h <<_ACEOF 7402#define HAVE_DECL_AF_INET6 1 7403_ACEOF 7404 7405 7406else 7407 cat >>confdefs.h <<_ACEOF 7408#define HAVE_DECL_AF_INET6 0 7409_ACEOF 7410 7411 7412fi 7413{ echo "$as_me:$LINENO: checking whether NS_IN6ADDRSZ is declared" >&5 7414echo $ECHO_N "checking whether NS_IN6ADDRSZ is declared... $ECHO_C" >&6; } 7415if test "${ac_cv_have_decl_NS_IN6ADDRSZ+set}" = set; then 7416 echo $ECHO_N "(cached) $ECHO_C" >&6 7417else 7418 cat >conftest.$ac_ext <<_ACEOF 7419/* confdefs.h. */ 7420_ACEOF 7421cat confdefs.h >>conftest.$ac_ext 7422cat >>conftest.$ac_ext <<_ACEOF 7423/* end confdefs.h. */ 7424$accheck_includes 7425#if defined(HAVE_ARPA_NAMESER_H) 7426#include <arpa/nameser.h> 7427#endif 7428 7429 7430int 7431main () 7432{ 7433#ifndef NS_IN6ADDRSZ 7434 (void) NS_IN6ADDRSZ; 7435#endif 7436 7437 ; 7438 return 0; 7439} 7440_ACEOF 7441rm -f conftest.$ac_objext 7442if { (ac_try="$ac_compile" 7443case "(($ac_try" in 7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7445 *) ac_try_echo=$ac_try;; 7446esac 7447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7448 (eval "$ac_compile") 2>conftest.er1 7449 ac_status=$? 7450 grep -v '^ *+' conftest.er1 >conftest.err 7451 rm -f conftest.er1 7452 cat conftest.err >&5 7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7454 (exit $ac_status); } && { 7455 test -z "$ac_c_werror_flag" || 7456 test ! -s conftest.err 7457 } && test -s conftest.$ac_objext; then 7458 ac_cv_have_decl_NS_IN6ADDRSZ=yes 7459else 7460 echo "$as_me: failed program was:" >&5 7461sed 's/^/| /' conftest.$ac_ext >&5 7462 7463 ac_cv_have_decl_NS_IN6ADDRSZ=no 7464fi 7465 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467fi 7468{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NS_IN6ADDRSZ" >&5 7469echo "${ECHO_T}$ac_cv_have_decl_NS_IN6ADDRSZ" >&6; } 7470if test $ac_cv_have_decl_NS_IN6ADDRSZ = yes; then 7471 7472cat >>confdefs.h <<_ACEOF 7473#define HAVE_DECL_NS_IN6ADDRSZ 1 7474_ACEOF 7475 7476 7477else 7478 cat >>confdefs.h <<_ACEOF 7479#define HAVE_DECL_NS_IN6ADDRSZ 0 7480_ACEOF 7481 7482 7483fi 7484 7485 7486 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 7487echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } 7488if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then 7489 echo $ECHO_N "(cached) $ECHO_C" >&6 7490else 7491 cat >conftest.$ac_ext <<_ACEOF 7492/* confdefs.h. */ 7493_ACEOF 7494cat confdefs.h >>conftest.$ac_ext 7495cat >>conftest.$ac_ext <<_ACEOF 7496/* end confdefs.h. */ 7497$accheck_includes 7498 7499typedef struct sockaddr_in6 ac__type_new_; 7500int 7501main () 7502{ 7503if ((ac__type_new_ *) 0) 7504 return 0; 7505if (sizeof (ac__type_new_)) 7506 return 0; 7507 ; 7508 return 0; 7509} 7510_ACEOF 7511rm -f conftest.$ac_objext 7512if { (ac_try="$ac_compile" 7513case "(($ac_try" in 7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7515 *) ac_try_echo=$ac_try;; 7516esac 7517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7518 (eval "$ac_compile") 2>conftest.er1 7519 ac_status=$? 7520 grep -v '^ *+' conftest.er1 >conftest.err 7521 rm -f conftest.er1 7522 cat conftest.err >&5 7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7524 (exit $ac_status); } && { 7525 test -z "$ac_c_werror_flag" || 7526 test ! -s conftest.err 7527 } && test -s conftest.$ac_objext; then 7528 ac_cv_type_struct_sockaddr_in6=yes 7529else 7530 echo "$as_me: failed program was:" >&5 7531sed 's/^/| /' conftest.$ac_ext >&5 7532 7533 ac_cv_type_struct_sockaddr_in6=no 7534fi 7535 7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7537fi 7538{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5 7539echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; } 7540if test $ac_cv_type_struct_sockaddr_in6 = yes; then 7541 7542cat >>confdefs.h <<_ACEOF 7543#define HAVE_STRUCT_SOCKADDR_IN6 1 7544_ACEOF 7545 7546 7547fi 7548 7549fi 7550 7551 7552# 7553# Checks for library functions. 7554# 7555#XXX remove alloca use 7556# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7557# for constant arguments. Useless! 7558{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 7559echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 7560if test "${ac_cv_working_alloca_h+set}" = set; then 7561 echo $ECHO_N "(cached) $ECHO_C" >&6 7562else 7563 cat >conftest.$ac_ext <<_ACEOF 7564/* confdefs.h. */ 7565_ACEOF 7566cat confdefs.h >>conftest.$ac_ext 7567cat >>conftest.$ac_ext <<_ACEOF 7568/* end confdefs.h. */ 7569#include <alloca.h> 7570int 7571main () 7572{ 7573char *p = (char *) alloca (2 * sizeof (int)); 7574 if (p) return 0; 7575 ; 7576 return 0; 7577} 7578_ACEOF 7579rm -f conftest.$ac_objext conftest$ac_exeext 7580if { (ac_try="$ac_link" 7581case "(($ac_try" in 7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7583 *) ac_try_echo=$ac_try;; 7584esac 7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7586 (eval "$ac_link") 2>conftest.er1 7587 ac_status=$? 7588 grep -v '^ *+' conftest.er1 >conftest.err 7589 rm -f conftest.er1 7590 cat conftest.err >&5 7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7592 (exit $ac_status); } && { 7593 test -z "$ac_c_werror_flag" || 7594 test ! -s conftest.err 7595 } && test -s conftest$ac_exeext && 7596 $as_test_x conftest$ac_exeext; then 7597 ac_cv_working_alloca_h=yes 7598else 7599 echo "$as_me: failed program was:" >&5 7600sed 's/^/| /' conftest.$ac_ext >&5 7601 7602 ac_cv_working_alloca_h=no 7603fi 7604 7605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7606 conftest$ac_exeext conftest.$ac_ext 7607fi 7608{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 7609echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 7610if test $ac_cv_working_alloca_h = yes; then 7611 7612cat >>confdefs.h <<\_ACEOF 7613#define HAVE_ALLOCA_H 1 7614_ACEOF 7615 7616fi 7617 7618{ echo "$as_me:$LINENO: checking for alloca" >&5 7619echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 7620if test "${ac_cv_func_alloca_works+set}" = set; then 7621 echo $ECHO_N "(cached) $ECHO_C" >&6 7622else 7623 cat >conftest.$ac_ext <<_ACEOF 7624/* confdefs.h. */ 7625_ACEOF 7626cat confdefs.h >>conftest.$ac_ext 7627cat >>conftest.$ac_ext <<_ACEOF 7628/* end confdefs.h. */ 7629#ifdef __GNUC__ 7630# define alloca __builtin_alloca 7631#else 7632# ifdef _MSC_VER 7633# include <malloc.h> 7634# define alloca _alloca 7635# else 7636# ifdef HAVE_ALLOCA_H 7637# include <alloca.h> 7638# else 7639# ifdef _AIX 7640 #pragma alloca 7641# else 7642# ifndef alloca /* predefined by HP cc +Olibcalls */ 7643char *alloca (); 7644# endif 7645# endif 7646# endif 7647# endif 7648#endif 7649 7650int 7651main () 7652{ 7653char *p = (char *) alloca (1); 7654 if (p) return 0; 7655 ; 7656 return 0; 7657} 7658_ACEOF 7659rm -f conftest.$ac_objext conftest$ac_exeext 7660if { (ac_try="$ac_link" 7661case "(($ac_try" in 7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7663 *) ac_try_echo=$ac_try;; 7664esac 7665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7666 (eval "$ac_link") 2>conftest.er1 7667 ac_status=$? 7668 grep -v '^ *+' conftest.er1 >conftest.err 7669 rm -f conftest.er1 7670 cat conftest.err >&5 7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672 (exit $ac_status); } && { 7673 test -z "$ac_c_werror_flag" || 7674 test ! -s conftest.err 7675 } && test -s conftest$ac_exeext && 7676 $as_test_x conftest$ac_exeext; then 7677 ac_cv_func_alloca_works=yes 7678else 7679 echo "$as_me: failed program was:" >&5 7680sed 's/^/| /' conftest.$ac_ext >&5 7681 7682 ac_cv_func_alloca_works=no 7683fi 7684 7685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7686 conftest$ac_exeext conftest.$ac_ext 7687fi 7688{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 7689echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 7690 7691if test $ac_cv_func_alloca_works = yes; then 7692 7693cat >>confdefs.h <<\_ACEOF 7694#define HAVE_ALLOCA 1 7695_ACEOF 7696 7697else 7698 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7699# that cause trouble. Some versions do not even contain alloca or 7700# contain a buggy version. If you still want to use their alloca, 7701# use ar to extract alloca.o from them instead of compiling alloca.c. 7702 7703ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7704 7705cat >>confdefs.h <<\_ACEOF 7706#define C_ALLOCA 1 7707_ACEOF 7708 7709 7710{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 7711echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 7712if test "${ac_cv_os_cray+set}" = set; then 7713 echo $ECHO_N "(cached) $ECHO_C" >&6 7714else 7715 cat >conftest.$ac_ext <<_ACEOF 7716/* confdefs.h. */ 7717_ACEOF 7718cat confdefs.h >>conftest.$ac_ext 7719cat >>conftest.$ac_ext <<_ACEOF 7720/* end confdefs.h. */ 7721#if defined CRAY && ! defined CRAY2 7722webecray 7723#else 7724wenotbecray 7725#endif 7726 7727_ACEOF 7728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7729 $EGREP "webecray" >/dev/null 2>&1; then 7730 ac_cv_os_cray=yes 7731else 7732 ac_cv_os_cray=no 7733fi 7734rm -f conftest* 7735 7736fi 7737{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 7738echo "${ECHO_T}$ac_cv_os_cray" >&6; } 7739if test $ac_cv_os_cray = yes; then 7740 for ac_func in _getb67 GETB67 getb67; do 7741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7742{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7745 echo $ECHO_N "(cached) $ECHO_C" >&6 7746else 7747 cat >conftest.$ac_ext <<_ACEOF 7748/* confdefs.h. */ 7749_ACEOF 7750cat confdefs.h >>conftest.$ac_ext 7751cat >>conftest.$ac_ext <<_ACEOF 7752/* end confdefs.h. */ 7753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7755#define $ac_func innocuous_$ac_func 7756 7757/* System header to define __stub macros and hopefully few prototypes, 7758 which can conflict with char $ac_func (); below. 7759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7760 <limits.h> exists even on freestanding compilers. */ 7761 7762#ifdef __STDC__ 7763# include <limits.h> 7764#else 7765# include <assert.h> 7766#endif 7767 7768#undef $ac_func 7769 7770/* Override any GCC internal prototype to avoid an error. 7771 Use char because int might match the return type of a GCC 7772 builtin and then its argument prototype would still apply. */ 7773#ifdef __cplusplus 7774extern "C" 7775#endif 7776char $ac_func (); 7777/* The GNU C library defines this for functions which it implements 7778 to always fail with ENOSYS. Some functions are actually named 7779 something starting with __ and the normal name is an alias. */ 7780#if defined __stub_$ac_func || defined __stub___$ac_func 7781choke me 7782#endif 7783 7784int 7785main () 7786{ 7787return $ac_func (); 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792rm -f conftest.$ac_objext conftest$ac_exeext 7793if { (ac_try="$ac_link" 7794case "(($ac_try" in 7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7796 *) ac_try_echo=$ac_try;; 7797esac 7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7799 (eval "$ac_link") 2>conftest.er1 7800 ac_status=$? 7801 grep -v '^ *+' conftest.er1 >conftest.err 7802 rm -f conftest.er1 7803 cat conftest.err >&5 7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7805 (exit $ac_status); } && { 7806 test -z "$ac_c_werror_flag" || 7807 test ! -s conftest.err 7808 } && test -s conftest$ac_exeext && 7809 $as_test_x conftest$ac_exeext; then 7810 eval "$as_ac_var=yes" 7811else 7812 echo "$as_me: failed program was:" >&5 7813sed 's/^/| /' conftest.$ac_ext >&5 7814 7815 eval "$as_ac_var=no" 7816fi 7817 7818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7819 conftest$ac_exeext conftest.$ac_ext 7820fi 7821ac_res=`eval echo '${'$as_ac_var'}'` 7822 { echo "$as_me:$LINENO: result: $ac_res" >&5 7823echo "${ECHO_T}$ac_res" >&6; } 7824if test `eval echo '${'$as_ac_var'}'` = yes; then 7825 7826cat >>confdefs.h <<_ACEOF 7827#define CRAY_STACKSEG_END $ac_func 7828_ACEOF 7829 7830 break 7831fi 7832 7833 done 7834fi 7835 7836{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 7837echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 7838if test "${ac_cv_c_stack_direction+set}" = set; then 7839 echo $ECHO_N "(cached) $ECHO_C" >&6 7840else 7841 if test "$cross_compiling" = yes; then 7842 ac_cv_c_stack_direction=0 7843else 7844 cat >conftest.$ac_ext <<_ACEOF 7845/* confdefs.h. */ 7846_ACEOF 7847cat confdefs.h >>conftest.$ac_ext 7848cat >>conftest.$ac_ext <<_ACEOF 7849/* end confdefs.h. */ 7850$ac_includes_default 7851int 7852find_stack_direction () 7853{ 7854 static char *addr = 0; 7855 auto char dummy; 7856 if (addr == 0) 7857 { 7858 addr = &dummy; 7859 return find_stack_direction (); 7860 } 7861 else 7862 return (&dummy > addr) ? 1 : -1; 7863} 7864 7865int 7866main () 7867{ 7868 return find_stack_direction () < 0; 7869} 7870_ACEOF 7871rm -f conftest$ac_exeext 7872if { (ac_try="$ac_link" 7873case "(($ac_try" in 7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7875 *) ac_try_echo=$ac_try;; 7876esac 7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7878 (eval "$ac_link") 2>&5 7879 ac_status=$? 7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7882 { (case "(($ac_try" in 7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7884 *) ac_try_echo=$ac_try;; 7885esac 7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7887 (eval "$ac_try") 2>&5 7888 ac_status=$? 7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7890 (exit $ac_status); }; }; then 7891 ac_cv_c_stack_direction=1 7892else 7893 echo "$as_me: program exited with status $ac_status" >&5 7894echo "$as_me: failed program was:" >&5 7895sed 's/^/| /' conftest.$ac_ext >&5 7896 7897( exit $ac_status ) 7898ac_cv_c_stack_direction=-1 7899fi 7900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7901fi 7902 7903 7904fi 7905{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 7906echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 7907 7908cat >>confdefs.h <<_ACEOF 7909#define STACK_DIRECTION $ac_cv_c_stack_direction 7910_ACEOF 7911 7912 7913fi 7914 7915{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5 7916echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } 7917if test "${ac_cv_func_closedir_void+set}" = set; then 7918 echo $ECHO_N "(cached) $ECHO_C" >&6 7919else 7920 if test "$cross_compiling" = yes; then 7921 ac_cv_func_closedir_void=yes 7922else 7923 cat >conftest.$ac_ext <<_ACEOF 7924/* confdefs.h. */ 7925_ACEOF 7926cat confdefs.h >>conftest.$ac_ext 7927cat >>conftest.$ac_ext <<_ACEOF 7928/* end confdefs.h. */ 7929$ac_includes_default 7930#include <$ac_header_dirent> 7931#ifndef __cplusplus 7932int closedir (); 7933#endif 7934 7935int 7936main () 7937{ 7938return closedir (opendir (".")) != 0; 7939 ; 7940 return 0; 7941} 7942_ACEOF 7943rm -f conftest$ac_exeext 7944if { (ac_try="$ac_link" 7945case "(($ac_try" in 7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7947 *) ac_try_echo=$ac_try;; 7948esac 7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7950 (eval "$ac_link") 2>&5 7951 ac_status=$? 7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7954 { (case "(($ac_try" in 7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7956 *) ac_try_echo=$ac_try;; 7957esac 7958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7959 (eval "$ac_try") 2>&5 7960 ac_status=$? 7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7962 (exit $ac_status); }; }; then 7963 ac_cv_func_closedir_void=no 7964else 7965 echo "$as_me: program exited with status $ac_status" >&5 7966echo "$as_me: failed program was:" >&5 7967sed 's/^/| /' conftest.$ac_ext >&5 7968 7969( exit $ac_status ) 7970ac_cv_func_closedir_void=yes 7971fi 7972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7973fi 7974 7975 7976fi 7977{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 7978echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } 7979if test $ac_cv_func_closedir_void = yes; then 7980 7981cat >>confdefs.h <<\_ACEOF 7982#define CLOSEDIR_VOID 1 7983_ACEOF 7984 7985fi 7986 7987 7988for ac_header in vfork.h 7989do 7990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7992 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996fi 7997ac_res=`eval echo '${'$as_ac_Header'}'` 7998 { echo "$as_me:$LINENO: result: $ac_res" >&5 7999echo "${ECHO_T}$ac_res" >&6; } 8000else 8001 # Is the header compilable? 8002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8004cat >conftest.$ac_ext <<_ACEOF 8005/* confdefs.h. */ 8006_ACEOF 8007cat confdefs.h >>conftest.$ac_ext 8008cat >>conftest.$ac_ext <<_ACEOF 8009/* end confdefs.h. */ 8010$ac_includes_default 8011#include <$ac_header> 8012_ACEOF 8013rm -f conftest.$ac_objext 8014if { (ac_try="$ac_compile" 8015case "(($ac_try" in 8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8017 *) ac_try_echo=$ac_try;; 8018esac 8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8020 (eval "$ac_compile") 2>conftest.er1 8021 ac_status=$? 8022 grep -v '^ *+' conftest.er1 >conftest.err 8023 rm -f conftest.er1 8024 cat conftest.err >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); } && { 8027 test -z "$ac_c_werror_flag" || 8028 test ! -s conftest.err 8029 } && test -s conftest.$ac_objext; then 8030 ac_header_compiler=yes 8031else 8032 echo "$as_me: failed program was:" >&5 8033sed 's/^/| /' conftest.$ac_ext >&5 8034 8035 ac_header_compiler=no 8036fi 8037 8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8040echo "${ECHO_T}$ac_header_compiler" >&6; } 8041 8042# Is the header present? 8043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8045cat >conftest.$ac_ext <<_ACEOF 8046/* confdefs.h. */ 8047_ACEOF 8048cat confdefs.h >>conftest.$ac_ext 8049cat >>conftest.$ac_ext <<_ACEOF 8050/* end confdefs.h. */ 8051#include <$ac_header> 8052_ACEOF 8053if { (ac_try="$ac_cpp conftest.$ac_ext" 8054case "(($ac_try" in 8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8056 *) ac_try_echo=$ac_try;; 8057esac 8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8060 ac_status=$? 8061 grep -v '^ *+' conftest.er1 >conftest.err 8062 rm -f conftest.er1 8063 cat conftest.err >&5 8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8065 (exit $ac_status); } >/dev/null && { 8066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8067 test ! -s conftest.err 8068 }; then 8069 ac_header_preproc=yes 8070else 8071 echo "$as_me: failed program was:" >&5 8072sed 's/^/| /' conftest.$ac_ext >&5 8073 8074 ac_header_preproc=no 8075fi 8076 8077rm -f conftest.err conftest.$ac_ext 8078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8079echo "${ECHO_T}$ac_header_preproc" >&6; } 8080 8081# So? What about this header? 8082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8083 yes:no: ) 8084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8088 ac_header_preproc=yes 8089 ;; 8090 no:yes:* ) 8091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8103 ( cat <<\_ASBOX 8104## ------------------------------- ## 8105## Report this to lukem@NetBSD.org ## 8106## ------------------------------- ## 8107_ASBOX 8108 ) | sed "s/^/$as_me: WARNING: /" >&2 8109 ;; 8110esac 8111{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8114 echo $ECHO_N "(cached) $ECHO_C" >&6 8115else 8116 eval "$as_ac_Header=\$ac_header_preproc" 8117fi 8118ac_res=`eval echo '${'$as_ac_Header'}'` 8119 { echo "$as_me:$LINENO: result: $ac_res" >&5 8120echo "${ECHO_T}$ac_res" >&6; } 8121 8122fi 8123if test `eval echo '${'$as_ac_Header'}'` = yes; then 8124 cat >>confdefs.h <<_ACEOF 8125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8126_ACEOF 8127 8128fi 8129 8130done 8131 8132 8133 8134for ac_func in fork vfork 8135do 8136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8137{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8140 echo $ECHO_N "(cached) $ECHO_C" >&6 8141else 8142 cat >conftest.$ac_ext <<_ACEOF 8143/* confdefs.h. */ 8144_ACEOF 8145cat confdefs.h >>conftest.$ac_ext 8146cat >>conftest.$ac_ext <<_ACEOF 8147/* end confdefs.h. */ 8148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8149 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8150#define $ac_func innocuous_$ac_func 8151 8152/* System header to define __stub macros and hopefully few prototypes, 8153 which can conflict with char $ac_func (); below. 8154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8155 <limits.h> exists even on freestanding compilers. */ 8156 8157#ifdef __STDC__ 8158# include <limits.h> 8159#else 8160# include <assert.h> 8161#endif 8162 8163#undef $ac_func 8164 8165/* Override any GCC internal prototype to avoid an error. 8166 Use char because int might match the return type of a GCC 8167 builtin and then its argument prototype would still apply. */ 8168#ifdef __cplusplus 8169extern "C" 8170#endif 8171char $ac_func (); 8172/* The GNU C library defines this for functions which it implements 8173 to always fail with ENOSYS. Some functions are actually named 8174 something starting with __ and the normal name is an alias. */ 8175#if defined __stub_$ac_func || defined __stub___$ac_func 8176choke me 8177#endif 8178 8179int 8180main () 8181{ 8182return $ac_func (); 8183 ; 8184 return 0; 8185} 8186_ACEOF 8187rm -f conftest.$ac_objext conftest$ac_exeext 8188if { (ac_try="$ac_link" 8189case "(($ac_try" in 8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8191 *) ac_try_echo=$ac_try;; 8192esac 8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8194 (eval "$ac_link") 2>conftest.er1 8195 ac_status=$? 8196 grep -v '^ *+' conftest.er1 >conftest.err 8197 rm -f conftest.er1 8198 cat conftest.err >&5 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 (exit $ac_status); } && { 8201 test -z "$ac_c_werror_flag" || 8202 test ! -s conftest.err 8203 } && test -s conftest$ac_exeext && 8204 $as_test_x conftest$ac_exeext; then 8205 eval "$as_ac_var=yes" 8206else 8207 echo "$as_me: failed program was:" >&5 8208sed 's/^/| /' conftest.$ac_ext >&5 8209 8210 eval "$as_ac_var=no" 8211fi 8212 8213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8214 conftest$ac_exeext conftest.$ac_ext 8215fi 8216ac_res=`eval echo '${'$as_ac_var'}'` 8217 { echo "$as_me:$LINENO: result: $ac_res" >&5 8218echo "${ECHO_T}$ac_res" >&6; } 8219if test `eval echo '${'$as_ac_var'}'` = yes; then 8220 cat >>confdefs.h <<_ACEOF 8221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8222_ACEOF 8223 8224fi 8225done 8226 8227if test "x$ac_cv_func_fork" = xyes; then 8228 { echo "$as_me:$LINENO: checking for working fork" >&5 8229echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } 8230if test "${ac_cv_func_fork_works+set}" = set; then 8231 echo $ECHO_N "(cached) $ECHO_C" >&6 8232else 8233 if test "$cross_compiling" = yes; then 8234 ac_cv_func_fork_works=cross 8235else 8236 cat >conftest.$ac_ext <<_ACEOF 8237/* confdefs.h. */ 8238_ACEOF 8239cat confdefs.h >>conftest.$ac_ext 8240cat >>conftest.$ac_ext <<_ACEOF 8241/* end confdefs.h. */ 8242$ac_includes_default 8243int 8244main () 8245{ 8246 8247 /* By Ruediger Kuhlmann. */ 8248 return fork () < 0; 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254rm -f conftest$ac_exeext 8255if { (ac_try="$ac_link" 8256case "(($ac_try" in 8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8258 *) ac_try_echo=$ac_try;; 8259esac 8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8261 (eval "$ac_link") 2>&5 8262 ac_status=$? 8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8265 { (case "(($ac_try" in 8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8267 *) ac_try_echo=$ac_try;; 8268esac 8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8270 (eval "$ac_try") 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_cv_func_fork_works=yes 8275else 8276 echo "$as_me: program exited with status $ac_status" >&5 8277echo "$as_me: failed program was:" >&5 8278sed 's/^/| /' conftest.$ac_ext >&5 8279 8280( exit $ac_status ) 8281ac_cv_func_fork_works=no 8282fi 8283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8284fi 8285 8286 8287fi 8288{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 8289echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } 8290 8291else 8292 ac_cv_func_fork_works=$ac_cv_func_fork 8293fi 8294if test "x$ac_cv_func_fork_works" = xcross; then 8295 case $host in 8296 *-*-amigaos* | *-*-msdosdjgpp*) 8297 # Override, as these systems have only a dummy fork() stub 8298 ac_cv_func_fork_works=no 8299 ;; 8300 *) 8301 ac_cv_func_fork_works=yes 8302 ;; 8303 esac 8304 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8305echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8306fi 8307ac_cv_func_vfork_works=$ac_cv_func_vfork 8308if test "x$ac_cv_func_vfork" = xyes; then 8309 { echo "$as_me:$LINENO: checking for working vfork" >&5 8310echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } 8311if test "${ac_cv_func_vfork_works+set}" = set; then 8312 echo $ECHO_N "(cached) $ECHO_C" >&6 8313else 8314 if test "$cross_compiling" = yes; then 8315 ac_cv_func_vfork_works=cross 8316else 8317 cat >conftest.$ac_ext <<_ACEOF 8318/* confdefs.h. */ 8319_ACEOF 8320cat confdefs.h >>conftest.$ac_ext 8321cat >>conftest.$ac_ext <<_ACEOF 8322/* end confdefs.h. */ 8323/* Thanks to Paul Eggert for this test. */ 8324$ac_includes_default 8325#include <sys/wait.h> 8326#ifdef HAVE_VFORK_H 8327# include <vfork.h> 8328#endif 8329/* On some sparc systems, changes by the child to local and incoming 8330 argument registers are propagated back to the parent. The compiler 8331 is told about this with #include <vfork.h>, but some compilers 8332 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8333 static variable whose address is put into a register that is 8334 clobbered by the vfork. */ 8335static void 8336#ifdef __cplusplus 8337sparc_address_test (int arg) 8338# else 8339sparc_address_test (arg) int arg; 8340#endif 8341{ 8342 static pid_t child; 8343 if (!child) { 8344 child = vfork (); 8345 if (child < 0) { 8346 perror ("vfork"); 8347 _exit(2); 8348 } 8349 if (!child) { 8350 arg = getpid(); 8351 write(-1, "", 0); 8352 _exit (arg); 8353 } 8354 } 8355} 8356 8357int 8358main () 8359{ 8360 pid_t parent = getpid (); 8361 pid_t child; 8362 8363 sparc_address_test (0); 8364 8365 child = vfork (); 8366 8367 if (child == 0) { 8368 /* Here is another test for sparc vfork register problems. This 8369 test uses lots of local variables, at least as many local 8370 variables as main has allocated so far including compiler 8371 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8372 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8373 reuse the register of parent for one of the local variables, 8374 since it will think that parent can't possibly be used any more 8375 in this routine. Assigning to the local variable will thus 8376 munge parent in the parent process. */ 8377 pid_t 8378 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8379 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8380 /* Convince the compiler that p..p7 are live; otherwise, it might 8381 use the same hardware register for all 8 local variables. */ 8382 if (p != p1 || p != p2 || p != p3 || p != p4 8383 || p != p5 || p != p6 || p != p7) 8384 _exit(1); 8385 8386 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8387 from child file descriptors. If the child closes a descriptor 8388 before it execs or exits, this munges the parent's descriptor 8389 as well. Test for this by closing stdout in the child. */ 8390 _exit(close(fileno(stdout)) != 0); 8391 } else { 8392 int status; 8393 struct stat st; 8394 8395 while (wait(&status) != child) 8396 ; 8397 return ( 8398 /* Was there some problem with vforking? */ 8399 child < 0 8400 8401 /* Did the child fail? (This shouldn't happen.) */ 8402 || status 8403 8404 /* Did the vfork/compiler bug occur? */ 8405 || parent != getpid() 8406 8407 /* Did the file descriptor bug occur? */ 8408 || fstat(fileno(stdout), &st) != 0 8409 ); 8410 } 8411} 8412_ACEOF 8413rm -f conftest$ac_exeext 8414if { (ac_try="$ac_link" 8415case "(($ac_try" in 8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8417 *) ac_try_echo=$ac_try;; 8418esac 8419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8420 (eval "$ac_link") 2>&5 8421 ac_status=$? 8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8424 { (case "(($ac_try" in 8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8426 *) ac_try_echo=$ac_try;; 8427esac 8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8429 (eval "$ac_try") 2>&5 8430 ac_status=$? 8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8432 (exit $ac_status); }; }; then 8433 ac_cv_func_vfork_works=yes 8434else 8435 echo "$as_me: program exited with status $ac_status" >&5 8436echo "$as_me: failed program was:" >&5 8437sed 's/^/| /' conftest.$ac_ext >&5 8438 8439( exit $ac_status ) 8440ac_cv_func_vfork_works=no 8441fi 8442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8443fi 8444 8445 8446fi 8447{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 8448echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } 8449 8450fi; 8451if test "x$ac_cv_func_fork_works" = xcross; then 8452 ac_cv_func_vfork_works=$ac_cv_func_vfork 8453 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8454echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8455fi 8456 8457if test "x$ac_cv_func_vfork_works" = xyes; then 8458 8459cat >>confdefs.h <<\_ACEOF 8460#define HAVE_WORKING_VFORK 1 8461_ACEOF 8462 8463else 8464 8465cat >>confdefs.h <<\_ACEOF 8466#define vfork fork 8467_ACEOF 8468 8469fi 8470if test "x$ac_cv_func_fork_works" = xyes; then 8471 8472cat >>confdefs.h <<\_ACEOF 8473#define HAVE_WORKING_FORK 1 8474_ACEOF 8475 8476fi 8477 8478{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 8479echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } 8480if test "${ac_cv_sys_largefile_source+set}" = set; then 8481 echo $ECHO_N "(cached) $ECHO_C" >&6 8482else 8483 while :; do 8484 cat >conftest.$ac_ext <<_ACEOF 8485/* confdefs.h. */ 8486_ACEOF 8487cat confdefs.h >>conftest.$ac_ext 8488cat >>conftest.$ac_ext <<_ACEOF 8489/* end confdefs.h. */ 8490#include <stdio.h> 8491int 8492main () 8493{ 8494return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499rm -f conftest.$ac_objext conftest$ac_exeext 8500if { (ac_try="$ac_link" 8501case "(($ac_try" in 8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8503 *) ac_try_echo=$ac_try;; 8504esac 8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8506 (eval "$ac_link") 2>conftest.er1 8507 ac_status=$? 8508 grep -v '^ *+' conftest.er1 >conftest.err 8509 rm -f conftest.er1 8510 cat conftest.err >&5 8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8512 (exit $ac_status); } && { 8513 test -z "$ac_c_werror_flag" || 8514 test ! -s conftest.err 8515 } && test -s conftest$ac_exeext && 8516 $as_test_x conftest$ac_exeext; then 8517 ac_cv_sys_largefile_source=no; break 8518else 8519 echo "$as_me: failed program was:" >&5 8520sed 's/^/| /' conftest.$ac_ext >&5 8521 8522 8523fi 8524 8525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8526 conftest$ac_exeext conftest.$ac_ext 8527 cat >conftest.$ac_ext <<_ACEOF 8528/* confdefs.h. */ 8529_ACEOF 8530cat confdefs.h >>conftest.$ac_ext 8531cat >>conftest.$ac_ext <<_ACEOF 8532/* end confdefs.h. */ 8533#define _LARGEFILE_SOURCE 1 8534#include <stdio.h> 8535int 8536main () 8537{ 8538return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); 8539 ; 8540 return 0; 8541} 8542_ACEOF 8543rm -f conftest.$ac_objext conftest$ac_exeext 8544if { (ac_try="$ac_link" 8545case "(($ac_try" in 8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8547 *) ac_try_echo=$ac_try;; 8548esac 8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8550 (eval "$ac_link") 2>conftest.er1 8551 ac_status=$? 8552 grep -v '^ *+' conftest.er1 >conftest.err 8553 rm -f conftest.er1 8554 cat conftest.err >&5 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 (exit $ac_status); } && { 8557 test -z "$ac_c_werror_flag" || 8558 test ! -s conftest.err 8559 } && test -s conftest$ac_exeext && 8560 $as_test_x conftest$ac_exeext; then 8561 ac_cv_sys_largefile_source=1; break 8562else 8563 echo "$as_me: failed program was:" >&5 8564sed 's/^/| /' conftest.$ac_ext >&5 8565 8566 8567fi 8568 8569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8570 conftest$ac_exeext conftest.$ac_ext 8571 ac_cv_sys_largefile_source=unknown 8572 break 8573done 8574fi 8575{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 8576echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } 8577case $ac_cv_sys_largefile_source in #( 8578 no | unknown) ;; 8579 *) 8580cat >>confdefs.h <<_ACEOF 8581#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 8582_ACEOF 8583;; 8584esac 8585rm -f conftest* 8586 8587# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 8588# in glibc 2.1.3, but that breaks too many other things. 8589# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 8590if test $ac_cv_sys_largefile_source != unknown; then 8591 8592cat >>confdefs.h <<\_ACEOF 8593#define HAVE_FSEEKO 1 8594_ACEOF 8595 8596fi 8597 8598{ echo "$as_me:$LINENO: checking for working strcoll" >&5 8599echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; } 8600if test "${ac_cv_func_strcoll_works+set}" = set; then 8601 echo $ECHO_N "(cached) $ECHO_C" >&6 8602else 8603 if test "$cross_compiling" = yes; then 8604 ac_cv_func_strcoll_works=no 8605else 8606 cat >conftest.$ac_ext <<_ACEOF 8607/* confdefs.h. */ 8608_ACEOF 8609cat confdefs.h >>conftest.$ac_ext 8610cat >>conftest.$ac_ext <<_ACEOF 8611/* end confdefs.h. */ 8612$ac_includes_default 8613int 8614main () 8615{ 8616return (strcoll ("abc", "def") >= 0 || 8617 strcoll ("ABC", "DEF") >= 0 || 8618 strcoll ("123", "456") >= 0) 8619 ; 8620 return 0; 8621} 8622_ACEOF 8623rm -f conftest$ac_exeext 8624if { (ac_try="$ac_link" 8625case "(($ac_try" in 8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8627 *) ac_try_echo=$ac_try;; 8628esac 8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8630 (eval "$ac_link") 2>&5 8631 ac_status=$? 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8634 { (case "(($ac_try" in 8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8636 *) ac_try_echo=$ac_try;; 8637esac 8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8639 (eval "$ac_try") 2>&5 8640 ac_status=$? 8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 (exit $ac_status); }; }; then 8643 ac_cv_func_strcoll_works=yes 8644else 8645 echo "$as_me: program exited with status $ac_status" >&5 8646echo "$as_me: failed program was:" >&5 8647sed 's/^/| /' conftest.$ac_ext >&5 8648 8649( exit $ac_status ) 8650ac_cv_func_strcoll_works=no 8651fi 8652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8653fi 8654 8655 8656fi 8657{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 8658echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; } 8659if test $ac_cv_func_strcoll_works = yes; then 8660 8661cat >>confdefs.h <<\_ACEOF 8662#define HAVE_STRCOLL 1 8663_ACEOF 8664 8665fi 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689for ac_func in dirname err fgetln getaddrinfo getnameinfo \ 8690 inet_ntop inet_pton mkstemp setprogname sl_init snprintf \ 8691 strdup strerror strlcat strlcpy strptime strsep strunvis \ 8692 strvis timegm usleep utimes 8693do 8694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8695{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8698 echo $ECHO_N "(cached) $ECHO_C" >&6 8699else 8700 cat >conftest.$ac_ext <<_ACEOF 8701/* confdefs.h. */ 8702_ACEOF 8703cat confdefs.h >>conftest.$ac_ext 8704cat >>conftest.$ac_ext <<_ACEOF 8705/* end confdefs.h. */ 8706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8708#define $ac_func innocuous_$ac_func 8709 8710/* System header to define __stub macros and hopefully few prototypes, 8711 which can conflict with char $ac_func (); below. 8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8713 <limits.h> exists even on freestanding compilers. */ 8714 8715#ifdef __STDC__ 8716# include <limits.h> 8717#else 8718# include <assert.h> 8719#endif 8720 8721#undef $ac_func 8722 8723/* Override any GCC internal prototype to avoid an error. 8724 Use char because int might match the return type of a GCC 8725 builtin and then its argument prototype would still apply. */ 8726#ifdef __cplusplus 8727extern "C" 8728#endif 8729char $ac_func (); 8730/* The GNU C library defines this for functions which it implements 8731 to always fail with ENOSYS. Some functions are actually named 8732 something starting with __ and the normal name is an alias. */ 8733#if defined __stub_$ac_func || defined __stub___$ac_func 8734choke me 8735#endif 8736 8737int 8738main () 8739{ 8740return $ac_func (); 8741 ; 8742 return 0; 8743} 8744_ACEOF 8745rm -f conftest.$ac_objext conftest$ac_exeext 8746if { (ac_try="$ac_link" 8747case "(($ac_try" in 8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8749 *) ac_try_echo=$ac_try;; 8750esac 8751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8752 (eval "$ac_link") 2>conftest.er1 8753 ac_status=$? 8754 grep -v '^ *+' conftest.er1 >conftest.err 8755 rm -f conftest.er1 8756 cat conftest.err >&5 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 (exit $ac_status); } && { 8759 test -z "$ac_c_werror_flag" || 8760 test ! -s conftest.err 8761 } && test -s conftest$ac_exeext && 8762 $as_test_x conftest$ac_exeext; then 8763 eval "$as_ac_var=yes" 8764else 8765 echo "$as_me: failed program was:" >&5 8766sed 's/^/| /' conftest.$ac_ext >&5 8767 8768 eval "$as_ac_var=no" 8769fi 8770 8771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8772 conftest$ac_exeext conftest.$ac_ext 8773fi 8774ac_res=`eval echo '${'$as_ac_var'}'` 8775 { echo "$as_me:$LINENO: result: $ac_res" >&5 8776echo "${ECHO_T}$ac_res" >&6; } 8777if test `eval echo '${'$as_ac_var'}'` = yes; then 8778 cat >>confdefs.h <<_ACEOF 8779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8780_ACEOF 8781 8782else 8783 case " $LIBOBJS " in 8784 *" $ac_func.$ac_objext "* ) ;; 8785 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 8786 ;; 8787esac 8788 8789fi 8790done 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823for ac_func in getcwd gethostbyaddr gethostbyname gethostbyname2 gethostname \ 8824 getpass getpassphrase getpgrp gettimeofday isascii \ 8825 memchr memmove memset realpath regcomp \ 8826 select setlocale socket strcasecmp strchr strcspn strdup \ 8827 strerror strncasecmp strpbrk strrchr strstr strtol strtoul \ 8828 utime 8829do 8830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8831{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8834 echo $ECHO_N "(cached) $ECHO_C" >&6 8835else 8836 cat >conftest.$ac_ext <<_ACEOF 8837/* confdefs.h. */ 8838_ACEOF 8839cat confdefs.h >>conftest.$ac_ext 8840cat >>conftest.$ac_ext <<_ACEOF 8841/* end confdefs.h. */ 8842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8843 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8844#define $ac_func innocuous_$ac_func 8845 8846/* System header to define __stub macros and hopefully few prototypes, 8847 which can conflict with char $ac_func (); below. 8848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8849 <limits.h> exists even on freestanding compilers. */ 8850 8851#ifdef __STDC__ 8852# include <limits.h> 8853#else 8854# include <assert.h> 8855#endif 8856 8857#undef $ac_func 8858 8859/* Override any GCC internal prototype to avoid an error. 8860 Use char because int might match the return type of a GCC 8861 builtin and then its argument prototype would still apply. */ 8862#ifdef __cplusplus 8863extern "C" 8864#endif 8865char $ac_func (); 8866/* The GNU C library defines this for functions which it implements 8867 to always fail with ENOSYS. Some functions are actually named 8868 something starting with __ and the normal name is an alias. */ 8869#if defined __stub_$ac_func || defined __stub___$ac_func 8870choke me 8871#endif 8872 8873int 8874main () 8875{ 8876return $ac_func (); 8877 ; 8878 return 0; 8879} 8880_ACEOF 8881rm -f conftest.$ac_objext conftest$ac_exeext 8882if { (ac_try="$ac_link" 8883case "(($ac_try" in 8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8885 *) ac_try_echo=$ac_try;; 8886esac 8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8888 (eval "$ac_link") 2>conftest.er1 8889 ac_status=$? 8890 grep -v '^ *+' conftest.er1 >conftest.err 8891 rm -f conftest.er1 8892 cat conftest.err >&5 8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8894 (exit $ac_status); } && { 8895 test -z "$ac_c_werror_flag" || 8896 test ! -s conftest.err 8897 } && test -s conftest$ac_exeext && 8898 $as_test_x conftest$ac_exeext; then 8899 eval "$as_ac_var=yes" 8900else 8901 echo "$as_me: failed program was:" >&5 8902sed 's/^/| /' conftest.$ac_ext >&5 8903 8904 eval "$as_ac_var=no" 8905fi 8906 8907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8908 conftest$ac_exeext conftest.$ac_ext 8909fi 8910ac_res=`eval echo '${'$as_ac_var'}'` 8911 { echo "$as_me:$LINENO: result: $ac_res" >&5 8912echo "${ECHO_T}$ac_res" >&6; } 8913if test `eval echo '${'$as_ac_var'}'` = yes; then 8914 cat >>confdefs.h <<_ACEOF 8915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8916_ACEOF 8917 8918fi 8919done 8920 8921if test "$ac_cv_func_getpgrp" = yes; then 8922 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 8923echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } 8924if test "${ac_cv_func_getpgrp_void+set}" = set; then 8925 echo $ECHO_N "(cached) $ECHO_C" >&6 8926else 8927 # Use it with a single arg. 8928cat >conftest.$ac_ext <<_ACEOF 8929/* confdefs.h. */ 8930_ACEOF 8931cat confdefs.h >>conftest.$ac_ext 8932cat >>conftest.$ac_ext <<_ACEOF 8933/* end confdefs.h. */ 8934$ac_includes_default 8935int 8936main () 8937{ 8938getpgrp (0); 8939 ; 8940 return 0; 8941} 8942_ACEOF 8943rm -f conftest.$ac_objext 8944if { (ac_try="$ac_compile" 8945case "(($ac_try" in 8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8947 *) ac_try_echo=$ac_try;; 8948esac 8949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8950 (eval "$ac_compile") 2>conftest.er1 8951 ac_status=$? 8952 grep -v '^ *+' conftest.er1 >conftest.err 8953 rm -f conftest.er1 8954 cat conftest.err >&5 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); } && { 8957 test -z "$ac_c_werror_flag" || 8958 test ! -s conftest.err 8959 } && test -s conftest.$ac_objext; then 8960 ac_cv_func_getpgrp_void=no 8961else 8962 echo "$as_me: failed program was:" >&5 8963sed 's/^/| /' conftest.$ac_ext >&5 8964 8965 ac_cv_func_getpgrp_void=yes 8966fi 8967 8968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8969 8970fi 8971{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 8972echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } 8973if test $ac_cv_func_getpgrp_void = yes; then 8974 8975cat >>confdefs.h <<\_ACEOF 8976#define GETPGRP_VOID 1 8977_ACEOF 8978 8979fi 8980 8981fi 8982 8983if test "$ac_cv_func_strptime" = yes; then 8984 { echo "$as_me:$LINENO: checking whether strptime is declared" >&5 8985echo $ECHO_N "checking whether strptime is declared... $ECHO_C" >&6; } 8986if test "${ac_cv_have_decl_strptime+set}" = set; then 8987 echo $ECHO_N "(cached) $ECHO_C" >&6 8988else 8989 cat >conftest.$ac_ext <<_ACEOF 8990/* confdefs.h. */ 8991_ACEOF 8992cat confdefs.h >>conftest.$ac_ext 8993cat >>conftest.$ac_ext <<_ACEOF 8994/* end confdefs.h. */ 8995$ac_includes_default 8996int 8997main () 8998{ 8999#ifndef strptime 9000 (void) strptime; 9001#endif 9002 9003 ; 9004 return 0; 9005} 9006_ACEOF 9007rm -f conftest.$ac_objext 9008if { (ac_try="$ac_compile" 9009case "(($ac_try" in 9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9011 *) ac_try_echo=$ac_try;; 9012esac 9013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9014 (eval "$ac_compile") 2>conftest.er1 9015 ac_status=$? 9016 grep -v '^ *+' conftest.er1 >conftest.err 9017 rm -f conftest.er1 9018 cat conftest.err >&5 9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9020 (exit $ac_status); } && { 9021 test -z "$ac_c_werror_flag" || 9022 test ! -s conftest.err 9023 } && test -s conftest.$ac_objext; then 9024 ac_cv_have_decl_strptime=yes 9025else 9026 echo "$as_me: failed program was:" >&5 9027sed 's/^/| /' conftest.$ac_ext >&5 9028 9029 ac_cv_have_decl_strptime=no 9030fi 9031 9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9033fi 9034{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strptime" >&5 9035echo "${ECHO_T}$ac_cv_have_decl_strptime" >&6; } 9036if test $ac_cv_have_decl_strptime = yes; then 9037 9038cat >>confdefs.h <<_ACEOF 9039#define HAVE_DECL_STRPTIME 1 9040_ACEOF 9041 9042 9043else 9044 cat >>confdefs.h <<_ACEOF 9045#define HAVE_DECL_STRPTIME 0 9046_ACEOF 9047 9048 9049fi 9050 9051 9052fi 9053 9054 9055# Always replace glob(); the vendor's may not be secure. 9056# 9057case " $LIBOBJS " in 9058 *" glob.$ac_objext "* ) ;; 9059 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 9060 ;; 9061esac 9062 9063 9064# We assume that if sprintf() supports %lld or %qd, 9065# then all of *printf() does. If not, disable long long 9066# support because we don't know how to display it. 9067# 9068if test "$ac_cv_type_long_long_int" = yes; then 9069 { echo "$as_me:$LINENO: checking *printf() support for %lld" >&5 9070echo $ECHO_N "checking *printf() support for %lld... $ECHO_C" >&6; } 9071 can_printf_longlong=no 9072 if test "$cross_compiling" = yes; then 9073 { echo "$as_me:$LINENO: result: unknown - cross-compiling" >&5 9074echo "${ECHO_T}unknown - cross-compiling" >&6; } 9075else 9076 cat >conftest.$ac_ext <<_ACEOF 9077/* confdefs.h. */ 9078_ACEOF 9079cat confdefs.h >>conftest.$ac_ext 9080cat >>conftest.$ac_ext <<_ACEOF 9081/* end confdefs.h. */ 9082 9083#include <stdio.h> 9084int main() { 9085 char buf[100]; 9086 sprintf(buf, "%lld", 4294967300LL); 9087 return (strcmp(buf, "4294967300")); 9088} 9089 9090_ACEOF 9091rm -f conftest$ac_exeext 9092if { (ac_try="$ac_link" 9093case "(($ac_try" in 9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9095 *) ac_try_echo=$ac_try;; 9096esac 9097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9098 (eval "$ac_link") 2>&5 9099 ac_status=$? 9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9102 { (case "(($ac_try" in 9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9104 *) ac_try_echo=$ac_try;; 9105esac 9106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9107 (eval "$ac_try") 2>&5 9108 ac_status=$? 9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9110 (exit $ac_status); }; }; then 9111 { echo "$as_me:$LINENO: result: yes" >&5 9112echo "${ECHO_T}yes" >&6; } 9113 can_printf_longlong=yes 9114else 9115 echo "$as_me: program exited with status $ac_status" >&5 9116echo "$as_me: failed program was:" >&5 9117sed 's/^/| /' conftest.$ac_ext >&5 9118 9119( exit $ac_status ) 9120{ echo "$as_me:$LINENO: result: no" >&5 9121echo "${ECHO_T}no" >&6; } 9122fi 9123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9124fi 9125 9126 9127 if test "$can_printf_longlong" != yes; then 9128 { echo "$as_me:$LINENO: checking *printf() support for %qd" >&5 9129echo $ECHO_N "checking *printf() support for %qd... $ECHO_C" >&6; } 9130 if test "$cross_compiling" = yes; then 9131 { echo "$as_me:$LINENO: result: unknown - cross-compiling" >&5 9132echo "${ECHO_T}unknown - cross-compiling" >&6; } 9133else 9134 cat >conftest.$ac_ext <<_ACEOF 9135/* confdefs.h. */ 9136_ACEOF 9137cat confdefs.h >>conftest.$ac_ext 9138cat >>conftest.$ac_ext <<_ACEOF 9139/* end confdefs.h. */ 9140 9141#include <stdio.h> 9142int main() { 9143 char buf[100]; 9144 sprintf(buf, "%qd", 4294967300LL); 9145 return (strcmp(buf, "4294967300")); 9146} 9147 9148_ACEOF 9149rm -f conftest$ac_exeext 9150if { (ac_try="$ac_link" 9151case "(($ac_try" in 9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9153 *) ac_try_echo=$ac_try;; 9154esac 9155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9156 (eval "$ac_link") 2>&5 9157 ac_status=$? 9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9160 { (case "(($ac_try" in 9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9162 *) ac_try_echo=$ac_try;; 9163esac 9164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9165 (eval "$ac_try") 2>&5 9166 ac_status=$? 9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9168 (exit $ac_status); }; }; then 9169 { echo "$as_me:$LINENO: result: yes" >&5 9170echo "${ECHO_T}yes" >&6; } 9171 can_printf_longlong=yes 9172 cat >>confdefs.h <<\_ACEOF 9173#define HAVE_PRINTF_QD 1 9174_ACEOF 9175 9176else 9177 echo "$as_me: program exited with status $ac_status" >&5 9178echo "$as_me: failed program was:" >&5 9179sed 's/^/| /' conftest.$ac_ext >&5 9180 9181( exit $ac_status ) 9182{ echo "$as_me:$LINENO: result: no" >&5 9183echo "${ECHO_T}no" >&6; } 9184fi 9185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9186fi 9187 9188 9189fi 9190 9191 { echo "$as_me:$LINENO: checking if *printf() can print long long ints" >&5 9192echo $ECHO_N "checking if *printf() can print long long ints... $ECHO_C" >&6; } 9193 if test "$can_printf_longlong" = yes; then 9194 { echo "$as_me:$LINENO: result: yes" >&5 9195echo "${ECHO_T}yes" >&6; } 9196 cat >>confdefs.h <<\_ACEOF 9197#define HAVE_PRINTF_LONG_LONG 1 9198_ACEOF 9199 9200 9201for ac_func in strtoll 9202do 9203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9204{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9207 echo $ECHO_N "(cached) $ECHO_C" >&6 9208else 9209 cat >conftest.$ac_ext <<_ACEOF 9210/* confdefs.h. */ 9211_ACEOF 9212cat confdefs.h >>conftest.$ac_ext 9213cat >>conftest.$ac_ext <<_ACEOF 9214/* end confdefs.h. */ 9215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9216 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9217#define $ac_func innocuous_$ac_func 9218 9219/* System header to define __stub macros and hopefully few prototypes, 9220 which can conflict with char $ac_func (); below. 9221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9222 <limits.h> exists even on freestanding compilers. */ 9223 9224#ifdef __STDC__ 9225# include <limits.h> 9226#else 9227# include <assert.h> 9228#endif 9229 9230#undef $ac_func 9231 9232/* Override any GCC internal prototype to avoid an error. 9233 Use char because int might match the return type of a GCC 9234 builtin and then its argument prototype would still apply. */ 9235#ifdef __cplusplus 9236extern "C" 9237#endif 9238char $ac_func (); 9239/* The GNU C library defines this for functions which it implements 9240 to always fail with ENOSYS. Some functions are actually named 9241 something starting with __ and the normal name is an alias. */ 9242#if defined __stub_$ac_func || defined __stub___$ac_func 9243choke me 9244#endif 9245 9246int 9247main () 9248{ 9249return $ac_func (); 9250 ; 9251 return 0; 9252} 9253_ACEOF 9254rm -f conftest.$ac_objext conftest$ac_exeext 9255if { (ac_try="$ac_link" 9256case "(($ac_try" in 9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *) ac_try_echo=$ac_try;; 9259esac 9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9261 (eval "$ac_link") 2>conftest.er1 9262 ac_status=$? 9263 grep -v '^ *+' conftest.er1 >conftest.err 9264 rm -f conftest.er1 9265 cat conftest.err >&5 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 (exit $ac_status); } && { 9268 test -z "$ac_c_werror_flag" || 9269 test ! -s conftest.err 9270 } && test -s conftest$ac_exeext && 9271 $as_test_x conftest$ac_exeext; then 9272 eval "$as_ac_var=yes" 9273else 9274 echo "$as_me: failed program was:" >&5 9275sed 's/^/| /' conftest.$ac_ext >&5 9276 9277 eval "$as_ac_var=no" 9278fi 9279 9280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9281 conftest$ac_exeext conftest.$ac_ext 9282fi 9283ac_res=`eval echo '${'$as_ac_var'}'` 9284 { echo "$as_me:$LINENO: result: $ac_res" >&5 9285echo "${ECHO_T}$ac_res" >&6; } 9286if test `eval echo '${'$as_ac_var'}'` = yes; then 9287 cat >>confdefs.h <<_ACEOF 9288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9289_ACEOF 9290 9291else 9292 case " $LIBOBJS " in 9293 *" $ac_func.$ac_objext "* ) ;; 9294 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9295 ;; 9296esac 9297 9298fi 9299done 9300 9301 9302else 9303 { echo "$as_me:$LINENO: result: no" >&5 9304echo "${ECHO_T}no" >&6; } 9305fi 9306 9307fi 9308 9309 9310# Handle Darwin 7 having a poll() compatibility function, 9311# and don't use it if it's emulated. 9312# Be conservative, if we don't find one of poll.h or sys/poll.h, 9313# don't attempt to use poll(). 9314# 9315{ echo "$as_me:$LINENO: checking for struct pollfd" >&5 9316echo $ECHO_N "checking for struct pollfd... $ECHO_C" >&6; } 9317if test "${ac_cv_type_struct_pollfd+set}" = set; then 9318 echo $ECHO_N "(cached) $ECHO_C" >&6 9319else 9320 cat >conftest.$ac_ext <<_ACEOF 9321/* confdefs.h. */ 9322_ACEOF 9323cat confdefs.h >>conftest.$ac_ext 9324cat >>conftest.$ac_ext <<_ACEOF 9325/* end confdefs.h. */ 9326$accheck_includes 9327 9328typedef struct pollfd ac__type_new_; 9329int 9330main () 9331{ 9332if ((ac__type_new_ *) 0) 9333 return 0; 9334if (sizeof (ac__type_new_)) 9335 return 0; 9336 ; 9337 return 0; 9338} 9339_ACEOF 9340rm -f conftest.$ac_objext 9341if { (ac_try="$ac_compile" 9342case "(($ac_try" in 9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9344 *) ac_try_echo=$ac_try;; 9345esac 9346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9347 (eval "$ac_compile") 2>conftest.er1 9348 ac_status=$? 9349 grep -v '^ *+' conftest.er1 >conftest.err 9350 rm -f conftest.er1 9351 cat conftest.err >&5 9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 (exit $ac_status); } && { 9354 test -z "$ac_c_werror_flag" || 9355 test ! -s conftest.err 9356 } && test -s conftest.$ac_objext; then 9357 ac_cv_type_struct_pollfd=yes 9358else 9359 echo "$as_me: failed program was:" >&5 9360sed 's/^/| /' conftest.$ac_ext >&5 9361 9362 ac_cv_type_struct_pollfd=no 9363fi 9364 9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9366fi 9367{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_pollfd" >&5 9368echo "${ECHO_T}$ac_cv_type_struct_pollfd" >&6; } 9369if test $ac_cv_type_struct_pollfd = yes; then 9370 9371cat >>confdefs.h <<_ACEOF 9372#define HAVE_STRUCT_POLLFD 1 9373_ACEOF 9374 9375 9376fi 9377 9378{ echo "$as_me:$LINENO: checking for poll" >&5 9379echo $ECHO_N "checking for poll... $ECHO_C" >&6; } 9380if test "${ac_cv_func_poll+set}" = set; then 9381 echo $ECHO_N "(cached) $ECHO_C" >&6 9382else 9383 cat >conftest.$ac_ext <<_ACEOF 9384/* confdefs.h. */ 9385_ACEOF 9386cat confdefs.h >>conftest.$ac_ext 9387cat >>conftest.$ac_ext <<_ACEOF 9388/* end confdefs.h. */ 9389/* Define poll to an innocuous variant, in case <limits.h> declares poll. 9390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9391#define poll innocuous_poll 9392 9393/* System header to define __stub macros and hopefully few prototypes, 9394 which can conflict with char poll (); below. 9395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9396 <limits.h> exists even on freestanding compilers. */ 9397 9398#ifdef __STDC__ 9399# include <limits.h> 9400#else 9401# include <assert.h> 9402#endif 9403 9404#undef poll 9405 9406/* Override any GCC internal prototype to avoid an error. 9407 Use char because int might match the return type of a GCC 9408 builtin and then its argument prototype would still apply. */ 9409#ifdef __cplusplus 9410extern "C" 9411#endif 9412char poll (); 9413/* The GNU C library defines this for functions which it implements 9414 to always fail with ENOSYS. Some functions are actually named 9415 something starting with __ and the normal name is an alias. */ 9416#if defined __stub_poll || defined __stub___poll 9417choke me 9418#endif 9419 9420int 9421main () 9422{ 9423return poll (); 9424 ; 9425 return 0; 9426} 9427_ACEOF 9428rm -f conftest.$ac_objext conftest$ac_exeext 9429if { (ac_try="$ac_link" 9430case "(($ac_try" in 9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9432 *) ac_try_echo=$ac_try;; 9433esac 9434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9435 (eval "$ac_link") 2>conftest.er1 9436 ac_status=$? 9437 grep -v '^ *+' conftest.er1 >conftest.err 9438 rm -f conftest.er1 9439 cat conftest.err >&5 9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 (exit $ac_status); } && { 9442 test -z "$ac_c_werror_flag" || 9443 test ! -s conftest.err 9444 } && test -s conftest$ac_exeext && 9445 $as_test_x conftest$ac_exeext; then 9446 ac_cv_func_poll=yes 9447else 9448 echo "$as_me: failed program was:" >&5 9449sed 's/^/| /' conftest.$ac_ext >&5 9450 9451 ac_cv_func_poll=no 9452fi 9453 9454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9455 conftest$ac_exeext conftest.$ac_ext 9456fi 9457{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 9458echo "${ECHO_T}$ac_cv_func_poll" >&6; } 9459if test $ac_cv_func_poll = yes; then 9460 { echo "$as_me:$LINENO: checking whether _POLL_EMUL_H_ is declared" >&5 9461echo $ECHO_N "checking whether _POLL_EMUL_H_ is declared... $ECHO_C" >&6; } 9462if test "${ac_cv_have_decl__POLL_EMUL_H_+set}" = set; then 9463 echo $ECHO_N "(cached) $ECHO_C" >&6 9464else 9465 cat >conftest.$ac_ext <<_ACEOF 9466/* confdefs.h. */ 9467_ACEOF 9468cat confdefs.h >>conftest.$ac_ext 9469cat >>conftest.$ac_ext <<_ACEOF 9470/* end confdefs.h. */ 9471$accheck_includes 9472 9473int 9474main () 9475{ 9476#ifndef _POLL_EMUL_H_ 9477 (void) _POLL_EMUL_H_; 9478#endif 9479 9480 ; 9481 return 0; 9482} 9483_ACEOF 9484rm -f conftest.$ac_objext 9485if { (ac_try="$ac_compile" 9486case "(($ac_try" in 9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9488 *) ac_try_echo=$ac_try;; 9489esac 9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9491 (eval "$ac_compile") 2>conftest.er1 9492 ac_status=$? 9493 grep -v '^ *+' conftest.er1 >conftest.err 9494 rm -f conftest.er1 9495 cat conftest.err >&5 9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9497 (exit $ac_status); } && { 9498 test -z "$ac_c_werror_flag" || 9499 test ! -s conftest.err 9500 } && test -s conftest.$ac_objext; then 9501 ac_cv_have_decl__POLL_EMUL_H_=yes 9502else 9503 echo "$as_me: failed program was:" >&5 9504sed 's/^/| /' conftest.$ac_ext >&5 9505 9506 ac_cv_have_decl__POLL_EMUL_H_=no 9507fi 9508 9509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9510fi 9511{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__POLL_EMUL_H_" >&5 9512echo "${ECHO_T}$ac_cv_have_decl__POLL_EMUL_H_" >&6; } 9513if test $ac_cv_have_decl__POLL_EMUL_H_ = yes; then 9514 : 9515else 9516 cat >>confdefs.h <<\_ACEOF 9517#define HAVE_POLL 1 9518_ACEOF 9519 9520fi 9521 9522fi 9523 9524 9525# Assume libedit is not up-to-date and force own version. 9526# 9527if test "$opt_editcomplete" = yes; then 9528 { echo "$as_me:$LINENO: checking for up-to-date libedit" >&5 9529echo $ECHO_N "checking for up-to-date libedit... $ECHO_C" >&6; } 9530 if test "$have_libedit" = no; then 9531 { echo "$as_me:$LINENO: result: no - using my own" >&5 9532echo "${ECHO_T}no - using my own" >&6; } 9533 INCLUDES="-I\${srcdir}/../libedit $INCLUDES" 9534 LDFLAGS="-L../libedit $LDFLAGS" 9535 LIBS="-ledit $LIBS" 9536 LIBEDIT=libedit.a 9537 LIBDEPENDS="$LIBDEPENDS ../libedit/libedit.a" 9538else 9539 { echo "$as_me:$LINENO: result: yes" >&5 9540echo "${ECHO_T}yes" >&6; } 9541fi 9542 9543else 9544 CFLAGS="-DNO_EDITCOMPLETE $CFLAGS" 9545fi 9546 9547 9548# Replace sl_init() (et al) if it provides the older API. 9549# 9550if test "$ac_cv_func_sl_init" = yes; then 9551 { echo "$as_me:$LINENO: checking if sl_add() returns int" >&5 9552echo $ECHO_N "checking if sl_add() returns int... $ECHO_C" >&6; } 9553 cat >conftest.$ac_ext <<_ACEOF 9554/* confdefs.h. */ 9555_ACEOF 9556cat confdefs.h >>conftest.$ac_ext 9557cat >>conftest.$ac_ext <<_ACEOF 9558/* end confdefs.h. */ 9559#include <stringlist.h> 9560int 9561main () 9562{ 9563int f = sl_add((StringList *)0, 9564 "foo"); 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569rm -f conftest.$ac_objext 9570if { (ac_try="$ac_compile" 9571case "(($ac_try" in 9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9573 *) ac_try_echo=$ac_try;; 9574esac 9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9576 (eval "$ac_compile") 2>conftest.er1 9577 ac_status=$? 9578 grep -v '^ *+' conftest.er1 >conftest.err 9579 rm -f conftest.er1 9580 cat conftest.err >&5 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && { 9583 test -z "$ac_c_werror_flag" || 9584 test ! -s conftest.err 9585 } && test -s conftest.$ac_objext; then 9586 { echo "$as_me:$LINENO: result: yes" >&5 9587echo "${ECHO_T}yes" >&6; } 9588else 9589 echo "$as_me: failed program was:" >&5 9590sed 's/^/| /' conftest.$ac_ext >&5 9591 9592 { echo "$as_me:$LINENO: result: no - using local version" >&5 9593echo "${ECHO_T}no - using local version" >&6; } 9594 case " $LIBOBJS " in 9595 *" sl_init.$ac_objext "* ) ;; 9596 *) LIBOBJS="$LIBOBJS sl_init.$ac_objext" 9597 ;; 9598esac 9599 9600fi 9601 9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9603fi 9604 9605 9606# Replace getaddrinfo() if missing or AI_NUMERICHOST isn't declared. 9607# 9608{ echo "$as_me:$LINENO: checking for working getaddrinfo()" >&5 9609echo $ECHO_N "checking for working getaddrinfo()... $ECHO_C" >&6; } 9610if test "$ac_cv_have_decl_AI_NUMERICHOST" = yes; then 9611 { echo "$as_me:$LINENO: result: yes" >&5 9612echo "${ECHO_T}yes" >&6; } 9613else 9614 if test "$ac_cv_func_getaddrinfo" = yes; then 9615 case " $LIBOBJS " in 9616 *" getaddrinfo.$ac_objext "* ) ;; 9617 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 9618 ;; 9619esac 9620 9621 { echo "$as_me:$LINENO: result: no - using local version" >&5 9622echo "${ECHO_T}no - using local version" >&6; } 9623else 9624 { echo "$as_me:$LINENO: result: using local version" >&5 9625echo "${ECHO_T}using local version" >&6; } 9626fi 9627 9628fi 9629 9630 9631# Check for VIS_WHITE in <vis.h> 9632# 9633if test "$ac_cv_header_vis_h" = yes; then 9634 { echo "$as_me:$LINENO: checking whether VIS_WHITE is declared" >&5 9635echo $ECHO_N "checking whether VIS_WHITE is declared... $ECHO_C" >&6; } 9636if test "${ac_cv_have_decl_VIS_WHITE+set}" = set; then 9637 echo $ECHO_N "(cached) $ECHO_C" >&6 9638else 9639 cat >conftest.$ac_ext <<_ACEOF 9640/* confdefs.h. */ 9641_ACEOF 9642cat confdefs.h >>conftest.$ac_ext 9643cat >>conftest.$ac_ext <<_ACEOF 9644/* end confdefs.h. */ 9645 9646#include <vis.h> 9647 9648 9649int 9650main () 9651{ 9652#ifndef VIS_WHITE 9653 (void) VIS_WHITE; 9654#endif 9655 9656 ; 9657 return 0; 9658} 9659_ACEOF 9660rm -f conftest.$ac_objext 9661if { (ac_try="$ac_compile" 9662case "(($ac_try" in 9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9664 *) ac_try_echo=$ac_try;; 9665esac 9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9667 (eval "$ac_compile") 2>conftest.er1 9668 ac_status=$? 9669 grep -v '^ *+' conftest.er1 >conftest.err 9670 rm -f conftest.er1 9671 cat conftest.err >&5 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 (exit $ac_status); } && { 9674 test -z "$ac_c_werror_flag" || 9675 test ! -s conftest.err 9676 } && test -s conftest.$ac_objext; then 9677 ac_cv_have_decl_VIS_WHITE=yes 9678else 9679 echo "$as_me: failed program was:" >&5 9680sed 's/^/| /' conftest.$ac_ext >&5 9681 9682 ac_cv_have_decl_VIS_WHITE=no 9683fi 9684 9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9686fi 9687{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_VIS_WHITE" >&5 9688echo "${ECHO_T}$ac_cv_have_decl_VIS_WHITE" >&6; } 9689 9690fi 9691 9692 9693# Build libnetbsd if necessary. 9694# 9695if test -n "$LIBOBJS"; then 9696 INCLUDES="$INCLUDES -I\${srcdir}/../libnetbsd" 9697 LDFLAGS="$LDFLAGS -L../libnetbsd" 9698 LIBS="$LIBS -lnetbsd" 9699 LIBNETBSD=libnetbsd.a 9700 LIBDEPENDS="$LIBDEPENDS ../libnetbsd/libnetbsd.a" 9701fi 9702 9703 9704# 9705# Create the Makefiles. 9706# 9707 9708 9709 9710 9711 9712ac_config_files="$ac_config_files Makefile libedit/Makefile libedit/makelist libnetbsd/Makefile src/Makefile" 9713 9714 9715cat >confcache <<\_ACEOF 9716# This file is a shell script that caches the results of configure 9717# tests run on this system so they can be shared between configure 9718# scripts and configure runs, see configure's option --config-cache. 9719# It is not useful on other systems. If it contains results you don't 9720# want to keep, you may remove or edit it. 9721# 9722# config.status only pays attention to the cache file if you give it 9723# the --recheck option to rerun configure. 9724# 9725# `ac_cv_env_foo' variables (set or unset) will be overridden when 9726# loading this file, other *unset* `ac_cv_foo' will be assigned the 9727# following values. 9728 9729_ACEOF 9730 9731# The following way of writing the cache mishandles newlines in values, 9732# but we know of no workaround that is simple, portable, and efficient. 9733# So, we kill variables containing newlines. 9734# Ultrix sh set writes to stderr and can't be redirected directly, 9735# and sets the high bit in the cache file unless we assign to the vars. 9736( 9737 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9738 eval ac_val=\$$ac_var 9739 case $ac_val in #( 9740 *${as_nl}*) 9741 case $ac_var in #( 9742 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 9743echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 9744 esac 9745 case $ac_var in #( 9746 _ | IFS | as_nl) ;; #( 9747 *) $as_unset $ac_var ;; 9748 esac ;; 9749 esac 9750 done 9751 9752 (set) 2>&1 | 9753 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9754 *${as_nl}ac_space=\ *) 9755 # `set' does not quote correctly, so add quotes (double-quote 9756 # substitution turns \\\\ into \\, and sed turns \\ into \). 9757 sed -n \ 9758 "s/'/'\\\\''/g; 9759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9760 ;; #( 9761 *) 9762 # `set' quotes correctly as required by POSIX, so do not add quotes. 9763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9764 ;; 9765 esac | 9766 sort 9767) | 9768 sed ' 9769 /^ac_cv_env_/b end 9770 t clear 9771 :clear 9772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9773 t end 9774 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9775 :end' >>confcache 9776if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9777 if test -w "$cache_file"; then 9778 test "x$cache_file" != "x/dev/null" && 9779 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 9780echo "$as_me: updating cache $cache_file" >&6;} 9781 cat confcache >$cache_file 9782 else 9783 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 9784echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9785 fi 9786fi 9787rm -f confcache 9788 9789test "x$prefix" = xNONE && prefix=$ac_default_prefix 9790# Let make expand exec_prefix. 9791test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9792 9793DEFS=-DHAVE_CONFIG_H 9794 9795ac_libobjs= 9796ac_ltlibobjs= 9797for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9798 # 1. Remove the extension, and $U if already installed. 9799 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9800 ac_i=`echo "$ac_i" | sed "$ac_script"` 9801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9802 # will be set to the directory where LIBOBJS objects are built. 9803 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9804 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 9805done 9806LIBOBJS=$ac_libobjs 9807 9808LTLIBOBJS=$ac_ltlibobjs 9809 9810 9811 9812: ${CONFIG_STATUS=./config.status} 9813ac_clean_files_save=$ac_clean_files 9814ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9815{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 9816echo "$as_me: creating $CONFIG_STATUS" >&6;} 9817cat >$CONFIG_STATUS <<_ACEOF 9818#! $SHELL 9819# Generated by $as_me. 9820# Run this file to recreate the current configuration. 9821# Compiler output produced by configure, useful for debugging 9822# configure, is in config.log if it exists. 9823 9824debug=false 9825ac_cs_recheck=false 9826ac_cs_silent=false 9827SHELL=\${CONFIG_SHELL-$SHELL} 9828_ACEOF 9829 9830cat >>$CONFIG_STATUS <<\_ACEOF 9831## --------------------- ## 9832## M4sh Initialization. ## 9833## --------------------- ## 9834 9835# Be more Bourne compatible 9836DUALCASE=1; export DUALCASE # for MKS sh 9837if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9838 emulate sh 9839 NULLCMD=: 9840 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 9841 # is contrary to our usage. Disable this feature. 9842 alias -g '${1+"$@"}'='"$@"' 9843 setopt NO_GLOB_SUBST 9844else 9845 case `(set -o) 2>/dev/null` in 9846 *posix*) set -o posix ;; 9847esac 9848 9849fi 9850 9851 9852 9853 9854# PATH needs CR 9855# Avoid depending upon Character Ranges. 9856as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9857as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9858as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9859as_cr_digits='0123456789' 9860as_cr_alnum=$as_cr_Letters$as_cr_digits 9861 9862# The user is always right. 9863if test "${PATH_SEPARATOR+set}" != set; then 9864 echo "#! /bin/sh" >conf$$.sh 9865 echo "exit 0" >>conf$$.sh 9866 chmod +x conf$$.sh 9867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 9868 PATH_SEPARATOR=';' 9869 else 9870 PATH_SEPARATOR=: 9871 fi 9872 rm -f conf$$.sh 9873fi 9874 9875# Support unset when possible. 9876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9877 as_unset=unset 9878else 9879 as_unset=false 9880fi 9881 9882 9883# IFS 9884# We need space, tab and new line, in precisely that order. Quoting is 9885# there to prevent editors from complaining about space-tab. 9886# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9887# splitting by setting IFS to empty value.) 9888as_nl=' 9889' 9890IFS=" "" $as_nl" 9891 9892# Find who we are. Look in the path if we contain no directory separator. 9893case $0 in 9894 *[\\/]* ) as_myself=$0 ;; 9895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9896for as_dir in $PATH 9897do 9898 IFS=$as_save_IFS 9899 test -z "$as_dir" && as_dir=. 9900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9901done 9902IFS=$as_save_IFS 9903 9904 ;; 9905esac 9906# We did not find ourselves, most probably we were run as `sh COMMAND' 9907# in which case we are not to be found in the path. 9908if test "x$as_myself" = x; then 9909 as_myself=$0 9910fi 9911if test ! -f "$as_myself"; then 9912 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9913 { (exit 1); exit 1; } 9914fi 9915 9916# Work around bugs in pre-3.0 UWIN ksh. 9917for as_var in ENV MAIL MAILPATH 9918do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 9919done 9920PS1='$ ' 9921PS2='> ' 9922PS4='+ ' 9923 9924# NLS nuisances. 9925for as_var in \ 9926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 9927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 9928 LC_TELEPHONE LC_TIME 9929do 9930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 9931 eval $as_var=C; export $as_var 9932 else 9933 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 9934 fi 9935done 9936 9937# Required to use basename. 9938if expr a : '\(a\)' >/dev/null 2>&1 && 9939 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9940 as_expr=expr 9941else 9942 as_expr=false 9943fi 9944 9945if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9946 as_basename=basename 9947else 9948 as_basename=false 9949fi 9950 9951 9952# Name of the executable. 9953as_me=`$as_basename -- "$0" || 9954$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9955 X"$0" : 'X\(//\)$' \| \ 9956 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9957echo X/"$0" | 9958 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9959 s//\1/ 9960 q 9961 } 9962 /^X\/\(\/\/\)$/{ 9963 s//\1/ 9964 q 9965 } 9966 /^X\/\(\/\).*/{ 9967 s//\1/ 9968 q 9969 } 9970 s/.*/./; q'` 9971 9972# CDPATH. 9973$as_unset CDPATH 9974 9975 9976 9977 as_lineno_1=$LINENO 9978 as_lineno_2=$LINENO 9979 test "x$as_lineno_1" != "x$as_lineno_2" && 9980 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 9981 9982 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9983 # uniformly replaced by the line number. The first 'sed' inserts a 9984 # line-number line after each line using $LINENO; the second 'sed' 9985 # does the real work. The second script uses 'N' to pair each 9986 # line-number line with the line containing $LINENO, and appends 9987 # trailing '-' during substitution so that $LINENO is not a special 9988 # case at line end. 9989 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9990 # scripts with optimization help from Paolo Bonzini. Blame Lee 9991 # E. McMahon (1931-1989) for sed's syntax. :-) 9992 sed -n ' 9993 p 9994 /[$]LINENO/= 9995 ' <$as_myself | 9996 sed ' 9997 s/[$]LINENO.*/&-/ 9998 t lineno 9999 b 10000 :lineno 10001 N 10002 :loop 10003 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10004 t loop 10005 s/-\n.*// 10006 ' >$as_me.lineno && 10007 chmod +x "$as_me.lineno" || 10008 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10009 { (exit 1); exit 1; }; } 10010 10011 # Don't try to exec as it changes $[0], causing all sort of problems 10012 # (the dirname of $[0] is not the place where we might find the 10013 # original and so on. Autoconf is especially sensitive to this). 10014 . "./$as_me.lineno" 10015 # Exit status is that of the last command. 10016 exit 10017} 10018 10019 10020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10021 as_dirname=dirname 10022else 10023 as_dirname=false 10024fi 10025 10026ECHO_C= ECHO_N= ECHO_T= 10027case `echo -n x` in 10028-n*) 10029 case `echo 'x\c'` in 10030 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10031 *) ECHO_C='\c';; 10032 esac;; 10033*) 10034 ECHO_N='-n';; 10035esac 10036 10037if expr a : '\(a\)' >/dev/null 2>&1 && 10038 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10039 as_expr=expr 10040else 10041 as_expr=false 10042fi 10043 10044rm -f conf$$ conf$$.exe conf$$.file 10045if test -d conf$$.dir; then 10046 rm -f conf$$.dir/conf$$.file 10047else 10048 rm -f conf$$.dir 10049 mkdir conf$$.dir 10050fi 10051echo >conf$$.file 10052if ln -s conf$$.file conf$$ 2>/dev/null; then 10053 as_ln_s='ln -s' 10054 # ... but there are two gotchas: 10055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10057 # In both cases, we have to default to `cp -p'. 10058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10059 as_ln_s='cp -p' 10060elif ln conf$$.file conf$$ 2>/dev/null; then 10061 as_ln_s=ln 10062else 10063 as_ln_s='cp -p' 10064fi 10065rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10066rmdir conf$$.dir 2>/dev/null 10067 10068if mkdir -p . 2>/dev/null; then 10069 as_mkdir_p=: 10070else 10071 test -d ./-p && rmdir ./-p 10072 as_mkdir_p=false 10073fi 10074 10075if test -x / >/dev/null 2>&1; then 10076 as_test_x='test -x' 10077else 10078 if ls -dL / >/dev/null 2>&1; then 10079 as_ls_L_option=L 10080 else 10081 as_ls_L_option= 10082 fi 10083 as_test_x=' 10084 eval sh -c '\'' 10085 if test -d "$1"; then 10086 test -d "$1/."; 10087 else 10088 case $1 in 10089 -*)set "./$1";; 10090 esac; 10091 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10092 ???[sx]*):;;*)false;;esac;fi 10093 '\'' sh 10094 ' 10095fi 10096as_executable_p=$as_test_x 10097 10098# Sed expression to map a string onto a valid CPP name. 10099as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10100 10101# Sed expression to map a string onto a valid variable name. 10102as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10103 10104 10105exec 6>&1 10106 10107# Save the log message, to keep $[0] and so on meaningful, and to 10108# report actual input values of CONFIG_FILES etc. instead of their 10109# values after options handling. 10110ac_log=" 10111This file was extended by tnftp $as_me 20070806, which was 10112generated by GNU Autoconf 2.61. Invocation command line was 10113 10114 CONFIG_FILES = $CONFIG_FILES 10115 CONFIG_HEADERS = $CONFIG_HEADERS 10116 CONFIG_LINKS = $CONFIG_LINKS 10117 CONFIG_COMMANDS = $CONFIG_COMMANDS 10118 $ $0 $@ 10119 10120on `(hostname || uname -n) 2>/dev/null | sed 1q` 10121" 10122 10123_ACEOF 10124 10125cat >>$CONFIG_STATUS <<_ACEOF 10126# Files that config.status was made for. 10127config_files="$ac_config_files" 10128config_headers="$ac_config_headers" 10129 10130_ACEOF 10131 10132cat >>$CONFIG_STATUS <<\_ACEOF 10133ac_cs_usage="\ 10134\`$as_me' instantiates files from templates according to the 10135current configuration. 10136 10137Usage: $0 [OPTIONS] [FILE]... 10138 10139 -h, --help print this help, then exit 10140 -V, --version print version number and configuration settings, then exit 10141 -q, --quiet do not print progress messages 10142 -d, --debug don't remove temporary files 10143 --recheck update $as_me by reconfiguring in the same conditions 10144 --file=FILE[:TEMPLATE] 10145 instantiate the configuration file FILE 10146 --header=FILE[:TEMPLATE] 10147 instantiate the configuration header FILE 10148 10149Configuration files: 10150$config_files 10151 10152Configuration headers: 10153$config_headers 10154 10155Report bugs to <bug-autoconf@gnu.org>." 10156 10157_ACEOF 10158cat >>$CONFIG_STATUS <<_ACEOF 10159ac_cs_version="\\ 10160tnftp config.status 20070806 10161configured by $0, generated by GNU Autoconf 2.61, 10162 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10163 10164Copyright (C) 2006 Free Software Foundation, Inc. 10165This config.status script is free software; the Free Software Foundation 10166gives unlimited permission to copy, distribute and modify it." 10167 10168ac_pwd='$ac_pwd' 10169srcdir='$srcdir' 10170INSTALL='$INSTALL' 10171_ACEOF 10172 10173cat >>$CONFIG_STATUS <<\_ACEOF 10174# If no file are specified by the user, then we need to provide default 10175# value. By we need to know if files were specified by the user. 10176ac_need_defaults=: 10177while test $# != 0 10178do 10179 case $1 in 10180 --*=*) 10181 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10183 ac_shift=: 10184 ;; 10185 *) 10186 ac_option=$1 10187 ac_optarg=$2 10188 ac_shift=shift 10189 ;; 10190 esac 10191 10192 case $ac_option in 10193 # Handling of the options. 10194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10195 ac_cs_recheck=: ;; 10196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10197 echo "$ac_cs_version"; exit ;; 10198 --debug | --debu | --deb | --de | --d | -d ) 10199 debug=: ;; 10200 --file | --fil | --fi | --f ) 10201 $ac_shift 10202 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10203 ac_need_defaults=false;; 10204 --header | --heade | --head | --hea ) 10205 $ac_shift 10206 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 10207 ac_need_defaults=false;; 10208 --he | --h) 10209 # Conflict between --help and --header 10210 { echo "$as_me: error: ambiguous option: $1 10211Try \`$0 --help' for more information." >&2 10212 { (exit 1); exit 1; }; };; 10213 --help | --hel | -h ) 10214 echo "$ac_cs_usage"; exit ;; 10215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10216 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10217 ac_cs_silent=: ;; 10218 10219 # This is an error. 10220 -*) { echo "$as_me: error: unrecognized option: $1 10221Try \`$0 --help' for more information." >&2 10222 { (exit 1); exit 1; }; } ;; 10223 10224 *) ac_config_targets="$ac_config_targets $1" 10225 ac_need_defaults=false ;; 10226 10227 esac 10228 shift 10229done 10230 10231ac_configure_extra_args= 10232 10233if $ac_cs_silent; then 10234 exec 6>/dev/null 10235 ac_configure_extra_args="$ac_configure_extra_args --silent" 10236fi 10237 10238_ACEOF 10239cat >>$CONFIG_STATUS <<_ACEOF 10240if \$ac_cs_recheck; then 10241 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10242 CONFIG_SHELL=$SHELL 10243 export CONFIG_SHELL 10244 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10245fi 10246 10247_ACEOF 10248cat >>$CONFIG_STATUS <<\_ACEOF 10249exec 5>>config.log 10250{ 10251 echo 10252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10253## Running $as_me. ## 10254_ASBOX 10255 echo "$ac_log" 10256} >&5 10257 10258_ACEOF 10259cat >>$CONFIG_STATUS <<_ACEOF 10260_ACEOF 10261 10262cat >>$CONFIG_STATUS <<\_ACEOF 10263 10264# Handling of arguments. 10265for ac_config_target in $ac_config_targets 10266do 10267 case $ac_config_target in 10268 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10269 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10270 "libedit/Makefile") CONFIG_FILES="$CONFIG_FILES libedit/Makefile" ;; 10271 "libedit/makelist") CONFIG_FILES="$CONFIG_FILES libedit/makelist" ;; 10272 "libnetbsd/Makefile") CONFIG_FILES="$CONFIG_FILES libnetbsd/Makefile" ;; 10273 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10274 10275 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10276echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10277 { (exit 1); exit 1; }; };; 10278 esac 10279done 10280 10281 10282# If the user did not use the arguments to specify the items to instantiate, 10283# then the envvar interface is used. Set only those that are not. 10284# We use the long form for the default assignment because of an extremely 10285# bizarre bug on SunOS 4.1.3. 10286if $ac_need_defaults; then 10287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10289fi 10290 10291# Have a temporary directory for convenience. Make it in the build tree 10292# simply because there is no reason against having it here, and in addition, 10293# creating and moving files from /tmp can sometimes cause problems. 10294# Hook for its removal unless debugging. 10295# Note that there is a small window in which the directory will not be cleaned: 10296# after its creation but before its name has been assigned to `$tmp'. 10297$debug || 10298{ 10299 tmp= 10300 trap 'exit_status=$? 10301 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10302' 0 10303 trap '{ (exit 1); exit 1; }' 1 2 13 15 10304} 10305# Create a (secure) tmp directory for tmp files. 10306 10307{ 10308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10309 test -n "$tmp" && test -d "$tmp" 10310} || 10311{ 10312 tmp=./conf$$-$RANDOM 10313 (umask 077 && mkdir "$tmp") 10314} || 10315{ 10316 echo "$me: cannot create a temporary directory in ." >&2 10317 { (exit 1); exit 1; } 10318} 10319 10320# 10321# Set up the sed scripts for CONFIG_FILES section. 10322# 10323 10324# No need to generate the scripts if there are no CONFIG_FILES. 10325# This happens for instance when ./config.status config.h 10326if test -n "$CONFIG_FILES"; then 10327 10328_ACEOF 10329 10330 10331 10332ac_delim='%!_!# ' 10333for ac_last_try in false false false false false :; do 10334 cat >conf$$subs.sed <<_ACEOF 10335SHELL!$SHELL$ac_delim 10336PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 10337PACKAGE_NAME!$PACKAGE_NAME$ac_delim 10338PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 10339PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 10340PACKAGE_STRING!$PACKAGE_STRING$ac_delim 10341PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 10342exec_prefix!$exec_prefix$ac_delim 10343prefix!$prefix$ac_delim 10344program_transform_name!$program_transform_name$ac_delim 10345bindir!$bindir$ac_delim 10346sbindir!$sbindir$ac_delim 10347libexecdir!$libexecdir$ac_delim 10348datarootdir!$datarootdir$ac_delim 10349datadir!$datadir$ac_delim 10350sysconfdir!$sysconfdir$ac_delim 10351sharedstatedir!$sharedstatedir$ac_delim 10352localstatedir!$localstatedir$ac_delim 10353includedir!$includedir$ac_delim 10354oldincludedir!$oldincludedir$ac_delim 10355docdir!$docdir$ac_delim 10356infodir!$infodir$ac_delim 10357htmldir!$htmldir$ac_delim 10358dvidir!$dvidir$ac_delim 10359pdfdir!$pdfdir$ac_delim 10360psdir!$psdir$ac_delim 10361libdir!$libdir$ac_delim 10362localedir!$localedir$ac_delim 10363mandir!$mandir$ac_delim 10364DEFS!$DEFS$ac_delim 10365ECHO_C!$ECHO_C$ac_delim 10366ECHO_N!$ECHO_N$ac_delim 10367ECHO_T!$ECHO_T$ac_delim 10368LIBS!$LIBS$ac_delim 10369build_alias!$build_alias$ac_delim 10370host_alias!$host_alias$ac_delim 10371target_alias!$target_alias$ac_delim 10372build!$build$ac_delim 10373build_cpu!$build_cpu$ac_delim 10374build_vendor!$build_vendor$ac_delim 10375build_os!$build_os$ac_delim 10376host!$host$ac_delim 10377host_cpu!$host_cpu$ac_delim 10378host_vendor!$host_vendor$ac_delim 10379host_os!$host_os$ac_delim 10380target!$target$ac_delim 10381target_cpu!$target_cpu$ac_delim 10382target_vendor!$target_vendor$ac_delim 10383target_os!$target_os$ac_delim 10384SET_MAKE!$SET_MAKE$ac_delim 10385CC!$CC$ac_delim 10386CFLAGS!$CFLAGS$ac_delim 10387LDFLAGS!$LDFLAGS$ac_delim 10388CPPFLAGS!$CPPFLAGS$ac_delim 10389ac_ct_CC!$ac_ct_CC$ac_delim 10390EXEEXT!$EXEEXT$ac_delim 10391OBJEXT!$OBJEXT$ac_delim 10392AWK!$AWK$ac_delim 10393INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 10394INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 10395INSTALL_DATA!$INSTALL_DATA$ac_delim 10396AR!$AR$ac_delim 10397RANLIB!$RANLIB$ac_delim 10398CPP!$CPP$ac_delim 10399GREP!$GREP$ac_delim 10400EGREP!$EGREP$ac_delim 10401ALLOCA!$ALLOCA$ac_delim 10402LIBOBJS!$LIBOBJS$ac_delim 10403INCLUDES!$INCLUDES$ac_delim 10404LIBEDIT!$LIBEDIT$ac_delim 10405LIBNETBSD!$LIBNETBSD$ac_delim 10406LIBDEPENDS!$LIBDEPENDS$ac_delim 10407LTLIBOBJS!$LTLIBOBJS$ac_delim 10408_ACEOF 10409 10410 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then 10411 break 10412 elif $ac_last_try; then 10413 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10414echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10415 { (exit 1); exit 1; }; } 10416 else 10417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10418 fi 10419done 10420 10421ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 10422if test -n "$ac_eof"; then 10423 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 10424 ac_eof=`expr $ac_eof + 1` 10425fi 10426 10427cat >>$CONFIG_STATUS <<_ACEOF 10428cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 10429/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 10430_ACEOF 10431sed ' 10432s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 10433s/^/s,@/; s/!/@,|#_!!_#|/ 10434:n 10435t n 10436s/'"$ac_delim"'$/,g/; t 10437s/$/\\/; p 10438N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 10439' >>$CONFIG_STATUS <conf$$subs.sed 10440rm -f conf$$subs.sed 10441cat >>$CONFIG_STATUS <<_ACEOF 10442:end 10443s/|#_!!_#|//g 10444CEOF$ac_eof 10445_ACEOF 10446 10447 10448# VPATH may cause trouble with some makes, so we remove $(srcdir), 10449# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10450# trailing colons and then remove the whole line if VPATH becomes empty 10451# (actually we leave an empty line to preserve line numbers). 10452if test "x$srcdir" = x.; then 10453 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10454s/:*\$(srcdir):*/:/ 10455s/:*\${srcdir}:*/:/ 10456s/:*@srcdir@:*/:/ 10457s/^\([^=]*=[ ]*\):*/\1/ 10458s/:*$// 10459s/^[^=]*=[ ]*$// 10460}' 10461fi 10462 10463cat >>$CONFIG_STATUS <<\_ACEOF 10464fi # test -n "$CONFIG_FILES" 10465 10466 10467for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 10468do 10469 case $ac_tag in 10470 :[FHLC]) ac_mode=$ac_tag; continue;; 10471 esac 10472 case $ac_mode$ac_tag in 10473 :[FHL]*:*);; 10474 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 10475echo "$as_me: error: Invalid tag $ac_tag." >&2;} 10476 { (exit 1); exit 1; }; };; 10477 :[FH]-) ac_tag=-:-;; 10478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10479 esac 10480 ac_save_IFS=$IFS 10481 IFS=: 10482 set x $ac_tag 10483 IFS=$ac_save_IFS 10484 shift 10485 ac_file=$1 10486 shift 10487 10488 case $ac_mode in 10489 :L) ac_source=$1;; 10490 :[FH]) 10491 ac_file_inputs= 10492 for ac_f 10493 do 10494 case $ac_f in 10495 -) ac_f="$tmp/stdin";; 10496 *) # Look for the file first in the build tree, then in the source tree 10497 # (if the path is not absolute). The absolute path cannot be DOS-style, 10498 # because $ac_f cannot contain `:'. 10499 test -f "$ac_f" || 10500 case $ac_f in 10501 [\\/$]*) false;; 10502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10503 esac || 10504 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 10505echo "$as_me: error: cannot find input file: $ac_f" >&2;} 10506 { (exit 1); exit 1; }; };; 10507 esac 10508 ac_file_inputs="$ac_file_inputs $ac_f" 10509 done 10510 10511 # Let's still pretend it is `configure' which instantiates (i.e., don't 10512 # use $as_me), people would be surprised to read: 10513 # /* config.h. Generated by config.status. */ 10514 configure_input="Generated from "`IFS=: 10515 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 10516 if test x"$ac_file" != x-; then 10517 configure_input="$ac_file. $configure_input" 10518 { echo "$as_me:$LINENO: creating $ac_file" >&5 10519echo "$as_me: creating $ac_file" >&6;} 10520 fi 10521 10522 case $ac_tag in 10523 *:-:* | *:-) cat >"$tmp/stdin";; 10524 esac 10525 ;; 10526 esac 10527 10528 ac_dir=`$as_dirname -- "$ac_file" || 10529$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10530 X"$ac_file" : 'X\(//\)[^/]' \| \ 10531 X"$ac_file" : 'X\(//\)$' \| \ 10532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10533echo X"$ac_file" | 10534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10535 s//\1/ 10536 q 10537 } 10538 /^X\(\/\/\)[^/].*/{ 10539 s//\1/ 10540 q 10541 } 10542 /^X\(\/\/\)$/{ 10543 s//\1/ 10544 q 10545 } 10546 /^X\(\/\).*/{ 10547 s//\1/ 10548 q 10549 } 10550 s/.*/./; q'` 10551 { as_dir="$ac_dir" 10552 case $as_dir in #( 10553 -*) as_dir=./$as_dir;; 10554 esac 10555 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 10556 as_dirs= 10557 while :; do 10558 case $as_dir in #( 10559 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 10560 *) as_qdir=$as_dir;; 10561 esac 10562 as_dirs="'$as_qdir' $as_dirs" 10563 as_dir=`$as_dirname -- "$as_dir" || 10564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10565 X"$as_dir" : 'X\(//\)[^/]' \| \ 10566 X"$as_dir" : 'X\(//\)$' \| \ 10567 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10568echo X"$as_dir" | 10569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10570 s//\1/ 10571 q 10572 } 10573 /^X\(\/\/\)[^/].*/{ 10574 s//\1/ 10575 q 10576 } 10577 /^X\(\/\/\)$/{ 10578 s//\1/ 10579 q 10580 } 10581 /^X\(\/\).*/{ 10582 s//\1/ 10583 q 10584 } 10585 s/.*/./; q'` 10586 test -d "$as_dir" && break 10587 done 10588 test -z "$as_dirs" || eval "mkdir $as_dirs" 10589 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 10590echo "$as_me: error: cannot create directory $as_dir" >&2;} 10591 { (exit 1); exit 1; }; }; } 10592 ac_builddir=. 10593 10594case "$ac_dir" in 10595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10596*) 10597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10598 # A ".." for each directory in $ac_dir_suffix. 10599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 10600 case $ac_top_builddir_sub in 10601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10603 esac ;; 10604esac 10605ac_abs_top_builddir=$ac_pwd 10606ac_abs_builddir=$ac_pwd$ac_dir_suffix 10607# for backward compatibility: 10608ac_top_builddir=$ac_top_build_prefix 10609 10610case $srcdir in 10611 .) # We are building in place. 10612 ac_srcdir=. 10613 ac_top_srcdir=$ac_top_builddir_sub 10614 ac_abs_top_srcdir=$ac_pwd ;; 10615 [\\/]* | ?:[\\/]* ) # Absolute name. 10616 ac_srcdir=$srcdir$ac_dir_suffix; 10617 ac_top_srcdir=$srcdir 10618 ac_abs_top_srcdir=$srcdir ;; 10619 *) # Relative name. 10620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10621 ac_top_srcdir=$ac_top_build_prefix$srcdir 10622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10623esac 10624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10625 10626 10627 case $ac_mode in 10628 :F) 10629 # 10630 # CONFIG_FILE 10631 # 10632 10633 case $INSTALL in 10634 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10635 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10636 esac 10637_ACEOF 10638 10639cat >>$CONFIG_STATUS <<\_ACEOF 10640# If the template does not know about datarootdir, expand it. 10641# FIXME: This hack should be removed a few years after 2.60. 10642ac_datarootdir_hack=; ac_datarootdir_seen= 10643 10644case `sed -n '/datarootdir/ { 10645 p 10646 q 10647} 10648/@datadir@/p 10649/@docdir@/p 10650/@infodir@/p 10651/@localedir@/p 10652/@mandir@/p 10653' $ac_file_inputs` in 10654*datarootdir*) ac_datarootdir_seen=yes;; 10655*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10656 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10657echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10658_ACEOF 10659cat >>$CONFIG_STATUS <<_ACEOF 10660 ac_datarootdir_hack=' 10661 s&@datadir@&$datadir&g 10662 s&@docdir@&$docdir&g 10663 s&@infodir@&$infodir&g 10664 s&@localedir@&$localedir&g 10665 s&@mandir@&$mandir&g 10666 s&\\\${datarootdir}&$datarootdir&g' ;; 10667esac 10668_ACEOF 10669 10670# Neutralize VPATH when `$srcdir' = `.'. 10671# Shell code in configure.ac might set extrasub. 10672# FIXME: do we really want to maintain this feature? 10673cat >>$CONFIG_STATUS <<_ACEOF 10674 sed "$ac_vpsub 10675$extrasub 10676_ACEOF 10677cat >>$CONFIG_STATUS <<\_ACEOF 10678:t 10679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10680s&@configure_input@&$configure_input&;t t 10681s&@top_builddir@&$ac_top_builddir_sub&;t t 10682s&@srcdir@&$ac_srcdir&;t t 10683s&@abs_srcdir@&$ac_abs_srcdir&;t t 10684s&@top_srcdir@&$ac_top_srcdir&;t t 10685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10686s&@builddir@&$ac_builddir&;t t 10687s&@abs_builddir@&$ac_abs_builddir&;t t 10688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10689s&@INSTALL@&$ac_INSTALL&;t t 10690$ac_datarootdir_hack 10691" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 10692 10693test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10694 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 10695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 10696 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10697which seems to be undefined. Please make sure it is defined." >&5 10698echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10699which seems to be undefined. Please make sure it is defined." >&2;} 10700 10701 rm -f "$tmp/stdin" 10702 case $ac_file in 10703 -) cat "$tmp/out"; rm -f "$tmp/out";; 10704 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 10705 esac 10706 ;; 10707 :H) 10708 # 10709 # CONFIG_HEADER 10710 # 10711_ACEOF 10712 10713# Transform confdefs.h into a sed script `conftest.defines', that 10714# substitutes the proper values into config.h.in to produce config.h. 10715rm -f conftest.defines conftest.tail 10716# First, append a space to every undef/define line, to ease matching. 10717echo 's/$/ /' >conftest.defines 10718# Then, protect against being on the right side of a sed subst, or in 10719# an unquoted here document, in config.status. If some macros were 10720# called several times there might be several #defines for the same 10721# symbol, which is useless. But do not sort them, since the last 10722# AC_DEFINE must be honored. 10723ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10724# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 10725# NAME is the cpp macro being defined, VALUE is the value it is being given. 10726# PARAMS is the parameter list in the macro definition--in most cases, it's 10727# just an empty string. 10728ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 10729ac_dB='\\)[ (].*,\\1define\\2' 10730ac_dC=' ' 10731ac_dD=' ,' 10732 10733uniq confdefs.h | 10734 sed -n ' 10735 t rset 10736 :rset 10737 s/^[ ]*#[ ]*define[ ][ ]*// 10738 t ok 10739 d 10740 :ok 10741 s/[\\&,]/\\&/g 10742 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 10743 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 10744 ' >>conftest.defines 10745 10746# Remove the space that was appended to ease matching. 10747# Then replace #undef with comments. This is necessary, for 10748# example, in the case of _POSIX_SOURCE, which is predefined and required 10749# on some systems where configure will not decide to define it. 10750# (The regexp can be short, since the line contains either #define or #undef.) 10751echo 's/ $// 10752s,^[ #]*u.*,/* & */,' >>conftest.defines 10753 10754# Break up conftest.defines: 10755ac_max_sed_lines=50 10756 10757# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 10758# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 10759# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 10760# et cetera. 10761ac_in='$ac_file_inputs' 10762ac_out='"$tmp/out1"' 10763ac_nxt='"$tmp/out2"' 10764 10765while : 10766do 10767 # Write a here document: 10768 cat >>$CONFIG_STATUS <<_ACEOF 10769 # First, check the format of the line: 10770 cat >"\$tmp/defines.sed" <<\\CEOF 10771/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 10772/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 10773b 10774:def 10775_ACEOF 10776 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 10777 echo 'CEOF 10778 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 10779 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 10780 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 10781 grep . conftest.tail >/dev/null || break 10782 rm -f conftest.defines 10783 mv conftest.tail conftest.defines 10784done 10785rm -f conftest.defines conftest.tail 10786 10787echo "ac_result=$ac_in" >>$CONFIG_STATUS 10788cat >>$CONFIG_STATUS <<\_ACEOF 10789 if test x"$ac_file" != x-; then 10790 echo "/* $configure_input */" >"$tmp/config.h" 10791 cat "$ac_result" >>"$tmp/config.h" 10792 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 10793 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10794echo "$as_me: $ac_file is unchanged" >&6;} 10795 else 10796 rm -f $ac_file 10797 mv "$tmp/config.h" $ac_file 10798 fi 10799 else 10800 echo "/* $configure_input */" 10801 cat "$ac_result" 10802 fi 10803 rm -f "$tmp/out12" 10804 ;; 10805 10806 10807 esac 10808 10809done # for ac_tag 10810 10811 10812{ (exit 0); exit 0; } 10813_ACEOF 10814chmod +x $CONFIG_STATUS 10815ac_clean_files=$ac_clean_files_save 10816 10817 10818# configure is writing to config.log, and then calls config.status. 10819# config.status does its own redirection, appending to config.log. 10820# Unfortunately, on DOS this fails, as config.log is still kept open 10821# by configure, so config.status won't be able to write to it; its 10822# output is simply discarded. So we exec the FD to /dev/null, 10823# effectively closing config.log, so it can be properly (re)opened and 10824# appended to by config.status. When coming back to configure, we 10825# need to make the FD available again. 10826if test "$no_create" != yes; then 10827 ac_cs_success=: 10828 ac_config_status_args= 10829 test "$silent" = yes && 10830 ac_config_status_args="$ac_config_status_args --quiet" 10831 exec 5>/dev/null 10832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10833 exec 5>>config.log 10834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10835 # would make configure fail if this is the last instruction. 10836 $ac_cs_success || { (exit 1); exit 1; } 10837fi 10838 10839