1#! /bin/sh 2# From configure.in Revision: 1.169.2.3 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.57. 5# 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24 25# Support unset when possible. 26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="tcpdump.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837_ACEOF 838fi 839 840if test -n "$ac_init_help"; then 841 842 cat <<\_ACEOF 843 844Optional Features: 845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847 --enable-smb enable possibly-buggy SMB printer default=yes 848 --disable-smb disable possibly-buggy SMB printer 849 --enable-ipv6 enable ipv6 (with ipv4) support 850 --disable-ipv6 disable ipv6 support 851 852Optional Packages: 853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 855 --without-gcc don't use gcc 856 --without-crypto disable crypto support 857 858Some influential environment variables: 859 CC C compiler command 860 CFLAGS C compiler flags 861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 862 nonstandard directory <lib dir> 863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 864 headers in a nonstandard directory <include dir> 865 CPP C preprocessor 866 867Use these variables to override the choices made by `configure' or to help 868it to find libraries and programs with nonstandard names/locations. 869 870_ACEOF 871fi 872 873if test "$ac_init_help" = "recursive"; then 874 # If there are subdirs, report their specific --help. 875 ac_popdir=`pwd` 876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 877 test -d $ac_dir || continue 878 ac_builddir=. 879 880if test "$ac_dir" != .; then 881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 882 # A "../" for each directory in $ac_dir_suffix. 883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 884else 885 ac_dir_suffix= ac_top_builddir= 886fi 887 888case $srcdir in 889 .) # No --srcdir option. We are building in place. 890 ac_srcdir=. 891 if test -z "$ac_top_builddir"; then 892 ac_top_srcdir=. 893 else 894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 895 fi ;; 896 [\\/]* | ?:[\\/]* ) # Absolute path. 897 ac_srcdir=$srcdir$ac_dir_suffix; 898 ac_top_srcdir=$srcdir ;; 899 *) # Relative path. 900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 901 ac_top_srcdir=$ac_top_builddir$srcdir ;; 902esac 903# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 904# absolute. 905ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 906ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 907ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 908ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 909 910 cd $ac_dir 911 # Check for guested configure; otherwise get Cygnus style configure. 912 if test -f $ac_srcdir/configure.gnu; then 913 echo 914 $SHELL $ac_srcdir/configure.gnu --help=recursive 915 elif test -f $ac_srcdir/configure; then 916 echo 917 $SHELL $ac_srcdir/configure --help=recursive 918 elif test -f $ac_srcdir/configure.ac || 919 test -f $ac_srcdir/configure.in; then 920 echo 921 $ac_configure --help 922 else 923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 924 fi 925 cd $ac_popdir 926 done 927fi 928 929test -n "$ac_init_help" && exit 0 930if $ac_init_version; then 931 cat <<\_ACEOF 932 933Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 934Free Software Foundation, Inc. 935This configure script is free software; the Free Software Foundation 936gives unlimited permission to copy, distribute and modify it. 937_ACEOF 938 exit 0 939fi 940exec 5>config.log 941cat >&5 <<_ACEOF 942This file contains any messages produced by compilers while 943running configure, to aid debugging if configure makes a mistake. 944 945It was created by $as_me, which was 946generated by GNU Autoconf 2.57. Invocation command line was 947 948 $ $0 $@ 949 950_ACEOF 951{ 952cat <<_ASUNAME 953## --------- ## 954## Platform. ## 955## --------- ## 956 957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 958uname -m = `(uname -m) 2>/dev/null || echo unknown` 959uname -r = `(uname -r) 2>/dev/null || echo unknown` 960uname -s = `(uname -s) 2>/dev/null || echo unknown` 961uname -v = `(uname -v) 2>/dev/null || echo unknown` 962 963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 964/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 965 966/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 967/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 969hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 970/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 971/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 972/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 973 974_ASUNAME 975 976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 977for as_dir in $PATH 978do 979 IFS=$as_save_IFS 980 test -z "$as_dir" && as_dir=. 981 echo "PATH: $as_dir" 982done 983 984} >&5 985 986cat >&5 <<_ACEOF 987 988 989## ----------- ## 990## Core tests. ## 991## ----------- ## 992 993_ACEOF 994 995 996# Keep a trace of the command line. 997# Strip out --no-create and --no-recursion so they do not pile up. 998# Strip out --silent because we don't want to record it for future runs. 999# Also quote any args containing shell meta-characters. 1000# Make two passes to allow for proper duplicate-argument suppression. 1001ac_configure_args= 1002ac_configure_args0= 1003ac_configure_args1= 1004ac_sep= 1005ac_must_keep_next=false 1006for ac_pass in 1 2 1007do 1008 for ac_arg 1009 do 1010 case $ac_arg in 1011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1013 | -silent | --silent | --silen | --sile | --sil) 1014 continue ;; 1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1017 esac 1018 case $ac_pass in 1019 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1020 2) 1021 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1022 if test $ac_must_keep_next = true; then 1023 ac_must_keep_next=false # Got value, back to normal. 1024 else 1025 case $ac_arg in 1026 *=* | --config-cache | -C | -disable-* | --disable-* \ 1027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1029 | -with-* | --with-* | -without-* | --without-* | --x) 1030 case "$ac_configure_args0 " in 1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1032 esac 1033 ;; 1034 -* ) ac_must_keep_next=true ;; 1035 esac 1036 fi 1037 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1038 # Get rid of the leading space. 1039 ac_sep=" " 1040 ;; 1041 esac 1042 done 1043done 1044$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1045$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1046 1047# When interrupted or exit'd, cleanup temporary files, and complete 1048# config.log. We remove comments because anyway the quotes in there 1049# would cause problems or look ugly. 1050# WARNING: Be sure not to use single quotes in there, as some shells, 1051# such as our DU 5.0 friend, will then `close' the trap. 1052trap 'exit_status=$? 1053 # Save into config.log some information that might help in debugging. 1054 { 1055 echo 1056 1057 cat <<\_ASBOX 1058## ---------------- ## 1059## Cache variables. ## 1060## ---------------- ## 1061_ASBOX 1062 echo 1063 # The following way of writing the cache mishandles newlines in values, 1064{ 1065 (set) 2>&1 | 1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1067 *ac_space=\ *) 1068 sed -n \ 1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1071 ;; 1072 *) 1073 sed -n \ 1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1075 ;; 1076 esac; 1077} 1078 echo 1079 1080 cat <<\_ASBOX 1081## ----------------- ## 1082## Output variables. ## 1083## ----------------- ## 1084_ASBOX 1085 echo 1086 for ac_var in $ac_subst_vars 1087 do 1088 eval ac_val=$`echo $ac_var` 1089 echo "$ac_var='"'"'$ac_val'"'"'" 1090 done | sort 1091 echo 1092 1093 if test -n "$ac_subst_files"; then 1094 cat <<\_ASBOX 1095## ------------- ## 1096## Output files. ## 1097## ------------- ## 1098_ASBOX 1099 echo 1100 for ac_var in $ac_subst_files 1101 do 1102 eval ac_val=$`echo $ac_var` 1103 echo "$ac_var='"'"'$ac_val'"'"'" 1104 done | sort 1105 echo 1106 fi 1107 1108 if test -s confdefs.h; then 1109 cat <<\_ASBOX 1110## ----------- ## 1111## confdefs.h. ## 1112## ----------- ## 1113_ASBOX 1114 echo 1115 sed "/^$/d" confdefs.h | sort 1116 echo 1117 fi 1118 test "$ac_signal" != 0 && 1119 echo "$as_me: caught signal $ac_signal" 1120 echo "$as_me: exit $exit_status" 1121 } >&5 1122 rm -f core core.* *.core && 1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1124 exit $exit_status 1125 ' 0 1126for ac_signal in 1 2 13 15; do 1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1128done 1129ac_signal=0 1130 1131# confdefs.h avoids OS command line length limits that DEFS can exceed. 1132rm -rf conftest* confdefs.h 1133# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1134echo >confdefs.h 1135 1136# Predefined preprocessor variables. 1137 1138cat >>confdefs.h <<_ACEOF 1139#define PACKAGE_NAME "$PACKAGE_NAME" 1140_ACEOF 1141 1142 1143cat >>confdefs.h <<_ACEOF 1144#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1145_ACEOF 1146 1147 1148cat >>confdefs.h <<_ACEOF 1149#define PACKAGE_VERSION "$PACKAGE_VERSION" 1150_ACEOF 1151 1152 1153cat >>confdefs.h <<_ACEOF 1154#define PACKAGE_STRING "$PACKAGE_STRING" 1155_ACEOF 1156 1157 1158cat >>confdefs.h <<_ACEOF 1159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1160_ACEOF 1161 1162 1163# Let the site file select an alternate cache file if it wants to. 1164# Prefer explicitly selected file to automatically selected ones. 1165if test -z "$CONFIG_SITE"; then 1166 if test "x$prefix" != xNONE; then 1167 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1168 else 1169 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1170 fi 1171fi 1172for ac_site_file in $CONFIG_SITE; do 1173 if test -r "$ac_site_file"; then 1174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1175echo "$as_me: loading site script $ac_site_file" >&6;} 1176 sed 's/^/| /' "$ac_site_file" >&5 1177 . "$ac_site_file" 1178 fi 1179done 1180 1181if test -r "$cache_file"; then 1182 # Some versions of bash will fail to source /dev/null (special 1183 # files actually), so we avoid doing that. 1184 if test -f "$cache_file"; then 1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1186echo "$as_me: loading cache $cache_file" >&6;} 1187 case $cache_file in 1188 [\\/]* | ?:[\\/]* ) . $cache_file;; 1189 *) . ./$cache_file;; 1190 esac 1191 fi 1192else 1193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1194echo "$as_me: creating cache $cache_file" >&6;} 1195 >$cache_file 1196fi 1197 1198# Check that the precious variables saved in the cache have kept the same 1199# value. 1200ac_cache_corrupted=false 1201for ac_var in `(set) 2>&1 | 1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1203 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1204 eval ac_new_set=\$ac_env_${ac_var}_set 1205 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1206 eval ac_new_val="\$ac_env_${ac_var}_value" 1207 case $ac_old_set,$ac_new_set in 1208 set,) 1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1210echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1211 ac_cache_corrupted=: ;; 1212 ,set) 1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1214echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1215 ac_cache_corrupted=: ;; 1216 ,);; 1217 *) 1218 if test "x$ac_old_val" != "x$ac_new_val"; then 1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1220echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1222echo "$as_me: former value: $ac_old_val" >&2;} 1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1224echo "$as_me: current value: $ac_new_val" >&2;} 1225 ac_cache_corrupted=: 1226 fi;; 1227 esac 1228 # Pass precious variables to config.status. 1229 if test "$ac_new_set" = set; then 1230 case $ac_new_val in 1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1233 *) ac_arg=$ac_var=$ac_new_val ;; 1234 esac 1235 case " $ac_configure_args " in 1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1238 esac 1239 fi 1240done 1241if $ac_cache_corrupted; then 1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1243echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1245echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1246 { (exit 1); exit 1; }; } 1247fi 1248 1249ac_ext=c 1250ac_cpp='$CPP $CPPFLAGS' 1251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1253ac_compiler_gnu=$ac_cv_c_compiler_gnu 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274ac_aux_dir= 1275for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1276 if test -f $ac_dir/install-sh; then 1277 ac_aux_dir=$ac_dir 1278 ac_install_sh="$ac_aux_dir/install-sh -c" 1279 break 1280 elif test -f $ac_dir/install.sh; then 1281 ac_aux_dir=$ac_dir 1282 ac_install_sh="$ac_aux_dir/install.sh -c" 1283 break 1284 elif test -f $ac_dir/shtool; then 1285 ac_aux_dir=$ac_dir 1286 ac_install_sh="$ac_aux_dir/shtool install -c" 1287 break 1288 fi 1289done 1290if test -z "$ac_aux_dir"; then 1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1292echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1293 { (exit 1); exit 1; }; } 1294fi 1295ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1296ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1297ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1298 1299# Make sure we can run config.sub. 1300$ac_config_sub sun4 >/dev/null 2>&1 || 1301 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1302echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1303 { (exit 1); exit 1; }; } 1304 1305echo "$as_me:$LINENO: checking build system type" >&5 1306echo $ECHO_N "checking build system type... $ECHO_C" >&6 1307if test "${ac_cv_build+set}" = set; then 1308 echo $ECHO_N "(cached) $ECHO_C" >&6 1309else 1310 ac_cv_build_alias=$build_alias 1311test -z "$ac_cv_build_alias" && 1312 ac_cv_build_alias=`$ac_config_guess` 1313test -z "$ac_cv_build_alias" && 1314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1315echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1316 { (exit 1); exit 1; }; } 1317ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1318 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1319echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1320 { (exit 1); exit 1; }; } 1321 1322fi 1323echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1324echo "${ECHO_T}$ac_cv_build" >&6 1325build=$ac_cv_build 1326build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1327build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1328build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1329 1330 1331echo "$as_me:$LINENO: checking host system type" >&5 1332echo $ECHO_N "checking host system type... $ECHO_C" >&6 1333if test "${ac_cv_host+set}" = set; then 1334 echo $ECHO_N "(cached) $ECHO_C" >&6 1335else 1336 ac_cv_host_alias=$host_alias 1337test -z "$ac_cv_host_alias" && 1338 ac_cv_host_alias=$ac_cv_build_alias 1339ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1341echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1342 { (exit 1); exit 1; }; } 1343 1344fi 1345echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1346echo "${ECHO_T}$ac_cv_host" >&6 1347host=$ac_cv_host 1348host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1349host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1350host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1351 1352 1353 1354 1355 1356 1357 1358 1359# Check whether --with-gcc or --without-gcc was given. 1360if test "${with_gcc+set}" = set; then 1361 withval="$with_gcc" 1362 1363fi; 1364 V_CCOPT="-O" 1365 V_INCLS="" 1366 if test "${srcdir}" != "." ; then 1367 V_INCLS="-I\$(srcdir)" 1368 fi 1369 if test "${CFLAGS+set}" = set; then 1370 LBL_CFLAGS="$CFLAGS" 1371 fi 1372 if test -z "$CC" ; then 1373 case "$host_os" in 1374 1375 bsdi*) 1376 # Extract the first word of "shlicc2", so it can be a program name with args. 1377set dummy shlicc2; ac_word=$2 1378echo "$as_me:$LINENO: checking for $ac_word" >&5 1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1380if test "${ac_cv_prog_SHLICC2+set}" = set; then 1381 echo $ECHO_N "(cached) $ECHO_C" >&6 1382else 1383 if test -n "$SHLICC2"; then 1384 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1385else 1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1387for as_dir in $PATH 1388do 1389 IFS=$as_save_IFS 1390 test -z "$as_dir" && as_dir=. 1391 for ac_exec_ext in '' $ac_executable_extensions; do 1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1393 ac_cv_prog_SHLICC2="yes" 1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1395 break 2 1396 fi 1397done 1398done 1399 1400 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1401fi 1402fi 1403SHLICC2=$ac_cv_prog_SHLICC2 1404if test -n "$SHLICC2"; then 1405 echo "$as_me:$LINENO: result: $SHLICC2" >&5 1406echo "${ECHO_T}$SHLICC2" >&6 1407else 1408 echo "$as_me:$LINENO: result: no" >&5 1409echo "${ECHO_T}no" >&6 1410fi 1411 1412 if test $SHLICC2 = yes ; then 1413 CC=shlicc2 1414 export CC 1415 fi 1416 ;; 1417 esac 1418 fi 1419 if test -z "$CC" -a "$with_gcc" = no ; then 1420 CC=cc 1421 export CC 1422 fi 1423 ac_ext=c 1424ac_cpp='$CPP $CPPFLAGS' 1425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1427ac_compiler_gnu=$ac_cv_c_compiler_gnu 1428if test -n "$ac_tool_prefix"; then 1429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1430set dummy ${ac_tool_prefix}gcc; ac_word=$2 1431echo "$as_me:$LINENO: checking for $ac_word" >&5 1432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1433if test "${ac_cv_prog_CC+set}" = set; then 1434 echo $ECHO_N "(cached) $ECHO_C" >&6 1435else 1436 if test -n "$CC"; then 1437 ac_cv_prog_CC="$CC" # Let the user override the test. 1438else 1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1440for as_dir in $PATH 1441do 1442 IFS=$as_save_IFS 1443 test -z "$as_dir" && as_dir=. 1444 for ac_exec_ext in '' $ac_executable_extensions; do 1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1446 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1448 break 2 1449 fi 1450done 1451done 1452 1453fi 1454fi 1455CC=$ac_cv_prog_CC 1456if test -n "$CC"; then 1457 echo "$as_me:$LINENO: result: $CC" >&5 1458echo "${ECHO_T}$CC" >&6 1459else 1460 echo "$as_me:$LINENO: result: no" >&5 1461echo "${ECHO_T}no" >&6 1462fi 1463 1464fi 1465if test -z "$ac_cv_prog_CC"; then 1466 ac_ct_CC=$CC 1467 # Extract the first word of "gcc", so it can be a program name with args. 1468set dummy gcc; ac_word=$2 1469echo "$as_me:$LINENO: checking for $ac_word" >&5 1470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1472 echo $ECHO_N "(cached) $ECHO_C" >&6 1473else 1474 if test -n "$ac_ct_CC"; then 1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1476else 1477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1478for as_dir in $PATH 1479do 1480 IFS=$as_save_IFS 1481 test -z "$as_dir" && as_dir=. 1482 for ac_exec_ext in '' $ac_executable_extensions; do 1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1484 ac_cv_prog_ac_ct_CC="gcc" 1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1486 break 2 1487 fi 1488done 1489done 1490 1491fi 1492fi 1493ac_ct_CC=$ac_cv_prog_ac_ct_CC 1494if test -n "$ac_ct_CC"; then 1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1496echo "${ECHO_T}$ac_ct_CC" >&6 1497else 1498 echo "$as_me:$LINENO: result: no" >&5 1499echo "${ECHO_T}no" >&6 1500fi 1501 1502 CC=$ac_ct_CC 1503else 1504 CC="$ac_cv_prog_CC" 1505fi 1506 1507if test -z "$CC"; then 1508 if test -n "$ac_tool_prefix"; then 1509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1510set dummy ${ac_tool_prefix}cc; ac_word=$2 1511echo "$as_me:$LINENO: checking for $ac_word" >&5 1512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1513if test "${ac_cv_prog_CC+set}" = set; then 1514 echo $ECHO_N "(cached) $ECHO_C" >&6 1515else 1516 if test -n "$CC"; then 1517 ac_cv_prog_CC="$CC" # Let the user override the test. 1518else 1519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1520for as_dir in $PATH 1521do 1522 IFS=$as_save_IFS 1523 test -z "$as_dir" && as_dir=. 1524 for ac_exec_ext in '' $ac_executable_extensions; do 1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1526 ac_cv_prog_CC="${ac_tool_prefix}cc" 1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1528 break 2 1529 fi 1530done 1531done 1532 1533fi 1534fi 1535CC=$ac_cv_prog_CC 1536if test -n "$CC"; then 1537 echo "$as_me:$LINENO: result: $CC" >&5 1538echo "${ECHO_T}$CC" >&6 1539else 1540 echo "$as_me:$LINENO: result: no" >&5 1541echo "${ECHO_T}no" >&6 1542fi 1543 1544fi 1545if test -z "$ac_cv_prog_CC"; then 1546 ac_ct_CC=$CC 1547 # Extract the first word of "cc", so it can be a program name with args. 1548set dummy cc; ac_word=$2 1549echo "$as_me:$LINENO: checking for $ac_word" >&5 1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1552 echo $ECHO_N "(cached) $ECHO_C" >&6 1553else 1554 if test -n "$ac_ct_CC"; then 1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1556else 1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1558for as_dir in $PATH 1559do 1560 IFS=$as_save_IFS 1561 test -z "$as_dir" && as_dir=. 1562 for ac_exec_ext in '' $ac_executable_extensions; do 1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1564 ac_cv_prog_ac_ct_CC="cc" 1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1566 break 2 1567 fi 1568done 1569done 1570 1571fi 1572fi 1573ac_ct_CC=$ac_cv_prog_ac_ct_CC 1574if test -n "$ac_ct_CC"; then 1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1576echo "${ECHO_T}$ac_ct_CC" >&6 1577else 1578 echo "$as_me:$LINENO: result: no" >&5 1579echo "${ECHO_T}no" >&6 1580fi 1581 1582 CC=$ac_ct_CC 1583else 1584 CC="$ac_cv_prog_CC" 1585fi 1586 1587fi 1588if test -z "$CC"; then 1589 # Extract the first word of "cc", so it can be a program name with args. 1590set dummy cc; ac_word=$2 1591echo "$as_me:$LINENO: checking for $ac_word" >&5 1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1593if test "${ac_cv_prog_CC+set}" = set; then 1594 echo $ECHO_N "(cached) $ECHO_C" >&6 1595else 1596 if test -n "$CC"; then 1597 ac_cv_prog_CC="$CC" # Let the user override the test. 1598else 1599 ac_prog_rejected=no 1600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1601for as_dir in $PATH 1602do 1603 IFS=$as_save_IFS 1604 test -z "$as_dir" && as_dir=. 1605 for ac_exec_ext in '' $ac_executable_extensions; do 1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1608 ac_prog_rejected=yes 1609 continue 1610 fi 1611 ac_cv_prog_CC="cc" 1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1613 break 2 1614 fi 1615done 1616done 1617 1618if test $ac_prog_rejected = yes; then 1619 # We found a bogon in the path, so make sure we never use it. 1620 set dummy $ac_cv_prog_CC 1621 shift 1622 if test $# != 0; then 1623 # We chose a different compiler from the bogus one. 1624 # However, it has the same basename, so the bogon will be chosen 1625 # first if we set CC to just the basename; use the full file name. 1626 shift 1627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1628 fi 1629fi 1630fi 1631fi 1632CC=$ac_cv_prog_CC 1633if test -n "$CC"; then 1634 echo "$as_me:$LINENO: result: $CC" >&5 1635echo "${ECHO_T}$CC" >&6 1636else 1637 echo "$as_me:$LINENO: result: no" >&5 1638echo "${ECHO_T}no" >&6 1639fi 1640 1641fi 1642if test -z "$CC"; then 1643 if test -n "$ac_tool_prefix"; then 1644 for ac_prog in cl 1645 do 1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1647set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1648echo "$as_me:$LINENO: checking for $ac_word" >&5 1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1650if test "${ac_cv_prog_CC+set}" = set; then 1651 echo $ECHO_N "(cached) $ECHO_C" >&6 1652else 1653 if test -n "$CC"; then 1654 ac_cv_prog_CC="$CC" # Let the user override the test. 1655else 1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1657for as_dir in $PATH 1658do 1659 IFS=$as_save_IFS 1660 test -z "$as_dir" && as_dir=. 1661 for ac_exec_ext in '' $ac_executable_extensions; do 1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1665 break 2 1666 fi 1667done 1668done 1669 1670fi 1671fi 1672CC=$ac_cv_prog_CC 1673if test -n "$CC"; then 1674 echo "$as_me:$LINENO: result: $CC" >&5 1675echo "${ECHO_T}$CC" >&6 1676else 1677 echo "$as_me:$LINENO: result: no" >&5 1678echo "${ECHO_T}no" >&6 1679fi 1680 1681 test -n "$CC" && break 1682 done 1683fi 1684if test -z "$CC"; then 1685 ac_ct_CC=$CC 1686 for ac_prog in cl 1687do 1688 # Extract the first word of "$ac_prog", so it can be a program name with args. 1689set dummy $ac_prog; ac_word=$2 1690echo "$as_me:$LINENO: checking for $ac_word" >&5 1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1693 echo $ECHO_N "(cached) $ECHO_C" >&6 1694else 1695 if test -n "$ac_ct_CC"; then 1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1697else 1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1699for as_dir in $PATH 1700do 1701 IFS=$as_save_IFS 1702 test -z "$as_dir" && as_dir=. 1703 for ac_exec_ext in '' $ac_executable_extensions; do 1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1705 ac_cv_prog_ac_ct_CC="$ac_prog" 1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1707 break 2 1708 fi 1709done 1710done 1711 1712fi 1713fi 1714ac_ct_CC=$ac_cv_prog_ac_ct_CC 1715if test -n "$ac_ct_CC"; then 1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1717echo "${ECHO_T}$ac_ct_CC" >&6 1718else 1719 echo "$as_me:$LINENO: result: no" >&5 1720echo "${ECHO_T}no" >&6 1721fi 1722 1723 test -n "$ac_ct_CC" && break 1724done 1725 1726 CC=$ac_ct_CC 1727fi 1728 1729fi 1730 1731 1732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1733See \`config.log' for more details." >&5 1734echo "$as_me: error: no acceptable C compiler found in \$PATH 1735See \`config.log' for more details." >&2;} 1736 { (exit 1); exit 1; }; } 1737 1738# Provide some information about the compiler. 1739echo "$as_me:$LINENO:" \ 1740 "checking for C compiler version" >&5 1741ac_compiler=`set X $ac_compile; echo $2` 1742{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1743 (eval $ac_compiler --version </dev/null >&5) 2>&5 1744 ac_status=$? 1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1746 (exit $ac_status); } 1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1748 (eval $ac_compiler -v </dev/null >&5) 2>&5 1749 ac_status=$? 1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1751 (exit $ac_status); } 1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1753 (eval $ac_compiler -V </dev/null >&5) 2>&5 1754 ac_status=$? 1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1756 (exit $ac_status); } 1757 1758cat >conftest.$ac_ext <<_ACEOF 1759#line $LINENO "configure" 1760/* confdefs.h. */ 1761_ACEOF 1762cat confdefs.h >>conftest.$ac_ext 1763cat >>conftest.$ac_ext <<_ACEOF 1764/* end confdefs.h. */ 1765 1766int 1767main () 1768{ 1769 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774ac_clean_files_save=$ac_clean_files 1775ac_clean_files="$ac_clean_files a.out a.exe b.out" 1776# Try to create an executable without -o first, disregard a.out. 1777# It will help us diagnose broken compilers, and finding out an intuition 1778# of exeext. 1779echo "$as_me:$LINENO: checking for C compiler default output" >&5 1780echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1781ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1782if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1783 (eval $ac_link_default) 2>&5 1784 ac_status=$? 1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1786 (exit $ac_status); }; then 1787 # Find the output, starting from the most likely. This scheme is 1788# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1789# resort. 1790 1791# Be careful to initialize this variable, since it used to be cached. 1792# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1793ac_cv_exeext= 1794# b.out is created by i960 compilers. 1795for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1796do 1797 test -f "$ac_file" || continue 1798 case $ac_file in 1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1800 ;; 1801 conftest.$ac_ext ) 1802 # This is the source file. 1803 ;; 1804 [ab].out ) 1805 # We found the default executable, but exeext='' is most 1806 # certainly right. 1807 break;; 1808 *.* ) 1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1810 # FIXME: I believe we export ac_cv_exeext for Libtool, 1811 # but it would be cool to find out if it's true. Does anybody 1812 # maintain Libtool? --akim. 1813 export ac_cv_exeext 1814 break;; 1815 * ) 1816 break;; 1817 esac 1818done 1819else 1820 echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1824See \`config.log' for more details." >&5 1825echo "$as_me: error: C compiler cannot create executables 1826See \`config.log' for more details." >&2;} 1827 { (exit 77); exit 77; }; } 1828fi 1829 1830ac_exeext=$ac_cv_exeext 1831echo "$as_me:$LINENO: result: $ac_file" >&5 1832echo "${ECHO_T}$ac_file" >&6 1833 1834# Check the compiler produces executables we can run. If not, either 1835# the compiler is broken, or we cross compile. 1836echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1837echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1838# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1839# If not cross compiling, check that we can run a simple program. 1840if test "$cross_compiling" != yes; then 1841 if { ac_try='./$ac_file' 1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1843 (eval $ac_try) 2>&5 1844 ac_status=$? 1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1846 (exit $ac_status); }; }; then 1847 cross_compiling=no 1848 else 1849 if test "$cross_compiling" = maybe; then 1850 cross_compiling=yes 1851 else 1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1853If you meant to cross compile, use \`--host'. 1854See \`config.log' for more details." >&5 1855echo "$as_me: error: cannot run C compiled programs. 1856If you meant to cross compile, use \`--host'. 1857See \`config.log' for more details." >&2;} 1858 { (exit 1); exit 1; }; } 1859 fi 1860 fi 1861fi 1862echo "$as_me:$LINENO: result: yes" >&5 1863echo "${ECHO_T}yes" >&6 1864 1865rm -f a.out a.exe conftest$ac_cv_exeext b.out 1866ac_clean_files=$ac_clean_files_save 1867# Check the compiler produces executables we can run. If not, either 1868# the compiler is broken, or we cross compile. 1869echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1871echo "$as_me:$LINENO: result: $cross_compiling" >&5 1872echo "${ECHO_T}$cross_compiling" >&6 1873 1874echo "$as_me:$LINENO: checking for suffix of executables" >&5 1875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1877 (eval $ac_link) 2>&5 1878 ac_status=$? 1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1880 (exit $ac_status); }; then 1881 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1882# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1883# work properly (i.e., refer to `conftest.exe'), while it won't with 1884# `rm'. 1885for ac_file in conftest.exe conftest conftest.*; do 1886 test -f "$ac_file" || continue 1887 case $ac_file in 1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1890 export ac_cv_exeext 1891 break;; 1892 * ) break;; 1893 esac 1894done 1895else 1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1897See \`config.log' for more details." >&5 1898echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1899See \`config.log' for more details." >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903rm -f conftest$ac_cv_exeext 1904echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1905echo "${ECHO_T}$ac_cv_exeext" >&6 1906 1907rm -f conftest.$ac_ext 1908EXEEXT=$ac_cv_exeext 1909ac_exeext=$EXEEXT 1910echo "$as_me:$LINENO: checking for suffix of object files" >&5 1911echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1912if test "${ac_cv_objext+set}" = set; then 1913 echo $ECHO_N "(cached) $ECHO_C" >&6 1914else 1915 cat >conftest.$ac_ext <<_ACEOF 1916#line $LINENO "configure" 1917/* confdefs.h. */ 1918_ACEOF 1919cat confdefs.h >>conftest.$ac_ext 1920cat >>conftest.$ac_ext <<_ACEOF 1921/* end confdefs.h. */ 1922 1923int 1924main () 1925{ 1926 1927 ; 1928 return 0; 1929} 1930_ACEOF 1931rm -f conftest.o conftest.obj 1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1933 (eval $ac_compile) 2>&5 1934 ac_status=$? 1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1936 (exit $ac_status); }; then 1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1938 case $ac_file in 1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1941 break;; 1942 esac 1943done 1944else 1945 echo "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1949See \`config.log' for more details." >&5 1950echo "$as_me: error: cannot compute suffix of object files: cannot compile 1951See \`config.log' for more details." >&2;} 1952 { (exit 1); exit 1; }; } 1953fi 1954 1955rm -f conftest.$ac_cv_objext conftest.$ac_ext 1956fi 1957echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1958echo "${ECHO_T}$ac_cv_objext" >&6 1959OBJEXT=$ac_cv_objext 1960ac_objext=$OBJEXT 1961echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1962echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1963if test "${ac_cv_c_compiler_gnu+set}" = set; then 1964 echo $ECHO_N "(cached) $ECHO_C" >&6 1965else 1966 cat >conftest.$ac_ext <<_ACEOF 1967#line $LINENO "configure" 1968/* confdefs.h. */ 1969_ACEOF 1970cat confdefs.h >>conftest.$ac_ext 1971cat >>conftest.$ac_ext <<_ACEOF 1972/* end confdefs.h. */ 1973 1974int 1975main () 1976{ 1977#ifndef __GNUC__ 1978 choke me 1979#endif 1980 1981 ; 1982 return 0; 1983} 1984_ACEOF 1985rm -f conftest.$ac_objext 1986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1987 (eval $ac_compile) 2>&5 1988 ac_status=$? 1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1990 (exit $ac_status); } && 1991 { ac_try='test -s conftest.$ac_objext' 1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1993 (eval $ac_try) 2>&5 1994 ac_status=$? 1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1996 (exit $ac_status); }; }; then 1997 ac_compiler_gnu=yes 1998else 1999 echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002ac_compiler_gnu=no 2003fi 2004rm -f conftest.$ac_objext conftest.$ac_ext 2005ac_cv_c_compiler_gnu=$ac_compiler_gnu 2006 2007fi 2008echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2009echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2010GCC=`test $ac_compiler_gnu = yes && echo yes` 2011ac_test_CFLAGS=${CFLAGS+set} 2012ac_save_CFLAGS=$CFLAGS 2013CFLAGS="-g" 2014echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2015echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2016if test "${ac_cv_prog_cc_g+set}" = set; then 2017 echo $ECHO_N "(cached) $ECHO_C" >&6 2018else 2019 cat >conftest.$ac_ext <<_ACEOF 2020#line $LINENO "configure" 2021/* confdefs.h. */ 2022_ACEOF 2023cat confdefs.h >>conftest.$ac_ext 2024cat >>conftest.$ac_ext <<_ACEOF 2025/* end confdefs.h. */ 2026 2027int 2028main () 2029{ 2030 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035rm -f conftest.$ac_objext 2036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2037 (eval $ac_compile) 2>&5 2038 ac_status=$? 2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2040 (exit $ac_status); } && 2041 { ac_try='test -s conftest.$ac_objext' 2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2043 (eval $ac_try) 2>&5 2044 ac_status=$? 2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2046 (exit $ac_status); }; }; then 2047 ac_cv_prog_cc_g=yes 2048else 2049 echo "$as_me: failed program was:" >&5 2050sed 's/^/| /' conftest.$ac_ext >&5 2051 2052ac_cv_prog_cc_g=no 2053fi 2054rm -f conftest.$ac_objext conftest.$ac_ext 2055fi 2056echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2057echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2058if test "$ac_test_CFLAGS" = set; then 2059 CFLAGS=$ac_save_CFLAGS 2060elif test $ac_cv_prog_cc_g = yes; then 2061 if test "$GCC" = yes; then 2062 CFLAGS="-g -O2" 2063 else 2064 CFLAGS="-g" 2065 fi 2066else 2067 if test "$GCC" = yes; then 2068 CFLAGS="-O2" 2069 else 2070 CFLAGS= 2071 fi 2072fi 2073echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2074echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2075if test "${ac_cv_prog_cc_stdc+set}" = set; then 2076 echo $ECHO_N "(cached) $ECHO_C" >&6 2077else 2078 ac_cv_prog_cc_stdc=no 2079ac_save_CC=$CC 2080cat >conftest.$ac_ext <<_ACEOF 2081#line $LINENO "configure" 2082/* confdefs.h. */ 2083_ACEOF 2084cat confdefs.h >>conftest.$ac_ext 2085cat >>conftest.$ac_ext <<_ACEOF 2086/* end confdefs.h. */ 2087#include <stdarg.h> 2088#include <stdio.h> 2089#include <sys/types.h> 2090#include <sys/stat.h> 2091/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2092struct buf { int x; }; 2093FILE * (*rcsopen) (struct buf *, struct stat *, int); 2094static char *e (p, i) 2095 char **p; 2096 int i; 2097{ 2098 return p[i]; 2099} 2100static char *f (char * (*g) (char **, int), char **p, ...) 2101{ 2102 char *s; 2103 va_list v; 2104 va_start (v,p); 2105 s = g (p, va_arg (v,int)); 2106 va_end (v); 2107 return s; 2108} 2109int test (int i, double x); 2110struct s1 {int (*f) (int a);}; 2111struct s2 {int (*f) (double a);}; 2112int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2113int argc; 2114char **argv; 2115int 2116main () 2117{ 2118return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123# Don't try gcc -ansi; that turns off useful extensions and 2124# breaks some systems' header files. 2125# AIX -qlanglvl=ansi 2126# Ultrix and OSF/1 -std1 2127# HP-UX 10.20 and later -Ae 2128# HP-UX older versions -Aa -D_HPUX_SOURCE 2129# SVR4 -Xc -D__EXTENSIONS__ 2130for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2131do 2132 CC="$ac_save_CC $ac_arg" 2133 rm -f conftest.$ac_objext 2134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2135 (eval $ac_compile) 2>&5 2136 ac_status=$? 2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2138 (exit $ac_status); } && 2139 { ac_try='test -s conftest.$ac_objext' 2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2141 (eval $ac_try) 2>&5 2142 ac_status=$? 2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2144 (exit $ac_status); }; }; then 2145 ac_cv_prog_cc_stdc=$ac_arg 2146break 2147else 2148 echo "$as_me: failed program was:" >&5 2149sed 's/^/| /' conftest.$ac_ext >&5 2150 2151fi 2152rm -f conftest.$ac_objext 2153done 2154rm -f conftest.$ac_ext conftest.$ac_objext 2155CC=$ac_save_CC 2156 2157fi 2158 2159case "x$ac_cv_prog_cc_stdc" in 2160 x|xno) 2161 echo "$as_me:$LINENO: result: none needed" >&5 2162echo "${ECHO_T}none needed" >&6 ;; 2163 *) 2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2165echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2166 CC="$CC $ac_cv_prog_cc_stdc" ;; 2167esac 2168 2169# Some people use a C++ compiler to compile C. Since we use `exit', 2170# in C++ we need to declare it. In case someone uses the same compiler 2171# for both compiling C and C++ we need to have the C++ compiler decide 2172# the declaration of exit, since it's the most demanding environment. 2173cat >conftest.$ac_ext <<_ACEOF 2174#ifndef __cplusplus 2175 choke me 2176#endif 2177_ACEOF 2178rm -f conftest.$ac_objext 2179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2180 (eval $ac_compile) 2>&5 2181 ac_status=$? 2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2183 (exit $ac_status); } && 2184 { ac_try='test -s conftest.$ac_objext' 2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2186 (eval $ac_try) 2>&5 2187 ac_status=$? 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2189 (exit $ac_status); }; }; then 2190 for ac_declaration in \ 2191 ''\ 2192 '#include <stdlib.h>' \ 2193 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2194 'extern "C" void std::exit (int); using std::exit;' \ 2195 'extern "C" void exit (int) throw ();' \ 2196 'extern "C" void exit (int);' \ 2197 'void exit (int);' 2198do 2199 cat >conftest.$ac_ext <<_ACEOF 2200#line $LINENO "configure" 2201/* confdefs.h. */ 2202_ACEOF 2203cat confdefs.h >>conftest.$ac_ext 2204cat >>conftest.$ac_ext <<_ACEOF 2205/* end confdefs.h. */ 2206#include <stdlib.h> 2207$ac_declaration 2208int 2209main () 2210{ 2211exit (42); 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216rm -f conftest.$ac_objext 2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2218 (eval $ac_compile) 2>&5 2219 ac_status=$? 2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2221 (exit $ac_status); } && 2222 { ac_try='test -s conftest.$ac_objext' 2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2224 (eval $ac_try) 2>&5 2225 ac_status=$? 2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2227 (exit $ac_status); }; }; then 2228 : 2229else 2230 echo "$as_me: failed program was:" >&5 2231sed 's/^/| /' conftest.$ac_ext >&5 2232 2233continue 2234fi 2235rm -f conftest.$ac_objext conftest.$ac_ext 2236 cat >conftest.$ac_ext <<_ACEOF 2237#line $LINENO "configure" 2238/* confdefs.h. */ 2239_ACEOF 2240cat confdefs.h >>conftest.$ac_ext 2241cat >>conftest.$ac_ext <<_ACEOF 2242/* end confdefs.h. */ 2243$ac_declaration 2244int 2245main () 2246{ 2247exit (42); 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252rm -f conftest.$ac_objext 2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2254 (eval $ac_compile) 2>&5 2255 ac_status=$? 2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2257 (exit $ac_status); } && 2258 { ac_try='test -s conftest.$ac_objext' 2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2260 (eval $ac_try) 2>&5 2261 ac_status=$? 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2263 (exit $ac_status); }; }; then 2264 break 2265else 2266 echo "$as_me: failed program was:" >&5 2267sed 's/^/| /' conftest.$ac_ext >&5 2268 2269fi 2270rm -f conftest.$ac_objext conftest.$ac_ext 2271done 2272rm -f conftest* 2273if test -n "$ac_declaration"; then 2274 echo '#ifdef __cplusplus' >>confdefs.h 2275 echo $ac_declaration >>confdefs.h 2276 echo '#endif' >>confdefs.h 2277fi 2278 2279else 2280 echo "$as_me: failed program was:" >&5 2281sed 's/^/| /' conftest.$ac_ext >&5 2282 2283fi 2284rm -f conftest.$ac_objext conftest.$ac_ext 2285ac_ext=c 2286ac_cpp='$CPP $CPPFLAGS' 2287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2289ac_compiler_gnu=$ac_cv_c_compiler_gnu 2290 2291 if test "$GCC" = yes ; then 2292 if test "$SHLICC2" = yes ; then 2293 ac_cv_lbl_gcc_vers=2 2294 V_CCOPT="-O2" 2295 else 2296 echo "$as_me:$LINENO: checking gcc version" >&5 2297echo $ECHO_N "checking gcc version... $ECHO_C" >&6 2298 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300else 2301 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2302 sed -e '/^gcc version /!d' \ 2303 -e 's/^gcc version //' \ 2304 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2305 -e 's/\..*//'` 2306fi 2307 2308 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2309echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6 2310 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2311 V_CCOPT="-O2" 2312 fi 2313 fi 2314 else 2315 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2316echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6 2317 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2318 echo $ECHO_N "(cached) $ECHO_C" >&6 2319else 2320 2321cat >conftest.$ac_ext <<_ACEOF 2322#line $LINENO "configure" 2323/* confdefs.h. */ 2324_ACEOF 2325cat confdefs.h >>conftest.$ac_ext 2326cat >>conftest.$ac_ext <<_ACEOF 2327/* end confdefs.h. */ 2328#include <sys/types.h> 2329int 2330main () 2331{ 2332int frob(int, char *) 2333 ; 2334 return 0; 2335} 2336_ACEOF 2337rm -f conftest.$ac_objext 2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2339 (eval $ac_compile) 2>&5 2340 ac_status=$? 2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2342 (exit $ac_status); } && 2343 { ac_try='test -s conftest.$ac_objext' 2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2345 (eval $ac_try) 2>&5 2346 ac_status=$? 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); }; }; then 2349 ac_cv_lbl_cc_ansi_prototypes=yes 2350else 2351 echo "$as_me: failed program was:" >&5 2352sed 's/^/| /' conftest.$ac_ext >&5 2353 2354ac_cv_lbl_cc_ansi_prototypes=no 2355fi 2356rm -f conftest.$ac_objext conftest.$ac_ext 2357fi 2358 2359 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2360echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6 2361 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2362 case "$host_os" in 2363 2364 hpux*) 2365 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2366echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6 2367 savedcflags="$CFLAGS" 2368 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2369 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2370 echo $ECHO_N "(cached) $ECHO_C" >&6 2371else 2372 cat >conftest.$ac_ext <<_ACEOF 2373#line $LINENO "configure" 2374/* confdefs.h. */ 2375_ACEOF 2376cat confdefs.h >>conftest.$ac_ext 2377cat >>conftest.$ac_ext <<_ACEOF 2378/* end confdefs.h. */ 2379#include <sys/types.h> 2380int 2381main () 2382{ 2383int frob(int, char *) 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388rm -f conftest.$ac_objext 2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2390 (eval $ac_compile) 2>&5 2391 ac_status=$? 2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2393 (exit $ac_status); } && 2394 { ac_try='test -s conftest.$ac_objext' 2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2396 (eval $ac_try) 2>&5 2397 ac_status=$? 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); }; }; then 2400 ac_cv_lbl_cc_hpux_cc_aa=yes 2401else 2402 echo "$as_me: failed program was:" >&5 2403sed 's/^/| /' conftest.$ac_ext >&5 2404 2405ac_cv_lbl_cc_hpux_cc_aa=no 2406fi 2407rm -f conftest.$ac_objext conftest.$ac_ext 2408fi 2409 2410 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2411echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6 2412 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2413 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2414echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2415 { (exit 1); exit 1; }; } 2416 fi 2417 CFLAGS="$savedcflags" 2418 V_CCOPT="-Aa $V_CCOPT" 2419 cat >>confdefs.h <<\_ACEOF 2420#define _HPUX_SOURCE 1 2421_ACEOF 2422 2423 ;; 2424 2425 *) 2426 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2427echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2428 { (exit 1); exit 1; }; } 2429 ;; 2430 esac 2431 fi 2432 V_INCLS="$V_INCLS -I/usr/local/include" 2433 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2434 2435 case "$host_os" in 2436 2437 irix*) 2438 V_CCOPT="$V_CCOPT -xansi -signed -O" 2439 ;; 2440 2441 osf*) 2442 V_CCOPT="$V_CCOPT -std1 -O" 2443 ;; 2444 2445 ultrix*) 2446 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2447echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6 2448 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2449 echo $ECHO_N "(cached) $ECHO_C" >&6 2450else 2451 cat >conftest.$ac_ext <<_ACEOF 2452#line $LINENO "configure" 2453/* confdefs.h. */ 2454_ACEOF 2455cat confdefs.h >>conftest.$ac_ext 2456cat >>conftest.$ac_ext <<_ACEOF 2457/* end confdefs.h. */ 2458#include <sys/types.h> 2459int 2460main () 2461{ 2462struct a { int b; }; 2463 void c(const struct a *) 2464 ; 2465 return 0; 2466} 2467_ACEOF 2468rm -f conftest.$ac_objext 2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2470 (eval $ac_compile) 2>&5 2471 ac_status=$? 2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2473 (exit $ac_status); } && 2474 { ac_try='test -s conftest.$ac_objext' 2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2476 (eval $ac_try) 2>&5 2477 ac_status=$? 2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2479 (exit $ac_status); }; }; then 2480 ac_cv_lbl_cc_const_proto=yes 2481else 2482 echo "$as_me: failed program was:" >&5 2483sed 's/^/| /' conftest.$ac_ext >&5 2484 2485ac_cv_lbl_cc_const_proto=no 2486fi 2487rm -f conftest.$ac_objext conftest.$ac_ext 2488fi 2489 2490 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 2491echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6 2492 if test $ac_cv_lbl_cc_const_proto = no ; then 2493 cat >>confdefs.h <<\_ACEOF 2494#define const 2495_ACEOF 2496 2497 fi 2498 ;; 2499 esac 2500 fi 2501 2502echo "$as_me:$LINENO: checking for inline" >&5 2503echo $ECHO_N "checking for inline... $ECHO_C" >&6 2504 if test "${ac_cv_lbl_inline+set}" = set; then 2505 echo $ECHO_N "(cached) $ECHO_C" >&6 2506else 2507 2508 ac_cv_lbl_inline="" 2509 ac_lbl_cc_inline=no 2510 for ac_lbl_inline in inline __inline__ __inline 2511 do 2512 cat >conftest.$ac_ext <<_ACEOF 2513#line $LINENO "configure" 2514/* confdefs.h. */ 2515_ACEOF 2516cat confdefs.h >>conftest.$ac_ext 2517cat >>conftest.$ac_ext <<_ACEOF 2518/* end confdefs.h. */ 2519#define inline $ac_lbl_inline 2520 static inline struct iltest *foo(void); 2521 struct iltest { 2522 int iltest1; 2523 int iltest2; 2524 }; 2525 2526 static inline struct iltest * 2527 foo() 2528 { 2529 static struct iltest xxx; 2530 2531 return &xxx; 2532 } 2533int 2534main () 2535{ 2536 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541rm -f conftest.$ac_objext 2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2543 (eval $ac_compile) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); } && 2547 { ac_try='test -s conftest.$ac_objext' 2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2549 (eval $ac_try) 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); }; }; then 2553 ac_lbl_cc_inline=yes 2554else 2555 echo "$as_me: failed program was:" >&5 2556sed 's/^/| /' conftest.$ac_ext >&5 2557 2558fi 2559rm -f conftest.$ac_objext conftest.$ac_ext 2560 if test "$ac_lbl_cc_inline" = yes ; then 2561 break; 2562 fi 2563 done 2564 if test "$ac_lbl_cc_inline" = yes ; then 2565 ac_cv_lbl_inline=$ac_lbl_inline 2566 fi 2567fi 2568 2569 if test ! -z "$ac_cv_lbl_inline" ; then 2570 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 2571echo "${ECHO_T}$ac_cv_lbl_inline" >&6 2572 else 2573 echo "$as_me:$LINENO: result: no" >&5 2574echo "${ECHO_T}no" >&6 2575 fi 2576 2577cat >>confdefs.h <<_ACEOF 2578#define inline $ac_cv_lbl_inline 2579_ACEOF 2580 2581 2582echo "$as_me:$LINENO: checking for __attribute__" >&5 2583echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2584if test "${ac_cv___attribute__+set}" = set; then 2585 echo $ECHO_N "(cached) $ECHO_C" >&6 2586else 2587 2588cat >conftest.$ac_ext <<_ACEOF 2589#line $LINENO "configure" 2590/* confdefs.h. */ 2591_ACEOF 2592cat confdefs.h >>conftest.$ac_ext 2593cat >>conftest.$ac_ext <<_ACEOF 2594/* end confdefs.h. */ 2595 2596#include <stdlib.h> 2597 2598int 2599main () 2600{ 2601 2602static void foo(void) __attribute__ ((noreturn)); 2603 2604static void 2605foo(void) 2606{ 2607 exit(1); 2608} 2609 2610 ; 2611 return 0; 2612} 2613_ACEOF 2614rm -f conftest.$ac_objext 2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2616 (eval $ac_compile) 2>&5 2617 ac_status=$? 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } && 2620 { ac_try='test -s conftest.$ac_objext' 2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2622 (eval $ac_try) 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); }; }; then 2626 ac_cv___attribute__=yes 2627else 2628 echo "$as_me: failed program was:" >&5 2629sed 's/^/| /' conftest.$ac_ext >&5 2630 2631ac_cv___attribute__=no 2632fi 2633rm -f conftest.$ac_objext conftest.$ac_ext 2634fi 2635 2636if test "$ac_cv___attribute__" = "yes"; then 2637 2638cat >>confdefs.h <<\_ACEOF 2639#define HAVE___ATTRIBUTE__ 1 2640_ACEOF 2641 2642 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 2643else 2644 V_DEFS="$V_DEFS -D_U_=\"\"" 2645fi 2646echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 2647echo "${ECHO_T}$ac_cv___attribute__" >&6 2648 2649 2650ac_ext=c 2651ac_cpp='$CPP $CPPFLAGS' 2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2654ac_compiler_gnu=$ac_cv_c_compiler_gnu 2655echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2656echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2657# On Suns, sometimes $CPP names a directory. 2658if test -n "$CPP" && test -d "$CPP"; then 2659 CPP= 2660fi 2661if test -z "$CPP"; then 2662 if test "${ac_cv_prog_CPP+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 # Double quotes because CPP needs to be expanded 2666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2667 do 2668 ac_preproc_ok=false 2669for ac_c_preproc_warn_flag in '' yes 2670do 2671 # Use a header file that comes with gcc, so configuring glibc 2672 # with a fresh cross-compiler works. 2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2674 # <limits.h> exists even on freestanding compilers. 2675 # On the NeXT, cc -E runs the code through the compiler's parser, 2676 # not just through cpp. "Syntax error" is here to catch this case. 2677 cat >conftest.$ac_ext <<_ACEOF 2678#line $LINENO "configure" 2679/* confdefs.h. */ 2680_ACEOF 2681cat confdefs.h >>conftest.$ac_ext 2682cat >>conftest.$ac_ext <<_ACEOF 2683/* end confdefs.h. */ 2684#ifdef __STDC__ 2685# include <limits.h> 2686#else 2687# include <assert.h> 2688#endif 2689 Syntax error 2690_ACEOF 2691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2693 ac_status=$? 2694 grep -v '^ *+' conftest.er1 >conftest.err 2695 rm -f conftest.er1 2696 cat conftest.err >&5 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); } >/dev/null; then 2699 if test -s conftest.err; then 2700 ac_cpp_err=$ac_c_preproc_warn_flag 2701 else 2702 ac_cpp_err= 2703 fi 2704else 2705 ac_cpp_err=yes 2706fi 2707if test -z "$ac_cpp_err"; then 2708 : 2709else 2710 echo "$as_me: failed program was:" >&5 2711sed 's/^/| /' conftest.$ac_ext >&5 2712 2713 # Broken: fails on valid input. 2714continue 2715fi 2716rm -f conftest.err conftest.$ac_ext 2717 2718 # OK, works on sane cases. Now check whether non-existent headers 2719 # can be detected and how. 2720 cat >conftest.$ac_ext <<_ACEOF 2721#line $LINENO "configure" 2722/* confdefs.h. */ 2723_ACEOF 2724cat confdefs.h >>conftest.$ac_ext 2725cat >>conftest.$ac_ext <<_ACEOF 2726/* end confdefs.h. */ 2727#include <ac_nonexistent.h> 2728_ACEOF 2729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2731 ac_status=$? 2732 grep -v '^ *+' conftest.er1 >conftest.err 2733 rm -f conftest.er1 2734 cat conftest.err >&5 2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2736 (exit $ac_status); } >/dev/null; then 2737 if test -s conftest.err; then 2738 ac_cpp_err=$ac_c_preproc_warn_flag 2739 else 2740 ac_cpp_err= 2741 fi 2742else 2743 ac_cpp_err=yes 2744fi 2745if test -z "$ac_cpp_err"; then 2746 # Broken: success on invalid input. 2747continue 2748else 2749 echo "$as_me: failed program was:" >&5 2750sed 's/^/| /' conftest.$ac_ext >&5 2751 2752 # Passes both tests. 2753ac_preproc_ok=: 2754break 2755fi 2756rm -f conftest.err conftest.$ac_ext 2757 2758done 2759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2760rm -f conftest.err conftest.$ac_ext 2761if $ac_preproc_ok; then 2762 break 2763fi 2764 2765 done 2766 ac_cv_prog_CPP=$CPP 2767 2768fi 2769 CPP=$ac_cv_prog_CPP 2770else 2771 ac_cv_prog_CPP=$CPP 2772fi 2773echo "$as_me:$LINENO: result: $CPP" >&5 2774echo "${ECHO_T}$CPP" >&6 2775ac_preproc_ok=false 2776for ac_c_preproc_warn_flag in '' yes 2777do 2778 # Use a header file that comes with gcc, so configuring glibc 2779 # with a fresh cross-compiler works. 2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2781 # <limits.h> exists even on freestanding compilers. 2782 # On the NeXT, cc -E runs the code through the compiler's parser, 2783 # not just through cpp. "Syntax error" is here to catch this case. 2784 cat >conftest.$ac_ext <<_ACEOF 2785#line $LINENO "configure" 2786/* confdefs.h. */ 2787_ACEOF 2788cat confdefs.h >>conftest.$ac_ext 2789cat >>conftest.$ac_ext <<_ACEOF 2790/* end confdefs.h. */ 2791#ifdef __STDC__ 2792# include <limits.h> 2793#else 2794# include <assert.h> 2795#endif 2796 Syntax error 2797_ACEOF 2798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2800 ac_status=$? 2801 grep -v '^ *+' conftest.er1 >conftest.err 2802 rm -f conftest.er1 2803 cat conftest.err >&5 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); } >/dev/null; then 2806 if test -s conftest.err; then 2807 ac_cpp_err=$ac_c_preproc_warn_flag 2808 else 2809 ac_cpp_err= 2810 fi 2811else 2812 ac_cpp_err=yes 2813fi 2814if test -z "$ac_cpp_err"; then 2815 : 2816else 2817 echo "$as_me: failed program was:" >&5 2818sed 's/^/| /' conftest.$ac_ext >&5 2819 2820 # Broken: fails on valid input. 2821continue 2822fi 2823rm -f conftest.err conftest.$ac_ext 2824 2825 # OK, works on sane cases. Now check whether non-existent headers 2826 # can be detected and how. 2827 cat >conftest.$ac_ext <<_ACEOF 2828#line $LINENO "configure" 2829/* confdefs.h. */ 2830_ACEOF 2831cat confdefs.h >>conftest.$ac_ext 2832cat >>conftest.$ac_ext <<_ACEOF 2833/* end confdefs.h. */ 2834#include <ac_nonexistent.h> 2835_ACEOF 2836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2838 ac_status=$? 2839 grep -v '^ *+' conftest.er1 >conftest.err 2840 rm -f conftest.er1 2841 cat conftest.err >&5 2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2843 (exit $ac_status); } >/dev/null; then 2844 if test -s conftest.err; then 2845 ac_cpp_err=$ac_c_preproc_warn_flag 2846 else 2847 ac_cpp_err= 2848 fi 2849else 2850 ac_cpp_err=yes 2851fi 2852if test -z "$ac_cpp_err"; then 2853 # Broken: success on invalid input. 2854continue 2855else 2856 echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859 # Passes both tests. 2860ac_preproc_ok=: 2861break 2862fi 2863rm -f conftest.err conftest.$ac_ext 2864 2865done 2866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2867rm -f conftest.err conftest.$ac_ext 2868if $ac_preproc_ok; then 2869 : 2870else 2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2872See \`config.log' for more details." >&5 2873echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2874See \`config.log' for more details." >&2;} 2875 { (exit 1); exit 1; }; } 2876fi 2877 2878ac_ext=c 2879ac_cpp='$CPP $CPPFLAGS' 2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2882ac_compiler_gnu=$ac_cv_c_compiler_gnu 2883 2884 2885echo "$as_me:$LINENO: checking for egrep" >&5 2886echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2887if test "${ac_cv_prog_egrep+set}" = set; then 2888 echo $ECHO_N "(cached) $ECHO_C" >&6 2889else 2890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2891 then ac_cv_prog_egrep='grep -E' 2892 else ac_cv_prog_egrep='egrep' 2893 fi 2894fi 2895echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2896echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2897 EGREP=$ac_cv_prog_egrep 2898 2899 2900echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2901echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2902if test "${ac_cv_header_stdc+set}" = set; then 2903 echo $ECHO_N "(cached) $ECHO_C" >&6 2904else 2905 cat >conftest.$ac_ext <<_ACEOF 2906#line $LINENO "configure" 2907/* confdefs.h. */ 2908_ACEOF 2909cat confdefs.h >>conftest.$ac_ext 2910cat >>conftest.$ac_ext <<_ACEOF 2911/* end confdefs.h. */ 2912#include <stdlib.h> 2913#include <stdarg.h> 2914#include <string.h> 2915#include <float.h> 2916 2917int 2918main () 2919{ 2920 2921 ; 2922 return 0; 2923} 2924_ACEOF 2925rm -f conftest.$ac_objext 2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2927 (eval $ac_compile) 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); } && 2931 { ac_try='test -s conftest.$ac_objext' 2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2933 (eval $ac_try) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; }; then 2937 ac_cv_header_stdc=yes 2938else 2939 echo "$as_me: failed program was:" >&5 2940sed 's/^/| /' conftest.$ac_ext >&5 2941 2942ac_cv_header_stdc=no 2943fi 2944rm -f conftest.$ac_objext conftest.$ac_ext 2945 2946if test $ac_cv_header_stdc = yes; then 2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2948 cat >conftest.$ac_ext <<_ACEOF 2949#line $LINENO "configure" 2950/* confdefs.h. */ 2951_ACEOF 2952cat confdefs.h >>conftest.$ac_ext 2953cat >>conftest.$ac_ext <<_ACEOF 2954/* end confdefs.h. */ 2955#include <string.h> 2956 2957_ACEOF 2958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2959 $EGREP "memchr" >/dev/null 2>&1; then 2960 : 2961else 2962 ac_cv_header_stdc=no 2963fi 2964rm -f conftest* 2965 2966fi 2967 2968if test $ac_cv_header_stdc = yes; then 2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2970 cat >conftest.$ac_ext <<_ACEOF 2971#line $LINENO "configure" 2972/* confdefs.h. */ 2973_ACEOF 2974cat confdefs.h >>conftest.$ac_ext 2975cat >>conftest.$ac_ext <<_ACEOF 2976/* end confdefs.h. */ 2977#include <stdlib.h> 2978 2979_ACEOF 2980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2981 $EGREP "free" >/dev/null 2>&1; then 2982 : 2983else 2984 ac_cv_header_stdc=no 2985fi 2986rm -f conftest* 2987 2988fi 2989 2990if test $ac_cv_header_stdc = yes; then 2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2992 if test "$cross_compiling" = yes; then 2993 : 2994else 2995 cat >conftest.$ac_ext <<_ACEOF 2996#line $LINENO "configure" 2997/* confdefs.h. */ 2998_ACEOF 2999cat confdefs.h >>conftest.$ac_ext 3000cat >>conftest.$ac_ext <<_ACEOF 3001/* end confdefs.h. */ 3002#include <ctype.h> 3003#if ((' ' & 0x0FF) == 0x020) 3004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3006#else 3007# define ISLOWER(c) \ 3008 (('a' <= (c) && (c) <= 'i') \ 3009 || ('j' <= (c) && (c) <= 'r') \ 3010 || ('s' <= (c) && (c) <= 'z')) 3011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3012#endif 3013 3014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3015int 3016main () 3017{ 3018 int i; 3019 for (i = 0; i < 256; i++) 3020 if (XOR (islower (i), ISLOWER (i)) 3021 || toupper (i) != TOUPPER (i)) 3022 exit(2); 3023 exit (0); 3024} 3025_ACEOF 3026rm -f conftest$ac_exeext 3027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3028 (eval $ac_link) 2>&5 3029 ac_status=$? 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3033 (eval $ac_try) 2>&5 3034 ac_status=$? 3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 (exit $ac_status); }; }; then 3037 : 3038else 3039 echo "$as_me: program exited with status $ac_status" >&5 3040echo "$as_me: failed program was:" >&5 3041sed 's/^/| /' conftest.$ac_ext >&5 3042 3043( exit $ac_status ) 3044ac_cv_header_stdc=no 3045fi 3046rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3047fi 3048fi 3049fi 3050echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3051echo "${ECHO_T}$ac_cv_header_stdc" >&6 3052if test $ac_cv_header_stdc = yes; then 3053 3054cat >>confdefs.h <<\_ACEOF 3055#define STDC_HEADERS 1 3056_ACEOF 3057 3058fi 3059 3060# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3071 inttypes.h stdint.h unistd.h 3072do 3073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3074echo "$as_me:$LINENO: checking for $ac_header" >&5 3075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3076if eval "test \"\${$as_ac_Header+set}\" = set"; then 3077 echo $ECHO_N "(cached) $ECHO_C" >&6 3078else 3079 cat >conftest.$ac_ext <<_ACEOF 3080#line $LINENO "configure" 3081/* confdefs.h. */ 3082_ACEOF 3083cat confdefs.h >>conftest.$ac_ext 3084cat >>conftest.$ac_ext <<_ACEOF 3085/* end confdefs.h. */ 3086$ac_includes_default 3087 3088#include <$ac_header> 3089_ACEOF 3090rm -f conftest.$ac_objext 3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3092 (eval $ac_compile) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); } && 3096 { ac_try='test -s conftest.$ac_objext' 3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 3102 eval "$as_ac_Header=yes" 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107eval "$as_ac_Header=no" 3108fi 3109rm -f conftest.$ac_objext conftest.$ac_ext 3110fi 3111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3113if test `eval echo '${'$as_ac_Header'}'` = yes; then 3114 cat >>confdefs.h <<_ACEOF 3115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3116_ACEOF 3117 3118fi 3119 3120done 3121 3122 3123 3124 3125 3126 3127for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h 3128do 3129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3130if eval "test \"\${$as_ac_Header+set}\" = set"; then 3131 echo "$as_me:$LINENO: checking for $ac_header" >&5 3132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3133if eval "test \"\${$as_ac_Header+set}\" = set"; then 3134 echo $ECHO_N "(cached) $ECHO_C" >&6 3135fi 3136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3138else 3139 # Is the header compilable? 3140echo "$as_me:$LINENO: checking $ac_header usability" >&5 3141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3142cat >conftest.$ac_ext <<_ACEOF 3143#line $LINENO "configure" 3144/* confdefs.h. */ 3145_ACEOF 3146cat confdefs.h >>conftest.$ac_ext 3147cat >>conftest.$ac_ext <<_ACEOF 3148/* end confdefs.h. */ 3149$ac_includes_default 3150#include <$ac_header> 3151_ACEOF 3152rm -f conftest.$ac_objext 3153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3154 (eval $ac_compile) 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } && 3158 { ac_try='test -s conftest.$ac_objext' 3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3160 (eval $ac_try) 2>&5 3161 ac_status=$? 3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); }; }; then 3164 ac_header_compiler=yes 3165else 3166 echo "$as_me: failed program was:" >&5 3167sed 's/^/| /' conftest.$ac_ext >&5 3168 3169ac_header_compiler=no 3170fi 3171rm -f conftest.$ac_objext conftest.$ac_ext 3172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3173echo "${ECHO_T}$ac_header_compiler" >&6 3174 3175# Is the header present? 3176echo "$as_me:$LINENO: checking $ac_header presence" >&5 3177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3178cat >conftest.$ac_ext <<_ACEOF 3179#line $LINENO "configure" 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185#include <$ac_header> 3186_ACEOF 3187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } >/dev/null; then 3195 if test -s conftest.err; then 3196 ac_cpp_err=$ac_c_preproc_warn_flag 3197 else 3198 ac_cpp_err= 3199 fi 3200else 3201 ac_cpp_err=yes 3202fi 3203if test -z "$ac_cpp_err"; then 3204 ac_header_preproc=yes 3205else 3206 echo "$as_me: failed program was:" >&5 3207sed 's/^/| /' conftest.$ac_ext >&5 3208 3209 ac_header_preproc=no 3210fi 3211rm -f conftest.err conftest.$ac_ext 3212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3213echo "${ECHO_T}$ac_header_preproc" >&6 3214 3215# So? What about this header? 3216case $ac_header_compiler:$ac_header_preproc in 3217 yes:no ) 3218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3222 ( 3223 cat <<\_ASBOX 3224## ------------------------------------ ## 3225## Report this to bug-autoconf@gnu.org. ## 3226## ------------------------------------ ## 3227_ASBOX 3228 ) | 3229 sed "s/^/$as_me: WARNING: /" >&2 3230 ;; 3231 no:yes ) 3232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3238 ( 3239 cat <<\_ASBOX 3240## ------------------------------------ ## 3241## Report this to bug-autoconf@gnu.org. ## 3242## ------------------------------------ ## 3243_ASBOX 3244 ) | 3245 sed "s/^/$as_me: WARNING: /" >&2 3246 ;; 3247esac 3248echo "$as_me:$LINENO: checking for $ac_header" >&5 3249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3250if eval "test \"\${$as_ac_Header+set}\" = set"; then 3251 echo $ECHO_N "(cached) $ECHO_C" >&6 3252else 3253 eval "$as_ac_Header=$ac_header_preproc" 3254fi 3255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3257 3258fi 3259if test `eval echo '${'$as_ac_Header'}'` = yes; then 3260 cat >>confdefs.h <<_ACEOF 3261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3262_ACEOF 3263 3264fi 3265 3266done 3267 3268 3269for ac_header in netinet/if_ether.h 3270do 3271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3272echo "$as_me:$LINENO: checking for $ac_header" >&5 3273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3274if eval "test \"\${$as_ac_Header+set}\" = set"; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 cat >conftest.$ac_ext <<_ACEOF 3278#line $LINENO "configure" 3279/* confdefs.h. */ 3280_ACEOF 3281cat confdefs.h >>conftest.$ac_ext 3282cat >>conftest.$ac_ext <<_ACEOF 3283/* end confdefs.h. */ 3284#include <sys/types.h> 3285#include <sys/socket.h> 3286 3287#include <$ac_header> 3288_ACEOF 3289rm -f conftest.$ac_objext 3290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3291 (eval $ac_compile) 2>&5 3292 ac_status=$? 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); } && 3295 { ac_try='test -s conftest.$ac_objext' 3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3297 (eval $ac_try) 2>&5 3298 ac_status=$? 3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3300 (exit $ac_status); }; }; then 3301 eval "$as_ac_Header=yes" 3302else 3303 echo "$as_me: failed program was:" >&5 3304sed 's/^/| /' conftest.$ac_ext >&5 3305 3306eval "$as_ac_Header=no" 3307fi 3308rm -f conftest.$ac_objext conftest.$ac_ext 3309fi 3310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3312if test `eval echo '${'$as_ac_Header'}'` = yes; then 3313 cat >>confdefs.h <<_ACEOF 3314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3315_ACEOF 3316 3317fi 3318 3319done 3320 3321echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3322echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3323if test "${ac_cv_header_time+set}" = set; then 3324 echo $ECHO_N "(cached) $ECHO_C" >&6 3325else 3326 cat >conftest.$ac_ext <<_ACEOF 3327#line $LINENO "configure" 3328/* confdefs.h. */ 3329_ACEOF 3330cat confdefs.h >>conftest.$ac_ext 3331cat >>conftest.$ac_ext <<_ACEOF 3332/* end confdefs.h. */ 3333#include <sys/types.h> 3334#include <sys/time.h> 3335#include <time.h> 3336 3337int 3338main () 3339{ 3340if ((struct tm *) 0) 3341return 0; 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346rm -f conftest.$ac_objext 3347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3348 (eval $ac_compile) 2>&5 3349 ac_status=$? 3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); } && 3352 { ac_try='test -s conftest.$ac_objext' 3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3354 (eval $ac_try) 2>&5 3355 ac_status=$? 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); }; }; then 3358 ac_cv_header_time=yes 3359else 3360 echo "$as_me: failed program was:" >&5 3361sed 's/^/| /' conftest.$ac_ext >&5 3362 3363ac_cv_header_time=no 3364fi 3365rm -f conftest.$ac_objext conftest.$ac_ext 3366fi 3367echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3368echo "${ECHO_T}$ac_cv_header_time" >&6 3369if test $ac_cv_header_time = yes; then 3370 3371cat >>confdefs.h <<\_ACEOF 3372#define TIME_WITH_SYS_TIME 1 3373_ACEOF 3374 3375fi 3376 3377 3378case "$host_os" in 3379 3380linux*) 3381 echo "$as_me:$LINENO: checking Linux kernel version" >&5 3382echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6 3383 if test "$cross_compiling" = yes; then 3384 if test "${ac_cv_linux_vers+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386else 3387 ac_cv_linux_vers=unknown 3388fi 3389 3390 else 3391 if test "${ac_cv_linux_vers+set}" = set; then 3392 echo $ECHO_N "(cached) $ECHO_C" >&6 3393else 3394 ac_cv_linux_vers=`uname -r 2>&1 | \ 3395 sed -n -e '$s/.* //' -e '$s/\..*//p'` 3396fi 3397 3398 fi 3399 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 3400echo "${ECHO_T}$ac_cv_linux_vers" >&6 3401 if test $ac_cv_linux_vers = unknown ; then 3402 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 3403echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 3404 { (exit 1); exit 1; }; } 3405 fi 3406 if test $ac_cv_linux_vers -lt 2 ; then 3407 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 3408echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 3409 { (exit 1); exit 1; }; } 3410 fi 3411 ;; 3412 3413*) 3414 ;; 3415esac 3416 3417 3418 3419for ac_header in smi.h 3420do 3421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3422if eval "test \"\${$as_ac_Header+set}\" = set"; then 3423 echo "$as_me:$LINENO: checking for $ac_header" >&5 3424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3425if eval "test \"\${$as_ac_Header+set}\" = set"; then 3426 echo $ECHO_N "(cached) $ECHO_C" >&6 3427fi 3428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3430else 3431 # Is the header compilable? 3432echo "$as_me:$LINENO: checking $ac_header usability" >&5 3433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3434cat >conftest.$ac_ext <<_ACEOF 3435#line $LINENO "configure" 3436/* confdefs.h. */ 3437_ACEOF 3438cat confdefs.h >>conftest.$ac_ext 3439cat >>conftest.$ac_ext <<_ACEOF 3440/* end confdefs.h. */ 3441$ac_includes_default 3442#include <$ac_header> 3443_ACEOF 3444rm -f conftest.$ac_objext 3445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3446 (eval $ac_compile) 2>&5 3447 ac_status=$? 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); } && 3450 { ac_try='test -s conftest.$ac_objext' 3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3452 (eval $ac_try) 2>&5 3453 ac_status=$? 3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 (exit $ac_status); }; }; then 3456 ac_header_compiler=yes 3457else 3458 echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461ac_header_compiler=no 3462fi 3463rm -f conftest.$ac_objext conftest.$ac_ext 3464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3465echo "${ECHO_T}$ac_header_compiler" >&6 3466 3467# Is the header present? 3468echo "$as_me:$LINENO: checking $ac_header presence" >&5 3469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3470cat >conftest.$ac_ext <<_ACEOF 3471#line $LINENO "configure" 3472/* confdefs.h. */ 3473_ACEOF 3474cat confdefs.h >>conftest.$ac_ext 3475cat >>conftest.$ac_ext <<_ACEOF 3476/* end confdefs.h. */ 3477#include <$ac_header> 3478_ACEOF 3479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3481 ac_status=$? 3482 grep -v '^ *+' conftest.er1 >conftest.err 3483 rm -f conftest.er1 3484 cat conftest.err >&5 3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3486 (exit $ac_status); } >/dev/null; then 3487 if test -s conftest.err; then 3488 ac_cpp_err=$ac_c_preproc_warn_flag 3489 else 3490 ac_cpp_err= 3491 fi 3492else 3493 ac_cpp_err=yes 3494fi 3495if test -z "$ac_cpp_err"; then 3496 ac_header_preproc=yes 3497else 3498 echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 ac_header_preproc=no 3502fi 3503rm -f conftest.err conftest.$ac_ext 3504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3505echo "${ECHO_T}$ac_header_preproc" >&6 3506 3507# So? What about this header? 3508case $ac_header_compiler:$ac_header_preproc in 3509 yes:no ) 3510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3514 ( 3515 cat <<\_ASBOX 3516## ------------------------------------ ## 3517## Report this to bug-autoconf@gnu.org. ## 3518## ------------------------------------ ## 3519_ASBOX 3520 ) | 3521 sed "s/^/$as_me: WARNING: /" >&2 3522 ;; 3523 no:yes ) 3524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3530 ( 3531 cat <<\_ASBOX 3532## ------------------------------------ ## 3533## Report this to bug-autoconf@gnu.org. ## 3534## ------------------------------------ ## 3535_ASBOX 3536 ) | 3537 sed "s/^/$as_me: WARNING: /" >&2 3538 ;; 3539esac 3540echo "$as_me:$LINENO: checking for $ac_header" >&5 3541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3542if eval "test \"\${$as_ac_Header+set}\" = set"; then 3543 echo $ECHO_N "(cached) $ECHO_C" >&6 3544else 3545 eval "$as_ac_Header=$ac_header_preproc" 3546fi 3547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3549 3550fi 3551if test `eval echo '${'$as_ac_Header'}'` = yes; then 3552 cat >>confdefs.h <<_ACEOF 3553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3554_ACEOF 3555 3556fi 3557 3558done 3559 3560 3561echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 3562echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6 3563if test "${ac_cv_lib_smi_smiInit+set}" = set; then 3564 echo $ECHO_N "(cached) $ECHO_C" >&6 3565else 3566 ac_check_lib_save_LIBS=$LIBS 3567LIBS="-lsmi $LIBS" 3568cat >conftest.$ac_ext <<_ACEOF 3569#line $LINENO "configure" 3570/* confdefs.h. */ 3571_ACEOF 3572cat confdefs.h >>conftest.$ac_ext 3573cat >>conftest.$ac_ext <<_ACEOF 3574/* end confdefs.h. */ 3575 3576/* Override any gcc2 internal prototype to avoid an error. */ 3577#ifdef __cplusplus 3578extern "C" 3579#endif 3580/* We use char because int might match the return type of a gcc2 3581 builtin and then its argument prototype would still apply. */ 3582char smiInit (); 3583int 3584main () 3585{ 3586smiInit (); 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591rm -f conftest.$ac_objext conftest$ac_exeext 3592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3593 (eval $ac_link) 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } && 3597 { ac_try='test -s conftest$ac_exeext' 3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3599 (eval $ac_try) 2>&5 3600 ac_status=$? 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); }; }; then 3603 ac_cv_lib_smi_smiInit=yes 3604else 3605 echo "$as_me: failed program was:" >&5 3606sed 's/^/| /' conftest.$ac_ext >&5 3607 3608ac_cv_lib_smi_smiInit=no 3609fi 3610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3611LIBS=$ac_check_lib_save_LIBS 3612fi 3613echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 3614echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6 3615if test $ac_cv_lib_smi_smiInit = yes; then 3616 cat >>confdefs.h <<_ACEOF 3617#define HAVE_LIBSMI 1 3618_ACEOF 3619 3620 LIBS="-lsmi $LIBS" 3621 3622fi 3623 3624if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 3625then 3626echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 3627echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6 3628 if test "$cross_compiling" = yes; then 3629 echo "$as_me:$LINENO: result: not when cross-compiling" >&5 3630echo "${ECHO_T}not when cross-compiling" >&6 3631 libsmi=no 3632 3633else 3634 cat >conftest.$ac_ext <<_ACEOF 3635#line $LINENO "configure" 3636/* confdefs.h. */ 3637_ACEOF 3638cat confdefs.h >>conftest.$ac_ext 3639cat >>conftest.$ac_ext <<_ACEOF 3640/* end confdefs.h. */ 3641 /* libsmi available check */ 3642#include <smi.h> 3643main() 3644{ 3645 int current, revision, age, n; 3646 const int required = 2; 3647 if (smiInit("")) 3648 exit(1); 3649 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 3650 exit(2); 3651 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 3652 if (n != 3) 3653 exit(3); 3654 if (required < current - age || required > current) 3655 exit(4); 3656 exit(0); 3657} 3658 3659_ACEOF 3660rm -f conftest$ac_exeext 3661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3662 (eval $ac_link) 2>&5 3663 ac_status=$? 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3667 (eval $ac_try) 2>&5 3668 ac_status=$? 3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 (exit $ac_status); }; }; then 3671 echo "$as_me:$LINENO: result: yes" >&5 3672echo "${ECHO_T}yes" >&6 3673 cat >>confdefs.h <<\_ACEOF 3674#define LIBSMI 1 3675_ACEOF 3676 3677 libsmi=yes 3678else 3679 echo "$as_me: program exited with status $ac_status" >&5 3680echo "$as_me: failed program was:" >&5 3681sed 's/^/| /' conftest.$ac_ext >&5 3682 3683( exit $ac_status ) 3684 case $? in 3685 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5 3686echo "${ECHO_T}no - smiInit failed" >&6 ;; 3687 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 3688echo "${ECHO_T}no - header/library version mismatch" >&6 ;; 3689 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5 3690echo "${ECHO_T}no - can't determine library version" >&6 ;; 3691 4) echo "$as_me:$LINENO: result: no - too old" >&5 3692echo "${ECHO_T}no - too old" >&6 ;; 3693 *) echo "$as_me:$LINENO: result: no" >&5 3694echo "${ECHO_T}no" >&6 ;; 3695 esac 3696 libsmi=no 3697fi 3698rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3699fi 3700fi 3701 3702echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 3703echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6 3704# Check whether --enable-smb or --disable-smb was given. 3705if test "${enable_smb+set}" = set; then 3706 enableval="$enable_smb" 3707 3708else 3709 enableval=yes 3710fi; 3711case "$enableval" in 3712yes) echo "$as_me:$LINENO: result: yes" >&5 3713echo "${ECHO_T}yes" >&6 3714 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 3715echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 3716 cat >>confdefs.h <<\_ACEOF 3717#define TCPDUMP_DO_SMB 1 3718_ACEOF 3719 3720 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 3721 ;; 3722*) echo "$as_me:$LINENO: result: no" >&5 3723echo "${ECHO_T}no" >&6 3724 ;; 3725esac 3726 3727echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 3728echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6 3729# Check whether --enable-ipv6 or --disable-ipv6 was given. 3730if test "${enable_ipv6+set}" = set; then 3731 enableval="$enable_ipv6" 3732 case "$enableval" in 3733yes) echo "$as_me:$LINENO: result: yes" >&5 3734echo "${ECHO_T}yes" >&6 3735 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 3736 cat >>confdefs.h <<\_ACEOF 3737#define INET6 1 3738_ACEOF 3739 3740 ipv6=yes 3741 ;; 3742*) 3743 echo "$as_me:$LINENO: result: no" >&5 3744echo "${ECHO_T}no" >&6 3745 ipv6=no 3746 ;; 3747 esac 3748else 3749 if test "$cross_compiling" = yes; then 3750 echo "$as_me:$LINENO: result: no" >&5 3751echo "${ECHO_T}no" >&6 3752 ipv6=no 3753 3754else 3755 cat >conftest.$ac_ext <<_ACEOF 3756#line $LINENO "configure" 3757/* confdefs.h. */ 3758_ACEOF 3759cat confdefs.h >>conftest.$ac_ext 3760cat >>conftest.$ac_ext <<_ACEOF 3761/* end confdefs.h. */ 3762 /* AF_INET6 available check */ 3763#include <sys/types.h> 3764#include <sys/socket.h> 3765main() 3766{ 3767 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 3768 exit(1); 3769 else 3770 exit(0); 3771} 3772 3773_ACEOF 3774rm -f conftest$ac_exeext 3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3776 (eval $ac_link) 2>&5 3777 ac_status=$? 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3781 (eval $ac_try) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); }; }; then 3785 echo "$as_me:$LINENO: result: yes" >&5 3786echo "${ECHO_T}yes" >&6 3787 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 3788 cat >>confdefs.h <<\_ACEOF 3789#define INET6 1 3790_ACEOF 3791 3792 ipv6=yes 3793else 3794 echo "$as_me: program exited with status $ac_status" >&5 3795echo "$as_me: failed program was:" >&5 3796sed 's/^/| /' conftest.$ac_ext >&5 3797 3798( exit $ac_status ) 3799 echo "$as_me:$LINENO: result: no" >&5 3800echo "${ECHO_T}no" >&6 3801 ipv6=no 3802fi 3803rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3804fi 3805fi; 3806 3807ipv6type=unknown 3808ipv6lib=none 3809ipv6trylibc=no 3810 3811if test "$ipv6" = "yes"; then 3812 echo "$as_me:$LINENO: checking ipv6 stack type" >&5 3813echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 3814 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 3815 case $i in 3816 inria) 3817 cat >conftest.$ac_ext <<_ACEOF 3818#line $LINENO "configure" 3819/* confdefs.h. */ 3820_ACEOF 3821cat confdefs.h >>conftest.$ac_ext 3822cat >>conftest.$ac_ext <<_ACEOF 3823/* end confdefs.h. */ 3824#include <netinet/in.h> 3825#ifdef IPV6_INRIA_VERSION 3826yes 3827#endif 3828_ACEOF 3829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3830 $EGREP "yes" >/dev/null 2>&1; then 3831 ipv6type=$i; 3832 CFLAGS="-DINET6 $CFLAGS" 3833fi 3834rm -f conftest* 3835 3836 ;; 3837 kame) 3838 cat >conftest.$ac_ext <<_ACEOF 3839#line $LINENO "configure" 3840/* confdefs.h. */ 3841_ACEOF 3842cat confdefs.h >>conftest.$ac_ext 3843cat >>conftest.$ac_ext <<_ACEOF 3844/* end confdefs.h. */ 3845#include <netinet/in.h> 3846#ifdef __KAME__ 3847yes 3848#endif 3849_ACEOF 3850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3851 $EGREP "yes" >/dev/null 2>&1; then 3852 ipv6type=$i; 3853 ipv6lib=inet6; 3854 ipv6libdir=/usr/local/v6/lib; 3855 ipv6trylibc=yes; 3856 CFLAGS="-DINET6 $CFLAGS" 3857fi 3858rm -f conftest* 3859 3860 ;; 3861 linux-glibc) 3862 cat >conftest.$ac_ext <<_ACEOF 3863#line $LINENO "configure" 3864/* confdefs.h. */ 3865_ACEOF 3866cat confdefs.h >>conftest.$ac_ext 3867cat >>conftest.$ac_ext <<_ACEOF 3868/* end confdefs.h. */ 3869#include <features.h> 3870#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 3871yes 3872#endif 3873_ACEOF 3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3875 $EGREP "yes" >/dev/null 2>&1; then 3876 ipv6type=$i; 3877 CFLAGS="-DINET6 $CFLAGS" 3878fi 3879rm -f conftest* 3880 3881 ;; 3882 linux-libinet6) 3883 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 3884 ipv6type=$i 3885 ipv6lib=inet6 3886 ipv6libdir=/usr/inet6/lib 3887 ipv6trylibc=yes; 3888 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 3889 fi 3890 ;; 3891 toshiba) 3892 cat >conftest.$ac_ext <<_ACEOF 3893#line $LINENO "configure" 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#include <sys/param.h> 3900#ifdef _TOSHIBA_INET6 3901yes 3902#endif 3903_ACEOF 3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3905 $EGREP "yes" >/dev/null 2>&1; then 3906 ipv6type=$i; 3907 ipv6lib=inet6; 3908 ipv6libdir=/usr/local/v6/lib; 3909 CFLAGS="-DINET6 $CFLAGS" 3910fi 3911rm -f conftest* 3912 3913 ;; 3914 v6d) 3915 cat >conftest.$ac_ext <<_ACEOF 3916#line $LINENO "configure" 3917/* confdefs.h. */ 3918_ACEOF 3919cat confdefs.h >>conftest.$ac_ext 3920cat >>conftest.$ac_ext <<_ACEOF 3921/* end confdefs.h. */ 3922#include </usr/local/v6/include/sys/v6config.h> 3923#ifdef __V6D__ 3924yes 3925#endif 3926_ACEOF 3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3928 $EGREP "yes" >/dev/null 2>&1; then 3929 ipv6type=$i; 3930 ipv6lib=v6; 3931 ipv6libdir=/usr/local/v6/lib; 3932 CFLAGS="-I/usr/local/v6/include $CFLAGS" 3933fi 3934rm -f conftest* 3935 3936 ;; 3937 zeta) 3938 cat >conftest.$ac_ext <<_ACEOF 3939#line $LINENO "configure" 3940/* confdefs.h. */ 3941_ACEOF 3942cat confdefs.h >>conftest.$ac_ext 3943cat >>conftest.$ac_ext <<_ACEOF 3944/* end confdefs.h. */ 3945#include <sys/param.h> 3946#ifdef _ZETA_MINAMI_INET6 3947yes 3948#endif 3949_ACEOF 3950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3951 $EGREP "yes" >/dev/null 2>&1; then 3952 ipv6type=$i; 3953 ipv6lib=inet6; 3954 ipv6libdir=/usr/local/v6/lib; 3955 CFLAGS="-DINET6 $CFLAGS" 3956fi 3957rm -f conftest* 3958 3959 ;; 3960 esac 3961 if test "$ipv6type" != "unknown"; then 3962 break 3963 fi 3964 done 3965 echo "$as_me:$LINENO: result: $ipv6type" >&5 3966echo "${ECHO_T}$ipv6type" >&6 3967fi 3968 3969if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 3970 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 3971 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 3972 echo "You have $ipv6lib library, using it" 3973 else 3974 if test "$ipv6trylibc" = "yes"; then 3975 echo "You do not have $ipv6lib library, using libc" 3976 else 3977 echo 'Fatal: no $ipv6lib library found. cannot continue.' 3978 echo "You need to fetch lib$ipv6lib.a from appropriate" 3979 echo 'ipv6 kit and compile beforehand.' 3980 exit 1 3981 fi 3982 fi 3983fi 3984 3985 3986if test "$ipv6" = "yes"; then 3987 # 3988 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 3989 # function in libc; there are "ngetaddrinfo()" and 3990 # "ogetaddrinfo()" functions, and <netdb.h> #defines 3991 # "getaddrinfo" to be either "ngetaddrinfo" or 3992 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 3993 # or _XOPEN_SOURCE_EXTENDED are defined or not. 3994 # 3995 # So this test doesn't work on Tru64 5.1, and possibly 3996 # on other 5.x releases. This causes the configure 3997 # script to become confused, and results in libpcap 3998 # being unbuildable. 3999 # 4000 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4001echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6 4002if test "${ac_cv_search_getaddrinfo+set}" = set; then 4003 echo $ECHO_N "(cached) $ECHO_C" >&6 4004else 4005 ac_func_search_save_LIBS=$LIBS 4006ac_cv_search_getaddrinfo=no 4007cat >conftest.$ac_ext <<_ACEOF 4008#line $LINENO "configure" 4009/* confdefs.h. */ 4010_ACEOF 4011cat confdefs.h >>conftest.$ac_ext 4012cat >>conftest.$ac_ext <<_ACEOF 4013/* end confdefs.h. */ 4014 4015/* Override any gcc2 internal prototype to avoid an error. */ 4016#ifdef __cplusplus 4017extern "C" 4018#endif 4019/* We use char because int might match the return type of a gcc2 4020 builtin and then its argument prototype would still apply. */ 4021char getaddrinfo (); 4022int 4023main () 4024{ 4025getaddrinfo (); 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030rm -f conftest.$ac_objext conftest$ac_exeext 4031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4032 (eval $ac_link) 2>&5 4033 ac_status=$? 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); } && 4036 { ac_try='test -s conftest$ac_exeext' 4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4038 (eval $ac_try) 2>&5 4039 ac_status=$? 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); }; }; then 4042 ac_cv_search_getaddrinfo="none required" 4043else 4044 echo "$as_me: failed program was:" >&5 4045sed 's/^/| /' conftest.$ac_ext >&5 4046 4047fi 4048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4049if test "$ac_cv_search_getaddrinfo" = no; then 4050 for ac_lib in socket; do 4051 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4052 cat >conftest.$ac_ext <<_ACEOF 4053#line $LINENO "configure" 4054/* confdefs.h. */ 4055_ACEOF 4056cat confdefs.h >>conftest.$ac_ext 4057cat >>conftest.$ac_ext <<_ACEOF 4058/* end confdefs.h. */ 4059 4060/* Override any gcc2 internal prototype to avoid an error. */ 4061#ifdef __cplusplus 4062extern "C" 4063#endif 4064/* We use char because int might match the return type of a gcc2 4065 builtin and then its argument prototype would still apply. */ 4066char getaddrinfo (); 4067int 4068main () 4069{ 4070getaddrinfo (); 4071 ; 4072 return 0; 4073} 4074_ACEOF 4075rm -f conftest.$ac_objext conftest$ac_exeext 4076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4077 (eval $ac_link) 2>&5 4078 ac_status=$? 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4080 (exit $ac_status); } && 4081 { ac_try='test -s conftest$ac_exeext' 4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4083 (eval $ac_try) 2>&5 4084 ac_status=$? 4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4086 (exit $ac_status); }; }; then 4087 ac_cv_search_getaddrinfo="-l$ac_lib" 4088break 4089else 4090 echo "$as_me: failed program was:" >&5 4091sed 's/^/| /' conftest.$ac_ext >&5 4092 4093fi 4094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4095 done 4096fi 4097LIBS=$ac_func_search_save_LIBS 4098fi 4099echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4100echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6 4101if test "$ac_cv_search_getaddrinfo" != no; then 4102 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 4103 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 4104echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 4105 if test "${td_cv_buggygetaddrinfo+set}" = set; then 4106 echo $ECHO_N "(cached) $ECHO_C" >&6 4107else 4108 if test "$cross_compiling" = yes; then 4109 td_cv_buggygetaddrinfo=yes 4110else 4111 cat >conftest.$ac_ext <<_ACEOF 4112#line $LINENO "configure" 4113/* confdefs.h. */ 4114_ACEOF 4115cat confdefs.h >>conftest.$ac_ext 4116cat >>conftest.$ac_ext <<_ACEOF 4117/* end confdefs.h. */ 4118 4119#include <sys/types.h> 4120#include <netdb.h> 4121#include <string.h> 4122#include <sys/socket.h> 4123#include <netinet/in.h> 4124 4125main() 4126{ 4127 int passive, gaierr, inet4 = 0, inet6 = 0; 4128 struct addrinfo hints, *ai, *aitop; 4129 char straddr[INET6_ADDRSTRLEN], strport[16]; 4130 4131 for (passive = 0; passive <= 1; passive++) { 4132 memset(&hints, 0, sizeof(hints)); 4133 hints.ai_family = AF_UNSPEC; 4134 hints.ai_flags = passive ? AI_PASSIVE : 0; 4135 hints.ai_socktype = SOCK_STREAM; 4136 hints.ai_protocol = IPPROTO_TCP; 4137 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 4138 (void)gai_strerror(gaierr); 4139 goto bad; 4140 } 4141 for (ai = aitop; ai; ai = ai->ai_next) { 4142 if (ai->ai_addr == NULL || 4143 ai->ai_addrlen == 0 || 4144 getnameinfo(ai->ai_addr, ai->ai_addrlen, 4145 straddr, sizeof(straddr), strport, sizeof(strport), 4146 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 4147 goto bad; 4148 } 4149 switch (ai->ai_family) { 4150 case AF_INET: 4151 if (strcmp(strport, "54321") != 0) { 4152 goto bad; 4153 } 4154 if (passive) { 4155 if (strcmp(straddr, "0.0.0.0") != 0) { 4156 goto bad; 4157 } 4158 } else { 4159 if (strcmp(straddr, "127.0.0.1") != 0) { 4160 goto bad; 4161 } 4162 } 4163 inet4++; 4164 break; 4165 case AF_INET6: 4166 if (strcmp(strport, "54321") != 0) { 4167 goto bad; 4168 } 4169 if (passive) { 4170 if (strcmp(straddr, "::") != 0) { 4171 goto bad; 4172 } 4173 } else { 4174 if (strcmp(straddr, "::1") != 0) { 4175 goto bad; 4176 } 4177 } 4178 inet6++; 4179 break; 4180 case AF_UNSPEC: 4181 goto bad; 4182 break; 4183#ifdef AF_UNIX 4184 case AF_UNIX: 4185#else 4186#ifdef AF_LOCAL 4187 case AF_LOCAL: 4188#endif 4189#endif 4190 default: 4191 /* another family support? */ 4192 break; 4193 } 4194 } 4195 } 4196 4197 /* supported family should be 2, unsupported family should be 0 */ 4198 if (!(inet4 == 0 || inet4 == 2)) 4199 goto bad; 4200 if (!(inet6 == 0 || inet6 == 2)) 4201 goto bad; 4202 4203 if (aitop) 4204 freeaddrinfo(aitop); 4205 exit(0); 4206 4207 bad: 4208 if (aitop) 4209 freeaddrinfo(aitop); 4210 exit(1); 4211} 4212 4213_ACEOF 4214rm -f conftest$ac_exeext 4215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4216 (eval $ac_link) 2>&5 4217 ac_status=$? 4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4221 (eval $ac_try) 2>&5 4222 ac_status=$? 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); }; }; then 4225 td_cv_buggygetaddrinfo=no 4226else 4227 echo "$as_me: program exited with status $ac_status" >&5 4228echo "$as_me: failed program was:" >&5 4229sed 's/^/| /' conftest.$ac_ext >&5 4230 4231( exit $ac_status ) 4232td_cv_buggygetaddrinfo=yes 4233fi 4234rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4235fi 4236fi 4237 4238 if test "$td_cv_buggygetaddrinfo" = no; then 4239 echo "$as_me:$LINENO: result: good" >&5 4240echo "${ECHO_T}good" >&6 4241 else 4242 echo "$as_me:$LINENO: result: buggy" >&5 4243echo "${ECHO_T}buggy" >&6 4244 fi 4245 4246 if test "$td_cv_buggygetaddrinfo" = "yes"; then 4247 # 4248 # XXX - it doesn't appear that "ipv6type" can ever be 4249 # set to "linux". Should this be testing for 4250 # "linux-glibc", or for that *or* "linux-libinet6"? 4251 # If the latter, note that "linux-libinet6" is also 4252 # the type given to some non-Linux OSes. 4253 # 4254 if test "$ipv6type" != "linux"; then 4255 echo 'Fatal: You must get working getaddrinfo() function.' 4256 echo ' or you can specify "--disable-ipv6"'. 4257 exit 1 4258 else 4259 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 4260 echo ' Better upgrade your system library to newest version' 4261 echo ' of GNU C library (aka glibc).' 4262 fi 4263 fi 4264 4265fi 4266 4267 4268 4269for ac_func in getaddrinfo getnameinfo 4270do 4271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4272echo "$as_me:$LINENO: checking for $ac_func" >&5 4273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4274if eval "test \"\${$as_ac_var+set}\" = set"; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 cat >conftest.$ac_ext <<_ACEOF 4278#line $LINENO "configure" 4279/* confdefs.h. */ 4280_ACEOF 4281cat confdefs.h >>conftest.$ac_ext 4282cat >>conftest.$ac_ext <<_ACEOF 4283/* end confdefs.h. */ 4284/* System header to define __stub macros and hopefully few prototypes, 4285 which can conflict with char $ac_func (); below. 4286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4287 <limits.h> exists even on freestanding compilers. */ 4288#ifdef __STDC__ 4289# include <limits.h> 4290#else 4291# include <assert.h> 4292#endif 4293/* Override any gcc2 internal prototype to avoid an error. */ 4294#ifdef __cplusplus 4295extern "C" 4296{ 4297#endif 4298/* We use char because int might match the return type of a gcc2 4299 builtin and then its argument prototype would still apply. */ 4300char $ac_func (); 4301/* The GNU C library defines this for functions which it implements 4302 to always fail with ENOSYS. Some functions are actually named 4303 something starting with __ and the normal name is an alias. */ 4304#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4305choke me 4306#else 4307char (*f) () = $ac_func; 4308#endif 4309#ifdef __cplusplus 4310} 4311#endif 4312 4313int 4314main () 4315{ 4316return f != $ac_func; 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321rm -f conftest.$ac_objext conftest$ac_exeext 4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4323 (eval $ac_link) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); } && 4327 { ac_try='test -s conftest$ac_exeext' 4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4329 (eval $ac_try) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 eval "$as_ac_var=yes" 4334else 4335 echo "$as_me: failed program was:" >&5 4336sed 's/^/| /' conftest.$ac_ext >&5 4337 4338eval "$as_ac_var=no" 4339fi 4340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4341fi 4342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4344if test `eval echo '${'$as_ac_var'}'` = yes; then 4345 cat >>confdefs.h <<_ACEOF 4346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4347_ACEOF 4348 4349else 4350 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 4351fi 4352done 4353 4354 4355fi 4356 4357echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 4358echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6 4359if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 4360 echo $ECHO_N "(cached) $ECHO_C" >&6 4361else 4362 cat >conftest.$ac_ext <<_ACEOF 4363#line $LINENO "configure" 4364/* confdefs.h. */ 4365_ACEOF 4366cat confdefs.h >>conftest.$ac_ext 4367cat >>conftest.$ac_ext <<_ACEOF 4368/* end confdefs.h. */ 4369#include <netdnet/dnetdb.h> 4370 4371_ACEOF 4372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4373 $EGREP "dnet_htoa" >/dev/null 2>&1; then 4374 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 4375else 4376 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 4377fi 4378rm -f conftest* 4379 4380fi 4381echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 4382echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6 4383if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 4384 cat >>confdefs.h <<\_ACEOF 4385#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 4386_ACEOF 4387 4388fi 4389 4390echo "$as_me:$LINENO: checking for char" >&5 4391echo $ECHO_N "checking for char... $ECHO_C" >&6 4392if test "${ac_cv_type_char+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394else 4395 cat >conftest.$ac_ext <<_ACEOF 4396#line $LINENO "configure" 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402$ac_includes_default 4403int 4404main () 4405{ 4406if ((char *) 0) 4407 return 0; 4408if (sizeof (char)) 4409 return 0; 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414rm -f conftest.$ac_objext 4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4416 (eval $ac_compile) 2>&5 4417 ac_status=$? 4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419 (exit $ac_status); } && 4420 { ac_try='test -s conftest.$ac_objext' 4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4422 (eval $ac_try) 2>&5 4423 ac_status=$? 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); }; }; then 4426 ac_cv_type_char=yes 4427else 4428 echo "$as_me: failed program was:" >&5 4429sed 's/^/| /' conftest.$ac_ext >&5 4430 4431ac_cv_type_char=no 4432fi 4433rm -f conftest.$ac_objext conftest.$ac_ext 4434fi 4435echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 4436echo "${ECHO_T}$ac_cv_type_char" >&6 4437 4438echo "$as_me:$LINENO: checking size of char" >&5 4439echo $ECHO_N "checking size of char... $ECHO_C" >&6 4440if test "${ac_cv_sizeof_char+set}" = set; then 4441 echo $ECHO_N "(cached) $ECHO_C" >&6 4442else 4443 if test "$ac_cv_type_char" = yes; then 4444 # The cast to unsigned long works around a bug in the HP C Compiler 4445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4447 # This bug is HP SR number 8606223364. 4448 if test "$cross_compiling" = yes; then 4449 # Depending upon the size, compute the lo and hi bounds. 4450cat >conftest.$ac_ext <<_ACEOF 4451#line $LINENO "configure" 4452/* confdefs.h. */ 4453_ACEOF 4454cat confdefs.h >>conftest.$ac_ext 4455cat >>conftest.$ac_ext <<_ACEOF 4456/* end confdefs.h. */ 4457$ac_includes_default 4458int 4459main () 4460{ 4461static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 4462test_array [0] = 0 4463 4464 ; 4465 return 0; 4466} 4467_ACEOF 4468rm -f conftest.$ac_objext 4469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4470 (eval $ac_compile) 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); } && 4474 { ac_try='test -s conftest.$ac_objext' 4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4476 (eval $ac_try) 2>&5 4477 ac_status=$? 4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); }; }; then 4480 ac_lo=0 ac_mid=0 4481 while :; do 4482 cat >conftest.$ac_ext <<_ACEOF 4483#line $LINENO "configure" 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489$ac_includes_default 4490int 4491main () 4492{ 4493static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4494test_array [0] = 0 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500rm -f conftest.$ac_objext 4501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4502 (eval $ac_compile) 2>&5 4503 ac_status=$? 4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); } && 4506 { ac_try='test -s conftest.$ac_objext' 4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4508 (eval $ac_try) 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); }; }; then 4512 ac_hi=$ac_mid; break 4513else 4514 echo "$as_me: failed program was:" >&5 4515sed 's/^/| /' conftest.$ac_ext >&5 4516 4517ac_lo=`expr $ac_mid + 1` 4518 if test $ac_lo -le $ac_mid; then 4519 ac_lo= ac_hi= 4520 break 4521 fi 4522 ac_mid=`expr 2 '*' $ac_mid + 1` 4523fi 4524rm -f conftest.$ac_objext conftest.$ac_ext 4525 done 4526else 4527 echo "$as_me: failed program was:" >&5 4528sed 's/^/| /' conftest.$ac_ext >&5 4529 4530cat >conftest.$ac_ext <<_ACEOF 4531#line $LINENO "configure" 4532/* confdefs.h. */ 4533_ACEOF 4534cat confdefs.h >>conftest.$ac_ext 4535cat >>conftest.$ac_ext <<_ACEOF 4536/* end confdefs.h. */ 4537$ac_includes_default 4538int 4539main () 4540{ 4541static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 4542test_array [0] = 0 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548rm -f conftest.$ac_objext 4549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4550 (eval $ac_compile) 2>&5 4551 ac_status=$? 4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4553 (exit $ac_status); } && 4554 { ac_try='test -s conftest.$ac_objext' 4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4556 (eval $ac_try) 2>&5 4557 ac_status=$? 4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4559 (exit $ac_status); }; }; then 4560 ac_hi=-1 ac_mid=-1 4561 while :; do 4562 cat >conftest.$ac_ext <<_ACEOF 4563#line $LINENO "configure" 4564/* confdefs.h. */ 4565_ACEOF 4566cat confdefs.h >>conftest.$ac_ext 4567cat >>conftest.$ac_ext <<_ACEOF 4568/* end confdefs.h. */ 4569$ac_includes_default 4570int 4571main () 4572{ 4573static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 4574test_array [0] = 0 4575 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580rm -f conftest.$ac_objext 4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4582 (eval $ac_compile) 2>&5 4583 ac_status=$? 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); } && 4586 { ac_try='test -s conftest.$ac_objext' 4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4588 (eval $ac_try) 2>&5 4589 ac_status=$? 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); }; }; then 4592 ac_lo=$ac_mid; break 4593else 4594 echo "$as_me: failed program was:" >&5 4595sed 's/^/| /' conftest.$ac_ext >&5 4596 4597ac_hi=`expr '(' $ac_mid ')' - 1` 4598 if test $ac_mid -le $ac_hi; then 4599 ac_lo= ac_hi= 4600 break 4601 fi 4602 ac_mid=`expr 2 '*' $ac_mid` 4603fi 4604rm -f conftest.$ac_objext conftest.$ac_ext 4605 done 4606else 4607 echo "$as_me: failed program was:" >&5 4608sed 's/^/| /' conftest.$ac_ext >&5 4609 4610ac_lo= ac_hi= 4611fi 4612rm -f conftest.$ac_objext conftest.$ac_ext 4613fi 4614rm -f conftest.$ac_objext conftest.$ac_ext 4615# Binary search between lo and hi bounds. 4616while test "x$ac_lo" != "x$ac_hi"; do 4617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4618 cat >conftest.$ac_ext <<_ACEOF 4619#line $LINENO "configure" 4620/* confdefs.h. */ 4621_ACEOF 4622cat confdefs.h >>conftest.$ac_ext 4623cat >>conftest.$ac_ext <<_ACEOF 4624/* end confdefs.h. */ 4625$ac_includes_default 4626int 4627main () 4628{ 4629static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4630test_array [0] = 0 4631 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636rm -f conftest.$ac_objext 4637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4638 (eval $ac_compile) 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } && 4642 { ac_try='test -s conftest.$ac_objext' 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4644 (eval $ac_try) 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_hi=$ac_mid 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653ac_lo=`expr '(' $ac_mid ')' + 1` 4654fi 4655rm -f conftest.$ac_objext conftest.$ac_ext 4656done 4657case $ac_lo in 4658?*) ac_cv_sizeof_char=$ac_lo;; 4659'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4660See \`config.log' for more details." >&5 4661echo "$as_me: error: cannot compute sizeof (char), 77 4662See \`config.log' for more details." >&2;} 4663 { (exit 1); exit 1; }; } ;; 4664esac 4665else 4666 if test "$cross_compiling" = yes; then 4667 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4668See \`config.log' for more details." >&5 4669echo "$as_me: error: cannot run test program while cross compiling 4670See \`config.log' for more details." >&2;} 4671 { (exit 1); exit 1; }; } 4672else 4673 cat >conftest.$ac_ext <<_ACEOF 4674#line $LINENO "configure" 4675/* confdefs.h. */ 4676_ACEOF 4677cat confdefs.h >>conftest.$ac_ext 4678cat >>conftest.$ac_ext <<_ACEOF 4679/* end confdefs.h. */ 4680$ac_includes_default 4681long longval () { return (long) (sizeof (char)); } 4682unsigned long ulongval () { return (long) (sizeof (char)); } 4683#include <stdio.h> 4684#include <stdlib.h> 4685int 4686main () 4687{ 4688 4689 FILE *f = fopen ("conftest.val", "w"); 4690 if (! f) 4691 exit (1); 4692 if (((long) (sizeof (char))) < 0) 4693 { 4694 long i = longval (); 4695 if (i != ((long) (sizeof (char)))) 4696 exit (1); 4697 fprintf (f, "%ld\n", i); 4698 } 4699 else 4700 { 4701 unsigned long i = ulongval (); 4702 if (i != ((long) (sizeof (char)))) 4703 exit (1); 4704 fprintf (f, "%lu\n", i); 4705 } 4706 exit (ferror (f) || fclose (f) != 0); 4707 4708 ; 4709 return 0; 4710} 4711_ACEOF 4712rm -f conftest$ac_exeext 4713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4714 (eval $ac_link) 2>&5 4715 ac_status=$? 4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4719 (eval $ac_try) 2>&5 4720 ac_status=$? 4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4722 (exit $ac_status); }; }; then 4723 ac_cv_sizeof_char=`cat conftest.val` 4724else 4725 echo "$as_me: program exited with status $ac_status" >&5 4726echo "$as_me: failed program was:" >&5 4727sed 's/^/| /' conftest.$ac_ext >&5 4728 4729( exit $ac_status ) 4730{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4731See \`config.log' for more details." >&5 4732echo "$as_me: error: cannot compute sizeof (char), 77 4733See \`config.log' for more details." >&2;} 4734 { (exit 1); exit 1; }; } 4735fi 4736rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4737fi 4738fi 4739rm -f conftest.val 4740else 4741 ac_cv_sizeof_char=0 4742fi 4743fi 4744echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 4745echo "${ECHO_T}$ac_cv_sizeof_char" >&6 4746cat >>confdefs.h <<_ACEOF 4747#define SIZEOF_CHAR $ac_cv_sizeof_char 4748_ACEOF 4749 4750 4751echo "$as_me:$LINENO: checking for short" >&5 4752echo $ECHO_N "checking for short... $ECHO_C" >&6 4753if test "${ac_cv_type_short+set}" = set; then 4754 echo $ECHO_N "(cached) $ECHO_C" >&6 4755else 4756 cat >conftest.$ac_ext <<_ACEOF 4757#line $LINENO "configure" 4758/* confdefs.h. */ 4759_ACEOF 4760cat confdefs.h >>conftest.$ac_ext 4761cat >>conftest.$ac_ext <<_ACEOF 4762/* end confdefs.h. */ 4763$ac_includes_default 4764int 4765main () 4766{ 4767if ((short *) 0) 4768 return 0; 4769if (sizeof (short)) 4770 return 0; 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775rm -f conftest.$ac_objext 4776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4777 (eval $ac_compile) 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } && 4781 { ac_try='test -s conftest.$ac_objext' 4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4783 (eval $ac_try) 2>&5 4784 ac_status=$? 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); }; }; then 4787 ac_cv_type_short=yes 4788else 4789 echo "$as_me: failed program was:" >&5 4790sed 's/^/| /' conftest.$ac_ext >&5 4791 4792ac_cv_type_short=no 4793fi 4794rm -f conftest.$ac_objext conftest.$ac_ext 4795fi 4796echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 4797echo "${ECHO_T}$ac_cv_type_short" >&6 4798 4799echo "$as_me:$LINENO: checking size of short" >&5 4800echo $ECHO_N "checking size of short... $ECHO_C" >&6 4801if test "${ac_cv_sizeof_short+set}" = set; then 4802 echo $ECHO_N "(cached) $ECHO_C" >&6 4803else 4804 if test "$ac_cv_type_short" = yes; then 4805 # The cast to unsigned long works around a bug in the HP C Compiler 4806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4808 # This bug is HP SR number 8606223364. 4809 if test "$cross_compiling" = yes; then 4810 # Depending upon the size, compute the lo and hi bounds. 4811cat >conftest.$ac_ext <<_ACEOF 4812#line $LINENO "configure" 4813/* confdefs.h. */ 4814_ACEOF 4815cat confdefs.h >>conftest.$ac_ext 4816cat >>conftest.$ac_ext <<_ACEOF 4817/* end confdefs.h. */ 4818$ac_includes_default 4819int 4820main () 4821{ 4822static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4823test_array [0] = 0 4824 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829rm -f conftest.$ac_objext 4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4831 (eval $ac_compile) 2>&5 4832 ac_status=$? 4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4834 (exit $ac_status); } && 4835 { ac_try='test -s conftest.$ac_objext' 4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4837 (eval $ac_try) 2>&5 4838 ac_status=$? 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); }; }; then 4841 ac_lo=0 ac_mid=0 4842 while :; do 4843 cat >conftest.$ac_ext <<_ACEOF 4844#line $LINENO "configure" 4845/* confdefs.h. */ 4846_ACEOF 4847cat confdefs.h >>conftest.$ac_ext 4848cat >>conftest.$ac_ext <<_ACEOF 4849/* end confdefs.h. */ 4850$ac_includes_default 4851int 4852main () 4853{ 4854static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4855test_array [0] = 0 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861rm -f conftest.$ac_objext 4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4863 (eval $ac_compile) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); } && 4867 { ac_try='test -s conftest.$ac_objext' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; }; then 4873 ac_hi=$ac_mid; break 4874else 4875 echo "$as_me: failed program was:" >&5 4876sed 's/^/| /' conftest.$ac_ext >&5 4877 4878ac_lo=`expr $ac_mid + 1` 4879 if test $ac_lo -le $ac_mid; then 4880 ac_lo= ac_hi= 4881 break 4882 fi 4883 ac_mid=`expr 2 '*' $ac_mid + 1` 4884fi 4885rm -f conftest.$ac_objext conftest.$ac_ext 4886 done 4887else 4888 echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891cat >conftest.$ac_ext <<_ACEOF 4892#line $LINENO "configure" 4893/* confdefs.h. */ 4894_ACEOF 4895cat confdefs.h >>conftest.$ac_ext 4896cat >>conftest.$ac_ext <<_ACEOF 4897/* end confdefs.h. */ 4898$ac_includes_default 4899int 4900main () 4901{ 4902static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 4903test_array [0] = 0 4904 4905 ; 4906 return 0; 4907} 4908_ACEOF 4909rm -f conftest.$ac_objext 4910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4911 (eval $ac_compile) 2>&5 4912 ac_status=$? 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } && 4915 { ac_try='test -s conftest.$ac_objext' 4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4917 (eval $ac_try) 2>&5 4918 ac_status=$? 4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 (exit $ac_status); }; }; then 4921 ac_hi=-1 ac_mid=-1 4922 while :; do 4923 cat >conftest.$ac_ext <<_ACEOF 4924#line $LINENO "configure" 4925/* confdefs.h. */ 4926_ACEOF 4927cat confdefs.h >>conftest.$ac_ext 4928cat >>conftest.$ac_ext <<_ACEOF 4929/* end confdefs.h. */ 4930$ac_includes_default 4931int 4932main () 4933{ 4934static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 4935test_array [0] = 0 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941rm -f conftest.$ac_objext 4942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4943 (eval $ac_compile) 2>&5 4944 ac_status=$? 4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4946 (exit $ac_status); } && 4947 { ac_try='test -s conftest.$ac_objext' 4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4949 (eval $ac_try) 2>&5 4950 ac_status=$? 4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); }; }; then 4953 ac_lo=$ac_mid; break 4954else 4955 echo "$as_me: failed program was:" >&5 4956sed 's/^/| /' conftest.$ac_ext >&5 4957 4958ac_hi=`expr '(' $ac_mid ')' - 1` 4959 if test $ac_mid -le $ac_hi; then 4960 ac_lo= ac_hi= 4961 break 4962 fi 4963 ac_mid=`expr 2 '*' $ac_mid` 4964fi 4965rm -f conftest.$ac_objext conftest.$ac_ext 4966 done 4967else 4968 echo "$as_me: failed program was:" >&5 4969sed 's/^/| /' conftest.$ac_ext >&5 4970 4971ac_lo= ac_hi= 4972fi 4973rm -f conftest.$ac_objext conftest.$ac_ext 4974fi 4975rm -f conftest.$ac_objext conftest.$ac_ext 4976# Binary search between lo and hi bounds. 4977while test "x$ac_lo" != "x$ac_hi"; do 4978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4979 cat >conftest.$ac_ext <<_ACEOF 4980#line $LINENO "configure" 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986$ac_includes_default 4987int 4988main () 4989{ 4990static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4991test_array [0] = 0 4992 4993 ; 4994 return 0; 4995} 4996_ACEOF 4997rm -f conftest.$ac_objext 4998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4999 (eval $ac_compile) 2>&5 5000 ac_status=$? 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && 5003 { ac_try='test -s conftest.$ac_objext' 5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5005 (eval $ac_try) 2>&5 5006 ac_status=$? 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); }; }; then 5009 ac_hi=$ac_mid 5010else 5011 echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014ac_lo=`expr '(' $ac_mid ')' + 1` 5015fi 5016rm -f conftest.$ac_objext conftest.$ac_ext 5017done 5018case $ac_lo in 5019?*) ac_cv_sizeof_short=$ac_lo;; 5020'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5021See \`config.log' for more details." >&5 5022echo "$as_me: error: cannot compute sizeof (short), 77 5023See \`config.log' for more details." >&2;} 5024 { (exit 1); exit 1; }; } ;; 5025esac 5026else 5027 if test "$cross_compiling" = yes; then 5028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5029See \`config.log' for more details." >&5 5030echo "$as_me: error: cannot run test program while cross compiling 5031See \`config.log' for more details." >&2;} 5032 { (exit 1); exit 1; }; } 5033else 5034 cat >conftest.$ac_ext <<_ACEOF 5035#line $LINENO "configure" 5036/* confdefs.h. */ 5037_ACEOF 5038cat confdefs.h >>conftest.$ac_ext 5039cat >>conftest.$ac_ext <<_ACEOF 5040/* end confdefs.h. */ 5041$ac_includes_default 5042long longval () { return (long) (sizeof (short)); } 5043unsigned long ulongval () { return (long) (sizeof (short)); } 5044#include <stdio.h> 5045#include <stdlib.h> 5046int 5047main () 5048{ 5049 5050 FILE *f = fopen ("conftest.val", "w"); 5051 if (! f) 5052 exit (1); 5053 if (((long) (sizeof (short))) < 0) 5054 { 5055 long i = longval (); 5056 if (i != ((long) (sizeof (short)))) 5057 exit (1); 5058 fprintf (f, "%ld\n", i); 5059 } 5060 else 5061 { 5062 unsigned long i = ulongval (); 5063 if (i != ((long) (sizeof (short)))) 5064 exit (1); 5065 fprintf (f, "%lu\n", i); 5066 } 5067 exit (ferror (f) || fclose (f) != 0); 5068 5069 ; 5070 return 0; 5071} 5072_ACEOF 5073rm -f conftest$ac_exeext 5074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5075 (eval $ac_link) 2>&5 5076 ac_status=$? 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5080 (eval $ac_try) 2>&5 5081 ac_status=$? 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); }; }; then 5084 ac_cv_sizeof_short=`cat conftest.val` 5085else 5086 echo "$as_me: program exited with status $ac_status" >&5 5087echo "$as_me: failed program was:" >&5 5088sed 's/^/| /' conftest.$ac_ext >&5 5089 5090( exit $ac_status ) 5091{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5092See \`config.log' for more details." >&5 5093echo "$as_me: error: cannot compute sizeof (short), 77 5094See \`config.log' for more details." >&2;} 5095 { (exit 1); exit 1; }; } 5096fi 5097rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5098fi 5099fi 5100rm -f conftest.val 5101else 5102 ac_cv_sizeof_short=0 5103fi 5104fi 5105echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 5106echo "${ECHO_T}$ac_cv_sizeof_short" >&6 5107cat >>confdefs.h <<_ACEOF 5108#define SIZEOF_SHORT $ac_cv_sizeof_short 5109_ACEOF 5110 5111 5112echo "$as_me:$LINENO: checking for int" >&5 5113echo $ECHO_N "checking for int... $ECHO_C" >&6 5114if test "${ac_cv_type_int+set}" = set; then 5115 echo $ECHO_N "(cached) $ECHO_C" >&6 5116else 5117 cat >conftest.$ac_ext <<_ACEOF 5118#line $LINENO "configure" 5119/* confdefs.h. */ 5120_ACEOF 5121cat confdefs.h >>conftest.$ac_ext 5122cat >>conftest.$ac_ext <<_ACEOF 5123/* end confdefs.h. */ 5124$ac_includes_default 5125int 5126main () 5127{ 5128if ((int *) 0) 5129 return 0; 5130if (sizeof (int)) 5131 return 0; 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136rm -f conftest.$ac_objext 5137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5138 (eval $ac_compile) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -s conftest.$ac_objext' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_cv_type_int=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153ac_cv_type_int=no 5154fi 5155rm -f conftest.$ac_objext conftest.$ac_ext 5156fi 5157echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5158echo "${ECHO_T}$ac_cv_type_int" >&6 5159 5160echo "$as_me:$LINENO: checking size of int" >&5 5161echo $ECHO_N "checking size of int... $ECHO_C" >&6 5162if test "${ac_cv_sizeof_int+set}" = set; then 5163 echo $ECHO_N "(cached) $ECHO_C" >&6 5164else 5165 if test "$ac_cv_type_int" = yes; then 5166 # The cast to unsigned long works around a bug in the HP C Compiler 5167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5169 # This bug is HP SR number 8606223364. 5170 if test "$cross_compiling" = yes; then 5171 # Depending upon the size, compute the lo and hi bounds. 5172cat >conftest.$ac_ext <<_ACEOF 5173#line $LINENO "configure" 5174/* confdefs.h. */ 5175_ACEOF 5176cat confdefs.h >>conftest.$ac_ext 5177cat >>conftest.$ac_ext <<_ACEOF 5178/* end confdefs.h. */ 5179$ac_includes_default 5180int 5181main () 5182{ 5183static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5184test_array [0] = 0 5185 5186 ; 5187 return 0; 5188} 5189_ACEOF 5190rm -f conftest.$ac_objext 5191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5192 (eval $ac_compile) 2>&5 5193 ac_status=$? 5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); } && 5196 { ac_try='test -s conftest.$ac_objext' 5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5198 (eval $ac_try) 2>&5 5199 ac_status=$? 5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5201 (exit $ac_status); }; }; then 5202 ac_lo=0 ac_mid=0 5203 while :; do 5204 cat >conftest.$ac_ext <<_ACEOF 5205#line $LINENO "configure" 5206/* confdefs.h. */ 5207_ACEOF 5208cat confdefs.h >>conftest.$ac_ext 5209cat >>conftest.$ac_ext <<_ACEOF 5210/* end confdefs.h. */ 5211$ac_includes_default 5212int 5213main () 5214{ 5215static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5216test_array [0] = 0 5217 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222rm -f conftest.$ac_objext 5223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5224 (eval $ac_compile) 2>&5 5225 ac_status=$? 5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5227 (exit $ac_status); } && 5228 { ac_try='test -s conftest.$ac_objext' 5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5230 (eval $ac_try) 2>&5 5231 ac_status=$? 5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 (exit $ac_status); }; }; then 5234 ac_hi=$ac_mid; break 5235else 5236 echo "$as_me: failed program was:" >&5 5237sed 's/^/| /' conftest.$ac_ext >&5 5238 5239ac_lo=`expr $ac_mid + 1` 5240 if test $ac_lo -le $ac_mid; then 5241 ac_lo= ac_hi= 5242 break 5243 fi 5244 ac_mid=`expr 2 '*' $ac_mid + 1` 5245fi 5246rm -f conftest.$ac_objext conftest.$ac_ext 5247 done 5248else 5249 echo "$as_me: failed program was:" >&5 5250sed 's/^/| /' conftest.$ac_ext >&5 5251 5252cat >conftest.$ac_ext <<_ACEOF 5253#line $LINENO "configure" 5254/* confdefs.h. */ 5255_ACEOF 5256cat confdefs.h >>conftest.$ac_ext 5257cat >>conftest.$ac_ext <<_ACEOF 5258/* end confdefs.h. */ 5259$ac_includes_default 5260int 5261main () 5262{ 5263static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5264test_array [0] = 0 5265 5266 ; 5267 return 0; 5268} 5269_ACEOF 5270rm -f conftest.$ac_objext 5271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5272 (eval $ac_compile) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); } && 5276 { ac_try='test -s conftest.$ac_objext' 5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5278 (eval $ac_try) 2>&5 5279 ac_status=$? 5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5281 (exit $ac_status); }; }; then 5282 ac_hi=-1 ac_mid=-1 5283 while :; do 5284 cat >conftest.$ac_ext <<_ACEOF 5285#line $LINENO "configure" 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291$ac_includes_default 5292int 5293main () 5294{ 5295static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5296test_array [0] = 0 5297 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302rm -f conftest.$ac_objext 5303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5304 (eval $ac_compile) 2>&5 5305 ac_status=$? 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5307 (exit $ac_status); } && 5308 { ac_try='test -s conftest.$ac_objext' 5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5310 (eval $ac_try) 2>&5 5311 ac_status=$? 5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5313 (exit $ac_status); }; }; then 5314 ac_lo=$ac_mid; break 5315else 5316 echo "$as_me: failed program was:" >&5 5317sed 's/^/| /' conftest.$ac_ext >&5 5318 5319ac_hi=`expr '(' $ac_mid ')' - 1` 5320 if test $ac_mid -le $ac_hi; then 5321 ac_lo= ac_hi= 5322 break 5323 fi 5324 ac_mid=`expr 2 '*' $ac_mid` 5325fi 5326rm -f conftest.$ac_objext conftest.$ac_ext 5327 done 5328else 5329 echo "$as_me: failed program was:" >&5 5330sed 's/^/| /' conftest.$ac_ext >&5 5331 5332ac_lo= ac_hi= 5333fi 5334rm -f conftest.$ac_objext conftest.$ac_ext 5335fi 5336rm -f conftest.$ac_objext conftest.$ac_ext 5337# Binary search between lo and hi bounds. 5338while test "x$ac_lo" != "x$ac_hi"; do 5339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5340 cat >conftest.$ac_ext <<_ACEOF 5341#line $LINENO "configure" 5342/* confdefs.h. */ 5343_ACEOF 5344cat confdefs.h >>conftest.$ac_ext 5345cat >>conftest.$ac_ext <<_ACEOF 5346/* end confdefs.h. */ 5347$ac_includes_default 5348int 5349main () 5350{ 5351static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5352test_array [0] = 0 5353 5354 ; 5355 return 0; 5356} 5357_ACEOF 5358rm -f conftest.$ac_objext 5359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5360 (eval $ac_compile) 2>&5 5361 ac_status=$? 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); } && 5364 { ac_try='test -s conftest.$ac_objext' 5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5366 (eval $ac_try) 2>&5 5367 ac_status=$? 5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5369 (exit $ac_status); }; }; then 5370 ac_hi=$ac_mid 5371else 5372 echo "$as_me: failed program was:" >&5 5373sed 's/^/| /' conftest.$ac_ext >&5 5374 5375ac_lo=`expr '(' $ac_mid ')' + 1` 5376fi 5377rm -f conftest.$ac_objext conftest.$ac_ext 5378done 5379case $ac_lo in 5380?*) ac_cv_sizeof_int=$ac_lo;; 5381'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5382See \`config.log' for more details." >&5 5383echo "$as_me: error: cannot compute sizeof (int), 77 5384See \`config.log' for more details." >&2;} 5385 { (exit 1); exit 1; }; } ;; 5386esac 5387else 5388 if test "$cross_compiling" = yes; then 5389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5390See \`config.log' for more details." >&5 5391echo "$as_me: error: cannot run test program while cross compiling 5392See \`config.log' for more details." >&2;} 5393 { (exit 1); exit 1; }; } 5394else 5395 cat >conftest.$ac_ext <<_ACEOF 5396#line $LINENO "configure" 5397/* confdefs.h. */ 5398_ACEOF 5399cat confdefs.h >>conftest.$ac_ext 5400cat >>conftest.$ac_ext <<_ACEOF 5401/* end confdefs.h. */ 5402$ac_includes_default 5403long longval () { return (long) (sizeof (int)); } 5404unsigned long ulongval () { return (long) (sizeof (int)); } 5405#include <stdio.h> 5406#include <stdlib.h> 5407int 5408main () 5409{ 5410 5411 FILE *f = fopen ("conftest.val", "w"); 5412 if (! f) 5413 exit (1); 5414 if (((long) (sizeof (int))) < 0) 5415 { 5416 long i = longval (); 5417 if (i != ((long) (sizeof (int)))) 5418 exit (1); 5419 fprintf (f, "%ld\n", i); 5420 } 5421 else 5422 { 5423 unsigned long i = ulongval (); 5424 if (i != ((long) (sizeof (int)))) 5425 exit (1); 5426 fprintf (f, "%lu\n", i); 5427 } 5428 exit (ferror (f) || fclose (f) != 0); 5429 5430 ; 5431 return 0; 5432} 5433_ACEOF 5434rm -f conftest$ac_exeext 5435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5436 (eval $ac_link) 2>&5 5437 ac_status=$? 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5441 (eval $ac_try) 2>&5 5442 ac_status=$? 5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5444 (exit $ac_status); }; }; then 5445 ac_cv_sizeof_int=`cat conftest.val` 5446else 5447 echo "$as_me: program exited with status $ac_status" >&5 5448echo "$as_me: failed program was:" >&5 5449sed 's/^/| /' conftest.$ac_ext >&5 5450 5451( exit $ac_status ) 5452{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5453See \`config.log' for more details." >&5 5454echo "$as_me: error: cannot compute sizeof (int), 77 5455See \`config.log' for more details." >&2;} 5456 { (exit 1); exit 1; }; } 5457fi 5458rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5459fi 5460fi 5461rm -f conftest.val 5462else 5463 ac_cv_sizeof_int=0 5464fi 5465fi 5466echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 5467echo "${ECHO_T}$ac_cv_sizeof_int" >&6 5468cat >>confdefs.h <<_ACEOF 5469#define SIZEOF_INT $ac_cv_sizeof_int 5470_ACEOF 5471 5472 5473echo "$as_me:$LINENO: checking for long" >&5 5474echo $ECHO_N "checking for long... $ECHO_C" >&6 5475if test "${ac_cv_type_long+set}" = set; then 5476 echo $ECHO_N "(cached) $ECHO_C" >&6 5477else 5478 cat >conftest.$ac_ext <<_ACEOF 5479#line $LINENO "configure" 5480/* confdefs.h. */ 5481_ACEOF 5482cat confdefs.h >>conftest.$ac_ext 5483cat >>conftest.$ac_ext <<_ACEOF 5484/* end confdefs.h. */ 5485$ac_includes_default 5486int 5487main () 5488{ 5489if ((long *) 0) 5490 return 0; 5491if (sizeof (long)) 5492 return 0; 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497rm -f conftest.$ac_objext 5498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5499 (eval $ac_compile) 2>&5 5500 ac_status=$? 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); } && 5503 { ac_try='test -s conftest.$ac_objext' 5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5505 (eval $ac_try) 2>&5 5506 ac_status=$? 5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); }; }; then 5509 ac_cv_type_long=yes 5510else 5511 echo "$as_me: failed program was:" >&5 5512sed 's/^/| /' conftest.$ac_ext >&5 5513 5514ac_cv_type_long=no 5515fi 5516rm -f conftest.$ac_objext conftest.$ac_ext 5517fi 5518echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 5519echo "${ECHO_T}$ac_cv_type_long" >&6 5520 5521echo "$as_me:$LINENO: checking size of long" >&5 5522echo $ECHO_N "checking size of long... $ECHO_C" >&6 5523if test "${ac_cv_sizeof_long+set}" = set; then 5524 echo $ECHO_N "(cached) $ECHO_C" >&6 5525else 5526 if test "$ac_cv_type_long" = yes; then 5527 # The cast to unsigned long works around a bug in the HP C Compiler 5528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5530 # This bug is HP SR number 8606223364. 5531 if test "$cross_compiling" = yes; then 5532 # Depending upon the size, compute the lo and hi bounds. 5533cat >conftest.$ac_ext <<_ACEOF 5534#line $LINENO "configure" 5535/* confdefs.h. */ 5536_ACEOF 5537cat confdefs.h >>conftest.$ac_ext 5538cat >>conftest.$ac_ext <<_ACEOF 5539/* end confdefs.h. */ 5540$ac_includes_default 5541int 5542main () 5543{ 5544static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5545test_array [0] = 0 5546 5547 ; 5548 return 0; 5549} 5550_ACEOF 5551rm -f conftest.$ac_objext 5552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5553 (eval $ac_compile) 2>&5 5554 ac_status=$? 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } && 5557 { ac_try='test -s conftest.$ac_objext' 5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5559 (eval $ac_try) 2>&5 5560 ac_status=$? 5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5562 (exit $ac_status); }; }; then 5563 ac_lo=0 ac_mid=0 5564 while :; do 5565 cat >conftest.$ac_ext <<_ACEOF 5566#line $LINENO "configure" 5567/* confdefs.h. */ 5568_ACEOF 5569cat confdefs.h >>conftest.$ac_ext 5570cat >>conftest.$ac_ext <<_ACEOF 5571/* end confdefs.h. */ 5572$ac_includes_default 5573int 5574main () 5575{ 5576static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5577test_array [0] = 0 5578 5579 ; 5580 return 0; 5581} 5582_ACEOF 5583rm -f conftest.$ac_objext 5584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5585 (eval $ac_compile) 2>&5 5586 ac_status=$? 5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5588 (exit $ac_status); } && 5589 { ac_try='test -s conftest.$ac_objext' 5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5591 (eval $ac_try) 2>&5 5592 ac_status=$? 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 (exit $ac_status); }; }; then 5595 ac_hi=$ac_mid; break 5596else 5597 echo "$as_me: failed program was:" >&5 5598sed 's/^/| /' conftest.$ac_ext >&5 5599 5600ac_lo=`expr $ac_mid + 1` 5601 if test $ac_lo -le $ac_mid; then 5602 ac_lo= ac_hi= 5603 break 5604 fi 5605 ac_mid=`expr 2 '*' $ac_mid + 1` 5606fi 5607rm -f conftest.$ac_objext conftest.$ac_ext 5608 done 5609else 5610 echo "$as_me: failed program was:" >&5 5611sed 's/^/| /' conftest.$ac_ext >&5 5612 5613cat >conftest.$ac_ext <<_ACEOF 5614#line $LINENO "configure" 5615/* confdefs.h. */ 5616_ACEOF 5617cat confdefs.h >>conftest.$ac_ext 5618cat >>conftest.$ac_ext <<_ACEOF 5619/* end confdefs.h. */ 5620$ac_includes_default 5621int 5622main () 5623{ 5624static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5625test_array [0] = 0 5626 5627 ; 5628 return 0; 5629} 5630_ACEOF 5631rm -f conftest.$ac_objext 5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5633 (eval $ac_compile) 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } && 5637 { ac_try='test -s conftest.$ac_objext' 5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5639 (eval $ac_try) 2>&5 5640 ac_status=$? 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; }; then 5643 ac_hi=-1 ac_mid=-1 5644 while :; do 5645 cat >conftest.$ac_ext <<_ACEOF 5646#line $LINENO "configure" 5647/* confdefs.h. */ 5648_ACEOF 5649cat confdefs.h >>conftest.$ac_ext 5650cat >>conftest.$ac_ext <<_ACEOF 5651/* end confdefs.h. */ 5652$ac_includes_default 5653int 5654main () 5655{ 5656static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5657test_array [0] = 0 5658 5659 ; 5660 return 0; 5661} 5662_ACEOF 5663rm -f conftest.$ac_objext 5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5665 (eval $ac_compile) 2>&5 5666 ac_status=$? 5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 (exit $ac_status); } && 5669 { ac_try='test -s conftest.$ac_objext' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; }; then 5675 ac_lo=$ac_mid; break 5676else 5677 echo "$as_me: failed program was:" >&5 5678sed 's/^/| /' conftest.$ac_ext >&5 5679 5680ac_hi=`expr '(' $ac_mid ')' - 1` 5681 if test $ac_mid -le $ac_hi; then 5682 ac_lo= ac_hi= 5683 break 5684 fi 5685 ac_mid=`expr 2 '*' $ac_mid` 5686fi 5687rm -f conftest.$ac_objext conftest.$ac_ext 5688 done 5689else 5690 echo "$as_me: failed program was:" >&5 5691sed 's/^/| /' conftest.$ac_ext >&5 5692 5693ac_lo= ac_hi= 5694fi 5695rm -f conftest.$ac_objext conftest.$ac_ext 5696fi 5697rm -f conftest.$ac_objext conftest.$ac_ext 5698# Binary search between lo and hi bounds. 5699while test "x$ac_lo" != "x$ac_hi"; do 5700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5701 cat >conftest.$ac_ext <<_ACEOF 5702#line $LINENO "configure" 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708$ac_includes_default 5709int 5710main () 5711{ 5712static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5713test_array [0] = 0 5714 5715 ; 5716 return 0; 5717} 5718_ACEOF 5719rm -f conftest.$ac_objext 5720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5721 (eval $ac_compile) 2>&5 5722 ac_status=$? 5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); } && 5725 { ac_try='test -s conftest.$ac_objext' 5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5727 (eval $ac_try) 2>&5 5728 ac_status=$? 5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5730 (exit $ac_status); }; }; then 5731 ac_hi=$ac_mid 5732else 5733 echo "$as_me: failed program was:" >&5 5734sed 's/^/| /' conftest.$ac_ext >&5 5735 5736ac_lo=`expr '(' $ac_mid ')' + 1` 5737fi 5738rm -f conftest.$ac_objext conftest.$ac_ext 5739done 5740case $ac_lo in 5741?*) ac_cv_sizeof_long=$ac_lo;; 5742'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5743See \`config.log' for more details." >&5 5744echo "$as_me: error: cannot compute sizeof (long), 77 5745See \`config.log' for more details." >&2;} 5746 { (exit 1); exit 1; }; } ;; 5747esac 5748else 5749 if test "$cross_compiling" = yes; then 5750 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5751See \`config.log' for more details." >&5 5752echo "$as_me: error: cannot run test program while cross compiling 5753See \`config.log' for more details." >&2;} 5754 { (exit 1); exit 1; }; } 5755else 5756 cat >conftest.$ac_ext <<_ACEOF 5757#line $LINENO "configure" 5758/* confdefs.h. */ 5759_ACEOF 5760cat confdefs.h >>conftest.$ac_ext 5761cat >>conftest.$ac_ext <<_ACEOF 5762/* end confdefs.h. */ 5763$ac_includes_default 5764long longval () { return (long) (sizeof (long)); } 5765unsigned long ulongval () { return (long) (sizeof (long)); } 5766#include <stdio.h> 5767#include <stdlib.h> 5768int 5769main () 5770{ 5771 5772 FILE *f = fopen ("conftest.val", "w"); 5773 if (! f) 5774 exit (1); 5775 if (((long) (sizeof (long))) < 0) 5776 { 5777 long i = longval (); 5778 if (i != ((long) (sizeof (long)))) 5779 exit (1); 5780 fprintf (f, "%ld\n", i); 5781 } 5782 else 5783 { 5784 unsigned long i = ulongval (); 5785 if (i != ((long) (sizeof (long)))) 5786 exit (1); 5787 fprintf (f, "%lu\n", i); 5788 } 5789 exit (ferror (f) || fclose (f) != 0); 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795rm -f conftest$ac_exeext 5796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5797 (eval $ac_link) 2>&5 5798 ac_status=$? 5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5802 (eval $ac_try) 2>&5 5803 ac_status=$? 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); }; }; then 5806 ac_cv_sizeof_long=`cat conftest.val` 5807else 5808 echo "$as_me: program exited with status $ac_status" >&5 5809echo "$as_me: failed program was:" >&5 5810sed 's/^/| /' conftest.$ac_ext >&5 5811 5812( exit $ac_status ) 5813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5814See \`config.log' for more details." >&5 5815echo "$as_me: error: cannot compute sizeof (long), 77 5816See \`config.log' for more details." >&2;} 5817 { (exit 1); exit 1; }; } 5818fi 5819rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5820fi 5821fi 5822rm -f conftest.val 5823else 5824 ac_cv_sizeof_long=0 5825fi 5826fi 5827echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5828echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5829cat >>confdefs.h <<_ACEOF 5830#define SIZEOF_LONG $ac_cv_sizeof_long 5831_ACEOF 5832 5833 5834 5835 5836 5837 echo "$as_me:$LINENO: checking for addrinfo" >&5 5838echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 5839 if test "${ac_cv_addrinfo+set}" = set; then 5840 echo $ECHO_N "(cached) $ECHO_C" >&6 5841else 5842 cat >conftest.$ac_ext <<_ACEOF 5843#line $LINENO "configure" 5844/* confdefs.h. */ 5845_ACEOF 5846cat confdefs.h >>conftest.$ac_ext 5847cat >>conftest.$ac_ext <<_ACEOF 5848/* end confdefs.h. */ 5849 5850# include <netdb.h> 5851int 5852main () 5853{ 5854struct addrinfo a 5855 ; 5856 return 0; 5857} 5858_ACEOF 5859rm -f conftest.$ac_objext 5860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5861 (eval $ac_compile) 2>&5 5862 ac_status=$? 5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5864 (exit $ac_status); } && 5865 { ac_try='test -s conftest.$ac_objext' 5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5867 (eval $ac_try) 2>&5 5868 ac_status=$? 5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5870 (exit $ac_status); }; }; then 5871 ac_cv_addrinfo=yes 5872else 5873 echo "$as_me: failed program was:" >&5 5874sed 's/^/| /' conftest.$ac_ext >&5 5875 5876ac_cv_addrinfo=no 5877fi 5878rm -f conftest.$ac_objext conftest.$ac_ext 5879fi 5880 5881 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 5882echo "${ECHO_T}$ac_cv_addrinfo" >&6 5883 if test $ac_cv_addrinfo = yes; then 5884 cat >>confdefs.h <<\_ACEOF 5885#define HAVE_ADDRINFO 1 5886_ACEOF 5887 5888 else 5889 cat >>confdefs.h <<\_ACEOF 5890#define NEED_ADDRINFO_H 1 5891_ACEOF 5892 5893 fi 5894 5895if test "$ac_cv_addrinfo" = no; then 5896 missing_includes=yes 5897fi 5898 5899 5900 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 5901echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6 5902 if test "${ac_cv_maxserv+set}" = set; then 5903 echo $ECHO_N "(cached) $ECHO_C" >&6 5904else 5905 cat >conftest.$ac_ext <<_ACEOF 5906#line $LINENO "configure" 5907/* confdefs.h. */ 5908_ACEOF 5909cat confdefs.h >>conftest.$ac_ext 5910cat >>conftest.$ac_ext <<_ACEOF 5911/* end confdefs.h. */ 5912#include <netdb.h> 5913#ifdef NI_MAXSERV 5914yes 5915#endif 5916_ACEOF 5917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5918 $EGREP "yes" >/dev/null 2>&1; then 5919 ac_cv_maxserv=yes 5920else 5921 ac_cv_maxserv=no 5922fi 5923rm -f conftest* 5924 5925fi 5926 5927 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 5928echo "${ECHO_T}$ac_cv_maxserv" >&6 5929 if test $ac_cv_maxserv != yes; then 5930 cat >>confdefs.h <<\_ACEOF 5931#define NEED_ADDRINFO_H 1 5932_ACEOF 5933 5934 fi 5935 5936if test "$ac_cv_maxserv" = no; then 5937 missing_includes=yes 5938fi 5939 5940 5941 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 5942echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6 5943 if test "${ac_cv_namereqd+set}" = set; then 5944 echo $ECHO_N "(cached) $ECHO_C" >&6 5945else 5946 cat >conftest.$ac_ext <<_ACEOF 5947#line $LINENO "configure" 5948/* confdefs.h. */ 5949_ACEOF 5950cat confdefs.h >>conftest.$ac_ext 5951cat >>conftest.$ac_ext <<_ACEOF 5952/* end confdefs.h. */ 5953#include <netdb.h> 5954#ifdef NI_NOFQDN 5955yes 5956#endif 5957_ACEOF 5958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5959 $EGREP "yes" >/dev/null 2>&1; then 5960 ac_cv_namereqd=yes 5961else 5962 ac_cv_namereqd=no 5963fi 5964rm -f conftest* 5965 5966fi 5967 5968 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 5969echo "${ECHO_T}$ac_cv_namereqd" >&6 5970 if test $ac_cv_namereqd != yes; then 5971 cat >>confdefs.h <<\_ACEOF 5972#define NEED_ADDRINFO_H 1 5973_ACEOF 5974 5975 fi 5976 5977if test "$ac_cv_namereqd" = no; then 5978 missing_includes=yes 5979fi 5980 5981 5982 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 5983echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 5984 if test "${ac_cv_sa_storage+set}" = set; then 5985 echo $ECHO_N "(cached) $ECHO_C" >&6 5986else 5987 cat >conftest.$ac_ext <<_ACEOF 5988#line $LINENO "configure" 5989/* confdefs.h. */ 5990_ACEOF 5991cat confdefs.h >>conftest.$ac_ext 5992cat >>conftest.$ac_ext <<_ACEOF 5993/* end confdefs.h. */ 5994 5995# include <sys/types.h> 5996# include <sys/socket.h> 5997int 5998main () 5999{ 6000struct sockaddr_storage s 6001 ; 6002 return 0; 6003} 6004_ACEOF 6005rm -f conftest.$ac_objext 6006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6007 (eval $ac_compile) 2>&5 6008 ac_status=$? 6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6010 (exit $ac_status); } && 6011 { ac_try='test -s conftest.$ac_objext' 6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6013 (eval $ac_try) 2>&5 6014 ac_status=$? 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); }; }; then 6017 ac_cv_sa_storage=yes 6018else 6019 echo "$as_me: failed program was:" >&5 6020sed 's/^/| /' conftest.$ac_ext >&5 6021 6022ac_cv_sa_storage=no 6023fi 6024rm -f conftest.$ac_objext conftest.$ac_ext 6025fi 6026 6027 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 6028echo "${ECHO_T}$ac_cv_sa_storage" >&6 6029 if test $ac_cv_sa_storage = yes; then 6030 cat >>confdefs.h <<\_ACEOF 6031#define HAVE_SOCKADDR_STORAGE 1 6032_ACEOF 6033 6034 fi 6035 6036if test "$ac_cv_sa_storage" = no; then 6037 missing_includes=yes 6038fi 6039 6040 6041 ac_cv_addrsz=yes 6042 echo "$as_me:$LINENO: checking for INADDRSZ" >&5 6043echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6 6044 if test "${ac_cv_inaddrsz+set}" = set; then 6045 echo $ECHO_N "(cached) $ECHO_C" >&6 6046else 6047 cat >conftest.$ac_ext <<_ACEOF 6048#line $LINENO "configure" 6049/* confdefs.h. */ 6050_ACEOF 6051cat confdefs.h >>conftest.$ac_ext 6052cat >>conftest.$ac_ext <<_ACEOF 6053/* end confdefs.h. */ 6054 6055# include <arpa/nameser.h> 6056int 6057main () 6058{ 6059int a = INADDRSZ 6060 ; 6061 return 0; 6062} 6063_ACEOF 6064rm -f conftest.$ac_objext 6065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6066 (eval $ac_compile) 2>&5 6067 ac_status=$? 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } && 6070 { ac_try='test -s conftest.$ac_objext' 6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6072 (eval $ac_try) 2>&5 6073 ac_status=$? 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); }; }; then 6076 ac_cv_inaddrsz=yes 6077else 6078 echo "$as_me: failed program was:" >&5 6079sed 's/^/| /' conftest.$ac_ext >&5 6080 6081ac_cv_inaddrsz=no 6082fi 6083rm -f conftest.$ac_objext conftest.$ac_ext 6084fi 6085 6086 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 6087echo "${ECHO_T}$ac_cv_inaddrsz" >&6 6088 if test $ac_cv_inaddrsz = yes; then 6089 cat >>confdefs.h <<\_ACEOF 6090#define HAVE_INADDRSZ 1 6091_ACEOF 6092 6093 else 6094 ac_cv_addrsz=no 6095 fi 6096 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 6097echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6 6098 if test "${ac_cv_in6addrsz+set}" = set; then 6099 echo $ECHO_N "(cached) $ECHO_C" >&6 6100else 6101 cat >conftest.$ac_ext <<_ACEOF 6102#line $LINENO "configure" 6103/* confdefs.h. */ 6104_ACEOF 6105cat confdefs.h >>conftest.$ac_ext 6106cat >>conftest.$ac_ext <<_ACEOF 6107/* end confdefs.h. */ 6108 6109# include <arpa/nameser.h> 6110int 6111main () 6112{ 6113int a = IN6ADDRSZ 6114 ; 6115 return 0; 6116} 6117_ACEOF 6118rm -f conftest.$ac_objext 6119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6120 (eval $ac_compile) 2>&5 6121 ac_status=$? 6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6123 (exit $ac_status); } && 6124 { ac_try='test -s conftest.$ac_objext' 6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6126 (eval $ac_try) 2>&5 6127 ac_status=$? 6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); }; }; then 6130 ac_cv_in6addrsz=yes 6131else 6132 echo "$as_me: failed program was:" >&5 6133sed 's/^/| /' conftest.$ac_ext >&5 6134 6135ac_cv_in6addrsz=no 6136fi 6137rm -f conftest.$ac_objext conftest.$ac_ext 6138fi 6139 6140 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 6141echo "${ECHO_T}$ac_cv_in6addrsz" >&6 6142 if test $ac_cv_in6addrsz = yes; then 6143 cat >>confdefs.h <<\_ACEOF 6144#define HAVE_IN6ADDRSZ 1 6145_ACEOF 6146 6147 else 6148 ac_cv_addrsz=no 6149 fi 6150 6151if test "$ac_cv_addrsz" = no; then 6152 missing_includes=yes 6153fi 6154 6155 6156 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 6157echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6 6158 if test "${ac_cv_res_inet6+set}" = set; then 6159 echo $ECHO_N "(cached) $ECHO_C" >&6 6160else 6161 cat >conftest.$ac_ext <<_ACEOF 6162#line $LINENO "configure" 6163/* confdefs.h. */ 6164_ACEOF 6165cat confdefs.h >>conftest.$ac_ext 6166cat >>conftest.$ac_ext <<_ACEOF 6167/* end confdefs.h. */ 6168 6169# include <sys/types.h> 6170# include <netinet/in.h> 6171# include <resolv.h> 6172int 6173main () 6174{ 6175int a = RES_USE_INET6 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180rm -f conftest.$ac_objext 6181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6182 (eval $ac_compile) 2>&5 6183 ac_status=$? 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); } && 6186 { ac_try='test -s conftest.$ac_objext' 6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6188 (eval $ac_try) 2>&5 6189 ac_status=$? 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6191 (exit $ac_status); }; }; then 6192 ac_cv_res_inet6=yes 6193else 6194 echo "$as_me: failed program was:" >&5 6195sed 's/^/| /' conftest.$ac_ext >&5 6196 6197ac_cv_res_inet6=no 6198fi 6199rm -f conftest.$ac_objext conftest.$ac_ext 6200fi 6201 6202 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 6203echo "${ECHO_T}$ac_cv_res_inet6" >&6 6204 if test $ac_cv_res_inet6 = yes; then 6205 cat >>confdefs.h <<\_ACEOF 6206#define HAVE_RES_USE_INET6 1 6207_ACEOF 6208 6209 fi 6210 6211if test "$ac_cv_res_inet6" = no; then 6212 missing_includes=yes 6213fi 6214 6215 6216 echo "$as_me:$LINENO: checking for res_state_ext" >&5 6217echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6 6218 if test "${ac_cv_res_state_ext+set}" = set; then 6219 echo $ECHO_N "(cached) $ECHO_C" >&6 6220else 6221 cat >conftest.$ac_ext <<_ACEOF 6222#line $LINENO "configure" 6223/* confdefs.h. */ 6224_ACEOF 6225cat confdefs.h >>conftest.$ac_ext 6226cat >>conftest.$ac_ext <<_ACEOF 6227/* end confdefs.h. */ 6228 6229# include <sys/types.h> 6230# include <netinet/in.h> 6231# include <netinet6/in6.h> 6232# include <resolv.h> 6233int 6234main () 6235{ 6236struct __res_state_ext e 6237 ; 6238 return 0; 6239} 6240_ACEOF 6241rm -f conftest.$ac_objext 6242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6243 (eval $ac_compile) 2>&5 6244 ac_status=$? 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); } && 6247 { ac_try='test -s conftest.$ac_objext' 6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6249 (eval $ac_try) 2>&5 6250 ac_status=$? 6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6252 (exit $ac_status); }; }; then 6253 ac_cv_res_state_ext=yes 6254else 6255 echo "$as_me: failed program was:" >&5 6256sed 's/^/| /' conftest.$ac_ext >&5 6257 6258ac_cv_res_state_ext=no 6259fi 6260rm -f conftest.$ac_objext conftest.$ac_ext 6261fi 6262 6263 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 6264echo "${ECHO_T}$ac_cv_res_state_ext" >&6 6265 if test $ac_cv_res_state_ext = yes; then 6266 cat >>confdefs.h <<\_ACEOF 6267#define HAVE_RES_STATE_EXT 1 6268_ACEOF 6269 6270 fi 6271 6272if test "$ac_cv_res_state_ext" = no; then 6273 missing_includes=yes 6274fi 6275 6276 6277 echo "$as_me:$LINENO: checking for nsort in res_state" >&5 6278echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6 6279 if test "${ac_cv_res_state+set}" = set; then 6280 echo $ECHO_N "(cached) $ECHO_C" >&6 6281else 6282 cat >conftest.$ac_ext <<_ACEOF 6283#line $LINENO "configure" 6284/* confdefs.h. */ 6285_ACEOF 6286cat confdefs.h >>conftest.$ac_ext 6287cat >>conftest.$ac_ext <<_ACEOF 6288/* end confdefs.h. */ 6289 6290# include <sys/types.h> 6291# include <netinet/in.h> 6292# include <netinet6/in6.h> 6293# include <resolv.h> 6294int 6295main () 6296{ 6297struct __res_state e; e.nsort = 0 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302rm -f conftest.$ac_objext 6303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6304 (eval $ac_compile) 2>&5 6305 ac_status=$? 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && 6308 { ac_try='test -s conftest.$ac_objext' 6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6310 (eval $ac_try) 2>&5 6311 ac_status=$? 6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6313 (exit $ac_status); }; }; then 6314 ac_cv_res_state=yes 6315else 6316 echo "$as_me: failed program was:" >&5 6317sed 's/^/| /' conftest.$ac_ext >&5 6318 6319ac_cv_res_state=no 6320fi 6321rm -f conftest.$ac_objext conftest.$ac_ext 6322fi 6323 6324 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 6325echo "${ECHO_T}$ac_cv_res_state" >&6 6326 if test $ac_cv_res_state = yes; then 6327 cat >>confdefs.h <<\_ACEOF 6328#define HAVE_NEW_RES_STATE 1 6329_ACEOF 6330 6331 fi 6332 6333 6334if test "$missing_includes" = "yes"; then 6335 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 6336 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 6337fi 6338 6339 6340 6341 6342 6343 6344 6345 6346for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 6347do 6348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6349echo "$as_me:$LINENO: checking for $ac_func" >&5 6350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6351if eval "test \"\${$as_ac_var+set}\" = set"; then 6352 echo $ECHO_N "(cached) $ECHO_C" >&6 6353else 6354 cat >conftest.$ac_ext <<_ACEOF 6355#line $LINENO "configure" 6356/* confdefs.h. */ 6357_ACEOF 6358cat confdefs.h >>conftest.$ac_ext 6359cat >>conftest.$ac_ext <<_ACEOF 6360/* end confdefs.h. */ 6361/* System header to define __stub macros and hopefully few prototypes, 6362 which can conflict with char $ac_func (); below. 6363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6364 <limits.h> exists even on freestanding compilers. */ 6365#ifdef __STDC__ 6366# include <limits.h> 6367#else 6368# include <assert.h> 6369#endif 6370/* Override any gcc2 internal prototype to avoid an error. */ 6371#ifdef __cplusplus 6372extern "C" 6373{ 6374#endif 6375/* We use char because int might match the return type of a gcc2 6376 builtin and then its argument prototype would still apply. */ 6377char $ac_func (); 6378/* The GNU C library defines this for functions which it implements 6379 to always fail with ENOSYS. Some functions are actually named 6380 something starting with __ and the normal name is an alias. */ 6381#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6382choke me 6383#else 6384char (*f) () = $ac_func; 6385#endif 6386#ifdef __cplusplus 6387} 6388#endif 6389 6390int 6391main () 6392{ 6393return f != $ac_func; 6394 ; 6395 return 0; 6396} 6397_ACEOF 6398rm -f conftest.$ac_objext conftest$ac_exeext 6399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6400 (eval $ac_link) 2>&5 6401 ac_status=$? 6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } && 6404 { ac_try='test -s conftest$ac_exeext' 6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6406 (eval $ac_try) 2>&5 6407 ac_status=$? 6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6409 (exit $ac_status); }; }; then 6410 eval "$as_ac_var=yes" 6411else 6412 echo "$as_me: failed program was:" >&5 6413sed 's/^/| /' conftest.$ac_ext >&5 6414 6415eval "$as_ac_var=no" 6416fi 6417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6418fi 6419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6421if test `eval echo '${'$as_ac_var'}'` = yes; then 6422 cat >>confdefs.h <<_ACEOF 6423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6424_ACEOF 6425 6426else 6427 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6428fi 6429done 6430 6431 6432 6433for ac_func in strftime 6434do 6435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6436echo "$as_me:$LINENO: checking for $ac_func" >&5 6437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6438if eval "test \"\${$as_ac_var+set}\" = set"; then 6439 echo $ECHO_N "(cached) $ECHO_C" >&6 6440else 6441 cat >conftest.$ac_ext <<_ACEOF 6442#line $LINENO "configure" 6443/* confdefs.h. */ 6444_ACEOF 6445cat confdefs.h >>conftest.$ac_ext 6446cat >>conftest.$ac_ext <<_ACEOF 6447/* end confdefs.h. */ 6448/* System header to define __stub macros and hopefully few prototypes, 6449 which can conflict with char $ac_func (); below. 6450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6451 <limits.h> exists even on freestanding compilers. */ 6452#ifdef __STDC__ 6453# include <limits.h> 6454#else 6455# include <assert.h> 6456#endif 6457/* Override any gcc2 internal prototype to avoid an error. */ 6458#ifdef __cplusplus 6459extern "C" 6460{ 6461#endif 6462/* We use char because int might match the return type of a gcc2 6463 builtin and then its argument prototype would still apply. */ 6464char $ac_func (); 6465/* The GNU C library defines this for functions which it implements 6466 to always fail with ENOSYS. Some functions are actually named 6467 something starting with __ and the normal name is an alias. */ 6468#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6469choke me 6470#else 6471char (*f) () = $ac_func; 6472#endif 6473#ifdef __cplusplus 6474} 6475#endif 6476 6477int 6478main () 6479{ 6480return f != $ac_func; 6481 ; 6482 return 0; 6483} 6484_ACEOF 6485rm -f conftest.$ac_objext conftest$ac_exeext 6486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6487 (eval $ac_link) 2>&5 6488 ac_status=$? 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); } && 6491 { ac_try='test -s conftest$ac_exeext' 6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6493 (eval $ac_try) 2>&5 6494 ac_status=$? 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); }; }; then 6497 eval "$as_ac_var=yes" 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502eval "$as_ac_var=no" 6503fi 6504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6505fi 6506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6508if test `eval echo '${'$as_ac_var'}'` = yes; then 6509 cat >>confdefs.h <<_ACEOF 6510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6511_ACEOF 6512 6513fi 6514done 6515 6516 6517for ac_func in ether_ntohost 6518do 6519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6520echo "$as_me:$LINENO: checking for $ac_func" >&5 6521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6522if eval "test \"\${$as_ac_var+set}\" = set"; then 6523 echo $ECHO_N "(cached) $ECHO_C" >&6 6524else 6525 cat >conftest.$ac_ext <<_ACEOF 6526#line $LINENO "configure" 6527/* confdefs.h. */ 6528_ACEOF 6529cat confdefs.h >>conftest.$ac_ext 6530cat >>conftest.$ac_ext <<_ACEOF 6531/* end confdefs.h. */ 6532/* System header to define __stub macros and hopefully few prototypes, 6533 which can conflict with char $ac_func (); below. 6534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6535 <limits.h> exists even on freestanding compilers. */ 6536#ifdef __STDC__ 6537# include <limits.h> 6538#else 6539# include <assert.h> 6540#endif 6541/* Override any gcc2 internal prototype to avoid an error. */ 6542#ifdef __cplusplus 6543extern "C" 6544{ 6545#endif 6546/* We use char because int might match the return type of a gcc2 6547 builtin and then its argument prototype would still apply. */ 6548char $ac_func (); 6549/* The GNU C library defines this for functions which it implements 6550 to always fail with ENOSYS. Some functions are actually named 6551 something starting with __ and the normal name is an alias. */ 6552#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6553choke me 6554#else 6555char (*f) () = $ac_func; 6556#endif 6557#ifdef __cplusplus 6558} 6559#endif 6560 6561int 6562main () 6563{ 6564return f != $ac_func; 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569rm -f conftest.$ac_objext conftest$ac_exeext 6570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6571 (eval $ac_link) 2>&5 6572 ac_status=$? 6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6574 (exit $ac_status); } && 6575 { ac_try='test -s conftest$ac_exeext' 6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6577 (eval $ac_try) 2>&5 6578 ac_status=$? 6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6580 (exit $ac_status); }; }; then 6581 eval "$as_ac_var=yes" 6582else 6583 echo "$as_me: failed program was:" >&5 6584sed 's/^/| /' conftest.$ac_ext >&5 6585 6586eval "$as_ac_var=no" 6587fi 6588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6589fi 6590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6592if test `eval echo '${'$as_ac_var'}'` = yes; then 6593 cat >>confdefs.h <<_ACEOF 6594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6595_ACEOF 6596 6597 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 6598echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6 6599if test "${ac_cv_buggy_ether_ntohost+set}" = set; then 6600 echo $ECHO_N "(cached) $ECHO_C" >&6 6601else 6602 6603 if test "$cross_compiling" = yes; then 6604 ac_cv_buggy_ether_ntohost="not while cross-compiling" 6605else 6606 cat >conftest.$ac_ext <<_ACEOF 6607#line $LINENO "configure" 6608/* confdefs.h. */ 6609_ACEOF 6610cat confdefs.h >>conftest.$ac_ext 6611cat >>conftest.$ac_ext <<_ACEOF 6612/* end confdefs.h. */ 6613 6614 #include <netdb.h> 6615 #include <sys/types.h> 6616 #include <sys/param.h> 6617 #include <sys/socket.h> 6618 6619 int 6620 main(int argc, char **argv) 6621 { 6622 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 6623 char name[MAXHOSTNAMELEN]; 6624 6625 ether_ntohost(name, (struct ether_addr *)ea); 6626 exit(0); 6627 } 6628 6629_ACEOF 6630rm -f conftest$ac_exeext 6631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6632 (eval $ac_link) 2>&5 6633 ac_status=$? 6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); }; }; then 6641 ac_cv_buggy_ether_ntohost=no 6642else 6643 echo "$as_me: program exited with status $ac_status" >&5 6644echo "$as_me: failed program was:" >&5 6645sed 's/^/| /' conftest.$ac_ext >&5 6646 6647( exit $ac_status ) 6648ac_cv_buggy_ether_ntohost=yes 6649fi 6650rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6651fi 6652fi 6653echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 6654echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6 6655 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 6656 cat >>confdefs.h <<\_ACEOF 6657#define USE_ETHER_NTOHOST 1 6658_ACEOF 6659 6660 fi 6661 6662fi 6663done 6664 6665 6666for ac_func in setlinebuf 6667do 6668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6669echo "$as_me:$LINENO: checking for $ac_func" >&5 6670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6671if eval "test \"\${$as_ac_var+set}\" = set"; then 6672 echo $ECHO_N "(cached) $ECHO_C" >&6 6673else 6674 cat >conftest.$ac_ext <<_ACEOF 6675#line $LINENO "configure" 6676/* confdefs.h. */ 6677_ACEOF 6678cat confdefs.h >>conftest.$ac_ext 6679cat >>conftest.$ac_ext <<_ACEOF 6680/* end confdefs.h. */ 6681/* System header to define __stub macros and hopefully few prototypes, 6682 which can conflict with char $ac_func (); below. 6683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6684 <limits.h> exists even on freestanding compilers. */ 6685#ifdef __STDC__ 6686# include <limits.h> 6687#else 6688# include <assert.h> 6689#endif 6690/* Override any gcc2 internal prototype to avoid an error. */ 6691#ifdef __cplusplus 6692extern "C" 6693{ 6694#endif 6695/* We use char because int might match the return type of a gcc2 6696 builtin and then its argument prototype would still apply. */ 6697char $ac_func (); 6698/* The GNU C library defines this for functions which it implements 6699 to always fail with ENOSYS. Some functions are actually named 6700 something starting with __ and the normal name is an alias. */ 6701#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6702choke me 6703#else 6704char (*f) () = $ac_func; 6705#endif 6706#ifdef __cplusplus 6707} 6708#endif 6709 6710int 6711main () 6712{ 6713return f != $ac_func; 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718rm -f conftest.$ac_objext conftest$ac_exeext 6719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6720 (eval $ac_link) 2>&5 6721 ac_status=$? 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && 6724 { ac_try='test -s conftest$ac_exeext' 6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6726 (eval $ac_try) 2>&5 6727 ac_status=$? 6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6729 (exit $ac_status); }; }; then 6730 eval "$as_ac_var=yes" 6731else 6732 echo "$as_me: failed program was:" >&5 6733sed 's/^/| /' conftest.$ac_ext >&5 6734 6735eval "$as_ac_var=no" 6736fi 6737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6738fi 6739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6741if test `eval echo '${'$as_ac_var'}'` = yes; then 6742 cat >>confdefs.h <<_ACEOF 6743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6744_ACEOF 6745 6746fi 6747done 6748 6749 6750needsnprintf=no 6751 6752 6753for ac_func in vsnprintf snprintf 6754do 6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6756echo "$as_me:$LINENO: checking for $ac_func" >&5 6757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6758if eval "test \"\${$as_ac_var+set}\" = set"; then 6759 echo $ECHO_N "(cached) $ECHO_C" >&6 6760else 6761 cat >conftest.$ac_ext <<_ACEOF 6762#line $LINENO "configure" 6763/* confdefs.h. */ 6764_ACEOF 6765cat confdefs.h >>conftest.$ac_ext 6766cat >>conftest.$ac_ext <<_ACEOF 6767/* end confdefs.h. */ 6768/* System header to define __stub macros and hopefully few prototypes, 6769 which can conflict with char $ac_func (); below. 6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6771 <limits.h> exists even on freestanding compilers. */ 6772#ifdef __STDC__ 6773# include <limits.h> 6774#else 6775# include <assert.h> 6776#endif 6777/* Override any gcc2 internal prototype to avoid an error. */ 6778#ifdef __cplusplus 6779extern "C" 6780{ 6781#endif 6782/* We use char because int might match the return type of a gcc2 6783 builtin and then its argument prototype would still apply. */ 6784char $ac_func (); 6785/* The GNU C library defines this for functions which it implements 6786 to always fail with ENOSYS. Some functions are actually named 6787 something starting with __ and the normal name is an alias. */ 6788#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6789choke me 6790#else 6791char (*f) () = $ac_func; 6792#endif 6793#ifdef __cplusplus 6794} 6795#endif 6796 6797int 6798main () 6799{ 6800return f != $ac_func; 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805rm -f conftest.$ac_objext conftest$ac_exeext 6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6807 (eval $ac_link) 2>&5 6808 ac_status=$? 6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6810 (exit $ac_status); } && 6811 { ac_try='test -s conftest$ac_exeext' 6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6813 (eval $ac_try) 2>&5 6814 ac_status=$? 6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6816 (exit $ac_status); }; }; then 6817 eval "$as_ac_var=yes" 6818else 6819 echo "$as_me: failed program was:" >&5 6820sed 's/^/| /' conftest.$ac_ext >&5 6821 6822eval "$as_ac_var=no" 6823fi 6824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6825fi 6826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6828if test `eval echo '${'$as_ac_var'}'` = yes; then 6829 cat >>confdefs.h <<_ACEOF 6830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6831_ACEOF 6832 6833else 6834 needsnprintf=yes 6835fi 6836done 6837 6838if test $needsnprintf = yes; then 6839 LIBOBJS="$LIBOBJS snprintf.o.$ac_objext" 6840fi 6841 6842 6843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 6844echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 6845if test "${ac_cv_type_signal+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847else 6848 cat >conftest.$ac_ext <<_ACEOF 6849#line $LINENO "configure" 6850/* confdefs.h. */ 6851_ACEOF 6852cat confdefs.h >>conftest.$ac_ext 6853cat >>conftest.$ac_ext <<_ACEOF 6854/* end confdefs.h. */ 6855#include <sys/types.h> 6856#include <signal.h> 6857#ifdef signal 6858# undef signal 6859#endif 6860#ifdef __cplusplus 6861extern "C" void (*signal (int, void (*)(int)))(int); 6862#else 6863void (*signal ()) (); 6864#endif 6865 6866int 6867main () 6868{ 6869int i; 6870 ; 6871 return 0; 6872} 6873_ACEOF 6874rm -f conftest.$ac_objext 6875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6876 (eval $ac_compile) 2>&5 6877 ac_status=$? 6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6879 (exit $ac_status); } && 6880 { ac_try='test -s conftest.$ac_objext' 6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6882 (eval $ac_try) 2>&5 6883 ac_status=$? 6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6885 (exit $ac_status); }; }; then 6886 ac_cv_type_signal=void 6887else 6888 echo "$as_me: failed program was:" >&5 6889sed 's/^/| /' conftest.$ac_ext >&5 6890 6891ac_cv_type_signal=int 6892fi 6893rm -f conftest.$ac_objext conftest.$ac_ext 6894fi 6895echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6896echo "${ECHO_T}$ac_cv_type_signal" >&6 6897 6898cat >>confdefs.h <<_ACEOF 6899#define RETSIGTYPE $ac_cv_type_signal 6900_ACEOF 6901 6902 6903 if test "$ac_cv_type_signal" = void ; then 6904 cat >>confdefs.h <<\_ACEOF 6905#define RETSIGVAL 6906_ACEOF 6907 6908 else 6909 cat >>confdefs.h <<\_ACEOF 6910#define RETSIGVAL (0) 6911_ACEOF 6912 6913 fi 6914 case "$host_os" in 6915 6916 irix*) 6917 cat >>confdefs.h <<\_ACEOF 6918#define _BSD_SIGNALS 1 6919_ACEOF 6920 6921 ;; 6922 6923 *) 6924 6925for ac_func in sigaction 6926do 6927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6928echo "$as_me:$LINENO: checking for $ac_func" >&5 6929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6930if eval "test \"\${$as_ac_var+set}\" = set"; then 6931 echo $ECHO_N "(cached) $ECHO_C" >&6 6932else 6933 cat >conftest.$ac_ext <<_ACEOF 6934#line $LINENO "configure" 6935/* confdefs.h. */ 6936_ACEOF 6937cat confdefs.h >>conftest.$ac_ext 6938cat >>conftest.$ac_ext <<_ACEOF 6939/* end confdefs.h. */ 6940/* System header to define __stub macros and hopefully few prototypes, 6941 which can conflict with char $ac_func (); below. 6942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6943 <limits.h> exists even on freestanding compilers. */ 6944#ifdef __STDC__ 6945# include <limits.h> 6946#else 6947# include <assert.h> 6948#endif 6949/* Override any gcc2 internal prototype to avoid an error. */ 6950#ifdef __cplusplus 6951extern "C" 6952{ 6953#endif 6954/* We use char because int might match the return type of a gcc2 6955 builtin and then its argument prototype would still apply. */ 6956char $ac_func (); 6957/* The GNU C library defines this for functions which it implements 6958 to always fail with ENOSYS. Some functions are actually named 6959 something starting with __ and the normal name is an alias. */ 6960#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6961choke me 6962#else 6963char (*f) () = $ac_func; 6964#endif 6965#ifdef __cplusplus 6966} 6967#endif 6968 6969int 6970main () 6971{ 6972return f != $ac_func; 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977rm -f conftest.$ac_objext conftest$ac_exeext 6978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6979 (eval $ac_link) 2>&5 6980 ac_status=$? 6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6982 (exit $ac_status); } && 6983 { ac_try='test -s conftest$ac_exeext' 6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6985 (eval $ac_try) 2>&5 6986 ac_status=$? 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); }; }; then 6989 eval "$as_ac_var=yes" 6990else 6991 echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994eval "$as_ac_var=no" 6995fi 6996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6997fi 6998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7000if test `eval echo '${'$as_ac_var'}'` = yes; then 7001 cat >>confdefs.h <<_ACEOF 7002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7003_ACEOF 7004 7005fi 7006done 7007 7008 if test $ac_cv_func_sigaction = no ; then 7009 7010for ac_func in sigset 7011do 7012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7013echo "$as_me:$LINENO: checking for $ac_func" >&5 7014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7015if eval "test \"\${$as_ac_var+set}\" = set"; then 7016 echo $ECHO_N "(cached) $ECHO_C" >&6 7017else 7018 cat >conftest.$ac_ext <<_ACEOF 7019#line $LINENO "configure" 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025/* System header to define __stub macros and hopefully few prototypes, 7026 which can conflict with char $ac_func (); below. 7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7028 <limits.h> exists even on freestanding compilers. */ 7029#ifdef __STDC__ 7030# include <limits.h> 7031#else 7032# include <assert.h> 7033#endif 7034/* Override any gcc2 internal prototype to avoid an error. */ 7035#ifdef __cplusplus 7036extern "C" 7037{ 7038#endif 7039/* We use char because int might match the return type of a gcc2 7040 builtin and then its argument prototype would still apply. */ 7041char $ac_func (); 7042/* The GNU C library defines this for functions which it implements 7043 to always fail with ENOSYS. Some functions are actually named 7044 something starting with __ and the normal name is an alias. */ 7045#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7046choke me 7047#else 7048char (*f) () = $ac_func; 7049#endif 7050#ifdef __cplusplus 7051} 7052#endif 7053 7054int 7055main () 7056{ 7057return f != $ac_func; 7058 ; 7059 return 0; 7060} 7061_ACEOF 7062rm -f conftest.$ac_objext conftest$ac_exeext 7063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7064 (eval $ac_link) 2>&5 7065 ac_status=$? 7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7067 (exit $ac_status); } && 7068 { ac_try='test -s conftest$ac_exeext' 7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7070 (eval $ac_try) 2>&5 7071 ac_status=$? 7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 (exit $ac_status); }; }; then 7074 eval "$as_ac_var=yes" 7075else 7076 echo "$as_me: failed program was:" >&5 7077sed 's/^/| /' conftest.$ac_ext >&5 7078 7079eval "$as_ac_var=no" 7080fi 7081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7082fi 7083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7085if test `eval echo '${'$as_ac_var'}'` = yes; then 7086 cat >>confdefs.h <<_ACEOF 7087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7088_ACEOF 7089 7090fi 7091done 7092 7093 fi 7094 ;; 7095 esac 7096 7097echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 7098echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6 7099if test "${ac_cv_search_dnet_htoa+set}" = set; then 7100 echo $ECHO_N "(cached) $ECHO_C" >&6 7101else 7102 ac_func_search_save_LIBS=$LIBS 7103ac_cv_search_dnet_htoa=no 7104cat >conftest.$ac_ext <<_ACEOF 7105#line $LINENO "configure" 7106/* confdefs.h. */ 7107_ACEOF 7108cat confdefs.h >>conftest.$ac_ext 7109cat >>conftest.$ac_ext <<_ACEOF 7110/* end confdefs.h. */ 7111 7112/* Override any gcc2 internal prototype to avoid an error. */ 7113#ifdef __cplusplus 7114extern "C" 7115#endif 7116/* We use char because int might match the return type of a gcc2 7117 builtin and then its argument prototype would still apply. */ 7118char dnet_htoa (); 7119int 7120main () 7121{ 7122dnet_htoa (); 7123 ; 7124 return 0; 7125} 7126_ACEOF 7127rm -f conftest.$ac_objext conftest$ac_exeext 7128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7129 (eval $ac_link) 2>&5 7130 ac_status=$? 7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7132 (exit $ac_status); } && 7133 { ac_try='test -s conftest$ac_exeext' 7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7135 (eval $ac_try) 2>&5 7136 ac_status=$? 7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7138 (exit $ac_status); }; }; then 7139 ac_cv_search_dnet_htoa="none required" 7140else 7141 echo "$as_me: failed program was:" >&5 7142sed 's/^/| /' conftest.$ac_ext >&5 7143 7144fi 7145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7146if test "$ac_cv_search_dnet_htoa" = no; then 7147 for ac_lib in dnet; do 7148 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7149 cat >conftest.$ac_ext <<_ACEOF 7150#line $LINENO "configure" 7151/* confdefs.h. */ 7152_ACEOF 7153cat confdefs.h >>conftest.$ac_ext 7154cat >>conftest.$ac_ext <<_ACEOF 7155/* end confdefs.h. */ 7156 7157/* Override any gcc2 internal prototype to avoid an error. */ 7158#ifdef __cplusplus 7159extern "C" 7160#endif 7161/* We use char because int might match the return type of a gcc2 7162 builtin and then its argument prototype would still apply. */ 7163char dnet_htoa (); 7164int 7165main () 7166{ 7167dnet_htoa (); 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172rm -f conftest.$ac_objext conftest$ac_exeext 7173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7174 (eval $ac_link) 2>&5 7175 ac_status=$? 7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7177 (exit $ac_status); } && 7178 { ac_try='test -s conftest$ac_exeext' 7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7180 (eval $ac_try) 2>&5 7181 ac_status=$? 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); }; }; then 7184 ac_cv_search_dnet_htoa="-l$ac_lib" 7185break 7186else 7187 echo "$as_me: failed program was:" >&5 7188sed 's/^/| /' conftest.$ac_ext >&5 7189 7190fi 7191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7192 done 7193fi 7194LIBS=$ac_func_search_save_LIBS 7195fi 7196echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 7197echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6 7198if test "$ac_cv_search_dnet_htoa" != no; then 7199 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS" 7200 cat >>confdefs.h <<\_ACEOF 7201#define HAVE_DNET_HTOA 1 7202_ACEOF 7203 7204fi 7205 7206 7207 7208echo "$as_me:$LINENO: checking for main in -lrpc" >&5 7209echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6 7210if test "${ac_cv_lib_rpc_main+set}" = set; then 7211 echo $ECHO_N "(cached) $ECHO_C" >&6 7212else 7213 ac_check_lib_save_LIBS=$LIBS 7214LIBS="-lrpc $LIBS" 7215cat >conftest.$ac_ext <<_ACEOF 7216#line $LINENO "configure" 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222 7223 7224int 7225main () 7226{ 7227main (); 7228 ; 7229 return 0; 7230} 7231_ACEOF 7232rm -f conftest.$ac_objext conftest$ac_exeext 7233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7234 (eval $ac_link) 2>&5 7235 ac_status=$? 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); } && 7238 { ac_try='test -s conftest$ac_exeext' 7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7240 (eval $ac_try) 2>&5 7241 ac_status=$? 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); }; }; then 7244 ac_cv_lib_rpc_main=yes 7245else 7246 echo "$as_me: failed program was:" >&5 7247sed 's/^/| /' conftest.$ac_ext >&5 7248 7249ac_cv_lib_rpc_main=no 7250fi 7251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7252LIBS=$ac_check_lib_save_LIBS 7253fi 7254echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 7255echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6 7256if test $ac_cv_lib_rpc_main = yes; then 7257 cat >>confdefs.h <<_ACEOF 7258#define HAVE_LIBRPC 1 7259_ACEOF 7260 7261 LIBS="-lrpc $LIBS" 7262 7263fi 7264 7265echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 7266echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6 7267if test "${ac_cv_search_getrpcbynumber+set}" = set; then 7268 echo $ECHO_N "(cached) $ECHO_C" >&6 7269else 7270 ac_func_search_save_LIBS=$LIBS 7271ac_cv_search_getrpcbynumber=no 7272cat >conftest.$ac_ext <<_ACEOF 7273#line $LINENO "configure" 7274/* confdefs.h. */ 7275_ACEOF 7276cat confdefs.h >>conftest.$ac_ext 7277cat >>conftest.$ac_ext <<_ACEOF 7278/* end confdefs.h. */ 7279 7280/* Override any gcc2 internal prototype to avoid an error. */ 7281#ifdef __cplusplus 7282extern "C" 7283#endif 7284/* We use char because int might match the return type of a gcc2 7285 builtin and then its argument prototype would still apply. */ 7286char getrpcbynumber (); 7287int 7288main () 7289{ 7290getrpcbynumber (); 7291 ; 7292 return 0; 7293} 7294_ACEOF 7295rm -f conftest.$ac_objext conftest$ac_exeext 7296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7297 (eval $ac_link) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); } && 7301 { ac_try='test -s conftest$ac_exeext' 7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7303 (eval $ac_try) 2>&5 7304 ac_status=$? 7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7306 (exit $ac_status); }; }; then 7307 ac_cv_search_getrpcbynumber="none required" 7308else 7309 echo "$as_me: failed program was:" >&5 7310sed 's/^/| /' conftest.$ac_ext >&5 7311 7312fi 7313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7314if test "$ac_cv_search_getrpcbynumber" = no; then 7315 for ac_lib in nsl; do 7316 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7317 cat >conftest.$ac_ext <<_ACEOF 7318#line $LINENO "configure" 7319/* confdefs.h. */ 7320_ACEOF 7321cat confdefs.h >>conftest.$ac_ext 7322cat >>conftest.$ac_ext <<_ACEOF 7323/* end confdefs.h. */ 7324 7325/* Override any gcc2 internal prototype to avoid an error. */ 7326#ifdef __cplusplus 7327extern "C" 7328#endif 7329/* We use char because int might match the return type of a gcc2 7330 builtin and then its argument prototype would still apply. */ 7331char getrpcbynumber (); 7332int 7333main () 7334{ 7335getrpcbynumber (); 7336 ; 7337 return 0; 7338} 7339_ACEOF 7340rm -f conftest.$ac_objext conftest$ac_exeext 7341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7342 (eval $ac_link) 2>&5 7343 ac_status=$? 7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7345 (exit $ac_status); } && 7346 { ac_try='test -s conftest$ac_exeext' 7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7348 (eval $ac_try) 2>&5 7349 ac_status=$? 7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7351 (exit $ac_status); }; }; then 7352 ac_cv_search_getrpcbynumber="-l$ac_lib" 7353break 7354else 7355 echo "$as_me: failed program was:" >&5 7356sed 's/^/| /' conftest.$ac_ext >&5 7357 7358fi 7359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7360 done 7361fi 7362LIBS=$ac_func_search_save_LIBS 7363fi 7364echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 7365echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6 7366if test "$ac_cv_search_getrpcbynumber" != no; then 7367 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS" 7368 7369fi 7370 7371 7372 7373 7374 # Most operating systems have gethostbyname() in the default searched 7375 # libraries (i.e. libc): 7376 # Some OSes (eg. Solaris) place it in libnsl 7377 # Some strange OSes (SINIX) have it in libsocket: 7378 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 7379echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 7380if test "${ac_cv_search_gethostbyname+set}" = set; then 7381 echo $ECHO_N "(cached) $ECHO_C" >&6 7382else 7383 ac_func_search_save_LIBS=$LIBS 7384ac_cv_search_gethostbyname=no 7385cat >conftest.$ac_ext <<_ACEOF 7386#line $LINENO "configure" 7387/* confdefs.h. */ 7388_ACEOF 7389cat confdefs.h >>conftest.$ac_ext 7390cat >>conftest.$ac_ext <<_ACEOF 7391/* end confdefs.h. */ 7392 7393/* Override any gcc2 internal prototype to avoid an error. */ 7394#ifdef __cplusplus 7395extern "C" 7396#endif 7397/* We use char because int might match the return type of a gcc2 7398 builtin and then its argument prototype would still apply. */ 7399char gethostbyname (); 7400int 7401main () 7402{ 7403gethostbyname (); 7404 ; 7405 return 0; 7406} 7407_ACEOF 7408rm -f conftest.$ac_objext conftest$ac_exeext 7409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7410 (eval $ac_link) 2>&5 7411 ac_status=$? 7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7413 (exit $ac_status); } && 7414 { ac_try='test -s conftest$ac_exeext' 7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7416 (eval $ac_try) 2>&5 7417 ac_status=$? 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); }; }; then 7420 ac_cv_search_gethostbyname="none required" 7421else 7422 echo "$as_me: failed program was:" >&5 7423sed 's/^/| /' conftest.$ac_ext >&5 7424 7425fi 7426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7427if test "$ac_cv_search_gethostbyname" = no; then 7428 for ac_lib in nsl socket resolv; do 7429 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7430 cat >conftest.$ac_ext <<_ACEOF 7431#line $LINENO "configure" 7432/* confdefs.h. */ 7433_ACEOF 7434cat confdefs.h >>conftest.$ac_ext 7435cat >>conftest.$ac_ext <<_ACEOF 7436/* end confdefs.h. */ 7437 7438/* Override any gcc2 internal prototype to avoid an error. */ 7439#ifdef __cplusplus 7440extern "C" 7441#endif 7442/* We use char because int might match the return type of a gcc2 7443 builtin and then its argument prototype would still apply. */ 7444char gethostbyname (); 7445int 7446main () 7447{ 7448gethostbyname (); 7449 ; 7450 return 0; 7451} 7452_ACEOF 7453rm -f conftest.$ac_objext conftest$ac_exeext 7454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7455 (eval $ac_link) 2>&5 7456 ac_status=$? 7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); } && 7459 { ac_try='test -s conftest$ac_exeext' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; }; then 7465 ac_cv_search_gethostbyname="-l$ac_lib" 7466break 7467else 7468 echo "$as_me: failed program was:" >&5 7469sed 's/^/| /' conftest.$ac_ext >&5 7470 7471fi 7472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7473 done 7474fi 7475LIBS=$ac_func_search_save_LIBS 7476fi 7477echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 7478echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 7479if test "$ac_cv_search_gethostbyname" != no; then 7480 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 7481 7482fi 7483 7484 # Unfortunately libsocket sometimes depends on libnsl and 7485 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 7486 if test "$ac_cv_search_gethostbyname" = "no" 7487 then 7488 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 7489echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6 7490if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 7491 echo $ECHO_N "(cached) $ECHO_C" >&6 7492else 7493 ac_check_lib_save_LIBS=$LIBS 7494LIBS="-lsocket -lnsl $LIBS" 7495cat >conftest.$ac_ext <<_ACEOF 7496#line $LINENO "configure" 7497/* confdefs.h. */ 7498_ACEOF 7499cat confdefs.h >>conftest.$ac_ext 7500cat >>conftest.$ac_ext <<_ACEOF 7501/* end confdefs.h. */ 7502 7503/* Override any gcc2 internal prototype to avoid an error. */ 7504#ifdef __cplusplus 7505extern "C" 7506#endif 7507/* We use char because int might match the return type of a gcc2 7508 builtin and then its argument prototype would still apply. */ 7509char gethostbyname (); 7510int 7511main () 7512{ 7513gethostbyname (); 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518rm -f conftest.$ac_objext conftest$ac_exeext 7519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7520 (eval $ac_link) 2>&5 7521 ac_status=$? 7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7523 (exit $ac_status); } && 7524 { ac_try='test -s conftest$ac_exeext' 7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7526 (eval $ac_try) 2>&5 7527 ac_status=$? 7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7529 (exit $ac_status); }; }; then 7530 ac_cv_lib_socket_gethostbyname=yes 7531else 7532 echo "$as_me: failed program was:" >&5 7533sed 's/^/| /' conftest.$ac_ext >&5 7534 7535ac_cv_lib_socket_gethostbyname=no 7536fi 7537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7538LIBS=$ac_check_lib_save_LIBS 7539fi 7540echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 7541echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6 7542if test $ac_cv_lib_socket_gethostbyname = yes; then 7543 LIBS="-lsocket -lnsl $LIBS" 7544fi 7545 7546 fi 7547 echo "$as_me:$LINENO: checking for library containing socket" >&5 7548echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 7549if test "${ac_cv_search_socket+set}" = set; then 7550 echo $ECHO_N "(cached) $ECHO_C" >&6 7551else 7552 ac_func_search_save_LIBS=$LIBS 7553ac_cv_search_socket=no 7554cat >conftest.$ac_ext <<_ACEOF 7555#line $LINENO "configure" 7556/* confdefs.h. */ 7557_ACEOF 7558cat confdefs.h >>conftest.$ac_ext 7559cat >>conftest.$ac_ext <<_ACEOF 7560/* end confdefs.h. */ 7561 7562/* Override any gcc2 internal prototype to avoid an error. */ 7563#ifdef __cplusplus 7564extern "C" 7565#endif 7566/* We use char because int might match the return type of a gcc2 7567 builtin and then its argument prototype would still apply. */ 7568char socket (); 7569int 7570main () 7571{ 7572socket (); 7573 ; 7574 return 0; 7575} 7576_ACEOF 7577rm -f conftest.$ac_objext conftest$ac_exeext 7578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7579 (eval $ac_link) 2>&5 7580 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); } && 7583 { ac_try='test -s conftest$ac_exeext' 7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7585 (eval $ac_try) 2>&5 7586 ac_status=$? 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); }; }; then 7589 ac_cv_search_socket="none required" 7590else 7591 echo "$as_me: failed program was:" >&5 7592sed 's/^/| /' conftest.$ac_ext >&5 7593 7594fi 7595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7596if test "$ac_cv_search_socket" = no; then 7597 for ac_lib in socket; do 7598 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7599 cat >conftest.$ac_ext <<_ACEOF 7600#line $LINENO "configure" 7601/* confdefs.h. */ 7602_ACEOF 7603cat confdefs.h >>conftest.$ac_ext 7604cat >>conftest.$ac_ext <<_ACEOF 7605/* end confdefs.h. */ 7606 7607/* Override any gcc2 internal prototype to avoid an error. */ 7608#ifdef __cplusplus 7609extern "C" 7610#endif 7611/* We use char because int might match the return type of a gcc2 7612 builtin and then its argument prototype would still apply. */ 7613char socket (); 7614int 7615main () 7616{ 7617socket (); 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622rm -f conftest.$ac_objext conftest$ac_exeext 7623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7624 (eval $ac_link) 2>&5 7625 ac_status=$? 7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7627 (exit $ac_status); } && 7628 { ac_try='test -s conftest$ac_exeext' 7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 (eval $ac_try) 2>&5 7631 ac_status=$? 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); }; }; then 7634 ac_cv_search_socket="-l$ac_lib" 7635break 7636else 7637 echo "$as_me: failed program was:" >&5 7638sed 's/^/| /' conftest.$ac_ext >&5 7639 7640fi 7641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7642 done 7643fi 7644LIBS=$ac_func_search_save_LIBS 7645fi 7646echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 7647echo "${ECHO_T}$ac_cv_search_socket" >&6 7648if test "$ac_cv_search_socket" != no; then 7649 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 7650 7651else 7652 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 7653echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 7654if test "${ac_cv_lib_socket_socket+set}" = set; then 7655 echo $ECHO_N "(cached) $ECHO_C" >&6 7656else 7657 ac_check_lib_save_LIBS=$LIBS 7658LIBS="-lsocket -lnsl $LIBS" 7659cat >conftest.$ac_ext <<_ACEOF 7660#line $LINENO "configure" 7661/* confdefs.h. */ 7662_ACEOF 7663cat confdefs.h >>conftest.$ac_ext 7664cat >>conftest.$ac_ext <<_ACEOF 7665/* end confdefs.h. */ 7666 7667/* Override any gcc2 internal prototype to avoid an error. */ 7668#ifdef __cplusplus 7669extern "C" 7670#endif 7671/* We use char because int might match the return type of a gcc2 7672 builtin and then its argument prototype would still apply. */ 7673char socket (); 7674int 7675main () 7676{ 7677socket (); 7678 ; 7679 return 0; 7680} 7681_ACEOF 7682rm -f conftest.$ac_objext conftest$ac_exeext 7683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7684 (eval $ac_link) 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); } && 7688 { ac_try='test -s conftest$ac_exeext' 7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7690 (eval $ac_try) 2>&5 7691 ac_status=$? 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 (exit $ac_status); }; }; then 7694 ac_cv_lib_socket_socket=yes 7695else 7696 echo "$as_me: failed program was:" >&5 7697sed 's/^/| /' conftest.$ac_ext >&5 7698 7699ac_cv_lib_socket_socket=no 7700fi 7701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7702LIBS=$ac_check_lib_save_LIBS 7703fi 7704echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 7705echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 7706if test $ac_cv_lib_socket_socket = yes; then 7707 LIBS="-lsocket -lnsl $LIBS" 7708fi 7709 7710fi 7711 7712 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 7713 echo "$as_me:$LINENO: checking for library containing putmsg" >&5 7714echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6 7715if test "${ac_cv_search_putmsg+set}" = set; then 7716 echo $ECHO_N "(cached) $ECHO_C" >&6 7717else 7718 ac_func_search_save_LIBS=$LIBS 7719ac_cv_search_putmsg=no 7720cat >conftest.$ac_ext <<_ACEOF 7721#line $LINENO "configure" 7722/* confdefs.h. */ 7723_ACEOF 7724cat confdefs.h >>conftest.$ac_ext 7725cat >>conftest.$ac_ext <<_ACEOF 7726/* end confdefs.h. */ 7727 7728/* Override any gcc2 internal prototype to avoid an error. */ 7729#ifdef __cplusplus 7730extern "C" 7731#endif 7732/* We use char because int might match the return type of a gcc2 7733 builtin and then its argument prototype would still apply. */ 7734char putmsg (); 7735int 7736main () 7737{ 7738putmsg (); 7739 ; 7740 return 0; 7741} 7742_ACEOF 7743rm -f conftest.$ac_objext conftest$ac_exeext 7744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7745 (eval $ac_link) 2>&5 7746 ac_status=$? 7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7748 (exit $ac_status); } && 7749 { ac_try='test -s conftest$ac_exeext' 7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7751 (eval $ac_try) 2>&5 7752 ac_status=$? 7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 (exit $ac_status); }; }; then 7755 ac_cv_search_putmsg="none required" 7756else 7757 echo "$as_me: failed program was:" >&5 7758sed 's/^/| /' conftest.$ac_ext >&5 7759 7760fi 7761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7762if test "$ac_cv_search_putmsg" = no; then 7763 for ac_lib in str; do 7764 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7765 cat >conftest.$ac_ext <<_ACEOF 7766#line $LINENO "configure" 7767/* confdefs.h. */ 7768_ACEOF 7769cat confdefs.h >>conftest.$ac_ext 7770cat >>conftest.$ac_ext <<_ACEOF 7771/* end confdefs.h. */ 7772 7773/* Override any gcc2 internal prototype to avoid an error. */ 7774#ifdef __cplusplus 7775extern "C" 7776#endif 7777/* We use char because int might match the return type of a gcc2 7778 builtin and then its argument prototype would still apply. */ 7779char putmsg (); 7780int 7781main () 7782{ 7783putmsg (); 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788rm -f conftest.$ac_objext conftest$ac_exeext 7789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7790 (eval $ac_link) 2>&5 7791 ac_status=$? 7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7793 (exit $ac_status); } && 7794 { ac_try='test -s conftest$ac_exeext' 7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7796 (eval $ac_try) 2>&5 7797 ac_status=$? 7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7799 (exit $ac_status); }; }; then 7800 ac_cv_search_putmsg="-l$ac_lib" 7801break 7802else 7803 echo "$as_me: failed program was:" >&5 7804sed 's/^/| /' conftest.$ac_ext >&5 7805 7806fi 7807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7808 done 7809fi 7810LIBS=$ac_func_search_save_LIBS 7811fi 7812echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 7813echo "${ECHO_T}$ac_cv_search_putmsg" >&6 7814if test "$ac_cv_search_putmsg" != no; then 7815 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 7816 7817fi 7818 7819 7820 7821 LBL_LIBS="$LIBS" 7822 pfopen=/usr/examples/packetfilter/pfopen.c 7823 if test -f $pfopen ; then 7824 7825for ac_func in pfopen 7826do 7827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7828echo "$as_me:$LINENO: checking for $ac_func" >&5 7829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7830if eval "test \"\${$as_ac_var+set}\" = set"; then 7831 echo $ECHO_N "(cached) $ECHO_C" >&6 7832else 7833 cat >conftest.$ac_ext <<_ACEOF 7834#line $LINENO "configure" 7835/* confdefs.h. */ 7836_ACEOF 7837cat confdefs.h >>conftest.$ac_ext 7838cat >>conftest.$ac_ext <<_ACEOF 7839/* end confdefs.h. */ 7840/* System header to define __stub macros and hopefully few prototypes, 7841 which can conflict with char $ac_func (); below. 7842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7843 <limits.h> exists even on freestanding compilers. */ 7844#ifdef __STDC__ 7845# include <limits.h> 7846#else 7847# include <assert.h> 7848#endif 7849/* Override any gcc2 internal prototype to avoid an error. */ 7850#ifdef __cplusplus 7851extern "C" 7852{ 7853#endif 7854/* We use char because int might match the return type of a gcc2 7855 builtin and then its argument prototype would still apply. */ 7856char $ac_func (); 7857/* The GNU C library defines this for functions which it implements 7858 to always fail with ENOSYS. Some functions are actually named 7859 something starting with __ and the normal name is an alias. */ 7860#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7861choke me 7862#else 7863char (*f) () = $ac_func; 7864#endif 7865#ifdef __cplusplus 7866} 7867#endif 7868 7869int 7870main () 7871{ 7872return f != $ac_func; 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877rm -f conftest.$ac_objext conftest$ac_exeext 7878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7879 (eval $ac_link) 2>&5 7880 ac_status=$? 7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7882 (exit $ac_status); } && 7883 { ac_try='test -s conftest$ac_exeext' 7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7885 (eval $ac_try) 2>&5 7886 ac_status=$? 7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7888 (exit $ac_status); }; }; then 7889 eval "$as_ac_var=yes" 7890else 7891 echo "$as_me: failed program was:" >&5 7892sed 's/^/| /' conftest.$ac_ext >&5 7893 7894eval "$as_ac_var=no" 7895fi 7896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7897fi 7898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7900if test `eval echo '${'$as_ac_var'}'` = yes; then 7901 cat >>confdefs.h <<_ACEOF 7902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7903_ACEOF 7904 7905fi 7906done 7907 7908 if test $ac_cv_func_pfopen = "no" ; then 7909 echo "$as_me:$LINENO: result: Using $pfopen" >&5 7910echo "${ECHO_T}Using $pfopen" >&6 7911 LIBS="$LIBS $pfopen" 7912 fi 7913 fi 7914 echo "$as_me:$LINENO: checking for local pcap library" >&5 7915echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6 7916 libpcap=FAIL 7917 lastdir=FAIL 7918 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 7919 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 7920 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 7921 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 7922 if test $lastdir = $basedir ; then 7923 continue; 7924 fi 7925 lastdir=$dir 7926 if test -r $dir/libpcap.a ; then 7927 libpcap=$dir/libpcap.a 7928 d=$dir 7929 fi 7930 done 7931 if test $libpcap = FAIL ; then 7932 echo "$as_me:$LINENO: result: not found" >&5 7933echo "${ECHO_T}not found" >&6 7934 echo "$as_me:$LINENO: checking for main in -lpcap" >&5 7935echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6 7936if test "${ac_cv_lib_pcap_main+set}" = set; then 7937 echo $ECHO_N "(cached) $ECHO_C" >&6 7938else 7939 ac_check_lib_save_LIBS=$LIBS 7940LIBS="-lpcap $LIBS" 7941cat >conftest.$ac_ext <<_ACEOF 7942#line $LINENO "configure" 7943/* confdefs.h. */ 7944_ACEOF 7945cat confdefs.h >>conftest.$ac_ext 7946cat >>conftest.$ac_ext <<_ACEOF 7947/* end confdefs.h. */ 7948 7949 7950int 7951main () 7952{ 7953main (); 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958rm -f conftest.$ac_objext conftest$ac_exeext 7959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7960 (eval $ac_link) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); } && 7964 { ac_try='test -s conftest$ac_exeext' 7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7966 (eval $ac_try) 2>&5 7967 ac_status=$? 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); }; }; then 7970 ac_cv_lib_pcap_main=yes 7971else 7972 echo "$as_me: failed program was:" >&5 7973sed 's/^/| /' conftest.$ac_ext >&5 7974 7975ac_cv_lib_pcap_main=no 7976fi 7977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7978LIBS=$ac_check_lib_save_LIBS 7979fi 7980echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 7981echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6 7982if test $ac_cv_lib_pcap_main = yes; then 7983 libpcap="-lpcap" 7984fi 7985 7986 if test $libpcap = FAIL ; then 7987 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 7988echo "$as_me: error: see the INSTALL doc for more info" >&2;} 7989 { (exit 1); exit 1; }; } 7990 fi 7991 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 7992echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6 7993 if test \( ! -r /usr/local/include/pcap.h \) -a \ 7994 \( ! -r /usr/include/pcap.h \); then 7995 if test -r /usr/local/include/pcap/pcap.h; then 7996 d="/usr/local/include/pcap" 7997 elif test -r /usr/include/pcap/pcap.h; then 7998 d="/usr/include/pcap" 7999 fi 8000 fi 8001 if test -z "$d" ; then 8002 echo "$as_me:$LINENO: result: not found" >&5 8003echo "${ECHO_T}not found" >&6 8004 else 8005 V_INCLS="-I$d $V_INCLS" 8006 echo "$as_me:$LINENO: result: found -- -I$d added" >&5 8007echo "${ECHO_T}found -- -I$d added" >&6 8008 fi 8009 else 8010 V_PCAPDEP=$libpcap 8011 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 8012 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8013 if test -r $d/pcap.h; then 8014 V_INCLS="-I$d $V_INCLS" 8015 elif test -r $places/pcap.h; then 8016 V_INCLS="-I$places $V_INCLS" 8017 else 8018 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 8019echo "$as_me: error: cannot find pcap.h" >&2;} 8020 { (exit see INSTALL); exit see INSTALL; }; } 8021 fi 8022 echo "$as_me:$LINENO: result: $libpcap" >&5 8023echo "${ECHO_T}$libpcap" >&6 8024 fi 8025 LIBS="$libpcap $LIBS" 8026 case "$host_os" in 8027 8028 aix*) 8029 pseexe="/lib/pse.exp" 8030 echo "$as_me:$LINENO: checking for $pseexe" >&5 8031echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6 8032 if test -f $pseexe ; then 8033 echo "$as_me:$LINENO: result: yes" >&5 8034echo "${ECHO_T}yes" >&6 8035 LIBS="$LIBS -I:$pseexe" 8036 fi 8037 # 8038 # We need "-lodm" and "-lcfg", as libpcap requires them on 8039 # AIX, and we just build a static libpcap.a and thus can't 8040 # arrange that when you link with libpcap you automatically 8041 # link with those libraries. 8042 # 8043 LIBS="$LIBS -lodm -lcfg" 8044 ;; 8045 esac 8046 8047 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 8048echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6 8049if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 8050 echo $ECHO_N "(cached) $ECHO_C" >&6 8051else 8052 cat >conftest.$ac_ext <<_ACEOF 8053#line $LINENO "configure" 8054/* confdefs.h. */ 8055_ACEOF 8056cat confdefs.h >>conftest.$ac_ext 8057cat >>conftest.$ac_ext <<_ACEOF 8058/* end confdefs.h. */ 8059/* System header to define __stub macros and hopefully few prototypes, 8060 which can conflict with char pcap_list_datalinks (); below. 8061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8062 <limits.h> exists even on freestanding compilers. */ 8063#ifdef __STDC__ 8064# include <limits.h> 8065#else 8066# include <assert.h> 8067#endif 8068/* Override any gcc2 internal prototype to avoid an error. */ 8069#ifdef __cplusplus 8070extern "C" 8071{ 8072#endif 8073/* We use char because int might match the return type of a gcc2 8074 builtin and then its argument prototype would still apply. */ 8075char pcap_list_datalinks (); 8076/* The GNU C library defines this for functions which it implements 8077 to always fail with ENOSYS. Some functions are actually named 8078 something starting with __ and the normal name is an alias. */ 8079#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks) 8080choke me 8081#else 8082char (*f) () = pcap_list_datalinks; 8083#endif 8084#ifdef __cplusplus 8085} 8086#endif 8087 8088int 8089main () 8090{ 8091return f != pcap_list_datalinks; 8092 ; 8093 return 0; 8094} 8095_ACEOF 8096rm -f conftest.$ac_objext conftest$ac_exeext 8097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8098 (eval $ac_link) 2>&5 8099 ac_status=$? 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); } && 8102 { ac_try='test -s conftest$ac_exeext' 8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8104 (eval $ac_try) 2>&5 8105 ac_status=$? 8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8107 (exit $ac_status); }; }; then 8108 ac_cv_func_pcap_list_datalinks=yes 8109else 8110 echo "$as_me: failed program was:" >&5 8111sed 's/^/| /' conftest.$ac_ext >&5 8112 8113ac_cv_func_pcap_list_datalinks=no 8114fi 8115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8116fi 8117echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 8118echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6 8119if test $ac_cv_func_pcap_list_datalinks = yes; then 8120 cat >>confdefs.h <<\_ACEOF 8121#define HAVE_PCAP_LIST_DATALINKS 1 8122_ACEOF 8123 8124else 8125 LIBOBJS="$LIBOBJS datalinks.$ac_objext" 8126fi 8127 8128 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 8129echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6 8130if test "${ac_cv_func_pcap_set_datalink+set}" = set; then 8131 echo $ECHO_N "(cached) $ECHO_C" >&6 8132else 8133 cat >conftest.$ac_ext <<_ACEOF 8134#line $LINENO "configure" 8135/* confdefs.h. */ 8136_ACEOF 8137cat confdefs.h >>conftest.$ac_ext 8138cat >>conftest.$ac_ext <<_ACEOF 8139/* end confdefs.h. */ 8140/* System header to define __stub macros and hopefully few prototypes, 8141 which can conflict with char pcap_set_datalink (); below. 8142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8143 <limits.h> exists even on freestanding compilers. */ 8144#ifdef __STDC__ 8145# include <limits.h> 8146#else 8147# include <assert.h> 8148#endif 8149/* Override any gcc2 internal prototype to avoid an error. */ 8150#ifdef __cplusplus 8151extern "C" 8152{ 8153#endif 8154/* We use char because int might match the return type of a gcc2 8155 builtin and then its argument prototype would still apply. */ 8156char pcap_set_datalink (); 8157/* The GNU C library defines this for functions which it implements 8158 to always fail with ENOSYS. Some functions are actually named 8159 something starting with __ and the normal name is an alias. */ 8160#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink) 8161choke me 8162#else 8163char (*f) () = pcap_set_datalink; 8164#endif 8165#ifdef __cplusplus 8166} 8167#endif 8168 8169int 8170main () 8171{ 8172return f != pcap_set_datalink; 8173 ; 8174 return 0; 8175} 8176_ACEOF 8177rm -f conftest.$ac_objext conftest$ac_exeext 8178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8179 (eval $ac_link) 2>&5 8180 ac_status=$? 8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 (exit $ac_status); } && 8183 { ac_try='test -s conftest$ac_exeext' 8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8185 (eval $ac_try) 2>&5 8186 ac_status=$? 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 (exit $ac_status); }; }; then 8189 ac_cv_func_pcap_set_datalink=yes 8190else 8191 echo "$as_me: failed program was:" >&5 8192sed 's/^/| /' conftest.$ac_ext >&5 8193 8194ac_cv_func_pcap_set_datalink=no 8195fi 8196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8197fi 8198echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 8199echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6 8200if test $ac_cv_func_pcap_set_datalink = yes; then 8201 cat >>confdefs.h <<\_ACEOF 8202#define HAVE_PCAP_SET_DATALINK 1 8203_ACEOF 8204 8205fi 8206 8207 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 8208echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6 8209if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 8210 echo $ECHO_N "(cached) $ECHO_C" >&6 8211else 8212 cat >conftest.$ac_ext <<_ACEOF 8213#line $LINENO "configure" 8214/* confdefs.h. */ 8215_ACEOF 8216cat confdefs.h >>conftest.$ac_ext 8217cat >>conftest.$ac_ext <<_ACEOF 8218/* end confdefs.h. */ 8219/* System header to define __stub macros and hopefully few prototypes, 8220 which can conflict with char pcap_datalink_name_to_val (); below. 8221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8222 <limits.h> exists even on freestanding compilers. */ 8223#ifdef __STDC__ 8224# include <limits.h> 8225#else 8226# include <assert.h> 8227#endif 8228/* Override any gcc2 internal prototype to avoid an error. */ 8229#ifdef __cplusplus 8230extern "C" 8231{ 8232#endif 8233/* We use char because int might match the return type of a gcc2 8234 builtin and then its argument prototype would still apply. */ 8235char pcap_datalink_name_to_val (); 8236/* The GNU C library defines this for functions which it implements 8237 to always fail with ENOSYS. Some functions are actually named 8238 something starting with __ and the normal name is an alias. */ 8239#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val) 8240choke me 8241#else 8242char (*f) () = pcap_datalink_name_to_val; 8243#endif 8244#ifdef __cplusplus 8245} 8246#endif 8247 8248int 8249main () 8250{ 8251return f != pcap_datalink_name_to_val; 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256rm -f conftest.$ac_objext conftest$ac_exeext 8257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8258 (eval $ac_link) 2>&5 8259 ac_status=$? 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); } && 8262 { ac_try='test -s conftest$ac_exeext' 8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8264 (eval $ac_try) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); }; }; then 8268 ac_cv_func_pcap_datalink_name_to_val=yes 8269else 8270 echo "$as_me: failed program was:" >&5 8271sed 's/^/| /' conftest.$ac_ext >&5 8272 8273ac_cv_func_pcap_datalink_name_to_val=no 8274fi 8275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8276fi 8277echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 8278echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6 8279if test $ac_cv_func_pcap_datalink_name_to_val = yes; then 8280 8281 cat >>confdefs.h <<\_ACEOF 8282#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 8283_ACEOF 8284 8285 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 8286echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6 8287if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then 8288 echo $ECHO_N "(cached) $ECHO_C" >&6 8289else 8290 cat >conftest.$ac_ext <<_ACEOF 8291#line $LINENO "configure" 8292/* confdefs.h. */ 8293_ACEOF 8294cat confdefs.h >>conftest.$ac_ext 8295cat >>conftest.$ac_ext <<_ACEOF 8296/* end confdefs.h. */ 8297/* System header to define __stub macros and hopefully few prototypes, 8298 which can conflict with char pcap_datalink_val_to_description (); below. 8299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8300 <limits.h> exists even on freestanding compilers. */ 8301#ifdef __STDC__ 8302# include <limits.h> 8303#else 8304# include <assert.h> 8305#endif 8306/* Override any gcc2 internal prototype to avoid an error. */ 8307#ifdef __cplusplus 8308extern "C" 8309{ 8310#endif 8311/* We use char because int might match the return type of a gcc2 8312 builtin and then its argument prototype would still apply. */ 8313char pcap_datalink_val_to_description (); 8314/* The GNU C library defines this for functions which it implements 8315 to always fail with ENOSYS. Some functions are actually named 8316 something starting with __ and the normal name is an alias. */ 8317#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description) 8318choke me 8319#else 8320char (*f) () = pcap_datalink_val_to_description; 8321#endif 8322#ifdef __cplusplus 8323} 8324#endif 8325 8326int 8327main () 8328{ 8329return f != pcap_datalink_val_to_description; 8330 ; 8331 return 0; 8332} 8333_ACEOF 8334rm -f conftest.$ac_objext conftest$ac_exeext 8335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8336 (eval $ac_link) 2>&5 8337 ac_status=$? 8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8339 (exit $ac_status); } && 8340 { ac_try='test -s conftest$ac_exeext' 8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8342 (eval $ac_try) 2>&5 8343 ac_status=$? 8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8345 (exit $ac_status); }; }; then 8346 ac_cv_func_pcap_datalink_val_to_description=yes 8347else 8348 echo "$as_me: failed program was:" >&5 8349sed 's/^/| /' conftest.$ac_ext >&5 8350 8351ac_cv_func_pcap_datalink_val_to_description=no 8352fi 8353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8354fi 8355echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 8356echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6 8357if test $ac_cv_func_pcap_datalink_val_to_description = yes; then 8358 cat >>confdefs.h <<\_ACEOF 8359#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 8360_ACEOF 8361 8362else 8363 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8364fi 8365 8366 8367else 8368 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8369fi 8370 8371 8372 8373for ac_func in pcap_breakloop 8374do 8375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8376echo "$as_me:$LINENO: checking for $ac_func" >&5 8377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8378if eval "test \"\${$as_ac_var+set}\" = set"; then 8379 echo $ECHO_N "(cached) $ECHO_C" >&6 8380else 8381 cat >conftest.$ac_ext <<_ACEOF 8382#line $LINENO "configure" 8383/* confdefs.h. */ 8384_ACEOF 8385cat confdefs.h >>conftest.$ac_ext 8386cat >>conftest.$ac_ext <<_ACEOF 8387/* end confdefs.h. */ 8388/* System header to define __stub macros and hopefully few prototypes, 8389 which can conflict with char $ac_func (); below. 8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8391 <limits.h> exists even on freestanding compilers. */ 8392#ifdef __STDC__ 8393# include <limits.h> 8394#else 8395# include <assert.h> 8396#endif 8397/* Override any gcc2 internal prototype to avoid an error. */ 8398#ifdef __cplusplus 8399extern "C" 8400{ 8401#endif 8402/* We use char because int might match the return type of a gcc2 8403 builtin and then its argument prototype would still apply. */ 8404char $ac_func (); 8405/* The GNU C library defines this for functions which it implements 8406 to always fail with ENOSYS. Some functions are actually named 8407 something starting with __ and the normal name is an alias. */ 8408#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8409choke me 8410#else 8411char (*f) () = $ac_func; 8412#endif 8413#ifdef __cplusplus 8414} 8415#endif 8416 8417int 8418main () 8419{ 8420return f != $ac_func; 8421 ; 8422 return 0; 8423} 8424_ACEOF 8425rm -f conftest.$ac_objext conftest$ac_exeext 8426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8427 (eval $ac_link) 2>&5 8428 ac_status=$? 8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8430 (exit $ac_status); } && 8431 { ac_try='test -s conftest$ac_exeext' 8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8433 (eval $ac_try) 2>&5 8434 ac_status=$? 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 (exit $ac_status); }; }; then 8437 eval "$as_ac_var=yes" 8438else 8439 echo "$as_me: failed program was:" >&5 8440sed 's/^/| /' conftest.$ac_ext >&5 8441 8442eval "$as_ac_var=no" 8443fi 8444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8445fi 8446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8448if test `eval echo '${'$as_ac_var'}'` = yes; then 8449 cat >>confdefs.h <<_ACEOF 8450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8451_ACEOF 8452 8453fi 8454done 8455 8456 8457 8458# 8459# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 8460# libraries (e.g., "-lsocket -lnsl" on Solaris). 8461# 8462# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 8463# use AC_CHECK_FUNC which doesn't let us specify the right #includes 8464# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 8465# resolver, and the way it defines inet_{ntop,pton} is rather strange; 8466# it does not ship with a libc symbol "inet_ntop()", it ships with 8467# "_inet_ntop()", and has a #define macro in one of the system headers 8468# to rename it. 8469# 8470echo "$as_me:$LINENO: checking for inet_ntop" >&5 8471echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 8472cat >conftest.$ac_ext <<_ACEOF 8473#line $LINENO "configure" 8474/* confdefs.h. */ 8475_ACEOF 8476cat confdefs.h >>conftest.$ac_ext 8477cat >>conftest.$ac_ext <<_ACEOF 8478/* end confdefs.h. */ 8479#include <sys/types.h> 8480#include <sys/socket.h> 8481#include <netinet/in.h> 8482#include <arpa/inet.h> 8483int 8484main () 8485{ 8486char src[4], dst[128]; 8487inet_ntop(AF_INET, src, dst, sizeof(dst)); 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492rm -f conftest.$ac_objext conftest$ac_exeext 8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8494 (eval $ac_link) 2>&5 8495 ac_status=$? 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } && 8498 { ac_try='test -s conftest$ac_exeext' 8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8500 (eval $ac_try) 2>&5 8501 ac_status=$? 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); }; }; then 8504 echo "$as_me:$LINENO: result: yes" >&5 8505echo "${ECHO_T}yes" >&6 8506else 8507 echo "$as_me: failed program was:" >&5 8508sed 's/^/| /' conftest.$ac_ext >&5 8509 8510echo "$as_me:$LINENO: result: no" >&5 8511echo "${ECHO_T}no" >&6 8512 LIBOBJS="$LIBOBJS inet_ntop.o.$ac_objext" 8513fi 8514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8515echo "$as_me:$LINENO: checking for inet_pton" >&5 8516echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 8517cat >conftest.$ac_ext <<_ACEOF 8518#line $LINENO "configure" 8519/* confdefs.h. */ 8520_ACEOF 8521cat confdefs.h >>conftest.$ac_ext 8522cat >>conftest.$ac_ext <<_ACEOF 8523/* end confdefs.h. */ 8524#include <sys/types.h> 8525#include <sys/socket.h> 8526#include <netinet/in.h> 8527#include <arpa/inet.h> 8528int 8529main () 8530{ 8531char src[128], dst[4]; 8532inet_pton(AF_INET, src, dst); 8533 ; 8534 return 0; 8535} 8536_ACEOF 8537rm -f conftest.$ac_objext conftest$ac_exeext 8538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8539 (eval $ac_link) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); } && 8543 { ac_try='test -s conftest$ac_exeext' 8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8545 (eval $ac_try) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); }; }; then 8549 echo "$as_me:$LINENO: result: yes" >&5 8550echo "${ECHO_T}yes" >&6 8551else 8552 echo "$as_me: failed program was:" >&5 8553sed 's/^/| /' conftest.$ac_ext >&5 8554 8555echo "$as_me:$LINENO: result: no" >&5 8556echo "${ECHO_T}no" >&6 8557 LIBOBJS="$LIBOBJS inet_pton.o.$ac_objext" 8558fi 8559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8560echo "$as_me:$LINENO: checking for inet_aton" >&5 8561echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 8562cat >conftest.$ac_ext <<_ACEOF 8563#line $LINENO "configure" 8564/* confdefs.h. */ 8565_ACEOF 8566cat confdefs.h >>conftest.$ac_ext 8567cat >>conftest.$ac_ext <<_ACEOF 8568/* end confdefs.h. */ 8569#include <sys/types.h> 8570#include <netinet/in.h> 8571#include <arpa/inet.h> 8572int 8573main () 8574{ 8575char src[128]; 8576struct in_addr dst; 8577inet_aton(src, &dst); 8578 ; 8579 return 0; 8580} 8581_ACEOF 8582rm -f conftest.$ac_objext conftest$ac_exeext 8583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8584 (eval $ac_link) 2>&5 8585 ac_status=$? 8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8587 (exit $ac_status); } && 8588 { ac_try='test -s conftest$ac_exeext' 8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8590 (eval $ac_try) 2>&5 8591 ac_status=$? 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); }; }; then 8594 echo "$as_me:$LINENO: result: yes" >&5 8595echo "${ECHO_T}yes" >&6 8596else 8597 echo "$as_me: failed program was:" >&5 8598sed 's/^/| /' conftest.$ac_ext >&5 8599 8600echo "$as_me:$LINENO: result: no" >&5 8601echo "${ECHO_T}no" >&6 8602 LIBOBJS="$LIBOBJS inet_aton.o.$ac_objext" 8603fi 8604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8605 8606 8607 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 8608echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 8609 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 8610 echo $ECHO_N "(cached) $ECHO_C" >&6 8611else 8612 cat >conftest.$ac_ext <<_ACEOF 8613#line $LINENO "configure" 8614/* confdefs.h. */ 8615_ACEOF 8616cat confdefs.h >>conftest.$ac_ext 8617cat >>conftest.$ac_ext <<_ACEOF 8618/* end confdefs.h. */ 8619 8620# include <sys/types.h> 8621# include <sys/socket.h> 8622int 8623main () 8624{ 8625u_int i = sizeof(((struct sockaddr *)0)->sa_len) 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630rm -f conftest.$ac_objext 8631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8632 (eval $ac_compile) 2>&5 8633 ac_status=$? 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 (exit $ac_status); } && 8636 { ac_try='test -s conftest.$ac_objext' 8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8638 (eval $ac_try) 2>&5 8639 ac_status=$? 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); }; }; then 8642 ac_cv_sockaddr_has_sa_len=yes 8643else 8644 echo "$as_me: failed program was:" >&5 8645sed 's/^/| /' conftest.$ac_ext >&5 8646 8647ac_cv_sockaddr_has_sa_len=no 8648fi 8649rm -f conftest.$ac_objext conftest.$ac_ext 8650fi 8651 8652 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 8653echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6 8654 if test $ac_cv_sockaddr_has_sa_len = yes ; then 8655 cat >>confdefs.h <<\_ACEOF 8656#define HAVE_SOCKADDR_SA_LEN 1 8657_ACEOF 8658 8659 fi 8660 8661if test "$ac_cv_sockaddr_has_sa_len" = no; then 8662 missing_includes=yes 8663fi 8664 8665 8666 8667 8668for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 8669do 8670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8671echo "$as_me:$LINENO: checking for $ac_func" >&5 8672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8673if eval "test \"\${$as_ac_var+set}\" = set"; then 8674 echo $ECHO_N "(cached) $ECHO_C" >&6 8675else 8676 cat >conftest.$ac_ext <<_ACEOF 8677#line $LINENO "configure" 8678/* confdefs.h. */ 8679_ACEOF 8680cat confdefs.h >>conftest.$ac_ext 8681cat >>conftest.$ac_ext <<_ACEOF 8682/* end confdefs.h. */ 8683/* System header to define __stub macros and hopefully few prototypes, 8684 which can conflict with char $ac_func (); below. 8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8686 <limits.h> exists even on freestanding compilers. */ 8687#ifdef __STDC__ 8688# include <limits.h> 8689#else 8690# include <assert.h> 8691#endif 8692/* Override any gcc2 internal prototype to avoid an error. */ 8693#ifdef __cplusplus 8694extern "C" 8695{ 8696#endif 8697/* We use char because int might match the return type of a gcc2 8698 builtin and then its argument prototype would still apply. */ 8699char $ac_func (); 8700/* The GNU C library defines this for functions which it implements 8701 to always fail with ENOSYS. Some functions are actually named 8702 something starting with __ and the normal name is an alias. */ 8703#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8704choke me 8705#else 8706char (*f) () = $ac_func; 8707#endif 8708#ifdef __cplusplus 8709} 8710#endif 8711 8712int 8713main () 8714{ 8715return f != $ac_func; 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720rm -f conftest.$ac_objext conftest$ac_exeext 8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8722 (eval $ac_link) 2>&5 8723 ac_status=$? 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8725 (exit $ac_status); } && 8726 { ac_try='test -s conftest$ac_exeext' 8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8728 (eval $ac_try) 2>&5 8729 ac_status=$? 8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8731 (exit $ac_status); }; }; then 8732 eval "$as_ac_var=yes" 8733else 8734 echo "$as_me: failed program was:" >&5 8735sed 's/^/| /' conftest.$ac_ext >&5 8736 8737eval "$as_ac_var=no" 8738fi 8739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8740fi 8741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8743if test `eval echo '${'$as_ac_var'}'` = yes; then 8744 cat >>confdefs.h <<_ACEOF 8745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8746_ACEOF 8747 8748fi 8749done 8750 8751if test $ac_cv_func_pcap_findalldevs = "yes" ; then 8752 echo "$as_me:$LINENO: checking for pcap_if_t" >&5 8753echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6 8754if test "${ac_cv_type_pcap_if_t+set}" = set; then 8755 echo $ECHO_N "(cached) $ECHO_C" >&6 8756else 8757 cat >conftest.$ac_ext <<_ACEOF 8758#line $LINENO "configure" 8759/* confdefs.h. */ 8760_ACEOF 8761cat confdefs.h >>conftest.$ac_ext 8762cat >>conftest.$ac_ext <<_ACEOF 8763/* end confdefs.h. */ 8764#include <pcap.h> 8765 8766int 8767main () 8768{ 8769if ((pcap_if_t *) 0) 8770 return 0; 8771if (sizeof (pcap_if_t)) 8772 return 0; 8773 ; 8774 return 0; 8775} 8776_ACEOF 8777rm -f conftest.$ac_objext 8778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8779 (eval $ac_compile) 2>&5 8780 ac_status=$? 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); } && 8783 { ac_try='test -s conftest.$ac_objext' 8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8785 (eval $ac_try) 2>&5 8786 ac_status=$? 8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8788 (exit $ac_status); }; }; then 8789 ac_cv_type_pcap_if_t=yes 8790else 8791 echo "$as_me: failed program was:" >&5 8792sed 's/^/| /' conftest.$ac_ext >&5 8793 8794ac_cv_type_pcap_if_t=no 8795fi 8796rm -f conftest.$ac_objext conftest.$ac_ext 8797fi 8798echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 8799echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6 8800if test $ac_cv_type_pcap_if_t = yes; then 8801 8802cat >>confdefs.h <<_ACEOF 8803#define HAVE_PCAP_IF_T 1 8804_ACEOF 8805 8806 8807fi 8808 8809fi 8810if test $ac_cv_func_pcap_lib_version = "no" ; then 8811 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 8812echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6 8813 cat >conftest.$ac_ext <<_ACEOF 8814#line $LINENO "configure" 8815/* confdefs.h. */ 8816_ACEOF 8817cat confdefs.h >>conftest.$ac_ext 8818cat >>conftest.$ac_ext <<_ACEOF 8819/* end confdefs.h. */ 8820 8821int 8822main () 8823{ 8824 8825char * 8826return_pcap_version(void) 8827{ 8828 extern char pcap_version[]; 8829 8830 return pcap_version; 8831} 8832 8833 ; 8834 return 0; 8835} 8836_ACEOF 8837rm -f conftest.$ac_objext conftest$ac_exeext 8838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8839 (eval $ac_link) 2>&5 8840 ac_status=$? 8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8842 (exit $ac_status); } && 8843 { ac_try='test -s conftest$ac_exeext' 8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8845 (eval $ac_try) 2>&5 8846 ac_status=$? 8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848 (exit $ac_status); }; }; then 8849 ac_lbl_cv_pcap_version_defined=yes 8850else 8851 echo "$as_me: failed program was:" >&5 8852sed 's/^/| /' conftest.$ac_ext >&5 8853 8854ac_lbl_cv_pcap_version_defined=no 8855fi 8856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8857 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 8858 echo "$as_me:$LINENO: result: yes" >&5 8859echo "${ECHO_T}yes" >&6 8860 cat >>confdefs.h <<\_ACEOF 8861#define HAVE_PCAP_VERSION 1 8862_ACEOF 8863 8864 else 8865 echo "$as_me:$LINENO: result: no" >&5 8866echo "${ECHO_T}no" >&6 8867 fi 8868fi 8869echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 8870echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6 8871cat >conftest.$ac_ext <<_ACEOF 8872#line $LINENO "configure" 8873/* confdefs.h. */ 8874_ACEOF 8875cat confdefs.h >>conftest.$ac_ext 8876cat >>conftest.$ac_ext <<_ACEOF 8877/* end confdefs.h. */ 8878 8879int 8880main () 8881{ 8882 8883int 8884return_pcap_debug(void) 8885{ 8886 extern int pcap_debug; 8887 8888 return pcap_debug; 8889} 8890 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895rm -f conftest.$ac_objext conftest$ac_exeext 8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8897 (eval $ac_link) 2>&5 8898 ac_status=$? 8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8900 (exit $ac_status); } && 8901 { ac_try='test -s conftest$ac_exeext' 8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8903 (eval $ac_try) 2>&5 8904 ac_status=$? 8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8906 (exit $ac_status); }; }; then 8907 ac_lbl_cv_pcap_debug_defined=yes 8908else 8909 echo "$as_me: failed program was:" >&5 8910sed 's/^/| /' conftest.$ac_ext >&5 8911 8912ac_lbl_cv_pcap_debug_defined=no 8913fi 8914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8915if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 8916 echo "$as_me:$LINENO: result: yes" >&5 8917echo "${ECHO_T}yes" >&6 8918 cat >>confdefs.h <<\_ACEOF 8919#define HAVE_PCAP_DEBUG 1 8920_ACEOF 8921 8922else 8923 echo "$as_me:$LINENO: result: no" >&5 8924echo "${ECHO_T}no" >&6 8925 # 8926 # OK, what about "yydebug"? 8927 # 8928 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 8929echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6 8930 cat >conftest.$ac_ext <<_ACEOF 8931#line $LINENO "configure" 8932/* confdefs.h. */ 8933_ACEOF 8934cat confdefs.h >>conftest.$ac_ext 8935cat >>conftest.$ac_ext <<_ACEOF 8936/* end confdefs.h. */ 8937 8938int 8939main () 8940{ 8941 8942 int 8943 return_yydebug(void) 8944 { 8945 extern int yydebug; 8946 8947 return yydebug; 8948 } 8949 8950 ; 8951 return 0; 8952} 8953_ACEOF 8954rm -f conftest.$ac_objext conftest$ac_exeext 8955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8956 (eval $ac_link) 2>&5 8957 ac_status=$? 8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8959 (exit $ac_status); } && 8960 { ac_try='test -s conftest$ac_exeext' 8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8962 (eval $ac_try) 2>&5 8963 ac_status=$? 8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8965 (exit $ac_status); }; }; then 8966 ac_lbl_cv_yydebug_defined=yes 8967else 8968 echo "$as_me: failed program was:" >&5 8969sed 's/^/| /' conftest.$ac_ext >&5 8970 8971ac_lbl_cv_yydebug_defined=no 8972fi 8973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8974 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 8975 echo "$as_me:$LINENO: result: yes" >&5 8976echo "${ECHO_T}yes" >&6 8977 cat >>confdefs.h <<\_ACEOF 8978#define HAVE_YYDEBUG 1 8979_ACEOF 8980 8981 else 8982 echo "$as_me:$LINENO: result: no" >&5 8983echo "${ECHO_T}no" >&6 8984 fi 8985fi 8986 8987for ac_func in bpf_dump 8988do 8989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8990echo "$as_me:$LINENO: checking for $ac_func" >&5 8991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8992if eval "test \"\${$as_ac_var+set}\" = set"; then 8993 echo $ECHO_N "(cached) $ECHO_C" >&6 8994else 8995 cat >conftest.$ac_ext <<_ACEOF 8996#line $LINENO "configure" 8997/* confdefs.h. */ 8998_ACEOF 8999cat confdefs.h >>conftest.$ac_ext 9000cat >>conftest.$ac_ext <<_ACEOF 9001/* end confdefs.h. */ 9002/* System header to define __stub macros and hopefully few prototypes, 9003 which can conflict with char $ac_func (); below. 9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9005 <limits.h> exists even on freestanding compilers. */ 9006#ifdef __STDC__ 9007# include <limits.h> 9008#else 9009# include <assert.h> 9010#endif 9011/* Override any gcc2 internal prototype to avoid an error. */ 9012#ifdef __cplusplus 9013extern "C" 9014{ 9015#endif 9016/* We use char because int might match the return type of a gcc2 9017 builtin and then its argument prototype would still apply. */ 9018char $ac_func (); 9019/* The GNU C library defines this for functions which it implements 9020 to always fail with ENOSYS. Some functions are actually named 9021 something starting with __ and the normal name is an alias. */ 9022#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9023choke me 9024#else 9025char (*f) () = $ac_func; 9026#endif 9027#ifdef __cplusplus 9028} 9029#endif 9030 9031int 9032main () 9033{ 9034return f != $ac_func; 9035 ; 9036 return 0; 9037} 9038_ACEOF 9039rm -f conftest.$ac_objext conftest$ac_exeext 9040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9041 (eval $ac_link) 2>&5 9042 ac_status=$? 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); } && 9045 { ac_try='test -s conftest$ac_exeext' 9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9047 (eval $ac_try) 2>&5 9048 ac_status=$? 9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9050 (exit $ac_status); }; }; then 9051 eval "$as_ac_var=yes" 9052else 9053 echo "$as_me: failed program was:" >&5 9054sed 's/^/| /' conftest.$ac_ext >&5 9055 9056eval "$as_ac_var=no" 9057fi 9058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9059fi 9060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9062if test `eval echo '${'$as_ac_var'}'` = yes; then 9063 cat >>confdefs.h <<_ACEOF 9064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9065_ACEOF 9066 9067else 9068 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9069fi 9070done 9071 9072 9073V_GROUP=0 9074if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 9075 V_GROUP=wheel 9076fi 9077case "$host_os" in 9078 9079aix*) 9080 cat >>confdefs.h <<\_ACEOF 9081#define _SUN 1 9082_ACEOF 9083 9084 ;; 9085 9086irix*) 9087 V_GROUP=sys 9088 ;; 9089 9090osf*) 9091 V_GROUP=system 9092 ;; 9093 9094solaris*) 9095 V_GROUP=sys 9096 ;; 9097esac 9098 9099if test -f /dev/bpf0 ; then 9100 V_GROUP=bpf 9101fi 9102 9103echo "$as_me:$LINENO: checking for int8_t using $CC" >&5 9104echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6 9105 if test "${ac_cv_lbl_have_int8_t+set}" = set; then 9106 echo $ECHO_N "(cached) $ECHO_C" >&6 9107else 9108 cat >conftest.$ac_ext <<_ACEOF 9109#line $LINENO "configure" 9110/* confdefs.h. */ 9111_ACEOF 9112cat confdefs.h >>conftest.$ac_ext 9113cat >>conftest.$ac_ext <<_ACEOF 9114/* end confdefs.h. */ 9115 9116# include "confdefs.h" 9117# include <sys/types.h> 9118# if STDC_HEADERS 9119# include <stdlib.h> 9120# include <stddef.h> 9121# endif 9122int 9123main () 9124{ 9125int8_t i 9126 ; 9127 return 0; 9128} 9129_ACEOF 9130rm -f conftest.$ac_objext 9131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9132 (eval $ac_compile) 2>&5 9133 ac_status=$? 9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 (exit $ac_status); } && 9136 { ac_try='test -s conftest.$ac_objext' 9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9138 (eval $ac_try) 2>&5 9139 ac_status=$? 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9141 (exit $ac_status); }; }; then 9142 ac_cv_lbl_have_int8_t=yes 9143else 9144 echo "$as_me: failed program was:" >&5 9145sed 's/^/| /' conftest.$ac_ext >&5 9146 9147ac_cv_lbl_have_int8_t=no 9148fi 9149rm -f conftest.$ac_objext conftest.$ac_ext 9150fi 9151 9152 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5 9153echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6 9154 if test $ac_cv_lbl_have_int8_t = no ; then 9155 cat >>confdefs.h <<\_ACEOF 9156#define int8_t signed char 9157_ACEOF 9158 9159 fi 9160echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5 9161echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6 9162 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then 9163 echo $ECHO_N "(cached) $ECHO_C" >&6 9164else 9165 cat >conftest.$ac_ext <<_ACEOF 9166#line $LINENO "configure" 9167/* confdefs.h. */ 9168_ACEOF 9169cat confdefs.h >>conftest.$ac_ext 9170cat >>conftest.$ac_ext <<_ACEOF 9171/* end confdefs.h. */ 9172 9173# include "confdefs.h" 9174# include <sys/types.h> 9175# if STDC_HEADERS 9176# include <stdlib.h> 9177# include <stddef.h> 9178# endif 9179int 9180main () 9181{ 9182u_int8_t i 9183 ; 9184 return 0; 9185} 9186_ACEOF 9187rm -f conftest.$ac_objext 9188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9189 (eval $ac_compile) 2>&5 9190 ac_status=$? 9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9192 (exit $ac_status); } && 9193 { ac_try='test -s conftest.$ac_objext' 9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9195 (eval $ac_try) 2>&5 9196 ac_status=$? 9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 (exit $ac_status); }; }; then 9199 ac_cv_lbl_have_u_int8_t=yes 9200else 9201 echo "$as_me: failed program was:" >&5 9202sed 's/^/| /' conftest.$ac_ext >&5 9203 9204ac_cv_lbl_have_u_int8_t=no 9205fi 9206rm -f conftest.$ac_objext conftest.$ac_ext 9207fi 9208 9209 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5 9210echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6 9211 if test $ac_cv_lbl_have_u_int8_t = no ; then 9212 cat >>confdefs.h <<\_ACEOF 9213#define u_int8_t u_char 9214_ACEOF 9215 9216 fi 9217echo "$as_me:$LINENO: checking for int16_t using $CC" >&5 9218echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6 9219 if test "${ac_cv_lbl_have_int16_t+set}" = set; then 9220 echo $ECHO_N "(cached) $ECHO_C" >&6 9221else 9222 cat >conftest.$ac_ext <<_ACEOF 9223#line $LINENO "configure" 9224/* confdefs.h. */ 9225_ACEOF 9226cat confdefs.h >>conftest.$ac_ext 9227cat >>conftest.$ac_ext <<_ACEOF 9228/* end confdefs.h. */ 9229 9230# include "confdefs.h" 9231# include <sys/types.h> 9232# if STDC_HEADERS 9233# include <stdlib.h> 9234# include <stddef.h> 9235# endif 9236int 9237main () 9238{ 9239int16_t i 9240 ; 9241 return 0; 9242} 9243_ACEOF 9244rm -f conftest.$ac_objext 9245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9246 (eval $ac_compile) 2>&5 9247 ac_status=$? 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); } && 9250 { ac_try='test -s conftest.$ac_objext' 9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9252 (eval $ac_try) 2>&5 9253 ac_status=$? 9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9255 (exit $ac_status); }; }; then 9256 ac_cv_lbl_have_int16_t=yes 9257else 9258 echo "$as_me: failed program was:" >&5 9259sed 's/^/| /' conftest.$ac_ext >&5 9260 9261ac_cv_lbl_have_int16_t=no 9262fi 9263rm -f conftest.$ac_objext conftest.$ac_ext 9264fi 9265 9266 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5 9267echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6 9268 if test $ac_cv_lbl_have_int16_t = no ; then 9269 cat >>confdefs.h <<\_ACEOF 9270#define int16_t short 9271_ACEOF 9272 9273 fi 9274echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5 9275echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6 9276 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then 9277 echo $ECHO_N "(cached) $ECHO_C" >&6 9278else 9279 cat >conftest.$ac_ext <<_ACEOF 9280#line $LINENO "configure" 9281/* confdefs.h. */ 9282_ACEOF 9283cat confdefs.h >>conftest.$ac_ext 9284cat >>conftest.$ac_ext <<_ACEOF 9285/* end confdefs.h. */ 9286 9287# include "confdefs.h" 9288# include <sys/types.h> 9289# if STDC_HEADERS 9290# include <stdlib.h> 9291# include <stddef.h> 9292# endif 9293int 9294main () 9295{ 9296u_int16_t i 9297 ; 9298 return 0; 9299} 9300_ACEOF 9301rm -f conftest.$ac_objext 9302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9303 (eval $ac_compile) 2>&5 9304 ac_status=$? 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); } && 9307 { ac_try='test -s conftest.$ac_objext' 9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9309 (eval $ac_try) 2>&5 9310 ac_status=$? 9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9312 (exit $ac_status); }; }; then 9313 ac_cv_lbl_have_u_int16_t=yes 9314else 9315 echo "$as_me: failed program was:" >&5 9316sed 's/^/| /' conftest.$ac_ext >&5 9317 9318ac_cv_lbl_have_u_int16_t=no 9319fi 9320rm -f conftest.$ac_objext conftest.$ac_ext 9321fi 9322 9323 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5 9324echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6 9325 if test $ac_cv_lbl_have_u_int16_t = no ; then 9326 cat >>confdefs.h <<\_ACEOF 9327#define u_int16_t u_short 9328_ACEOF 9329 9330 fi 9331echo "$as_me:$LINENO: checking for int32_t using $CC" >&5 9332echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6 9333 if test "${ac_cv_lbl_have_int32_t+set}" = set; then 9334 echo $ECHO_N "(cached) $ECHO_C" >&6 9335else 9336 cat >conftest.$ac_ext <<_ACEOF 9337#line $LINENO "configure" 9338/* confdefs.h. */ 9339_ACEOF 9340cat confdefs.h >>conftest.$ac_ext 9341cat >>conftest.$ac_ext <<_ACEOF 9342/* end confdefs.h. */ 9343 9344# include "confdefs.h" 9345# include <sys/types.h> 9346# if STDC_HEADERS 9347# include <stdlib.h> 9348# include <stddef.h> 9349# endif 9350int 9351main () 9352{ 9353int32_t i 9354 ; 9355 return 0; 9356} 9357_ACEOF 9358rm -f conftest.$ac_objext 9359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9360 (eval $ac_compile) 2>&5 9361 ac_status=$? 9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9363 (exit $ac_status); } && 9364 { ac_try='test -s conftest.$ac_objext' 9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9366 (eval $ac_try) 2>&5 9367 ac_status=$? 9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369 (exit $ac_status); }; }; then 9370 ac_cv_lbl_have_int32_t=yes 9371else 9372 echo "$as_me: failed program was:" >&5 9373sed 's/^/| /' conftest.$ac_ext >&5 9374 9375ac_cv_lbl_have_int32_t=no 9376fi 9377rm -f conftest.$ac_objext conftest.$ac_ext 9378fi 9379 9380 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5 9381echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6 9382 if test $ac_cv_lbl_have_int32_t = no ; then 9383 cat >>confdefs.h <<\_ACEOF 9384#define int32_t int 9385_ACEOF 9386 9387 fi 9388echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5 9389echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6 9390 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then 9391 echo $ECHO_N "(cached) $ECHO_C" >&6 9392else 9393 cat >conftest.$ac_ext <<_ACEOF 9394#line $LINENO "configure" 9395/* confdefs.h. */ 9396_ACEOF 9397cat confdefs.h >>conftest.$ac_ext 9398cat >>conftest.$ac_ext <<_ACEOF 9399/* end confdefs.h. */ 9400 9401# include "confdefs.h" 9402# include <sys/types.h> 9403# if STDC_HEADERS 9404# include <stdlib.h> 9405# include <stddef.h> 9406# endif 9407int 9408main () 9409{ 9410u_int32_t i 9411 ; 9412 return 0; 9413} 9414_ACEOF 9415rm -f conftest.$ac_objext 9416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9417 (eval $ac_compile) 2>&5 9418 ac_status=$? 9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9420 (exit $ac_status); } && 9421 { ac_try='test -s conftest.$ac_objext' 9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9423 (eval $ac_try) 2>&5 9424 ac_status=$? 9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9426 (exit $ac_status); }; }; then 9427 ac_cv_lbl_have_u_int32_t=yes 9428else 9429 echo "$as_me: failed program was:" >&5 9430sed 's/^/| /' conftest.$ac_ext >&5 9431 9432ac_cv_lbl_have_u_int32_t=no 9433fi 9434rm -f conftest.$ac_objext conftest.$ac_ext 9435fi 9436 9437 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5 9438echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6 9439 if test $ac_cv_lbl_have_u_int32_t = no ; then 9440 cat >>confdefs.h <<\_ACEOF 9441#define u_int32_t u_int 9442_ACEOF 9443 9444 fi 9445 9446rm -f os-proto.h 9447 if test "${LBL_CFLAGS+set}" = set; then 9448 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 9449 fi 9450 if test -f .devel ; then 9451 if test "$GCC" = yes ; then 9452 if test "${LBL_CFLAGS+set}" != set; then 9453 if test "$ac_cv_prog_cc_g" = yes ; then 9454 V_CCOPT="-g $V_CCOPT" 9455 fi 9456 V_CCOPT="$V_CCOPT -Wall" 9457 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 9458 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W" 9459 fi 9460 fi 9461 else 9462 case "$host_os" in 9463 9464 irix6*) 9465 V_CCOPT="$V_CCOPT -n32" 9466 ;; 9467 9468 *) 9469 ;; 9470 esac 9471 fi 9472 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 9473 name="lbl/os-$os.h" 9474 if test -f $name ; then 9475 ln -s $name os-proto.h 9476 cat >>confdefs.h <<\_ACEOF 9477#define HAVE_OS_PROTO_H 1 9478_ACEOF 9479 9480 else 9481 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 9482echo "$as_me: WARNING: can't find $name" >&2;} 9483 fi 9484 fi 9485 9486echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 9487echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 9488 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 9489 echo $ECHO_N "(cached) $ECHO_C" >&6 9490else 9491 cat >conftest.$ac_ext <<_ACEOF 9492#line $LINENO "configure" 9493/* confdefs.h. */ 9494_ACEOF 9495cat confdefs.h >>conftest.$ac_ext 9496cat >>conftest.$ac_ext <<_ACEOF 9497/* end confdefs.h. */ 9498 9499# include <sys/types.h> 9500# include <sys/socket.h> 9501int 9502main () 9503{ 9504u_int i = sizeof(((struct sockaddr *)0)->sa_len) 9505 ; 9506 return 0; 9507} 9508_ACEOF 9509rm -f conftest.$ac_objext 9510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9511 (eval $ac_compile) 2>&5 9512 ac_status=$? 9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9514 (exit $ac_status); } && 9515 { ac_try='test -s conftest.$ac_objext' 9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9517 (eval $ac_try) 2>&5 9518 ac_status=$? 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9520 (exit $ac_status); }; }; then 9521 ac_cv_lbl_sockaddr_has_sa_len=yes 9522else 9523 echo "$as_me: failed program was:" >&5 9524sed 's/^/| /' conftest.$ac_ext >&5 9525 9526ac_cv_lbl_sockaddr_has_sa_len=no 9527fi 9528rm -f conftest.$ac_objext conftest.$ac_ext 9529fi 9530 9531 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 9532echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6 9533 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 9534 cat >>confdefs.h <<\_ACEOF 9535#define HAVE_SOCKADDR_SA_LEN 1 9536_ACEOF 9537 9538 fi 9539 9540echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 9541echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6 9542 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 9543 echo $ECHO_N "(cached) $ECHO_C" >&6 9544else 9545 case "$host_cpu" in 9546 9547 # 9548 # These are CPU types where: 9549 # 9550 # the CPU faults on an unaligned access, but at least some 9551 # OSes that support that CPU catch the fault and simulate 9552 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 9553 # the simulation is slow, so we don't want to use it; 9554 # 9555 # the CPU, I infer (from the old 9556 # 9557 # XXX: should also check that they don't do weird things (like on arm) 9558 # 9559 # comment) doesn't fault on unaligned accesses, but doesn't 9560 # do a normal unaligned fetch, either (e.g., presumably, ARM); 9561 # 9562 # for whatever reason, the test program doesn't work 9563 # (this has been claimed to be the case for several of those 9564 # CPUs - I don't know what the problem is; the problem 9565 # was reported as "the test program dumps core" for SuperH, 9566 # but that's what the test program is *supposed* to do - 9567 # it dumps core before it writes anything, so the test 9568 # for an empty output file should find an empty output 9569 # file and conclude that unaligned accesses don't work). 9570 # 9571 # This run-time test won't work if you're cross-compiling, so 9572 # in order to support cross-compiling for a particular CPU, 9573 # we have to wire in the list of CPU types anyway, as far as 9574 # I know, so perhaps we should just have a set of CPUs on 9575 # which we know it doesn't work, a set of CPUs on which we 9576 # know it does work, and have the script just fail on other 9577 # cpu types and update it when such a failure occurs. 9578 # 9579 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 9580 ac_cv_lbl_unaligned_fail=yes 9581 ;; 9582 9583 *) 9584 cat >conftest.c <<EOF 9585# include <sys/types.h> 9586# include <sys/wait.h> 9587# include <stdio.h> 9588 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 9589 main() { 9590 unsigned int i; 9591 pid_t pid; 9592 int status; 9593 /* avoid "core dumped" message */ 9594 pid = fork(); 9595 if (pid < 0) 9596 exit(2); 9597 if (pid > 0) { 9598 /* parent */ 9599 pid = waitpid(pid, &status, 0); 9600 if (pid < 0) 9601 exit(3); 9602 exit(!WIFEXITED(status)); 9603 } 9604 /* child */ 9605 i = *(unsigned int *)&a[1]; 9606 printf("%d\n", i); 9607 exit(0); 9608 } 9609EOF 9610 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 9611 conftest.c $LIBS >/dev/null 2>&1 9612 if test ! -x conftest ; then 9613 ac_cv_lbl_unaligned_fail=yes 9614 else 9615 ./conftest >conftest.out 9616 if test ! -s conftest.out ; then 9617 ac_cv_lbl_unaligned_fail=yes 9618 else 9619 ac_cv_lbl_unaligned_fail=no 9620 fi 9621 fi 9622 rm -f conftest* core core.conftest 9623 ;; 9624 esac 9625fi 9626 9627 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 9628echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6 9629 if test $ac_cv_lbl_unaligned_fail = yes ; then 9630 cat >>confdefs.h <<\_ACEOF 9631#define LBL_ALIGN 1 9632_ACEOF 9633 9634 fi 9635 9636 9637 echo "$as_me:$LINENO: checking for h_errno" >&5 9638echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 9639 if test "${ac_cv_var_h_errno+set}" = set; then 9640 echo $ECHO_N "(cached) $ECHO_C" >&6 9641else 9642 cat >conftest.$ac_ext <<_ACEOF 9643#line $LINENO "configure" 9644/* confdefs.h. */ 9645_ACEOF 9646cat confdefs.h >>conftest.$ac_ext 9647cat >>conftest.$ac_ext <<_ACEOF 9648/* end confdefs.h. */ 9649 9650# include <sys/types.h> 9651# include <netdb.h> 9652int 9653main () 9654{ 9655int foo = h_errno; 9656 ; 9657 return 0; 9658} 9659_ACEOF 9660rm -f conftest.$ac_objext 9661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9662 (eval $ac_compile) 2>&5 9663 ac_status=$? 9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9665 (exit $ac_status); } && 9666 { ac_try='test -s conftest.$ac_objext' 9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9668 (eval $ac_try) 2>&5 9669 ac_status=$? 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9671 (exit $ac_status); }; }; then 9672 ac_cv_var_h_errno=yes 9673else 9674 echo "$as_me: failed program was:" >&5 9675sed 's/^/| /' conftest.$ac_ext >&5 9676 9677ac_cv_var_h_errno=no 9678fi 9679rm -f conftest.$ac_objext conftest.$ac_ext 9680fi 9681 9682 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 9683echo "${ECHO_T}$ac_cv_var_h_errno" >&6 9684 if test "$ac_cv_var_h_errno" = "yes"; then 9685 cat >>confdefs.h <<\_ACEOF 9686#define HAVE_H_ERRNO 1 9687_ACEOF 9688 9689 fi 9690 9691 9692 9693# Check whether --with-crypto or --without-crypto was given. 9694if test "${with_crypto+set}" = set; then 9695 withval="$with_crypto" 9696 9697else 9698 9699echo "$as_me:$LINENO: checking for SSLeay" >&5 9700echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6 9701ac_cv_ssleay_path=no 9702incdir=no 9703for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do 9704 # 9705 # XXX - is there a better way to check if a given library is 9706 # in a given directory than checking each of the possible 9707 # shared library suffixes? 9708 # 9709 # Are there any other suffixes we need to look for? Do we have to 9710 # worry about ".so.{version}"? 9711 # 9712 # Or should we just look for "libcrypto.*"? 9713 # 9714 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \ 9715 -f $dir/lib/libcrypto.so -o \ 9716 -f $dir/lib/libcrypto.sl -o \ 9717 -f $dir/lib/libcrypto.dylib \); then 9718 ac_cv_ssleay_path=$dir 9719 fi 9720 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then 9721 incdir="-I$dir/include" 9722 fi 9723 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 9724 break; 9725 else 9726 ac_cv_ssleay_path=no 9727 incdir=no 9728 fi 9729done 9730echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 9731echo "${ECHO_T}$ac_cv_ssleay_path" >&6 9732if test "$ac_cv_ssleay_path" != no; then 9733 V_INCLS="$V_INCLS $incdir" 9734 LDFLAGS="-L$dir/lib $LDFLAGS" 9735 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 9736 LIBS="$LIBS -lRSAglue" 9737 fi 9738 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 9739 LIBS="$LIBS -lrsaref" 9740 fi 9741 9742echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5 9743echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 9744if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then 9745 echo $ECHO_N "(cached) $ECHO_C" >&6 9746else 9747 ac_check_lib_save_LIBS=$LIBS 9748LIBS="-lcrypto $LIBS" 9749cat >conftest.$ac_ext <<_ACEOF 9750#line $LINENO "configure" 9751/* confdefs.h. */ 9752_ACEOF 9753cat confdefs.h >>conftest.$ac_ext 9754cat >>conftest.$ac_ext <<_ACEOF 9755/* end confdefs.h. */ 9756 9757/* Override any gcc2 internal prototype to avoid an error. */ 9758#ifdef __cplusplus 9759extern "C" 9760#endif 9761/* We use char because int might match the return type of a gcc2 9762 builtin and then its argument prototype would still apply. */ 9763char des_cbc_encrypt (); 9764int 9765main () 9766{ 9767des_cbc_encrypt (); 9768 ; 9769 return 0; 9770} 9771_ACEOF 9772rm -f conftest.$ac_objext conftest$ac_exeext 9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9774 (eval $ac_link) 2>&5 9775 ac_status=$? 9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9777 (exit $ac_status); } && 9778 { ac_try='test -s conftest$ac_exeext' 9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9780 (eval $ac_try) 2>&5 9781 ac_status=$? 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); }; }; then 9784 ac_cv_lib_crypto_des_cbc_encrypt=yes 9785else 9786 echo "$as_me: failed program was:" >&5 9787sed 's/^/| /' conftest.$ac_ext >&5 9788 9789ac_cv_lib_crypto_des_cbc_encrypt=no 9790fi 9791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9792LIBS=$ac_check_lib_save_LIBS 9793fi 9794echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 9795echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6 9796if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then 9797 cat >>confdefs.h <<_ACEOF 9798#define HAVE_LIBCRYPTO 1 9799_ACEOF 9800 9801 LIBS="-lcrypto $LIBS" 9802 9803fi 9804 9805 9806 CPPFLAGS="$CPPFLAGS $V_INCLS" 9807 9808for ac_header in openssl/evp.h 9809do 9810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9811if eval "test \"\${$as_ac_Header+set}\" = set"; then 9812 echo "$as_me:$LINENO: checking for $ac_header" >&5 9813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9814if eval "test \"\${$as_ac_Header+set}\" = set"; then 9815 echo $ECHO_N "(cached) $ECHO_C" >&6 9816fi 9817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9819else 9820 # Is the header compilable? 9821echo "$as_me:$LINENO: checking $ac_header usability" >&5 9822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9823cat >conftest.$ac_ext <<_ACEOF 9824#line $LINENO "configure" 9825/* confdefs.h. */ 9826_ACEOF 9827cat confdefs.h >>conftest.$ac_ext 9828cat >>conftest.$ac_ext <<_ACEOF 9829/* end confdefs.h. */ 9830$ac_includes_default 9831#include <$ac_header> 9832_ACEOF 9833rm -f conftest.$ac_objext 9834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9835 (eval $ac_compile) 2>&5 9836 ac_status=$? 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 (exit $ac_status); } && 9839 { ac_try='test -s conftest.$ac_objext' 9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9841 (eval $ac_try) 2>&5 9842 ac_status=$? 9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9844 (exit $ac_status); }; }; then 9845 ac_header_compiler=yes 9846else 9847 echo "$as_me: failed program was:" >&5 9848sed 's/^/| /' conftest.$ac_ext >&5 9849 9850ac_header_compiler=no 9851fi 9852rm -f conftest.$ac_objext conftest.$ac_ext 9853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9854echo "${ECHO_T}$ac_header_compiler" >&6 9855 9856# Is the header present? 9857echo "$as_me:$LINENO: checking $ac_header presence" >&5 9858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9859cat >conftest.$ac_ext <<_ACEOF 9860#line $LINENO "configure" 9861/* confdefs.h. */ 9862_ACEOF 9863cat confdefs.h >>conftest.$ac_ext 9864cat >>conftest.$ac_ext <<_ACEOF 9865/* end confdefs.h. */ 9866#include <$ac_header> 9867_ACEOF 9868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9870 ac_status=$? 9871 grep -v '^ *+' conftest.er1 >conftest.err 9872 rm -f conftest.er1 9873 cat conftest.err >&5 9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9875 (exit $ac_status); } >/dev/null; then 9876 if test -s conftest.err; then 9877 ac_cpp_err=$ac_c_preproc_warn_flag 9878 else 9879 ac_cpp_err= 9880 fi 9881else 9882 ac_cpp_err=yes 9883fi 9884if test -z "$ac_cpp_err"; then 9885 ac_header_preproc=yes 9886else 9887 echo "$as_me: failed program was:" >&5 9888sed 's/^/| /' conftest.$ac_ext >&5 9889 9890 ac_header_preproc=no 9891fi 9892rm -f conftest.err conftest.$ac_ext 9893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9894echo "${ECHO_T}$ac_header_preproc" >&6 9895 9896# So? What about this header? 9897case $ac_header_compiler:$ac_header_preproc in 9898 yes:no ) 9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9903 ( 9904 cat <<\_ASBOX 9905## ------------------------------------ ## 9906## Report this to bug-autoconf@gnu.org. ## 9907## ------------------------------------ ## 9908_ASBOX 9909 ) | 9910 sed "s/^/$as_me: WARNING: /" >&2 9911 ;; 9912 no:yes ) 9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9919 ( 9920 cat <<\_ASBOX 9921## ------------------------------------ ## 9922## Report this to bug-autoconf@gnu.org. ## 9923## ------------------------------------ ## 9924_ASBOX 9925 ) | 9926 sed "s/^/$as_me: WARNING: /" >&2 9927 ;; 9928esac 9929echo "$as_me:$LINENO: checking for $ac_header" >&5 9930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9931if eval "test \"\${$as_ac_Header+set}\" = set"; then 9932 echo $ECHO_N "(cached) $ECHO_C" >&6 9933else 9934 eval "$as_ac_Header=$ac_header_preproc" 9935fi 9936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9938 9939fi 9940if test `eval echo '${'$as_ac_Header'}'` = yes; then 9941 cat >>confdefs.h <<_ACEOF 9942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9943_ACEOF 9944 9945fi 9946 9947done 9948 9949fi 9950 9951fi; 9952 9953 9954 9955 9956 9957 9958 9959 9960# Find a good install program. We prefer a C program (faster), 9961# so one script is as good as another. But avoid the broken or 9962# incompatible versions: 9963# SysV /etc/install, /usr/sbin/install 9964# SunOS /usr/etc/install 9965# IRIX /sbin/install 9966# AIX /bin/install 9967# AmigaOS /C/install, which installs bootblocks on floppy discs 9968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9969# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9971# ./install, which can be erroneously created by make from ./install.sh. 9972echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 9973echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 9974if test -z "$INSTALL"; then 9975if test "${ac_cv_path_install+set}" = set; then 9976 echo $ECHO_N "(cached) $ECHO_C" >&6 9977else 9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9979for as_dir in $PATH 9980do 9981 IFS=$as_save_IFS 9982 test -z "$as_dir" && as_dir=. 9983 # Account for people who put trailing slashes in PATH elements. 9984case $as_dir/ in 9985 ./ | .// | /cC/* | \ 9986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9987 /usr/ucb/* ) ;; 9988 *) 9989 # OSF1 and SCO ODT 3.0 have their own names for install. 9990 # Don't use installbsd from OSF since it installs stuff as root 9991 # by default. 9992 for ac_prog in ginstall scoinst install; do 9993 for ac_exec_ext in '' $ac_executable_extensions; do 9994 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9995 if test $ac_prog = install && 9996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9997 # AIX install. It has an incompatible calling convention. 9998 : 9999 elif test $ac_prog = install && 10000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10001 # program-specific install script used by HP pwplus--don't use. 10002 : 10003 else 10004 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10005 break 3 10006 fi 10007 fi 10008 done 10009 done 10010 ;; 10011esac 10012done 10013 10014 10015fi 10016 if test "${ac_cv_path_install+set}" = set; then 10017 INSTALL=$ac_cv_path_install 10018 else 10019 # As a last resort, use the slow shell script. We don't cache a 10020 # path for INSTALL within a source directory, because that will 10021 # break other packages using the cache if that directory is 10022 # removed, or if the path is relative. 10023 INSTALL=$ac_install_sh 10024 fi 10025fi 10026echo "$as_me:$LINENO: result: $INSTALL" >&5 10027echo "${ECHO_T}$INSTALL" >&6 10028 10029# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10030# It thinks the first close brace ends the variable substitution. 10031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10032 10033test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10034 10035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10036 10037 10038 ac_config_headers="$ac_config_headers config.h" 10039 10040 10041 ac_config_commands="$ac_config_commands default-1" 10042 10043 ac_config_files="$ac_config_files Makefile" 10044cat >confcache <<\_ACEOF 10045# This file is a shell script that caches the results of configure 10046# tests run on this system so they can be shared between configure 10047# scripts and configure runs, see configure's option --config-cache. 10048# It is not useful on other systems. If it contains results you don't 10049# want to keep, you may remove or edit it. 10050# 10051# config.status only pays attention to the cache file if you give it 10052# the --recheck option to rerun configure. 10053# 10054# `ac_cv_env_foo' variables (set or unset) will be overridden when 10055# loading this file, other *unset* `ac_cv_foo' will be assigned the 10056# following values. 10057 10058_ACEOF 10059 10060# The following way of writing the cache mishandles newlines in values, 10061# but we know of no workaround that is simple, portable, and efficient. 10062# So, don't put newlines in cache variables' values. 10063# Ultrix sh set writes to stderr and can't be redirected directly, 10064# and sets the high bit in the cache file unless we assign to the vars. 10065{ 10066 (set) 2>&1 | 10067 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10068 *ac_space=\ *) 10069 # `set' does not quote correctly, so add quotes (double-quote 10070 # substitution turns \\\\ into \\, and sed turns \\ into \). 10071 sed -n \ 10072 "s/'/'\\\\''/g; 10073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10074 ;; 10075 *) 10076 # `set' quotes correctly as required by POSIX, so do not add quotes. 10077 sed -n \ 10078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10079 ;; 10080 esac; 10081} | 10082 sed ' 10083 t clear 10084 : clear 10085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10086 t end 10087 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10088 : end' >>confcache 10089if diff $cache_file confcache >/dev/null 2>&1; then :; else 10090 if test -w $cache_file; then 10091 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10092 cat confcache >$cache_file 10093 else 10094 echo "not updating unwritable cache $cache_file" 10095 fi 10096fi 10097rm -f confcache 10098 10099test "x$prefix" = xNONE && prefix=$ac_default_prefix 10100# Let make expand exec_prefix. 10101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10102 10103# VPATH may cause trouble with some makes, so we remove $(srcdir), 10104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10105# trailing colons and then remove the whole line if VPATH becomes empty 10106# (actually we leave an empty line to preserve line numbers). 10107if test "x$srcdir" = x.; then 10108 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10109s/:*\$(srcdir):*/:/; 10110s/:*\${srcdir}:*/:/; 10111s/:*@srcdir@:*/:/; 10112s/^\([^=]*=[ ]*\):*/\1/; 10113s/:*$//; 10114s/^[^=]*=[ ]*$//; 10115}' 10116fi 10117 10118DEFS=-DHAVE_CONFIG_H 10119 10120ac_libobjs= 10121ac_ltlibobjs= 10122for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10123 # 1. Remove the extension, and $U if already installed. 10124 ac_i=`echo "$ac_i" | 10125 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 10126 # 2. Add them. 10127 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 10128 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 10129done 10130LIBOBJS=$ac_libobjs 10131 10132LTLIBOBJS=$ac_ltlibobjs 10133 10134 10135 10136: ${CONFIG_STATUS=./config.status} 10137ac_clean_files_save=$ac_clean_files 10138ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10139{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10140echo "$as_me: creating $CONFIG_STATUS" >&6;} 10141cat >$CONFIG_STATUS <<_ACEOF 10142#! $SHELL 10143# Generated by $as_me. 10144# Run this file to recreate the current configuration. 10145# Compiler output produced by configure, useful for debugging 10146# configure, is in config.log if it exists. 10147 10148debug=false 10149ac_cs_recheck=false 10150ac_cs_silent=false 10151SHELL=\${CONFIG_SHELL-$SHELL} 10152_ACEOF 10153 10154cat >>$CONFIG_STATUS <<\_ACEOF 10155## --------------------- ## 10156## M4sh Initialization. ## 10157## --------------------- ## 10158 10159# Be Bourne compatible 10160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10161 emulate sh 10162 NULLCMD=: 10163 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10164 # is contrary to our usage. Disable this feature. 10165 alias -g '${1+"$@"}'='"$@"' 10166elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 10167 set -o posix 10168fi 10169 10170# Support unset when possible. 10171if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 10172 as_unset=unset 10173else 10174 as_unset=false 10175fi 10176 10177 10178# Work around bugs in pre-3.0 UWIN ksh. 10179$as_unset ENV MAIL MAILPATH 10180PS1='$ ' 10181PS2='> ' 10182PS4='+ ' 10183 10184# NLS nuisances. 10185for as_var in \ 10186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10188 LC_TELEPHONE LC_TIME 10189do 10190 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 10191 eval $as_var=C; export $as_var 10192 else 10193 $as_unset $as_var 10194 fi 10195done 10196 10197# Required to use basename. 10198if expr a : '\(a\)' >/dev/null 2>&1; then 10199 as_expr=expr 10200else 10201 as_expr=false 10202fi 10203 10204if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 10205 as_basename=basename 10206else 10207 as_basename=false 10208fi 10209 10210 10211# Name of the executable. 10212as_me=`$as_basename "$0" || 10213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10214 X"$0" : 'X\(//\)$' \| \ 10215 X"$0" : 'X\(/\)$' \| \ 10216 . : '\(.\)' 2>/dev/null || 10217echo X/"$0" | 10218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 10219 /^X\/\(\/\/\)$/{ s//\1/; q; } 10220 /^X\/\(\/\).*/{ s//\1/; q; } 10221 s/.*/./; q'` 10222 10223 10224# PATH needs CR, and LINENO needs CR and PATH. 10225# Avoid depending upon Character Ranges. 10226as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10227as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10228as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10229as_cr_digits='0123456789' 10230as_cr_alnum=$as_cr_Letters$as_cr_digits 10231 10232# The user is always right. 10233if test "${PATH_SEPARATOR+set}" != set; then 10234 echo "#! /bin/sh" >conf$$.sh 10235 echo "exit 0" >>conf$$.sh 10236 chmod +x conf$$.sh 10237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10238 PATH_SEPARATOR=';' 10239 else 10240 PATH_SEPARATOR=: 10241 fi 10242 rm -f conf$$.sh 10243fi 10244 10245 10246 as_lineno_1=$LINENO 10247 as_lineno_2=$LINENO 10248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10249 test "x$as_lineno_1" != "x$as_lineno_2" && 10250 test "x$as_lineno_3" = "x$as_lineno_2" || { 10251 # Find who we are. Look in the path if we contain no path at all 10252 # relative or not. 10253 case $0 in 10254 *[\\/]* ) as_myself=$0 ;; 10255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10256for as_dir in $PATH 10257do 10258 IFS=$as_save_IFS 10259 test -z "$as_dir" && as_dir=. 10260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10261done 10262 10263 ;; 10264 esac 10265 # We did not find ourselves, most probably we were run as `sh COMMAND' 10266 # in which case we are not to be found in the path. 10267 if test "x$as_myself" = x; then 10268 as_myself=$0 10269 fi 10270 if test ! -f "$as_myself"; then 10271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 10272echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 10273 { (exit 1); exit 1; }; } 10274 fi 10275 case $CONFIG_SHELL in 10276 '') 10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10278for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 10279do 10280 IFS=$as_save_IFS 10281 test -z "$as_dir" && as_dir=. 10282 for as_base in sh bash ksh sh5; do 10283 case $as_dir in 10284 /*) 10285 if ("$as_dir/$as_base" -c ' 10286 as_lineno_1=$LINENO 10287 as_lineno_2=$LINENO 10288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10289 test "x$as_lineno_1" != "x$as_lineno_2" && 10290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 10291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 10292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 10293 CONFIG_SHELL=$as_dir/$as_base 10294 export CONFIG_SHELL 10295 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 10296 fi;; 10297 esac 10298 done 10299done 10300;; 10301 esac 10302 10303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10304 # uniformly replaced by the line number. The first 'sed' inserts a 10305 # line-number line before each line; the second 'sed' does the real 10306 # work. The second script uses 'N' to pair each line-number line 10307 # with the numbered line, and appends trailing '-' during 10308 # substitution so that $LINENO is not a special case at line end. 10309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 10311 sed '=' <$as_myself | 10312 sed ' 10313 N 10314 s,$,-, 10315 : loop 10316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 10317 t loop 10318 s,-$,, 10319 s,^['$as_cr_digits']*\n,, 10320 ' >$as_me.lineno && 10321 chmod +x $as_me.lineno || 10322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10323echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10324 { (exit 1); exit 1; }; } 10325 10326 # Don't try to exec as it changes $[0], causing all sort of problems 10327 # (the dirname of $[0] is not the place where we might find the 10328 # original and so on. Autoconf is especially sensible to this). 10329 . ./$as_me.lineno 10330 # Exit status is that of the last command. 10331 exit 10332} 10333 10334 10335case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10336 *c*,-n*) ECHO_N= ECHO_C=' 10337' ECHO_T=' ' ;; 10338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10340esac 10341 10342if expr a : '\(a\)' >/dev/null 2>&1; then 10343 as_expr=expr 10344else 10345 as_expr=false 10346fi 10347 10348rm -f conf$$ conf$$.exe conf$$.file 10349echo >conf$$.file 10350if ln -s conf$$.file conf$$ 2>/dev/null; then 10351 # We could just check for DJGPP; but this test a) works b) is more generic 10352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10353 if test -f conf$$.exe; then 10354 # Don't use ln at all; we don't have any links 10355 as_ln_s='cp -p' 10356 else 10357 as_ln_s='ln -s' 10358 fi 10359elif ln conf$$.file conf$$ 2>/dev/null; then 10360 as_ln_s=ln 10361else 10362 as_ln_s='cp -p' 10363fi 10364rm -f conf$$ conf$$.exe conf$$.file 10365 10366if mkdir -p . 2>/dev/null; then 10367 as_mkdir_p=: 10368else 10369 as_mkdir_p=false 10370fi 10371 10372as_executable_p="test -f" 10373 10374# Sed expression to map a string onto a valid CPP name. 10375as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 10376 10377# Sed expression to map a string onto a valid variable name. 10378as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 10379 10380 10381# IFS 10382# We need space, tab and new line, in precisely that order. 10383as_nl=' 10384' 10385IFS=" $as_nl" 10386 10387# CDPATH. 10388$as_unset CDPATH 10389 10390exec 6>&1 10391 10392# Open the log real soon, to keep \$[0] and so on meaningful, and to 10393# report actual input values of CONFIG_FILES etc. instead of their 10394# values after options handling. Logging --version etc. is OK. 10395exec 5>>config.log 10396{ 10397 echo 10398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10399## Running $as_me. ## 10400_ASBOX 10401} >&5 10402cat >&5 <<_CSEOF 10403 10404This file was extended by $as_me, which was 10405generated by GNU Autoconf 2.57. Invocation command line was 10406 10407 CONFIG_FILES = $CONFIG_FILES 10408 CONFIG_HEADERS = $CONFIG_HEADERS 10409 CONFIG_LINKS = $CONFIG_LINKS 10410 CONFIG_COMMANDS = $CONFIG_COMMANDS 10411 $ $0 $@ 10412 10413_CSEOF 10414echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 10415echo >&5 10416_ACEOF 10417 10418# Files that config.status was made for. 10419if test -n "$ac_config_files"; then 10420 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 10421fi 10422 10423if test -n "$ac_config_headers"; then 10424 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 10425fi 10426 10427if test -n "$ac_config_links"; then 10428 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10429fi 10430 10431if test -n "$ac_config_commands"; then 10432 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10433fi 10434 10435cat >>$CONFIG_STATUS <<\_ACEOF 10436 10437ac_cs_usage="\ 10438\`$as_me' instantiates files from templates according to the 10439current configuration. 10440 10441Usage: $0 [OPTIONS] [FILE]... 10442 10443 -h, --help print this help, then exit 10444 -V, --version print version number, then exit 10445 -q, --quiet do not print progress messages 10446 -d, --debug don't remove temporary files 10447 --recheck update $as_me by reconfiguring in the same conditions 10448 --file=FILE[:TEMPLATE] 10449 instantiate the configuration file FILE 10450 --header=FILE[:TEMPLATE] 10451 instantiate the configuration header FILE 10452 10453Configuration files: 10454$config_files 10455 10456Configuration headers: 10457$config_headers 10458 10459Configuration commands: 10460$config_commands 10461 10462Report bugs to <bug-autoconf@gnu.org>." 10463_ACEOF 10464 10465cat >>$CONFIG_STATUS <<_ACEOF 10466ac_cs_version="\\ 10467config.status 10468configured by $0, generated by GNU Autoconf 2.57, 10469 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10470 10471Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 10472Free Software Foundation, Inc. 10473This config.status script is free software; the Free Software Foundation 10474gives unlimited permission to copy, distribute and modify it." 10475srcdir=$srcdir 10476INSTALL="$INSTALL" 10477_ACEOF 10478 10479cat >>$CONFIG_STATUS <<\_ACEOF 10480# If no file are specified by the user, then we need to provide default 10481# value. By we need to know if files were specified by the user. 10482ac_need_defaults=: 10483while test $# != 0 10484do 10485 case $1 in 10486 --*=*) 10487 ac_option=`expr "x$1" : 'x\([^=]*\)='` 10488 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 10489 ac_shift=: 10490 ;; 10491 -*) 10492 ac_option=$1 10493 ac_optarg=$2 10494 ac_shift=shift 10495 ;; 10496 *) # This is not an option, so the user has probably given explicit 10497 # arguments. 10498 ac_option=$1 10499 ac_need_defaults=false;; 10500 esac 10501 10502 case $ac_option in 10503 # Handling of the options. 10504_ACEOF 10505cat >>$CONFIG_STATUS <<\_ACEOF 10506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10507 ac_cs_recheck=: ;; 10508 --version | --vers* | -V ) 10509 echo "$ac_cs_version"; exit 0 ;; 10510 --he | --h) 10511 # Conflict between --help and --header 10512 { { echo "$as_me:$LINENO: error: ambiguous option: $1 10513Try \`$0 --help' for more information." >&5 10514echo "$as_me: error: ambiguous option: $1 10515Try \`$0 --help' for more information." >&2;} 10516 { (exit 1); exit 1; }; };; 10517 --help | --hel | -h ) 10518 echo "$ac_cs_usage"; exit 0 ;; 10519 --debug | --d* | -d ) 10520 debug=: ;; 10521 --file | --fil | --fi | --f ) 10522 $ac_shift 10523 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10524 ac_need_defaults=false;; 10525 --header | --heade | --head | --hea ) 10526 $ac_shift 10527 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 10528 ac_need_defaults=false;; 10529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10530 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10531 ac_cs_silent=: ;; 10532 10533 # This is an error. 10534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 10535Try \`$0 --help' for more information." >&5 10536echo "$as_me: error: unrecognized option: $1 10537Try \`$0 --help' for more information." >&2;} 10538 { (exit 1); exit 1; }; } ;; 10539 10540 *) ac_config_targets="$ac_config_targets $1" ;; 10541 10542 esac 10543 shift 10544done 10545 10546ac_configure_extra_args= 10547 10548if $ac_cs_silent; then 10549 exec 6>/dev/null 10550 ac_configure_extra_args="$ac_configure_extra_args --silent" 10551fi 10552 10553_ACEOF 10554cat >>$CONFIG_STATUS <<_ACEOF 10555if \$ac_cs_recheck; then 10556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10558fi 10559 10560_ACEOF 10561 10562cat >>$CONFIG_STATUS <<_ACEOF 10563# 10564# INIT-COMMANDS section. 10565# 10566 10567 10568 10569_ACEOF 10570 10571 10572 10573cat >>$CONFIG_STATUS <<\_ACEOF 10574for ac_config_target in $ac_config_targets 10575do 10576 case "$ac_config_target" in 10577 # Handling of arguments. 10578 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10579 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 10580 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10581 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10582echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10583 { (exit 1); exit 1; }; };; 10584 esac 10585done 10586 10587# If the user did not use the arguments to specify the items to instantiate, 10588# then the envvar interface is used. Set only those that are not. 10589# We use the long form for the default assignment because of an extremely 10590# bizarre bug on SunOS 4.1.3. 10591if $ac_need_defaults; then 10592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10595fi 10596 10597# Have a temporary directory for convenience. Make it in the build tree 10598# simply because there is no reason to put it here, and in addition, 10599# creating and moving files from /tmp can sometimes cause problems. 10600# Create a temporary directory, and hook for its removal unless debugging. 10601$debug || 10602{ 10603 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 10604 trap '{ (exit 1); exit 1; }' 1 2 13 15 10605} 10606 10607# Create a (secure) tmp directory for tmp files. 10608 10609{ 10610 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 10611 test -n "$tmp" && test -d "$tmp" 10612} || 10613{ 10614 tmp=./confstat$$-$RANDOM 10615 (umask 077 && mkdir $tmp) 10616} || 10617{ 10618 echo "$me: cannot create a temporary directory in ." >&2 10619 { (exit 1); exit 1; } 10620} 10621 10622_ACEOF 10623 10624cat >>$CONFIG_STATUS <<_ACEOF 10625 10626# 10627# CONFIG_FILES section. 10628# 10629 10630# No need to generate the scripts if there are no CONFIG_FILES. 10631# This happens for instance when ./config.status config.h 10632if test -n "\$CONFIG_FILES"; then 10633 # Protect against being on the right side of a sed subst in config.status. 10634 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 10635 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 10636s,@SHELL@,$SHELL,;t t 10637s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 10638s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 10639s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 10640s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 10641s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 10642s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 10643s,@exec_prefix@,$exec_prefix,;t t 10644s,@prefix@,$prefix,;t t 10645s,@program_transform_name@,$program_transform_name,;t t 10646s,@bindir@,$bindir,;t t 10647s,@sbindir@,$sbindir,;t t 10648s,@libexecdir@,$libexecdir,;t t 10649s,@datadir@,$datadir,;t t 10650s,@sysconfdir@,$sysconfdir,;t t 10651s,@sharedstatedir@,$sharedstatedir,;t t 10652s,@localstatedir@,$localstatedir,;t t 10653s,@libdir@,$libdir,;t t 10654s,@includedir@,$includedir,;t t 10655s,@oldincludedir@,$oldincludedir,;t t 10656s,@infodir@,$infodir,;t t 10657s,@mandir@,$mandir,;t t 10658s,@build_alias@,$build_alias,;t t 10659s,@host_alias@,$host_alias,;t t 10660s,@target_alias@,$target_alias,;t t 10661s,@DEFS@,$DEFS,;t t 10662s,@ECHO_C@,$ECHO_C,;t t 10663s,@ECHO_N@,$ECHO_N,;t t 10664s,@ECHO_T@,$ECHO_T,;t t 10665s,@LIBS@,$LIBS,;t t 10666s,@build@,$build,;t t 10667s,@build_cpu@,$build_cpu,;t t 10668s,@build_vendor@,$build_vendor,;t t 10669s,@build_os@,$build_os,;t t 10670s,@host@,$host,;t t 10671s,@host_cpu@,$host_cpu,;t t 10672s,@host_vendor@,$host_vendor,;t t 10673s,@host_os@,$host_os,;t t 10674s,@SHLICC2@,$SHLICC2,;t t 10675s,@CC@,$CC,;t t 10676s,@CFLAGS@,$CFLAGS,;t t 10677s,@LDFLAGS@,$LDFLAGS,;t t 10678s,@CPPFLAGS@,$CPPFLAGS,;t t 10679s,@ac_ct_CC@,$ac_ct_CC,;t t 10680s,@EXEEXT@,$EXEEXT,;t t 10681s,@OBJEXT@,$OBJEXT,;t t 10682s,@CPP@,$CPP,;t t 10683s,@EGREP@,$EGREP,;t t 10684s,@LIBOBJS@,$LIBOBJS,;t t 10685s,@V_CCOPT@,$V_CCOPT,;t t 10686s,@V_DEFS@,$V_DEFS,;t t 10687s,@V_GROUP@,$V_GROUP,;t t 10688s,@V_INCLS@,$V_INCLS,;t t 10689s,@V_PCAPDEP@,$V_PCAPDEP,;t t 10690s,@LOCALSRC@,$LOCALSRC,;t t 10691s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 10692s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 10693s,@INSTALL_DATA@,$INSTALL_DATA,;t t 10694s,@LTLIBOBJS@,$LTLIBOBJS,;t t 10695CEOF 10696 10697_ACEOF 10698 10699 cat >>$CONFIG_STATUS <<\_ACEOF 10700 # Split the substitutions into bite-sized pieces for seds with 10701 # small command number limits, like on Digital OSF/1 and HP-UX. 10702 ac_max_sed_lines=48 10703 ac_sed_frag=1 # Number of current file. 10704 ac_beg=1 # First line for current file. 10705 ac_end=$ac_max_sed_lines # Line after last line for current file. 10706 ac_more_lines=: 10707 ac_sed_cmds= 10708 while $ac_more_lines; do 10709 if test $ac_beg -gt 1; then 10710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10711 else 10712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10713 fi 10714 if test ! -s $tmp/subs.frag; then 10715 ac_more_lines=false 10716 else 10717 # The purpose of the label and of the branching condition is to 10718 # speed up the sed processing (if there are no `@' at all, there 10719 # is no need to browse any of the substitutions). 10720 # These are the two extra sed commands mentioned above. 10721 (echo ':t 10722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 10723 if test -z "$ac_sed_cmds"; then 10724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 10725 else 10726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 10727 fi 10728 ac_sed_frag=`expr $ac_sed_frag + 1` 10729 ac_beg=$ac_end 10730 ac_end=`expr $ac_end + $ac_max_sed_lines` 10731 fi 10732 done 10733 if test -z "$ac_sed_cmds"; then 10734 ac_sed_cmds=cat 10735 fi 10736fi # test -n "$CONFIG_FILES" 10737 10738_ACEOF 10739cat >>$CONFIG_STATUS <<\_ACEOF 10740for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 10741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10742 case $ac_file in 10743 - | *:- | *:-:* ) # input from stdin 10744 cat >$tmp/stdin 10745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10749 * ) ac_file_in=$ac_file.in ;; 10750 esac 10751 10752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 10753 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10755 X"$ac_file" : 'X\(//\)[^/]' \| \ 10756 X"$ac_file" : 'X\(//\)$' \| \ 10757 X"$ac_file" : 'X\(/\)' \| \ 10758 . : '\(.\)' 2>/dev/null || 10759echo X"$ac_file" | 10760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10761 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10762 /^X\(\/\/\)$/{ s//\1/; q; } 10763 /^X\(\/\).*/{ s//\1/; q; } 10764 s/.*/./; q'` 10765 { if $as_mkdir_p; then 10766 mkdir -p "$ac_dir" 10767 else 10768 as_dir="$ac_dir" 10769 as_dirs= 10770 while test ! -d "$as_dir"; do 10771 as_dirs="$as_dir $as_dirs" 10772 as_dir=`(dirname "$as_dir") 2>/dev/null || 10773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10774 X"$as_dir" : 'X\(//\)[^/]' \| \ 10775 X"$as_dir" : 'X\(//\)$' \| \ 10776 X"$as_dir" : 'X\(/\)' \| \ 10777 . : '\(.\)' 2>/dev/null || 10778echo X"$as_dir" | 10779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10780 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10781 /^X\(\/\/\)$/{ s//\1/; q; } 10782 /^X\(\/\).*/{ s//\1/; q; } 10783 s/.*/./; q'` 10784 done 10785 test ! -n "$as_dirs" || mkdir $as_dirs 10786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10788 { (exit 1); exit 1; }; }; } 10789 10790 ac_builddir=. 10791 10792if test "$ac_dir" != .; then 10793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10794 # A "../" for each directory in $ac_dir_suffix. 10795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10796else 10797 ac_dir_suffix= ac_top_builddir= 10798fi 10799 10800case $srcdir in 10801 .) # No --srcdir option. We are building in place. 10802 ac_srcdir=. 10803 if test -z "$ac_top_builddir"; then 10804 ac_top_srcdir=. 10805 else 10806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10807 fi ;; 10808 [\\/]* | ?:[\\/]* ) # Absolute path. 10809 ac_srcdir=$srcdir$ac_dir_suffix; 10810 ac_top_srcdir=$srcdir ;; 10811 *) # Relative path. 10812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10813 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10814esac 10815# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 10816# absolute. 10817ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 10818ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 10819ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 10820ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 10821 10822 10823 case $INSTALL in 10824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10825 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 10826 esac 10827 10828 if test x"$ac_file" != x-; then 10829 { echo "$as_me:$LINENO: creating $ac_file" >&5 10830echo "$as_me: creating $ac_file" >&6;} 10831 rm -f "$ac_file" 10832 fi 10833 # Let's still pretend it is `configure' which instantiates (i.e., don't 10834 # use $as_me), people would be surprised to read: 10835 # /* config.h. Generated by config.status. */ 10836 if test x"$ac_file" = x-; then 10837 configure_input= 10838 else 10839 configure_input="$ac_file. " 10840 fi 10841 configure_input=$configure_input"Generated from `echo $ac_file_in | 10842 sed 's,.*/,,'` by configure." 10843 10844 # First look for the input files in the build tree, otherwise in the 10845 # src tree. 10846 ac_file_inputs=`IFS=: 10847 for f in $ac_file_in; do 10848 case $f in 10849 -) echo $tmp/stdin ;; 10850 [\\/$]*) 10851 # Absolute (can't be DOS-style, as IFS=:) 10852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10853echo "$as_me: error: cannot find input file: $f" >&2;} 10854 { (exit 1); exit 1; }; } 10855 echo $f;; 10856 *) # Relative 10857 if test -f "$f"; then 10858 # Build tree 10859 echo $f 10860 elif test -f "$srcdir/$f"; then 10861 # Source tree 10862 echo $srcdir/$f 10863 else 10864 # /dev/null tree 10865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10866echo "$as_me: error: cannot find input file: $f" >&2;} 10867 { (exit 1); exit 1; }; } 10868 fi;; 10869 esac 10870 done` || { (exit 1); exit 1; } 10871_ACEOF 10872cat >>$CONFIG_STATUS <<_ACEOF 10873 sed "$ac_vpsub 10874$extrasub 10875_ACEOF 10876cat >>$CONFIG_STATUS <<\_ACEOF 10877:t 10878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10879s,@configure_input@,$configure_input,;t t 10880s,@srcdir@,$ac_srcdir,;t t 10881s,@abs_srcdir@,$ac_abs_srcdir,;t t 10882s,@top_srcdir@,$ac_top_srcdir,;t t 10883s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 10884s,@builddir@,$ac_builddir,;t t 10885s,@abs_builddir@,$ac_abs_builddir,;t t 10886s,@top_builddir@,$ac_top_builddir,;t t 10887s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 10888s,@INSTALL@,$ac_INSTALL,;t t 10889" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 10890 rm -f $tmp/stdin 10891 if test x"$ac_file" != x-; then 10892 mv $tmp/out $ac_file 10893 else 10894 cat $tmp/out 10895 rm -f $tmp/out 10896 fi 10897 10898done 10899_ACEOF 10900cat >>$CONFIG_STATUS <<\_ACEOF 10901 10902# 10903# CONFIG_HEADER section. 10904# 10905 10906# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 10907# NAME is the cpp macro being defined and VALUE is the value it is being given. 10908# 10909# ac_d sets the value in "#define NAME VALUE" lines. 10910ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 10911ac_dB='[ ].*$,\1#\2' 10912ac_dC=' ' 10913ac_dD=',;t' 10914# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 10915ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10916ac_uB='$,\1#\2define\3' 10917ac_uC=' ' 10918ac_uD=',;t' 10919 10920for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 10921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10922 case $ac_file in 10923 - | *:- | *:-:* ) # input from stdin 10924 cat >$tmp/stdin 10925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10929 * ) ac_file_in=$ac_file.in ;; 10930 esac 10931 10932 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 10933echo "$as_me: creating $ac_file" >&6;} 10934 10935 # First look for the input files in the build tree, otherwise in the 10936 # src tree. 10937 ac_file_inputs=`IFS=: 10938 for f in $ac_file_in; do 10939 case $f in 10940 -) echo $tmp/stdin ;; 10941 [\\/$]*) 10942 # Absolute (can't be DOS-style, as IFS=:) 10943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10944echo "$as_me: error: cannot find input file: $f" >&2;} 10945 { (exit 1); exit 1; }; } 10946 echo $f;; 10947 *) # Relative 10948 if test -f "$f"; then 10949 # Build tree 10950 echo $f 10951 elif test -f "$srcdir/$f"; then 10952 # Source tree 10953 echo $srcdir/$f 10954 else 10955 # /dev/null tree 10956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10957echo "$as_me: error: cannot find input file: $f" >&2;} 10958 { (exit 1); exit 1; }; } 10959 fi;; 10960 esac 10961 done` || { (exit 1); exit 1; } 10962 # Remove the trailing spaces. 10963 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 10964 10965_ACEOF 10966 10967# Transform confdefs.h into two sed scripts, `conftest.defines' and 10968# `conftest.undefs', that substitutes the proper values into 10969# config.h.in to produce config.h. The first handles `#define' 10970# templates, and the second `#undef' templates. 10971# And first: Protect against being on the right side of a sed subst in 10972# config.status. Protect against being in an unquoted here document 10973# in config.status. 10974rm -f conftest.defines conftest.undefs 10975# Using a here document instead of a string reduces the quoting nightmare. 10976# Putting comments in sed scripts is not portable. 10977# 10978# `end' is used to avoid that the second main sed command (meant for 10979# 0-ary CPP macros) applies to n-ary macro definitions. 10980# See the Autoconf documentation for `clear'. 10981cat >confdef2sed.sed <<\_ACEOF 10982s/[\\&,]/\\&/g 10983s,[\\$`],\\&,g 10984t clear 10985: clear 10986s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 10987t end 10988s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 10989: end 10990_ACEOF 10991# If some macros were called several times there might be several times 10992# the same #defines, which is useless. Nevertheless, we may not want to 10993# sort them, since we want the *last* AC-DEFINE to be honored. 10994uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 10995sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 10996rm -f confdef2sed.sed 10997 10998# This sed command replaces #undef with comments. This is necessary, for 10999# example, in the case of _POSIX_SOURCE, which is predefined and required 11000# on some systems where configure will not decide to define it. 11001cat >>conftest.undefs <<\_ACEOF 11002s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 11003_ACEOF 11004 11005# Break up conftest.defines because some shells have a limit on the size 11006# of here documents, and old seds have small limits too (100 cmds). 11007echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 11008echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 11009echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 11010echo ' :' >>$CONFIG_STATUS 11011rm -f conftest.tail 11012while grep . conftest.defines >/dev/null 11013do 11014 # Write a limited-size here document to $tmp/defines.sed. 11015 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 11016 # Speed up: don't consider the non `#define' lines. 11017 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 11018 # Work around the forget-to-reset-the-flag bug. 11019 echo 't clr' >>$CONFIG_STATUS 11020 echo ': clr' >>$CONFIG_STATUS 11021 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 11022 echo 'CEOF 11023 sed -f $tmp/defines.sed $tmp/in >$tmp/out 11024 rm -f $tmp/in 11025 mv $tmp/out $tmp/in 11026' >>$CONFIG_STATUS 11027 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 11028 rm -f conftest.defines 11029 mv conftest.tail conftest.defines 11030done 11031rm -f conftest.defines 11032echo ' fi # grep' >>$CONFIG_STATUS 11033echo >>$CONFIG_STATUS 11034 11035# Break up conftest.undefs because some shells have a limit on the size 11036# of here documents, and old seds have small limits too (100 cmds). 11037echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 11038rm -f conftest.tail 11039while grep . conftest.undefs >/dev/null 11040do 11041 # Write a limited-size here document to $tmp/undefs.sed. 11042 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 11043 # Speed up: don't consider the non `#undef' 11044 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 11045 # Work around the forget-to-reset-the-flag bug. 11046 echo 't clr' >>$CONFIG_STATUS 11047 echo ': clr' >>$CONFIG_STATUS 11048 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 11049 echo 'CEOF 11050 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 11051 rm -f $tmp/in 11052 mv $tmp/out $tmp/in 11053' >>$CONFIG_STATUS 11054 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 11055 rm -f conftest.undefs 11056 mv conftest.tail conftest.undefs 11057done 11058rm -f conftest.undefs 11059 11060cat >>$CONFIG_STATUS <<\_ACEOF 11061 # Let's still pretend it is `configure' which instantiates (i.e., don't 11062 # use $as_me), people would be surprised to read: 11063 # /* config.h. Generated by config.status. */ 11064 if test x"$ac_file" = x-; then 11065 echo "/* Generated by configure. */" >$tmp/config.h 11066 else 11067 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 11068 fi 11069 cat $tmp/in >>$tmp/config.h 11070 rm -f $tmp/in 11071 if test x"$ac_file" != x-; then 11072 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 11073 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 11074echo "$as_me: $ac_file is unchanged" >&6;} 11075 else 11076 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11078 X"$ac_file" : 'X\(//\)[^/]' \| \ 11079 X"$ac_file" : 'X\(//\)$' \| \ 11080 X"$ac_file" : 'X\(/\)' \| \ 11081 . : '\(.\)' 2>/dev/null || 11082echo X"$ac_file" | 11083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11084 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11085 /^X\(\/\/\)$/{ s//\1/; q; } 11086 /^X\(\/\).*/{ s//\1/; q; } 11087 s/.*/./; q'` 11088 { if $as_mkdir_p; then 11089 mkdir -p "$ac_dir" 11090 else 11091 as_dir="$ac_dir" 11092 as_dirs= 11093 while test ! -d "$as_dir"; do 11094 as_dirs="$as_dir $as_dirs" 11095 as_dir=`(dirname "$as_dir") 2>/dev/null || 11096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11097 X"$as_dir" : 'X\(//\)[^/]' \| \ 11098 X"$as_dir" : 'X\(//\)$' \| \ 11099 X"$as_dir" : 'X\(/\)' \| \ 11100 . : '\(.\)' 2>/dev/null || 11101echo X"$as_dir" | 11102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11103 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11104 /^X\(\/\/\)$/{ s//\1/; q; } 11105 /^X\(\/\).*/{ s//\1/; q; } 11106 s/.*/./; q'` 11107 done 11108 test ! -n "$as_dirs" || mkdir $as_dirs 11109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11110echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11111 { (exit 1); exit 1; }; }; } 11112 11113 rm -f $ac_file 11114 mv $tmp/config.h $ac_file 11115 fi 11116 else 11117 cat $tmp/config.h 11118 rm -f $tmp/config.h 11119 fi 11120done 11121_ACEOF 11122cat >>$CONFIG_STATUS <<\_ACEOF 11123 11124# 11125# CONFIG_COMMANDS section. 11126# 11127for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 11128 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 11129 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 11130 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 11131$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11132 X"$ac_dest" : 'X\(//\)[^/]' \| \ 11133 X"$ac_dest" : 'X\(//\)$' \| \ 11134 X"$ac_dest" : 'X\(/\)' \| \ 11135 . : '\(.\)' 2>/dev/null || 11136echo X"$ac_dest" | 11137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11138 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11139 /^X\(\/\/\)$/{ s//\1/; q; } 11140 /^X\(\/\).*/{ s//\1/; q; } 11141 s/.*/./; q'` 11142 ac_builddir=. 11143 11144if test "$ac_dir" != .; then 11145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11146 # A "../" for each directory in $ac_dir_suffix. 11147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11148else 11149 ac_dir_suffix= ac_top_builddir= 11150fi 11151 11152case $srcdir in 11153 .) # No --srcdir option. We are building in place. 11154 ac_srcdir=. 11155 if test -z "$ac_top_builddir"; then 11156 ac_top_srcdir=. 11157 else 11158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11159 fi ;; 11160 [\\/]* | ?:[\\/]* ) # Absolute path. 11161 ac_srcdir=$srcdir$ac_dir_suffix; 11162 ac_top_srcdir=$srcdir ;; 11163 *) # Relative path. 11164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11165 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11166esac 11167# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 11168# absolute. 11169ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 11170ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 11171ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 11172ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 11173 11174 11175 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 11176echo "$as_me: executing $ac_dest commands" >&6;} 11177 case $ac_dest in 11178 default-1 ) if test -f .devel; then 11179 echo timestamp > stamp-h 11180 cat Makefile-devel-adds >> Makefile 11181 make depend 11182fi ;; 11183 esac 11184done 11185_ACEOF 11186 11187cat >>$CONFIG_STATUS <<\_ACEOF 11188 11189{ (exit 0); exit 0; } 11190_ACEOF 11191chmod +x $CONFIG_STATUS 11192ac_clean_files=$ac_clean_files_save 11193 11194 11195# configure is writing to config.log, and then calls config.status. 11196# config.status does its own redirection, appending to config.log. 11197# Unfortunately, on DOS this fails, as config.log is still kept open 11198# by configure, so config.status won't be able to write to it; its 11199# output is simply discarded. So we exec the FD to /dev/null, 11200# effectively closing config.log, so it can be properly (re)opened and 11201# appended to by config.status. When coming back to configure, we 11202# need to make the FD available again. 11203if test "$no_create" != yes; then 11204 ac_cs_success=: 11205 ac_config_status_args= 11206 test "$silent" = yes && 11207 ac_config_status_args="$ac_config_status_args --quiet" 11208 exec 5>/dev/null 11209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11210 exec 5>>config.log 11211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11212 # would make configure fail if this is the last instruction. 11213 $ac_cs_success || { (exit 1); exit 1; } 11214fi 11215 11216exit 0 11217